:root {
  --black: #030303;
  --black-soft: #090909;
  --yellow: #ffd21a;
  --white: #ffffff;
  --soft-white: rgba(255,255,255,.76);
  --muted-white: rgba(255,255,255,.54);
  --line-yellow: rgba(255,210,26,.34);
  --line-white: rgba(255,255,255,.1);
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  min-height: 100%;
  background: var(--black);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  font-family: var(--font);
  background:
    radial-gradient(circle at 50% -18%, rgba(255,210,26,.12), transparent 34rem),
    linear-gradient(180deg, #070707 0%, #020202 46%, #000 100%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img, video, svg { max-width: 100%; }
::selection { background: var(--yellow); color: var(--black); }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 0 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  opacity: .96;
}
.brand-logo-link {
  width: clamp(76px, 7vw, 112px);
  min-width: 76px;
  transition: transform .18s ease, filter .18s ease;
}
.brand-logo-link:hover { transform: translateY(-1px); filter: drop-shadow(0 0 18px rgba(255,210,26,.18)); }
.brand-logo-link img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.game-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--line-yellow);
  background: rgba(3,3,3,.84);
  box-shadow: 0 0 34px rgba(255,210,26,.12);
  clip-path: polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);
}
.nav-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  color: var(--soft-white);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .18s ease, background .18s ease, transform .18s ease;
  clip-path: polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%);
}
.nav-link:hover { color: var(--white); transform: translateY(-1px); }
.nav-link.is-active { color: var(--black); background: var(--yellow); }

.page-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 74px) 0 66px;
}
body[data-page="home"] .page-shell {
  width: min(1240px, calc(100% - 24px));
  padding-top: clamp(18px, 3vw, 44px);
}

.home-stage {
  min-height: calc(100svh - 170px);
  display: grid;
  align-items: center;
  justify-items: center;
  gap: clamp(18px, 4vw, 46px);
}
.home-logo {
  width: min(560px, 88vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.home-character {
  width: min(760px, 94vw);
  min-height: clamp(390px, 70vw, 760px);
  display: grid;
  place-items: center;
}
.home-quote {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(26px, 5vw, 68px);
  line-height: .92;
  font-weight: 950;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 38px rgba(255,210,26,.2);
}
.main-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  background: transparent;
  transform: translateZ(0);
}
.logo-video { padding: 1.5%; }
.character-video { object-fit: contain; }

.page-intro {
  max-width: 800px;
  margin-bottom: clamp(28px, 5vw, 62px);
}
.eyebrow {
  margin: 0 0 13px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 104px);
  line-height: .86;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
h2 {
  margin-bottom: 12px;
  font-size: clamp(25px, 3.6vw, 44px);
  line-height: .96;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.lead {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--soft-white);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.36;
  font-weight: 620;
}

.about-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(32px, 6vw, 74px);
}
.about-copy article,
.newsletter-form {
  border: 1px solid var(--line-yellow);
  background: rgba(4,4,4,.68);
  box-shadow: 0 0 38px rgba(255,210,26,.075);
  clip-path: polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px);
}
.about-copy article { padding: clamp(22px, 3vw, 34px); }
.about-copy p {
  margin-bottom: 0;
  color: var(--soft-white);
  line-height: 1.62;
  font-size: 16px;
}
.about-video {
  width: min(760px, 100%);
  min-height: clamp(420px, 70vw, 780px);
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.newsletter-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  min-height: min(680px, calc(100svh - 170px));
}
.newsletter-copy { max-width: 680px; }
.newsletter-form { padding: clamp(22px, 3vw, 30px); }
.newsletter-form label:not(.consent-row) {
  display: block;
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.newsletter-form label span { color: var(--muted-white); }
.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  width: 100%;
  min-height: 54px;
  margin: 0 0 18px;
  padding: 0 16px;
  border: 1px solid var(--line-white);
  outline: none;
  color: var(--white);
  background: rgba(255,255,255,.045);
  clip-path: polygon(10px 0,100% 0,calc(100% - 10px) 100%,0 100%);
}
.newsletter-form input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,210,26,.14); }
.consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin: 2px 0 20px;
  color: var(--soft-white);
  font-size: 14px;
  line-height: 1.45;
}
.consent-row input { width: 18px; height: 18px; accent-color: var(--yellow); }
.hidden-field { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.button-primary {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--yellow);
  color: var(--black);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(10px 0,100% 0,calc(100% - 10px) 100%,0 100%);
  transition: transform .18s ease, box-shadow .18s ease;
}
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255,210,26,.24); }
.full { width: 100%; }
.form-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--yellow);
  color: var(--white);
  background: rgba(255,210,26,.12);
  font-weight: 850;
}
.newsletter-art {
  width: min(640px, 100%);
  margin: clamp(24px, 5vw, 60px) auto 0;
}
.newsletter-art picture,
.newsletter-art img {
  display: block;
  width: 100%;
}
.newsletter-art img {
  height: auto;
  filter: drop-shadow(0 0 44px rgba(255,210,26,.12));
}

.footer-bar {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 30px;
}
body[data-page="home"] .footer-bar { width: min(1240px, calc(100% - 24px)); }
.footer-inner {
  padding: 18px 0 0;
  border-top: 1px solid rgba(255,210,26,.14);
  color: var(--muted-white);
  font-size: 13px;
  text-align: center;
}
.footer-inner p { margin: 0; }

.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: stretch;
    padding: calc(12px + env(safe-area-inset-top)) 0 8px;
  }
  .brand-chip { justify-self: start; }
  .brand-logo-link { width: 72px; min-width: 72px; }
  .game-nav {
    justify-self: end;
    width: min(100%, 520px);
    justify-content: center;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .game-nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: 1 0 auto; padding: 0 13px; }
  .about-copy,
  .newsletter-page { grid-template-columns: 1fr; }
  .newsletter-page { min-height: auto; }
}

@media (max-width: 640px) {
  .topbar { width: min(100% - 22px, var(--max)); gap: 8px; }
  .brand-logo-link { width: 58px; min-width: 58px; }
  .game-nav { padding: 6px; gap: 4px; }
  .nav-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: .08em;
  }
  .page-shell,
  body[data-page="home"] .page-shell {
    width: min(100% - 22px, var(--max));
    padding-bottom: 44px;
  }
  .home-stage {
    min-height: calc(100svh - 150px);
    gap: 16px;
  }
  .home-logo { width: min(450px, 94vw); }
  .home-character {
    width: min(520px, 96vw);
    min-height: clamp(430px, 124vw, 680px);
  }
  .logo-video { padding: 0; }
  h1 { font-size: clamp(42px, 15vw, 76px); }
  h2 { font-size: clamp(28px, 10vw, 44px); }
  .about-video { min-height: clamp(430px, 122vw, 680px); }
  .newsletter-form { padding: 22px; }
}

@media (max-width: 380px) {
  .brand-logo-link { width: 48px; min-width: 48px; }
  .nav-link { font-size: 10px; padding: 0 7px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@supports not (clip-path: polygon(0 0)) {
  .game-nav,
  .nav-link,
  .about-copy article,
  .newsletter-form,
  .newsletter-form input[type="text"],
  .newsletter-form input[type="email"],
  .button-primary {
    clip-path: none;
    border-radius: 16px;
  }
}

/* v7 production polish */
.ig-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-yellow);
  color: var(--yellow);
  background: rgba(3,3,3,.76);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(255,210,26,.08);
  clip-path: polygon(9px 0,100% 0,calc(100% - 9px) 100%,0 100%);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ig-pill:hover {
  transform: translateY(-1px);
  color: var(--black);
  background: var(--yellow);
  box-shadow: 0 0 28px rgba(255,210,26,.22);
}

body[data-page="about"] h1,
body[data-page="about"] h2,
body[data-page="newsletter"] .newsletter-copy h1,
body[data-page="privacy"] h1,
body[data-page="privacy"] h2 {
  color: var(--yellow);
  text-shadow: 0 0 34px rgba(255,210,26,.16);
}

.category-raster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 clamp(32px, 6vw, 72px);
}
.category-card {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(255,210,26,.28);
  background:
    linear-gradient(135deg, rgba(255,210,26,.1), rgba(255,210,26,.02) 44%, rgba(255,255,255,.025)),
    rgba(5,5,5,.72);
  box-shadow: 0 0 30px rgba(255,210,26,.055);
  clip-path: polygon(16px 0,calc(100% - 16px) 0,100% 16px,100% calc(100% - 16px),calc(100% - 16px) 100%,16px 100%,0 calc(100% - 16px),0 16px);
}
.category-card span {
  color: var(--white);
  font-size: clamp(17px, 2vw, 24px);
  line-height: .96;
  font-weight: 950;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.category-card small {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.micro-privacy {
  margin: 14px 0 0;
  color: var(--muted-white);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}
.micro-privacy a,
.privacy-card a,
.footer-links a { color: var(--yellow); }

.privacy-card {
  max-width: 880px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line-yellow);
  background: rgba(4,4,4,.68);
  box-shadow: 0 0 38px rgba(255,210,26,.075);
  clip-path: polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px);
}
.privacy-card p {
  color: var(--soft-white);
  line-height: 1.66;
  margin-bottom: 24px;
}
.privacy-card p:last-child { margin-bottom: 0; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}
.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--muted-white);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cookie-note {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 60;
  width: min(330px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid rgba(255,210,26,.28);
  color: var(--soft-white);
  background: rgba(3,3,3,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 42px rgba(255,210,26,.13);
  clip-path: polygon(13px 0,calc(100% - 13px) 0,100% 13px,100% calc(100% - 13px),calc(100% - 13px) 100%,13px 100%,0 calc(100% - 13px),0 13px);
}
.cookie-note p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.42;
}
.cookie-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cookie-actions a {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cookie-actions button {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--yellow);
  color: var(--black);
  background: var(--yellow);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ig-pill { min-width: 40px; height: 36px; padding: 0 10px; font-size: 11px; }
  .category-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .topbar { grid-template-columns: auto 1fr; }
  .ig-pill { display: none; }
  .category-raster { gap: 10px; }
  .category-card { min-height: 92px; padding: 15px; }
  .footer-inner { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
  .cookie-note { right: 11px; bottom: 11px; width: min(310px, calc(100vw - 22px)); }
}


/* v9 dark-only production polish */
.top-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-yellow);
  color: var(--yellow);
  background: rgba(3,3,3,.76);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(255,210,26,.08);
  clip-path: polygon(9px 0,100% 0,calc(100% - 9px) 100%,0 100%);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.contact-pill:hover {
  transform: translateY(-1px);
  color: var(--black);
  background: var(--yellow);
  box-shadow: 0 0 28px rgba(255,210,26,.22);
}

.brand-statement {
  max-width: 880px;
  margin: -18px 0 clamp(24px, 4vw, 46px);
  color: var(--soft-white);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.46;
  font-weight: 650;
}

.newsletter-video-block {
  width: min(620px, 100%);
  min-height: clamp(480px, 88vw, 900px);
  display: grid;
  place-items: center;
}
.newsletter-video {
  object-fit: contain;
  filter: drop-shadow(0 0 44px rgba(255,210,26,.12));
}

.cookie-note p strong { color: var(--yellow); }
.cookie-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.cookie-actions a { margin-right: auto; }
.cookie-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,210,26,.44);
  color: var(--yellow);
  background: rgba(255,255,255,.045);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%);
}
.cookie-actions button.solid {
  border-color: var(--yellow);
  color: var(--black);
  background: var(--yellow);
}
.cookie-actions button.ghost { opacity: .82; }
.cookie-actions button:hover {
  color: var(--black);
  background: var(--yellow);
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .top-actions { gap: 6px; }
  .contact-pill,
  .ig-pill { height: 36px; padding: 0 10px; font-size: 11px; }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: auto 1fr; }
  .top-actions { display: none; }
}

@media (max-width: 640px) {
  .newsletter-video-block {
    width: min(430px, 100%);
    min-height: clamp(520px, 132vw, 760px);
  }
  .cookie-note p { font-size: 11px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions a { flex: 1 0 100%; margin-right: 0; text-align: center; }
  .cookie-actions button { flex: 1 1 auto; }
}

/* v13: Privacy policy must always be visible even if JS animation/cache fails. */
.privacy-static, .js .privacy-static { opacity: 1 !important; transform: none !important; visibility: visible !important; }
.privacy-card { display: block; }

/* v15 mobile header micro-fix: keep desktop unchanged, show compact Instagram only on narrow screens. */
@media (max-width: 640px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .top-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 38px;
  }

  .top-actions .contact-pill {
    display: none;
  }

  .top-actions a[href*="instagram"] {
    font-size: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
  }

  .top-actions a[href*="instagram"]::after {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    background: var(--yellow);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.75 2h8.5A5.76 5.76 0 0 1 22 7.75v8.5A5.76 5.76 0 0 1 16.25 22h-8.5A5.76 5.76 0 0 1 2 16.25v-8.5A5.76 5.76 0 0 1 7.75 2Zm0 2A3.75 3.75 0 0 0 4 7.75v8.5A3.75 3.75 0 0 0 7.75 20h8.5A3.75 3.75 0 0 0 20 16.25v-8.5A3.75 3.75 0 0 0 16.25 4h-8.5ZM12 7.25A4.75 4.75 0 1 1 12 16.75 4.75 4.75 0 0 1 12 7.25Zm0 2A2.75 2.75 0 1 0 12 14.75 2.75 2.75 0 0 0 12 9.25Zm5.15-2.05a1.15 1.15 0 1 1 0 2.3 1.15 1.15 0 0 1 0-2.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.75 2h8.5A5.76 5.76 0 0 1 22 7.75v8.5A5.76 5.76 0 0 1 16.25 22h-8.5A5.76 5.76 0 0 1 2 16.25v-8.5A5.76 5.76 0 0 1 7.75 2Zm0 2A3.75 3.75 0 0 0 4 7.75v8.5A3.75 3.75 0 0 0 7.75 20h8.5A3.75 3.75 0 0 0 20 16.25v-8.5A3.75 3.75 0 0 0 16.25 4h-8.5ZM12 7.25A4.75 4.75 0 1 1 12 16.75 4.75 4.75 0 0 1 12 7.25Zm0 2A2.75 2.75 0 1 0 12 14.75 2.75 2.75 0 0 0 12 9.25Zm5.15-2.05a1.15 1.15 0 1 1 0 2.3 1.15 1.15 0 0 1 0-2.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}
