/* ==========================================================================
   ハイラル年代記 (HYRULE CHRONICLE) — Editorial Archival Design System
   Light default: Warm Hyrule Manuscript (Parchment, Forest Emerald, Antique Gold)
   Dark toggle:   Twilight Obsidian (Deep Pine-Slate, Warm Ivory, Burnished Gold)
   ========================================================================== */

:root {
  --bg: hsl(41, 36%, 94%);
  --bg-alt: hsl(40, 29%, 89.5%);
  --surface: hsl(43, 46%, 97.5%);
  --surface-strong: #fffdf8;
  --surface-tint: hsl(42, 38%, 92%);

  --ink: hsl(146, 17%, 13%);
  --ink-soft: hsl(142, 10%, 33%);
  --ink-muted: hsl(138, 7%, 46%);

  --border: hsla(145, 16%, 22%, 0.14);
  --border-strong: hsla(145, 16%, 22%, 0.24);
  --gold-line: hsla(39, 55%, 42%, 0.34);

  --emerald: hsl(151, 48%, 23%);
  --emerald-hover: hsl(151, 52%, 17%);
  --emerald-soft: hsla(151, 48%, 23%, 0.1);

  --gold: hsl(39, 62%, 40%);
  --gold-bright: hsl(41, 66%, 50%);
  --gold-soft: hsl(42, 56%, 90%);

  /* Branch accents — dignified archival inks */
  --c-origins: #9a7123;
  --c-origins-soft: rgba(154, 113, 35, 0.12);
  --c-defeated: #9b3232;
  --c-defeated-soft: rgba(155, 50, 50, 0.11);
  --c-child: #875023;
  --c-child-soft: rgba(135, 80, 35, 0.12);
  --c-adult: #1f5e7a;
  --c-adult-soft: rgba(31, 94, 122, 0.12);
  --c-wilds: #1a6b65;
  --c-wilds-soft: rgba(26, 107, 101, 0.12);
  --c-spinoff: #58635e;
  --c-spinoff-soft: rgba(88, 99, 94, 0.12);

  --shadow-sm: 0 2px 8px rgba(24, 34, 28, 0.05), 0 1px 2px rgba(24, 34, 28, 0.06);
  --shadow-md: 0 10px 28px rgba(24, 34, 28, 0.08), 0 2px 6px rgba(24, 34, 28, 0.05);
  --shadow-lg: 0 24px 56px rgba(18, 26, 22, 0.18), 0 6px 16px rgba(18, 26, 22, 0.08);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --font-latin: "Cinzel", Georgia, serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --header-h: 72px;
}

[data-theme="dark"] {
  --bg: hsl(152, 14%, 10%);
  --bg-alt: hsl(150, 13%, 13%);
  --surface: hsl(150, 12%, 16%);
  --surface-strong: hsl(150, 12%, 19%);
  --surface-tint: hsl(150, 11%, 21%);

  --ink: hsl(42, 26%, 92%);
  --ink-soft: hsl(42, 12%, 75%);
  --ink-muted: hsl(42, 8%, 58%);

  --border: hsla(42, 30%, 80%, 0.13);
  --border-strong: hsla(42, 30%, 80%, 0.24);
  --gold-line: hsla(41, 66%, 58%, 0.34);

  --emerald: hsl(153, 44%, 46%);
  --emerald-hover: hsl(153, 48%, 54%);
  --emerald-soft: hsla(153, 44%, 46%, 0.16);

  --gold: hsl(41, 66%, 60%);
  --gold-bright: hsl(42, 74%, 68%);
  --gold-soft: hsla(41, 60%, 52%, 0.16);

  --c-origins: #dfb55e;
  --c-origins-soft: rgba(223, 181, 94, 0.16);
  --c-defeated: #de7575;
  --c-defeated-soft: rgba(222, 117, 117, 0.16);
  --c-child: #d6965d;
  --c-child-soft: rgba(214, 150, 93, 0.16);
  --c-adult: #66b1d4;
  --c-adult-soft: rgba(102, 177, 212, 0.16);
  --c-wilds: #52c0b6;
  --c-wilds-soft: rgba(82, 192, 182, 0.16);
  --c-spinoff: #a7b4ae;
  --c-spinoff-soft: rgba(167, 180, 174, 0.16);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.56);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.82;
  letter-spacing: 0.025em;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% 0%, hsla(42, 65%, 68%, 0.14), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.032'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 90% 45% at 50% 0%, hsla(152, 42%, 22%, 0.28), transparent 64%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

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

a {
  color: var(--emerald);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: var(--emerald-hover);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--emerald);
  color: #fffdf8;
  border-color: var(--emerald);
  box-shadow: 0 3px 10px rgba(20, 68, 46, 0.22);
}

.btn-primary:hover {
  background: var(--emerald-hover);
  border-color: var(--emerald-hover);
  color: #fffdf8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(20, 68, 46, 0.28);
}

[data-theme="dark"] .btn-primary {
  color: #0e1612;
}

[data-theme="dark"] .btn-primary:hover {
  color: #0e1612;
}

.btn-secondary {
  background: var(--surface-strong);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-tint);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--border);
  padding: 8px 14px;
  font-size: 0.86rem;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--surface-tint);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.icon-btn:hover {
  border-color: var(--gold);
  background: var(--surface-tint);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: hsla(43, 46%, 97%, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .site-header {
  background: hsla(152, 14%, 10%, 0.9);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-family: var(--font-latin);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--surface-tint);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-counter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-line);
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.header-counter:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.header-counter-label {
  color: var(--ink-muted);
  font-weight: 500;
}

.header-counter-val {
  color: var(--emerald);
  font-weight: 700;
}

.nav-toggle {
  display: none;
}

.mobile-drawer {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface-strong);
  padding: 14px 16px 18px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-links {
  display: grid;
  gap: 4px;
}

.mobile-drawer-links a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
}

.mobile-drawer-links a:hover {
  background: var(--surface-tint);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-md);
  background: #17231d;
  min-height: 450px;
  display: flex;
  align-items: flex-end;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.01);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(16, 26, 20, 0.86) 0%, rgba(18, 30, 23, 0.72) 48%, rgba(18, 28, 22, 0.34) 100%),
    linear-gradient(180deg, rgba(16, 24, 19, 0.14) 0%, rgba(14, 22, 17, 0.76) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 46px 48px 42px;
  max-width: 760px;
  color: #f7f3e8;
}

.hero-kicker {
  font-family: var(--font-latin);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: #e6c473;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 3.6vw, 3.05rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.05em;
  color: #fffdf7;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(247, 243, 232, 0.9);
  max-width: 640px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta-row .btn-primary {
  background: #c89a3b;
  border-color: #c89a3b;
  color: #161d18;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.hero-cta-row .btn-primary:hover {
  background: #dbb053;
  border-color: #dbb053;
  color: #131a15;
}

.hero-cta-row .btn-secondary {
  background: rgba(255, 252, 242, 0.13);
  color: #fffdf7;
  border-color: rgba(255, 248, 226, 0.42);
  backdrop-filter: blur(6px);
}

.hero-cta-row .btn-secondary:hover {
  background: rgba(255, 252, 242, 0.22);
  border-color: #e6c473;
  color: #fffdf7;
}

/* Archival Ledger Strip below Hero */
.ledger-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ledger-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  box-shadow: var(--shadow-sm);
}

.ledger-label {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.ledger-val {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.ledger-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-top: 3px;
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 36px;
  max-width: 780px;
}

.section-header.is-centered {
  text-align: center;
  margin-inline: auto;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.32;
  color: var(--ink);
}

.section-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------- Section 1: Interactive Branching Timeline Map ---------- */
.lineage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.lineage-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-right: 4px;
}

.chip-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.chip-btn:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.chip-btn.is-active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fffdf8;
}

[data-theme="dark"] .chip-btn.is-active {
  color: #0e1612;
}

.lineage-caption {
  margin: 0 0 24px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.chronicle-map {
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-md);
}

/* Unified Trunk */
.map-stage-head {
  text-align: center;
  margin-bottom: 18px;
}

.map-stage-tag {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

.map-stage-title {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.trunk-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}

.map-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.2s ease;
}

.map-node:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--gold);
}

.map-node-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.map-node-num {
  font-family: var(--font-latin);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-tint);
  color: var(--ink-soft);
}

.map-node-year {
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.map-node-title {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.38;
}

.map-node-sub {
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-top: 3px;
  line-height: 1.4;
}

.map-node.is-split {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-soft), var(--surface-strong));
}

.map-node.is-dimmed {
  opacity: 0.28;
}

.map-node.is-highlighted {
  border-color: var(--emerald);
  box-shadow: 0 0 0 2px var(--emerald-soft), var(--shadow-sm);
  opacity: 1;
}

/* Branching Connector SVG */
.split-connector {
  margin: 14px 0 10px;
  text-align: center;
}

.split-connector-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

.split-svg {
  width: 100%;
  height: 44px;
  display: block;
}

/* Three Branch Columns */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.branch-column {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 16px 14px;
}

.branch-col-head {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--branch-color, var(--gold));
}

.branch-col-kicker {
  font-family: var(--font-latin);
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  color: var(--branch-color, var(--gold));
  font-weight: 700;
  display: block;
}

.branch-col-title {
  margin: 3px 0 4px;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.branch-col-note {
  margin: 0;
  font-size: 0.77rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.branch-node-list {
  display: grid;
  gap: 9px;
}

.branch-interlude {
  font-size: 0.74rem;
  color: var(--ink-muted);
  text-align: center;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: var(--surface);
}

.branch-col-defeated {
  --branch-color: var(--c-defeated);
}
.branch-col-child {
  --branch-color: var(--c-child);
}
.branch-col-adult {
  --branch-color: var(--c-adult);
}

/* Separate Horizon Divider + Wilds Axis */
.horizon-divider {
  margin: 28px 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.horizon-divider::before,
.horizon-divider::after {
  content: "";
  flex: 1;
  border-top: 1.5px dashed var(--border-strong);
}

.wilds-track {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-top: 3px solid var(--c-wilds);
  background: var(--bg);
  padding: 18px 16px;
}

.wilds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

/* ---------- Section 2: Chronological Story Explorer ---------- */
.controls-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}

.branch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.branch-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.branch-tab:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.branch-tab.is-active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fffdf8;
}

[data-theme="dark"] .branch-tab.is-active {
  color: #0e1612;
}

.branch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.search-wrap {
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  font-size: 0.9rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--emerald);
}

.controls-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sort-segmented {
  display: inline-flex;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: var(--surface-strong);
}

.sort-btn {
  border: 0;
  background: transparent;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}

.sort-btn.is-active {
  background: var(--emerald);
  color: #fffdf8;
}

[data-theme="dark"] .sort-btn.is-active {
  color: #0e1612;
}

.spoiler-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-line);
  background: var(--surface-strong);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.spoiler-toggle input {
  accent-color: var(--emerald);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.active-branch-banner {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.active-branch-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.result-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* Story Cards Timeline List */
.story-list {
  display: grid;
  gap: 20px;
}

.story-group-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.story-group-divider:first-child {
  margin-top: 0;
}

.story-group-label {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.story-group-line {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: grid;
  gap: 16px;
}

.story-card:hover {
  border-color: var(--gold-line);
  box-shadow: var(--shadow-md);
}

.story-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.story-head-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.story-crest {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--branch-accent, var(--emerald));
}

.story-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.story-order-tag {
  font-family: var(--font-latin);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fffdf8;
  background: var(--branch-accent, var(--emerald));
}

.story-branch-tag {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 4px;
  background: var(--branch-soft, var(--emerald-soft));
  color: var(--branch-accent, var(--emerald));
}

.story-era-tag {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.story-update-tag {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--gold-soft);
  color: var(--gold);
}

.story-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 1.8vw, 1.42rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.story-en-title {
  display: block;
  font-family: var(--font-latin);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-top: 2px;
}

.story-year-box {
  text-align: right;
  flex-shrink: 0;
}

.story-year-num {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.story-year-hw {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.story-tagline {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--emerald);
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}

.story-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.story-facts strong {
  color: var(--ink);
  font-weight: 600;
}

.story-body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.story-spoiler-box {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  overflow: hidden;
}

.story-spoiler-summary {
  list-style: none;
  padding: 11px 15px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.story-spoiler-summary::-webkit-details-marker {
  display: none;
}

.story-spoiler-summary:hover {
  background: var(--surface-tint);
}

.story-spoiler-content {
  padding: 0 15px 15px;
  border-top: 1px solid var(--border);
  font-size: 0.91rem;
  color: var(--ink-soft);
}

.story-spoiler-content p {
  margin: 12px 0 0;
}

.story-connection {
  margin: 12px 0 0;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  font-size: 0.86rem;
  color: var(--ink);
}

.story-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.story-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platform-tag {
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-soft);
}

/* Branch Color Mapping */
.branch-origins {
  --branch-accent: var(--c-origins);
  --branch-soft: var(--c-origins-soft);
}
.branch-defeated {
  --branch-accent: var(--c-defeated);
  --branch-soft: var(--c-defeated-soft);
}
.branch-child {
  --branch-accent: var(--c-child);
  --branch-soft: var(--c-child-soft);
}
.branch-adult {
  --branch-accent: var(--c-adult);
  --branch-soft: var(--c-adult-soft);
}
.branch-wilds {
  --branch-accent: var(--c-wilds);
  --branch-soft: var(--c-wilds-soft);
}
.branch-spinoff {
  --branch-accent: var(--c-spinoff);
  --branch-soft: var(--c-spinoff-soft);
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
}

/* ---------- Sponsor / PR Section (HisatorNotebook) ---------- */
.sponsor-band {
  padding: 46px 0;
}

.sponsor-card {
  background: var(--surface-strong);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}

.sponsor-brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sponsor-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.sponsor-pr-badge {
  display: inline-block;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-line);
}

.sponsor-heading {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.38;
}

.sponsor-copy {
  margin: 0 0 12px;
  font-size: 0.91rem;
  color: var(--ink-soft);
}

.sponsor-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--ink);
}

.sponsor-features li::before {
  content: "◆ ";
  color: var(--gold);
  font-size: 0.68rem;
}

.sponsor-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.sponsor-platform-note {
  font-size: 0.74rem;
  color: var(--ink-muted);
}

/* ---------- Section 3: Worldline Comparison & Play Guide ---------- */
.visual-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.visual-feature.is-reversed {
  grid-template-columns: 1fr 1.15fr;
}

.visual-feature-media {
  height: 100%;
  min-height: 290px;
}

.visual-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-feature-body {
  padding: 30px 32px;
}

.visual-feature-body h3 {
  margin: 6px 0 12px;
  font-family: var(--font-serif);
  font-size: 1.38rem;
  line-height: 1.38;
}

.visual-feature-body p {
  margin: 0 0 12px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.visual-feature-body p:last-child {
  margin-bottom: 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--branch-accent, var(--gold));
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.compare-card h3 {
  margin: 6px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.12rem;
}

.compare-card p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.compare-dl {
  margin: 0;
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.83rem;
}

.compare-dl div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
}

.compare-dl dt {
  color: var(--ink-muted);
  font-weight: 600;
}

.compare-dl dd {
  margin: 0;
  color: var(--ink);
}

.playorder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.playorder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.playorder-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 4px;
  background: var(--emerald-soft);
  color: var(--emerald);
  margin-bottom: 8px;
}

.playorder-card h4 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.playorder-sub {
  margin: 0 0 14px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.playorder-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.playorder-step {
  font-size: 0.81rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--ink);
}

.playorder-arrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.84rem;
}

.playorder-reason {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Section 4: Glossary ---------- */
.glossary-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.glossary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 20px;
  box-shadow: var(--shadow-sm);
}

.glossary-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.glossary-term {
  margin: 0 0 2px;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
}

.glossary-en {
  display: block;
  font-family: var(--font-latin);
  font-size: 0.71rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.glossary-desc {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-soft);
}

/* ---------- Section 5: Quiz ---------- */
.quiz-box {
  max-width: 780px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow-md);
}

.quiz-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.quiz-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-tint);
  overflow: hidden;
  margin-bottom: 22px;
}

.quiz-bar-fill {
  height: 100%;
  background: var(--emerald);
  transition: width 0.3s ease;
}

.quiz-question {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
}

.quiz-choices {
  display: grid;
  gap: 10px;
}

.quiz-choice {
  text-align: left;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.quiz-choice:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--surface-tint);
}

.quiz-choice.is-correct {
  border-color: var(--emerald);
  background: var(--emerald-soft);
  color: var(--ink);
  font-weight: 700;
}

.quiz-choice.is-wrong {
  border-color: var(--c-defeated);
  background: var(--c-defeated-soft);
}

.quiz-feedback {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  border-left: 3px solid var(--gold);
  font-size: 0.89rem;
}

.quiz-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.quiz-result {
  text-align: center;
  padding: 12px 0;
}

.quiz-rank {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--emerald);
  margin: 8px 0;
}

.quiz-score-big {
  font-family: var(--font-latin);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--gold);
  margin: 4px 0;
}

/* ---------- Section 6: Visitor Counter & Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-strong);
  padding: 56px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.counter-panel,
.footer-pr-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.counter-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.counter-panel-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.vc-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.vc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2b9a5c;
}

.vc-status-dot.is-fallback {
  background: var(--gold);
}

.counter-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.counter-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}

.counter-card-label {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.counter-card-val {
  font-family: var(--font-serif);
  font-size: 1.48rem;
  font-weight: 700;
  color: var(--emerald);
  line-height: 1.2;
}

.counter-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.footer-pr-card {
  border-color: var(--gold-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.footer-pr-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-pr-icon {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.footer-pr-title {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.footer-pr-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.rights-note {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.81rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--emerald);
}

/* ---------- Detail Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 20, 17, 0.68);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: min(100%, 760px);
  max-height: min(88vh, 840px);
  background: var(--surface-strong);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
}

.modal-body {
  padding: 24px 26px 26px;
  overflow-y: auto;
  display: grid;
  gap: 18px;
}

.modal-section-label {
  display: block;
  font-family: var(--font-latin);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 5px;
}

.modal-block h4 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.04rem;
}

.modal-block p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modal-meta-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.84rem;
}

.modal-meta-box strong {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.modal-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-pill {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  color: var(--ink);
}

.modal-note {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  font-size: 0.86rem;
  color: var(--ink);
}

.modal-nav-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .trunk-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .branches-grid,
  .wilds-grid,
  .comparison-grid,
  .glossary-grid {
    grid-template-columns: 1fr;
  }
  .split-svg {
    display: none;
  }
  .sponsor-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .sponsor-brand-col {
    flex-direction: row;
    justify-content: flex-start;
  }
  .sponsor-cta {
    align-items: flex-start;
  }
  .visual-feature,
  .visual-feature.is-reversed {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 24px 0 28px;
  }
  .hero-frame {
    min-height: 410px;
  }
  .hero-content {
    padding: 28px 22px 26px;
  }
  .ledger-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section {
    padding: 50px 0;
  }
  .chronicle-map {
    padding: 20px 14px;
  }
  .trunk-track {
    grid-template-columns: 1fr;
  }
  .story-card {
    padding: 18px 16px;
  }
  .story-card-head {
    flex-direction: column;
  }
  .story-year-box {
    text-align: left;
  }
  .playorder-grid,
  .modal-meta-grid {
    grid-template-columns: 1fr;
  }
  .counter-metrics {
    grid-template-columns: 1fr;
  }
  .header-counter-label {
    display: none;
  }
  .quiz-box {
    padding: 22px 18px;
  }
  .modal-nav-foot {
    flex-direction: column;
    align-items: stretch;
  }
}

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