/* 真假档案 · Real or Legend — archive shell, card catalog, records, story player. Single deliberate dark-archive theme. */
:root {
  --ground: #1D2320;
  --ground-2: #1A1F1C;
  --drawer: #2A312D;
  --drawer-open: #333B36;
  --line: rgba(231, 228, 218, 0.10);
  --line-strong: rgba(231, 228, 218, 0.18);
  --text: #E7E4DA;
  --text-2: #B9BAAF;
  --text-3: #8E8F85;
  --paper: #F1ECDF;
  --paper-2: #E9E4D6;
  --paper-plate: #F4F0E4;
  --manila: #D8C59B;
  --manila-ink: #4A3F2A;
  --ink: #1E221F;
  --ink-2: #3A3D36;
  --ink-3: #585B52;
  --stamp: #C24A3A;
  --stamp-soft: #E58A7C;
  --carbon: #4F6BC0;
  --brass: #A98B55;
  --brass-bright: #BE9C60;
  --led: #FF4B3E;
  --led-off: rgba(255, 75, 62, 0.14);
  --panel: #121313;
  --f-display: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", serif;
  --f-type: "Courier Prime", "Courier New", ui-monospace, monospace;
  --f-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 16px/1.7 var(--f-ui); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--manila); text-decoration: none; }
a:hover { color: var(--paper); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 4px; }
.skip:focus { left: 8px; }
.type { font-family: var(--f-type); }
.eyebrow { font-family: var(--f-type); font-size: 12px; letter-spacing: 0.22em; color: var(--brass); text-transform: none; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 900px) { .wrap { padding-left: 64px; padding-right: 64px; } }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: flex; align-items: baseline; gap: 10px; color: var(--paper); min-height: 44px; align-self: stretch; align-items: center; }
.wordmark:hover { color: var(--paper); }
.wordmark-main { font-family: var(--f-display); font-weight: 900; font-size: 20px; letter-spacing: 0.03em; }
.wordmark-sub { font-family: var(--f-type); font-size: 11px; letter-spacing: 0.18em; color: var(--brass); }
.site-nav { display: none; align-items: center; gap: 36px; font-size: 15px; }
.site-nav a { color: var(--manila); padding: 10px 0; }
.site-nav a:hover { color: var(--paper); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 6px; font-family: var(--f-type); font-size: 13px; }
.lang-switch a { min-width: 36px; height: 34px; padding: 0 9px; display: flex; align-items: center; justify-content: center; color: var(--text-2); border-radius: 4px; }
.lang-switch a[aria-current="true"] { background: var(--paper); color: var(--ink); }
.menu-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--text); cursor: pointer; border-radius: 6px; }
.mobile-nav { border-bottom: 1px solid var(--line); background: var(--ground-2); }
.mobile-nav .wrap { display: flex; flex-direction: column; padding-top: 6px; padding-bottom: 12px; }
.mobile-nav a { min-height: 48px; display: flex; align-items: center; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }
@media (max-width: 899px) { .header-tools .lang-switch a { min-width: 34px; padding: 0 7px; } }
@media (min-width: 900px) {
  .site-header .wrap { height: 76px; }
  .wordmark-main { font-size: 24px; }
  .wordmark-sub { font-size: 13px; }
  .site-nav { display: flex; }
  .menu-btn, .mobile-nav { display: none !important; }
}
.lang-banner { background: var(--paper); color: var(--ink); font-size: 14px; }
.lang-banner .wrap { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang-banner a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lang-banner button { min-width: 44px; height: 44px; background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 13px; }

/* ---------- buttons ---------- */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px 0 20px; background: var(--stamp); color: #FBF7EE; border: 0; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn-primary:hover { color: #FBF7EE; background: #B03F31; }
.btn-line { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--manila); border-bottom: 1px solid rgba(216, 197, 155, 0.5); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid rgba(216, 197, 155, 0.45); border-radius: 6px; color: var(--manila); font-size: 15px; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 44px; }
.hero .wrap { display: grid; gap: 40px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero h1 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(34px, 9vw, 64px); line-height: 1.24; color: var(--paper); text-wrap: balance; }
.hero h1 span { display: block; }
.hero-lede { margin: 0; max-width: 520px; font-size: 16px; line-height: 1.85; color: var(--text-2); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 4px; }
html:lang(en) .hero h1 { line-height: 1.16; }
@media (min-width: 900px) {
  .hero { padding: 88px 0 104px; }
  .hero .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; }
  .hero-copy { gap: 28px; }
  .hero-lede { font-size: 18px; }
  .hero .folder { transform: rotate(1.2deg); }
}

/* ---------- folder and index card ---------- */
.folder { position: relative; padding-top: 30px; }
.folder-tab { position: absolute; top: 0; left: 18px; min-width: 116px; height: 32px; padding: 0 14px; background: var(--manila); border-radius: 7px 7px 0 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-type); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; color: var(--manila-ink); }
.folder-body { background: var(--manila); border-radius: 0 7px 7px 7px; padding: 14px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); }
.card { position: relative; background: var(--paper); color: var(--ink); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.card-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(194, 74, 58, 0.55); font-family: var(--f-type); font-size: 12px; letter-spacing: 0.1em; color: var(--ink-3); }
.card-title { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 36px; line-height: 1.15; color: var(--ink); }
.card-logline { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.stamp { position: absolute; padding: 3px 8px 3px 11px; border: 2px solid var(--stamp); color: var(--stamp); font-family: var(--f-display); font-weight: 900; font-size: 14px; letter-spacing: 0.2em; transform: rotate(-8deg); white-space: nowrap; pointer-events: none; }
.card-copy { display: flex; flex-direction: column; gap: 8px; }
.card-copy .card-title { padding-right: 84px; }
.meta-rows { display: flex; flex-direction: column; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(79, 107, 192, 0.25); font-size: 15px; }
.meta-row span:first-child { font-family: var(--f-type); color: var(--ink-3); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.led-chip { background: var(--panel); border-radius: 6px; padding: 7px 12px; font-family: var(--f-type); font-weight: 700; font-size: 20px; letter-spacing: 0.14em; color: var(--led); line-height: 1.2; }
.card-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--ink); }
.card-link:hover { color: var(--stamp); }
@media (min-width: 900px) {
  .folder { padding-top: 32px; }
  .folder-tab { left: 32px; min-width: 150px; height: 36px; font-size: 14px; letter-spacing: 0.16em; }
  .folder-body { padding: 24px; }
  .card { padding: 20px 34px 30px; gap: 22px; }
  .card-head { font-size: 13px; letter-spacing: 0.12em; }
  .card-title { font-size: 48px; }
  .card-logline { font-size: 18px; }
  .card .stamp { font-size: 18px; border-width: 3px; padding: 5px 12px 5px 16px; }
  .card-copy .card-title { padding-right: 120px; }
}

/* ---------- sections ---------- */
.section { padding: 44px 0; }
.section-alt { background: var(--ground-2); border-top: 1px solid rgba(231, 228, 218, 0.08); border-bottom: 1px solid rgba(231, 228, 218, 0.08); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 28px; line-height: 1.3; color: var(--paper); text-wrap: balance; }
.section-note { margin: 0; font-size: 15px; line-height: 1.8; color: var(--text-2); }
@media (min-width: 900px) {
  .section { padding: 88px 0; }
  .section-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
  .section-head > div { display: flex; flex-direction: column; gap: 14px; }
  .section-head h2 { font-size: 40px; line-height: 1.25; }
  .section-note { max-width: 380px; }
}

/* ---------- cabinet ---------- */
.cabinet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.drawer { position: relative; background: var(--drawer); border: 1px solid rgba(231, 228, 218, 0.09); border-radius: 5px; padding: 18px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.28); color: var(--text); min-height: 44px; }
a.drawer:hover { border-color: rgba(216, 197, 155, 0.45); color: var(--text); }
.drawer.is-open { background: var(--drawer-open); border-color: rgba(216, 197, 155, 0.40); padding-top: 6px; }
.drawer-tabs { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 14px; }
.drawer-tabs span { display: block; background: #DDD4BE; border-radius: 2px 2px 0 0; }
.drawer-tabs span:nth-child(1) { width: 30px; height: 8px; }
.drawer-tabs span:nth-child(2) { width: 52px; height: 14px; background: var(--paper); font-family: var(--f-type); font-weight: 700; font-size: 0; color: var(--stamp); display: flex; align-items: center; justify-content: center; }
.drawer-tabs span:nth-child(3) { width: 30px; height: 6px; background: #CFC6AE; }
.label-holder { width: 120px; padding: 5px; background: var(--brass); border-radius: 3px; }
.drawer.is-open .label-holder { background: var(--brass-bright); }
.label-card { background: var(--paper); padding: 6px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.label-code { font-family: var(--f-type); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; color: var(--stamp); }
.label-name { font-family: var(--f-display); font-weight: 900; font-size: 20px; line-height: 1.25; color: var(--ink); text-align: center; }
html:lang(en) .label-name { font-size: 17px; }
.handle { width: 64px; height: 10px; border: 2px solid var(--brass); border-top: 0; border-radius: 0 0 10px 10px; }
.drawer.is-open .handle { border-color: var(--brass-bright); }
.drawer-line { display: none; margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-2); text-align: center; text-wrap: balance; }
.drawer.is-open .drawer-line { color: #D5D3C8; }
.drawer-status { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--f-type); font-size: 12px; color: var(--text-3); text-align: center; }
.drawer-status .story { display: none; }
.drawer.is-open .drawer-status { color: var(--stamp-soft); }
.dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--stamp); }
@media (min-width: 900px) {
  .cabinet { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .drawer { padding: 40px 22px 22px; gap: 16px; border-radius: 6px; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.28); }
  .drawer.is-open { padding-top: 10px; }
  .drawer-tabs { height: 30px; gap: 6px; }
  .drawer-tabs span:nth-child(1) { width: 54px; height: 16px; }
  .drawer-tabs span:nth-child(2) { width: 88px; height: 30px; font-size: 12px; letter-spacing: 0.08em; }
  .drawer-tabs span:nth-child(3) { width: 54px; height: 12px; }
  .label-holder { width: 176px; padding: 6px; }
  .label-card { padding: 8px 10px 10px; gap: 2px; }
  .label-code { font-size: 13px; letter-spacing: 0.22em; }
  .label-name { font-size: 24px; line-height: 1.2; }
  html:lang(en) .label-name { font-size: 21px; }
  .handle { width: 92px; height: 14px; border-radius: 0 0 14px 14px; }
  .drawer-line { display: block; min-height: 48px; }
  .drawer-status { align-self: stretch; padding-top: 12px; border-top: 1px dashed rgba(231, 228, 218, 0.14); font-size: 13px; gap: 8px; }
  .drawer.is-open .drawer-status { border-top-color: rgba(216, 197, 155, 0.30); }
  .drawer-status .story { display: inline; }
  .dot { width: 7px; height: 7px; }
}

/* ---------- records ledger ---------- */
.records-layout { display: grid; gap: 22px; }
.records-intro { display: flex; flex-direction: column; gap: 10px; }
.records-intro h2 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 28px; line-height: 1.3; color: var(--paper); }
.ledger { background: var(--paper); color: var(--ink); border-radius: 4px; border-top: 3px solid rgba(194, 74, 58, 0.6); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28); }
.ledger-head { display: none; }
.ledger-row { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-bottom: 1px solid rgba(79, 107, 192, 0.24); color: var(--ink); }
.ledger-row:last-child { border-bottom: 0; }
a.ledger-row:hover { background: #F6F2E8; color: var(--ink); }
.ledger-id { font-family: var(--f-type); font-weight: 700; font-size: 13px; color: var(--carbon); }
.ledger-title { font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1.5; }
.ledger-note { display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.ledger-drawer { display: none; font-size: 14px; color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid rgba(88, 91, 82, 0.35); border-radius: 3px; font-family: var(--f-type); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }
.ledger-row.is-draft .ledger-title { color: #6A6C63; }
@media (min-width: 900px) {
  .records-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .records-intro { gap: 20px; padding-top: 12px; }
  .records-intro h2 { font-size: 40px; line-height: 1.25; }
  .records-intro .section-note { font-size: 16px; max-width: none; }
  .ledger { border-top: 0; }
  .ledger-head, .ledger-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 96px; gap: 20px; align-items: baseline; padding: 20px 32px; }
  .ledger-head { padding: 18px 32px 14px; border-bottom: 2px solid rgba(194, 74, 58, 0.6); font-family: var(--f-type); font-size: 12px; letter-spacing: 0.16em; color: var(--ink-3); }
  .ledger-id { font-size: 15px; }
  .ledger-title { font-size: 19px; }
  .ledger-drawer { display: block; }
  .ledger-main { display: flex; flex-direction: column; gap: 6px; }
}
.ledger-main { display: flex; flex-direction: column; gap: 6px; }

/* ---------- videos ---------- */
.video-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-right: -20px; padding-right: 20px; scroll-snap-type: x mandatory; }
.video { flex: none; width: 200px; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; }
.video.is-landscape { width: 300px; }
.thumb { position: relative; background: #101412; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 9 / 16; }
.video.is-landscape .thumb { aspect-ratio: 16 / 9; }
.thumb-chip { position: absolute; top: 10px; left: 10px; padding: 4px 8px; background: rgba(241, 236, 223, 0.92); color: var(--ink); border-radius: 3px; font-family: var(--f-type); font-size: 11px; }
.thumb-time { position: absolute; bottom: 10px; right: 10px; font-family: var(--f-type); font-size: 12px; color: var(--text); }
.motif-doors { display: flex; gap: 5%; height: 60%; width: 52%; }
.motif-doors i { flex: 1; background: #1C221F; border: 1px solid rgba(231, 228, 218, 0.08); }
.motif-doors b { width: 8%; background: #C9A45C; opacity: 0.85; }
.motif-four { width: 46%; height: 42%; background: #1C221F; border: 1px solid rgba(231, 228, 218, 0.08); display: flex; align-items: center; justify-content: center; font-family: var(--f-type); font-weight: 700; font-size: 40px; color: var(--led); }
.motif-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 52%; }
.motif-buttons i { aspect-ratio: 1; border: 1px solid rgba(231, 228, 218, 0.18); border-radius: 50%; }
.motif-buttons i:nth-child(4) { border: 1px dashed rgba(255, 75, 62, 0.7); }
.video-kind { font-family: var(--f-type); font-size: 11px; letter-spacing: 0.12em; color: var(--brass); }
.video-title { font-size: 15px; line-height: 1.5; color: var(--text); }
@media (min-width: 900px) {
  .video-row { display: grid; grid-template-columns: minmax(0, 3.16fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; overflow: visible; margin-right: 0; padding-right: 0; align-items: start; }
  .video, .video.is-landscape { width: auto; gap: 14px; }
  .video-row.is-portrait-only { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .video.is-landscape .video-title { font-size: 17px; }
  .video-kind { font-size: 12px; }
  .motif-four { font-size: 48px; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand { display: flex; align-items: baseline; gap: 10px; }
.footer-brand .wordmark-main { font-size: 18px; color: var(--paper); }
.footer-text { margin: 0; max-width: 620px; font-size: 13px; line-height: 1.8; color: var(--text-3); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--f-type); font-size: 12px; color: var(--text-3); }
@media (min-width: 900px) {
  .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: flex-start; padding-top: 48px; padding-bottom: 56px; }
  .footer-meta { flex-direction: column; align-items: flex-end; }
}

/* ---------- category page ---------- */
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 15px; color: var(--manila); }
.category-head { background: var(--ground-2); border-bottom: 1px solid rgba(231, 228, 218, 0.08); padding: 12px 0 28px; }
.category-head .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.category-label { display: flex; align-items: center; gap: 16px; }
.category-label .label-holder { width: 132px; }
.category-label .label-name { font-size: 26px; }
.category-facts { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-type); font-size: 12px; letter-spacing: 0.06em; color: var(--text-3); }
.category-facts .is-open { color: var(--stamp-soft); }
.category-head h1 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1.3; color: var(--paper); }
.category-intro { margin: 0; max-width: 640px; font-size: 15px; line-height: 1.85; color: var(--text-2); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 22px; font-size: 14px; color: var(--text-2); }
.jump a:hover { border-color: rgba(216, 197, 155, 0.5); color: var(--paper); }
.stack { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .category-head { padding: 24px 0 48px; }
  .category-head h1 { font-size: 44px; }
  .category-intro { font-size: 17px; }
  .stack.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
}
.planned { border: 1px dashed rgba(216, 197, 155, 0.45); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: rgba(42, 49, 45, 0.5); }
.planned-head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-type); font-size: 12px; letter-spacing: 0.1em; color: var(--text-3); }
.planned h3 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 24px; line-height: 1.3; color: var(--paper); }
.planned p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--text-2); }
.interest { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px dashed rgba(231, 228, 218, 0.14); }
.interest-ask { font-size: 14px; color: var(--text); }
.field-row { display: flex; gap: 8px; }
.field { flex: 1; min-width: 0; height: 48px; padding: 0 14px; background: #151A17; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 16px; color: var(--text); }
.field::placeholder { color: #6F7168; }
.field[aria-invalid="true"] { border-color: var(--stamp-soft); }
.field-btn { flex: none; min-height: 48px; padding: 0 16px; background: var(--paper); color: var(--ink); border: 0; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; }
.field-btn:hover { background: #FFFFFF; }
.field-error { margin: 0; min-height: 1.4em; font-size: 13.5px; color: var(--stamp-soft); }
.fine { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--text-3); }
.done { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.7; color: var(--paper); }
@media (max-width: 420px) { .field-row { flex-direction: column; } .field-btn { width: 100%; } }
.empty { margin: 0; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 6px; font-size: 15px; color: var(--text-3); }

/* ---------- record page ---------- */
.record-wrap { max-width: 820px; margin: 0 auto; padding: 8px 20px 56px; }
.record { position: relative; background: var(--paper); color: var(--ink); border-radius: 4px; padding: 22px 20px 30px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3); }
.record-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(194, 74, 58, 0.55); font-family: var(--f-type); font-size: 12px; letter-spacing: 0.1em; color: var(--ink-3); }
.record .stamp { top: 58px; right: 18px; }
.record h1 { margin: 26px 0 14px; padding-right: 88px; font-family: var(--f-display); font-weight: 900; font-size: 28px; line-height: 1.35; color: var(--ink); text-wrap: balance; }
.record-dek { margin: 0 0 22px; font-family: var(--f-display); font-weight: 500; font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.record-body h2 { margin: 30px 0 10px; font-family: var(--f-display); font-weight: 900; font-size: 20px; line-height: 1.45; color: var(--ink); }
.record-faq h3 { margin: 18px 0 6px; font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1.5; color: var(--ink); }
.record-faq p { margin: 0 0 10px; }
.record-list { margin: 0 0 18px; padding-left: 1.2em; font-family: var(--f-display); font-weight: 500; font-size: 16px; line-height: 1.75; color: #23261F; }
.record-list li { margin-bottom: 8px; }
.record-list li::marker { color: var(--stamp); }
.record-body p { margin: 0 0 14px; font-family: var(--f-display); font-weight: 500; font-size: 17px; line-height: 1.95; color: #23261F; }
html:lang(en) .record-body p, html:lang(en) .record-dek { line-height: 1.75; }
.record-block { margin-top: 30px; padding-top: 18px; border-top: 1px dashed rgba(30, 34, 31, 0.25); }
.record-block h2 { margin: 0 0 12px; font-family: var(--f-type); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; color: var(--ink-3); }
/* Archival images: pasted into the file like prints, with credit, license and source under each */
.record-alias { margin: -6px 0 16px; font-family: var(--f-type); font-size: 13px; letter-spacing: 0.04em; color: var(--ink-3); }
.record-alias span { color: var(--ink-2); }
.record-figure { margin: 0 0 24px; }
.record-figure video { display: block; width: 100%; height: auto; background: #000; border: 6px solid var(--paper-plate); box-sizing: border-box; }
.record-figure img { display: block; width: 100%; height: auto; background: #2A2D2A; border: 6px solid var(--paper-plate); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); box-sizing: border-box; }
.record-figure figcaption { margin-top: 10px; font-family: var(--f-display); font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.figure-credit { display: block; margin-top: 4px; font-family: var(--f-type); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); }
.figure-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.exhibits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.exhibits .record-figure { margin: 0; }
.sources { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.sources a { color: var(--carbon); text-decoration: underline; text-decoration-color: rgba(79, 107, 192, 0.35); text-underline-offset: 3px; word-break: break-word; }
.sources a:hover { color: #334E9E; }
.laogao-note { margin: 0 0 10px; font-size: 14px; line-height: 1.7; color: var(--ink-3); }
.laogao-links { display: grid; gap: 8px; }
.laogao-links a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid rgba(30, 34, 31, 0.2); border-radius: 6px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.laogao-links a:hover { border-color: var(--stamp); color: var(--ink); }
.related { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: #E6DFCB; border-radius: 6px; color: var(--ink); }
a.related:hover { color: var(--ink); background: #E0D8C1; }
.related-kicker { font-family: var(--f-type); font-size: 12px; letter-spacing: 0.1em; color: var(--ink-3); }
.related-title { font-family: var(--f-display); font-weight: 900; font-size: 20px; }
.related-line { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
@media (min-width: 900px) {
  .record-wrap { padding: 16px 20px 96px; }
  .record { padding: 28px 48px 44px; }
  .record h1 { font-size: 38px; padding-right: 120px; }
  .record .stamp { top: 70px; right: 40px; font-size: 18px; border-width: 3px; }
  .record-dek { font-size: 19px; }
}

/* ---------- story page ---------- */
body.page-story { background: var(--paper-2); }
.story-bar { background: var(--ground); color: var(--text); }
.story-bar .wrap { height: 56px; max-width: 760px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-left: 4px; padding-right: 8px; }
.story-bar .back-link { font-size: 14px; padding: 0 8px 0 4px; }
.story-file { font-family: var(--f-type); font-weight: 700; font-size: 14px; letter-spacing: 0.16em; color: var(--brass); }
.story-tools { display: flex; align-items: center; gap: 4px; }
.clue-btn { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line-strong); border-radius: 20px; font-size: 13px; color: var(--text); cursor: pointer; }
.clue-btn b { font-family: var(--f-type); font-weight: 400; }
.clue-btn.pulse { animation: pulse 0.9s ease; }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(190, 156, 96, 0.65); } to { box-shadow: 0 0 0 12px rgba(190, 156, 96, 0); } }
.story-bar .lang-switch { border: 0; padding: 0; }
.story-bar .lang-switch a { min-width: 34px; height: 40px; padding: 0 6px; }
.story-shell { max-width: 760px; margin: 0 auto; }
.case-band { background: var(--manila); padding: 16px 16px 0; }
.case-card { position: relative; background: var(--paper); color: var(--ink); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.case-card .stamp { top: 2px; right: 0; font-size: 13px; }
.case-title { position: relative; }
.case-card h1 { margin: 0; padding-right: 84px; font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1.2; }
.case-meta { font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.case-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.case-actions button { min-height: 44px; padding: 0; background: none; border: 0; font-size: 14px; color: var(--stamp); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.led-band { margin: 0 16px; background: var(--panel); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; }
.led-floor { display: flex; align-items: center; gap: 10px; }
.led-digits { display: flex; gap: 3px; }
.seg-digit { width: 22px; height: 37px; }
.seg-digit .on { fill: var(--led); }
.seg-digit .off { fill: var(--led-off); }
.led-label { font-family: var(--f-type); font-size: 11px; letter-spacing: 0.14em; color: #8A8C83; }
.led-clock { font-family: var(--f-type); font-weight: 700; font-size: 26px; letter-spacing: 0.1em; color: var(--led); }
.log { padding: 8px 22px 12px; color: #23261F; }
.step { padding: 26px 0 8px; scroll-margin-top: 16px; outline: none; }
.step + .step { border-top: 1px solid rgba(30, 34, 31, 0.14); }
.step.enter { animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { transform: translateY(12px); opacity: 0.35; } to { transform: none; opacity: 1; } }
.step-clock { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--f-type); font-size: 12px; letter-spacing: 0.14em; color: #6E6C60; }
.step-clock::after { content: ""; flex: 1; height: 1px; background: rgba(30, 34, 31, 0.14); }
.para { margin: 0 0 16px; font-family: var(--f-display); font-weight: 500; font-size: 17px; line-height: 1.95; text-wrap: pretty; }
html:lang(en) .para { line-height: 1.75; font-size: 18px; }
.notice { margin: 4px 0 20px; padding: 12px 14px; background: var(--paper-plate); border: 1px solid rgba(30, 34, 31, 0.14); border-radius: 12px; font-family: var(--f-ui); }
.notice-title { font-size: 12.5px; line-height: 1.5; color: #6E6C60; margin-bottom: 4px; }
.notice-text { font-size: 16px; line-height: 1.75; color: var(--ink); }
.placard { margin: 4px 0 20px; padding: 14px 18px; background: var(--paper-plate); border: 1px solid rgba(30, 34, 31, 0.16); outline: 1px dashed rgba(30, 34, 31, 0.16); outline-offset: -7px; white-space: pre-line; font: 15px/1.9 var(--f-ui); color: var(--ink); }
.big { display: flex; justify-content: center; margin: 8px 0 24px; }
.big .led-digits { background: var(--panel); padding: 14px 22px; border-radius: 10px; }
.big .seg-digit { width: 46px; height: 77px; }
.choices-label { margin: 22px 0 10px; font-family: var(--f-type); font-size: 12px; letter-spacing: 0.18em; color: #6E6C60; }
.choices { display: grid; gap: 12px; margin-bottom: 12px; }
.choice { min-height: 64px; width: 100%; padding: 10px 16px 10px 10px; display: flex; align-items: center; gap: 14px; text-align: left; background: var(--paper-plate); border: 1px solid rgba(30, 34, 31, 0.14); border-radius: 12px; font: 16px/1.5 var(--f-ui); color: var(--ink); cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.choice:hover { border-color: var(--stamp); background: #FAF7EF; }
.choice-ring { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--brass); display: flex; align-items: center; justify-content: center; font-family: var(--f-type); font-weight: 700; font-size: 16px; color: #8A6F3E; transition: border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.choice:hover .choice-ring, .choice:focus-visible .choice-ring { border-color: var(--stamp); color: var(--stamp); box-shadow: 0 0 0 4px rgba(194, 74, 58, 0.18); }
.chosen { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 6px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.chosen::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); transform: translateY(-1px); }
.story-foot { margin: 8px 16px 40px; padding: 14px 6px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; border-top: 1px dashed rgba(30, 34, 31, 0.25); font-family: var(--f-type); font-size: 12px; color: #6E6C60; }

/* paywall */
.paywall { padding: 26px 0 30px; }
.sealed { position: relative; background: var(--manila); border-radius: 6px 6px 0 0; padding: 32px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; overflow: hidden; color: var(--ink); }
.cord-v { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1px; background: #9A3A2E; opacity: 0.85; }
.cord-h { position: absolute; left: 0; right: 0; top: 94px; height: 3px; background: #9A3A2E; opacity: 0.85; }
.seal { position: relative; width: 84px; height: 84px; border-radius: 50%; background: #B03F31; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.22), 0 6px 14px rgba(0, 0, 0, 0.25); display: flex; align-items: center; justify-content: center; }
.seal span { width: 62px; height: 62px; border-radius: 50%; border: 2px solid rgba(251, 247, 238, 0.55); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 900; font-size: 19px; letter-spacing: 0.06em; color: #FBF7EE; text-align: center; line-height: 1.1; }
html:lang(en) .seal span { font-family: var(--f-type); font-size: 11px; letter-spacing: 0.08em; }
.sealed-label { position: relative; background: var(--paper); padding: 6px 12px; font-family: var(--f-type); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; color: var(--ink-3); text-align: center; }
.sealed h2 { position: relative; margin: 4px 0 0; padding: 0 10px; background: var(--manila); font-family: var(--f-display); font-weight: 900; font-size: 28px; line-height: 1.3; text-align: center; text-wrap: balance; }
.sealed-sheet { background: var(--paper); color: var(--ink); padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; border-radius: 0 0 6px 6px; border: 1px solid rgba(30, 34, 31, 0.1); border-top: 0; }
.chapter { padding: 12px 0; border-bottom: 1px solid rgba(79, 107, 192, 0.24); display: flex; flex-direction: column; gap: 4px; }
.chapter b { font-family: var(--f-type); font-size: 13px; color: var(--carbon); }
.chapter span { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.paywall-meta { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-3); }
.clue-meter { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #E6DFCB; border-radius: 6px; font-size: 14px; line-height: 1.5; }
.clue-meter .bars { display: flex; gap: 3px; flex: none; }
.clue-meter .bars i { width: 8px; height: 22px; border-radius: 2px; border: 1.5px solid rgba(79, 107, 192, 0.5); }
.clue-meter .bars i.on { background: var(--carbon); border-color: var(--carbon); }
.paywall .cta { width: 100%; margin-top: 20px; min-height: 56px; font-size: 17px; }
.unlock { margin-top: 22px; padding: 22px 18px; background: var(--ground); color: var(--text); border-radius: 6px; display: flex; flex-direction: column; gap: 16px; }
.unlock-status { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.7; color: var(--paper); }
.unlock-offer { margin: 0; font-size: 15px; line-height: 1.75; color: var(--text-2); }
.vote { display: flex; flex-direction: column; gap: 10px; }
.vote-q { margin: 0; font-size: 15px; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; background: none; border: 1px solid var(--line-strong); border-radius: 22px; font-family: var(--f-type); font-size: 15px; color: #D5D3C8; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 700; }
.waitlist { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 14px; color: var(--text-2); }
.paywall-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.paywall-foot button { min-height: 44px; padding: 0; background: none; border: 0; font-size: 14px; color: var(--stamp); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* clue sheet and toast */
.sheet { width: min(34rem, calc(100vw - 24px)); max-height: 80vh; padding: 0; border: 1px solid rgba(30, 34, 31, 0.2); border-radius: 12px; background: var(--paper); color: var(--ink); }
.sheet::backdrop { background: rgba(8, 10, 9, 0.6); }
.sheet-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 18px; background: var(--paper); border-bottom: 1px solid rgba(194, 74, 58, 0.55); }
.sheet-head h2 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 22px; }
.sheet-head button { min-width: 44px; min-height: 44px; background: none; border: 0; font-size: 15px; color: var(--stamp); cursor: pointer; }
.clue-list { margin: 0; padding: 4px 18px 16px; list-style: none; display: grid; }
.clue { padding: 12px 0; border-bottom: 1px solid rgba(79, 107, 192, 0.2); display: grid; gap: 2px; }
.clue:last-child { border-bottom: 0; }
.clue-name { font-weight: 600; font-size: 15px; }
.clue-text { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.clue:not(.found) .clue-name, .clue:not(.found) .clue-text { color: #8A8B80; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; padding: 10px 16px; border-radius: 20px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.4; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }

/* not found */
.not-found { padding: 72px 0 96px; }
.not-found .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.not-found h1 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 36px; color: var(--paper); }

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

h2.eyebrow { margin: 0; font-weight: 400; }
@media (max-width: 899px) { .site-header .wordmark-sub { display: none; } }
.story-shell noscript p { margin: 16px 22px; }

.section-head h2.eyebrow { font-family: var(--f-type); font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0.22em; color: var(--brass); }
@media (min-width: 900px) { .section-head h2.eyebrow { font-size: 13px; } }

.story-bar .back-link { white-space: nowrap; }
.story-file { white-space: nowrap; }
.clue-btn b { margin-left: 2px; }
@media (max-width: 560px) {
  .story-bar .wrap { gap: 4px; }
  .story-file, .clue-btn .clue-label { display: none; }
  .clue-btn { padding: 0 10px; gap: 4px; }
}

.card-head { flex-wrap: wrap; }
.card-head span { white-space: nowrap; }
.card-copy { position: relative; }
.card .stamp { top: 4px; right: 0; }
html:lang(en) .stamp { font-size: 11px; letter-spacing: 0.1em; }
html:lang(en) .card-title { font-size: 30px; }
html:lang(en) .case-card h1 { font-size: 26px; }
@media (min-width: 900px) {
  .card .stamp { top: 6px; }
  html:lang(en) .stamp { font-size: 14px; }
  html:lang(en) .card-title { font-size: 44px; }
}

/* English pages: a Latin serif first, so curly quotes and apostrophes are not set as full-width CJK punctuation */
html:lang(en) { --f-display: "Noto Serif", Georgia, "Times New Roman", serif; }
html:lang(en) .card-copy .card-title, html:lang(en) .case-card h1 { padding-right: 118px; }
@media (min-width: 900px) { html:lang(en) .card-copy .card-title { padding-right: 150px; } }

/* review fixes: 44px targets, drawer label alignment, rounded folder corners */
.lang-switch { padding: 0; }
.lang-switch a { height: 44px; min-width: 40px; border-radius: 5px; }
.story-bar .lang-switch a { height: 44px; }
.clue-btn { min-height: 44px; border-radius: 22px; }
.drawer.is-open .drawer-tabs { margin-top: -12px; }
.folder-body { border-radius: 7px; }
@media (min-width: 900px) { .drawer.is-open .drawer-tabs { margin-top: -16px; } }

/* ---------- hub topic lines, info pages, footer links ---------- */
.line-groups { display: grid; gap: 34px; }
.line-group { display: grid; gap: 12px; }
.line-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--paper); }
.line-count { font-family: var(--f-type); font-weight: 400; font-size: 12px; letter-spacing: 0.1em; color: var(--text-3); white-space: nowrap; }
.planned-note { margin: 18px 0 0; font-size: 14px; line-height: 1.7; color: var(--text-3); }
.record-block .ledger { box-shadow: none; border: 1px solid rgba(30, 34, 31, 0.16); }
.record-block .ledger-row { padding: 12px 14px; }
.record-block .ledger-title { font-size: 16px; }
.more-link { margin: 12px 0 0; font-size: 14px; }
.more-link a { color: var(--carbon); text-decoration: underline; text-decoration-color: rgba(79, 107, 192, 0.35); text-underline-offset: 3px; }
.info-page h1 { padding-right: 0; }
.info-page .record-block { display: grid; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--manila); }
.footer-links a:hover { color: var(--paper); }
@media (min-width: 900px) {
  .line-title { font-size: 20px; }
}

/* ---------- Traditional Chinese fonts ---------- */
html[data-lang="hant"] { --f-display: "Noto Serif TC", "Songti TC", "PMingLiU", "Source Han Serif TC", serif; --f-ui: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif; }

/* ---------- language chooser at the root ---------- */
.chooser { min-height: 72vh; display: flex; align-items: center; padding: 72px 0 56px; }
.chooser .wrap { display: grid; gap: 18px; }
.chooser-title { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: "Noto Serif TC", var(--f-display); font-weight: 900; font-size: clamp(38px, 9vw, 68px); line-height: 1.15; color: var(--paper); }
.chooser-lede { margin: 0; max-width: 62ch; font-size: 16px; line-height: 1.8; color: var(--text-2); }
.chooser-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.chooser-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; }

/* On narrow screens the record head wraps onto several lines, so it keeps clear of the verdict stamp */
@media (max-width: 599px) {
  .record-head { padding-right: 104px; }
  .record .stamp { top: 22px; right: 14px; }
  .record h1 { padding-right: 0; margin-top: 30px; }
}

.wordmark-main { white-space: nowrap; }

/* ---------- Tonight's file and the casebook ---------- */
.night-wrap { max-width: 720px; padding-top: 20px; padding-bottom: 64px; }
.night-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.night-streak { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--f-type); font-size: 12px; letter-spacing: 0.18em; color: var(--text-2); }
.night-led { font-family: var(--f-type); font-weight: 700; color: var(--led); text-shadow: 0 0 10px rgba(255, 75, 62, 0.5); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.night-clock { margin: 4px 0 22px; font-family: var(--f-type); font-size: 12px; letter-spacing: 0.12em; color: var(--text-2); }
.night-clock .night-led { font-size: 18px; margin-left: 6px; }
.night-title { margin: 8px 0 22px; font-family: var(--f-display); font-weight: 900; font-size: 32px; line-height: 1.3; color: var(--text); }
.night-warning { margin: 0 0 16px; padding: 10px 14px; border: 1px solid rgba(229, 138, 124, 0.5); border-radius: 6px; color: var(--stamp-soft); font-size: 14px; }

.night-folder { position: relative; padding-top: 30px; margin-bottom: 18px; }
.night-folder-tab { position: absolute; top: 0; left: 18px; height: 32px; padding: 0 14px; background: var(--manila); border-radius: 7px 7px 0 0; display: flex; align-items: center; font-family: var(--f-type); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; color: var(--manila-ink); }
.night-sheet { background: var(--paper); color: var(--ink); border: 14px solid var(--manila); border-radius: 0 7px 7px 7px; padding: 26px 24px 30px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); }
.night-headline { margin: 0 0 14px; padding-right: 72px; font-family: var(--f-display); font-weight: 900; font-size: 34px; line-height: 1.2; text-wrap: balance; }
.night-hook { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 18px; line-height: 1.85; color: var(--ink-2); }
.night-tape { background: #D9D1BF; color: transparent; border-radius: 2px; padding: 0 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background 0.6s ease, color 0.6s ease; }
.night-tape.is-block { display: inline; }
.night-tape.is-lifted { background: transparent; color: inherit; padding: 0; }
.night-tape.is-lifted > span { color: var(--stamp); font-weight: 700; }
.night-seal { position: absolute; right: 22px; top: 52px; width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 38% 32%, #D2432C 0%, #A5261A 45%, #6A130A 100%); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45), inset 0 -4px 8px rgba(0, 0, 0, 0.35), inset 0 4px 6px rgba(255, 180, 150, 0.25); font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 36px; color: rgba(40, 6, 2, 0.55); display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.night-seal:hover { transform: rotate(-10deg) scale(1.05); }
.night-break { width: 100%; margin-bottom: 10px; letter-spacing: 0.08em; }

.night-open { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; animation: rise 0.6s ease both; }
.night-claim { margin: 0 0 8px; font-family: var(--f-display); font-weight: 900; font-size: 24px; line-height: 1.45; color: var(--text); }
.night-claim.is-small { font-size: 17px; font-weight: 700; color: var(--text-2); }
.night-exhibits-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.night-hint { font-family: var(--f-type); font-size: 12px; color: var(--text-2); }
.night-exhibits { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.night-exhibit { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; text-align: left; padding: 14px 16px; background: var(--drawer); color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; font: inherit; font-size: 16px; line-height: 1.6; }
.night-exhibit:hover { border-color: var(--brass); }
.night-exhibit-letter { font-family: var(--f-display); font-weight: 900; font-size: 26px; line-height: 1; color: var(--brass-bright); }
.night-exhibit-body { display: flex; flex-direction: column; gap: 4px; }
.night-exhibit-tag { font-family: var(--f-type); font-size: 12px; letter-spacing: 0.14em; color: var(--text-2); }
.night-exhibit .night-tape { background: #5B5F57; }
.night-exhibit .night-tape.is-lifted { background: transparent; }
.night-exhibit .night-tape.is-lifted > span { color: var(--manila); font-weight: 600; }
.night-stamps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.night-stamp { min-height: 64px; background: transparent; border: 2px solid var(--stamp); border-radius: 6px; color: var(--stamp-soft); font-family: var(--f-type); font-weight: 700; font-size: 15px; letter-spacing: 0.16em; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.night-stamp:hover { transform: rotate(-3deg); background: rgba(194, 74, 58, 0.12); }

.night-result { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 24px 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); animation: rise 0.5s ease both; }
.night-result .eyebrow { color: var(--ink-3); margin-bottom: 10px; }
.night-result-stamps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.night-stamp-mark { display: inline-block; padding: 4px 10px 4px 13px; border: 3px solid var(--stamp); color: var(--stamp); font-family: var(--f-type); font-weight: 700; font-size: 16px; letter-spacing: 0.18em; transform: rotate(-6deg); }
.night-stamp-mark.is-file { border-color: var(--ink); color: var(--ink); transform: rotate(-2deg); }
.night-stamp-mark.is-slam { animation: slam 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
@keyframes slam { from { opacity: 0; transform: scale(1.9) rotate(-16deg); } to { opacity: 1; transform: scale(1) rotate(-6deg); } }
.night-verdict { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.7; }
.night-result .night-claim.is-small { color: var(--ink-3); }
.night-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.night-result .btn-ghost { color: var(--ink); border-color: rgba(30, 34, 31, 0.3); }
.night-next { margin: 0; padding-top: 12px; border-top: 1px dashed rgba(30, 34, 31, 0.25); font-family: var(--f-type); font-size: 13px; color: var(--ink-3); }

.casebook-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.casebook-stats div { display: flex; flex-direction: column; gap: 4px; }
.casebook-stats b { font-family: var(--f-display); font-weight: 900; font-size: 40px; line-height: 1; color: var(--text); }
.casebook-stats b.night-led { font-family: var(--f-type); color: var(--led); }
.casebook-stats small { font-size: 20px; }
.casebook-stats span { font-family: var(--f-type); font-size: 11px; letter-spacing: 0.16em; color: var(--text-2); }
.casebook-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.casebook-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.casebook-night { font-family: var(--f-type); font-size: 12px; color: var(--text-2); }
.casebook-list a { color: var(--text); }
.casebook-pick { font-family: var(--f-type); font-size: 12px; letter-spacing: 0.1em; white-space: nowrap; }
.casebook-pick.is-right { color: var(--brass-bright); }
.casebook-pick.is-wrong { color: var(--stamp-soft); }
.casebook-drawers-head { margin-top: 28px; margin-bottom: 8px; }
.casebook-drawers { list-style: none; margin: 0 0 20px; padding: 0; }
.casebook-drawers li { display: flex; align-items: baseline; gap: 10px; min-height: 38px; border-bottom: 1px solid var(--line); color: var(--text); }
.casebook-dots { flex: 1; border-bottom: 1px dotted var(--line-strong); }
.casebook-drawers li span:last-child { font-family: var(--f-type); font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.casebook-device { font-size: 13px; color: var(--text-2); }
@media (max-width: 560px) {
  .night-headline { font-size: 28px; padding-right: 64px; }
  .night-seal { width: 62px; height: 62px; font-size: 30px; right: 16px; }
  .casebook-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .casebook-night { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .night-open, .night-result, .night-stamp-mark.is-slam { animation: none; }
  .night-tape, .night-seal, .night-stamp { transition: none; }
}

/* ---------- Interrogation: question a witness ---------- */
.ask { margin-top: 22px; padding: 22px 18px; background: #101412; border: 1px solid var(--line-strong); border-radius: 6px; display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.ask[hidden], .ask-form[hidden], .ask-closed[hidden] { display: none; }
.ask-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ask-head h3 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 21px; color: var(--paper); }
.ask-left { font-family: var(--f-type); font-size: 13px; color: var(--led); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ask-intro { margin: 0; font-size: 15px; line-height: 1.75; color: var(--text-2); }
.ask-log { display: flex; flex-direction: column; gap: 16px; }
.ask-log:empty { display: none; }
.ask-entry { display: flex; flex-direction: column; gap: 6px; padding-left: 14px; border-left: 2px solid var(--brass); animation: rise 0.5s ease both; }
.ask-q { margin: 0; font-family: var(--f-type); font-size: 14px; line-height: 1.6; color: var(--text-2); }
.ask-a { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 17px; line-height: 1.8; color: var(--paper); }
.ask-clue { margin: 0; font-family: var(--f-type); font-size: 13px; color: var(--stamp-soft); }
.ask-form { display: flex; flex-direction: column; gap: 10px; }
.ask-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-suggest .chip { min-height: 40px; font-size: 13.5px; }
.ask-status { margin: 0; min-height: 1.5em; font-size: 14px; line-height: 1.6; color: var(--manila); }
.ask-closed { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.7; color: var(--paper); }
.ask-testimony { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.ask-testimony b { font-family: var(--f-type); font-size: 12px; letter-spacing: 0.14em; color: var(--brass-bright); margin-right: 4px; }
.ask-slot { min-height: 32px; padding: 4px 10px; display: inline-flex; align-items: center; border-radius: 4px; border: 1px dashed var(--line-strong); background: none; font-family: var(--f-type); font-size: 13px; color: var(--text-3); }
.ask-slot.is-found { border-style: solid; border-color: var(--brass); color: var(--manila); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ask-entry { animation: none; } }
