/* Slayers 2 Guide — base stylesheet (slayers2.world).
   Structure + this site's visual system: 02-design/20260922-slayers-2/
   (tokens_Slayers2.css, 视觉系统_Slayers2.md §2-§4, preview/*.html).
   The token block below is the approved batch 220 token set; the aliases after
   it keep the generic engine hooks (--ink/--brand/--container…) working.
   Class hooks consumed by check-geo.mjs / capture.cjs (h1, .btn, details,
   .table-wrap, footer strong, .byline, time) must survive any edit here.

   NOTE: no comment in this file may contain the CSS comment terminator. */

:root{
  /* ---- batch 220 design tokens (pixel-sampled from the official icon and
         banner; contrast PASS 40 · FAIL 0, see 核验_Slayers2.md) ---- */
  --bg:#131110;
  --bg-elevated:#1e1a18;
  --surface:#211c1a;
  --surface-raised:#2a2422;
  --code-bg:#1a1614;

  --border:#3b332e;
  --border-strong:#7d6f66;

  --text:#f3ede7;
  --text-muted:#b3a79e;
  --text-faint:#a59c94;

  --accent:#e2552e;
  --accent-strong:#f26a3f;
  --accent-deep:#c44322;
  --accent-soft:#401f14;
  --on-accent:#1c0a04;

  --secondary:#b39be0;
  --secondary-deep:#3a2f5c;
  --secondary-soft:#2a2340;
  --on-secondary:#17121f;

  --success:#7fb26a;
  --warning:#d9a441;
  --danger:#e76767;

  --link:#b39be0;

  --font-sans:"Inter","Segoe UI","Helvetica Neue",Arial,sans-serif;
  --font-display:"Archivo Black","Inter","Segoe UI",Arial,sans-serif;
  --font-mono:"JetBrains Mono","SF Mono",Consolas,monospace;

  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-6:24px; --space-8:32px;
  --radius-sm:6px; --radius-md:10px; --radius-lg:16px;

  /* ---- structural aliases (generic engine hooks) ---- */
  --ink:var(--text);
  --ink-muted:var(--text-muted);
  --surface-sunken:var(--code-bg);
  --brand:var(--accent);
  --brand-ink:var(--on-accent);
  --font-body:var(--font-sans);
  /* 72rem matches the approved home preview; article pages narrow themselves
     to 56rem below (.article>.wrap), also per the preview. */
  --container:72rem;
  --radius:var(--radius-lg);
  --space-section:56px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 var(--font-body)}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible,summary:focus-visible,.table-wrap:focus-visible,.consent-settings-button:focus-visible,.cat:focus-visible,.card:focus-visible{outline:3px solid var(--accent-strong);outline-offset:3px}
img{max-width:100%}
code,.codetext{font-family:var(--font-mono);font-size:.94em;background:var(--code-bg);border:1px solid var(--border);border-radius:var(--radius-sm);padding:1px 6px;color:var(--text)}
h1,h2,h3{font-family:var(--font-display);font-weight:800;letter-spacing:-.01em}
h2{font-size:1.45rem;line-height:1.2;margin:0 0 var(--space-3)}
h3{font-size:1.05rem;margin:var(--space-4) 0 var(--space-2)}
p{margin:0 0 var(--space-3)}
.wrap{max-width:var(--container);margin:0 auto;padding:0 var(--space-4)}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--accent);color:var(--on-accent);padding:10px 16px;z-index:99}
.skip-link:focus{left:12px;top:12px}

/* ---- masthead ---- */
header.site{border-bottom:1px solid var(--border);background:var(--bg-elevated)}
/* .nav and .hero are always used together with .wrap, so they must set only
   their vertical padding: a `padding: N 0` shorthand silently wiped out the
   .wrap gutter and pushed the masthead and hero copy to the viewport edge
   (found in the bsk review at 375px). */
.nav{display:flex;align-items:center;gap:var(--space-4);flex-wrap:wrap;padding-top:var(--space-3);padding-bottom:var(--space-3)}
.brand{font-family:var(--font-display);font-size:1.05rem;color:var(--accent-strong);letter-spacing:.02em}
.brand b{font-weight:800}
.brand span{color:var(--accent-strong)}
.brand em{font-style:normal;color:var(--secondary)}
.unofficial{font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--text-faint);border:1px solid var(--border);border-radius:999px;padding:2px 9px}
nav.main{display:flex;gap:var(--space-4);font-size:.92rem;flex-wrap:wrap;margin-left:auto}
nav.main a{color:var(--text-muted);padding:6px 0;min-height:32px;display:inline-flex;align-items:center}
nav.main a:hover,nav.main a[aria-current="page"]{color:var(--text)}
nav.main a[aria-current="page"]{text-decoration:underline;text-underline-offset:4px}

/* ---- home ---- */
.hero{padding-top:var(--space-8);padding-bottom:var(--space-6)}
h1.display{font-size:clamp(1.9rem,5vw,3.15rem);line-height:1.1;margin:0 0 var(--space-3)}
h1.display em{font-style:normal;color:var(--accent-strong)}
.lede{color:var(--text-muted);max-width:46rem;font-size:1.02rem}
.stamp{display:inline-flex;gap:var(--space-2);align-items:center;flex-wrap:wrap;margin:var(--space-3) 0 0;font-size:.8rem;color:var(--text-faint);border:1px solid var(--border);border-radius:999px;padding:5px 13px;background:var(--surface)}
.stamp b{color:var(--success);font-weight:700}
.stamp em{font-style:normal;color:var(--text-faint)}
.stamp--version b{color:var(--secondary)}
.stamp--coverage b{color:var(--text-muted)}
.stamps{display:flex;flex-wrap:wrap;gap:var(--space-2);margin:var(--space-3) 0}
.stamps .stamp{margin:0}
.hstats{display:flex;gap:var(--space-3);flex-wrap:wrap;margin-top:var(--space-4)}
.hstats span{border:1px solid var(--border);border-radius:var(--radius-sm);padding:4px 10px;font-size:.82rem;color:var(--text-muted);background:var(--surface)}
.hctas{display:flex;gap:var(--space-3);flex-wrap:wrap;margin-top:var(--space-5)}
.btn{display:inline-flex;align-items:center;min-height:48px;border-radius:var(--radius-md);padding:11px 18px;font-weight:700;font-size:.95rem;border:1px solid transparent}
.btn:hover{text-decoration:none}
.btn.primary{background:var(--accent);color:var(--on-accent)}
.btn.primary:hover{background:var(--accent-strong)}
.btn.ghost{background:transparent;border-color:var(--border-strong);color:var(--text)}
.btn.ghost:hover{border-color:var(--accent-strong);color:var(--accent-strong)}
.section{padding:var(--space-section) 0}
.section+.section{border-top:1px solid var(--border)}
.eyebrow{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--secondary);font-weight:700}

/* ---- category strip + featured cards ----
   The grid lives on the inner .wrap, not on the section: the section is the
   full-bleed band, the wrap is the 72rem column. Putting the grid on the
   section collapsed these to a single stacked column (found in the bsk review
   against preview/shot-home-1440.png). */
.cats{padding:var(--space-4) 0 var(--space-6)}
.cats>.wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:var(--space-3)}
.cat{display:block;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:var(--space-3) var(--space-4)}
.cat:hover{border-color:var(--border-strong);text-decoration:none}
.cat:focus-visible{outline:3px solid var(--accent-strong);outline-offset:3px}
.cat h3{font-size:.95rem;margin:0;color:var(--text)}
.cat p{font-size:.78rem;color:var(--text-faint);margin:2px 0 0}

.featured{padding-bottom:var(--space-8)}
.featured>.wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:var(--space-4)}
.card{display:block;position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--space-6)}
.card:hover{border-color:var(--border-strong);text-decoration:none}
.card.primary{border-color:var(--accent-deep)}
.card.violet{border-color:var(--secondary-deep)}
.card .kicker{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-strong);font-weight:700}
.card.violet .kicker{color:var(--secondary)}
.card h2{font-size:1.35rem;margin:var(--space-2) 0}
.card p{color:var(--text-muted);font-size:.92rem}
.card .meta{margin-top:var(--space-4);font-size:.8rem;color:var(--text-faint);display:flex;gap:var(--space-3);flex-wrap:wrap;align-items:center}
.pill{background:var(--accent);color:var(--on-accent);border-radius:999px;padding:2px 10px;font-weight:700;font-size:.72rem}
.card.violet .pill{background:var(--secondary);color:var(--on-secondary)}

/* ---- graded tier rows (preview "Rarity tiers") ---- */
.tiers{margin:var(--space-4) 0}
.tier{display:grid;grid-template-columns:88px 1fr;border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;margin-bottom:var(--space-3);background:var(--surface)}
.tier .grade{display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:var(--font-display);font-size:1.8rem;color:var(--on-secondary);padding:var(--space-4);text-align:center}
.tier .grade small{font-family:var(--font-sans);font-size:.7rem;font-weight:400;margin-top:2px;color:inherit;opacity:.85}
.tier .body{background:var(--surface);padding:var(--space-4)}
.tier .body p{color:var(--text-muted);font-size:.9rem;margin:0 0 var(--space-2)}
.tier .body p:last-child{margin-bottom:0}
.g-supreme{background:var(--accent-deep)}
.g-mythic{background:var(--accent)}
.g-legendary{background:var(--secondary-deep)}
.g-rare{background:var(--surface-raised);color:var(--text-muted)}
.chips{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.chip{border:1px solid var(--border-strong);border-radius:999px;padding:3px 12px;font-size:.85rem;color:var(--text);background:var(--bg-elevated)}

/* ---- article pages narrow to the preview's 56rem reading measure ---- */

.about .body{display:grid;grid-template-columns:1.6fr 1fr;gap:var(--space-6);align-items:start}
.about h2{font-size:1.6rem}
.about .prose p{color:var(--text-muted);max-width:46rem}
.about .cta{margin-top:var(--space-4)}
.stats{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--space-4) var(--space-6);align-self:start}
.stats dl{display:grid;grid-template-columns:auto 1fr;gap:6px var(--space-4);margin:0;font-size:.88rem}
.stats dt{color:var(--text-faint)}
.stats dd{margin:0;color:var(--text);text-align:right}
.stats small{display:block;color:var(--text-faint);font-size:.68rem;margin-top:2px}

.anchor p,.anchor li{max-width:46rem}
.anchor ul,.anchor ol{padding-left:1.2em;color:var(--text-muted)}

.faq h2{font-size:1.6rem}
.faq details{border-bottom:1px solid var(--border);padding:var(--space-3) 0}
.faq summary{cursor:pointer;font-weight:700;color:var(--text);list-style:none;display:flex;justify-content:space-between;gap:var(--space-4);align-items:center;min-height:44px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+';font-size:1.3rem;color:var(--accent-strong)}
.faq details[open] summary::after{content:'−'}
.faq p{color:var(--text-muted);margin-top:var(--space-2);max-width:46rem}

.finalcta{background:var(--surface-raised);border:1px solid var(--accent-deep);border-radius:var(--radius-lg);padding:var(--space-6);margin:var(--space-6) 0}
.finalcta h2{font-size:1.4rem;margin-bottom:var(--space-2)}
.finalcta .lede{margin-bottom:var(--space-4)}

/* ---- footer ---- */
footer.site{border-top:1px solid var(--border);background:var(--bg-elevated);padding:var(--space-6) 0;margin-top:var(--space-6);font-size:.85rem;color:var(--text-muted)}
footer.site .cols{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:var(--space-6)}
footer.site strong{display:block;font-family:var(--font-display);font-size:1.05rem;color:var(--text);margin-bottom:var(--space-2)}
footer.site h4{color:var(--text);font-size:.85rem;margin:0 0 var(--space-2);text-transform:uppercase;letter-spacing:.08em}
footer.site ul{list-style:none;margin:0;padding:0}
footer.site li{margin:5px 0}
footer.site p{max-width:34rem;margin:0 0 var(--space-2)}
.fine{color:var(--text-faint);font-size:.75rem;margin-top:var(--space-6);border-top:1px solid var(--border);padding-top:var(--space-4)}

/* ---- article pages ---- */
.article{padding:var(--space-6) 0 var(--space-8)}
.article>.wrap{max-width:56rem}
.crumb{font-size:.8rem;color:var(--text-faint)}
.article h1{font-size:clamp(1.6rem,4.5vw,2.3rem);line-height:1.14;margin:var(--space-2) 0 var(--space-3);max-width:44rem}
.article .lead{font-size:1.05rem;color:var(--text-muted);max-width:46rem}
.article h2{font-size:1.3rem;margin:var(--space-8) 0 var(--space-3)}
.article h3{font-size:1.02rem;margin:var(--space-6) 0 var(--space-2)}
.article p,.article li{max-width:46rem;color:var(--text-muted)}
.article h2+p,.article h2+ul,.article h2+ol{color:var(--text)}
.article ol,.article ul{padding-left:1.2em}
.article li{margin:7px 0}
.article strong{color:var(--text)}
.byline{font-size:.8rem;color:var(--text-faint);margin:var(--space-4) 0 0}
.jumpnav{display:flex;flex-wrap:wrap;gap:var(--space-2);margin:var(--space-4) 0 0}
.jumpnav a{font-size:.8rem;border:1px solid var(--border);border-radius:999px;padding:5px 12px;color:var(--text-muted);background:var(--surface)}
.jumpnav a:hover{border-color:var(--accent-strong);color:var(--accent-strong);text-decoration:none}

.table-wrap{overflow-x:auto;margin:var(--space-4) 0;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface)}
table{border-collapse:collapse;width:100%;min-width:34rem;text-align:left;font-size:.9rem}
th,td{padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--border);vertical-align:top}
th{background:var(--surface-raised);color:var(--text-muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.08em}
tbody th{text-transform:none;letter-spacing:0;font-size:.9rem;color:var(--text)}
tr:last-child th,tr:last-child td{border-bottom:none}
td{color:var(--text-muted)}
td code,th code{color:var(--accent-strong);background:var(--code-bg)}

.callout{border-left:3px solid var(--border-strong);background:var(--surface);border-radius:0 var(--radius-md) var(--radius-md) 0;padding:var(--space-3) var(--space-4);margin:var(--space-4) 0;color:var(--text-muted);font-size:.92rem;max-width:46rem}
.callout--warn{border-left-color:var(--warning);background:var(--bg-elevated)}
.callout--stamp{border-left-color:var(--secondary);background:var(--secondary-soft);color:var(--text)}

.related,.sources{border-top:1px solid var(--border);margin-top:var(--space-8);padding-top:var(--space-4);max-width:46rem}
.related h2,.sources h2{font-family:var(--font-sans);font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-faint);margin:0 0 var(--space-2)}
.related ul,.sources ul{list-style:none;padding:0;margin:0}
.related li,.sources li{margin:6px 0;font-size:.88rem}
/* Trust pages read in a narrower measure than content pages. .article is the
   <main> element, so the measure belongs on the inner .wrap: putting it on
   .article pinned the whole page to the left edge (found in the bsk review). */
.article.trust>.wrap{max-width:44rem}
.article.trust h1{font-size:clamp(1.5rem,4vw,2rem)}
.scroll-hint{display:none;color:var(--text-faint);font-size:.78rem;margin-top:var(--space-2)}

/* ---- consent: entry point + privacy choices section ---- */
.consent-settings-button{margin-top:var(--space-3);padding:10px 16px;min-height:44px;border:1px solid var(--border);border-radius:var(--radius-sm);background:transparent;color:inherit;font:700 .8rem var(--font-body);cursor:pointer}
.consent-settings-button:hover{border-color:var(--accent-strong);color:var(--accent-strong)}
.consent-choices{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);margin:var(--space-6) 0;padding:var(--space-4) var(--space-6);max-width:46rem}
.consent-choices h2{font-size:1.05rem;margin:0 0 var(--space-2)}
.consent-choices p{font-size:.88rem;color:var(--text-muted);margin:0}

/* ---- mandatory-choice page lock (site-ads.md §6) ----
   tarteaucitron's own overlay blocks pointer events; these rules additionally
   stop the background from scrolling (wheel, touch and keyboard) until the
   visitor has picked accept or reject. */
html.consent-choice-required,
body.consent-choice-required{overflow:hidden !important;overscroll-behavior:none}
body.consent-choice-required{position:fixed;inset:0;width:100%}

/* ---- self-hosted consent dialog ---- */
html body #tarteaucitronRoot #tarteaucitronAlertBig{border:1px solid var(--border-strong);border-radius:var(--radius-lg);background:var(--bg-elevated);color:var(--text);box-shadow:0 24px 90px rgba(0,0,0,.6);font-family:var(--font-body)}
html body #tarteaucitronRoot.tarteaucitronSize-middle.tarteaucitronBeforeVisible::before{background:rgba(8,6,5,.85) !important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);pointer-events:auto}
html body #tarteaucitronRoot.tarteaucitronSize-middle #tarteaucitronAlertBig{box-sizing:border-box !important;width:min(700px,calc(100% - 48px)) !important;min-width:0 !important;max-width:700px !important;max-height:calc(100dvh - 48px);padding:clamp(30px,4.6vw,48px) !important;overflow-y:auto;border-radius:var(--radius-lg)}
html body #tarteaucitronRoot.tarteaucitronSize-middle #tarteaucitronAlertBig::before{display:block;margin-bottom:18px;color:var(--text);font-family:var(--font-display);font-size:clamp(27px,4.2vw,40px);font-weight:800;line-height:1.05;letter-spacing:-1px;text-align:center}
html body #tarteaucitronRoot.tarteaucitronSize-middle #tarteaucitronDisclaimerAlert{display:block;max-width:58ch;margin:0 auto 26px;padding:0;color:var(--text);font-size:18px;line-height:1.6;text-align:center}
html body #tarteaucitronRoot #tarteaucitronAlertBig button.tarteaucitronCTAButton{min-height:48px;padding:13px 18px !important;border-radius:var(--radius-sm);border:1px solid var(--accent);background:var(--accent);color:var(--on-accent);font:700 15px/1.3 var(--font-body);cursor:pointer}
html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronAllDenied2{border:1px solid var(--border-strong);background:transparent;color:var(--text)}
/* Pre-script fallback: the Personalize control is removed at runtime and the
   privacy control is replaced by a real link, so neither can flash as a
   third button. */
html body #tarteaucitronRoot #tarteaucitronCloseAlert,
html body #tarteaucitronRoot #tarteaucitronPersonalize,
html body #tarteaucitronRoot #tarteaucitronPrivacyUrl,
html body #tarteaucitronRoot #tarteaucitronPrivacyUrlDialog{display:none !important}
html body #tarteaucitronRoot [data-consent-privacy-link]{display:block;width:fit-content;margin:16px auto 0;color:var(--text-muted);font-size:13px;line-height:1.4;text-align:center;text-decoration:underline;text-underline-offset:3px}
html body #tarteaucitronRoot [data-consent-privacy-link]:focus-visible{outline:3px solid var(--accent-strong);outline-offset:3px}

/* ---- inert advertising placeholder (site-ads.md §4) ----
   Fixed min-height in both breakpoints, never wider than the viewport, and
   wrapping ids/urls/status copy so a blocked or empty ad keeps the layout
   stable. No advertising network is enabled on this site today. */
.ad-slot{--ad-slot-height:120px;display:grid;place-items:center;gap:6px;min-height:var(--ad-slot-height);margin:32px 0;padding:14px;overflow:hidden;border:1px dashed var(--border);border-radius:var(--radius-md);background:var(--surface-sunken);color:var(--text-muted);text-align:center}
.ad-slot--banner{--ad-slot-height:96px;width:100%}
.ad-slot--rectangle{--ad-slot-height:280px;width:min(100%,360px);margin-right:auto;margin-left:auto}
.ad-slot-label{font:700 11px/1.4 var(--font-mono);letter-spacing:2px;text-transform:uppercase}
.ad-consent-note{margin:0;max-width:38ch;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.ad-slot-body{width:100%;overflow-wrap:anywhere}
.ad-slot-body iframe,.ad-slot-body img,.ad-slot-body ins{max-width:100%}
.ad-slot[data-ad-state="loaded"] > .ad-consent-note{display:none}
.ad-slot[data-ad-state="error"]{border-style:solid;border-color:var(--border)}

/* ---- responsive ---- */
@media(max-width:900px){
  .about .body{grid-template-columns:1fr}
  .stats dd{text-align:left}
  footer.site .cols{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  html body #tarteaucitronRoot.tarteaucitronSize-middle #tarteaucitronAlertBig{width:calc(100% - 20px) !important;max-height:calc(100dvh - 20px);padding:26px 14px 20px !important}
  html body #tarteaucitronRoot.tarteaucitronSize-middle #tarteaucitronAlertBig::before{margin-bottom:14px;font-size:clamp(24px,7.4vw,32px)}
  html body #tarteaucitronRoot.tarteaucitronSize-middle #tarteaucitronDisclaimerAlert{margin-bottom:20px;font-size:16px;line-height:1.5}
  html body #tarteaucitronRoot.tarteaucitronSize-middle #tarteaucitronAlertBig button{width:100% !important;margin:0 0 10px !important}
  .ad-slot{margin:26px 0;padding:12px}
  .ad-slot--rectangle{--ad-slot-height:250px}
  .nav{gap:var(--space-2)}
  /* Touch targets: the desktop header stays compact, the touch breakpoint
     raises the masthead links and the brand mark to a 44px hit area. */
  .brand,nav.main a{display:inline-flex;align-items:center;min-height:44px}
  .unofficial{display:none}
  nav.main{margin-left:0;flex-basis:100%;gap:var(--space-3);font-size:.86rem}
  .section{padding:40px 0}
  .tier{grid-template-columns:64px 1fr}
  .tier .grade{font-size:1.4rem;padding:var(--space-3) var(--space-2)}
  .tier .body{padding:var(--space-3)}
  h1.display{font-size:clamp(1.75rem,9vw,2.4rem)}
  .finalcta{padding:var(--space-4)}
  footer.site .cols{grid-template-columns:1fr;gap:var(--space-4)}
  .article{padding-top:var(--space-4)}
  .scroll-hint{display:block}
  .table-wrap table{min-width:30rem}
}
