/* ============================================================
   SEA RAIDER TREASURE — design system v2
   Concept: a hand-plotted treasure map. The page is the voyage —
   a route line and drifting marker track your progress down it,
   section markers guide each stop, and the game sits like the
   X on the map: full width, impossible to miss.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap");

@font-face {
  font-family: "MedievalSharp";
  src: url("../fonts/MedievalSharp-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --abyss: #050f17;
  --abyss-deep: #020609;
  --abyss-rise: #0a2130;
  --parchment: #ece1c4;
  --text: #eae3d1;
  --muted: #8ca4b4;
  --muted-soft: #6d8998;
  --gold: #c9a227;
  --gold-bright: #eccb6c;
  --blue: #0388c9;
  --blue-glow: #63d3ff;
  --line: rgba(201, 162, 39, 0.24);
  --line-soft: rgba(140, 164, 180, 0.16);
  --success: #63d29a;
  --error: #ff8b7d;
  --transition: 220ms cubic-bezier(.4,0,.2,1);

  /* spacing scale — 8pt grid, used everywhere so nothing feels cramped or random */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;

  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

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

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--abyss);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--parchment);
}

/* ---------- voyage route tracker (signature element) ---------- */

.voyage-track {
  display: none;
  position: absolute;
  left: 50%;
  top: 0;
  width: 180px;
  height: 1000px;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}
.voyage-path {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.voyage-path path {
  fill: none;
  stroke: rgba(201, 162, 39, 0.5);
  stroke-width: 4;
  stroke-linecap: butt;
  stroke-dasharray: 6 7;
}
.voyage-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  filter: drop-shadow(0 0 14px rgba(186, 24, 27, 0.55));
  transition: transform 140ms linear;
}
.voyage-marker span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 3px;
  background: #c62327;
  border-radius: 999px;
  transform-origin: center;
}
.voyage-marker span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}
.voyage-marker span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}
@media (min-width: 1360px) {
  .voyage-track { display: block; }

  main {
    position: relative;
    isolation: isolate;
  }

  .route-shell {
    position: relative;
    z-index: 3;
  }

  .voyage-track {
    z-index: 1;
  }

  .route-left:not(.two-column):not(.gameplay-grid):not(.game-description-grid):not(.responsible-grid):not(.contact-grid) {
    width: min(560px, calc(50vw - 190px));
    max-width: min(560px, calc(50vw - 190px));
    margin-left: var(--gutter);
    margin-right: auto;
  }

  .route-right:not(.two-column):not(.gameplay-grid):not(.game-description-grid):not(.responsible-grid):not(.contact-grid) {
    width: min(560px, calc(50vw - 190px));
    max-width: min(560px, calc(50vw - 190px));
    margin-left: auto;
    margin-right: var(--gutter);
  }

  .route-left.two-column,
  .route-left.gameplay-grid,
  .route-left.game-description-grid,
  .route-left.responsible-grid,
  .route-left.contact-grid,
  .route-right.two-column,
  .route-right.gameplay-grid,
  .route-right.game-description-grid,
  .route-right.responsible-grid,
  .route-right.contact-grid {
    width: min(1320px, calc(100vw - (var(--gutter) * 2)));
    max-width: min(1320px, calc(100vw - (var(--gutter) * 2)));
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr);
    column-gap: 0;
    align-items: center;
  }

  .route-left.two-column > :first-child,
  .route-left.gameplay-grid > :first-child,
  .route-left.game-description-grid > :first-child,
  .route-left.responsible-grid > :first-child,
  .route-left.contact-grid > :first-child {
    grid-column: 1;
  }

  .route-left.two-column > :last-child,
  .route-left.gameplay-grid > :last-child,
  .route-left.game-description-grid > :last-child,
  .route-left.responsible-grid > :last-child,
  .route-left.contact-grid > :last-child {
    grid-column: 3;
  }

  .route-right.two-column > :first-child,
  .route-right.gameplay-grid > :first-child,
  .route-right.game-description-grid > :first-child,
  .route-right.responsible-grid > :first-child,
  .route-right.contact-grid > :first-child {
    grid-column: 3;
  }

  .route-right.two-column > :last-child,
  .route-right.gameplay-grid > :last-child,
  .route-right.game-description-grid > :last-child,
  .route-right.responsible-grid > :last-child,
  .route-right.contact-grid > :last-child {
    grid-column: 1;
  }

  .route-left .section-copy,
  .route-left .responsible-copy,
  .route-left .bleed-figure,
  .route-left .gameplay-hero,
  .route-right .section-copy,
  .route-right .responsible-copy,
  .route-right .bleed-figure,
  .route-right .gameplay-hero {
    width: 100%;
    max-width: 100%;
  }

  .route-wide {
    width: min(1320px, calc(100vw - (var(--gutter) * 2)));
    max-width: min(1320px, calc(100vw - (var(--gutter) * 2)));
    margin-left: auto;
    margin-right: auto;
  }

  .route-wide > .reveal:first-child {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .route-wide .reviews-intro {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .route-wide .compass-list,
  .route-wide .values-strip,
  .route-wide .reviews-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 260px;
  }

  .route-wide .compass-list,
  .route-wide .values-strip,
  .route-wide .reviews-grid {
    row-gap: var(--sp-4);
  }

  .route-wide .compass-item,
  .route-wide .compass-item:nth-child(2n),
  .route-wide .compass-item:nth-child(odd) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .route-wide .faq-grid {
    display: block;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }

  .route-wide .faq-grid details {
    padding-top: var(--sp-3);
    padding-bottom: var(--sp-3);
  }

  .route-wide .values-strip {
    column-gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
    z-index: 3;
  }
}

/* ---------- compliance strip (18+ ribbon only — notice lives elsewhere now) ---------- */

.age-bar {
  padding: 10px 16px;
  text-align: center;
  background: rgba(5, 15, 23, 0.88);
  color: var(--gold-bright);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 15, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 90px;
}

.brand, .footer-brand { display: flex; align-items: center; gap: var(--sp-2); flex-direction: column;}

.brand-mark-img {
  width: 200px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(3, 136, 201, 0.35));
}

.brand-copy { display: grid; gap: 2px; }
.brand-copy strong {
  font-family: "Fraunces", serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--parchment);
  letter-spacing: 0.01em;
}
.brand-copy small {
  color: var(--muted-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.nav { display: flex; align-items: center; gap: var(--sp-4); }
.nav a {
  position: relative;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  padding: 4px 0;
  transition: color var(--transition);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--gold-bright);
  transition: right var(--transition);
}
.nav a:hover, .nav a:focus-visible { color: var(--parchment); }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }

.header-actions { display: flex; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span { width: 22px; height: 1.5px; background: var(--parchment); }

/* ---------- buttons — ticket-stub shape with a coin-shine sweep ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid transparent;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 14px 100%);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 620ms ease;
}
.btn:hover::before { left: 130%; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }

.btn-primary {
  color: var(--abyss-deep);
  background-color: var(--gold);
  background-image: linear-gradient(120deg, var(--gold-bright), var(--gold));
}
.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--abyss-deep);
  background-color: var(--gold-bright);
  background-image: linear-gradient(120deg, #f2d982, var(--gold-bright));
}

.btn-secondary {
  color: var(--parchment);
  border-color: rgba(99, 211, 255, 0.4);
  background: rgba(99, 211, 255, 0.06);
}
.btn-secondary:hover { border-color: var(--blue-glow); background: rgba(99, 211, 255, 0.12); }

/* ---------- notice band (moved out of the header, styled as a nailed-up ship's notice) ---------- */

.notice-band {
  position: relative;
  padding: var(--sp-3) 0;
  background: var(--abyss-deep);
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.notice-band__inner { display: flex; align-items: flex-start; gap: var(--sp-2); }
.notice-icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 15px;
  margin-top: 2px;
}
.notice-band p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.notice-band strong { color: var(--gold-bright); font-family: "Fraunces", serif; font-weight: 600; }

/* ---------- shared section rhythm ---------- */

.content-section, .legal-content { padding: var(--sp-7) 0; }

.divider {
  width: 100%;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'%3E%3Cpath d='M0 8 Q15 1 30 8 T60 8 T90 8 T120 8' fill='none' stroke='%23c9a227' stroke-width='1.4' stroke-opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 64px 16px;
  opacity: 0.7;
}

/* ---------- hero — full bleed, parallax image, drifting caustic light ---------- */

.hero-section {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -6% -2%;
  background: url("../img/bg.webp") center 32% / cover no-repeat;
  transform: translateY(0);
  will-change: transform;
  z-index: -2;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(2, 8, 12, 0.94) 4%, rgba(2, 8, 12, 0.74) 42%, rgba(2, 8, 12, 0.4) 78%);
  z-index: -1;
}
.hero-section::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 45% 35% at 78% 12%, rgba(99, 211, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 70%, rgba(201, 162, 39, 0.1), transparent 60%);
  animation: caustic-drift 22s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}
@keyframes caustic-drift {
  from { transform: translate(-3%, -2%) scale(1); }
  to   { transform: translate(3%, 3%) scale(1.08); }
}

.hero-grid {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 78vh;
  padding-top: 72px;
  padding-bottom: 28px;
  width: 100%;
}

.hero-copy { max-width: 660px; padding: 0; }

.hero-copy h1 {
  margin: 0 0 var(--sp-3);
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 0.98;
  text-transform: uppercase;
}
.hero-copy h1 em {
  font-family: "MedievalSharp", "Fraunces", Georgia, serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--gold-bright);
}

.hero-text { max-width: 540px; color: var(--muted); font-size: 17px; margin: 0 0 var(--sp-3); }

.manifest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
  text-transform: uppercase;
}
.manifest-tags li { padding: 0 var(--sp-2); border-left: 1px solid var(--line); }
.manifest-tags li:first-child { padding-left: 0; border-left: 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold-bright), transparent);
  animation: cue-pulse 2.4s ease-in-out infinite;
}
@keyframes cue-pulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- about (asymmetric, bleed image) ---------- */

.two-column {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--sp-6);
}

.section-copy h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  margin-bottom: var(--sp-3);
}
.section-copy p { color: var(--muted); margin: 0 0 var(--sp-2); }

.bleed-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bleed-figure img {
  width: calc(100% + 64px);
  height: auto;
  max-width: none;
  transform: translateX(-20px);
  transition: transform 900ms ease;
}
.bleed-figure:hover img { transform: translateX(-20px) scale(1.045); }
.bleed-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(2, 8, 12, 0.5));
}

/* ---------- features: compass-point ledger ---------- */

.compass-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: var(--sp-6);
}

.compass-item {
  padding: var(--sp-3) var(--sp-3) 0 0;
  border-top: 1px solid var(--line);
  position: relative;
  transition: transform var(--transition);
}
.compass-item:hover { transform: translateY(-4px); }
.compass-item:first-child { padding-left: 0; }
.compass-item + .compass-item { border-left: 1px solid var(--line-soft); padding-left: var(--sp-3); }

.compass-point {
  display: inline-block;
  font-family: "Fraunces", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-glow);
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-2);
}

.compass-item h3 { font-size: 19px; margin-bottom: var(--sp-1); }
.compass-item p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- gameplay: manifest table ---------- */

.gameplay-hero {
  margin: 0;
  aspect-ratio: 16 / 10;
  align-self: center;
}

.gameplay-hero img {
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 0;
  transform: none;
  transition: transform 900ms ease;
}

.gameplay-hero:hover img { transform: scale(1.02); }

.gameplay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; }

.steps-list { list-style: none; margin: var(--sp-3) 0 0; padding: 0; counter-reset: step; }
.steps-list li {
  counter-increment: step;
  position: relative;
  padding: var(--sp-2) 0 var(--sp-2) 46px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}
.steps-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.steps-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: var(--sp-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--gold-bright);
}

/* ---------- values strip ---------- */

.values-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}
.value-item { border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.value-item h3 { font-size: 19px; margin-bottom: var(--sp-1); }
.value-item p { color: var(--muted); font-size: 14.5px; margin: 0; }

.game-description-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: var(--sp-6);
  align-items: center;
}

.game-description-figure {
  margin: 0;
  aspect-ratio: 1 / 1;
}

.reviews-shell {
  max-width: 1120px;
}

.reviews-shell > h2 {
  text-align: center;
}

.reviews-intro {
  max-width: 820px;
  margin: 0 0 var(--sp-5);
  color: var(--muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.review-card {
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}

.review-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.review-head h3 {
  font-size: 19px;
}

.review-head span {
  color: var(--gold-bright);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.responsible-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: var(--sp-6);
  align-items: center;
}

.responsible-figure {
  margin: 0;
  aspect-ratio: 4 / 5;
}

.responsible-copy {
  max-width: 820px;
}

.responsible-intro {
  margin: 0 0 var(--sp-3);
  color: var(--muted);
  line-height: 1.55;
}

.responsible-list {
  display: grid;
  gap: var(--sp-2);
}

.responsible-list p {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- FAQ ---------- */

.faq-shell { max-width: 820px; }
.faq-grid {
  display: grid;
  gap: var(--sp-3);
}
.faq-shell details { padding: var(--sp-3) 0; border-top: 1px solid var(--line-soft); }
.faq-shell details:last-of-type { border-bottom: 1px solid var(--line-soft); }
.faq-shell summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--parchment);
}
.faq-shell summary::-webkit-details-marker { display: none; }
.faq-shell summary::after {
  content: "+";
  flex: none;
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--gold-bright);
  transition: transform var(--transition);
}
.faq-shell details[open] summary::after { transform: rotate(45deg); }
.faq-shell details p { margin: var(--sp-2) 0 0; color: var(--muted); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: var(--sp-6); align-items: center; }

.section-copy,
.responsible-copy,
.faq-shell,
.reviews-shell {
  align-self: center;
}

.bleed-figure,
.gameplay-hero {
  margin-left: auto;
  margin-right: auto;
}

.contact-form { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
.contact-form label { display: grid; gap: var(--sp-1); font-weight: 600; font-size: 13px; color: var(--muted-soft); }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
  color: var(--text);
  background: transparent;
  transition: border-color var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue-glow); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted-soft); }

.contact-meta { display: grid; gap: 6px; margin-top: var(--sp-3); color: var(--muted); font-size: 14px; }
.contact-status { min-height: 24px; margin-top: var(--sp-2); font-weight: 700; font-size: 14px; }
.contact-status.success { color: var(--success); }
.contact-status.error { color: var(--error); }
.input-error { border-color: var(--error) !important; }

/* ---------- cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: var(--abyss-deep);
  border-top: 1px solid var(--gold);
  transform: translateY(100%);
  transition: transform 320ms ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-wrapper { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; }
.cookie-title { font-family: "Fraunces", serif; font-size: 15px; margin: 0 0 4px; color: var(--gold-bright); }
.cookie-text p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 640px; }
.cookie-buttons { display: flex; gap: var(--sp-2); flex: none; }
.cookie-btn {
  min-height: 44px;
  padding: 0 var(--sp-3);
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  color: var(--abyss-deep);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.cookie-btn--ghost { background: transparent; border-color: var(--line); color: var(--muted); }

/* ---------- age gate ---------- */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: var(--sp-3);
  background: rgba(2, 6, 9, 0.9);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
}
.age-gate.active { opacity: 1; visibility: visible; }

.age-content {
  position: relative;
  width: min(520px, 100%);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  background: var(--abyss);
  border: 1px solid var(--line);
}
.age-content::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line-soft); pointer-events: none; }

.age-badge {
  width: 64px; height: 64px;
  margin: 0 auto var(--sp-2);
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: "Fraunces", serif;
  font-size: 20px;
  font-weight: 700;
}
.age-content h2 { font-size: 30px; margin: 0 0 var(--sp-2); }
.age-content p { color: var(--muted); margin: 0; }
.age-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-4); }

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  padding: var(--sp-6) 0 var(--sp-3);
  background: var(--abyss-deep);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.compass-watermark {
  position: absolute;
  right: -60px; top: -60px;
  width: 300px; height: 300px;
  opacity: 0.05;
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin: var(--sp-1) 0 0; max-width: 320px; }
.footer-brand strong { font-family: "Fraunces", serif; font-size: 18px; color: var(--parchment); }

.footer-title {
  margin: 0 0 var(--sp-2);
  color: var(--gold-bright);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: var(--sp-1); }
.footer-links a { color: var(--muted); font-size: 14.5px; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-bright); }

.partner-logos { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.partner-logos a { opacity: 0.6; filter: grayscale(1); transition: opacity var(--transition), filter var(--transition); }
.partner-logos a:hover { opacity: 1; filter: grayscale(0); }
.partner-logos img { height: 34px; width: auto; }

.footer-bottom {
  position: relative;
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line-soft);
  color: var(--muted-soft);
  font-size: 13px;
  text-align: center;
}

.scroll-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 50px; height: 50px;
  border: 1px solid rgba(99, 211, 255, 0.4);
  border-radius: 50%;
  background: rgba(5, 15, 23, 0.9);
  color: var(--blue-glow);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), border-color var(--transition);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { border-color: var(--blue-glow); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.no-scroll { overflow: hidden; }

/* ---------- legal pages ---------- */

.legal-content { min-height: 60vh; }
.legal-card { max-width: 860px; margin: 0 auto; }
.legal-card h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: var(--sp-3); }
.legal-card h2 { font-size: 23px; margin: var(--sp-5) 0 var(--sp-2); color: var(--gold-bright); }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card ul { display: grid; gap: var(--sp-1); padding-left: 20px; }

/* ---------- game page: full-width stage + info band below ---------- */

.game-stage {
  position: relative;
  padding: var(--sp-4) 0 var(--sp-5);
  background:
    linear-gradient(180deg, rgba(2, 8, 12, 0.55) 0%, rgba(2, 8, 12, 0.9) 100%),
    url("../img/bg.webp") center 25% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.game-stage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0 var(--gutter) var(--sp-3);
  color: var(--muted);
  font-size: 13.5px;
}
.game-stage__bar strong { color: var(--gold-bright); font-family: "Fraunces", serif; font-weight: 600; }
.game-frame { width: 100%; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.game-iframe { width: 100%; height: min(84vh, 940px); border: 0; display: block; background: var(--abyss-deep); }

.info-columns {
  
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin: var(--sp-6);
}
.info-columns h1, .info-columns h3 { font-size: 22px; margin-bottom: var(--sp-2); }
.info-columns p, .info-columns li { color: var(--muted); }
.info-columns ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.info-col { border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.info-col .partner-logos { margin-top: var(--sp-1); }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .two-column, .gameplay-grid, .contact-grid, .footer-grid, .responsible-grid, .game-description-grid { grid-template-columns: 1fr; }
  .bleed-figure { aspect-ratio: 16 / 9; }
  .compass-list { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-4); }
  .compass-item:nth-child(2n) { border-left: 1px solid var(--line-soft); padding-left: var(--sp-3); }
  .compass-item:nth-child(odd) { padding-left: 0; }
  .values-strip, .info-columns, .reviews-grid { grid-template-columns: 1fr; gap: var(--sp-3); }

  .nav {
    position: fixed;
    top: 84px; right: 16px; left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: var(--sp-3);
    background: var(--abyss);
    border: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .menu-toggle { display: inline-flex; }
  .header-actions { display: none; }
}

@media (max-width: 720px) {
  .cookie-wrapper { flex-direction: column; align-items: flex-start; }
  .header-inner { min-height: 76px; }
  .brand-mark-img { width: 150px; }
  .content-section, .legal-content { padding: var(--sp-6) 0; }
  .hero-section, .hero-grid { min-height: 72vh; }
  .hero-grid { padding-top: 52px; padding-bottom: 20px; }
  .hero-copy { padding: 0; }
  .scroll-cue { display: none; }
  .bleed-figure,
  .gameplay-hero,
  .game-description-figure,
  .responsible-figure { width: 100%; max-width: 100%; }
  .bleed-figure,
  .responsible-figure { aspect-ratio: 16 / 11; }
  .game-description-figure { aspect-ratio: 1 / 1; }
  .gameplay-hero { aspect-ratio: 16 / 9; }
  .bleed-figure img,
  .game-description-figure img,
  .responsible-figure img {
    width: 100%;
    max-width: 100%;
    transform: none;
  }
  .bleed-figure:hover img,
  .game-description-figure:hover img,
  .responsible-figure:hover img { transform: scale(1.02); }
  .gameplay-hero img { width: 100%; max-width: 100%; }
  .partner-logos img { height: 28px; }
  .manifest-tags li { padding: 0 var(--sp-1); }
  .compass-list { grid-template-columns: 1fr; }
  .compass-item, .compass-item:nth-child(2n) { border-left: 0; padding-left: 0; }
  .compass-item { padding-top: var(--sp-3); }
  .rules-row { grid-template-columns: 1fr; gap: 4px; }
  .rules-row--head { display: none; }
  .age-content { padding: var(--sp-4) var(--sp-3); }
  .cookie-buttons { width: 100%; }
  .cookie-btn { flex: 1; }
  .game-stage__bar { flex-direction: column; align-items: flex-start; padding-left: var(--gutter); padding-right: var(--gutter); }
  .game-iframe { height: 60vh; }
}
