/* ==========================================================================
   Anchor Point — homepage
   One day on the coast, from first light to the aurora. Each section's
   kicker carries the in-game clock; the HUD clock follows the scroll.
   ========================================================================== */

/* shared media layer: poster picture + lazy video, always cover */
.media { position: absolute; inset: 0; overflow: hidden; }
.media > picture, .media > picture img, .media > video, .media > canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.media > video { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.media > video.is-playing { opacity: 1; }

/* ==========================================================================
   Boarding gate — first visit only. Choosing sound unlocks the audio
   context (browsers need a gesture) and lifts the gate.
   ========================================================================== */
.gate {
  position: fixed; inset: 0; z-index: 140; display: none; place-items: center; padding: 32px var(--gutter);
  background: radial-gradient(120% 90% at 50% 40%, #0b1626 0%, var(--ink-0) 62%);
  text-align: center; overflow: hidden;
}
.gate-on .gate { display: grid; }
.gate-on body { overflow: hidden; }
.gate-on .hero [data-reveal] { opacity: 0 !important; transform: translateY(26px) !important; }
.gate__fog {
  position: absolute; inset: -20%; opacity: .5; pointer-events: none;
  background:
    radial-gradient(40% 30% at 30% 60%, rgba(139, 157, 195, .18), transparent 70%),
    radial-gradient(35% 25% at 70% 40%, rgba(139, 157, 195, .14), transparent 70%),
    radial-gradient(50% 30% at 50% 85%, rgba(59, 142, 165, .12), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(-3%, 1%, 0) scale(1); } to { transform: translate3d(3%, -2%, 0) scale(1.08); } }
.gate__inner { position: relative; display: grid; justify-items: center; gap: 22px; max-width: 760px; }
.gate__studio { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--frost); }
.gate__studio img { width: 40px; height: 40px; }
.gate__logo { width: min(560px, 78vw); filter: drop-shadow(0 20px 50px rgba(227, 23, 26, .25)); }
.gate__line { font-family: var(--f-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); color: var(--mist); font-style: italic; }
.gate__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; }
.gate__hint { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 10px; }
.gate__hint svg { width: 16px; height: 16px; }
.gate__skip { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--frost); text-decoration: underline; text-underline-offset: 4px; }
.gate__skip:hover { color: var(--white); }
.gate.is-leaving { animation: gateOut 1.4s var(--ease-io) forwards; }
@keyframes gateOut { 0% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.gate.is-leaving .gate__inner { animation: gateInner 1.2s var(--ease-io) forwards; }
@keyframes gateInner { to { transform: translateY(-30px) scale(.96); opacity: 0; filter: blur(6px); } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  --hero-scale: 1.04;
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate; overflow: hidden; padding-top: var(--hud-h);
}
.hero .media { z-index: -2; }
.hero .media > picture img, .hero .media > video { object-position: 62% 50%; transform: scale(var(--hero-scale, 1.04)); transform-origin: 62% 60%; }
.hero__grade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 7, 11, .72) 0%, rgba(4, 7, 11, .35) 34%, rgba(4, 7, 11, 0) 60%),
    linear-gradient(180deg, rgba(4, 7, 11, .55) 0%, rgba(4, 7, 11, 0) 22%, rgba(4, 7, 11, 0) 55%, rgba(4, 7, 11, .9) 92%, var(--ink-0) 100%);
}
.hero__content { position: relative; padding-bottom: clamp(56px, 10vh, 120px); display: grid; justify-items: start; gap: 0; }
.hero__logo { margin: 22px 0 0; line-height: 0; }
.hero__logo img { width: clamp(280px, 40vw, 640px); height: auto; filter: drop-shadow(0 24px 60px rgba(0, 0, 0, .55)); }
.hero__line { margin-top: clamp(18px, 3vh, 30px); font-family: var(--f-display); font-size: clamp(2.3rem, 1.4rem + 3.4vw, 5rem); line-height: .95; letter-spacing: -.02em; color: var(--white); }
.hero__line em { font-style: italic; color: var(--amber); }
.hero__sub { margin-top: 18px; max-width: 54ch; font-size: var(--fs-lede); line-height: 1.55; color: #dfe5ef; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter); pointer-events: none;
}
.hero__foot a { pointer-events: auto; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mist); }
.scroll-cue span { position: relative; width: 1px; height: 38px; background: rgba(240, 242, 245, .2); overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--snow); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }
.hero__stats {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 10vh, 120px); z-index: 2;
  display: grid; gap: 14px; text-align: right;
}
.hero__stats div { display: grid; }
.hero__stats b { font-family: var(--f-display); font-weight: 400; font-size: 2.4rem; line-height: 1; color: var(--white); }
.hero__stats span { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--frost); }
@media (max-width: 1100px) { .hero__stats { display: none; } }
@media (max-width: 640px) {
  .hero .media > picture img, .hero .media > video { object-position: 72% 50%; }
  .hero__grade { background: linear-gradient(180deg, rgba(4, 7, 11, .45) 0%, rgba(4, 7, 11, .1) 30%, rgba(4, 7, 11, .82) 70%, var(--ink-0) 100%); }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__foot .concept-tag { max-width: 70%; font-size: .56rem; }
  .scroll-cue { font-size: 0; gap: 0; }
}

/* ==========================================================================
   The evening ritual — pinned, scroll-scrubbed morph
   ========================================================================== */
.ritual { position: relative; height: 340vh; background: var(--ink-0); }
.ritual__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.ritual__pin .media { z-index: -2; }
.ritual__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ritual__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 7, 11, .82) 0%, rgba(4, 7, 11, .42) 42%, rgba(4, 7, 11, .05) 70%),
              linear-gradient(180deg, var(--ink-0) 0%, rgba(4, 7, 11, 0) 16%, rgba(4, 7, 11, 0) 80%, var(--ink-0) 100%);
}
.ritual__beats { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(620px, 86vw); height: 60vh; }
.beat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; opacity: 0; }
.beat:first-child { opacity: 1; }
.beat__time { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); display: flex; align-items: center; gap: 12px; }
.beat__time::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid currentColor; box-shadow: inset 0 0 0 2px var(--ink-0), inset 0 0 0 6px currentColor; }
.beat__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-1); line-height: .94; letter-spacing: -.022em; color: var(--white); }
.beat__title em { font-style: italic; color: var(--amber); }
.beat__text { max-width: 44ch; font-size: var(--fs-lede); color: var(--mist); }
.ritual__facts {
  position: absolute; right: var(--gutter); bottom: clamp(36px, 8vh, 80px); display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end;
  max-width: min(720px, 90vw); opacity: 0;
}
.fact { padding: 16px 20px; min-width: 190px; }
.fact b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--white); }
.fact span { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--frost); }
.ritual__progress { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.ritual__progress i { width: 2px; height: 34px; background: rgba(240, 242, 245, .16); position: relative; overflow: hidden; }
.ritual__progress i::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: scaleY(var(--p, 0)); transform-origin: top; }
.no-scrub .ritual { height: auto; }
.no-scrub .ritual__pin { position: relative; height: auto; min-height: 100svh; }
.no-scrub .ritual__beats { position: relative; left: auto; top: auto; transform: none; height: auto; padding: 120px var(--gutter); display: grid; gap: 80px; }
.no-scrub .beat { position: relative; opacity: 1; }
.no-scrub .ritual__facts { position: relative; opacity: 1; right: auto; bottom: auto; padding: 0 var(--gutter) 80px; justify-content: flex-start; }
.no-scrub .ritual__progress { display: none; }
@media (max-width: 760px) {
  .ritual__shade { background: linear-gradient(180deg, var(--ink-0) 0%, rgba(4, 7, 11, .55) 18%, rgba(4, 7, 11, .3) 50%, rgba(4, 7, 11, .9) 82%, var(--ink-0) 100%); }
  .ritual__beats { top: 40%; }
  .ritual__facts { left: var(--gutter); right: var(--gutter); justify-content: flex-start; }
  .fact { min-width: 0; flex: 1 1 140px; padding: 12px 14px; }
  .fact b { font-size: 1.5rem; }
  .ritual__progress { display: none; }
}

/* ==========================================================================
   Section heads
   ========================================================================== */
.head { display: grid; gap: 22px; }
.head .title, .head .display { max-width: 15ch; }
.head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 28px 64px; }
.head--split .lede { justify-self: end; }
@media (max-width: 960px) { .head--split { grid-template-columns: 1fr; } .head--split .lede { justify-self: start; } }

/* ==========================================================================
   The coast — horizontal voyage through six of the ten grounds
   ========================================================================== */
.coast { position: relative; background: var(--ink-0); }
.coast__intro { padding-block: clamp(110px, 16vh, 180px) clamp(48px, 7vh, 80px); }
.coast__pin { position: relative; height: 100svh; overflow: hidden; }
.coast__track { display: flex; height: 100%; gap: 0; will-change: transform; }
.zone {
  position: relative; flex: 0 0 100vw; height: 100%; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; padding: 0 var(--gutter) clamp(90px, 13vh, 140px);
}
.zone .media { z-index: -2; }
.zone .media > picture img, .zone .media > video { transform: scale(1.08); transition: transform 2.4s var(--ease-out); }
.zone.is-active .media > picture img, .zone.is-active .media > video { transform: scale(1.02); }
.zone::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 7, 11, .45) 0%, rgba(4, 7, 11, 0) 25%, rgba(4, 7, 11, .15) 50%, rgba(4, 7, 11, .9) 100%),
              linear-gradient(90deg, rgba(4, 7, 11, .55), rgba(4, 7, 11, 0) 60%);
}
.zone__body { display: grid; gap: 18px; max-width: 760px; }
.zone__code { display: flex; flex-wrap: wrap; gap: 8px; }
.zone__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 1.6rem + 4vw, 6.2rem); line-height: .92; letter-spacing: -.02em; color: var(--white); text-wrap: balance; }
.zone__text { max-width: 48ch; font-size: var(--fs-lede); color: #dfe5ef; text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.zone__stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 4px; }
.zone__stats div { display: grid; gap: 4px; }
.zone__stats dt { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--frost); }
.zone__stats dd { font-family: var(--f-sans); font-stretch: 85%; font-size: 1.05rem; font-weight: 600; color: var(--white); }
.hazard { display: inline-flex; gap: 4px; vertical-align: middle; }
.hazard i { width: 14px; height: 4px; border-radius: 2px; background: rgba(240, 242, 245, .2); }
.hazard i.on { background: var(--amber); }
.hazard[data-level="3"] i.on, .hazard[data-level="4"] i.on { background: var(--red-hot); }
.zone__fish { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.zone__fish li {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 14px 3px 6px; border-radius: 999px;
  background: rgba(4, 7, 11, .55); border: 1px solid var(--line); font-size: .82rem; color: var(--snow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.zone__fish img { width: 52px; height: 26px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.zone__fish li[data-rarity="Legendary"] { border-color: var(--q-legendary); box-shadow: 0 0 18px -4px var(--q-legendary); }
.zone__fish li[data-rarity="Rare"] { border-color: rgba(255, 215, 0, .5); }
.zone__index {
  position: absolute; top: calc(var(--hud-h) + 26px); right: var(--gutter);
  font-family: var(--f-display); font-size: clamp(5rem, 12vw, 11rem); line-height: .8; color: rgba(240, 242, 245, .08);
  font-variant-numeric: tabular-nums; pointer-events: none;
}
.coast__route {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; z-index: 3;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--frost);
}
.coast__line { position: relative; height: 1px; background: rgba(240, 242, 245, .2); }
.coast__line i { position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--amber); transform-origin: left; transform: scaleX(var(--p, 0)); }
.coast__line b { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 181, 71, .2); }
.no-hscroll .coast__pin { height: auto; }
.no-hscroll .coast__track { flex-direction: column; }
.no-hscroll .zone { flex-basis: auto; min-height: 92svh; }
.no-hscroll .coast__route { display: none; }
@media (max-width: 760px) {
  .zone { padding-bottom: 96px; }
  .zone__stats { gap: 16px 22px; }
  .zone__fish li { font-size: .74rem; }
  .zone__index { top: calc(var(--hud-h) + 12px); }
}

/* ==========================================================================
   The chart room — the real 64 km grid in WebGL
   ========================================================================== */
.chart { position: relative; background: radial-gradient(120% 80% at 70% 50%, #0b1a2b 0%, var(--ink-0) 70%); overflow: hidden; }
.chart__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.chart__copy { display: grid; gap: 22px; align-content: center; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 8px; list-style: none; padding: 0; }
.legend button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; text-align: left;
  font-size: .82rem; color: var(--mist); border: 1px solid transparent; transition: background-color .25s, border-color .25s, color .25s;
}
.legend button:hover, .legend button.is-active { background: rgba(240, 242, 245, .06); border-color: var(--line); color: var(--white); }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.legend small { margin-left: auto; font-family: var(--f-mono); font-size: .66rem; color: var(--dim); }
.chart__stage {
  position: relative; aspect-ratio: 1 / 1; max-height: 86vh; width: 100%; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: #06101b; cursor: grab; touch-action: pan-y;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .6), var(--shadow-2);
}
.chart__stage:active { cursor: grabbing; }
.chart__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart__stage > img.chart__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chart__labels { position: absolute; inset: 0; pointer-events: none; }
.port-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; gap: 4px; transition: opacity .3s;
}
.port-label span {
  padding: 4px 9px; border-radius: 4px; background: rgba(4, 7, 11, .78); border: 1px solid rgba(255, 181, 71, .45);
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber);
}
.port-label i { width: 1px; height: 18px; background: linear-gradient(var(--amber), transparent); }
.port-label.is-main span { background: var(--red); border-color: transparent; color: var(--white); }
.chart__card {
  position: absolute; left: 18px; bottom: 18px; width: min(340px, calc(100% - 36px)); padding: 18px 20px; pointer-events: none;
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.chart__card.is-on { opacity: 1; transform: none; }
.chart__card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; line-height: 1.05; color: var(--white); margin: 6px 0 10px; }
.chart__card p { font-size: .86rem; color: var(--mist); }
.chart__card .fishline { margin-top: 10px; font-size: .8rem; color: var(--snow); }
.chart__tools { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.chart__tools button {
  height: 34px; padding: 0 12px; border-radius: 6px; background: rgba(4, 7, 11, .7); border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist);
}
.chart__tools button[aria-pressed="true"], .chart__tools button:hover { color: var(--white); border-color: var(--line-strong); }
.chart__hint { position: absolute; top: 18px; left: 18px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.chart__scale { position: absolute; right: 18px; bottom: 18px; display: grid; gap: 6px; justify-items: end; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; color: var(--frost); }
.chart__scale i { width: 96px; height: 6px; border: 1px solid var(--frost); border-top: 0; }
@media (max-width: 960px) { .chart__grid { grid-template-columns: 1fr; } .chart__stage { aspect-ratio: 4 / 5; } }

/* ==========================================================================
   The field guide — paper, plates and ink
   ========================================================================== */
.paper {
  position: relative; background-color: var(--paper); color: var(--paper-ink); isolation: isolate;
  background-image:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .4), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23p)'/%3E%3C/svg%3E");
}
.paper::before { /* deckle shadow at the edges */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  box-shadow: inset 0 0 160px rgba(120, 95, 55, .28);
}
.paper .kicker { color: var(--paper-dim); }
.paper .kicker b { color: var(--paper-ink); }
.paper .title, .paper .display { color: var(--paper-ink); }
.paper .title em, .paper .display em { color: #8a3b1e; }
.paper .lede { color: #4a443a; }
.paper-edge { position: absolute; left: 0; right: 0; height: 28px; z-index: 2; pointer-events: none; color: var(--paper); }
.paper-edge--top { top: -27px; }
.paper-edge--bottom { bottom: -27px; transform: scaleY(-1); }
.paper-edge svg { width: 100%; height: 100%; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.filters button {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--paper-line); color: var(--paper-dim);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; transition: all .25s;
}
.filters button:hover { color: var(--paper-ink); border-color: rgba(36, 34, 29, .4); }
.filters button[aria-pressed="true"] { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.filters .count { opacity: .6; margin-left: 4px; }

.plates { margin-top: clamp(36px, 5vh, 56px); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--paper-line); border-left: 1px solid var(--paper-line); }
.plate-card {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; text-align: left; padding: 20px 20px 18px;
  border-right: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); color: var(--paper-ink);
  transition: background-color .35s; min-height: 270px;
}
.plate-card:hover { background: rgba(255, 255, 255, .35); }
.plate-card__no { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--paper-dim); }
.plate-card__art { display: grid; place-items: center; min-height: 120px; }
.plate-card__art img { width: 88%; max-height: 130px; object-fit: contain; mix-blend-mode: multiply; transition: transform .8s var(--ease-out); }
.plate-card:hover .plate-card__art img { transform: scale(1.06) rotate(-1.5deg); }
.plate-card__name { font-family: var(--f-display); font-size: 1.55rem; line-height: 1.02; }
.plate-card__name em { font-style: italic; }
.plate-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .06em; color: var(--paper-dim); }
.rarity { display: inline-flex; align-items: center; gap: 6px; }
.rarity::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--r, #8f8a7c); }
.rarity[data-r="Uncommon"] { --r: #3f7f5c; } .rarity[data-r="Rare"] { --r: #b8860b; } .rarity[data-r="Legendary"] { --r: #b0249d; }
.plate-dialog { width: min(1080px, 94vw); }
.plate-dialog[open] { animation: rise .55s var(--ease-out); }
.plate-sheet { position: relative; max-height: 90vh; overflow: auto; border-radius: 16px; padding: clamp(24px, 4vw, 48px); }
.plate-sheet__top { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.plate-sheet__art img { width: 100%; mix-blend-mode: multiply; }
.plate-sheet h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); line-height: .95; color: var(--paper-ink); margin: 10px 0 16px; }
.plate-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.plate-facts dt { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-dim); }
.plate-facts dd { font-size: .95rem; color: var(--paper-ink); font-weight: 500; }
.variants { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.variant { padding: 12px; border: 1px solid var(--paper-line); border-radius: 10px; display: grid; gap: 6px; background: rgba(255, 255, 255, .25); }
.variant img { width: 100%; height: 70px; object-fit: contain; mix-blend-mode: multiply; }
.variant b { font-size: .82rem; line-height: 1.2; }
.variant small { font-family: var(--f-mono); font-size: .6rem; color: var(--paper-dim); letter-spacing: .04em; }
.variant .cls { justify-self: start; font-family: var(--f-mono); font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; background: rgba(36, 34, 29, .08); }
.plate-dialog .dialog-close { background: var(--paper-ink); color: var(--paper); border: 0; }
@media (max-width: 760px) { .plate-sheet__top { grid-template-columns: 1fr; } }

/* ==========================================================================
   The fleet — a real hull from the game on a live sea
   ========================================================================== */
.fleet { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; background: #071019; }
.fleet__stage { position: absolute; inset: 0; z-index: -1; }
.fleet__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fleet__stage .fleet__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity 1.2s; }
.fleet__stage.is-live .fleet__poster { opacity: 0; }
.fleet::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(4, 7, 11, .78) 0%, rgba(4, 7, 11, .2) 45%, rgba(4, 7, 11, 0) 70%), linear-gradient(180deg, var(--ink-0) 0%, transparent 18%, transparent 80%, var(--ink-0)); }
.fleet .container { position: relative; padding-block: clamp(110px, 16vh, 170px); display: grid; gap: 28px; justify-items: start; }
.tiers { display: flex; gap: 6px; flex-wrap: wrap; }
.tiers button {
  display: grid; justify-items: start; gap: 2px; min-width: 112px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(4, 7, 11, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: all .3s; text-align: left;
}
.tiers button b { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .16em; color: var(--frost); font-weight: 500; }
.tiers button span { font-family: var(--f-sans); font-stretch: 85%; font-size: .92rem; font-weight: 600; color: var(--snow); }
.tiers button[aria-selected="true"] { border-color: var(--amber); background: rgba(255, 181, 71, .1); }
.tiers button[aria-selected="true"] b { color: var(--amber); }
.hulls { display: flex; gap: 6px; flex-wrap: wrap; min-height: 34px; }
.hulls button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .76rem; color: var(--mist); background: rgba(4, 7, 11, .4); }
.hulls button[aria-pressed="true"] { color: var(--ink-0); background: var(--snow); border-color: var(--snow); }
.spec { width: min(560px, 100%); padding: 22px 24px; display: grid; gap: 16px; }
.spec__name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.spec__name h3 { font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--white); }
.spec__name span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; color: var(--frost); text-transform: uppercase; }
.spec p { font-size: .92rem; color: var(--mist); }
.spec__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.spec__grid div { display: grid; gap: 4px; }
.spec__grid dt { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--frost); }
.spec__grid dd { font-family: var(--f-mono); font-size: 1.02rem; color: var(--white); }
.spec__bar { height: 3px; background: rgba(240, 242, 245, .12); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.spec__bar i { display: block; height: 100%; background: var(--amber); width: var(--w, 0%); transition: width .9s var(--ease-out); }
.ladder { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; color: var(--frost); }
.ladder b { color: var(--snow); font-weight: 500; }
.ladder i { width: 18px; height: 1px; background: var(--line-strong); }
.fleet__hint { position: absolute; right: var(--gutter); bottom: 28px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.fleet__loading { position: absolute; right: var(--gutter); top: calc(var(--hud-h) + 24px); font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--frost); }
@media (max-width: 760px) {
  .fleet__stage { position: relative; inset: auto; height: 60svh; }
  .fleet::after { background: linear-gradient(180deg, var(--ink-0) 0%, transparent 12%, transparent 44%, var(--ink-0) 60%); }
  .fleet .container { padding-block: 0 96px; margin-top: -9svh; }
  .fleet__hint { display: none; }
  .fleet__loading { top: calc(var(--hud-h) + 12px); }
  .spec__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Read the sky — the weather dial
   ========================================================================== */
.weather { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; }
.weather__media { position: absolute; inset: 0; z-index: -2; }
.weather__layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease-io); }
.weather__layer.is-on { opacity: 1; }
.weather__layer picture img, .weather__layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.weather__layer video { opacity: 0; transition: opacity 1s; }
.weather__layer video.is-playing { opacity: 1; }
.weather::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--ink-0) 0%, rgba(4, 7, 11, 0) 20%, rgba(4, 7, 11, .1) 50%, rgba(4, 7, 11, .9) 88%, var(--ink-0) 100%), linear-gradient(90deg, rgba(4, 7, 11, .6), transparent 55%); }
.weather .container { padding-block: 0 clamp(70px, 11vh, 120px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.sky-dial { display: grid; gap: 18px; justify-items: end; }
.sky-states { display: flex; gap: 6px; padding: 6px; border-radius: 999px; }
.sky-states button {
  display: grid; justify-items: center; gap: 4px; width: 78px; padding: 10px 0 8px; border-radius: 999px; color: var(--mist);
  font-family: var(--f-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; transition: all .3s;
}
.sky-states button svg { width: 22px; height: 22px; }
.sky-states button:hover { color: var(--white); }
.sky-states button[aria-pressed="true"] { background: var(--snow); color: var(--ink-0); }
.readout { width: min(460px, 100%); padding: 20px 22px; display: grid; gap: 14px; }
.readout__top { display: flex; justify-content: space-between; align-items: baseline; }
.readout__top h3 { font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--white); }
.sev { display: inline-flex; gap: 4px; }
.sev i { width: 8px; height: 8px; border-radius: 50%; background: rgba(240, 242, 245, .2); transition: background-color .4s; }
.sev i.on { background: var(--amber); }
.sev.is-high i.on { background: var(--red-hot); animation: pulse 2s infinite; }
.readout__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.readout__grid div { display: grid; gap: 4px; }
.readout__grid dt { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--frost); }
.readout__grid dd { font-family: var(--f-mono); font-size: clamp(.95rem, .85rem + .4vw, 1.15rem); color: var(--white); }
.readout__grid dd.up { color: #8fe3a4; } .readout__grid dd.down { color: #ffb0a0; }
.readout p { font-size: .88rem; color: var(--mist); }
@media (max-width: 960px) {
  .weather .container { grid-template-columns: 1fr; }
  .sky-dial { justify-items: stretch; }
  .sky-states { justify-content: space-between; overflow-x: auto; }
  .sky-states button { width: auto; flex: 1; min-width: 60px; }
}

/* ==========================================================================
   The harbor — community
   ========================================================================== */
.harbor { position: relative; overflow: hidden; isolation: isolate; }
.harbor > .media { z-index: -2; }
.harbor::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--ink-0) 0%, rgba(4, 7, 11, .35) 22%, rgba(4, 7, 11, .45) 60%, var(--ink-0) 100%); }
.harbor__grid { margin-top: clamp(44px, 7vh, 72px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: stretch; }
.pillars { display: grid; gap: 14px; }
.pillar { padding: 22px 24px; display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.pillar svg { width: 46px; height: 46px; color: var(--amber); }
.pillar h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; line-height: 1.05; color: var(--white); }
.pillar p { margin-top: 6px; font-size: .94rem; color: var(--mist); }
.radio { display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.radio__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.radio__ch { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; color: var(--amber); display: flex; align-items: center; gap: 10px; }
.radio__ch i { width: 8px; height: 8px; border-radius: 50%; background: #5cff8a; box-shadow: 0 0 10px #5cff8a; animation: pulse 2s infinite; }
.radio__note { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.radio__feed { position: relative; padding: 14px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 330px; max-height: 360px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
.radio__msg { display: grid; gap: 2px; animation: rise .5s var(--ease-out); }
.radio__msg b { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; color: var(--sea); font-weight: 500; }
.radio__msg b[data-c="1"] { color: var(--amber); } .radio__msg b[data-c="2"] { color: #b48cff; } .radio__msg b[data-c="3"] { color: #7fd1a4; } .radio__msg b[data-c="4"] { color: #ff9fb0; }
.radio__msg span { font-size: .9rem; color: var(--snow); }
.radio__msg.is-system span { font-family: var(--f-mono); font-size: .72rem; color: var(--q-legendary); letter-spacing: .04em; }
.radio__foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.discord-count { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; color: var(--frost); }
.discord-count b { color: var(--white); font-weight: 500; }
.harbor__inset { position: relative; margin-top: 22px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; border: 1px solid var(--line); }
.harbor__inset .media > video, .harbor__inset .media > picture img { object-position: 50% 40%; }
.harbor__inset figcaption { position: absolute; left: 18px; bottom: 14px; right: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--f-display); font-size: 1.5rem; color: var(--white); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
@media (max-width: 960px) { .harbor__grid { grid-template-columns: 1fr; } .harbor__inset { aspect-ratio: 16 / 10; } }

/* ==========================================================================
   The manifest — everything in the hold, on paper
   ========================================================================== */
.manifest .ledger { margin-top: clamp(36px, 5vh, 56px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--paper-ink); }
.ledger__row { padding: 22px 18px 20px 0; border-bottom: 1px solid var(--paper-line); display: grid; gap: 4px; }
.ledger__row:not(:nth-child(4n)) { border-right: 1px solid var(--paper-line); }
.ledger__row:not(:nth-child(4n + 1)) { padding-left: 18px; }
.ledger__n { font-family: var(--f-display); font-size: clamp(2.6rem, 1.8rem + 2.4vw, 4.2rem); line-height: .95; color: var(--paper-ink); font-variant-numeric: lining-nums tabular-nums; }
.ledger__n small { font-size: .45em; color: var(--paper-dim); margin-left: 2px; }
.ledger__l { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-dim); }
.ledger__d { font-size: .86rem; color: #4a443a; margin-top: 6px; }
.systems { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; list-style: none; padding: 0; }
.systems li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--paper-line); font-size: .95rem; }
.systems li::before { content: "✓"; font-family: var(--f-mono); font-size: .8rem; color: #8a3b1e; }
.systems li small { margin-left: auto; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-dim); white-space: nowrap; }
.manifest__time { margin-top: 44px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 24px 28px; border: 2px solid var(--paper-ink); border-radius: 4px; }
.manifest__time b { font-family: var(--f-display); font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: .9; }
.manifest__time p { font-size: 1rem; color: #3e392f; max-width: 70ch; }
@media (max-width: 960px) {
  .manifest .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger__row:not(:nth-child(4n)) { border-right: 0; }
  .ledger__row:nth-child(odd) { border-right: 1px solid var(--paper-line) !important; }
  .ledger__row:not(:nth-child(4n + 1)) { padding-left: 0; }
  .ledger__row:nth-child(even) { padding-left: 18px; }
  .systems { grid-template-columns: 1fr; }
  .manifest__time { grid-template-columns: 1fr; }
}

/* ==========================================================================
   The shipyard — built in the open
   ========================================================================== */
.shipyard { background: radial-gradient(90% 60% at 20% 0%, #0b1726, var(--ink-0) 60%); }
.timeline { position: relative; margin-top: clamp(48px, 7vh, 80px); display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: linear-gradient(90deg, var(--amber) 0%, var(--amber) 52%, rgba(240, 242, 245, .18) 60%); }
.mile { position: relative; padding: 42px 18px 0 0; display: grid; gap: 8px; align-content: start; }
.mile::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--ink-0); border: 2px solid rgba(240, 242, 245, .3); }
.mile.is-done::before { background: var(--amber); border-color: var(--amber); }
.mile.is-now::before { background: var(--ink-0); border-color: var(--amber); box-shadow: 0 0 0 6px rgba(255, 181, 71, .18); animation: pulseAmber 2s infinite; }
@keyframes pulseAmber { 50% { box-shadow: 0 0 0 11px rgba(255, 181, 71, 0); } }
.mile__when { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--frost); }
.mile.is-now .mile__when { color: var(--amber); }
.mile h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.55rem; line-height: 1.04; color: var(--white); }
.mile p { font-size: .84rem; color: var(--mist); }
.mile ul { list-style: none; padding: 0; display: grid; gap: 4px; margin-top: 4px; }
.mile li { font-size: .78rem; color: var(--frost); padding-left: 14px; position: relative; }
.mile li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--amber); }
.mile.is-later { opacity: .75; }
.mile.is-later h3 { color: var(--mist); }
.regions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.regions span { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .08em; padding: 3px 7px; border-radius: 3px; border: 1px solid var(--line); color: var(--mist); }
.journal-row { margin-top: clamp(64px, 9vh, 110px); }
.journal-row .cards { margin-top: 26px; }
.journal-row .card { min-height: 380px; }
@media (max-width: 1180px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--amber) 0%, var(--amber) 55%, rgba(240, 242, 245, .18) 62%); }
  .mile { padding: 0 0 0 40px; }
  .mile::before { top: 4px; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--ink-0); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 18px; align-items: center; padding: 24px 0;
  font-family: var(--f-display); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); line-height: 1.15; color: var(--white);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform .45s var(--ease-out), background-color .3s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--snow); transform: translate(-50%, -50%); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .45s var(--ease-out); }
.qa[open] summary i { background: var(--red); border-color: var(--red); }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.qa__a { padding: 0 48px 26px 0; color: var(--mist); font-size: 1rem; line-height: 1.7; max-width: 70ch; }
@media (max-width: 960px) { .faq__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Final call
   ========================================================================== */
.final { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.final > .media { z-index: -2; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--ink-0) 0%, rgba(4, 7, 11, .2) 22%, rgba(4, 7, 11, .3) 60%, rgba(4, 7, 11, .92) 100%), linear-gradient(90deg, rgba(4, 7, 11, .7), transparent 60%); }
.final .container { display: grid; gap: 26px; justify-items: start; padding-block: 140px; }
.final .display { max-width: 12ch; }
.perks { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.perks li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; background: rgba(4, 7, 11, .45); border: 1px solid var(--line); font-size: .88rem; color: var(--snow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.perks li svg { width: 16px; height: 16px; color: var(--amber); }
.final__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--snow); background: rgba(4, 7, 11, .3); transition: all .3s; }
.socials a:hover { background: var(--snow); color: var(--ink-0); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
