
:root {
  /* Editorial ink / paper / seal — warm dark for night reading */
  --bg: #0c0b09;
  --bg-elevated: #151310;
  --bg-card: #1a1714;
  --bg-card-hover: #221e1a;
  --border: #2e2a24;
  --border-soft: #242019;
  --text: #f2ebe0;
  --text-muted: #a89f90;
  --text-dim: #6f675c;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.14);
  --accent-strong: #e0b84a;
  --critical: #e07070;
  --critical-bg: rgba(224, 112, 112, 0.12);
  --high: #d4a017;
  --high-bg: rgba(212, 160, 23, 0.12);
  --ok: #6bbf8a;
  --ok-bg: rgba(107, 191, 138, 0.12);
  /* BariBa dualism: Order = paper light / Xtreme = seal vermillion */
  --order: #d8d2c6;
  --xtreme: #c45c3e;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --font: "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", "Hiragino Sans GB",
    system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "Cascadia Code", "Consolas", ui-monospace, monospace;
  --nav-h: 48px;
  --header-h: 52px;
  --header-pad: 0.65rem;
  --header-bg: rgba(12, 11, 9, 0.97);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--nav-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -15%, rgba(201, 162, 39, 0.07), transparent),
    radial-gradient(ellipse 35% 25% at 100% 0%, rgba(196, 92, 62, 0.05), transparent);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--header-pad) 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  font-size: 1.35rem;
  line-height: 1;
  filter: none;
  flex-shrink: 0;
}

.brand h1 {
  margin: 0;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand-title-short { display: none; }
.brand-title-full { display: inline; }

.subtitle {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.header-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.last-updated {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}

.disclaimer {
  margin: 0;
  font-size: 0.72rem;
  color: var(--high);
  background: var(--high-bg);
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 160, 23, 0.28);
}

.sticky-nav {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0.75rem 0.45rem;
  height: var(--nav-h);
  align-items: center;
}

.sticky-nav::-webkit-scrollbar {
  display: none;
}

.sticky-nav > a {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.sticky-nav > a:hover {
  background: var(--accent-soft);
  color: var(--text);
  text-decoration: none;
}

.nav-mobile-extra {
  display: none;
}

.tg-label-short { display: none; }
.tg-label-full { display: inline; }

/* Main */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  background: linear-gradient(180deg, var(--accent), var(--xtreme));
  border-radius: 2px;
}

.section-note {
  margin: -0.5rem 0 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Calendar cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.cal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cal-card:hover {
  background: var(--bg-card-hover);
  border-color: #3d362e;
}

.cal-card.urgency-critical {
  border-color: rgba(255, 107, 107, 0.45);
  background: linear-gradient(135deg, var(--critical-bg), var(--bg-card));
}

.cal-card.urgency-high {
  border-color: rgba(255, 176, 32, 0.4);
  background: linear-gradient(135deg, var(--high-bg), var(--bg-card));
}

.cal-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.cal-card.urgency-critical .cal-date {
  color: var(--critical);
}

.cal-card.urgency-high .cal-date {
  color: var(--high);
}

.cal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.cal-detail {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
}

.cal-title-jp {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-muted);
}

.cal-detail-jp {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.cal-link {
  font-size: 0.78rem;
  margin-top: 0.35rem;
  align-self: flex-start;
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  width: fit-content;
}

.badge-critical {
  background: var(--critical-bg);
  color: var(--critical);
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.badge-high {
  background: var(--high-bg);
  color: var(--high);
  border: 1px solid rgba(255, 176, 32, 0.35);
}

.badge-normal {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid rgba(61, 214, 140, 0.3);
}

/* Overview */
.overview-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 0;
  overflow: hidden;
}

.overview-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.9rem;
}

.overview-row:last-child {
  border-bottom: none;
}

.overview-label {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.82rem;
}

.overview-value {
  color: var(--text);
  word-break: break-word;
}

.overview-note {
  margin: 0.85rem 1.1rem 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
}

.side-order {
  color: var(--order);
  font-weight: 600;
}

.side-xtreme {
  color: var(--xtreme);
  font-weight: 600;
}

.side-both {
  color: var(--ok);
  font-weight: 600;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  max-height: min(70vh, 560px);
  overflow-y: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 920px;
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.data-table th {
  background: #1f1b16;
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-size: 0.75rem;
}

.data-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
  color: var(--text);
}

.data-table tbody tr:hover td {
  background: rgba(201, 162, 39, 0.06);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.sku-name a {
  font-weight: 600;
  color: var(--text);
}

.sku-name a:hover {
  color: var(--accent);
}

.asin {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.asin-warn {
  color: var(--high);
}

/* Exclusives */
.exclusives-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exclusive-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.exclusive-type {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--xtreme);
  background: rgba(196, 92, 62, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.45rem;
}

.exclusive-content {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.exclusive-period {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.exclusive-extra {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.exclusive-extra li {
  margin-bottom: 0.2rem;
}

.exclusive-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--border);
}

.timeline li {
  position: relative;
  padding: 0 0 1.25rem 1.15rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.2rem;
}

.timeline-event {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.timeline-event-jp {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.timeline-link {
  font-size: 0.75rem;
  display: inline-block;
  margin-top: 0.25rem;
}

/* Gaps */
.gaps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gaps-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--high);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.95rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Sources */
.sources-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.source-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.source-group h3 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 700;
}

.source-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-group li {
  margin-bottom: 0.35rem;
}

.source-group a {
  font-size: 0.82rem;
  word-break: break-all;
}


/* Source hub cards */
.hub-note {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.25rem;
}
.hub-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.tag-official {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid rgba(61, 214, 140, 0.35);
}
.tag-secondary {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--high-bg);
  color: var(--high);
  border: 1px solid rgba(255, 176, 32, 0.35);
}
.hub-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.hub-title a { color: var(--text); }
.hub-title a:hover { color: var(--accent); }
.hub-summary {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hub-summary-jp {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.hub-source-name {
  font-weight: 600;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 1.5rem 1rem 2.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Loading / error */
.status-msg {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.status-msg.error {
  color: var(--critical);
}


.social-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.45rem 0 0;
  align-items: center;
}
.tg-cta, .ig-cta, .th-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff !important;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none !important;
  white-space: nowrap;
}
.tg-cta {
  background: linear-gradient(135deg, #2aabee, #229ed9);
  box-shadow: 0 1px 6px rgba(42, 171, 238, 0.28);
}
.ig-cta {
  background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4);
  box-shadow: 0 1px 6px rgba(221, 42, 123, 0.28);
}
.th-cta {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  border-color: rgba(255,255,255,0.28);
}
.tg-cta:hover, .ig-cta:hover, .th-cta:hover {
  filter: brightness(1.08);
  text-decoration: none !important;
}
.tg-cta:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}
.ig-cta:focus-visible {
  outline: 2px solid #f9a8d4;
  outline-offset: 2px;
}
.th-cta:focus-visible {
  outline: 2px solid #e5e5e5;
  outline-offset: 2px;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .overview-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  html {
    scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 0.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* iOS Safari hard fixes */
.site-header { -webkit-transform: translateZ(0); transform: translateZ(0); }
.boot-status { display: none !important; }
.section { display: block !important; visibility: visible !important; opacity: 1 !important; }
main.container { display: block !important; min-height: 50vh; }
body { -webkit-text-size-adjust: 100%; }

  
/* zukan */
.zukan-filters{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 1rem}
.zukan-filter{background:var(--bg-card);color:var(--text-muted);border:1px solid var(--border);border-radius:999px;padding:.35rem .75rem;font-size:.85rem;cursor:pointer}
.zukan-filter.is-active{background:var(--accent);color:#1a1408;border-color:var(--accent);font-weight:700}
.zukan-wave{margin:0 0 1.75rem}
.zukan-wave-title{font-size:1.05rem;margin:0 0 .25rem;color:var(--text)}
.zukan-wave-title span{display:block;font-size:.8rem;font-weight:400;color:var(--text-muted);margin-top:.15rem}
.zukan-wave-date{font-size:.8rem;color:var(--text-muted);margin:0 0 .75rem}
.zukan-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:.85rem}
.zukan-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:.85rem;display:flex;flex-direction:column;gap:.55rem}
.zukan-card-head{display:flex;align-items:center;gap:.5rem}
.zukan-name{margin:0;font-size:1rem;color:var(--text)}
.badge-meta{display:inline-block;background:var(--xtreme);color:#fff;font-size:.65rem;padding:.1rem .35rem;border-radius:4px;vertical-align:middle;margin-left:.25rem}
.rar-pill{font-size:.7rem;font-weight:700;padding:.15rem .45rem;border-radius:6px;letter-spacing:.02em}
.rar-rr{background:#c9a227;color:#1a1408}.rar-bkr{background:linear-gradient(135deg,#e8c547,#8a6a12);color:#1a1408;border:1px solid #f0d878}.rar-bbr{background:#c45c3e;color:#fff}.rar-br{background:#8a6a4a;color:#fff}.rar-r{background:#5a6b7a;color:#fff}.rar-c{background:#5c564c;color:#e8e0d4}
.zukan-faces{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.zukan-faces figure{margin:0;text-align:center}
.zukan-faces img{width:100%;max-width:140px;height:auto;border-radius:50%;background:var(--bg)}
.zukan-faces figcaption{font-size:.7rem;color:var(--text-muted);margin-top:.25rem}
.zukan-stats{font-size:.8rem;color:var(--text-muted);margin:0}
.zukan-stats strong{color:var(--accent-strong)}
.zukan-flavor{font-size:.78rem;line-height:1.45;display:flex;flex-direction:column;gap:.35rem}
.zukan-flavor .zh{color:var(--text);margin:0}
.zukan-flavor .jp{color:var(--text-muted);margin:0}
.zukan-secret,.zukan-flavor-zh{font-size:.8rem;color:var(--text-dim);margin:0}


/* zukan bilingual + chara + coin-spin (from ruby mirror) */
.zukan-fan-disclaimer{
  background:var(--accent-soft);
  border:1px solid rgba(201,162,39,.28);
  border-radius:8px;
  padding:.55rem .75rem;
  color:var(--accent-strong);
}
.zukan-fan-disclaimer a{color:var(--accent-strong);text-decoration:underline}
.zukan-name-block{display:flex;flex-direction:column;gap:.1rem;min-width:0;flex:1}
.zukan-name-zh{margin:0;font-size:1.05rem;color:var(--text);line-height:1.25}
.zukan-name-jp{margin:0;font-size:.78rem;color:var(--text-muted);font-weight:400}
.zukan-media{
  display:grid;
  grid-template-columns:minmax(96px,1fr) minmax(140px,180px);
  gap:.65rem;
  align-items:start;
}
.zukan-chara{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.4rem;
  min-width:0;
}
.zukan-chara figure{margin:0;text-align:center}
.zukan-chara-frame{
  aspect-ratio:1;
  border-radius:10px;
  background:var(--bg);
  border:1px solid var(--border);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.zukan-media .zukan-chara-frame{max-height:88px}
.zukan-chara-img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.zukan-chara-empty{
  font-size:.7rem;
  color:var(--text-dim);
  padding:.5rem;
  text-align:center;
}
.zukan-chara figcaption,
.zukan-coin-caption{
  font-size:.68rem;
  color:var(--text-muted);
  margin-top:.25rem;
}
.zukan-coin-caption{text-align:center;margin:.35rem 0 0}
.zukan-coin-spin-wrap{min-width:0}
/* Ported from ruby-gold-mist-baker .coin-spin */
.coin-spin{
  aspect-ratio:1;
  perspective:700px;
  width:100%;
  max-width:180px;
  margin:0 auto;
  display:block;
}
.coin-spin-inner{
  width:100%;
  height:100%;
  transform-style:preserve-3d;
  animation:coin-spin 3.2s linear infinite;
  display:block;
  position:relative;
}
.coin-spin-face{
  border:1px solid var(--border);
  object-fit:cover;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  border-radius:9999px;
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  background:var(--bg);
}
.coin-spin-back{transform:rotateY(180deg)}
@keyframes coin-spin{
  0%,22%{transform:rotateY(0)}
  50%,72%{transform:rotateY(180deg)}
  to{transform:rotateY(360deg)}
}
.zukan-coin-static{display:none}
.zukan-coin-static figure{margin:0;text-align:center}
.zukan-coin-static-img{
  width:100%;
  max-width:64px;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--bg);
}
@media (prefers-reduced-motion:reduce){
  .coin-spin{display:none}
  .zukan-coin-static{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:.35rem;
    justify-items:center;
  }
  .coin-spin-inner{animation:none}
}
@media (max-width:420px){
  .zukan-media{grid-template-columns:minmax(72px,1fr) minmax(120px,148px)}
  .coin-spin{max-width:148px}
}


    /* Top duo: hub + calendar side by side */
    .top-duo {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      align-items: stretch;
      margin: 0 0 1.25rem;
    }
    .top-duo-pane {
      margin: 0;
      min-width: 0;
      max-height: min(78vh, 920px);
      overflow: auto;
      -webkit-overflow-scrolling: touch;
    }
    .top-duo-pane h2 {
      font-size: clamp(1rem, 2.2vw, 1.25rem);
      position: sticky;
      top: 0;
      background: var(--bg);
      z-index: 2;
      padding-bottom: 0.35rem;
    }
    @media (max-width: 900px) {
      .top-duo {
        grid-template-columns: 1fr;
      }
      .top-duo-pane {
        max-height: none;
      }
    }

  

/* ===== Multi-page enhancements (2026) ===== */
.site-header {
  background: var(--header-bg);
}

.brand a {
  color: inherit;
  text-decoration: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
}
.brand a:hover { text-decoration: none; }

.sticky-nav > a.is-active {
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.4);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0;
  font-size: 0.75rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  min-height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
}
.nav-toggle-bars {
  display: block;
  width: 16px;
  height: 10px;
  background:
    linear-gradient(var(--text), var(--text)) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 50% / 100% 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 100% / 100% 1.5px no-repeat;
}
.nav-toggle-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tg-cta-bar {
  display: none;
}

/* —— Mobile chrome: single slim ~48–52px row —— */
@media (max-width: 640px) {
  :root {
    --header-h: 48px;
    --header-pad: 0;
    --nav-h: 0px;
  }

  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.65rem;
    min-height: var(--header-h);
    max-height: var(--header-h);
  }

  .brand-mark { font-size: 1.1rem; }
  .brand h1 { font-size: 0.88rem; font-weight: 700; }
  .brand-title-full { display: none; }
  .brand-title-short { display: inline; }
  .subtitle { display: none; }

  .header-meta {
    flex-direction: row;
    align-items: center;
    width: auto;
    text-align: right;
    gap: 0.35rem;
    margin-left: auto;
  }

  .header-desk-only { display: none !important; }

  .header-actions {
    display: inline-flex;
  }

  .tg-cta-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.55rem;
    min-height: 36px;
    height: 36px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: none;
  }
  .tg-cta-bar .tg-label-full { display: none; }
  .tg-cta-bar .tg-label-short { display: inline; }

  .nav-toggle { display: inline-flex; position: relative; }

  .sticky-nav {
    display: none;
    flex-direction: column;
    height: auto;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    padding: 0.4rem 0.65rem 0.75rem;
    gap: 0.15rem;
    align-items: stretch;
    border-top: 1px solid var(--border-soft);
    background: var(--bg-elevated);
  }
  .sticky-nav.is-open { display: flex; }
  .sticky-nav > a {
    padding: 0.7rem 0.85rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
  }
  .nav-mobile-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.55rem 0.15rem 0.15rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border-soft);
  }
  .nav-mobile-extra .ig-cta,
  .nav-mobile-extra .th-cta {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 40px;
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }
}

@media (min-width: 641px) {
  .tg-cta-bar { display: none !important; }
  .nav-mobile-extra { display: none !important; }
  .header-actions { display: none !important; }
}

/* Solid cards — no glassmorphism */
.hub-card,
.cal-card,
.explore-card,
.zukan-card,
.source-card,
.overview-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 12px rgba(0,0,0,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hub-card:hover,
.cal-card:hover,
.explore-card:hover,
.zukan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.38);
  border-color: rgba(201, 162, 39, 0.35);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .hub-card, .cal-card, .explore-card, .zukan-card,
  .hub-card:hover, .cal-card:hover, .explore-card:hover, .zukan-card:hover {
    transition: none;
    transform: none;
  }
  .page-enter { animation: none !important; }
}

/* Page enter */
.page-enter {
  animation: pageIn 0.45s ease both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Explore quick cards on home */
.explore {
  margin: 2rem 0 1rem;
}
.explore h2 { margin-bottom: 1rem; }
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}
.explore-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  min-height: 96px;
}
.explore-card:hover { text-decoration: none; color: var(--text); }
.explore-card .ex-icon { font-size: 1.4rem; line-height: 1; }
.explore-card .ex-title { font-weight: 700; font-size: 0.95rem; }
.explore-card .ex-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

/* Compact sources strip */
.sources-strip {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.sources-strip p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }
.sources-strip a.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(201,162,39,0.35);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 44px;
}
.sources-strip a.btn-link:hover { text-decoration: none; background: rgba(201,162,39,0.22); }

/* Zukan toolbar */
.zukan-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  position: static;
}
.zukan-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.zukan-search {
  flex: 1 1 200px;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.zukan-search:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.zukan-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.zukan-reset {
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
}
.zukan-reset:hover {
  color: var(--text);
  border-color: var(--accent);
}
.zukan-filter-fold {
  border-top: 1px solid var(--border-soft);
  padding-top: 0.55rem;
  margin: 0;
}
.zukan-filter-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 44px;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.15rem 0.1rem;
}
.zukan-filter-summary::-webkit-details-marker { display: none; }
.zukan-filter-summary::marker { content: ''; }
.zukan-filter-summary-label {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.zukan-filter-summary-label::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.zukan-filter-fold[open] .zukan-filter-summary-label::before {
  transform: rotate(45deg);
  margin-top: -0.15rem;
}
.zukan-filter-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 400;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 58%;
}
.zukan-filter-hint.is-active {
  color: var(--accent);
  font-weight: 600;
}
.zukan-filter-fold .zukan-filter-groups {
  padding-top: 0.55rem;
}
.zukan-filter-groups {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.zukan-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.zukan-filter-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  min-width: 2.5rem;
  margin-right: 0.15rem;
}
.zukan-filters { margin-bottom: 0; } /* override old */
.zukan-empty {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin: 1rem 0;
}
.zukan-empty.is-visible { display: block; }
.zukan-card.is-hidden { display: none !important; }
.zukan-wave.is-hidden { display: none !important; }

/* SKU sticky + filter */
.sku-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  align-items: center;
}
.sku-search {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.sku-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}
.sku-table-wrap table { margin: 0; }
.sku-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1f1b16;
  box-shadow: 0 1px 0 var(--border);
}
.sku-table-wrap tr.is-hidden { display: none; }

/* Timeline pacing */
.timeline > li {
  animation: none;
}
.timeline > li {
  margin-bottom: 1.15rem;
  padding-bottom: 1.15rem;
}

/* Footer tweak */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-soft);
  margin-top: 1rem;
}
.site-footer a { color: var(--text-muted); }

/* Page title on inner pages */
.page-hero {
  margin-bottom: 1.5rem;
}
.page-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
}
.page-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* TG CTA — accessible, not dominating */
.tg-cta {
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.social-cta .tg-cta {
  box-shadow: 0 1px 6px rgba(34, 158, 217, 0.28);
}


/* zukan exclusive + vol tweaks */
.zukan-name-zh { word-break: break-word; }
.badge-excl {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  padding: .12rem .4rem;
  border-radius: 6px;
  background: #6b3a2a;
  color: #f5e6d8;
  letter-spacing: .02em;
  margin-right: .25rem;
  align-self: center;
}
.zukan-card-excl .zukan-card-head {
  flex-wrap: wrap;
  gap: .35rem;
}
.zukan-media-coin-only {
  justify-content: center;
}
.zukan-media-coin-only .zukan-coin-spin-wrap {
  margin: 0 auto;
}
.zukan-wave-note {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0 0 .75rem;
  line-height: 1.45;
}
.zukan-wave-excl {
  border: 1px solid rgba(180, 100, 60, 0.35);
  border-radius: 12px;
  padding: .85rem 1rem .4rem;
  background: rgba(80, 40, 20, 0.18);
  margin-bottom: 1.5rem;
}
.zukan-excl-note {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: .25rem;
}

/* zukan price + pack hero */
.zukan-wave-price {
  margin: .15rem 0 .65rem;
  font-size: .92rem;
  color: var(--text);
}
.zukan-wave-price .price-label {
  color: var(--text-muted);
  margin-right: .35rem;
}
.zukan-wave-price strong {
  color: var(--accent);
  font-weight: 800;
}
.zukan-wave-hero {
  margin: 0 0 1rem;
}
.zukan-pack-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 0 0 .5rem;
}
.zukan-pack {
  margin: 0;
  flex: 1 1 220px;
  max-width: 420px;
  background: rgba(0,0,0,.18);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.zukan-pack-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  background: #1a140f;
}
.zukan-pack figcaption {
  font-size: .72rem;
  color: var(--text-muted);
  padding: .35rem .55rem .5rem;
  line-height: 1.35;
}
.zukan-pack-missing {
  font-size: .8rem;
  color: var(--text-muted);
  margin: .25rem 0 .75rem;
}
@media (max-width: 640px) {
  .zukan-pack { max-width: 100%; flex-basis: 100%; }
  .zukan-pack-img { max-height: 220px; }
}

/* ——— Character (species) detail pages + zukan variant badges ——— */
.char-variant-badge {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  margin: .15rem .35rem .15rem 0;
  padding: .12rem .45rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #5c3a1a;
  background: linear-gradient(135deg, #f3d9a8, #e8c48a);
  border: 1px solid rgba(139, 90, 43, .35);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
}
.char-variant-badge:hover,
.char-variant-badge:focus-visible {
  color: #3d2410;
  background: linear-gradient(135deg, #ffe6b8, #f0c878);
  outline: 2px solid rgba(180, 120, 50, .45);
  outline-offset: 1px;
}
.char-name-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(139, 90, 43, .45);
}
.char-name-link:hover,
.char-name-link:focus-visible {
  color: #c4782a;
  border-bottom-style: solid;
}

.char-crumb {
  margin: .5rem 0 1rem;
  font-size: .85rem;
}
.char-crumb a {
  color: var(--accent, #c4782a);
  text-decoration: none;
}
.char-crumb a:hover { text-decoration: underline; }

.char-page {
  background: rgba(255, 248, 235, .04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.4rem;
  margin-bottom: 2rem;
}
.char-head { margin-bottom: 1rem; }
.char-variant-count {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  margin: 0 0 .55rem;
  padding: .2rem .65rem;
  font-size: .9rem;
  color: #5c3a1a;
  background: linear-gradient(135deg, #f3d9a8, #e8c48a);
  border: 1px solid rgba(139, 90, 43, .35);
  border-radius: 999px;
}
.char-variant-count strong {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.char-title-zh {
  margin: .2rem 0 .15rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.3;
  color: var(--text);
}
.char-title-jp {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.char-alts {
  margin: .25rem 0 .5rem;
  font-size: .78rem;
  color: var(--text-muted);
}

.char-hero-media {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-start;
  margin: 1rem 0 1.25rem;
}
.char-hero-chara { flex: 0 1 180px; max-width: 200px; }
.char-hero-chara .zukan-chara-frame { max-height: 96px; }
.char-hero-coin { flex: 0 1 240px; margin: 0; min-width: 200px; }
.char-hero-coin .coin-spin { max-width: 220px; }

.char-flavor { margin: .75rem 0 1.25rem; }

.char-variants h2 {
  margin: 0 0 .4rem;
  font-size: 1.15rem;
}
.char-variant-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: .75rem;
}
.char-variant {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  padding: .75rem .85rem;
  background: rgba(0, 0, 0, .16);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.char-var-thumbs {
  display: flex;
  gap: .35rem;
  flex: 0 0 auto;
}
.char-var-thumbs img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: #1a140f;
  border: 1px solid rgba(255, 255, 255, .08);
}
.char-var-body { flex: 1 1 200px; min-width: 0; }
.char-var-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  margin-bottom: .25rem;
}
.char-var-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}
.char-var-product {
  margin: .15rem 0;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.char-var-product-jp {
  display: block;
  font-size: .75rem;
  opacity: .85;
}
.char-var-stats {
  margin: .3rem 0 0;
  font-size: .8rem;
  color: var(--text);
}
.char-var-stats span { color: var(--text-muted); }
.char-ox-meta {
  font-size: .72rem;
  color: var(--text-muted);
}
.char-var-note {
  margin: .35rem 0 0;
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .char-page { padding: .85rem .75rem 1.1rem; }
  .char-var-thumbs img { width: 48px; height: 48px; }
  .char-hero-chara { max-width: 160px; flex-basis: 140px; }
  .char-hero-coin { flex-basis: 100%; max-width: 260px; }
  .char-hero-coin .coin-spin { max-width: 200px; }
}

/* ——— Product intro (商品介紹) ——— */
.prod-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
}
.prod-toc a {
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
}
.prod-toc a:hover {
  color: var(--text);
  background: var(--accent-soft);
  text-decoration: none;
}
.prod-callout {
  margin: 0 0 1.35rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.prod-callout p { margin: 0.35rem 0; }
.prod-callout p:first-child { margin-top: 0; }
.prod-callout p:last-child { margin-bottom: 0; }
.prod-group {
  margin: 1.6rem 0 0.7rem;
  font-size: 1.02rem;
  font-weight: 700;
}
.prod-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.prod-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem 1rem;
}
.prod-card .prod-thumb {
  display: block;
  width: min(100%, 220px);
  max-height: 220px;
  height: auto;
  aspect-ratio: 1;
  margin: 0 0 0.7rem;
  object-fit: contain;
  object-position: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (max-width: 640px) {
  .prod-card .prod-thumb {
    width: min(100%, 200px);
    max-height: 200px;
  }
}
.prod-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
}
.prod-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
}
.prod-card h3 a { color: var(--text); }
.prod-card h3 a:hover { color: var(--accent); }
.prod-jp {
  margin: 0.2rem 0 0.55rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.prod-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.35rem 0.85rem;
  margin: 0 0 0.7rem;
}
.prod-facts div { min-width: 0; }
.prod-facts dt {
  font-size: 0.68rem;
  color: var(--text-dim);
}
.prod-facts dd {
  margin: 0;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.prod-card p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}
.prod-card ul {
  margin: 0.3rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
}
.prod-card li { margin: 0.15rem 0; }
.prod-card .prod-id {
  font-family: var(--mono);
  font-size: 0.78rem;
}

/* ——— Per-coin variant pages + zukan CTAs ——— */
.zukan-coin-cta {
  margin: .15rem 0 .45rem;
  font-size: .78rem;
}
.zukan-coin-cta a {
  color: var(--accent, #c4782a);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(139, 90, 43, .45);
}
.zukan-coin-cta a:hover {
  border-bottom-style: solid;
}

.coin-sku-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .55rem;
  margin: 0 0 .45rem;
}
.coin-sku-id {
  font-size: .72rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  letter-spacing: .02em;
}
.coin-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .55rem .75rem;
  margin: .75rem 0 1rem;
  padding: .75rem .85rem;
  background: rgba(0, 0, 0, .16);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.coin-facts dt {
  font-size: .68rem;
  color: var(--text-muted);
  margin: 0 0 .1rem;
}
.coin-facts dd {
  margin: 0;
  font-size: .88rem;
  line-height: 1.35;
}
.coin-fact-jp {
  font-size: .72rem;
  color: var(--text-muted);
}

.coin-related h2 {
  margin: 1rem 0 .35rem;
  font-size: 1.1rem;
}
.coin-rel-list {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.coin-rel a,
.coin-rel.is-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  padding: .45rem .65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, .12);
  text-decoration: none;
  color: var(--text);
  font-size: .85rem;
}
.coin-rel a:hover {
  border-color: rgba(196, 120, 42, .5);
  background: rgba(196, 120, 42, .08);
}
.coin-rel.is-current {
  border-color: rgba(196, 120, 42, .55);
  background: linear-gradient(135deg, rgba(243, 217, 168, .18), rgba(232, 196, 138, .1));
  font-weight: 600;
}

.char-variant-link {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  align-items: center;
  padding: .7rem .85rem;
  background: rgba(0, 0, 0, .16);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.char-variant-link:hover {
  border-color: rgba(196, 120, 42, .5);
  background: rgba(196, 120, 42, .08);
}
.char-var-thumb-one {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: #1a140f;
  border: 1px solid rgba(255, 255, 255, .08);
}
.char-var-sku {
  display: block;
  font-size: .68rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  margin-top: .15rem;
}
.char-hero-coin-only {
  justify-content: flex-start;
}
.char-hero-coin-only .char-hero-coin {
  flex: 0 1 180px;
}

.sources-subhead { margin: 1.25rem 0 .6rem; font-size: 1.05rem; }


/* ——— Variants gallery (variants.html) ——— */
.vg-toc {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .4rem;
  margin: .75rem 0 1.25rem;
  padding: .65rem .7rem;
  background: rgba(0, 0, 0, .14);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.vg-toc a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .5rem;
  font-size: .75rem;
  color: var(--text);
  text-decoration: none;
  background: rgba(243, 217, 168, .12);
  border: 1px solid rgba(139, 90, 43, .28);
  border-radius: 999px;
}
.vg-toc a:hover {
  background: rgba(243, 217, 168, .28);
  color: #c4782a;
}
.vg-toc-n {
  font-size: .68rem;
  font-weight: 700;
  color: #5c3a1a;
  background: linear-gradient(135deg, #f3d9a8, #e8c48a);
  border-radius: 999px;
  padding: 0 .35rem;
  font-variant-numeric: tabular-nums;
}
.vg-species {
  margin: 0 0 1.5rem;
  padding-top: .25rem;
}
.vg-species-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .75rem;
  margin: 0 0 .65rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--border);
}
.vg-species-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.vg-species-head h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(139, 90, 43, .4);
}
.vg-species-head h3 a:hover { color: #c4782a; }
.vg-species-count {
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
}
.vg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .85rem;
}
.vg-card {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .75rem .85rem;
  background: rgba(0, 0, 0, .16);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  min-height: 120px;
}
.vg-card:hover {
  border-color: rgba(196, 120, 42, .5);
  background: rgba(196, 120, 42, .08);
}
.vg-faces {
  display: flex;
  flex-direction: row;
  gap: .35rem;
  flex: 0 0 auto;
}
.vg-faces img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 50%;
  background: #1a140f;
  border: 1px solid rgba(255, 255, 255, .08);
}
.vg-face-empty {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  border: 1px dashed rgba(255, 255, 255, .12);
}
.vg-body {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.vg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
}
.vg-title {
  font-size: .82rem;
  line-height: 1.25;
  font-weight: 700;
}
.vg-jp {
  font-size: .72rem;
  color: var(--text-muted);
}
.vg-product {
  font-size: .68rem;
  color: var(--text-muted);
  line-height: 1.3;
}
@media (max-width: 640px) {
  .vg-grid { grid-template-columns: 1fr; gap: .65rem; }
  .vg-card { flex-direction: row; align-items: center; padding: .65rem; }
  .vg-faces { flex-direction: row; }
  .vg-faces img, .vg-face-empty { width: 72px; height: 72px; }
}
