/* 프레젠테이션(TV) 화면 전용 — shared/style.css 의 1920×1080 무대 위에 얹습니다 */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 64px 0; min-height: 96px;
}
.top-left, .top-right { display: flex; align-items: center; gap: 20px; }
.meeting { font-size: 40px; font-weight: 800; }
.code-chip { font-size: 30px; font-weight: 800; letter-spacing: 4px; background: var(--accent-lemon); }
.conn-dot { width: 22px; height: 22px; padding: 0; border-radius: 50%; background: #D9534F; }
.conn-dot.on { background: #6CCB8E; }

.main { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 20px 64px 16px; }
.main > * { flex: 1; min-height: 0; }
.main > .g-head { flex: none; }

.team-strip {
  display: flex; gap: 14px; padding: 0 64px 24px; justify-content: center; min-height: 92px; align-items: flex-end;
}
.team-strip .tchip {
  display: flex; align-items: center; gap: 12px; padding: 10px 26px; border-radius: 100px;
  background: var(--tc, var(--bg-soft)); font-size: 30px; font-weight: 700; box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease);
}
.team-strip .tchip .sc { font-variant-numeric: tabular-nums; font-weight: 800; }
.team-strip .tchip .gain { font-size: 24px; font-weight: 800; color: #2E6B53; }
.team-strip .tchip.lead { transform: translateY(-6px); box-shadow: var(--shadow-pop); }

.code-input { width: 320px; text-align: center; letter-spacing: 12px; font-size: 56px; font-weight: 800; text-transform: uppercase; }

/* 로비 */
.lobby { display: grid; grid-template-columns: 640px 1fr; gap: 56px; align-items: stretch; }
.lobby .qr-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 36px; }
.lobby .qr-card svg { width: 460px; height: 460px; border-radius: 16px; }
.lobby .join-url { font-size: 34px; font-weight: 700; color: var(--text-secondary); word-break: break-all; text-align: center; }
.lobby .join-code { font-size: 96px; font-weight: 800; letter-spacing: 14px; line-height: 1; }
.lobby .people { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.lobby .people-head { font-size: 44px; font-weight: 800; }
.lobby .bubbles { display: flex; flex-wrap: wrap; gap: 14px; align-content: flex-start; overflow: hidden; }
.bubble {
  padding: 14px 28px; border-radius: 100px; background: #fff; border: 2px solid var(--border-soft);
  font-size: 32px; font-weight: 700; box-shadow: var(--shadow-card); animation: popIn .35s var(--ease) both;
}
.bubble.off { opacity: .45; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 팀 */
.teams-grid { display: grid; gap: 22px; grid-template-columns: repeat(var(--cols, 3), 1fr); align-content: stretch; }
.team-card { border-radius: 28px; padding: 22px 26px; background: var(--tc); display: flex; flex-direction: column; gap: 12px; min-height: 0; box-shadow: var(--shadow-card); }
.team-card .th { display: flex; align-items: center; justify-content: space-between; font-size: 40px; font-weight: 800; }
.team-card .members { display: flex; flex-wrap: wrap; gap: 10px; }
.team-card .m { background: rgba(255,255,255,.75); padding: 8px 18px; border-radius: 100px; font-size: 28px; font-weight: 600; }
.team-card .m.off { opacity: .45; }

/* 점수판 */
.board { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; }
.board h2 { font-size: 44px; font-weight: 800; margin: 0 0 18px; }
.bar-row { display: grid; grid-template-columns: 70px 1fr 200px; align-items: center; gap: 18px; margin-bottom: 14px; font-size: 36px; font-weight: 700; }
.bar-row .bar { height: 64px; border-radius: 100px; background: var(--bg-soft); overflow: hidden; position: relative; }
.bar-row .bar i { position: absolute; inset: 0; width: var(--w); background: var(--tc); border-radius: 100px; transition: width .8s var(--ease); display: flex; align-items: center; padding-left: 22px; font-style: normal; white-space: nowrap; }
.bar-row .pts { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; }
.bar-row .gain { font-size: 26px; color: #2E6B53; margin-left: 10px; }
.mvp-list { display: flex; flex-direction: column; gap: 10px; }
.mvp-row { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 18px; padding: 12px 22px; font-size: 32px; font-weight: 700; box-shadow: var(--shadow-card); }
.mvp-row .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--tc, #ccc); }
.mvp-row .sc { margin-left: auto; font-variant-numeric: tabular-nums; }

/* 최종 발표 */
.final { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final .stack { display: flex; flex-direction: column; gap: 14px; width: 1200px; }
.rank-card { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 24px; padding: 18px 40px; border-radius: 28px; background: var(--tc); box-shadow: var(--shadow-card); font-size: 52px; font-weight: 800; animation: slideUp .5s var(--ease) both; }
.rank-card.winner { font-size: 84px; padding: 30px 48px; box-shadow: var(--shadow-pop); }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 게임 공통 */
.g-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.g-head .title { font-size: 40px; font-weight: 800; }
.g-head .right { display: flex; align-items: center; gap: 16px; }
.g-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.g-intro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.g-intro .icon { font-size: 160px; line-height: 1; }
.g-intro .rule { font-size: 36px; color: var(--text-secondary); max-width: 1300px; line-height: 1.5; }
.timer-ring { --progress: 1; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; font-size: 56px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: conic-gradient(var(--accent-coral) calc(var(--progress) * 100%), var(--bg-soft) 0); position: relative; }
.timer-ring::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.timer-ring span { position: relative; }
.timer-ring span.danger { color: #D9534F; }
.answered { font-size: 30px; color: var(--text-secondary); font-weight: 600; }
.q-text { font-size: 64px; font-weight: 800; text-align: center; line-height: 1.3; word-break: keep-all; max-width: 1600px; }
.q-text.small { font-size: 48px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; width: 1500px; }
.choice { display: flex; align-items: center; gap: 22px; padding: 26px 34px; border-radius: 26px; background: #fff; border: 3px solid var(--border-soft); font-size: 40px; font-weight: 700; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.choice .k { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; background: var(--bg-soft); }
.choice.c0 .k { background: var(--accent-coral); } .choice.c1 .k { background: var(--accent-mint); } .choice.c2 .k { background: var(--accent-lemon); } .choice.c3 .k { background: var(--accent-lavender); }
.choice.correct { border-color: #6CCB8E; background: #EAF9F0; }
.choice.dim { opacity: .45; }
.choice .n { margin-left: auto; font-size: 30px; color: var(--text-secondary); }
.choice .fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0); background: rgba(108,203,142,.18); transition: width .6s var(--ease); }
.reveal-answer { font-size: 84px; font-weight: 800; text-align: center; }
.reveal-sub { font-size: 34px; color: var(--text-secondary); }
.names { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 1600px; }
.names .nm { padding: 8px 20px; border-radius: 100px; background: #fff; border: 2px solid var(--border-soft); font-size: 28px; font-weight: 600; border-left: 12px solid var(--tc, var(--border-soft)); }
.names .nm b { color: #2E6B53; margin-left: 6px; }
.big-emoji { font-size: 200px; line-height: 1.2; text-align: center; }
.photo-frame { border-radius: 24px; overflow: hidden; position: relative; background: var(--bg-soft); border: 2px solid var(--border-soft); box-shadow: var(--shadow-card); }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.verse { font-size: 52px; font-weight: 700; line-height: 1.6; text-align: center; max-width: 1650px; display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: center; }
.verse .w { padding: 4px 14px; border-radius: 14px; position: relative; }
.verse .w.hot { background: rgba(255,181,167,.35); }
.verse .w.wrong { background: #FFD1D1; text-decoration: line-through; color: #B03A2E; }
.verse .w.right { background: #D8F5E4; color: #2E6B53; }
.verse .w .cnt { position: absolute; top: -18px; right: -10px; font-size: 22px; background: #3D3D3D; color: #fff; border-radius: 100px; padding: 2px 10px; }
.vs-row { display: flex; gap: 40px; width: 1500px; align-items: stretch; }
.vs-card { flex: 1; border-radius: 32px; padding: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: var(--shadow-card); }
.vs-card.a { background: var(--accent-lavender); } .vs-card.b { background: var(--accent-peach); }
.vs-card .lbl { font-size: 48px; font-weight: 800; }
.vs-card .txt { font-size: 44px; font-weight: 700; text-align: center; }
.vs-card .cnt { font-size: 72px; font-weight: 800; }
.vs-card.win { outline: 10px solid rgba(255,213,126,.9); }
.alive-chip { font-size: 34px; font-weight: 800; background: var(--accent-mint); padding: 10px 28px; border-radius: 100px; }
.react-pad { width: 1500px; height: 620px; border-radius: 40px; display: grid; place-items: center; font-size: 120px; font-weight: 800; color: #fff; transition: background .1s; }
.react-pad.wait { background: #D9534F; } .react-pad.go { background: #4CAF50; } .react-pad.idle { background: var(--bg-soft); color: var(--text-secondary); }
.tap-bars { width: 1500px; display: flex; flex-direction: column; gap: 16px; }
.tap-bars .row-b { display: grid; grid-template-columns: 240px 1fr 180px; gap: 18px; align-items: center; font-size: 36px; font-weight: 700; }
.tap-bars .bar { height: 60px; background: var(--bg-soft); border-radius: 100px; overflow: hidden; }
.tap-bars .bar i { display: block; height: 100%; width: var(--w); background: var(--tc); border-radius: 100px; transition: width .25s linear; }
.count-big { font-size: 240px; font-weight: 800; line-height: 1; }
.tele-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 20px; width: 100%; }
.tele-card { background: var(--tc); border-radius: 26px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.tele-card .th { font-size: 34px; font-weight: 800; display: flex; justify-content: space-between; }
.tele-card .ans { display: flex; flex-wrap: wrap; gap: 8px; }
.tele-card .ans span { background: rgba(255,255,255,.8); padding: 6px 14px; border-radius: 100px; font-size: 26px; }
.tele-card .ans span.hit { background: #fff; font-weight: 800; outline: 3px solid #6CCB8E; }
.tele-card .pts { font-size: 40px; font-weight: 800; text-align: right; }
.taboo-box { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.taboo-box .who { font-size: 56px; font-weight: 800; }
.taboo-box .cnt { font-size: 120px; font-weight: 800; line-height: 1; }
.bet-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 1600px; }
.bet-list span { background: #fff; border-radius: 100px; padding: 6px 18px; font-size: 26px; font-weight: 600; border: 2px solid var(--border-soft); }
.audio-badge { font-size: 96px; font-weight: 800; display: flex; align-items: center; gap: 28px; }
.audio-badge .eq { display: inline-flex; gap: 8px; align-items: flex-end; height: 90px; }
.audio-badge .eq i { width: 16px; background: var(--accent-coral); border-radius: 8px; animation: eq .6s ease-in-out infinite alternate; }
.audio-badge .eq i:nth-child(2) { animation-delay: .15s; } .audio-badge .eq i:nth-child(3) { animation-delay: .3s; } .audio-badge .eq i:nth-child(4) { animation-delay: .45s; }
.audio-badge.paused .eq i { animation-play-state: paused; height: 20px !important; }
@keyframes eq { from { height: 20px; } to { height: 90px; } }
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; font-size: 34px; font-weight: 700; }
.movers .up { color: #2E6B53; } .movers .down { color: #B03A2E; }
