/* Ringtail Raiders: the voyage. One sea and one ship. The stage (the water, the dotted route, the quay, the ship's
   canvas and its range rings) is fixed behind the page and the page scrolls past it; each lane's node slides under
   the ship. Lanes sit beside the ship on wide screens and over the sea on phones. The fog bank at the end
   rolls over everything. */

body.rr { background: #2FB8CC; color: #fff; font-family: var(--game-body); }
body.rr a:hover { color: var(--gold); }
.later { display: inline-block; padding: 2px 8px; border: 2px solid var(--gold); border-radius: 6px; color: var(--gold);
  font: 400 var(--fs-label)/1.3 var(--game); letter-spacing: .04em; vertical-align: middle; text-shadow: none; white-space: nowrap; }

/* where the ship sits (the stage script sets these to the pixel) */
.voyage { position: relative; overflow-x: clip; --ship-x: 74vw; --gap: 18svh; --z: 1; }
@media (min-width: 900px) and (min-aspect-ratio: 5/4) { .voyage { --ship-x: 69vw; --gap: 24vh; } }
/* big screens: the words and panels grow with the screen (the stage script fits the column to the zoom) */
@media (min-width: 1680px) and (min-aspect-ratio: 5/4) { .voyage { --z: 1.1; } }
@media (min-width: 1900px) and (min-aspect-ratio: 5/4) { .voyage { --z: 1.18; } }
@media (min-width: 2400px) and (min-aspect-ratio: 5/4) { .voyage { --z: 1.32; } }

/* ---------------------------------------------------------------- the stage */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #2FB8CC; pointer-events: none; }
.stage .flow { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.stage .tile { position: absolute; left: -30vw; right: -30vw; top: -30vh; bottom: calc(-30vh - 2 * var(--tile, 416px));
  background: url("../img/zone-home.webp") 0 0 / var(--tile, 416px) var(--tile, 416px) repeat;
  animation: flow var(--flow, 6s) linear infinite; will-change: transform; }
.stage.moored .tile, .lite .stage .tile { animation-play-state: paused; }
/* the dotted route and the quay belong to the sea: the stage script moves them with the water */
.route { position: fixed; z-index: 1; left: 0; top: 0; width: 16px; height: 100lvh; overflow: hidden; opacity: .9; pointer-events: none;
  transform: translateX(calc(var(--ship-x) - 8px));
  /* the way already sailed (behind the ship) is faint, the way ahead is bright */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.3) 0, rgba(0,0,0,.3) calc(var(--ship-y, 50vh) - 160px), #000 var(--ship-y, 50vh));
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.3) 0, rgba(0,0,0,.3) calc(var(--ship-y, 50vh) - 160px), #000 var(--ship-y, 50vh)); }
.route i { position: absolute; left: 0; top: 0; width: 16px; height: calc(100lvh + 32px); background: url("../img/dot-43.webp") center top / 16px 16px repeat-y;
  transform: translateY(45vh); will-change: transform; }
.quay { display: none; }
.ship-canvas { position: fixed; left: 0; top: 0; z-index: 2; width: 100vw; height: 100lvh; pointer-events: none; }
.rings { position: fixed; left: 0; top: 0; z-index: 2; width: 100vw; height: 100lvh; overflow: visible; pointer-events: none; }
.rings .reach { fill: var(--rc, #FF4A2E); fill-opacity: .2; stroke: var(--rc, #FF4A2E); stroke-width: 4; stroke-dasharray: 14 10; }
.rings .mount { fill: none; stroke: #fff; stroke-width: 4; animation: sel 1.2s ease-in-out infinite; }
.rings .mark { fill: none; stroke: var(--gold); stroke-width: 4; animation: sel 0.9s ease-in-out infinite; transition: opacity .2s;
  filter: drop-shadow(0 0 2px rgba(14,21,38,.6)); }
@keyframes sel { 50% { stroke-opacity: .3; } }

/* everything readable sits above the stage; the nodes and the quay sit under the ship */
.hero-rr, .lane { position: relative; }
.hero-rr .copy, .scroll-cue, .lane-head, .lane .panel, .watch-window { position: relative; z-index: 3; }

/* ---------------------------------------------------------------- hero */
.hero-rr { min-height: calc(100svh - 64px); }
.hero-rr .copy { padding: 64px var(--gutter) 0; display: grid; justify-items: start; gap: 10px; pointer-events: none; }
.hero-rr .copy > * { pointer-events: auto; }
.hero-rr .logo-stack { position: relative; width: min(44vw, 210px); will-change: transform; }
.hero-rr .logo { width: 100%; height: auto; filter: drop-shadow(0 5px 0 rgba(14,21,38,.28)); }
.hero-rr .raccoon { position: absolute; width: 35.3%; left: 65.5%; top: -65.5%; height: auto; filter: drop-shadow(2px 4px 0 rgba(14,21,38,.25)); will-change: transform; }
.hero-rr h1 { font-size: min(var(--fs-d1), 8.6vw); line-height: 0.98; }
.hero-rr h1 span { display: block; white-space: nowrap; }
.hero-rr .pitch { display: none; }
.hero-rr .status-line { font: 800 var(--fs-body) var(--game-body); color: var(--gold); text-shadow: 1px 0 0 var(--rr-ink), -1px 0 0 var(--rr-ink), 0 -1px 0 var(--rr-ink), 0 1px 0 var(--rr-ink), 0 0 6px rgba(14,21,38,.8); }
.hero-rr .hero-cta { display: none; }
.scroll-cue { position: absolute !important; left: 50%; bottom: 14px; transform: translateX(-50%); font: 400 var(--fs-small) var(--game); letter-spacing: .08em;
  color: #fff; text-shadow: 1px 0 0 var(--rr-ink), -1px 0 0 var(--rr-ink), 0 -1px 0 var(--rr-ink), 0 2px 0 var(--rr-ink); }
.scroll-cue::after { content: ""; display: block; width: 14px; height: 14px; margin: 6px auto 0; border-right: 4px solid #fff; border-bottom: 4px solid #fff;
  transform: rotate(45deg); filter: drop-shadow(0 2px 0 var(--rr-ink)); animation: cue 1.4s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(6px) rotate(45deg); } }
.watch { display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; color: #fff; font: 400 var(--fs-label) var(--game); cursor: pointer; text-shadow: 0 2px 0 var(--rr-ink); }
.watch-disc { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #2F6FD6; border: 3px solid var(--rr-ink); box-shadow: inset 0 -5px 0 rgba(0,0,0,.22), 0 3px 0 var(--rr-ink); }
.watch-disc img { width: 20px; margin-left: 3px; }
.watch:hover .watch-disc { background: #3A7DE6; }
.watch .long { display: none; }

/* ---------------------------------------------------------------- lanes */
.lane { padding: var(--gap) var(--gutter) 0; }
.lane .node { position: absolute; z-index: 1; left: var(--ship-x); top: calc(var(--gap) + 12px); width: 60px; height: 60px; transform: translate(-50%, -50%);
  transition: opacity .35s; }
.voyage.at-quay .lane .node { opacity: 0; }
.lane .node img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.lane .node .done { opacity: 0; transform: scale(.4); inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.lane[data-secured] .node .done { opacity: 1; transform: none; }
.lane[data-secured] .node .next { opacity: 0; transform: scale(1.5); }
.lane-head { position: relative; display: grid; justify-items: start; gap: 6px; max-width: calc(var(--ship-x) - 64px - var(--gutter)); }
.lane-head::before { content: ""; position: absolute; z-index: -1; inset: -28px -48px -28px -72px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(8,16,30,.26), rgba(8,16,30,.12) 62%, rgba(8,16,30,0)); pointer-events: none; }
.lane-n { font: 400 var(--fs-d4) var(--game); letter-spacing: .14em; color: var(--gold);
  text-shadow: 0 2px 0 var(--rr-ink), 1.5px 0 0 var(--rr-ink), -1.5px 0 0 var(--rr-ink), 0 -1.5px 0 var(--rr-ink), 1px 1px 0 var(--rr-ink), -1px 1px 0 var(--rr-ink), 1px -1px 0 var(--rr-ink), -1px -1px 0 var(--rr-ink); }
.lane-head h2 { font-size: min(var(--fs-d1), 9.2vw); line-height: .96; }
.lane-head .kicker, .lane-head .more, .hero-rr .pitch, .hero-rr .watch { --o: var(--rr-ink);
  text-shadow: 0 1.5px 0 var(--o), 1px 0 0 var(--o), -1px 0 0 var(--o), 0 -1px 0 var(--o), 0 0 8px rgba(14,21,38,.7); }
.lane-head .kicker { max-width: 24em; font: 800 var(--fs-body)/1.4 var(--game-body); }
.lane-head .more { margin-top: 4px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: #fff; font: 800 var(--fs-body)/1.4 var(--game-body); text-decoration: none; }
.lane-head .more .nw { white-space: nowrap; }
.lane-head .more .arr { display: inline-block; width: 18px; height: 18px; margin-left: 7px; vertical-align: -3px; filter: drop-shadow(0 1px 0 var(--rr-ink)); transition: transform .15s; }
.lane-head .more:hover { color: var(--gold); }
.lane-head .more:hover .arr { transform: translateX(3px); }
/* a lane arrives: its words and panel rise in (once) */
.js .lane-head, .js .lane .panel { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.js .lane-head { transition-delay: .05s; }
.js .lane .panel { transition-delay: .18s; }
.js .lane.in .lane-head, .js .lane.in .panel { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- panels: the game's navy panel */
.panel { position: relative; margin-top: 22px; padding: 20px 18px 22px; color: #fff;
  background: linear-gradient(180deg, #2A3D66 0%, #22345A 42%, #1B2846 100%);
  border: 3px solid var(--rr-ink); border-radius: 22px; box-shadow: 0 6px 0 rgba(9,16,29,.45), 0 20px 40px -12px rgba(9,16,29,.35); }
.panel::before { content: ""; position: absolute; top: 4px; left: 22px; right: 22px; height: 3px; border-radius: 3px; background: rgba(150,170,210,.42); pointer-events: none; }
.panel-k { margin-bottom: 14px; font: 400 var(--fs-d3)/1.1 var(--game); color: #fff; letter-spacing: .01em; }
.panel h3 { font: 400 var(--fs-d3)/1.1 var(--game); }
.panel .lede, .panel .caption, .panel .also { font: 700 var(--fs-body)/1.55 var(--game-body); color: #DCE6F7; }

/* 1: pick a gun */
.arm .cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.arm .cards button { padding: 0; border: 0; background: none; cursor: pointer; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.arm .cards button img { width: 100%; height: auto; filter: drop-shadow(0 4px 0 rgba(14,21,38,.35)); }
.arm .cards button:hover { transform: translateY(-4px); }
.arm .cards button[aria-pressed=true] { transform: translateY(-8px) scale(1.05); }
.arm .cards button[aria-pressed=true] img { filter: drop-shadow(0 0 3px var(--gold)) drop-shadow(0 0 3px var(--gold)) drop-shadow(0 6px 0 rgba(14,21,38,.35)); }
.arm .cards button:focus-visible { outline-offset: 4px; border-radius: 10px; }
.plan { position: relative; aspect-ratio: 4 / 3; margin: 0 0 16px; overflow: hidden; border: 3px solid var(--rr-ink); border-radius: 14px;
  background: #2FB8CC url("../img/zone-home.webp") var(--tx, 0) var(--ty, 0) / var(--pt, 148px) var(--pt, 148px) repeat;
  transition: background-position .5s cubic-bezier(.3,1,.4,1); }
.plan-world { position: absolute; left: 0; top: 0; width: var(--pw, 116px); transform: translate(var(--tx, 0), var(--ty, 0));
  transition: transform .5s cubic-bezier(.3,1,.4,1); }
.plan-world img { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 0 rgba(14,21,38,.25)); }
.plan-world svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plan .reach { fill: var(--rc, #FF4A2E); fill-opacity: .2; stroke: var(--rc, #FF4A2E); stroke-width: 16; stroke-dasharray: 56 40; }
.plan .mount { fill: none; stroke: #fff; stroke-width: 14; animation: sel 1.2s ease-in-out infinite; }
.plan.pop .reach { animation: ringpop .35s cubic-bezier(.3,1.5,.5,1); transform-box: fill-box; transform-origin: center; }
@keyframes ringpop { 0% { transform: scale(.6); opacity: .2; } 100% { transform: none; opacity: 1; } }
.gun-info { display: grid; gap: 10px; }
.gun-info .role { font: 800 var(--fs-body)/1.45 var(--game-body); color: #9FD0FF; }
.paths { display: grid; gap: 10px; padding: 12px; background: rgba(9,16,32,.45); border-radius: 12px; }
.path { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.path img { width: 30px; height: 30px; }
.path b { display: block; font: 400 var(--fs-d4) var(--game); }
.path span { font: 700 var(--fs-small)/1.4 var(--game-body); color: #DCE6F7; }
.gun-info .note { font: 700 var(--fs-label)/1.4 var(--game-body); color: #A9C1EA; }

/* 2: in a fight */
.moments { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.moment { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 14px;
  transition: background-color .25s, box-shadow .25s; }
.moment img { width: 52px; height: 52px; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.moment b { display: block; font: 400 var(--fs-d4)/1.15 var(--game); letter-spacing: .02em; transition: color .2s; }
.moment span { display: block; font: 700 var(--fs-small)/1.4 var(--game-body); color: #B9C8E4; }
.moment.on { background: rgba(255,210,63,.1); box-shadow: inset 0 0 0 2px rgba(255,210,63,.7); }
.moment.on b { color: var(--gold); }
.moment.on img { transform: scale(1.12) rotate(-4deg); }
.colors { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 14px 4px 0; border-top: 2px solid rgba(255,255,255,.08); }
.colors li { display: flex; align-items: center; gap: 8px; font: 800 var(--fs-small) var(--game-body); color: #DCE6F7; }
.colors i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 2px solid var(--rr-ink); }

/* phones: the fight and the deck play on the ship itself, called out by one chip at a time */
.watch-window { display: none; }
.chips { position: relative; height: 104px; }
.chip { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 10px 14px;
  background: rgba(14,21,38,.92); border: 2px solid var(--rr-ink); border-radius: 14px; box-shadow: 0 6px 0 rgba(14,21,38,.3);
  opacity: 0; transform: translateY(14px); transition: opacity .14s, transform .14s; }
.chip img { grid-row: span 2; width: 44px; height: 44px; }
/* the next chip comes in once the last one has gone, so their words never overlap */
.chip.on { opacity: 1; transform: none; transition: opacity .2s .14s, transform .25s .14s cubic-bezier(.3,1.6,.5,1); }
.chip b { display: block; font: 400 var(--fs-d4) var(--game); color: var(--gold); letter-spacing: .02em; }
.chip span { display: block; font: 800 var(--fs-small)/1.35 var(--game-body); color: #fff; }
.chip i { justify-self: start; margin-top: 6px; font: 400 var(--fs-label) var(--game); font-style: normal; letter-spacing: .06em; color: var(--rr-ink); background: var(--gold); padding: 2px 6px; border-radius: 4px; }
.lanes-hounds .chip, .hounds-chips .chip { grid-template-columns: 1fr; }
.chips { transition: opacity .25s; }
.chips.gone { opacity: 0; }

/* 3: the Pirate Logbook */
.logbook .lede { margin-bottom: 14px; }
.page { position: relative; padding: 12px 10px 14px; border: 16px solid transparent; border-image: url("../img/logbook-left.webp") 30 fill / 16px stretch;
  filter: drop-shadow(0 8px 0 rgba(8,20,40,.35)); }
.page + .page { margin-top: 16px; }
.page.far { border-image-source: url("../img/logbook-right.webp"); }
.page h3 { font: 400 var(--fs-d4) var(--game); color: #5A3A22; margin: 0 0 8px 4px; }
.page h3 .later { border-color: #B8421C; color: #B8421C; }
.wanted { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
.wanted.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* the back's words are sized by the poster's own width (cqw), and the page script shrinks a long one until it fits */
.poster { position: relative; aspect-ratio: 600 / 820; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; text-align: left;
  container-type: inline-size; opacity: 0; transform: translateY(-30px) scale(1.5) rotate(-9deg); }
/* a small poster is lifted up to read its back (the page script sets --zoom and where it grows from) */
.poster .card { position: absolute; inset: 0; perspective: 900px; transform-origin: var(--ox, 50%) var(--oy, 50%);
  transition: transform .4s cubic-bezier(.3,1.25,.5,1); }
.poster[aria-pressed=true] { z-index: 3; }
.poster[aria-pressed=true] .card { transform: scale(var(--zoom, 1)); }
.poster.on { animation: slap .42s cubic-bezier(.25,1.5,.45,1) forwards; }
.poster:nth-child(even).on { animation-name: slap2; }
@keyframes slap { 0% { opacity: 0; transform: translateY(-30px) scale(1.5) rotate(-9deg); } 60% { opacity: 1; transform: scale(.96) rotate(-1.5deg); } 100% { opacity: 1; transform: rotate(-1.5deg); } }
@keyframes slap2 { 0% { opacity: 0; transform: translateY(-30px) scale(1.5) rotate(10deg); } 60% { opacity: 1; transform: scale(.96) rotate(1.4deg); } 100% { opacity: 1; transform: rotate(1.4deg); } }
.poster .face { position: absolute; inset: 0; backface-visibility: hidden; transition: transform .5s cubic-bezier(.3,1.2,.4,1); }
.poster .front img { width: 100%; height: 100%; filter: drop-shadow(2px 5px 0 rgba(14,21,38,.3)); }
.poster .back { transform: rotateY(180deg); background: #F3E3BD; border: 3px solid #3A2A1C; border-radius: 4px; box-shadow: 2px 5px 0 rgba(14,21,38,.3);
  padding: 8% 7%; display: grid; align-content: start; gap: 2px; color: #3A2A1C; overflow: hidden; }
.poster .back strong { font: 400 calc(clamp(11px, 10.5cqw, 18px) * var(--fit, 1))/1.02 var(--game); margin-bottom: 2px; text-transform: uppercase; }
.poster .back em { font: 400 1em var(--game); font-style: normal; letter-spacing: .03em; color: #B8421C; text-transform: uppercase; }
.poster .back em.beat { color: #237A2C; }
.poster .back .t { margin-top: 2px; font: 800 calc(clamp(9.5px, 8.4cqw, 14px) * var(--fit, 1))/1.25 var(--game-body); }
.poster[aria-pressed=true] .front { transform: rotateY(-180deg); }
.poster[aria-pressed=true] .back { transform: rotateY(0); }

/* 4: the route map */
.routes .map { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border: 3px solid var(--rr-ink); border-radius: 14px; background: #8FD3E8; }
.routes .map .bg, .routes .map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.routes .map .bg { object-fit: cover; object-position: 50% var(--ay, 70%); }
.routes .caption { margin-top: 14px; }
.routes .also { margin-top: 10px; font-size: var(--fs-small); color: #A9C1EA; }
.panel .also a { color: var(--gold); font-weight: 800; }
/* 5: SEND THE RESPONSE SHIP - the launch from the north basin and a raid, recorded, in the route map's 3:4 frame */
.rship .stage { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border: 3px solid var(--rr-ink); border-radius: 14px; background: #2FB8CC url("../img/zone-home.webp") 0 0 / 240px repeat; }
.rship .stage .poster, .rship .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rship .stage .poster { object-fit: cover; }
.rship .caption { margin-top: 14px; }

/* 5: the port */
.port-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 3px solid var(--rr-ink); border-radius: 14px; background: #C9C2B6; margin-bottom: 14px; }
.port-scene { position: absolute; width: 150%; left: -63.5%; top: -63.8%; }
.port-scene .port { width: 100%; height: auto; display: block; }
.port-scene .plot { position: absolute; left: 51.28%; top: 18.18%; width: 48.72%; height: 47.73%; }
.port-scene .bank { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform-origin: 50% 85%; }
.port-scene .bank.now { opacity: 1; animation: grow .5s cubic-bezier(.3,1.6,.45,1); }
@keyframes grow { 0% { transform: scale(.86, .8); } 60% { transform: scale(1.04, 1.07); } 100% { transform: none; } }
.port-scene .burst { position: absolute; left: 50%; top: 45%; width: 70%; height: auto; transform: translate(-50%, -50%) scale(.3); opacity: 0; pointer-events: none; }
.port-scene .burst.pop { animation: burst .6s ease-out; }
@keyframes burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3) rotate(40deg); } }
.port-view .lvchip { position: absolute; z-index: 2; right: 10px; top: 10px; padding: 4px 10px; background: var(--rr-ink); border-radius: 8px; font: 400 var(--fs-d4) var(--game); color: var(--gold); }
.levels { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.levels li { font: 800 var(--fs-small)/1.35 var(--game-body); color: #8EA3C7; transition: color .2s; }
.levels li b { font: 400 var(--fs-small) var(--game); color: inherit; margin-right: 6px; }
.levels li.on { color: #fff; } .levels li.on b { color: var(--gold); }
.port .also { margin-top: 12px; font-size: var(--fs-small); color: #A9C1EA; }

/* 7: on deck, the two hounds a ship takes (the faces stay at the size three of them had, so they stay sharp) */
.hound-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.hound { display: grid; gap: 8px; align-content: start; }
.hound img { width: 100%; max-width: 184px; height: auto; filter: drop-shadow(0 5px 0 rgba(9,16,32,.4)); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.hound b { display: block; font: 400 var(--fs-d4) var(--game); transition: color .2s; }
.hound .hrole { display: block; font: 800 var(--fs-label) var(--game-body); color: #9FD0FF; margin-bottom: 2px; }
.hound span:not(.hrole) { display: block; font: 700 var(--fs-small)/1.4 var(--game-body); color: #DCE6F7; }
.hound .later { margin-top: 8px; }
.hound.on img { transform: translateY(-6px) scale(1.04); }
.hound.on b { color: var(--gold); }

/* ---------------------------------------------------------------- the fog bank: the end of the voyage */
.fogbank { position: relative; z-index: 4; margin-top: 34svh; padding: 8px 0 88px; background: #EDF3F8; color: var(--rr-navy); }
.fog-edge { position: absolute; left: 0; right: 0; top: -148px; height: 150px; background: url("../img/fog-edge-1600.webp") 0 0 / 800px 150px repeat-x; pointer-events: none; }
.fog-inner { display: grid; gap: 28px; }
.fog-copy { display: grid; gap: 14px; justify-items: start; }
.fog-copy h2 { font-size: var(--fs-d1); line-height: .95; color: var(--gold); }
.fog-copy > p { font: 800 var(--fs-lede)/1.5 var(--game-body); color: #2B4166; max-width: 32em; }
.fog-copy .later { border-color: #B8421C; color: #B8421C; }
.fogbank .signup-wrap { width: 100%; max-width: 480px; margin-top: 6px; }
.fogbank .signup label { color: var(--rr-navy); font: 800 var(--fs-small) var(--game-body); }
.fogbank .signup input[type=email] { border: 3px solid var(--rr-ink); border-radius: 10px; background: #fff; min-height: 54px; }
.fogbank .signup button { border-radius: 10px; min-height: 54px; background: #47B33A; border: 3px solid var(--rr-ink); color: #fff; font: 400 var(--fs-d4) var(--game); letter-spacing: .02em;
  box-shadow: inset 0 -5px 0 #2E8A26, 0 3px 0 var(--rr-ink); text-shadow: 0 2px 0 var(--rr-ink), 1px 0 0 var(--rr-ink), -1px 0 0 var(--rr-ink); }
.fogbank .signup button:hover { background: #52C244; }
.fogbank .signup .consent, .fogbank .signup .consent a { color: #4A5E80; }
.fogbank .signup .done { color: #237A2C; }
.chart { margin: 0; padding: 0; height: min(68vh, 560px); overflow: hidden; background: #173A52; }
.chart::before { display: none; }
.chart .pan { position: absolute; left: 0; width: 100%; top: 0; will-change: transform; }
.chart .pan img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.chart .pan .map { position: relative; }
.chart .fog { will-change: transform, opacity; }
.chart .fog-delta { opacity: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.fogbank :focus-visible { outline-color: var(--ink); }
.voyage-page .site-foot { position: relative; z-index: 4; }

/* ---------------------------------------------------------------- phones and narrow screens */
@media not all and (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .hero-rr .pitch { display: block; max-width: 15em; font: 800 var(--fs-lede)/1.4 var(--game-body); }
  .hero-rr .pitch .rest { display: none; }
  .hero-rr .hero-cta { display: flex; margin-top: 4px; }
  .hero-rr .hero-cta .btn-green { display: none; }
  .hero-rr .watch { grid-auto-flow: column; gap: 10px; align-items: center; font: 800 var(--fs-body) var(--game-body); }
  .hero-rr .watch .short { display: none; } .hero-rr .watch .long { display: inline; }
  .wanted, .wanted.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .page { padding: 8px 6px 10px; border-width: 12px; }
}
/* phones: the fight and the deck play on the ship, one chip at a time; their panels stay for screen readers, and
   with reduced motion the panels show instead */
@media (max-width: 599px) and (prefers-reduced-motion: no-preference) {
  .lane-act .panel.fight, .lane-act .panel.hounds { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .lane-act .watch-window { display: flex; height: 92svh; flex-direction: column; justify-content: flex-end; pointer-events: none; }
  .lane-act .watch-window .chips { position: sticky; bottom: 14px; }
}
/* tablets in the phone layout: the lanes keep to a column beside the ship, so the fight and the deck play in view */
@media (min-width: 600px) and (max-width: 899px), (min-width: 600px) and (max-aspect-ratio: 5/4) {
  .hero-rr .copy > *, .lane-head, .lane .panel { max-width: var(--col-w, 520px); }
  .wanted { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wanted.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- wide screens: lanes in a column beside the ship */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .hero-rr { height: calc(100svh - 79px); min-height: 640px; }
  /* the logo sizes with the screen's height, so the copy and its buttons fit above the fold on short laptops; the
     copy starts low enough that the raccoon on the logo clears the header (it stands 34% of the logo's width above it) */
  .hero-rr { --logo-w: min(340px, 39vh); }
  .hero-rr .copy { position: absolute; left: var(--edge); top: max(calc(var(--logo-w) * .343 * var(--z) + 22px), 15vh); width: calc(540px * var(--z)); padding: 0; gap: min(18px, 2.2vh); }
  .hero-rr .copy::before { content: ""; position: absolute; z-index: -1; inset: -70px -110px -70px -180px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(8,16,30,.30), rgba(8,16,30,.14) 62%, rgba(8,16,30,0)); pointer-events: none; }
  .hero-rr .logo-stack { width: var(--logo-w); margin-left: -8px; }
  .hero-rr h1 { font-size: min(var(--fs-d1), 7.4vh); }
  /* the scroll cue sits beside the dotted route under the ship, clear of the buttons */
  .scroll-cue { left: calc(var(--ship-x) + 20px); transform: none; }
  .scroll-cue::after { margin-left: 18px; }
  .hero-rr .pitch { display: block; max-width: 460px; font: 800 var(--fs-lede)/1.45 var(--game-body); }
  .hero-rr .hero-cta { display: flex; align-items: center; gap: 24px; margin-top: 4px; }
  .hero-rr .hero-cta .btn-green { min-width: 300px; }
  .hero-rr .watch { grid-auto-flow: column; gap: 12px; align-items: center; font: 800 var(--fs-body) var(--game-body); }
  .hero-rr .watch .short { display: none; } .hero-rr .watch .long { display: inline; }

  .lane { padding: var(--gap) 0 0 var(--edge); }
  .lane-head, .lane .panel { width: var(--col-w, min(600px, 50vw)); max-width: none; zoom: var(--z); }
  .hero-rr .copy > * { zoom: var(--z); }
  .lane-head::before { inset: -40px -90px -40px -140px; background: radial-gradient(closest-side, rgba(8,16,30,.22), rgba(8,16,30,.1) 62%, rgba(8,16,30,0)); }
  .lane .node { width: calc(72px * var(--z)); height: calc(72px * var(--z)); top: calc(var(--gap) + 14px * var(--z)); }
  /* the page-title step, made smaller only where a title would not fit on one line beside the ship */
  .lane-head { container-type: inline-size; }
  .lane-head h2 { font-size: min(var(--fs-d1), 10.2cqw); }
  .lane-head .kicker { font-size: var(--fs-lede); }
  .lane-head .more { margin-top: 8px; }
  .panel { margin-top: 28px; padding: 24px 24px 26px; }
  .quay { display: block; position: fixed; z-index: 1; left: 0; top: 0; max-width: none; height: auto; transform-origin: 0 0; visibility: hidden;
    pointer-events: none; will-change: transform; }
  .plan { display: none; }
  /* room after the quay: the ship casts off, then lane 2's marker comes up from below and meets the bow */
  #lane-1 { padding-bottom: 30vh; }
  .fogbank { margin-top: 30vh; padding: 0 0 112px; }
  .fog-inner { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); align-items: center; gap: 72px; padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .poster { opacity: 1; transform: rotate(-1.5deg); }
  .scroll-cue::after, .rings .mount, .rings .mark, .plan .mount, .plan.pop .reach { animation: none; }
  .plan, .plan-world, .chips { transition: none; }
  .js .lane-head, .js .lane .panel { opacity: 1; transform: none; transition: none; }
  .stage .tile { animation: none; }
}
