:root {
  --bg: #070b18;
  --panel: rgba(14, 22, 44, 0.72);
  --ice: #d7fbff;
  --teal: #2ee6c0;
  --magenta: #ff4d9a;
  --text: #eef7ff;
  --muted: #9ab0c8;
  --line: rgba(46, 230, 192, 0.32);
  --line-m: rgba(255, 77, 154, 0.28);
  --glow: 0 0 28px rgba(46, 230, 192, 0.28);
  --radius: 22px;
  --header-h: 76px;
  --font-head: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(920px 480px at 88% -8%, rgba(255, 77, 154, 0.2), transparent 58%),
    radial-gradient(760px 420px at -12% 18%, rgba(46, 230, 192, 0.14), transparent 52%),
    radial-gradient(640px 380px at 50% 110%, rgba(46, 230, 192, 0.08), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--ice);
}

h1,
h2,
h3,
.wordmark {
  font-family: var(--font-head);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.15rem, 5.4vw, 4.1rem);
  font-weight: 800;
  margin: 0 0 0.7rem;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 700;
  margin: 0 0 0.55rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 0.9rem;
}

.muted {
  color: var(--muted);
}

.wrap {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--teal);
  color: #04120f;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
}

.glass {
  background: var(--panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px var(--line-m),
    0 18px 40px rgba(2, 6, 18, 0.45);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(7, 11, 24, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
}

.wordmark {
  font-size: 1.2rem;
  font-weight: 700;
}

#nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

#nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ice);
  border-radius: 2px;
  transition: 0.2s ease;
}

#nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

#nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

#site-nav {
  margin-left: 1.4rem;
}

#site-nav ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-nav a {
  color: var(--muted);
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  display: block;
}

#site-nav a:hover,
#site-nav a[aria-current="page"] {
  color: var(--ice);
  background: rgba(46, 230, 192, 0.1);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

#guest-actions,
#player-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#player-actions[hidden],
#guest-actions[hidden] {
  display: none;
}

.player-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(14, 22, 44, 0.7);
  color: var(--ice);
  font-weight: 600;
  font-size: 0.92rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  color: #04120f;
  background: linear-gradient(135deg, var(--teal), #7ff5dd);
  box-shadow: var(--glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #04120f;
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--ice);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--ice);
  border-color: var(--teal);
  box-shadow: var(--glow);
}

.btn-magenta {
  background: linear-gradient(135deg, var(--magenta), #ff8ac0);
  color: #2a0514;
  box-shadow: 0 0 24px rgba(255, 77, 154, 0.32);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}

.kicker span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  background: rgba(46, 230, 192, 0.08);
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 24, 0.2) 0%, rgba(7, 11, 24, 0.55) 48%, var(--bg) 100%),
    var(--hero) center/cover no-repeat;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 280px at 18% 70%, rgba(46, 230, 192, 0.16), transparent 70%),
    radial-gradient(420px 240px at 78% 30%, rgba(255, 77, 154, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 1.2rem;
  align-items: end;
  padding-bottom: 2.2rem;
}

.ice-card {
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem 1.8rem;
}

.hero-copy {
  transform: translateY(12px);
}

.hero-facet {
  transform: translate(10px, -28px) rotate(-2.5deg);
  border-color: var(--line-m);
}

.hero-facet p:last-child {
  margin: 0;
  color: var(--ice);
  font-family: var(--font-head);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.stats-overlap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -1.4rem;
  padding-bottom: 3.2rem;
}

.stat-card {
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  text-align: left;
}

.stat-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.55rem;
  color: var(--ice);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-card:nth-child(1) {
  transform: rotate(-1.4deg) translateY(8px);
}

.stat-card:nth-child(2) {
  transform: translateY(-14px);
  border-color: var(--line-m);
}

.stat-card:nth-child(3) {
  transform: rotate(1.6deg) translateY(4px);
}

.section {
  padding: 4.2rem 0;
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 40rem;
}

/* Games */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.game-tile {
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.game-tile img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.game-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-body p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.game-tile:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow:
    0 0 0 1px rgba(255, 77, 154, 0.22),
    0 0 36px rgba(46, 230, 192, 0.38);
}

/* Feature */
.feature-split {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 2.4rem;
  align-items: center;
}

.float-frame {
  position: relative;
}

.float-frame img {
  width: 100%;
  border-radius: 22px;
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
}

.float-frame::before {
  content: "";
  position: absolute;
  inset: -18px 22px 22px -18px;
  border-radius: 26px;
  background: rgba(14, 22, 44, 0.38);
  border: 1px solid var(--line-m);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 40px rgba(255, 77, 154, 0.16);
}

.check-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(46, 230, 192, 0.16);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

/* Steps */
.step-chips {
  display: flex;
  gap: 0.9rem;
}

.step-chip {
  flex: 1;
  border-radius: 999px;
  padding: 1rem 1.15rem 1.1rem 1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.step-chip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.step-n {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  color: #04120f;
  background: linear-gradient(135deg, var(--teal), var(--magenta));
  box-shadow: 0 0 16px rgba(255, 77, 154, 0.28);
}

/* Bento */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.bento-card {
  border-radius: 22px;
  padding: 1.35rem 1.4rem;
  min-height: 168px;
}

.bento-card:nth-child(2),
.bento-card:nth-child(3) {
  border-color: var(--line-m);
}

.bento-card p {
  margin: 0;
  color: var(--muted);
}

/* CTA */
.cta-band {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.4rem;
  border: 1px solid var(--line);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 24, 0.78), rgba(7, 11, 24, 0.42) 50%, rgba(7, 11, 24, 0.78)),
    var(--cta) center/cover no-repeat;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  gap: 1.6rem;
  align-items: start;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.footer-legal a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-legal a:hover {
  color: var(--ice);
}

.badge-18 {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--magenta);
  color: var(--magenta);
  font-family: var(--font-head);
  font-weight: 800;
}

.footer-note {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Inner pages */
.page-hero {
  padding: 3.4rem 0 1.4rem;
}

.legal-stack {
  display: grid;
  gap: 1rem;
  padding-bottom: 4rem;
}

.legal-card {
  border-radius: var(--radius);
  padding: 1.5rem 1.55rem 1.3rem;
}

.legal-card h2 {
  font-size: 1.25rem;
}

.legal-card ul {
  color: var(--muted);
  padding-left: 1.15rem;
}

/* Contact */
.form-card {
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--ice);
}

input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 24, 0.55);
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.9rem;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-thanks {
  display: none;
  margin: 0;
  color: var(--ice);
}

.form-card.is-sent form {
  display: none;
}

.form-card.is-sent .form-thanks {
  display: block;
}

/* Overlays */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(7, 11, 24, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.overlay.is-open {
  display: flex;
}

.overlay-card {
  width: min(440px, 100%);
  border-radius: 24px;
  padding: 1.5rem 1.45rem 1.35rem;
  position: relative;
}

.overlay-card h2 {
  margin-bottom: 0.45rem;
}

#auth-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ice);
  cursor: pointer;
  font-size: 1.2rem;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(7, 11, 24, 0.55);
  border: 1px solid var(--line);
  margin: 1rem 0 1.1rem;
}

.auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.auth-tab.is-on {
  color: #04120f;
  background: linear-gradient(135deg, var(--teal), var(--magenta));
}

.auth-error {
  min-height: 1.2em;
  color: var(--magenta);
  font-size: 0.88rem;
  margin: 0.2rem 0 0.6rem;
}

.auth-note {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

#age-denied {
  color: var(--magenta);
  margin-top: 0.8rem;
}

.overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

#cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: none;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  align-items: center;
  gap: 1rem;
}

#cookie-banner.is-open {
  display: flex;
}

#cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero-stage,
  .feature-split,
  .games-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-facet {
    transform: none;
  }

  .step-chips {
    flex-direction: column;
  }

  .step-chip {
    border-radius: 22px;
  }

  .stats-overlap {
    grid-template-columns: 1fr;
  }

  .stat-card,
  .stat-card:nth-child(1),
  .stat-card:nth-child(2),
  .stat-card:nth-child(3) {
    transform: none;
  }

  #nav-toggle {
    display: flex;
  }

  #site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.8rem 1rem 1rem;
    background: rgba(7, 11, 24, 0.92);
    border-bottom: 1px solid var(--line);
  }

  #site-nav.is-open {
    display: block;
  }

  #site-nav ul {
    flex-direction: column;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }

  .header-actions .btn {
    padding: 0.58rem 0.85rem;
    font-size: 0.85rem;
  }

  #cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5.4rem;
    min-height: auto;
  }

  .ice-card {
    padding: 1.25rem;
  }

  .wordmark {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
