:root {
  color-scheme: dark;
  --bg: #100f12;
  --bg-soft: #19171b;
  --panel: #211e24;
  --panel-light: #2a262d;
  --text: #f5f4f6;
  --muted: #bebcc1;
  --gold: #f3c84b;
  --gold-bright: #ffdf78;
  --gold-deep: #bd8520;
  --line: rgba(243, 200, 75, .2);
  --purple: #9687a4;
  --max-width: 1160px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 50% -25%, #353139 0, var(--bg) 46rem);
  font: 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { display: block; max-width: 100%; }
a { color: var(--gold-bright); text-underline-offset: .2em; }
a:hover { color: #fff; }
button, input { font: inherit; }

.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; color: #161518; background: var(--gold); border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(16, 15, 18, .94); backdrop-filter: blur(16px); }
.header-inner { width: min(100%, var(--max-width)); min-height: 78px; margin: 0 auto; padding: .65rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: flex; flex: 0 0 190px; align-items: center; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.8rem, 2vw, 1.7rem); }
.site-nav a, .site-footer nav a { color: var(--text); font-size: .91rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-footer nav a:hover { color: var(--gold-bright); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.nav-toggle, .menu-toggle { display: none; }

.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1rem; border: 1px solid transparent; border-radius: 999px; font-size: .88rem; font-weight: 750; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-gold { color: #211306; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); box-shadow: 0 7px 24px rgba(243, 200, 75, .19); }
.button-gold:hover { color: #170e05; background: #ffe58b; }
.button-quiet, .button-outline { color: var(--text); border-color: rgba(255,255,255,.25); background: rgba(16, 15, 18, .45); }
.button-quiet:hover, .button-outline:hover { color: #fff; border-color: var(--gold); }
.button-large { min-height: 50px; padding: .8rem 1.35rem; }

.hero { position: relative; min-height: 450px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: #18151a; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: center; }
.hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(15, 14, 17, .97) 0%, rgba(15, 14, 17, .89) 34%, rgba(15, 14, 17, .38) 72%, rgba(15, 14, 17, .16) 100%), linear-gradient(0deg, rgba(15, 14, 17, .55), transparent 45%); }
.hero-content { width: min(100%, var(--max-width)); min-height: 450px; margin: 0 auto; padding: 4.2rem 1.25rem 3rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.eyebrow, .section-kicker, .side-label { color: var(--gold); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { margin: 0 0 .8rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 1rem; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.hero-lead { max-width: 620px; margin-bottom: 1.55rem; color: #e0dee2; font-size: clamp(1rem, 1.7vw, 1.17rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.hero-tags span { padding: .35rem .7rem; color: #f0eff2; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(19, 17, 21, .46); font-size: .77rem; }

.page-shell { width: min(100%, var(--max-width)); margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.notice { padding: 1rem 1.15rem; border: 1px solid rgba(243,200,75,.34); border-radius: 12px; color: #e2e1e4; background: linear-gradient(110deg, rgba(66, 61, 71, .52), rgba(32, 29, 34, .85)); font-size: .9rem; }
.notice strong { color: var(--gold-bright); }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1rem 0 2rem; }
.quick-card { min-height: 90px; display: flex; align-items: center; gap: .8rem; padding: .85rem; color: var(--text); border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, rgba(42, 38, 45, .94), rgba(26, 24, 28, .92)); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.quick-card:hover { transform: translateY(-2px); border-color: rgba(243,200,75,.6); }
.quick-card > span:nth-child(2) { min-width: 0; display: grid; gap: .18rem; }
.quick-card strong { font-size: .88rem; line-height: 1.3; }
.quick-card small { color: var(--muted); font-size: .72rem; line-height: 1.35; }
.quick-card b { margin-left: auto; color: var(--gold); font-size: 1rem; }
.card-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; color: #221509; border-radius: 10px; background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); font-size: .66rem; font-weight: 900; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 245px; align-items: start; gap: 2rem; }
.article { min-width: 0; }
.article p, .article li { color: #d3d2d5; }
.article .intro { margin: 0 0 1.25rem; color: #f0eef1; font-size: 1.12rem; line-height: 1.75; }
.article section { margin-top: 2.8rem; scroll-margin-top: 100px; }
.section-kicker { margin-bottom: .35rem; font-size: .67rem; letter-spacing: .16em; }
.article h2 { margin: 0 0 .9rem; color: #fff; font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.24; letter-spacing: -.025em; }
.article h3 { margin: 1.5rem 0 .6rem; color: var(--gold-bright); font-size: 1.12rem; }
.article p { margin-bottom: 1rem; }
.article ul { margin: .4rem 0 1.1rem; padding-left: 1.25rem; }
.article li { margin: .36rem 0; padding-left: .2rem; }
.check-list li::marker { color: var(--gold); }

.toc { margin: 1.5rem 0 2rem; padding: .9rem 1rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(33, 30, 36, .78); }
.toc summary { color: var(--gold-bright); cursor: pointer; font-weight: 800; }
.toc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1rem; padding-top: .8rem; }
.toc-grid a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.toc-grid a:hover { color: var(--gold-bright); }
.tip-box { margin: 1.3rem 0; padding: 1rem 1.15rem; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: rgba(42, 38, 45, .68); }
.tip-box strong { color: var(--gold-bright); }
.tip-box ul { margin: .55rem 0 0; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1.2rem 0; }
.review-grid > div { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(33, 30, 36, .7); }
.review-grid span { display: block; margin-bottom: .5rem; color: var(--gold); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.review-grid strong { display: block; margin-bottom: .35rem; color: #fff; font-size: .9rem; }
.review-grid p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }

.side-card { position: sticky; top: 98px; padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, #262329, #181619 80%); box-shadow: 0 18px 55px rgba(0,0,0,.2); }
.side-logo { margin: -.2rem auto 1rem; padding: .4rem; border-radius: 10px; background: rgba(0,0,0,.35); }
.side-logo img { width: 100%; height: auto; }
.side-label { margin-bottom: .45rem; font-size: .65rem; }
.side-card h2 { margin: 0 0 .25rem; color: #fff; font-size: 1.15rem; }
.side-card > p:not(.side-label) { margin-bottom: .7rem; color: var(--muted); font-size: .84rem; }
.side-card > a { display: block; padding: .56rem 0; color: #ebe9ed; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; text-decoration: none; }
.side-card > a:hover { color: var(--gold-bright); }
.side-note { margin-top: .8rem; padding: .7rem; color: var(--muted); border-radius: 9px; background: rgba(0,0,0,.2); font-size: .72rem; line-height: 1.5; }

.faq-section { padding-top: .25rem; }
.faq-item { margin: .65rem 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(33, 30, 36, .62); }
.faq-item summary { position: relative; padding: .9rem 2.5rem .9rem 1rem; color: #fff; cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: .75rem; right: 1rem; color: var(--gold); font-size: 1.25rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 1rem 1rem; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: #0c0b0c; }
.footer-inner { width: min(100%, var(--max-width)); margin: 0 auto; padding: 2rem 1.25rem 1.5rem; text-align: center; }
.footer-brand { width: min(210px, 55vw); display: block; margin: 0 auto 1.15rem; }
.footer-brand img { width: 100%; height: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.4rem; margin-bottom: 1.2rem; }
.site-footer nav a { color: var(--muted); font-size: .84rem; }
.footer-disclosure { max-width: 760px; margin: 0 auto .65rem; color: #a6a4a7; font-size: .78rem; }
.copyright { margin: 0; color: #7b797d; font-size: .74rem; }

@media (max-width: 980px) {
  .header-inner { gap: .8rem; }
  .brand { flex-basis: 160px; }
  .site-nav { gap: .85rem; }
  .site-nav a { font-size: .82rem; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 1.3rem; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 740px) {
  html { scroll-padding-top: 76px; }
  .header-inner { min-height: 68px; padding: .55rem 1rem; }
  .brand { flex-basis: 145px; }
  .nav-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; align-items: stretch; padding: .35rem 1rem .8rem; border-bottom: 1px solid var(--line); background: rgba(16, 15, 18, .98); }
  .site-nav a { padding: .68rem .3rem; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .95rem; }
  .nav-toggle:checked ~ .site-nav { display: flex; flex-direction: column; }
  .header-actions { margin-left: auto; }
  .header-actions .button { min-height: 38px; padding: .5rem .72rem; font-size: .75rem; white-space: nowrap; }
  .menu-toggle { width: 36px; height: 36px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
  .menu-toggle span { width: 100%; height: 2px; border-radius: 2px; background: var(--text); }
  .nav-toggle:focus-visible + .site-nav + .header-actions .menu-toggle { outline: 2px solid var(--gold); outline-offset: 3px; }
  .hero, .hero-content { min-height: 430px; }
  .hero-image { object-position: 60% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(15, 14, 17, .96), rgba(15, 14, 17, .79) 62%, rgba(15, 14, 17, .4)), linear-gradient(0deg, rgba(15, 14, 17, .45), transparent 45%); }
  .hero-content { padding: 3rem 1rem 2.5rem; }
  h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .hero-lead { max-width: 540px; }
  .page-shell { padding: 1rem 1rem 3rem; }
  .content-grid { display: block; }
  .side-card { position: static; margin-top: 2rem; }
  .side-logo { max-width: 240px; }
  .side-card > a { display: inline-block; width: 49%; vertical-align: top; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .brand { flex: 0 1 104px; min-width: 78px; }
  .header-inner { gap: .4rem; padding-left: .75rem; padding-right: .75rem; }
  .header-actions { gap: .3rem; }
  .header-actions .button { min-height: 34px; padding: .4rem .5rem; font-size: .66rem; letter-spacing: 0; }
  .menu-toggle { width: 33px; height: 33px; }
  .hero, .hero-content { min-height: 440px; }
  .hero-content { padding-top: 2.5rem; }
  .hero-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-tags { gap: .4rem; }
  .hero-tags span { font-size: .7rem; }
  .quick-links { gap: .55rem; }
  .quick-card { min-height: 84px; gap: .55rem; padding: .65rem; }
  .quick-card strong { font-size: .76rem; }
  .quick-card small { font-size: .65rem; }
  .card-icon { width: 28px; height: 28px; flex-basis: 28px; font-size: .6rem; }
  .toc-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .review-grid > div { padding: .85rem; }
  .side-card > a { width: 100%; }
}

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

/* ---- Multi-page additions ---- */
.site-nav a[aria-current="page"] { color: var(--gold-bright); }
.side-card > a[aria-current="page"] { color: var(--gold-bright); font-weight: 750; }
.side-card > a.side-cta { display: flex; margin-top: .8rem; padding: .6rem 1rem; color: #211306; border-top: 0; text-align: center; }
.side-card > a.side-cta:hover { color: #170e05; }
.age { display: inline-block; padding: .05rem .4rem; color: #161518; border-radius: 6px; background: var(--gold); font-size: .72em; font-weight: 900; line-height: 1.5; vertical-align: .1em; }

.hero-page, .hero-page .hero-content { min-height: 340px; }
.hero-page .hero-content { padding-top: 2.4rem; padding-bottom: 2.4rem; }
.hero-page h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-bright); }
.breadcrumbs [aria-current] { color: #f0eef1; }

.quick-links { grid-template-columns: repeat(3, 1fr); }

.steps { margin: .5rem 0 1.2rem; padding-left: 1.4rem; }
.steps li::marker { color: var(--gold); font-weight: 800; }
.steps strong, .check-list strong { color: #fff; }

.callout { margin: 1.3rem 0; padding: .95rem 1.1rem; border: 1px solid rgba(243,200,75,.38); border-radius: 12px; background: rgba(66, 61, 71, .35); }
.callout p { margin: 0; }
.callout strong { color: var(--gold-bright); }

.cta-inline { margin: 1.2rem 0 0; }
.article .cta-inline .button { color: #211306; }

.table-wrap { margin: 1rem 0 1.3rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .9rem; }
.table-wrap th, .table-wrap td { padding: .7rem .85rem; border-bottom: 1px solid rgba(255,255,255,.07); text-align: left; vertical-align: top; color: #d3d2d5; }
.table-wrap thead th { color: var(--gold-bright); background: rgba(42, 38, 45, .85); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.table-wrap tbody th { color: #fff; background: rgba(42, 38, 45, .5); white-space: nowrap; }
.table-wrap tr:last-child td, .table-wrap tr:last-child th { border-bottom: 0; }

.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1.2rem 0; }
.game-grid .game { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(33, 30, 36, .7); }
.article .game-grid h3 { margin: 0 0 .35rem; font-size: 1rem; }
.game-grid p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1.2rem 0; }
.proscons > div { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(33, 30, 36, .7); }
.proscons strong { display: block; margin-bottom: .3rem; color: var(--gold-bright); }
.proscons ul { margin: 0; }

.error-page { max-width: 640px; margin: 3rem auto; text-align: center; }
.error-page h1 { margin: 0 auto 1rem; }
.error-page .hero-actions { justify-content: center; }

@media (max-width: 980px) {
  .quick-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 740px) {
  .hero-page, .hero-page .hero-content { min-height: 320px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .proscons { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .game-grid { grid-template-columns: 1fr; }
}

/* ---- Layout variants (body.l-*) ---- */
.l-hero-center .hero-content { align-items: center; text-align: center; }
.l-hero-center h1, .l-hero-center .hero-lead { margin-left: auto; margin-right: auto; }
.l-hero-center .hero-actions, .l-hero-center .hero-tags, .l-hero-center .breadcrumbs { justify-content: center; }
.l-hero-center .hero-shade { background: radial-gradient(ellipse at center, rgba(15, 14, 17, .9) 0%, rgba(15, 14, 17, .78) 55%, rgba(15, 14, 17, .55) 100%); }

.l-hero-compact .hero, .l-hero-compact .hero-content { min-height: 360px; }
.l-hero-compact.hero-page, .l-hero-compact .hero-page, .l-hero-compact .hero-page .hero-content { min-height: 280px; }
.l-hero-compact h1 { font-size: clamp(1.9rem, 4vw, 3rem); }

.l-hero-right .hero-image { object-position: left center; transform: scaleX(-1); }
.l-hero-right .hero-content { align-items: flex-end; text-align: right; }
.l-hero-right .hero-actions, .l-hero-right .hero-tags, .l-hero-right .breadcrumbs { justify-content: flex-end; }
.l-hero-right .hero-shade { background: linear-gradient(270deg, rgba(15, 14, 17, .97) 0%, rgba(15, 14, 17, .89) 34%, rgba(15, 14, 17, .38) 72%, rgba(15, 14, 17, .16) 100%), linear-gradient(0deg, rgba(15, 14, 17, .55), transparent 45%); }

.l-sidebar-left .content-grid { grid-template-columns: 245px minmax(0, 1fr); }
.l-sidebar-left .side-card { order: -1; }

.l-sharp { --radius: 6px; }
.l-sharp .button { border-radius: 8px; }
.l-sharp .quick-card, .l-sharp .notice, .l-sharp .faq-item, .l-sharp .review-grid > div, .l-sharp .game-grid .game,
.l-sharp .proscons > div, .l-sharp .table-wrap, .l-sharp .callout, .l-sharp .card-icon { border-radius: 6px; }

.l-serif h1, .l-serif .article h2, .l-serif .side-card h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.01em; }

.l-boxed .article { padding: 1.5rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(25, 23, 27, .6); }
.l-boxed .article section:first-of-type { margin-top: 1.5rem; }

.l-list-cards .quick-links { grid-template-columns: repeat(2, 1fr); }
.l-list-cards .quick-card { min-height: 70px; }

.l-ruled .article section { padding-top: 2rem; border-top: 1px solid var(--line); }

.l-plain-kicker .section-kicker { color: var(--muted); letter-spacing: .1em; }

.l-wide .page-shell, .l-wide .header-inner, .l-wide .hero-content, .l-wide .footer-inner { width: min(100%, 1240px); }

@media (max-width: 740px) {
  .l-sidebar-left .content-grid { display: block; }
  .l-boxed .article { padding: 1rem; }
  .l-hero-right .hero-content { align-items: flex-start; text-align: left; }
  .l-hero-right .hero-actions, .l-hero-right .hero-tags, .l-hero-right .breadcrumbs { justify-content: flex-start; }
  .l-list-cards .quick-links { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .quick-links { grid-template-columns: 1fr; }
}
