/* show.css — "Giờ ra chơi" (6 trò) + 3 show loại trực tiếp (Rung chuông vàng · Oẳn tù tì · Ô chữ) — G3-T4. Đi với /sdk/show.js.
   Khung 1080×1920: bảng treo VÙNG TRẦN + CỘT THẺ (y --show-top → ≤ --show-bottom: QT 980, PGD 1040), giữa cảnh (bàn thầy / MC + ghế) luôn lộ.
   Ra chơi = bảng phấn như Lớp đố + dải ruy-băng san hô "Giờ ra chơi". Show = sân khấu sơn mài (QT) / tím đêm (PGD) viền vàng + dải bóng đèn nháy.
   Chữ chính ≥ 40 px, nhãn phụ ≥ 30 px. Màu CHỈ qua token (hex chỉ trong :root và [data-room="pgd"]). Không dùng "…" cắt chữ. */
:root {
  --show-top: calc(var(--class-top, 110px) + 10px);
  --show-bottom: 980px;            /* QT: cột thẻ ≤ y 980 */
  --show-board: #234F41;           /* bảng phấn (ra chơi) */
  --show-board-2: #1A3D32;
  --show-frame: #7A5233;
  --show-frame-edge: #C9955A;
  --show-stage: #7A1D22;           /* sân khấu show (sơn mài đỏ) */
  --show-stage-2: #3A0A0E;
  --show-ink: #F7F1DF;
  --show-ink-2: rgba(247, 241, 223, .78);
  --show-ink-3: rgba(247, 241, 223, .58);
  --show-line: rgba(247, 241, 223, .22);
  --show-dark: rgba(0, 0, 0, .3);
  --show-glass: rgba(255, 255, 255, .08);
  --show-recess: #FF8A65;          /* ruy-băng giờ ra chơi */
  --show-on-recess: #2A1006;
  --show-gold: #FFD75E;
  --show-gold-deep: #E0A100;
  --show-gold-bg: rgba(255, 215, 94, .2);
  --show-gold-glow: rgba(255, 215, 94, .55);
  --show-on-gold: #1E1404;
  --show-win: #8FE3A3;             /* thắng / đúng / còn trên sân */
  --show-win-bg: rgba(143, 227, 163, .18);
  --show-lose: #FF6B6B;            /* thua / đứng dậy */
  --show-lose-bg: rgba(255, 107, 107, .16);
  --show-tie: #FFD75E;             /* hoà = vàng (như đứng giá — không bao giờ xám) */
  --show-heart: #FF4D6D;
  --show-heart-2: #FF9FB2;
  --show-a: #4FA3E0;               /* phe A */
  --show-b: #F08A4B;               /* phe B */
  --show-hard: #F08A4B;            /* mức Khó */
  --show-meo: #C792EA;             /* đố mẹo */
  --show-font: var(--cards-font, 'Be Vietnam Pro', system-ui, sans-serif);
  --show-font-num: var(--cards-font-num, 'JetBrains Mono', ui-monospace, monospace);
  --show-radius: 22px;
}
.show-root[data-room="pgd"] {
  --show-bottom: 1040px;           /* PGD: cột thẻ ≤ y 1040 */
  --show-board: #13213A; --show-board-2: #0E1829; --show-frame: #2A3347; --show-frame-edge: #E3B23C;
  --show-stage: #24185A; --show-stage-2: #0D0A24;
  --show-ink: #F2F4F8; --show-ink-2: rgba(242, 244, 248, .78); --show-ink-3: rgba(242, 244, 248, .56); --show-line: rgba(242, 244, 248, .18);
}

/* ---------- gốc ---------- */
.show-root { position: absolute; left: var(--cards-side, 100px); right: var(--cards-side, 100px); top: var(--show-top); z-index: 29; display: none;
  font-family: var(--show-font); color: var(--show-ink); pointer-events: none; }
.show-root.show { display: block; }
.show-root .num { font-family: var(--show-font-num); font-variant-numeric: tabular-nums; }
.show-panel { position: relative; box-sizing: border-box; max-height: calc(var(--show-bottom) - var(--show-top)); overflow: hidden; display: flex; flex-direction: column; gap: 12px;
  padding: 16px 26px 22px; border-radius: var(--show-radius);
  background: radial-gradient(120% 90% at 50% 0%, var(--show-board), var(--show-board-2) 80%);
  border: 10px solid var(--show-frame); outline: 3px solid var(--show-frame-edge); outline-offset: -3px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .55), inset 0 0 60px rgba(0, 0, 0, .35); animation: showIn .5s cubic-bezier(.2, 1.1, .4, 1) both; }
.show-panel > * { flex-shrink: 0; } /* không cho khối nào co lại đè lên nhau — nội dung được đo để vừa ≤ --show-bottom */
.show-root[data-mode="show"] .show-panel { background: radial-gradient(130% 100% at 50% 0%, var(--show-stage), var(--show-stage-2) 78%); border-color: var(--show-gold-deep); outline-color: var(--show-gold);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .6), 0 0 40px var(--show-gold-glow), inset 0 0 70px rgba(0, 0, 0, .4); padding-top: 22px; }
@keyframes showIn { from { opacity: 0; transform: translateY(-30px) scale(.98); } to { opacity: 1; transform: none; } }

/* dải bóng đèn sân khấu (chỉ show): 2 lớp lệch nhau nháy so le = đèn chạy */
.show-lights { display: none; position: absolute; left: 10px; right: 10px; top: 2px; height: 16px; pointer-events: none; }
.show-root[data-mode="show"] .show-lights { display: block; }
.show-lights::before, .show-lights::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 8px 8px, var(--show-gold) 4px, transparent 5.5px) 0 0 / 32px 16px repeat-x;
  filter: drop-shadow(0 0 6px var(--show-gold-glow)); animation: showBulb 1s steps(1) infinite; }
.show-lights::after { background-position: 16px 0; animation-delay: .5s; }
@keyframes showBulb { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- đầu bảng ---------- */
.show-head { display: flex; align-items: center; gap: 14px; min-height: 60px; }
.show-badge { flex: none; font-size: 30px; font-weight: 800; letter-spacing: .5px; padding: 4px 16px; border-radius: 999px; white-space: nowrap; color: var(--show-on-recess); background: var(--show-recess);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .3); transform: rotate(-2deg); }
.show-root[data-mode="show"] .show-badge { display: none; } /* show: dải đèn + viền vàng đã nói "show lớn", nhường chỗ cho tên show */
.show-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 42px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.show-root[data-mode="show"] .show-title { color: var(--show-gold); text-shadow: 0 0 18px var(--show-gold-glow); }
.show-title .ico-emo { font-size: 46px; line-height: 1; }
.show-stat.meta { font-size: 34px; font-weight: 800; color: var(--show-gold); border-color: var(--show-gold); white-space: nowrap; }
.show-stat.meta small { font-size: 30px; font-weight: 600; color: var(--show-ink-3); }
.show-stat.meta:empty { display: none; }
.show-clock { flex: none; min-width: 100px; text-align: center; font-size: 48px; font-weight: 800; line-height: 1; padding: 6px 10px; border-radius: 16px; background: var(--show-dark); border: 2px solid var(--show-line); }
.show-clock.low { color: var(--show-lose); border-color: var(--show-lose); animation: showPulse .6s ease-in-out infinite; }
.show-clock:empty { display: none; }
@keyframes showPulse { 50% { transform: scale(1.07); } }

/* số trên sân / đứng dậy */
.show-stats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.show-stat { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 999px; background: var(--show-dark); border: 2px solid var(--show-line); font-size: 32px; font-weight: 600; color: var(--show-ink-2); }
.show-stat i { font-style: normal; font-size: 32px; }
.show-stat b { font-size: 40px; font-weight: 800; }
.show-stat.alive b { color: var(--show-win); }
.show-stat.out b { color: var(--show-lose); }
.bump { animation: showBump .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes showBump { 40% { transform: scale(1.25); } }

/* ---------- thân ---------- */
.show-body { display: flex; flex-direction: column; gap: 14px; }
.show-line { margin: 0; text-align: center; font-size: 34px; font-weight: 600; color: var(--show-ink-2); line-height: 1.3; }
.show-line.big { font-size: 40px; font-weight: 800; color: var(--show-ink); }
.show-line.good { color: var(--show-win); }
.show-line.bad { color: var(--show-lose); }
.show-line.gold { color: var(--show-gold); text-shadow: 0 0 16px var(--show-gold-glow); }
.show-line.lock { font-size: 36px; font-weight: 800; color: var(--show-gold); }
.show-line small { font-size: 30px; font-weight: 600; color: var(--show-ink-2); }
.show-line b { color: var(--show-gold); }
.show-foot { margin: 0; text-align: center; font-size: 30px; font-weight: 500; color: var(--show-ink-3); }
.show-disc { font-size: 30px; }
.show-hint { margin: 0; font-size: 40px; line-height: 1.3; font-weight: 600; color: var(--show-ink); }

/* ảnh có dự phòng emoji: kích cỡ qua --s */
.show-pic { --s: 120px; position: relative; flex: none; display: inline-grid; place-items: center; width: var(--s); height: var(--s); }
.show-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.show-pic .emo { font-size: calc(var(--s) * .72); line-height: 1; }
.show-pic.ico { --s: 60px; }
.show-pic.hand { --s: 118px; }
.show-pic.hand.big { --s: 168px; }

/* nghe đọc đề */
.show-ear { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 32px; font-weight: 600; color: var(--show-ink-2); }
.show-ear .ic { font-size: 44px; line-height: 1; }
.show-ear .bars { display: inline-flex; align-items: flex-end; gap: 5px; height: 40px; }
.show-ear .bars i { width: 8px; border-radius: 4px; background: var(--show-gold); height: 40%; animation: showBar .9s ease-in-out infinite; }
.show-ear .bars i:nth-child(2) { animation-delay: .15s; } .show-ear .bars i:nth-child(3) { animation-delay: .3s; } .show-ear .bars i:nth-child(4) { animation-delay: .45s; }
@keyframes showBar { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* chip người (thắng / vinh danh) */
.show-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.show-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 16px 4px 6px; border-radius: 999px; background: var(--show-dark); border: 2px solid var(--show-gold); font-size: 32px; font-weight: 700; white-space: nowrap; }
.show-chip.more { padding: 4px 16px; border-style: dashed; color: var(--show-ink-2); }
.show-chip.new { animation: showChip .5s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes showChip { from { opacity: 0; transform: translateY(14px) scale(.85); } to { opacity: 1; transform: none; } }
.show-root .cards-av, .show-root .av { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid var(--show-gold); background: var(--show-glass);
  display: grid; place-items: center; font-size: 30px; font-weight: 800; box-sizing: border-box; }
.show-root .cards-av img, .show-root .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-root .cards-av.cards-av-art { border-color: transparent; background: transparent; }
.show-root .cards-av.lg, .show-root .av.lg { width: 100px; height: 100px; font-size: 44px; border-width: 4px; }
.show-root .cards-av.xl, .show-root .av.xl { width: 136px; height: 136px; font-size: 64px; border-width: 5px; box-shadow: 0 0 26px var(--show-gold-glow); }

/* ---------- RA CHƠI · oẳn tù tì (cũng dùng cho show Oẳn tù tì) ---------- */
.rc-rps { display: flex; align-items: center; gap: 22px; }
.rps-host { flex: none; width: 236px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rps-host .lbl { font-size: 32px; font-weight: 700; color: var(--show-ink-2); white-space: nowrap; }
.rps-host .name { font-size: 44px; font-weight: 900; letter-spacing: 2px; color: var(--show-gold); text-shadow: 0 0 16px var(--show-gold-glow); }
.rps-card { position: relative; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 12px; border-radius: 20px;
  background: var(--show-dark); border: 3px solid var(--show-line); }
.rps-card.host { width: 220px; height: 220px; justify-content: center; border-color: var(--show-gold); box-shadow: 0 0 30px var(--show-gold-glow), inset 0 0 30px rgba(0, 0, 0, .35); }
.rps-card.host .q { position: absolute; right: 14px; top: 2px; font-size: 76px; font-weight: 900; color: var(--show-gold); text-shadow: 0 4px 0 rgba(0, 0, 0, .4); animation: showPulse 1s ease-in-out infinite; }
.rps-card.pump .show-pic { animation: showPump .42s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes showPump { from { transform: translateY(14px) rotate(-6deg); } to { transform: translateY(-16px) rotate(4deg); } }
.rps-card.shown { animation: showReveal .6s cubic-bezier(.2, 1.5, .4, 1) both; background: var(--show-gold-bg); }
@keyframes showReveal { 0% { transform: rotateY(90deg) scale(.7); } 70% { transform: rotateY(-10deg) scale(1.08); } 100% { transform: none; } }
.rps-opts { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rps-card .name { font-size: 38px; font-weight: 800; }
.rps-card .tag { font-size: 30px; font-weight: 800; padding: 2px 12px; border-radius: 10px; text-align: center; line-height: 1.2; }
.rps-card .cnt { font-size: 30px; font-weight: 700; color: var(--show-ink-2); }
.rps-card.win { border-color: var(--show-win); background: var(--show-win-bg); animation: showReveal .6s both; }
.rps-card.win .tag { background: var(--show-win); color: var(--show-on-gold); }
.rps-card.tie { border-color: var(--show-tie); }
.rps-card.tie .tag { background: var(--show-tie); color: var(--show-on-gold); }
.rps-card.lose { border-color: var(--show-lose); opacity: .62; }
.rps-card.lose .tag { background: var(--show-lose-bg); color: var(--show-lose); }

/* ---------- RA CHƠI · kiểm tra miệng ---------- */
.rc-callup { display: flex; align-items: center; gap: 24px; }
.callup-who { flex: none; width: 230px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.callup-who .cards-av, .callup-who .av { animation: showSpot 1.8s ease-in-out infinite; }
@keyframes showSpot { 50% { box-shadow: 0 0 40px var(--show-gold-glow), 0 0 0 8px var(--show-gold-bg); } }
.callup-who .nm { font-size: 40px; font-weight: 800; color: var(--show-gold); line-height: 1.15; word-break: break-word; }
.callup-q { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.callup-q .lbl { font-size: 34px; font-weight: 800; color: var(--show-recess); }
.show-letters { display: flex; flex-wrap: wrap; gap: 8px; }
.show-letter { min-width: 52px; height: 58px; box-sizing: border-box; padding: 0 12px; display: grid; place-items: center; font-size: 40px; font-weight: 800; border-radius: 12px;
  color: var(--show-on-gold); background: var(--show-gold); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); transform: rotate(calc(var(--r, 0) * 1deg)); }
.show-math { display: flex; align-items: baseline; gap: 18px; font-size: 80px; font-weight: 800; line-height: 1.1; flex-wrap: wrap; }
.show-math .q { color: var(--show-gold); }
.show-math .ans { color: var(--show-win); animation: showReveal .5s both; }
.show-answer { display: flex; align-items: baseline; justify-content: center; gap: 14px; padding: 8px 16px; border-radius: 12px; background: var(--show-win-bg); border-left: 6px solid var(--show-win); flex-wrap: wrap; }
.show-answer span { font-size: 32px; color: var(--show-ink-2); }
.show-answer b { font-size: 44px; font-weight: 800; color: var(--show-win); }

/* ---------- RA CHƠI · chọn phe ---------- */
.rc-pick { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.pick-side { --c: var(--show-a); position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px 16px; border-radius: 22px; background: var(--show-dark);
  border: 4px solid var(--c); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 40%, transparent); text-align: center; transition: transform .4s, opacity .4s; }
.pick-side.b { --c: var(--show-b); }
.pick-side .letter { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: var(--show-on-gold); font-size: 48px; font-weight: 900; }
.pick-side .name { font-size: 42px; font-weight: 800; line-height: 1.15; }
.pick-side .cnt { font-size: 34px; font-weight: 700; color: var(--show-ink-2); }
.pick-side.win { transform: scale(1.05); border-color: var(--show-gold); box-shadow: 0 0 44px var(--show-gold-glow); }
.pick-side.lose { opacity: .55; }
.pick-side .crown { position: absolute; top: -46px; font-size: 64px; line-height: 1; animation: showChip .6s cubic-bezier(.2, 1.5, .4, 1) both; }
.pick-vs { font-size: 52px; font-weight: 900; color: var(--show-gold); text-shadow: 0 0 18px var(--show-gold-glow); }
.pick-bar { display: flex; height: 26px; border-radius: 99px; overflow: hidden; background: var(--show-dark); border: 2px solid var(--show-line); }
.pick-bar i { display: block; height: 100%; transition: width .45s cubic-bezier(.3, 1.2, .5, 1); }
.pick-bar i.a { background: var(--show-a); }
.pick-bar i.b { background: var(--show-b); }

/* ---------- RA CHƠI · điểm danh ---------- */
.rc-roll { display: flex; align-items: flex-start; gap: 14px; }
.rc-roll .roll-pic { --s: 140px; transform: rotate(-5deg); }
.roll-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.roll-h { font-size: 36px; font-weight: 700; color: var(--show-ink-2); }
.roll-h b { font-size: 52px; font-weight: 800; color: var(--show-gold); }
.roll-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.roll-list li { display: flex; align-items: center; gap: 8px; min-height: 52px; font-size: 30px; font-weight: 700; border-bottom: 2px dashed var(--show-line); min-width: 0; }
.roll-list .no { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--show-glass); font-size: 30px; font-weight: 800; }
.roll-list .nm { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.roll-list .ck { flex: none; font-style: normal; font-size: 36px; font-weight: 900; color: var(--show-win); }
.roll-list .cards-av, .roll-list .av { width: 38px; height: 38px; }
.roll-list li.wait { color: var(--show-ink-3); }
.roll-list li.on:first-child .no { background: var(--show-gold); color: var(--show-on-gold); }
.roll-list li.new { animation: showChip .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.roll-list li.new .ck { animation: showReveal .5s .15s both; }

/* ---------- RA CHƠI · thả tim / nhảy múa ---------- */
.rc-heart { display: flex; align-items: center; gap: 26px; }
.rc-heart .heart-pic { --s: 210px; }
.beat { animation: showBeat 1.1s ease-in-out infinite; }
@keyframes showBeat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } 45% { transform: scale(1.08); } }
.thump { animation: showThump .35s ease-out; }
@keyframes showThump { 40% { transform: scale(1.16); } }
.heart-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.heart-n { display: flex; align-items: baseline; flex-wrap: wrap; }
.heart-n b { font-size: 96px; font-weight: 800; line-height: 1; color: var(--show-heart); text-shadow: 0 0 22px var(--show-heart); }
.heart-n .of { font-size: 44px; font-weight: 700; color: var(--show-ink-2); margin-left: 8px; }
.heart-n .u { font-size: 40px; font-weight: 700; color: var(--show-ink-2); margin-left: 12px; }
.show-bar { position: relative; height: 34px; border-radius: 99px; overflow: hidden; background: var(--show-dark); border: 2px solid var(--show-line); }
.show-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--show-heart), var(--show-heart-2)); transition: width .4s cubic-bezier(.3, 1.2, .5, 1);
  box-shadow: 0 0 16px var(--show-heart); }
.show-bar.full i { background: linear-gradient(90deg, var(--show-gold-deep), var(--show-gold)); box-shadow: 0 0 20px var(--show-gold-glow); }
.rc-dance { display: flex; align-items: center; justify-content: space-around; gap: 18px; }
.rc-dance .dance-pic { --s: 190px; }
.rc-dance .dance-pic.pop { animation: showReveal .7s cubic-bezier(.2, 1.5, .4, 1) both; }
.dance-mid { display: flex; flex-direction: column; align-items: center; }
.dance-mid b { font-size: 110px; font-weight: 800; line-height: 1; color: var(--show-heart); text-shadow: 0 0 26px var(--show-heart); }
.dance-mid .u { font-size: 36px; font-weight: 700; color: var(--show-ink-2); }
.dance-eq { display: flex; align-items: flex-end; gap: 8px; height: 170px; }
.dance-eq i { width: 20px; border-radius: 6px; background: linear-gradient(180deg, var(--show-gold), var(--show-heart)); height: 30%; animation: showEq .7s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -130ms); }
@keyframes showEq { from { height: 18%; } to { height: 100%; } }

/* ---------- SHOW · màn mở / đọc đề ---------- */
.show-open { display: flex; align-items: center; justify-content: center; gap: 22px; }
.show-open.ott { flex-direction: column; gap: 12px; }
.show-open .big { font-size: 56px; font-weight: 800; color: var(--show-gold); text-shadow: 0 0 20px var(--show-gold-glow); line-height: 1.15; }
.open-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ott-row { display: flex; gap: 18px; justify-content: center; }
.ott-row .rps-card { width: 190px; }
.ott-row .rps-card:nth-child(2) .show-pic { animation-delay: .14s; }
.ott-row .rps-card .show-pic { animation: showPump .5s ease-in-out infinite alternate; }
.show-rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.show-rules li { font-size: 34px; font-weight: 600; color: var(--show-ink); line-height: 1.25; padding-left: 46px; position: relative; }
.show-rules li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--show-gold); color: var(--show-on-gold); font-size: 30px; font-weight: 900; }
.show-open.ott .show-rules { align-self: center; }
.show-intro { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0 8px; }
.show-intro .big { font-size: 112px; font-weight: 800; line-height: 1; color: var(--show-gold); text-shadow: 0 0 30px var(--show-gold-glow); animation: showIn .5s both; }

/* chuông vàng */
.show-bell { --s: 120px; transform-origin: 50% 8%; }
.show-bell.ico { --s: 64px; }
.show-bell.hero { --s: 190px; }
.show-bell.big { --s: 150px; }
.show-bell.swing { animation: showSwing 2.4s ease-in-out infinite; }
.show-bell.ring { animation: showRing .9s ease-in-out infinite; }
.show-bell.ring img { filter: drop-shadow(0 0 26px var(--show-gold-glow)) drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.show-bell.idle { opacity: .7; filter: saturate(.6); }
@keyframes showSwing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes showRing { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }

/* câu hỏi + A-B-C-D */
.show-q { margin: 0; font-size: 42px; line-height: 1.3; font-weight: 700; }
.show-level { display: inline-block; font-size: 30px; font-weight: 800; padding: 2px 14px; border-radius: 10px; margin-right: 12px; vertical-align: 6px; color: var(--show-on-gold); background: var(--show-win); }
.show-level.l2 { background: var(--show-gold); }
.show-level.l3 { background: var(--show-hard); }
.show-level.l4 { background: var(--show-lose); }
.show-level.l5 { background: var(--show-meo); }
.show-intro .show-level { margin: 0; font-size: 34px; padding: 4px 18px; }
.show-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.show-opt { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 70px; box-sizing: border-box; padding: 8px 16px; border-radius: 16px;
  background: var(--show-glass); border: 2px solid var(--show-line); font-size: 38px; font-weight: 600; }
.show-root[data-mode="show"] .show-opt { border-color: var(--show-gold-bg); background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); }
.show-opt b { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; font-size: 30px; font-weight: 900; color: var(--show-on-gold); background: var(--show-gold); }
.show-opt span { min-width: 0; line-height: 1.2; word-break: break-word; }
.show-opt.gone { opacity: .32; }
.show-opt.gone span { text-decoration: line-through; text-decoration-thickness: 4px; }
.show-opt .stamp { position: absolute; right: 8px; top: -14px; transform: rotate(-8deg); background: var(--show-stage-2); font-style: normal; font-size: 30px; font-weight: 900; color: var(--show-heart);
  border: 3px solid var(--show-heart); border-radius: 10px; padding: 0 8px; animation: showStamp .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes showStamp { from { opacity: 0; transform: rotate(-8deg) scale(2); } to { opacity: 1; } }
.show-opt.hit { background: var(--show-win-bg); border-color: var(--show-win); color: var(--show-win); animation: showReveal .5s both; box-shadow: 0 0 26px var(--show-win-bg); }
.show-opt.hit b { background: var(--show-win); }
.show-opt.dim { opacity: .4; }
.show-root[data-phase="closed"] .show-opt { filter: saturate(.7); }

/* cứu trợ 50:50 = tim miễn phí của cả phòng */
.show-rescue { display: flex; flex-direction: column; gap: 6px; padding: 8px 18px 10px; border-radius: 16px; background: var(--show-dark); border: 2px solid var(--show-heart); }
.show-rescue .rs-h { display: flex; align-items: center; gap: 12px; font-size: 34px; font-weight: 800; }
.show-rescue .rs-h .ic { font-size: 34px; line-height: 1; }
.show-rescue .rs-h .tt { flex: 1; min-width: 0; }
.show-rescue .rs-h b { font-size: 36px; color: var(--show-heart-2); }
.show-rescue .rs-h .sub, .show-rescue > .sub { font-size: 30px; font-weight: 600; color: var(--show-ink-3); }
.show-rescue .show-bar { height: 24px; }
.show-rescue.used { border-color: var(--show-win); }
.show-rescue.used .tt { color: var(--show-win); }
.show-rescue.flash { animation: showFlash .9s ease-out; }
@keyframes showFlash { 0% { box-shadow: 0 0 0 0 var(--show-gold-glow); transform: scale(1.04); } 100% { box-shadow: 0 0 0 26px transparent; transform: none; } }

/* vinh danh: chuông rung + bục */
.show-podium { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pod-stand { position: relative; display: flex; flex-direction: column; align-items: center; }
.pod-img { --s: 200px; width: 420px; height: 200px; }
.pod-people { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; gap: 30px; margin-bottom: -70px; }
.pod-p { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: showChip .6s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i, 0) * 160ms + 200ms); }
.pod-p.first { margin-bottom: 40px; }
.pod-p .nm { font-size: 34px; font-weight: 800; padding: 2px 14px; border-radius: 999px; background: var(--show-dark); white-space: nowrap; }
.pod-p.first .nm { font-size: 40px; color: var(--show-on-gold); background: var(--show-gold); }
.show-podium.n1 .pod-people { margin-bottom: -62px; }

/* ---------- SHOW · Ô chữ ---------- */
.oc-grid { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.oc-row { display: grid; grid-template-columns: 48px repeat(var(--cols, 10), var(--cell, 56px)); gap: 5px; align-items: center; }
.oc-n { grid-column: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--show-glass); font-size: 30px; font-weight: 800; }
.oc-cell { width: var(--cell, 56px); height: var(--cell, 56px); box-sizing: border-box; display: grid; place-items: center; border-radius: 8px;
  font-size: max(30px, calc(var(--cell, 56px) * .64)); font-weight: 800; line-height: 1; background: var(--show-glass); border: 2px solid var(--show-line); border-bottom-width: 4px; color: var(--show-ink); }
.oc-cell.key { background: var(--show-gold-bg); border-color: var(--show-gold); box-shadow: 0 0 14px var(--show-gold-glow); }
.oc-cell.hit { background: var(--show-win-bg); border-color: var(--show-win); }
.oc-cell.key.hit { background: var(--show-gold); border-color: var(--show-gold); color: var(--show-on-gold); }
.oc-cell.flip { animation: showFlip .5s ease-out both; animation-delay: calc(var(--j, 0) * 70ms); }
@keyframes showFlip { 0% { transform: rotateX(90deg); opacity: 0; } 60% { transform: rotateX(-15deg); opacity: 1; } 100% { transform: none; } }
.oc-row.wait { opacity: .5; }
.oc-row.cur .oc-n { background: var(--show-gold); color: var(--show-on-gold); }
.oc-row.cur .oc-cell { border-color: var(--show-gold); animation: showCur 1.4s ease-in-out infinite; }
@keyframes showCur { 50% { background: var(--show-gold-bg); } }
.oc-hint { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.oc-hint .tag { font-size: 32px; font-weight: 800; padding: 2px 16px; border-radius: 999px; color: var(--show-on-gold); background: var(--show-gold); }
.oc-kw { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; padding: 8px 14px; border-radius: 16px; background: var(--show-dark); border: 2px dashed var(--show-gold); }
.oc-kw .lbl { font-size: 34px; font-weight: 800; color: var(--show-gold); white-space: nowrap; }
.oc-kw .len { font-size: 30px; color: var(--show-ink-3); white-space: nowrap; }
.oc-kw-cells { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.oc-cell.kw { width: 54px; height: 62px; font-size: 40px; color: var(--show-gold); border-color: var(--show-gold); }
.oc-cell.kw.hit { background: var(--show-gold); color: var(--show-on-gold); }
.oc-kw.window { border-style: solid; animation: showGlow 1.2s ease-in-out infinite; }
@keyframes showGlow { 50% { box-shadow: 0 0 34px var(--show-gold-glow); } }

/* vinh danh ô chữ: lưới + từ khoá đã chiếm chỗ → bục gọn (không chuông lớn, avatar vừa) */
.show-root[data-show="o-chu"] .show-podium .pod-top { display: none; }
.show-root[data-show="o-chu"] .pod-img { --s: 150px; width: 320px; height: 150px; }
.show-root[data-show="o-chu"] .show-podium.n1 .pod-people { margin-bottom: -48px; }
.show-root[data-show="o-chu"] .pod-p.first { margin-bottom: 0; }

/* thẻ / đố của module phòng đang mở (.qt-busy / .pgd-busy — thẻ mọc từ đáy cột lên): bảng thu gọn chừa chỗ, chỉ giữ phần chính */
.qt-busy .show-panel, .pgd-busy .show-panel { max-height: 460px; gap: 8px; padding-bottom: 18px; }
.qt-busy .show-rescue, .pgd-busy .show-rescue, .qt-busy .show-foot:not(.show-disc), .pgd-busy .show-foot:not(.show-disc), .qt-busy .show-rules, .pgd-busy .show-rules,
.qt-busy .oc-kw, .pgd-busy .oc-kw, .qt-busy .oc-hint, .pgd-busy .oc-hint, .qt-busy .show-letters, .pgd-busy .show-letters, .qt-busy .roll-pic, .pgd-busy .roll-pic,
.qt-busy .show-podium .pod-img, .pgd-busy .show-podium .pod-img, .qt-busy .show-chips, .pgd-busy .show-chips, .qt-busy .show-ear, .pgd-busy .show-ear,
.qt-busy .show-answer, .pgd-busy .show-answer, .qt-busy .pick-bar, .pgd-busy .pick-bar { display: none; }
.qt-busy .show-opts, .pgd-busy .show-opts { gap: 6px 10px; }
.qt-busy .show-opt, .pgd-busy .show-opt { font-size: 30px; min-height: 48px; padding: 2px 12px; }
.qt-busy .show-opt b, .pgd-busy .show-opt b { width: 38px; height: 38px; }
.qt-busy .oc-grid, .pgd-busy .oc-grid { --cell: 44px !important; gap: 4px; }
.qt-busy .show-q, .pgd-busy .show-q, .qt-busy .show-hint, .pgd-busy .show-hint { font-size: 36px; }
.qt-busy .show-intro .big, .pgd-busy .show-intro .big { font-size: 72px; }
.qt-busy .show-pic.hand, .pgd-busy .show-pic.hand { --s: 80px; }
.qt-busy .show-pic.hand.big, .pgd-busy .show-pic.hand.big { --s: 110px; }
.qt-busy .rps-card.host, .pgd-busy .rps-card.host { width: 150px; height: 150px; }
.qt-busy .show-bell.hero, .pgd-busy .show-bell.hero, .qt-busy .show-bell.big, .pgd-busy .show-bell.big { --s: 110px; }
.qt-busy .show-podium .pod-people, .pgd-busy .show-podium .pod-people { margin-bottom: 0; }
.qt-busy .rc-heart .heart-pic, .pgd-busy .rc-heart .heart-pic, .qt-busy .rc-dance .dance-pic, .pgd-busy .rc-dance .dance-pic { --s: 130px; }
.qt-busy .heart-n b, .pgd-busy .heart-n b, .qt-busy .dance-mid b, .pgd-busy .dance-mid b { font-size: 72px; }
.qt-busy .dance-eq, .pgd-busy .dance-eq { height: 110px; }

/* dòng nhắc "mất quyền đoán từ khoá" (gộp nhiều người thành 1 dòng) */
.show-toast { display: none; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 6px; white-space: normal; padding: 8px 16px; border-radius: 12px; background: var(--show-dark); border-left: 6px solid var(--show-lose); /* câu nhắc xuống dòng, không tràn/cắt */
  font-size: 30px; font-weight: 600; color: var(--show-ink-2); line-height: 1.3; }
.show-toast.on { display: flex; }
.show-toast.on ~ .show-foot:not(.show-disc) { display: none !important; } /* dòng nhắc thay chỗ dòng hướng dẫn, bảng không cao thêm */
.show-toast b { color: var(--show-gold); font-size: 32px; }
.show-toast .more { color: var(--show-lose); font-weight: 800; }
.show-toast .ic { font-size: 30px; }
.show-toast.pop { animation: showChip .4s ease-out; }

/* thanh thời gian đáy bảng */
.show-timer { position: absolute; left: 24px; right: 24px; bottom: 6px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.show-timer i { display: block; height: 100%; width: 100%; background: var(--show-gold); transition: width linear; }
.show-root[data-mode="recess"] .show-timer i { background: var(--show-recess); }

/* bảng sự kiện vùng trần (boards.js: Nhanh nhất / Sôi nổi / Tổ) không đè lên bảng show / ra chơi */
#stage.show-on .kit-boards, #stage.recess-on .kit-boards { visibility: hidden; }
/* dải "Tiếp: …" đứng riêng (plan.js `.abs`, PGD y 656, z 27) nằm SAU bảng show (z 29): bảng thấp thì dải ló nửa dưới trông như lỗi → nghỉ trong lúc
   show / ra chơi (viên "Tiết n" trên trần vẫn còn). QT đặt dải trong bảng gỗ (không .abs) → không ảnh hưởng. */
#stage.show-on .kit-plan-next.abs, #stage.recess-on .kit-plan-next.abs { visibility: hidden; }

/* ---------- ghế: người bị loại "đứng dậy" (seats.js tô .guest.out xám + ✕), người còn trên sân ánh vàng ---------- */
#stage.show-on .guest .sp { transition: transform .45s cubic-bezier(.2, 1.4, .4, 1); }
#stage.show-on .guest.out .sp { transform: translateY(-24px) scale(1.04); }
#stage.show-on .guest:not(.out):not(.zzz):not(.away) .sp { filter: drop-shadow(0 0 7px var(--show-gold-glow)); }

@media (prefers-reduced-motion: reduce) {
  .show-panel, .show-lights::before, .show-lights::after, .show-clock.low, .bump, .rps-card.pump .show-pic, .rps-card.shown, .rps-card.win, .rps-card.host .q, .callup-who .cards-av, .callup-who .av,
  .show-chip.new, .roll-list li.new, .beat, .thump, .dance-eq i, .ott-row .rps-card .show-pic, .show-bell.swing, .show-bell.ring, .oc-cell.flip, .oc-row.cur .oc-cell, .oc-kw.window,
  .show-opt.hit, .show-opt .stamp, .show-rescue.flash, .pod-p, .show-ear .bars i, .show-intro .big, .show-toast.pop, .pick-side .crown, .show-math .ans { animation: none !important; }
}
