/* 치티비 시청자 참여 게임 공통 모양 */
:root { --bg: #0b1020; --navy: #121c38; --line: #2c3a5e; --fg: #f4f6fb; --mut: #9ba7c6; --mint: #6fd8b6; --red: #ff6b6b; --gold: #ffc83d; --sky: #7fd7ff; --ink: #06281d; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; }
body.embed { background: transparent; } html:has(body.embed) { overflow: hidden; }
#app { max-width: 1280px; margin: 0 auto; padding: 24px 16px 40px; } body.embed #app { max-width: none; padding: 14px; }
[hidden] { display: none !important; }
.card { background: var(--navy); border: 2px solid var(--line); padding: 20px; }
h1 { margin: 0 0 4px; font-size: 22px; } .desc { margin: 0 0 16px; color: var(--mut); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--mut); } .f.wide { grid-column: 1 / -1; } .f.ch { margin-bottom: 12px; max-width: 520px; }
.f small { color: var(--mut); opacity: .8; }
input[type=text], input[type=number], select, textarea { width: 100%; padding: 9px 11px; font: inherit; color: var(--fg); background: #0b1226; border: 2px solid var(--line); border-radius: 0; }
textarea { min-height: 120px; resize: vertical; } input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky); outline-offset: 1px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
button { font: inherit; font-weight: 700; padding: 9px 14px; color: var(--fg); background: #0b1226; border: 2px solid var(--line); cursor: pointer; white-space: nowrap; }
button:hover { border-color: var(--mut); } button:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
button.pri { color: var(--ink); background: var(--mint); border-color: var(--ink); box-shadow: 3px 3px 0 #2a7a63; } button[aria-pressed=false] { color: var(--mut); } button:disabled { opacity: .4; cursor: not-allowed; }
.err { min-height: 1.4em; margin: 8px 0 0; color: var(--red); } .note { margin: 6px 0 0; font-size: 13px; color: var(--mut); }
.list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 16px; }
.list a { display: block; padding: 12px; color: var(--fg); text-decoration: none; background: #0b1226; border: 2px solid var(--line); } .list a:hover { border-color: var(--mint); } .list b { display: block; } .list span { font-size: 13px; color: var(--mut); }

.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.btns { display: flex; flex-wrap: wrap; gap: 6px; } .btns.sys { margin-left: auto; } .btns.sys button { padding: 7px 10px; font-size: 13px; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; font-size: 13px; background: #0b1226; border: 2px solid var(--line); }
.status i { width: 8px; height: 8px; background: var(--mut); } .status.open i { background: var(--mint); } .status.demo i { background: var(--gold); } .status.offline i, .status.closed i, .status.notfound i { background: var(--red); }
.status b { font-weight: 600; }

.stage { position: relative; container-type: inline-size; overflow: hidden; background: linear-gradient(#14224a, #0f1a3a); border: 2px solid var(--line); }
.stage:fullscreen { display: flex; flex-direction: column; justify-content: center; border: 0; }
.hd { display: flex; align-items: baseline; gap: 1.4cqw; padding: 1.6cqw 2.2cqw 0; }
.hd b { font-size: max(13px, 1.7cqw); color: var(--gold); } .hd b::before { content: ""; display: inline-block; width: .9cqw; height: .9cqw; margin-right: .8cqw; background: var(--red); }
.hd span { font-size: max(12px, 1.5cqw); color: var(--mut); } .hd span em { font-style: normal; font-weight: 800; color: var(--mint); }
.body { position: relative; min-height: 40cqw; padding: 2cqw 2.2cqw 3cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.big { font-size: max(22px, 5.6cqw); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; } .sub { margin-top: .8cqw; font-size: max(13px, 1.9cqw); color: var(--mut); }
.huge { font-size: max(48px, 15cqw); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); } .mint { color: var(--mint); } .red { color: var(--red); } .sky { color: var(--sky); }
.spr { image-rendering: pixelated; image-rendering: crisp-edges; }
.toast { position: absolute; top: 5.6cqw; left: 50%; z-index: 5; translate: -50% 0; padding: .5cqw 1.6cqw; white-space: nowrap; font-weight: 800; font-size: max(12px, 1.7cqw); color: var(--ink); background: var(--mint); border: .25cqw solid var(--ink); animation: pop .25s steps(4); }
.toast.gold { background: var(--gold); color: #3a2600; }
@keyframes pop { from { scale: .6; opacity: 0; } }
.pop { animation: pop .3s steps(5); }
.below { margin-top: 12px; } .below:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip { padding: 4px 9px; font-size: 13px; background: var(--navy); border: 2px solid var(--line); } .chip.on { color: var(--ink); background: var(--gold); border-color: var(--gold); font-weight: 700; } .chip.out { color: var(--mut); text-decoration: line-through; opacity: .6; }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; } .board > div { padding: 12px 14px; background: var(--navy); border: 2px solid var(--line); } .board h3 { margin: 0 0 6px; font-size: 14px; color: var(--mut); } .board ol, .board ul { margin: 0; padding-left: 22px; } .board li b { color: var(--gold); margin-left: 6px; } .board .empty { color: var(--mut); list-style: none; margin-left: -22px; }
img.bdg { height: 1.1em; width: auto; vertical-align: -.18em; margin-right: .3em; }

/* 폭탄 돌리기 */
.bombspr { width: 15cqw; height: 15cqw; margin-bottom: 1.5cqw; } .bombspr.tick { animation: wob var(--sp, .5s) steps(2) infinite; } .bombspr.boom { animation: boom .5s steps(6) both; }
@keyframes wob { 50% { rotate: 7deg; scale: 1.08; } } @keyframes boom { 0% { scale: 1; } 50% { scale: 2.2; filter: brightness(4); } 100% { scale: 0; opacity: 0; } }
/* 줄다리기 */
.tug { width: 100%; } .tug .teams { display: flex; justify-content: space-between; gap: 2cqw; } .tug .team { flex: 1; padding: 1.4cqw; border: .3cqw solid; text-align: left; } .tug .team.b { text-align: right; }
.tug .team.a { border-color: var(--sky); } .tug .team.b { border-color: var(--red); } .tug .team b { display: block; font-size: max(18px, 3.6cqw); } .tug .team.a b { color: var(--sky); } .tug .team.b b { color: var(--red); } .tug .team span { font-size: max(12px, 1.6cqw); color: var(--mut); }
.rope { position: relative; height: 5cqw; margin: 3.5cqw 0 2cqw; } .rope::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: .7cqw; translate: 0 -50%; background: repeating-linear-gradient(90deg, #c9a36b 0 1.2cqw, #8a6a3c 1.2cqw 2.4cqw); }
.rope .mid { position: absolute; left: 50%; top: 0; bottom: 0; width: .3cqw; translate: -50% 0; background: var(--mut); } .rope .end { position: absolute; top: 0; bottom: 0; width: .5cqw; } .rope .end.a { left: 5%; background: var(--sky); } .rope .end.b { right: 5%; background: var(--red); }
.rope .knot { position: absolute; top: 50%; width: 3.4cqw; height: 3.4cqw; translate: -50% -50%; background: var(--gold); border: .4cqw solid #3a2600; transition: left .25s steps(5); }
/* 채팅 경마 */
.race { width: 100%; display: flex; flex-direction: column; gap: 1cqw; } .lane { display: flex; align-items: center; gap: 1cqw; } .lane .no { flex: none; width: 3.4cqw; height: 3.4cqw; display: grid; place-items: center; font-weight: 900; font-size: max(13px, 2cqw); color: var(--ink); }
.lane .nm { flex: none; width: 13cqw; text-align: left; font-weight: 700; font-size: max(12px, 1.8cqw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane .track { position: relative; flex: 1; height: 5.2cqw; background: rgba(255,255,255,.05); border-bottom: .25cqw dashed var(--line); border-right: .6cqw solid var(--fg); } .lane .runner { position: absolute; top: .4cqw; height: 4.4cqw; width: 6.2cqw; transition: left .2s steps(4); }
/* 보스 레이드 */
.boss { width: 100%; } .bossspr { width: 17cqw; height: 11.4cqw; } .bossspr.hit { animation: hit .15s steps(2); } .bossspr.dead { animation: boom .7s steps(7) both; } @keyframes hit { 50% { translate: 1cqw 0; filter: brightness(3); } }
.hp { position: relative; height: 3.4cqw; margin: 1.6cqw auto .6cqw; max-width: 70cqw; background: #0b1226; border: .3cqw solid var(--fg); } .hp i { position: absolute; inset: 0 auto 0 0; background: var(--red); transition: width .2s steps(4); } .hp b { position: relative; line-height: 2.8cqw; font-size: max(11px, 1.6cqw); }
.dmg { position: absolute; z-index: 3; font-weight: 900; font-size: max(14px, 2.6cqw); color: var(--gold); pointer-events: none; animation: rise .8s steps(8) both; } .dmg.crit { color: var(--red); font-size: max(18px, 4cqw); } @keyframes rise { to { translate: 0 -6cqw; opacity: 0; } }
/* 업다운 */
.range { position: relative; width: 80%; height: 2.4cqw; margin: 2cqw auto 0; background: #0b1226; border: .25cqw solid var(--line); } .range i { position: absolute; top: 0; bottom: 0; background: var(--mint); transition: all .25s steps(5); }
/* 빙고 */
.bingo { display: grid; gap: .8cqw; width: min(100%, 62cqw); } .bingo .c { aspect-ratio: 1.5; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .4cqw; background: #0b1226; border: .25cqw solid var(--line); font-weight: 800; font-size: max(12px, 2.3cqw); overflow: hidden; } .bingo .c small { font-weight: 600; font-size: max(10px, 1.2cqw); opacity: .8; }
.bingo .c.on { color: var(--ink); background: var(--mint); border-color: var(--mint); animation: pop .3s steps(5); } .bingo .c.line { background: var(--gold); border-color: var(--gold); color: #3a2600; }
/* 이상형 월드컵 */
.wc { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2cqw; align-items: stretch; } .wc .side { position: relative; padding: 2.4cqw 1.6cqw; border: .35cqw solid var(--line); overflow: hidden; } .wc .side.a { border-color: var(--sky); } .wc .side.b { border-color: var(--red); }
.wc .side i { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.08); transition: height .25s steps(5); } .wc .side.a i { background: rgba(127,215,255,.18); } .wc .side.b i { background: rgba(255,107,107,.18); }
.wc .side > * { position: relative; } .wc .side em { font-style: normal; font-weight: 900; font-size: max(13px, 2cqw); } .wc .side.a em { color: var(--sky); } .wc .side.b em { color: var(--red); } .wc .side b { display: block; font-size: max(18px, 4.4cqw); line-height: 1.2; overflow-wrap: anywhere; } .wc .side span { font-size: max(12px, 1.9cqw); color: var(--mut); }
.wc .vs { align-self: center; font-weight: 900; font-size: max(16px, 3.2cqw); color: var(--gold); } .wc .side.win { border-color: var(--gold); box-shadow: 0 0 0 .4cqw var(--gold) inset; } .wc .side.lose { opacity: .35; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.chip.ok { color: var(--ink); background: var(--mint); border-color: var(--mint); font-weight: 700; } .chip.bad { color: #fff; background: #b23a3a; border-color: var(--red); font-weight: 700; }
.bingo .c { position: relative; } .bingo .c::before { content: ""; position: absolute; left: 0; bottom: 0; height: .5cqw; width: var(--f, 0%); background: var(--mint); } .bingo .c.on::before { display: none; } .bingo .c > * { position: relative; }
/* 후원 룰렛 */
.dr { width: 100%; display: flex; align-items: center; gap: 3cqw; text-align: left; } .dr .wheel { position: relative; flex: none; width: 42cqw; max-width: 560px; } .dr .wheel svg { display: block; width: 100%; height: auto; border-radius: 50%; }
.dr .ptr { position: absolute; left: 50%; top: -1.2cqw; width: 0; height: 0; translate: -50% 0; border-left: 1.5cqw solid transparent; border-right: 1.5cqw solid transparent; border-top: 3cqw solid #fff; filter: drop-shadow(0 .3cqw 0 #0b1020); }
.drside { flex: 1; min-width: 0; } .drside .big { font-size: max(22px, 5cqw); } .rrbox { margin-top: 1.6cqw; } .rrbox:empty { display: none; } .rrbox { padding: 1.2cqw 1.6cqw; border: .3cqw solid var(--gold); } .rrbox b { display: block; font-size: max(18px, 3.4cqw); color: var(--gold); font-variant-numeric: tabular-nums; } .rrbox span { font-size: max(12px, 1.7cqw); color: var(--fg); }
.drlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 14px; } .drlist li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); } .drlist .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .drlist .meta { margin-left: auto; flex: none; font-size: 13px; color: var(--mut); } .drlist button { padding: 3px 8px; font-size: 12px; font-weight: 600; } .drlist .empty { color: var(--mut); border: 0; }
.dradd { display: flex; gap: 6px; margin-top: 10px; max-width: 420px; }
@media (max-width: 640px) { .dr { flex-direction: column; text-align: center; } .dr .wheel { width: 80cqw; } }
.credit { margin-top: 1.4cqw; display: grid; grid-template-columns: auto 1fr; gap: .5cqw 1.2cqw; align-items: baseline; font-size: max(12px, 1.8cqw); } .credit:empty { display: none; } .credit span { color: var(--mut); white-space: nowrap; } .credit b { color: var(--mint); overflow-wrap: anywhere; }
.dr .ptr2 { position: absolute; left: 50%; top: -6%; width: 10.5%; height: auto; margin-left: -5.25%; transform-origin: 50% 4%; image-rendering: pixelated; z-index: 3; pointer-events: none; filter: drop-shadow(0 0 1.5px rgba(255,255,255,.75)) drop-shadow(0 .3cqw 0 rgba(0,0,0,.45)); } .dr .wheel { margin-top: 3cqw; }
.dr .ptr2[data-tier="pink"] { filter: drop-shadow(0 0 .5cqw rgba(255,105,200,.9)) drop-shadow(0 .3cqw 0 rgba(0,0,0,.45)); }
.dr .ptr2[data-tier="fire"] { animation: fireglow .5s steps(4) infinite; }
@keyframes fireglow { 0% { filter: drop-shadow(0 -.3cqw .5cqw #ffb020) drop-shadow(0 0 1cqw #ff3d00); } 50% { filter: drop-shadow(0 -.7cqw .8cqw #ffd54a) drop-shadow(0 0 1.6cqw #ff5a1f); } 100% { filter: drop-shadow(0 -.4cqw .6cqw #ff9d1e) drop-shadow(0 0 1.1cqw #ff2a00); } }
.tierline { margin-top: 1.6cqw; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4cqw 1cqw; font-size: max(12px, 1.6cqw); color: var(--mut); } .tierline b { padding: .2cqw .9cqw; font-size: max(12px, 1.6cqw); color: #3a2600; background: var(--gold); } .tierline b.pink { color: #4a0030; background: #ff7ad1; } .tierline b.fire { color: #fff; background: #ff4a1f; }
