:root {
  --bg: #0e1420;
  --bg-header-start: #050810;
  --bg-header-end: #1a2332;
  --bg-footer: #050810;
  --bg-card: #1a2332;
  --bg-surf: #1e2a3d;
  --bg-surf2: #2a3648;
  --accent: #ffcc00;
  --accent2: #ff9500;
  --brand: #4d8fff;
  --brand-dark: #2563eb;
  --success: #22c55e;
  --success-dark: #16a34a;
  --danger: #ef4444;
  --text: #ffffff;
  --text2: #a0aec0;
  --text3: #718096;
  --text-dark: #1a2332;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(255, 204, 0, 0.3);
  --gradient-cta: linear-gradient(135deg, #ffcc00 0%, #ff9500 100%);
  --gradient-header: linear-gradient(180deg, #050810 0%, #1a2332 100%);
  --gradient-brand: linear-gradient(135deg, #4d8fff 0%, #a855f7 100%);
  --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);

  --header-h: 70px;
  --font-display: "Unbounded", "Arial Black", "Segoe UI", sans-serif;
  --font-body: "Onest", "Segoe UI", Roboto, Arial, sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  background-image: radial-gradient(900px 420px at 85% -120px, rgba(77, 143, 255, 0.14), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--accent); }
p, li, td, th, h1, h2, h3, a, summary { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: var(--gradient-header);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
}
.logo-link { flex-shrink: 0; display: block; }
.logo-img { height: 40px; width: auto; display: block; }
.main-nav { flex: 1 1 auto; min-width: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 16px; }
.main-nav li, .mobile-menu li, .breadcrumbs li { margin: 0; }
.main-nav a, .mobile-menu a {
  color: var(--text2); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: color .15s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.header-btns { display: flex; gap: 8px; flex-shrink: 0; }
.play-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 14px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.login-btn { color: var(--brand); border: 1.5px solid var(--brand); background: transparent; }
.login-btn:hover { color: var(--text); background: var(--brand-dark); border-color: var(--brand-dark); }
.reg-btn { color: #fff; background: var(--gradient-success); box-shadow: var(--shadow-glow); border: 1.5px solid transparent; }
.reg-btn:hover { color: #fff; transform: translateY(-1px); }

.burger-btn {
  display: none; width: 44px; height: 44px; flex-shrink: 0;
  background: var(--bg-surf); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger-btn span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: var(--header-h); right: 0;
  width: 100%; max-width: 320px;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: var(--bg-card); border-left: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong);
  border-bottom-left-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  transform: translateX(105%); visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu ul { list-style: none; margin: 0; padding: 8px 0; }
.mobile-menu a { display: block; padding: 13px 20px; font-size: 16px; border-bottom: 1px solid var(--border); }
.mobile-menu li:last-child a { border-bottom: 0; }
.mobile-menu a[aria-current="page"] { color: var(--accent); }

/* ---------- Content ---------- */
.page { padding-top: 20px; padding-bottom: 56px; }
.content { max-width: 860px; margin: 0 auto; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 auto 8px; padding: 0; max-width: 860px; font-size: 14px; color: var(--text3); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text3); }
.breadcrumbs a { color: var(--text2); text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 800; margin: 12px 0 20px; }
h2 { font-size: clamp(1.3rem, 4.2vw, 1.85rem); font-weight: 600; margin: 56px 0 16px; padding-top: 22px; border-top: 1px solid var(--border); }
h3 { font-size: clamp(1.08rem, 3.2vw, 1.3rem); font-weight: 600; margin: 32px 0 10px; color: var(--accent); }
p { margin: 0 0 16px; color: #dfe5ee; }
.content > p:first-of-type, .lead { font-size: 1.1rem; color: var(--text); }
strong { color: var(--text); }
ul, ol { margin: 0 0 18px; padding-left: 1.3em; color: #dfe5ee; }
li { margin-bottom: 8px; }
li::marker { color: var(--accent); font-weight: 700; }

.page-img { margin: 0 0 24px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-strong); background: var(--bg-card); box-shadow: var(--shadow-lg); }
.page-img img { width: 100%; }
h2 + .page-img { margin-top: 4px; }

/* Stat strip (home) */
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; min-width: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 4vw, 1.9rem); color: var(--accent); line-height: 1.1; }
.stat span { color: var(--text2); font-size: 14px; }

/* Tables */
.table-wrapper { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 22px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--bg-card); }
.table-wrapper table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.table-wrapper td, .table-wrapper th { white-space: nowrap; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.table-wrapper th { background: var(--bg-surf2); color: var(--text); font-weight: 700; }
.table-wrapper tr:last-child td { border-bottom: 0; }
.table-wrapper td:first-child { color: var(--text2); }
.table-wrapper tbody tr:nth-child(even) { background: var(--bg-surf); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  padding: 14px 28px; border-radius: var(--r-sm); font-weight: 700; font-size: 16px; line-height: 1.25;
  text-decoration: none; max-width: 100%; transition: transform .15s, box-shadow .15s;
}
.btn-cta { background: var(--gradient-cta); color: var(--text-dark); box-shadow: var(--shadow-glow); }
.btn-cta:hover { color: var(--text-dark); transform: translateY(-2px); box-shadow: 0 0 28px rgba(255, 204, 0, 0.45); }
.btn-ghost { color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--brand); }
.cta-inline { margin: 22px 0 8px; }

/* Callout */
.note { background: var(--bg-surf); border-left: 3px solid var(--brand); border-radius: var(--r-sm); padding: 14px 16px; margin: 0 0 18px; }
.note p:last-child { margin: 0; }

/* FAQ */
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 16px; position: relative; font-weight: 700; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-a { padding: 0 16px 4px; }

/* Final CTA */
.final-cta {
  margin-top: 56px; padding: 32px 28px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--bg-surf2) 0%, var(--bg-card) 60%);
  border: 1px solid rgba(255, 204, 0, 0.35); box-shadow: var(--shadow-glow);
}
.final-cta h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* 404 */
.page-404 { text-align: center; padding-top: 48px; padding-bottom: 80px; max-width: 640px; }
.big-404 { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 26vw, 11rem); line-height: 1; margin: 0; background: var(--gradient-cta); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-404 h1 { margin-top: 8px; }

/* Footer */
.site-footer { background: var(--bg-footer); border-top: 1px solid var(--border); padding: 40px 0 28px; margin-top: 24px; }
.footer-top { display: flex; gap: 32px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.footer-links { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 20px; }
.footer-links li { margin: 0; }
.footer-links a { color: var(--text2); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; gap: 16px; padding-top: 20px; flex-wrap: wrap; }
.age-badge { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--danger); color: var(--danger); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.disclaimer { flex: 1 1 300px; min-width: 0; margin: 0; color: var(--text3); font-size: 14px; }
.copyright { margin: 0; color: var(--text3); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) { .main-nav ul { gap: 12px; } .main-nav a { font-size: 14px; } }
@media (max-width: 1199px) {
  :root { --header-h: 60px; }
  .main-nav { display: none; }
  .burger-btn { display: flex; }
  .header-inner { gap: 8px; padding: 0 12px; }
  .logo-img { height: 36px; }
  .header-btns { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; gap: 6px; }
  .play-btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .stat-strip { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 20px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-cta { padding: 22px 16px; }
  .cta-row .btn, .cta-inline .btn { width: 100%; white-space: normal; }
  h2 { margin-top: 44px; }
}
@media (max-width: 480px) {
  .play-btn { padding: 8px 12px; font-size: 13px; }
  .table-wrapper td, .table-wrapper th { padding: 10px 12px; }
}
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .header-inner { gap: 4px; }
  .logo-img { height: 28px; }
  .header-btns { gap: 4px; }
  .play-btn { padding: 6px 8px; font-size: 12px; }
  .footer-links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* CTA under images */
.img-cta { margin: -8px 0 24px; text-align: center; }
.img-cta .btn { min-width: 260px; }
@media (max-width: 768px) { .img-cta .btn { width: 100%; min-width: 0; white-space: normal; } }
