/* loadoutlantern — Aurora Arctic Social Play */

:root {
  --bg: #07131F;
  --bg-deep: #040B12;
  --surface: rgba(10, 28, 42, 0.82);
  --surface-2: rgba(14, 36, 52, 0.92);
  --surface-solid: #0C1E2E;
  --ink: #E8F4F0;
  --muted: #8BA8A0;
  --accent: #2EE6A6;
  --accent-hover: #5AF0BE;
  --accent-dim: rgba(46, 230, 166, 0.14);
  --secondary: #F0C75E;
  --secondary-dim: rgba(240, 199, 94, 0.12);
  --line: rgba(46, 230, 166, 0.18);
  --line-gold: rgba(240, 199, 94, 0.22);
  --shadow: rgba(4, 11, 18, 0.45);
  --shadow-md: rgba(4, 11, 18, 0.72);
  --glow-teal: rgba(46, 230, 166, 0.28);
  --glow-gold: rgba(240, 199, 94, 0.18);
  --glow-blue: rgba(64, 140, 200, 0.15);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 8px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1140px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 10% -5%, var(--glow-teal) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 15%, var(--glow-blue) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, var(--glow-gold) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 40%, #0A1824 100%);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 40% 25% at 20% 30%, rgba(46, 230, 166, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 35% 20% at 75% 60%, rgba(240, 199, 94, 0.04) 0%, transparent 65%);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0% { opacity: 0.7; transform: translateY(0) scale(1); }
  50% { opacity: 1; transform: translateY(-12px) scale(1.02); }
  100% { opacity: 0.75; transform: translateY(8px) scale(0.98); }
}

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

main, header, footer, .age-gate, .cookie-banner, .auth-modal {
  position: relative;
  z-index: 1;
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--secondary); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; }

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

.text-accent { color: var(--accent); }
.text-gold { color: var(--secondary); }

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

/* ── Aurora panel ── */

.aurora-panel {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 4px 32px var(--shadow), inset 0 1px 0 rgba(232, 244, 240, 0.04);
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 19, 31, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.brand:hover { color: var(--accent); }
.brand img { width: 40px; height: 40px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--muted);
  transition: color 0.2s;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.header-guest,
.header-authed {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.header-authed[hidden],
.header-guest[hidden] { display: none; }

.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.9rem;
  background: var(--accent-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
}

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

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.68rem 1.3rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #24C48A 100%);
  color: var(--bg-deep);
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--glow-teal);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  color: var(--bg-deep);
  box-shadow: 0 6px 28px rgba(46, 230, 166, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.btn-ghost:hover { color: var(--accent); }

.btn-gold {
  background: linear-gradient(135deg, var(--secondary) 0%, #D4A84A 100%);
  color: var(--bg-deep);
  border-color: var(--secondary);
}

.btn-gold:hover {
  color: var(--bg-deep);
  box-shadow: 0 4px 20px var(--glow-gold);
}

.btn-lg { padding: 0.85rem 1.65rem; font-size: 1rem; }
.btn-sm { padding: 0.48rem 1rem; font-size: 0.86rem; }

/* ── Hero ── */

.hero {
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), var(--line-gold), var(--line), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  background: var(--secondary-dim);
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1.1rem;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 1.75rem;
  border-right: 1px solid var(--line);
}

.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: none; }

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--secondary);
}

.hero-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px var(--shadow-md);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 230, 166, 0.08) 0%, transparent 50%, rgba(240, 199, 94, 0.06) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ── Sections ── */

.section { padding: 4.5rem 0; }

.section--surface {
  background: rgba(10, 28, 42, 0.45);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-header h2 { margin-bottom: 0.75rem; }

/* ── Game Cards Grid ── */

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

.game-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 40%, var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow-md), 0 0 32px var(--glow-teal);
  border-color: rgba(46, 230, 166, 0.35);
}

.game-card:hover::before { opacity: 1; }

.game-card-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface-solid);
  position: relative;
}

.game-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 19, 31, 0.6) 100%);
  pointer-events: none;
}

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

.game-card:hover .game-card-thumb img { transform: scale(1.06); }

.game-card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.game-card-body p {
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 1.1rem;
  line-height: 1.6;
}

.game-card-body .btn { align-self: flex-start; }

/* ── About Split ── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px var(--shadow-md);
  position: relative;
}

.split-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(46, 230, 166, 0.06), transparent 60%);
  pointer-events: none;
}

.split-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.split-content h2 { margin-bottom: 0.75rem; }

.split-content ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.split-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.split-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow-teal);
}

/* ── Features (Why Us) ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-tile {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 230, 166, 0.35);
  box-shadow: 0 8px 28px var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.feature-tile p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* ── CTA Banner ── */

.cta-bleed {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.cta-bleed-bg {
  position: absolute;
  inset: 0;
}

.cta-bleed-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-bleed-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(7, 19, 31, 0.88) 0%, rgba(7, 19, 31, 0.55) 50%, rgba(7, 19, 31, 0.35) 100%);
}

.cta-bleed-content {
  position: relative;
  z-index: 1;
  padding: 3rem;
  max-width: 34rem;
}

.cta-bleed-content h2 { margin-bottom: 0.65rem; }

.cta-bleed-content p {
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
}

.cta-bleed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Page Hero (subpages) ── */

.page-hero {
  padding: 2.75rem 0 2.25rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 28, 42, 0.5);
}

.page-hero h1 { margin-bottom: 0.4rem; }

.page-hero p {
  max-width: 36rem;
  margin: 0.5rem auto 0;
  font-size: 1.02rem;
}

/* ── Content Pages ── */

.content-page { padding: 3rem 0 4rem; }

.prose {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
  box-shadow: 0 8px 32px var(--shadow);
}

.prose h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.prose ul, .prose ol {
  margin: 0 0 1em;
  padding-left: 1.5rem;
  color: var(--muted);
}

.prose li { margin-bottom: 0.35rem; }

.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }

.prose code {
  font-size: 0.88em;
  padding: 0.15em 0.45em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent);
}

/* ── Contact ── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-info h2 { margin-bottom: 0.75rem; font-size: 1.35rem; }

.contact-detail {
  margin-bottom: 1.15rem;
  font-size: 0.94rem;
}

.contact-detail strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.contact-detail span { color: var(--muted); }

.form-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 32px var(--shadow);
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.72rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.65;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group textarea { min-height: 130px; resize: vertical; }

.form-success {
  padding: 0.85rem 1rem;
  background: var(--accent-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-success[hidden] { display: none; }

/* ── Footer ── */

.site-footer {
  background: rgba(4, 11, 18, 0.85);
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

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

.footer-brand p {
  font-size: 0.9rem;
  max-width: 24rem;
  line-height: 1.65;
}

.footer-company {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 0.4rem; }

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

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

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

.footer-age {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-age a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.78rem;
}

/* ── Age Gate ── */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 11, 18, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.age-gate[hidden] { display: none; }

.age-gate-card {
  background: var(--surface-2);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px var(--shadow-md), 0 0 60px var(--glow-teal);
}

.age-gate-card img {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
}

.age-gate-card h2 { margin-bottom: 0.5rem; }
.age-gate-card > p { font-size: 0.95rem; margin-bottom: 1.5rem; }

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.age-gate-actions .btn { width: 100%; }

.age-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Cookie Banner ── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface-2);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  box-shadow: 0 -8px 32px var(--shadow-md);
}

.cookie-banner[hidden] { display: none; }

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  flex: 1;
  min-width: 200px;
  font-size: 0.9rem;
  margin: 0;
}

.cookie-inner a { text-decoration: underline; text-underline-offset: 2px; }

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* ── Auth Modal ── */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-modal[hidden] { display: none; }

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 11, 18, 0.82);
  backdrop-filter: blur(4px);
}

.auth-panel {
  position: relative;
  z-index: 1;
  background: var(--surface-2);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  width: min(420px, 100%);
  box-shadow: 0 24px 64px var(--shadow-md), 0 0 48px var(--glow-teal);
}

.auth-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.auth-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.auth-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
}

.auth-panel h2 {
  font-size: 1.45rem;
  margin-bottom: 1.1rem;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.auth-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-tab.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.auth-tab + .auth-tab { border-left: 1px solid var(--line); }

.auth-error {
  padding: 0.65rem 0.85rem;
  background: rgba(240, 100, 100, 0.1);
  border: 1px solid rgba(240, 100, 100, 0.3);
  border-radius: var(--radius-sm);
  color: #F0A0A0;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.auth-error[hidden] { display: none; }

.auth-disclaimer {
  margin-top: 1.1rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(7, 19, 31, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .site-nav a {
    display: block;
    padding: 0.65rem 0;
    width: 100%;
  }

  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-reverse { direction: ltr; }

  .hero-visual { order: -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

  .hero-stat {
    padding: 0.75rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }

  .hero-stat:last-child { border-bottom: none; }

  .hero-stats { flex-direction: column; gap: 0; }

  .header-actions .btn-ghost { display: none; }

  .footer-grid { grid-template-columns: 1fr; }

  .cta-bleed-content { padding: 2rem 1.5rem; }

  .prose { padding: 1.75rem 1.5rem; }

  .cookie-inner { flex-direction: column; align-items: stretch; }

  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
