:root {
  --bg: #14122b;
  --bg-2: #1c1a3a;
  --surface: #232048;
  --surface-2: #2c2858;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f1ff;
  --muted: #b3aed6;
  --accent: #ffc93c;
  --accent-2: #ff6b8b;
  --ink-on-accent: #241a00;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(5, 3, 25, 0.45);
  --font-head: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.6rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink-on-accent); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 18, 43, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo-mark { width: 42px; height: 42px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--accent); margin-left: 4px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { color: var(--text); font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.site-nav a:hover { background: var(--surface); text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--surface-2); color: var(--accent); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); margin-left: 6px; }
.lang-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; position: relative; margin: auto; transition: transform 0.2s; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-open .bars { background: transparent; }
.nav-open .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 20px;
  border-radius: 999px; font-weight: 800; font-family: var(--font-body);
  border: 2px solid transparent; color: var(--text);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-lg { min-height: 56px; padding: 12px 28px; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: var(--ink-on-accent); box-shadow: 0 8px 24px rgba(255, 201, 60, 0.25); }
.btn-primary:hover { background: #ffd666; }
.btn-ghost { border-color: var(--line); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-store { background: #0b0a1a; border-color: rgba(255, 255, 255, 0.22); border-radius: 14px; padding: 8px 16px; }
.btn-store:hover { border-color: var(--text); }
.btn-label { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-label small { font-size: 0.7rem; font-weight: 600; color: var(--muted); }
.btn-label b { font-size: 1rem; }
.link-arrow { font-weight: 800; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 8vw, 100px); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: rgba(255, 201, 60, 0.12); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { max-width: 12ch; }
.hero .lead { margin-bottom: 32px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.blob-a { width: 70%; height: 70%; background: var(--accent-2); top: 5%; left: 5%; }
.blob-b { width: 60%; height: 60%; background: #3b82f6; bottom: 0; right: 0; opacity: 0.4; }
.hero-stack { position: absolute; inset: 0; }
.hero-tile {
  position: absolute; width: 68%; aspect-ratio: 16 / 10; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--from), var(--to)); box-shadow: var(--shadow);
  overflow: hidden; border: 3px solid rgba(255, 255, 255, 0.15);
  animation: float 7s ease-in-out infinite;
}
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile.t0 { top: 6%; left: 0; transform: rotate(-6deg); }
.hero-tile.t1 { bottom: 8%; right: 0; transform: rotate(5deg); animation-delay: -3.5s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-tile { animation: none; }
  html { scroll-behavior: auto; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-top: 16px; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 4px; }
.page-head { padding: clamp(48px, 7vw, 84px) 0 32px; }

/* Game cards */
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.game-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card-art { display: block; }
.game-art { background: linear-gradient(135deg, var(--from), var(--to)); aspect-ratio: 16 / 10; overflow: hidden; }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.game-card:hover .game-art img { transform: scale(1.04); }
.game-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.game-card-body h3 { margin: 12px 0 2px; font-size: 1.9rem; }
.game-card-body h3 a { color: var(--text); }
.game-tagline { color: var(--accent); font-weight: 800; margin-bottom: 10px; }
.game-card-body > p:not(.game-tagline) { color: var(--muted); }
.game-card .actions { margin-top: auto; padding-top: 8px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about p { color: var(--muted); }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pillars li {
  display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px;
}
.pill-ico { grid-row: span 2; font-size: 1.6rem; display: grid; place-items: center; background: var(--surface-2); border-radius: 14px; width: 52px; height: 52px; }
.pillars b { font-family: var(--font-head); font-size: 1.2rem; }
.pillars span:last-child { color: var(--muted); }

/* Contact */
.contact-card {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: clamp(28px, 5vw, 48px); border-radius: var(--radius);
  background: linear-gradient(120deg, #3b2a8c, #7c3aed 55%, #ff6b8b);
}
.contact-card h2 { margin-bottom: 6px; }
.contact-card p { margin: 0; color: rgba(255, 255, 255, 0.85); max-width: 32rem; }
.contact-card .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* Game detail */
.game-hero { position: relative; padding: clamp(40px, 6vw, 72px) 0; overflow: hidden; }
.game-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 80% 30%, var(--to), transparent 70%), radial-gradient(60% 80% at 10% 90%, var(--from), transparent 70%);
  opacity: 0.35;
}
.game-hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.game-hero-tag { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.game-hero .lead { margin-bottom: 28px; }
.game-art-lg { border-radius: var(--radius); box-shadow: var(--shadow); border: 3px solid rgba(255, 255, 255, 0.14); }
.crumb { display: inline-block; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.game-detail { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.facts dl { margin: 0 0 20px; }
.facts dt { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0 0 18px; }

.prose { max-width: 44rem; }
.prose p, .prose li { color: #dcd8f5; }
.prose h2 { margin-top: 1.6em; font-size: 1.8rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.4rem; }
.prose h4 { margin: 1.2em 0 0.4em; font-size: 1.1rem; font-family: var(--font-body); font-weight: 800; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.checks { list-style: none; padding: 0 !important; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checks li::before {
  content: '✓'; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--ink-on-accent); font-weight: 900; font-size: 0.8rem; display: grid; place-items: center;
}

/* Privacy */
.policy { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.policy-toc { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.toc-title { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.policy-toc ol { margin: 0; padding-left: 1.2em; }
.policy-toc li { margin-bottom: 6px; color: var(--muted); }
.policy-toc a { color: var(--text); font-weight: 600; }
.policy-body section { scroll-margin-top: 96px; }
.policy-body > .lead { color: var(--text); }
.policy-game { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 24px 16px; margin: 16px 0; scroll-margin-top: 96px; }
.policy-game h3, .policy-game > h2 { margin-top: 1em; }

/* 404 */
.not-found { text-align: center; padding: clamp(72px, 12vw, 140px) 0; }
.not-found .lead { margin-inline: auto; margin-bottom: 28px; }
.big-404 { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; color: var(--accent); margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #100e24; padding: 48px 0 28px; margin-top: 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); margin: 10px 0 0; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: var(--text); font-weight: 600; }
.footer-bottom { color: var(--muted); font-size: 0.9rem; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .about, .game-hero-inner, .game-detail, .policy { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; width: 100%; margin: 0 auto; }
  .game-grid { grid-template-columns: 1fr; }
  .facts, .policy-toc { position: static; }
  .game-detail { gap: 32px; }
  .policy { gap: 24px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 20px;
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 16px; }
  .lang-switch { margin: 6px 0 0; justify-content: center; }
  .brand-name { font-size: 1.3rem; }
  .logo-mark { width: 36px; height: 36px; }
  .game-card-body { padding: 20px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .contact-card .btn { width: 100%; justify-content: center; }
}
