:root {
  --ink: #101418;
  --paper: #ffffff;

  --sky: #2fb2f6;
  --sky-pale: #d6f1ff;
  --sea: #0a8ad4;
  --sea-dark: #076aa6;
  --deep: #0b2545;
  --navy: #13365c;
  --navy-2: #1f4f7f;
  --night: #081a30;

  --sand: #f8e2ad;
  --gold: #ffc93c;
  --coin: #ffd21f;
  --green: #38c83d;
  --red: #e8352b;
  --red-field: #d4251c;
  --muted: #c3d0dc;
  --muted-ink: #3d4a58;

  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(2.5rem, 5.2vw, 4.75rem);
  --fs-title: 1.75rem;
  --fs-body: 1.1875rem;
  --fs-small: 0.9375rem;

  --wrap: 1392px;
  --gutter: 24px;
  --nav-h: 76px;
  --radius: 28px;
  --pad: 112px;
  --fs-lead: 1.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-exit: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;

  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 30' preserveAspectRatio='none'%3E%3Cpath d='M0 15C30 3 60 3 90 11s60 17 90 12 45-14 60-8V30H0Z'/%3E%3C/svg%3E");
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.1.9-5.2 5 1.3 7.1L12 18l-6.3 3.4L7 14.3l-5.2-5 7.1-.9z' fill='%23101418'/%3E%3Cpath d='M12 5.6l2 4.3 4.6.6-3.4 3.2.9 4.6L12 16l-4.1 2.3.9-4.6-3.4-3.2 4.6-.6z' fill='%23fff'/%3E%3C/svg%3E");
  --star-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.1.9-5.2 5 1.3 7.1L12 18l-6.3 3.4L7 14.3l-5.2-5 7.1-.9z' fill='%23101418'/%3E%3Cpath d='M12 5.6l2 4.3 4.6.6-3.4 3.2.9 4.6L12 16l-4.1 2.3.9-4.6-3.4-3.2 4.6-.6z' fill='%23ffc93c'/%3E%3C/svg%3E");
}

@media (max-width: 899px) {
  :root { --pad: 80px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --nav-h: 64px; --pad: 64px; --fs-body: 1.0625rem; --fs-lead: 1.3125rem; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--paper);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video,
canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4, p { margin: 0; }

ul,
ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 12px; top: 12px;
  clip-path: inset(50%);
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { clip-path: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.gt,
.h-display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  color: var(--paper);
  -webkit-text-stroke: 0.15em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.1em 0 var(--ink);
}

.h-display { font-size: var(--fs-display); line-height: 0.98; }

.gt--gold { color: var(--gold); }
.gt--sm { -webkit-text-stroke-width: 0.17em; text-shadow: 0 0.09em 0 var(--ink); }

.head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 12px 48px;
  margin: 0 0 56px;
}
.head > .h-display { grid-row: span 3; max-width: 14ch; }
.head > :not(.h-display) { grid-column: 2; }
.head .lede { margin-top: 0; }
@media (max-width: 899px) {
  .head { grid-template-columns: 1fr; margin-bottom: 36px; }
  .head > .h-display { grid-row: auto; max-width: none; }
  .head > :not(.h-display) { grid-column: 1; }
}

.lead,
.lede {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.5;
  max-width: 46ch;
}
.lede { margin-top: 18px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: 64px;
}
.split .h-display { max-width: 13ch; }
.kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 16px 4px;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
}
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; margin-bottom: 40px; }
}

.plate {
  --bw: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 10px;
  border-style: solid;
  border-color: transparent;
  border-width: var(--bw) calc(var(--bw) * 1.15);
  border-image: url("../img/skin/btn.webp") 69 70 fill / var(--bw) calc(var(--bw) * 1.15) / 0 stretch;
  background: none;
  font-family: var(--display);
  font-size: var(--fs-body);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  -webkit-text-stroke: 0.2em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.12em 0 var(--ink);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform var(--t-press) var(--ease-out), filter var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .plate:hover { filter: brightness(1.08); transform: translateY(-2px); }
}
.plate:active { transform: translateY(2px); }

.plate--go {
  border-image-source: url("../img/skin/btn-primary.webp");
  border-image-slice: 67 fill;
}
.plate--here,
.plate[aria-pressed="true"] {
  border-image-source: url("../img/skin/btn-selected.webp");
  border-image-slice: 66 fill;
}
.plate--lg {
  --bw: 19px;
  min-height: 66px;
  padding: 0 18px;
  font-size: var(--fs-title);
}
.plate img { width: auto; height: 26px; flex: none; }

.frame {
  color: var(--paper);
  border: 22px solid transparent;
  border-image: url("../img/skin/card.webp") 59 fill / 22px / 0 stretch;
}

.counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px 0 8px;
  border: solid transparent;
  border-width: 12px 14px;
  border-image: url("../img/skin/counter.webp") 28 38 fill / 12px 14px / 0 stretch;
  font-family: var(--display);
  font-size: var(--fs-title);
  color: var(--paper);
  -webkit-text-stroke: 0.18em var(--ink);
  paint-order: stroke fill;
}
.counter img { width: 38px; height: 38px; margin: -12px 0 -12px -18px; }

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.badge {
  display: block;
  position: relative;
  border-radius: 9px;
  line-height: 0;
}
.badge img {
  height: 52px;
  width: auto;
  border-radius: 9px;
}
a.badge { transition: transform var(--t-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a.badge:hover { transform: translateY(-2px); }
}
a.badge:active { transform: scale(0.97); }

.key {
  display: inline-block;
  min-width: 1.7em;
  padding: 0 6px;
  font-family: var(--display);
  font-size: 0.9em;
  line-height: 1.5;
  text-align: center;
  color: var(--ink);
  background: var(--paper);
  border-radius: 6px;
  box-shadow: inset 0 -3px 0 #b9c6d2;
}

/* Navigation */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color var(--t-ui) ease;
}
.nav.is-solid,
.no-js .nav { background: var(--deep); }
.nav__in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
  font-family: var(--display);
  font-size: var(--fs-lead);
  text-transform: uppercase;
  color: var(--paper);
  -webkit-text-stroke: 0.16em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.1em 0 var(--ink);
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__menu a {
  padding: 10px 12px;
  font-family: var(--display);
  font-size: var(--fs-body);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  -webkit-text-stroke: 0.2em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.1em 0 var(--ink);
  transition: color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav__menu a:hover { color: var(--gold); }
}
.nav__menu a[aria-current="page"] { color: var(--gold); }
.nav__cta { flex: none; min-height: 48px; --bw: 13px; font-size: var(--fs-body); }

.nav__toggle {
  display: none;
  margin-left: auto;
  min-width: 48px;
  height: 48px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  cursor: pointer;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 22px;
  height: 3px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 2px;
  position: relative;
  transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui) ease;
}
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav__toggle { display: block; }
  .nav__cta { margin-left: auto; }
  .nav__cta + .nav__toggle { margin-left: 0; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 20px;
    background: var(--deep);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 14px 0; font-size: var(--fs-title); }
}
@media (max-width: 600px) {
  .brand { font-size: var(--fs-lead); }
  .brand img { width: 38px; height: 38px; border-radius: 10px; }
}
@media (max-width: 520px) {
  .nav__cta { display: none; }
  .nav__cta + .nav__toggle { margin-left: auto; }
}

/* Sections: flat colour fields joined by a wave edge */

.sec {
  position: relative;
  padding: var(--pad) 0;
  background: var(--sec-bg, var(--deep));
}
.sec::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -27px;
  height: 28px;
  background: var(--sec-bg, var(--deep));
  -webkit-mask: var(--wave) repeat-x 0 0 / 360px 28px;
  mask: var(--wave) repeat-x 0 0 / 360px 28px;
  pointer-events: none;
}
.sec--flat::before { display: none; }

.sec--sea { --sec-bg: var(--sea-dark); }
.sec--abyss { --sec-bg: var(--sea-dark); }
.sec--deep { --sec-bg: var(--deep); }
.sec--navy { --sec-bg: var(--navy); }
.sec--sand { --sec-bg: var(--sand); color: var(--ink); }
.sec--sky { --sec-bg: var(--sky-pale); color: var(--ink); }
.sec--sun { --sec-bg: var(--sky); color: var(--ink); }
.sec--ocean { --sec-bg: var(--sea); }
.sec--red { --sec-bg: var(--red-field); }

/* Motion: entrances, once, below the fold only */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo);
    transition-delay: calc(var(--d, 0) * 80ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* Hero: the boot splash, as the game opens */

.hero {
  --art-h: 48.8vw;
  --hc: min(var(--art-h), 100svh);
  position: relative;
  background: var(--sea);
  isolation: isolate;
}
.hero__media { position: relative; }
.hero__art img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: 28% 50%;
}
.hero__logo { display: none; }
.hero__cta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px var(--gutter) 8px;
  text-align: center;
}
.hero__tag { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
.hero .stores { justify-content: center; }
.hero__out {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
}
.hero__now,
.hero__free {
  padding: 4px 12px 3px;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
}
.hero__now { background: var(--gold); transform: rotate(-3deg); }
.hero__free { background: #fcfaed; }
.hero__on { font-size: 1.2rem; }
.hero__watch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px 0 6px;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  transition: transform var(--t-press) var(--ease-out);
}
.hero__watch .trailer__btn { --d: 36px; border-width: 2px; }
@media (hover: hover) and (pointer: fine) {
  .hero__watch:hover { transform: translateY(-2px); }
  .hero__watch:hover .trailer__btn { transform: scale(1.06); background-color: var(--gold); }
}
.hero__watch:active { transform: scale(0.97); }

@media (min-width: 1280px) {
  .hero__art img { height: var(--hc); }
  .hero__cta {
    position: absolute;
    left: 56.4vw;
    width: 41.8vw;
    top: calc(0.69 * var(--art-h) - (var(--art-h) - var(--hc)) / 2 + 4px);
    padding: 0;
    gap: 12px;
  }
  .hero__tag { font-size: clamp(1.6rem, 2.15vw, 2.4rem); }
}
@media (max-width: 559px) {
  .hero__art img { aspect-ratio: 640 / 558; }
  .hero__logo {
    display: block;
    position: relative;
    z-index: 2;
    width: min(74%, 340px);
    height: auto;
    margin: -64px auto 4px;
  }
  .hero .badge img { height: 44px; }
  .hero__on { order: -1; flex-basis: 100%; }
  .hero__watch { height: 44px; }
}

.surf {
  --s: 1;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  height: calc(104px * var(--s));
  overflow: hidden;
  pointer-events: none;
}
.surf__band {
  position: absolute;
  inset: 0;
  animation: surf-bob 4.6s ease-in-out infinite alternate;
}
.surf__band i {
  --tile: calc(var(--w) * var(--s));
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(100% + var(--tile));
  background: var(--img) repeat-x 0 0 / var(--tile) 100%;
  animation: var(--roll) var(--dur) linear infinite;
  will-change: transform;
}
.surf__band--back { animation-duration: 5.8s; animation-delay: -2s; }
.surf__band--back i { --w: 760px; --img: url("../img/surf/back.svg"); --roll: surf-back; --dur: 34s; }
.surf__band--mid { animation-duration: 4.4s; animation-delay: -1s; }
.surf__band--mid i { --w: 560px; --img: url("../img/surf/mid.svg"); --roll: surf-mid; --dur: 22s; }
.surf__band--front { animation-duration: 3.6s; }
.surf__band--front i { --w: 720px; --img: url("../img/surf/front.svg"); --roll: surf-front; --dur: 19s; }

@keyframes surf-back { to { transform: translateX(calc(-760px * var(--s))); } }
@keyframes surf-mid { to { transform: translateX(calc(-560px * var(--s))); } }
@keyframes surf-front { to { transform: translateX(calc(-720px * var(--s))); } }
@keyframes surf-bob {
  from { transform: translateY(0); }
  to { transform: translateY(5px); }
}
@media (max-width: 1279px) { .surf { --s: 0.8; } }
@media (max-width: 559px) { .surf { --s: 0.6; } }
.hero + .sec { margin-top: -1px; }

/* Trailer */

.tr__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: end;
  gap: 32px 48px;
}
.tr { padding-top: calc(var(--pad) * 0.6); }
.tr__copy .lead { margin-top: 24px; }
.tr__copy .h-display { max-width: 8ch; }
@media (max-width: 899px) {
  .tr__grid { grid-template-columns: 1fr; }
  .tr__copy .h-display { max-width: none; }
}

.trailer {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.trailer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.trailer iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.trailer__play,
.trailer__end {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.trailer__play[hidden],
.trailer__end[hidden] { display: none; }
.trailer__play {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.trailer__btn {
  --d: 112px;
  position: relative;
  display: block;
  flex: none;
  width: var(--d);
  height: var(--d);
  border: calc(var(--d) * 0.05) solid var(--ink);
  border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 44'%3E%3Cpath d='M9 6 L35 22 L9 38 Z' fill='%230a8ad4' stroke='%23101418' stroke-width='4.5' stroke-linejoin='round'/%3E%3C/svg%3E") 58% 50% / 46% auto no-repeat;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.trailer__play:hover .trailer__btn,
.trailer__play:focus-visible .trailer__btn { transform: scale(1.06); background-color: var(--gold); }
.trailer__play:active .trailer__btn { transform: scale(0.97); }
.trailer__end { background: rgba(11, 37, 69, 0.78); }
.trailer__end-title { font-size: var(--fs-display); }
@media (max-width: 559px) {
  .trailer { border-radius: 20px; }
  .trailer__btn { --d: 80px; }
  .trailer__end { gap: 10px; }
  .trailer__end-title { display: none; }
  .trailer__end .badge img { height: 36px; }
  .trailer__again { --bw: 11px; min-height: 40px; font-size: var(--fs-small); }
}

/* Ride: the live sea */

.toy {
  position: relative;
  aspect-ratio: 2.2 / 1;
  max-height: 660px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #7fd3e8;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.toy canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.toy__hud {
  position: absolute;
  inset: 14px 18px auto 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}
.toy__coins {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: var(--paper);
  -webkit-text-stroke: 0.2em var(--ink);
  paint-order: stroke fill;
}
.toy__coins img { width: 1.4em; height: 1.4em; }
.toy__dist {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1;
  color: var(--paper);
  -webkit-text-stroke: 0.2em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.08em 0 var(--ink);
}
.toy__best {
  display: block;
  margin-top: 4px;
  font-size: 0.45em;
  color: var(--gold);
}
.toy__pops {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}
.pop {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  color: var(--paper);
  -webkit-text-stroke: 0.2em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.09em 0 var(--ink);
  white-space: nowrap;
}
.pop b { color: var(--gold); font-weight: 400; }
.toy__pops .pop { animation: pop-in 0.25s var(--ease-out) both; }
.toy__pops .pop.is-out { animation: pop-out 0.35s ease forwards; }
@keyframes pop-in {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes pop-out {
  to { transform: translateY(-14px); opacity: 0; }
}
.toy__hint {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  padding: 6px 16px 5px;
  font-family: var(--display);
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  -webkit-text-stroke: 0.2em var(--ink);
  paint-order: stroke fill;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease;
  animation: nudge 1.6s ease-in-out infinite;
}
.toy__hint.is-hidden { opacity: 0; animation: none; }
@keyframes nudge {
  50% { transform: translateX(-50%) translateY(-4px); }
}
.pedal {
  position: absolute;
  bottom: 4%;
  width: clamp(64px, 12%, 136px);
  aspect-ratio: 1;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.06s ease, filter 0.06s ease;
  container-type: inline-size;
}
.pedal img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.pedal__word {
  position: absolute;
  left: 50%;
  top: 76%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: 15cqw;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
  -webkit-text-stroke: 0.2em var(--ink);
  paint-order: stroke fill;
  pointer-events: none;
}
.pedal--throttle .pedal__word { top: 73%; }
.pedal--brake { left: 2.5%; }
.pedal--throttle { right: 2.5%; }
.pedal.is-down { transform: translateY(4px) scale(0.95); filter: brightness(1.18); }

.picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 28px;
}
.picker__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.picker__label {
  margin-right: 4px;
  font-family: var(--display);
  font-size: var(--fs-body);
  text-transform: uppercase;
  color: var(--paper);
  -webkit-text-stroke: 0.18em var(--ink);
  paint-order: stroke fill;
}
.picker .plate {
  --bw: 13px;
  min-height: 50px;
  font-size: var(--fs-small);
}

.howto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 48px;
  margin-top: 48px;
  font-weight: 700;
}
.howto b {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-title);
  font-weight: 400;
  color: var(--gold);
}
.toy-note {
  margin-top: 32px;
  font-size: var(--fs-small);
  font-weight: 700;
}
@media (max-width: 899px) {
  .toy { aspect-ratio: 5 / 4; border-radius: 20px; }
  .picker { flex-direction: column; }
  .howto { grid-template-columns: 1fr; margin-top: 36px; }
}
@media (max-width: 600px) {
  .picker__label { width: 100%; }
  .picker .plate { flex: 1 1 calc(50% - 10px); }
}

/* Gallery: one big shot, every thumbnail in view */

.viewer {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.viewer__stage {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep);
  cursor: zoom-in;
}
.viewer__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity var(--t-ui) ease;
}
.viewer__img.is-swapping { opacity: 0.4; }
.viewer__cap { padding: 14px 20px 16px; font-weight: 800; }
.viewer__thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.viewer__thumb {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  opacity: 0.7;
  transition: opacity var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.viewer__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.viewer__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-radius: inherit;
  transition: border-color var(--t-hover) ease;
}
.viewer__thumb[aria-current="true"] { opacity: 1; }
.viewer__thumb[aria-current="true"]::after { border-color: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .viewer__thumb:hover { opacity: 1; }
}
.viewer__thumb:active { transform: scale(0.97); }
@media (max-width: 899px) {
  .viewer { grid-template-columns: 1fr; }
  .viewer__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .viewer__thumb { border-radius: 10px; }
  .viewer__thumb::after { border-width: 3px; }
  .viewer__stage { border-radius: 20px; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 26, 48, 0.94);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1600px, 100%);
  max-height: 100%;
  width: auto;
  border-radius: 18px;
}

/* Tricks */

.tricks__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 40px 64px;
}
.tricks__shots {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  display: grid;
  gap: 24px;
}
.tricks__shot { margin: 0; }
.tricks__shot figcaption { margin-top: 10px; font-weight: 800; }
.tricks__shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
.tricks .lead { margin-top: 20px; }
.trick-list { display: grid; gap: 20px; margin: 36px 0 0; }
.trick-list div {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 24px;
}
.trick-list dt { font-size: var(--fs-title); }
.trick-list dt b { font-weight: 400; color: var(--gold); }
.trick-list dd { margin: 0; font-weight: 700; }
.trick-list__wipe dt { color: var(--red); }
@media (max-width: 1100px) {
  .trick-list div { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .tricks__grid { grid-template-columns: 1fr; }
  .tricks__shots { position: relative; top: auto; }
}

/* Boats: a short line-up, the full story is on boats.html */

.fleet {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px 28px;
}
.fleet__art {
  display: flex;
  align-items: flex-end;
  height: 120px;
  margin-bottom: 18px;
}
.fleet__art img {
  width: 100%;
  max-height: 112px;
  object-fit: contain;
  object-position: left bottom;
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .fleet li:hover .fleet__art img { transform: translateY(-4px) rotate(-2deg); }
}
.fleet h3 { font-size: var(--fs-title); }
.fleet__role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 4px;
  font-weight: 800;
  color: var(--muted);
}
.fleet li > p:last-child { margin-top: 10px; font-weight: 700; }
.fleet__q { font-size: 6rem; line-height: 1; }
.fleet__more > p:last-child { color: var(--muted); }
.fleet li:nth-child(2) { --d: 1; }
.fleet li:nth-child(3) { --d: 2; }
.fleet li:nth-child(4) { --d: 3; }
.fleet li:nth-child(5) { --d: 4; }
.boats__more { margin-top: 48px; }
@media (max-width: 1100px) {
  .fleet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .fleet__art { height: 84px; }
  .fleet h3 { font-size: 1.375rem; }
  .fleet__q { font-size: 4.5rem; }
}

/* Seas: a board of tiles */

.board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 112px;
  gap: 10px;
}
.board__head {
  grid-column: 1 / 7;
  grid-row: 1 / 4;
  align-self: start;
  padding-right: 24px;
}
.board__head .lead { margin-top: 20px; }
.board__head .plate { margin-top: 24px; }
.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.tile--calm { grid-column: 7 / 13; grid-row: 1 / 6; }
.tile--pacific { grid-column: 1 / 7; grid-row: 4 / 9; }
.tile--nile { grid-column: 7 / 10; grid-row: 6 / 11; }
.tile--loch { grid-column: 10 / 13; grid-row: 6 / 11; }
.tile--carib { grid-column: 1 / 7; grid-row: 9 / 13; }
.tile--more { grid-column: 7 / 13; grid-row: 11 / 13; }
.tile .world__art {
  position: relative;
  flex: 1;
  min-height: 150px;
  overflow: hidden;
  background: var(--sky-pale);
}
.tile .world__art > img:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover .world__art > img:first-child { transform: scale(1.04); }
}
.tile__cap { padding: 18px 22px 20px; }
.tile--nile .world__copy,
.tile--loch .world__copy { display: none; }
.tile--more {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: var(--deep);
  color: var(--paper);
}
.tile__q { font-size: 6rem; line-height: 1; flex: none; }
.tile--more h3 { font-size: var(--fs-title); }
.tile--more p { margin-top: 4px; font-weight: 700; max-width: 40ch; }
@media (max-width: 1100px) {
  .board { grid-auto-rows: auto; }
  .board__head { grid-column: 1 / -1; grid-row: auto; margin-bottom: 24px; padding-right: 0; }
  .tile--calm, .tile--pacific, .tile--carib { grid-column: span 6; grid-row: auto; }
  .tile--nile, .tile--loch { grid-column: span 6; grid-row: auto; }
  .tile--more { grid-column: span 6; grid-row: auto; }
  .tile .world__art { flex: none; aspect-ratio: 16 / 8.6; }
  .tile--nile .world__copy,
  .tile--loch .world__copy { display: block; }
}
@media (max-width: 699px) {
  .tile--calm, .tile--pacific, .tile--carib, .tile--nile, .tile--loch, .tile--more { grid-column: 1 / -1; }
  .tile--more { padding: 18px 20px; }
  .tile__q { font-size: 4.5rem; }
}

.world__actor {
  position: absolute;
  height: auto;
}
.callout {
  position: absolute;
  padding: 2px 10px 1px;
  font-family: var(--display);
  font-size: var(--fs-small);
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 12px;
  white-space: nowrap;
}
.callout::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -11px;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg) skew(10deg, 10deg);
}
.world__ribbon {
  position: absolute;
  top: 16px;
  left: 0;
  padding: 5px 16px 4px 18px;
  font-family: var(--display);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border-radius: 0 12px 12px 0;
}
.world__ribbon--start { background: #7ef08a; }
.world__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.world__name { font-size: var(--fs-title); }
.stars {
  --v: 1;
  position: relative;
  flex: none;
  width: 7.5rem;
  height: 1.5rem;
  background: var(--star) repeat-x 0 0 / 1.5rem 1.5rem;
}
.stars::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 1.5rem);
  background: var(--star-on) repeat-x 0 0 / 1.5rem 1.5rem;
}
.world__rule {
  margin-top: 4px;
  font-weight: 900;
  font-size: var(--fs-small);
  color: var(--sea-dark);
}
.world__copy {
  margin-top: 8px;
  font-weight: 700;
  font-size: var(--fs-small);
  line-height: 1.5;
}
.world__unlock {
  margin-top: 10px;
  font-weight: 800;
  font-size: var(--fs-small);
  color: var(--muted-ink);
}

/* Garage */

.gar { overflow-x: clip; }
.gar__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: 32px 48px;
  margin-bottom: 48px;
}
.gar__copy .lead { margin-top: 24px; }
.gar__boat { position: relative; margin-right: calc(var(--gutter) * -1 - 6vw); }
.gar__boat > img { width: 100%; }
.gar__tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 8px;
}
.gar__tag .gt { font-size: var(--fs-title); }
.gar__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: 40px;
}
.gar__foot p { max-width: 64ch; font-weight: 700; }
.gar__foot strong { color: var(--gold); font-weight: 900; }
@media (max-width: 899px) {
  .gar__top { grid-template-columns: 1fr; }
  .gar__boat { margin-right: calc(var(--gutter) * -1 - 10vw); }
}

.lanes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.lane {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2px 0 4px;
}
.lane__icon {
  height: 96px;
  width: 100%;
  display: grid;
  place-items: center;
}
.lane__icon img { max-height: 92px; width: auto; max-width: 88%; }
.lane__name { margin-top: 8px; font-size: var(--fs-title); }
.lane__fn {
  font-family: var(--display);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.lane .meter { --n: 20; width: 100%; height: 16px; margin-top: 10px; }
.lane .meter::before {
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--v) - 2px), transparent 0 calc(100% / var(--v)));
  mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--v) - 2px), transparent 0 calc(100% / var(--v)));
}
.lane__lv,
.lane__fx {
  margin-top: 8px;
  font-family: var(--display);
  font-size: var(--fs-body);
  color: var(--paper);
  -webkit-text-stroke: 0.18em var(--ink);
  paint-order: stroke fill;
  text-transform: uppercase;
}
.lane__fx { margin-top: 0; color: var(--gold); }
.lane .plate {
  width: 100%;
  margin-top: 12px;
  --bw: 12px;
  min-height: 46px;
  font-size: var(--fs-body);
  gap: 6px;
}
.lane .plate img { height: 20px; }
.lane .plate[disabled] {
  border-image-source: url("../img/skin/btn.webp");
  border-image-slice: 69 70 fill;
  filter: grayscale(0.4) brightness(0.9);
  cursor: default;
}
.lane.is-bumped .lane__icon img { animation: bump 0.35s ease; }
@keyframes bump {
  40% { transform: scale(1.16) rotate(-4deg); }
}
.lane-note {
  max-width: 820px;
  margin: 34px 0 0;
  font-weight: 700;
}
.lane-note strong { color: var(--gold); font-weight: 900; }
.lane__what {
  margin-top: 10px;
  font-weight: 700;
  font-size: var(--fs-small);
  line-height: 1.5;
}
@media (max-width: 1100px) {
  .lanes { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .lanes { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lanes > :last-child:nth-child(odd) { grid-column: span 2; width: calc(50% - 6px); justify-self: center; }
  .lane.frame { border-width: 18px; border-image-width: 18px; }
  .lane__name { font-size: 1.375rem; }
}

/* Daily */

.chase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.chase img { height: 120px; width: auto; margin-bottom: 20px; }
.chase h3 { font-size: var(--fs-title); }
.chase p { margin-top: 10px; font-weight: 700; max-width: 36ch; }
.chase li:nth-child(2) { --d: 1; }
.chase li:nth-child(3) { --d: 2; }
@media (max-width: 899px) {
  .chase { grid-template-columns: 1fr; gap: 36px; }
  .chase li { display: grid; grid-template-columns: 96px 1fr; column-gap: 20px; align-items: start; }
  .chase img { grid-row: span 2; height: auto; width: 96px; margin: 0; }
}

/* Streak */

.streak {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  gap: 32px 64px;
  margin-top: 80px;
}
.streak__text h3 { font-size: var(--fs-title); }
.streak__text p { margin-top: 10px; font-weight: 700; max-width: 36ch; }
.ladder {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 240px;
}
.ladder li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  text-align: center;
}
.ladder__bar {
  display: block;
  height: max(6px, calc(var(--h) / 6000 * 72%));
  background: var(--sea-dark);
  border-radius: 8px 8px 0 0;
  transform-origin: 50% 100%;
}
.ladder__top .ladder__bar { background: var(--deep); }
.ladder__c { margin-bottom: 6px; font-size: var(--fs-small); font-weight: 900; }
.ladder__d { margin-top: 8px; font-size: var(--fs-small); font-weight: 700; color: var(--muted-ink); }
@media (prefers-reduced-motion: no-preference) {
  .js .ladder .ladder__bar { transform: scaleY(0); transition: transform 900ms var(--ease-expo); }
  .js .ladder li:nth-child(n) .ladder__bar { transition-delay: calc(var(--h) / 6000 * 400ms); }
  .js .ladder.is-in .ladder__bar { transform: none; }
}
@media (max-width: 899px) {
  .streak { grid-template-columns: 1fr; margin-top: 56px; }
  .ladder { height: 200px; gap: 6px; }
  .ladder__c,
  .ladder__d { font-size: 0.8125rem; }
}

/* Download: your turn */

.end { overflow-x: clip; }
.end__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: 40px 64px;
}
.end__copy .lead { margin-top: 20px; max-width: 40ch; }
.end__skipper {
  position: absolute;
  right: 0;
  bottom: calc(var(--pad) * -1);
  width: 170px;
  pointer-events: none;
}
.end .get__card { margin-right: 130px; }
@media (max-width: 1100px) {
  .end__grid { grid-template-columns: 1fr; }
  .end .get__card { margin-right: 0; max-width: 560px; }
  .end__skipper { display: none; }
}

.get {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
}
.get__card {
  position: relative;
  z-index: 1;
  padding: 32px 34px 34px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
}
.get__title {
  display: flex;
  align-items: center;
  gap: 20px;
}
.get__title img {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  flex: none;
}
.get__title .h-display,
.get__name { font-size: clamp(2.2rem, 3.6vw, 3rem); }
.get__name { line-height: 1; }
.get__sub {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sea-dark);
}
.get__lede { margin: 22px 0; font-weight: 700; max-width: 52ch; }
.get__card .stores { margin-top: 24px; gap: 12px 14px; }
.get__lede + .stores { margin-top: 0; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.facts li {
  padding: 6px 12px 5px;
  font-weight: 800;
  font-size: var(--fs-small);
  background: var(--sky-pale);
  border-radius: 999px;
}
.get__skipper {
  width: 230px;
  height: auto;
  margin-bottom: -96px;
}
.sun { display: none; }
@media (max-width: 860px) {
  .get { grid-template-columns: 1fr; }
  .get__skipper { display: none; }
  .get__card { padding: 24px 20px 26px; }
  .get__title { gap: 16px; }
  .get__title img { width: 80px; height: 80px; border-radius: 20px; }
}

/* Footer */

.footer {
  padding: 64px 0 28px;
  background: var(--night);
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 700;
}
.footer a { text-decoration: none; transition: color var(--t-hover) ease; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr);
  align-items: start;
  gap: 32px 48px;
}
.footer__brand p { margin-top: 14px; max-width: 36ch; }
.footer__links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 32px;
}
.footer__links a,
.footer__bottom a { color: var(--paper); }
.footer__contact p { margin-bottom: 6px; }
.footer__mail {
  font-family: var(--display);
  font-size: 1.375rem;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 56px;
}
@media (hover: hover) and (pointer: fine) {
  .footer a:hover { color: var(--gold); }
}
@media (max-width: 899px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* Subpages */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 0 112px;
  background: var(--sky);
  color: var(--ink);
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .h-display { font-size: clamp(3rem, 7vw, 6rem); line-height: 0.92; max-width: 11ch; }
.page-hero p.lede { max-width: 38ch; margin-top: 24px; font-size: var(--fs-lead); line-height: 1.4; color: var(--ink); }
.page-hero__art {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  bottom: 0;
  z-index: 0;
}
.page-hero__art--stand { height: calc(100% - var(--nav-h) - 14px); width: auto; }
.page-hero__art--nessie { width: min(40vw, 520px); bottom: 18px; }
.page-hero__art--rib { width: min(44vw, 620px); bottom: 34px; transform: rotate(-4deg); }
.page-hero__fleet {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  bottom: 30px;
  width: min(44vw, 600px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 18px 24px;
}
.page-hero__fleet img { width: 100%; }
.page-hero__fleet img:nth-child(odd) { transform: rotate(-4deg); }
.page-hero__fleet img:nth-child(even) { transform: rotate(3deg); }
.page-hero + .sec { padding-top: 72px; }
.page-hero + .sec .contact { margin-top: -16px; }
@media (max-width: 899px) {
  .page-hero { padding: calc(var(--nav-h) + 32px) 0 64px; }
  .page-hero__art,
  .page-hero__fleet {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    margin: 24px var(--gutter) -24px auto;
  }
  .page-hero__art--stand { height: 200px; }
  .page-hero__art--nessie { width: 62%; }
  .page-hero__art--rib { width: 70%; }
  .page-hero__fleet { display: grid; width: calc(100% - var(--gutter) * 2); margin-left: var(--gutter); }
  .page-hero .lede { max-width: none; }
}

/* A video with its notes beside it */

.watch {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: start;
  gap: 24px 40px;
}
.sec .watch .trailer { max-width: none; margin: 0; }
.watch .chapters { justify-content: flex-start; margin: 0 0 24px; }
.watch .video-note { margin: 0; text-align: left; }
@media (max-width: 899px) {
  .watch { grid-template-columns: 1fr; }
}

/* Legal pages: contents beside the text */

.legal {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  align-items: start;
  gap: 32px 48px;
}
.legal__toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  font-weight: 700;
  font-size: var(--fs-small);
}
.legal__toc p {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: var(--fs-body);
  text-transform: uppercase;
  color: var(--sea-dark);
}
.legal__toc ol { list-style: decimal; padding-left: 1.4rem; display: grid; gap: 8px; }
.legal__toc a { color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .legal__toc a:hover { color: var(--sea-dark); text-decoration: underline; }
}
.legal .doc { margin: 0; max-width: 780px; }
.doc h2 { scroll-margin-top: calc(var(--nav-h) + 16px); }
@media (max-width: 899px) {
  .legal { grid-template-columns: 1fr; }
  .legal__toc { display: none; }
}

.boat-card {
  display: flex;
  flex-direction: column;
  padding: 0 4px 6px;
}
.boat-card__art {
  position: relative;
  height: 140px;
  margin: 2px -6px 14px;
  display: grid;
  place-items: end center;
  border-radius: 10px;
  overflow: hidden;
  background: #1a578f;
}
.boat-card__art::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34px;
  background: #1584c9;
  -webkit-mask: var(--wave) repeat-x 0 0 / 160px 14px, linear-gradient(#000 0 0) 0 14px / 100% 100% no-repeat;
  mask: var(--wave) repeat-x 0 0 / 160px 14px, linear-gradient(#000 0 0) 0 14px / 100% 100% no-repeat;
}
.boat-card__art img {
  position: relative;
  z-index: 1;
  width: 92%;
  height: 112px;
  object-fit: contain;
  object-position: center bottom;
  margin-bottom: 10px;
}
.boat-card__art .price {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 10px 2px;
  background: var(--deep);
  border-radius: 10px;
}
.price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--display);
  font-size: var(--fs-small);
  color: var(--gold);
  -webkit-text-stroke: 0.18em var(--ink);
  paint-order: stroke fill;
  white-space: nowrap;
}
.price--free { color: #7ef08a; }
.price--lock { color: var(--paper); }
.price--lock .lock { width: 13px; height: 15px; color: var(--muted); }
.boat-card__role {
  margin-top: 2px;
  font-family: var(--display);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.boat-card--locked {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 4px 8px;
}
.boat-card--locked .mystery { margin: 0; width: 92px; height: 92px; font-size: 3.8rem; flex: none; }
.boat-card--locked p { font-weight: 700; color: var(--muted); }
.boat-card--locked h3 { font-size: var(--fs-title); margin-bottom: 4px; }
.mystery {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  font-family: var(--display);
  font-size: 5rem;
  line-height: 1;
  color: var(--paper);
  -webkit-text-stroke: 0.12em var(--ink);
  paint-order: stroke fill;
  background: #0c2440;
  border-radius: 50%;
}

.stats { display: grid; gap: 8px; margin: 0; }
.stats div {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
}
.stats dt {
  font-family: var(--display);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd { margin: 0; }
.meter {
  --v: 5;
  --m: 0;
  --n: 10;
  position: relative;
  isolation: isolate;
  display: block;
  height: 16px;
  background: #0c2440;
  border-radius: 5px;
  overflow: hidden;
}
.meter::before {
  content: "";
  position: absolute;
  inset: 3px;
  width: calc((100% - 6px) * var(--v) / var(--n));
  background: var(--gold);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--v) - 3px), transparent 0 calc(100% / var(--v)));
  mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--v) - 3px), transparent 0 calc(100% / var(--v)));
}
.meter::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  width: calc((100% - 6px) * var(--m) / var(--n));
  background: #7a6b39;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--m) - 3px), transparent 0 calc(100% / var(--m)));
  mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--m) - 3px), transparent 0 calc(100% / var(--m)));
}
.fleet-key { margin: 10px 0 0; color: var(--muted-ink); font-size: var(--fs-small); }

.world {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.world__art {
  position: relative;
  aspect-ratio: 1040 / 520;
  overflow: hidden;
  background: var(--sky-pale);
}
.world__art > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.world__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 20px 18px;
}
.world--locked {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 20px 26px;
  background: var(--navy);
  color: var(--paper);
}
.world--locked .mystery { margin: 0; width: 92px; height: 92px; font-size: 3.8rem; flex: none; }
.world--locked h3 { font-size: var(--fs-title); }
.world--locked p { margin-top: 4px; font-weight: 700; color: var(--muted); }

.sea-rows { display: grid; gap: 30px; }
.world.sea { scroll-margin-top: calc(var(--nav-h) + 16px); }
.sea .world__art { aspect-ratio: auto; height: clamp(190px, 25vw, 320px); }
.sea .world__actor { max-width: 330px; }
.sea .world__body { padding: 22px 28px 24px; }
.sea .world__name { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.sea__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  margin: 18px 0 0;
}
.sea__facts .sea__fit { grid-column: 1 / -1; }
.sea__facts dt {
  font-family: var(--display);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sea-dark);
}
.sea__facts dd { margin: 2px 0 0; font-weight: 700; line-height: 1.55; }
.fit {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 1px 10px 0;
  border-radius: 999px;
  font-weight: 900;
  font-size: var(--fs-small);
  white-space: nowrap;
}
.fit--best { background: #7ef08a; }
.fit--good { background: #ffe08a; }
.fit--tough { background: #ffb3a6; }
.stat-table .fit { margin: 0; }
@media (max-width: 760px) {
  .sea .world__art { height: auto; aspect-ratio: 1040 / 520; }
  .sea__facts { grid-template-columns: 1fr; }
  .sea .world__body { padding: 16px 18px 18px; }
}

.boat-rows { display: grid; gap: 28px; }
.boat-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 18px 34px;
  padding: 6px 8px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.boat-row .boat-card__art { height: 230px; margin: 0; }
.boat-row .boat-card__art img { height: 190px; }
.boat-row__name { font-size: clamp(2rem, 3.6vw, 2.75rem); -webkit-text-stroke-width: 0.15em; }
.boat-row p { margin-top: 12px; font-weight: 700; line-height: 1.6; }
.boat-row p.boat-card__role { margin-top: 4px; }
.boat-row__best strong { color: var(--gold); font-weight: 900; }
.boat-row .stats { margin-top: 18px; max-width: 440px; }
@media (max-width: 760px) {
  .boat-row { grid-template-columns: 1fr; }
  .boat-row .boat-card__art { height: 170px; }
  .boat-row .boat-card__art img { height: 140px; }
}

.more {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 40px;
}

.video-note {
  max-width: 820px;
  margin: 26px 0 0;
  font-weight: 700;
  line-height: 1.6;
}
.video-note a { color: var(--gold); font-weight: 900; }
.sec--sky .video-note a,
.sec--sand .video-note a { color: var(--sea-dark); }
.sec .trailer { max-width: 1080px; margin-inline: auto; }
.tr .trailer { max-width: none; }

.chapters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1080px;
  margin: 24px auto 0;
}
.chapters a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 7px 8px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .chapters a:hover { background: var(--gold); }
}
.chapters a:active { transform: scale(0.97); }
.chapters time {
  padding: 2px 8px 1px;
  background: var(--gold);
  border-radius: 999px;
  font-family: var(--display);
  font-size: var(--fs-small);
}
.chapters a:hover time { background: var(--paper); }

.table-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  overflow-x: auto;
}
.stat-table { width: 100%; min-width: 520px; border-collapse: collapse; font-weight: 800; }
.stat-table caption { padding: 18px 20px 4px; text-align: left; font-weight: 700; color: var(--muted-ink); }
.stat-table th,
.stat-table td { padding: 13px 18px; text-align: center; }
.stat-table th:first-child,
.stat-table td:first-child { text-align: left; }
.stat-table thead th {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sea-dark);
}
.stat-table tbody tr { border-top: 2px solid #dde9f3; }
.stat-table b { color: var(--sea-dark); font-weight: 900; }

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 28px 32px;
  position: relative;
  z-index: 2;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
}
.contact__label {
  font-family: var(--display);
  font-size: var(--fs-body);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sea-dark);
}
.contact__email {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  overflow-wrap: anywhere;
  color: var(--ink);
  text-decoration: none;
}
.contact__email:hover { color: var(--sea-dark); }
.contact p { font-weight: 700; color: var(--muted-ink); }

.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details {
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
}
.faq summary {
  position: relative;
  padding: 20px 60px 20px 24px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--paper);
  background: var(--sea-dark);
  border-radius: 9px;
}
.faq details[open] summary::after { content: "–"; background: var(--red-field); }
.faq__body { padding: 0 24px 22px; font-weight: 600; line-height: 1.65; }
.faq__body p + p,
.faq__body p + ul,
.faq__body ul + p { margin-top: 10px; }
.faq__body ul { list-style: disc; padding-left: 1.2rem; }
.faq__body a { color: var(--sea-dark); font-weight: 800; }

.panel {
  max-width: 900px;
  padding: 30px 32px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
}
.checklist { display: grid; gap: 8px; font-weight: 700; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
  border-radius: 6px;
}

.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 48px 48px;
  background: var(--paper);
  color: #1d2733;
  border-radius: var(--radius);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.doc h2 {
  margin: 34px 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.doc h2:first-of-type { margin-top: 26px; }
.doc h3 { margin: 20px 0 6px; font-weight: 900; font-size: 1.0625rem; }
.doc p + p,
.doc ul + p,
.doc p + ul { margin-top: 10px; }
.doc ul { list-style: disc; padding-left: 1.3rem; }
.doc li { margin: 6px 0; }
.doc a { color: var(--sea-dark); font-weight: 800; }
.doc .meta { font-weight: 800; color: var(--muted-ink); }
.doc .tldr {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--sky-pale);
  border-radius: 16px;
  font-weight: 700;
}
@media (max-width: 640px) {
  .doc { padding: 26px 20px 30px; border-radius: 20px; }
  .doc h2 { font-size: 1.25rem; }
}

/* Press kit */

.page-hero__art--logo { width: min(36vw, 500px); bottom: 72px; transform: rotate(-4deg); }
@media (max-width: 899px) {
  .page-hero__art--logo { bottom: auto; width: 64%; max-width: 420px; }
}

.press {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: 24px 40px;
}
.press__facts {
  margin: 0;
  padding: 16px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
}
.press__facts div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 4px 24px;
  padding: 14px 18px;
  border-radius: 14px;
}
.press__facts div:nth-child(odd) { background: var(--sky-pale); }
.press__facts dt {
  font-family: var(--display);
  font-size: var(--fs-body);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sea-dark);
}
.press__facts dd { margin: 0; font-weight: 700; line-height: 1.5; }
.press__facts a { color: var(--sea-dark); font-weight: 800; overflow-wrap: anywhere; }
.press__side { display: grid; gap: 24px; position: sticky; top: calc(var(--nav-h) + 24px); }
.press__card {
  padding: 28px 30px 30px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
}
.press__card h3 { font-size: var(--fs-title); }
.press__card p { margin-top: 12px; font-weight: 700; line-height: 1.55; }
.press__card .contact__email { margin-top: 12px; }
.press__card .plate { margin-top: 20px; }
.press__card a:not(.plate):not(.contact__email) { color: var(--sea-dark); font-weight: 800; }
.press__card .stores { margin-top: 18px; }
@media (max-width: 899px) {
  .press { grid-template-columns: 1fr; }
  .press__side { position: static; }
}
@media (max-width: 600px) {
  .press__facts { padding: 10px; }
  .press__facts div { grid-template-columns: 1fr; padding: 12px 14px; }
  .press__card { padding: 22px 20px 24px; }
}

.feat {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
  gap: 32px 56px;
}
.feat .checklist { gap: 14px; font-size: var(--fs-body); }
.feat .checklist li::before { top: 3px; }
.feat__shot { margin: 0; }
.feat__shot img { width: 100%; border-radius: var(--radius); }
.feat__shot figcaption { margin-top: 10px; font-weight: 800; }
@media (max-width: 899px) {
  .feat { grid-template-columns: 1fr; }
}

.files { display: grid; gap: 12px; margin: 0; }
.files a {
  display: block;
  padding: 16px 20px 15px;
  background: var(--navy);
  border-radius: 20px;
  text-decoration: none;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.files b { display: block; font-weight: 900; }
.files span { display: block; margin-top: 2px; font-weight: 700; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .files a:hover { background: var(--navy-2); }
}
.files a:active { transform: scale(0.98); }
.watch__side .files { margin-top: 0; }

.shots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 16px;
}
.shots figure { margin: 0; }
.shots a { display: block; border-radius: 16px; overflow: hidden; transition: transform var(--t-press) var(--ease-out); }
.shots a:active { transform: scale(0.98); }
.shots img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .shots a:hover img { opacity: 0.85; }
}
.shots figcaption { margin-top: 10px; font-weight: 800; line-height: 1.4; }
.shots figcaption span { display: block; margin-top: 2px; font-weight: 700; color: var(--muted); }
@media (max-width: 1100px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lost {
  min-height: calc(100svh - var(--nav-h) - 192px);
  display: grid;
  place-items: center;
  text-align: center;
}
.lost img { width: min(300px, 70vw); height: auto; margin: 0 auto 10px; transform: rotate(168deg); }
.lost p { margin: 16px auto 26px; max-width: 40ch; font-weight: 700; }

.play { min-height: 100svh; padding-top: calc(var(--nav-h) + 48px); }
.play__back { margin-top: 24px; font-weight: 800; }
.play__back a { color: var(--sea-dark); }

.bob { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob {
  50% { transform: translateY(-6px) rotate(-1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
