﻿/* ==========================================================================
   KASSEN · 神战 看板
   底色/字体沿用 月读空间 的字体栈；背景图与 logo 热链其素材站
   动画全部原创 CSS（月夜呼吸、连线流光、胜者高光、冠军镀光）
   ========================================================================== */

:root {
  --night: #0a1018;
  --night-2: #0e1724;
  --ink: #f2f6ff;
  --ink-dim: #b8c6da;
  --ink-faint: #7f8fa6;
  --line: rgba(226, 236, 250, 0.12);
  --line-strong: rgba(226, 236, 250, 0.24);

  /* 配色取自 cho-kaguyahime.com：黑 / 青 / 珊瑚 / 黄 */
  --gold: #ffe48f;
  --gold-2: #fff3c8;
  --red: #ff635d;
  --red-2: #ff8b7f;
  --cyan: #00c0c3;
  --indigo: #4fdade;
  --rose: #ff635d;
  --black: #282828;

  --font: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  --font-display: "KASEN Display", "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;

  --r-lg: 6px;
  --r-md: 4px;
  --shadow: 0 26px 60px -38px #000, 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { min-height: 100%; }

/* 标题字：站酷庆科黄油体（Google Fonts 子集，只带标题用到的字），笔画厚、方中带圆，
   贴着「超辉夜姬」那套字标的气质；多出来的字回落系统字体 */
@font-face {
  font-family: "KASEN Display";
  src: url("fonts/title.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ------------------------------------------------------------------ 背景 */

.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* 主参考 cho-kaguyahime.com：深蓝水彩底，靠渐变压边 */
.bg-art {
  position: absolute;
  inset: -1%;
  background: #0a1018 url("img/cho-bg-dark.webp") center center / cover no-repeat;
  filter: saturate(1.05) brightness(0.92);
  transform: scale(1.02);
  animation: bgDrift 80s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-0.8%, -0.6%, 0); }
}

.bg-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 90% at 50% 8%, rgba(6, 12, 20, 0.05) 0%, rgba(6, 12, 20, 0.5) 60%, rgba(4, 9, 16, 0.86) 100%),
    linear-gradient(180deg, rgba(4, 9, 16, 0.5) 0%, rgba(4, 9, 16, 0.24) 26%, rgba(4, 9, 16, 0.72) 100%);
}

/* ------------------------------------------------------------------ 骨架 */

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 14px);
  min-height: 100vh;
  max-width: 1900px;
  margin: 0 auto;
  padding: clamp(10px, 1.2vw, 18px) clamp(14px, 2vw, 30px) 12px;
}

/* ------------------------------------------------------------------ 顶栏 */
/* 三栏：左边超大 logo，中间标题（绝对居中），右边状态胶囊 */

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 2px 0 6px;
}

.logo-slot { justify-self: start; display: flex; align-items: center; min-width: 0; }

/* 「超辉夜姬」字标：已经抠成透明底、笔画提亮，直接浮在夜色上 */
.brand-logo {
  display: block;
  height: clamp(40px, 3.6vw, 66px);
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.6));
}

.title-slot { justify-self: center; min-width: 0; text-align: center; }

.hero-title {
  margin: 0;
  font-family: "KASEN Display", var(--font);
  font-size: clamp(28px, 3.3vw, 50px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.04;
  background: linear-gradient(96deg, #ffffff 6%, #ffeccb 44%, #ffb9a6 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 20px rgba(255, 176, 120, 0.3));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.status-cluster {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  background: rgba(233, 238, 251, 0.05);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.pill-venue { color: #dbe3ff; border-color: rgba(127, 140, 255, 0.32); }
.pill-live { color: #bff7ff; border-color: rgba(111, 230, 247, 0.4); background: rgba(111, 230, 247, 0.1); }
.pill-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  animation: livePulse 1.9s ease-out infinite;
}
.pill-live[data-off="true"] { color: var(--ink-faint); border-color: var(--line); background: transparent; }
.pill-live[data-off="true"] .dot { background: var(--ink-faint); animation: none; box-shadow: none; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(111, 230, 247, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(111, 230, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 230, 247, 0); }
}

.clock { font-size: 12.5px; color: var(--ink-dim); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }

/* ------------------------------------------------------------------ 主区 */

.stage {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(268px, 21vw, 316px);
  gap: clamp(12px, 1.5vw, 20px);
  min-height: 0;
}

.bracket { position: relative; min-width: 0; display: flex; flex-direction: column; }

.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.links path { fill: none; }
.links path.link-idle { stroke: url(#linkGrad); stroke-width: 1.4; opacity: 0.8; }
.links path.link-done { stroke: url(#linkGradHot); stroke-width: 1.6; opacity: 0.55; }
.links path.link-hot {
  stroke: url(#linkGradHot);
  stroke-width: 2;
  stroke-dasharray: 5 7;
  opacity: 1;
  animation: flow 1.1s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 208, 138, 0.6));
}
@keyframes flow { to { stroke-dashoffset: -24; } }
.links circle.node-idle { fill: rgba(174, 185, 216, 0.65); }
.links circle.node-done { fill: var(--gold); }
.links circle.node-hot { fill: #ffe9c2; filter: drop-shadow(0 0 5px rgba(255, 233, 194, 0.9)); }

.rounds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); flex: 1 1 auto; min-height: 0; }
.round { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.round-head { display: flex; align-items: center; gap: 7px; padding-left: 2px; }
.round-head .idx { font-size: 10px; color: var(--gold); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.round-head .name { font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; color: var(--ink-dim); }
.round-head .line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(240, 192, 106, 0.45), transparent); }

.round-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: clamp(6px, 0.8vw, 12px);
  min-height: 0;
  padding-bottom: 2px;
}

/* ------------------------------------------------------------------ 单场卡片 */

.match {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px 7px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(168deg, rgba(22, 29, 49, 0.93), rgba(9, 13, 24, 0.9)),
    radial-gradient(120% 140% at 100% 0%, rgba(127, 140, 255, 0.22), transparent 62%);
  backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
.match:hover { transform: translateY(-2px); border-color: var(--line-strong); }

.match[data-state="live"] {
  border-color: rgba(111, 230, 247, 0.45);
  box-shadow: 0 0 0 1px rgba(111, 230, 247, 0.14), 0 22px 60px -30px rgba(111, 230, 247, 0.5), var(--shadow);
}
.match[data-state="live"]::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(111, 230, 247, 0.75), transparent 42%, rgba(240, 192, 106, 0.75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: liveEdge 3.4s ease-in-out infinite;
}
@keyframes liveEdge { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.match[data-state="done"] { border-color: rgba(240, 192, 106, 0.2); }

.match-head { display: flex; align-items: center; gap: 7px; padding: 0 2px; font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-faint); }
.match-head .mname { color: var(--ink-dim); font-weight: 600; white-space: nowrap; }
.match-head .mid { flex: 1; min-width: 0; font-size: 10px; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.state-chip { font-size: 9.5px; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-faint); white-space: nowrap; }
.state-chip[data-s="live"] { color: #bff7ff; border-color: rgba(111, 230, 247, 0.45); background: rgba(111, 230, 247, 0.12); }
.state-chip[data-s="done"] { color: #ffe1b8; border-color: rgba(240, 192, 106, 0.32); background: rgba(240, 192, 106, 0.12); }

.slots { display: flex; flex-direction: column; gap: 2px; }

.slot {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 4px 7px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.24s ease, border-color 0.24s ease;
}
.slot.is-win {
  background: linear-gradient(90deg, rgba(240, 192, 106, 0.2), rgba(226, 80, 63, 0.1) 62%, transparent);
  border-color: rgba(240, 192, 106, 0.3);
}
.slot.is-lose { opacity: 0.48; }
.slot.is-empty { opacity: 0.55; }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--g1, #48506b), var(--g2, #1c2130));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.ghost { color: var(--ink-faint); background: rgba(233, 238, 251, 0.08); }
.slot.is-win .avatar { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 0 16px -4px rgba(240, 192, 106, 0.85); }

.who { min-width: 0; }
.who .line1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.who .name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
}
.meta-row { display: flex; align-items: center; gap: 5px; margin-top: 1px; min-height: 14px; }
.weapon {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: #cdd6f6;
  padding: 0 6px 0 4px;
  border-radius: 999px;
  background: rgba(127, 140, 255, 0.16);
  border: 1px solid rgba(127, 140, 255, 0.24);
  line-height: 1.6;
}
.weapon svg { width: 10px; height: 10px; }
.weapon.none { color: var(--ink-faint); background: transparent; border-color: var(--line); }

/* 新 / 老 玩家 */
.badge {
  flex: none;
  font-size: 9px;
  line-height: 1.5;
  padding: 0 5px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}
.badge.is-new { color: #bff7ff; background: rgba(111, 230, 247, 0.14); border-color: rgba(111, 230, 247, 0.34); }
.badge.is-old { color: #ffe1b8; background: rgba(240, 192, 106, 0.14); border-color: rgba(240, 192, 106, 0.34); }
.badge-btn { cursor: pointer; font-family: inherit; }
.badge-btn:hover { filter: brightness(1.25); }

.score {
  font-size: 17px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--ink-dim);
  min-width: 20px;
  text-align: right;
}
.slot.is-win .score { color: #fff3d4; text-shadow: 0 0 18px rgba(240, 192, 106, 0.7); }

/* ------------------------------------------------------------------ 管理端可编辑控件 */

.name-in {
  flex: 0 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 1px 4px;
  margin-left: -4px;
}
.name-in:hover { border-color: var(--line); background: rgba(5, 7, 15, 0.35); }
.name-in:focus { outline: none; border-color: rgba(111, 230, 247, 0.55); background: rgba(5, 7, 15, 0.65); }

.avatar-pick { cursor: pointer; position: relative; }
.avatar-pick::after {
  content: "换";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #fff;
  background: rgba(5, 7, 15, 0.62);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.avatar-pick:hover::after { opacity: 1; }

.weapon-in {
  font: inherit;
  font-size: 10px;
  height: 19px;
  max-width: 100%;
  color: #cdd6f6;
  background: rgba(127, 140, 255, 0.14);
  border: 1px solid rgba(127, 140, 255, 0.28);
  border-radius: 999px;
  padding: 0 4px;
}
.weapon-in:focus { outline: none; border-color: rgba(111, 230, 247, 0.6); }

.score-box { display: flex; align-items: center; gap: 4px; }
.score-in {
  width: 34px;
  height: 26px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--ink);
  background: rgba(5, 7, 15, 0.5);
  border: 1px solid var(--line);
  border-radius: 7px;
  -moz-appearance: textfield;
}
.score-in::-webkit-outer-spin-button,
.score-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-in:focus { outline: none; border-color: rgba(111, 230, 247, 0.6); }

.win-btn {
  height: 26px;
  padding: 0 7px;
  font: inherit;
  font-size: 10.5px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--ink-faint);
  background: rgba(233, 238, 251, 0.06);
  border: 1px solid var(--line);
}
.win-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.win-btn.on {
  color: #2a1c00;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: transparent;
  font-weight: 700;
}

.match-foot { display: flex; align-items: center; gap: 5px; padding-top: 3px; }
.state-in, .note-in {
  font: inherit;
  font-size: 10.5px;
  height: 24px;
  color: var(--ink-dim);
  background: rgba(5, 7, 15, 0.45);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 6px;
}
.state-in { flex: none; }
.note-in { flex: 1; min-width: 0; }
.note-in::placeholder { color: var(--ink-faint); }
.state-in:focus, .note-in:focus { outline: none; border-color: rgba(111, 230, 247, 0.5); }
.link-btn {
  flex: none;
  font: inherit;
  font-size: 10.5px;
  height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--ink-faint);
  background: transparent;
  border: 1px solid transparent;
}
.link-btn:hover { color: var(--red-2); border-color: rgba(255, 122, 92, 0.35); }

.bracket-hint { margin: 8px 0 0; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.02em; }

/* ------------------------------------------------------------------ 侧栏 */

.side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* 冠军卡那层滑过的高光（顶部 logo 的镀光动画也复用这个） */
@keyframes glint {
  0%, 62% { left: -70%; }
  86%, 100% { left: 130%; }
}

.champion {
  position: relative;
  padding: 12px 14px 11px;
  border-radius: 18px;
  border: 1px solid rgba(240, 192, 106, 0.28);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(240, 192, 106, 0.2), transparent 64%),
    radial-gradient(90% 120% at 12% 110%, rgba(226, 80, 63, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(26, 34, 57, 0.92), rgba(9, 13, 24, 0.94));
  overflow: hidden;
  box-shadow: var(--shadow);
}
.champion::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -70%;
  width: 40%;
  height: 200%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: rotate(14deg);
  animation: glint 7.5s ease-in-out infinite;
  pointer-events: none;
}
.champion-label { margin: 0 0 9px; font-size: 10px; letter-spacing: 0.3em; color: var(--gold); text-align: center; }

.champion-winner { display: flex; align-items: center; gap: 11px; justify-content: center; }
.champion-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  position: relative;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  box-shadow: 0 0 0 2px rgba(240, 192, 106, 0.6), 0 0 26px -6px rgba(240, 192, 106, 0.9);
  flex: none;
}
.champion-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.champion-avatar::after {
  content: "✦";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(240, 192, 106, 0.95);
}
.champion-text { min-width: 0; }
.champion-name-row { display: flex; align-items: center; gap: 6px; }
.champion-name { font-size: 17px; font-weight: 750; letter-spacing: 0.04em; }
.champion-weapon { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 10.5px; color: var(--ink-dim); }
.champion-weapon svg { width: 12px; height: 12px; }
.champion-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 2px; color: var(--ink-faint); font-size: 11.5px; letter-spacing: 0.1em; }
.champion-placeholder svg { width: 26px; height: 26px; opacity: 0.6; }
.champion-runner { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); text-align: center; font-size: 11px; color: var(--ink-faint); }
.champion-runner b { color: var(--ink-dim); font-weight: 650; }

.progress-card {
  padding: 9px 13px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(14, 20, 36, 0.62);
  backdrop-filter: blur(10px);
}
.progress-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 11.5px; letter-spacing: 0.1em; color: var(--ink-faint); }
.progress-head strong { color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.progress-bar { margin: 7px 0 5px; height: 5px; border-radius: 999px; background: rgba(233, 238, 251, 0.12); overflow: hidden; }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--gold) 62%, #fff); box-shadow: 0 0 14px rgba(240, 192, 106, 0.55); transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.progress-meta { font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.04em; }

.roster {
  padding: 9px 11px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(14, 20, 36, 0.62);
  backdrop-filter: blur(10px);
}
.roster-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; font-size: 10px; letter-spacing: 0.2em; color: var(--ink-faint); }
.roster-count { letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.roster-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.roster-row { display: flex; align-items: center; gap: 5px; min-width: 0; }
.roster-av {
  width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center;
  font-size: 9px; font-weight: 700; color: #fff; overflow: hidden; flex: none;
  background: linear-gradient(135deg, var(--g1, #48506b), var(--g2, #1c2130));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.roster-av img { width: 100%; height: 100%; object-fit: cover; }
.roster-name { flex: 1 1 auto; min-width: 0; font-size: 10.5px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster-weapon { flex: none; color: #98a4cc; display: inline-flex; }
.roster-weapon svg { width: 11px; height: 11px; }

.credit {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(14, 20, 36, 0.5);
  color: var(--ink-faint);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.credit:hover { color: var(--ink-dim); border-color: var(--line-strong); }
.credit img { border-radius: 4px; opacity: 0.85; flex: none; }

/* ------------------------------------------------------------------ 页脚 */

.footbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.04em; }
.dot-sep { opacity: 0.5; }
.foot-hint { opacity: 0.85; }

.noscript { position: fixed; inset: auto 0 0 0; margin: 0; padding: 14px; text-align: center; background: var(--red); color: #fff; font-size: 13px; z-index: 99; }

/* ================================================================== 卡片 v2 */

/* 每一轮一个强调色，卡片左边一条细色条，扫一眼就知道是哪一轮 */
.match[data-match^='QF'] { --accent: #8892ff; }
.match[data-match^='SF'] { --accent: #5fd8ea; }
.match[data-match^='F'] { --accent: #f3c877; }

.match {
  position: relative;
  padding: 9px 13px 8px 15px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(180deg, rgba(40, 51, 82, 0.62), rgba(14, 19, 33, 0.9)),
    rgba(11, 15, 26, 0.9);
  box-shadow:
    0 22px 44px -30px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.match::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent, #8892ff), rgba(136, 146, 255, 0.08));
  opacity: 0.9;
}
.match:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 1), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}
.match[data-state='live'] {
  border-color: rgba(226, 80, 63, 0.38);
  box-shadow:
    0 0 0 1px rgba(226, 80, 63, 0.22) inset,
    0 24px 48px -32px rgba(226, 80, 63, 0.55);
}
.match[data-state='done']::before { opacity: 0.55; }

/* 头部 */
.match-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: #9aa9c8;
}
.match-head .mname { color: #b9c6e2; letter-spacing: 0.14em; }
.match-head .mid {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.06em;
  color: rgba(240, 192, 106, 0.75);
}
.state-chip {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.06);
  color: #9aa9c8;
}
.state-chip[data-s='done'] { background: rgba(120, 200, 170, 0.14); color: #93dcc0; }
.state-chip[data-s='live'] { background: rgba(226, 80, 63, 0.18); color: #ff9d8c; box-shadow: 0 0 12px -4px rgba(226, 80, 63, 0.8); }

/* 两个选手：行与行之间只用一根发丝线，不用框 */
.slots { display: flex; flex-direction: column; }
.slot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  border-radius: 9px;
  transition: background 0.18s ease, opacity 0.18s ease;
}
.slot + .slot { border-top: 1px solid rgba(255, 255, 255, 0.055); }
.slot.is-win {
  background: linear-gradient(90deg, rgba(240, 192, 106, 0.16), rgba(240, 192, 106, 0) 72%);
  margin: 0 -6px;
  padding: 6px;
}
.slot.is-lose { opacity: 0.45; }
.slot.is-win .name, .slot.is-win .name-in { color: #ffe8c6; font-weight: 700; }

.who { min-width: 0; }
.line1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #e6ecfa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meta-row { display: flex; align-items: center; gap: 5px; margin-top: 2px; min-height: 14px; }
.meta-row .weapon { font-size: 10px; color: #93a2c0; display: inline-flex; align-items: center; gap: 4px; }
.meta-row .weapon.none { color: rgba(147, 162, 192, 0.55); }
.meta-row .weapon svg { width: 12px; height: 12px; opacity: 0.85; }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(150deg, var(--g1, #3a4566), var(--g2, #1d2437));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 8px 16px -10px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.ghost { color: rgba(255, 255, 255, 0.4); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset; background: rgba(255, 255, 255, 0.05); }
.slot.is-win .avatar { box-shadow: 0 0 0 1.5px rgba(240, 192, 106, 0.75), 0 0 18px -6px rgba(240, 192, 106, 0.8); }

.score {
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #cdd7ec;
  min-width: 18px;
  text-align: right;
}
.slot.is-win .score { color: #ffd79a; text-shadow: 0 0 18px rgba(240, 192, 106, 0.5); }

/* 新 / 老 小标 */
.badge {
  flex: none;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.badge.is-new { color: #9fe4c6; background: rgba(120, 220, 185, 0.14); }
.badge.is-old { color: #b9c6e2; background: rgba(255, 255, 255, 0.09); }
.badge-btn { cursor: pointer; }
.badge-btn:hover { filter: brightness(1.25); }

/* 冠军卡：金色环 + 更大的名字 */
.champion-winner { gap: 13px; }
.champion-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: #2b1d06;
  background: linear-gradient(150deg, #ffe3b0, #e8a94f);
  box-shadow: 0 0 0 2px rgba(255, 233, 198, 0.85), 0 0 34px -8px rgba(240, 192, 106, 0.85);
  overflow: hidden;
}
.champion-avatar img { width: 100%; height: 100%; object-fit: cover; }
.champion-name { font-size: 17px; font-weight: 800; letter-spacing: 0.02em; color: #ffeac4; }
.champion-runner { margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(240, 192, 106, 0.16); font-size: 11px; color: var(--ink-faint); text-align: center; }
.champion-runner b { color: #dbe3f3; font-weight: 600; }
.champion-placeholder { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 6px 0 2px; color: var(--ink-faint); font-size: 11.5px; }
.champion-placeholder svg { width: 26px; height: 26px; opacity: 0.5; }

/* 进度卡 */
.progress-card {
  padding: 11px 13px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(28, 37, 60, 0.9), rgba(12, 17, 30, 0.94));
  box-shadow: var(--shadow);
}
.progress-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 10px; letter-spacing: 0.2em; color: var(--ink-faint); }
.progress-head strong { font-size: 15px; letter-spacing: 0.02em; color: #ffe3b0; font-variant-numeric: tabular-nums; }
.progress-bar { height: 4px; margin: 8px 0 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7f8cff, #f0c06a 70%, #e2503f); transition: width 0.4s ease; }
.progress-meta { font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.04em; }

/* 参赛名单：两列，只有头像 + 名字 + 新老标 */
.roster {
  padding: 10px 11px 11px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(26, 34, 56, 0.82), rgba(11, 16, 28, 0.9));
}
.roster-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; font-size: 10px; letter-spacing: 0.2em; color: var(--ink-faint); }
.roster-count { letter-spacing: 0.06em; }
.roster-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 9px; }
.roster-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.roster-av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(150deg, var(--g1, #3a4566), var(--g2, #1d2437));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.roster-av img { width: 100%; height: 100%; object-fit: cover; }
.roster-name { font-size: 11px; color: #d7e0f2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ 自适应 */

@media (max-width: 1400px) {
  .roster-weapon { display: none; }
}

@media (max-width: 1240px) {
  .stage { grid-template-columns: minmax(0, 1fr) 276px; }
  .who .name { font-size: 12.5px; }
  .score { font-size: 16px; }
}

@media (max-width: 1020px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .champion { grid-row: span 2; }
  .topbar { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; }
  .logo-slot { justify-self: center; }
  .status-cluster { justify-self: center; justify-content: center; }
}

@media (max-width: 780px) {
  .rounds { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .round-body { justify-content: flex-start; gap: 8px; }
  .links { display: none; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .champion { grid-row: auto; }
  .brand-logo { height: 38px; }
  .hero-title { font-size: 27px; letter-spacing: 0.04em; }
  .status-cluster .pill { height: 24px; font-size: 10.5px; padding: 0 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ================================================================== 风格 v3
   主参考 cho-kaguyahime.com：黑底 + 青（#00c0c3）/ 珊瑚（#ff635d）/ 黄（#ffe48f）
   直角细边、几乎不用圆角，靠色带和字距拉出版面感                          */

.match[data-match^='QF'] { --accent: #00c0c3; }
.match[data-match^='SF'] { --accent: #ffe48f; }
.match[data-match^='F'] { --accent: #ff635d; }

.match {
  border-radius: 4px;
  border: 1px solid rgba(214, 232, 248, 0.14);
  background:
    linear-gradient(180deg, rgba(20, 31, 46, 0.9), rgba(8, 13, 22, 0.94)),
    rgba(8, 13, 22, 0.9);
  box-shadow: 0 18px 34px -28px #000, 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.match::before {
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 0;
  opacity: 1;
  background: var(--accent, #00c0c3);
}
.match-head {
  letter-spacing: 0.22em;
  font-size: 9px;
  color: #8fa2ba;
}
.match-head .mname { color: var(--accent, #00c0c3); letter-spacing: 0.22em; }

.state-chip { border-radius: 2px; letter-spacing: 0.14em; }
.state-chip[data-s='done'] { background: rgba(0, 192, 195, 0.16); color: #7fe9ea; }
.state-chip[data-s='live'] { background: rgba(255, 99, 93, 0.2); color: #ffb0ac; box-shadow: none; }

.slot { border-radius: 0; }
.slot.is-win {
  border-radius: 0;
  background: linear-gradient(90deg, rgba(255, 228, 143, 0.18), rgba(255, 228, 143, 0) 78%);
}
.slot.is-win .name { color: #fff5d2; }
.name { font-size: 13px; letter-spacing: 0.02em; }
.score { font-size: 19px; font-weight: 800; }
.slot.is-win .score { color: var(--gold); text-shadow: none; }
.slot.is-win .avatar { box-shadow: 0 0 0 1px var(--gold); }

.avatar, .roster-av, .champion-avatar { border-radius: 2px; }
.champion-avatar { box-shadow: 0 0 0 1px var(--gold), 0 0 30px -10px var(--gold); }

.badge { border-radius: 2px; }
.badge.is-new { color: #7fe9ea; background: rgba(0, 192, 195, 0.16); }
.badge.is-old { color: #d6e2f2; background: rgba(214, 232, 248, 0.12); }

.champion, .progress-card, .roster {
  border-radius: 4px;
  border: 1px solid rgba(214, 232, 248, 0.13);
  background: linear-gradient(180deg, rgba(20, 31, 46, 0.88), rgba(8, 13, 22, 0.94));
}
.champion { border-color: rgba(255, 228, 143, 0.28); }
.champion-label { color: var(--gold); letter-spacing: 0.34em; }
.champion-name { color: #fff5d2; }
.progress-bar span { background: linear-gradient(90deg, #00c0c3, #ffe48f 62%, #ff635d); }
.progress-head strong { color: var(--gold); }

.round-head .idx { color: var(--cyan); }
.round-head .name { letter-spacing: 0.22em; }

.pill { border-radius: 2px; }
.clock { letter-spacing: 0.16em; }
.hero-title {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  background: linear-gradient(96deg, #ffffff 4%, #ffe48f 46%, #ff635d 98%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 4px 24px rgba(0, 192, 195, 0.28));
}
.footbar { letter-spacing: 0.08em; }

.roster-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.roster-name { font-size: 12px; }


/* ------------------------------------------------------------------ 直角化收尾 */
.gate-card { border-radius: 6px; }
.gate-btn {
  border-radius: 3px;
  border-color: rgba(0, 192, 195, 0.5);
  background: linear-gradient(180deg, rgba(0, 192, 195, 0.9), rgba(0, 150, 153, 0.9));
  color: #04181a;
  font-weight: 700;
}
.gate-btn:hover { filter: brightness(1.08); }
.gate-field input, .gate-rule { border-radius: 3px; }
.panel-card { border-radius: 4px; }
.tb-btn { border-radius: 3px; }
.field input, .pwd-row input, .pair-row select { border-radius: 3px; }
.admin-body .state-in, .admin-body .weapon-in, .admin-body .note-in,
.admin-body .name-in, .admin-body .score-in, .admin-body .win-btn { border-radius: 3px; }
.admin-body .win-btn { height: 21px; padding: 0 6px; font-size: 10.5px; }
.toast { border-radius: 4px; }

/* ================================================================== 风格 v4
   参考 cho-kaguyahime 的 NEWS 条：深色带 + 青色小字 + 菱形箭头，悬停变青
   背景：桌面用你给的 KV，手机仍用深蓝水彩底                            */

/* ---------- 背景 ---------- */
.bg-art {
  background: #080d14 url("img/hero-bg.jpg") center 20% / cover no-repeat;
  filter: saturate(1.06) brightness(0.6);
  transform: scale(1.03);
  animation: bgDrift 90s ease-in-out infinite alternate;
}
.bg-veil {
  background:
    radial-gradient(130% 95% at 52% 6%, rgba(4, 8, 16, 0.12) 0%, rgba(4, 8, 16, 0.5) 52%, rgba(4, 8, 16, 0.9) 100%),
    linear-gradient(180deg, rgba(4, 8, 16, 0.62) 0%, rgba(4, 8, 16, 0.3) 26%, rgba(4, 8, 16, 0.8) 100%);
}
@media (max-width: 780px) {
  .bg-art {
    background-image: url("img/cho-bg-dark.webp");
    filter: saturate(1.05) brightness(0.92);
  }
  .bg-veil {
    background:
      radial-gradient(130% 90% at 50% 8%, rgba(6, 12, 20, 0.05) 0%, rgba(6, 12, 20, 0.5) 60%, rgba(4, 9, 16, 0.86) 100%),
      linear-gradient(180deg, rgba(4, 9, 16, 0.5) 0%, rgba(4, 9, 16, 0.24) 26%, rgba(4, 9, 16, 0.72) 100%);
  }
}

/* ---------- 角色剪影（跳过手机） ---------- */
.cast {
  position: absolute;
  inset: auto 0 0 0;
  height: 30vh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 2vw;
  gap: 1vw;
  opacity: 0.3;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 62%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 62%);
}
.cast img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6)) saturate(0.95);
  animation: castFloat 11s ease-in-out infinite alternate;
}
.cast img:nth-child(2n) { animation-duration: 13s; animation-delay: -3s; height: 88%; }
.cast img:nth-child(3n) { animation-duration: 15s; animation-delay: -6s; height: 80%; }
@keyframes castFloat {
  from { transform: translateY(6px); }
  to { transform: translateY(-10px); }
}
@media (max-width: 780px) { .cast { display: none; } }

/* ---------- 卡片：NEWS 条那套语汇 ---------- */
.match {
  border-radius: 0;
  border-color: rgba(214, 232, 248, 0.12);
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, rgba(16, 26, 40, 0.93), rgba(7, 12, 20, 0.96));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.match::before { width: 2px; }
.match::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 9px;
  width: 9px;
  height: 9px;
  background: rgba(214, 232, 248, 0.3);
  -webkit-mask: url("img/cho-arrow.svg") no-repeat center center / contain;
  mask: url("img/cho-arrow.svg") no-repeat center center / contain;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.24s ease, transform 0.24s ease, background 0.24s ease;
}
.match:hover::after { opacity: 1; transform: none; background: var(--cyan); }

.match-head .mname {
  color: var(--accent, #00c0c3);
  letter-spacing: 0.24em;
  font-size: 9px;
}
.match-head .mid {
  color: rgba(255, 228, 143, 0.6);
  letter-spacing: 0.1em;
}
.match .state-chip { background: rgba(0, 192, 195, 0.14); color: #7fe9ea; letter-spacing: 0.14em; }
.match .state-chip[data-s='live'] { background: rgba(255, 99, 93, 0.22); color: #ffc0bc; }
.match .state-chip[data-s='done'] { background: rgba(255, 255, 255, 0.08); color: #b8c6da; }

/* 轮次标题：真参考站那种"小标 + 长细线" */
.round-head { align-items: baseline; }
.round-head .idx { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.round-head .name { font-size: 10px; letter-spacing: 0.3em; color: #e8f2ff; }
.round-head .line { background: linear-gradient(90deg, rgba(0, 192, 195, 0.55), rgba(255, 255, 255, 0.06)); }

/* ---------- 前三名 ---------- */
.podium { display: flex; flex-direction: column; gap: 5px; }
.podium-row {
  display: grid;
  grid-template-columns: 20px 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border: 1px solid rgba(214, 232, 248, 0.1);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008));
  transition: background 0.25s ease, border-color 0.25s ease;
}
.podium-row[data-rank='1'] { border-color: rgba(255, 228, 143, 0.38); background: linear-gradient(90deg, rgba(255, 228, 143, 0.16), rgba(255, 228, 143, 0.02)); }
.podium-row[data-rank='2'] { border-color: rgba(214, 232, 248, 0.2); }
.podium-row[data-rank='3'] { border-color: rgba(201, 141, 95, 0.28); }
.podium-rank {
  display: grid;
  place-items: center;
  height: 19px;
  font: 800 10px/1 var(--font-display);
  color: #0a1018;
  background: linear-gradient(180deg, #ffe9b0, #e8a94f);
}
.podium-row[data-rank='2'] .podium-rank { background: linear-gradient(180deg, #eaf1fb, #a9b7c9); }
.podium-row[data-rank='3'] .podium-rank { background: linear-gradient(180deg, #f2c9a2, #c98d5f); }
.podium-row.is-empty .podium-rank { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.35); }
.podium-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.podium-label { font-size: 8.5px; letter-spacing: 0.26em; color: var(--ink-faint); }
.podium-name { font-size: 12.5px; font-weight: 700; color: #eef4ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-row[data-rank='1'] .podium-name { font-size: 14px; color: #fff4d6; }
.podium-row.is-empty .podium-name { color: rgba(255, 255, 255, 0.22); font-weight: 500; }
.podium-row .avatar { width: 26px; height: 26px; font-size: 11px; }
.podium-row[data-rank='1'] .avatar { box-shadow: 0 0 0 1.5px rgba(255, 228, 143, 0.8); }

/* ---------- 管理端：与看板完全同栅格 ---------- */
.admin-body .stage { grid-template-columns: minmax(0, 1fr) 300px; }
.admin-body .round-body { gap: 12px; }
.admin-body .panel-card {
  border-radius: 0;
  border-color: rgba(214, 232, 248, 0.11);
  background: linear-gradient(180deg, rgba(16, 26, 40, 0.9), rgba(7, 12, 20, 0.95));
}
.admin-body .panel-card h2 { color: var(--cyan); letter-spacing: 0.3em; font-size: 9px; }
.admin-body .side { gap: 10px; }
.admin-body .match { clip-path: none; }

/* ---------- 压暗与剪影调轻（KV 太亮会吃掉卡片） ---------- */
.bg-art { filter: saturate(0.95) brightness(0.34); }
.bg-veil {
  background:
    radial-gradient(135% 100% at 50% 4%, rgba(3, 7, 14, 0.2) 0%, rgba(3, 7, 14, 0.66) 46%, rgba(3, 7, 14, 0.92) 100%),
    linear-gradient(180deg, rgba(3, 7, 14, 0.72) 0%, rgba(3, 7, 14, 0.44) 24%, rgba(3, 7, 14, 0.86) 100%);
}
.cast { height: 15vh; opacity: 0.14; }
.cast img { height: 100%; }
.cast img:nth-child(2n) { height: 82%; }
.cast img:nth-child(3n) { height: 70%; }

/* ---------- 前三名：空位不要灰方块，压成一行细条 ---------- */
.podium-row.is-empty {
  grid-template-columns: 20px minmax(0, 1fr);
  padding: 5px 9px;
  opacity: 0.55;
}
.podium-row.is-empty .podium-label { margin-right: 6px; }
.podium-row.is-empty .podium-name { display: inline; font-size: 11px; }
.podium-row.is-empty .podium-main { flex-direction: row; align-items: baseline; gap: 6px; }
.podium-row .avatar.ghost { background: transparent; box-shadow: none; }

/* ---------- KV 再亮一点，卡片靠自身底色扛对比 ---------- */
.bg-art { filter: saturate(1.0) brightness(0.46); }
.bg-veil {
  background:
    radial-gradient(140% 105% at 50% 0%, rgba(3, 7, 14, 0.06) 0%, rgba(3, 7, 14, 0.52) 44%, rgba(3, 7, 14, 0.9) 100%),
    linear-gradient(180deg, rgba(3, 7, 14, 0.62) 0%, rgba(3, 7, 14, 0.32) 22%, rgba(3, 7, 14, 0.8) 100%);
}
.match { background-color: rgba(5, 9, 16, 0.55); }
.match > * { position: relative; z-index: 1; }
.match::before { z-index: 2; }

/* 剪影只留两侧，压到几乎看不见 */
.cast { height: 13vh; opacity: 0.1; }
.cast img:nth-child(2), .cast img:nth-child(3), .cast img:nth-child(4), .cast img:nth-child(5) { display: none; }

/* ---------- 管理端：跟看板同一套竖向节奏 ---------- */
.admin-body .round-body { justify-content: space-around; }
.admin-body .bracket { align-items: stretch; }
.admin-body .match { padding: 7px 10px 6px 13px; }
.admin-body .slot { padding: 4px 0; }
.admin-body .name-in { height: 22px; font-size: 12.5px; }
.admin-body .state-in, .admin-body .weapon-in { height: 21px; font-size: 10.5px; }
.admin-body .note-in { height: 21px; font-size: 10.5px; }
.admin-body .score-in { width: 30px; height: 22px; font-size: 13px; }
.admin-body .win-btn { height: 20px; padding: 0 6px; font-size: 10px; border-color: rgba(255, 228, 143, 0.25); background: transparent; color: rgba(255, 228, 143, 0.75); }
.admin-body .win-btn.on { background: linear-gradient(180deg, #ffe9b0, #e8a94f); color: #221603; border-color: transparent; }
.admin-body .match-foot { margin-top: 6px; padding-top: 6px; }
.admin-body .link-btn { font-size: 10px; }

/* 前三名收紧 */
.podium-row { padding: 5px 8px; }
.podium-row.is-empty { padding: 4px 8px; }
.podium-name { font-size: 12px; }
.podium-row[data-rank='1'] .podium-name { font-size: 13px; }
.podium-label { font-size: 8px; }

/* 前三名一行的头像尺寸统一，冠军那行稍大一点 */
.podium-row .avatar { width: 24px; height: 24px; font-size: 10px; }
.podium-row[data-rank='1'] .avatar { width: 30px; height: 30px; font-size: 12px; box-shadow: 0 0 0 1.5px rgba(255, 228, 143, 0.85), 0 0 18px -6px rgba(255, 228, 143, 0.75); }
.podium-row[data-rank='1'] { padding: 6px 8px; }

/* ================================================================== 风格 v7
   把空白填掉：三列等宽拉伸、卡片放大、参赛名单做大                       */

.stage { grid-template-columns: minmax(0, 1fr) 340px; }
.bracket { gap: 0; }
.round { flex: 1 1 0; min-width: 0; }
.round-body { gap: 14px; }
.match { width: 100%; }

/* 卡片内容跟着放大 */
.match { padding: 11px 15px 10px 17px; }
.match-head { font-size: 10px; margin-bottom: 4px; }
.match-head .mname { font-size: 10px; }
.match .state-chip { font-size: 10px; padding: 2px 9px; }
.slot { padding: 8px 0; }
.slot.is-win { padding: 8px 6px; }
.name { font-size: 15px; }
.meta-row .weapon { font-size: 11px; }
.avatar { width: 34px; height: 34px; font-size: 14px; }
.score { font-size: 23px; min-width: 22px; }
.badge { font-size: 9.5px; padding: 1px 6px; }
.round-head .name { font-size: 11px; }
.round-head .idx { font-size: 12px; }

/* 参赛名单：主角之一，做大 */
.roster { padding: 13px 14px 14px; }
.roster-head { margin-bottom: 10px; font-size: 10.5px; }
.roster-list { gap: 9px; }
.roster-row { gap: 9px; padding: 3px 0; }
.roster-av { width: 26px; height: 26px; font-size: 11px; }
.roster-name { font-size: 13.5px; }

/* 进度 / 前三名同比例放大 */
.progress-card { padding: 13px 14px 14px; }
.progress-head { font-size: 10.5px; }
.progress-head strong { font-size: 17px; }
.progress-bar { height: 5px; margin: 10px 0 8px; }
.progress-meta { font-size: 11px; }
.podium-row { padding: 8px 10px; }
.podium-row[data-rank='1'] { padding: 9px 10px; }
.podium-row .avatar { width: 28px; height: 28px; font-size: 12px; }
.podium-row[data-rank='1'] .avatar { width: 34px; height: 34px; }
.podium-name { font-size: 13.5px; }
.podium-row[data-rank='1'] .podium-name { font-size: 15px; }
.podium-label { font-size: 9px; }
.podium-rank { height: 21px; font-size: 11px; }

/* 管理端跟着一起放大 */
.admin-body .stage { grid-template-columns: minmax(0, 1fr) 340px; }
.admin-body .match { padding: 9px 11px 8px 14px; }
.admin-body .name-in { height: 26px; font-size: 13.5px; }
.admin-body .score-in { width: 34px; height: 26px; font-size: 15px; }
.admin-body .win-btn { height: 24px; font-size: 10.5px; padding: 0 7px; }
.admin-body .state-in, .admin-body .weapon-in, .admin-body .note-in { height: 23px; font-size: 11px; }
.admin-body .panel-card { padding: 14px 14px 15px; }

@media (max-width: 1020px) {
  .stage { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* 名单再大一号：整块当"名册"来读 */
.roster { padding: 15px 16px 16px; }
.roster-list { gap: 11px; }
.roster-row { gap: 10px; padding: 4px 0; }
.roster-av { width: 30px; height: 30px; font-size: 12px; }
.roster-name { font-size: 14.5px; letter-spacing: 0.01em; }
.badge.is-new, .badge.is-old { font-size: 10px; }

/* 决赛这一列两张卡居中成一组，视觉上落在页面腰部 */
.round[data-round='F'] .round-body { justify-content: center; }

/* 矮屏（笔记本 1280×800 这类）整体收一档，保证一屏放得下 */
@media (min-width: 1021px) and (max-height: 880px) {
  .match { padding: 8px 12px 7px 14px; }
  .slot { padding: 5px 0; }
  .slot.is-win { padding: 5px 6px; }
  .name { font-size: 13.5px; }
  .avatar { width: 30px; height: 30px; font-size: 12px; }
  .score { font-size: 20px; }
  .round-body { gap: 10px; }
  .match-head { font-size: 9px; margin-bottom: 2px; }
  .roster { padding: 12px 13px 13px; }
  .roster-list { gap: 8px; }
  .roster-av { width: 26px; height: 26px; font-size: 11px; }
  .roster-name { font-size: 13px; }
  .podium-row { padding: 6px 9px; }
  .podium-row[data-rank='1'] { padding: 6px 9px; }
  .podium-name { font-size: 12.5px; }
  .podium-row[data-rank='1'] .podium-name { font-size: 14px; }
  .progress-card { padding: 11px 13px 12px; }
}
@media (min-width: 1021px) and (max-height: 780px) {
  .match { padding: 6px 10px 5px 12px; }
  .slot { padding: 4px 0; }
  .avatar { width: 26px; height: 26px; font-size: 11px; }
  .name { font-size: 12.5px; }
  .score { font-size: 18px; }
  .round-body { gap: 8px; }
  .roster { padding: 10px 12px 11px; }
  .roster-list { gap: 6px; }
  .roster-av { width: 23px; height: 23px; }
  .roster-name { font-size: 12px; }
}

/* ================================================================== 风格 v8
   1) 对阵表用一张共享网格：每张卡占两条轨道，正好悬在上一轮两张卡的中线上
   2) 动效：刚赢下 / 刚晋级上场 / 进行中                                      */

.rounds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto repeat(8, minmax(0, auto));
  column-gap: 30px;
  row-gap: 0;
  align-content: start;
}
.rounds .round-head { grid-row: 1; min-width: 0; }
.rounds .round-head .line { flex: 1 1 auto; height: 1px; min-width: 12px; }
.rounds .match { align-self: stretch; margin: 6px 0; }

@media (max-width: 780px) {
  .rounds { display: block; }
  .rounds .round-head { margin-top: 16px; }
  .rounds .match { margin: 0 0 12px; }
}

/* ---------- 进行中：呼吸 + 顶部细光扫过 + 状态点闪烁 ---------- */
.match[data-state='live'] {
  animation: fkBreathe 2.6s ease-in-out infinite;
  border-color: rgba(255, 99, 93, 0.42);
}
@keyframes fkBreathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 99, 93, 0.18) inset, 0 14px 30px -26px rgba(255, 99, 93, 0.5); }
  50% { box-shadow: 0 0 0 1px rgba(255, 99, 93, 0.5) inset, 0 18px 40px -24px rgba(255, 99, 93, 0.85); }
}
.match[data-state='live'] .match-head { position: relative; }
.match[data-state='live'] .match-head::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: -6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 99, 93, 0.95), transparent);
  animation: fkScan 2.8s linear infinite;
}
@keyframes fkScan {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
.match .state-chip[data-s='live'] { animation: fkBlink 1.3s ease-in-out infinite; }
@keyframes fkBlink { 50% { opacity: 0.4; } }

.match.fx-just-live { animation: fkLivePop 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) 1, fkBreathe 2.6s ease-in-out 0.85s infinite; }
@keyframes fkLivePop {
  0% { transform: scale(0.985); }
  45% { transform: scale(1); box-shadow: 0 0 0 3px rgba(255, 99, 93, 0.4); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 99, 93, 0); }
}

/* ---------- 刚赢下：金边一闪 + 胜者行扫光 + 头像弹跳 + 比分盖章 ---------- */
.match.fx-just-won { animation: fkWinEdge 1.15s ease-out 1; }
@keyframes fkWinEdge {
  0% { box-shadow: 0 0 0 0 rgba(255, 228, 143, 0); }
  28% { box-shadow: 0 0 0 2px rgba(255, 228, 143, 0.6), 0 0 46px -12px rgba(255, 228, 143, 0.95); }
  100% { box-shadow: 0 0 0 0 rgba(255, 228, 143, 0); }
}
.slot.fx-win { position: relative; overflow: hidden; }
.slot.fx-win::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, transparent 18%, rgba(255, 228, 143, 0.45) 50%, transparent 82%);
  animation: fkSweep 1.05s ease-out 1 forwards;
}
@keyframes fkSweep {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(115%); }
}
.slot.fx-win .avatar { animation: fkPop 0.55s cubic-bezier(0.2, 0.9, 0.2, 1.5) 1; }
@keyframes fkPop {
  0% { transform: scale(0.72); }
  60% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
.slot.fx-win .score { animation: fkStamp 0.62s cubic-bezier(0.2, 0.9, 0.2, 1.4) 1; }
@keyframes fkStamp {
  0% { transform: scale(1.85); opacity: 0; }
  55% { transform: scale(0.94); opacity: 1; }
  100% { transform: scale(1); }
}
.slot.fx-lose { animation: fkDefeat 0.95s ease-out 1; }
@keyframes fkDefeat {
  0% { filter: none; transform: none; }
  35% { filter: grayscale(0.85) brightness(0.78); transform: translateY(1px); }
  100% { filter: none; transform: none; }
}

/* ---------- 刚晋级上场 ---------- */
.slot.fx-enter { animation: fkEnter 0.5s ease-out 1; }
@keyframes fkEnter {
  0% { opacity: 0; transform: translateX(-12px); }
  100% { opacity: 1; transform: none; }
}
.slot.fx-enter .avatar { animation: fkPop 0.6s cubic-bezier(0.2, 0.9, 0.2, 1.5) 1; }

/* ---------- 连线流光 ---------- */
.link.fx-flow { stroke: var(--gold); animation: fkFlow 1.3s ease-out 1; }
@keyframes fkFlow {
  0% { opacity: 0.15; }
  40% { opacity: 1; filter: drop-shadow(0 0 5px rgba(255, 228, 143, 0.9)); }
  100% { opacity: 1; }
}

/* ---------- 前三名换人 ---------- */
.podium-row.fx-podium { animation: fkPodium 1.5s ease-out 1; }
@keyframes fkPodium {
  0% { background-color: rgba(255, 228, 143, 0.34); }
  100% { background-color: transparent; }
}

/* ---------- 统一卡高：行高 = 卡高一半，几何上严丝合缝 ---------- */
:root { --card-h: 150px; }
.rounds {
  grid-template-rows: auto repeat(8, calc(var(--card-h) / 2));
}
.rounds .match {
  height: var(--card-h);
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rounds .match .slots { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.admin-body { --card-h: 196px; }

@media (max-width: 780px) {
  .rounds { grid-template-rows: none; }
  .rounds .match { height: auto; overflow: visible; }
}

/* 行距：轨道高 = 卡高/2 + 6px，卡片在轨道里居中 → 有缝但中线仍然准 */
.rounds {
  grid-template-rows: auto repeat(8, calc(var(--card-h) / 2 + 6px));
}
.rounds .match { align-self: center; }

/* 管理端卡片更高（多了状态/备注一行），高度单独给 */
.admin-body { --card-h: 234px; }
.rounds .match { height: var(--card-h); }

.admin-body { --card-h: 210px; }


/* ================================================================== 统一卡片
   看板与管理端用同一套：卡高、内距、字号、头像、比分，全部对齐管理端 */

:root { --card-h: 210px; }

.rounds .match {
  padding: 9px 11px 8px 14px;
  height: var(--card-h);
}
.rounds .slot { padding: 6px 0; }
.rounds .slot.is-win { padding: 6px; }
.rounds .name, .rounds .name-in { font-size: 13.5px; }
.rounds .avatar { width: 30px; height: 30px; font-size: 12px; }
.rounds .score { font-size: 20px; }
.rounds .match-head { font-size: 10px; }
.rounds .meta-row .weapon { font-size: 10.5px; }
.rounds .badge { font-size: 9.5px; }

/* 矮屏统一缩，两页一起变，观感始终一致 */
@media (max-height: 940px) { :root { --card-h: 182px; } }
@media (max-height: 860px) { :root { --card-h: 168px; } }
@media (max-height: 780px) { :root { --card-h: 152px; } }
@media (max-width: 780px) { :root { --card-h: auto; } .rounds .match { height: auto; padding: 9px 12px 8px 14px; } }

/* ================================================================== 故事层 v2
   素材：kaguyahime-mirror/assets-kit
   主底图用原站 bg_dark；用户指定的 KV 做成"月亮圆窗"（原站标志性装置）      */

.bg { background: #0b0709; }
.bg > * { position: absolute; pointer-events: none; }

/* 1. 主底图：原站暗调插画，压暗但不糊 */
.bg-art {
  inset: 0;
  background: url("img/kagu/bg-dark.webp") center / cover no-repeat;
  filter: saturate(1.02) brightness(0.6) contrast(1.02);
}

/* 2. 月亮圆窗：主视觉 KV 装进一轮月亮，外面一圈金环 */
.bg-kv {
  left: 50%;
  top: 4%;
  width: min(660px, 46vw);
  height: min(660px, 46vw);
  transform: translateX(-50%);
  border-radius: 50%;
  background: url("img/hero-bg.jpg") center 30% / cover no-repeat;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 88%);
  mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 88%);
  animation: kvBreath 20s ease-in-out infinite;
}
.bg-kv::after {
  content: '';
  position: absolute;
  inset: -3%;
  border-radius: 50%;
  border: 1px solid rgba(255, 228, 143, 0.28);
  box-shadow: 0 0 80px -20px rgba(255, 228, 143, 0.4), inset 0 0 60px -30px rgba(0, 228, 223, 0.5);
}
@keyframes kvBreath {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.48; }
}

/* 3. 雾 */
.bg-fog {
  inset: -8%;
  background: url("img/kagu/fog.webp") center / cover no-repeat;
  mix-blend-mode: screen;
}
.bg-fog--a { opacity: 0.1; animation: fogDriftA 78s ease-in-out infinite alternate; }
.bg-fog--b { opacity: 0.07; animation: fogDriftB 104s ease-in-out infinite alternate; }
@keyframes fogDriftA {
  from { transform: translate3d(-3%, 1%, 0) scale(1.06); }
  to { transform: translate3d(4%, -2%, 0) scale(1.12); }
}
@keyframes fogDriftB {
  from { transform: translate3d(4%, -1%, 0) scale(1.1); }
  to { transform: translate3d(-4%, 2%, 0) scale(1.04); }
}

/* 4. 霓虹生灵：云、鱼、章鱼，慢慢游 */
.bg-neon { background-position: center; background-repeat: no-repeat; background-size: contain; }
.bg-neon--c1 { left: -2%; top: 14%; width: 24vw; height: 16vw; background-image: url("img/kagu/neon-cloud1.webp"); opacity: 0.22; animation: neonX 11s ease-in-out infinite; }
.bg-neon--c2 { right: -2%; top: 9%; width: 23vw; height: 16vw; background-image: url("img/kagu/neon-cloud2.webp"); opacity: 0.2; animation: neonX 9.5s ease-in-out infinite reverse; }
.bg-neon--fish { right: 8%; bottom: 12%; width: 13vw; height: 15vw; background-image: url("img/kagu/neon-fish.webp"); opacity: 0.24; animation: neonY 10s ease-in-out infinite; }
.bg-neon--octo { left: 4%; bottom: 8%; width: 15vw; height: 12vw; background-image: url("img/kagu/neon-octopus.webp"); opacity: 0.2; animation: neonY 12s ease-in-out infinite reverse; }
@keyframes neonX {
  0%, 100% { transform: translateX(-12px); }
  50% { transform: translateX(16px); }
}
@keyframes neonY {
  0%, 100% { transform: translateY(-9px) rotate(-1.2deg); }
  50% { transform: translateY(11px) rotate(1.2deg); }
}

/* 5. 纸伞：角落里慢慢转 */
.bg-umbrella { top: 5%; width: 12vw; height: 12vw; background: center / contain no-repeat; opacity: 0.12; }
.bg-umbrella--l { left: 14%; background-image: url("img/kagu/umbrella1.svg"); animation: umbrellaSpin 15s linear infinite; }
.bg-umbrella--r { right: 15%; background-image: url("img/kagu/umbrella3.svg"); animation: umbrellaSpin 17s linear infinite reverse; }
@keyframes umbrellaSpin { to { transform: rotate(720deg); } }

/* 6. 鸟居 */
.bg-torii {
  left: 50%;
  bottom: -3%;
  width: min(1200px, 84vw);
  height: 40vh;
  transform: translateX(-50%);
  background: url("img/kagu/torii.svg") center bottom / contain no-repeat;
  opacity: 0.12;
}

/* 7. 角饰 */
.bg-corner { width: 24vw; height: 24vw; background: url("img/kagu/corner.webp") center / contain no-repeat; opacity: 0.2; }
.bg-corner--tl { left: -5vw; top: -5vw; }
.bg-corner--br { right: -5vw; bottom: -5vw; transform: rotate(180deg); }

/* 8. 角色立绘：站在页面下缘，被夜色吃掉一半 */
.cast {
  left: 0;
  right: 0;
  bottom: 0;
  height: 34vh;
  opacity: 0.18;
  align-items: flex-end;
  justify-content: space-between;
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
  mask-image: linear-gradient(to top, #000 55%, transparent);
}
.cast img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.8));
  animation: castFloat 15s ease-in-out infinite alternate;
}
.cast img:nth-child(1) { height: 92%; animation-duration: 17s; }
.cast img:nth-child(2) { height: 78%; animation-delay: -5s; }
.cast img:nth-child(3) { height: 86%; animation-delay: -9s; animation-duration: 19s; }

/* ---------- 标题装饰：硬币翻转 + 两侧太阳 ---------- */
.hero-title { position: relative; padding: 0 0.55em; }
.hero-title::before,
.hero-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: clamp(26px, 2.4vw, 38px);
  height: clamp(26px, 2.4vw, 38px);
  margin-top: calc(clamp(26px, 2.4vw, 38px) / -2);
  background: url("img/kagu/coin.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 12px rgba(0, 228, 223, 0.55));
  animation: coinSpin 3.2s ease-in-out infinite;
}
.hero-title::before { left: -0.1em; }
.hero-title::after { right: -0.1em; animation-delay: -1.6s; }
@keyframes coinSpin {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(720deg); }
}
.title-slot { position: relative; }
.title-slot::before,
.title-slot::after {
  content: '';
  position: absolute;
  top: 50%;
  width: clamp(44px, 4.6vw, 78px);
  height: clamp(22px, 2.2vw, 38px);
  margin-top: calc(clamp(22px, 2.2vw, 38px) / -2);
  background: center / contain no-repeat;
  opacity: 0.5;
}
.title-slot::before { left: calc(-1 * clamp(44px, 4.6vw, 78px) - 10px); background-image: url("img/kagu/sun.webp"); }
.title-slot::after { right: calc(-1 * clamp(44px, 4.6vw, 78px) - 10px); background-image: url("img/kagu/sun-r.webp"); }

/* ---------- 轮次标题下压一道围栏 ---------- */
.rounds .round-head { position: relative; padding-bottom: 6px; }
.rounds .round-head::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: url("img/kagu/fence.svg") left center / auto 100% repeat-x;
  opacity: 0.32;
}

/* ---------- 前三名：花窗底纹 ---------- */
.champion { position: relative; overflow: hidden; }
.champion::before {
  content: '';
  position: absolute;
  right: -20%;
  top: -34%;
  width: 80%;
  height: 160%;
  background: url("img/kagu/flower.svg") center / contain no-repeat;
  opacity: 0.1;
  animation: flowerBreathe 22s ease-in-out infinite;
}
@keyframes flowerBreathe {
  0%, 100% { transform: rotate(-2deg) scale(1); opacity: 0.08; }
  50% { transform: rotate(2deg) scale(1.05); opacity: 0.16; }
}
.champion > * { position: relative; z-index: 1; }

/* ---------- 名单：两只灯笼 ---------- */
.roster { position: relative; }
.roster::before,
.roster::after {
  content: '';
  position: absolute;
  top: -13px;
  width: 24px;
  height: 32px;
  background: center / contain no-repeat;
  opacity: 0.6;
  transform-origin: 50% -8px;
  animation: lanternSway 6.5s ease-in-out infinite;
}
.roster::before { left: 16px; background-image: url("img/kagu/lantern1.svg"); }
.roster::after { right: 16px; background-image: url("img/kagu/lantern2.svg"); animation-delay: -2.2s; }
@keyframes lanternSway {
  0%, 100% { transform: rotate(-4deg); filter: drop-shadow(0 0 8px rgba(255, 170, 120, 0.35)); }
  50% { transform: rotate(4deg); filter: drop-shadow(0 0 18px rgba(255, 190, 130, 0.75)); }
}

/* ---------- 底栏围栏 ---------- */
.footbar { position: relative; padding-top: 8px; }
.footbar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: url("img/kagu/fence.svg") left center / auto 100% repeat-x;
  opacity: 0.3;
}

@media (max-width: 780px) {
  .bg-neon, .bg-umbrella, .bg-torii, .cast, .bg-corner, .bg-kv { display: none; }
  .title-slot::before, .title-slot::after { display: none; }
  .hero-title::before, .hero-title::after { width: 22px; height: 22px; margin-top: -11px; }
}

/* ---------- 夜战氛围：底部暖光 + 浮尘 ---------- */
.bg-glow {
  left: 50%;
  bottom: -18%;
  width: 120vw;
  height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 126, 86, 0.22), rgba(255, 126, 86, 0.06) 42%, transparent 70%);
  mix-blend-mode: screen;
  animation: glowPulse 14s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.bg-dust {
  inset: -20% 0 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 78%, rgba(255, 236, 190, 0.55), transparent 70%),
    radial-gradient(1.4px 1.4px at 27% 92%, rgba(255, 236, 190, 0.4), transparent 70%),
    radial-gradient(1.8px 1.8px at 44% 84%, rgba(190, 245, 255, 0.45), transparent 70%),
    radial-gradient(1.4px 1.4px at 61% 95%, rgba(255, 236, 190, 0.45), transparent 70%),
    radial-gradient(1.6px 1.6px at 76% 86%, rgba(190, 245, 255, 0.4), transparent 70%),
    radial-gradient(1.4px 1.4px at 88% 92%, rgba(255, 236, 190, 0.5), transparent 70%);
  background-size: 100% 26vh;
  background-repeat: repeat-y;
  opacity: 0.75;
  animation: dustRise 46s linear infinite;
}
.bg-dust--2 {
  opacity: 0.4;
  animation-duration: 72s;
  animation-delay: -20s;
  filter: blur(1px);
}
@keyframes dustRise {
  from { transform: translateY(26vh); }
  to { transform: translateY(-26vh); }
}

/* 月亮圆窗上移，只露下半弧 */
.bg-kv {
  top: -16%;
  width: min(880px, 58vw);
  height: min(880px, 58vw);
  opacity: 0.34;
}
/* 霓虹 / 鸟居 稍微提亮，边缘更好看 */
.bg-neon--c1 { opacity: 0.26; }
.bg-neon--c2 { opacity: 0.24; }
.bg-neon--fish { opacity: 0.28; }
.bg-neon--octo { opacity: 0.24; }
.bg-torii { opacity: 0.16; }
.cast { opacity: 0.22; }

/* ---------- 收一遍：主视觉退到氛围层，卡片立起来 ---------- */
.bg-kv {
  width: min(760px, 52vw);
  height: min(760px, 52vw);
  top: -13%;
  opacity: 0.28;
}
.bg-torii { bottom: -1%; height: 34vh; opacity: 0.22; }
.bg-glow { opacity: 1; background: radial-gradient(ellipse at 50% 100%, rgba(255, 126, 86, 0.3), rgba(255, 126, 86, 0.08) 44%, transparent 72%); }
.bg-dust { opacity: 1; }
.bg-dust--2 { opacity: 0.55; }

.match, .panel-card, .roster, .progress-card, .champion {
  backdrop-filter: blur(3px) saturate(1.05);
  -webkit-backdrop-filter: blur(3px) saturate(1.05);
}

/* 鸟居本身是白色 + 内建 0.2 透明度，这里给足不透明度才看得见 */
.bg-torii { opacity: 0.62; bottom: -2%; height: 40vh; filter: drop-shadow(0 0 60px rgba(255, 150, 110, 0.25)); }
.champion::before { opacity: 0.16; }

/* 鸟居：SVG 自身带 0.2 透明度，这里给到 1 才有效果 */
.bg-torii { opacity: 1; bottom: 0; height: 46vh; width: min(1400px, 90vw); }

/* ---------- 手机端：单列堆叠（放在最后，权重最高） ---------- */
@media (max-width: 780px) {
  .stage { grid-template-columns: minmax(0, 1fr) !important; }
  .rounds { display: block !important; }
  .rounds .match {
    height: auto !important;
    width: auto !important;
    margin: 0 0 12px !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .rounds .round-head { margin-top: 18px; padding-bottom: 6px; }
  .side { margin-top: 18px; }
}

/* 胜/负标记 */
.score.score-tag {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1;
  padding: 4px 7px;
  border: 1px solid transparent;
}
.score-tag[data-r='win'] {
  color: #0f1008;
  background: linear-gradient(180deg, #ffe9a2, #f2c256);
  border-color: rgba(255, 233, 162, 0.7);
  box-shadow: 0 0 18px -6px rgba(255, 228, 143, 0.75);
}
.score-tag[data-r='fail'] {
  color: rgba(214, 226, 240, 0.5);
  border-color: rgba(120, 150, 175, 0.35);
  background: rgba(10, 20, 30, 0.55);
}
.slot.is-lose .score-tag[data-r='fail'] { opacity: 0.85; }

/* WIN 徽章：胜者行原本把比分染成金色，这里强制深色字，否则金底金字看不见 */
.slot.is-win .score.score-tag[data-r='win'],
.score.score-tag[data-r='win'] {
  color: #23180a !important;
  -webkit-text-fill-color: #23180a;
  font-family: var(--font-ui, system-ui, sans-serif) !important;
  font-weight: 700;
}
.score.score-tag[data-r='fail'] {
  font-family: var(--font-ui, system-ui, sans-serif) !important;
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* ---------- 提亮：让背景真的看得见 ---------- */
.bg-art {
  background-image: url("img/kagu/bg-dark.jpg");
  filter: saturate(1.06) brightness(0.95) contrast(1.03);
}
.bg-veil {
  background:
    radial-gradient(128% 96% at 50% 6%, rgba(3, 7, 14, 0) 0%, rgba(3, 7, 14, 0.22) 52%, rgba(3, 7, 14, 0.62) 100%),
    linear-gradient(180deg, rgba(3, 7, 14, 0.34) 0%, rgba(3, 7, 14, 0.06) 30%, rgba(3, 7, 14, 0.5) 100%);
}
.bg-kv { opacity: 0.22; }

/* ================================================================== 背景定稿
   主视觉 KV（祭典夜景）铺满全屏，清晰且带故事；其余层退成氛围             */

.bg-art {
  background-image: url("img/kagu/kv2.jpg");
  background-position: center 42%;
  background-size: cover;
  filter: saturate(1.08) brightness(0.78) contrast(1.02);
}
/* 顶部与底部压暗，保证标题和卡片文字干净 */
.bg-veil {
  background:
    linear-gradient(180deg, rgba(4, 8, 15, 0.72) 0%, rgba(4, 8, 15, 0.18) 26%, rgba(4, 8, 15, 0.1) 52%, rgba(4, 8, 15, 0.62) 88%, rgba(4, 8, 15, 0.82) 100%),
    radial-gradient(120% 90% at 50% 45%, rgba(4, 8, 15, 0) 40%, rgba(4, 8, 15, 0.45) 100%);
}
/* 月亮窗 / 鸟居 / 立绘 都退场：KV 自己就是主角 */
.bg-kv, .bg-torii, .cast { display: none; }
.bg-fog--a { opacity: 0.06; }
.bg-fog--b { opacity: 0.04; }
.bg-neon--c1, .bg-neon--c2 { opacity: 0.14; }
.bg-neon--fish, .bg-neon--octo { opacity: 0.16; }

/* 背景要清楚，所以让卡片更实一点，两边都不吃亏 */
.match { background-color: rgba(6, 11, 18, 0.72); }
.panel-card, .progress-card, .roster, .champion { background-color: rgba(6, 11, 18, 0.78); }
.bg-art { filter: saturate(1.06) brightness(0.74) contrast(1.03); }

/* ---------- 头像改成圆形 ---------- */
.avatar, .avatar-pick, .roster-av, .podium-row .avatar, .champion .avatar {
  border-radius: 50% !important;
  overflow: hidden;
}
.avatar img, .avatar-pick img, .roster-av img {
  border-radius: 50% !important;
}
.slot.is-win .avatar, .podium-row[data-rank='1'] .avatar {
  box-shadow: 0 0 0 2px rgba(255, 228, 143, 0.55), 0 0 22px -8px rgba(255, 228, 143, 0.9);
}

/* ================================================================== 卡片＝NEWS 边框
   直接用原站 news_frame.png 铺满卡片（1498×650 比例和卡片接近，不变形）      */

.rounds .match {
  border: 0;
  clip-path: none;
  border-radius: 0;
  padding: 13px 17px 13px 19px;
  background-color: rgba(6, 11, 18, 0.8);
  background-image: url("img/kagu/news_frame.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 18px 44px -30px rgba(0, 0, 0, 0.95);
}
/* 原来的斜纹／切角装饰退场，避免和边框打架 */
.rounds .match::before,
.rounds .match::after { display: none; }
.rounds .match .match-head { padding-right: 2px; }

/* 进行中 / 刚赢下 仍然有呼吸和金边，只是不覆盖边框 */
.match[data-state='live'] { border-color: transparent; }
.match.fx-just-won { box-shadow: 0 0 0 1px rgba(255, 228, 143, 0.5), 0 0 46px -14px rgba(255, 228, 143, 0.85); }

/* 卡片内层压暗一点，边框本身保持清晰 */
.rounds .match::before {
  content: '';
  display: block;
  position: absolute;
  inset: 8px 10px;
  background: rgba(4, 9, 16, 0.5);
  z-index: 0;
  pointer-events: none;
}

/* 侧栏卡片也用同一套边框 */
.panel-card, .progress-card, .roster, .champion {
  border: 0;
  border-radius: 0;
  background-color: rgba(6, 11, 18, 0.82);
  background-image: linear-gradient(rgba(4, 9, 16, 0.28), rgba(4, 9, 16, 0.28)), url("img/kagu/news_frame.png");
  background-size: 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 18px 44px -30px rgba(0, 0, 0, 0.95);
  position: relative;
}
.panel-card > *, .progress-card > *, .roster > *, .champion > * { position: relative; z-index: 1; }

/* 侧栏卡片回到干净的薄边样式（边框只给比赛卡用，避免文字压到装饰线） */
.panel-card, .progress-card, .roster, .champion {
  background-image: none;
  background-color: rgba(6, 11, 18, 0.8);
  border: 1px solid rgba(0, 192, 195, 0.16);
  box-shadow: 0 18px 44px -30px rgba(0, 0, 0, 0.95);
}
.panel-card::after, .progress-card::after, .roster::after, .champion::after { display: none; }

/* ---------- 去掉卡片里那块黑色方块：改用卡片自身底色，不留硬边 ---------- */
.rounds .match::before { display: none !important; content: none !important; }
.rounds .match { background-color: rgba(5, 10, 17, 0.86); }

/* ---------- 侧栏卡片换成小号 NEWS 边框（断口更少），内边距加大避免压线 ---------- */
.panel-card, .progress-card, .roster, .champion {
  border: 0;
  padding: 22px 20px 24px;
  background-color: rgba(5, 10, 17, 0.88);
  background-image: url("img/kagu/newsp_frame-s.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 18px 44px -32px rgba(0, 0, 0, 0.95);
}
.roster::after { display: block; }
.roster::before { display: block; }

/* 侧栏各卡片按内容多少给内边距，别留空腔 */
.champion { padding: 20px 18px 18px; }
.progress-card { padding: 16px 18px 14px; }
.roster { padding: 18px 18px 14px; }
.panel-card { padding: 18px 18px 16px; }
.champion, .progress-card, .roster, .panel-card { background-color: rgba(5, 10, 17, 0.82); }

/* 侧栏卡片裁掉越界内容（进度条贴边） */
.panel-card, .progress-card, .roster, .champion { overflow: hidden; }
.progress-bar { width: auto !important; max-width: 100%; }
.progress-head { margin-right: 2px; }
.roster-head { padding-right: 2px; }

/* 管理端卡片里多一行控件，内距和卡高单独给 */
.admin-body { --card-h: 216px; }
.admin-body .rounds .match { padding: 10px 14px 8px 16px; }

/* ================================================================== 角色与动效
   立绘探进页面底部、聚光灯扫决赛区、云飘过、灯笼挂顶、底栏小头像列        */

/* 立绘：从页面下缘探出来，位置挑在卡片留白处 */
.bg-standee {
  bottom: -1%;
  height: 40vh;
  opacity: 0.9;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.85)) saturate(0.98);
  animation: standeeFloat 11s ease-in-out infinite alternate;
}
.bg-standee img { height: 100%; width: auto; object-fit: contain; }
.bg-standee--a { left: 40%; height: 44vh; animation-duration: 13s; }
.bg-standee--b { right: 21%; height: 38vh; animation-duration: 15s; animation-delay: -6s; }
@keyframes standeeFloat {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-10px) scale(1.008); }
}

/* 聚光灯：在决赛这一带缓慢摆动 */
.bg-spot {
  left: 46%;
  top: -12%;
  width: 46vw;
  height: 96vh;
  background: url("img/kagu/light.webp") center top / contain no-repeat;
  mix-blend-mode: screen;
  opacity: 0.22;
  transform-origin: 50% 0;
  animation: spotSweep 9s ease-in-out infinite alternate;
}
@keyframes spotSweep {
  from { transform: rotate(-7deg); opacity: 0.14; }
  to { transform: rotate(7deg); opacity: 0.3; }
}

/* 云：横着飘过去 */
.bg-cloud {
  top: 18%;
  left: -30vw;
  width: 26vw;
  height: 9vw;
  background: url("img/kagu/cloud.webp") center / contain no-repeat;
  opacity: 0.18;
  animation: cloudCross 78s linear infinite;
}
@keyframes cloudCross {
  from { transform: translateX(0); }
  to { transform: translateX(160vw); }
}

/* 灯笼：挂在顶部两角，慢慢晃 */
.bg-lantern {
  top: -8px;
  width: 46px;
  height: 62px;
  background: center / contain no-repeat;
  transform-origin: 50% 0;
  opacity: 0.75;
  animation: lanternHang 7s ease-in-out infinite;
}
.bg-lantern--l { left: 6%; background-image: url("img/kagu/lantern1.svg"); }
.bg-lantern--r { right: 6%; background-image: url("img/kagu/lantern2.svg"); animation-delay: -2.6s; }
@keyframes lanternHang {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* 底栏：一排角色小头像，轻微起伏 */
.footbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot-cast { display: flex; gap: 8px; }
.foot-cast img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.65;
  border: 1px solid rgba(0, 192, 195, 0.28);
  animation: footBob 5.5s ease-in-out infinite;
}
.foot-cast img:nth-child(2) { animation-delay: -1.1s; }
.foot-cast img:nth-child(3) { animation-delay: -2.2s; }
.foot-cast img:nth-child(4) { animation-delay: -3.3s; }
.foot-cast img:nth-child(5) { animation-delay: -4.4s; }
@keyframes footBob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(-3px); opacity: 0.9; }
}

@media (max-width: 780px) {
  .bg-standee, .bg-spot, .bg-cloud, .bg-lantern { display: none; }
  .foot-cast { display: none; }
}

/* 矮屏收侧栏，让整页一屏放下（底栏也就露出来了） */
@media (max-height: 960px) and (min-width: 781px) {
  .roster { padding: 14px 16px 12px; }
  .roster-list { gap: 6px; }
  .roster-row { padding: 2px 0; }
  .roster-av { width: 24px; height: 24px; font-size: 11px; }
  .roster-name { font-size: 13px; }
  .podium-row { padding: 6px 9px; }
  .podium-row[data-rank='1'] { padding: 6px 9px; }
  .progress-card { padding: 12px 16px 10px; }
  .champion { padding: 14px 16px 12px; }
}

/* 立绘更“站出来”一点：加轮廓光 */
.bg-standee {
  opacity: 1;
  filter: drop-shadow(0 0 24px rgba(0, 200, 210, 0.28)) drop-shadow(0 26px 50px rgba(0, 0, 0, 0.9));
}
.bg-standee--a { left: 31%; height: 46vh; }
.bg-standee--b { right: 12%; height: 40vh; }

/* 聚光灯再亮一点，灯笼挪到标题两侧 */
.bg-spot { opacity: 0.34; }
.bg-lantern { top: -6px; width: 52px; height: 70px; opacity: 0.85; }
.bg-lantern--l { left: 22%; }
.bg-lantern--r { right: 22%; }

/* 立绘改到右下角空白处，另一张收掉 */
.bg-standee--a { left: auto; right: 1%; bottom: -2%; height: 32vh; }
.bg-standee--b { display: none; }

/* 前三名卡片里放一张角色做底片，像海报 */
.champion::after {
  content: '';
  display: block;
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: 58%;
  height: 160%;
  background: url("img/kagu/st9.webp") right bottom / contain no-repeat;
  opacity: 0.26;
  -webkit-mask-image: linear-gradient(to top, #000 38%, transparent 92%);
  mask-image: linear-gradient(to top, #000 38%, transparent 92%);
  animation: figureBreathe 16s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes figureBreathe {
  from { transform: translateY(0) scale(1); opacity: 0.2; }
  to { transform: translateY(-6px) scale(1.02); opacity: 0.3; }
}

/* ================================================================== 动效加强
   花瓣飘落 / 斜光扫过 / 双聚光灯 / 回合标题跑马虚线 / 灯笼明灭              */

/* 1. 花瓣：12 片，各自速度与相位（原站 flower.svg） */
.bg-petals { inset: 0; overflow: hidden; }
.bg-petals i {
  position: absolute;
  top: -8vh;
  width: 14px;
  height: 14px;
  background: url("img/kagu/flower.svg") center / contain no-repeat;
  opacity: 0;
  animation-name: petalFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
.bg-petals i:nth-child(1)  { left: 4%;  animation-duration: 17s; animation-delay: -1s;  }
.bg-petals i:nth-child(2)  { left: 12%; animation-duration: 22s; animation-delay: -7s;  }
.bg-petals i:nth-child(3)  { left: 19%; animation-duration: 15s; animation-delay: -3s;  }
.bg-petals i:nth-child(4)  { left: 27%; animation-duration: 20s; animation-delay: -12s; }
.bg-petals i:nth-child(5)  { left: 35%; animation-duration: 16s; animation-delay: -5s;  }
.bg-petals i:nth-child(6)  { left: 43%; animation-duration: 23s; animation-delay: -15s; }
.bg-petals i:nth-child(7)  { left: 52%; animation-duration: 18s; animation-delay: -9s;  }
.bg-petals i:nth-child(8)  { left: 60%; animation-duration: 21s; animation-delay: -2s;  }
.bg-petals i:nth-child(9)  { left: 68%; animation-duration: 15s; animation-delay: -11s; }
.bg-petals i:nth-child(10) { left: 76%; animation-duration: 19s; animation-delay: -6s;  }
.bg-petals i:nth-child(11) { left: 85%; animation-duration: 24s; animation-delay: -14s; }
.bg-petals i:nth-child(12) { left: 93%; animation-duration: 16s; animation-delay: -4s;  }
@keyframes petalFall {
  0%   { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.55; }
  50%  { transform: translate3d(26px, 46vh, 0) rotate(180deg); opacity: 0.5; }
  90%  { opacity: 0.35; }
  100% { transform: translate3d(-18px, 112vh, 0) rotate(360deg); opacity: 0; }
}

/* 2. 斜光：14s 横扫一次，只有一条，扫过时整屏亮一下 */
.bg-sweep {
  top: -10%;
  left: -40%;
  width: 34vw;
  height: 120%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 220, 225, 0.07) 42%,
    rgba(255, 228, 143, 0.06) 54%,
    rgba(255, 255, 255, 0) 100%
  );
  mix-blend-mode: screen;
  transform: skewX(-12deg);
  animation: sweepAcross 14s linear infinite;
}
@keyframes sweepAcross {
  from { transform: translateX(0) skewX(-12deg); }
  to   { transform: translateX(190vw) skewX(-12deg); }
}

/* 3. 双聚光灯：左 2.7s / 右 2.9s，各 ±5°（原站 introduction 参数） */
.bg-spot--l {
  left: 12%;
  top: -16%;
  width: 32vw;
  height: 92vh;
  opacity: 0.2;
  transform-origin: 50% 0;
  animation: spotL 2.7s ease-in-out infinite;
}
.bg-spot--r {
  left: auto;
  right: 6%;
  top: -16%;
  width: 32vw;
  height: 92vh;
  opacity: 0.18;
  transform-origin: 50% 0;
  animation: spotR 2.9s ease-in-out infinite;
}
@keyframes spotL {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-5deg); }
}
@keyframes spotR {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(5deg); }
}

/* 4. 回合标题下方跑马虚线（原站 datedeco：1s linear，位移 12px） */
.rounds .round-head { position: relative; }
.round-head::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(0, 200, 205, 0.55) 0 7px, rgba(0, 200, 205, 0) 7px 14px);
  animation: datedeco 1s linear infinite;
}
@keyframes datedeco {
  from { background-position: 0 0; }
  to   { background-position: 14px 0; }
}

/* 5. 灯笼明灭：5s 交替，两只相位相反（原站 lantern1/2） */
.bg-lantern::after {
  content: '';
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 120, 0.5), rgba(255, 190, 120, 0) 70%);
  animation: lanternGlow 5s linear infinite;
  opacity: 0.5;
}
.bg-lantern--r::after { animation-direction: reverse; }
@keyframes lanternGlow {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.75; }
}

@media (max-width: 780px) {
  .bg-sweep, .bg-spot--l, .bg-spot--r, .bg-petals { display: none; }
}

/* 花瓣调到看得见的量级：大一圈、带粉光、微透明 */
.bg-petals i {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 7px rgba(255, 170, 200, 0.65)) saturate(1.15) brightness(1.15);
}
.bg-petals i:nth-child(3n) { width: 16px; height: 16px; }
.bg-petals i:nth-child(4n) { width: 27px; height: 27px; }
@keyframes petalFall2 { from { opacity: 0.2; } to { opacity: 0.9; } }

/* 斜光加强一点，扫过时能感觉到 */
.bg-sweep {
  width: 30vw;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 225, 230, 0.1) 40%,
    rgba(255, 232, 160, 0.09) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  animation-duration: 11s;
}
.bg-spot--l { opacity: 0.26; }
.bg-spot--r { opacity: 0.22; }

/* 花瓣改成 CSS 画的粉色花瓣，才在亮背景上看得见 */
.bg-petals i {
  background: radial-gradient(62% 100% at 50% 18%, #ffe3ec 0%, #ffb0c6 48%, rgba(255, 130, 170, 0.15) 100%);
  border-radius: 62% 38% 55% 45% / 72% 62% 38% 28%;
  box-shadow: 0 0 14px rgba(255, 150, 190, 0.45);
  filter: none;
  opacity: 0;
}

/* 底部升起的暖光斑，慢慢往上飘 */
.bg-bokeh { inset: 0; overflow: hidden; }
.bg-bokeh i {
  position: absolute;
  bottom: -14vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 180, 0.42) 0%, rgba(255, 214, 140, 0.16) 45%, rgba(255, 214, 140, 0) 72%);
  animation-name: bokehRise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  opacity: 0;
}
.bg-bokeh i:nth-child(1) { left: 8%;  width: 120px; height: 120px; animation-duration: 26s; animation-delay: -3s; }
.bg-bokeh i:nth-child(2) { left: 24%; width: 74px;  height: 74px;  animation-duration: 33s; animation-delay: -14s; }
.bg-bokeh i:nth-child(3) { left: 41%; width: 150px; height: 150px; animation-duration: 30s; animation-delay: -21s; }
.bg-bokeh i:nth-child(4) { left: 58%; width: 90px;  height: 90px;  animation-duration: 38s; animation-delay: -9s; }
.bg-bokeh i:nth-child(5) { left: 73%; width: 130px; height: 130px; animation-duration: 28s; animation-delay: -17s; }
.bg-bokeh i:nth-child(6) { left: 88%; width: 66px;  height: 66px;  animation-duration: 35s; animation-delay: -6s; }
@keyframes bokehRise {
  0%   { transform: translateY(0) scale(0.9); opacity: 0; }
  14%  { opacity: 0.55; }
  70%  { opacity: 0.4; }
  100% { transform: translateY(-104vh) scale(1.2); opacity: 0; }
}

@media (max-width: 780px) {
  .bg-bokeh { display: none; }
}

/* 前景层：花瓣和光斑浮在界面之上（不挡点击） */
.fg-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}
.fg-layer .bg-petals i { opacity: 0.85; }
.fg-layer .bg-bokeh i { opacity: 0.45; }
.fg-layer .bg-bokeh i:nth-child(2n) { opacity: 0.3; }
@media (max-width: 780px) {
  .fg-layer .bg-petals i:nth-child(n+7) { display: none; }
}

/* 花瓣定稿：叶子形 + 小尺寸 + 半透明，飘过但不糊字 */
.fg-layer .bg-petals i {
  width: 18px !important;
  height: 22px !important;
  border-radius: 100% 0 100% 0 !important;
  background: linear-gradient(135deg, #ffe6ee 0%, #ffb3c9 55%, #ff86ac 100%) !important;
  box-shadow: 0 0 10px rgba(255, 140, 180, 0.4) !important;
  opacity: 0.62 !important;
}
.fg-layer .bg-petals i:nth-child(3n) { width: 14px !important; height: 17px !important; opacity: 0.5 !important; }
.fg-layer .bg-petals i:nth-child(4n) { width: 21px !important; height: 26px !important; opacity: 0.55 !important; }
.fg-layer .bg-bokeh i { opacity: 0.28; }

/* 光柱：立在列与列的空隙里，缓慢呼吸（填掉中间的空白） */
.bg-beams i {
  position: absolute;
  top: -12%;
  width: 130px;
  height: 124%;
  background: linear-gradient(180deg, rgba(0, 220, 225, 0.16) 0%, rgba(0, 220, 225, 0.05) 42%, rgba(0, 220, 225, 0) 78%);
  filter: blur(16px);
  transform-origin: 50% 0;
  animation: beamBreathe 7s ease-in-out infinite;
  mix-blend-mode: screen;
}
.bg-beams i:nth-child(1) { left: 24%; animation-delay: -1s; }
.bg-beams i:nth-child(2) { left: 49%; width: 170px; animation-duration: 8.5s; animation-delay: -4s; }
.bg-beams i:nth-child(3) { right: 22%; width: 110px; animation-duration: 6.2s; animation-delay: -2.5s; }
@keyframes beamBreathe {
  0%, 100% { opacity: 0.28; transform: scaleX(0.9) skewX(-2deg); }
  50%      { opacity: 0.62; transform: scaleX(1.06) skewX(2deg); }
}
@media (max-width: 780px) { .bg-beams { display: none; } }

/* ================================================================== 新背景（房间 KV）+ 两张表情包立绘 */

.bg-art {
  background-image: url("img/kagu/room.jpg");
  background-position: center 40%;
  filter: saturate(1.04) brightness(0.72) contrast(1.02);
}
/* 亮背景要压得更实，不然字和背景抢 */
.bg-veil {
  background:
    linear-gradient(180deg, rgba(4, 8, 15, 0.82) 0%, rgba(4, 8, 15, 0.34) 22%, rgba(4, 8, 15, 0.18) 48%, rgba(4, 8, 15, 0.62) 84%, rgba(4, 8, 15, 0.86) 100%),
    radial-gradient(125% 92% at 50% 42%, rgba(4, 8, 15, 0) 34%, rgba(4, 8, 15, 0.55) 100%);
}

/* 表情包：一个站在右下角，一个吊在标题左侧 */
.meme {
  bottom: -2%;
  right: 3%;
  width: 132px;
  animation: memeSway 6.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.75));
}
.meme img { width: 100%; display: block; }
.meme--b {
  right: auto;
  left: 22%;
  bottom: auto;
  top: -26px;
  width: 96px;
  animation: memeDangle 5s ease-in-out infinite;
  transform-origin: 50% 0;
}
@keyframes memeSway {
  from { transform: translateY(0) rotate(-2.5deg); }
  to   { transform: translateY(-7px) rotate(2.5deg); }
}
@keyframes memeDangle {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(4deg); }
}
@media (max-width: 780px) {
  .meme { width: 92px; right: 2%; }
  .meme--b { display: none; }
}

/* 表情包改按高度缩放（已经是裁过底的动图 webp） */
.meme { width: auto; height: 21vh; }
.meme img { height: 100%; width: auto; }
.meme--b { width: auto; height: 14vh; top: -18px; }
@media (max-width: 780px) { .meme { height: 15vh; } }

/* 房间 KV 亮，压一点并微虚，把界面推到前面 */
.bg-art {
  background-position: center 44%;
  filter: saturate(1.02) brightness(0.6) contrast(1.04) blur(1px);
  transform: scale(1.04);
}
.bg-veil {
  background:
    linear-gradient(180deg, rgba(4, 8, 15, 0.88) 0%, rgba(4, 8, 15, 0.42) 20%, rgba(4, 8, 15, 0.26) 46%, rgba(4, 8, 15, 0.7) 86%, rgba(4, 8, 15, 0.9) 100%),
    radial-gradient(120% 90% at 50% 44%, rgba(4, 8, 15, 0) 30%, rgba(4, 8, 15, 0.6) 100%);
}
.meme--a { bottom: -1%; right: 2.5%; height: 22vh; }
.meme--b { left: 23%; top: -14px; height: 15vh; }

/* 表情包放到前景层，别被暗罩压灰 */
.meme { z-index: 46; opacity: 1; }
.meme--a { filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.7)); }
.meme--b { filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6)); }

.meme { position: absolute; }

/* 背景取更靠左的构图，避免正中一张大脸压着决赛区 */
.bg-art { background-position: 26% 46%; }
.meme--b { left: 25%; top: -30px; height: 16vh; }

.meme--b { top: -52px; left: 23%; }

/* 表情包 B 的位置由 extra.js 贴着决赛卡算，这里只留尺寸 */
.meme--b { left: 0; top: 0; height: 16vh; }

/* 管理端右下角是设置面板，站着的那张会挡输入框，这里只留决赛卡上那张 */
.admin-body .meme--a { display: none; }

/* ---------- 自定义背景层（管理员上传） ---------- */
.bg-art-custom {
  position: absolute;
  inset: 0;
  background-color: #0a1018;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
  filter: saturate(1.02) brightness(0.6) contrast(1.04) blur(1px);
  transform-origin: 50% 50%;
  transition: transform 0.18s ease-out, background-position 0.18s ease-out;
}
body.has-custom-bg .bg-art { opacity: 0; }

/* ================================================================== 参考库花纹 / 开场加载 / 夺冠舞台 */

/* ---------- 1. 开场加载：镜面球 steps(9) + 光条推进 + 白圈撑开 ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-content: center;
  gap: 14px;
  justify-items: center;
  background: radial-gradient(120% 90% at 50% 45%, #0d1a26 0%, #060b12 70%, #04070c 100%);
  transition: opacity 0.62s ease 0.06s;
}
.boot.is-out { opacity: 0; pointer-events: none; }
.boot__mb {
  width: 168px;
  height: 168px;
  background: url("img/kagu/mirrorball.jpg") no-repeat 0 0 / auto 100%;
  animation: mirrorball 1s steps(9) infinite;
  filter: drop-shadow(0 0 22px rgba(0, 200, 205, 0.45));
}
@keyframes mirrorball {
  0%   { background-position: 0 0; }
  100% { background-position: 100% 0; }
}
.boot__label {
  width: 208px;
  height: 34px;
  background: url("img/kagu/loading_txt.png") no-repeat center / contain;
  animation: bootPulse 1.4s ease-in-out infinite;
}
@keyframes bootPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.boot__track {
  position: relative;
  width: 208px;
  height: 2px;
  overflow: hidden;
  background: rgba(0, 200, 205, 0.16);
}
.boot__track i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 200, 205, 0) 0%, #00c0c3 45%, #ffe48f 70%, rgba(0, 200, 205, 0) 100%);
  transform-origin: 0 50%;
  animation: bootTrack 1.05s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes bootTrack {
  from { transform: translateX(-100%) scaleX(0.4); }
  to   { transform: translateX(0) scaleX(1); }
}
/* 白圆撑开：从 80px 到 220vmax */
.boot__flash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  transition: transform 0.7s ease, opacity 0.32s ease;
}
.boot.is-expand .boot__flash {
  opacity: 1;
  transform: translate(-50%, -50%) scale(30);
}

/* ---------- 2. 花纹层：date_deco 平铺 + 两朵线描花 ---------- */
.bg-pattern {
  inset: 0;
  background-image: url("img/kagu/date_deco.png");
  background-repeat: repeat;
  background-size: 26px 26px;
  opacity: 0.05;
  mix-blend-mode: screen;
  animation: patternDrift 64s linear infinite;
}
@keyframes patternDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-104px, -104px, 0); }
}
.bg-flower {
  width: 46vw;
  height: 46vw;
  max-width: 720px;
  max-height: 720px;
  background: url("img/kagu/staffcast_flower.svg") center / contain no-repeat;
  opacity: 0.1;
  filter: drop-shadow(0 0 18px rgba(255, 228, 143, 0.25));
}
.bg-flower--l {
  left: -12vw;
  bottom: -18vh;
  animation: flowerSpin 128s linear infinite;
}
.bg-flower--r {
  left: auto;
  right: -14vw;
  top: -16vh;
  width: 40vw;
  height: 40vw;
  animation: flowerSpin 96s linear infinite reverse;
}
@keyframes flowerSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- 3. 卡片角花：四角细角标 + 左上/右下闪星 ---------- */
.rounds .match {
  --corner: rgba(0, 205, 208, 0.55);
}
.rounds .match::after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--corner), var(--corner)) left 6px top 6px / 12px 1px no-repeat,
    linear-gradient(var(--corner), var(--corner)) left 6px top 6px / 1px 12px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right 6px top 6px / 12px 1px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right 6px top 6px / 1px 12px no-repeat,
    linear-gradient(var(--corner), var(--corner)) left 6px bottom 6px / 12px 1px no-repeat,
    linear-gradient(var(--corner), var(--corner)) left 6px bottom 6px / 1px 12px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right 6px bottom 6px / 12px 1px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right 6px bottom 6px / 1px 12px no-repeat;
  opacity: 0.85;
}
.rounds .match::before {
  content: '';
  display: block;
  position: absolute;
  left: 8px;
  bottom: 7px;
  width: 11px;
  height: 11px;
  background: url("img/kagu/nav_flash.svg") center / contain no-repeat;
  opacity: 0.5;
  animation: sparkle 3.4s ease-in-out infinite;
}
.rounds .match[data-live='1']::before { animation-duration: 1.6s; opacity: 0.9; }
@keyframes sparkle {
  0%, 100% { opacity: 0.18; transform: scale(0.82) rotate(0deg); }
  50%      { opacity: 0.85; transform: scale(1.1) rotate(90deg); }
}

/* 前三名 / 进度 / 名单：左上角一枚星章 */
.champion::before,
.progress-card::before,
.roster::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 9px;
  width: 13px;
  height: 13px;
  background: url("img/kagu/gnav_profile_star.svg") center / contain no-repeat;
  opacity: 0.42;
  animation: starBreath 6.5s ease-in-out infinite;
}
@keyframes starBreath {
  0%, 100% { opacity: 0.26; transform: rotate(0deg); }
  50%      { opacity: 0.6; transform: rotate(180deg); }
}

/* ---------- 4. 夺冠舞台：底部黄条 + 三束光 + 低雾 ---------- */
.bg-stage {
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
body.is-champion .bg-stage { opacity: 1; }

.bg-stage__fog {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -6vh;
  height: 34vh;
  background: radial-gradient(70% 100% at 50% 100%, rgba(255, 228, 143, 0.16) 0%, rgba(255, 228, 143, 0.05) 45%, rgba(255, 228, 143, 0) 78%);
  filter: blur(18px);
  animation: stageFog 14s ease-in-out infinite;
}
@keyframes stageFog {
  0%, 100% { opacity: 0.55; transform: translateX(-2%); }
  50%      { opacity: 0.95; transform: translateX(2%); }
}

.bg-stage__light {
  position: absolute;
  bottom: -8vh;
  width: 26vw;
  height: 70vh;
  background: url("img/kagu/introduction_light.png") center bottom / 100% 100% no-repeat;
  mix-blend-mode: screen;
  transform-origin: 50% 100%;
  opacity: 0.55;
  filter: saturate(0.4) sepia(0.5) hue-rotate(-8deg) brightness(1.5);
}
.bg-stage__light--a { left: 8%; animation: stageSweep 7.2s ease-in-out infinite; }
.bg-stage__light--b { left: 40%; animation: stageSweep 8.4s ease-in-out infinite reverse; opacity: 0.42; }
.bg-stage__light--c { right: 6%; animation: stageSweep 6.4s ease-in-out infinite; opacity: 0.5; }
@keyframes stageSweep {
  0%, 100% { transform: rotate(-7deg) scaleY(1); }
  50%      { transform: rotate(7deg) scaleY(1.08); }
}

.bg-stage__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: linear-gradient(90deg, rgba(255, 228, 143, 0) 0%, #ffe48f 18%, #fff6cf 50%, #ffe48f 82%, rgba(255, 228, 143, 0) 100%);
  box-shadow: 0 0 26px 6px rgba(255, 214, 110, 0.55), 0 0 80px 22px rgba(255, 200, 90, 0.28);
  transform-origin: 50% 100%;
  animation: stageBarIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both, stageBarGlow 4.6s ease-in-out 1.1s infinite;
}
@keyframes stageBarIn {
  from { transform: scaleY(0.2); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
@keyframes stageBarGlow {
  0%, 100% { box-shadow: 0 0 22px 4px rgba(255, 214, 110, 0.45), 0 0 70px 18px rgba(255, 200, 90, 0.22); }
  50%      { box-shadow: 0 0 34px 9px rgba(255, 226, 150, 0.8), 0 0 110px 30px rgba(255, 200, 90, 0.4); }
}

/* 冠军台上的放射线 + 光环（挂在 .podium 上，别抢 .champion::after 的角色底图） */
body.is-champion .champion .podium { position: relative; }
body.is-champion .champion .podium::before {
  content: '';
  position: absolute;
  inset: -18% -12%;
  background: url("img/kagu/character_frame.svg") center / contain no-repeat,
              radial-gradient(circle at 50% 32%, rgba(255, 228, 143, 0.3), rgba(255, 228, 143, 0) 62%);
  opacity: 0.28;
  mix-blend-mode: screen;
  animation: haloSpin 26s linear infinite;
  pointer-events: none;
}
@keyframes haloSpin {
  from { transform: rotate(0deg) scale(1); }
  to   { transform: rotate(360deg) scale(1.04); }
}
body.is-champion .podium-row[data-rank='1'] .avatar {
  box-shadow: 0 0 0 2px #ffe48f, 0 0 22px 6px rgba(255, 214, 110, 0.6);
}

@media (max-width: 780px) {
  .bg-pattern, .bg-flower, .bg-stage { display: none; }
  .boot__mb { width: 126px; height: 126px; }
}

/* ============ 加强：花纹更明显 / 角花更清楚 / 黄条压在最上层 ============ */

/* 镜面球雪碧图：按 9 帧铺满，不再露出方框 */
.boot__mb {
  width: 190px;
  height: 190px;
  background-size: 900% 100%;
  background-position: 0 0;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 26px rgba(0, 200, 205, 0.55));
}

/* 花纹层：大一号、亮一点，慢速斜移 */
.bg-pattern {
  background-size: 30px 30px;
  opacity: 0.09;
}

/* 线描花：放大、提亮，摆在空白处 */
.bg-flower { opacity: 0.16; }
.bg-flower--l { left: 16vw; bottom: -22vh; width: 52vw; height: 52vw; }
.bg-flower--r { right: -10vw; top: -24vh; width: 46vw; height: 46vw; opacity: 0.12; }

/* 卡片角花：角标加长，闪星变大 */
.rounds .match { --corner: rgba(0, 214, 218, 0.72); }
.rounds .match::after { opacity: 1; }
.rounds .match::before { width: 13px; height: 13px; opacity: 0.55; }

/* 冠军黄条：更厚、更亮，并加一条上扬的光带 */
.bg-stage__bar { height: 12px; }
.bg-stage__bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 46px;
  background: linear-gradient(0deg, rgba(255, 226, 150, 0.4) 0%, rgba(255, 214, 110, 0.12) 46%, rgba(255, 214, 110, 0) 100%);
  filter: blur(8px);
}
body.is-champion .bg-veil {
  background:
    linear-gradient(180deg, rgba(4, 8, 15, 0.88) 0%, rgba(4, 8, 15, 0.42) 20%, rgba(4, 8, 15, 0.26) 46%, rgba(4, 8, 15, 0.58) 84%, rgba(4, 8, 15, 0.7) 100%),
    radial-gradient(120% 90% at 50% 44%, rgba(4, 8, 15, 0) 30%, rgba(4, 8, 15, 0.6) 100%);
}

/* ============ 花纹定稿：连接线菱形节点 + 卡片角标 + 花窗位置 ============ */

/* 连接线拐角的小菱形 */
.node-bend {
  fill: rgba(8, 16, 24, 0.9);
  stroke: rgba(0, 205, 208, 0.55);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(45deg);
  animation: bendTwinkle 4.4s ease-in-out infinite;
}
.node-bend.link-done { stroke: rgba(255, 228, 143, 0.65); }
.node-bend.link-hot { stroke: #00f0f4; animation-duration: 1.8s; }
@keyframes bendTwinkle {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.95; }
}

/* 卡片左上角再压一枚小菱形，角标加粗到 2px */
.rounds .match {
  background-image: url("img/kagu/news_frame.png"), url("img/kagu/icon_dia-arrow.svg");
  background-position: 0 0, 10px 9px;
  background-size: 100% 100%, 8px 8px;
  background-repeat: no-repeat, no-repeat;
}
.rounds .match::after {
  background:
    linear-gradient(var(--corner), var(--corner)) left 5px top 5px / 13px 2px no-repeat,
    linear-gradient(var(--corner), var(--corner)) left 5px top 5px / 2px 13px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right 5px top 5px / 13px 2px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right 5px top 5px / 2px 13px no-repeat,
    linear-gradient(var(--corner), var(--corner)) left 5px bottom 5px / 13px 2px no-repeat,
    linear-gradient(var(--corner), var(--corner)) left 5px bottom 5px / 2px 13px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right 5px bottom 5px / 13px 2px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right 5px bottom 5px / 2px 13px no-repeat;
}

/* 花窗：一个落在中段空隙，一个压在右上角外沿 */
.bg-flower--l { left: 30vw; bottom: -26vh; width: 46vw; height: 46vw; opacity: 0.15; }
.bg-flower--r { right: -16vw; top: -30vh; width: 52vw; height: 52vw; opacity: 0.1; }

/* 镜面球定稿：10 帧 + 圆形遮罩（原图是 4800×480 的十条帧） */
.boot__mb {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  background-size: 1000% 100%;
  animation: mirrorball10 1s steps(10) infinite;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 34px rgba(0, 200, 205, 0.6)) contrast(1.1);
}
@keyframes mirrorball10 {
  0%   { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}

/* 卡片上的小菱形去掉，只留四角角标 + 左下闪星 */
.rounds .match {
  background-image: url("img/kagu/news_frame.png");
  background-position: 0 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* 镜面球用裁好的帧条（球占满整帧），白闪收一点 */
.boot__mb {
  width: 176px;
  height: 176px;
  background-image: url("img/kagu/mirrorball-strip.png");
  background-size: 1000% 100%;
  border-radius: 50%;
  overflow: hidden;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 40px rgba(120, 230, 235, 0.55)) contrast(1.15) brightness(1.15);
}
.boot__flash {
  background: #eafcff;
  transition: transform 0.56s ease, opacity 0.3s ease;
}
.boot.is-expand .boot__flash { transform: translate(-50%, -50%) scale(16); opacity: 0.92; }

/* 月相帧条：按像素步进，10 帧严丝合缝（原图其实是 10 个相位的月亮） */
.boot__mb {
  width: 176px;
  height: 176px;
  background-image: url("img/kagu/mirrorball-strip.png");
  background-size: 1760px 176px;
  background-repeat: no-repeat;
  background-position: 0 0;
  animation: moonPhase 2.6s steps(10) infinite;
  border-radius: 50%;
  overflow: hidden;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 44px rgba(140, 210, 255, 0.6)) brightness(1.1);
}
@keyframes moonPhase {
  from { background-position: 0 0; }
  to   { background-position: -1760px 0; }
}

/* 月亮边缘柔化（源图的蓝色方框边缘别硬切） */
.boot__mb {
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 54%, rgba(0, 0, 0, 0.6) 68%, rgba(0, 0, 0, 0) 80%);
  mask-image: radial-gradient(circle at 50% 50%, #000 54%, rgba(0, 0, 0, 0.6) 68%, rgba(0, 0, 0, 0) 80%);
}
/* 夺冠黄条再亮一点 */
.bg-stage__bar {
  height: 14px;
  background: linear-gradient(90deg, rgba(255, 228, 143, 0) 0%, #ffd76e 14%, #fffbe6 50%, #ffd76e 86%, rgba(255, 228, 143, 0) 100%);
}

/* 黄条抬到舞台沿上，读起来像脚灯而不是贴边的一条线 */
.bg-stage__bar { bottom: 16px; height: 12px; }
.bg-stage__bar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
  background: linear-gradient(180deg, rgba(255, 214, 110, 0.35) 0%, rgba(255, 214, 110, 0) 100%);
}

@media (max-width: 780px) {
  .meme { display: none; }
  .rounds .match::before { display: none; }
}

/* ============ 背景亮度 / 暗角（后台两个滑杆写 --bg-bright / --bg-vig） ============ */
:root { --bg-bright: 60; --bg-vig: 55; }

.bg-art {
  filter: saturate(1.02) brightness(calc(var(--bg-bright) / 100)) contrast(1.04) blur(1px);
}
.bg-art-custom {
  filter: saturate(1.02) brightness(calc(var(--bg-bright) / 100)) contrast(1.04) blur(1px);
}
/* 暗角：0 = 很轻（0.42），100 = 很重（1） */
.bg-veil {
  opacity: calc(0.42 + var(--bg-vig) / 100 * 0.58);
}
/* 夺冠时底部的压暗别再把黄条盖掉，也要跟着暗角走 */
body.is-champion .bg-veil {
  opacity: calc(0.42 + var(--bg-vig) / 100 * 0.44);
}

/* 暗角改直读百分比：100 = 之前那层暗罩，0 = 基本不压 */
:root { --bg-vig: 100; }
.bg-veil { opacity: calc(var(--bg-vig) / 100); }
body.is-champion .bg-veil { opacity: calc(var(--bg-vig) / 100 * 0.82); }

/* 灯光条收敛：细一点、淡一点，只留一层柔光（别当霓虹灯） */
.bg-stage__bar {
  bottom: 18px;
  height: 6px;
  background: linear-gradient(90deg, rgba(255, 228, 143, 0) 0%, rgba(255, 222, 138, 0.55) 16%, rgba(255, 246, 214, 0.8) 50%, rgba(255, 222, 138, 0.55) 84%, rgba(255, 228, 143, 0) 100%);
  box-shadow: 0 0 16px 1px rgba(255, 214, 110, 0.3);
  animation: stageBarIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bg-stage__bar::before,
.bg-stage__bar::after { display: none; }
.bg-stage__fog { opacity: 0.3; }
.bg-stage__light { opacity: 0.28; filter: saturate(0.5) sepia(0.35) brightness(1.15); }
.bg-stage__light--b { opacity: 0.2; }
.bg-stage__light--c { opacity: 0.24; }
body.is-champion .bg-veil { opacity: calc(var(--bg-vig) / 100 * 0.94); }

/* 前三名面板：去掉我自造的放射线＋慢转，只留静态的柔光（参考站没有这个东西） */
body.is-champion .champion .podium::before { display: none; }
body.is-champion .champion .podium { position: relative; }
.champion { box-shadow: 0 0 0 1px rgba(255, 228, 143, 0.18) inset; }
/* 背景里那层自造的平铺花纹也撤掉（参考站的 date_deco 只做跑马灯，不平铺） */
.bg-pattern { display: none; }

/* 星章不转（参考站没有旋转的星），只做很轻的明暗 */
@keyframes starBreath {
  0%, 100% { opacity: 0.28; }
  50%      { opacity: 0.55; }
}
/* 线描花按参考站的用法摆着不动（不再自转） */
.bg-flower { animation: none; }
.bg-flower--l { opacity: 0.14; }
.bg-flower--r { opacity: 0.1; }

/* 登录页只留背景与花瓣，贴纸/站立角色都收起来 */
.gated .meme,
.gated .bg-standee { display: none; }
