/* =========================================================
   つづきから — レトロ携帯ゲーム機(ANBERNIC)の選び方・比較ガイド(非公式)
   Direction: 「サイト自体が一台のハンドヘルド」。携帯ゲーム機/コントローラ
   自身の視覚言語(LCD画面・十字キー・ABXYボタン・セーブ画面)をデザイン
   システムにする。ブランド名「つづきから」=セーブ画面用語なので、ヒーローは
   "つづきから / はじめから" のセーブ選択画面に仕立て、各機種をセーブスロットとして扱う。

   Signature: 「セーブ選択画面」のLCDヒーロー + 十字キー型カテゴリナビ。
   評価/スペックの目印に ABXY ボタンを小さな機能アクセントとして使う(主役にはしない)。

   Palette — ink/charcoal 地 + 一つの大胆な真紅(deep saturated red ~358°)を支配色に。
   off-white は cream/tan ではなくニュートラル寄りの白(~paper)。
   Deliberately NOT:
     · 8bit全面ピクセル+黒地+ネオン緑/マゼンタ        (retro AI default #1)
     · 灰色地に虹色ボタンを主役で散らす               (retro AI default #2 / advisor)
     · cream + 明朝 apothecary                        (旧群 / site18旧)
     · green(ほのsite19) / violet(うるか・hsp) / coral(site16) /
       teal(site17) / pink(site07) / navy(site06) / dark-amber(site01)
   支配色 deep red ~358°(高彩度・mid-low value)は上記8禁止色相のどれとも別象限。
   ========================================================= */

:root {
  /* Ink — the console body (charcoal/graphite, slightly warm-neutral) */
  --ink: #16171C;            /* page ground — the plastic shell */
  --ink-2: #1E2027;          /* raised panels */
  --ink-3: #262932;          /* cards */
  --ink-line: rgba(236, 236, 238, 0.12);
  --ink-line-soft: rgba(236, 236, 238, 0.07);

  /* Paper — neutral off-white (NOT cream/tan). screen-print / button legend */
  /* a11y: --paper #ECECEE on --ink #16171C = 14.9:1 */
  --paper: #ECECEE;
  /* a11y: --paper-soft #B9BBC4 on --ink = 8.6:1 — secondary text */
  --paper-soft: #B9BBC4;
  /* a11y: --paper-dim #8B8E99 on --ink = 5.0:1 — labels/meta */
  --paper-dim: #8B8E99;

  /* Red — the dominant accent. A confident saturated red (~358°), the cartridge/
     power-LED red. mid-low value so it reads as bold, not rose/coral/pink. */
  /* a11y: white on --red #D21E2C = 5.0:1 — CTA / power dot / wordmark accent */
  --red: #D21E2C;
  --red-bright: #F0303E;     /* glow/hover only — never carries small text on ink */
  --red-deep: #9E141F;
  --red-wash: rgba(210, 30, 44, 0.14);
  /* a11y: --red-text #F06A73 on --ink = 5.6:1 — red text on dark ground */
  --red-text: #F06A73;

  /* LCD screen — the one cool field (a powered-on handheld display). signature use. */
  --lcd: #0C1A17;            /* dark LCD glass */
  --lcd-glow: #5BE0B0;       /* phosphor mint — LCD readout only, decorative */
  --lcd-grid: rgba(91, 224, 176, 0.10);

  /* ABXY button legend colors — functional accents ONLY (spec/eval pips). small. */
  --btn-a: #E84855;          /* red-ish */
  --btn-b: #F2B134;          /* amber */
  --btn-x: #4D9DE0;          /* blue */
  --btn-y: #3FA34D;          /* green */

  /* Shadow — hard-edged, hardware feel (low blur, slight stack) */
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 18px 44px rgba(0, 0, 0, 0.5);
  --shadow-red: 0 10px 26px rgba(158, 20, 31, 0.4);

  /* Type — DotGothic16 (pixel/LCD display, JP-capable) for wordmark+headings,
     Inter+Noto Sans JP (modern legible sans) for body,
     Space Mono for numerals/labels (button legends, specs) */
  --font-display: 'DotGothic16', 'Noto Sans JP', system-ui, sans-serif;
  --font-sans: 'Inter', 'Noto Sans JP', 'Hiragino Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', ui-monospace, monospace;

  /* Radius — hardware: tight on buttons, soft on shell */
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --radius-pill: 999px;

  --space-s: 1rem;
  --space-m: 1.75rem;
  --space-l: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;

  --measure: 34rem;
  --container-max: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  /* a faint scanline + a soft red power-glow top-left, like a switched-on device */
  background-image:
    radial-gradient(120% 80% at 4% -6%, rgba(210, 30, 44, 0.12) 0%, transparent 46%),
    radial-gradient(90% 60% at 98% 2%, rgba(91, 224, 176, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--paper-soft);
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red-text); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--red-bright); }

::selection { background: var(--red); color: #fff; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .product:hover, .lane-figure:hover img, .btn:hover, .amazon-link:hover { transform: none !important; }
  .save-cursor { animation: none !important; }
  .power-led { animation: none !important; }
}

/* ============ Focus ============ */
:focus-visible {
  outline: 2.5px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -999px; top: 0;
  background: var(--red);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 var(--radius-s) 0;
  z-index: 300;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.skip-link:focus { left: 0; }

/* ============ Layout primitives ============ */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 46rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red-text);
  margin: 0 0 0.9rem;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--paper);
  margin: 0 0 1.2rem;
}
.section-title.small { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

.section-lead { color: var(--paper-soft); max-width: var(--measure); margin: 0 0 2.2rem; }
.section { padding: var(--space-2xl) 0; }

/* ============ Compliance bar (ファーストビュー上部・ステマ規制) ============ */
.compliance-bar {
  background: #0E0F13;
  color: var(--paper-soft);
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--font-sans);
}
.compliance-bar strong {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.05rem 0.5rem;
  border-radius: var(--radius-s);
  margin-right: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

/* ============ Mobile progress bar (signature carrier when rail hidden) ============ */
.dbar { display: none; position: sticky; top: 0; z-index: 99; height: 3px; background: var(--ink-2); }
.dbar-fill {
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, var(--red-deep) 0%, var(--red) 60%, var(--red-bright) 100%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(240, 48, 62, 0.5);
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 19, 24, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--ink-line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 0.7rem; color: var(--paper); }

/* logo mark — a tiny handheld: dark LCD with a red power LED (brand thesis in miniature) */
.logo-mark {
  position: relative;
  width: 34px; height: 26px;
  border-radius: 5px 5px 7px 7px;
  background: linear-gradient(160deg, var(--ink-3), #0E0F13);
  border: 1px solid var(--ink-line);
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  font-size: 0;
}
.logo-mark::before { /* the little LCD */
  content: "";
  position: absolute;
  left: 5px; top: 5px;
  width: 16px; height: 16px;
  border-radius: 2px;
  background: var(--lcd);
  box-shadow: inset 0 0 6px rgba(91,224,176,0.35), inset 0 0 0 1px rgba(91,224,176,0.25);
}
.logo-mark::after { /* the red power LED */
  content: "";
  position: absolute;
  right: 5px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 7px var(--red);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  display: block;
  line-height: 1.2;
  color: var(--paper);
}
.logo-tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: var(--paper-soft);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.2rem 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--paper); }
.nav a:hover::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--red-text); }
.nav a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--ink-line);
  background: var(--ink-2);
  border-radius: var(--radius-s);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--paper);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-bars::before { transform: translate(-50%, -8px); }
.nav-toggle-bars::after { transform: translate(-50%, 5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ============ Hero — the save-select screen (signature) ============ */
.hero { position: relative; padding: clamp(2.75rem, 5vw, 5rem) 0 clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-text);
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 4.6vw, 3rem);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--paper);
  margin: 0 0 1.5rem;
}
.hero-title .accent { color: var(--red-text); }
.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--paper-dim);
  margin: 0 0 1.6rem;
}
.hero-sub b { color: var(--paper); font-weight: 700; }
.hero-lead { color: var(--paper-soft); max-width: 31rem; margin: 0 0 2.1rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-s);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--ink-line); color: var(--paper); background: var(--ink-2); }
.btn-ghost:hover { border-color: var(--red); color: var(--red-text); transform: translateY(-2px); }

/* ----- The save-select screen (CSS, no photo) — the signature device ----- */
.hero-figure { position: relative; display: flex; justify-content: center; }
.console {
  position: relative;
  width: min(360px, 100%);
  background: linear-gradient(170deg, var(--ink-3), #14151A);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-l) var(--radius-l) 26px 26px;
  padding: 1.4rem 1.3rem 1.6rem;
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255,255,255,0.05);
}
/* power LED + brand strip on the shell */
.console-top {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 0.85rem; padding: 0 0.2rem;
}
.console-brand { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em; color: var(--paper-dim); }
.power-led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 8px var(--red);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; box-shadow: 0 0 12px var(--red-bright); } }

/* the LCD screen with the save-select menu */
.lcd {
  background: var(--lcd);
  border-radius: 8px;
  border: 1px solid rgba(91,224,176,0.18);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.6), 0 0 0 4px #0A0B0E;
  padding: 0.95rem 0.9rem 1.05rem;
  position: relative;
  overflow: hidden;
}
.lcd::before { /* scanlines */
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, var(--lcd-grid) 0, var(--lcd-grid) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}
.lcd-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--lcd-glow);
  text-shadow: 0 0 8px rgba(91,224,176,0.5);
  margin: 0 0 0.85rem;
}
.save-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.save-slot {
  display: grid;
  grid-template-columns: 1.1rem 1fr auto;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(180, 240, 220, 0.78);
  padding: 0.18rem 0.1rem;
}
.save-slot.is-selected { color: var(--lcd-glow); text-shadow: 0 0 6px rgba(91,224,176,0.45); }
.save-cursor { font-family: var(--font-display); color: var(--red-bright); opacity: 0; }
.save-slot.is-selected .save-cursor { animation: blink 1.05s steps(1) infinite; opacity: 1; }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0.15; } }
.save-meta { color: rgba(140, 200, 182, 0.6); font-size: 0.64rem; letter-spacing: 0.04em; }
.lcd-foot {
  margin: 0.95rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: rgba(120, 190, 170, 0.55);
  display: flex; justify-content: space-between;
}

/* the controls below the screen — D-pad (left) + ABXY (right) as identity */
.console-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.25rem; padding: 0 0.6rem;
}
/* D-pad */
.dpad { position: relative; width: 58px; height: 58px; }
.dpad::before, .dpad::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, #34373F, #1B1D23);
  border: 1px solid rgba(0,0,0,0.5);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.dpad::before { left: 19px; top: 0; width: 20px; height: 58px; } /* vertical */
.dpad::after  { left: 0; top: 19px; width: 58px; height: 20px; } /* horizontal */
.dpad-dot {
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 12px;
  transform: translate(-50%,-50%);
  border-radius: 2px;
  background: #0E0F13;
  z-index: 1;
}
/* ABXY cluster */
.abxy { position: relative; width: 64px; height: 64px; }
.abxy span {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 700;
  color: #0E0F13;
  display: grid; place-items: center;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.4);
}
.abxy .b-x { left: 21px; top: 0;  background: var(--btn-x); }
.abxy .b-y { left: 0;  top: 21px; background: var(--btn-y); }
.abxy .b-a { right: 0; top: 21px; background: var(--btn-a); }
.abxy .b-b { left: 21px; top: 42px; background: var(--btn-b); }

/* ============ About intro ============ */
.about-intro .container { position: relative; }
.fact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 2.4rem 0 2.2rem; }
.fact {
  background: var(--ink-3);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-m);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.fact::before { /* top accent: a cartridge-slot bar */
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-deep));
}
.fact-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--red-text);
  margin: 0 0 0.5rem;
}
.fact-num small { font-size: 0.8rem; color: var(--paper-dim); }
.fact-text { font-size: 0.85rem; line-height: 1.7; color: var(--paper-soft); margin: 0; }

.science-note {
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--paper-soft);
  background: var(--red-wash);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 1.1rem 1.3rem;
  margin: 0;
}
.science-note strong { color: var(--paper); }

/* ============ Why Anbernic — reason grid (reuses ink card + face-button motif) ============ */
.why { padding: var(--space-2xl) 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin: 2.4rem 0 2rem;
}
.why-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: var(--ink-3);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-m);
  padding: 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
/* a small face-button pip — same language as the lane badges, kept subtle (not the hero) */
.why-pip {
  width: 32px; height: 32px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.74rem; font-weight: 700;
  color: #0E0F13;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), 0 2px 5px rgba(0,0,0,0.4);
}
.why-pip[data-glyph="A"] { background: var(--btn-a); }
.why-pip[data-glyph="B"] { background: var(--btn-b); }
.why-pip[data-glyph="X"] { background: var(--btn-x); }
.why-pip[data-glyph="Y"] { background: var(--btn-y); }
.why-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--paper);
  margin: 0.2rem 0 0.5rem;
  letter-spacing: 0.01em;
}
.why-card p { font-size: 0.85rem; line-height: 1.75; color: var(--paper-soft); margin: 0; }
/* ROM legality — same honest-note treatment as .science-note, but with an LCD/dashed frame */
.rom-note {
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--paper-soft);
  background: var(--ink-3);
  border: 1px dashed var(--ink-line);
  border-radius: var(--radius-s);
  padding: 1.1rem 1.3rem;
  margin: 0;
}
.rom-note strong { color: var(--red-text); }

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ============ Comparison matrix (buy-intent の主役) ============ */
.compare { padding: var(--space-2xl) 0; background: var(--ink-2); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.compare-scroll {
  margin-top: 2.2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-m);
  background: var(--ink-3);
}
.compare-table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 0.84rem; }
.compare-table th, .compare-table td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--ink-line-soft);
  white-space: nowrap;
}
.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
  background: #0E0F13;
  position: sticky; top: 0; z-index: 2;
  border-bottom: 1px solid var(--ink-line);
}
/* sticky first column = device name (legible on 390px horizontal scroll) */
.compare-table th[scope="row"], .compare-table thead th:first-child {
  position: sticky; left: 0; z-index: 3;
  background: var(--ink-3);
  border-right: 1px solid var(--ink-line);
}
.compare-table thead th:first-child { z-index: 4; background: #0E0F13; }
.compare-table th[scope="row"] {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--paper);
  letter-spacing: 0.01em;
}
.compare-table tbody tr:hover td, .compare-table tbody tr:hover th[scope="row"] { background: var(--ink-2); }
.compare-table td { color: var(--paper-soft); }
.compare-tier {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.6rem;
}
.compare-foot { margin-top: 1rem; font-size: 0.76rem; color: var(--paper-dim); }
.compare-foot strong { color: var(--paper-soft); }

/* ---- capability-by-generation matrix — framed as an LCD "compatibility readout"
   screen so it reads as a different device from the plain spec compare table.
   Same visual language as the hero save-screen: deep green-black glass, phosphor
   mint accents, scanlines. Kept subtle — body text & rating glyphs stay high-contrast. */
.gen-section {
  position: relative;
  /* deep green-tinted ground (vs compare's neutral --ink-2) = instantly a different surface */
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(91, 224, 176, 0.06) 0%, transparent 55%),
    #0B1411;
  border-top: 1px solid rgba(91, 224, 176, 0.14);
  border-bottom: 1px solid rgba(91, 224, 176, 0.14);
}
/* the LCD console housing around the readout */
.gen-console {
  margin-top: 2.2rem;
  background: var(--lcd);
  border: 1px solid rgba(91, 224, 176, 0.22);
  border-radius: var(--radius-m);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55), 0 0 0 4px #070C0A, var(--shadow-soft);
  padding: 1.1rem 1.1rem 1.3rem;
  position: relative;
  overflow: hidden;
}
/* faint scanlines over the whole console (decorative, behind content) */
.gen-console::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, var(--lcd-grid) 0, var(--lcd-grid) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 0;
}
.gen-console > * { position: relative; z-index: 1; }
.gen-console-top {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 0.9rem; padding: 0 0.15rem;
}
.gen-console-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--lcd-glow);
  text-shadow: 0 0 8px rgba(91, 224, 176, 0.45);
}
.gen-console-led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lcd-glow);
  box-shadow: 0 0 8px rgba(91, 224, 176, 0.7);
  animation: pulse 2.6s ease-in-out infinite;
}
/* the table inside the console: transparent so the green glass shows, lighter grid lines */
.gen-console .gen-scroll {
  margin-top: 0;
  background: transparent;
  border: 1px solid rgba(91, 224, 176, 0.14);
}
.gen-console .gen-table thead th {
  background: #0A1714; /* green-black header vs compare's #0E0F13 */
  color: var(--lcd-glow);
  border-bottom-color: rgba(91, 224, 176, 0.22);
}
.gen-console .gen-table thead th:first-child { background: #0A1714; }
.gen-console .gen-table th[scope="row"] {
  background: rgba(10, 23, 20, 0.92); /* sticky first col on green glass */
  border-right-color: rgba(91, 224, 176, 0.16);
}
.gen-console .gen-table th, .gen-console .gen-table td {
  border-bottom-color: rgba(91, 224, 176, 0.10);
}
.gen-console .gen-table tbody tr:hover td,
.gen-console .gen-table tbody tr:hover th[scope="row"] { background: rgba(91, 224, 176, 0.06); }
/* gen-play subtext slightly mint-tinted to sit on the glass (still AA on the dark glass) */
.gen-console .gen-play { color: #9FC4B8; }

/* legend now sits inside the console */
/* legend: a small "controller readout" row of rating glyphs */
.gen-legend {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem;
  margin: 2.2rem 0 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--paper-soft);
}
.gen-legend .leg { display: inline-flex; align-items: center; gap: 0.4rem; }
.rate {
  display: inline-grid; place-items: center;
  width: 1.45rem; height: 1.45rem;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.82rem; font-weight: 700;
  line-height: 1;
}
.rate-best { background: rgba(63,163,77,0.18); color: #6FD17C; border: 1px solid rgba(63,163,77,0.5); }   /* ◎ */
.rate-good { background: rgba(77,157,224,0.16); color: #7FBEF0; border: 1px solid rgba(77,157,224,0.45); } /* ○ */
.rate-ok   { background: rgba(242,177,52,0.16); color: #F2C25C; border: 1px solid rgba(242,177,52,0.45); }  /* △ */
.rate-no   { background: rgba(210,30,44,0.14);  color: var(--red-text); border: 1px solid rgba(210,30,44,0.4); } /* ✕ */
.gen-table td { text-align: center; white-space: nowrap; }
.gen-table th[scope="row"] { min-width: 180px; }
.gen-play {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--paper-dim);
  letter-spacing: 0.01em;
  margin-top: 0.25rem;
  white-space: normal;
  max-width: 230px;
}
.gen-note {
  margin: 1rem 0 0;
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--paper-soft);
  background: var(--red-wash);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 0.85rem 1.1rem;
}
.gen-note strong { color: var(--paper); }

/* ---- OS explainer (Linux vs Android) — two cards, stack on mobile ---- */
.os-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin: 2.4rem 0 1.4rem;
}
.os-card {
  background: var(--ink-3);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-m);
  padding: 1.6rem 1.6rem 1.7rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
/* top accent bar — Linux=ABXY-blue, Android=ABXY-green (functional accents, not new colors) */
.os-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
}
.os-card.os-linux::before { background: linear-gradient(90deg, var(--btn-x), #2f6ea3); }
.os-card.os-android::before { background: linear-gradient(90deg, var(--btn-y), #2c6e36); }
.os-head { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.4rem; }
.os-chip {
  display: inline-grid; place-items: center;
  width: 1.7rem; height: 1.7rem;
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 700;
  color: #0E0F13;
}
.os-linux .os-chip { background: var(--btn-x); }
.os-android .os-chip { background: var(--btn-y); }
.os-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.12rem;
  color: var(--paper);
  margin: 0;
  letter-spacing: 0.01em;
}
.os-tagline { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--paper-dim); margin: 0 0 1rem; }
.os-list { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.os-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem;
  font-size: 0.85rem; line-height: 1.65;
  color: var(--paper-soft);
  border-bottom: 1px solid var(--ink-line-soft);
}
.os-list li:last-child { border-bottom: 0; }
.os-list li::before {
  position: absolute; left: 0; top: 0.35rem;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
}
.os-list li.yes::before { content: "+"; color: #6FD17C; }   /* できる */
.os-list li.no::before  { content: "−"; color: var(--red-text); } /* できない */
.os-list li.note::before { content: "·"; color: var(--paper-dim); } /* 傾向 */
.os-fit {
  font-size: 0.82rem; line-height: 1.6;
  color: var(--paper);
  background: var(--ink-2);
  border-radius: var(--radius-s);
  padding: 0.7rem 0.9rem;
  margin: 0;
}
.os-fit strong { color: var(--red-text); }
.os-models { font-family: var(--font-mono); font-size: 0.68rem; color: var(--paper-dim); margin: 0.7rem 0 0; letter-spacing: 0.02em; }
.os-dual {
  margin: 1.4rem 0 0;
  font-size: 0.86rem; line-height: 1.7;
  color: var(--paper-soft);
  background: var(--ink-2);
  border: 1px dashed var(--ink-line);
  border-radius: var(--radius-s);
  padding: 1rem 1.2rem;
}
.os-dual strong { color: var(--paper); }
.os-bottom {
  margin: 1.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.7;
  color: var(--paper);
  text-align: center;
  letter-spacing: 0.01em;
}
.os-bottom .accent { color: var(--red-text); }

@media (max-width: 768px) {
  .os-grid { grid-template-columns: 1fr; }
}

/* ---- spec-terms explainer — grouped term cards, stack on mobile ---- */
.spec-group { margin-top: 2.6rem; }
.spec-group + .spec-group { margin-top: 2.8rem; }
.spec-group-head {
  display: flex; align-items: center; gap: 0.7rem;
  margin: 0 0 1.3rem;
}
.spec-group-tag {
  display: inline-grid; place-items: center;
  width: 1.7rem; height: 1.7rem;
  border-radius: var(--radius-s);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  color: #0E0F13;
}
.spec-group:nth-of-type(1) .spec-group-tag { background: var(--btn-a); } /* 画面 */
.spec-group:nth-of-type(2) .spec-group-tag { background: var(--btn-b); } /* 中身 */
.spec-group:nth-of-type(3) .spec-group-tag { background: var(--btn-x); } /* 操作・接続 */
.spec-group-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--paper);
  margin: 0;
  letter-spacing: 0.01em;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.spec-card {
  background: var(--ink-3);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-m);
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: var(--shadow-soft);
  min-width: 0; /* prevent long mono terms from forcing horizontal overflow */
}
.spec-term {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.98rem;
  color: var(--paper);
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere; /* long latin spec terms wrap instead of overflowing */
}
.spec-mean { font-size: 0.83rem; line-height: 1.6; color: var(--paper-soft); margin: 0 0 0.45rem; }
.spec-diff {
  font-size: 0.8rem; line-height: 1.55;
  color: var(--paper-soft);
  margin: 0 0 0.6rem;
  padding-left: 0.7rem;
  border-left: 2px solid var(--ink-line);
}
.spec-myth {
  font-size: 0.8rem; line-height: 1.6;
  color: var(--paper-soft);
  background: var(--red-wash);
  border-radius: var(--radius-s);
  padding: 0.6rem 0.75rem;
  margin: 0;
}
.spec-myth strong { color: var(--red-text); }
.spec-foot { margin: 2.4rem 0 0; font-size: 0.76rem; line-height: 1.7; color: var(--paper-dim); }
.spec-foot a { color: var(--red-text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 480px) {
  .spec-grid { grid-template-columns: 1fr; }
}

/* ---- divider band between the decision zone (products) and the deeper reading ---- */
.guides-band {
  padding: var(--space-xl) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  text-align: center;
}
.guides-band .section-lead { margin-left: auto; margin-right: auto; }

/* ============ Journal: chapter rail + alternating lanes ============ */
.journal { padding: var(--space-2xl) 0; }
.journal-inner { display: grid; grid-template-columns: 178px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.5rem; }

/* chapter rail = a vertical D-pad of categories; selected lane glows red */
.chapter-rail {
  position: sticky; top: 90px; align-self: start;
  display: flex; flex-direction: column; gap: 0;
  padding-left: 1.1rem;
}
.chapter-rail::before {
  content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--ink-line), var(--red-deep));
  opacity: 0.6;
}
.chapter-link {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0.6rem;
  padding: 0.8rem 0; color: var(--paper-dim);
}
.chapter-dot {
  position: absolute; left: -1.1rem; top: 1.1rem;
  width: 9px; height: 9px; border-radius: 2px; /* square = pixel/button */
  background: var(--ink); border: 2px solid var(--paper-dim);
  transition: all 0.25s ease;
}
.chapter-num { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; color: var(--paper-dim); }
.chapter-name { font-size: 0.82rem; line-height: 1.4; color: var(--paper-soft); transition: color 0.2s ease; }
.chapter-link.is-active .chapter-name { color: var(--red-text); font-weight: 700; }
.chapter-link.is-active .chapter-dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px var(--red-wash), 0 0 10px rgba(240,48,62,0.5); }
.chapter-link:hover .chapter-name { color: var(--paper); }
.chapter-link.is-passed .chapter-dot { background: var(--red-deep); border-color: var(--red); }

.lanes { display: flex; flex-direction: column; gap: var(--space-2xl); min-width: 0; }
.lane { scroll-margin-top: 96px; }

.lane-intro {
  display: grid;
  grid-template-columns: 1fr 0.74fr;
  grid-template-areas: "text fig";
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
}
.lane--text-right .lane-intro { grid-template-columns: 0.74fr 1fr; grid-template-areas: "fig text"; }
.lane-text-wrap { grid-area: text; }
.lane-meta { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; }
/* category badge as a labelled face button (A/B/X/Y) */
.lane-num {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 700;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #0E0F13;
  flex: none;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), 0 2px 5px rgba(0,0,0,0.4);
}
/* button-glyph color paired to the glyph itself (data-driven), so it can't desync from
   the rendered letter the way nth-child would if a category ever filtered out. */
.lane[data-glyph="A"] .lane-num { background: var(--btn-a); }
.lane[data-glyph="B"] .lane-num { background: var(--btn-b); }
.lane[data-glyph="X"] .lane-num { background: var(--btn-x); }
.lane[data-glyph="Y"] .lane-num { background: var(--btn-y); }
.lane[data-glyph="+"] .lane-num { background: var(--paper-dim); }
.lane-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-pill);
}
.lane-tier {
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.08em;
  color: var(--red-text);
  border: 1px solid var(--red-wash);
  background: var(--red-wash);
  border-radius: var(--radius-pill);
  padding: 0.16rem 0.6rem;
  margin-left: auto;
}
.lane-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--paper);
  margin: 0.4rem 0 0.5rem;
}
.lane-motif { font-family: var(--font-mono); font-size: 0.84rem; color: var(--red-text); margin: 0 0 0.7rem; letter-spacing: 0.04em; }
.lane-desc { color: var(--paper-soft); margin: 0; max-width: 32rem; }

/* lane figure = an LCD panel motif (no photo needed; coded device language) */
.lane-figure {
  grid-area: fig;
  border-radius: var(--radius-m);
  border: 1px solid var(--ink-line);
  background: var(--lcd);
  box-shadow: var(--shadow-soft), inset 0 0 30px rgba(0,0,0,0.5);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.lane-figure::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, var(--lcd-grid) 0, var(--lcd-grid) 1px, transparent 1px, transparent 4px);
}
.lane-figure .lane-glyph {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--lcd-glow);
  text-shadow: 0 0 14px rgba(91,224,176,0.45);
  letter-spacing: 0.04em;
  position: relative;
}
.lane-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Fixed-width cards (no 1fr): cards never stretch to fill the row, so a lane with
   1 card and a lane with 7 cards render identical-width cards + identical light trays.
   justify-content:start left-aligns the track so an isolated card stays ~280px, not full-width. */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 280px));
  justify-content: start;
  gap: 1.4rem;
  margin-top: 2.4rem;
}

/* ============ Product card ============ */
.product {
  display: flex; flex-direction: column;
  width: 100%;
  max-width: 320px; /* hard cap so no card can balloon regardless of track width */
  background: var(--ink-3);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--red-deep); }
.product-figure {
  /* explicit height (not aspect-ratio): WebKit resolves height:100% on the img against this,
     so object-fit:contain actually fills the tray — small Amazon images scale UP, large ones
     scale DOWN, none overflow. aspect-ratio left small images floating at natural size. */
  height: 190px;
  background: #F4F4F6; /* product photos read best on light tray */
  display: flex; align-items: center; justify-content: center;
  padding: 0.6rem;
  position: relative;
  overflow: hidden; /* belt-and-suspenders: clip any image that tries to exceed the tray */
}
.product-image {
  width: 100%;
  height: 100%;
  min-width: 0;   /* clear flex item's intrinsic min-size so contain can shrink tall images */
  min-height: 0;
  object-fit: contain;
  display: block;
}

/* neutral source label — every card carries the same "仕様・評判から" tag (no owned variant) */
.own-badge {
  position: absolute; left: 0.7rem; top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-s);
}
.own-badge.researched { background: rgba(14,15,19,0.78); color: var(--paper-soft); border: 1px solid rgba(255,255,255,0.18); }

.product-body { display: flex; flex-direction: column; padding: 1.2rem 1.25rem 1.35rem; flex: 1; }
.product-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--paper);
  margin: 0 0 0.6rem;
}
.product-reason { font-size: 0.82rem; line-height: 1.75; color: var(--paper-soft); margin: 0 0 1.1rem; flex: 1; }
.amazon-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-s);
  transition: background 0.2s ease, transform 0.2s ease;
}
.amazon-link:hover { background: var(--red-deep); color: #fff; transform: translateY(-1px); }
.pr-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em;
  background: rgba(255,255,255,0.22);
  border-radius: var(--radius-s);
  padding: 0.05rem 0.45rem;
}
.search-note { font-size: 0.68rem; color: var(--paper-dim); margin: 0.6rem 0 0; text-align: center; letter-spacing: 0.02em; }

/* ============ FAQ — native <details> accordion (no JS), controller-button cue ============ */
.faq-list { margin: 2.2rem 0 0; }
.faq-item {
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-m);
  background: var(--ink-3);
  margin-bottom: 0.9rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--paper);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* a small "+" face-button cue that rotates to "×" when open */
.faq-item summary::before {
  content: "+";
  flex: none;
  width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem; font-weight: 700;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::before { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--red-text); }
.faq-answer {
  padding: 0 1.3rem 1.2rem calc(1.3rem + 1.5rem + 0.8rem);
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--paper-soft);
}
.faq-answer a { color: var(--red-text); text-decoration: underline; text-underline-offset: 3px; }
.faq-answer strong { color: var(--paper); }

@media (max-width: 480px) {
  .faq-answer { padding-left: 1.3rem; }
}

/* ============ Reading ============ */
.reading-list { list-style: none; margin: 0; padding: 0; }
.reading-list li { border-top: 1px solid var(--ink-line); }
.reading-list li:last-child { border-bottom: 1px solid var(--ink-line); }
.reading-list a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1.1rem 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: padding 0.2s ease, color 0.2s ease;
}
.reading-list a::before { content: "▶"; color: var(--red); font-size: 0.66rem; transition: transform 0.2s ease; }
.reading-list a:hover { padding-left: 0.6rem; color: var(--red-text); }

/* ============ Disclosure ============ */
.section-disclosure { background: var(--ink-2); }
.disclosure-block p { color: var(--paper-soft); font-size: 0.93rem; }
.disclosure-block strong { color: var(--paper); }
.unofficial-note {
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--paper-soft);
  background: var(--ink-3);
  border: 1px dashed var(--ink-line);
  border-radius: var(--radius-s);
  padding: 1rem 1.2rem;
  margin: 0 0 1.4rem;
}
.unofficial-note strong { color: var(--red-text); }
.amazon-required {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--paper-dim);
  border-top: 1px solid var(--ink-line);
  padding-top: 1.1rem;
  margin-top: 1.4rem;
}

/* ============ Footer ============ */
.site-footer { background: #0E0F13; color: var(--paper-soft); padding: var(--space-xl) 0 var(--space-l); border-top: 1px solid var(--ink-line); }
.site-footer .container { display: flex; flex-direction: column; gap: 1.4rem; }
.footer-brand { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; letter-spacing: 0.08em; color: var(--paper); margin: 0; }
.footer-tagline { color: var(--paper-dim); font-family: var(--font-mono); font-size: 0.72rem; margin: 0.3rem 0 0; letter-spacing: 0.04em; }
.footer-unofficial { color: var(--red-text); font-family: var(--font-mono); font-size: 0.72rem; margin: 0.5rem 0 0; letter-spacing: 0.03em; }
.footer-meta { color: var(--paper-dim); font-size: 0.8rem; line-height: 1.85; margin: 0; }
.footer-meta strong { color: var(--paper-soft); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { color: var(--paper-soft); font-size: 0.82rem; letter-spacing: 0.03em; }
.footer-nav a:hover { color: var(--red-text); }
.footer-related { font-size: 0.82rem; color: var(--paper-dim); margin: 0; }
.footer-related a { color: var(--paper-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer-related a:hover { color: var(--red-text); }
.footer-updated { font-family: var(--font-mono); font-size: 0.68rem; color: var(--lcd-glow); margin: 0 0 0.4rem; letter-spacing: 0.06em; opacity: 0.75; }
.footer-copy { font-family: var(--font-mono); font-size: 0.7rem; color: var(--paper-dim); margin: 0; letter-spacing: 0.04em; }

/* ============ About page specifics ============ */
.about-body p { color: var(--paper-soft); }
.about-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.22rem;
  color: var(--paper);
  margin: 2.2rem 0 0.8rem;
  letter-spacing: 0.01em;
}
.about-body ul { color: var(--paper-soft); padding-left: 1.2rem; }
.about-body li { margin-bottom: 0.5rem; }

/* ============ Categories index ============ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2.2rem; }
.cat-card {
  display: block;
  background: var(--ink-3);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-m);
  padding: 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--red-deep); }
.cat-card .cat-num { font-family: var(--font-mono); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--red-text); }
.cat-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; color: var(--paper); margin: 0.5rem 0 0.6rem; letter-spacing: 0.01em; }
.cat-card p { font-size: 0.85rem; color: var(--paper-soft); margin: 0; }

.note { font-size: 0.85rem; color: var(--paper-soft); background: var(--ink-3); border: 1px solid var(--ink-line); border-radius: var(--radius-s); padding: 0.9rem 1.1rem; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .journal-inner { grid-template-columns: 1fr; }
  .chapter-rail { display: none; }
  .dbar { display: block; }
}

@media (max-width: 768px) {
  .nav {
    position: absolute; top: 100%; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink-2);
    border: 1px solid var(--ink-line);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-lift);
    padding: 0.5rem; min-width: 200px; display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { width: 100%; padding: 0.7rem 0.9rem; }
  .nav a::after { display: none; }
  .nav-toggle { display: block; }
  .site-header .container { position: relative; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 340px; margin: 0 auto 0.5rem; }

  .fact-strip { grid-template-columns: 1fr; }
  .lane-intro, .lane--text-right .lane-intro { grid-template-columns: 1fr; grid-template-areas: "fig" "text"; }
  .lane-meta { margin-top: 1.1rem; flex-wrap: wrap; }
  .lane-tier { margin-left: 0; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  /* one card per row = full content width on phones; lift the desktop 320px cap so it
     fills the column instead of leaving a right-side gutter. (480px so all common phone
     widths get the full-width single column, not a 280px card with a right gutter.) */
  .product-list { grid-template-columns: 1fr; }
  .product { max-width: none; }
  .container { padding: 0 1.15rem; }
}
