:root {
  --bg: #0b0f19;
  --surface: #131a2a;
  --surface-2: #1c263b;
  --border: #2a3754;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #a855f7;
  --accent-2: #38bdf8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; color: #fff; text-decoration: none;
}
.brand-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #6d28d9, #0284c7);
  color: #ffffff; font-weight: 900; font-size: 0.95rem;
}
.brand .accent { color: var(--accent-2); }
.main-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: #fff; text-decoration: none; }

.main-content { flex: 1; padding: 32px 0 60px; }
.hero-box { text-align: center; margin-bottom: 28px; }
.hero-box h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900; letter-spacing: -0.02em; margin-bottom: 10px;
  background: linear-gradient(90deg, #fff, var(--accent-2), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 680px; margin: 0 auto; }

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 720px;
  margin: 0 auto 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.game-hud {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.hud-stats { display: flex; gap: 12px; font-size: 0.9rem; font-weight: 700; flex-wrap: wrap; }
.hud-pill {
  background: var(--surface-2); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text);
}
.hud-pill span { color: var(--accent-2); }

.mode-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.mode-tab {
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 0.85rem; font-weight: 700;
}
.mode-tab.active {
  background: rgba(56, 189, 248, 0.15); color: #fff; border-color: var(--accent-2);
}

.clue-box {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; margin-bottom: 20px; text-align: center;
}
.clue-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-2); background: rgba(56, 189, 248, 0.12);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.clue-text { font-size: 1.25rem; font-weight: 700; color: #fff; }
.clue-sub { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }

.options-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px;
}
@media (max-width: 560px) { .options-grid { grid-template-columns: 1fr; } }

.opt-btn {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 14px 16px; border-radius: 10px; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease; text-align: left;
}
.opt-btn:hover:not(:disabled) { border-color: var(--accent-2); background: #23304c; transform: translateY(-1px); }
.opt-btn.correct { background: rgba(34, 197, 94, 0.2); border-color: var(--success); color: #86efac; }
.opt-btn.wrong { background: rgba(239, 68, 68, 0.2); border-color: var(--danger); color: #fca5a5; }
.opt-btn:disabled { cursor: default; opacity: 0.9; }

.game-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, #6d28d9, #0284c7);
  color: #ffffff; font-weight: 800; border: none;
  padding: 10px 20px; border-radius: 10px; cursor: pointer; font-size: 0.95rem;
}
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn-secondary {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); font-weight: 600;
  padding: 10px 16px; border-radius: 10px; cursor: pointer; font-size: 0.9rem;
}
.feedback-msg { font-weight: 700; font-size: 0.95rem; min-height: 24px; }

.seo-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 24px;
}
.seo-section h2 { font-size: 1.45rem; margin-bottom: 12px; color: #fff; }
.seo-section h3 { font-size: 1.15rem; margin: 18px 0 8px; color: var(--accent-2); }
.seo-section p, .seo-section li { color: var(--muted); margin-bottom: 10px; }
.seo-section ul, .seo-section ol { padding-left: 20px; }

.faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; color: #fff; margin-bottom: 6px; }

.site-footer {
  border-top: 1px solid var(--border); background: #080b12;
  padding: 28px 0; color: var(--muted); font-size: 0.88rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.disclaimer { font-size: 0.8rem; color: #64748b; margin-top: 6px; max-width: 480px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #fff; }