:root {
  color-scheme: dark;
  --page: #080b15;
  --bg: #0e1220;
  --panel: #171d31;
  --panel-soft: #1e2540;
  --line: #2a3354;
  --text: #eef1fb;
  --muted: #a8b0cc;
  --dim: #8b93b5;
  --gold: #ffc53d;
  --cyan: #3ddcff;
  --purple: #c77dff;
  --coral: #ff8fa3;
  --green: #5de38a;
  --red: #ff5c74;
  --deep: #10142a;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(1000px 620px at 4% -8%, rgba(61, 220, 255, .08), transparent 60%),
    radial-gradient(900px 600px at 104% 2%, rgba(199, 125, 255, .09), transparent 58%),
    var(--page);
  color: var(--text);
  font: 16px/1.68 "Nunito", "Segoe UI", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: #8eeeff; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -60px;
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--deep);
  font-weight: 900;
}
.skip-link:focus { top: 12px; }

.container { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 36px)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(42, 51, 84, .78);
  background: rgba(8, 11, 21, .86);
  backdrop-filter: blur(18px);
}
.header-row { min-height: 76px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 900; flex: 0 0 auto; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, .34); }
.brand-copy { display: grid; line-height: 1.02; }
.brand-copy strong { font-size: 18px; letter-spacing: -.3px; }
.brand-copy span { margin-top: 4px; color: var(--dim); font-size: 9px; letter-spacing: 3px; }
.brand-gold { color: var(--gold); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 4px; margin-left: auto; }
.main-nav a { padding: 9px 10px; border-radius: 10px; color: #cbd1e6; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--panel); color: var(--text); }
.header-cta { margin-left: 8px; }
.mobile-menu { display: none; margin-left: auto; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; background: var(--panel); font-weight: 900; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; right: 0; top: 48px; width: min(280px, calc(100vw - 36px)); display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #11172a; box-shadow: var(--shadow); }
.mobile-menu nav a { padding: 10px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 800; }
.mobile-menu nav a:hover { background: var(--panel-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 10px 18px; border: 1px solid transparent; border-radius: 13px; font-weight: 900; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--gold), #ffdd75); color: var(--deep); box-shadow: 0 10px 28px rgba(255, 197, 61, .2); }
.btn-secondary { border-color: rgba(61, 220, 255, .55); background: rgba(61, 220, 255, .1); color: var(--cyan); }
.btn-small { min-height: 39px; padding: 8px 14px; border-radius: 11px; font-size: 13px; }

main { overflow: hidden; }
.hero { position: relative; padding: 82px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: center; gap: 68px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 7px 11px; border: 1px solid rgba(61, 220, 255, .35); border-radius: 999px; background: rgba(61, 220, 255, .08); color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .35px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.45px; }
h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 4.7rem); font-weight: 900; }
h2 { margin: 0 0 14px; font-size: clamp(1.75rem, 3.7vw, 2.7rem); font-weight: 900; }
h3 { margin: 0 0 9px; font-size: 1.18rem; font-weight: 900; }
.hero h1 span { color: var(--gold); }
.lead { max-width: 720px; margin: 20px 0 0; color: #c9cfe6; font-size: clamp(1.05rem, 2vw, 1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.microcopy { margin: 13px 0 0; color: var(--dim); font-size: 12.5px; font-weight: 700; }
.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-glow { position: absolute; inset: 12% 5%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 197, 61, .18), rgba(61, 220, 255, .06) 38%, transparent 68%); filter: blur(14px); }
.hero-shot { position: relative; z-index: 2; width: min(100%, 520px); border: 1px solid rgba(61, 220, 255, .24); border-radius: 30px; box-shadow: var(--shadow), 0 0 80px rgba(61, 220, 255, .08); overflow: hidden; transform: rotate(1.1deg); }
.hero-icon { position: absolute; z-index: 3; width: 112px; height: 112px; right: 0; bottom: 20px; border: 7px solid var(--page); border-radius: 28px; box-shadow: 0 18px 44px rgba(0, 0, 0, .52); }
.float-chip { position: absolute; z-index: 4; padding: 9px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(23, 29, 49, .94); box-shadow: 0 12px 34px rgba(0, 0, 0, .35); font-size: 12px; font-weight: 900; }
.chip-one { left: -12px; top: 74px; color: var(--green); }
.chip-two { right: -18px; top: 160px; color: var(--cyan); }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.trust-item { padding: 18px; background: rgba(23, 29, 49, .88); text-align: center; }
.trust-item strong { display: block; color: var(--text); font-size: 1.22rem; }
.trust-item span { color: var(--dim); font-size: 12px; font-weight: 800; }

.section { padding: 78px 0; }
.section-soft { border-block: 1px solid rgba(42, 51, 84, .55); background: rgba(14, 18, 32, .7); }
.section-heading { max-width: 740px; margin-bottom: 30px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.overline { display: block; margin-bottom: 9px; color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: 1.7px; text-transform: uppercase; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(30, 37, 64, .85), rgba(23, 29, 49, .84)); box-shadow: 0 12px 38px rgba(0, 0, 0, .15); }
.card p { margin: 0; color: var(--muted); }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { border-color: rgba(61, 220, 255, .55); color: inherit; transform: translateY(-3px); }
.card-link { transition: transform .18s ease, border-color .18s ease; }
.icon-badge { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .08); font-size: 25px; }
.game-card { overflow: hidden; min-height: 260px; }
.game-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.game-card .game-number { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: 1.3px; }
.game-card a { color: var(--accent); font-weight: 900; }
.gold { --accent: var(--gold); }
.cyan { --accent: var(--cyan); }
.purple { --accent: var(--purple); }
.coral { --accent: var(--coral); }
.green { --accent: var(--green); }

.feature-split { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 55px; }
.feature-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: start; color: #c9cfe6; }
.feature-list b { color: var(--text); }
.check { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: rgba(93, 227, 138, .12); color: var(--green); font-weight: 900; }
.score-example { padding: 25px; border: 1px solid rgba(255, 197, 61, .35); border-radius: 26px; background: radial-gradient(circle at 90% 0, rgba(255, 197, 61, .12), transparent 42%), var(--panel); box-shadow: var(--shadow); }
.score-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.score-row:last-child { border: 0; }
.score-player { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.score-rank { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--panel-soft); color: var(--gold); }
.score-points { color: var(--cyan); font-weight: 900; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: 0 16px 42px rgba(0, 0, 0, .25); }
.gallery figcaption { margin-top: 9px; color: var(--dim); font-size: 12px; font-weight: 800; text-align: center; }

.cta-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 34px; border: 1px solid rgba(61, 220, 255, .35); border-radius: 28px; background: linear-gradient(135deg, rgba(61, 220, 255, .11), rgba(199, 125, 255, .09)), var(--panel); }
.cta-panel h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.cta-panel p { margin: 0; color: var(--muted); }

.page-hero { padding: 62px 0 38px; }
.page-hero h1 { max-width: 900px; font-size: clamp(2.15rem, 5vw, 3.85rem); }
.page-hero .lead { max-width: 850px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; color: var(--dim); font-size: 12px; font-weight: 800; }
.breadcrumbs a { color: var(--dim); }
.breadcrumbs span:last-child { color: var(--text); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; padding-bottom: 80px; }
.prose { min-width: 0; }
.prose h2 { margin-top: 46px; font-size: clamp(1.55rem, 3vw, 2.08rem); }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: #c9cfe6; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 7px; }
.prose figure { margin: 30px 0; }
.prose figure img { display: block; width: min(100%, 590px); margin-inline: auto; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.prose figcaption { margin-top: 9px; color: var(--dim); text-align: center; font-size: 12px; font-weight: 800; }
.toc { position: sticky; top: 100px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(23, 29, 49, .82); }
.toc strong { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .8px; }
.toc a { display: block; padding: 6px 0; color: var(--muted); font-size: 12.5px; font-weight: 800; text-decoration: none; }
.toc a:hover { color: var(--cyan); }
.note, .example, .warning { margin: 24px 0; padding: 17px 19px; border-radius: 16px; }
.note { border: 1px solid rgba(61, 220, 255, .34); background: rgba(61, 220, 255, .075); }
.example { border: 1px solid rgba(255, 197, 61, .36); background: rgba(255, 197, 61, .075); }
.warning { border: 1px solid rgba(255, 143, 163, .36); background: rgba(255, 143, 163, .075); }
.note p, .example p, .warning p { margin: 0; }
.formula { display: inline-block; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--deep); color: var(--gold); font-weight: 900; }
.table-wrap { margin: 25px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--panel-soft); color: var(--text); font-size: 12px; letter-spacing: .5px; }
td { color: #c9cfe6; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.faq summary { cursor: pointer; padding: 17px 19px; color: var(--text); font-weight: 900; }
.faq details p { margin: 0; padding: 0 19px 18px; color: #c9cfe6; }
.meta-line { margin-top: 18px; color: var(--dim); font-size: 12px; font-weight: 800; }

.site-footer { border-top: 1px solid var(--line); background: #070a12; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; padding: 50px 0 38px; }
.footer-brand p { max-width: 360px; color: var(--dim); font-size: 13px; }
.footer-col strong { display: block; margin-bottom: 10px; color: var(--text); font-size: 13px; }
.footer-col a { display: block; margin: 7px 0; color: var(--dim); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 26px; border-top: 1px solid rgba(42, 51, 84, .7); color: var(--dim); font-size: 11.5px; }

@media (max-width: 1040px) {
  .main-nav, .header-cta { display: none; }
  .mobile-menu { display: block; }
  .hero-grid { grid-template-columns: 1fr 420px; gap: 34px; }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .hero { padding-top: 54px; }
  .hero-grid, .feature-split, .article-layout { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; }
  .hero-shot { width: min(100%, 500px); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { position: static; grid-row: 1; }
  .cta-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .container, .narrow { width: min(100% - 24px, 1160px); }
  .header-row { min-height: 66px; }
  .brand-copy span { display: none; }
  .brand img { width: 39px; height: 39px; }
  .hero { padding-top: 42px; }
  h1 { font-size: 2.45rem; }
  .hero-visual { min-height: 300px; }
  .hero-icon { width: 80px; height: 80px; border-radius: 22px; }
  .float-chip { display: none; }
  .section { padding: 58px 0; }
  .grid-2, .grid-3, .grid-5, .gallery, .footer-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 14px 9px; }
  .card { padding: 19px; }
  .footer-bottom { flex-direction: column; }
  .page-hero { padding-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
