:root {
  --bg: #0b0b1e;
  --bg-2: #12122b;
  --surface: #181832;
  --surface-2: #1f1f3d;
  --line: rgba(255, 255, 255, 0.09);
  --cyan: #22d3ee;
  --purple: #8b5cf6;
  --pink: #f472b6;
  --text: #ecebf5;
  --muted: #a7a6c8;
  --danger: #f87171;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 30, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img, .brand-logo svg {
  width: 38px; height: 38px; border-radius: 9px;
  display: block; object-fit: cover;
}
.brand-name {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700; font-size: 18px; letter-spacing: 0.4px;
}
.brand-edition {
  display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.4px;
}
.site-nav { display: flex; gap: 18px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--cyan); text-decoration: none; }
.lang-switcher { display: flex; gap: 8px; }
.lang-switcher a {
  color: var(--muted); font-size: 12px; font-weight: 600;
  padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line);
}
.lang-switcher a.active { color: var(--cyan); border-color: var(--cyan); }

/* ---------- Hero / game stage ---------- */
.hero-stage {
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(139, 92, 246, 0.25), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(34, 211, 238, 0.18), transparent 55%),
    var(--bg-2);
  padding: 36px 0 20px;
}
.hero-head { margin-bottom: 22px; }
.edition-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.4); border-radius: 999px;
  padding: 4px 12px; margin-bottom: 12px;
}
.hero-head h1 {
  margin: 0 0 10px; font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(34px, 5vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -0.5px;
}
.hero-lead { margin: 0; max-width: 720px; color: var(--muted); font-size: 17px; }

.stage-shell { max-width: 1120px; margin: 0 auto; }
.stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #050510; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 30, 0.15), rgba(11, 11, 30, 0.72));
}
.cover-cta-card {
  position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cta-kicker { font-size: 14px; font-weight: 600; color: var(--text); text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.btn-play {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: #081018;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border: 0; border-radius: 999px; padding: 16px 34px; cursor: pointer;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(139, 92, 246, 0.5); }
.cta-sub { font-size: 13px; color: var(--muted); text-shadow: 0 1px 6px rgba(0,0,0,0.6); }

.loader {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--bg);
}
.spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid rgba(34, 211, 238, 0.2); border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-title { font-weight: 700; font-size: 16px; margin: 0; }
.loader-sub { color: var(--muted); font-size: 13px; margin: 0; }

.stage-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.action-group { display: flex; gap: 10px; align-items: center; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; transition: border-color 0.15s ease;
}
.btn-pill:hover { border-color: var(--cyan); }
.btn-pill .count-pill { background: rgba(244, 114, 182, 0.2); color: var(--pink); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.share-msg { font-size: 12px; color: var(--cyan); }
.action-full { margin-left: auto; }

/* ---------- Sections ---------- */
.section { padding: 52px 0; border-bottom: 1px solid var(--line); }
.section h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 26px; font-weight: 800; margin: 0 0 16px; letter-spacing: -0.3px;
}
.section-intro { color: var(--muted); font-size: 16px; margin: 0 0 24px; max-width: 720px; }

.split-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.prose-col p { color: var(--muted); margin: 0 0 14px; }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0 0; }
.fact-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.fact-item dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.fact-item dd { margin: 4px 0 0; font-weight: 700; font-size: 15px; }
.shot-card { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.shot-card img { width: 100%; height: auto; display: block; }
.shot-card figcaption { padding: 10px 14px; font-size: 12px; color: var(--muted); background: var(--surface); }

/* specs table */
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.spec-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.spec-panel h3 { margin: 0 0 12px; font-size: 16px; }
.spec-panel h3.min { color: var(--cyan); }
.spec-panel h3.rec { color: var(--pink); }
.spec-panel dl { margin: 0; }
.spec-panel dt { font-size: 12px; color: var(--muted); margin-top: 10px; }
.spec-panel dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 16px 18px; font-weight: 600; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; color: var(--cyan); font-size: 20px; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* comments */
.comments-wrap { max-width: 820px; }
.comments-head { display: flex; align-items: baseline; gap: 12px; }
.comment-total { color: var(--muted); font-size: 14px; }
.comment-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.field { display: block; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit;
}
.field textarea { resize: vertical; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.btn-primary {
  font-size: 14px; font-weight: 700; color: #081018;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border: 0; border-radius: 8px; padding: 10px 22px; cursor: pointer;
}
.comment-msg { font-size: 12px; color: var(--cyan); }
.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment-empty { color: var(--muted); font-size: 14px; }
.comment-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.comment-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.owner-badge { background: rgba(139, 92, 246, 0.2); color: var(--purple); border-radius: 6px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
.comment-body { margin: 8px 0; font-size: 14px; }
.reply-btn { background: none; border: 0; color: var(--cyan); cursor: pointer; font-size: 13px; padding: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0 28px; margin-top: 20px; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand strong { font-size: 16px; }
.footer-brand p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { color: var(--muted); font-size: 12px; margin: 0; }

/* ---------- Page (privacy etc.) ---------- */
.page-doc { padding: 40px 0 60px; }
.doc-wrap { max-width: 820px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.doc-wrap h1 {
  font-family: "Space Grotesk", "Inter", sans-serif; font-size: 34px; font-weight: 800; margin: 0 0 20px;
}
.doc-body { color: var(--muted); }
.doc-body h2 { color: var(--text); font-size: 20px; margin: 28px 0 10px; }
.doc-body h3 { color: var(--text); font-size: 16px; margin: 22px 0 8px; }
.doc-body a { color: var(--cyan); }
.doc-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: 14px; }
.doc-body th { background: var(--surface); color: var(--text); }
.back-home { margin-top: 30px; }
.btn-outline {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.4); border-radius: 8px; padding: 10px 20px;
}
.btn-outline:hover { text-decoration: none; background: rgba(34, 211, 238, 0.08); }

/* ad band */
.ad-band { padding: 18px 0; }
.ad-band-inner { text-align: center; }
.ad-label { font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.ad-slot {
  margin: 10px auto 0; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px dashed var(--line); border-radius: 10px;
  min-height: 90px; max-width: 728px; color: var(--muted); font-size: 13px;
}
.ad-slot--rectangle { max-width: 336px; min-height: 250px; }
.ad-slot--leaderboard { max-width: 728px; min-height: 90px; }

@media (max-width: 820px) {
  .split-intro, .specs-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .stage { aspect-ratio: 4 / 3; }
}
