:root {
  color-scheme: dark;
  --page: #020807;
  --ink: #061211;
  --panel: rgba(5, 18, 17, 0.9);
  --panel-soft: rgba(7, 27, 25, 0.72);
  --gold: #c58f3d;
  --gold-deep: #7a5525;
  --gold-line: rgba(197, 143, 61, 0.64);
  --gold-faint: rgba(197, 143, 61, 0.28);
  --green: #75f349;
  --green-soft: rgba(117, 243, 73, 0.2);
  --cream: #e7ddc8;
  --mist: #bbc4be;
  --muted: #8d9992;
  --teal: #1f7478;
  --cyan: #237d89;
  --red: #d44638;
  --gray: #87908b;
  --topbar-height: 60px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-mono: "Courier New", Courier, monospace;
  --font-body: Inter, "Segoe UI", Arial, sans-serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  background:
    linear-gradient(180deg, rgba(9, 27, 25, 0.85), #020807 36rem),
    var(--page);
  color: var(--cream);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(197, 143, 61, 0.025) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(197, 143, 61, 0.018) 0 1px, transparent 1px 76px);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.topbar {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  height: 60px;
  padding: 0 38px;
  border: 1px solid var(--gold-faint);
  border-right: 0;
  border-left: 0;
  background: rgba(3, 15, 14, 0.96);
  backdrop-filter: blur(10px);
}

body.is-secret-scroll .topbar {
  transform: none;
}

main section,
.contract-strip {
  scroll-margin-top: var(--topbar-height);
}

.brand,
.main-nav,
.header-socials,
.top-contract,
.button,
.panel h2,
.panel h3,
.contract-strip h2,
.contract-strip dt,
.chain-meta dt,
.site-footer {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.brand img {
  width: 44px;
  height: 40px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 33px;
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.main-nav a,
.header-socials a,
.top-contract {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.header-socials a:hover,
.header-socials a:focus-visible,
.top-contract:hover,
.top-contract:focus-visible {
  color: var(--green);
}

.header-socials {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-self: end;
  border-left: 1px solid var(--gold-faint);
}

.header-socials a {
  display: grid;
  width: 42px;
  height: 38px;
  place-items: center;
  border-right: 1px solid var(--gold-faint);
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
}

.header-socials svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
}

.top-contract {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-width: 230px;
  min-height: 39px;
  padding: 0 20px;
  border: 1px solid var(--gold-faint);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sound-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--gold-line);
  color: var(--green);
  background: rgba(3, 15, 14, 0.82);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.42), inset 0 0 18px rgba(117, 243, 73, 0.08);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.sound-toggle svg {
  width: 23px;
  height: 23px;
}

.sound-toggle .sound-off,
.sound-toggle.is-muted .sound-on {
  display: none;
}

.sound-toggle.is-muted {
  color: var(--gold);
}

.sound-toggle.is-muted .sound-off {
  display: block;
}

svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chateau {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-faint);
  background:
    linear-gradient(90deg, rgba(2, 8, 7, 0.82), rgba(2, 8, 7, 0.18) 44%, rgba(2, 8, 7, 0.28)),
    url("assets/giga-vlad-chateau-gallery.png?v=20260709-v2") center center / cover no-repeat;
  perspective: 1400px;
}

.chateau::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, rgba(197, 143, 61, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(2, 8, 7, 0.18), rgba(2, 8, 7, 0.84));
}

.chateau-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 44%, rgba(248, 202, 102, 0.2) 50%, transparent 56% 100%),
    radial-gradient(circle at 50% 60%, rgba(117, 243, 73, 0.08), transparent 18rem);
  opacity: 0.48;
  mix-blend-mode: screen;
  transition: opacity 520ms ease;
}

.chateau.is-open .chateau-glow {
  opacity: 0.9;
}

.chateau-copy {
  position: relative;
  z-index: 6;
  width: min(610px, calc(100% - 48px));
  padding: 118px 0 44px;
  margin-left: clamp(24px, 7vw, 92px);
}

.chateau-copy h2 {
  margin: 0 0 16px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(52px, 6.8vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.86);
}

.chateau-copy p:not(.chain-label) {
  max-width: 560px;
  color: #d1d7cf;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.78);
}

.hero {
  position: relative;
  min-height: 450px;
  border-bottom: 1px solid var(--gold-faint);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2, 8, 7, 0.14), rgba(2, 8, 7, 0) 36%, rgba(2, 8, 7, 0.04)),
    url("assets/giga-vlad-hero-clean.png") center top / cover no-repeat;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(620px, calc(100% - 48px));
  padding: 64px 0 30px;
  margin-left: clamp(24px, 10.75vw, 166px);
}

.chain-label {
  margin: 0 0 12px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 3px 12px #03100e;
}

h1,
h2,
h3,
p,
dl,
dd,
ol {
  margin-top: 0;
}

.hero h1 {
  margin: 0;
  color: #e8dec9;
  font-family: var(--font-display);
  font-size: clamp(56px, 6.65vw, 104px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(79, 49, 21, 0.65),
    0 16px 44px rgba(0, 0, 0, 0.78);
}

.ticker {
  margin: 4px 0 9px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.3vw, 48px);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.72);
}

.star-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(285px, 70vw);
  margin: 12px 0 19px;
  color: var(--gold);
}

.star-rule::before {
  content: "*";
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.star-rule span {
  display: block;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold) 86%, transparent);
}

.star-rule::after {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
}

.lede {
  max-width: 496px;
  margin: 0;
  color: #c2cbc6;
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.52;
  text-shadow: 0 3px 14px #03100e;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 23px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  border: 1px solid var(--gold-line);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.13em;
  transition: transform 160ms ease, filter 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-green {
  width: 236px;
  color: #05120f;
  border-color: #64e83e;
  background: linear-gradient(180deg, #87ff5d, #63df3c);
  box-shadow: inset 0 0 0 2px rgba(4, 19, 15, 0.38), 0 0 28px rgba(117, 243, 73, 0.24);
}

.button-gold {
  width: 226px;
  color: var(--gold);
  background: rgba(3, 13, 12, 0.72);
  box-shadow: inset 0 0 0 1px rgba(197, 143, 61, 0.12);
}

.dashboard,
.contract-strip {
  width: min(1470px, calc(100% - 48px));
  margin: 12px auto 0;
}

.dashboard {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 10px;
}

.panel,
.contract-strip {
  border: 1px solid var(--gold-line);
  background:
    linear-gradient(180deg, rgba(6, 22, 21, 0.95), rgba(4, 14, 13, 0.96)),
    var(--panel);
  box-shadow: inset 0 0 42px rgba(27, 92, 83, 0.12);
}

.panel {
  min-height: 307px;
  overflow: hidden;
}

.panel h2,
.contract-strip h2 {
  margin: 0;
  padding: 12px 21px 10px;
  border-bottom: 1px solid var(--gold-faint);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.18em;
}

.token-facts {
  display: flex;
  flex-direction: column;
}

.fact-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 11px;
  align-items: center;
  min-height: 78px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(197, 143, 61, 0.19);
}

.fact-row:last-child {
  border-bottom: 0;
}

.fact-row svg {
  width: 29px;
  height: 29px;
  color: var(--gold);
  stroke-width: 1.45;
}

.panel h3 {
  margin: 0 0 4px;
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.fact-row p,
.sequence p {
  margin: 0;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.27;
}

.tokenomics-grid {
  display: block;
  padding: 20px 22px 18px;
}

.donut {
  position: relative;
  display: grid;
  width: 160px;
  height: 160px;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #061211 0 43px, transparent 44px),
    conic-gradient(
      var(--green) 0 30%,
      #d1a448 30% 55%,
      var(--cyan) 55% 70%,
      var(--red) 70% 75%,
      var(--gray) 75% 80%,
      var(--teal) 80% 100%
    );
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.56), 0 0 38px rgba(197, 143, 61, 0.08);
}

.donut::after {
  content: "";
  position: absolute;
  inset: 50px;
  border-radius: 50%;
  background: #071211;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.76);
}

.donut img {
  position: relative;
  z-index: 2;
  width: 58px;
  height: auto;
}

.ledger {
  display: grid;
  gap: 0;
  min-width: 0;
  font-family: var(--font-mono);
}

.ledger div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 42px 64px;
  gap: 12px;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid rgba(197, 143, 61, 0.22);
  color: var(--mist);
  font-size: 12px;
  line-height: 1.22;
}

.ledger div.total {
  grid-template-columns: 12px minmax(0, 1fr) 1px 118px;
  border-bottom: 0;
  color: var(--gold);
  padding-top: 8px;
}

.ledger strong,
.ledger em {
  color: var(--cream);
  font-style: normal;
  font-weight: 400;
  text-align: right;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.green {
  background: var(--green);
}

.gold {
  background: #d1a448;
}

.cyan {
  background: var(--cyan);
}

.red {
  background: var(--red);
}

.gray {
  background: var(--gray);
}

.teal {
  background: var(--teal);
}

.sequence {
  position: relative;
  display: grid;
  gap: 0;
  padding: 14px 10px 8px 18px;
  margin: 0;
  list-style: none;
}

.sequence::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 35px;
  left: 30px;
  width: 1px;
  background: var(--gold-line);
}

.sequence li {
  position: relative;
  display: grid;
  grid-template-columns: 24px 40px minmax(0, 1fr) 58px;
  gap: 9px;
  align-items: center;
  min-height: 58px;
}

.step-number,
.step-icon {
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: #071211;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
}

.step-number {
  width: 24px;
  height: 24px;
  z-index: 2;
}

.step-icon {
  width: 34px;
  height: 34px;
  border-color: rgba(117, 243, 73, 0.4);
  color: var(--green);
}

.step-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.4;
}

.sequence h3 {
  margin: 0 0 3px;
}

.sequence strong {
  justify-self: end;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.sequence strong.done {
  color: var(--green);
}

.chain-meta {
  margin: 0;
}

.chain-meta div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 33px;
  border-bottom: 1px solid rgba(197, 143, 61, 0.22);
  font-family: var(--font-mono);
}

.chain-meta dt,
.chain-meta dd {
  margin: 0;
  font-size: 10.5px;
  text-transform: uppercase;
}

.chain-meta dd {
  color: var(--mist);
}

.contract-strip {
  display: grid;
  grid-template-columns: 180px minmax(280px, 1fr) 420px 120px;
  gap: 28px;
  align-items: center;
  min-height: 77px;
  padding: 16px 18px 10px;
}

.contract-strip h2 {
  padding: 0;
  border: 0;
}

.address-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  border: 1px solid var(--gold-line);
  background: rgba(3, 13, 12, 0.58);
}

.address-control code {
  overflow: hidden;
  padding: 13px 14px;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-control button {
  display: grid;
  height: 40px;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--gold-line);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
}

.address-control button.copied {
  color: var(--green);
}

.address-control button.copy-failed {
  color: var(--red);
}

.address-control svg {
  width: 20px;
  height: 20px;
}

.chain-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.chain-meta div {
  display: block;
  min-height: 44px;
  padding-left: 28px;
  border-bottom: 0;
  border-left: 1px solid var(--gold-faint);
}

.chain-meta dt {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 9px;
}

.compass {
  position: relative;
  justify-self: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
}

.compass::before,
.compass::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold-faint);
  transform: rotate(45deg);
}

.compass::after {
  inset: 18px;
  border-color: transparent;
  border-top-color: var(--gold);
  border-bottom-color: var(--gold);
}

.contract-disclaimer {
  grid-column: 1 / -1;
  margin: -6px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.abyss-copy {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 44px));
  padding: 74px 0 34px;
  margin-left: clamp(22px, 7vw, 96px);
}

.abyss-copy h2 {
  margin: 0 0 14px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.82);
}

.abyss-copy p:not(.chain-label) {
  max-width: 520px;
  color: #c7d2ce;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
}

.treasure-console {
  position: absolute;
  right: clamp(22px, 5vw, 78px);
  bottom: 34px;
  z-index: 2;
  display: grid;
  width: min(360px, calc(100% - 44px));
  border: 1px solid var(--gold-line);
  background: rgba(3, 13, 12, 0.72);
  box-shadow: inset 0 0 32px rgba(117, 243, 73, 0.06), 0 20px 56px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
}

.treasure-console div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 42px;
  padding: 0 17px;
  border-bottom: 1px solid var(--gold-faint);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.treasure-console div:last-child {
  border-bottom: 0;
}

.treasure-console span {
  color: var(--muted);
  font-size: 11px;
}

.treasure-console strong {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.bubble-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.bubble-field {
  z-index: 1;
  overflow: hidden;
}

.bubble-field span {
  position: absolute;
  bottom: -44px;
  left: var(--bubble-left);
  width: var(--bubble-size);
  height: var(--bubble-size);
  border: 1px solid rgba(188, 233, 222, 0.4);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(239, 255, 249, 0.64), rgba(108, 206, 199, 0.14) 45%, transparent 68%);
  box-shadow: inset -3px -5px 12px rgba(8, 44, 48, 0.34), 0 0 18px rgba(121, 204, 198, 0.16);
  opacity: 0.48;
  animation: bubbleColumn var(--bubble-speed) linear infinite;
  animation-delay: var(--bubble-delay);
}

.bubble-field span:nth-child(1) { --bubble-left: 6%; --bubble-size: 13px; --bubble-speed: 12s; --bubble-delay: 0s; }
.bubble-field span:nth-child(2) { --bubble-left: 14%; --bubble-size: 8px; --bubble-speed: 10s; --bubble-delay: 2.4s; }
.bubble-field span:nth-child(3) { --bubble-left: 24%; --bubble-size: 18px; --bubble-speed: 15s; --bubble-delay: 4.2s; }
.bubble-field span:nth-child(4) { --bubble-left: 33%; --bubble-size: 10px; --bubble-speed: 11s; --bubble-delay: 1.3s; }
.bubble-field span:nth-child(5) { --bubble-left: 45%; --bubble-size: 15px; --bubble-speed: 13s; --bubble-delay: 6s; }
.bubble-field span:nth-child(6) { --bubble-left: 53%; --bubble-size: 7px; --bubble-speed: 9s; --bubble-delay: 3.7s; }
.bubble-field span:nth-child(7) { --bubble-left: 62%; --bubble-size: 20px; --bubble-speed: 16s; --bubble-delay: 5.2s; }
.bubble-field span:nth-child(8) { --bubble-left: 71%; --bubble-size: 11px; --bubble-speed: 12s; --bubble-delay: 0.8s; }
.bubble-field span:nth-child(9) { --bubble-left: 78%; --bubble-size: 9px; --bubble-speed: 10s; --bubble-delay: 7.1s; }
.bubble-field span:nth-child(10) { --bubble-left: 85%; --bubble-size: 17px; --bubble-speed: 14s; --bubble-delay: 2.8s; }
.bubble-field span:nth-child(11) { --bubble-left: 91%; --bubble-size: 12px; --bubble-speed: 11s; --bubble-delay: 4.9s; }
.bubble-field span:nth-child(12) { --bubble-left: 96%; --bubble-size: 6px; --bubble-speed: 9s; --bubble-delay: 6.4s; }
.bubble-field span:nth-child(13) { --bubble-left: 18%; --bubble-size: 14px; --bubble-speed: 13s; --bubble-delay: 8.2s; }
.bubble-field span:nth-child(14) { --bubble-left: 39%; --bubble-size: 7px; --bubble-speed: 10s; --bubble-delay: 7.6s; }
.bubble-field span:nth-child(15) { --bubble-left: 67%; --bubble-size: 15px; --bubble-speed: 15s; --bubble-delay: 9.1s; }
.bubble-field span:nth-child(16) { --bubble-left: 88%; --bubble-size: 8px; --bubble-speed: 11s; --bubble-delay: 8.7s; }

@keyframes bubbleColumn {
  from { transform: translate3d(-10px, 0, 0) scale(0.76); opacity: 0; }
  12% { opacity: 0.42; }
  58% { opacity: 0.58; }
  to { transform: translate3d(16px, -760px, 0) scale(1.08); opacity: 0; }
}

@keyframes currentSurge {
  0%, 100% { opacity: 0.42; transform: translateX(-2%); }
  50% { opacity: 0.78; transform: translateX(2%); }
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  min-height: 91px;
  margin-top: 14px;
  padding: 0 124px 0 34%;
  border-top: 1px solid var(--gold-faint);
  background:
    linear-gradient(90deg, transparent 0 26%, #03100f 43%, rgba(3, 16, 15, 0.9) 100%),
    url("assets/giga-vlad-footer-clean.png") left bottom / cover no-repeat;
  color: var(--mist);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.socials {
  display: grid;
  grid-auto-flow: column;
  gap: 0;
  align-items: center;
  margin-left: 70px;
  border-left: 1px solid var(--gold-faint);
}

.socials a {
  display: grid;
  width: 74px;
  height: 42px;
  place-items: center;
  border-right: 1px solid var(--gold-faint);
  color: var(--gold);
  font-size: 28px;
}

.socials svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.6;
}

@media (max-width: 1180px) {
  :root {
    --topbar-height: 116px;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    height: auto;
    min-height: 64px;
    gap: 14px 24px;
    padding: 12px 22px;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
  }

  .header-socials {
    justify-self: end;
  }

  .top-contract {
    min-width: 190px;
  }

  .chateau {
    min-height: 700px;
  }

  .chateau-copy {
    padding-top: 92px;
  }

  .dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .contract-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .chain-meta {
    width: 100%;
  }

  .compass {
    display: none;
  }

  .treasure-console {
    right: 24px;
    bottom: 24px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }

  .socials {
    justify-self: center;
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-height: 0px;
  }

  .topbar {
    position: relative;
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 14px;
  }

  .main-nav {
    order: initial;
    grid-column: auto;
    justify-content: flex-start;
    gap: 18px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .top-contract {
    order: 4;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .header-socials {
    order: 3;
    justify-self: stretch;
    width: 100%;
    border-left: 0;
  }

  .header-socials a {
    width: auto;
    min-width: 48px;
  }

  .top-contract svg {
    flex: 0 0 auto;
  }

  .sound-toggle {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }

  .chateau {
    min-height: 820px;
    background-position: 50% center;
  }

  .chateau::before {
    background:
      linear-gradient(180deg, rgba(2, 8, 7, 0.82), rgba(2, 8, 7, 0.24) 46%, rgba(2, 8, 7, 0.84)),
      radial-gradient(circle at 50% 38%, rgba(197, 143, 61, 0.16), transparent 15rem);
  }

  .chateau-copy {
    width: calc(100% - 36px);
    padding-top: 76px;
    margin-left: 18px;
  }

  .chateau-copy h2 {
    font-size: clamp(42px, 14vw, 68px);
  }

  .hero {
    min-height: 520px;
    background-position: 58% top;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 13, 12, 0.9), rgba(3, 13, 12, 0.28));
  }

  .hero-copy {
    width: min(520px, calc(100% - 36px));
    padding-top: 64px;
    margin-left: 18px;
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 78px);
  }

  .ticker {
    font-size: clamp(28px, 10vw, 40px);
  }

  .button {
    width: 100%;
  }

  .dashboard {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: 0;
  }

  .tokenomics-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .ledger {
    width: 100%;
  }

  .sequence li {
    grid-template-columns: 24px 38px minmax(0, 1fr);
  }

  .sequence strong {
    grid-column: 3;
    justify-self: start;
    margin-top: -5px;
  }

  .contract-strip {
    width: calc(100% - 24px);
  }

  .contract-disclaimer {
    text-align: left;
  }

  .chain-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .abyss-copy {
    width: calc(100% - 36px);
    padding-top: 54px;
    margin-left: 18px;
  }

  .abyss-copy h2 {
    font-size: clamp(40px, 14vw, 64px);
  }

  .treasure-console {
    right: 18px;
    bottom: 24px;
    width: calc(100% - 36px);
  }

  .site-footer {
    background-position: left bottom;
  }

  .socials a {
    width: 56px;
  }
}

/* Secret chateau and deep-ocean world overrides */
.chateau {
  --chateau-depth: 0;
  min-height: 142vh;
  border-bottom: 0;
  background: #020807;
}

.chateau-gallery-shadow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 8, 7, 0.86), rgba(2, 8, 7, 0.18) 48%, rgba(2, 8, 7, 0.72)),
    radial-gradient(circle at 50% 50%, rgba(197, 143, 61, 0.16), transparent 28rem),
    linear-gradient(180deg, rgba(2, 8, 7, 0.26), rgba(2, 8, 7, 0.88)),
    url("assets/giga-vlad-chateau-gallery.png?v=20260709-v2") center center / cover no-repeat;
  transform: scale(calc(1 + var(--chateau-depth) * 0.09)) translateY(calc(var(--chateau-depth) * -3vh));
  transition: transform 180ms linear;
}

.chateau-doorway {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1400px;
}

.door-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.08%;
  overflow: hidden;
  background-image: url("assets/chateau-doors-closed.png");
  background-repeat: no-repeat;
  background-size: 200% 100%;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.64), 0 0 42px rgba(0, 0, 0, 0.42);
  transition: transform 1100ms cubic-bezier(.18, .82, .14, 1), filter 1100ms ease, box-shadow 1100ms ease;
  will-change: transform;
}

.door-panel-left {
  left: 0;
  transform-origin: left center;
  background-position: left center;
}

.door-panel-right {
  right: 0;
  transform-origin: right center;
  background-position: right center;
}

.chateau.is-open .door-panel-left {
  transform: rotateY(-78deg) translateX(-2.2vw);
  filter: brightness(0.82);
  box-shadow: inset -40px 0 80px rgba(0, 0, 0, 0.78), 24px 0 60px rgba(0, 0, 0, 0.35);
}

.chateau.is-open .door-panel-right {
  transform: rotateY(78deg) translateX(2.2vw);
  filter: brightness(0.82);
  box-shadow: inset 40px 0 80px rgba(0, 0, 0, 0.78), -24px 0 60px rgba(0, 0, 0, 0.35);
}

.painting-hotspot {
  position: absolute;
  z-index: 6;
  display: block;
  width: clamp(78px, 8vw, 132px);
  height: clamp(116px, 16vh, 198px);
  padding: 0;
  border: 1px solid rgba(197, 143, 61, 0);
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 240ms ease, border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.chateau.is-open .painting-hotspot {
  opacity: 1;
}

.painting-hotspot:hover,
.painting-hotspot:focus-visible {
  border-color: rgba(197, 143, 61, 0.72);
  box-shadow: inset 0 0 28px rgba(117, 243, 73, 0.12), 0 0 28px rgba(197, 143, 61, 0.22);
  outline: none;
  transform: scale(1);
}

.painting-hotspot-one {
  right: 6.5%;
  top: 17%;
}

.painting-hotspot-two {
  right: 26%;
  top: 38%;
  width: clamp(70px, 7vw, 118px);
}

.painting-hotspot-three {
  right: 39.5%;
  top: 25%;
  width: clamp(64px, 6vw, 104px);
}

.painting-viewer {
  --painting-frame: 0%;
  position: absolute;
  top: clamp(92px, 16vh, 150px);
  right: clamp(20px, 5vw, 78px);
  z-index: 8;
  width: min(430px, calc(100% - 40px));
  padding: 20px 22px;
  border: 1px solid rgba(197, 143, 61, 0.44);
  background: rgba(3, 13, 12, 0.76);
  box-shadow: inset 0 0 28px rgba(117, 243, 73, 0.07), 0 28px 60px rgba(0, 0, 0, 0.42);
  color: #cfd9d3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 260ms ease, transform 260ms ease;
  backdrop-filter: blur(10px);
}

.painting-viewer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.painting-preview {
  height: clamp(118px, 18vh, 174px);
  margin-bottom: 15px;
  border: 1px solid rgba(197, 143, 61, 0.38);
  background-image: url("assets/chateau-painting-details.png");
  background-position: var(--painting-frame) center;
  background-repeat: no-repeat;
  background-size: 300% 100%;
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.52), 0 18px 40px rgba(0, 0, 0, 0.32);
  transform: scale(0.97);
  transform-origin: center;
}

.painting-viewer.is-visible .painting-preview {
  animation: paintingInspect 620ms cubic-bezier(.18, .82, .14, 1) both;
}

.painting-viewer span {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.painting-viewer strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.painting-viewer p {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
}

.chateau-copy {
  z-index: 3;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 520ms ease 240ms, transform 520ms ease 240ms;
  pointer-events: none;
}

.chateau.is-open .chateau-copy {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.treasure-map {
  position: relative;
  display: grid;
  place-items: center;
  width: min(1470px, calc(100% - 48px));
  margin: 12px auto 0;
  min-height: clamp(190px, 24vw, 310px);
  padding: clamp(34px, 4vw, 58px) clamp(24px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background:
    radial-gradient(circle at 16% 28%, rgba(117, 243, 73, 0.11), transparent 18rem),
    radial-gradient(circle at 78% 62%, rgba(197, 143, 61, 0.18), transparent 20rem),
    linear-gradient(135deg, rgba(7, 27, 25, 0.96), rgba(2, 8, 7, 0.96));
  box-shadow: inset 0 0 70px rgba(27, 92, 83, 0.12);
}

.treasure-map::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(197, 143, 61, 0.22);
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(197, 143, 61, 0.12) 50%, transparent 51%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(197, 143, 61, 0.055) 47px);
  opacity: 0.7;
}

.map-copy,
.map-route {
  position: relative;
  z-index: 1;
}

.map-copy {
  width: min(760px, 100%);
  text-align: center;
}

.map-copy h2 {
  margin: 0 0 12px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.78);
}

.map-copy p:not(.chain-label),
.map-route p {
  color: #c2cbc6;
  font-family: var(--font-mono);
  line-height: 1.52;
}

.map-copy p:not(.chain-label) {
  max-width: none;
  margin: 0;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.1;
  text-transform: uppercase;
}

.map-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(560px, 100%);
  margin-top: 26px;
  border: 1px solid rgba(197, 143, 61, 0.28);
  background: rgba(197, 143, 61, 0.16);
}

.map-legend span {
  min-height: 44px;
  padding: 13px 14px 11px;
  background: rgba(2, 8, 7, 0.76);
  color: rgba(226, 196, 128, 0.92);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.map-route {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: map;
}

.map-route li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  min-height: 104px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(197, 143, 61, 0.24);
}

.map-route li:last-child {
  border-bottom: 0;
}

.map-route span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(117, 243, 73, 0.42);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(3, 13, 12, 0.78);
}

.map-route h3 {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-route p {
  margin: 0;
  font-size: 13px;
}

.ocean-scroll {
  position: relative;
  min-height: 360vh;
  margin-top: 0;
  background:
    linear-gradient(180deg, #020807 0%, #041413 18%, #041b22 48%, #010507 100%);
}

.ocean-stage {
  --ocean-progress: 0;
  --surface-opacity: 1;
  --surface-y: 0vh;
  --water-opacity: 0.92;
  --wreck-opacity: 0;
  --wreck-scale: 1.14;
  --wreck-y: 10vh;
  --copy-y: 0vh;
  --kelp-y: 12vh;
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 64% 34%, rgba(117, 243, 73, 0.055), transparent 19rem),
    linear-gradient(180deg, #08272c 0%, #031817 36%, #010608 100%);
}

.ocean-stage::before,
.ocean-stage::after,
.ocean-surface,
.ocean-rays,
.ocean-wreck {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ocean-stage::before {
  content: "";
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(141, 202, 205, 0.2), transparent 24%),
    radial-gradient(circle at 58% 32%, rgba(144, 247, 230, 0.1), transparent 22rem),
    linear-gradient(90deg, rgba(2, 8, 7, 0.62), transparent 44%, rgba(2, 8, 7, 0.7));
  opacity: var(--water-opacity);
}

.ocean-stage::after {
  content: "";
  z-index: 6;
  background:
    linear-gradient(180deg, transparent 0 52%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.62)),
    repeating-linear-gradient(180deg, transparent 0 74px, rgba(188, 233, 222, 0.035) 75px);
}

.ocean-surface {
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(205, 236, 229, 0.42), transparent 42%),
    linear-gradient(180deg, rgba(90, 154, 166, 0.48), transparent 34%);
  opacity: var(--surface-opacity);
  transform: translateY(var(--surface-y));
}

.ocean-rays {
  z-index: 2;
  background:
    linear-gradient(102deg, transparent 0 16%, rgba(171, 242, 232, 0.12) 22%, transparent 31%),
    linear-gradient(72deg, transparent 0 46%, rgba(197, 143, 61, 0.08) 53%, transparent 64%);
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: currentSurge 7s ease-in-out infinite;
}

.ocean-wreck {
  z-index: 0;
  background:
    linear-gradient(180deg, transparent 0 16%, rgba(1, 6, 8, 0.1), rgba(1, 6, 8, 0.78)),
    url("assets/giga-vlad-abyss-treasure.png") center bottom / cover no-repeat;
  opacity: var(--wreck-opacity);
  transform: scale(var(--wreck-scale)) translateY(var(--wreck-y));
}

.ocean-stage .bubble-field {
  z-index: 3;
}

.ocean-creature {
  position: absolute;
  z-index: 4;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42));
  transition: opacity 240ms ease, transform 240ms ease, filter 240ms ease;
}

.ocean-artifact {
  position: absolute;
  z-index: 8;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.48));
  transition: opacity 260ms ease, transform 260ms ease, filter 260ms ease;
}

.ocean-creature img,
.ocean-artifact img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.ocean-artifact:hover,
.ocean-artifact:focus-visible,
.ocean-creature:hover,
.ocean-creature:focus-visible {
  filter: drop-shadow(0 0 22px rgba(117, 243, 73, 0.36)) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42));
  outline: none;
}

.ocean-creature.is-found {
  opacity: 0.46;
  filter: drop-shadow(0 0 28px rgba(197, 143, 61, 0.42));
}

.ocean-creature.is-decorative {
  pointer-events: none;
  cursor: default;
}

.map-shard-one {
  right: clamp(160px, 21vw, 330px);
  bottom: clamp(172px, 27vh, 280px);
  z-index: 6;
  width: clamp(106px, 12vw, 188px);
  opacity: 0.92;
  transform: rotate(-10deg) translateY(0);
  animation: shardFloat 5.8s ease-in-out infinite;
}

.map-shard-one:hover,
.map-shard-one:focus-visible,
.map-shard-one.is-found {
  opacity: 1;
}

.fish-one {
  top: 47%;
  left: 0;
  width: clamp(138px, 17vw, 260px);
  aspect-ratio: 527 / 317;
  animation: fishResourceSwim 24s linear infinite -7s;
}

.fish-two {
  top: 67%;
  right: 0;
  width: clamp(112px, 15vw, 220px);
  aspect-ratio: 520 / 382;
  animation: fishResourceReturn 29s linear infinite -13s;
}

.fish-three {
  top: 40%;
  left: -32vw;
  z-index: 3;
  width: clamp(280px, 34vw, 520px);
  aspect-ratio: 916 / 339;
  opacity: 0.78;
  animation: ribbonFishCruise 38s linear infinite -11s;
}

.fish-four {
  top: 60%;
  right: -28vw;
  z-index: 5;
  width: clamp(180px, 24vw, 360px);
  aspect-ratio: 1536 / 1024;
  opacity: 0.76;
  animation: abyssSpinePatrol 36s linear infinite -16s;
}

.swim-rig,
.rig-body,
.rig-tail {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.swim-rig {
  position: relative;
  width: 100%;
  height: 100%;
  --tail-cut: 28%;
  --tail-pivot: 28%;
  --tail-angle: 8deg;
  --tail-shift: 3px;
  --tail-speed: 680ms;
}

.rig-body,
.rig-tail {
  background-image: var(--swimmer-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transform-origin: 50% 50%;
}

.rig-body {
  clip-path: polygon(var(--tail-cut) 0, 100% 0, 100% 100%, var(--tail-cut) 100%, calc(var(--tail-cut) + 5%) 50%);
  animation: swimmerBodySway var(--body-speed, 2.5s) ease-in-out infinite;
}

.rig-tail {
  clip-path: polygon(0 0, var(--tail-cut) 0, calc(var(--tail-cut) + 8%) 50%, var(--tail-cut) 100%, 0 100%);
  transform-origin: var(--tail-pivot) 50%;
  animation: swimmerTailBeat var(--tail-speed) ease-in-out infinite;
}

.fish-lantern-rig {
  --swimmer-image: url("assets/abyss-fish-lantern.png");
  --tail-cut: 25%;
  --tail-pivot: 25%;
  --tail-angle: 8deg;
  --tail-shift: 3px;
  --tail-speed: 560ms;
  --body-speed: 1.9s;
}

.fish-emerald-rig {
  --swimmer-image: url("assets/abyss-fish-emerald.png");
  --tail-cut: 35%;
  --tail-pivot: 34%;
  --tail-angle: 7deg;
  --tail-shift: 2px;
  --tail-speed: 720ms;
  --body-speed: 2.3s;
}

.fish-ribbon-rig {
  --swimmer-image: url("assets/abyss-fish-ribbon.png");
  --tail-cut: 34%;
  --tail-pivot: 32%;
  --tail-angle: 5deg;
  --tail-shift: 5px;
  --tail-speed: 1.15s;
  --body-speed: 3.4s;
}

.fish-abyss-rig {
  --swimmer-image: url("assets/abyss-fish-sprite.png");
  --tail-cut: 30%;
  --tail-pivot: 28%;
  --tail-angle: 6deg;
  --tail-shift: 4px;
  --tail-speed: 940ms;
  --body-speed: 3s;
}

.shark-one {
  bottom: 18%;
  left: 0;
  width: clamp(340px, 48vw, 660px);
  aspect-ratio: 1774 / 887;
  opacity: 0.82;
  animation: sharkResourcePass 42s linear infinite -18s;
}

.shark-rig {
  --swimmer-image: url("assets/abyss-shark-sprite.png");
  --tail-cut: 31%;
  --tail-pivot: 30%;
  --tail-angle: 4deg;
  --tail-shift: 6px;
  --tail-speed: 1.05s;
  --body-speed: 3.1s;
}

.puffer-fish {
  top: 40%;
  left: clamp(420px, 36vw, 640px);
  z-index: 5;
  width: clamp(124px, 15vw, 220px);
  height: clamp(78px, 9vw, 134px);
  animation: pufferDrift 19s ease-in-out infinite;
}

.puffer-sheet,
.chest-sheet {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.puffer-sheet {
  background-image: url("assets/giga-vlad-puffer-states-v2.png");
  background-size: 800% 100%;
  background-position: 0 50%;
  transform-origin: 54% 52%;
}

.puffer-fish.is-puffing .puffer-sheet {
  animation: pufferInflateFrames 920ms steps(4, end) forwards, pufferInflateSquash 920ms cubic-bezier(.17, .84, .22, 1) forwards;
}

.puffer-fish.is-puffed .puffer-sheet {
  background-position: 57.143% 50%;
  transform: scale(1.18, 1.12) rotate(1.4deg);
  filter: saturate(1.22) brightness(1.08);
}

.puffer-fish.is-deflating .puffer-sheet {
  animation: pufferDeflateFrames 760ms steps(3, end) forwards, pufferDeflateSquash 760ms cubic-bezier(.22, .78, .26, 1) forwards;
}

.abyss-key {
  left: clamp(36px, 10vw, 170px);
  bottom: clamp(92px, 17vh, 180px);
  width: clamp(88px, 10vw, 150px);
  opacity: 0;
  pointer-events: none;
  transform: rotate(-18deg) translateY(24px) scale(0.88);
  animation: hiddenKeyGlint 5.4s ease-in-out infinite;
}

.ocean-stage.is-wreck .abyss-key {
  opacity: 0.42;
  pointer-events: auto;
  transform: rotate(-18deg) translateY(0) scale(1);
}

.abyss-key:hover,
.abyss-key:focus-visible,
.abyss-key.is-found {
  opacity: 1;
}

.ocean-stage.has-key .abyss-key {
  opacity: 0;
  transform: rotate(-18deg) translateY(-20px) scale(0.82);
  pointer-events: none;
}

.treasure-chest {
  right: clamp(52px, 9vw, 142px);
  bottom: clamp(94px, 15vh, 156px);
  z-index: 8;
  width: clamp(230px, 28vw, 430px);
  height: clamp(138px, 16vw, 246px);
  opacity: 0;
  pointer-events: none;
  touch-action: manipulation;
  transform: translateY(40px) scale(0.94);
}

.ocean-stage.is-wreck .treasure-chest {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chest-sheet {
  background-image: url("assets/giga-vlad-chest-states-v2.png");
  background-size: 600% 100%;
  background-position: 0 50%;
}

.treasure-chest.needs-key {
  animation: chestDenied 620ms ease-in-out;
}

.treasure-chest.is-unlocking .chest-sheet {
  animation: chestUnlock 1000ms steps(4, end) forwards;
}

.treasure-chest.is-open .chest-sheet {
  animation: chestOpen 900ms steps(1, end) forwards;
}

.assembled-map {
  position: absolute;
  right: clamp(34px, 5vw, 82px);
  bottom: clamp(330px, 43vh, 430px);
  z-index: 9;
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  width: min(540px, calc(100% - 44px));
  padding: 16px;
  border: 1px solid rgba(197, 143, 61, 0.42);
  background: rgba(2, 8, 7, 0.72);
  box-shadow: inset 0 0 34px rgba(117, 243, 73, 0.08), 0 26px 70px rgba(0, 0, 0, 0.44);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
  transition: opacity 420ms ease, transform 420ms ease;
  backdrop-filter: blur(10px);
}

.assembled-map.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.map-pieces {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  align-items: end;
  width: 192px;
  height: 88px;
  perspective: 620px;
  filter: drop-shadow(0 0 18px rgba(117, 243, 73, 0.22));
}

.map-piece {
  display: block;
  width: 100%;
  height: 76px;
  background-image: url("assets/giga-vlad-map-pieces.png");
  background-repeat: no-repeat;
  background-size: 400% 100%;
  opacity: 0;
  transform: translate3d(var(--piece-x), var(--piece-y), 0) rotate(var(--piece-r)) scale(0.72);
  transform-origin: 50% 58%;
}

.map-piece-one {
  --piece-x: -72px;
  --piece-y: 36px;
  --piece-r: -24deg;
  background-position: 0% 50%;
}

.map-piece-two {
  --piece-x: -18px;
  --piece-y: -44px;
  --piece-r: 18deg;
  background-position: 33.333% 50%;
}

.map-piece-three {
  --piece-x: 26px;
  --piece-y: 42px;
  --piece-r: -15deg;
  background-position: 66.666% 50%;
}

.map-piece-four {
  --piece-x: 82px;
  --piece-y: -26px;
  --piece-r: 24deg;
  background-position: 100% 50%;
}

.assembled-map.is-visible .map-piece {
  animation: mapPieceAssemble 820ms cubic-bezier(.17, .84, .26, 1) both;
}

.assembled-map.is-visible .map-piece-two {
  animation-delay: 90ms;
}

.assembled-map.is-visible .map-piece-three {
  animation-delay: 180ms;
}

.assembled-map.is-visible .map-piece-four {
  animation-delay: 270ms;
}

.map-story {
  opacity: 0;
  transform: translateY(8px);
}

.assembled-map.is-visible .map-story {
  animation: mapStoryReveal 560ms ease 520ms both;
}

.assembled-map span {
  display: block;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.assembled-map strong {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.assembled-map p {
  margin: 7px 0 0;
  color: #cbd5cf;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
}

.reef-foreground {
  position: absolute;
  left: 50%;
  bottom: -3.5vh;
  z-index: 4;
  width: min(1360px, 118vw);
  max-width: none;
  pointer-events: none;
  transform: translateX(-50%) translateY(calc(var(--kelp-y) * 0.34));
  transform-origin: 50% 100%;
  animation: reefParallaxCurrent 10.5s ease-in-out infinite;
  filter: drop-shadow(0 -18px 34px rgba(0, 0, 0, 0.34));
}

.kelp-foreground {
  position: absolute;
  right: -6vw;
  bottom: -4vh;
  z-index: 5;
  width: min(1180px, 106vw);
  max-width: none;
  pointer-events: none;
  transform: translateY(var(--kelp-y));
  transform-origin: 55% 100%;
  animation: reefCurrent 8s ease-in-out infinite;
  filter: drop-shadow(0 -22px 34px rgba(0, 0, 0, 0.42));
}

.ocean-stage .abyss-copy {
  position: absolute;
  top: clamp(74px, 13vh, 140px);
  left: clamp(22px, 8vw, 120px);
  z-index: 4;
  width: min(600px, calc(100% - 48px));
  padding: 0;
  margin: 0;
  transform: translateY(var(--copy-y));
}

.ocean-stage .treasure-console {
  right: clamp(20px, 5vw, 78px);
  bottom: clamp(22px, 8vh, 78px);
  z-index: 7;
}

.treasure-chest::after {
  content: "key required";
  position: absolute;
  left: 50%;
  bottom: 100%;
  min-width: 132px;
  padding: 7px 10px 6px;
  border: 1px solid rgba(197, 143, 61, 0.44);
  background: rgba(2, 8, 7, 0.84);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

.ocean-stage.needs-key .treasure-chest::after,
.treasure-chest.needs-key::after,
.ocean-stage.is-wreck:not(.has-key) .treasure-chest:hover::after,
.ocean-stage.is-wreck:not(.has-key) .treasure-chest:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -6px);
}

@keyframes fishResourceSwim {
  from { transform: translateX(-280px) translateY(0) rotate(-2deg); }
  42% { transform: translateX(54vw) translateY(-24px) rotate(3deg); }
  to { transform: translateX(126vw) translateY(12px) rotate(-1deg); }
}

@keyframes swimmerBodySway {
  0%, 100% { transform: rotate(-0.5deg) translateY(0) scaleX(1); }
  50% { transform: rotate(0.45deg) translateY(-2px) scaleX(0.992); }
}

@keyframes swimmerTailBeat {
  0%, 100% { transform: rotate(calc(var(--tail-angle) * -1)) translateX(0); }
  50% { transform: rotate(var(--tail-angle)) translateX(var(--tail-shift)); }
}

@keyframes fishResourceReturn {
  from { transform: translateX(220px) translateY(0) scaleX(-1) rotate(2deg); }
  50% { transform: translateX(-54vw) translateY(20px) scaleX(-1) rotate(-3deg); }
  to { transform: translateX(-124vw) translateY(-12px) scaleX(-1) rotate(1deg); }
}

@keyframes ribbonFishCruise {
  from { transform: translateX(0) translateY(0) rotate(1deg); }
  45% { transform: translateX(78vw) translateY(22px) rotate(-1.8deg); opacity: 0.88; }
  to { transform: translateX(146vw) translateY(-8px) rotate(1deg); }
}

@keyframes lanternEscortReturn {
  from { transform: translateX(0) translateY(0) scaleX(-1) rotate(-2deg); }
  50% { transform: translateX(-58vw) translateY(-28px) scaleX(-1) rotate(2deg); }
  to { transform: translateX(-126vw) translateY(10px) scaleX(-1) rotate(-1deg); }
}

@keyframes abyssSpinePatrol {
  from { transform: translateX(0) translateY(0) scaleX(-1) rotate(-1deg); }
  42% { transform: translateX(-56vw) translateY(30px) scaleX(-1) rotate(1.5deg); opacity: 0.84; }
  to { transform: translateX(-132vw) translateY(-16px) scaleX(-1) rotate(-1deg); opacity: 0.62; }
}

@keyframes sharkResourcePass {
  from { transform: translateX(-760px) translateY(0); }
  45% { opacity: 0.9; }
  to { transform: translateX(150vw) translateY(34px); }
}

@keyframes pufferDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(22px, -16px, 0) rotate(3deg); }
}

@keyframes pufferInflateFrames {
  from { background-position: 0 50%; }
  to { background-position: 57.143% 50%; }
}

@keyframes pufferDeflateFrames {
  from { background-position: 57.143% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes pufferInflateSquash {
  0% { transform: scale(1) rotate(0deg); filter: saturate(1); }
  44% { transform: scale(1.08, 1.03) rotate(-1.8deg); filter: saturate(1.12); }
  100% { transform: scale(1.18, 1.12) rotate(1.4deg); filter: saturate(1.22) brightness(1.08); }
}

@keyframes pufferDeflateSquash {
  0% { transform: scale(1.18, 1.12) rotate(1.4deg); filter: saturate(1.22) brightness(1.08); }
  58% { transform: scale(1.06, 1.03) rotate(-1.4deg); filter: saturate(1.1); }
  100% { transform: scale(1) rotate(0deg); filter: saturate(1); }
}

@keyframes paintingInspect {
  from { opacity: 0; transform: scale(0.92) translateY(10px); filter: brightness(0.8); }
  62% { opacity: 1; transform: scale(1.018) translateY(0); filter: brightness(1.05); }
  to { opacity: 1; transform: scale(1) translateY(0); filter: brightness(1); }
}

@keyframes hiddenKeyGlint {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(117, 243, 73, 0.16)) drop-shadow(0 16px 34px rgba(0, 0, 0, 0.48)); }
  50% { filter: drop-shadow(0 0 24px rgba(117, 243, 73, 0.42)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55)); }
}

@keyframes chestDenied {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-8px); }
  46% { transform: translateX(8px); }
  70% { transform: translateX(-5px); }
}

@keyframes chestUnlock {
  from { background-position: 0 50%; }
  to { background-position: 80% 50%; }
}

@keyframes chestOpen {
  from { background-position: 80% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes mapPieceAssemble {
  0% {
    opacity: 0;
    transform: translate3d(var(--piece-x), var(--piece-y), 0) rotate(var(--piece-r)) scale(0.72);
    filter: blur(3px) brightness(0.84);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(calc(var(--piece-r) * -0.08)) scale(1.06);
    filter: blur(0) brightness(1.08);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter: blur(0) brightness(1);
  }
}

@keyframes mapStoryReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reefCurrent {
  0%, 100% { transform: translateY(var(--kelp-y)) skewX(0deg) rotate(0deg); }
  50% { transform: translateY(calc(var(--kelp-y) - 1.2vh)) skewX(-1.6deg) rotate(0.7deg); }
}

@keyframes reefParallaxCurrent {
  0%, 100% { transform: translateX(-50%) translateY(calc(var(--kelp-y) * 0.34)) skewX(0deg) rotate(0deg); }
  50% { transform: translateX(calc(-50% - 0.5vw)) translateY(calc(var(--kelp-y) * 0.34 - 0.6vh)) skewX(0.8deg) rotate(-0.35deg); }
}

@keyframes shardFloat {
  0%, 100% {
    transform: rotate(-10deg) translateY(0) scale(0.96);
    filter: drop-shadow(0 0 12px rgba(117, 243, 73, 0.2)) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42));
  }
  50% {
    transform: rotate(-3deg) translateY(-16px) scale(1.02);
    filter: drop-shadow(0 0 26px rgba(117, 243, 73, 0.4)) drop-shadow(0 22px 38px rgba(0, 0, 0, 0.5));
  }
}

@media (max-width: 1180px) {
  .treasure-map {
    grid-template-columns: 1fr;
  }

  .ocean-stage .abyss-copy {
    top: 84px;
  }
}

@media (max-width: 760px) {
  .chateau {
    min-height: 130vh;
  }

  .door-panel {
    background-size: 230% 100%;
  }

  .door-panel-left {
    background-position: 8% center;
  }

  .door-panel-right {
    background-position: 92% center;
  }

  .chateau.is-open .door-panel-left {
    transform: translateX(-88%) rotateY(-42deg);
  }

  .chateau.is-open .door-panel-right {
    transform: translateX(88%) rotateY(42deg);
  }

  .painting-hotspot {
    width: 72px;
    height: 104px;
  }

  .painting-hotspot-one {
    right: 7%;
    top: 19%;
  }

  .painting-hotspot-two {
    right: 31%;
    top: 38%;
  }

  .painting-hotspot-three {
    right: 47%;
    top: 29%;
  }

  .painting-viewer {
    top: 96px;
    right: 18px;
    bottom: auto;
  }

  .treasure-map {
    width: calc(100% - 24px);
    padding: 32px 22px;
  }

  .map-legend {
    grid-template-columns: 1fr;
  }

  .map-route li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
  }

  .ocean-scroll {
    min-height: 330vh;
  }

  .ocean-stage .abyss-copy {
    top: 42px;
    left: 18px;
    width: calc(100% - 36px);
  }

  .map-shard-one {
    right: 28px;
    bottom: 34vh;
    width: 118px;
  }

  .puffer-fish {
    top: 38%;
    left: 5%;
    width: 132px;
    height: 82px;
  }

  .abyss-key {
    left: 18px;
    bottom: 18vh;
    width: 84px;
  }

  .treasure-chest {
    right: 14px;
    bottom: 14vh;
    width: 220px;
    height: 132px;
  }

  .assembled-map {
    right: 12px;
    bottom: 41vh;
    grid-template-columns: 1fr;
    gap: 10px;
    width: calc(100% - 24px);
  }

  .map-pieces {
    width: 138px;
    height: 82px;
  }

  .map-piece {
    height: 72px;
  }

  .fish-one {
    width: 150px;
  }

  .fish-two {
    width: 120px;
  }

  .fish-three {
    top: 48%;
    width: 280px;
  }

  .fish-four {
    top: 62%;
    width: 128px;
  }

  .shark-one {
    width: 380px;
    bottom: 20%;
  }

  .reef-foreground {
    bottom: -2vh;
    width: 190vw;
  }

  .kelp-foreground {
    right: -52vw;
    width: 170vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swim-rig .rig-body,
  .swim-rig .rig-tail,
  .fish-one,
  .fish-two,
  .fish-three,
  .fish-four,
  .shark-one,
  .puffer-fish,
  .reef-foreground,
  .kelp-foreground,
  .ocean-rays,
  .bubble-field span {
    animation-duration: 0.001ms;
    animation-iteration-count: 1;
  }
}
