/* 치티비 시청자 참여 게임 추가분 화면 모양 (play-games-1.js, play-games-2.js) */
.gbox { position: relative; width: 100%; min-height: 14cqw; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2cqw; margin: 1cqw 0; }
.gbox:empty { min-height: 0; margin: 0; }
.gspr { image-rendering: pixelated; image-rendering: crisp-edges; height: 14cqw; width: auto; user-select: none; }
.gemo { height: 5cqw; width: auto; vertical-align: middle; } .gemo[src^="data:"] { image-rendering: pixelated; }
.gemo.big { height: 12cqw; } .gemo.huge { height: 18cqw; } .gemo.inl { height: 1.2em; vertical-align: -.25em; }
.emorow { display: flex; flex-wrap: wrap; gap: 1cqw; justify-content: center; } .emorow .gemo { height: 6cqw; } .gbox.emorow.big .gemo { height: 12cqw; }
.qm { display: grid; place-items: center; width: 12cqw; height: 12cqw; font-size: 7cqw; font-weight: 900; color: var(--mut); border: .3cqw dashed var(--line); }

/* 막대 그래프·게이지 */
.bars { width: min(100%, 78cqw); display: flex; flex-direction: column; gap: .8cqw; } .bars.wide { width: 100%; }
.bar { display: grid; grid-template-columns: minmax(8cqw, auto) 1fr minmax(7cqw, auto); align-items: center; gap: 1.2cqw; font-size: max(12px, 1.9cqw); }
.bar .bn { text-align: left; font-weight: 700; overflow-wrap: anywhere; } .bar .bt { height: 3cqw; background: #0b1226; border: .2cqw solid var(--line); } .bar .bt i { display: block; height: 100%; width: 0; transition: width .25s steps(5); } .bar > b { text-align: right; font-variant-numeric: tabular-nums; }
.bar.hit .bn { color: var(--gold); } .bar.hit .bt { border-color: var(--gold); }
.gauge { position: relative; width: min(100%, 70cqw); height: 3.6cqw; margin: 1.2cqw auto 0; background: #0b1226; border: .3cqw solid var(--fg); } .gauge i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--mint); transition: width .25s steps(5); } .gauge b { position: relative; display: block; line-height: 3cqw; font-size: max(11px, 1.6cqw); text-align: center; }
.gauge.duo { background: var(--red); border-color: var(--fg); } .gauge.duo i { background: var(--sky); }

/* A. 구독티콘 */
.gbox.reels { gap: 2cqw; } .reel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6cqw; width: 18cqw; height: 20cqw; background: #0b1226; border: .4cqw solid var(--gold); } .reel .gemo { height: 11cqw; } .reel small { font-size: max(11px, 1.5cqw); color: var(--mut); max-width: 16cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gbox.rain { display: block; height: 30cqw; overflow: hidden; border-bottom: .3cqw solid var(--line); } .gemo.drop { position: absolute; top: -8cqw; height: 6cqw; animation: gdrop 2s linear both; } @keyframes gdrop { to { top: 100%; } }
.gbox.rain .gemo.huge { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.gbox.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; } .duel .side { display: flex; flex-direction: column; align-items: center; gap: .8cqw; padding: 1.6cqw; border: .35cqw solid var(--line); } .duel .side.a { border-color: var(--sky); } .duel .side.b { border-color: var(--red); } .duel .side em { font-style: normal; font-weight: 900; font-size: max(13px, 2cqw); } .duel .side.a em { color: var(--sky); } .duel .side.b em { color: var(--red); } .duel .side span { font-size: max(12px, 1.9cqw); color: var(--mut); } .duel .side.win { border-color: var(--gold); } .duel .side.lose { opacity: .35; } .duel .vs { align-self: center; font-weight: 900; font-size: max(16px, 3.2cqw); color: var(--gold); }
.gbox.tower { height: 34cqw; align-items: flex-end; } .tcol { display: flex; flex-direction: column; align-items: center; } .tblk { display: flex; align-items: center; gap: .6cqw; height: 3.5cqw; padding: 0 1cqw; background: #0b1226; border: .25cqw solid var(--line); transition: translate .2s steps(4); } .tblk .gemo { height: 2.8cqw; } .tblk small { font-size: max(10px, 1.3cqw); color: var(--mut); white-space: nowrap; }
.tcol.fall { animation: tfall .7s steps(7) both; transform-origin: 50% 100%; } @keyframes tfall { to { rotate: 80deg; opacity: 0; } }
.gbox.race2 { flex-direction: column; gap: 1cqw; align-items: stretch; } .race2 .lane { display: block; } .race2 .track { position: relative; height: 6.4cqw; background: rgba(255,255,255,.05); border-bottom: .25cqw dashed var(--line); border-right: .6cqw solid var(--fg); } .gemo.runner2 { position: absolute; top: .4cqw; left: 0; height: 5.6cqw; transition: left .2s steps(4); }
.gbox.ebingo { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8cqw; width: min(100%, 50cqw); margin: 1cqw auto; } .ebingo .c { aspect-ratio: 1.3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3cqw; background: #0b1226; border: .25cqw solid var(--line); } .ebingo .c .gemo { height: 6.5cqw; } .ebingo .c small { font-size: max(10px, 1.3cqw); min-height: 1.6cqw; } .ebingo .c.on { background: var(--mint); border-color: var(--mint); color: var(--ink); } .ebingo .c.line { background: var(--gold); border-color: var(--gold); color: #3a2600; }
.zoom { width: 24cqw; height: 24cqw; background-color: #0b1226; background-repeat: no-repeat; border: .4cqw solid var(--gold); transition: background-size .6s steps(6); } .zoom[style*="data:"] { image-rendering: pixelated; }
.gbox.wall { display: grid; gap: .4cqw; width: min(100%, 76cqw); margin: 1cqw auto; } .wc { aspect-ratio: 1; display: grid; place-items: center; background: #0b1226; border: .2cqw solid var(--line); } .wc .gemo { height: 80%; max-height: 7cqw; } .wc.on { animation: pop .25s steps(4); }
.gbox.sky { display: block; height: 28cqw; overflow: hidden; } .spark { position: absolute; height: 4cqw; translate: -50% -50%; animation: gspark 1.4s steps(14) both; } .spark.dot { width: 1.4cqw; height: 1.4cqw; background: var(--gold); } @keyframes gspark { from { translate: -50% -50%; opacity: 1; scale: .4; } to { translate: calc(-50% + var(--dx)) calc(-50% + var(--dy)); opacity: 0; scale: 1.2; } }
.gbox.chart { min-height: 26cqw; align-items: flex-start; } .chart .bar .bn .gemo { height: 4cqw; }
.gspr.machine { height: 20cqw; } .gspr.shake { animation: gshake .5s steps(6); } @keyframes gshake { 25% { rotate: -6deg; } 75% { rotate: 6deg; } } .gout { min-width: 13cqw; min-height: 13cqw; display: grid; place-items: center; }

/* B. 협동 */
.gspr.balloon { height: 16cqw; transform-origin: 50% 100%; transition: scale .3s steps(5); } .gspr.popped { animation: gpop .4s steps(5) both; } @keyframes gpop { 40% { scale: 2.4; filter: brightness(3); } 100% { scale: 0; opacity: 0; } }
.gbox.rocketbox { height: 32cqw; align-items: flex-end; background: linear-gradient(#060a1a, transparent); } .gspr.rocket { height: 12cqw; transition: translate .3s steps(6); } .gspr.rocket.fly { animation: gwob .25s steps(2) infinite; } @keyframes gwob { 50% { rotate: 2deg; } }
.gbox.tank { height: 30cqw; width: min(100%, 60cqw); margin: 1cqw auto; border: .4cqw solid var(--fg); border-top: 0; overflow: hidden; align-items: flex-start; } .tank .water { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: rgba(60,150,255,.75); border-top: .5cqw solid #9fd0ff; transition: height .5s linear; } .gspr.bucket { position: relative; height: 9cqw; margin-top: 1cqw; }
.gbox.field { gap: 6cqw; } .gspr.castle { height: 18cqw; } .gspr.castle.hit { animation: gshake .4s steps(4); } .gspr.mon { height: 10cqw; opacity: .12; transition: opacity .15s; } .gspr.mon.on { opacity: 1; animation: gwob .3s steps(2) infinite; } .gspr.mon.r { transform: scaleX(-1); }
.rope2 { width: 46cqw; height: 16cqw; border: .6cqw solid var(--gold); border-top-color: transparent; border-radius: 0 0 50% 50% / 0 0 100% 100%; } .rope2.swing { animation: gswing .5s steps(8); } @keyframes gswing { 50% { transform: scaleY(-1); } }
.gspr.safe { height: 18cqw; } .gspr.safe.hit { animation: gshake .3s steps(4); } .gspr.safe.open { filter: brightness(1.5) drop-shadow(0 0 2cqw var(--gold)); }
.pic { max-width: 62cqw; max-height: 34cqw; border: .3cqw solid var(--line); } .letters { letter-spacing: .3em; }

/* C. 팀 대결 */
.gbox.land { display: grid; gap: .3cqw; width: min(100%, 80cqw); margin: 1cqw auto; } .land i { aspect-ratio: 1; background: #0b1226; border: .15cqw solid var(--line); transition: background .2s steps(3); }
.gbox.pitch { height: 20cqw; display: block; background: repeating-linear-gradient(90deg, rgba(111,216,182,.12) 0 8%, rgba(111,216,182,.05) 8% 16%); border: .3cqw solid var(--fg); } .pitch .goal { position: absolute; top: 25%; bottom: 25%; width: 2.4%; } .pitch .goal.l { left: 0; background: var(--sky); } .pitch .goal.r { right: 0; background: var(--red); } .gspr.ball { position: absolute; top: 50%; left: 50%; height: 7cqw; translate: -50% -50%; transition: left .25s steps(5); }
.gbox.snowf, .gbox.armf { flex-wrap: nowrap; } .snowf .gauge, .armf .gauge { flex: 1; margin: 0; } .gspr.sb { height: 6cqw; } .tn { flex: none; font-size: max(13px, 2.2cqw); max-width: 18cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tn.a { color: var(--sky); } .tn.b { color: var(--red); }
.gbox.flagf, .gbox.relayf { flex-direction: column; align-items: stretch; gap: 1.2cqw; } .frow, .rrow { display: flex; align-items: center; gap: 1.4cqw; } .frow .gauge, .rrow .gauge { flex: 1; margin: 0; } .frow > b { width: 3cqw; font-size: max(14px, 2.6cqw); } .gspr.flag { height: 5cqw; } .rrow > b { width: 14cqw; text-align: left; font-size: max(13px, 2cqw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rrow span { width: 22cqw; text-align: left; font-size: max(12px, 1.6cqw); color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* D·E. 눈치·퀴즈 */
.gspr.mask { height: 10cqw; } .hid { display: flex; flex-direction: column; gap: 5px; max-width: 520px; font-size: 13px; color: var(--mut); padding: 12px 14px; background: var(--navy); border: 2px solid var(--line); }
.board .hid { padding: 0; border: 0; background: none; margin-bottom: 8px; }
.gbox.cheeses { gap: 1.6cqw; } .pc { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3cqw; width: 11cqw; padding: 1cqw .4cqw; border: .25cqw solid var(--line); } .pc .gspr { height: 11cqw; } .pc b { font-size: max(13px, 2.2cqw); } .pc small { min-height: 1.8cqw; font-size: max(10px, 1.3cqw); color: var(--mut); max-width: 10cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pc.taken { opacity: .45; } .pc.hot { opacity: 1; border-color: var(--red); background: rgba(255,90,60,.2); animation: gshake .4s steps(4); }
.gbox.famb { flex-direction: column; gap: .8cqw; } .famrow { width: min(100%, 60cqw); padding: 1cqw 1.6cqw; font-size: max(14px, 2.4cqw); font-weight: 800; text-align: left; color: var(--mut); background: #0b1226; border: .25cqw solid var(--line); } .famrow.open { color: var(--ink); background: var(--gold); border-color: var(--gold); }
canvas.pad { width: min(100%, 76cqw); height: auto; aspect-ratio: 16 / 9; background: #0b1226; border: .3cqw solid var(--line); cursor: crosshair; touch-action: none; }

/* F. 후원 */
.gbox.fundb { flex-direction: column; align-items: stretch; gap: 1cqw; text-align: left; } .frow2 { padding: 1cqw 1.4cqw; border: .25cqw solid var(--line); } .frow2 .fh { display: flex; align-items: center; gap: 1cqw; } .frow2 .fh b { flex: 1; font-size: max(14px, 2.4cqw); overflow-wrap: anywhere; } .frow2 .fh button { padding: 4px 9px; font-size: 12px; } .frow2 .gauge { width: 100%; margin: .8cqw 0 .5cqw; } .frow2 small { font-size: max(11px, 1.5cqw); color: var(--mint); } .frow2.full { border-color: var(--gold); } .frow2.done { opacity: .5; }
.gspr.piggy { height: 14cqw; transition: scale .3s steps(5); } .gspr.piggy.hit { animation: gshake .3s steps(4); } .gspr.piggy.broken { animation: gpop .5s steps(6) both; }
.gbox.dbombf { gap: 1.4cqw; align-items: stretch; } .opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .4cqw; width: 14cqw; min-height: 17cqw; padding: 1cqw .6cqw; border: .3cqw solid var(--line); } .opt em { font-style: normal; font-weight: 800; color: var(--mut); font-size: max(11px, 1.5cqw); } .opt b { font-size: max(13px, 2cqw); overflow-wrap: anywhere; } .opt small { min-height: 1.8cqw; font-size: max(10px, 1.3cqw); color: var(--mint); } .opt.on { border-color: var(--red); background: rgba(255,107,107,.12); } .opt.hit { border-color: var(--gold); background: rgba(255,200,61,.2); }
.bombspr.small { width: 8cqw; height: 8cqw; margin: 0 0 .6cqw; }
.gspr.dragon { height: 22cqw; } .gspr.dragon.hit { animation: hit .15s steps(2); } .gspr.dragon.dead { animation: gpop .8s steps(8) both; } .gspr.chest { height: 10cqw; }
.sub.red { color: var(--red); }
@media (max-width: 640px) { .gbox.duel { grid-template-columns: 1fr; } .opt, .pc { width: 26cqw; } }
