/* =====================================================================
   Kingdom Hearts IV — Lost Master Archive
   Theme: deep night sky, gold filigree, soft blue light. Flash-era feel.
   ===================================================================== */

:root {
  --bg-0: #05061a;
  --bg-1: #0b0f2e;
  --bg-2: #141a45;
  --panel: rgba(12, 16, 48, 0.72);
  --panel-solid: #0e1338;
  --line: rgba(242, 201, 76, 0.28);
  --line-soft: rgba(140, 170, 255, 0.16);
  --gold: #f2c94c;
  --gold-2: #ffe27a;
  --blue: #4cc9f0;
  --blue-2: #8fd8ff;
  --violet: #b892ff;
  --pink: #ff6b9d;
  --text: #e9ecff;
  --muted: #9aa3d1;
  --c-confirmed: #62d39a;
  --c-reported: #4cc9f0;
  --c-speculated: #c78bff;
  --c-expected: #f2c94c;
  --font-head: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --glow-gold: 0 0 24px rgba(242, 201, 76, 0.35);
  --glow-blue: 0 0 24px rgba(76, 201, 240, 0.35);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, #1a1f5c 0%, transparent 60%),
              radial-gradient(900px 700px at 100% 100%, #2a0f4a 0%, transparent 55%),
              linear-gradient(180deg, var(--bg-0), var(--bg-1) 60%, #0a0620);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
[hidden] { display: none !important; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--gold-2); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; margin: 0; line-height: 1.15; }
::selection { background: rgba(242, 201, 76, 0.35); color: #fff; }

/* ---------- background ---------- */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bg-vignette { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }

/* ---------- splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(900px 600px at 50% 40%, #1b1f5a 0%, #07081e 60%, #030312 100%);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  overflow: hidden; text-align: center; padding: 24px;
}
.splash.leaving { opacity: 0; transform: scale(1.06); pointer-events: none; }
.splash-inner { position: relative; z-index: 2; animation: fadeUp 1.4s var(--ease) both; }
.splash-rings { position: absolute; inset: 0; display: grid; place-items: center; }
.splash-rings span {
  position: absolute; width: 40vmin; height: 40vmin; border-radius: 50%;
  border: 1px solid rgba(242, 201, 76, 0.25); animation: ring 6s linear infinite;
}
.splash-rings span:nth-child(2) { animation-delay: 2s; }
.splash-rings span:nth-child(3) { animation-delay: 4s; }
@keyframes ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.crown-mark { width: 120px; margin: 0 auto 8px; color: var(--gold); filter: drop-shadow(0 0 14px rgba(242, 201, 76, 0.6)); animation: float 4s ease-in-out infinite; }
.crown-mark svg { width: 100%; height: auto; display: block; }
.wordmark { display: flex; flex-direction: column; align-items: center; gap: 0; }
.wm-kh {
  font-size: clamp(1.6rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff6d5 0%, var(--gold) 55%, #b8862b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5)) drop-shadow(0 0 18px rgba(242, 201, 76, 0.35));
}
.wm-num {
  font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; line-height: .9; letter-spacing: .1em; margin-left: .1em;
  background: linear-gradient(180deg, #fff 0%, var(--blue-2) 45%, #2a6fd6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(76, 201, 240, 0.55));
}
.splash-sub { font-family: var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 18px 0 30px; font-size: .78rem; }
.splash-enter { font-family: var(--font-head); color: var(--gold-2); letter-spacing: .2em; text-transform: uppercase; font-size: .9rem; animation: pulse 2.2s ease-in-out infinite; }
.splash-note { color: rgba(154, 163, 209, 0.6); font-size: .75rem; margin-top: 40px; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- logo placements ---------- */
.splash-game, .hero-game { font-family: var(--font-head); font-size: .9rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-2); text-shadow: 0 0 14px rgba(242, 201, 76, 0.45); margin: 0 0 6px; }
.splash-logo, .hero-logo { margin: 0 auto; line-height: 0; }
.splash-logo img { width: min(640px, 86vw); height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 28px rgba(143, 216, 255, 0.25)); animation: float 5s ease-in-out infinite; }
.hero-logo img { width: min(560px, 80vw); height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 24px rgba(143, 216, 255, 0.22)); }
.brand-emblem { height: 40px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.brand-text b { white-space: nowrap; }

/* ---------- app shell ---------- */
.app { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; animation: fadeUp .8s var(--ease) both; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(6, 8, 30, 0.9), rgba(6, 8, 30, 0.6));
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-icon { width: 34px; height: 34px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(242, 201, 76, 0.6)); }
.brand-icon svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--font-head); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.brand-text small { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.topbar-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted);
  display: grid; place-items: center; transition: all .25s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { color: var(--gold-2); border-color: var(--line); background: rgba(242, 201, 76, 0.06); box-shadow: var(--glow-gold); }
.icon-btn[aria-pressed="true"] { color: var(--blue); border-color: rgba(76, 201, 240, 0.4); box-shadow: var(--glow-blue); }
.menu-btn { display: none; }

.layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; padding: 26px 22px; max-width: 1400px; width: 100%; margin: 0 auto; flex: 1; }

/* ---------- side nav ---------- */
.sidenav { position: sticky; top: 86px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted);
  border: 1px solid transparent; font-family: var(--font-head); letter-spacing: .1em; text-transform: uppercase; font-size: .78rem;
  transition: all .25s var(--ease); position: relative; overflow: hidden;
}
.nav-link .nav-ico { width: 22px; height: 22px; flex: none; opacity: .85; }
.nav-link .nav-ico svg, .nav-link .nav-ico img { width: 100%; height: 100%; display: block; object-fit: contain; }
/* an uploaded icon painted in currentColor (inline SVG mask, see R.catIco) */
svg.ico-mask { display: block; width: 100%; height: 100%; overflow: visible; }
.nav-link .nav-count { margin-left: auto; font-family: var(--font-body); font-size: .7rem; opacity: .6; letter-spacing: 0; }
.nav-link:hover { color: var(--text); background: rgba(140, 170, 255, 0.06); border-color: var(--line-soft); transform: translateX(3px); }
.nav-link.active { color: var(--gold-2); background: linear-gradient(90deg, rgba(242, 201, 76, 0.16), rgba(242, 201, 76, 0.02)); border-color: var(--line); box-shadow: inset 3px 0 0 var(--gold); }
.nav-sep { height: 1px; margin: 8px 6px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* ---------- content panel ---------- */
.content { min-width: 0; outline: none; }
.view { animation: viewIn .55s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.panel {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: relative;
}
.panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 40%); }
.panel + .panel { margin-top: 22px; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--gold-2); text-shadow: 0 0 20px rgba(242, 201, 76, 0.25); }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.eyebrow { font-family: var(--font-head); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.ornament { display: flex; align-items: center; gap: 12px; color: var(--gold); opacity: .7; margin: 16px 0; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ---------- title icons (category and group headings) ---------- */
.section-head h2, .group-h { display: inline-flex; align-items: center; gap: .55em; }
.title-ico { width: 1.15em; height: 1.15em; flex: none; display: inline-grid; place-items: center; color: currentColor; }
.title-ico img, .title-ico svg { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- home hero ---------- */
.hero { text-align: center; padding: 42px 20px 30px; }
.hero .wm-kh { font-size: clamp(1.2rem, 3.4vw, 2.2rem); }
.hero .wm-num { font-size: clamp(3rem, 9vw, 5.6rem); }
.hero-tag { display: inline-flex; gap: 10px; align-items: center; margin-top: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-2); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; font-family: var(--font-head); }
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 2s infinite; }
.hero p.lead { max-width: 64ch; margin: 18px auto 0; color: var(--muted); font-size: 1.02rem; }
.hero p.lead + p.lead { margin-top: 10px; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tile {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 12px; border: 1px solid var(--line-soft); color: var(--text);
  background: linear-gradient(160deg, rgba(20, 26, 69, 0.8), rgba(9, 12, 36, 0.8)); transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.tile::after { content: ""; position: absolute; inset: -40% auto auto -40%; width: 120%; height: 120%; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at 30% 30%, var(--tile-color, rgba(242, 201, 76, 0.25)), transparent 55%); }
.tile:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--glow-gold), var(--shadow); color: #fff; }
.tile:hover::after { opacity: .35; }
.tile .nav-ico { width: 34px; height: 34px; color: var(--tile-accent, var(--gold)); position: relative; z-index: 1; }
.tile .nav-ico svg, .tile .nav-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile h3 { font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; position: relative; z-index: 1; }
.tile p { margin: 0; color: var(--muted); font-size: .85rem; position: relative; z-index: 1; }
.tile .nav-count { position: absolute; top: 12px; right: 14px; font-size: .7rem; color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-soft); }
.stat b { display: block; font-family: var(--font-head); color: var(--gold-2); font-size: 1.05rem; letter-spacing: .05em; margin-top: 4px; }
.stat span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 4px 0 16px 18px; }
.timeline li::before { content: ""; position: absolute; left: -23px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.timeline time { display: block; font-family: var(--font-head); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.timeline p { margin: 2px 0 0; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 18px; }
.chip {
  border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.2); color: var(--muted); padding: 6px 12px; border-radius: 999px; font-size: .78rem;
  letter-spacing: .06em; transition: all .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line); }
.chip.active { color: #0b0f2e; background: var(--gold); border-color: var(--gold); font-weight: 700; box-shadow: var(--glow-gold); }
.chip.status-confirmed.active { background: var(--c-confirmed); border-color: var(--c-confirmed); }
.chip.status-reported.active { background: var(--c-reported); border-color: var(--c-reported); }
.chip.status-speculated.active { background: var(--c-speculated); border-color: var(--c-speculated); }
.chip.status-expected.active { background: var(--c-expected); border-color: var(--c-expected); }
.filters .spacer { flex: 1; }
.filter-input { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-soft); color: var(--text); padding: 8px 12px; border-radius: 10px; font-family: inherit; min-width: 200px; }
.filter-input:focus { outline: none; border-color: var(--gold); box-shadow: var(--glow-gold); }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; color: var(--text); border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(20, 26, 69, 0.85), rgba(9, 12, 36, 0.9)); transition: all .3s var(--ease); position: relative;
  animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-5px); border-color: var(--card-color, var(--gold)); box-shadow: 0 0 28px color-mix(in srgb, var(--card-color, var(--gold)) 40%, transparent), var(--shadow); color: #fff; }
.card-art { aspect-ratio: 4 / 3; position: relative; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--card-color, var(--gold)) 28%, transparent), transparent 70%), rgba(0, 0, 0, 0.35); }
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.card:hover .card-art img { transform: scale(1.05); }
.card-art .emblem { width: 44%; height: auto; color: var(--card-color, var(--gold)); filter: drop-shadow(0 0 16px color-mix(in srgb, var(--card-color, var(--gold)) 60%, transparent)); transition: transform .5s var(--ease); }
.card:hover .card-art .emblem { transform: scale(1.1) rotate(-3deg); }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { font-size: .95rem; letter-spacing: .08em; overflow-wrap: anywhere; }
.card-body .sub { color: var(--muted); font-size: .78rem; }
.card-body .summary { color: var(--muted); font-size: .82rem; margin-top: 6px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; font-family: var(--font-head);
  padding: 3px 9px; border-radius: 999px; border: 1px solid; background: rgba(0, 0, 0, 0.35); width: max-content;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge.confirmed { color: var(--c-confirmed); border-color: rgba(98, 211, 154, 0.4); }
.badge.reported { color: var(--c-reported); border-color: rgba(76, 201, 240, 0.4); }
.badge.speculated { color: var(--c-speculated); border-color: rgba(199, 139, 255, 0.4); }
.badge.expected { color: var(--c-expected); border-color: rgba(242, 201, 76, 0.4); }
.card-status { margin-top: 4px; }
.card .badge { font-size: .56rem; padding: 2px 7px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- detail view ---------- */
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: rgba(242, 201, 76, 0.06);
  color: var(--gold-2); font-family: var(--font-head); font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; transition: all .25s var(--ease);
}
.btn:hover { background: rgba(242, 201, 76, 0.16); box-shadow: var(--glow-gold); transform: translateY(-1px); color: #fff; }
.btn.ghost { border-color: var(--line-soft); color: var(--muted); background: transparent; }
.btn svg { width: 16px; height: 16px; }
.detail-hero { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.detail-art { border-radius: 14px; overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line-soft); position: relative;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--card-color, var(--gold)) 30%, transparent), rgba(0, 0, 0, 0.4) 70%); }
.detail-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-art .emblem { width: 52%; color: var(--card-color, var(--gold)); filter: drop-shadow(0 0 24px color-mix(in srgb, var(--card-color, var(--gold)) 70%, transparent)); animation: float 5s ease-in-out infinite; }
.detail-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5); }
.detail-art img.float { animation: float 5s ease-in-out infinite; }   /* per-card imageFloat option */
.detail-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: #fff; text-shadow: 0 0 24px color-mix(in srgb, var(--card-color, var(--gold)) 50%, transparent); }
.detail-head .sub { color: var(--gold-2); font-family: var(--font-head); letter-spacing: .15em; text-transform: uppercase; font-size: .8rem; margin-top: 6px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; align-items: center; }
.tag { font-size: .72rem; padding: 4px 10px; border-radius: 999px; background: rgba(140, 170, 255, 0.1); border: 1px solid var(--line-soft); color: var(--blue-2); letter-spacing: .06em; }
.detail-summary { font-size: 1.08rem; color: #dfe4ff; font-weight: 300; font-style: italic; border-left: 3px solid var(--card-color, var(--gold)); padding-left: 14px; margin: 14px 0 22px; }
.detail-body { margin-top: 18px; }   /* room between subtitle and body when there is no quote */
.detail-summary + .detail-body { margin-top: 0; }
.detail-body p { margin: 0 0 14px; color: #d3d8f5; }
h4.body-h { font-family: var(--font-head); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin: 30px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
h4.body-h:first-child { margin-top: 0; }
.detail-body b, ul.bullets b { color: #fff; font-weight: 700; }
ul.bullets { margin: 0 0 14px; padding-left: 4px; list-style: none; color: #d3d8f5; }
ul.bullets li { position: relative; padding-left: 22px; margin: 0 0 6px; }
ul.bullets li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--card-color, var(--gold)); box-shadow: 0 0 8px color-mix(in srgb, var(--card-color, var(--gold)) 60%, transparent); }
.build-text p, .build-text ul.bullets { color: #d3d8f5; }
.build-text { margin-bottom: 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.facts li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 8px 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line-soft); font-size: .88rem; }
.facts li b { font-family: var(--font-head); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); align-self: start; padding-top: 3px; }
.related { display: flex; flex-direction: column; gap: 8px; }
.related a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.22); color: var(--text); transition: all .25s var(--ease); }
.related a:hover { border-color: var(--line); transform: translateX(4px); box-shadow: var(--glow-gold); }
.related a .nav-ico { width: 22px; height: 22px; color: var(--rel-color, var(--gold)); flex: none; }
.related a .nav-ico svg { width: 100%; height: 100%; }
.related a small { color: var(--muted); display: block; font-size: .72rem; }
.notes { margin-top: 20px; padding: 12px 16px; border-radius: 10px; background: rgba(76, 201, 240, 0.06); border: 1px dashed rgba(76, 201, 240, 0.3); color: var(--muted); font-size: .84rem; }
.notes b { color: var(--blue-2); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.pager .btn { max-width: 48%; }
.pager .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
h3.sub-h { font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }

/* ---------- search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(3, 4, 18, 0.8); backdrop-filter: blur(8px); display: grid; place-items: start center; padding: 10vh 16px; animation: fadeUp .25s var(--ease) both; }
.search-box { width: min(720px, 100%); background: var(--panel-solid); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow), var(--glow-gold); padding: 14px; }
#search-input { width: 100%; font-size: 1.15rem; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.35); color: var(--text); font-family: inherit; }
#search-input:focus { outline: none; border-color: var(--gold); }
.search-results { max-height: 50vh; overflow: auto; margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.search-results a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); border: 1px solid transparent; }
.search-results a:hover, .search-results a.selected { background: rgba(242, 201, 76, 0.08); border-color: var(--line); }
.search-results a small { display: block; color: var(--muted); font-size: .74rem; }
.search-results .cat { font-family: var(--font-head); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.search-hint { margin: 10px 4px 0; color: var(--muted); font-size: .75rem; }
kbd { font-family: inherit; font-size: .7rem; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.3); color: var(--text); }

/* ---------- groups ---------- */
.group + .group { margin-top: 28px; }
.group-h { display: flex; align-items: baseline; gap: 10px; font-size: .9rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.group-h small { font-family: var(--font-body); font-size: .72rem; color: var(--muted); letter-spacing: 0; }
.chip-sep { width: 1px; height: 20px; background: var(--line-soft); margin: 0 4px; }
.badge.implied { color: var(--c-reported); border-color: rgba(76, 201, 240, 0.4); }
.chip.status-implied.active { background: var(--c-reported); border-color: var(--c-reported); }

/* ---------- tier table (magic) ---------- */
.tier-scale { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: .66rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; padding-left: 232px; }
.tier-scale .tier-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--c-expected), var(--c-reported), var(--c-confirmed)); position: relative; }
.tier-scale .tier-line::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 8px solid var(--c-confirmed); }
.tier-table { display: flex; flex-direction: column; gap: 10px; }
.tier-row { display: grid; grid-template-columns: 220px 1fr; gap: 12px; align-items: stretch; animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.tier-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--text); border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(20, 26, 69, 0.85), rgba(9, 12, 36, 0.9)); transition: all .25s var(--ease); }
.tier-head .nav-ico { width: 30px; height: 30px; flex: none; color: var(--card-color, var(--gold)); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--card-color, var(--gold)) 60%, transparent)); }
.tier-head .nav-ico svg { width: 100%; height: 100%; }
.tier-head b { display: block; font-family: var(--font-head); font-size: .95rem; letter-spacing: .08em; }
.tier-head small { color: var(--muted); font-size: .72rem; }
.tier-head:hover { border-color: var(--card-color, var(--gold)); box-shadow: 0 0 22px color-mix(in srgb, var(--card-color, var(--gold)) 35%, transparent); color: #fff; transform: translateX(3px); }
.tier-cells { display: grid; grid-template-columns: repeat(var(--tiers, 4), 1fr); gap: 8px; }
.tier-cell { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; color: var(--text); border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.25);
  position: relative; overflow: hidden; transition: all .25s var(--ease); min-height: 84px; justify-content: space-between; }
.tier-cell::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--muted); opacity: .6; }
.tier-cell.confirmed::before { background: var(--c-confirmed); opacity: 1; }
.tier-cell.implied::before, .tier-cell.reported::before { background: var(--c-reported); opacity: 1; }
.tier-cell.expected::before { background: var(--c-expected); opacity: .7; }
.tier-cell.speculated::before { background: var(--c-speculated); opacity: 1; }
.tier-cell b { font-family: var(--font-head); font-size: .86rem; letter-spacing: .06em; }
.tier-cell .badge { font-size: .56rem; padding: 2px 7px; }
.tier-cell .tier-num { position: absolute; top: 8px; right: 10px; font-family: var(--font-head); font-size: .7rem; color: var(--muted); letter-spacing: .1em; }
.tier-cell:hover { border-color: var(--card-color, var(--gold)); background: rgba(242, 201, 76, 0.06); color: #fff; transform: translateY(-2px); }
.tier-detail { margin-top: 24px; }
.tier-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.tier-detail-cell { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.22); position: relative; overflow: hidden; }
.tier-detail-cell::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--muted); }
.tier-detail-cell.confirmed::before { background: var(--c-confirmed); }
.tier-detail-cell.implied::before, .tier-detail-cell.reported::before { background: var(--c-reported); }
.tier-detail-cell.expected::before { background: var(--c-expected); }
.tier-detail-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tier-detail-top .tier-num { font-family: var(--font-head); font-size: .74rem; color: var(--gold); letter-spacing: .15em; }
.tier-detail-cell b { display: block; font-family: var(--font-head); font-size: .95rem; letter-spacing: .06em; margin-bottom: 4px; }
.tier-detail-cell p { margin: 0; font-size: .82rem; color: #d3d8f5; }
.tier-detail-cell small { display: block; margin-top: 8px; color: var(--muted); font-size: .7rem; }

/* ---------- news feed ---------- */
.feed { display: flex; flex-direction: column; gap: 12px; }
.feed-item { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(20, 26, 69, 0.8), rgba(9, 12, 36, 0.85)); transition: all .25s var(--ease); animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.feed-item { color: inherit; text-decoration: none; cursor: pointer; }
.feed-item:hover { border-color: var(--card-color, var(--gold)); box-shadow: 0 0 22px color-mix(in srgb, var(--card-color, var(--gold)) 30%, transparent); }
.feed-item:hover h3 { color: var(--gold-2); }
.feed-date { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border-right: 1px solid var(--line-soft); padding-right: 12px; }
.feed-date time { font-family: var(--font-head); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.feed-body { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.feed-art { width: 176px; aspect-ratio: 16 / 9; flex: none; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 8px; border: 1px solid var(--line-soft);
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--card-color, var(--gold)) 28%, transparent), transparent 70%), rgba(0, 0, 0, 0.3); }
.feed-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.feed-item:hover .feed-art img { transform: scale(1.05); }
.feed-art .emblem { width: 34%; height: auto; color: var(--card-color, var(--gold)); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--card-color, var(--gold)) 60%, transparent)); }
.feed-art.has-bg { background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--card-color, var(--gold)) 28%, transparent), transparent 70%), var(--art-bg); }
.feed-text { min-width: 0; }
.feed-body h3 { font-size: 1.02rem; letter-spacing: .06em; color: #fff; transition: color .2s; }
.feed-body .sub { color: var(--gold-2); font-family: var(--font-head); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }
.feed-body p { margin: 8px 0 0; color: #d3d8f5; font-size: .92rem; }
.btn.small { padding: 5px 11px; font-size: .64rem; margin-left: auto; }

/* ---------- card page: tags, tagged-in, gallery, screenshots, trailers, sources ---------- */
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.card-tags span { font-size: .62rem; padding: 2px 7px; border-radius: 999px; background: rgba(140, 170, 255, 0.08); border: 1px solid var(--line-soft); color: var(--muted); letter-spacing: .04em; }
.fit-contain { object-fit: contain !important; background: rgba(0, 0, 0, 0.4); }
a.tag { transition: all .2s var(--ease); }
a.tag:hover { border-color: var(--line); color: var(--gold-2); }
a.tag-link { color: #fff; border-color: color-mix(in srgb, var(--rel-color, var(--gold)) 45%, transparent); background: color-mix(in srgb, var(--rel-color, var(--gold)) 14%, transparent); }
a.tag-link::before { content: "↗ "; opacity: .6; font-size: .65em; }
a.tag-link:hover { box-shadow: 0 0 14px color-mix(in srgb, var(--rel-color, var(--gold)) 40%, transparent); }
.tagged { margin-top: 22px; padding: 14px 16px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line-soft); }
.tagged .sub-h { margin-bottom: 6px; }
.tagged-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 4px 0; }
.tagged-row + .tagged-row { border-top: 1px dashed var(--line-soft); }
.tagged-cat { font-family: var(--font-head); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); min-width: 120px; }
.tagged-links { display: flex; flex-wrap: wrap; gap: 6px; }
.tagged-links a { font-size: .78rem; color: var(--text); padding: 2px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--rel-color, var(--gold)) 35%, transparent); transition: all .2s var(--ease); }
.tagged-links a:hover { color: #fff; background: color-mix(in srgb, var(--rel-color, var(--gold)) 18%, transparent); }
.tagged-row.tiles { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; }
.tagged-tiles { display: grid; grid-template-columns: repeat(auto-fill, 132px); grid-auto-rows: max-content; align-content: start; gap: 8px; width: 100%; }
.mini-tile { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.25); color: var(--text); transition: all .2s var(--ease); }
.mini-tile:hover { border-color: var(--card-color, var(--gold)); transform: translateY(-3px); box-shadow: 0 0 18px color-mix(in srgb, var(--card-color, var(--gold)) 40%, transparent); color: #fff; }
.mini-art { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--card-color, var(--gold)) 28%, transparent), transparent 70%), rgba(0, 0, 0, 0.35); }
.mini-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-art .emblem { width: 42%; color: var(--card-color, var(--gold)); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--card-color, var(--gold)) 60%, transparent)); }
.mini-art .emblem svg { width: 100%; height: auto; display: block; }
.mini-tile b { font-family: var(--font-head); font-size: .74rem; letter-spacing: .04em; padding: 7px 9px 0; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.2em + 7px); }
.mini-tile small { color: var(--muted); font-size: .66rem; padding: 2px 9px 8px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.img-link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.shot a.img-link { height: auto; }   /* keep the caption inside the clipped figure */
a.img-link img { display: block; }
.gallery { display: flex; flex-direction: column; gap: 8px; }
.gallery .detail-art { aspect-ratio: 2 / 3; }
.gallery .detail-art img { object-fit: contain; background: rgba(0, 0, 0, 0.45); }
.detail-hero:has(.gallery) { grid-template-columns: 360px 1fr; }
.gallery-bar { display: flex; align-items: center; gap: 8px; }
.gallery-cap { flex: 1; display: flex; flex-direction: column; text-align: center; font-size: .82rem; color: var(--text); min-height: 2.2em; justify-content: center; }
.gallery-cap small { color: var(--muted); font-size: .68rem; letter-spacing: .15em; }
.gal-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(242, 201, 76, 0.06); color: var(--gold-2); font-size: 1.2rem; line-height: 1; display: grid; place-items: center; transition: all .2s var(--ease); }
.gal-btn:hover:not(:disabled) { background: rgba(242, 201, 76, 0.18); box-shadow: var(--glow-gold); }
.gal-btn:disabled { opacity: .3; cursor: default; }
.detail-grid.single { grid-template-columns: 1fr; }
.muted { color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.shot { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.3); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.shot figcaption { font-size: .72rem; color: var(--muted); padding: 6px 9px; }
.shots-empty { padding: 26px; border-radius: 10px; border: 1px dashed var(--line-soft); color: var(--muted); text-align: center; font-size: .84rem; }
.trailers { margin-top: 22px; }
.trailer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.trailer { margin: 0; }
.trailer-frame { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); background: #000; }
.trailer-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.trailer-frame.poster { display: block; position: relative; }
.trailer-frame.poster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .2s; }
.trailer-frame.poster:hover img { opacity: 1; }
.trailer-frame.poster .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.7); border: 1px solid var(--line-soft); color: #fff; font-family: var(--font-head); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.trailer figcaption { font-size: .8rem; color: var(--muted); padding: 6px 2px; }
.sources { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.source-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.source-list a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.22); color: var(--text); transition: all .25s var(--ease); }
.source-list a:hover { border-color: var(--line); transform: translateX(4px); box-shadow: var(--glow-gold); }
.source-list a .nav-ico { width: 22px; height: 22px; color: var(--rel-color, var(--gold)); flex: none; }
.source-list a .nav-ico svg { width: 100%; height: 100%; }
.source-list a small { color: var(--muted); display: block; font-size: .72rem; }
.source-note { margin: 10px 0 0; color: var(--muted); font-size: .84rem; }
.tier-mp { font-size: .7rem; color: var(--blue-2); letter-spacing: .04em; }
.tier-detail-cell .tier-mp { display: block; margin: -2px 0 6px; }

/* ---------- status marks and key ---------- */
.badge .glyph { font-family: var(--font-body); font-weight: 800; font-size: 1.05em; line-height: 1; }
.badge.icon { width: 20px; height: 20px; padding: 0; justify-content: center; border-radius: 50%; gap: 0; font-size: .7rem; letter-spacing: 0; cursor: help; }
.badge.icon::before { display: none; }
.card .badge.icon { width: 18px; height: 18px; font-size: .64rem; }
.card-status:empty { display: none; }
.status-key { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.2); font-size: .72rem; color: var(--muted); }
.status-key .key-item { display: inline-flex; align-items: center; gap: 6px; cursor: help; }
.status-key .glyph { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; font-weight: 800; font-size: .7rem; background: rgba(0, 0, 0, 0.35); }
.status-key .key-item.confirmed { color: var(--c-confirmed); }
.status-key .key-item.implied { color: var(--c-reported); }
.status-key .key-item.expected { color: var(--c-expected); }
.status-key .key-item.speculated { color: var(--c-speculated); }
.status-key small { flex-basis: 100%; font-size: .66rem; color: var(--muted); opacity: .8; }
.footer .status-key { justify-content: center; margin: 0 auto 14px; max-width: 640px; }
.footer .status-key small { flex-basis: auto; }

/* ---------- build section (keyblades) ---------- */
.build { margin-top: 22px; }
.build-list { display: grid; gap: 8px; }
.build-ability { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.22); }
.build-ability b { font-family: var(--font-head); font-size: .82rem; letter-spacing: .06em; color: var(--gold-2); padding-right: 12px; border-right: 1px solid var(--line-soft); }
.build-ability span { font-size: .88rem; color: #d3d8f5; }
@media (max-width: 520px) { .build-ability { grid-template-columns: 1fr; gap: 4px; } .build-ability b { border-right: 0; padding-right: 0; } }

/* ---------- per-card image background (imageBg) ---------- */
.card-art.has-bg, .mini-art.has-bg { background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--card-color, var(--gold)) 28%, transparent), transparent 70%), var(--art-bg) !important; }
.detail-art.has-bg { background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--card-color, var(--gold)) 30%, transparent), transparent 70%), var(--art-bg) !important; }
.has-bg img, .has-bg img.fit-contain { background: transparent !important; }

/* ---------- legend ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); align-items: center; }
.legend .badge { font-size: .6rem; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 24px 22px 34px; color: rgba(154, 163, 209, 0.7); font-size: .74rem; border-top: 1px solid var(--line-soft); }
.footer p { max-width: 90ch; margin: 0 auto; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 95; padding: 10px 18px; border-radius: 10px;
  background: var(--panel-solid); border: 1px solid var(--line); color: var(--text); font-size: .85rem; box-shadow: var(--shadow); transition: all .3s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .menu-btn { display: grid; }
  .sidenav { position: fixed; top: 61px; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(6, 8, 30, 0.96); padding: 16px; overflow: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .3s var(--ease); }
  .sidenav.open { transform: none; opacity: 1; pointer-events: auto; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-art { max-width: 320px; margin: 0 auto; width: 100%; }
  .detail-hero:has(.gallery) { grid-template-columns: 1fr; }
  .gallery { max-width: 420px; margin: 0 auto; width: 100%; }
  .gallery .detail-art { max-width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 110px 1fr; }
  .panel { padding: 18px; }
  .brand-text small { display: none; }
  .brand-emblem { height: 32px; }
  .brand-text b { font-size: .8rem; }
  .tier-scale { padding-left: 0; }
  .tier-row { grid-template-columns: 1fr; gap: 8px; }
  .tier-cells { display: flex; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .tier-cell { flex: 0 0 150px; scroll-snap-align: start; }
  .feed-item { grid-template-columns: 1fr; gap: 10px; }
  .feed-body { flex-direction: column; }
  .feed-art { width: 100%; }
  .feed-date { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 0 0 8px; flex-direction: row; align-items: center; }
}
@media (max-width: 520px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px 10px 12px; }
  .card-body h3 { font-size: .8rem; letter-spacing: .04em; }
  .card-body .sub { font-size: .7rem; }
  .card-body .summary { display: none; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .pager .btn { max-width: 100%; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
