/* ============================================================
   蜀韵戏台 · 基础设计系统
   纸色、墨色、朱砂。原创视觉，借 B 站的信息密度，不借其素材。
   ============================================================ */

:root {
  --paper: #f7f3ea;
  --paper-2: #f1ebdf;
  --paper-3: #e9e1d2;
  --surface: #fdfaf3;
  --surface-2: #f6f0e4;
  --surface-3: #eee6d7;
  --ink: #211d18;
  --ink-2: #4d463c;
  --muted: #7b7264;
  --faint: #a59b8b;
  --line: #e4dbcb;
  --line-strong: #d2c5b1;
  --red: #b23a2a;
  --red-deep: #8d2a1e;
  --red-soft: #f2dfd9;
  --jade: #2f6158;
  --jade-deep: #234940;
  --jade-soft: #e0ece7;
  --gold: #a87c42;
  --gold-soft: #f1e5d0;
  --plum: #6f3b50;
  --plum-soft: #efe2e7;
  --blue-ink: #2b4356;
  --success: #38684b;
  --danger: #a62f24;
  --white: #fffdf8;
  --shadow-xs: 0 1px 2px rgba(46, 35, 20, .05);
  --shadow-sm: 0 4px 16px -6px rgba(46, 35, 20, .12);
  --shadow-md: 0 22px 60px -30px rgba(46, 35, 20, .32);
  --shadow-lg: 0 34px 90px -36px rgba(30, 22, 12, .42);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Hiragino Sans GB", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Consolas", monospace;
  --max: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .8, .28, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #15130f;
  --paper-2: #1b1813;
  --paper-3: #242019;
  --surface: #201c16;
  --surface-2: #28231b;
  --surface-3: #322b21;
  --ink: #f2ebe0;
  --ink-2: #cfc5b5;
  --muted: #9a9081;
  --faint: #736a5d;
  --line: #322c23;
  --line-strong: #4a4134;
  --red: #d15a44;
  --red-deep: #e57b64;
  --red-soft: #38211b;
  --jade: #6ca398;
  --jade-deep: #91c0b5;
  --jade-soft: #1d2d28;
  --gold: #cba15f;
  --gold-soft: #2e271a;
  --plum: #bd8498;
  --plum-soft: #2f2228;
  --blue-ink: #8aa6bd;
  --success: #78ad89;
  --danger: #e0715f;
  --white: #201c16;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-sm: 0 5px 18px -8px rgba(0, 0, 0, .5);
  --shadow-md: 0 24px 60px -28px rgba(0, 0, 0, .75);
  --shadow-lg: 0 38px 100px -36px rgba(0, 0, 0, .85);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: calc(15px * var(--font-scale, 1));
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::before { opacity: .05; }
#app { position: relative; z-index: 1; min-height: 100svh; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea, select { border-radius: 0; }
textarea { resize: vertical; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.28; letter-spacing: .01em; }
figure, blockquote { margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--paper); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  padding: 8px 14px; background: var(--ink); color: var(--paper);
  border-radius: 8px; transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.noscript { padding: 24px; text-align: center; background: var(--red-soft); color: var(--red-deep); }

/* ---------- layout ---------- */
.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: 32px; }
.page-main { min-height: 70svh; padding-bottom: 80px; }
.page-main--tight { padding-bottom: 0; }
.section { padding-block: clamp(48px, 6vw, 84px); }
.section + .section { border-top: 1px solid var(--line); }
.section--flush { padding-top: 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 30px;
}
.section-head__copy { max-width: 720px; }
.section-head__aside { flex: none; padding-bottom: 5px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: calc(12px * var(--font-scale, 1)); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--red); }
.eyebrow--plain::before { display: none; }
.eyebrow--light { color: rgba(255,255,255,.6); }
.eyebrow--light::before { background: #e6b9a4; }
.section-title {
  font-size: calc((clamp(28px, 3.2vw, 40px)) * var(--font-scale, 1));
  margin-top: 9px; letter-spacing: .01em;
}
.section-desc { color: var(--muted); font-size: calc(14px * var(--font-scale, 1)); margin-top: 8px; }
.section-head__aside .text-link { white-space: nowrap; }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.red { color: var(--red); }
.jade { color: var(--jade); }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- text links & buttons ---------- */
.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: calc(13px * var(--font-scale, 1)); font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: color .2s, border-color .2s, gap .2s;
}
.text-link:hover { color: var(--red); border-color: var(--red); gap: 10px; }
.text-link .icon { width: 14px; height: 14px; }
.text-link--red { color: var(--red); border-color: transparent; }
.text-link--red:hover { border-color: var(--red); }
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-size: calc(14px * var(--font-scale, 1)); font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(.985); }
.btn .icon { width: 17px; height: 17px; }
.btn--red { --btn-bg: var(--red); --btn-fg: #fffaf4; --btn-bd: var(--red); }
.btn--red:hover { --btn-bg: var(--red-deep); --btn-bd: var(--red-deep); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--surface); --btn-bd: var(--ink); }
.btn--soft { --btn-bg: var(--surface-2); --btn-fg: var(--ink); --btn-bd: transparent; }
.btn--soft:hover { --btn-bg: var(--surface-3); }
.btn--on-dark { --btn-bg: transparent; --btn-fg: #f8f1e5; --btn-bd: rgba(255,255,255,.25); }
.btn--on-dark:hover { --btn-bg: rgba(255,255,255,.08); }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: calc(12.5px * var(--font-scale, 1)); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: calc(15px * var(--font-scale, 1)); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2);
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .icon { width: 19px; height: 19px; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--paper); }
}
.header-inner {
  width: min(100%, 1380px); height: 100%; margin-inline: auto;
  padding-inline: 28px; display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-seal {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--red); color: #fff8ef; border-radius: 11px;
  font-family: var(--serif); font-size: calc(21px * var(--font-scale, 1)); line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 4px 12px -6px rgba(120,30,15,.5);
  transition: transform .3s var(--ease-out);
}
.brand:hover .brand-seal { transform: rotate(-5deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: calc(19px * var(--font-scale, 1)); font-weight: 700; letter-spacing: .08em; }
.brand-sub { font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .19em; color: var(--faint); font-weight: 600; margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav-link {
  position: relative; padding: 9px 13px; font-size: calc(13.5px * var(--font-scale, 1)); font-weight: 500;
  color: var(--muted); border-radius: 9px; transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link.is-active { color: var(--ink); font-weight: 650; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px;
  background: var(--red); border-radius: 50%; transform: translateX(-50%);
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-trigger {
  display: flex; align-items: center; gap: 9px; min-height: 38px; min-width: 196px;
  padding: 0 12px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; background: color-mix(in srgb, var(--surface) 55%, transparent);
  font-size: calc(12.5px * var(--font-scale, 1)); transition: border-color .2s, background .2s, color .2s;
}
.search-trigger:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.search-trigger .icon { width: 15px; height: 15px; }
.search-trigger span { flex: 1; text-align: left; }
.search-trigger kbd {
  font-family: var(--mono); font-size: calc(12px * var(--font-scale, 1)); color: var(--faint);
  border: 1px solid var(--line); background: var(--paper-2);
  border-radius: 5px; padding: 1px 5px; line-height: 1.6;
}
.header-actions .btn { min-height: 38px; }
.avatar {
  --avatar-size: 36px; --avatar-bg: var(--jade);
  width: var(--avatar-size); height: var(--avatar-size); flex: none;
  display: inline-grid; place-items: center; border-radius: 50%;
  background: var(--avatar-bg); color: #fffaf3;
  font-family: var(--serif); font-size: calc(var(--avatar-size) * .42); font-weight: 600;
  line-height: 1; user-select: none; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.avatar--sm { --avatar-size: 28px; }
.avatar--lg { --avatar-size: 56px; }
.avatar--xl { --avatar-size: 76px; }
.avatar-btn { display: inline-flex; border-radius: 50%; transition: box-shadow .2s, transform .2s; }
.avatar-btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px var(--surface-2); }
.mobile-nav { display: none; }

/* ---------- boot & loading ---------- */
.boot {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 32px;
}
.boot-mark {
  width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--red); color: #fff8ef; border-radius: 18px;
  font-family: var(--serif); font-size: calc(34px * var(--font-scale, 1));
  box-shadow: 0 20px 50px -22px rgba(150, 40, 20, .6);
  animation: boot-breathe 2.6s ease-in-out infinite;
}
.boot-title { font-family: var(--serif); font-size: calc(22px * var(--font-scale, 1)); margin-top: 22px; letter-spacing: .06em; }
.boot-sub { font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .24em; color: var(--faint); margin-top: 8px; font-weight: 600; }
.boot-line { width: 180px; height: 2px; background: var(--line); margin-top: 26px; overflow: hidden; border-radius: 4px; }
.boot-line span { display: block; width: 42%; height: 100%; background: var(--red); border-radius: 4px; animation: boot-line 1.4s var(--ease) infinite; }
@keyframes boot-line { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }
@keyframes boot-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--radius-sm); }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.boot-error { max-width: 460px; text-align: center; }
.boot-error .btn { margin-top: 20px; }

/* ---------- page heads ---------- */
.page-head { padding-block: clamp(42px, 5.5vw, 76px) clamp(26px, 3vw, 42px); }
.page-head__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-head h1 { font-size: calc((clamp(36px, 5vw, 62px)) * var(--font-scale, 1)); letter-spacing: .01em; margin-top: 12px; }
.page-head__sub { color: var(--muted); font-size: calc(14px * var(--font-scale, 1)); max-width: 580px; margin-top: 14px; }
.page-head__aside { flex: none; }
.page-head--split { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 36px; }
.rule-title { display: flex; align-items: center; gap: 14px; }
.rule-title::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .icon { width: 12px; height: 12px; }

/* ---------- chips / badges / tags ---------- */
.chip-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 33px;
  padding: 0 13px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); background: transparent; font-size: calc(12.5px * var(--font-scale, 1));
  white-space: nowrap; transition: all .2s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.chip.is-active { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.chip__count { font-family: var(--mono); font-size: calc(12px * var(--font-scale, 1)); opacity: .55; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 23px;
  padding: 0 8px; border-radius: 5px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--muted);
  font-size: calc(12px * var(--font-scale, 1)); font-weight: 600; letter-spacing: .04em; white-space: nowrap;
}
.badge--red { color: var(--red); background: var(--red-soft); border-color: transparent; }
.badge--jade { color: var(--jade); background: var(--jade-soft); border-color: transparent; }
.badge--gold { color: var(--gold); background: var(--gold-soft); border-color: transparent; }
.badge--ink { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.badge--outline { background: transparent; border-color: var(--line-strong); }
.badge--live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.tag { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); }
.tag::before { content: "#"; margin-right: 1px; opacity: .6; }

/* ---------- media & covers ---------- */
.cover {
  position: relative; overflow: hidden; background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.16), transparent 40%),
    linear-gradient(135deg, #2e2a24, #514534);
  isolation: isolate;
}
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(255,255,255,.028) 18px 19px),
    radial-gradient(circle at 78% 18%, rgba(178,58,42,.45), transparent 46%);
}
.cover img {
  width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1;
  transition: transform .65s var(--ease-out), filter .3s;
}
.cover::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(15,12,8,.5), transparent 46%);
  opacity: .7; transition: opacity .3s;
}
a:hover .cover img, .video-card:hover .cover img, .feature-card:hover .cover img { transform: scale(1.045); }
.cover-fallback-text {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8); font-family: var(--serif); font-size: calc(20px * var(--font-scale, 1)); letter-spacing: .16em;
}
.duration {
  position: absolute; right: 9px; bottom: 9px; z-index: 3;
  padding: 2px 6px; border-radius: 4px; background: rgba(15,13,10,.76);
  color: #fff; font-family: var(--mono); font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .02em;
  backdrop-filter: blur(4px);
}
.cover-badge { position: absolute; left: 10px; top: 10px; z-index: 3; }
.play-orb {
  position: absolute; left: 50%; top: 50%; z-index: 4; width: 46px; height: 46px;
  border-radius: 50%; display: grid; place-items: center; transform: translate(-50%, -50%) scale(.9);
  background: rgba(255,250,243,.9); color: var(--ink); opacity: 0;
  transition: opacity .25s, transform .3s var(--ease-out); backdrop-filter: blur(6px);
}
.play-orb .icon { width: 17px; height: 17px; margin-left: 2px; fill: currentColor; stroke: none; }
a:hover .play-orb, .video-card:hover .play-orb { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- video card ---------- */
.video-card { display: flex; flex-direction: column; min-width: 0; }
.video-card .cover { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); box-shadow: var(--shadow-xs); }
.video-card__body { padding-top: 11px; }
.video-card__title {
  font-family: var(--sans); font-size: calc(13.5px * var(--font-scale, 1)); font-weight: 600; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.85em; transition: color .2s;
}
.video-card:hover .video-card__title { color: var(--red); }
.video-card__meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); margin-top: 7px; }
.video-card__meta .dot { width: 2px; height: 2px; border-radius: 50%; background: var(--faint); }
.video-card__sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 5px; color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); }
.video-card__stat { display: inline-flex; align-items: center; gap: 4px; }
.video-card__stat .icon { width: 13px; height: 13px; }

/* ---------- list rows ---------- */
.list-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row__index { font-family: var(--serif); font-size: calc(18px * var(--font-scale, 1)); color: var(--faint); width: 24px; flex: none; line-height: 1.4; }
.list-row:hover .list-row__index { color: var(--red); }
.list-row__cover { width: 104px; aspect-ratio: 16 / 10; flex: none; border-radius: 8px; overflow: hidden; }
.list-row__body { min-width: 0; flex: 1; }
.list-row__title { font-size: calc(13px * var(--font-scale, 1)); font-weight: 600; line-height: 1.55; transition: color .2s; }
.list-row:hover .list-row__title { color: var(--red); }
.list-row__meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); margin-top: 5px; }

/* ---------- empty / states ---------- */
.empty {
  text-align: center; padding: 58px 20px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius); color: var(--muted); background: color-mix(in srgb, var(--surface) 50%, transparent);
}
.empty__mark { width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--faint); }
.empty__mark .icon { width: 22px; height: 22px; }
.empty h3 { font-size: calc(18px * var(--font-scale, 1)); margin-bottom: 6px; color: var(--ink); }
.empty p { font-size: calc(12.5px * var(--font-scale, 1)); max-width: 380px; margin-inline: auto; }
.empty .btn { margin-top: 18px; }
.inline-note { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); line-height: 1.65; }

/* ---------- home · hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(50px, 7vw, 104px) 0 clamp(46px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 40%, color-mix(in srgb, var(--red) 8%, transparent), transparent 48%),
    radial-gradient(ellipse at 5% 10%, color-mix(in srgb, var(--jade) 7%, transparent), transparent 40%);
}
.hero-floor {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 38%;
  background: linear-gradient(to top, color-mix(in srgb, var(--paper-2) 70%, transparent), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  width: min(100%, 1280px); margin-inline: auto; padding-inline: 32px;
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr);
  gap: clamp(32px, 4vw, 64px); align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-kicker { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-kicker .eyebrow { color: var(--muted); }
.hero-kicker__seal {
  display: inline-flex; align-items: center; height: 23px; padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--red) 40%, var(--line)); color: var(--red);
  font-family: var(--serif); font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .12em; border-radius: 4px;
}
.hero h1 {
  font-size: calc((clamp(52px, 7.2vw, 94px)) * var(--font-scale, 1)); line-height: 1.08; letter-spacing: .015em;
  margin-top: clamp(22px, 3vw, 36px); font-weight: 600;
}
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--red); position: relative; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -.06em; height: .18em;
  background: color-mix(in srgb, var(--red) 16%, transparent); border-radius: 50%; transform: rotate(-1.2deg);
}
.hero h1 .dot { color: var(--red); }
.hero-lead {
  color: var(--ink-2); font-size: calc(14.5px * var(--font-scale, 1)); line-height: 1.95; max-width: 520px;
  margin-top: 24px;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  margin-top: 40px; border-top: 1px solid var(--line); padding-top: 18px; max-width: 500px;
}
.hero-stat { padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stat__num { font-family: var(--serif); font-size: calc(24px * var(--font-scale, 1)); line-height: 1.1; letter-spacing: -.01em; }
.hero-stat__label { font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); letter-spacing: .08em; margin-top: 4px; }

.hero-stage { position: relative; min-height: 560px; align-self: stretch; }
.hero-sun {
  position: absolute; width: min(74%, 450px); aspect-ratio: 1; border-radius: 50%;
  top: 4%; right: 3%;
  background:
    radial-gradient(circle at 42% 36%, color-mix(in srgb, var(--gold) 38%, transparent), transparent 36%),
    radial-gradient(circle, color-mix(in srgb, var(--red) 24%, transparent) 0%, color-mix(in srgb, var(--red) 8%, transparent) 68%, transparent 70%);
  filter: blur(1px);
  opacity: .85;
}
.hero-ring {
  position: absolute; width: min(78%, 478px); aspect-ratio: 1; border-radius: 50%;
  right: 0; top: 1%; border: 1px solid color-mix(in srgb, var(--line-strong) 80%, transparent);
}
.hero-ring::before, .hero-ring::after {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); top: 18%; left: 8%;
}
.hero-ring::after { top: auto; bottom: 9%; left: auto; right: 10%; background: var(--jade); }
.hero-mask-wrap {
  position: absolute; left: 50%; bottom: 2%; width: min(76%, 388px);
  transform: translateX(-50%);
  filter: drop-shadow(0 30px 38px rgba(40, 26, 12, .18));
}
.hero-mask { width: 100%; height: auto; overflow: visible; }
.hero-mask .mask-face { fill: url(#maskFace); stroke: var(--ink); stroke-width: 2; }
.hero-mask .mask-line { stroke: var(--ink); fill: none; stroke-width: 2.2; stroke-linecap: round; }
.hero-mask .mask-red { fill: var(--red); }
.hero-mask .mask-red-line { stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; }
.hero-mask .mask-jade { fill: var(--jade); }
.hero-mask .mask-jade-line { stroke: var(--jade); fill: none; stroke-width: 1.6; stroke-linecap: round; }
.hero-mask .mask-paper { fill: var(--paper); }
.hero-mask .ribbon-red { stroke: color-mix(in srgb, var(--red) 48%, transparent); fill: none; stroke-width: 1.4; }
.hero-mask .ribbon-jade { stroke: color-mix(in srgb, var(--jade) 45%, transparent); fill: none; stroke-width: 1.2; }
.hero-vertical {
  position: absolute; right: -10px; top: 13%; writing-mode: vertical-rl;
  font-family: var(--serif); font-size: calc(15px * var(--font-scale, 1)); letter-spacing: .55em; color: var(--faint);
  display: flex; align-items: center; gap: 18px;
}
.hero-vertical::before { content: ""; width: 1px; height: 44px; background: var(--line-strong); }
.hero-seal {
  position: absolute; right: 18%; top: 9%; width: 44px; height: 44px;
  display: grid; place-items: center; border: 1px solid var(--red); color: var(--red);
  font-family: var(--serif); font-size: calc(15px * var(--font-scale, 1)); letter-spacing: .08em;
  transform: rotate(7deg); background: color-mix(in srgb, var(--paper) 55%, transparent);
  backdrop-filter: blur(3px);
}
.hero-float {
  position: absolute; z-index: 3; background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  border-radius: 12px; padding: 11px 14px; backdrop-filter: blur(12px);
  animation: float-y 7s ease-in-out infinite;
}
.hero-float--note { left: 0; top: 19%; width: 196px; animation-delay: -2s; }
.hero-float--room { right: -6px; bottom: 17%; width: 186px; animation-delay: -4.5s; }
.hero-float__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .12em; }
.hero-float__top .icon { width: 13px; height: 13px; color: var(--red); }
.hero-float__title { font-family: var(--serif); font-size: calc(15px * var(--font-scale, 1)); margin-top: 7px; line-height: 1.4; }
.hero-float__meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); }
.mini-online { display: inline-flex; align-items: center; gap: 5px; }
.mini-online::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 15%, transparent); }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-stage__caption {
  position: absolute; left: 2%; bottom: 3%; color: var(--faint); font-size: calc(12px * var(--font-scale, 1));
  letter-spacing: .18em; text-transform: uppercase;
}

/* marquee */
.marquee {
  border-bottom: 1px solid var(--line); background: var(--paper-2); overflow: hidden;
  padding: 12px 0; white-space: nowrap;
}
.marquee__track { display: inline-flex; align-items: center; gap: 34px; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 34px; font-family: var(--serif); font-size: calc(12px * var(--font-scale, 1)); color: var(--muted); letter-spacing: .18em; }
.marquee__item::after { content: "◇"; color: var(--red); font-size: calc(12px * var(--font-scale, 1)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- home sections ---------- */
.home-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: end; }
.home-intro__title { font-size: calc((clamp(30px, 4vw, 48px)) * var(--font-scale, 1)); line-height: 1.3; }
.home-intro__title em { font-style: normal; color: var(--red); }
.home-intro__copy { color: var(--muted); font-size: calc(14px * var(--font-scale, 1)); line-height: 1.95; max-width: 500px; justify-self: end; }
.home-intro__copy .text-link { margin-top: 16px; }

.today-grid { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(320px, .85fr); gap: 32px; align-items: start; }
.feature-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--ink); min-height: 430px; }
.feature-card .cover { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.feature-card .cover::after { background: linear-gradient(to top, rgba(14,11,8,.92) 0%, rgba(14,11,8,.48) 38%, rgba(14,11,8,.04) 72%); opacity: 1; }
.feature-card .cover img { opacity: .94; }
.feature-card:hover .cover img { transform: scale(1.035); }
.feature-card__content {
  position: relative; z-index: 4; min-height: 430px; padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #f9f3e7;
}
.feature-card__tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.feature-card__tags .badge { background: rgba(255,250,242,.14); border-color: rgba(255,255,255,.18); color: #f6ecdc; backdrop-filter: blur(4px); }
.feature-card__tags .badge--red { background: var(--red); border-color: var(--red); color: #fff; }
.feature-card__title { font-family: var(--serif); font-size: calc((clamp(26px, 3vw, 38px)) * var(--font-scale, 1)); line-height: 1.35; max-width: 700px; letter-spacing: .01em; }
.feature-card__desc { color: rgba(249,243,231,.7); font-size: calc(12.5px * var(--font-scale, 1)); line-height: 1.8; max-width: 620px; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.feature-card__author { display: flex; align-items: center; gap: 8px; font-size: calc(12px * var(--font-scale, 1)); color: rgba(249,243,231,.62); }
.feature-card__author .avatar { --avatar-size: 24px; }
.feature-card__play { display: inline-flex; align-items: center; gap: 8px; font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .08em; color: rgba(249,243,231,.82); }
.feature-card__play span { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.feature-card:hover .feature-card__play span { background: var(--red); border-color: var(--red); }
.feature-card__play .icon { fill: currentColor; stroke: none; width: 12px; height: 12px; margin-left: 2px; }
.playlist-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px; box-shadow: var(--shadow-xs); }
.playlist-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; }
.playlist-panel__head h3 { font-size: calc(16px * var(--font-scale, 1)); }
.playlist-panel__head span { font-family: var(--mono); font-size: calc(12px * var(--font-scale, 1)); color: var(--faint); }
.playlist-panel .list-row { padding: 12px 0; }
.playlist-panel .list-row__cover { width: 84px; }
.playlist-panel .list-row__title { font-size: calc(12px * var(--font-scale, 1)); }

.learn-start-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.start-card { position: relative; background: var(--surface); padding: 28px 26px 26px; min-height: 210px; display: flex; flex-direction: column; transition: background .25s; }
.start-card:hover { background: var(--surface-2); }
.start-card__index { font-family: var(--serif); font-size: calc(12px * var(--font-scale, 1)); color: var(--red); letter-spacing: .1em; }
.start-card__title { font-size: calc(23px * var(--font-scale, 1)); margin-top: 20px; line-height: 1.35; }
.start-card__desc { color: var(--muted); font-size: calc(12.5px * var(--font-scale, 1)); line-height: 1.85; margin-top: 10px; max-width: 280px; }
.start-card__foot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .08em; }
.start-card__arrow { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: all .25s; }
.start-card:hover .start-card__arrow { background: var(--red); color: #fff; border-color: var(--red); transform: rotate(-35deg); }
.start-card__arrow .icon { width: 13px; height: 13px; }

.culture-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: clamp(30px, 6vw, 84px); align-items: center; }
.culture-feature { position: relative; padding: clamp(26px, 3vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.culture-feature::before {
  content: "讀"; position: absolute; right: -12px; bottom: -48px; font-family: var(--serif);
  font-size: calc(190px * var(--font-scale, 1)); line-height: 1; color: color-mix(in srgb, var(--ink) 4%, transparent); pointer-events: none;
}
.culture-feature__kicker { display: flex; align-items: center; gap: 12px; color: var(--red); font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .18em; font-weight: 600; }
.culture-feature__kicker::after { content: ""; width: 40px; height: 1px; background: var(--line-strong); }
.culture-feature__title { position: relative; font-size: calc((clamp(26px, 3vw, 38px)) * var(--font-scale, 1)); margin-top: 18px; line-height: 1.4; }
.culture-feature__summary { position: relative; color: var(--muted); font-size: calc(13px * var(--font-scale, 1)); line-height: 1.95; margin-top: 14px; max-width: 560px; }
.culture-feature__foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.culture-feature__meta { color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); }
.culture-list { display: flex; flex-direction: column; }
.culture-list__item { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding .2s; }
.culture-list__item:first-child { padding-top: 0; }
.culture-list__item:hover { padding-left: 4px; }
.culture-list__num { font-family: var(--serif); color: var(--faint); font-size: calc(13px * var(--font-scale, 1)); padding-top: 3px; }
.culture-list__title { font-size: calc(15px * var(--font-scale, 1)); font-weight: 600; line-height: 1.6; transition: color .2s; }
.culture-list__item:hover .culture-list__title { color: var(--red); }
.culture-list__meta { color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); margin-top: 5px; display: flex; gap: 8px; align-items: center; }
.culture-list__item--more { padding-bottom: 0; border-bottom: 0; }

.rooms-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.room-preview {
  position: relative; display: flex; flex-direction: column; min-height: 212px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.room-preview:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.room-preview__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.room-glyph {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  font-family: var(--serif); font-size: calc(17px * var(--font-scale, 1)); color: var(--red); background: var(--red-soft);
  border-radius: 11px;
}
.room-glyph--jade { color: var(--jade); background: var(--jade-soft); }
.room-glyph--gold { color: var(--gold); background: var(--gold-soft); }
.room-glyph--plum { color: var(--plum); background: var(--plum-soft); }
.room-preview .badge { height: 21px; font-size: calc(12px * var(--font-scale, 1)); }
.room-preview__title { font-family: var(--serif); font-size: calc(19px * var(--font-scale, 1)); margin-top: 18px; }
.room-preview__topic { color: var(--muted); font-size: calc(12px * var(--font-scale, 1)); line-height: 1.7; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.room-preview__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); }
.room-preview__foot .icon { width: 13px; height: 13px; }
.room-preview__last { color: var(--muted); font-size: calc(12px * var(--font-scale, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 14px; }

.works-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-poster {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); isolation: isolate; color: #f9f2e5;
}
.work-poster::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, var(--poster-a), var(--poster-b));
}
.work-poster::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at 82% 14%, rgba(255,255,255,.14), transparent 40%),
    repeating-linear-gradient(120deg, transparent 0 22px, rgba(255,255,255,.035) 22px 23px),
    linear-gradient(to top, rgba(12,10,8,.55), transparent 50%);
}
.work-poster--cinnabar { --poster-a: #7e2c20; --poster-b: #b23a2a; }
.work-poster--jade { --poster-a: #213f39; --poster-b: #3d6d61; }
.work-poster--ink { --poster-a: #1f1c18; --poster-b: #4a443a; }
.work-poster--gold { --poster-a: #5b4528; --poster-b: #9d7942; }
.work-poster--plum { --poster-a: #432432; --poster-b: #75455a; }
.work-poster__inner { position: relative; z-index: 2; height: 100%; padding: 18px; display: flex; flex-direction: column; }
.work-poster__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.work-poster__type { font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .14em; color: rgba(255,248,238,.72); border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 3px 6px; }
.work-poster__seal { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.32); color: rgba(255,255,255,.82); font-family: var(--serif); font-size: calc(12px * var(--font-scale, 1)); }
.work-poster__title { margin-top: auto; font-family: var(--serif); font-size: calc((clamp(23px, 2.4vw, 32px)) * var(--font-scale, 1)); line-height: 1.35; text-wrap: balance; }
.work-poster__meta { font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .1em; color: rgba(255,248,238,.56); margin-top: 10px; }
.work-poster__vertical { position: absolute; right: 14px; top: 48px; writing-mode: vertical-rl; font-family: var(--serif); font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .24em; color: rgba(255,255,255,.28); }
.work-card__body { padding: 12px 2px 0; }
.work-card__title { font-size: calc(14px * var(--font-scale, 1)); font-weight: 600; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.work-card:hover .work-card__title { color: var(--red); }
.work-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); margin-top: 6px; }
.work-card__meta-left { display: flex; align-items: center; gap: 7px; min-width: 0; }
.work-card__meta-left .avatar { --avatar-size: 20px; }
.work-card__stats { display: flex; gap: 9px; flex: none; }
.work-card__stats span { display: inline-flex; align-items: center; gap: 3px; }
.work-card__stats .icon { width: 12px; height: 12px; }

.home-quote { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: clamp(36px, 5vw, 58px) clamp(24px, 4vw, 54px); border-radius: var(--radius); background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.home-quote::before { content: "“"; position: absolute; right: 20px; top: -68px; font-family: var(--serif); font-size: calc(260px * var(--font-scale, 1)); line-height: 1; color: rgba(255,255,255,.05); }
.home-quote__text { position: relative; font-family: var(--serif); font-size: calc((clamp(22px, 3.1vw, 38px)) * var(--font-scale, 1)); line-height: 1.6; max-width: 850px; }
.home-quote__source { position: relative; color: rgba(247,243,234,.45); font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .18em; margin-top: 18px; }
.home-quote .btn { position: relative; }

/* ---------- footer ---------- */
.site-footer { margin-top: 30px; border-top: 1px solid var(--line); background: var(--paper-2); padding: 54px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .7fr); gap: 36px; }
.footer-brand { max-width: 360px; }
.footer-brand .brand { display: inline-flex; }
.footer-desc { color: var(--muted); font-size: calc(12px * var(--font-scale, 1)); line-height: 1.9; margin-top: 18px; }
.footer-col h4 { font-family: var(--sans); font-size: calc(12px * var(--font-scale, 1)); letter-spacing: .14em; color: var(--faint); font-weight: 600; margin-bottom: 14px; text-transform: uppercase; }
.footer-col a { display: block; color: var(--ink-2); font-size: calc(12px * var(--font-scale, 1)); padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; color: var(--faint); font-size: calc(12px * var(--font-scale, 1)); line-height: 1.9; }
.footer-bottom__legal { max-width: 760px; }
.footer-bottom__right { text-align: right; flex: none; }
.footer-bottom button { color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom button:hover { color: var(--red); }
.footer-seal { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-strong); color: var(--faint); font-family: var(--serif); font-size: calc(12px * var(--font-scale, 1)); border-radius: 3px; margin-left: 5px; vertical-align: middle; }

/* ---------- toast ---------- */
.toast-root { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: calc(12.5px * var(--font-scale, 1)); box-shadow: var(--shadow-md);
  animation: toast-in .35s var(--ease-out) both;
}
.toast .icon { width: 15px; height: 15px; color: var(--gold); }
.toast--error { background: var(--danger); color: #fff; }
.toast--error .icon { color: #fff; }
.toast.is-out { animation: toast-out .25s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .55s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
