/* ==========================================================================
   校团委大学生艺术团综合事务部 · 新生见面会
   样式系统 v2 —— 白色主题 · 表情包风格
   ========================================================================== */

:root {
  /* 主色：艺术团红 + 舞台金 + 表情包配色 */
  --brand:        #ff5a5f;
  --brand-deep:   #e23b41;
  --brand-soft:   rgba(255, 90, 95, 0.10);
  --gold:         #ffb020;
  --gold-soft:    rgba(255, 176, 32, 0.12);

  /* 白色主题底色 */
  --bg:           #f4f6fa;
  --bg-2:         #ffffff;
  --surface:      #ffffff;
  --surface-2:    #f7f9fc;
  --line:         rgba(20, 25, 40, 0.09);
  --line-strong:  rgba(20, 25, 40, 0.16);

  /* 文字 */
  --text:         #171b26;
  --text-2:       #5a6376;
  --text-3:       #98a1b3;

  /* 校区标识色 */
  --nc:           #2f7ff5;
  --sh:           #17b26a;

  /* 表情包点缀色 */
  --meme-yellow:  #ffd93d;
  --meme-pink:    #ff8fb1;
  --meme-mint:    #7ee0c0;
  --meme-lilac:   #b8a4ff;

  --radius:       20px;
  --radius-sm:    12px;
  --shadow-sm:    0 2px 8px rgba(20, 25, 40, 0.06);
  --shadow:       0 12px 36px rgba(20, 25, 40, 0.10);
  --shadow-lg:    0 26px 60px rgba(20, 25, 40, 0.14);
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
               "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ==========================================================================
   1. 通用布局：16:9 舞台
   ========================================================================== */

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.slide {
  position: relative;
  width: 1280px;
  height: 720px;
  padding: 60px 72px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.slide.active { display: flex; animation: slideIn 0.42s var(--ease); }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(14px) scale(0.994); }
  to   { opacity: 1; transform: none; }
}

/* 顶部彩色装饰线 */
.slide::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg,
    var(--brand), var(--meme-yellow) 28%, var(--meme-mint) 52%,
    var(--nc) 76%, var(--meme-lilac));
}

/* 页面底纹：淡彩圆点 */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 25, 40, 0.045) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  pointer-events: none;
  mask-image: radial-gradient(120% 100% at 100% 0%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 100% at 100% 0%, #000 20%, transparent 72%);
}

/* 幻灯片内容层级要盖住底纹 */
.slide > * { position: relative; z-index: 1; }

/* ==========================================================================
   2. 文字层级
   ========================================================================== */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker::before {
  content: "";
  width: 28px; height: 3px;
  border-radius: 2px;
  background: var(--brand);
}

h1.title {
  font-size: 74px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
h2.title {
  font-size: 50px;
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
h3.sub {
  font-size: 25px;
  font-weight: 700;
  color: var(--text-2);
  margin: 0 0 24px;
}

.subtitle {
  font-size: 23px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 860px;
}

.grad {
  background: linear-gradient(100deg, var(--brand), var(--gold) 60%, var(--brand-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--text-2); }
.dim   { color: var(--text-3); }

/* 荧光笔强调（表情包常见） */
.hl {
  background: linear-gradient(180deg, transparent 58%, var(--meme-yellow) 58%, var(--meme-yellow) 92%, transparent 92%);
  padding: 0 3px;
  font-weight: 800;
}
.hl-pink {
  background: linear-gradient(180deg, transparent 58%, var(--meme-pink) 58%, var(--meme-pink) 92%, transparent 92%);
  padding: 0 3px;
  font-weight: 800;
}

/* ==========================================================================
   3. 基础组件
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s, border-color 0.22s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 17px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
}
.pill.nc { color: var(--nc); border-color: rgba(47, 127, 245, 0.35); background: rgba(47, 127, 245, 0.08); }
.pill.sh { color: var(--sh); border-color: rgba(23, 178, 106, 0.35); background: rgba(23, 178, 106, 0.08); }

/* ==========================================================================
   4. 表情包贴纸
   ========================================================================== */

.meme {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: #fff;
  border: 2px solid var(--text);
  border-radius: 18px;
  box-shadow: 3px 3px 0 var(--text);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.25s var(--ease);
  user-select: none;
}
.meme:hover { transform: rotate(0deg) scale(1.06); }
.meme .face { font-size: 38px; line-height: 1; }
.meme .cap {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.meme.big { padding: 16px 22px; }
.meme.big .face { font-size: 52px; }
.meme.big .cap { font-size: 15px; }

.meme.yellow { background: var(--meme-yellow); }
.meme.pink   { background: var(--meme-pink); }
.meme.mint   { background: var(--meme-mint); }
.meme.lilac  { background: var(--meme-lilac); }
.meme.white  { background: #fff; }

/* 漂浮装饰表情包（绝对定位在角落） */
.meme-float {
  position: absolute;
  z-index: 0;
  opacity: 0.96;
  pointer-events: none;
}

/* 表情包飘动 */
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-9px) rotate(var(--rot, 0deg)); }
}
.bob { animation: bob 3.4s ease-in-out infinite; }
.bob.d1 { animation-delay: -0.8s; }
.bob.d2 { animation-delay: -1.6s; }
.bob.d3 { animation-delay: -2.4s; }

/* 说话气泡 */
.bubble {
  position: relative;
  display: inline-block;
  padding: 13px 20px;
  background: #fff;
  border: 2px solid var(--text);
  border-radius: 20px;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--text);
}
.bubble::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -12px;
  width: 0; height: 0;
  border: 7px solid transparent;
  border-top-color: var(--text);
  border-bottom: 0;
}
.bubble::before {
  content: "";
  position: absolute;
  left: 32px;
  bottom: -8px;
  width: 0; height: 0;
  border: 5px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
  z-index: 1;
}

/* 弹幕条 */
.danmu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1.5px dashed var(--line-strong);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
}

/* 胶带贴纸效果 */
.tape {
  position: relative;
}
.tape::before {
  content: "";
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 74px; height: 24px;
  background: rgba(255, 217, 61, 0.72);
  border-left: 1px dashed rgba(0,0,0,.16);
  border-right: 1px dashed rgba(0,0,0,.16);
}

/* ==========================================================================
   5. 校区选择页
   ========================================================================== */

.picker {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 40px;
  background:
    radial-gradient(900px 620px at 50% -6%, rgba(255, 217, 61, 0.30), transparent 66%),
    radial-gradient(700px 520px at 8% 106%, rgba(126, 224, 192, 0.24), transparent 62%),
    radial-gradient(700px 520px at 94% 100%, rgba(184, 164, 255, 0.22), transparent 62%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.picker h1 {
  font-size: 46px;
  font-weight: 900;
  margin: 0;
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.22;
}
.picker .picker-sub {
  font-size: 18px;
  color: var(--text-2);
  margin-top: 14px;
  text-align: center;
  font-weight: 600;
}

.campus-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.campus-card {
  width: 320px;
  padding: 34px 28px 30px;
  border-radius: 26px;
  border: 2.5px solid var(--text);
  background: #fff;
  text-align: center;
  transition: transform 0.26s var(--ease), box-shadow 0.26s;
  box-shadow: 6px 6px 0 var(--text);
  position: relative;
}
.campus-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--text);
}
.campus-card:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--text); }

.campus-card[data-campus="南城"]   { background: linear-gradient(165deg, #fff, #eef5ff); }
.campus-card[data-campus="松山湖"] { background: linear-gradient(165deg, #fff, #eafaf2); }

.campus-icon {
  width: 84px; height: 84px;
  margin: 0 auto 18px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  font-size: 42px;
  background: var(--surface-2);
  border: 2px solid var(--text);
}
.campus-card[data-campus="南城"] .campus-icon   { background: #dbe9ff; }
.campus-card[data-campus="松山湖"] .campus-icon { background: #d4f5e4; }

.campus-name { font-size: 29px; font-weight: 900; margin-bottom: 8px; }
.campus-desc { font-size: 15px; color: var(--text-2); line-height: 1.7; font-weight: 600; }

.campus-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: var(--meme-yellow);
  border: 2px solid var(--text);
}

.picker-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.conn-dot { display: inline-flex; align-items: center; gap: 8px; }
.conn-dot i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-3);
  display: inline-block;
}
.conn-dot.on i  { background: var(--sh); box-shadow: 0 0 0 4px rgba(23, 178, 106, 0.18); }
.conn-dot.off i { background: var(--brand); box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.18); }

/* ==========================================================================
   6. 播放页外壳
   ========================================================================== */

.deck {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.hud {
  height: 58px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1.5px solid var(--line);
  backdrop-filter: blur(14px);
  z-index: 30;
}
.hud-left  { display: flex; align-items: center; gap: 14px; }
.hud-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.hud-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  border: 2px solid var(--text);
}
.hud-badge.nc { color: #12447f; background: #dbe9ff; }
.hud-badge.sh { color: #0a5c38; background: #d4f5e4; }

.hud-section { font-size: 15px; color: var(--text-2); font-weight: 700; }
.hud-progress {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
}

.peer-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  color: var(--text-2);
}
.peer-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.peer-chip.live { border-color: rgba(23, 178, 106, 0.4); background: rgba(23, 178, 106, 0.09); color: #0a5c38; }
.peer-chip.live .dot { background: var(--sh); }

.deck-stage {
  flex: 1 1 auto;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(700px 460px at 6% 4%, rgba(255, 217, 61, 0.16), transparent 66%),
    radial-gradient(700px 460px at 96% 96%, rgba(126, 224, 192, 0.16), transparent 66%),
    var(--bg);
}

.slides-wrap {
  position: absolute;
  width: 1280px;
  height: 720px;
  transform-origin: center center;
}

/* ==========================================================================
   7. 底部控制条
   ========================================================================== */

.controls {
  height: 72px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1.5px solid var(--line);
  backdrop-filter: blur(14px);
  z-index: 30;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 19px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 2px solid var(--text);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  box-shadow: 3px 3px 0 var(--text);
  transition: transform 0.12s var(--ease), box-shadow 0.12s;
  white-space: nowrap;
}
.btn:hover  { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--text); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--text); }
.btn:disabled {
  opacity: 0.4; cursor: not-allowed;
  transform: none !important;
  box-shadow: 3px 3px 0 var(--text) !important;
}

.btn.primary { background: var(--brand); color: #fff; }
.btn.gold    { background: var(--meme-yellow); color: var(--text); }
.btn.mint    { background: var(--meme-mint); color: var(--text); }

.btn.ghost {
  background: transparent;
  box-shadow: none;
  border-color: var(--line-strong);
  color: var(--text-2);
}
.btn.ghost:hover { background: var(--surface-2); box-shadow: none; transform: none; }

.ctrl-spacer { margin-left: auto; }

/* ==========================================================================
   8. 环节：自我介绍
   ========================================================================== */

.intro-tips {
  flex: 1;                   /* 填满剩余版面，避免大片留白 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  margin: 6px 0 18px;
  padding: 32px 40px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #fff8f8, #fff);
  border: var(--bd) solid var(--brand);
  box-shadow: 6px 6px 0 var(--brand);
}
.tips-head {
  font-size: 22px;
  font-weight: 900;
  color: var(--brand-deep);
  margin-bottom: 26px;
  letter-spacing: .01em;
}
.tips-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tip-item {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 34px;
  font-weight: 900;
  color: var(--text);
  background: #fff;
  border: 3px solid var(--text);
  border-radius: 22px;
  padding: 22px 30px;
  line-height: 1.2;
  box-shadow: 5px 5px 0 var(--text);
}
.tip-item b {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 提示点 ≥3 条时自动缩小，保证不溢出 */
.intro-tips.dense { padding: 26px 34px; }
.intro-tips.dense .tips-head { font-size: 19px; margin-bottom: 18px; }
.intro-tips.dense .tips-body { gap: 13px; }
.intro-tips.dense .tip-item { font-size: 26px; padding: 16px 24px; border-radius: 18px; }
.intro-tips.dense .tip-item b { width: 42px; height: 42px; font-size: 21px; }

/* 提示点 ≥5 条时再缩一档 */
.intro-tips.dense.more .tip-item { font-size: 21px; padding: 12px 20px; }
.intro-tips.dense.more .tip-item b { width: 34px; height: 34px; font-size: 17px; }
.intro-tips.dense.more .tips-head { font-size: 17px; margin-bottom: 14px; }
.intro-tips.dense.more .tips-body { gap: 10px; }

/* 提示点 ≥7 条：横向排列，避免纵向堆叠溢出 */
.intro-tips.dense.more.wide .tips-body { flex-direction: row; flex-wrap: wrap; }
.intro-tips.dense.more.wide .tip-item { font-size: 19px; padding: 10px 18px; }

.intro-foot {
  flex: 0 0 auto;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
}

/* 「接下来」提示条：告诉新同学自我介绍之后要干嘛 */
.next-up {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: var(--r-lg);
  background: #fff8ec;
  border: var(--bd) solid var(--gold, #f0b429);
  box-shadow: 4px 4px 0 var(--gold, #f0b429);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.next-up.clickable { cursor: pointer; }
.next-up.clickable:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--gold, #f0b429);
}
.next-up.clickable:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--gold, #f0b429); }
.next-up .nu-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #fff;
  background: var(--gold, #f0b429);
  border-radius: 999px;
  padding: 4px 12px;
}
.next-up .nu-title {
  flex: 0 0 auto;
  font-size: 21px;
  font-weight: 900;
  color: var(--text);
}
.next-up .nu-desc {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.4;
}
.next-up .nu-go {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-3);
  white-space: nowrap;
}
/* 提示点很多时压缩「接下来」，保证整页不溢出 */
.intro-tips.dense ~ .next-up { margin-top: 10px; padding: 9px 15px; }
.intro-tips.dense ~ .next-up .nu-title { font-size: 18px; }
.intro-tips.dense ~ .next-up .nu-desc { font-size: 13px; }
kbd.k {
  padding: 2px 8px;
  font-size: 12px;
  min-width: auto;
}

/* ==========================================================================
   9. 环节：击鼓传花
   ========================================================================== */

.drum-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
}

.drum-visual {
  position: relative;
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
}

.drum-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--line-strong);
}
.drum-ring.r2 { inset: 24px; border-width: 3px; border-style: dashed; opacity: 0.65; }
.drum-ring.r3 { inset: 48px; border-width: 2px; opacity: 0.4; }

.drum-core {
  width: 122px; height: 122px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 54px;
  background: #fff;
  border: 3px solid var(--text);
  box-shadow: 4px 4px 0 var(--text);
  transition: transform 0.2s;
}

.drum-visual.spinning .drum-ring { animation: spin 1.5s linear infinite; }
.drum-visual.spinning .drum-ring.r2 { animation: spin 2.2s linear infinite reverse; }
.drum-visual.spinning .drum-ring.r3 { animation: spin 3s linear infinite; }
.drum-visual.spinning .drum-core { animation: pulse 0.42s ease-in-out infinite alternate; }

@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse { to { transform: scale(1.09); } }

.drum-visual.settled .drum-core {
  background: var(--meme-yellow);
  border-color: var(--text);
  box-shadow: 6px 6px 0 var(--text);
}

.drum-timer {
  font-size: 76px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.drum-timer.warn { color: var(--brand); animation: shake 0.3s infinite; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.drum-result {
  font-size: 38px;
  font-weight: 900;
  min-height: 54px;
  color: var(--text);
}
.drum-result .who {
  background: var(--meme-yellow);
  padding: 2px 12px;
  border-radius: 10px;
  border: 2px solid var(--text);
  display: inline-block;
}

.drum-hint {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 800px;
  font-weight: 600;
}

.drum-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.audio-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1.5px dashed var(--line-strong);
  font-size: 14px;
  color: var(--text-2);
  font-weight: 600;
}
.audio-bar input {
  flex: 1;
  min-width: 260px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.audio-bar input:focus { outline: none; border-color: var(--brand); }

/* ==========================================================================
   10. 覆盖层
   ========================================================================== */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 27, 38, 0.42);
  backdrop-filter: blur(7px);
  display: none;
  place-items: center;
  z-index: 100;
  padding: 40px;
}
.overlay.open { display: grid; }

.panel {
  width: 100%;
  max-width: 900px;
  max-height: 84vh;
  overflow-y: auto;
  background: #fff;
  border: 2.5px solid var(--text);
  border-radius: 26px;
  padding: 32px 36px;
  box-shadow: 8px 8px 0 var(--text);
}
.panel h2 { font-size: 29px; margin: 0 0 8px; font-weight: 900; }
.panel .panel-sub { color: var(--text-2); font-size: 15px; margin-bottom: 24px; font-weight: 600; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-2);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.field .hint { font-size: 13px; color: var(--text-3); margin-top: 7px; line-height: 1.65; }

.panel-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1.5px solid var(--line);
}

.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; }
.keys .row { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
kbd {
  display: inline-block;
  min-width: 42px;
  text-align: center;
  padding: 6px 12px;
  border-radius: 9px;
  background: #fff;
  border: 2px solid var(--text);
  border-bottom-width: 3px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* ==========================================================================
   11. 提示气泡
   ========================================================================== */

/* ---- 右下角：对方校区进度卡片 ---- */

.peer-card {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 232px;
  pointer-events: none;
}

.peer-card-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid var(--text);
  background: #fff;
  box-shadow: 4px 4px 0 var(--text);
  animation: peerIn 0.35s var(--ease);
}
.peer-card-item.offline {
  border-style: dashed;
  border-color: var(--line-strong);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.75);
  opacity: 0.75;
}

@keyframes peerIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.pc-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.pc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex: 0 0 auto;
}
.pc-dot.live { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06); }

.pc-name {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.pc-idx {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 8px;
}

.pc-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 6px;
}
.pc-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s var(--ease);
}

.pc-ago {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-align: right;
}

.pc-off {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
}

/* 全屏时把卡片稍微放大一点，投影上也看得清 */
:fullscreen .peer-card { width: 252px; }
:-webkit-full-screen .peer-card { width: 252px; }

.toast-wrap {
  position: fixed;
  left: 26px;
  bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
  pointer-events: none;
}
.toast {
  padding: 14px 20px;
  border-radius: 16px;
  background: #fff;
  border: 2.5px solid var(--text);
  box-shadow: 4px 4px 0 var(--text);
  font-size: 15px;
  font-weight: 700;
  animation: toastIn 0.3s var(--ease);
  max-width: 420px;
}
.toast.nc   { background: #eef5ff; }
.toast.sh   { background: #eafaf2; }
.toast.warn { background: #fff6e0; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

/* 连接状态条 */
.link-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--sh);
  z-index: 200;
  transition: background 0.3s;
}
.link-bar.off { background: var(--brand); animation: blink 1.1s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

body.fullscreen-idle { cursor: none; }

/* ==========================================================================
   12. 结束页
   ========================================================================== */

.center-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}
.big-emoji { font-size: 84px; line-height: 1; }

/* ==========================================================================
   13. 数字炸弹
   ========================================================================== */

.bomb-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 26px;
  align-items: start;
}

.bomb-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(165deg, #fff, #fff9e8);
  border: 2px solid var(--text);
  box-shadow: 4px 4px 0 var(--text);
  min-height: 320px;
}
.bomb-range {
  font-size: 30px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.bomb-num {
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  transition: color .2s, transform .2s;
}
.bomb-num.set  { color: var(--nc); font-size: 52px; }
.bomb-num.boom { color: var(--brand); animation: boomPop .5s var(--ease); }
@keyframes boomPop {
  0% { transform: scale(.6); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.bomb-status {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-2);
  text-align: center;
  line-height: 1.6;
}

.bomb-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bomb-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bomb-ctrl label { font-size: 14px; font-weight: 800; color: var(--text-2); }

/* 管理员扫码录入区（大屏侧）：二维码 + 说明 + 连接状态 */
.bomb-admin {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 2px solid var(--text);
  border-radius: 18px;
  background: linear-gradient(165deg, #fff, #eef5ff);
  box-shadow: 4px 4px 0 var(--text);
}
.ba-qr {
  flex: none;
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.ba-qr table { border-collapse: collapse; }
.ba-qr td { padding: 0; background: #000; }
.ba-qr td.l { background: #fff; }
.ba-qr .qr-fallback { font-size: 11px; color: var(--text-3); text-align: center; padding: 6px; line-height: 1.5; }
.ba-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ba-title { font-size: 18px; font-weight: 900; }
.ba-url {
  font-size: 12px; font-weight: 700; color: var(--text-3);
  word-break: break-all; line-height: 1.4;
}
.ba-hint { font-size: 13px; font-weight: 700; color: var(--text-2); line-height: 1.55; }
.ba-state {
  font-size: 13px; font-weight: 800; color: var(--text-3);
  padding: 4px 10px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line-strong);
  align-self: flex-start;
}
.ba-state.on { color: #0a7d4f; border-color: #7ee0c0; background: #eafff6; }
.ba-state.off { color: var(--text-3); }
.bomb-in {
  width: 96px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 2px solid var(--line-strong);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  background: #fff;
}
.bomb-in.wide { flex: 1; width: auto; }
.bomb-in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.bomb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bomb-history-label { font-size: 14px; font-weight: 800; color: var(--text-2); margin-top: 4px; }
.bomb-history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
  padding: 4px;
}
.bomb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line-strong);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.bomb-chip i { font-size: 11px; font-style: normal; color: var(--text-3); font-weight: 700; }
.bomb-chip.hit {
  background: var(--brand);
  color: #fff;
  border-color: var(--text);
  box-shadow: 2px 2px 0 var(--text);
}
.bomb-chip.hit i { color: rgba(255,255,255,.8); }

/* ==========================================================================
   14. 惩罚抽签
   ========================================================================== */

.penalty-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: start;
}
.penalty-left { display: flex; flex-direction: column; gap: 14px; }
.penalty-result {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
  border: 2.5px solid var(--text);
  background: linear-gradient(165deg, #fff, #fdf2ff);
  box-shadow: 5px 5px 0 var(--text);
}
.penalty-idle { font-size: 17px; font-weight: 700; color: var(--text-3); text-align: center; }
.penalty-item {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--text);
}
.penalty-roll {
  font-size: 25px;
  font-weight: 900;
  text-align: center;
  color: var(--brand);
  opacity: .75;
}
.penalty-actions { display: flex; gap: 10px; }
.penalty-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  font-size: 14px;
}
.penalty-hrow {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  font-weight: 700;
}
.penalty-hrow .dim { font-size: 12px; flex: 0 0 auto; }

/* ==========================================================================
   15. 分组
   ========================================================================== */

.group-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}
.group-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.qr-box {
  width: 240px; height: 240px;
  display: grid;
  place-items: center;
  padding: 10px;
  background: #fff;
  border: 2.5px solid var(--text);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--text);
}
.qr-table { border-collapse: collapse; }
.qr-table td { background: #171b26; }
.qr-table td.l { background: #fff; }
.qr-fallback {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.7;
  color: var(--text-2);
  word-break: break-all;
}
.qr-url {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 700;
  word-break: break-all;
  text-align: center;
  max-width: 260px;
}
.group-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.group-right { display: flex; flex-direction: column; }
.group-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.grp-col {
  border: 2.5px solid;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  max-height: 420px;
}
.grp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 2px solid var(--line);
}
.grp-name { font-size: 19px; font-weight: 900; }
.grp-count { font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.grp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px;
  overflow-y: auto;
  align-content: flex-start;
}
.grp-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1.5px solid var(--line-strong);
  font-size: 14px;
  font-weight: 700;
}

/* 积分 */
.score-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.score-card {
  border: 2.5px solid;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  text-align: center;
}
.sc-name { font-size: 17px; font-weight: 900; margin-bottom: 4px; }
.sc-val {
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.sc-btns { display: flex; gap: 8px; justify-content: center; }
.sc-btns .btn { padding: 8px 14px; font-size: 14px; }

/* 最低分提示 */
.loser-box { margin-top: 10px; }
.loser-card {
  padding: 16px 20px;
  border-radius: 18px;
  border: 2.5px dashed var(--brand);
  background: linear-gradient(165deg, #fff, #ffecec);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lc-label { font-size: 14px; font-weight: 800; color: var(--text-2); }
.lc-names { font-size: 22px; font-weight: 900; }
.lc-score { font-size: 22px; font-weight: 900; color: var(--brand); font-variant-numeric: tabular-nums; }
.lc-hint { font-size: 13px; color: var(--text-3); font-weight: 700; margin-left: auto; }

/* ==========================================================================
   16. 分组游戏
   ========================================================================== */

.games-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: start;
}
.game-panel {
  border: 2px solid var(--line-strong);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 100%;
  overflow-y: auto;
}
.gp-head { display: flex; align-items: center; justify-content: space-between; }
.gp-title { font-size: 18px; font-weight: 900; }
.gp-timer, .gp-round {
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 2px solid var(--line);
}
.gp-timer.warn { color: var(--brand); border-color: var(--brand); animation: shake .3s infinite; }

.draw-word {
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 2px dashed var(--line-strong);
  color: var(--text-3);
}
.draw-word.live {
  background: var(--meme-yellow);
  border-style: solid;
  border-color: var(--text);
  color: var(--text);
  box-shadow: 3px 3px 0 var(--text);
}
.draw-word.done { background: #eafaf2; border-color: var(--sh); color: #0a5c38; }

.draw-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 300;
  background: #fff;
  border: 2px solid var(--text);
  border-radius: 14px;
  cursor: crosshair;
  touch-action: none;
}
.gp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gp-actions .btn { padding: 8px 14px; font-size: 14px; }
.gp-scores {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
}
.gp-scores .btn { padding: 7px 12px; font-size: 13px; }

/* 抢椅子 */
.chair-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5 / 1;
  max-height: 190px;
  display: grid;
  place-items: center;
}
.chair-ring { position: absolute; inset: 0; }
.chair-seat {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 20px;
  line-height: 1;
  animation: bob 2.6s ease-in-out infinite;
}
.chair-center {
  text-align: center;
  z-index: 1;
}
.chair-count {
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.chair-label { font-size: 12px; font-weight: 800; color: var(--text-3); }
.chair-timer {
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  font-variant-numeric: tabular-nums;
  min-height: 38px;
}
.chair-timer.warn { color: var(--brand); }
.chair-label-sm {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-3);
  margin-top: 2px;
}
.chair-stage, .chair-out {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 30px;
}
.stage-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--text);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stage-chip:hover { background: var(--surface-2); }
.stage-chip.auto { border-style: dashed; }
.stage-chip i {
  font-style: normal;
  font-size: 10px;
  color: var(--text-3);
  font-weight: 700;
}
.stage-chip.out {
  text-decoration: line-through;
  opacity: .45;
  cursor: default;
}
.out-chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: #ffecec;
  border: 2px solid var(--brand);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 800;
  text-decoration: line-through;
}

/* ==========================================================================
   17. 终局惩罚 · 閃身步
   ========================================================================== */

.finale-target {
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-radius: 16px;
  background: #ffecec;
  border: 2px solid var(--brand);
  margin-bottom: 14px;
}
.finale-picked {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 74px;
  align-items: center;
}
.move-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid var(--line-strong);
  font-size: 15px;
  font-weight: 800;
}
.move-chip i {
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  color: var(--text-3);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 1px 7px;
}
.move-chip.roll { opacity: .7; }
.move-chip.hit {
  background: var(--meme-yellow);
  border-color: var(--text);
  box-shadow: 3px 3px 0 var(--text);
}
.move-chip.hit i { background: #fff; color: var(--text); }
.move-chip.big { font-size: 22px; padding: 14px 22px; }

.finale-full {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 2px dashed var(--line-strong);
  overflow-y: auto;
  max-height: 200px;
  align-content: flex-start;
}

/* 王者在等 */

/* 表演 / 才艺名单卡片 */
.perform-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--line-strong);
  font-size: 19px;
  font-weight: 800;
}
.perform-card .src {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 700;
  margin-top: 3px;
}

/* 名单网格：多列自适应 + 内容少时竖向居中，避免下方留一大片白。
   用 safe center 而不是 center —— 人多溢出时若居中，
   顶部那部分会被推到滚动区外、滚不回去。 */
.name-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  align-content: safe center;
  overflow-y: auto;
  min-height: 0;
}

/* 分组环节：两栏并排，每栏 = 自己的二维码 + 自己的名单。
   左边的人扫左栏，右边的人扫右栏，跟现场座位方向一致。 */
.group-qrs {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gq-col {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 2.5px solid var(--text);
  border-radius: 20px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--text);
  overflow: hidden;
}
.gq-top {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 18px 12px;
  border-bottom: 2px solid var(--line);
}
.gq-head {
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gq-qr {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.gq-qr table { border-collapse: collapse; }
.gq-qr td { padding: 0; background: #000; }
.gq-qr td.l { background: #fff; }
.gq-qr .qr-fallback { font-size: 11px; color: var(--text-3); text-align: center; padding: 6px; line-height: 1.5; }
.gq-url {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  word-break: break-all;
  text-align: center;
  line-height: 1.4;
}
.gq-count { font-size: 15px; font-weight: 900; }
/* 名单占满这一栏剩下的高度，人多时自己滚 */
.gq-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.group-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* 分组环节：两组名单并排，占满剩余高度 */
.group-cols {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 14px;
  overflow-y: auto;
  align-content: start;
}
.games-showcase {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-content: center;
}
.game-show-card {
  background: linear-gradient(165deg, #fff, #f7faff);
  border: 2px solid var(--text);
  border-radius: 20px;
  box-shadow: 5px 5px 0 var(--text);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.game-show-card .gsc-icon { font-size: 44px; line-height: 1; }
.game-show-card .gsc-name { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.game-show-card .gsc-desc { font-size: 16px; font-weight: 700; color: var(--text-2); line-height: 1.6; }
.perform-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.perform-body .name-grid {
  flex: 0 1 auto;
  max-height: 100%;
}

/* 才艺表演：只报环节，不展示谁上台（现场报名，屏幕不用点名） */
.talent-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* 空状态那句提示横跨整行，不要被挤在一格里 */
.name-grid > .dim {
  grid-column: 1 / -1;
  text-align: center;
}

/* 待定占位 */
.pending-box {
  padding: 34px;
  border-radius: 20px;
  border: 2.5px dashed var(--line-strong);
  background: var(--surface-2);
  text-align: center;
}
.pending-box .pb-icon { font-size: 54px; margin-bottom: 12px; }
.pending-box .pb-title { font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.pending-box .pb-note { font-size: 15px; color: var(--text-2); font-weight: 600; line-height: 1.7; }

/* ==========================================================================
   18. 今天的流程（agenda）
   目标：一屏放下，不出现滚动条
   ========================================================================== */

/* 流程网格：填满剩余高度，行高均分，绝不滚动 */
#agendaGrid {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 12px;
  margin-top: 10px;
  grid-auto-rows: 1fr;      /* 所有行等高，均匀铺满 */
  align-content: stretch;
  overflow: hidden;         /* 不要滚动条 */
  grid-template-columns: repeat(3, 1fr);   /* 默认 3 列 */
}
/* 环节多时自动加列，保证一屏放下（列数由 JS 按数量设置） */
#agendaGrid.cols-4 { grid-template-columns: repeat(4, 1fr); }
#agendaGrid.cols-5 { grid-template-columns: repeat(5, 1fr); }
#agendaGrid.cols-6 { grid-template-columns: repeat(6, 1fr); }
/* 4 列以上空间变小，进一步压缩文字 */
#agendaGrid.cols-4 .ag-title,
#agendaGrid.cols-5 .ag-title,
#agendaGrid.cols-6 .ag-title { font-size: 17px; }
#agendaGrid.cols-4 .ag-desc,
#agendaGrid.cols-5 .ag-desc,
#agendaGrid.cols-6 .ag-desc { font-size: 13px; line-height: 1.4; }
#agendaGrid.cols-4 .agenda-card,
#agendaGrid.cols-5 .agenda-card,
#agendaGrid.cols-6 .agenda-card { padding: 12px 13px; }
#agendaGrid.cols-5 .ag-speaker,
#agendaGrid.cols-6 .ag-speaker { font-size: 10px; padding: 1px 7px; }

.agenda-card {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* 内容在卡片内垂直居中 */
  gap: 3px;
  padding: 11px 14px;
  min-height: 0;
  overflow: hidden;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.agenda-card.clickable { cursor: pointer; }
.agenda-card.clickable:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--text);
  border-color: var(--text);
}
.agenda-card.clickable:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--text); }

.ag-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}
.ag-no {
  flex: 0 0 auto;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.ag-time {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.ag-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}
.ag-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.4;
}
.ag-speaker {
  margin-top: 1px;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-deep);
  background: #ffecec;
  border-radius: 999px;
  padding: 2px 9px;
  align-self: flex-start;
}

@media print {
  .hud, .controls, .overlay, .meme-float { display: none !important; }
}
