/* The Bizarre Journey — site skin.
   Palette sampled from the official Roblox assets (see DESIGN-BRIEF.md).
   Manga panel language: 3px ink borders, hard zero-blur offset shadows, sand paper, night-blue chapter bars. */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/anton-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow SC';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/barlow-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/barlow-700.woff2') format('woff2');
}

:root {
  --paper: #f2d79c;
  --paper-2: #f9e5b4;
  --card: #fdf0c9;
  --ink: #241b1f;
  --brown: #32282c;
  --night: #1a1d49;
  --night-2: #2b448b;
  --teal: #4bd4e6;
  --magenta: #e17fa7;
  --gold: #e0a92e;
  --link: #8c1f57;
  --display: 'Anton', 'Arial Black', Impact, sans-serif;
  --body: 'Barlow SC', 'Segoe UI', system-ui, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(720px 220px at 12% -40px, rgba(75, 212, 230, .18), transparent 70%),
    radial-gradient(680px 240px at 88% -20px, rgba(225, 127, 167, .16), transparent 72%),
    radial-gradient(circle at 50% 0, rgba(36, 27, 31, .10) 1.6px, transparent 1.7px);
  background-size: auto, auto, 9px 9px;
}

img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--teal); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- top bar */
.ribbon {
  background: var(--magenta);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  font-family: var(--display);
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 14px;
}
.ribbon .wrap { padding: 7px 20px; }

.topbar { background: var(--brown); border-bottom: 4px solid var(--ink); position: relative; z-index: 50; }
.bar { display: flex; align-items: center; gap: 22px; min-height: 74px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--display); font-size: 23px; letter-spacing: .03em;
  color: var(--paper); text-decoration: none; text-transform: uppercase; line-height: 1.05;
}
.brand:hover { color: var(--teal); }
.brand img { border: 3px solid var(--ink); border-radius: 4px; box-shadow: 3px 3px 0 var(--ink); display: block; width: 40px; height: 40px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav li { position: relative; }
.nav a {
  display: block; padding: 9px 11px;
  color: var(--paper); text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
}
.nav li.active > a, .nav > ul > li > a:hover { color: var(--teal); }
.nav li.has-kids > a::after { content: ' ▾'; font-size: 12px; }
.nav li.has-kids::after { content: ''; position: absolute; left: -10px; right: -10px; top: 100%; height: 12px; z-index: 39; }
.nav li.has-kids .kids {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 250px; z-index: 60;
  background: var(--paper-2); border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink); padding: 8px;
  flex-direction: column; gap: 2px; list-style: none;
}
.nav li.has-kids:hover .kids, .nav li.has-kids:focus-within .kids { display: flex; }
.nav li.has-kids .kids a { color: var(--ink); text-transform: none; font-size: 15px; padding: 8px 10px; border: 2px solid transparent; }
.nav li.has-kids .kids a:hover { background: var(--teal); border-color: var(--ink); color: var(--ink); }
.nav .cta {
  background: var(--teal); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink); padding: 10px 14px; font-weight: 700;
}
.nav .cta:hover { background: var(--magenta); color: var(--ink); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  background:
    repeating-linear-gradient(118deg, rgba(36, 27, 31, .05) 0 2px, transparent 2px 12px),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
}
.hero-in { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 38px; align-items: center; padding-top: 34px; padding-bottom: 34px; }
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  background: var(--night); color: var(--paper);
  font-family: var(--display); text-transform: uppercase; letter-spacing: .12em;
  font-size: 12px; padding: 6px 12px;
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transform: skew(-6deg);
}
.hero h1 {
  margin: 0 0 14px;
  font-family: var(--display); font-size: clamp(38px, 5.4vw, 66px);
  line-height: .97; letter-spacing: .01em; text-transform: uppercase; color: var(--ink);
  text-shadow: 4px 4px 0 var(--magenta);
}
.hero h1 .thin { display: block; color: var(--night); text-shadow: 4px 4px 0 var(--teal); }
.lead { margin: 0 0 18px; font-size: 18px; max-width: 44ch; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.btn {
  display: inline-block;
  background: var(--magenta); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 4px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 12px 18px; font-weight: 700; text-decoration: none;
  text-transform: uppercase; letter-spacing: .04em; font-size: 15px;
}
.btn:hover { background: var(--teal); color: var(--ink); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn.ghost { background: var(--paper-2); }
.btn.ghost:hover { background: var(--gold); }

.hero-shot { margin: 0; min-width: 0; }
.hero-shot img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: contain;
  border: 3px solid var(--ink); background: var(--brown);
  box-shadow: 8px 8px 0 var(--ink);
}
.hero-shot figcaption { margin-top: 10px; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; font-weight: 600; color: #4a3a3e; }

/* speed-line band under the top bar and at the hero's foot: the manga motion strip */
.topbar::after,
.hero::after {
  content: ''; display: block; height: 10px;
  background-image: repeating-linear-gradient(115deg,
    var(--ink) 0 6px, var(--teal) 6px 12px, var(--ink) 12px 18px, var(--magenta) 18px 24px);
  border-top: 3px solid var(--ink);
}
.hero::after { position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 3px solid var(--ink); pointer-events: none; }
.topbar::after { position: absolute; left: 0; right: 0; bottom: -14px; z-index: 2; pointer-events: none; }
.hero { padding-bottom: 10px; }

/* the case stamp: rotated sticker at the hero's picture corner */
.hero-stamp {
  /* sits over the frame's bottom-right edge, outside the artwork, so it never covers a face */
  position: absolute; right: 14px; bottom: -16px; z-index: 3;
  background: var(--gold); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--display); font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; line-height: 1.15; text-align: center;
  padding: 7px 11px; transform: rotate(-6deg);
  max-width: 44%;
}
.hero-stamp b { display: block; font-size: 26px; letter-spacing: .02em; }
.hero-shot { position: relative; }

/* ---------------------------------------------------------------- facts strip */
.facts-strip { background: var(--brown); border-bottom: 4px solid var(--ink); }
.facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.fact { padding: 14px 12px; border-right: 2px solid rgba(246, 227, 189, .22); min-width: 0; }
.fact:last-child { border-right: 0; }
.fact-k { display: block; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.fact-v { display: block; font-family: var(--display); font-size: 22px; color: var(--paper); line-height: 1.15; }

/* ---------------------------------------------------------------- cards */
.home-body { padding-bottom: 26px; }
.home-prose {
  display: block;
  background: var(--paper-2); border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 26px 28px; margin: 26px 0 34px;
}
.section-head { margin: 30px 0 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.overline {
  display: inline-block;
  background: var(--teal); color: var(--ink);
  font-family: var(--display); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; padding: 5px 11px;
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transform: skew(-6deg);
}
.section-head h2 {
  margin: 0; font-family: var(--display); font-size: 28px;
  text-transform: uppercase; letter-spacing: .02em; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.count-pill {
  font-family: var(--body); font-size: 13px; font-weight: 700;
  background: var(--magenta); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 1px 9px; letter-spacing: 0;
}

.grid { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 246px; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--card); border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none; color: var(--ink);
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); color: var(--ink); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 3px solid var(--ink); background: var(--brown); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pill-tag {
  position: absolute; left: 8px; bottom: 8px; pointer-events: none;
  background: var(--night); color: var(--paper);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border: 2px solid var(--ink);
}
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-family: var(--display); font-size: 19px; line-height: 1.12; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.card-body p { margin: 0; font-size: 14.5px; line-height: 1.45; color: #3b2e33; }
.card .go { margin-top: auto; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #7c1a4d; }
.card.sm .card-body { padding: 10px 12px 12px; }
.card.sm .card-body h3 { font-size: 16px; }

/* ---------------------------------------------------------------- article */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 226px; gap: 34px; align-items: start; padding-top: 22px; padding-bottom: 44px; }
.article-grid > div { min-width: 0; }
.crumb { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; color: #56454a; margin: 0 0 12px; }
.crumb a { color: #56454a; text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: #6d5a60; padding: 0 4px; }
.crumb .here { color: var(--ink); }

article {
  background: var(--paper-2); border: 3px solid var(--ink);
  box-shadow: 9px 9px 0 var(--ink), inset 0 0 0 3px var(--paper-2), inset 0 0 0 6px rgba(36, 27, 31, .25);
  padding: 26px 30px 30px; min-width: 0;
}
.dossier {
  display: inline-block; margin: 0 0 12px; transform: rotate(-2deg);
  background: var(--magenta); color: var(--ink);
  font-family: var(--display); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; padding: 5px 11px;
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
article h1 { margin: 0 0 16px; font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.02; letter-spacing: .01em; text-transform: uppercase; }
article h2 {
  position: relative;
  margin: 36px 0 14px;
  background: var(--night); color: var(--paper);
  font-family: var(--display); font-size: 21px; letter-spacing: .03em;
  text-transform: uppercase; line-height: 1.2;
  padding: 9px 14px 9px 16px;
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  border-left: 12px solid var(--teal);
}
article h2::after {
  content: ''; position: absolute; right: 10px; top: 50%; width: 26px; height: 3px;
  background: var(--magenta); transform: translateY(-50%);
  box-shadow: 0 -7px 0 var(--magenta), 0 7px 0 var(--magenta);
}
article h3 { margin: 22px 0 8px; font-family: var(--display); font-size: 17px; letter-spacing: .03em; text-transform: uppercase; color: var(--night); }
article p { margin: 0 0 14px; }
article ul, article ol { margin: 0 0 16px; padding-left: 22px; }
article li { margin-bottom: 7px; }
article strong { color: var(--ink); }
article code { background: #efdcae; border: 1px solid #b99f6d; border-radius: 3px; padding: 1px 5px; font-size: .92em; }
article img.zoom {
  display: block; width: 100%; height: auto;
  border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  margin: 6px 0 22px; background: var(--brown); cursor: zoom-in;
}
.quick-answer {
  background: var(--card); border: 3px solid var(--ink); border-left: 9px solid var(--teal);
  box-shadow: 5px 5px 0 var(--ink); padding: 14px 16px; margin: 0 0 20px;
}
.quick-answer p { margin: 0; font-weight: 600; }
.qa-stamp {
  display: inline-block; margin-bottom: 6px;
  background: var(--teal); color: var(--ink);
  font-family: var(--display); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; padding: 3px 8px; border: 2px solid var(--ink);
}
blockquote {
  margin: 0 0 18px; padding: 12px 16px;
  background: #f3e0b4; border: 3px solid var(--ink); border-left: 9px solid var(--magenta);
  box-shadow: 5px 5px 0 var(--ink);
}
blockquote p:last-child { margin-bottom: 0; }
.callout { margin: 0 0 18px; padding: 13px 16px; background: var(--card); border: 3px solid var(--ink); border-left: 9px solid var(--gold); }
.callout p:last-child { margin-bottom: 0; }

/* tables */
.tbl-wrap { margin: 0 0 20px; overflow-x: auto; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
thead th {
  background: var(--brown); color: var(--paper);
  font-family: var(--display); font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
  text-align: left; padding: 10px 12px; font-size: 13px;
  border-right: 2px solid rgba(246, 227, 189, .25);
}
thead th:last-child { border-right: 0; }
tbody td { padding: 9px 12px; border-top: 2px solid #cdb489; vertical-align: top; }
tbody tr:nth-child(even) { background: var(--paper-2); }
tbody td:first-child { font-weight: 600; }
table strong, table b { color: inherit; }

/* sidebar */
.toc { position: sticky; top: 18px; min-width: 0; }
.toc .overline { transform: none; margin-bottom: 10px; display: block; width: fit-content; }
.toc-list {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--card); border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink); padding: 10px;
}
.toc-list a { display: block; padding: 6px 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; border-left: 4px solid transparent; }
.toc-list a:hover { border-left-color: var(--magenta); background: var(--paper-2); }

/* end-of-article rail */
.all-guides { margin-top: 34px; }
/* the rail sits inside <article>, so article h2's night bar would swallow its heading:
   reset background/border/shadow here, not just the colour. */
.all-guides h2 {
  background: none; color: var(--ink); border: 0; box-shadow: none;
  padding: 0; font-size: 22px; letter-spacing: .02em;
}
.more-guides { margin: 14px 0 0; font-weight: 700; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--brown); color: var(--paper); border-top: 4px solid var(--ink); padding: 26px 0 30px; font-size: 14px; }
.foot .disclaimer { margin: 0 0 10px; max-width: 92ch; color: #e7d3ad; font-size: 13px; }
.foot-links { margin: 0 0 8px; }
.foot-links a { color: var(--teal); font-weight: 700; text-decoration: none; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.foot-links a:hover { color: var(--magenta); }
.foot .muted { margin: 0; color: #c9b48e; font-size: 13px; }

/* ---------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20, 14, 16, .94); display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: 16px; }
.lightbox img { max-width: min(1400px, 96vw); max-height: 92vh; width: auto; height: auto; border: 3px solid var(--paper); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-right: 0; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 14px; padding-bottom: 20px; }
  .hero-shot { order: -1; }
  .hero h1 { font-size: clamp(32px, 8vw, 52px); margin-bottom: 10px; }
  .lead { font-size: 16px; margin-bottom: 12px; }
  .hero-shot figcaption { margin-top: 6px; font-size: 11px; }
  .bar { gap: 8px; min-height: 0; }
  /* one scrollable row instead of a wrapped block: keeps the topbar ~105px so the
     hero picture stays on the first screen. Dropdowns are display:none here, so the
     overflow on this ancestor cannot clip a panel. */
  .nav { margin-left: 0; width: 100%; flex-wrap: nowrap; gap: 6px; min-width: 0; }
  .nav ul { gap: 0; flex-wrap: nowrap; overflow-x: auto; min-width: 0; flex: 1 1 auto;
            scrollbar-width: none; }
  .nav ul::-webkit-scrollbar { display: none; }
  .nav li { flex: 0 0 auto; }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .nav .cta { flex: 0 0 auto; padding: 8px 10px; font-size: 13px; box-shadow: 3px 3px 0 var(--ink); }
  .nav li.has-kids::after { display: none; }
  .nav li.has-kids .kids { display: none !important; }
  article { padding: 20px 18px 24px; }
  .home-prose { padding: 20px 18px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-right: 2px solid rgba(246, 227, 189, .22); }
  .fact:nth-child(even) { border-right: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .card { flex: 1 1 100%; }
  .fact-v { font-size: 19px; }
  .section-head h2 { font-size: 23px; }
  article h1 { font-size: clamp(26px, 9vw, 34px); }
  article h2 { font-size: 18px; }
  .hero h1 { text-shadow: 3px 3px 0 var(--magenta); }
  .tbl-wrap table { min-width: 480px; }
}

/* --- Adsterra 广告位（2026-11-13 父会话补装；桌面/手机互斥，槽空自动收起） --- */
.ad-slot { margin: 26px auto; max-width: var(--maxw); }
.ad-slot:empty { display: none; }
.ad-inner { min-height: 0; overflow: hidden; }
.ad-slot-native { display: block; }
.ad-banner-box { min-height: 50px; display: flex; justify-content: center; }
@media (hover: hover) and (pointer: fine) { .ad-slot-mobile { display: none; } }
