/* ============================================================
   Hustlin' Pirates landing page styles
   Palette from box/card art:
   ink       #0e1a21   deep navy-teal (logo outline)
   ink-2     #16232b
   cream     #f7edd6   logo "HUSTLIN'"
   gold      #f0b437   logo "PIRATES"
   gold-deep #d9962b
   parchment #ecd9ab   banner tan
   ocean     #2aa5b8   turquoise sea
   ocean-deep#155f72
   sky       #bfe6f2
   red       #d94f3d   captain coat
   green     #3f9e63   defence upgrades
   purple    #3b3560   ship cards
   ============================================================ */

:root {
  --ink: #0e1a21;
  --ink-2: #16232b;
  --cream: #f7edd6;
  --gold: #f0b437;
  --gold-deep: #d9962b;
  --parchment: #ecd9ab;
  --parchment-light: #f6ecd2;
  --ocean: #2aa5b8;
  --ocean-deep: #155f72;
  --sky: #bfe6f2;
  --red: #d94f3d;
  --green: #3f9e63;
  --purple: #3b3560;

  --font-display: "Alfa Slab One", "Georgia", serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  --container: 72rem;
  --radius: 1.25rem;
  --shadow-card: 0 10px 30px rgba(14, 26, 33, .35);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis { height: auto; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; } /* fallback if JS/Lenis fails to load */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { max-width: 46rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: -4rem; left: 1rem; z-index: 1000;
  background: var(--ink); color: var(--cream);
  padding: .75rem 1.25rem; border-radius: .5rem;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: .25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 800; font-size: 1.05rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  text-decoration: none; border: none; cursor: pointer;
  min-height: 44px;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s;
  touch-action: manipulation;
}
.btn svg { width: 1.2em; height: 1.2em; }
.btn:active { transform: scale(.97); }

.btn--primary {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #f7c34f, var(--gold) 55%, var(--gold-deep));
  color: var(--ink);
  border: 2px solid rgba(14, 26, 33, .25);
  box-shadow: 0 6px 20px rgba(217, 150, 43, .45), inset 0 2px 0 rgba(255, 255, 255, .5);
}
.btn--primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 30px rgba(217, 150, 43, .6), inset 0 2px 0 rgba(255,255,255,.5); }

.btn--ghost {
  background: rgba(14, 26, 33, .35);
  color: var(--cream);
  border: 2px solid rgba(247, 237, 214, .65);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(14, 26, 33, .55); transform: translateY(-2px); }

.btn--nav { padding: .6rem 1.2rem; font-size: .95rem; background: var(--gold); color: var(--ink); box-shadow: inset 0 2px 0 rgba(255,255,255,.4); }
.btn--nav:hover { background: #f7c34f; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: .6rem 0;
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled {
  background: rgba(14, 26, 33, .88);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}
.nav__inner {
  width: min(100% - 2.5rem, var(--container)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__logo { width: 82px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.nav__actions { display: flex; align-items: center; gap: 1.1rem; }
.nav__links { display: flex; align-items: center; gap: 1.3rem; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--cream); text-decoration: none; font-weight: 800; font-size: .98rem;
  padding: .5rem .25rem; text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.nav__link:hover { color: var(--gold); }
.nav__toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  flex-direction: column; justify-content: center; gap: 5px;
  background: rgba(14, 26, 33, .55); border: 1.5px solid rgba(247, 237, 214, .4);
  border-radius: 12px; cursor: pointer; backdrop-filter: blur(6px);
}
.nav__toggle span {
  display: block; height: 2.5px; border-radius: 2px; background: var(--cream);
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14, 26, 33, .96); backdrop-filter: blur(10px);
    border-top: 1.5px solid rgba(240, 180, 55, .3);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
    padding: .4rem 1.25rem .9rem;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: rgba(14, 26, 33, .96); }
  .nav__link { min-height: 48px; padding: .6rem .25rem; border-bottom: 1px solid rgba(247, 237, 214, .1); text-shadow: none; }
  .nav__link:last-child { border-bottom: 0; }
  .btn--nav { padding: .55rem .9rem; font-size: .88rem; }
}

/* ---------- Hero ----------
   The video/poster fills only the top --hero-media-h of the hero and is anchored low in
   that box, so the ship's hull always sits above the bottom strip that holds the tagline,
   buttons and badges. Its lower edge fades into the hero's deep-ocean background. On
   phones the media box is shorter so the whole hull fits inside the narrow crop. */
.hero {
  --hero-media-h: 84%;
  position: relative; min-height: max(100svh, 42rem);
  overflow: hidden;
  background: var(--ocean-deep);
}
.hero__media {
  position: absolute; top: 0; left: 0;
  width: 100%; height: var(--hero-media-h);
  object-fit: cover; object-position: center 90%;
}
.hero__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 95, 114, 0) calc(var(--hero-media-h) - 11%), var(--ocean-deep) calc(var(--hero-media-h) - 1%)),
    radial-gradient(120% 90% at 50% 42%, transparent 45%, rgba(10, 30, 40, .55) 100%),
    linear-gradient(180deg, rgba(10, 30, 40, .35), transparent 30%);
}
.hero__content {
  position: absolute; inset: 0; z-index: 2; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 6.5rem 1.25rem 0;
}
.hero__logo {
  width: min(400px, 70vw); height: auto; margin-inline: auto; flex: 0 0 auto;
  filter: drop-shadow(0 14px 30px rgba(8, 20, 28, .55));
}
.hero__bottom {
  position: absolute; left: 1.25rem; right: 1.25rem; bottom: clamp(.9rem, 2.5svh, 1.6rem);
  display: grid; justify-items: center; gap: .7rem;
}
.hero__panel {
  width: min(100%, 44rem);
  background: rgba(11, 23, 31, .72);
  border: 1.5px solid rgba(247, 237, 214, .25);
  border-radius: 1.2rem;
  padding: .85rem clamp(1rem, 2.4vw, 1.6rem) .95rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .3);
}
.hero__sub {
  color: var(--cream); font-size: clamp(.95rem, 1.6vw, 1.08rem); line-height: 1.4; font-weight: 800;
  margin: 0 0 .7rem;
}
.hero__cta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.hero__cta .btn { padding: .75rem 1.4rem; font-size: 1rem; }
@media (max-width: 720px) {
  .hero { --hero-media-h: 54%; }
  .hero__content { padding-top: 5.5rem; }
  .hero__logo { width: min(300px, 68vw); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .hero__badges { gap: .45rem; }
  .hero__badges li { font-size: .82rem; padding: .4rem .75rem; }
}
.hero__badges {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap;
}
.hero__badges li {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(14, 26, 33, .62); color: var(--cream);
  border: 1.5px solid rgba(247, 237, 214, .3);
  padding: .5rem .95rem; border-radius: 999px;
  font-size: .92rem; font-weight: 700;
  backdrop-filter: blur(6px);
}
.hero__badges svg { width: 1.1rem; height: 1.1rem; color: var(--gold); }
.hero__badges strong { color: var(--gold); font-weight: 900; }
.hero__botlink {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, #f7c34f, var(--gold));
  margin: -.5rem -.95rem; padding: .5rem .95rem; border-radius: 999px;
}
.hero__botlink svg { color: var(--ink) !important; }
.hero__botlink strong { color: var(--ink) !important; }
.hero__botlink:hover { background: #f7c34f; }
.hero__badges li:has(.hero__botlink) { background: transparent; border-color: var(--gold); padding: .5rem .95rem; }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero__wave svg { width: 100%; height: clamp(50px, 8vw, 110px); }

.br-desktop { display: none; }
@media (min-width: 720px) { .br-desktop { display: inline; } }

/* ---------- How-to-play verses ---------- */
.verse { position: relative; overflow: hidden; color: var(--cream); }
.verse__bg {
  position: absolute; inset: -8% 0;
  background-position: center; background-size: cover;
  will-change: transform;
}
.verse--build   .verse__bg { background-image: url("../assets/img/build.webp"); }
.verse--plunder .verse__bg { background-image: url("../assets/img/plunder.webp"); }
.verse--scheme  .verse__bg { background-image: url("../assets/img/scheme.webp"); }
.verse__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.verse::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10, 24, 32, .82) 0%, rgba(10, 24, 32, .55) 45%, rgba(10, 24, 32, .18) 100%);
}
.verse__inner--flip + .verse::before,
.verse--plunder::before {
  background: linear-gradient(-100deg, rgba(10, 24, 32, .82) 0%, rgba(10, 24, 32, .55) 45%, rgba(10, 24, 32, .18) 100%);
}
.verse__inner {
  position: relative; z-index: 2;
  min-height: 92svh;
  display: grid; align-items: center; gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding-block: clamp(4rem, 8vw, 6rem);
}
.verse__inner--flip .verse__copy { order: 2; }
.verse__inner--flip .verse__stage { order: 1; }
@media (max-width: 860px) {
  .verse__inner { grid-template-columns: 1fr; gap: 2rem; }
  .verse__inner--flip .verse__copy { order: 1; }
  .verse__inner--flip .verse__stage { order: 2; }
}
.verse__kicker {
  display: inline-block; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
  font-size: .85rem; color: var(--gold); margin-bottom: .8rem;
  background: rgba(14,26,33,.55); padding: .35rem .8rem; border-radius: 999px;
  border: 1px solid rgba(240,180,55,.35);
}
.verse__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem); letter-spacing: .02em;
  color: var(--gold);
  text-shadow: 0 6px 0 rgba(14, 26, 33, .8), 0 12px 30px rgba(8, 20, 28, .6);
  margin-bottom: .2em;
}
.verse__sub { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 900; margin: 0 0 .5em; }
.verse__panel {
  max-width: 36rem;
  background: rgba(11, 23, 31, .74);
  border: 1.5px solid rgba(247, 237, 214, .22);
  border-radius: 1.4rem;
  padding: clamp(1.2rem, 2.4vw, 1.7rem) clamp(1.3rem, 2.8vw, 2rem);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .35);
}
.verse__panel p { margin: 0; font-size: 1.08rem; color: #e9eef0; }
.verse__copy em { color: var(--gold); font-style: normal; font-weight: 800; }
.verse__stage { display: grid; place-items: center; min-height: 380px; }

/* build stage */
.stage-build { position: relative; display: grid; place-items: center; }
.stage-build__port { width: clamp(170px, 20vw, 230px); border-radius: 12px; box-shadow: var(--shadow-card); position: relative; z-index: 2; }
.stage-build__resources { display: flex; justify-content: center; margin-top: -2.2rem; }
.stage-build__res {
  width: clamp(110px, 12vw, 150px); border-radius: 9px; box-shadow: var(--shadow-card);
  margin-inline: -1.4rem;
}
.stage-build__res:nth-child(1) { transform: rotate(-10deg) translateY(10px); }
.stage-build__res:nth-child(2) { transform: translateY(2px); z-index: 1; }
.stage-build__res:nth-child(3) { transform: rotate(10deg) translateY(10px); }
.stage-build__stamp {
  position: absolute; top: 34%; left: 50%; z-index: 5;
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--gold); background: rgba(14, 26, 33, .92);
  border: 3px solid var(--gold); border-radius: .6rem;
  padding: .4rem 1rem; white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-8deg);
  box-shadow: 0 10px 30px rgba(8, 20, 28, .6);
}

/* plunder stage */
.stage-plunder { position: relative; width: 100%; max-width: 520px; height: 440px; }
.stage-plunder img { position: absolute; width: clamp(120px, 13vw, 165px); border-radius: 12px; box-shadow: var(--shadow-card); }
.stage-plunder__attack  { left: 0;  top: 16%; transform: rotate(-8deg); z-index: 1; }
.stage-plunder__defence { right: 0; top: 16%; transform: rotate(8deg); z-index: 1; }
.stage-plunder__ship {
  left: 50%; top: 8%; margin-left: calc(clamp(130px, 14vw, 180px) / -2);
  width: clamp(130px, 14vw, 180px) !important; z-index: 2;
}
.stage-plunder__combo {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%) rotate(-4deg);
  font-family: var(--font-display); font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--ink); background: linear-gradient(180deg, #f7c34f, var(--gold));
  border-radius: .6rem; padding: .35rem .9rem; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(8, 20, 28, .55); z-index: 5;
  overflow: hidden;
}
/* Glint streak, moved across the badge by GSAP every few seconds */
.glint {
  position: absolute; top: -20%; left: 0; width: 38%; height: 140%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .7) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}
.stage-plunder__loot { left: 50%; bottom: 0; margin-left: calc(clamp(120px, 13vw, 165px) / -2); transform: rotate(-3deg); z-index: 2; }
.stage-plunder__stolen {
  position: absolute; bottom: 26%; left: 50%; transform: translateX(-50%) rotate(9deg);
  font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--cream); background: var(--red);
  border: 2.5px solid var(--cream); border-radius: .55rem;
  padding: .25rem .8rem; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(8, 20, 28, .55); z-index: 6;
}

/* upgrade stage */
.stage-upgrade { position: relative; width: 100%; max-width: 480px; height: 420px; }
.stage-upgrade img { position: absolute; width: clamp(130px, 14vw, 175px); border-radius: 12px; box-shadow: var(--shadow-card); }
.stage-upgrade__ship { left: 50%; top: 4%; margin-left: calc(clamp(130px, 14vw, 175px) / -2); z-index: 2; }
.stage-upgrade__a { left: 2%; bottom: 4%; transform: rotate(-9deg); }
.stage-upgrade__b { right: 2%; bottom: 4%; transform: rotate(9deg); }

/* sabotage stage */
.stage-sabotage { position: relative; width: 100%; max-width: 440px; height: 420px; }
.stage-sabotage img { position: absolute; width: clamp(130px, 14vw, 175px); border-radius: 12px; box-shadow: var(--shadow-card); }
.stage-sabotage__ship { left: 8%; top: 8%; transform: rotate(-5deg); }
.stage-sabotage__card { right: 8%; bottom: 6%; transform: rotate(7deg); z-index: 2; }
.stage-sabotage__stamp,
.stage-fortify__stamp {
  position: absolute; top: 45%; left: 50%;
  transform: translate(-50%, -50%) rotate(-7deg);
  font-family: var(--font-display); font-size: clamp(.95rem, 1.9vw, 1.3rem);
  color: var(--cream); background: rgba(14, 26, 33, .92);
  border: 2.5px solid var(--gold); border-radius: .6rem;
  padding: .35rem .9rem; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(8, 20, 28, .6); z-index: 5;
}
.stage-sabotage__stamp { border-color: #74c968; color: #b7f0ae; }

/* fortify stage */
.stage-fortify { position: relative; width: 100%; max-width: 400px; height: 400px; }
.stage-fortify img { position: absolute; width: clamp(130px, 14vw, 175px); border-radius: 12px; box-shadow: var(--shadow-card); }
.stage-fortify__port { left: 50%; top: 6%; margin-left: calc(clamp(130px, 14vw, 175px) * -0.72); transform: rotate(-5deg); }
.stage-fortify__card { left: 50%; bottom: 8%; margin-left: calc(clamp(130px, 14vw, 175px) * -0.28); transform: rotate(6deg); z-index: 2; }

/* scheme stage */
.stage-scheme { display: flex; justify-content: center; }
.stage-scheme__card {
  width: clamp(120px, 13vw, 170px); border-radius: 12px; box-shadow: var(--shadow-card);
  margin-inline: -1.6rem;
}
.stage-scheme__card:nth-child(1) { transform: rotate(-14deg) translateY(18px); }
.stage-scheme__card:nth-child(2) { transform: rotate(-5deg); }
.stage-scheme__card:nth-child(3) { transform: rotate(5deg); }
.stage-scheme__card:nth-child(4) { transform: rotate(14deg) translateY(18px); }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--gold); color: var(--ink);
  overflow: hidden; padding: .75rem 0;
  border-block: 3px solid var(--ink);
}
.ticker--reverse { background: var(--ink); color: var(--gold); border-color: var(--gold); }
.ticker__track {
  display: flex; align-items: center; gap: 1.6rem; width: max-content;
  font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: .06em; white-space: nowrap;
  animation: ticker-scroll 26s linear infinite;
}
.ticker--reverse .ticker__track { animation-direction: reverse; }
.ticker__track i { font-style: normal; font-size: .7em; opacity: .65; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ---------- Card showcase (framed video + card + copy beside) ---------- */
.showcase { background: var(--ink-2); color: var(--cream); padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(5rem, 10vw, 7.5rem); overflow-x: clip; }
.showcase__inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 3rem; align-items: center;
}
@media (max-width: 860px) { .showcase__inner { grid-template-columns: 1fr; } }
.showcase__media { position: relative; }
.showcase__video {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  border: 3px solid rgba(240, 180, 55, .35);
}
.showcase__card {
  position: absolute; right: -1.2rem; bottom: -1.8rem;
  width: clamp(120px, 12vw, 160px); border-radius: 10px;
  box-shadow: var(--shadow-card);
  transform: rotate(7deg);
  transition: transform .3s var(--ease-out);
}
.showcase__card:hover { transform: rotate(2deg) scale(1.05); }
.showcase__copy p { color: #c6d2d8; font-size: 1.1rem; max-width: 32rem; }

/* ---------- Rule Bot ---------- */
.rulebot { background: linear-gradient(180deg, #fbf3dd, var(--parchment-light)); padding: clamp(4rem, 9vw, 7rem) 0; }
.rulebot__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
@media (max-width: 900px) { .rulebot__grid { grid-template-columns: 1fr; } }
.rulebot__intro p { color: #40515a; font-size: 1.12rem; max-width: 30rem; }
.rulebot__hints { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.rulebot__hints li {
  position: relative; padding-left: 1.6rem; color: #55676f; font-weight: 700; font-size: .98rem;
}
.rulebot__hints li::before {
  content: "◆"; position: absolute; left: 0; color: var(--gold-deep); font-size: .8rem; top: .2rem;
}
.rulebot__chat {
  background: var(--ink); border-radius: 1.4rem; overflow: hidden;
  box-shadow: 0 24px 60px rgba(14, 26, 33, .35);
  border: 2px solid rgba(240, 180, 55, .5);
  border-top: 6px solid var(--gold);
}
.rulebot__header {
  display: flex; align-items: center; gap: .6rem;
  background: linear-gradient(180deg, #1a2c36, var(--ink-2)); color: var(--cream);
  padding: .9rem 1.2rem; font-weight: 900;
  border-bottom: 1.5px solid rgba(240, 180, 55, .25);
}
.rulebot__header svg { width: 24px; height: 24px; color: var(--gold); }
.rulebot__header em { margin-left: auto; font-style: italic; font-weight: 700; font-size: .82rem; color: #b4c5cc; }
.rulebot__log {
  height: 300px; overflow-y: auto;
  padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem;
  scroll-behavior: smooth;
}
.rulebot__msg {
  max-width: 85%; padding: .7rem 1rem; border-radius: 1rem;
  font-size: .98rem; line-height: 1.45;
}
.rulebot__msg--bot { background: var(--ink-2); color: #dbe5e9; border-bottom-left-radius: .25rem; align-self: flex-start; }
.rulebot__msg--user { background: var(--gold); color: var(--ink); font-weight: 700; border-bottom-right-radius: .25rem; align-self: flex-end; }
.rulebot__suggest { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.rulebot__suggest span { flex-basis: 100%; margin-bottom: .2rem; }
.rulebot__suggest button {
  font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer;
  color: var(--gold); background: rgba(240, 180, 55, .08);
  border: 1.5px solid rgba(240, 180, 55, .45); border-radius: 999px;
  padding: .5rem .9rem; min-height: 44px;
  transition: background .2s, color .2s;
}
.rulebot__suggest button:hover { background: var(--gold); color: var(--ink); }
.rulebot__chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.2rem .9rem; }
.rulebot__chips button {
  font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer;
  color: var(--gold); background: transparent;
  border: 1.5px solid rgba(240, 180, 55, .45); border-radius: 999px;
  padding: .5rem .95rem; min-height: 44px;
  transition: background .2s, color .2s;
}
.rulebot__chips button:hover { background: var(--gold); color: var(--ink); }
.rulebot__form { display: flex; gap: .6rem; padding: .9rem 1.2rem 1.2rem; border-top: 1.5px solid rgba(247, 237, 214, .12); }
.rulebot__form input {
  flex: 1; font: inherit; font-weight: 600;
  background: var(--ink-2); color: var(--cream);
  border: 1.5px solid rgba(247, 237, 214, .2); border-radius: 999px;
  padding: .7rem 1.1rem; min-height: 44px;
}
.rulebot__form input::placeholder { color: #7d939e; }
.rulebot__send { padding: .7rem 1rem; min-width: 52px; }
.rulebot__send svg { width: 1.15rem; height: 1.15rem; }

/* ---------- What it is + how a turn works ---------- */
.learn {
  position: relative;
  background: linear-gradient(180deg, #fbf3dd, var(--parchment-light));
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 6.5rem);
  overflow: hidden;
}
.section-title--dark { color: var(--ink); }
.learn__top {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.learn__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); margin-bottom: .5em;
  text-wrap: balance;
}
.learn__title .accent { color: var(--gold-deep); display: block; }
.learn__lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); font-weight: 700; color: var(--ink); max-width: 36rem; margin: 0 0 .9rem; }
.learn__lead--small { font-size: 1.08rem; font-weight: 600; color: #40515a; margin-bottom: 0; }
.learn__box { margin: 0; justify-self: center; }
.learn__box img {
  width: min(340px, 60vw); height: auto;
  filter: drop-shadow(0 22px 34px rgba(14, 26, 33, .32));
  transform: rotate(2.5deg);
}
.learn__how {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ink);
  margin: clamp(3rem, 6vw, 4.5rem) 0 1.6rem; text-align: center;
}
.learn__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.4rem; grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: step;
}
.learn__step {
  position: relative;
  background: #fffaf0; border: 1.5px solid #e4d3a8; border-radius: 1.4rem;
  padding: 1.1rem 1.4rem 1.6rem;
  box-shadow: 0 14px 34px rgba(14, 26, 33, .1);
}
.learn__num {
  position: absolute; top: -1.1rem; left: 1.2rem; z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, #ffd978, var(--gold) 55%, var(--gold-deep));
  border: 3px solid var(--ink);
  box-shadow: 0 6px 16px rgba(14, 26, 33, .35), inset 0 2px 0 rgba(255, 255, 255, .55);
}
.learn__step h3 { font-size: 1.14rem; line-height: 1.3; margin: .9rem 0 .35rem; color: var(--ink); }
.learn__step p { margin: 0; color: #40515a; font-size: .98rem; }
.learn__art {
  position: relative; height: 180px;
  display: flex; align-items: flex-end; justify-content: center;
  margin: 1.4rem auto 0; padding-bottom: .6rem;
}
.learn__art img {
  width: 92px; height: auto; border-radius: 7px;
  box-shadow: 0 8px 18px rgba(14, 26, 33, .3);
  transform-origin: 50% 100%;
}
/* step 1: a fanned hand */
.learn__art--hand img { margin-inline: -1.1rem; }
.learn__art--hand img:nth-child(1) { transform: rotate(-16deg) translateY(10px); }
.learn__art--hand img:nth-child(2) { transform: translateY(-4px); z-index: 1; }
.learn__art--hand img:nth-child(3) { transform: rotate(16deg) translateY(10px); }
/* step 2: a port with gold under it, a ship with an upgrade, and an action card */
.learn__art--play { gap: .55rem; }
.learn__art--play img { width: 74px; }
.learn__pair { position: relative; display: block; width: 74px; height: 134px; }
.learn__pair img { position: absolute; left: 0; }
.learn__pair--port img:nth-child(1) { top: 0; z-index: 2; }
.learn__pair--port img:nth-child(2) { top: 20px; left: 6px; }
.learn__pair--ship img:nth-child(1) { top: 0; z-index: 2; }
.learn__pair--ship img:nth-child(2) { top: 16px; left: 12px; transform: rotate(10deg); }
.learn__action { transform: rotate(8deg) translateY(-6px); }
/* step 3: three of one colour, or one of each of five */
.learn__art--win { flex-direction: column; justify-content: flex-end; gap: .25rem; }
.learn__row { display: flex; justify-content: center; }
.learn__row--three img { width: 58px; margin-inline: -.35rem; }
.learn__row--three img:nth-child(1) { transform: rotate(-6deg) translateY(4px); }
.learn__row--three img:nth-child(3) { transform: rotate(6deg) translateY(4px); }
.learn__row--five img { width: 44px; margin-inline: -.3rem; }
.learn__row--five img:nth-child(1) { transform: rotate(-9deg) translateY(5px); }
.learn__row--five img:nth-child(2) { transform: rotate(-4deg) translateY(1px); }
.learn__row--five img:nth-child(4) { transform: rotate(4deg) translateY(1px); }
.learn__row--five img:nth-child(5) { transform: rotate(9deg) translateY(5px); }
.learn__or {
  font-family: var(--font-display); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-deep); margin: .15rem 0;
}
@media (max-width: 900px) {
  .learn__steps { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; gap: 2rem; }
}
@media (max-width: 760px) {
  .learn__top { grid-template-columns: 1fr; gap: 1.6rem; text-align: center; }
  .learn__lead { margin-inline: auto; }
  .learn__box img { width: min(260px, 60vw); }
}

/* ---------- Gallery ---------- */
.gallery { background: var(--ink); color: var(--cream); padding: clamp(4rem, 9vw, 6.5rem) 0; overflow: hidden; }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4.2vw, 2.9rem); color: var(--gold); }
.section-sub { color: #c6d2d8; margin-top: -0.4rem; margin-bottom: 2.4rem; font-size: 1.1rem; }
.marquee { overflow: hidden; padding-block: 1.1rem; }
.marquee + .marquee { margin-top: -.2rem; }
.marquee__track { display: flex; gap: 1.3rem; width: max-content; will-change: transform; }
.mcard {
  position: relative; margin: 0; flex: 0 0 auto;
  width: clamp(150px, 15vw, 196px); aspect-ratio: 212 / 329;
  border-radius: 11px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.mcard img { width: 100%; height: 100%; border-radius: 11px; object-fit: cover; }
.mcard:hover { transform: translateY(-12px) scale(1.04); box-shadow: 0 22px 40px rgba(0, 0, 0, .55); z-index: 2; }
/* Mystery tease: a card back styled in the deck's own colours, deliberately not a blurred image */
.mcard--mystery {
  display: grid; place-content: center; gap: .3rem; text-align: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(240, 180, 55, .22), transparent 55%),
    repeating-linear-gradient(135deg, rgba(247, 237, 214, .05) 0 6px, transparent 6px 14px),
    linear-gradient(180deg, #1c3340, var(--ink));
  border: 3px solid var(--gold);
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4.5px rgba(240, 180, 55, .45), 0 10px 26px rgba(0, 0, 0, .45);
}
.mcard__q {
  font-family: var(--font-display); font-size: 3.6rem; line-height: 1; color: var(--gold);
  text-shadow: 0 4px 0 rgba(8, 20, 28, .9);
}
.mcard__tease {
  font-weight: 900; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); border-radius: 999px; padding: .25rem .6rem;
}
.gallery__note { color: #c6d2d8; margin-top: 2.2rem; font-size: 1.05rem; text-align: center; max-width: 44rem; }
.reduced-motion .marquee, html.no-js .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Where to buy ---------- */
.buy { background: var(--cream); padding: clamp(4rem, 9vw, 6.5rem) 0; text-align: center; border-top: 3px solid var(--ink); }
.buy__sub { max-width: 40rem; margin: -.2rem auto 2.4rem; color: #40515a; font-size: 1.1rem; }
.buy__tiles {
  list-style: none; margin: 0 auto; padding: 0; max-width: 60rem;
  display: grid; gap: 1.2rem; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.buy__tile {
  position: relative; display: grid; justify-items: center; gap: .35rem;
  background: #fffaf0; border: 1.5px solid #e4d3a8; border-radius: 1.4rem;
  padding: 2rem 1.4rem 1.7rem;
  box-shadow: 0 10px 28px rgba(14, 26, 33, .08);
}
.buy__tile--first { background: linear-gradient(180deg, #fffaf0, #fdf1d2); border-color: rgba(217, 150, 43, .6); }
.buy__tile svg { width: 2.2rem; height: 2.2rem; color: var(--gold-deep); margin-bottom: .4rem; }
.buy__tile strong { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--ink); }
.buy__tile span { color: #55676f; font-size: .98rem; max-width: 18rem; }
.buy__tile em {
  margin-top: .8rem; font-style: normal; font-weight: 900; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); border-radius: 999px; padding: .3rem .7rem;
}
@media (max-width: 760px) { .buy__tiles { grid-template-columns: 1fr; max-width: 26rem; } }

/* ---------- Audience ---------- */
.audience { background: var(--ocean-deep); color: var(--cream); padding: clamp(4rem, 9vw, 6.5rem) 0; text-align: center; }
.audience .section-title { color: var(--cream); }
.audience__cards {
  list-style: none; padding: 0; margin: 2.6rem 0 0;
  display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.audience__cards li {
  background: rgba(14, 26, 33, .45); border: 1.5px solid rgba(191, 230, 242, .25);
  border-radius: var(--radius); padding: 1.7rem 1.4rem;
  backdrop-filter: blur(4px);
}
.audience__cards li { overflow: hidden; padding: 0 0 1.7rem; transition: transform .25s var(--ease-out); }
.audience__cards li:hover { transform: translateY(-6px); }
.audience__img {
  width: 100%; height: 150px; object-fit: cover; display: block;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid rgba(240, 180, 55, .4);
}
.audience__img--box { object-fit: contain; background: rgba(14, 26, 33, .5); padding: .6rem 0; }
.audience__cards h3 { color: var(--gold); font-size: 1.18rem; margin: 0 1.2rem .35rem; }
.audience__cards p { margin: 0 1.2rem; color: #d5e6ec; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); padding: clamp(4rem, 9vw, 6.5rem) 0; }
.faq .container--narrow { max-width: 62rem; }
.faq .section-title { color: var(--ink); text-align: center; margin-bottom: 2.2rem; }
.faq__list { display: grid; gap: .9rem; }
@media (min-width: 900px) { .faq__list { grid-template-columns: 1fr 1fr; align-items: start; } }
.faq details {
  background: #fffaf0; border: 1.5px solid #e4d3a8; border-left: 5px solid var(--gold);
  border-radius: 1rem;
  padding: 0 1.3rem;
  box-shadow: 0 3px 10px rgba(14, 26, 33, .06);
  transition: box-shadow .2s, transform .2s;
}
.faq details:hover { box-shadow: 0 8px 20px rgba(14, 26, 33, .12); transform: translateY(-2px); }
.faq details[open] { border-left-color: var(--red); background: #fff; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 900; font-size: 1.08rem;
  padding: 1.1rem 0; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__chev {
  flex: 0 0 auto; width: 12px; height: 12px;
  border-right: 3px solid var(--gold-deep); border-bottom: 3px solid var(--gold-deep);
  transform: rotate(45deg); transition: transform .25s var(--ease-out);
}
.faq details[open] .faq__chev { transform: rotate(-135deg); }
.faq details p { margin: 0 0 1.2rem; color: #40515a; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; color: var(--cream); text-align: center; }
.cta__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 24, 32, .8), rgba(10, 24, 32, .45) 55%, rgba(10, 24, 32, .78));
}
.cta__inner { position: relative; z-index: 2; padding: clamp(4.5rem, 10vw, 7.5rem) 0; }
.cta__box {
  width: min(380px, 70vw); margin: 0 auto 1.8rem;
  filter: drop-shadow(0 18px 34px rgba(8, 20, 28, .65));
  transform: rotate(-2deg);
  transition: transform .35s var(--ease-out);
}
.cta__box:hover { transform: rotate(0deg) scale(1.03); }
.cta h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.2rem); color: var(--gold); text-shadow: 0 4px 0 rgba(14,26,33,.7); }
.cta p { font-size: 1.15rem; max-width: 34rem; margin-inline: auto; text-shadow: 0 1px 6px rgba(8,20,28,.8); }
.cta__form {
  display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2rem;
}
.cta__form input {
  font: inherit; font-weight: 700;
  padding: .95rem 1.3rem; border-radius: 999px;
  border: 2px solid rgba(247, 237, 214, .5);
  background: rgba(14, 26, 33, .6); color: var(--cream);
  min-width: min(20rem, 76vw); min-height: 44px;
  backdrop-filter: blur(6px);
}
.cta__form input::placeholder { color: #9fb3bb; }
.cta__form input:focus-visible { outline-color: var(--gold); }
.cta__done { font-weight: 900; color: var(--gold); margin-top: 1.2rem; font-size: 1.15rem; }
.cta__fine { margin-top: 1rem; font-size: .92rem; font-weight: 700; color: rgba(247, 237, 214, .8); }
.cta__error { font-weight: 800; color: #ffc9bf; margin-top: 1rem; font-size: 1.02rem; text-shadow: 0 1px 6px rgba(8,20,28,.8); }
/* Honeypot: off-screen for people, present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #9fb3bb; padding: 2.2rem 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer img { width: 96px; }
.footer p { margin: 0; font-size: .95rem; }

/* ---------- Reveal defaults (JS enhances) ----------
   Only hide reveal targets once the inline head script has removed html.no-js,
   so every bit of copy stays visible when JavaScript is off or fails to load. */
html:not(.no-js) [data-reveal] { opacity: 0; transform: translateY(28px); }
html.no-js [data-reveal], .reduced-motion [data-reveal] { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee__track { transform: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
