/* ============ 主题变量：喜庆红金（适老化高对比） ============ */
:root {
  --red-0: #330202;
  --red-1: #5e0808;
  --red-2: #8a1010;
  --red-3: #b01a1a;
  --gold: #ffd24a;
  --gold-soft: #ffe9a8;
  --gold-deep: #c8941a;
  --ink: #fff6e6;
  --ink-dim: rgba(255, 246, 230, 0.66);
  --ink-weak: rgba(255, 246, 230, 0.42);
  --line: rgba(255, 210, 74, 0.34);
  --line-strong: rgba(255, 210, 74, 0.62);
  --card: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(0, 0, 0, 0.24));
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(120% 110% at 50% -18%, var(--red-3) 0%, var(--red-2) 32%, var(--red-1) 64%, var(--red-0) 100%);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 背景水印：淡"舞"字，营造主题氛围但不干扰阅读 */
body::after {
  content: "舞";
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 62vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.026);
  pointer-events: none;
  z-index: 0;
}

.screen {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.3vh;
  padding: 1.4vh 1.5vw 1.2vh;
}

/* ============ 顶部信息带 ============ */
.topbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2vw;
  padding: 1.3vh 1.8vw;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.12));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tb-left { min-width: 0; }
.org-label {
  font-size: clamp(14px, 1.05vw, 21px);
  letter-spacing: 0.32em;
  color: var(--ink-dim);
}
.org-name {
  margin-top: 0.5vh;
  font-size: clamp(15px, 1.28vw, 25px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-center { text-align: center; }
.comp-title {
  font-size: clamp(26px, 2.9vw, 56px);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.06;
  background: linear-gradient(180deg, #fff8e2, var(--gold) 52%, #dfa615);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
  white-space: nowrap;
}
.comp-sub {
  margin-top: 0.5vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9vw;
  font-size: clamp(15px, 1.15vw, 23px);
  letter-spacing: 0.26em;
  color: var(--ink-dim);
}
.comp-sub i {
  width: clamp(30px, 5vw, 110px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep));
}
.comp-sub i:last-child { background: linear-gradient(90deg, var(--gold-deep), transparent); }

.tb-right { display: flex; align-items: center; justify-content: flex-end; gap: 1.1vw; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7vh 1.3vw;
  border-radius: 999px;
  font-size: clamp(16px, 1.3vw, 26px);
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.34);
}
.badge::before {
  content: "";
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: breathe 1.7s ease-in-out infinite;
}
.badge[data-tone="live"] { color: #fff; border-color: rgba(255, 255, 255, 0.62); }
.badge[data-tone="announce"] { color: #2b1a00; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); border-color: var(--gold-soft); }
.badge[data-tone="lastscoring"] { color: #fff; border-color: rgba(255, 255, 255, 0.42); }
.badge[data-tone="finished"] { color: #2b1a00; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); border-color: var(--gold-soft); }
.badge[data-tone="idle"] { color: #2b1a00; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); border-color: var(--gold-soft); }
.badge[data-tone="finished"]::before,
.badge[data-tone="announce"]::before,
.badge[data-tone="idle"]::before { animation: none; }

.clock-box { text-align: right; flex: 0 0 auto; }
.clock {
  font-size: clamp(20px, 1.95vw, 38px);
  font-weight: 800;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}
.date {
  margin-top: 0.3vh;
  font-size: clamp(14px, 1.05vw, 21px);
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ============ 主体 ============ */
.main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 31%;
  gap: 1.1vw;
}
.screen[data-state="idle"] .main { grid-template-columns: 1fr; }
.screen[data-state="idle"] .side { display: none; }
/* 右侧公示区无内容时（赛前待场、成绩播报），中央舞台独占整行 */
.main:has(> .side:empty) { grid-template-columns: 1fr; }
.side:empty { display: none; }

/* ---- 中央主舞台 ---- */
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 3vh 2.4vw;
  overflow: hidden;
  border-radius: 18px;
  text-align: center;
  background:
    radial-gradient(58% 52% at 50% 46%, rgba(255, 210, 74, 0.13), transparent 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.36));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 70px rgba(255, 210, 74, 0.07), var(--shadow);
}
/* 四角金色角标 */
.stage::before, .stage::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--gold);
  opacity: 0.75;
}
.stage::before { top: 14px; left: 14px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.stage::after { bottom: 14px; right: 14px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }
/* 成绩播报信息密度高，收紧舞台内边距 */
.stage[data-view="announce"] { padding: 1.1vh 2vw; }

/* 正在表演 */
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: clamp(17px, 1.7vw, 34px);
  font-weight: 800;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: #ffdcdc;
}
.live-dot {
  width: clamp(10px, 0.85vw, 16px);
  height: clamp(10px, 0.85vw, 16px);
  border-radius: 50%;
  background: #ff5252;
  box-shadow: 0 0 14px #ff5252;
  animation: breathe 1.4s ease-in-out infinite;
}
.live-team {
  margin-top: 1.2vh;
  font-size: clamp(42px, 7vw, 140px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.05em;
  max-width: 96%;
  overflow-wrap: break-word;
  background: linear-gradient(180deg, #fff8e2, var(--gold) 54%, #dfa615);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.62));
}
/* 剩余表演时间：居中计时胶囊 */
.live-timer {
  margin-top: 4vh;
  display: inline-flex;
  align-items: center;
  padding: 1.4vh 2.6vw;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 210, 74, 0.16), rgba(0, 0, 0, 0.36));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 34px rgba(255, 210, 74, 0.12), var(--shadow);
}
.live-timer .timer-label {
  padding-right: 1.3vw;
  border-right: 1px solid rgba(255, 210, 74, 0.32);
  font-size: clamp(16px, 1.3vw, 26px);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.live-timer .timer-value {
  padding-left: 1.3vw;
  font-size: clamp(34px, 3.5vw, 68px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
  text-shadow: 0 0 26px rgba(255, 210, 74, 0.45);
}

/* 成绩播报（中央全屏覆盖面） */
.announce-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.45vh 1.4vw;
  border-radius: 999px;
  font-size: clamp(15px, 1.35vw, 26px);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: #2b1a00;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}
.announce-team {
  margin-top: 1.6vh;
  font-size: clamp(30px, 3.5vw, 68px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
}
/* 裁判评分明细 */
.judge-board {
  width: 100%;
  margin-top: 2.6vh;
  padding: 1.8vh 1.2vw;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
}
.jb-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 1.1vh;
}
.jb-title {
  font-size: clamp(15px, 1.25vw, 24px);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--gold-soft);
}
.judge-strip { display: flex; flex-wrap: wrap; gap: 0.7vw; }
.judge-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45vh;
  padding: 1.7vh 0.4vw;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.jc-no { font-size: clamp(12px, 0.92vw, 18px); font-weight: 800; letter-spacing: 0.12em; color: var(--ink-weak); }
.jc-score { font-size: clamp(24px, 2.35vw, 45px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.jc-name { font-size: clamp(13px, 0.98vw, 19px); font-weight: 700; letter-spacing: 0.04em; color: var(--ink-dim); }

/* 最终得分 + 裁判长加减分 */
.final-row {
  width: 100%;
  margin-top: 2.6vh;
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 1.1vw;
  align-items: stretch;
}
.final-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5vh;
  padding: 2vh 1vw;
  border-radius: 16px;
  background: radial-gradient(72% 130% at 50% 0%, rgba(255, 210, 74, 0.2), transparent 72%), rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-strong);
}
.fm-label {
  font-size: clamp(14px, 1.1vw, 21px);
  font-weight: 800;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold-soft);
}
.fm-score { display: flex; align-items: baseline; gap: 0.3vw; line-height: 1; }
.fm-score .num {
  font-size: clamp(54px, 6.8vw, 130px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fffdf3, var(--gold) 58%, #e0a511);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
}
.fm-score .unit { font-size: clamp(20px, 1.9vw, 36px); font-weight: 800; color: var(--gold-soft); }

/* 裁判长加减分（可为空，空态显示"本场无加减分"） */
.adj-block {
  display: flex;
  flex-direction: column;
  padding: 1.2vh 1.2vw;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--line);
}
.adj-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1vw;
  padding-bottom: 0.8vh;
  border-bottom: 1px dashed rgba(255, 210, 74, 0.26);
}
.adj-title {
  font-size: clamp(15px, 1.2vw, 23px);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--gold-soft);
}
.adj-total { font-size: clamp(16px, 1.35vw, 26px); font-weight: 900; font-variant-numeric: tabular-nums; }
.adj-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9vh;
  padding-top: 0.8vh;
}
.adj-item { display: flex; align-items: baseline; justify-content: space-between; gap: 1vw; text-align: left; }
.adj-name { font-size: clamp(15px, 1.2vw, 23px); font-weight: 700; color: var(--ink); }
.adj-val { font-size: clamp(17px, 1.45vw, 28px); font-weight: 900; font-variant-numeric: tabular-nums; }
.adj-empty {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(15px, 1.25vw, 24px);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-weak);
}
/* 加分=金色，扣分=浅红，与红金主题一致 */
.plus { color: var(--gold); }
.minus { color: #ff9d9d; }
.zero { color: var(--ink-dim); }

/* 赛前待场 */
.idle-wrap { text-align: center; padding: 0 2vw; }
.idle-emblem {
  width: clamp(80px, 7.6vw, 152px);
  height: clamp(80px, 7.6vw, 152px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: clamp(38px, 3.8vw, 76px);
  font-weight: 900;
  color: #2b1a00;
  background: radial-gradient(circle at 34% 28%, #fff6d8, var(--gold) 62%, var(--gold-deep));
  box-shadow: 0 0 44px rgba(255, 210, 74, 0.42);
}
.idle-kicker {
  margin-top: 2.4vh;
  font-size: clamp(16px, 1.5vw, 30px);
  font-weight: 700;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--ink-dim);
}
.idle-title {
  margin-top: 1vh;
  font-size: clamp(32px, 4.6vw, 92px);
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff8e2, var(--gold) 54%, #dfa615);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}
.idle-sub {
  margin-top: 1.8vh;
  font-size: clamp(18px, 1.65vw, 33px);
  letter-spacing: 0.18em;
  color: var(--ink-dim);
}
.idle-hint {
  margin-top: 3.4vh;
  font-size: clamp(18px, 1.6vw, 32px);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold-soft);
  animation: breathe 2.2s ease-in-out infinite;
}

/* 最后一队统计中 */
.scoring-emblem {
  display: flex;
  gap: 0.5vw;
  margin-bottom: 2.4vh;
}
.scoring-emblem span {
  width: clamp(12px, 1.1vw, 22px);
  height: clamp(12px, 1.1vw, 22px);
  border-radius: 50%;
  background: var(--gold);
  animation: bounce 1.3s ease-in-out infinite;
}
.scoring-emblem span:nth-child(2) { animation-delay: 0.16s; }
.scoring-emblem span:nth-child(3) { animation-delay: 0.32s; }
.scoring-title {
  font-size: clamp(32px, 4.6vw, 92px);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}
.scoring-team {
  margin-top: 2.4vh;
  padding: 1.2vh 2vw;
  border-radius: 12px;
  font-size: clamp(22px, 2.4vw, 48px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-strong);
}
.scoring-sub {
  margin-top: 2.4vh;
  font-size: clamp(18px, 1.6vw, 31px);
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}
.scoring-hint {
  margin-top: 3.4vh;
  font-size: clamp(17px, 1.5vw, 29px);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--gold-soft);
  animation: breathe 2s ease-in-out infinite;
}

/* 比赛结束：领奖台 */
.final-title {
  font-size: clamp(30px, 4vw, 82px);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--gold-soft);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}
.podium {
  margin-top: 4.6vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.4vw;
}
.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(176px, 15.5vw, 300px);
  height: 20vh;
  padding: 1.2vh 1vw;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.26));
  border: 1px solid var(--line);
}
.podium-item.p1 {
  height: 28vh;
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(255, 210, 74, 0.26), rgba(0, 0, 0, 0.26));
  box-shadow: 0 0 40px rgba(255, 210, 74, 0.3);
}
.podium-item.p2 { height: 24vh; }
.podium-item.p3 { height: 20vh; }
.podium-medal {
  width: clamp(46px, 3.4vw, 66px);
  height: clamp(46px, 3.4vw, 66px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: clamp(22px, 1.9vw, 38px);
  font-weight: 900;
  color: #3a2a00;
  background: linear-gradient(160deg, #fff3c9, #d9d9d9 70%);
}
.podium-item.p1 .podium-medal { background: linear-gradient(160deg, #fff6d0, var(--gold) 68%, var(--gold-deep)); }
.podium-item.p3 .podium-medal { background: linear-gradient(160deg, #ffe6cc, #cf8b4a 72%); }
.podium-name {
  margin-top: 1.2vh;
  font-size: clamp(20px, 1.9vw, 38px);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.podium-score {
  margin-top: 0.7vh;
  font-size: clamp(24px, 2.4vw, 48px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
}

/* ---- 右侧公示区 ---- */
.side { display: flex; flex-direction: column; gap: 1.1vh; min-height: 0; }

.card {
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.7vh 1.2vw;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6vw;
  padding-bottom: 1.1vh;
  margin-bottom: 1.1vh;
  border-bottom: 1px solid rgba(255, 210, 74, 0.22);
}
.card-title {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: clamp(18px, 1.5vw, 30px);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
}
.card-title::before {
  content: "";
  width: 5px;
  height: 1.1em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
}
.card-note {
  font-size: clamp(15px, 1.25vw, 25px);
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  white-space: nowrap;
}

/* 最新公布成绩卡 */
.announced-card { flex: 0 0 auto; }
.announced-team {
  font-size: clamp(19px, 1.6vw, 32px);
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announced-score {
  margin-top: 1vh;
  display: flex;
  align-items: baseline;
  gap: 0.3vw;
  line-height: 1;
}
.announced-score .num {
  font-size: clamp(44px, 4.3vw, 86px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.announced-score .unit { font-size: clamp(16px, 1.3vw, 25px); font-weight: 800; color: var(--gold-soft); }
.announced-empty {
  padding: 3vh 0;
  text-align: center;
  font-size: clamp(17px, 1.35vw, 27px);
  letter-spacing: 0.16em;
  color: var(--ink-dim);
}

/* 排名榜 */
.rank-card { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.rank-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 0.5vh;
  overflow: hidden;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 0.7vw;
  padding: 0.55vh 1vw;
  border-radius: 10px;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid transparent;
}
.rank-row.latest {
  background: linear-gradient(90deg, rgba(255, 210, 74, 0.24), rgba(255, 210, 74, 0.05));
  border-color: rgba(255, 210, 74, 0.55);
}
.rank-no {
  flex: 0 0 auto;
  width: clamp(24px, 1.9vw, 38px);
  height: clamp(24px, 1.9vw, 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: clamp(16px, 1.3vw, 26px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #3a2a00;
  background: linear-gradient(160deg, #fff3c9, #d8b25a);
}
.rank-row:nth-child(1) .rank-no { background: linear-gradient(160deg, #fff6d0, var(--gold) 70%, var(--gold-deep)); }
.rank-row:nth-child(2) .rank-no { background: linear-gradient(160deg, #ffffff, #cfcfcf 72%); }
.rank-row:nth-child(3) .rank-no { background: linear-gradient(160deg, #ffe6cc, #cf8b4a 72%); }
.rank-team {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(18px, 1.55vw, 30px);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-tag {
  flex: 0 0 auto;
  padding: 0.28em 0.75em;
  border-radius: 999px;
  font-size: clamp(15px, 1.25vw, 25px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #2b1a00;
  background: var(--gold);
}
.rank-score {
  flex: 0 0 auto;
  font-size: clamp(20px, 1.75vw, 34px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
}
.rank-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vh 0;
  text-align: center;
  font-size: clamp(17px, 1.3vw, 25px);
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  line-height: 1.8;
}
.rank-foot {
  flex: 0 0 auto;
  margin-top: 1.2vh;
  padding-top: 1.1vh;
  border-top: 1px solid rgba(255, 210, 74, 0.18);
  text-align: center;
  font-size: clamp(15px, 1.25vw, 25px);
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}

/* ============ 底部流程带 ============ */
.bottombar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4vw;
  min-height: 10vh;
  padding: 1.5vh 2vw;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.16));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.b-label {
  position: relative;
  padding-left: 1.1em;
  font-size: clamp(18px, 1.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.b-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.b-name {
  font-size: clamp(24px, 2.7vw, 52px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}
.b-note {
  font-size: clamp(19px, 1.65vw, 33px);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: var(--gold-soft);
}

@keyframes breathe { 50% { opacity: 0.42; } }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-9px); opacity: 1; }
}

/* 小屏兜底：竖屏/窄屏时改为上下布局 */
@media (max-width: 900px), (orientation: portrait) {
  body { overflow: auto; }
  .screen { height: auto; min-height: 100vh; }
  .main { grid-template-columns: 1fr; }
  .side { flex-direction: column; }
  .rank-card { min-height: 320px; }
}
