/* ==========================================================================
   乌叶MC · 星穹 theme layer
   Loaded after styles.css + page CSS. Replaces the rounded "card grid" look
   with gold-on-ink, serif display type, chamfered frames and ruled ledgers.
   Fonts are self-hosted (Cinzel / Cormorant Garamond, SIL OFL).
   ========================================================================== */

@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #07060b;
  --bg-2: #0c0a12;
  --ink: #0f0d16;
  --panel: rgba(18, 15, 26, 0.72);
  --panel-solid: #12101a;
  --panel-2: #171421;
  --line: rgba(216, 181, 106, 0.16);
  --line-strong: rgba(216, 181, 106, 0.42);
  --gold: #d8b56a;
  --gold-hi: #f3d996;
  --gold-soft: rgba(216, 181, 106, 0.12);
  --cyan: #9fd9e6;
  --cyan-2: #6fb6c8;
  --cyan-soft: rgba(159, 217, 230, 0.1);
  --violet: #a48ad8;
  --rose: #e6a0b4;
  --green: #9ad6a0;
  --red: #e5737f;
  --text: #ece4d2;
  --muted: #a49c8b;
  --muted-2: #6f685b;
  --radius: 0px;
  --maxw: 1360px;
  --cut: 14px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.95);
  --serif: "Cormorant", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --display: "Cinzel", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --chamfer: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

body {
  background: var(--bg);
  letter-spacing: 0.01em;
}

/* starfield + faint orbit rings instead of the old cyan grid */
body::before {
  background:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(255, 246, 220, 0.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 64%, rgba(159, 217, 230, 0.6) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 44% 32%, rgba(255, 246, 220, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 78%, rgba(216, 181, 106, 0.7) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 78% 22%, rgba(255, 246, 220, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 56%, rgba(164, 138, 216, 0.6) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 8% 86%, rgba(255, 246, 220, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 8%, rgba(255, 246, 220, 0.5) 50%, transparent 51%),
    radial-gradient(1100px 620px at 85% -15%, rgba(164, 138, 216, 0.14), transparent 65%),
    radial-gradient(900px 600px at -5% 10%, rgba(216, 181, 106, 0.09), transparent 60%),
    linear-gradient(180deg, #07060b 0%, #0a0811 60%, #07060b 100%);
  background-size: 340px 340px, 420px 420px, 380px 380px, 460px 460px, 400px 400px,
    440px 440px, 360px 360px, 480px 480px, auto, auto, auto;
}

body::after {
  background-image:
    radial-gradient(circle at 50% -40%, transparent 54%, rgba(216, 181, 106, 0.07) 54.1%, transparent 54.4%),
    radial-gradient(circle at 50% -40%, transparent 70%, rgba(216, 181, 106, 0.05) 70.1%, transparent 70.35%);
  background-size: 100% 100%;
  mask-image: none;
}

::selection {
  background: rgba(216, 181, 106, 0.32);
}

a {
  color: var(--gold);
}
a:hover {
  color: var(--gold-hi);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------------- header ---------------- */
.site-header {
  background: linear-gradient(180deg, rgba(7, 6, 11, 0.92), rgba(7, 6, 11, 0.6));
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--line-strong) 30%, var(--line-strong) 70%, transparent) 1;
  backdrop-filter: blur(14px);
}
.brand-avatar {
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px rgba(7, 6, 11, 1), 0 0 0 5px var(--line-strong);
}
.brand-avatar img {
  border-radius: 50%;
}
.brand-text strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
}
.brand-text small {
  font-family: var(--display);
  letter-spacing: 0.32em;
  color: var(--gold);
  font-size: 0.6rem;
}
.nav a {
  position: relative;
  border-radius: 0;
  background: none !important;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  padding: 6px 4px;
  margin: 0 10px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease, left 0.3s ease;
}
.nav a:hover,
.nav a[aria-current="page"],
.nav a.is-active {
  color: var(--gold-hi);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after,
.nav a.is-active::after {
  width: 100%;
  left: 0;
}

/* ---------------- buttons ---------------- */
.btn {
  border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: none !important;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn-primary,
.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #1a1408 !important;
  border: 0;
}
.btn-primary:hover,
.btn-gold:hover {
  background: linear-gradient(180deg, #fff0c2, var(--gold-hi));
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(216, 181, 106, 0.06);
  color: var(--gold-hi) !important;
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(216, 181, 106, 0.14);
}
.btn-danger {
  border-radius: 0;
}

/* ---------------- tags / badges / chips ---------------- */
.tag,
.badge {
  border-radius: 0;
  background: transparent;
  border: 0;
  border-left: 2px solid currentColor;
  padding: 0 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.badge-cyan,
.tag {
  color: var(--cyan);
}
.badge-gold {
  color: var(--gold);
}
.badge-green {
  color: var(--green);
}
.badge-rose {
  color: var(--rose);
}
.badge-muted {
  color: var(--muted-2);
}
.chip {
  border-radius: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--serif);
  padding: 4px 2px;
}
.chip::before {
  content: "◆ ";
  color: var(--gold);
  font-size: 0.6em;
  vertical-align: 2px;
}
.chip:hover,
.chip.is-active {
  background: none;
  color: var(--gold-hi);
  border-bottom-color: var(--gold);
}

/* ---------------- ticker ---------------- */
.ticker {
  background: none;
  border: 0;
}
.ticker-label {
  border-radius: 0;
  background: none;
  color: var(--gold);
  font-family: var(--display);
  letter-spacing: 0.2em;
}

/* ---------------- section heads ---------------- */
.section-head h2,
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--text);
}
.section-head h2 {
  display: block;
  padding-left: 0;
  font-weight: 700;
}
.section-head h2::before {
  content: attr(data-mark);
  position: static;
  display: block;
  width: auto;
  background: none;
  transform: none;
  box-shadow: none;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-head .sub,
.page-head p {
  color: var(--muted);
  max-width: 44em;
}
.link-arrow {
  font-family: var(--serif);
  color: var(--gold);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.page-head {
  border: 0;
  background: none;
  text-align: left;
}
.eyebrow {
  border-radius: 0;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--display);
  letter-spacing: 0.35em;
  color: var(--gold);
  font-size: 0.72rem;
}
.dot {
  border-radius: 0;
  transform: rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* ---------------- panels: chamfered, no rounded boxes ---------------- */
.panel,
.card,
.poll,
.auth-card,
.modal,
.metric,
.cta-band,
.idea-card {
  border-radius: 0 !important;
  background:
    linear-gradient(180deg, rgba(216, 181, 106, 0.05), transparent 40%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  clip-path: var(--chamfer);
  position: relative;
}
.panel::before,
.poll::before,
.idea-card::before,
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  opacity: 0.55;
  pointer-events: none;
}

/* ---------------- idea rows: ruled ledger ---------------- */
.idea-list {
  gap: 0;
  border-top: 1px solid var(--line);
}
.idea-row {
  border-radius: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  padding: 18px 4px;
  transition: background 0.25s ease;
}
.idea-row:hover {
  background: linear-gradient(90deg, rgba(216, 181, 106, 0.07), transparent 70%);
  transform: none;
}
.idea-rank {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--muted-2);
  background: none;
  border: 0;
  border-radius: 0;
  width: auto;
  min-width: 2.4em;
}
.idea-rank,
.idea-row .idea-rank {
  background: none !important;
  box-shadow: none !important;
  clip-path: none !important;
  border: 0 !important;
  height: auto;
  color: var(--muted-2);
}
.idea-row:nth-child(2) .idea-rank,
.idea-row:nth-child(3) .idea-rank {
  color: var(--gold);
}
.idea-row:first-child .idea-rank {
  color: var(--gold-hi);
  text-shadow: 0 0 18px rgba(216, 181, 106, 0.5);
}
.idea-main h3,
.idea-card h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
}
.idea-main h3 a,
.idea-card h3 a {
  color: var(--text);
}
.idea-vote {
  border-radius: 0;
  background: none;
  border: 1px solid var(--line-strong);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  color: var(--gold);
}
.idea-vote:hover {
  background: var(--gold-soft);
}
.idea-vote.is-voted {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #1a1408;
  border-color: transparent;
}
.official-reply {
  border-radius: 0;
  background: none;
  border: 0;
  border-left: 2px solid var(--gold);
}

/* ---------------- polls ---------------- */
.poll-option {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 0;
  border-bottom: 1px solid var(--line);
}
.poll-option .bar {
  border-radius: 0;
  background: linear-gradient(90deg, rgba(216, 181, 106, 0.28), rgba(216, 181, 106, 0.04));
}
.poll-check {
  border-radius: 0;
  transform: rotate(45deg) scale(0.8);
  border-color: var(--gold);
}
.poll-head h3 {
  font-size: 1.4rem;
}
.poll-pct {
  font-family: var(--display);
  color: var(--gold-hi);
}

/* ---------------- forms ---------------- */
.input,
.select,
.textarea {
  border-radius: 0;
  background: rgba(7, 6, 11, 0.6);
  border: 0;
  border-bottom: 1px solid var(--line-strong);
}
.input:focus,
.select:focus,
.textarea:focus {
  box-shadow: none;
  border-bottom-color: var(--gold);
  background: rgba(216, 181, 106, 0.05);
}
.field-label {
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* ---------------- tabs / pagination / misc ---------------- */
.tabs {
  border-radius: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.tab {
  border-radius: 0;
  background: none !important;
  font-family: var(--serif);
}
.tab.is-active,
.tab[aria-selected="true"] {
  color: var(--gold-hi);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.page-btn {
  border-radius: 0;
}
.progress {
  border-radius: 0;
  height: 3px;
}
.skeleton {
  border-radius: 0;
}
.empty {
  border-radius: 0;
  border: 1px dashed var(--line);
  background: none;
}
.toast {
  border-radius: 0;
  border-left: 3px solid var(--gold);
}
.table th {
  font-family: var(--serif);
  color: var(--gold);
}
.code-block {
  border-radius: 0;
}

/* ---------------- footer ---------------- */
.site-footer {
  background: none;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--line-strong), transparent) 1;
}
.footer-col h4 {
  font-family: var(--display);
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--gold);
}
.footer-brand img {
  border-radius: 50%;
}

/* ==========================================================================
   Shared ornaments
   ========================================================================== */
.cx-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
}
.cx-rule::before,
.cx-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}
.cx-rule::after {
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.cx-frame {
  position: relative;
}
.cx-frame::before,
.cx-frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  pointer-events: none;
  z-index: 2;
}
.cx-frame::before {
  top: -8px;
  left: -8px;
  border-right: 0;
  border-bottom: 0;
}
.cx-frame::after {
  bottom: -8px;
  right: -8px;
  border-left: 0;
  border-top: 0;
}

/* ==========================================================================
   Home
   ========================================================================== */
.cx-hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 48px 0 72px;
}
.cx-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cx-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) saturate(1.2) brightness(0.45);
  transform: scale(1.15);
}
.cx-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 18%, rgba(7, 6, 11, 0.55) 55%, rgba(7, 6, 11, 0.2)),
    linear-gradient(0deg, var(--bg), transparent 40%);
}
.cx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
}
.cx-hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(2.8rem, 7.4vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: 0.04em;
}
.cx-hero h1 .l2 {
  display: block;
  padding-left: 0.9em;
  background: linear-gradient(100deg, var(--gold-hi), var(--gold) 45%, #b48c43);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cx-hero-lead {
  max-width: 34em;
  color: var(--muted);
  font-size: 1.04rem;
}
.cx-hero-lead strong {
  color: var(--text);
  font-weight: 600;
}
.cx-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 34px;
}
.cx-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: baseline;
  font-family: var(--serif);
  color: var(--muted);
}
.cx-stats b {
  font-family: var(--display);
  color: var(--gold-hi);
  font-size: 1.5rem;
  margin-right: 6px;
}
.cx-stats span + span::before {
  content: "◆";
  font-size: 0.5rem;
  color: var(--gold);
  margin-right: 22px;
  vertical-align: 4px;
}

.cx-poster {
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
}
.cx-poster a {
  display: block;
  color: inherit;
}
.cx-poster-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
  box-shadow: 0 40px 90px -30px #000;
}
.cx-poster-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.cx-poster:hover .cx-poster-img img {
  transform: scale(1.04);
}
.cx-poster-cap {
  position: absolute;
  left: -36px;
  bottom: 28px;
  max-width: 82%;
  padding: 14px 18px;
  background: rgba(7, 6, 11, 0.86);
  border-left: 2px solid var(--gold);
  backdrop-filter: blur(8px);
}
.cx-poster-cap small {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.3em;
  font-size: 0.62rem;
  color: var(--gold);
}
.cx-poster-cap strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.35;
  margin-top: 4px;
}
.cx-poster-cap em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.85rem;
}
.cx-poster-ring {
  position: absolute;
  inset: -42px -42px auto auto;
  width: 160px;
  height: 160px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  z-index: -1;
}
.cx-poster-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed var(--line);
  border-radius: 50%;
  animation: cx-spin 60s linear infinite;
}
@keyframes cx-spin {
  to {
    transform: rotate(360deg);
  }
}

/* comment marquee */
.cx-voices {
  border-block: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cx-voices-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: cx-marquee 60s linear infinite;
}
.cx-voices:hover .cx-voices-track {
  animation-play-state: paused;
}
.cx-voices a {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--text);
  white-space: nowrap;
}
.cx-voices a::before {
  content: "「";
  color: var(--gold);
}
.cx-voices a::after {
  content: "」";
  color: var(--gold);
}
.cx-voices a:hover {
  color: var(--gold-hi);
}
@keyframes cx-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* film strip of latest works */
.cx-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.cx-work:nth-child(even) {
  margin-top: 46px;
}
.cx-work-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  clip-path: var(--chamfer);
}
.cx-work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.4s ease;
  filter: saturate(0.85);
}
.cx-work:hover .cx-work-cover img {
  transform: scale(1.05);
  filter: saturate(1.1);
}
.cx-work-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 6, 11, 0.85), transparent 45%);
}
.cx-work-num {
  position: absolute;
  top: 10px;
  left: 14px;
  z-index: 1;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--gold-hi);
  text-shadow: 0 2px 12px #000;
}
.cx-work-plays {
  position: absolute;
  left: 14px;
  bottom: 10px;
  z-index: 1;
  font-size: 0.8rem;
  color: var(--text);
}
.cx-work h3 {
  font-size: 1.08rem;
  line-height: 1.4;
  margin: 14px 0 6px;
}
.cx-work h3 a {
  color: var(--text);
}
.cx-work-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.8rem;
}
.cx-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--gold);
  font: inherit;
  padding: 2px 0;
  cursor: pointer;
}
.cx-like:hover {
  color: var(--gold-hi);
}
.cx-like.is-on {
  color: var(--gold-hi);
  border-bottom-color: var(--gold);
  text-shadow: 0 0 12px rgba(216, 181, 106, 0.7);
}

/* roadmap: a path of nodes */
.cx-road {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 0;
  overflow-x: auto;
  padding: 28px 0 8px;
  scrollbar-width: thin;
}
.cx-road::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 41px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--line) 80%, transparent);
}
.cx-node {
  position: relative;
  padding: 34px 22px 0 0;
}
.cx-node::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
  background: var(--bg);
  border: 1px solid var(--gold);
}
.cx-node[data-status="building"]::before {
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
  animation: cx-pulse 2.4s ease-in-out infinite;
}
.cx-node[data-status="released"]::before {
  background: var(--gold-hi);
}
@keyframes cx-pulse {
  50% {
    box-shadow: 0 0 2px var(--gold);
  }
}
.cx-node small {
  font-family: var(--display);
  letter-spacing: 0.25em;
  font-size: 0.62rem;
  color: var(--gold);
}
.cx-node h3 {
  font-size: 1.1rem;
  margin: 4px 0 10px;
}
.cx-node-bar {
  height: 2px;
  background: var(--line);
}
.cx-node-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
}
.cx-node p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* two-column split used for bracket + board */
.cx-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

/* VS duel */
.cx-duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  border-block: 1px solid var(--line);
}
.cx-side {
  position: relative;
  padding: 22px 18px;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.25s ease;
}
.cx-side + .cx-vs + .cx-side {
  text-align: right;
}
.cx-side:hover:not(:disabled) {
  background: var(--gold-soft);
}
.cx-side:disabled {
  cursor: default;
}
.cx-side strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
}
.cx-side span {
  color: var(--muted);
  font-size: 0.82rem;
}
.cx-side .cx-fill {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--gold);
  transform-origin: left;
}
.cx-side + .cx-vs + .cx-side .cx-fill {
  transform-origin: right;
}
.cx-side.is-picked strong {
  color: var(--gold-hi);
}
.cx-side.is-picked::after {
  content: "已支持";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.15em;
}
.cx-side + .cx-vs + .cx-side.is-picked::after {
  right: auto;
  left: 10px;
}
.cx-side.is-winner strong::after {
  content: " ✦";
  color: var(--gold);
}
.cx-vs {
  display: grid;
  place-items: center;
  padding: 0 14px;
  font-family: var(--display);
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  border-inline: 1px solid var(--line);
}

/* supporter board */
.cx-board {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rank;
}
.cx-board li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 2.6em 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.05rem;
}
.cx-board li::before {
  content: counter(rank, upper-roman);
  font-family: var(--display);
  color: var(--muted-2);
  font-size: 0.85rem;
}
.cx-board li.is-empty::before {
  content: "";
}
.cx-board li.is-empty {
  color: var(--muted);
  font-size: 0.95rem;
}
.cx-board li:nth-child(-n + 3)::before {
  color: var(--gold-hi);
}
.cx-board b {
  font-family: var(--display);
  color: var(--gold);
  font-size: 0.9rem;
}
.cx-nick {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.cx-nick .input {
  flex: 1;
  min-width: 0;
}
.cx-note {
  color: var(--muted-2);
  font-size: 0.8rem;
  margin: 10px 0 0;
}

/* closing band */
.cx-close {
  text-align: center;
  padding: 70px 0 40px;
}
.cx-close h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 14px 0 10px;
}
.cx-close p {
  color: var(--muted);
  margin: 0 auto 26px;
  max-width: 30em;
}

/* ==========================================================================
   Arena (full bracket)
   ========================================================================== */
.cx-bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.cx-round h3 {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin: 0 0 12px;
}
.cx-round {
  display: flex;
  flex-direction: column;
}
.cx-round-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 18px;
}
.cx-round .cx-duel {
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  clip-path: var(--chamfer);
  background: var(--panel);
}
.cx-round .cx-vs {
  border-inline: 0;
  border-block: 1px solid var(--line);
  padding: 2px;
  font-size: 0.7rem;
}
.cx-round .cx-side + .cx-vs + .cx-side {
  text-align: left;
}
.cx-round .cx-side + .cx-vs + .cx-side .cx-fill {
  transform-origin: left;
}
.cx-round .cx-side + .cx-vs + .cx-side.is-picked::after {
  left: auto;
  right: 10px;
}
.cx-round .cx-side {
  padding: 12px 14px;
}
.cx-round .cx-side strong {
  font-size: 1.02rem;
}
.cx-round.is-future .cx-side {
  opacity: 0.45;
}
.cx-champion {
  text-align: center;
  padding: 26px;
  font-family: var(--serif);
}
.cx-champion strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold-hi);
}

/* ==========================================================================
   Reveal + responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .cx-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cx-split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .cx-hero {
    min-height: 0;
    padding-top: 28px;
  }
  .cx-hero-grid {
    grid-template-columns: 1fr;
  }
  .cx-poster {
    justify-self: center;
    width: min(78%, 320px);
  }
  .cx-poster-cap {
    left: -16px;
  }
  .cx-hero h1 .l2 {
    padding-left: 0.5em;
  }
  .nav a {
    margin: 0;
  }
}
@media (max-width: 560px) {
  .cx-strip {
    gap: 14px;
  }
  .cx-work:nth-child(even) {
    margin-top: 28px;
  }
  .cx-duel {
    grid-template-columns: 1fr;
  }
  .cx-vs {
    border-inline: 0;
    border-block: 1px solid var(--line);
    padding: 4px;
  }
  .cx-side + .cx-vs + .cx-side {
    text-align: left;
  }
  .cx-stats span + span::before {
    margin-right: 12px;
  }
  .cx-stats {
    gap: 6px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cx-voices-track,
  .cx-poster-ring::after,
  .cx-node[data-status="building"]::before {
    animation: none;
  }
}

/* inner-page stat tiles → inline gold figures */
.page-stats,
.polls-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 34px;
}
.page-stat,
.polls-stat {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  padding: 0 0 0 14px !important;
  border-left: 1px solid var(--line-strong) !important;
  min-width: 0;
  text-align: left;
}
.page-stat b,
.page-stat strong,
.polls-stat b,
.polls-stat strong {
  font-family: var(--display) !important;
  color: var(--gold-hi) !important;
  font-size: 1.9rem !important;
  text-shadow: none !important;
}
.page-stat::before,
.page-stat::after,
.polls-stat::before,
.polls-stat::after {
  display: none !important;
}

/* admin → channel */
.admin-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.admin-inline .input,
.admin-inline .select {
  width: auto;
  flex: 1 1 140px;
  min-width: 0;
}
.admin-inline [data-f="progress"] {
  flex: 0 0 72px;
}
.admin-thumb {
  width: 48px;
  height: 64px;
  object-fit: cover;
}
.admin-video-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}
#video-list .idea-row,
#inbox-list .idea-row {
  flex-wrap: wrap;
}
#inbox-list h3 {
  white-space: pre-line;
  font-size: 1rem;
}

/* ==========================================================================
   Downloads
   ========================================================================== */
.dl-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(22px, 4vw, 44px);
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(164, 138, 216, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(216, 181, 106, 0.06), transparent),
    var(--panel);
  border: 1px solid var(--line);
  margin-top: 26px;
}
.dl-gate h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 6px 0 10px;
}
.dl-gate-form {
  display: grid;
  gap: 8px;
  align-content: center;
}
.dl-gate-form .btn {
  margin-top: 10px;
}
.dl-code {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  text-align: center;
}
.dl-shake {
  animation: dl-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes dl-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}
.dl-unlock {
  animation: dl-unlock 0.7s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}
@keyframes dl-unlock {
  to {
    clip-path: inset(50% 0 50% 0);
    opacity: 0;
    filter: blur(6px);
  }
}
.dl-welcome {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  animation: wy-fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.dl-welcome strong {
  font-family: var(--serif);
  font-size: 1.5rem;
}
.dl-seal {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #1a1408;
  font-size: 1.4rem;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  transform: rotate(45deg);
  box-shadow: 0 0 30px rgba(216, 181, 106, 0.5);
}
@keyframes wy-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.dl-list {
  border-top: 1px solid var(--line);
}
.dl-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.dl-row:hover {
  background: linear-gradient(90deg, rgba(216, 181, 106, 0.07), transparent 70%);
}
.dl-row h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}
.dl-row p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--muted-2);
  font-size: 0.82rem;
}
.dl-meta span:first-child {
  color: var(--gold);
}
.dl-hash {
  font-size: 0.72rem;
  color: var(--muted-2);
}
/* a little isometric block for each file */
.dl-icon {
  position: relative;
  width: 44px;
  height: 44px;
  transform: rotateX(55deg) rotateZ(45deg);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dl-row:hover .dl-icon {
  transform: rotateX(55deg) rotateZ(225deg);
}
.dl-icon i {
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(216, 181, 106, 0.35), rgba(164, 138, 216, 0.15));
}
.dl-icon i:nth-child(2) {
  transform: translateZ(10px);
}
.dl-icon i:nth-child(3) {
  transform: translateZ(20px);
  background: linear-gradient(135deg, rgba(243, 217, 150, 0.7), rgba(216, 181, 106, 0.3));
}
.dl-icon i:nth-child(4) {
  inset: 30%;
  transform: translateZ(21px);
  background: #fff8;
  border: 0;
}
.dl-btn {
  min-width: 150px;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.dl-btn:hover .dl-arrow {
  animation: dl-drop 0.7s ease-in-out infinite;
}
.dl-btn.is-busy .dl-arrow {
  animation: dl-drop 0.35s ease-in-out infinite;
}
@keyframes dl-drop {
  0% { transform: translateY(-6px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(6px); opacity: 0; }
}
.dl-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 56px 16px;
  color: var(--muted);
  border: 1px dashed var(--line);
  margin-top: 12px;
}
.dl-empty strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text);
}
.dl-empty p {
  margin: 0 0 8px;
}
.dl-empty-cube {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border: 1px dashed var(--gold);
  transform: rotate(45deg);
  animation: dl-float 4s ease-in-out infinite;
}
@keyframes dl-float {
  50% {
    transform: rotate(45deg) translate(-6px, -6px);
    box-shadow: 10px 10px 30px rgba(216, 181, 106, 0.25);
  }
}
@media (max-width: 760px) {
  .dl-gate {
    grid-template-columns: 1fr;
  }
  .dl-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .dl-btn {
    grid-column: 1 / -1;
  }
}

/* ======================= vote board ======================= */
.vb-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 22px; }
.vb-stats span { display: flex; align-items: baseline; gap: 8px; color: var(--muted, #a49c8b); font-size: 13px; }
.vb-stats b { font-family: Cinzel, serif; font-size: 26px; color: #f3d996; }
.vb-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.vb-sort, .vb-games { display: flex; flex-wrap: wrap; gap: 8px; }
.vb-games small { opacity: .6; margin-left: 4px; }
.vb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.vb-card {
  position: relative; display: flex; flex-direction: column; background: rgba(18, 15, 26, .85);
  border: 1px solid rgba(216, 181, 106, .18); overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: border-color .3s, transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s;
}
.vb-card:hover { border-color: rgba(216, 181, 106, .55); transform: translate3d(0, -4px, 0); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.vb-card.is-voted { border-color: rgba(243, 217, 150, .7); }
.vb-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0c0a12; }
.vb-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.vb-card:hover .vb-art img { transform: scale(1.06); }
.vb-ph { position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(164, 138, 216, .35), transparent 60%), radial-gradient(circle at 80% 90%, rgba(216, 181, 106, .25), transparent 55%), #0c0a12; }
.vb-ph i { font: 900 64px/1 "Noto Serif SC", serif; font-style: normal; color: rgba(243, 217, 150, .5); }
.vb-game { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; font-size: 12px; color: #f3d996; background: rgba(7, 6, 11, .78); border: 1px solid rgba(216, 181, 106, .4); backdrop-filter: blur(4px); }
.vb-rank { position: absolute; top: 10px; left: 10px; min-width: 36px; height: 36px; display: grid; place-items: center; font: 700 14px Cinzel, serif; color: #1a1408; background: linear-gradient(180deg, #f3d996, #d8b56a); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.vb-rank.r2 { background: linear-gradient(180deg, #e6e2da, #a9a39a); }
.vb-rank.r3 { background: linear-gradient(180deg, #e2b48a, #a8744a); }
.vb-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.vb-body h3 { margin: 0; font: 700 17px/1.35 "Noto Serif SC", serif; color: #f1e8d2; }
.vb-body p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted, #a49c8b); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vb-meter { height: 3px; background: rgba(216, 181, 106, .14); margin-top: auto; overflow: hidden; }
.vb-meter i { display: block; height: 100%; background: linear-gradient(90deg, #a48ad8, #f3d996); transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.vb-meter.is-build i { width: 40%; transform: none; animation: vb-build 1.8s ease-in-out infinite; }
@keyframes vb-build { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.vb-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vb-n { color: var(--muted, #a49c8b); font-size: 13px; }
.vb-n b { display: inline-block; font: 700 22px Cinzel, serif; color: #f3d996; margin-right: 2px; }
.vb-n b.bump { animation: vb-bump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes vb-bump { 40% { transform: scale(1.35); text-shadow: 0 0 16px #f3d996; } }
.vb-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.vb-mini { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 10px; background: rgba(18, 15, 26, .7); border: 1px solid rgba(216, 181, 106, .25); }
.vb-mini .vb-art { aspect-ratio: 1; }
.vb-mini .vb-ph i { font-size: 34px; }
.vb-mini .vb-body { padding: 0; gap: 6px; }
.vb-mini h3 { font-size: 15px; }
.vb-sub { font-size: 12px; color: var(--muted, #a49c8b); }
.vb-mini.is-done { opacity: .78; }
.vb-mini.is-done img { filter: saturate(.6); }
.vb-stamp { position: absolute; inset: auto 6px 6px auto; padding: 2px 8px; font-size: 11px; color: #1a1408; background: #d8b56a; transform: rotate(-6deg); }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
@media (max-width: 560px) { .vb-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .vb-body { padding: 10px; } .vb-body p { display: none; } .vb-foot { flex-direction: column; align-items: stretch; } }
.vb-cm { display: block; font-style: normal; font-size: 11px; color: #c9b8f0; margin-top: 2px; }
.cx-voices small { opacity: .6; }

.vb-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
#vb-accepted { display: grid; gap: 10px; }
.vb-acc { color: #d8b56a; }
@media (max-width: 860px) { .vb-split { grid-template-columns: 1fr; } }
.vb-mini .vb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vb-mn { font-weight: inherit; }
.vb-grid { position: relative; }
.vb-ghost { position: absolute; margin: 0; pointer-events: none; z-index: 0; }
.vb-meter i { transition: transform .7s cubic-bezier(.16, 1, .3, 1); }

/* ---------------- 赞助 / 排行榜 ---------------- */
.me-card { padding: 18px 20px; margin-bottom: 24px; display: grid; gap: 12px; }
.me-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.me-name { font-size: 20px; color: #f3d996; }
.me-tabs { display: flex; gap: 8px; }
.me-form { display: flex; flex-wrap: wrap; gap: 8px; }
.me-form .input { flex: 1 1 180px; }
.me-key { border: 1px dashed rgba(216, 181, 106, .6); padding: 12px 14px; background: rgba(216, 181, 106, .06); display: grid; gap: 8px; }
.me-key-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.me-key code { font-size: 20px; letter-spacing: .12em; color: #f3d996; user-select: all; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sp-pay, .sp-form { padding: 22px; display: grid; gap: 10px; }
.sp-qrs { display: flex; flex-wrap: wrap; gap: 16px; }
.sp-qr { margin: 0; display: grid; gap: 6px; justify-items: center; }
.sp-qr { position: relative; padding: 14px; border-radius: 22px; border: 1px solid rgba(243, 217, 150, .55); background: linear-gradient(160deg, rgba(243, 217, 150, .12), rgba(10, 12, 20, .6) 45%, rgba(216, 181, 106, .1)); box-shadow: 0 0 0 4px rgba(216, 181, 106, .08), 0 18px 40px rgba(0, 0, 0, .45), inset 0 0 24px rgba(243, 217, 150, .08); }
.sp-qr::before { content: ""; position: absolute; inset: 6px; border-radius: 17px; border: 1px dashed rgba(243, 217, 150, .28); pointer-events: none; }
.sp-qr.sp-wechat { border-color: rgba(7, 193, 96, .7); box-shadow: 0 0 0 4px rgba(7, 193, 96, .1), 0 18px 40px rgba(0, 0, 0, .45), 0 0 34px rgba(7, 193, 96, .22); }
.sp-qr.sp-alipay { border-color: rgba(22, 119, 255, .75); box-shadow: 0 0 0 4px rgba(22, 119, 255, .1), 0 18px 40px rgba(0, 0, 0, .45), 0 0 34px rgba(22, 119, 255, .25); }
.sp-qr img { position: relative; width: 240px; max-width: 100%; height: auto; display: block; border-radius: 14px; }
.sp-qr.is-in { animation: sp-qr-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes sp-qr-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sp-qr.is-in { animation: none; } }
.sp-qr figcaption { color: #d8b56a; font-size: 13px; }
.sp-methods { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.sp-methods .chip input { accent-color: #d8b56a; }
.sp-anon { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sp-anon input { accent-color: #d8b56a; }
.sp-mine { margin-top: 28px; }
.sp-mine-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.sp-mine-list li { display: flex; gap: 16px; justify-content: space-between; padding: 10px 14px; border: 1px solid rgba(216, 181, 106, .2); font-size: 14px; }
.sp-mine-list .is-confirmed { color: #f3d996; }
.sp-mine-list .is-rejected { color: #c97a7a; }
.sp-board-link { margin-top: 18px; }
.lb-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.lb-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: 720px; }
.lb-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid rgba(216, 181, 106, .2); background: rgba(18, 15, 26, .6); }
.lb-row.is-me { border-color: rgba(243, 217, 150, .8); box-shadow: 0 0 0 1px rgba(243, 217, 150, .25) inset; }
.lb-rank { width: 34px; text-align: center; font-family: "Cinzel", serif; color: #a89a7e; }
.lb-rank.r1, .lb-rank.r2, .lb-rank.r3 { color: #f3d996; font-weight: 700; }
.lb-rank.r1 { font-size: 18px; }
.lb-name { flex: 1; font-size: 16px; }
.lb-sub { color: #a89a7e; }
.lb-pts { color: #f3d996; }
.lb-foot { margin-top: 16px; }
@media (max-width: 860px) { .sp-grid { grid-template-columns: 1fr; } }

/* 9 nav links: shrink spacing so the full row fits on medium screens */
@media (max-width: 1360px) and (min-width: 821px) {
  .nav { gap: 0; }
  .nav a { margin: 0 clamp(2px, 0.6vw, 8px); padding: 6px 2px; font-size: clamp(0.82rem, 1.25vw, 1rem); white-space: nowrap; }
  .header-inner { gap: clamp(8px, 1.2vw, 20px); }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding-inline: clamp(8px, 1vw, 16px); font-size: clamp(0.78rem, 1.1vw, 0.9rem); white-space: nowrap; }
}
@media (max-width: 1080px) and (min-width: 821px) {
  .brand-text small { display: none; }
}
@media (max-width: 960px) and (min-width: 821px) {
  .nav a { margin: 0 2px; font-size: 0.8rem; }
  .brand-text strong { font-size: 0.95rem; }
  .brand-avatar { width: 34px; height: 34px; }
  .header-actions .btn { padding-inline: 7px; font-size: 0.74rem; }
  .header-inner { gap: 6px; }
}
.sp-qr[hidden] { display: none; }
.dl-row.has-cover { grid-template-columns: 132px minmax(0, 1fr) auto; }
.dl-cover { width: 132px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid rgba(216, 181, 106, .45); box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
.dl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.dl-row:hover .dl-cover img { transform: scale(1.06); }
@media (max-width: 760px) {
  .dl-row.has-cover { grid-template-columns: 1fr; }
  .dl-cover { width: 100%; aspect-ratio: 16 / 9; }
}
/* 已完成 cards: date + arrow to the video */
.vb-mini.is-done.has-video { opacity: 1; }
.vb-mini.is-done.has-video img { filter: none; }
.vb-done-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.vb-done-tag { color: #d8b56a; white-space: nowrap; }
.vb-done-foot { flex-wrap: wrap; row-gap: 8px; }
.vb-watch { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid rgba(216, 181, 106, .55); border-radius: 999px; color: #f3d996; font-size: 13px; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.vb-watch span { display: inline-block; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.vb-watch:hover, .vb-watch:focus-visible { background: #d8b56a; color: #1a1408; border-color: #d8b56a; }
.vb-watch:hover span, .vb-watch:focus-visible span { transform: translateX(4px); }
