:root {
  --bg: #070B18;
  --surface: #12182B;
  --surface-2: #1A2238;
  --accent: #3DFFB5;
  --secondary: #7B5CFF;
  --text: #E8ECF8;
  --muted: #8B93B0;
  --btn-text: #04140F;
  --line: rgba(232, 236, 248, 0.1);
  --glow-accent: rgba(61, 255, 181, 0.35);
  --glow-secondary: rgba(123, 92, 255, 0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --container: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(123, 92, 255, 0.22), transparent 55%),
    radial-gradient(800px 420px at 90% 5%, rgba(61, 255, 181, 0.12), transparent 50%),
    linear-gradient(180deg, #0A1022 0%, var(--bg) 40%, #050814 100%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
}

body.modal-open,
body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #7fffd4;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-head {
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--secondary);
  box-shadow: 0 0 12px var(--glow-secondary);
  transform: rotate(45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2ad49a);
  color: var(--btn-text);
  box-shadow: 0 0 0 1px rgba(61, 255, 181, 0.25), 0 10px 30px var(--glow-accent);
}

.btn-primary:hover {
  color: var(--btn-text);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(61, 255, 181, 0.4), 0 14px 36px var(--glow-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(123, 92, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(123, 92, 255, 0.15);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--secondary);
  background: rgba(123, 92, 255, 0.12);
  box-shadow: 0 0 24px rgba(123, 92, 255, 0.25);
}

.btn-ghost {
  background: rgba(232, 236, 248, 0.04);
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: rgba(61, 255, 181, 0.4);
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 24, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand:hover {
  color: var(--text);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-actions [data-auth-guest],
.header-actions [data-auth-user] {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.header-actions [hidden] {
  display: none !important;
}

.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(123, 92, 255, 0.12);
  border: 1px solid rgba(123, 92, 255, 0.35);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
}

.player-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow-accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 24, 43, 0.8);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 11, 24, 0.92) 0%, rgba(7, 11, 24, 0.72) 45%, rgba(7, 11, 24, 0.55) 100%),
    url("../images/hero.webp") center/cover no-repeat;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% 40%;
  height: 60%;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.28), transparent 60%);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 12ch;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--accent), #9f8cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 48ch;
  font-size: 1.08rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(18, 24, 43, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

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

.hero-panel {
  border-radius: 22px;
  padding: 1.4rem;
  background:
    linear-gradient(160deg, rgba(123, 92, 255, 0.18), rgba(18, 24, 43, 0.7)),
    rgba(18, 24, 43, 0.65);
  border: 1px solid rgba(123, 92, 255, 0.35);
  box-shadow: var(--shadow), 0 0 40px rgba(61, 255, 181, 0.08);
  animation: floatPanel 7s ease-in-out infinite;
}

.hero-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.hero-panel p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.panel-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.92rem;
}

.panel-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  flex: 0 0 auto;
  border: 2px solid var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--glow-accent);
  transform: rotate(45deg);
}

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

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 255, 181, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(123, 92, 255, 0.15);
}

.game-card-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}

.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card-media img {
  transform: scale(1.05);
}

.game-card-body {
  padding: 1.2rem 1.25rem 1.35rem;
}

.game-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.game-card p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
  min-height: 3.2em;
}

/* Feature */
.feature-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.feature-visual {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(123, 92, 255, 0.3);
  box-shadow: 0 0 0 1px rgba(61, 255, 181, 0.08), var(--shadow);
  position: relative;
  min-height: 340px;
  background:
    linear-gradient(145deg, rgba(18, 24, 43, 0.2), rgba(7, 11, 24, 0.55)),
    url("../images/feature.webp") center/cover no-repeat;
}

.feature-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 11, 24, 0.7));
  pointer-events: none;
}

.check-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(18, 24, 43, 0.75);
  border: 1px solid var(--line);
}

.check-list .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(61, 255, 181, 0.12);
  color: var(--accent);
  font-weight: 800;
  box-shadow: 0 0 16px rgba(61, 255, 181, 0.15);
}

.check-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.15rem;
}

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

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 34, 56, 0.9), rgba(18, 24, 43, 0.9));
  border: 1px solid var(--line);
  overflow: hidden;
}

.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(123, 92, 255, 0.22);
  line-height: 1;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.benefit {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
}

.benefit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(61, 255, 181, 0.05);
}

.benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.25), rgba(61, 255, 181, 0.12));
  border: 1px solid rgba(123, 92, 255, 0.35);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
}

.benefit h3 {
  font-size: 1.15rem;
}

/* CTA */
.cta-banner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 3rem 2.5rem;
  border: 1px solid rgba(61, 255, 181, 0.25);
  background:
    linear-gradient(110deg, rgba(7, 11, 24, 0.88) 10%, rgba(18, 24, 43, 0.72) 55%, rgba(123, 92, 255, 0.35) 100%),
    url("../images/cta.webp") center/cover no-repeat;
  box-shadow: 0 0 50px rgba(123, 92, 255, 0.18);
}

.cta-banner h2 {
  max-width: 14ch;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.cta-banner p {
  max-width: 46ch;
  color: #c6cde4;
  margin-bottom: 1.4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: rgba(5, 8, 18, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin-top: 0.9rem;
  max-width: 32ch;
  font-size: 0.92rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.9rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}

.legal-note {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Inner pages */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.content-card {
  background: rgba(18, 24, 43, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.2rem;
}

.content-card h2 {
  font-size: 1.35rem;
}

.content-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.content-card li + li {
  margin-top: 0.45rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 24, 0.65);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(61, 255, 181, 0.55);
  box-shadow: 0 0 0 3px rgba(61, 255, 181, 0.12);
}

.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Modals / overlays */
.age-gate,
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(3, 6, 14, 0.78);
  backdrop-filter: blur(8px);
}

.age-gate.is-open,
.modal.is-open {
  display: grid;
}

.modal-card {
  width: min(100%, 440px);
  background: linear-gradient(180deg, #161e35, var(--surface));
  border: 1px solid rgba(123, 92, 255, 0.35);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: var(--shadow), 0 0 40px rgba(123, 92, 255, 0.18);
  position: relative;
  animation: modalIn 0.35s ease;
}

.modal-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.modal-card > p {
  margin-bottom: 1.2rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.3rem;
  border-radius: 14px;
  background: rgba(7, 11, 24, 0.55);
  margin-bottom: 1.2rem;
}

.auth-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 40px;
  border-radius: 11px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-tabs button.is-active {
  background: rgba(61, 255, 181, 0.14);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(61, 255, 181, 0.25);
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-close:hover {
  color: var(--text);
  border-color: rgba(61, 255, 181, 0.35);
}

#cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 250;
  width: min(100% - 0rem, 720px);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(18, 24, 43, 0.94);
  border: 1px solid rgba(61, 255, 181, 0.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

#cookie-banner[hidden] {
  display: none !important;
}

#cookie-banner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.9rem;
  color: #c4cbdf;
}

#cookie-banner a {
  color: var(--accent);
}

/* Motion */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-12px); }
}

@keyframes floatPanel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

  .games-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    order: -1;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(7, 11, 24, 0.96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0.6rem;
    border-bottom: 1px solid var(--line);
  }

  .header-actions .btn {
    padding-inline: 0.9rem;
  }

  .hero-stats,
  .games-grid,
  .steps,
  .benefits {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 2rem 1.3rem;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::after,
  .hero-panel,
  .modal-card {
    animation: none;
  }
}
