/* NEON SIGN — 해 질 녘 젖은 거리. 하늘빛 그라데이션, 바닥에 번지는 네온, 하얀 링 하나.
   한 가지 테마(황혼)로 고정한다. */
:root {
  color-scheme: dark;
  --bg: #1C2238;
  --bg2: #232A47;
  --glass: rgba(30, 37, 66, .58);
  --glass2: rgba(46, 54, 92, .62);
  --glass3: rgba(255, 255, 255, .07);
  --rim: rgba(255, 255, 255, .14);
  --rim2: rgba(255, 255, 255, .28);
  --ink: #F5F6FF;
  --ink2: #B8BEDC;
  --ink3: #7F87AD;
  --line: rgba(255, 255, 255, .10);
  --pk: #FF4FA3;
  --cy: #4FE3FF;
  --peach: #F6C6A6;
  --vi: #B9A8FF;
  --ok: #5BF0A8;
  --bad: #FF6B8A;
  --dusk: linear-gradient(180deg, #5A5F98 0%, #B69AB8 55%, #F5C7A6 100%);
  --neon: linear-gradient(90deg, #4FE3FF, #B9A8FF 50%, #FF4FA3);
  --shadow: 0 18px 40px rgba(6, 8, 24, .35);
  --r: 22px;
  --f-logo: "Unbounded", "IBM Plex Sans KR", system-ui, sans-serif;
  --f-body: "IBM Plex Sans KR", "M PLUS 1p", -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
html, body { margin: 0; height: 100%; }
button, .tab, .chip { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* 방 안에서는 화면 전체를 고정 (아이폰 튕김·갤럭시 주소창 때문에 들썩이지 않게) */
html.in-room, body.in-room { overflow: hidden; overscroll-behavior: none; }
body.in-room { position: fixed; inset: 0; width: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; color: inherit; font-size: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; opacity: .38; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 1.5px solid #fff; outline-offset: 2px; }
.hidden { display: none !important; }
.grow { flex: 1; }

/* 배경 장면 */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: #1C2238; }
#city { display: block; }
.scene-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 22, 44, .25) 0%, rgba(18, 22, 44, 0) 22%, rgba(18, 22, 44, 0) 55%, rgba(18, 22, 44, .6) 78%, rgba(18, 22, 44, .9) 100%); transition: background .6s; }
.ring-fx { position: absolute; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .95); box-shadow: 0 0 18px rgba(255, 255, 255, .35), inset 0 0 14px rgba(255, 255, 255, .2); animation: breathe 4.5s ease-in-out infinite; transition: opacity .6s; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.06); opacity: .75; } }
body.in-room .scene-veil { background: linear-gradient(180deg, rgba(20, 24, 48, .55), rgba(16, 20, 40, .82) 45%, rgba(14, 17, 34, .94)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
body.in-room .ring-fx { opacity: 0; }

.screen { position: relative; z-index: 1; min-height: 100dvh; max-width: 520px; margin: 0 auto; }

.glass { background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); border: 1px solid var(--rim); border-radius: var(--r); box-shadow: var(--shadow); }
.chip { background: rgba(20, 24, 48, .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--rim); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; appearance: none; -webkit-appearance: none; color: var(--ink); }
.chip option { color: #111; }
.btn { width: 100%; border-radius: 999px; padding: 15px 16px; font-size: 15.5px; font-weight: 600; letter-spacing: .2px; transition: transform .1s, background .2s; }
.btn:active { transform: scale(.98); }
.btn-holo { background: #fff; color: #161B33; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12), 0 10px 30px rgba(255, 79, 163, .25); }
.btn-glass { background: var(--glass3); border: 1px solid var(--rim2); width: auto; padding: 0 18px; color: var(--ink); }
.btn-danger { background: rgba(255, 107, 138, .12); color: #FF9BB0; border: 1px solid rgba(255, 107, 138, .45); }
.btn-soft { background: var(--glass3); border: 1px solid var(--rim); color: var(--ink); }
.btn.slim { padding: 11px 14px; font-size: 13.5px; }

.av { --s: 54px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #F8E3D6, #C9B6D9 70%, #8E8FC4); border: 1.5px solid rgba(255, 255, 255, .85); overflow: hidden; display: grid; place-items: center; position: relative; }
.av img, .av svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.av svg { width: 88%; height: 88%; margin-top: 12%; }
.av-lg { --s: 60px; } .av-xl { --s: 104px; border-width: 2.5px; } .av-sm { --s: 28px; border-width: 1px; }

/* ───────── 로비 ───────── */
#lobby { padding: calc(14px + var(--safe-t)) max(16px, env(safe-area-inset-right, 0px)) calc(28px + var(--safe-b)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 14px; }
.lobby-top { display: flex; justify-content: flex-end; gap: 8px; }
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 55svh; padding-top: 3svh; }
.logo { margin: 0; font-family: var(--f-logo); font-weight: 300; font-size: 34px; letter-spacing: 10px; line-height: 1; display: flex; gap: 14px; padding-left: 10px; color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, .35); }
.logo span + span { color: #FFE3F1; text-shadow: 0 0 6px #FF4FA3, 0 0 18px rgba(255, 79, 163, .8), 0 0 40px rgba(255, 79, 163, .45); animation: flick 7s infinite; }
@keyframes flick { 0%, 91%, 100% { opacity: 1; } 92% { opacity: .4; } 93% { opacity: 1; } 95% { opacity: .6; } 96% { opacity: 1; } }
.tagline { margin: 12px 0 0; color: rgba(255, 255, 255, .86); font-size: 14px; letter-spacing: .3px; text-wrap: balance; text-shadow: 0 1px 10px rgba(20, 20, 50, .5); }
.feature-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.feature-row span { font-size: 11.5px; padding: 5px 11px; border-radius: 999px; background: rgba(20, 24, 48, .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--rim); color: var(--ink2); }

.me-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; text-align: left; width: 100%; }
.me-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.me-info b { font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-info small { color: var(--ink2); font-size: 12px; }
.pencil { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rim2); display: grid; place-items: center; color: #fff; }

.join-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.invite { text-align: center; border-radius: 16px; padding: 10px; border: 1px solid var(--rim2); background: var(--glass3); }
.invite small { color: var(--ink2); }
.invite b { display: block; font-family: var(--f-mono); font-size: 28px; letter-spacing: 8px; color: #fff; text-shadow: 0 0 14px rgba(79, 227, 255, .6); }
.or { text-align: center; color: var(--ink3); font-size: 11.5px; display: flex; align-items: center; gap: 10px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; border: 1px solid var(--rim); border-radius: 999px; padding: 13px; font-family: var(--f-mono); font-size: 18px; text-transform: uppercase; letter-spacing: 5px; text-align: center; background: rgba(10, 12, 30, .3); color: #fff; outline: none; }
.code-row input::placeholder { color: var(--ink3); letter-spacing: 3px; }
.code-row input:focus { border-color: rgba(255, 255, 255, .6); }
.lobby-foot { text-align: center; color: var(--ink3); font-size: 12px; line-height: 1.6; margin: 2px 0 0; white-space: pre-line; }

/* ───────── 방 ───────── */
#room { height: var(--app-h, 100%); display: flex; flex-direction: column; overflow: hidden; }
.room-head { display: flex; align-items: center; gap: 8px; padding: calc(6px + var(--safe-t)) max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px)); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--glass3); border: 1px solid var(--rim2); font-size: 18px; line-height: 1; display: grid; place-items: center; flex: none; color: #fff; }
.icon-btn.small { width: 34px; height: 34px; font-size: 14px; }
.head-mid { display: flex; flex-direction: column; gap: 3px; }
.mini-logo { font-family: var(--f-logo); font-weight: 300; font-size: 9.5px; letter-spacing: 4px; color: rgba(255, 255, 255, .7); }
.code-chip { display: flex; align-items: baseline; gap: 6px; padding: 0; color: #fff; }
.code-chip span { font-family: var(--f-mono); font-size: 16px; letter-spacing: 4px; }
.code-chip small { font-size: 10px; color: var(--ink3); }
.lock-chip { font-size: 12px; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255, 107, 138, .5); }
.net-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink3); }
.net-dot.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.net-dot.wait { background: var(--peach); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.count { font-family: var(--f-mono); font-size: 12px; color: var(--ink2); }

/* 무대 */
.stage { margin: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); border: 1px solid var(--rim); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; flex: none; }
.stage.collapsed { position: absolute; left: -9999px; width: 360px; }
.tabs { display: flex; gap: 2px; padding: 2px 2px 0; border-bottom: 1px solid var(--line); }
.tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 7px 4px 8px; white-space: nowrap; font-size: 12.5px; color: var(--ink3); position: relative; letter-spacing: .3px; }
.tab b { font-weight: 500; }
.tab span { font-size: 11px; }
.tab.on { color: #fff; }
.tab.on::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .8), 0 0 18px rgba(255, 79, 163, .6); }
.tab .dot { position: absolute; top: 7px; right: 14%; width: 6px; height: 6px; border-radius: 50%; background: var(--pk); box-shadow: 0 0 8px var(--pk); display: none; }
.tab.new .dot { display: block; }
.tab-fold { width: 34px; flex: none; color: var(--ink3); }
/* 무대 높이 고정: 플레이어(16:9) + 제목 + 재생바 + 버튼 */
.panes { padding: 6px 2px 2px; height: calc(var(--player-h, 190px) + 140px); position: relative; overflow: hidden; }
.pane { height: 100%; }
.pane.parked { position: absolute; left: -9999px; top: 0; width: 340px; }
.pane[data-pane=board], .pane[data-pane=site] { overflow-y: auto; }

/* 같이보기 */
.pane.chan.empty .ch-full, .pane.chan:not(.empty) .ch-empty { display: none; }
.ch-empty { height: 100%; display: flex; align-items: center; }
.stage-view { height: var(--player-h, 190px); position: relative; }
.stage-view .player-frame { height: 100%; }
.stage-view .player-wrap { aspect-ratio: auto; height: 100%; }
.filevid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #05060F; display: none; }
.pane.src-file .filevid { display: block; }
.pane.src-file .player-wrap > div, .pane.src-file .player-wrap iframe { visibility: hidden; }
/* 음악 칸: 내 파일이면 레코드판, 유튜브 링크면 유튜브 화면 */
.music-art { display: none; position: absolute; inset: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--rim); background: radial-gradient(120% 90% at 50% 100%, rgba(255, 79, 163, .25), transparent 60%), linear-gradient(180deg, #232A4D, #141831); align-items: center; justify-content: center; }
.pane[data-pane=music].src-file .music-art { display: flex; }
.pane[data-pane=music].src-file .player-frame { visibility: hidden; }
.disc { width: calc(var(--player-h, 190px) * .72); height: calc(var(--player-h, 190px) * .72); border-radius: 50%; position: relative; z-index: 1; background: repeating-radial-gradient(circle, #0D1024 0 2px, #1A1F3C 2px 4px); border: 2px solid #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 0 30px rgba(255, 255, 255, .25); display: grid; place-items: center; }
.disc::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20%, rgba(255, 255, 255, .12) 25%, transparent 32% 70%, rgba(255, 255, 255, .08) 75%, transparent 82%); }
.disc .label { width: 34%; height: 34%; border-radius: 50%; background: linear-gradient(135deg, #FF4FA3, #B9A8FF 55%, #4FE3FF); display: grid; place-items: center; font-family: var(--f-logo); font-size: 18px; color: #fff; box-shadow: inset 0 0 0 4px rgba(13, 16, 36, .35); }
.pane[data-pane=music].playing .disc { animation: spin 4s linear infinite; }
.viz { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; opacity: .75; }
.add-strip { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; border-radius: 18px; border: 1px dashed var(--rim2); color: var(--ink); }
.add-strip b { display: block; font-weight: 600; font-size: 14.5px; }
.add-strip small { display: block; font-size: 11.5px; color: var(--ink2); }
.add-strip > span:nth-child(2) { flex: 1; min-width: 0; }
.strip-ico { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; color: #fff; display: grid; place-items: center; font-size: 16px; box-shadow: 0 0 14px rgba(255, 255, 255, .3); flex: none; }
.plus { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #161B33; flex: none; }

.player-frame { position: relative; border-radius: 16px; overflow: hidden; background: #0C0F22; border: 1px solid var(--rim); max-width: 100%; }
.player-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; }
.player-wrap iframe, #yt { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.player-shield { position: absolute; inset: 0; }
.tap-sync { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(16, 20, 40, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; }
.tap-sync span { width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; font-size: 20px; box-shadow: 0 0 22px rgba(255, 255, 255, .45); animation: breathe 2s infinite; }
.player-msg { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(16, 20, 40, .9); border: 1px solid var(--rim); border-radius: 12px; padding: 8px 10px; font-size: 12.5px; text-align: center; }

.now { display: flex; align-items: center; gap: 8px; padding: 7px 2px 0; }
.now-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.now-txt b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-txt small { font-size: 11px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kind-badge { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 1.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(79, 227, 255, .55); color: var(--cy); flex: none; }
.pane.music .kind-badge { border-color: rgba(255, 79, 163, .6); color: #FF8CC4; }
.q-file { width: 60px; height: 34px; border-radius: 8px; flex: none; background: var(--dusk); display: grid; place-items: center; color: #fff; }
.up-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.up-item { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 12.5px; overflow: hidden; }
.up-item i { position: absolute; left: 0; bottom: 0; height: 2px; background: #fff; box-shadow: 0 0 8px #fff; transition: width .2s; }
.up-item .up-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-item .up-st { flex: none; font-family: var(--f-mono); color: var(--ink2); }
.up-item.err .up-st { color: #FF9BB0; }
.vinyl { display: none; width: 36px; height: 36px; border-radius: 50%; flex: none; background: repeating-radial-gradient(#0F1226 0 2px, #1E2340 2px 4px); position: relative; overflow: hidden; border: 1.5px solid #fff; }
.vinyl img { position: absolute; inset: 11px; width: 12px; height: 12px; border-radius: 50%; object-fit: cover; background: var(--pk); }
.pane.music .vinyl { display: block; }
.pane.music.playing .vinyl { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.seek-row { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink2); padding: 2px; }
.seek-row span { width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 26px; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 99px; background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255, 255, 255, .18) var(--p, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%; background: transparent; border: 2.5px solid #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .55); }
input[type=range]:disabled { opacity: .4; }
input[type=range]::-moz-range-track { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .18); }
input[type=range]::-moz-range-progress { height: 3px; border-radius: 99px; background: #fff; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: transparent; border: 2.5px solid #fff; }

.ctrl-row { display: flex; align-items: center; justify-content: space-between; padding: 2px 0 0; }
.ctrl { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rim2); font-size: 14px; display: grid; place-items: center; position: relative; color: #fff; }
.ctrl.small { width: 38px; height: 38px; font-size: 11px; font-family: var(--f-mono); border-color: var(--rim); color: var(--ink2); }
.ctrl.big { width: 52px; height: 52px; border: 3px solid #fff; font-size: 18px; box-shadow: 0 0 20px rgba(255, 255, 255, .35), inset 0 0 12px rgba(255, 255, 255, .15); }
.ctrl em { position: absolute; top: -5px; right: -5px; font-style: normal; font-family: var(--f-mono); font-size: 9.5px; background: var(--pk); color: #fff; border-radius: 99px; min-width: 18px; height: 18px; line-height: 18px; padding: 0 4px; box-shadow: 0 0 10px rgba(255, 79, 163, .6); }
.ctrl em:empty { display: none; }
.ctl-note { text-align: center; font-size: 11px; color: var(--ink3); padding-top: 4px; }

.mini-bar { margin: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--rim); border-radius: 999px; text-align: left; flex: none; color: #fff; }
.mini-bar b { flex: 1; min-width: 0; font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-eq { display: flex; gap: 2px; align-items: flex-end; height: 13px; }
.mini-eq i { width: 2.5px; background: #fff; border-radius: 2px; height: 30%; }
.mini-bar.playing .mini-eq i { animation: eq .8s ease-in-out infinite; }
.mini-eq i:nth-child(2) { animation-delay: .2s !important; } .mini-eq i:nth-child(3) { animation-delay: .4s !important; }
@keyframes eq { 50% { height: 100%; } }

/* 칠판 */
.board-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 2px 8px; }
.pen-colors, .pen-sizes { display: flex; gap: 6px; }
.pen-colors button { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.pen-colors button.on { box-shadow: 0 0 0 2px var(--bg2), 0 0 0 3.5px #fff; }
.pen-sizes button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rim); display: grid; place-items: center; }
.pen-sizes button i { display: block; border-radius: 50%; background: #fff; }
.pen-sizes button.on { border-color: #fff; }
.tool { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rim); font-size: 14px; color: #fff; }
.tool.on { background: #fff; color: #161B33; }
.tool.danger { color: #FF9BB0; border-color: rgba(255, 107, 138, .45); }
.board-wrap { position: relative; border-radius: 16px; overflow: hidden; height: calc(100% - 44px); margin: 0 auto; background-color: rgba(10, 13, 32, .55); background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.2px); background-size: 20px 20px; border: 1px solid var(--rim); aspect-ratio: 4 / 3; max-width: 100%; }
#board { width: 100%; height: 100%; display: block; touch-action: none; }
.board-tags { position: absolute; inset: 0; pointer-events: none; }
.board-tags span { position: absolute; font-size: 10px; padding: 2px 8px; border-radius: 99px; background: #fff; color: #161B33; transform: translate(8px, -22px); white-space: nowrap; transition: opacity .4s; }

/* 사이트 */
.site-share { display: flex; gap: 8px; }
.site-share .txt-in { flex: 1; min-width: 0; padding: 10px 14px; font-size: 14px; border-radius: 999px; }
.site-share .btn { width: auto; flex: none; }
.screen-box { position: relative; margin-top: 8px; border-radius: 14px; overflow: hidden; background: #0C0F22; aspect-ratio: 16 / 10; max-width: 100%; border: 1px solid var(--rim); }
.screen-box video { width: 100%; height: 100%; object-fit: contain; display: block; }
.screen-who { position: absolute; left: 8px; top: 8px; font-size: 10.5px; padding: 3px 9px; border-radius: 99px; background: #fff; color: #161B33; }
#screenBtn { margin-top: 8px; width: 100%; }
.site-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; max-height: 260px; overflow-y: auto; }
.site-card { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 16px; background: var(--glass3); border: 1px solid var(--line); }
.site-card.fresh { border-color: rgba(255, 79, 163, .7); box-shadow: 0 0 18px rgba(255, 79, 163, .25); }
.site-thumb { width: 52px; height: 52px; border-radius: 12px; flex: none; background: var(--dusk); object-fit: cover; display: grid; place-items: center; font-family: var(--f-mono); font-size: 18px; color: #fff; overflow: hidden; }
.site-txt { flex: 1; min-width: 0; }
.site-txt b { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-txt small { display: block; font-size: 11px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-open { flex: none; font-size: 12px; font-weight: 600; padding: 8px 13px; border-radius: 999px; background: #fff; color: #161B33; text-decoration: none; }
.site-x { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rim); font-size: 11px; color: var(--ink2); }
.empty-note { text-align: center; color: var(--ink3); padding: 14px; font-size: 12.5px; }

/* 사람들 */
.people { display: flex; gap: 8px; overflow-x: auto; min-height: 82px; padding: 10px max(12px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px)); scrollbar-width: none; flex: none; }
.people::-webkit-scrollbar { display: none; }
.person { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 60px; flex: none; position: relative; color: var(--ink); }
.person .ring { position: relative; border-radius: 50%; padding: 3px; }
/* 말할 때: 물웅덩이에 이는 파문처럼 하얀 링이 퍼진다 */
.person .ring::before, .person .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; opacity: 0; }
.person.talk .ring::before { opacity: 1; box-shadow: 0 0 14px rgba(255, 255, 255, .6); }
.person.talk .ring::after { animation: ripple 1.2s ease-out infinite; }
@keyframes ripple { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
.person .ring .av { position: relative; }
.person .nm { font-size: 11px; max-width: 66px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); }
.person.me .nm { color: #fff; font-weight: 600; }
.badge { position: absolute; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; font-size: 10px; background: #2A3156; border: 1px solid var(--rim2); padding: 0 4px; }
.badge.mute { top: 42px; right: 0; }
.badge.fmute { top: 42px; right: 0; background: var(--bad); border-color: transparent; }
.badge.fx { top: 0; right: 0; }
.badge.vol { top: 42px; left: 0; font-family: var(--f-mono); font-size: 9px; color: var(--cy); }
.badge.conn { top: 0; left: 0; }
.role { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 8px; letter-spacing: 1.5px; padding: 2px 7px; border-radius: 99px; z-index: 2; white-space: nowrap; }
.role.host { background: #fff; color: #161B33; box-shadow: 0 0 12px rgba(255, 255, 255, .55); }
.role.mod { background: transparent; border: 1px solid #fff; color: #fff; background: rgba(22, 27, 51, .85); }
.react-pop { position: absolute; font-size: 32px; pointer-events: none; animation: floatup 1.8s ease-out forwards; z-index: 5; }
@keyframes floatup { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-10px) scale(1.15); } 100% { transform: translateY(-140px) scale(1); opacity: 0; } }
.react-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }

/* 채팅 */
.chat { flex: 1; overflow-y: auto; padding: 8px max(12px, env(safe-area-inset-right, 0px)) 12px max(12px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 7px; -webkit-overflow-scrolling: touch; }
.msg { display: flex; gap: 6px; align-items: flex-end; max-width: 86%; }
.msg .col { display: flex; flex-direction: column; min-width: 0; }
.msg .who { font-size: 10.5px; color: var(--ink3); margin: 0 0 3px 4px; }
.msg .bub { background: var(--glass2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--rim); border-radius: 18px 18px 18px 6px; padding: 8px 12px; font-size: 14.5px; line-height: 1.42; word-break: break-word; white-space: pre-wrap; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg.mine .bub { background: #fff; color: #161B33; border-color: transparent; border-radius: 18px 18px 6px 18px; }
.msg.mine .who { display: none; }
.msg.cont .av, .msg.cont .who { visibility: hidden; height: 0; }
.msg.cont .av { height: 28px; }
.msg .bub.big { font-size: 34px; background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sys { align-self: center; font-size: 11px; color: var(--ink2); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; text-align: center; background: rgba(16, 20, 40, .35); }
.sys.warn { color: #FFA9BD; border-color: rgba(255, 107, 138, .35); }
.chat-hello { align-self: center; text-align: center; color: var(--ink2); font-size: 12.5px; margin: auto 0; padding: 18px; white-space: pre-line; line-height: 1.6; }
.chat-hello img { width: 56px; display: block; margin: 0 auto 8px; opacity: .9; }

/* 하단 */
.bottom { display: flex; align-items: center; gap: 8px; padding: 10px max(10px, env(safe-area-inset-right, 0px)) calc(10px + var(--safe-b)) max(10px, env(safe-area-inset-left, 0px)); background: rgba(16, 20, 40, .55); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
.mic-btn { width: 50px; height: 50px; border-radius: 50%; border: 3px solid #fff; color: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, .35); flex: none; font-size: 18px; position: relative; }
.mic-btn.off { border: 1.5px solid var(--rim2); box-shadow: none; color: var(--ink3); }
/* 꺼졌을 때: 마이크 아이콘에 빗금 */
.mic-btn .mic-slash { display: none; }
.mic-btn.off .mic-slash, .mic-btn.forced .mic-slash, .mic-btn.none .mic-slash { display: inline; stroke: var(--bad); }
.mic-btn.off .mic-ico { color: var(--ink2); }
.mic-btn.forced { border: 1.5px solid var(--bad); color: var(--bad); box-shadow: none; }
.mic-btn.none { border: 1.5px dashed var(--rim2); color: var(--ink3); box-shadow: none; }
.input-wrap { flex: 1; min-width: 0; display: flex; align-items: center; background: rgba(255, 255, 255, .08); border-radius: 999px; padding-right: 4px; border: 1px solid var(--rim); }
.input-wrap input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 11px 15px; font-size: 16px; color: #fff; }
.input-wrap input::placeholder { color: var(--ink3); }
.emo-btn { width: 34px; height: 34px; font-size: 17px; color: var(--ink2); }
.send-btn, .fx-btn { width: 42px; height: 42px; border-radius: 50%; flex: none; font-size: 15px; border: 1px solid var(--rim2); color: #fff; }
.send-btn { background: #fff; color: #161B33; border: 0; }
.fx-btn { font-size: 16px; }
.fx-btn.active { border: 2px solid var(--pk); box-shadow: 0 0 14px rgba(255, 79, 163, .55); }
.emoji-bar { position: absolute; bottom: calc(78px + var(--safe-b)); left: 10px; right: 10px; display: flex; justify-content: space-around; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--rim); border-radius: 999px; padding: 6px; z-index: 6; }
.emoji-bar button { font-size: 26px; padding: 4px; border-radius: 12px; }
.emoji-bar button:active { transform: scale(1.2); }

/* 시트 */
.sheet-back { position: fixed; inset: 0; background: rgba(8, 10, 24, .5); z-index: 20; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; z-index: 21; background: rgba(28, 34, 60, .94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-top: 1px solid var(--rim2); border-radius: 28px 28px 0 0; max-height: 88dvh; overflow-y: auto; padding: 6px max(16px, env(safe-area-inset-right, 0px)) calc(22px + var(--safe-b)) max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 -20px 50px rgba(0, 0, 0, .4); animation: up .3s cubic-bezier(.2, .9, .3, 1.05); color: var(--ink); }
@keyframes up { from { transform: translateY(100%); } }
.grab { width: 40px; height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .25); margin: 6px auto 12px; }
.sh-title { font-size: 17px; font-weight: 600; margin: 2px 0 12px; text-align: center; letter-spacing: .2px; }
.sh-head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 14px; }
.sh-head .av-xl { box-shadow: 0 0 0 5px rgba(255, 255, 255, .08), 0 0 24px rgba(255, 255, 255, .25); }
.sh-head .nm { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.sh-head small { color: var(--ink2); }
.sec { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; }
.sec.holo { border-color: rgba(255, 255, 255, .35); box-shadow: inset 0 0 20px rgba(255, 255, 255, .04); }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.sec-h b { font-weight: 600; font-size: 14.5px; }
.sec-h .lbl { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 2px; color: var(--cy); }
.sec-note { font-size: 11.5px; color: var(--ink2); margin: 2px 0 6px; line-height: 1.55; }
.row { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.row label { width: 74px; font-size: 12.5px; flex: none; color: var(--ink2); }
.row .val { width: 52px; text-align: right; font-family: var(--f-mono); font-size: 11px; color: var(--ink2); flex: none; font-variant-numeric: tabular-nums; }
.row select { flex: 1; border: 1px solid var(--rim); border-radius: 999px; padding: 8px 12px; background: rgba(255, 255, 255, .06); appearance: none; -webkit-appearance: none; font-size: 13.5px; color: #fff; }
.row select option { color: #111; }
.sec.off .row { opacity: .35; pointer-events: none; }
.tgl { width: 48px; height: 28px; border-radius: 99px; border: 1.5px solid var(--rim2); position: relative; flex: none; transition: background .15s, border-color .15s; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--ink3); transition: left .15s, background .15s; }
.tgl.on { border-color: #fff; background: rgba(255, 255, 255, .12); }
.tgl.on::after { left: 23px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .7); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.preset { border-radius: 16px; border: 1px solid var(--line); padding: 9px 2px 7px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--ink2); }
.preset span { font-size: 19px; }
.preset.on { border-color: #fff; color: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, .25), inset 0 0 12px rgba(255, 255, 255, .06); }
.big-btn-row { display: flex; gap: 8px; }
.big-btn-row .btn { font-size: 14px; padding: 12px; }
.txt-in { width: 100%; border: 1px solid var(--rim); border-radius: 16px; padding: 12px 14px; font-size: 16px; background: rgba(255, 255, 255, .06); outline: none; color: #fff; }
.txt-in::placeholder { color: var(--ink3); }
textarea.txt-in { resize: vertical; min-height: 88px; line-height: 1.5; font-size: 13.5px; font-family: var(--f-mono); }
.txt-in:focus { border-color: rgba(255, 255, 255, .6); }
.colors { display: flex; gap: 9px; flex-wrap: wrap; }
.colors button { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.colors button.on { box-shadow: 0 0 0 2px #232A47, 0 0 0 4px #fff; }
.meter { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; flex: 1; }
.meter i { display: block; height: 100%; width: 0; background: var(--neon); box-shadow: 0 0 8px rgba(255, 79, 163, .7); transition: width .06s; }
.seg { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; gap: 3px; }
.seg button { flex: 1; padding: 8px 6px; border-radius: 999px; font-size: 13px; color: var(--ink2); }
.seg button.on { background: #fff; color: #161B33; }
#eqSeg { border-radius: 18px; }
.q-item { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 14px; border: 1px solid transparent; margin-bottom: 4px; }
.q-item.cur { border-color: #fff; background: rgba(255, 255, 255, .06); box-shadow: 0 0 16px rgba(255, 255, 255, .12); }
.q-item img { width: 60px; height: 34px; object-fit: cover; border-radius: 8px; flex: none; background: var(--dusk); }
.q-item .t { flex: 1; min-width: 0; text-align: left; display: flex; gap: 10px; align-items: center; color: var(--ink); }
.q-item .t span { min-width: 0; }
.q-item .t b { display: block; font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-item .t small { font-size: 10.5px; color: var(--ink3); }
.q-item .x { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rim); flex: none; font-size: 11px; color: var(--ink2); }
.q-num { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink3); width: 20px; text-align: right; flex: none; }
.mod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mod-grid .btn { font-size: 13px; padding: 11px 8px; }
.confirm-box { margin-top: 10px; padding: 12px; border-radius: 16px; border: 1px solid rgba(255, 107, 138, .35); font-size: 12.5px; text-align: center; color: var(--ink2); line-height: 1.5; }
.confirm-box .big-btn-row { margin-top: 10px; }
.steps { margin: 0; padding-left: 22px; line-height: 1.8; font-size: 14px; }

.toast { position: fixed; left: 50%; top: calc(62px + var(--safe-t)); transform: translateX(-50%); background: #fff; color: #161B33; padding: 10px 18px; border-radius: 99px; font-size: 13px; z-index: 30; max-width: 88vw; text-align: center; animation: fade .2s; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

.gone { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: rgba(14, 17, 34, .75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); text-align: center; }
.gone .glass { padding: 26px 20px; max-width: 340px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.gone img { width: 80px; opacity: .85; }
.gone b { font-size: 17px; }
.gone p { margin: 0; color: var(--ink2); font-size: 13px; line-height: 1.55; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 560px) { #room { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

/* 메시지 */
.dm-chip { display: inline-flex; align-items: center; gap: 5px; position: relative; }
.dm-btn { position: relative; font-size: 16px; }
.dm-badge { position: absolute; top: -4px; right: -4px; font-style: normal; font-family: var(--f-mono); font-size: 9.5px; min-width: 17px; height: 17px; line-height: 17px; padding: 0 4px; border-radius: 99px; background: var(--pk); color: #fff; box-shadow: 0 0 10px rgba(255, 79, 163, .7); text-align: center; }
.dm-badge:empty { display: none; }
.dm-chip .dm-badge { position: static; }
.dm-list { display: flex; flex-direction: column; gap: 2px; }
.dm-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 16px; text-align: left; color: var(--ink); width: 100%; }
.dm-row:active { background: rgba(255, 255, 255, .05); }
.dm-row .t { flex: 1; min-width: 0; }
.dm-row .t b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-row .t small { display: block; font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-row .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.dm-row .r time { font-family: var(--f-mono); font-size: 10px; color: var(--ink3); }
.dm-row .r em { font-style: normal; font-family: var(--f-mono); font-size: 10px; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 99px; background: var(--pk); color: #fff; text-align: center; }
.dm-row.blocked { opacity: .45; }
.dm-keep { text-align: center; font-size: 11px; color: var(--ink3); margin: 10px 0 2px; }
.sheet.tall { height: 86dvh; display: flex; flex-direction: column; padding-bottom: 0; overflow: hidden; }
.sheet.tall #sheetBody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dm-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dm-head .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-head .nm small { display: block; font-weight: 400; font-size: 10.5px; color: var(--ink3); }
.dm-msgs { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 12px 2px; }
.dm-day { align-self: center; font-family: var(--f-mono); font-size: 10px; color: var(--ink3); padding: 6px 0 2px; letter-spacing: 1px; }
.dm-m { display: flex; flex-direction: column; max-width: 80%; }
.dm-m.mine { align-self: flex-end; align-items: flex-end; }
.dm-m .bub { background: var(--glass2); border: 1px solid var(--rim); border-radius: 18px 18px 18px 6px; padding: 8px 12px; font-size: 14.5px; line-height: 1.42; white-space: pre-wrap; word-break: break-word; }
.dm-m.mine .bub { background: #fff; color: #161B33; border-color: transparent; border-radius: 18px 18px 6px 18px; }
.dm-m.fail .bub { opacity: .5; }
.dm-m time { font-family: var(--f-mono); font-size: 9.5px; color: var(--ink3); margin: 2px 6px 0; }
.dm-m .err { font-size: 10.5px; color: #FF9BB0; margin: 2px 6px 0; }
.dm-input { display: flex; gap: 8px; align-items: center; padding: 10px 0 calc(12px + var(--safe-b)); border-top: 1px solid var(--line); }
.dm-input input { flex: 1; min-width: 0; border: 1px solid var(--rim); border-radius: 999px; padding: 11px 15px; font-size: 16px; background: rgba(255, 255, 255, .06); color: #fff; outline: none; }
.dm-input input::placeholder { color: var(--ink3); }
.dm-menu { display: flex; gap: 8px; padding: 10px 0 0; }
.dm-menu .btn { font-size: 13px; padding: 10px; }
.dm-more { align-self: center; font-size: 11.5px; color: var(--ink2); border: 1px solid var(--rim); border-radius: 99px; padding: 5px 12px; }
.toast.clickable { cursor: pointer; }

.person .av { --s: 46px; }
.badge.mute, .badge.fmute, .badge.vol { top: 34px; }
.mic-btn { width: 46px; height: 46px; }
.bottom { padding-top: 8px; }
@media (max-width: 370px) { .tab b { font-size: 11.5px; } .tab span { display: none; } .ctrl { width: 38px; height: 38px; } .ctrl.small { width: 34px; height: 34px; } }
/* 재생목록 잠금 안내는 버튼 줄을 밀지 않게 플레이어 위에 작게 */
.ch-full { position: relative; }
.ctl-note { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap; font-size: 10.5px; padding: 4px 10px; border-radius: 99px; background: rgba(14, 17, 34, .78); border: 1px solid var(--rim); color: var(--ink2); pointer-events: none; }

/* ═════════ 윷놀이 ═════════ */
.pane[data-pane=yut] { overflow: hidden; }
.yut { height: 100%; position: relative; }
#yView { height: 100%; }
.y-load { height: 100%; display: grid; place-items: center; font-size: 34px; opacity: .5; }
.av.xs { --s: 24px; border-width: 1px; }
.av.xxs { --s: 16px; border-width: 1px; margin-left: -4px; }
.av.xxs:first-of-type { margin-left: 0; }

/* 대기실 */
.y-lobby { height: 100%; overflow-y: auto; padding: 2px 6px 8px; display: flex; flex-direction: column; gap: 8px; }
.y-hero { display: flex; align-items: baseline; gap: 8px; }
.y-hero b { font-family: var(--f-logo); font-size: 15px; letter-spacing: .5px; }
.y-hero small { color: var(--ink3); font-size: 11px; flex: 1; }
.y-w { font-size: 11px; color: var(--ink2); white-space: nowrap; }
.y-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.y-team { border-radius: 14px; padding: 7px; background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 22%, transparent), rgba(255,255,255,.03)); border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.y-team-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.y-team-h b { flex: 1; color: var(--tc); text-shadow: 0 0 10px color-mix(in srgb, var(--tc) 60%, transparent); }
.y-team-h span { font-family: var(--f-mono); font-size: 11px; color: var(--ink2); }
.y-team-m { display: flex; flex-wrap: wrap; gap: 4px; min-height: 26px; }
.y-cdot { width: 18px; height: 18px; border-radius: 50%; background: var(--tc); border: 2px solid #fff; box-shadow: 0 0 10px var(--tc); flex: none; padding: 0; }
.y-cdot:disabled { opacity: 1; border-color: rgba(255,255,255,.5); }
.y-pchip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 2px; border-radius: 99px; background: var(--glass3); font-size: 11.5px; max-width: 100%; }
.y-pchip em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80px; }
.y-solo { display: flex; flex-direction: column; gap: 6px; }
.y-solo-list { display: flex; flex-wrap: wrap; gap: 5px; }
.y-solo .y-pchip { border: 1px solid color-mix(in srgb, var(--tc) 60%, transparent); padding-left: 3px; }
.y-empty { color: var(--ink3); font-size: 11.5px; }
.y-set { display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: 14px; background: var(--glass3); border: 1px solid var(--line); }
.y-row { display: flex; align-items: center; gap: 8px; }
.y-lab { font-size: 11.5px; color: var(--ink2); width: 42px; flex: none; }
.y-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.y-chip { padding: 4px 10px; border-radius: 99px; font-size: 12px; border: 1px solid var(--rim); background: transparent; color: var(--ink2); }
.y-chip.on { background: #fff; color: #1C2238; border-color: #fff; box-shadow: 0 0 12px rgba(255,255,255,.4); font-weight: 600; }
.y-chip:disabled:not(.on) { opacity: .45; }
.y-note { font-size: 10.5px; color: var(--ink3); line-height: 1.4; }
.y-note.c { text-align: center; padding: 6px; }
.y-go { width: 100%; }

/* 판 */
.y-top { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 2px; }
.y-score { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 4px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent); font-size: 10px; min-width: 0; }
.y-score > i { width: 8px; height: 8px; border-radius: 50%; background: var(--tc); flex: none; }
.y-score b { font-family: var(--f-mono); color: var(--tc); letter-spacing: -1px; font-weight: 500; }
.y-score.on { background: color-mix(in srgb, var(--tc) 22%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--tc) 50%, transparent); }
.y-stop { margin-left: auto; font-size: 10.5px; color: var(--ink3); border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; background: none; }
.y-timer { height: 3px; margin: 2px 2px 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.y-timer i { display: block; height: 100%; width: 0; background: var(--neon); transition: width .25s linear; }
.y-timer i.low { background: var(--bad); }
.y-main { display: flex; gap: 12px; align-items: center; height: calc(100% - 33px); }
.y-board { position: relative; flex: none; border-radius: 16px; background:
  radial-gradient(circle at 50% 45%, rgba(255, 220, 190, .16), transparent 70%),
  linear-gradient(150deg, #3A3358, #24294A 60%, #2D2547); border: 1px solid var(--rim); box-shadow: inset 0 0 30px rgba(0,0,0,.35), 0 10px 26px rgba(6,8,24,.4); }
.y-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.y-svg rect, .y-svg path { fill: none; stroke: rgba(255,255,255,.22); stroke-width: .8; }
.y-svg circle { fill: #2A2F52; stroke: rgba(255,255,255,.55); stroke-width: .7; }
.y-svg circle.big { fill: #353B66; stroke: #fff; stroke-width: .9; filter: drop-shadow(0 0 1.6px rgba(255,255,255,.7)); }
.y-svg circle.start { stroke: var(--pk); filter: drop-shadow(0 0 2px var(--pk)); }
.y-st { font-size: 3.6px; fill: var(--ink3); text-anchor: middle; }
.y-toks { position: absolute; inset: 6%; }
.y-toks { inset: 0; }
/* 입체 말: 동그란 동전 위에 프사, 팀 색 테두리, 업힌 수만큼 층이 쌓임 */
.ytok { --sz: 11.5%; position: absolute; width: var(--sz); aspect-ratio: 1; transform: translate(-50%, -62%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--tc) 40%, #fff), var(--tc) 55%, color-mix(in srgb, var(--tc) 60%, #000));
  box-shadow: 0 2px 0 color-mix(in srgb, var(--tc) 55%, #000), 0 4px 0 color-mix(in srgb, var(--tc) 40%, #000), calc(var(--n) * 0px) calc(var(--n) * 2px + 4px) 0 color-mix(in srgb, var(--tc) 35%, #000), 0 calc(var(--n) * 2px + 8px) 8px rgba(0,0,0,.55);
  padding: 0; transition: left .2s cubic-bezier(.4,.1,.3,1), top .2s cubic-bezier(.4,.1,.3,1); z-index: 2; cursor: pointer; }
.ytok-face { display: block; position: absolute; inset: 10%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #F8E3D6, #C9B6D9 70%, #8E8FC4); box-shadow: inset 0 -2px 4px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.6); position: relative; }
.ytok-face img, .ytok-face svg { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ytok-face svg { width: 88%; height: 88%; margin: 12% auto 0; }
.ytok-face::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse at 32% 22%, rgba(255,255,255,.55), transparent 42%); pointer-events: none; }
.ytok-n { position: absolute; right: -14%; top: -14%; background: #fff; color: #1C2238; font-size: 9px; font-weight: 700; border-radius: 99px; padding: 0 4px; line-height: 14px; box-shadow: 0 0 0 1.5px var(--tc); }
.ytok.can { animation: yPulse 1.1s ease-in-out infinite; }
.ytok.sel { outline: 2px solid #fff; outline-offset: 2px; z-index: 4; }
.ytok.moving { z-index: 5; }
.ytok.hop { animation: yHop .22s ease-out; }
.ytok.goal { transition: transform .3s, opacity .3s; transform: translate(-50%, -140%) scale(.4); opacity: 0; }
.ytok.shake { animation: yShake .4s; }
.ytok.mini { position: relative; --sz: auto; width: 26px; transform: none; flex: none; cursor: inherit; transition: none; }
.ytok.big { position: relative; width: 52px; transform: none; }
@keyframes yPulse { 0%, 100% { filter: drop-shadow(0 0 0 transparent); } 50% { filter: drop-shadow(0 0 7px #fff); } }
@keyframes yHop { 0% { margin-top: 0; } 45% { margin-top: -9%; } 100% { margin-top: 0; } }
@keyframes yShake { 25% { margin-left: -3px; } 75% { margin-left: 3px; } }
.ydest { position: absolute; width: 12%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed #fff; box-shadow: 0 0 14px #fff, inset 0 0 10px rgba(255,255,255,.5); animation: ySpin 3s linear infinite; z-index: 3; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff; cursor: pointer; }
.ydest.goal { width: 18%; border-radius: 99px; aspect-ratio: auto; height: 9%; background: rgba(255,79,163,.35); animation: none; transform: translate(-70%, -50%); }
.ypath { position: absolute; width: 2.6%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; opacity: .55; box-shadow: 0 0 6px #fff; pointer-events: none; }
@keyframes ySpin { to { rotate: 360deg; } }
.y-side { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.y-turn { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 99px; background: color-mix(in srgb, var(--tc) 22%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 60%, transparent); font-size: 12px; }
.y-turn .av { box-shadow: 0 0 0 2px var(--tc); }
.y-turn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.y-held { display: flex; flex-wrap: wrap; gap: 4px; min-height: 28px; }
.y-hchip { min-width: 36px; padding: 4px 8px; border-radius: 9px; font-size: 13px; font-weight: 700; color: #3A2412; background: linear-gradient(180deg, #F4D9A8, #D7AE6E); border: none; box-shadow: 0 2px 0 #8C6534; }
.y-hchip:disabled { opacity: .85; }
.y-hchip.back { color: #8A1240; }
.y-hchip.on { outline: 2px solid #fff; box-shadow: 0 2px 0 #8C6534, 0 0 12px #fff; }
.y-tray { display: flex; align-items: center; gap: 2px; min-height: 32px; padding: 3px 6px; border-radius: 12px; border: 1px dashed var(--rim); flex-wrap: wrap; }
.y-tray em { font-style: normal; font-size: 10.5px; color: var(--ink3); width: 100%; order: -1; }
.y-tray.can { border-color: #fff; border-style: solid; animation: yPulse 1.1s infinite; cursor: pointer; }
.y-tray.sel { background: rgba(255,255,255,.12); }
.y-throw-btn { position: relative; border-radius: 16px; padding: 9px 8px 8px; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); border: 1px solid #fff; box-shadow: 0 0 16px rgba(255,255,255,.25); display: flex; flex-direction: column; align-items: center; gap: 4px; touch-action: none; }
.y-throw-btn b { font-size: 12.5px; }
.y-throw-btn small { font-size: 9.5px; color: var(--ink3); }
.y-throw-btn.hold { transform: scale(.96); }
.y-throw-btn:disabled { opacity: .5; }
.y-gauge { width: 100%; height: 8px; border-radius: 4px; overflow: hidden; background: linear-gradient(90deg, rgba(91,240,168,.25) 0 60%, rgba(255,107,138,.3) 60%); }
.y-gauge i { display: block; height: 100%; width: 0; background: var(--ok); border-radius: 4px; }
.y-gauge i.hot { background: linear-gradient(90deg, var(--ok) 0, #FFE36E 60%, var(--bad)); }
.y-hint { font-size: 11px; color: var(--ink2); line-height: 1.4; }
.y-win { position: absolute; inset: 0; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(circle, color-mix(in srgb, var(--tc) 35%, transparent), rgba(20,22,44,.85) 70%); z-index: 8; animation: yIn .4s; }
.y-win b { font-family: var(--f-logo); font-size: 17px; color: #fff; text-shadow: 0 0 14px var(--tc); text-align: center; }
.y-win-avs { display: flex; gap: 8px; }
@keyframes yIn { from { opacity: 0; transform: scale(.9); } }
/* 윷가락 */
.y-fx { position: absolute; inset: 0; pointer-events: none; z-index: 20; display: grid; place-items: center; }
.y-flash { position: absolute; top: 34%; padding: 6px 14px; border-radius: 99px; background: rgba(20,22,44,.85); border: 1px solid var(--rim2); font-size: 13px; font-weight: 600; animation: yFlash 1.5s forwards; white-space: nowrap; }
.y-flash.nak { color: var(--bad); border-color: var(--bad); font-size: 18px; }
.y-flash.cap { color: #FFE36E; border-color: #FFE36E; }
@keyframes yFlash { 0% { opacity: 0; transform: translateY(8px) scale(.9); } 12% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.y-throw { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(circle, rgba(20,22,44,.55), transparent 70%); transition: opacity .25s; }
.y-throw.bye { opacity: 0; }
.y-sticks { display: flex; gap: 9px; perspective: 400px; }
.ystick { --w: 16px; width: var(--w); height: 84px; border-radius: 8px; position: relative; display: block; transform-style: preserve-3d; transition: transform .2s; }
.ystick.round { background: linear-gradient(90deg, #6B4423, #A9743F 40%, #8A5A2E); box-shadow: inset 0 0 0 1px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.5); }
.ystick.flat { background: linear-gradient(180deg, #FCEBC7, #EED19B); box-shadow: inset 0 0 0 1px rgba(140,101,52,.5), 0 4px 8px rgba(0,0,0,.5); }
/* 등(둥근 면)에 새긴 X 무늬 */
.ystick.round s { position: absolute; inset: 14px 3px; background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(40,20,5,.55) 6px 7.5px), repeating-linear-gradient(-45deg, transparent 0 6px, rgba(40,20,5,.55) 6px 7.5px); border-radius: 3px; }
/* 빽도 표시가 있는 가락: 배(평평한 면)가 위면 표시가 보임 */
.ystick.flat.mark s { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%) rotate(45deg); background: #E2266E; box-shadow: 0 0 8px #FF4FA3; }
.y-sticks.tossing .ystick { animation: yToss .76s cubic-bezier(.3,.6,.5,1) both; animation-delay: calc(var(--i) * 30ms); }
.y-sticks.tossing .ystick.round, .y-sticks.tossing .ystick.flat { background: linear-gradient(90deg, #8A5A2E, #F4D9A8 50%, #8A5A2E); }
.y-sticks.tossing .ystick s { display: none; }
.y-sticks.landed .ystick { animation: yLand .25s ease-out both; animation-delay: calc(var(--i) * 40ms); }
.y-sticks.landed .ystick.out { animation: yOut .6s ease-in forwards; }
@keyframes yToss { 0% { transform: translateY(60px) rotateX(0) rotateZ(0); } 50% { transform: translateY(-70px) rotateX(540deg) rotateZ(calc((var(--i) - 1.5) * 20deg)); } 100% { transform: translateY(0) rotateX(1080deg) rotateZ(calc((var(--i) - 1.5) * 8deg)); } }
@keyframes yLand { 0% { transform: translateY(-8px); } 60% { transform: translateY(2px); } 100% { transform: rotateZ(calc((var(--i) - 1.5) * 6deg)); } }
@keyframes yOut { to { transform: translate(140px, 90px) rotateZ(160deg); opacity: 0; } }
.y-res { font-family: var(--f-logo); font-size: 30px; color: #fff; text-shadow: 0 0 16px rgba(255,255,255,.7); opacity: 0; }
.y-res.show { animation: yRes .45s cubic-bezier(.3,1.6,.5,1) forwards; }
.y-res.big { color: #FFE36E; text-shadow: 0 0 18px #FFB27A; font-size: 36px; }
.y-res.back { color: #FF8CC4; }
.y-res.nak { color: var(--bad); text-shadow: 0 0 16px var(--bad); }
@keyframes yRes { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
/* 탭 5개가 좁은 폰에서도 한 줄에 */
@media (max-width: 400px) { .tab { font-size: 11.5px; gap: 2px; padding-left: 1px; padding-right: 1px; } .tab span { font-size: 10px; } }
@media (max-width: 360px) { .tab span { display: none; } }

/* 키보드가 열렸을 때: 시트를 키보드 위로, 보이는 높이 안에 */
.sheet { bottom: var(--kb, 0px); transition: bottom .18s ease-out; }
html.kb-open .sheet { max-height: calc(var(--app-h, 100dvh) - 12px); padding-bottom: 12px; border-radius: 22px 22px 0 0; }
html.kb-open .sheet .grab { display: none; }
.paste-row { display: flex; gap: 6px; margin-bottom: 8px; }
.paste-row #pasteBtn { flex: 1; }
.paste-row #pasteClr { width: 44px; flex: none; }

.mic-btn { display: grid; place-items: center; padding: 0; }
.mic-btn .mic-ico { display: block; }

/* 플레이어 바로 옆 볼륨 버튼 */
.now .vol-btn, .vol-mute { display: grid; place-items: center; }
.vol-btn .x, .vol-mute .x { display: none; }
.vol-btn.muted .x, .vol-mute.muted .x { display: block; }
.vol-btn.muted .w1, .vol-btn.muted .w2, .vol-mute.muted .w1, .vol-mute.muted .w2 { display: none; }
.vol-btn.muted, .vol-mute.muted { color: var(--bad); }
.vol-row { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 4px; }
.vol-row .vol { flex: 1; }
.vol-mute { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rim); background: none; color: #fff; flex: none; padding: 0; }
.vol-lab { font-size: 11px; color: var(--ink2); }
.vol-lab:empty { display: none; }
.vol-v { font-family: var(--f-mono); font-size: 11px; width: 34px; text-align: right; color: var(--ink2); }
.vol-x { width: 26px; height: 26px; border: none; background: none; color: var(--ink3); flex: none; }

.y-addbot { width: 100%; }
.y-rmbot { width: 18px; height: 18px; border-radius: 50%; border: none; background: rgba(255,255,255,.15); color: var(--ink2); font-size: 10px; padding: 0; margin-left: 2px; flex: none; }
.y-pchip.bot { border-style: dashed; }

/* 대기실 방 목록 */
.rooms-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.rooms-h { display: flex; align-items: center; gap: 8px; }
.rooms-h b { font-size: 14px; }
.rooms-n { font-family: var(--f-mono); font-size: 12px; color: var(--cy); flex: 1; }
#roomsRefresh { padding: 4px 10px; }
#roomsRefresh.spin { animation: spin .5s linear; }
.room-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.room-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 16px; background: var(--glass3); border: 1px solid var(--line); text-align: left; width: 100%; }
.room-item:active { background: rgba(255,255,255,.12); }
.room-item.locked { opacity: .6; }
.room-item.full { opacity: .5; }
.av.sm { --s: 38px; }
.room-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.room-info b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-yut { font-style: normal; font-size: 10.5px; font-weight: 500; color: #FFE36E; margin-left: 4px; }
.room-now { font-size: 11.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-now.dim { color: var(--ink3); }
.room-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.room-side em { font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--ok); }
.room-side small { font-family: var(--f-mono); font-size: 10px; color: var(--ink3); letter-spacing: 1px; }
.room-empty { font-size: 12.5px; color: var(--ink3); text-align: center; padding: 14px 6px; }

/* 팔로우·차단 */
.soc-row { display: grid; grid-template-columns: 1fr 52px 1fr; gap: 8px; margin-bottom: 8px; }
.soc-row .btn { padding: 11px 6px; }
.soc-note { text-align: center; font-size: 12px; color: var(--ink2); margin: -2px 0 10px; }
.dm-seg { margin-bottom: 8px; }
.dm-seg button { font-size: 12px; padding-left: 4px; padding-right: 4px; }
.dm-seg i { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--cy); }
.dm-row.soc { cursor: default; }
.soc-btns { display: flex; gap: 6px; flex: none; }
.soc-btns .chip, .where .chip { padding: 5px 10px; font-size: 12px; }
.chip.on { background: #fff; color: #1C2238; border-color: #fff; }
.where { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.where .go { padding: 3px 9px; font-size: 11px; }
.where .here { font-size: 11px; color: var(--ok); font-weight: 500; }
.room-item.friend { border-color: rgba(255, 227, 110, .55); box-shadow: 0 0 14px rgba(255, 227, 110, .15); }
.room-fr { font-size: 11px; color: #FFE36E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 화면 공유 보기: 볼륨·전체화면 */
.scr-ctl { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 99px; background: rgba(12, 15, 34, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.scr-vol { flex: 1; display: flex; align-items: center; gap: 6px; }
.scr-vol .vol { flex: 1; }
.scr-ctl .vol-mute { width: 30px; height: 30px; }
#scrMute .x { display: none; } #scrMute.muted .x { display: block; } #scrMute.muted .w1, #scrMute.muted .w2 { display: none; } #scrMute.muted { color: var(--bad); }
.screen-box:fullscreen, .screen-box:-webkit-full-screen { aspect-ratio: auto; width: 100vw; height: 100vh; border-radius: 0; border: none; }
.scr-tip { margin-top: 4px; }

/* 음악 소스 고르기 */
.src-pick { display: flex; align-items: center; gap: 10px; }
.src-pick > span:first-child { font-size: 12.5px; color: var(--ink2); flex: none; }
.sel-wrap { flex: 1; position: relative; }
.sel-wrap select { width: 100%; appearance: none; -webkit-appearance: none; background: rgba(255,255,255,.08); border: 1px solid var(--rim2); border-radius: 14px; padding: 11px 36px 11px 14px; font-size: 15px; font-weight: 600; color: #fff; }
.sel-wrap select option { color: #111; }
.sel-wrap i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; pointer-events: none; color: var(--ink2); }
.jam-search { display: flex; gap: 8px; }
.jam-search .txt-in { flex: 1; }
.jam-tags { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 4px; scrollbar-width: none; }
.jam-tags::-webkit-scrollbar { display: none; }
.jam-tags .chip { flex: none; padding: 6px 11px; font-size: 12px; }
.jam-list { display: flex; flex-direction: column; gap: 4px; max-height: 42vh; overflow-y: auto; margin-top: 4px; }
.jam-row { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; }
.jam-row:nth-child(odd) { background: rgba(255,255,255,.03); }
.jam-art { width: 42px; height: 42px; border-radius: 9px; overflow: hidden; flex: none; background: linear-gradient(135deg, #3A3358, #24294A); display: grid; place-items: center; color: var(--ink3); }
.jam-art img { width: 100%; height: 100%; object-fit: cover; }
.jam-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jam-t b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jam-t small { font-size: 11.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jam-b { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rim2); background: none; color: #fff; flex: none; font-size: 14px; }
.jam-b.on { background: #fff; color: #1C2238; border-color: #fff; }
.jam-b:disabled { opacity: .5; }
/* 사운드클라우드: 위젯 그림(앨범 아트) 그대로 보이게 */
.scframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; }
.pane.src-sc .scframe { display: block; }
.pane.src-sc .player-wrap > div { visibility: hidden; }
.pane.src-sc .filevid { display: none; }
.disc .label { background-size: cover; background-position: center; }

/* 효과음 판 (이모지 줄 위) */
.sfx-bar { position: absolute; bottom: calc(136px + var(--safe-b)); left: 10px; right: 10px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--rim); border-radius: 20px; padding: 8px 6px; z-index: 6; }
.sfx-bar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; background: rgba(255,255,255,.04); border: none; color: var(--ink); }
.sfx-bar button span { font-size: 22px; line-height: 1; }
.sfx-bar button small { font-size: 9.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sfx-bar button:active { transform: scale(1.12); background: rgba(255,255,255,.12); }
.sfx-mute.on { background: rgba(255, 107, 138, .18); }
.jam-search .txt-in { min-width: 0; width: auto; }
.jam-search .btn { width: auto; flex: none; padding: 0 18px; }

/* 마이크 버튼: 말하면 테두리가 목소리 크기만큼 빛남 */
.mic-btn { --lv: 0; }
.mic-btn.talking { box-shadow: 0 0 0 calc(var(--lv) * 7px) rgba(91, 240, 168, .45), 0 0 calc(10px + var(--lv) * 24px) rgba(91, 240, 168, .6); border-color: var(--ok); transition: box-shadow .07s linear; }

.in-meter { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; font-size: 11.5px; color: var(--ink2); }
.in-meter i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.in-meter b { display: block; height: 100%; background: var(--ok); transition: width .3s; }

/* 플레이어 창 크기 손잡이 */
.stage-grip { flex: none; height: 18px; display: grid; place-items: center; touch-action: none; cursor: ns-resize; margin-top: -2px; }
.stage-grip i { width: 46px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.28); transition: background .15s, width .15s; }
.stage-grip.on i { background: #fff; width: 64px; box-shadow: 0 0 10px rgba(255,255,255,.6); }
.stage-grip.fold i { background: var(--pk); box-shadow: 0 0 10px var(--pk); }
body.stage-drag, body.stage-drag * { user-select: none; -webkit-user-select: none; }
body.stage-drag iframe { pointer-events: none; }

/* 잠깐 자리 비움(다른 앱으로 감) */
.person.away .ring { opacity: .45; filter: grayscale(.6); }

/* 방 제목 */
.room-title { padding: 0; background: none; border: none; text-align: left; max-width: 52vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.room-title.has { font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: 13.5px; font-weight: 600; color: #fff; }
.room-title.edit::after { content: " ✎"; color: var(--ink3); font-size: 10px; }
.title-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.title-ideas .chip { padding: 6px 11px; font-size: 12px; }
.room-host { font-size: 11px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 무대 모드 */
.ppl-sep { flex: none; align-self: center; writing-mode: vertical-rl; text-orientation: upright; font-size: 10px; letter-spacing: 1px; color: var(--ink3); padding: 6px 2px; border-right: 1px solid var(--line); margin-right: 2px; white-space: nowrap; }
.ppl-sep.stage { color: var(--ok); }
.person.listener .ring { transform: scale(.86); opacity: .85; }
.badge.hand { position: absolute; left: -2px; bottom: 18px; font-size: 16px; animation: handWave 1.2s ease-in-out infinite; transform-origin: 70% 90%; background: none; border: none; }
@keyframes handWave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-18deg); } 60% { transform: rotate(12deg); } }
/* 청중의 마이크 버튼 = 손들기 */
.mic-btn.hand .mic-ico { display: none; }
.mic-btn.hand::before { content: "✋"; font-size: 20px; filter: grayscale(.6); }
.mic-btn.hand.raised::before { filter: none; animation: handWave 1.2s ease-in-out infinite; display: inline-block; }
.mic-btn.hand { border-color: var(--rim2); box-shadow: none; }
.mic-btn.hand.raised { border-color: #FFE36E; box-shadow: 0 0 16px rgba(255, 227, 110, .5); }

.push-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px 2px; font-size: 13px; font-weight: 600; }

/* ── 짤 탭 ── */
.pic { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 6px 2px 4px; box-sizing: border-box; }
.pic-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 10px; }
.pic-empty .pic-hero { font-size: 44px; filter: drop-shadow(0 0 14px rgba(255, 79, 163, .45)); }
.pic-empty b { font-size: 15px; }
.pic-empty small { color: var(--ink2); font-size: 12px; margin-bottom: 6px; }
.pic-empty .btn { width: auto; padding: 0 22px; }
.pic-main { position: relative; flex: 1; min-height: 0; border-radius: 16px; overflow: hidden; background: rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; }
.pic-main.sticker { background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .08), rgba(0, 0, 0, .25)); }
.pic-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; animation: picIn .28s ease-out; }
.pic-main.sticker .pic-img { max-width: 70%; max-height: 80%; }
@keyframes picIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.pic-broken { color: var(--ink3); font-size: 22px; }
.pic-nav { position: absolute; top: 0; bottom: 38px; width: 22%; font-size: 30px; color: rgba(255, 255, 255, .0); background: none; border: 0; }
.pic-nav.l { left: 0; text-align: left; padding-left: 8px; } .pic-nav.r { right: 0; text-align: right; padding-right: 8px; }
.pic-main:hover .pic-nav { color: rgba(255, 255, 255, .55); }
.pic-meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; padding: 18px 10px 7px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); font-size: 11.5px; color: rgba(255, 255, 255, .88); pointer-events: none; }
.pic-meta a, .pic-meta .pic-cred { pointer-events: auto; color: rgba(255, 255, 255, .6); text-decoration: none; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
.pic-who em { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 6px; background: rgba(255, 255, 255, .16); margin-right: 2px; }
.pic-live { font-style: normal; color: #ff6fb5; font-size: 9.5px; letter-spacing: .5px; margin-left: 4px; text-shadow: 0 0 8px rgba(255, 79, 163, .8); }
.pic-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; align-items: center; }
.pic-tools .btn { width: auto; padding: 0 12px; height: 32px; font-size: 12.5px; }
.pic-tb { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 12, 30, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.pic-tb.add { font-size: 20px; background: rgba(255, 79, 163, .35); border-color: rgba(255, 79, 163, .6); box-shadow: 0 0 12px rgba(255, 79, 163, .35); }
.pic-strip { flex: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 2px; }
.pic-strip::-webkit-scrollbar { display: none; }
.pic-th { flex: none; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; padding: 0; border: 2px solid transparent; background: rgba(255, 255, 255, .06); position: relative; opacity: .7; }
.pic-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-th.on { border-color: #fff; opacity: 1; }
.pic-th.cur::after { content: ""; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: #ff4fa3; box-shadow: 0 0 6px #ff4fa3; }
.pic-th i { position: absolute; left: 2px; bottom: 2px; font-style: normal; font-size: 8px; padding: 0 3px; border-radius: 4px; background: rgba(0, 0, 0, .55); color: #fff; }
.pic-seg button { font-size: 12.5px; padding-left: 4px; padding-right: 4px; }
.pic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; max-height: 46vh; overflow-y: auto; }
.pic-grid .empty-note { grid-column: 1 / -1; }
.pic-cell { aspect-ratio: 1; border-radius: 10px; overflow: hidden; padding: 0; border: 0; background: rgba(255, 255, 255, .06); }
.pic-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-cell.sticker img { object-fit: contain; padding: 6px; box-sizing: border-box; }
.pic-cell:active { transform: scale(.95); }

/* ── 상상 탭 (그림일기) ── */
.stage.tall .panes { height: min(calc(var(--player-h, 190px) + 330px), calc(100dvh - 250px)); min-height: 420px; }
.dream { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px 2px; box-sizing: border-box; }
.dr-book { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fffdf5; color: #3a3326; border-radius: 14px; padding: 8px 10px 6px; box-shadow: inset 0 0 0 1px rgba(120, 100, 60, .18), 0 6px 18px rgba(0, 0, 0, .25); font-family: "Gaegu", "Nanum Pen Script", "IBM Plex Sans KR", sans-serif; }
.dr-head { flex: none; display: flex; gap: 10px; align-items: baseline; font-size: 13px; padding: 0 2px 5px; border-bottom: 2px solid rgba(120, 100, 60, .35); }
.dr-head b { font-size: 14.5px; }
.dr-head .dr-name { margin-left: auto; color: #8a7a5a; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-pic { position: relative; flex: 1; min-height: 120px; margin: 0; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(120, 100, 60, .35); border-radius: 4px; background: #fffdf5; overflow: hidden; }
.dr-cv { max-width: 100%; max-height: 100%; aspect-ratio: 1; display: block; }
.dr-ai { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fffdf5; }
.dr-ai.reveal { animation: drReveal 2.4s ease-out both; }
@keyframes drReveal { from { clip-path: circle(0% at 30% 40%); filter: saturate(.2) blur(2px); } to { clip-path: circle(140% at 30% 40%); filter: none; } }
.dr-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; color: #9a8a68; font-size: 15px; line-height: 1.5; }
.dr-busy { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(58, 51, 38, .82); color: #fff; font-size: 12.5px; padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.dr-busy i { display: inline-block; font-style: normal; animation: drPen .5s ease-in-out infinite alternate; }
@keyframes drPen { from { transform: translate(-2px, 1px) rotate(-12deg); } to { transform: translate(2px, -1px) rotate(10deg); } }
.dr-nav { position: absolute; top: 0; bottom: 0; width: 18%; border: 0; background: none; color: rgba(58, 51, 38, .35); font-size: 30px; }
.dr-nav.l { left: 0; } .dr-nav.r { right: 0; } .dr-nav:disabled { visibility: hidden; }
.dr-text { flex: none; display: grid; grid-template-columns: repeat(var(--cols), 1fr); border-top: 1.5px solid #e2a3a3; border-left: 1.5px solid #e2a3a3; }
.dr-text i { font-style: normal; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: clamp(10px, 3.4vw, 15px); border-right: 1.5px solid #e2a3a3; border-bottom: 1.5px solid #e2a3a3; color: #2f2a20; line-height: 1; overflow: hidden; }
.dr-foot { flex: none; display: flex; align-items: center; gap: 6px; padding-top: 6px; min-height: 30px; }
.dr-foot .dr-pg { font-size: 12px; color: #9a8a68; margin-right: auto; }
.dr-foot .chip { background: rgba(58, 51, 38, .08); color: #3a3326; border-color: rgba(58, 51, 38, .2); font-size: 12px; padding: 5px 10px; }
.dr-ctl { flex: none; display: flex; gap: 6px; align-items: center; }
.dr-ctl .dr-mic { flex: 1; height: 42px; font-size: 15px; }
.dr-ctl .dr-mic.rec { border-color: #ff6fb5; color: #fff; box-shadow: 0 0 0 2px rgba(255, 79, 163, .35), 0 0 18px rgba(255, 79, 163, .45); animation: drRec 1.2s ease-in-out infinite; }
@keyframes drRec { 50% { box-shadow: 0 0 0 5px rgba(255, 79, 163, .12), 0 0 26px rgba(255, 79, 163, .6); } }
.dr-auto { flex: none; display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 21px; border: 1px solid var(--rim); background: rgba(255, 255, 255, .06); color: var(--ink2); font-size: 12.5px; }
.dr-auto i { width: 26px; height: 15px; border-radius: 8px; background: rgba(255, 255, 255, .2); position: relative; transition: background .2s; }
.dr-auto i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .2s; }
.dr-auto.on { color: #fff; border-color: rgba(255, 79, 163, .6); }
.dr-auto.on i { background: #ff4fa3; } .dr-auto.on i::after { transform: translateX(11px); }
.dr-ctl .chip { height: 42px; flex: none; }
.dr-who { flex: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-items: center; padding-bottom: 1px; }
.dr-who::-webkit-scrollbar { display: none; }
.dr-chip { flex: none; display: flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--rim); background: rgba(255, 255, 255, .05); color: var(--ink2); font-size: 12px; position: relative; }
.dr-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hc); }
.dr-chip.on { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .14); }
.dr-chip em { font-style: normal; font-size: 10px; padding: 0 5px; border-radius: 6px; background: rgba(255, 255, 255, .16); }
.dr-chip i { font-style: normal; animation: drPen .5s ease-in-out infinite alternate; }
.dr-cred { flex: none; font-size: 9.5px; color: var(--ink3); margin-left: 4px; white-space: nowrap; }
.dr-ctl .dr-help { padding: 0 11px; }
.dr-helpbox { max-height: 60vh; overflow-y: auto; }
.dr-helpbox .sec { margin-bottom: 8px; }
.dr-pic .dr-name { position: absolute; top: 6px; left: 8px; font-size: 11.5px; color: #8a7a5a; background: rgba(255, 253, 245, .85); padding: 1px 7px; border-radius: 8px; }
.dr-book { padding: 6px; }

/* ── 탭 7개: 좁은 화면에서도 다 보이게 ── */
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; padding: 7px 5px 8px; gap: 3px; font-size: 12px; }
.tab span { font-size: 10.5px; }
.tab .tab-caret { font-style: normal; font-size: 9px; opacity: .7; margin-left: -1px; }
/* 채팅 탭: 위 창을 접고 채팅을 넓게 */
.stage.chatmode .panes { display: none; }
.stage.chatmode { padding-bottom: 2px; }
/* 이미지 드롭다운 */
.img-menu { position: fixed; z-index: 30; width: 160px; padding: 6px; border-radius: 16px; background: rgba(28, 34, 60, .97); border: 1px solid var(--rim2); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 4px; animation: fade .15s; }
.img-menu button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; border: 0; background: none; color: var(--ink); font-size: 14px; text-align: left; }
.img-menu button span { width: 20px; text-align: center; }
.img-menu button.on { background: rgba(255, 255, 255, .12); color: #fff; }
/* 화면 공유 탭 안내 */
.scr-info { margin-top: 10px; padding: 14px; border-radius: 14px; border: 1px dashed var(--rim); line-height: 1.6; text-align: center; }
.scr-info b { color: var(--ink); }
/* 짤: 프사에서 크게 튀어나옴 */
.zzal-pop { position: fixed; z-index: 25; border-radius: 50%; overflow: hidden; background: #0c0f22; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(255, 79, 163, .55), 0 18px 46px rgba(0, 0, 0, .55), 0 0 40px rgba(255, 79, 163, .45); animation: zzalIn .42s cubic-bezier(.2, 1.4, .4, 1) both; cursor: pointer; }
.zzal-pop.sticker { background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(240, 236, 255, .9)); }
.zzal-pop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zzal-pop.sticker img { object-fit: contain; padding: 10%; box-sizing: border-box; }
.zzal-pop.out { animation: zzalOut .36s ease-in both; }
@keyframes zzalIn { from { transform: translate(var(--ox), var(--oy)) scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes zzalOut { to { transform: translate(var(--ox), var(--oy)) scale(.3); opacity: 0; } }
/* 꾹 누르는 중: 동그라미 테두리가 차오름 */
.person.me.pressing .ring { animation: lpFill 1.2s linear both; }
@keyframes lpFill { from { box-shadow: 0 0 0 0 rgba(255, 79, 163, .2); transform: scale(1); } to { box-shadow: 0 0 0 7px rgba(255, 79, 163, .85); transform: scale(1.12); } }
.person .badge.dmn { position: absolute; top: -2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff4fa3; color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 1.5px solid #141831; }
/* 내 프로필: 메시지·팔로잉·팔로워·차단 */
.soc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; margin: 8px 0 2px; }
.soc-stats button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; border-radius: 14px; border: 1px solid var(--rim); background: rgba(255, 255, 255, .06); color: var(--ink); }
.soc-stats b { font-size: 16px; position: relative; }
.soc-stats b em { position: absolute; top: -6px; right: -14px; font-style: normal; font-size: 9.5px; background: #ff4fa3; color: #fff; border-radius: 8px; padding: 0 4px; }
.soc-stats small { font-size: 11px; color: var(--ink2); }
.pv-stat b { color: var(--ink); }
/* 창(시트): 아이폰에서도 손가락 따라 부드럽게 스크롤 + 아래로 끌어 닫기 */
.sheet { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; will-change: transform; }
.sheet input[type=range] { touch-action: pan-y; }
.sheet .grab { position: relative; cursor: grab; }
.sheet .grab::after { content: ""; position: absolute; inset: -14px -80px; }
@media (max-width: 460px) { .tab span { display: none; } .tab { padding: 7px 4px 8px; font-size: 12px; } }

/* ── Pin: 방제 밑 카드 ── */
.pin-bar { margin: 2px max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px)); flex: none; position: relative; z-index: 2; }
.pin-card { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 18px; background: rgba(28, 34, 60, .72); border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 0 0 1px rgba(255, 79, 163, .25), 0 10px 28px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: #fff; text-decoration: none; }
.pin-card.pop { animation: pinPop .5s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes pinPop { from { transform: translateY(-10px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.pin-th { width: 58px; height: 58px; border-radius: 12px; flex: none; object-fit: cover; background: linear-gradient(135deg, #ff9ecf, #8a7dff); display: grid; place-items: center; font-family: var(--f-mono); font-size: 22px; color: #fff; }
.pin-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pin-tx em { font-style: normal; font-size: 11px; color: #ff8fc7; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-tx b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-tx small { font-size: 12px; color: #b9bedb; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-x { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #ddd; display: grid; place-items: center; font-size: 13px; flex: none; }
.site-pin, .site-pinned { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rim); background: rgba(255, 255, 255, .06); display: grid; place-items: center; font-size: 14px; }
.site-pinned { border-color: rgba(255, 79, 163, .6); background: rgba(255, 79, 163, .18); }
/* 📌 Pin 버튼: 방번호와 인원 사이 */
.pin-btn { flex: none; position: relative; display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 11px 0 9px; margin-right: 6px; border-radius: 17px; border: 1px solid rgba(255, 79, 163, .55); background: rgba(255, 79, 163, .14); color: #fff; font-size: 13px; }
.pin-btn b { font-weight: 600; font-size: 12.5px; letter-spacing: .3px; }
.pin-btn .dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 50%; background: #ff4fa3; box-shadow: 0 0 8px #ff4fa3; display: none; }
.pin-btn.new .dot { display: block; }
.sheet .site-share { display: flex; gap: 8px; margin-bottom: 10px; }
.sheet .site-share .txt-in { flex: 1; min-width: 0; }
.sheet .site-share .btn { width: auto; flex: none; padding: 0 16px; }

/* ── 🎤 노래방 ── */
.kara { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; box-sizing: border-box; }
.k-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 10px; }
.k-empty b { font-size: 20px; }
.k-empty small { color: var(--ink2); font-size: 12.5px; }
.k-row { display: flex; gap: 8px; width: 100%; max-width: 360px; margin: 6px 0; }
.k-row .btn { flex: 1; width: auto; }
.k-top { display: flex; align-items: center; gap: 10px; }
.k-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.k-ttl b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-ttl small { font-size: 12px; color: var(--ink3); }
.k-ttl small.on { color: #ff8fc7; }
.k-pp { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rim2); background: rgba(255, 255, 255, .1); color: #fff; font-size: 16px; }
.k-pp.on { background: #fff; color: #1b1f3a; }
.k-lyr { flex: 1; min-height: 110px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 10px 16px; border-radius: 18px; background: radial-gradient(120% 90% at 50% 100%, rgba(255, 79, 163, .2), transparent 60%), linear-gradient(180deg, #1a1f40, #0f1229); border: 1px solid var(--rim); text-align: center; overflow: hidden; }
.k-lyr p { margin: 0; max-width: 100%; }
.k-l0, .k-l2 { font-size: 13px; color: var(--ink3); min-height: 18px; }
.k-l1 { --k: 0; font-size: clamp(18px, 5.4vw, 24px); font-weight: 700; line-height: 1.35; background: linear-gradient(90deg, #ff6fb5 calc(var(--k) * 100%), #fff calc(var(--k) * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.k-l1.in { animation: kIn .3s ease-out; }
@keyframes kIn { from { transform: translateY(8px); opacity: .3; } to { transform: none; opacity: 1; } }
.k-none { color: var(--ink3); font-size: 13px; }
.k-bar { position: absolute; left: 12px; right: 12px; bottom: 7px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.k-bar b { display: block; height: 100%; width: 0; background: #ff4fa3; }
.k-ctl { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.k-ctl .chip.on { background: rgba(255, 79, 163, .3); border-color: #ff4fa3; color: #fff; }
.k-key { display: flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 99px; border: 1px solid var(--rim); }
.k-key small, .k-vol small { font-size: 11.5px; color: var(--ink2); }
.k-key button, .k-off button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rim); background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px; }
.k-key b { min-width: 24px; text-align: center; font-size: 14px; }
.k-vol { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.k-vol .vol { flex: 1; min-width: 0; }
.k-ctl .btn.slim { width: auto; flex: none; padding: 0 14px; }
.k-ctl3 { justify-content: space-between; }
.k-off { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.k-off button { width: auto; padding: 0 8px; border-radius: 15px; font-size: 11px; }
.k-ctl .chip, .k-ctl .btn { white-space: nowrap; }
.k-ctl3 .chip { padding: 6px 10px; font-size: 12px; }
.k-ctl3 { gap: 4px; }
.k-off { gap: 2px; }
.k-off b { font-size: 11.5px; min-width: 34px; text-align: center; }
/* 🪩 조명: 화면 위에 '빛만' 더해짐 (누르는 건 그대로 됨) */
.lights { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: 1; }
#room { position: relative; z-index: 2; }
.kara .k-lyr { background: radial-gradient(120% 90% at 50% 100%, rgba(255, 79, 163, .2), transparent 60%), linear-gradient(180deg, rgba(20, 24, 52, .62), rgba(12, 14, 34, .7)); }
.kara .k-l0, .kara .k-l2, .kara .k-none { text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.kara .k-l1 { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .7)); }
.kara-badge { margin: 0 max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px)); padding: 9px 14px; border-radius: 99px; border: 1px solid rgba(255, 79, 163, .55); background: linear-gradient(90deg, rgba(255, 79, 163, .25), rgba(120, 110, 255, .22)); color: #fff; font-size: 13px; text-align: left; flex: none; animation: kbPulse 2s ease-in-out infinite; }
@keyframes kbPulse { 50% { box-shadow: 0 0 16px rgba(255, 79, 163, .45); } }
.k-ctl3 { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
.k-ctl3::-webkit-scrollbar { display: none; }
.k-ctl3 > * { flex: none; }
.k-lyr .k-off { position: absolute; right: 10px; bottom: 14px; opacity: .75; }
.k-lyr .k-off button { height: 24px; font-size: 10.5px; padding: 0 6px; }
.k-lyr .k-off b { font-size: 10.5px; min-width: 28px; }
/* 노래방 + 조명 켜짐: 창 유리를 조금 더 투명하게 → 빛이 더 잘 비침 */
body.k-lit .stage, body.k-lit .pin-card { background: rgba(18, 22, 46, .58); }
body.k-lit .person .nm, body.k-lit .room-head, body.k-lit .chat .sys, body.k-lit .count { text-shadow: 0 1px 4px rgba(0, 0, 0, .85); }
body.k-lit .person .nm { color: #fff; }
.k-lv { gap: 8px; }
.k-lv .vol { flex: 1; min-width: 0; }
.k-lv b { flex: none; min-width: 78px; text-align: right; font-size: 12.5px; }
.k-lv .vol:disabled { opacity: .55; }

/* ── 📖 설명서 ── */
.guide-btn { flex: none; width: 34px; height: 34px; margin-right: 6px; border-radius: 50%; border: 1px solid var(--rim2); background: rgba(255, 255, 255, .08); font-size: 16px; display: grid; place-items: center; }
.g-search { display: flex; gap: 8px; position: sticky; top: -6px; z-index: 2; padding: 4px 0 10px; background: rgba(28, 34, 60, .96); }
.g-search .txt-in { flex: 1; min-width: 0; }
.g-search .chip { flex: none; }
.g-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.g-item { border-radius: 16px; border: 1px solid var(--rim); background: rgba(255, 255, 255, .04); overflow: hidden; }
.g-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: none; color: var(--ink); text-align: left; }
.g-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: linear-gradient(135deg, rgba(255, 79, 163, .25), rgba(120, 110, 255, .25)); }
.g-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.g-tt b { font-size: 15px; font-weight: 600; }
.g-tt small { font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-cv { flex: none; font-style: normal; font-size: 20px; color: var(--ink3); transition: transform .2s; }
.g-item.open .g-cv { transform: rotate(90deg); }
.g-body { display: none; padding: 0 14px 14px 62px; }
.g-item.open .g-body { display: block; }
.g-body ul { margin: 0; padding: 0 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.g-body li { font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.g-body li::marker { color: #ff6fb5; }
.g-go { margin-top: 10px; width: auto; padding: 0 14px; }

/* 짤: 꾹 누르기가 아이폰 '이미지 저장' 메뉴·글자 선택에 먹히지 않게 */
.person, .person * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.person img { pointer-events: none; -webkit-user-drag: none; }
.emoji-bar .zzal-eb { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 79, 216, .35), rgba(124, 92, 255, .35)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset; }
.emoji-bar .zzal-eb small { font-size: 9px; color: var(--ink); margin-top: 2px; }
.zzal-go { margin-top: 6px; }
.chip.warn { border-color: rgba(255, 170, 60, .7); color: #ffd28a; }
.jam-row.k-risk { opacity: .62; }
.jam-row.k-risk em { font-style: normal; color: #ffc46b; }
.mic-meter { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; margin: 6px 0 2px; }
.mic-meter b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3ee6a0, #7cf); border-radius: 6px; transition: width .06s; }
.mic-meter b.low { background: #8899aa; }
.mic-meter b.hot { background: linear-gradient(90deg, #3ee6a0, #ffb84d, #ff4d6d); }

/* 노래방 + 유튜브: 영상은 위, 노래방 버튼은 아래 */
.panes.kara-yt { display: flex; flex-direction: column; gap: 6px; }
.panes.kara-yt > .pane[data-pane="yt"] { position: relative; left: auto; width: auto; height: 46%; min-height: 170px; flex: none; }
.panes.kara-yt > .pane[data-pane="yt"] .ch-head, .panes.kara-yt > .pane[data-pane="yt"] .queue, .panes.kara-yt > .pane[data-pane="yt"] .ch-foot { display: none; }
.panes.kara-yt > .pane[data-pane="kara"] { flex: 1; min-height: 0; height: auto; overflow-y: auto; }
.panes.kara-yt > .pane[data-pane="yt"] .now, .panes.kara-yt > .pane[data-pane="yt"] .vol-row, .panes.kara-yt > .pane[data-pane="yt"] .seek-row, .panes.kara-yt > .pane[data-pane="yt"] .ctrl-row { display: none !important; }
.panes.kara-yt > .pane[data-pane="yt"] .ch-full, .panes.kara-yt > .pane[data-pane="yt"] .stage-view, .panes.kara-yt > .pane[data-pane="yt"] .player-frame { height: 100%; }

/* 채팅 사진·영상 */
.att-btn { font-size: 16px; }
.msg .cm { display: block; position: relative; width: min(240px, 62vw); max-height: 320px; border-radius: 16px; overflow: hidden; border: 1px solid var(--rim); background: rgba(255, 255, 255, .06); padding: 0; margin: 2px 0 4px; }
.msg .cm img, .msg .cm video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.msg .cm.cm-vid video { object-fit: contain; }
.msg .cm em { position: absolute; right: 8px; top: 8px; font-style: normal; font-size: 11px; background: rgba(0, 0, 0, .55); color: #fff; padding: 2px 7px; border-radius: 999px; pointer-events: none; }
.msg .cm-err { display: flex; align-items: center; justify-content: center; height: 100%; padding: 12px; font-size: 12px; color: var(--ink2); text-align: center; }
.msg.mine .cm { margin-left: auto; }
.cm-up .bub { opacity: .8; }
.media-view { position: fixed; inset: 0; z-index: 9999; background: rgba(5, 6, 20, .92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.media-view img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.media-view .mv-x, .media-view .mv-dl { position: absolute; top: max(14px, env(safe-area-inset-top)); width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.media-view .mv-x { right: 14px; } .media-view .mv-dl { right: 62px; }

/* 채팅 프사 조금 더 크게 + 누르면 크게 보기 */
.msg .av-sm { --s: 38px; border-width: 1.5px; cursor: zoom-in; }
.msg.cont .av { height: 38px; }
.sh-head .av-xl { cursor: zoom-in; }
.av-view .av-big { width: min(78vw, 420px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #F8E3D6, #C9B6D9 70%, #8E8FC4); display: grid; place-items: center; }
.av-view .av-big svg { width: 88%; height: 88%; margin-top: 12%; }
.av-view img { border-radius: 14px; }
.zzal-pop { border-width: 2px; box-shadow: 0 0 0 3px rgba(255, 79, 163, .55), 0 8px 22px rgba(0, 0, 0, .5), 0 0 22px rgba(255, 79, 163, .45); }

/* ── Voice FX 버튼 (마이크 왼쪽) ── */
.fxh-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; padding: 0; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(185, 168, 255, .16); touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; transition: transform .12s, background .12s, box-shadow .12s; }
.fxh-btn .fxh-dot { position: absolute; right: 3px; bottom: 3px; width: 8px; height: 8px; border-radius: 50%; background: #B9A8FF; border: 1.5px solid #161B33; }
.fxh-btn.held { transform: scale(1.17); background: #B9A8FF; color: #161B33; border: 2px solid #fff; box-shadow: 0 0 22px rgba(185, 168, 255, .8), 0 0 0 8px rgba(185, 168, 255, .18); }
.fxh-btn.held .fxh-dot { display: none; }
.fx-tag { position: fixed; z-index: 60; transform: translate(-50%, -100%) scale(.9); padding: 5px 11px; border-radius: 999px; background: #fff; color: #161B33; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.fx-tag.on { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.fx-fan { position: fixed; inset: 0; z-index: 58; }
.fx-fan.live { pointer-events: none; }
.fx-fan .fx-dim { position: absolute; inset: 0; background: rgba(8, 10, 24, .45); animation: fxFade .15s ease both; }
.fx-fan .fx-hint { position: absolute; left: 16px; right: 16px; padding: 10px 14px; border-radius: 14px; background: rgba(16, 20, 40, .86); border: 1px solid var(--rim); font-size: 13px; color: var(--ink); text-align: center; }
.fx-chip { position: absolute; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .4); background: rgba(30, 37, 66, .94); color: #F5F6FF; display: grid; place-items: center; padding: 0; box-shadow: 0 8px 20px rgba(6, 8, 24, .45); animation: fxPop .22s cubic-bezier(.2, 1.4, .4, 1) both; }
.fx-chip small { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; white-space: nowrap; color: #F5F6FF; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.fx-chip.on { background: #B9A8FF; color: #161B33; border: 2px solid #fff; }
.fx-chip.more { width: 44px; height: 44px; border-style: dashed; color: var(--ink2); }
@keyframes fxPop { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
@keyframes fxFade { from { opacity: 0; } }
/* 효과 쓰는 사람 프사: 겹물결 */
.person.fxon .ring { box-shadow: 0 0 0 3px rgba(185, 168, 255, .55); }
@keyframes fxRip { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }
/* 프사 마이크 표시 (시안 A): 흰색 마이크 / 사선 */
.badge.micb { top: 32px; right: 0; min-width: 0; width: 20px; height: 20px; padding: 0; border-radius: 50%; background: #1C2238; border: 1.5px solid #fff; }
.person.listener .badge.micb { opacity: .7; }
/* 마이크 꾹: 테두리 차오름 */
#micBtn { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
#micBtn.lp { animation: micLp .8s linear both; }
@keyframes micLp { from { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); } to { box-shadow: 0 0 0 7px rgba(185, 168, 255, .7); } }
/* 내 마이크 창: 효과 관련 칸은 숨김 */
.mic-only .fx-sec { display: none; }
@media (max-width: 380px) { .fxh-btn { width: 42px; height: 42px; } }
.bottom:not(.has-text) .send-btn { display: none; }
.bottom.has-text .fx-btn { display: none; }

/* ── 짤 보내기 ── */
.zs-head { display: flex; align-items: center; justify-content: center; gap: 8px; }
.zs-head .av-sm { --s: 30px; }
.z-recent { margin: 0 0 10px; }
.z-recent small { display: block; font-size: 12px; color: var(--ink2); margin-bottom: 6px; }
.z-rrow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.z-rrow .pic-cell { width: 64px; height: 64px; flex: none; }
.zs-line { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 40; pointer-events: none; }
.zs-line path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: zsDraw .3s ease-out forwards, zsFadeOut .35s ease .35s forwards; }
@keyframes zsDraw { to { stroke-dashoffset: 0; } }
@keyframes zsFadeOut { to { opacity: 0; } }
.zs-mini { position: fixed; z-index: 30; width: 30px; height: 30px; border-radius: 9px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); pointer-events: none; animation: fxPopSm .25s cubic-bezier(.2, 1.4, .4, 1) both; }
.zs-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zs-mini.out { opacity: 0; transition: opacity .3s; }
@keyframes fxPopSm { from { transform: scale(.3); opacity: 0; } }
.zs-fly { position: fixed; inset: 0; z-index: 70; cursor: pointer; }
.zs-fly .zs-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(255, 79, 163, .3), rgba(8, 10, 24, .38) 62%); opacity: 0; transition: opacity .3s; }
.zs-fly.pop .zs-glow { opacity: 1; }
.zs-fly .zs-card { position: absolute; border-radius: 24px; overflow: hidden; border: 3px solid #fff; background: #0c0f22; box-shadow: 0 0 0 5px rgba(255, 79, 163, .5), 0 20px 50px rgba(0, 0, 0, .55); }
.zs-fly .zs-card.sticker { background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(240, 236, 255, .9)); }
.zs-fly .zs-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zs-fly .zs-card.sticker img { object-fit: contain; padding: 8%; box-sizing: border-box; }
.zs-fly .zs-burst { position: absolute; width: 0; height: 0; opacity: 0; }
.zs-fly.pop .zs-burst { opacity: 1; }
.zs-fly .zs-burst::before, .zs-fly .zs-burst::after { content: ""; position: absolute; left: -130px; top: -130px; width: 260px; height: 260px; border-radius: 50%; }
.zs-fly.pop .zs-burst::before { background: conic-gradient(from 0deg, #FFD24F 0 4deg, transparent 4deg 30deg, #FF8FC6 30deg 34deg, transparent 34deg 60deg, #FFD24F 60deg 64deg, transparent 64deg 90deg, #FF8FC6 90deg 94deg, transparent 94deg 120deg, #FFD24F 120deg 124deg, transparent 124deg 150deg, #FF8FC6 150deg 154deg, transparent 154deg 180deg, #FFD24F 180deg 184deg, transparent 184deg 210deg, #FF8FC6 210deg 214deg, transparent 214deg 240deg, #FFD24F 240deg 244deg, transparent 244deg 270deg, #FF8FC6 270deg 274deg, transparent 274deg 300deg, #FFD24F 300deg 304deg, transparent 304deg 330deg, #FF8FC6 330deg 334deg, transparent 334deg); -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%, #000 70%, transparent 72%); mask: radial-gradient(circle, transparent 54%, #000 56%, #000 70%, transparent 72%); animation: zsBurst .7s ease-out both; }
.zs-fly.pop .zs-burst::after { border: 3px solid rgba(255, 210, 79, .9); animation: zsRing .6s ease-out both; }
@keyframes zsBurst { from { transform: scale(.4) rotate(-20deg); opacity: 1; } to { transform: scale(1.25) rotate(10deg); opacity: 0; } }
@keyframes zsRing { from { transform: scale(.35); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.zs-fly .zs-from { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: #fff; color: #161B33; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .25s .1s; }
.zs-fly.pop .zs-from { opacity: 1; }
.zs-fly.out .zs-glow, .zs-fly.out .zs-from { opacity: 0; }
.zs-log { display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 8px 0; }
.zs-pill { display: flex; align-items: center; gap: 7px; padding: 6px 8px 6px 7px; border-radius: 16px; background: rgba(16, 20, 40, .62); border: 1px solid rgba(255, 143, 198, .55); font-size: 13px; }
.zs-pill .av-sm { --s: 22px; }
.zs-th { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; border: 1.5px solid #fff; padding: 0; flex: none; }
.zs-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zs-log small { font-size: 12px; color: var(--ink2); }
.fx-fan.live .fx-chip { pointer-events: auto; }
/* 이름이 동그라미 안에 들어간 부채 칩 */
.fx-chip.in { width: 58px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at 35% 28%, rgba(120, 110, 220, .55), rgba(30, 37, 66, .95) 70%); box-shadow: 0 8px 20px rgba(6, 8, 24, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }
.fx-chip.in small { position: static; transform: none; font-size: 9.5px; line-height: 1.05; letter-spacing: -.02em; text-shadow: none; max-width: 56px; white-space: nowrap; overflow: visible; }
.fx-chip.in.more { width: 58px; height: 58px; border-style: dashed; background: rgba(22, 27, 51, .9); }
.fx-chip.in.on { background: radial-gradient(circle at 35% 28%, #fff, #B9A8FF 60%); color: #161B33; }
.fx-chip.in.on small { color: #161B33; font-weight: 700; }
.person.fxon .ring::after { opacity: 0; border-color: #B9A8FF !important; animation: fxRip 1.1s ease-out infinite !important; }
.person.fxon .ring::before { opacity: 0; border-color: rgba(185, 168, 255, .8) !important; animation: fxRip 1.1s ease-out .45s infinite !important; }
.fxh-btn.nofx .fxh-dot { display: none; }
/* 아이폰 14 등: 주소창·툴바 때문에 보이는 높이가 작아도 아래 입력줄이 잘리지 않게 → 위 창(무대)이 먼저 줄어듦 */
#room > .bottom { flex: none; }
#room > .stage { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
#room > .stage > .panes { flex: 0 1 auto; min-height: 120px; }
.stage.tall .panes { height: min(calc(var(--player-h, 190px) + 330px), calc(var(--app-h, 100dvh) - 270px)); min-height: 200px; }
.chat { min-height: 0; }
/* 📝 붙여넣은 가사: 전체 스크롤 */
.k-lyr.plain { justify-content: flex-start; padding: 0; min-height: 200px; }
.k-plain { width: 100%; max-height: 46vh; min-height: 180px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 16px 14px 28px; text-align: center; }
.k-plain p { font-size: 19px; font-weight: 700; line-height: 1.6; color: #fff; min-height: 1em; text-shadow: 0 0 12px rgba(255, 79, 163, .35); word-break: keep-all; overflow-wrap: anywhere; }
.k-big { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 12px; border: 1px solid var(--rim); background: rgba(10, 12, 30, .7); color: #fff; font-size: 17px; z-index: 2; }
.lyr-full { position: fixed; inset: 0; z-index: 9000; background: linear-gradient(180deg, #120f2c, #07081a); display: flex; flex-direction: column; }
.lyr-in { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(56px + env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom)); text-align: center; }
.lyr-in p { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.65; color: #fff; min-height: 1em; text-shadow: 0 0 16px rgba(255, 79, 163, .4); word-break: keep-all; overflow-wrap: anywhere; }
.lyr-full .mv-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--rim); background: rgba(255, 255, 255, .08); color: #fff; font-size: 18px; }
.lyr-ta { width: 100%; min-height: 200px; resize: vertical; font-size: 15px; line-height: 1.5; padding: 12px; border-radius: 14px; border: 1px solid var(--rim); background: rgba(0, 0, 0, .25); color: #fff; box-sizing: border-box; }
/* 🎤 노래방 효과 */
.kfx-tab { margin-bottom: 10px; }
.kfx-lv button { flex: 1; min-width: 0; padding: 0 4px; font-size: 12.5px; }
.kfx-custom { margin-top: 10px; }
.kfx-custom.hidden, .kfx-pane.hidden { display: none; }
.kfx-custom .sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.kfx-follow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; opacity: .85; }
.kfx-keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.kfx-keys button { height: 34px; border-radius: 10px; border: 1px solid var(--rim); background: rgba(255, 255, 255, .05); color: #fff; font-weight: 700; font-size: 13px; }
.kfx-keys button.on { background: linear-gradient(135deg, #ff4fa3, #8a5cff); border-color: transparent; box-shadow: 0 0 12px rgba(255, 79, 163, .5); }
#kFxBtn.on { box-shadow: 0 0 12px rgba(255, 79, 163, .6); }
.k-ctl:not(.k-ctl3):not(.k-lv) { flex-wrap: wrap; row-gap: 6px; justify-content: center; }
#kara { overflow-x: hidden; }
.k-ctl:not(.k-ctl3):not(.k-lv) .chip { padding: 6px 9px; font-size: 12.5px; }
.k-ctl:not(.k-ctl3):not(.k-lv) { gap: 5px; }
.k-ctl .btn.slim { padding: 0 10px; min-width: 0; flex: 0 1 auto; }
.k-ctl .vol { min-width: 0; }
/* 노래방에서도 채팅이 보이게: 위 창 높이를 줄여 아래 채팅 칸을 최소 120px 남김 */
.stage.tall.karamode .panes { height: min(calc(var(--player-h, 190px) + 300px), calc(var(--app-h, 100dvh) - 390px)); min-height: 300px; }
.stage.tall.karamode ~ .chat { min-height: 110px; }
.kara .k-lyr { min-height: 70px; }
/* 📝 떠 있는 가사 창 */
.lyr-win { position: fixed; z-index: 15; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: rgba(14, 16, 38, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 79, 163, .45); box-shadow: 0 10px 34px rgba(0, 0, 0, .55), 0 0 18px rgba(255, 79, 163, .2); touch-action: none; }
.lyr-win.drag { opacity: .92; box-shadow: 0 16px 40px rgba(0, 0, 0, .6), 0 0 24px rgba(255, 79, 163, .4); }
.lw-bar { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 12px; background: rgba(255, 79, 163, .16); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; flex: none; }
.lw-bar b { font-size: 13px; color: #fff; }
.lw-bar .grow { flex: 1; }
.lw-b { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--rim); background: rgba(255, 255, 255, .06); color: #fff; font-size: 15px; display: grid; place-items: center; flex: none; }
.lw-x { background: rgba(255, 79, 163, .3); border-color: #ff4fa3; font-weight: 700; }
.lw-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 10px 14px 22px; text-align: center; touch-action: pan-y; }
.lw-body p { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.55; color: #fff; min-height: 1em; text-shadow: 0 0 12px rgba(255, 79, 163, .35); word-break: keep-all; overflow-wrap: anywhere; }
.lw-rs { position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; touch-action: none; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, .45) 58%, transparent 58%, transparent 70%, rgba(255, 255, 255, .45) 70%, rgba(255, 255, 255, .45) 78%, transparent 78%); }
.stage.karamode .pane[data-pane="kara"] { overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* 📝 가사 후보 */
.lyr-pick-wrap { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 10px; }
.jam-row.sel { border-color: #ff4fa3 !important; background: rgba(255, 79, 163, .16) !important; }
.lyr-pick { display: flex; flex-direction: column; gap: 7px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(185, 168, 255, .4); margin-bottom: 8px; }
.lp-h { display: flex; align-items: center; gap: 8px; }
.lp-h > b { font-size: 13.5px; flex: none; }
.lp-q { flex: 1; display: flex; gap: 4px; min-width: 0; }
.lp-in { flex: 1; min-width: 0; height: 32px; border-radius: 10px; border: 1px solid var(--rim); background: rgba(0, 0, 0, .2); color: #fff; padding: 0 10px; font-size: 13px; }
.lp-go { width: 34px; height: 32px; border-radius: 10px; border: 1px solid var(--rim); background: rgba(255, 255, 255, .06); color: #fff; flex: none; }
.lp-list { display: flex; flex-direction: column; gap: 5px; }
.lp-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 9px 11px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #fff; width: 100%; }
.lp-row b { font-size: 12.5px; }
.lp-row small { font-size: 11.5px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lp-row.on { border-color: #B9A8FF; background: rgba(185, 168, 255, .2); box-shadow: inset 0 0 0 1px #B9A8FF; }
.lp-row.on b::after { content: "  ✓"; color: #B9A8FF; }
.lp-no { border-style: dashed; }
.lp-empty { font-size: 12px; color: var(--ink2); padding: 6px 2px; line-height: 1.5; }
.lp-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.lp-btns button { height: 34px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); color: #fff; font-size: 12px; }
.lp-btns button.on { background: #B9A8FF; color: #161B33; font-weight: 700; border-color: transparent; }
.lp-ta { width: 100%; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--rim); background: rgba(0, 0, 0, .25); color: #fff; padding: 10px; font-size: 14px; }
.lp-ta.hidden { display: none; }
/* 🎤🎤 듀엣 */
.k-duet-btn { background: linear-gradient(135deg, #ff4fa3, #8a5cff) !important; color: #fff !important; box-shadow: 0 0 14px rgba(255, 79, 163, .5); }
.duet-back { position: fixed; inset: 0; z-index: 26; display: grid; place-items: center; padding: 20px; background: rgba(6, 8, 22, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.duet-card { width: min(360px, 100%); box-sizing: border-box; padding: 22px 18px 16px; border-radius: 24px; background: #1E2542; border: 1px solid rgba(255, 79, 163, .6); box-shadow: 0 18px 44px rgba(0, 0, 0, .6), 0 0 26px rgba(255, 79, 163, .3); display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; color: #fff; animation: duetIn .25s ease-out; }
@keyframes duetIn { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.duet-avas { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.duet-ava { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #ffd6e8, #c9b8ff); display: grid; place-items: center; font-size: 22px; }
.duet-ava img { width: 100%; height: 100%; object-fit: cover; }
.duet-t { font-size: 17px; line-height: 1.4; }
.duet-s { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.duet-row { display: flex; gap: 8px; width: 100%; }
.duet-row .btn { flex: 1; width: auto; }
.duet-yes { background: linear-gradient(135deg, #ff4fa3, #8a5cff) !important; color: #fff !important; }
.duet-bar { display: block; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.duet-bar b { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff4fa3, #8a5cff); transform-origin: left; animation: duetBar linear forwards; }
@keyframes duetBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.duet-ava .av { width: 100%; height: 100%; display: grid; place-items: center; }
.duet-ava .av svg, .duet-ava .av img { width: 100%; height: 100%; object-fit: cover; }

/* 버전 (처음 화면 맨 아래) */
.app-ver-foot { margin: 4px 0 calc(14px + env(safe-area-inset-bottom, 0px)); text-align: center; font-family: var(--f-mono, monospace); font-size: 11px; letter-spacing: 1.5px; color: var(--ink3, rgba(255,255,255,.5)); }
/* 📲 홈 화면에 추가 카드 */
.install-card { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 20px; text-align: left; color: #fff; border: 1px solid rgba(255, 79, 163, .45) !important; box-shadow: 0 0 18px rgba(255, 79, 163, .18); }
.install-card.hidden { display: none; }
.install-card .ic-ico img { width: 44px; height: 44px; border-radius: 12px; display: block; }
.install-card .ic-t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.install-card .ic-t b { font-size: 14.5px; }
.install-card .ic-t small { font-size: 12px; color: var(--ink2); line-height: 1.4; }
.install-card .ic-go { font-size: 22px; }
.inst-hero { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); margin-bottom: 8px; }
.inst-hero img { width: 56px; height: 56px; border-radius: 14px; }
.inst-hero div { display: flex; flex-direction: column; gap: 2px; }
.inst-hero small { font-size: 12px; color: var(--ink2); }
.inst-who { text-align: center; font-weight: 600; margin: 4px 0 8px; }
.inst-steps { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.inst-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: 14px; line-height: 1.5; }
.inst-steps .n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ff4fa3, #8a5cff); font-size: 12.5px; font-weight: 700; }
#sheet .btn + .btn { margin-top: 8px; }
.inst-close, #instCopy, #instExt { width: 100%; }
.install-card { margin-bottom: 0; }
/* 노래방 칸이 좁을 때 버튼 줄(효과·가사·조명)이 0으로 찌그러져 사라지던 문제 → 줄어들지 않고 칸 안에서 스크롤 */
.kara > *:not(.k-lyr) { flex-shrink: 0; }
.panes.kara-yt .kara { height: auto; min-height: 100%; }
.stage.tall.karamode .panes.kara-yt { height: min(calc(var(--player-h, 190px) + 330px), calc(var(--app-h, 100dvh) - 330px)); }
.panes.kara-yt > .pane[data-pane="yt"] { height: 40%; min-height: 140px; }
.panes.kara-yt > .pane[data-pane="kara"] { min-height: 150px; }
.stage.tall.karamode:has(.panes.kara-yt) ~ .chat { min-height: 70px; }
/* ── 윷놀이 발열 줄이기 ──
   · 시간 막대: 너비(매 프레임 레이아웃) → transform(그래픽 칩이 처리)
   · '움직일 수 있는 말' 반짝임: filter 그림자 애니메이션(매 프레임 다시 그리기) → 미리 그린 빛을 투명도만 바꿈
   · 말 깡총: margin(레이아웃) → translate
   · 판 동그라미 그림자 필터 제거, 윷놀이 중엔 뒤 배경 흐림(유리 효과) 끔 */
.y-timer i { width: 100%; transform: scaleX(0); transform-origin: left center; transition: transform .25s linear; will-change: transform; }
.ytok.can { animation: none; }
.ytok.can::before { content: ""; position: absolute; inset: -8%; border-radius: 50%; box-shadow: 0 0 9px 3px rgba(255, 255, 255, .9); opacity: 0; animation: yGlow 1.1s ease-in-out infinite; pointer-events: none; will-change: opacity; }
.y-tray.can { animation: none; position: relative; }
.y-tray.can::after { content: ""; position: absolute; inset: -2px; border-radius: 13px; box-shadow: 0 0 10px 2px rgba(255, 255, 255, .8); opacity: 0; animation: yGlow 1.1s ease-in-out infinite; pointer-events: none; will-change: opacity; }
@keyframes yGlow { 50% { opacity: 1; } }
@keyframes yHop { 0% { translate: 0 0; } 45% { translate: 0 -35%; } 100% { translate: 0 0; } }
@keyframes yShake { 25% { translate: -3px 0; } 75% { translate: 3px 0; } }
.ydest { will-change: rotate; }
.y-svg circle.big, .y-svg circle.start { filter: none; stroke-width: 1.3; }
.stage:has(.pane[data-pane="yut"]:not(.hidden)) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(18, 21, 44, .94) !important; }
/* 방 안에선 안 보이는 큰 링이 계속 숨쉬던 애니메이션 끔 */
body.in-room .ring-fx { animation: none; }

/* ═════ 🌙 다크 테마 (자동: 폰이 다크 모드일 때 / 직접 고르기: 처음 화면 🌗 버튼) ═════ */
html[data-theme="dark"] {
  --bg: #0A0D1A; --bg2: #11152A;
  --glass: rgba(12, 15, 32, .74); --glass2: rgba(20, 24, 46, .78); --glass3: rgba(255, 255, 255, .05);
  --rim: rgba(255, 255, 255, .11); --rim2: rgba(255, 255, 255, .22);
  --ink2: #A9AFCC; --ink3: #6E7699; --line: rgba(255, 255, 255, .08);
  --dusk: linear-gradient(180deg, #0A0F24 0%, #1B1F3D 55%, #2B2348 100%);
  --shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
html[data-theme="dark"] .scene { background: #05070F; }
html[data-theme="dark"] .scene-veil { background: linear-gradient(180deg, rgba(3, 5, 12, .35) 0%, rgba(3, 5, 12, 0) 25%, rgba(3, 5, 12, .1) 55%, rgba(5, 7, 15, .75) 78%, rgba(5, 7, 15, .95) 100%); }
html[data-theme="dark"] body.in-room .scene-veil { background: linear-gradient(180deg, rgba(6, 8, 18, .72), rgba(6, 8, 18, .9) 45%, rgba(5, 7, 15, .97)); }
html[data-theme="dark"] .sheet { background: #10142A; }
html[data-theme="dark"] .bottom { background: rgba(8, 10, 22, .7); }
html[data-theme="dark"] .ring-fx { border-color: rgba(220, 228, 255, .8); box-shadow: 0 0 18px rgba(160, 180, 255, .3), inset 0 0 14px rgba(160, 180, 255, .15); }
html[data-theme="dark"] .board-wrap, html[data-theme="dark"] .dream { filter: brightness(.86); }
.lobby-top { gap: 6px; }
.lobby-top .chip { white-space: nowrap; padding-left: 11px; padding-right: 11px; font-size: 13.5px; }
#themeBtn, #installBtn { padding-left: 0; padding-right: 0; width: 40px; justify-content: center; }

/* 💰 이번 달 서버 사용량 */
.app-ver-foot .use-pct.warn { color: #FF9F6B; font-weight: 700; }
.use-note { margin: 6px 16px 0; text-align: center; font-size: 12.5px; line-height: 1.5; color: #FFC7A8; }

/* ═════ 🎲 윷판 광장 (판 여러 개) ═════ */
.yt-plaza { display: flex; flex-direction: column; gap: 14px; padding: 4px 2px 12px; }
.yt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; column-gap: 8px; justify-items: center; padding-top: 8px; }
.yt-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; color: var(--ink, #fff); font: inherit; cursor: pointer; padding: 0; min-width: 0; max-width: 100%; }
.yt-tile b { font-size: 13px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-tile small { font-size: 11.5px; color: var(--ink2, #B8BEDC); margin-top: -3px; }
.yt-ico { position: relative; width: 108px; height: 108px; border-radius: 28px; background: linear-gradient(145deg, #3a2f5e, #251f44); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 8px 18px rgba(0,0,0,.3); display: grid; place-items: center; transition: transform .12s; }
.yt-tile:active .yt-ico { transform: scale(.95); }
.yt-ico.live { border-color: rgba(255,79,163,.75); box-shadow: 0 0 0 3px rgba(255,79,163,.18), 0 8px 18px rgba(0,0,0,.3); }
.yt-ico.mine { border-color: #4FE3FF; box-shadow: 0 0 0 3px rgba(79,227,255,.22), 0 8px 18px rgba(0,0,0,.3); }
.yt-ico.new { background: rgba(255,255,255,.04); border: 1.5px dashed rgba(255,255,255,.35); box-shadow: none; font-size: 38px; color: var(--ink2, #B8BEDC); }
.yt-ico svg .ln { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1.5; }
.yt-ico svg .dg { stroke: rgba(255,255,255,.25); stroke-width: 1.2; fill: none; }
.yt-ico svg .pt { fill: rgba(255,255,255,.55); }
.yt-av { position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #251f44; overflow: hidden; display: grid; place-items: center; font-size: 13px; background: #E9E4FF; }
.yt-av img, .yt-av svg { width: 100%; height: 100%; object-fit: cover; }
.yt-pill { position: absolute; top: -8px; right: -10px; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.yt-pill.live { background: #FF4FA3; color: #fff; }
.yt-pill.rec { background: #B6F36A; color: #1c2410; }
.yt-pill.mine { background: #4FE3FF; color: #08202a; }
.yt-strip { display: flex; align-items: center; gap: 8px; height: 48px; padding: 2px 2px 6px; overflow-x: auto; scrollbar-width: none; }
.yt-strip[hidden] { display: none; }
.yt-home, .yt-mini { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: linear-gradient(145deg, #3a2f5e, #251f44); color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; font-size: 15px; }
.yt-home { background: rgba(255,255,255,.05); }
.yt-mini svg { width: 22px; height: 22px; } .yt-mini svg rect { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 3; } .yt-mini svg path { stroke: rgba(255,255,255,.3); stroke-width: 2.5; fill: none; }
.yt-mini.on { border-color: #4FE3FF; box-shadow: 0 0 0 2px rgba(79,227,255,.3); }
.yt-mini.live { border-color: rgba(255,79,163,.75); }
.yt-mini i { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; border-radius: 99px; font-size: 9.5px; font-style: normal; font-weight: 700; display: grid; place-items: center; background: #B6F36A; color: #1c2410; padding: 0 3px; }
.yt-mini.live i { background: #FF4FA3; color: #fff; }
.yt-cur { font-size: 12.5px; color: var(--ink2, #B8BEDC); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 2px; }
.y-close { margin-top: 2px; opacity: .85; }
.yt-strip:not([hidden]) ~ #yView { height: calc(100% - 48px); }

/* ═════ 🎮 블랙잭 · 에어하키 (3D) ═════ */
.g3 { height: 100%; display: flex; flex-direction: column; position: relative; }
.g3 .g-view { flex: 1; min-height: 0; position: relative; overflow-y: auto; }
.g3 .g-view[data-mode="table"] { overflow: hidden; }
.g3-wrap { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: #07080f; }
.g3-cv, .g3-cv canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.g3-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink2); font-size: 14px; }
.g3-labels { position: absolute; inset: 0; pointer-events: none; }
.bj-lb { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 8px; border-radius: 12px; background: rgba(8,10,22,.62); border: 1px solid rgba(255,255,255,.14); font-size: 11px; line-height: 1.25; white-space: nowrap; transition: opacity .2s; pointer-events: none; will-change: transform; }
.bj-lb b { font-size: 11.5px; font-weight: 600; max-width: 92px; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.bj-lb .av.xxs { width: 18px; height: 18px; }
.bj-lb small { color: #ffe36e; font-size: 11px; }
.bj-lb small .up { color: #b6f36a; } .bj-lb small .dn { color: #ff8f9f; }
.bj-lb.turn { border-color: #ff4fa3; box-shadow: 0 0 12px rgba(255,79,163,.6); }
.bj-lb.me { border-color: #4fe3ff; }
.bj-lb.away { opacity: .55; }
.bj-lb.none { display: none; }
.bj-lb.empty { pointer-events: auto; background: rgba(255,255,255,.08); border: 1.5px dashed rgba(255,255,255,.4); color: #fff; font: 600 12px inherit; padding: 6px 10px; cursor: pointer; }
.bj-lb.dealer { background: rgba(0,0,0,.5); }
.bj-hands { display: flex; gap: 4px; }
.bj-hands em { font-style: normal; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: rgba(255,255,255,.14); }
.bj-hands em.on { background: #fff; color: #141a2e; }
.bj-hands em.bad { background: rgba(214,38,90,.85); } .bj-hands em.good { background: rgba(80,190,90,.9); }
.g3-top { position: absolute; left: 8px; right: 8px; top: 6px; display: flex; align-items: center; gap: 8px; font-size: 12px; pointer-events: none; text-shadow: 0 1px 4px #000; }
.g3-status { font-weight: 600; } .g3-w { margin-left: auto; color: var(--ink2); }
.g3-timer { position: absolute; left: 0; right: 0; top: 20px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.g3-timer b { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #4fe3ff, #ff4fa3); transform-origin: left; transform: scaleX(0); }
.g3-timer b.low { background: #ff5a6e; }
.g3-ui { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.g3-ui:empty { display: none; }
.g3-row { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.g3-row > .btn { flex: 1; min-width: 0; max-width: 220px; }
.g3-note { text-align: center; font-size: 12px; color: #dfe3ff; text-shadow: 0 1px 4px #000; padding: 2px 6px; }
.g3-mini { align-self: center; padding: 4px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.3); background: rgba(8,10,22,.6); color: #fff; font: inherit; font-size: 11.5px; cursor: pointer; }
.g3-bet { display: flex; align-items: baseline; justify-content: center; gap: 10px; text-shadow: 0 1px 4px #000; }
.g3-bet b { font-size: 14px; } .g3-bet b span { color: #ffe36e; } .g3-bet small { color: var(--ink2); }
.bj-chip { width: 44px; height: 44px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.75); font: 700 12px Unbounded, sans-serif; color: #fff; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.4), 0 6px 14px rgba(0,0,0,.4); transition: transform .1s; }
.bj-chip:active { transform: translateY(2px) scale(.95); }
.bj-chip:disabled { opacity: .35; }
.bj-chip.c10 { background: #2F7FE0; } .bj-chip.c50 { background: #D93A4E; } .bj-chip.c100 { background: #1d1d22; border-color: #f0c64a; color: #f0c64a; } .bj-chip.c500 { background: #7B3FB8; }
.bj-chip.clr { background: rgba(255,255,255,.12); border-style: solid; font-size: 18px; }
.bj-act { padding: 12px 0; border-radius: 14px; font-weight: 700; font-size: 14px; color: #fff; background: rgba(8,10,22,.75); border: 1px solid rgba(255,255,255,.4); cursor: pointer; }
.bj-act.hit { background: linear-gradient(135deg, #ff4fa3, #8a5cff); border: 0; box-shadow: 0 0 14px rgba(255,79,163,.5); }
.bj-act.stand { background: #fff; color: #141a2e; border: 0; }
.bj-act.ghost { background: rgba(8,10,22,.5); font-weight: 500; }
.bj-act:disabled { opacity: .35; }
.g3-row.act2:empty { display: none; }
.g3-result { text-align: center; text-shadow: 0 2px 8px #000; display: flex; flex-direction: column; gap: 2px; }
.g3-result b { font-size: 15px; } .g3-result span { font: 700 22px Unbounded, sans-serif; }
.g3-result.up span { color: #b6f36a; } .g3-result.dn span { color: #ff8f9f; }
.g3-msg { position: absolute; left: 0; right: 0; top: 34%; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.g3-pop { padding: 8px 14px; border-radius: 14px; background: rgba(8,10,22,.8); border: 1px solid rgba(255,255,255,.2); font-size: 13px; animation: g3pop 2.6s ease forwards; }
@keyframes g3pop { 0% { opacity: 0; transform: translateY(8px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.yt-ico.g-bj { background: linear-gradient(145deg, #1f6b4a, #0d3a28); }
.yt-ico.g-hk { background: linear-gradient(145deg, #1b2148, #0b0e22); }
.yt-ico svg .felt { fill: #1e8a5c; stroke: #e8c25a; stroke-width: 1.5; }
.yt-ico svg .cd { fill: #fff; } .yt-ico svg .bk { fill: #c2185b; stroke: #fff; stroke-width: 1; }
.yt-ico svg .tx { font: 700 8px Georgia, serif; fill: #141a2e; } .yt-ico svg .tx.r { fill: #d01f45; }
.yt-ico svg .rink { fill: #0d1834; stroke: #7c5cff; stroke-width: 2; } .yt-ico svg .mid { stroke: rgba(255,79,163,.7); stroke-width: 1.4; fill: none; }
.yt-ico svg .gp { fill: #ff4fa3; } .yt-ico svg .gb { fill: #3fb6ff; } .yt-ico svg .pk { fill: #e3202e; stroke: #fff; stroke-width: .8; }
.yt-mini svg .ln { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 3; } .yt-mini svg .cd { fill: #fff; } .yt-mini svg .dg { stroke: rgba(255,255,255,.3); stroke-width: 2.5; } .yt-mini svg .pk { fill: #e3202e; }
.g-strip:not([hidden]) ~ .g-view { margin-top: 0; }

/* 에어하키 */
.hk-score { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 5px 12px; border-radius: 99px; background: rgba(5,6,13,.7); border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.hk-score:empty { display: none; }
.hk-score .hs { display: flex; align-items: center; gap: 4px; } .hk-score .hs b { font: 700 22px Unbounded, sans-serif; }
.hk-score .t0 b { color: #3fb6ff; text-shadow: 0 0 10px #3fb6ff; } .hk-score .t1 b { color: #ff4fa3; text-shadow: 0 0 10px #ff4fa3; }
.hk-score .hs-mid { font: 600 12px Unbounded, sans-serif; color: #dfe3ff; min-width: 38px; text-align: center; }
.hk-score .av.xxs { width: 20px; height: 20px; font-size: 12px; display: grid; place-items: center; }
.hk-exit, .hk-big { position: absolute; top: 8px; width: 34px; height: 34px; border-radius: 11px; border: 1px solid rgba(255,255,255,.3); background: rgba(5,6,13,.6); color: #fff; font-size: 14px; display: none; cursor: pointer; }
.hk-exit { left: 8px; } .hk-big { right: 8px; }
.hk-wrap.playing .hk-big { display: block; }
body.hk-fullscreen .hk-big { display: none; } body.hk-fullscreen .hk-exit { display: block; }
.hk-count { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.6); font: 700 84px Unbounded, sans-serif; color: #fff; text-shadow: 0 0 24px #ff4fa3, 0 0 48px #4fe3ff; opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s; }
.hk-count.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hk-ui { max-height: 100%; overflow-y: auto; background: linear-gradient(180deg, rgba(5,6,13,0), rgba(5,6,13,.82) 22%); padding-top: 22px; margin: 0 -8px -8px; padding: 22px 10px 10px; }
.hk-wrap.playing .hk-ui { background: none; }
.hk-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hk-team { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.hk-team > b { font-size: 13px; color: var(--tc); text-shadow: 0 0 8px var(--tc); }
.hk-team > div { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.hk-lv { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink2); }
#hkFullBox { position: fixed; inset: 0; z-index: 90; background: #05060d; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
#hkFullBox[hidden] { display: none; }
#hkFullBox #hk { height: 100%; }
#hkFullBox .g-strip { display: none !important; }
#hkFullBox .g3-wrap { border-radius: 0; }
body.hk-fullscreen { overflow: hidden; }
body.hk-fullscreen .hk-wrap .hk-big { display: none; }
/* 🚨 골 축하: 조명 + 사이키 7초 (더 현란하게) */
.hk-celeb { position: absolute; inset: 0; pointer-events: none; overflow: hidden; display: none; mix-blend-mode: screen; }
.hk-celeb.on { display: block; animation: hcAll 7s linear forwards; }
@keyframes hcAll { 0% { filter: hue-rotate(0deg) saturate(1.6); } 100% { filter: hue-rotate(1440deg) saturate(1.6); } }
.hc-strobe { position: absolute; inset: 0; animation: hcStrobe .24s steps(4) infinite; }
@keyframes hcStrobe { 0% { background: rgba(255,0,76,.38); } 25% { background: rgba(0,229,255,.32); } 50% { background: rgba(182,255,0,.3); } 75% { background: rgba(255,0,212,.36); } }
.hc-psy { position: absolute; inset: -60%; background: conic-gradient(from 0deg, #ff004c99, #ffb30099, #b6ff0099, #00e5ff99, #7c5cff99, #ff00d499, #ff004c99); animation: hcSpin .8s linear infinite; filter: blur(4px); }
.hc-psy.p2 { background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.55) 0 6deg, transparent 6deg 24deg); animation: hcSpin 1.4s linear infinite reverse; filter: none; opacity: .55; }
@keyframes hcSpin { to { transform: rotate(360deg); } }
.hc-rings { position: absolute; inset: 0; }
.hc-rings i { position: absolute; left: 50%; top: 45%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 22px #ff4fa3, inset 0 0 22px #4fe3ff; animation: hcRing 1.2s ease-out infinite; opacity: 0; }
.hc-rings i:nth-child(2) { animation-delay: .3s; border-color: #4fe3ff; } .hc-rings i:nth-child(3) { animation-delay: .6s; border-color: #b6ff00; } .hc-rings i:nth-child(4) { animation-delay: .9s; border-color: #ff00d4; }
@keyframes hcRing { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(22); opacity: 0; } }
.hc-beam { position: absolute; left: 50%; bottom: -10%; width: 22%; height: 150%; transform-origin: 50% 100%; filter: blur(3px); }
.hc-beam.b1 { animation: hcSweep 1.0s ease-in-out infinite alternate; background: linear-gradient(0deg, rgba(255,0,76,.95), transparent); }
.hc-beam.b2 { animation: hcSweep .7s ease-in-out infinite alternate-reverse; background: linear-gradient(0deg, rgba(0,229,255,.95), transparent); }
.hc-beam.b3 { animation: hcSweep 1.3s ease-in-out infinite alternate; background: linear-gradient(0deg, rgba(255,227,110,.9), transparent); }
.hc-beam.b4 { animation: hcSweep .55s ease-in-out infinite alternate-reverse; background: linear-gradient(0deg, rgba(182,255,0,.9), transparent); }
.hc-beam.b5, .hc-beam.b6, .hc-beam.b7, .hc-beam.b8 { bottom: auto; top: -10%; transform-origin: 50% 0; }
.hc-beam.b5 { animation: hcSweepT .9s ease-in-out infinite alternate; background: linear-gradient(180deg, rgba(255,0,212,.9), transparent); }
.hc-beam.b6 { animation: hcSweepT .6s ease-in-out infinite alternate-reverse; background: linear-gradient(180deg, rgba(124,92,255,.95), transparent); }
.hc-beam.b7 { animation: hcSweepT 1.15s ease-in-out infinite alternate; background: linear-gradient(180deg, rgba(0,229,255,.85), transparent); }
.hc-beam.b8 { animation: hcSweepT .75s ease-in-out infinite alternate-reverse; background: linear-gradient(180deg, rgba(255,179,0,.9), transparent); }
@keyframes hcSweep { from { transform: translateX(-50%) rotate(-62deg); } to { transform: translateX(-50%) rotate(62deg); } }
@keyframes hcSweepT { from { transform: translateX(-50%) rotate(62deg); } to { transform: translateX(-50%) rotate(-62deg); } }
.hc-dots { position: absolute; inset: -20%; background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 3px, transparent 4px); background-size: 46px 46px; animation: hcDots .9s linear infinite, hcBlink .18s steps(2) infinite; opacity: .5; }
@keyframes hcDots { to { transform: rotate(45deg) scale(1.15); } }
@keyframes hcBlink { 50% { opacity: .05; } }
.hc-txt { position: absolute; left: 0; right: 0; top: 30%; display: flex; flex-direction: column; align-items: center; gap: 6px; mix-blend-mode: normal; animation: hcPulse .28s ease-in-out infinite alternate; z-index: 2; }
.hc-txt b { font: 700 58px Unbounded, sans-serif; color: #fff; text-shadow: 0 0 14px var(--tc), 0 0 34px #ff00d4, 0 0 60px #00e5ff, 0 0 90px var(--tc); letter-spacing: 2px; text-align: center; animation: hcTxtCol .35s steps(3) infinite; }
@keyframes hcTxtCol { 0% { color: #fff; } 33% { color: #ffe36e; } 66% { color: #b6ff00; } }
.hc-txt small { font-size: 14px; font-weight: 600; color: #fff; text-shadow: 0 0 10px var(--tc); }
@keyframes hcPulse { from { transform: scale(.9) rotate(-4deg); } to { transform: scale(1.12) rotate(4deg); } }
.hk-shake .g3-cv { animation: hkShake .09s linear infinite; }
@keyframes hkShake { 0% { transform: translate(3px, -2px); } 25% { transform: translate(-3px, 2px); } 50% { transform: translate(2px, 3px); } 75% { transform: translate(-2px, -3px); } }
@media (prefers-reduced-motion: reduce) { .hc-strobe, .hc-dots { animation-duration: 1s; } .hk-shake .g3-cv { animation: none; } }
.g3-focus { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 14px; border-radius: 16px; background: rgba(8,10,22,.72); border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.45); pointer-events: none; opacity: 0; transition: opacity .25s; white-space: nowrap; will-change: transform; }
.g3-focus small { font-size: 11.5px; color: #dfe3ff; }
.g3-focus b { font: 700 24px Unbounded, sans-serif; color: #fff; display: flex; gap: 10px; }
.g3-focus b .bad { color: #ff8f9f; } .g3-focus b .good { color: #b6f36a; }
/* 📍 있는 곳 표시 (프사 오른쪽 위 작은 이모지) */
.person .badge.zone { position: absolute; top: -3px; right: 0; left: auto; min-width: 22px; height: 22px; padding: 0; border-radius: 50%; font-size: 12.5px; background: #141831; border: 1.5px solid rgba(255,255,255,.85); box-shadow: 0 2px 6px rgba(0,0,0,.45); z-index: 2; }
.person .badge.zone.l { right: auto; left: 0; }
.person.apart .ring { opacity: .42; filter: grayscale(.55); }
.person.apart .badge.zone { border-color: #ffb3d1; }
.person.apart .nm { opacity: .6; }
.zone-note { display: block; color: #ffb3d1; margin-top: 2px; }
.bj-act { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.15; }
.bj-act b { font-weight: 700; font-size: 14px; }
.bj-act i { font-style: normal; font-weight: 500; font-size: 10.5px; opacity: .78; }
.g3-row.act2 .bj-act { padding: 8px 0; }
.g3-row.act2 .bj-act b { font-size: 12.5px; }
.bj-act:disabled { opacity: .38; }
.g3-ins { display: flex; flex-direction: column; gap: 3px; padding: 8px 12px; border-radius: 14px; background: rgba(8,10,22,.72); border: 1px solid rgba(255,227,110,.5); text-shadow: none; }
.g3-ins b { font-size: 14px; color: #ffe36e; } .g3-ins small { font-size: 11.5px; color: #dfe3ff; line-height: 1.45; }
/* 🎙 게임 화면 마이크 버튼 (작게, 구석) */
.g3-mic { position: absolute; z-index: 6; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.75); background: rgba(8,10,22,.62); color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; }
.g3-mic .sl { display: none; }
.g3-mic.off { border-color: #ff6b8a; color: #ffb3c4; } .g3-mic.off .sl { display: block; }
/* 마이크: 화면 아래 구석 (버튼판은 그만큼 비켜 줌) */
.bj-wrap .g3-mic, .hk-wrap .g3-mic { bottom: 10px; right: 10px; }
body.hk-fullscreen .hk-wrap .g3-mic { bottom: calc(14px + env(safe-area-inset-bottom)); right: 14px; width: 42px; height: 42px; }
.bj-wrap .g3-ui { right: 52px; }
.hk-wrap .hk-ui { padding-right: 54px; }
/* ❔ 블랙잭 하는 법 */
.bj-help { position: absolute; top: 30px; left: 8px; z-index: 6; padding: 5px 10px; border-radius: 99px; border: 1px solid rgba(255,255,255,.4); background: rgba(8,10,22,.62); color: #fff; font: 600 11.5px inherit; cursor: pointer; }
.bj-tut { position: absolute; left: 8px; right: 8px; top: 70px; z-index: 7; display: none; border-radius: 18px; background: rgba(10,12,26,.93); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 14px 34px rgba(0,0,0,.55); overflow: hidden; }
.bj-tut.on { display: block; animation: btIn .25s ease; }
@keyframes btIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.bt-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px 4px; }
.bt-head b { font-size: 13px; }
.bt-dots { display: flex; gap: 4px; margin-left: auto; }
.bt-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); cursor: pointer; }
.bt-dots i.on { background: #ff4fa3; box-shadow: 0 0 6px #ff4fa3; }
.bt-pp, .bt-x { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; font-size: 12px; cursor: pointer; padding: 0; }
.bt-body { padding: 2px 12px 10px; }
.bt-cap { font-size: 13.5px; font-weight: 700; line-height: 1.4; animation: btFade .4s ease both; }
.bt-note { font-size: 11.5px; color: #b8bedc; line-height: 1.45; margin-top: 6px; animation: btFade .4s .5s ease both; }
@keyframes btFade { from { opacity: 0; transform: translateY(4px); } }
.bt-stage { min-height: 112px; margin-top: 8px; padding: 10px; border-radius: 14px; background: radial-gradient(ellipse at 50% 30%, #1e8a5c, #0b3a28); display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.bt-stage .tr { display: flex; align-items: center; gap: 8px; }
.bt-stage .tl { width: 34px; font-size: 11px; color: #d8f5e6; flex-shrink: 0; }
.bt-stage .tcs { display: flex; gap: 0; }
.tc { width: 32px; height: 45px; border-radius: 5px; background: #fbfaf6; color: #14141c; box-shadow: 0 3px 8px rgba(0,0,0,.4); margin-right: -6px; display: flex; flex-direction: column; justify-content: space-between; padding: 3px 4px; box-sizing: border-box; animation: tcIn .45s calc(var(--i) * .35s) cubic-bezier(.2,.9,.3,1.2) both; }
.tc.red { color: #d01f45; }
.tc b { font: 700 13px Georgia, serif; line-height: 1; } .tc em { font-style: normal; font-size: 15px; align-self: flex-end; line-height: 1; }
.tc.back { background: repeating-linear-gradient(45deg, #c2185b 0 4px, #e0457a 4px 8px); border: 2px solid #fff; }
@keyframes tcIn { from { opacity: 0; transform: translate(80px, -40px) rotate(25deg); } }
.tt { margin-left: 12px; padding: 3px 10px; border-radius: 99px; background: rgba(0,0,0,.45); font: 700 13px Unbounded, sans-serif; animation: btFade .35s var(--d, 1s) ease both; white-space: nowrap; }
.tr.bad .tt { background: #d6265a; } .tr.good .tt { background: #3fa45a; }
.tdbl { margin-left: 6px; font-size: 11px; color: #ffe36e; animation: btFade .35s 1.2s ease both; }
.tflip { position: relative; width: 32px; height: 45px; margin-right: -6px; }
.tflip .tc { position: absolute; inset: 0; margin: 0; }
.tflip .tc:last-child { animation: tcFlip .4s 2.4s ease both; }
.tflip .tc.back { animation: tcIn .45s calc(var(--i) * .35s) both, tcHide .1s 2.4s forwards; }
@keyframes tcFlip { from { opacity: 0; transform: rotateY(90deg); } }
@keyframes tcHide { to { opacity: 0; } }
.tchips { display: flex; gap: 10px; justify-content: center; }
.tchip { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 11px Unbounded, sans-serif; color: #fff; border: 3px dashed rgba(255,255,255,.75); animation: tchip .5s calc(.3s + var(--i) * .45s) cubic-bezier(.3,1.4,.5,1) both; }
.tchip.c10 { background: #2F7FE0; } .tchip.c50 { background: #D93A4E; } .tchip.c100 { background: #1d1d22; color: #f0c64a; border-color: #f0c64a; }
@keyframes tchip { from { opacity: 0; transform: translateY(40px) scale(.6); } }
.tbet { text-align: center; font: 700 16px Unbounded, sans-serif; color: #ffe36e; animation: btFade .4s 1.8s both; }
.tbtn { align-self: center; padding: 5px 14px; border-radius: 99px; background: linear-gradient(135deg, #ff4fa3, #8a5cff); font-size: 12px; font-weight: 700; animation: btFade .4s 2.5s both, btPress .3s 3.1s; }
@keyframes btPress { 50% { transform: scale(.9); } }
.tsplit { display: flex; align-items: center; justify-content: center; gap: 12px; }
.tarrow { font-size: 20px; animation: btFade .3s 1s both; }
.tsp2 { display: flex; flex-direction: column; gap: 6px; }
.bt-bar { height: 3px; background: rgba(255,255,255,.08); } .bt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4fe3ff, #ff4fa3); transform-origin: left; transform: scaleX(0); }
@keyframes btBar { to { transform: scaleX(1); } }
.bj-tut.paused * { animation-play-state: paused !important; }
/* 😜 골 세레머니: 넣은 사람 프사가 약올리기 */
.hk-taunt { position: absolute; inset: 0; pointer-events: none; display: none; z-index: 5; overflow: hidden; }
.hk-taunt.on { display: block; }
.ht-card { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; animation: htIn .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes htIn { from { transform: translate(-50%, 40%) scale(.2); opacity: 0; } }
/* 저질춤: 몸 전체가 좌우로 씰룩씰룩 + 엉덩이 흔들기 */
.ht-dancer { display: flex; flex-direction: column; align-items: center; animation: htGroove .46s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes htGroove { 0% { transform: translateX(-18px) rotate(-9deg) skewX(6deg); } 100% { transform: translateX(18px) rotate(9deg) skewX(-6deg); } }
.ht-av { position: relative; width: min(34vw, 150px); aspect-ratio: 1; border-radius: 50%; z-index: 2; animation: htHead .23s ease-in-out infinite alternate; }
@keyframes htHead { from { transform: rotate(-16deg) translateY(2px); } to { transform: rotate(16deg) translateY(-6px); } }
.ht-av > img, .ht-av > svg, .ht-av > .ht-bot { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 5px solid var(--tc); box-shadow: 0 0 24px var(--tc), 0 0 60px var(--tc); background: #eee; display: grid; place-items: center; font-size: 70px; box-sizing: border-box; }
.ht-tongue { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); font-size: min(12vw, 52px); font-style: normal; animation: htTongue .2s ease-in-out infinite alternate; }
@keyframes htTongue { from { transform: translateX(-50%) scaleY(.6); } to { transform: translateX(-50%) scaleY(1.35) translateY(7px); } }
.ht-body { position: relative; width: min(20vw, 86px); height: min(26vw, 112px); margin-top: -10px; }
.ht-torso { position: absolute; left: 16%; right: 16%; top: 0; height: 58%; border-radius: 40% 40% 30% 30%; background: var(--tc); box-shadow: 0 0 16px var(--tc); animation: htHip .23s ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes htHip { from { transform: rotate(-10deg) translateX(-4px); } to { transform: rotate(10deg) translateX(4px); } }
.ht-arm { position: absolute; top: 6%; width: 52%; height: 9px; border-radius: 9px; background: var(--tc); font-style: normal; }
.ht-arm b { position: absolute; top: 50%; transform: translateY(-50%); font-size: min(9vw, 36px); }
.ht-arm.l { right: 72%; transform-origin: 100% 50%; animation: htArmL .23s ease-in-out infinite alternate; } .ht-arm.l b { left: -60%; }
.ht-arm.r { left: 72%; transform-origin: 0 50%; animation: htArmR .23s ease-in-out infinite alternate; } .ht-arm.r b { right: -60%; }
@keyframes htArmL { from { transform: rotate(35deg); } to { transform: rotate(-55deg); } }
@keyframes htArmR { from { transform: rotate(55deg); } to { transform: rotate(-35deg); } }
.ht-leg { position: absolute; top: 52%; width: 10px; height: 52%; border-radius: 10px; background: var(--tc); transform-origin: 50% 0; }
.ht-leg.l { left: 30%; animation: htLegL .46s ease-in-out infinite; } .ht-leg.r { right: 30%; animation: htLegR .46s ease-in-out infinite; }
@keyframes htLegL { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(-38deg) translateY(-6px); } }
@keyframes htLegR { 0%, 100% { transform: rotate(38deg) translateY(-6px); } 50% { transform: rotate(-8deg); } }
.ht-bubble { padding: 8px 18px; border-radius: 22px; background: #fff; color: #141a2e; font: 800 20px inherit; box-shadow: 0 6px 18px rgba(0,0,0,.4); animation: htPop .45s .35s cubic-bezier(.2,1.8,.4,1) both, htWob .5s 1s ease-in-out infinite alternate; position: relative; z-index: 3; }
.ht-bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
@keyframes htPop { from { transform: scale(0); } }
@keyframes htWob { to { transform: rotate(-5deg) scale(1.06); } }
.ht-name { font-size: 14px; color: #fff; text-shadow: 0 0 10px var(--tc), 0 2px 4px #000; }
.ht-fly { position: absolute; left: var(--x); bottom: -10%; font-size: 30px; font-style: normal; animation: htFly 2.4s calc(var(--i) * .28s) ease-out infinite; }
@keyframes htFly { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-110vh) rotate(380deg); opacity: 0; } }

.hk-time { align-items: center; gap: 8px; flex-wrap: nowrap; }
.hk-mins { flex: 1; max-width: 220px; accent-color: #ff4fa3; height: 28px; }
.hk-minv { min-width: 40px; font: 700 13px Unbounded, sans-serif; color: #ffe36e; text-align: right; }

/* ═════ 😜 세레모니 20가지 (m0 = 메롱 저질춤 기본) ═════ */
.ht-card.m1 .ht-dancer { animation: m1Twerk .2s ease-in-out infinite alternate; }
@keyframes m1Twerk { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(14px) rotate(4deg) scaleY(.92); } }
.ht-card.m1 .ht-torso { animation: m1Hip .1s linear infinite alternate; }
@keyframes m1Hip { from { transform: skewX(-25deg) translateX(-8px); } to { transform: skewX(25deg) translateX(8px); } }
.ht-card.m2 .ht-dancer { animation: m2Spin .6s linear infinite; }
@keyframes m2Spin { from { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(180deg) translateY(-12px); } to { transform: rotateY(360deg) translateY(0); } }
.ht-card.m3 .ht-dancer { animation: m3Robot .8s steps(4) infinite; }
@keyframes m3Robot { 0% { transform: translateX(-14px); } 25% { transform: translateX(0) rotate(8deg); } 50% { transform: translateX(14px); } 75% { transform: translateX(0) rotate(-8deg); } }
.ht-card.m3 .ht-arm.l { animation: m3ArmL .8s steps(2) infinite; } .ht-card.m3 .ht-arm.r { animation: m3ArmR .8s steps(2) infinite; }
@keyframes m3ArmL { 0% { transform: rotate(0); } 100% { transform: rotate(-90deg); } }
@keyframes m3ArmR { 0% { transform: rotate(90deg); } 100% { transform: rotate(0); } }
.ht-card.m3 .ht-av { animation: m3Head .4s steps(2) infinite; }
@keyframes m3Head { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.ht-card.m4 .ht-dancer { animation: m4Moon 2.2s linear infinite; }
@keyframes m4Moon { 0% { transform: translateX(80px); } 50% { transform: translateX(-80px); } 50.01% { transform: translateX(-80px) scaleX(-1); } 100% { transform: translateX(80px) scaleX(-1); } }
.ht-card.m4 .ht-leg.l { animation: m4Leg .3s ease-in-out infinite alternate; } .ht-card.m4 .ht-leg.r { animation: m4Leg .3s ease-in-out infinite alternate-reverse; }
@keyframes m4Leg { from { transform: rotate(-20deg) translateY(-5px); } to { transform: rotate(10deg); } }
.ht-card.m5 .ht-dancer { animation: m5Jump .55s cubic-bezier(.3,0,.4,1) infinite; }
@keyframes m5Jump { 0%, 100% { transform: translateY(0) scale(1.05, .9); } 45% { transform: translateY(-90px) scale(.95, 1.08); } }
.ht-card.m5 .ht-arm.l { animation: m5Arm .55s infinite; } .ht-card.m5 .ht-arm.r { animation: m5ArmR .55s infinite; }
@keyframes m5Arm { 0%, 100% { transform: rotate(10deg); } 45% { transform: rotate(-120deg); } }
@keyframes m5ArmR { 0%, 100% { transform: rotate(-10deg); } 45% { transform: rotate(120deg); } }
.ht-card.m6 .ht-arm.l { animation: m6Flap .12s linear infinite alternate; } .ht-card.m6 .ht-arm.r { animation: m6FlapR .12s linear infinite alternate; }
@keyframes m6Flap { from { transform: rotate(40deg); } to { transform: rotate(-30deg); } }
@keyframes m6FlapR { from { transform: rotate(-40deg); } to { transform: rotate(30deg); } }
.ht-card.m6 .ht-av { animation: m6Peck .3s ease-in-out infinite; }
@keyframes m6Peck { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(22px, 10px) rotate(18deg); } }
.ht-card.m7 .ht-arm.r { animation: m7Disco .5s ease-in-out infinite alternate; } .ht-card.m7 .ht-arm.l { animation: m7DiscoL .5s ease-in-out infinite alternate; }
@keyframes m7Disco { from { transform: rotate(-70deg); } to { transform: rotate(40deg); } }
@keyframes m7DiscoL { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
.ht-card.m7 .ht-dancer { animation: m7Hip .5s ease-in-out infinite alternate; }
@keyframes m7Hip { from { transform: translateX(-10px) rotate(-6deg); } to { transform: translateX(10px) rotate(6deg); } }
.ht-card.m8 .ht-dancer { animation: m8Wild .7s linear infinite; }
@keyframes m8Wild { 0% { transform: rotate(0); } 15% { transform: rotate(-20deg) translate(-20px, -10px); } 30% { transform: rotate(25deg) translate(15px, 5px) scale(1.1); } 50% { transform: rotate(-10deg) translate(-5px, -25px); } 70% { transform: rotate(18deg) translate(20px, 0) scale(.9); } 85% { transform: rotate(-25deg) translate(-12px, 8px); } 100% { transform: rotate(0); } }
.ht-card.m8 .ht-arm.l, .ht-card.m8 .ht-arm.r { animation-duration: .13s; }
.ht-card.m9 .ht-dancer { animation: m9Head 0.7s linear infinite; }
.ht-card.m9 .ht-dancer { transform-origin: 50% 50%; }
@keyframes m9Head { from { transform: translateY(-150px) rotate(180deg) rotateY(0); } to { transform: translateY(-150px) rotate(180deg) rotateY(360deg); } }
.ht-card.m9 .ht-leg.l { animation: m9Leg .35s infinite alternate; } .ht-card.m9 .ht-leg.r { animation: m9Leg .35s infinite alternate-reverse; }
@keyframes m9Leg { from { transform: rotate(-50deg); } to { transform: rotate(50deg); } }
.ht-card.m10 .ht-dancer { animation: m10Nah .3s ease-in-out infinite alternate; }
@keyframes m10Nah { from { transform: rotate(-12deg) translateX(-10px); } to { transform: rotate(12deg) translateX(10px); } }
.ht-card.m10 .ht-arm.l { animation: none; transform: rotate(-100deg); } .ht-card.m10 .ht-arm.r { animation: none; transform: rotate(100deg); }
.ht-card.m10 .ht-arm b { animation: m10Wig .15s linear infinite alternate; }
@keyframes m10Wig { from { transform: translateY(-50%) rotate(-25deg); } to { transform: translateY(-50%) rotate(25deg); } }
.ht-card.m11 .ht-dancer { animation: m11Jelly .55s ease-in-out infinite; }
@keyframes m11Jelly { 0%, 100% { transform: scale(1, 1); } 25% { transform: scale(1.25, .75); } 50% { transform: scale(.8, 1.2); } 75% { transform: scale(1.12, .9); } }
.ht-card.m12 .ht-dancer { animation: m12Giant 1.4s ease-in-out infinite alternate; }
@keyframes m12Giant { 0% { transform: scale(.9); } 60% { transform: scale(1.6) translateY(-10px); } 62%, 70% { transform: scale(1.6) translate(-6px, -10px); } 66%, 74% { transform: scale(1.6) translate(6px, -10px); } 100% { transform: scale(1.55) translateY(-10px); } }
.ht-card.m12 .ht-arm.l { animation: none; transform: rotate(-80deg); } .ht-card.m12 .ht-arm.r { animation: none; transform: rotate(80deg); }
.ht-card.m13 .ht-dancer { animation: m13Pend 1s ease-in-out infinite alternate; transform-origin: 50% -120%; }
@keyframes m13Pend { from { transform: rotate(-32deg); } to { transform: rotate(32deg); } }
.ht-card.m14 .ht-dancer { animation: m14Flip .9s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes m14Flip { 0% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-80px) rotate(-180deg); } 100% { transform: translateY(0) rotate(-360deg); } }
.ht-card.m15 .ht-dancer { animation: m15Zig 1.2s linear infinite; }
@keyframes m15Zig { 0% { transform: translate(-110px, 20px) rotate(-10deg); } 25% { transform: translate(-40px, -40px) rotate(10deg); } 50% { transform: translate(30px, 20px) rotate(-10deg); } 75% { transform: translate(100px, -40px) rotate(10deg); } 100% { transform: translate(-110px, 20px) rotate(-10deg); } }
.ht-card.m15 .ht-leg.l, .ht-card.m15 .ht-leg.r { animation-duration: .18s; }
.ht-card.m16 .ht-dancer { animation: m16Ballet 1.1s ease-in-out infinite; }
@keyframes m16Ballet { 0% { transform: rotateY(0) translateY(0); } 70% { transform: rotateY(720deg) translateY(-14px); } 100% { transform: rotateY(720deg) translateY(0); } }
.ht-card.m16 .ht-arm.l { animation: none; transform: rotate(-150deg); } .ht-card.m16 .ht-arm.r { animation: none; transform: rotate(150deg); }
.ht-card.m16 .ht-leg.l { animation: none; transform: rotate(0); } .ht-card.m16 .ht-leg.r { animation: none; transform: rotate(-70deg); }
.ht-card.m17 .ht-dancer { animation: m17Shuffle .45s steps(3) infinite alternate; }
@keyframes m17Shuffle { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
.ht-card.m17 .ht-leg.l { animation: m17Leg .15s linear infinite alternate; } .ht-card.m17 .ht-leg.r { animation: m17Leg .15s linear infinite alternate-reverse; }
@keyframes m17Leg { from { transform: rotate(-40deg); } to { transform: rotate(40deg); } }
.ht-card.m18 .ht-dancer { animation: m18Horse .32s ease-in-out infinite alternate; }
@keyframes m18Horse { from { transform: translateY(0) translateX(-6px); } to { transform: translateY(-22px) translateX(6px); } }
.ht-card.m18 .ht-arm.r { animation: m18Lasso .4s linear infinite; transform-origin: 0 50%; }
@keyframes m18Lasso { from { transform: rotate(-140deg); } to { transform: rotate(220deg); } }
.ht-card.m18 .ht-arm.l { animation: none; transform: rotate(10deg); }
.ht-card.m18 .ht-leg.l, .ht-card.m18 .ht-leg.r { animation-duration: .32s; }
.ht-card.m19 .ht-dancer { animation: m19Float 2.2s ease-in-out infinite alternate; }
@keyframes m19Float { 0% { transform: translate(-40px, 30px) rotate(-10deg); } 50% { transform: translate(30px, -70px) rotate(8deg); } 100% { transform: translate(-20px, -30px) rotate(-6deg); } }
.ht-card.m19 .ht-arm.l, .ht-card.m19 .ht-arm.r { animation-duration: 1.1s; }

/* ═════ 💡 골 조명 10가지 (l0 = 무지개 사이키 기본) ═════ */
.hk-celeb:not(.l0).on { animation: none; filter: saturate(1.4); }
/* l1 경찰 레드·블루 */
.hk-celeb.l1 .hc-psy { background: conic-gradient(from 0deg, #ff1a1aaa 0 25%, transparent 25% 50%, #1a4dffaa 50% 75%, transparent 75%); animation-duration: .5s; }
.hk-celeb.l1 .hc-psy.p2 { display: none; }
.hk-celeb.l1 .hc-strobe { animation: l1Strobe .32s steps(1) infinite; }
@keyframes l1Strobe { 0% { background: linear-gradient(90deg, rgba(255,26,26,.55) 50%, transparent 50%); } 50% { background: linear-gradient(90deg, transparent 50%, rgba(26,77,255,.55) 50%); } }
.hk-celeb.l1 .hc-beam:nth-of-type(odd) { background: linear-gradient(0deg, rgba(255,26,26,.95), transparent); } .hk-celeb.l1 .hc-beam:nth-of-type(even) { background: linear-gradient(180deg, rgba(26,77,255,.95), transparent); }
.hk-celeb.l1 .hc-dots { display: none; }
/* l2 골드 스포트라이트 */
.hk-celeb.l2 .hc-psy { background: radial-gradient(circle at 50% 45%, rgba(255,211,77,.6), transparent 55%); animation: l2Pulse .6s ease-in-out infinite alternate; filter: none; }
@keyframes l2Pulse { from { transform: scale(.8); } to { transform: scale(1.15); } }
.hk-celeb.l2 .hc-psy.p2 { background: repeating-conic-gradient(from 0deg, rgba(255,230,150,.5) 0 4deg, transparent 4deg 18deg); }
.hk-celeb.l2 .hc-beam { background: linear-gradient(0deg, rgba(255,211,77,.9), transparent) !important; width: 30%; }
.hk-celeb.l2 .hc-strobe { animation: l2Strobe .5s steps(2) infinite; }
@keyframes l2Strobe { 0% { background: rgba(255,200,60,.25); } 50% { background: rgba(0,0,0,0); } }
.hk-celeb.l2 .hc-dots { background-image: radial-gradient(circle, #fff3c2 0 2px, transparent 3px); background-size: 30px 30px; }
.hk-celeb.l2 .hc-rings i { border-color: #ffd34d !important; box-shadow: 0 0 22px #ffb020; }
/* l3 그린 레이저 */
.hk-celeb.l3 .hc-psy { display: none; }
.hk-celeb.l3 .hc-psy.p2 { display: block; background: repeating-conic-gradient(from 0deg at 50% 110%, rgba(57,255,20,.75) 0 .6deg, transparent .6deg 7deg); animation: l3Sweep 1.2s ease-in-out infinite alternate; opacity: .9; }
@keyframes l3Sweep { from { transform: rotate(-25deg); } to { transform: rotate(25deg); } }
.hk-celeb.l3 .hc-beam { width: 2%; filter: none; background: linear-gradient(0deg, #39ff14, transparent) !important; box-shadow: 0 0 10px #39ff14; }
.hk-celeb.l3 .hc-strobe { animation: l3Strobe .2s steps(2) infinite; }
@keyframes l3Strobe { 0% { background: rgba(0,255,120,.18); } 50% { background: rgba(0,0,0,0); } }
.hk-celeb.l3 .hc-dots { background-image: linear-gradient(rgba(57,255,20,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(57,255,20,.35) 1px, transparent 1px); background-size: 34px 34px; }
.hk-celeb.l3 .hc-rings i { border-color: #39ff14 !important; }
/* l4 핑크 하트 */
.hk-celeb.l4 .hc-psy { background: conic-gradient(from 0deg, #ff4fa3aa, #ff00d4aa, #ffb3d9aa, #ff4fa3aa); }
.hk-celeb.l4 .hc-psy.p2 { background: radial-gradient(circle, rgba(255,180,220,.6) 0 18%, transparent 19% 32%, rgba(255,79,163,.5) 33% 40%, transparent 41%); animation: l2Pulse .45s ease-in-out infinite alternate; }
.hk-celeb.l4 .hc-beam { background: linear-gradient(0deg, rgba(255,79,163,.9), transparent) !important; }
.hk-celeb.l4 .hc-strobe { animation: l4Strobe .3s steps(2) infinite; }
@keyframes l4Strobe { 0% { background: rgba(255,0,212,.3); } 50% { background: rgba(255,180,220,.15); } }
.hk-celeb.l4 .hc-dots { background-image: radial-gradient(circle, #ffb3d9 0 4px, transparent 5px); background-size: 40px 40px; }
.hk-celeb.l4 .hc-rings i { border-color: #ff4fa3 !important; border-radius: 50% 50% 50% 0; transform-origin: center; }
/* l5 아이스 스트로브 */
.hk-celeb.l5 .hc-psy { background: conic-gradient(from 0deg, #ffffffaa, #4fe3ffaa, #9be7ffaa, #ffffffaa); animation-duration: .4s; }
.hk-celeb.l5 .hc-strobe { animation: l5Strobe .09s steps(2) infinite; }
@keyframes l5Strobe { 0% { background: rgba(255,255,255,.5); } 50% { background: rgba(79,227,255,.12); } }
.hk-celeb.l5 .hc-beam { background: linear-gradient(0deg, rgba(200,245,255,.95), transparent) !important; }
.hk-celeb.l5 .hc-rings i { border-color: #fff !important; box-shadow: 0 0 22px #4fe3ff; }
/* l6 불꽃 오렌지 */
.hk-celeb.l6 .hc-psy { background: radial-gradient(ellipse at 50% 120%, rgba(255,210,0,.85), rgba(255,106,0,.7) 35%, rgba(255,42,0,.5) 60%, transparent 80%); animation: l6Fire .35s ease-in-out infinite alternate; filter: blur(8px); }
@keyframes l6Fire { from { transform: scaleY(1) translateY(10%); } to { transform: scaleY(1.25) translateY(0); } }
.hk-celeb.l6 .hc-psy.p2 { display: none; }
.hk-celeb.l6 .hc-beam { background: linear-gradient(0deg, rgba(255,106,0,.95), transparent) !important; }
.hk-celeb.l6 .hc-strobe { animation: l6Strobe .25s steps(2) infinite; }
@keyframes l6Strobe { 0% { background: rgba(255,80,0,.3); } 50% { background: rgba(255,210,0,.15); } }
.hk-celeb.l6 .hc-dots { background-image: radial-gradient(circle, #ffd000 0 2px, transparent 3px); background-size: 26px 26px; animation: l6Ember 1s linear infinite; }
@keyframes l6Ember { from { background-position: 0 0; } to { background-position: 0 -260px; } }
/* l7 보라 은하 */
.hk-celeb.l7 .hc-psy { background: conic-gradient(from 0deg, #7c5cffcc, #c04dffcc, #4b2bffcc, #120030cc, #7c5cffcc); animation-duration: 2.4s; }
.hk-celeb.l7 .hc-psy.p2 { background: repeating-conic-gradient(from 0deg, rgba(192,77,255,.45) 0 10deg, transparent 10deg 30deg); animation-duration: 3s; }
.hk-celeb.l7 .hc-beam { background: linear-gradient(0deg, rgba(124,92,255,.9), transparent) !important; }
.hk-celeb.l7 .hc-strobe { animation: l7Strobe .6s steps(2) infinite; }
@keyframes l7Strobe { 0% { background: rgba(60,0,140,.35); } 50% { background: rgba(0,0,0,0); } }
.hk-celeb.l7 .hc-dots { background-image: radial-gradient(circle, #fff 0 1.5px, transparent 2px), radial-gradient(circle, #c9b8ff 0 1px, transparent 2px); background-size: 37px 41px, 23px 29px; animation: hcBlink .5s steps(2) infinite; }
/* l8 흑백 미러볼 */
.hk-celeb.l8 .hc-psy { background: radial-gradient(circle, rgba(255,255,255,.35), transparent 60%); animation: none; }
.hk-celeb.l8 .hc-psy.p2 { background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.7) 0 3deg, transparent 3deg 15deg); animation-duration: 2.2s; }
.hk-celeb.l8 .hc-beam { background: linear-gradient(0deg, rgba(255,255,255,.85), transparent) !important; }
.hk-celeb.l8 .hc-strobe { animation: l8Strobe .12s steps(2) infinite; }
@keyframes l8Strobe { 0% { background: rgba(255,255,255,.35); } 50% { background: rgba(0,0,0,.25); } }
.hk-celeb.l8 .hc-dots { background-image: radial-gradient(circle, #fff 0 6px, transparent 7px); background-size: 52px 52px; animation: hcDots 1.4s linear infinite; opacity: .7; }
.hk-celeb.l8 .hc-rings i { border-color: #fff !important; box-shadow: 0 0 22px #fff; }
/* l9 레트로 8비트 */
.hk-celeb.l9 .hc-psy { background: repeating-conic-gradient(#ff004c 0 25%, #00e5ff 0 50%) 0 0 / 60px 60px; filter: none; animation: l9Check .3s steps(1) infinite; opacity: .5; }
@keyframes l9Check { 0% { background-position: 0 0; } 50% { background-position: 30px 0; } }
.hk-celeb.l9 .hc-psy.p2 { background: repeating-conic-gradient(#ffe36e 0 25%, #b6ff00 0 50%) 0 0 / 30px 30px; animation: l9Check .3s steps(1) infinite reverse; opacity: .35; }
.hk-celeb.l9 .hc-beam { filter: none; width: 12%; }
.hk-celeb.l9 .hc-beam:nth-of-type(4n+1) { background: #ff004c !important; } .hk-celeb.l9 .hc-beam:nth-of-type(4n+2) { background: #00e5ff !important; } .hk-celeb.l9 .hc-beam:nth-of-type(4n+3) { background: #ffe36e !important; } .hk-celeb.l9 .hc-beam:nth-of-type(4n) { background: #b6ff00 !important; }
.hk-celeb.l9 .hc-strobe { animation: hcStrobe .2s steps(4) infinite; }
.hk-celeb.l9 .hc-rings i { border-radius: 0; }
/* 🪙 내 칩 크게 + 충전 */
.bj-mine { position: absolute; top: 28px; right: 8px; z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none; }
.bm-n { font: 700 22px Unbounded, sans-serif; color: #ffe36e; text-shadow: 0 0 12px rgba(255,200,60,.6), 0 2px 6px #000; padding: 2px 10px; border-radius: 12px; background: rgba(8,10,22,.55); }
.bm-n.bump { animation: bmBump .45s ease; }
@keyframes bmBump { 40% { transform: scale(1.18); } }
.bm-top { pointer-events: auto; padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(255,227,110,.7); background: rgba(8,10,22,.7); color: #ffe36e; font: 600 11.5px inherit; cursor: pointer; }
.bm-top:disabled { opacity: .7; border-color: rgba(255,255,255,.3); color: #dfe3ff; }
/* 🔢 내 카드 합 (내 앞쪽) */
.g3-mytot { position: absolute; left: 0; top: 0; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 14px; background: rgba(8,10,22,.78); border: 1.5px solid #4fe3ff; box-shadow: 0 0 14px rgba(79,227,255,.45); pointer-events: none; opacity: 0; transition: opacity .25s; white-space: nowrap; will-change: transform; }
.g3-mytot small { font-size: 11px; color: #bfefff; }
.g3-mytot b { display: flex; gap: 8px; font: 700 20px Unbounded, sans-serif; color: #fff; }
.g3-mytot b .on { color: #4fe3ff; text-decoration: underline; } .g3-mytot b .bad { color: #ff8f9f; } .g3-mytot b .good { color: #b6f36a; }
.bj-lb.empty { animation: seatPulse 1.2s ease-in-out infinite; border-color: #4fe3ff; color: #bfefff; }
@keyframes seatPulse { 50% { box-shadow: 0 0 16px rgba(79,227,255,.75); } }
/* 🚀 윷놀이 잡기: 미사일 공격 */
.y-missile { position: absolute; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; --c1: #ff3b00; --c2: #ffd000; --L: .6s; }
/* 발마다 번쩍 + 마지막 발에 크게 */
.ym-flash { position: absolute; inset: 0; opacity: 0; animation: ymFlash 1.4s var(--L) ease-out forwards; }
.y-missile.big .ym-flash { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.85), color-mix(in srgb, var(--c1) 70%, transparent) 40%, color-mix(in srgb, var(--c1) 45%, #000) 100%); }
.y-missile.mid .ym-flash { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c2) 50%, transparent), transparent 70%); }
@keyframes ymFlash { 0% { opacity: 1; } 15% { opacity: .9; } 100% { opacity: 0; } }
/* 사이키 조명 깜빡깜빡 (두 색 번갈아) */
.ym-strobe { position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen; animation: ymStrobe .16s steps(1) .5s 14; }
.y-missile.mid .ym-strobe { animation-iteration-count: 6; }
@keyframes ymStrobe { 0% { opacity: .55; background: radial-gradient(circle at 30% 20%, var(--c1), transparent 65%); } 50% { opacity: .5; background: radial-gradient(circle at 70% 80%, var(--c2), transparent 65%); } 100% { opacity: 0; } }
.y-missile.rainbow .ym-strobe { animation-name: ymRainbow; }
@keyframes ymRainbow { 0% { opacity: .5; background: #ff2d55; } 25% { opacity: .45; background: #ffd000; } 50% { opacity: .45; background: #3bff7a; } 75% { opacity: .5; background: #3b8bff; } 100% { opacity: 0; } }
.ym-rocket { position: absolute; left: 0; top: 0; opacity: 0; animation: ymFly .55s cubic-bezier(.5,0,.9,.6) var(--d) forwards, ymGone .01s calc(var(--d) + .55s) forwards; }
.ym-rocket b { display: block; font-size: 40px; filter: drop-shadow(0 0 8px var(--c1)); animation: ymSpin .4s linear infinite; }
.ym-rocket.rot b { transform: rotate(calc(var(--ang) + 45deg)); animation: none; }
.y-missile.mid .ym-rocket b { font-size: 26px; }
@keyframes ymSpin { to { transform: rotate(360deg); } }
.ym-trail { position: absolute; left: 50%; top: 50%; width: 80px; height: 7px; margin-top: -3px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,0), var(--c2)); transform-origin: 100% 50%; transform: translateX(-100%) rotate(var(--ang)); filter: blur(2px); }
@keyframes ymFly { 0% { opacity: 1; transform: translate(var(--sx), var(--sy)) translate(-50%, -50%) scale(.7); } 100% { opacity: 1; transform: translate(var(--tx), var(--ty)) translate(-50%, -50%) scale(1.1); } }
@keyframes ymGone { to { opacity: 0; } }
/* 발마다 작은 펑 */
.ym-pop { position: absolute; width: 0; height: 0; }
.ym-pop b { position: absolute; left: 0; top: 0; font-size: 40px; opacity: 0; transform: translate(-50%, -50%) scale(.2); animation: ymPop .55s calc(var(--d) + .55s) cubic-bezier(.2,1.6,.4,1) forwards; }
.y-missile.mid .ym-pop b { font-size: 26px; }
@keyframes ymPop { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.2); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.4) rotate(-12deg); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1) rotate(10deg); } }
.ym-boom { position: absolute; width: 0; height: 0; opacity: 0; animation: ymBoomIn .01s var(--L) forwards; }
@keyframes ymBoomIn { to { opacity: 1; } }
.ym-boom > b { position: absolute; left: 0; top: 0; font-size: 70px; transform: translate(-50%, -50%) scale(.2); animation: ymBoom .9s var(--L) cubic-bezier(.2,1.5,.4,1) forwards; }
.y-missile.big .ym-boom > b { font-size: 120px; }
@keyframes ymBoom { 0% { transform: translate(-50%, -50%) scale(.2); } 40% { transform: translate(-50%, -50%) scale(1.5) rotate(10deg); } 100% { transform: translate(-50%, -50%) scale(1.1) rotate(-6deg); opacity: 0; } }
.ym-ring { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px; border-radius: 50%; border: 5px solid var(--c2); box-shadow: 0 0 20px var(--c1); animation: ymRing .8s var(--L) ease-out forwards; opacity: 0; }
.ym-ring.r2 { animation-delay: calc(var(--L) + .12s); border-color: #fff; } .ym-ring.r3 { animation-delay: calc(var(--L) + .24s); border-color: var(--c1); }
.y-missile.big .ym-ring { border-width: 8px; animation-name: ymRingBig; }
@keyframes ymRing { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(9); } }
@keyframes ymRingBig { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(18); } }
.ym-boom em { position: absolute; left: 0; top: 0; font-style: normal; font-size: 26px; opacity: 0; animation: ymDebris .9s calc(var(--L) + .02s) ease-out forwards; transform: translate(-50%, -50%) rotate(var(--a)); }
@keyframes ymDebris { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-110px) rotate(200deg); } }
.y-missile.big .ym-boom em { font-size: 34px; animation-name: ymDebrisBig; }
@keyframes ymDebrisBig { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-200px) rotate(260deg); } }
.ym-txt { position: absolute; left: 0; right: 0; top: 30%; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; animation: ymTxt 2.3s calc(var(--L) + .1s) ease forwards; text-align: center; }
.y-missile.mid .ym-txt { animation-duration: 1.5s; top: 38%; }
.ym-txt b { font: 800 26px inherit; color: #fff; text-shadow: 0 0 14px var(--c1), 0 3px 6px #000; }
.y-missile.big .ym-txt b { font-size: 38px; }
.ym-txt small { font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 0 8px var(--c1), 0 2px 4px #000; }
/* 잡은 사람 프사가 혀 내밀고 까딱까딱 */
.ym-tz { position: relative; display: inline-block; animation: ymBob .28s ease-in-out infinite alternate; }
.ym-tz .av { display: block; width: 76px; height: 76px; border: 3px solid var(--c1); box-shadow: 0 0 18px var(--c1), 0 0 40px var(--c2); }
.ym-tz i { position: absolute; right: -16px; bottom: -8px; font-style: normal; font-size: 34px; animation: ymWig .2s ease-in-out infinite alternate; }
@keyframes ymBob { from { transform: rotate(-12deg) translateY(0); } to { transform: rotate(12deg) translateY(-8px) scale(1.06); } }
@keyframes ymWig { from { transform: rotate(-20deg); } to { transform: rotate(20deg) scale(1.15); } }
.ym-meh { margin-top: 2px; padding: 5px 14px; border-radius: 999px; background: rgba(0,0,0,.55); border: 2px solid var(--c2); color: var(--c2); font-weight: 800; font-size: 16px; animation: ymMeh .35s ease-in-out infinite alternate; }
@keyframes ymMeh { from { transform: rotate(-4deg); } to { transform: rotate(4deg) scale(1.06); } }
@keyframes ymTxt { 0% { opacity: 0; transform: scale(.4); } 12% { opacity: 1; transform: scale(1.15); } 20% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ym-strobe { animation: none; } }
/* 잡힌 쪽: 전체 화면 꽉 차게 */
.y-missile.big, .y-missile.mid { position: fixed; z-index: 9000; }
.y-missile.big .ym-rocket b { font-size: 58px; }
.y-missile.big .ym-pop b { font-size: 76px; }
.y-missile.big .ym-boom > b { font-size: 190px; }
.y-missile.big .ym-flash { background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.95), color-mix(in srgb, var(--c1) 80%, transparent) 35%, color-mix(in srgb, var(--c1) 55%, #000) 100%); }
.y-missile.big .ym-strobe { animation-name: ymStrobeBig; animation-iteration-count: 22; }
@keyframes ymStrobeBig { 0% { opacity: .7; background: var(--c1); } 50% { opacity: .55; background: var(--c2); } 100% { opacity: 0; } }
.y-missile.big.rainbow .ym-strobe { animation-name: ymRainbow; }
.y-missile.big .ym-txt { top: 26%; }
.y-missile.big .ym-txt b { font-size: 48px; }
.y-missile.big .ym-tz .av { width: 110px; height: 110px; }
.y-missile.big .ym-tz i { font-size: 48px; }
.y-missile.big .ym-meh { font-size: 20px; }
.y-missile.big .ym-boom em { font-size: 46px; }
.y-missile.mid .ym-rocket b { font-size: 40px; } .y-missile.mid .ym-pop b { font-size: 52px; } .y-missile.mid .ym-boom > b { font-size: 130px; }
.y-missile.mid .ym-ring { animation-name: ymRingBig; }
.y-missile.mid .ym-flash { background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.6), color-mix(in srgb, var(--c1) 45%, transparent) 50%, transparent 100%); }
.y-missile.mid .ym-strobe { animation-name: ymStrobeBig; animation-iteration-count: 10; }
.y-missile.big .ym-boom > b { font-size: 300px; }
.y-missile.big .ym-ring { animation-name: ymRingHuge; border-width: 12px; }
@keyframes ymRingHuge { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(34); } }
/* 두 번째 사이키: 반대 색으로 엇박 + 화면 반전 번쩍 */
.ym-strobe.s2 { animation-delay: .58s; animation-name: ymStrobe2; mix-blend-mode: difference; }
.y-missile.mid .ym-strobe.s2 { animation-iteration-count: 4; }
.y-missile.big .ym-strobe.s2 { animation-iteration-count: 18; animation-duration: .11s; }
@keyframes ymStrobe2 { 0% { opacity: .8; background: #fff; } 40% { opacity: 0; } 70% { opacity: .5; background: var(--c2); } 100% { opacity: 0; } }
.ym-chain b { font-size: 64px; }
.y-missile.big .ym-chain b { font-size: 96px; }
.ym-rain { position: absolute; top: -60px; font-style: normal; font-size: calc(34px * var(--z)); opacity: 0; animation: ymRain var(--s) var(--d) linear forwards; }
@keyframes ymRain { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 1; transform: translateY(calc(100vh + 120px)) rotate(540deg); } }
#room.y-shake.big { animation: yShakeBig .08s linear 20; }
@keyframes yShakeBig { 0% { transform: translate(12px, -9px) rotate(1deg) scale(1.02); } 25% { transform: translate(-12px, 9px) rotate(-1deg); } 50% { transform: translate(9px, 12px) scale(1.03); } 75% { transform: translate(-9px, -12px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { #room.y-shake.big, .ym-strobe.s2 { animation: none; } }
/* v73: 글씨 화면 꽉 차게 */
.y-missile .ym-txt { left: 2vw; right: 2vw; gap: 1.2vh; }
.y-missile.big .ym-txt { top: 18%; }
.y-missile.big .ym-txt b { font-size: min(17vw, 13vh); line-height: 1; white-space: nowrap; letter-spacing: -.02em; -webkit-text-stroke: max(2px, .5vw) color-mix(in srgb, var(--c1) 70%, #000); paint-order: stroke fill; text-shadow: 0 0 3vw var(--c1), 0 0 6vw var(--c2), 0 1vw 1.5vw #000; animation: ymPunch .22s ease-in-out infinite alternate; }
.y-missile.big .ym-txt small { font-size: min(5.6vw, 4.2vh); font-weight: 800; }
.y-missile.big .ym-meh { font-size: min(8vw, 6vh); padding: 1vh 5vw; border-width: max(3px, .7vw); }
.y-missile.big .ym-tz .av { width: min(34vw, 24vh); height: min(34vw, 24vh); border-width: max(4px, 1vw); }
.y-missile.big .ym-tz i { font-size: min(15vw, 11vh); right: -6vw; bottom: -2vh; }
.y-missile.mid .ym-txt b { font-size: min(13vw, 10vh); line-height: 1; white-space: nowrap; -webkit-text-stroke: max(2px, .4vw) color-mix(in srgb, var(--c1) 70%, #000); paint-order: stroke fill; }
.y-missile.mid .ym-txt small { font-size: min(5vw, 3.6vh); font-weight: 800; }
.y-missile .ym-txt small, .y-missile .ym-meh { white-space: nowrap; }
@keyframes ymPunch { from { transform: scale(1) rotate(-2deg); } to { transform: scale(1.08) rotate(2deg); } }
/* v74: 캐릭터·이모지 더 크게 */
.y-missile.big .ym-txt { top: 9%; }
.y-missile.big .ym-tz .av { width: min(50vw, 30vh); height: min(50vw, 30vh); border-width: max(5px, 1.3vw); }
.y-missile.big .ym-tz i { font-size: min(22vw, 14vh); right: -12vw; bottom: -3vh; }
.y-missile.big .ym-tz i.l { right: auto; left: -14vw; bottom: auto; top: -2vh; font-size: min(17vw, 11vh); animation-duration: .17s; animation-direction: alternate-reverse; }
.y-missile.big .ym-tz i.t { right: auto; left: 50%; bottom: -5vh; margin-left: -6vw; font-size: min(13vw, 9vh); animation: ymTongue .25s ease-in-out infinite alternate; }
.ym-tz i.l, .ym-tz i.t { display: none; } .y-missile.big .ym-tz i.l, .y-missile.big .ym-tz i.t { display: block; }
@keyframes ymTongue { from { transform: translateY(0) scaleY(.8); } to { transform: translateY(1.5vh) scaleY(1.2) rotate(8deg); } }
.y-missile.big .ym-tz { animation-duration: .22s; }
.y-missile.big .ym-rocket b { font-size: min(20vw, 90px); }
.y-missile.big .ym-pop b { font-size: min(30vw, 130px); }
.y-missile.big .ym-chain b { font-size: min(36vw, 160px); }
.y-missile.big .ym-boom > b { font-size: min(110vw, 460px); }
.y-missile.big .ym-boom em { font-size: min(18vw, 80px); }
.y-missile.big .ym-rain { font-size: calc(min(14vw, 62px) * var(--z)); }
.y-missile.mid .ym-rocket b { font-size: 54px; } .y-missile.mid .ym-pop b { font-size: 70px; } .y-missile.mid .ym-chain b { font-size: 84px; }
.y-shake { animation: yShake .08s linear 8; }
@keyframes yShake { 0% { transform: translate(5px, -4px); } 25% { transform: translate(-5px, 4px); } 50% { transform: translate(4px, 5px); } 75% { transform: translate(-4px, -5px); } }
@media (prefers-reduced-motion: reduce) { .y-shake { animation: none; } }

/* 🐰 에크크 3D 말 */
.ytok.ek { background: none; box-shadow: none; border-radius: 0; transform: translate(-50%, -50%); overflow: visible; }
.ytok.ek .ytok-base { position: absolute; left: -6%; right: -6%; top: 52%; height: 44%; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--tc) 70%, #fff), var(--tc) 55%, color-mix(in srgb, var(--tc) 55%, #000)); box-shadow: 0 2px 0 color-mix(in srgb, var(--tc) 45%, #000), 0 5px 7px rgba(0,0,0,.5); transform: translateY(-50%); transition: transform .3s, opacity .3s; }
.ytok.ek .ytok-ek { position: absolute; left: -12.5%; width: 125%; bottom: 46%; aspect-ratio: 240 / 280; pointer-events: none; transform-origin: 50% 100%; }
.ytok.ek .ytok-ek img { position: absolute; left: 0; bottom: 0; width: 100%; display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); transform-origin: 50% 100%; }
.ytok.ek .ytok-ek img.ek1 { bottom: 62%; width: 78%; left: 11%; }
.ytok.ek .ytok-ek img.ek2 { bottom: 109%; width: 62%; left: 19%; }
.ytok.ek.flip .ytok-ek img { transform: scaleX(-1); }
.ytok.ek .ytok-av { position: absolute; right: -22%; bottom: 8%; width: 46%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--tc); background: #2a2f4d; z-index: 2; }
.ytok.ek .ytok-av img, .ytok.ek .ytok-av svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ytok.ek .ytok-n { top: auto; bottom: 110%; right: -20%; z-index: 3; }
.ytok.ek.can::before { inset: 20% -8% -8%; }
.ytok.ek.sel { outline: none; }
.ytok.ek.sel .ytok-base { box-shadow: 0 0 0 2px #fff, 0 0 12px 3px #fff; }
.ytok.ek.can .ytok-ek { animation: ekBounce .9s ease-in-out infinite; }
@keyframes ekBounce { 0%, 100% { transform: translateY(0) scale(1, 1); } 40% { transform: translateY(-10%) scale(.96, 1.05); } 55% { transform: translateY(0) scale(1.06, .93); } }
/* 칸마다 통통 점프: 웅크렸다(찌그러짐) → 높이 뛰고 → 퐁 착지 */
.ytok.ek.hop { animation: none; transition: left .33s cubic-bezier(.35,.1,.35,1), top .33s cubic-bezier(.35,.1,.35,1); }
.ytok.ek.hop .ytok-ek { animation: ekHop .33s ease-out; }
.ytok.ek.hop .ytok-base { animation: ekShadow .33s ease-out; }
@keyframes ekHop { 0% { transform: translateY(0) scale(1.12, .86); } 12% { transform: translateY(-8%) scale(.92, 1.12); } 50% { transform: translateY(-62%) scale(.95, 1.06) rotate(-6deg); } 86% { transform: translateY(0) scale(1.14, .84); } 100% { transform: translateY(0) scale(1, 1); } }
@keyframes ekShadow { 0%, 100% { transform: translateY(-50%) scale(1); } 50% { transform: translateY(-50%) scale(.7); } }
.ytok.ek.goal { transform: translate(-50%, -50%); opacity: 1; }
.ytok.ek.goal .ytok-ek { animation: ekGoal .52s ease-in forwards; }
.ytok.ek.goal .ytok-base { opacity: 0; }
@keyframes ekGoal { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-40%) scale(1.15) rotate(10deg); } 100% { transform: translateY(-260%) scale(.3) rotate(-30deg); opacity: 0; } }
.ytok.ek.shake .ytok-ek { animation: yShake .4s; }
.ytok.mini.ek { width: 30px; height: 30px; transform: none; margin: 10px 2px 0; }
@media (prefers-reduced-motion: reduce) { .ytok.ek.can .ytok-ek { animation: none; } }

/* 🐰 잡기 연출: 에크크가 튀어나와 쏨 (쏠 때마다 반동), 다 쏘면 신나서 깡총깡총 */
.ym-ek { position: absolute; transform: translateX(-50%); z-index: 2; animation: ekIn .28s cubic-bezier(.2,1.6,.4,1) both, ekDance .3s ease-in-out calc(var(--L) + .05s) 8 alternate; transform-origin: 50% 100%; }
.ym-ek img { display: block; width: 100%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); animation: ekRecoil var(--per) ease-out var(--d0) var(--nf); transform-origin: 50% 100%; }
.ym-ek.fl img { transform: scaleX(-1); animation-name: ekRecoilF; }
.ym-ek .muz { position: absolute; left: 82%; top: 42%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff, var(--c2) 40%, transparent 70%); opacity: 0; animation: ekMuz var(--per) linear var(--d0) var(--nf); }
.ym-ek.fl .muz { left: auto; right: 82%; }
.ym-ek .ride { position: absolute; left: 50%; bottom: -34%; transform: translateX(-50%); font-style: normal; line-height: 1; z-index: -1; filter: drop-shadow(0 0 12px var(--c2)); }
.y-missile.big .ym-ek .ride { font-size: 92px; } .y-missile.mid .ym-ek .ride { font-size: 62px; }
@keyframes ekIn { 0% { transform: translateX(-50%) translateY(60%) scale(.3); opacity: 0; } 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; } }
@keyframes ekRecoil { 0% { transform: rotate(-8deg) scale(1.08, .92); } 40% { transform: rotate(4deg) scale(.96, 1.05); } 100% { transform: none; } }
@keyframes ekRecoilF { 0% { transform: scaleX(-1) rotate(-8deg) scale(1.08, .92); } 40% { transform: scaleX(-1) rotate(4deg) scale(.96, 1.05); } 100% { transform: scaleX(-1); } }
@keyframes ekMuz { 0% { opacity: 1; transform: scale(.4); } 50% { opacity: .9; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes ekDance { from { transform: translateX(-50%) translateY(0) rotate(-10deg); } to { transform: translateX(-50%) translateY(-16%) rotate(10deg) scale(1.05); } }
/* 약올리기: 잡은 사람 프사 옆에서 에크크가 메롱 */
.ym-tz img.ekt { position: absolute; left: -62%; bottom: -12%; width: 72%; animation: ekDance2 .24s ease-in-out infinite alternate; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.y-missile.big .ym-tz img.ekt { left: -26vw; width: min(30vw, 20vh); }
@keyframes ekDance2 { from { transform: rotate(-12deg) translateY(0); } to { transform: rotate(12deg) translateY(-10%); } }
/* 잡은 쪽: 작은 에크크 만세 */
.y-ekcheer { position: absolute; left: 50%; top: 18%; width: 74px; transform: translateX(-50%); animation: ekCheer 1.6s ease forwards; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
@keyframes ekCheer { 0% { opacity: 0; transform: translateX(-50%) translateY(30px) scale(.4); } 15% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.1); } 30%, 50%, 70% { transform: translateX(-50%) translateY(-12px) rotate(-8deg); } 40%, 60% { transform: translateX(-50%) translateY(0) rotate(8deg); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-30px); } }
@media (prefers-reduced-motion: reduce) { .ym-ek, .ym-ek img, .ym-tz img.ekt { animation: none; } }
.y-score .y-sek { height: 22px; width: auto; margin: -6px 0 -2px -2px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.y-score.on .y-sek { animation: ekBounce .9s ease-in-out infinite; transform-origin: 50% 100%; }

/* v81: 칸이 잘 보이게 — 크고 밝은 칸, 큰 칸은 빛남, 굵은 선 */
.y-svg rect, .y-svg path { stroke: rgba(190, 200, 255, .5); stroke-width: 1.5; }
.y-svg circle { fill: #171B38; stroke: #A9B4FF; stroke-width: 1.1; }
.y-svg circle.dot { fill: rgba(200, 210, 255, .55); stroke: none; }
.y-svg circle.big { fill: #232A58; stroke: #fff; stroke-width: 1.5; }
.y-svg circle.halo { fill: rgba(150, 160, 255, .12); stroke: rgba(190, 200, 255, .35); stroke-width: .6; }
.y-svg circle.start { stroke: var(--pk); stroke-width: 1.8; }
.y-st { font-size: 4.2px; fill: #fff; font-weight: 700; }
/* 세로 화면: 판은 화면 폭 가득, 조작 칸은 아래 */
.y-main.port { flex-direction: column; gap: 6px; align-items: center; justify-content: flex-start; }
.y-main.port .y-side { width: 100%; height: auto; flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: stretch; }
.y-main.port .y-turn { grid-column: 1 / -1; justify-self: start; }
.y-main.port .y-held { align-content: center; }
.y-main.port .y-tray { min-height: 44px; }
.y-main.port .y-throw-btn, .y-main.port .y-hint { grid-column: 1 / -1; }
.y-main.port .y-throw-btn { flex-direction: row; justify-content: center; gap: 10px; padding: 10px; }
.y-main.port .y-throw-btn .y-gauge { flex: 1; max-width: 140px; }
/* 👀 판 보기 (꾹 누르는 동안) */
.y-board.peek .ytok.ek .ytok-ek, .y-board.peek .ytok.ek .ytok-av, .y-board.peek .ytok.ek .ytok-n { opacity: .18; transition: opacity .15s; }
.y-board.peek .ytok:not(.ek) { opacity: .25; }
.y-board.peek::after { content: "👀"; position: absolute; right: 6px; top: 4px; font-size: 18px; pointer-events: none; }
.y-board { -webkit-touch-callout: none; user-select: none; }

/* v82: 발판 없이 팀 색 띠 — 발밑엔 그림자만 */
.ytok.ek .ytok-shadow { position: absolute; left: 8%; right: 8%; top: 56%; height: 26%; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.55), rgba(0,0,0,0) 70%); transform: translateY(-50%); }
.ytok.ek.hop .ytok-shadow { animation: ekShadow .33s ease-out; }
.ytok.ek.goal .ytok-shadow { opacity: 0; }
.ytok.ek .ytok-ek { bottom: 40%; }
.ytok.ek.sel .ytok-shadow { background: radial-gradient(ellipse, rgba(255,255,255,.9), rgba(255,255,255,0) 70%); }
.ytok.ek.sel .ytok-ek img.ek0 { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px #fff); }

/* v83: 업은 말은 머리 위로 쌓지 않고 한 칸에 작게 옹기종기 (앞줄이 앞에 보임) */
.ytok.ek .ytok-ek img.ek1, .ytok.ek .ytok-ek img.ek2, .ytok.ek .ytok-ek img.ek3 { bottom: 0; left: 0; width: 100%; }
.ytok.ek .ytok-ek[data-n="2"] img { width: 82%; }
.ytok.ek .ytok-ek[data-n="2"] img.ek0 { left: -14%; bottom: 0; }
.ytok.ek .ytok-ek[data-n="2"] img.ek1 { left: 32%; bottom: 8%; }
.ytok.ek .ytok-ek[data-n="3"] img { width: 72%; }
.ytok.ek .ytok-ek[data-n="3"] img.ek0 { left: 14%; bottom: -2%; }
.ytok.ek .ytok-ek[data-n="3"] img.ek1 { left: -20%; bottom: 14%; }
.ytok.ek .ytok-ek[data-n="3"] img.ek2 { left: 48%; bottom: 14%; }
.ytok.ek .ytok-ek[data-n="4"] img { width: 64%; }
.ytok.ek .ytok-ek[data-n="4"] img.ek0 { left: -10%; bottom: -2%; }
.ytok.ek .ytok-ek[data-n="4"] img.ek1 { left: 46%; bottom: -2%; }
.ytok.ek .ytok-ek[data-n="4"] img.ek2 { left: -24%; bottom: 18%; }
.ytok.ek .ytok-ek[data-n="4"] img.ek3 { left: 60%; bottom: 18%; }
.ytok.ek .ytok-ek:not([data-n="1"]) ~ .ytok-shadow, .ytok.ek .ytok-shadow:has(+ .ytok-ek:not([data-n="1"])) { left: -14%; right: -14%; }

/* v84: 잡힌 쪽 — 메롱 에크크는 프사 옆이 아니라 화면 아래쪽에 크게 (쏘던 에크크들은 빠짐) */
.y-missile.big .ym-ek { animation: ekIn .28s cubic-bezier(.2,1.6,.4,1) both, ekOut .35s ease-in calc(var(--L) + .05s) forwards; }
@keyframes ekOut { to { transform: translateX(-50%) translateY(80%) scale(.6); opacity: 0; } }
.ym-ekbig { position: absolute; left: 50%; bottom: 2vh; width: min(54vw, 26vh); transform: translateX(-50%); opacity: 0; z-index: 3; animation: ekBigIn .45s cubic-bezier(.2,1.5,.4,1) calc(var(--L) + .25s) forwards; }
.ym-ekbig img { display: block; width: 100%; transform-origin: 50% 100%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)); animation: ekDance2 .22s ease-in-out calc(var(--L) + .7s) infinite alternate; }
@keyframes ekBigIn { 0% { opacity: 0; transform: translateX(-50%) translateY(60%) scale(.4); } 100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
.y-missile.big .ym-txt { animation-duration: 3s; }
/* 잡은 쪽: 가운데 크게 '명중!' + 아래 만세 에크크 */
.y-hitwin { position: fixed; inset: 0; z-index: 9000; pointer-events: none; overflow: hidden; --c1: #ffd000; --c2: #fff; }
.y-hitwin::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--c2) 45%, transparent), transparent 60%); animation: hwFade 2.2s ease forwards; }
.hw-txt { position: absolute; left: 3vw; right: 3vw; top: 22%; display: flex; flex-direction: column; align-items: center; gap: 1vh; animation: hwTxt 2.2s ease forwards; }
.hw-txt b { font-size: min(16vw, 12vh); font-weight: 900; line-height: 1; color: #fff; white-space: nowrap; -webkit-text-stroke: max(2px, .5vw) color-mix(in srgb, var(--c1) 70%, #000); paint-order: stroke fill; text-shadow: 0 0 3vw var(--c1), 0 1vw 1.5vw rgba(0,0,0,.6); }
.hw-txt small { font-size: min(6vw, 4.4vh); font-weight: 800; color: #fff; padding: .6vh 4vw; border-radius: 999px; background: rgba(0,0,0,.5); border: 2px solid var(--c1); }
.hw-ek { position: absolute; left: 50%; bottom: 4vh; width: min(50vw, 30vh); transform: translateX(-50%); animation: hwEk 2.2s ease forwards; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
.hw-ek.emo { font-size: min(30vw, 20vh); text-align: center; width: auto; }
.y-hitwin i { position: absolute; left: 50%; top: 32%; font-style: normal; font-size: min(10vw, 48px); opacity: 0; animation: hwBurst 1.1s ease-out var(--d) forwards; }
@keyframes hwFade { 0% { opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hwTxt { 0% { opacity: 0; transform: scale(.3); } 12% { opacity: 1; transform: scale(1.18); } 22% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1.05); } }
@keyframes hwEk { 0% { opacity: 0; transform: translateX(-50%) translateY(50%) scale(.4); } 15% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.08); } 30%, 50%, 70% { transform: translateX(-50%) translateY(-6vh) rotate(-8deg); } 40%, 60% { transform: translateX(-50%) translateY(0) rotate(8deg); } 85% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(30%); } }
@keyframes hwBurst { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(.4); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-34vw) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .hw-ek, .hw-txt, .ym-ekbig img { animation: none; } }
.y-missile.big .ym-tz .av { width: min(44vw, 25vh); height: min(44vw, 25vh); }
.y-missile.big .ym-txt { top: 7%; }

/* ═══ 📱 v85 프로필 창: 아이폰(연락처·설정) 스타일 ═══ */
.sheet.ios { --ios-bg: #1C1C1E; --ios-card: #2C2C2E; --ios-card2: #3A3A3C; --ios-sep: rgba(84, 84, 88, .55); --ios-lb: #fff; --ios-lb2: rgba(235, 235, 245, .6); --ios-lb3: rgba(235, 235, 245, .3);
  --ios-tint: #0A84FF; --ios-red: #FF453A; --ios-green: #30D158;
  background: rgba(28, 28, 30, .96); border-top: none; border-radius: 14px 14px 0 0; padding-top: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Pretendard", system-ui, sans-serif; letter-spacing: -.01em; box-shadow: 0 -10px 40px rgba(0, 0, 0, .55); }
.sheet.ios .grab { width: 36px; height: 5px; background: rgba(235, 235, 245, .3); margin: 5px auto 0; }
.ios-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 44px; margin: 0 -2px 2px; position: sticky; top: -4px; z-index: 3; background: linear-gradient(rgba(28,28,30,.98) 70%, rgba(28,28,30,0)); }
.ios-title { font-size: 17px; font-weight: 600; text-align: center; }
.ios-done { justify-self: end; grid-column: 3; color: var(--ios-tint); font-size: 17px; font-weight: 600; padding: 8px 4px; background: none; }
.ios-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 0 16px; text-align: center; }
.ios-av .av-xl { --s: 112px; border: none; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.ios-name { font-size: 28px; font-weight: 700; line-height: 1.15; margin-top: 8px; display: flex; align-items: center; gap: 6px; letter-spacing: -.02em; }
.ios-fx { font-size: 18px; }
.ios-sub { font-size: 15px; color: var(--ios-lb2); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: center; }
.ios-dot { width: 7px; height: 7px; border-radius: 50%; background: #FFD60A; display: inline-block; }
.ios-dot.ok { background: var(--ios-green); } .ios-dot.bad { background: var(--ios-red); }
.ios-stat { font-size: 13px; color: var(--ios-lb2); margin-top: 2px; } .ios-stat b { color: var(--ios-lb); font-weight: 600; }
.ios-badge { margin-top: 6px; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 99px; background: rgba(10, 132, 255, .16); color: #64D2FF; }
.ios-edit { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ios-edit button { color: var(--ios-tint); font-size: 15px; font-weight: 500; background: none; padding: 4px 2px; }
.ios-edit i { width: 1px; height: 14px; background: var(--ios-sep); }
/* 빠른 버튼 줄 (연락처 앱의 메시지·전화·메일 같은 칸) */
.ios-acts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 0 0 22px; }
.ios-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px; padding: 9px 4px 8px; border-radius: 12px; background: var(--ios-card); color: var(--ios-tint); transition: background .12s, transform .1s; }
.ios-act:active { background: var(--ios-card2); transform: scale(.97); }
.ios-act small { font-size: 11.5px; font-weight: 500; color: var(--ios-tint); white-space: nowrap; }
.ios-act small em { font-style: normal; font-size: 10px; background: var(--ios-red); color: #fff; border-radius: 9px; padding: 0 5px; margin-left: 2px; }
.ios-act b { font-size: 19px; font-weight: 600; color: var(--ios-lb); line-height: 22px; }
.ios-stats .ios-act small { color: var(--ios-lb2); }
.ios-act.on { background: rgba(10, 132, 255, .2); }
.ios-act.red, .ios-act.red small { color: var(--ios-red); }
.ios-act.red.on { background: rgba(255, 69, 58, .2); }
.ios-act:disabled { opacity: .35; }
/* 묶음 목록 카드 */
.ios-head2 { display: flex; justify-content: space-between; font-size: 13px; color: var(--ios-lb2); text-transform: uppercase; letter-spacing: .02em; margin: 0 16px 7px; }
.ios-head2 span { font-family: var(--f-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--ios-lb3); }
.ios-group { background: var(--ios-card); border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.ios-group.ios-pad { padding: 4px 16px; }
.ios-foot { font-size: 12.5px; color: var(--ios-lb2); margin: 0 16px 22px; line-height: 1.45; }
.ios-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px 0 14px; background: none; color: var(--ios-lb); font-size: 16.5px; text-align: left; position: relative; }
.ios-row + .ios-row::before { content: ""; position: absolute; top: 0; left: 56px; right: 0; height: .5px; background: var(--ios-sep); }
.ios-row:active { background: var(--ios-card2); }
.ios-ico { width: 29px; height: 29px; border-radius: 7px; background: var(--ic); color: #fff; display: grid; place-items: center; flex: none; }
.ios-lb { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ios-val { color: var(--ios-lb2); font-size: 15.5px; }
.ios-chev { color: var(--ios-lb3); display: grid; }
.ios-row.red .ios-lb { color: var(--ios-red); }
.ios-sep { height: .5px; background: var(--ios-sep); margin: 2px 0; }
.ios-slider { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.ios-slider .row { flex: 1; min-height: 0; }
.ios-sm { color: var(--ios-lb2); display: grid; }
.ios-meter { margin: 8px 0 10px; font-size: 13px; color: var(--ios-lb2); }
/* 이름·모자 색 칸 */
.ios-field { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; position: relative; }
.ios-field + .ios-field::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--ios-sep); }
.ios-field > span { font-size: 16.5px; color: var(--ios-lb); flex: none; min-width: 64px; }
.ios-field input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--ios-lb2); font-size: 16.5px; text-align: right; font-family: inherit; }
.ios-field input:focus { color: var(--ios-lb); }
.ios-field.col { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 12px; padding-bottom: 14px; }
.ios-colors { gap: 10px; }
.ios-colors button { width: 30px; height: 30px; box-shadow: none; }
.ios-colors button.on { box-shadow: 0 0 0 2.5px var(--ios-card), 0 0 0 5px var(--ios-tint); }
/* 확인 (아이폰 액션 시트 느낌) */
.ios-confirm { background: var(--ios-card); border-radius: 13px; overflow: hidden; margin: -10px 0 22px; text-align: center; }
.ios-confirm p { font-size: 13px; color: var(--ios-lb2); padding: 14px 16px 12px; margin: 0; line-height: 1.45; }
.ios-cbtn { display: block; width: 100%; min-height: 52px; font-size: 18px; color: var(--ios-tint); background: none; border-top: .5px solid var(--ios-sep); }
.ios-cbtn.red { color: var(--ios-red); } .ios-cbtn.bold { font-weight: 600; }
.ios-cbtn:active { background: var(--ios-card2); }
/* 같은 창 안의 기존 칸(마이크·방 관리 등)도 아이폰 카드처럼 */
.sheet.ios .sec { background: var(--ios-card); border: none; border-radius: 12px; padding: 12px 16px; margin-bottom: 22px; }
.sheet.ios .sec.holo { box-shadow: none; }
.sheet.ios .sec-h { min-height: 34px; }
.sheet.ios .sec-h b { font-size: 16.5px; font-weight: 600; }
.sheet.ios .sec-h > span { font-size: 15.5px; }
.sheet.ios .sec-note { font-size: 12.5px; color: var(--ios-lb2); }
.sheet.ios .tgl { width: 51px; height: 31px; border: none; background: #39393D; }
.sheet.ios .tgl::after { top: 2px; left: 2px; width: 27px; height: 27px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
.sheet.ios .tgl.on { background: var(--ios-green); }
.sheet.ios .tgl.on::after { left: 22px; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
.sheet.ios .tgl:disabled { opacity: .4; }
.sheet.ios .btn { border-radius: 12px; font-weight: 500; }
.sheet.ios .btn-soft, .sheet.ios .btn-glass { background: var(--ios-card2); border: none; color: var(--ios-tint); box-shadow: none; }
.sheet.ios .btn-holo { background: var(--ios-tint); border: none; color: #fff; box-shadow: none; }
.sheet.ios .row select { border: none; background: var(--ios-card2); border-radius: 9px; }
.sheet.ios .presets .preset { border-radius: 10px; }
/* 아이폰 슬라이더 */
.sheet.ios input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ios-tint) var(--p, 50%), #48484A var(--p, 50%)); }
.sheet.ios input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 .5px rgba(0, 0, 0, .04); border: none; }
.sheet.ios input[type=range]::-moz-range-thumb { width: 27px; height: 27px; border-radius: 50%; background: #fff; border: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }

/* 🎵 미니 플레이어 (어느 탭에서든) */
#mini { position: fixed; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(84px + var(--safe-b)); z-index: 19; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
#mini > * { pointer-events: auto; }
.mini-fab { order: 2; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 14px; position: relative;
  background: radial-gradient(circle at 35% 30%, #ff8fc6, #b05cff 70%); box-shadow: 0 6px 18px rgba(176, 92, 255, .5), 0 0 0 2px rgba(255,255,255,.35); color: #fff; animation: miniIn .25s cubic-bezier(.2,1.5,.4,1); }
.mini-fab b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; transition: opacity .2s; }
.mini-fab i { width: 3.5px; height: 6px; border-radius: 2px; background: #fff; opacity: 0; transform-origin: 50% 100%; }
#mini.playing .mini-fab b { opacity: 0; }
#mini.playing .mini-fab i { opacity: 1; animation: miniBar .9s ease-in-out infinite; }
#mini.playing .mini-fab i:nth-child(2) { animation-delay: -.3s; } #mini.playing .mini-fab i:nth-child(3) { animation-delay: -.6s; } #mini.playing .mini-fab i:nth-child(4) { animation-delay: -.15s; }
@keyframes miniBar { 0%, 100% { height: 5px; } 50% { height: 18px; } }
@keyframes miniIn { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mini-card { order: 1; width: min(300px, calc(100vw - 24px)); padding: 12px 12px 8px; border-radius: 18px; background: rgba(28, 28, 30, .94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(255,255,255,.12); color: #fff; animation: miniCard .2s ease-out; font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", system-ui, sans-serif; }
@keyframes miniCard { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.mini-row + .mini-row { margin-top: 10px; padding-top: 10px; border-top: .5px solid rgba(84, 84, 88, .6); }
.mini-top { display: flex; align-items: center; gap: 10px; }
.mini-art { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; flex: none; background: linear-gradient(135deg, #ff8fc6, #b05cff); }
.mini-art.yt { background: linear-gradient(135deg, #ff5a5a, #c4001a); }
.mini-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mini-tx b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-tx small { font-size: 12px; color: rgba(235, 235, 245, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: none; flex: none; }
.mini-b:active { background: rgba(255, 255, 255, .12); }
.mini-b:disabled { opacity: .3; }
.mini-b.big { width: 50px; height: 50px; background: rgba(255, 255, 255, .12); }
.mini-b.open { color: rgba(235, 235, 245, .6); width: 34px; height: 34px; }
.mini-b.on { color: #FF453A; }
.mini-ctl { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 6px 0 2px; }
.mini-vol { display: flex; align-items: center; gap: 6px; }
.mini-vol input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--p, 50%), #48484A var(--p, 50%)); }
.mini-vol input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.mini-vol input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: none; }
.mini-v { width: 28px; text-align: right; font-size: 12px; color: rgba(235, 235, 245, .6); font-variant-numeric: tabular-nums; }
.mini-note { flex: 1; font-size: 11.5px; color: rgba(235, 235, 245, .6); line-height: 1.35; }
.mini-foot { margin-top: 8px; font-size: 11px; color: rgba(235, 235, 245, .45); text-align: center; }
@media (prefers-reduced-motion: reduce) { #mini.playing .mini-fab i { animation: none; height: 12px; } }

/* v87: 음악 탭 턴테이블 없애고 작게 → 채팅이 잘 보이게 (소리는 그대로 나옴) */
.pane[data-pane=music].src-file .stage-view { height: 2px; opacity: 0; overflow: hidden; margin-bottom: -2px; pointer-events: none; }
.stage.mcompact .panes { height: auto; min-height: 0; }
.stage.mcompact .pane[data-pane=music] { height: auto; }
.pane[data-pane=music].src-file .now { padding-top: 2px; }

/* v88: 미니 플레이어를 앱 화면 칸 안쪽에 + 곡 이름이 보이는 알약 모양 */
#mini { right: max(12px, calc((100vw - 520px) / 2 + 12px)); bottom: calc(86px + var(--safe-b)); }
.mini-fab { width: auto; max-width: min(230px, calc(100vw - 40px)); height: 44px; border-radius: 22px; padding: 0 16px 0 6px; gap: 8px; align-items: center; justify-content: flex-start; }
.mini-eq { position: relative; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; gap: 2.5px; flex: none; }
.mini-eq b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; transition: opacity .2s; }
.mini-eq i { width: 3px; height: 5px; border-radius: 2px; background: #fff; opacity: 0; }
#mini.playing .mini-eq b { opacity: 0; }
#mini.playing .mini-eq i { opacity: 1; animation: miniBar .9s ease-in-out infinite; }
#mini.playing .mini-eq i:nth-child(2) { animation-delay: -.3s; } #mini.playing .mini-eq i:nth-child(3) { animation-delay: -.6s; } #mini.playing .mini-eq i:nth-child(4) { animation-delay: -.15s; }
.mini-tt { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mini-fab > i, .mini-fab > b { display: none; }
@keyframes miniBar { 0%, 100% { height: 4px; } 50% { height: 15px; } }

/* v90: 🎵 플레이어 (음악 탭 대신, 어디서든) */
.mini-fab { position: relative; }
.mini-reqn { position: absolute; top: -5px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #FF453A; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #1C1C1E; }
#mini.hasreq .mini-fab { animation: miniIn .25s cubic-bezier(.2,1.5,.4,1), miniPing 1.6s ease-in-out infinite; }
@keyframes miniPing { 0%, 100% { box-shadow: 0 6px 18px rgba(176, 92, 255, .5), 0 0 0 2px rgba(255,255,255,.35); } 50% { box-shadow: 0 6px 18px rgba(176, 92, 255, .5), 0 0 0 6px rgba(255,69,58,.45); } }
.mini-card { width: min(330px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
.mini-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 10px; }
.mini-head b { font-size: 15px; } .mini-head span { font-size: 12px; color: rgba(235,235,245,.55); font-variant-numeric: tabular-nums; }
.mini-art { background-size: cover; background-position: center; width: 46px; height: 46px; }
.mini-seek { margin: 10px 2px 2px; }
.mini-seek input[type=range], .mini-vol input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--p, 0%), #48484A var(--p, 0%)); }
.mini-seek input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.mini-seek input:disabled { opacity: .55; }
.mini-ctl { gap: 6px; justify-content: space-between; }
.mini-b.rep { width: 50px; display: flex; flex-direction: column; align-items: center; gap: 1px; opacity: .6; }
.mini-b.rep.on { opacity: 1; }
.mini-b.rep span { font-size: 17px; line-height: 1; } .mini-b small { font-size: 9.5px; color: rgba(235,235,245,.6); white-space: nowrap; }
.mini-b[data-a="list"] { width: 50px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.mini-q { font-size: 18px; line-height: 1; }
.mini-empty { font-size: 13px; color: rgba(235,235,245,.65); text-align: center; padding: 14px 6px; line-height: 1.5; }
.mini-add { width: 100%; margin-top: 10px; min-height: 42px; border-radius: 12px; background: #0A84FF; color: #fff; font-size: 15px; font-weight: 600; }
.mini-add:active { opacity: .8; }
.mini-reqs { margin-top: 12px; border-radius: 12px; background: rgba(255,255,255,.06); padding: 6px 4px 6px 12px; }
.mini-rh { font-size: 12.5px; font-weight: 600; color: rgba(235,235,245,.75); padding: 4px 0 6px; }
.mini-rh em { font-style: normal; background: #FF453A; color: #fff; border-radius: 8px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.mini-reqs.mine .mini-rh em { background: #0A84FF; }
.mini-req { display: flex; align-items: center; gap: 6px; min-height: 44px; border-top: .5px solid rgba(84,84,88,.55); }
.mini-req .mini-tx b { font-size: 13.5px; } .mini-req .mini-tx small { font-size: 11.5px; }
.mini-rb { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 700; flex: none; }
.mini-rb.ok { background: rgba(48, 209, 88, .2); color: #30D158; } .mini-rb.no { background: rgba(255, 69, 58, .18); color: #FF453A; }

/* v91: 대기 칸(새 말) 에크크가 칸 밖으로 튀어나오지 않게 — 작은 크기 고정 + 칸 안에 가둠 */
.y-tray { overflow: hidden; align-content: flex-start; }
.ytok.mini.ek { width: 34px; height: 40px; margin: 2px 1px 0; }
.ytok.mini.ek .ytok-ek { left: -8%; width: 116%; bottom: 0; }
.ytok.mini.ek .ytok-shadow { top: 88%; }
.ytok.mini.ek .ytok-av { width: 44%; right: -10%; bottom: -2%; }
.ytok-ek img { max-width: none; }

/* 🎮 효과음 볼륨 */
.mini-fx .mini-fxi { width: 30px; text-align: center; font-size: 16px; }

/* ═══ 🎲 에크크 윷놀이 단독 앱: 윷놀이 말고 다른 건 숨김 ═══ */
body.solo-yut .tabs, body.solo-yut #pinBtn, body.solo-yut #pinBar, body.solo-yut #karaBadge, body.solo-yut #miniBar, body.solo-yut .mini:not(.ytok),
body.solo-yut #collapseBtn { display: none !important; }
body.solo-yut .logo span:last-child { font-family: "IBM Plex Sans KR", sans-serif; font-weight: 600; letter-spacing: .04em; }
/* 🎲 단독 윷놀이: 방 잠금·목록 숨기기 없음 → 모든 방이 로비에 보이고 아무나 들어옴 */
body.solo-yut .sec-h:has(#admLock) { display: none !important; }
body.solo-yut .av img { object-fit: cover; }

/* ═══ 🍋 에크크 윷놀이 · 레몬 소다 테마 (밝은 노랑 → 하늘빛 · 청록 버튼) ═══ */
body.solo-yut {
  color-scheme: light;
  --bg: #FCEEF2; --bg2: #FFF6F7;
  --glass: rgba(255, 255, 255, .86); --glass2: rgba(255, 255, 255, .95); --glass3: rgba(214, 58, 116, .07);
  --rim: rgba(214, 58, 116, .16); --rim2: rgba(214, 58, 116, .32);
  --ink: #4A2638; --ink2: #7A4A60; --ink3: #8E6478; --line: rgba(74, 38, 56, .10);
  --pk: #D63A74; --cy: #D63A74; --vi: #FF9EC4; --ok: #1E9E55; --bad: #D64545;
  --neon: linear-gradient(90deg, #FFE34D, #FF9EC4);
  --shadow: 0 6px 18px rgba(214, 58, 116, .10);
  --f-lemon: "Black Han Sans", "Gowun Dodum", sans-serif;
  --f-body: "Gowun Dodum", "IBM Plex Sans KR", -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif;
  background: linear-gradient(160deg, #FFF6F7 0%, #FCEEF2 50%, #F5E6F0 100%) fixed; color: var(--ink);
}
body.solo-yut .scene, body.solo-yut #lights, body.solo-yut .ring-fx { display: none !important; }
body.solo-yut .glass { -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: 0 4px 0 #FFC2D8; }
body.solo-yut .chip { background: #FFFFFF; border: 0; color: var(--ink); font-weight: 700; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.solo-yut #themeBtn, body.solo-yut .feature-row { display: none !important; }
/* 로비 */
body.solo-yut .hero { min-height: 0; padding-top: 10px; gap: 8px; }
body.solo-yut .lemon-logo { display: inline-block; padding: 8px 18px; letter-spacing: 0; background: #FFFFFF; border-radius: 16px; transform: rotate(-3deg); font-family: var(--f-lemon); font-weight: 400; font-size: 40px; color: #D63A74; text-shadow: none; box-shadow: 5px 5px 0 #D63A74; }
body.solo-yut .hero-ek { position: relative; width: 190px; height: 170px; display: grid; place-items: center; margin-top: 6px; }
body.solo-yut .hero-ek::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
body.solo-yut .hero-ek img { position: relative; width: 150px; height: 150px; object-fit: contain; animation: lemonBob 3s ease-in-out infinite; }
@keyframes lemonBob { 50% { transform: translateY(-5px); } }
body.solo-yut .hero-ek .bub { position: absolute; border-radius: 50%; border: 3px solid rgba(214, 58, 116, .3); }
body.solo-yut .hero-ek .b1 { left: -10px; top: 70px; width: 22px; height: 22px; } body.solo-yut .hero-ek .b2 { left: 16px; top: 34px; width: 12px; height: 12px; border-width: 2px; }
body.solo-yut .hero-ek .b3 { right: -6px; top: 96px; width: 28px; height: 28px; } body.solo-yut .hero-ek .b4 { right: 22px; top: 52px; width: 14px; height: 14px; border-width: 2px; }
body.solo-yut .tagline { margin: 0; color: #D63A74; font-weight: 700; text-shadow: none; }
body.solo-yut .me-card b, body.solo-yut #lobbyName { font-family: var(--f-lemon); font-weight: 400; font-size: 18px; }
body.solo-yut .me-card .pencil { background: #FFEEF4; color: #D63A74; border: 0; }
body.solo-yut .join-card { background: transparent; box-shadow: none; padding: 0; }
body.solo-yut .btn-holo { background: #D63A74; color: #FFFFFF; font-family: var(--f-lemon); font-weight: 400; font-size: 21px; box-shadow: 0 5px 0 #A8245A; }
body.solo-yut .btn-holo:active { transform: translateY(3px); box-shadow: 0 2px 0 #A8245A; }
body.solo-yut .btn-glass { background: #FFE34D; border: 0; color: #4A2638; font-family: var(--f-lemon); font-weight: 400; }
body.solo-yut .code-row input { background: #FFFFFF; border: 0; color: var(--ink); font-family: var(--f-lemon); }
body.solo-yut .code-row input:focus { box-shadow: 0 0 0 3px #FF9EC4; }
body.solo-yut .or { color: var(--ink3); }
body.solo-yut .vis-seg { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .7); }
body.solo-yut .vis-seg button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ink2); font-family: var(--f-lemon); font-size: 15px; }
body.solo-yut .vis-seg button.on { background: #FFFFFF; color: #D63A74; box-shadow: 0 2px 0 #FFC2D8; }
body.solo-yut .vis-note { display: block; margin-top: -4px; text-align: center; font-size: 12px; color: var(--ink2); }
body:not(.solo-yut) .vis-seg, body:not(.solo-yut) .vis-note { display: none; }
body.solo-yut .rooms-card { background: transparent; box-shadow: none; padding: 0; }
body.solo-yut .rooms-h b { font-family: var(--f-lemon); font-weight: 400; font-size: 17px; }
body.solo-yut .rooms-n { color: #D63A74; font-family: var(--f-lemon); }
body.solo-yut .room-item { background: rgba(255, 255, 255, .92); border: 0; border-radius: 20px; }
body.solo-yut .room-item:active { background: #FFFFFF; }
body.solo-yut .room-side em { font-family: var(--f-lemon); font-style: normal; color: var(--ink); }
body.solo-yut .lobby-foot, body.solo-yut .app-ver-foot { color: var(--ink3); }
body.solo-yut .install-card { box-shadow: 0 4px 0 #FFC2D8; }
/* 방 안 */
body.solo-yut .scene-veil { display: none; }
body.solo-yut .stage { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: 0 4px 0 #FFC2D8; }
body.solo-yut .bottom { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 0; }
body.solo-yut .room-title { color: #D63A74; font-family: var(--f-lemon); letter-spacing: 1px; }
body.solo-yut .msg .bub { background: #FFFFFF; color: var(--ink); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.solo-yut .msg.mine .bub { background: #D63A74; color: #FFFFFF; }
body.solo-yut .sheet { background: #FFFDF2; color: var(--ink); border-top: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.solo-yut .toast { background: #4A2638; color: #FFFFFF; }
/* 🍋 윷놀이 화면 (광장·대기실·판) */
body.solo-yut .stage:has(.pane[data-pane="yut"]:not(.hidden)) { background: rgba(255, 255, 255, .78) !important; }
body.solo-yut .install-card { border: 0; background: #FFFFFF; } body.solo-yut .install-card b { color: var(--ink); } body.solo-yut .install-card small { color: var(--ink2); }
body.solo-yut .yt-ico { background: linear-gradient(145deg, #FFFFFF, #FFF4F8); border: 2px solid #FFD3E3; box-shadow: 0 4px 0 #FFC2D8; }
body.solo-yut .yt-ico.new { background: rgba(255, 255, 255, .6); border: 2px dashed #FF9EC4; color: #D63A74; box-shadow: none; }
body.solo-yut .yt-ico.live { border-color: #FFB000; box-shadow: 0 4px 0 #F2C94C; }
body.solo-yut .yt-ico.mine { border-color: #D63A74; box-shadow: 0 4px 0 #FF9EC4; }
body.solo-yut .yt-ico svg .ln, body.solo-yut .yt-mini svg rect { stroke: rgba(214, 58, 116, .45); }
body.solo-yut .yt-ico svg .dg { stroke: rgba(214, 58, 116, .3); } body.solo-yut .yt-ico svg .pt { fill: rgba(214, 58, 116, .55); }
body.solo-yut .yt-av { border-color: #FFFFFF; }
body.solo-yut .yt-pill.live { background: #FFB000; color: #3A2600; } body.solo-yut .yt-pill.mine { background: #D63A74; color: #FFFFFF; }
body.solo-yut .yt-home, body.solo-yut .yt-mini { background: #FFFFFF; border: 2px solid #FFD3E3; }
body.solo-yut .yt-mini.on { border-color: #D63A74; box-shadow: 0 0 0 2px rgba(214, 58, 116, .2); }
body.solo-yut .yt-mini.live { border-color: #FFB000; } body.solo-yut .yt-mini.live i { background: #FFB000; color: #3A2600; }
body.solo-yut .y-hero b { font-family: var(--f-lemon); font-weight: 400; font-size: 17px; color: var(--ink); }
body.solo-yut .y-chip { border-color: #FFD3E3; color: var(--ink2); background: #FFFFFF; }
body.solo-yut .y-chip.on { background: #D63A74; color: #FFFFFF; border-color: #D63A74; box-shadow: none; }
body.solo-yut .y-set { background: #FFFFFF; border: 0; box-shadow: 0 3px 0 #FFD3E3; }
body.solo-yut .y-team { background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 22%, #fff), #FFFFFF); }
body.solo-yut .y-team-h b, body.solo-yut .y-score b { color: color-mix(in srgb, var(--tc) 55%, #4A2638); text-shadow: none; }
body.solo-yut .y-cdot { border-color: #FFFFFF; box-shadow: 0 0 0 1.5px rgba(74, 38, 56, .25); }
body.solo-yut .y-pchip { background: #FFFFFF; color: var(--ink); }
body.solo-yut .y-score { background: #FFFFFF; }
body.solo-yut .y-score.on { background: color-mix(in srgb, var(--tc) 30%, #fff); box-shadow: none; }
body.solo-yut .y-stop { background: #FFFFFF; }
body.solo-yut .y-board { background: radial-gradient(circle at 50% 45%, #FFFDF0, #FFF6C4 70%, #FFEE94); border: 0; box-shadow: 0 5px 0 #E6C84A, inset 0 0 0 3px #FFFFFF; }
body.solo-yut .y-svg:not(.yd) rect, body.solo-yut .y-svg:not(.yd) path { stroke: rgba(214, 58, 116, .35); stroke-width: 1; }
body.solo-yut .y-svg:not(.yd) circle { fill: #FFFFFF; stroke: #FF9EC4; stroke-width: 1.2; }
body.solo-yut .y-svg:not(.yd) circle.dot { fill: rgba(214, 58, 116, .35); }
body.solo-yut .y-svg:not(.yd) circle.big { fill: #FFFFFF; stroke: #D63A74; stroke-width: 1.8; filter: none; }
body.solo-yut .y-svg:not(.yd) circle.start { stroke: #FF8A00; stroke-width: 2.2; }
body.solo-yut .y-st { fill: #D63A74; }
body.solo-yut .ydest { border-color: #D63A74; box-shadow: 0 0 10px rgba(214, 58, 116, .5); }
body.solo-yut .ypath { background: #D63A74; box-shadow: none; }
body.solo-yut .ytok.sel { outline-color: #D63A74; }
body.solo-yut .ytok.can::before { box-shadow: 0 0 9px 3px rgba(214, 58, 116, .75); }
body.solo-yut .ytok.ek.sel .ytok-base { box-shadow: 0 0 0 2px #D63A74, 0 0 12px 3px rgba(214, 58, 116, .6); }
body.solo-yut .ytok.ek.sel .ytok-shadow { background: radial-gradient(ellipse, rgba(214, 58, 116, .55), rgba(214, 58, 116, 0) 70%); }
body.solo-yut .ytok.ek.sel .ytok-ek img.ek0 { filter: drop-shadow(0 0 3px #D63A74) drop-shadow(0 0 6px #FF9EC4); }
body.solo-yut .ytok.ek .ytok-shadow { background: radial-gradient(ellipse, rgba(74, 38, 56, .3), rgba(74, 38, 56, 0) 70%); }
body.solo-yut .ytok-n { background: #4A2638; color: #FFFFFF; }
body.solo-yut .y-turn { background: color-mix(in srgb, var(--tc) 25%, #fff); color: var(--ink); }
body.solo-yut .y-hchip.on { outline-color: #D63A74; box-shadow: 0 2px 0 #8C6534, 0 0 0 4px rgba(214, 58, 116, .25); }
body.solo-yut .y-tray { border-color: #FFC2D8; background: rgba(255, 255, 255, .6); }
body.solo-yut .y-tray.can { border-color: #D63A74; } body.solo-yut .y-tray.can::after { box-shadow: 0 0 10px 2px rgba(214, 58, 116, .6); }
body.solo-yut .y-tray.sel { background: #FFEEF4; }
body.solo-yut .y-throw-btn { background: #FFFFFF; border: 0; box-shadow: 0 4px 0 #FFC2D8; color: var(--ink); }
body.solo-yut .y-throw-btn b { font-family: var(--f-lemon); font-weight: 400; font-size: 15px; color: #D63A74; }
body.solo-yut .y-flash { background: #FFFFFF; color: var(--ink); border-color: #FFC2D8; }
body.solo-yut .y-flash.cap { color: #B85F00; border-color: #FFB000; }
body.solo-yut .y-throw { background: radial-gradient(circle, rgba(255, 255, 255, .75), transparent 70%); }
body.solo-yut .y-res { color: #D63A74; text-shadow: 0 2px 0 #FFFFFF, 0 0 12px rgba(255, 255, 255, .9); font-family: var(--f-lemon); }
body.solo-yut .y-res.big { color: #E08A00; text-shadow: 0 2px 0 #FFFFFF; }
body.solo-yut .y-res.back { color: #D6337A; }
body.solo-yut .y-win { background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 249, 207, .9)); }
body.solo-yut .y-win b { color: #D63A74; text-shadow: none; font-family: var(--f-lemon); font-weight: 400; }
body.solo-yut .people .nm, body.solo-yut .people b { color: var(--ink); text-shadow: none; }
/* 🍋 방 머리·아래 입력줄·알림 */
body.solo-yut .icon-btn, body.solo-yut .guide-btn { background: #FFFFFF; border: 0; color: #D63A74; box-shadow: 0 3px 0 #FFC2D8; }
body.solo-yut .mini-logo { color: #D63A74; }
body.solo-yut .code-chip { color: var(--ink); } body.solo-yut .code-chip span { font-family: var(--f-lemon); }
body.solo-yut .count { color: var(--ink2); }
body.solo-yut .sys { background: rgba(255, 255, 255, .85); border: 0; color: var(--ink2); }
body.solo-yut .sys.warn { color: #B83250; }
body.solo-yut .input-wrap { background: #FFFFFF; border: 0; box-shadow: 0 2px 0 #FFD3E3; }
body.solo-yut .input-wrap input { color: var(--ink); }
body.solo-yut .emo-btn { color: var(--ink2); }
body.solo-yut .mic-btn { border-color: #D63A74; color: #D63A74; background: #FFFFFF; box-shadow: 0 3px 0 #FFC2D8; }
body.solo-yut .mic-btn.off { border: 2px solid #FFD3E3; color: var(--ink3); box-shadow: 0 3px 0 #FFD3E3; }
body.solo-yut .fxh-btn, body.solo-yut .fx-btn { color: #D63A74; border: 2px solid #FFD3E3; background: #FFFFFF; }
body.solo-yut .fxh-btn .fxh-dot { border-color: #FFFFFF; background: #FF9EC4; }
body.solo-yut .yt-home { color: #D63A74; }
body.solo-yut .av { border-color: #FFFFFF; background: #FFEEF4; }
body.solo-yut .g-search { background: #FFFDF2; }
body.solo-yut .txt-in { background: #FFFFFF; border: 1.5px solid #FFD3E3; color: var(--ink); }
body.solo-yut .txt-in:focus { border-color: #D63A74; }
body.solo-yut .img-menu, body.solo-yut .fx-fan .fx-hint, body.solo-yut .zs-pill { background: #FFFFFF; color: var(--ink); }
/* 🍋 iOS식 시트(프로필·사람 카드)도 밝게 */
body.solo-yut .sheet.ios { --ios-bg: #FFFDF2; --ios-card: #FFFFFF; --ios-card2: #FFF4F8; --ios-sep: rgba(74, 38, 56, .12); --ios-lb: #4A2638; --ios-lb2: rgba(74, 38, 56, .66); --ios-lb3: rgba(74, 38, 56, .4); --ios-tint: #D63A74; background: #FFFDF2; }
body.solo-yut .sheet.ios .ios-nav { background: linear-gradient(#FFFDF2 70%, rgba(255, 253, 242, 0)); }
body.solo-yut .ios-av .av-xl { box-shadow: 0 6px 18px rgba(214, 58, 116, .2); }
body.solo-yut .ios-badge { background: #FFEEF4; color: #D63A74; }
body.solo-yut .ios-act.on { background: #FFEEF4; }
body.solo-yut .tgl { border-color: #FFD3E3; background: #FFFFFF; } body.solo-yut .tgl::after { background: #BFD9D6; }
body.solo-yut .tgl.on { border-color: #D63A74; background: #D63A74; } body.solo-yut .tgl.on::after { background: #FFFFFF; box-shadow: none; }
body.solo-yut .sec-h:has(#admLock) + .sec-note { display: none; }
body.solo-yut .sec-h .lbl { color: #D63A74; }
/* 🖍 크레파스 말판 (도화지 + 크레파스 선·동그라미) */
body.solo-yut .y-board { background-color: #FFFDF4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 .55  0 0 0 0 .45  0 0 0 0 .3  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23p)'/%3E%3C/svg%3E"); border-radius: 18px; box-shadow: 0 5px 0 #E6C84A, inset 0 0 0 3px #FFFFFF; }
body.solo-yut .y-svg { filter: url(#ykCrayon); }
body.solo-yut .y-svg:not(.yd) rect { fill: rgba(255, 221, 120, .18); stroke: #E8913A; stroke-width: 2.2; stroke-linecap: round; }
body.solo-yut .y-svg:not(.yd) path { stroke: #4FA3D9; stroke-width: 2; stroke-linecap: round; stroke-dasharray: none; }
body.solo-yut .y-svg:not(.yd) circle { fill: #FFFFFF; stroke: #6CC08B; stroke-width: 1.6; }
body.solo-yut .y-svg:not(.yd) circle.dot { fill: #F7A6C4; stroke: none; }
body.solo-yut .y-svg:not(.yd) circle.big { fill: #FFF2A8; stroke: #E25C8F; stroke-width: 2.4; }
body.solo-yut .y-svg:not(.yd) circle.start { fill: #FFE1C2; stroke: #F07A2A; stroke-width: 2.6; }
body.solo-yut .y-st { fill: #E25C8F; font-weight: 700; }
/* 🦶 뻥 차기 */
.ytok.kwind { transition: left .2s ease-out, top .2s ease-out; scale: 1.08 .9; }
.ytok.kdash { transition: left .14s cubic-bezier(.6, 0, 1, .4), top .14s cubic-bezier(.6, 0, 1, .4); scale: 1.12; z-index: 6; }
.ytok.ktaunt { animation: yTauntWig .18s ease-in-out 5 alternate; z-index: 6; }
@keyframes yTauntWig { from { rotate: -8deg; } to { rotate: 8deg; } }
.ytok.kicked { z-index: 7; pointer-events: none; animation: yKicked .85s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes yKicked {
  0% { translate: 0 0; rotate: 0deg; scale: 1; opacity: 1; }
  12% { translate: calc(var(--kx) * .08) -10px; scale: 1.25 .8; }
  45% { translate: calc(var(--kx) * .55) -130px; rotate: calc(var(--kr) * .5); scale: .9; opacity: 1; }
  100% { translate: var(--kx) 160px; rotate: var(--kr); scale: .35; opacity: 0; }
}
.y-kboom { position: absolute; z-index: 8; translate: -50% -110%; pointer-events: none; animation: yKboom .8s ease-out forwards; }
.y-kboom b { display: block; padding: 4px 12px; border-radius: 14px; background: #FFE34D; color: #4A2638; font-family: "Black Han Sans", sans-serif; font-weight: 400; font-size: 22px; white-space: nowrap; box-shadow: 0 0 0 3px #FFFFFF, 0 4px 0 #E0A800; }
@keyframes yKboom { 0% { scale: .3; opacity: 0; } 18% { scale: 1.35; opacity: 1; } 35% { scale: 1; } 80% { opacity: 1; } 100% { scale: 1; opacity: 0; translate: -50% -170%; } }
.y-ktaunt { position: absolute; z-index: 8; translate: var(--tx, -50%) var(--ty, -230%); pointer-events: none; padding: 4px 10px; border-radius: 12px; background: #FFFFFF; color: #D6337A; font-weight: 700; font-size: 13px; white-space: nowrap; box-shadow: 0 2px 0 #F5C6D9; animation: yTauntIn 1.3s ease .3s both; }
@keyframes yTauntIn { 0% { opacity: 0; scale: .6; } 15% { opacity: 1; scale: 1.1; } 25% { scale: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ytok.kicked { animation-duration: .3s; } .ytok.ktaunt { animation: none; } }
/* 🖍 애기 낙서 말판 (위의 단정한 크레파스 대신) */
body.solo-yut .y-svg.yd { filter: url(#ykCrayon); }
body.solo-yut .y-svg.yd .yd-st { font-family: "Gaegu", "Gowun Dodum", sans-serif; font-weight: 700; font-size: 5px; fill: #E81E1E; }
/* ⚙️ 귀여운 톱니 (방 오른쪽 위) + 음악·효과음 볼륨 */
.yk-gear, .yk-vol { display: none; }
body.solo-yut .yk-gear { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
body.solo-yut .yk-gear svg { filter: drop-shadow(0 3px 0 #E0B800); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
body.solo-yut .yk-gear .g { fill: #FFE34D; stroke: #F2B705; stroke-width: 1.2; }
body.solo-yut .yk-gear .f { fill: #FFFFFF; } body.solo-yut .yk-gear .e { fill: #4A2638; }
body.solo-yut .yk-gear .m { fill: none; stroke: #4A2638; stroke-width: 1.1; stroke-linecap: round; } body.solo-yut .yk-gear .c { fill: #FF9EC4; opacity: .8; }
body.solo-yut .yk-gear:hover svg, body.solo-yut .yk-gear.on svg { transform: rotate(60deg); }
body.solo-yut .yk-gear:active svg { transform: rotate(60deg) scale(.9); }
body.solo-yut .yk-vol { position: absolute; right: 12px; top: calc(56px + var(--safe-t)); z-index: 25; width: min(290px, calc(100vw - 24px)); box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 6px 0 #FFC2D8, 0 14px 30px rgba(214, 58, 116, .18); animation: ykPop .22s cubic-bezier(.3, 1.5, .5, 1); }
body.solo-yut .yk-vol[hidden] { display: none; }
@keyframes ykPop { from { opacity: 0; transform: translateY(-6px) scale(.95); } }
body.solo-yut .yk-vol label { display: flex; align-items: center; gap: 8px; }
body.solo-yut .yk-vol .ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #FFEEF4; color: #D63A74; }
body.solo-yut .yk-vol b { width: 44px; flex: none; font-family: var(--f-lemon); font-weight: 400; font-size: 14px; color: var(--ink); }
body.solo-yut .yk-vol input { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #D63A74 var(--p, 50%), #FFE3EE var(--p, 50%)); }
body.solo-yut .yk-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #FFE34D; border: 3px solid #FFFFFF; box-shadow: 0 2px 0 #E0B800, 0 0 0 1px rgba(0,0,0,.06); }
body.solo-yut .yk-vol input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #FFE34D; border: 3px solid #FFFFFF; }
body.solo-yut .yk-vol em { width: 30px; flex: none; text-align: right; font-style: normal; font-family: var(--f-lemon); font-size: 13px; color: var(--ink2); }
body.solo-yut .room-head { position: relative; }
body.solo-yut .yk-vol input::-webkit-slider-runnable-track { height: 8px; border: 0; border-radius: 99px; background: transparent; box-shadow: none; }
body.solo-yut .yk-vol input::-webkit-slider-thumb { margin-top: -8px; }
body.solo-yut .yk-vol input { border: 0; box-shadow: none; outline-offset: 4px; }

/* 🎲 윷가락: 기존 나무 윷 그대로, 조금 밝게 */
body.solo-yut .ystick.round { background: linear-gradient(90deg, #A8794A, #D9A970 40%, #B98A56); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), 0 4px 8px rgba(80,50,20,.3); }
body.solo-yut .ystick.flat { background: linear-gradient(180deg, #FFF6E2, #F8E2B6); box-shadow: inset 0 0 0 1px rgba(140,101,52,.4), 0 4px 8px rgba(80,50,20,.3); }
body.solo-yut .ystick.round s { background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(70,40,15,.4) 6px 7.5px), repeating-linear-gradient(-45deg, transparent 0 6px, rgba(70,40,15,.4) 6px 7.5px); }
body.solo-yut .y-sticks.tossing .ystick.round, body.solo-yut .y-sticks.tossing .ystick.flat { background: linear-gradient(90deg, #B98A56, #FFF2D2 50%, #B98A56); }
body.solo-yut .y-main:not(.port) .y-throw-btn b { font-size: 13px; white-space: nowrap; letter-spacing: -.02em; } body.solo-yut .y-main:not(.port) .y-throw-btn small { font-size: 10px; }
/* 🎲 던진 결과: 오른쪽 '새 말' 바로 위 칸에 (판은 안 가림) */
body.solo-yut .y-main:not(.port) .y-held { min-height: 150px; align-content: center; justify-content: center; border-radius: 16px; background: rgba(255, 255, 255, .55); }
body.solo-yut .y-main:not(.port) .y-hchip { min-width: 44px; font-size: 16px; padding: 6px 10px; }
body.solo-yut .y-main:not(.port) .y-side { justify-content: flex-start; padding-top: 4px; }
body.solo-yut .y-main:not(.port) ~ * .y-throw, body.solo-yut .y-fx .y-throw { background: none; }
body.solo-yut .y-main:not(.port) .y-sticks { gap: 6px; }
/* 🎲 판 최대한 크게: 옆 칸 좁게 · 여백 줄이기 */
body.solo-yut .stage { margin-left: 6px; margin-right: 6px; }
body.solo-yut .y-main:not(.port) { gap: 6px; }
body.solo-yut .y-main:not(.port) .y-side { min-width: 0; gap: 5px; }
body.solo-yut .y-main:not(.port) .y-tray { padding: 3px; gap: 1px; justify-content: center; }
body.solo-yut .y-main:not(.port) .y-tray .ytok.mini { width: 30px; }
body.solo-yut .y-main:not(.port) .y-turn { padding: 3px 6px 3px 3px; font-size: 12px; }
body.solo-yut .y-main:not(.port) .y-held { min-height: 120px; }
body.solo-yut .y-main:not(.port) .y-throw-btn { padding: 8px 4px 7px; }
body.solo-yut .y-main:not(.port) .y-throw-btn b { font-size: 12px; }
body.solo-yut .y-main:not(.port) .y-throw-btn small { display: none; }
body.solo-yut .stage.tall .panes { height: calc(var(--app-h, 100dvh) - 300px); min-height: 380px; }
/* 🎙 프사 위 마이크 켬/끔 표시 뺌 */
body.solo-yut .people .badge.micb { display: none; }
/* 🎲 y13: 사람 줄(계정)은 위로 올려 작게 (판 위) → 판 화면 폭 가득, 결과·새 말·던지기는 판 아래 */
body.solo-yut #stageGrip { display: none !important; }
body.solo-yut #room > .room-head { order: -3; } body.solo-yut #room > #pinBar, body.solo-yut #room > #karaBadge { order: -2; }
body.solo-yut #room > .people { order: -1; min-height: 0; gap: 4px; padding: 0 10px 6px; }
body.solo-yut .people .person { width: auto; min-width: 0; padding: 0; gap: 0; }
body.solo-yut .people .person .nm, body.solo-yut .people .person .role, body.solo-yut .people .badge.vol, body.solo-yut .people .badge.zone { display: none; }
body.solo-yut .people .person .ring { --s: 34px; }
body.solo-yut .people .person .ring { padding: 2px; } body.solo-yut .people .person .av { --s: 34px; }
body.solo-yut .stage.tall .panes { height: calc(var(--app-h, 100dvh) - 215px); min-height: 420px; }
body.solo-yut .y-main.port { gap: 8px; }
body.solo-yut .y-main.port .y-side { grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 2px; }
body.solo-yut .y-main.port .y-held { min-height: 96px; justify-content: center; align-content: center; border-radius: 16px; background: rgba(255, 255, 255, .55); }
body.solo-yut .y-main.port .y-hchip { min-width: 44px; font-size: 16px; padding: 6px 10px; }
body.solo-yut .y-main.port .y-tray { min-height: 96px; justify-content: center; }
body.solo-yut .y-main.port .y-tray .ytok.mini { width: 34px; }
body.solo-yut .y-main.port .y-throw-btn small { display: none; }
body.solo-yut .y-main.port .y-throw-btn b { font-size: 15px; }
body.solo-yut .y-main.port .y-hint { font-size: 12px; text-align: center; }
body.solo-yut .y-main.port .y-throw-btn { min-height: 48px; }
/* 🎲 판 아래: 왼쪽 채팅 · 오른쪽 위 윷 결과 · 오른쪽 아래 새 말 */
body.solo-yut .y-main.port .y-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "turn turn" "chat held" "chat tray" "go go"; }
body.solo-yut .y-main.port .y-turn { grid-area: turn; }
body.solo-yut .y-main.port .y-chatslot { grid-area: chat; min-height: 0; height: 190px; border-radius: 16px; background: rgba(255, 255, 255, .7); overflow: hidden; display: flex; }
body.solo-yut .y-main.port .y-held { grid-area: held; min-height: 84px; }
body.solo-yut .y-main.port .y-tray { grid-area: tray; min-height: 0; }
body.solo-yut .y-main.port .y-throw-btn, body.solo-yut .y-main.port .y-hint { grid-area: go; }
body.solo-yut .y-main.port .y-tray .ytok.mini { width: 30px; }
body.solo-yut #chat.in-slot { flex: 1; min-height: 0; height: 100%; padding: 6px; gap: 4px; font-size: 12px; }
body.solo-yut #chat.in-slot .msg .bub { font-size: 12px; padding: 5px 9px; }
body.solo-yut #chat.in-slot .msg .av { --s: 22px; }
body.solo-yut #chat.in-slot .sys { font-size: 10px; padding: 2px 8px; }
body.solo-yut #chat.in-slot .chat-hello { display: none; }
/* 스페셜 모드: 빽 표시 가락 (1·2·3번째) */
body.solo-yut .ystick.flat.mark.m2 s, body.solo-yut .ystick.flat.mark.m3 s { background: #FF8FB8; }
body.solo-yut .ystick.flat.mark.m2 s { box-shadow: 0 14px 0 #FF8FB8; }
body.solo-yut .ystick.flat.mark.m3 s { box-shadow: 0 14px 0 #FF8FB8, 0 -14px 0 #FF8FB8; }
/* 판 아래 칸 높이 정리 */
body.solo-yut .y-main.port .y-side { grid-template-rows: auto 62px 66px auto; gap: 6px; }
body.solo-yut .y-main.port .y-chatslot { height: auto; }
body.solo-yut .y-main.port .y-held { min-height: 0; padding: 2px; gap: 4px; }
body.solo-yut .y-main.port .y-held .y-hchip { min-width: 40px; font-size: 15px; padding: 5px 9px; }
body.solo-yut .y-main.port .y-tray { min-height: 0; padding: 2px 4px; align-content: center; }
body.solo-yut .y-main.port .y-tray em { display: none; }
body.solo-yut .y-main.port .y-tray .ytok.mini { width: 28px; }
body.solo-yut .y-main.port .y-turn { padding: 2px 8px 2px 2px; }
body.solo-yut:has(#chat.in-slot) .stage.tall .panes { height: calc(var(--app-h, 100dvh) - 200px); }

/* y18: 게임 화면 전체를 벚꽃 우유 한 톤으로 (하얀 칸 없애기) */
body.solo-yut { --yk-s1: rgba(255, 196, 218, .28); --yk-s2: rgba(255, 196, 218, .45); --yk-line: #F6C2D5; }
body.solo-yut .stage, body.solo-yut .stage:has(.pane[data-pane="yut"]:not(.hidden)) { background: rgba(255, 233, 241, .55) !important; box-shadow: 0 4px 0 #F6C9D9; }
body.solo-yut .bottom { background: rgba(252, 232, 240, .92); }
body.solo-yut .y-board { background-color: #FFF1F6; box-shadow: 0 5px 0 #F3B7CC, inset 0 0 0 3px rgba(255, 255, 255, .6); }
body.solo-yut .y-main .y-chatslot, body.solo-yut .y-main .y-held { background: var(--yk-s1) !important; }
body.solo-yut .y-tray { background: var(--yk-s1); border-color: var(--yk-line); }
body.solo-yut .y-tray.sel { background: var(--yk-s2); }
body.solo-yut .y-throw-btn { background: var(--yk-s2); box-shadow: 0 4px 0 #F3B7CC; }
body.solo-yut .msg .bub { background: rgba(255, 255, 255, .75); }
body.solo-yut .y-set, body.solo-yut .y-score, body.solo-yut .y-stop, body.solo-yut .y-pchip, body.solo-yut .y-chip, body.solo-yut .yt-home, body.solo-yut .yt-mini { background: rgba(255, 240, 246, .9); }
body.solo-yut .y-set { box-shadow: 0 3px 0 var(--yk-line); }
body.solo-yut .y-team { background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 22%, #FFF0F5), #FFF0F5); }
body.solo-yut .y-flash { background: #FFF0F5; }
body.solo-yut .room-head .chip, body.solo-yut .chip { background: rgba(255, 240, 246, .95); }

/* y19: ✨스페셜 윷 표시 = X (0·1·2번 가락) */
.ystick.flat.mark.xm s, body.solo-yut .ystick.flat.mark.xm s { width: 13px; height: 13px; transform: translate(-50%, -50%); box-shadow: none; background: linear-gradient(45deg, transparent 40%, #E2266E 40% 60%, transparent 60%), linear-gradient(-45deg, transparent 40%, #E2266E 40% 60%, transparent 60%); }

/* y22: 던지기 버튼 = 항상 같은 자리, 내 차례엔 진한 분홍 */
body.solo-yut .y-throw-btn.go { background: #D63A74; box-shadow: 0 5px 0 #A8245A; color: #FFFFFF; min-height: 64px; }
body.solo-yut .y-throw-btn.go b { color: #FFFFFF; font-size: 19px; }
body.solo-yut .y-throw-btn.go small { color: rgba(255, 255, 255, .85); }
body.solo-yut .y-throw-btn.go .y-gauge { background: rgba(255, 255, 255, .35); }
body.solo-yut .y-throw-btn.go .y-gauge i { background: #FFFFFF; }
body.solo-yut .y-throw-btn.wait { opacity: 1; min-height: 52px; background: rgba(255, 196, 218, .22); box-shadow: none; border: 2px dashed #F6C2D5; }
body.solo-yut .y-throw-btn.wait b { font-family: inherit; font-size: 13px; color: var(--ink2); white-space: normal; }

/* y23: 폰 화면이 낮을 때(사파리 주소창 등) 윷판 중에는 위 프사 줄을 숨기고 판 자리를 넓힘 → 던지기 버튼이 항상 보이게 */
@media (max-height: 780px) {
  body.solo-yut:has(#yut .y-main.port) #room > .people { display: none; }
  body.solo-yut:has(#yut .y-main.port) .stage.tall .panes { height: calc(var(--app-h, 100dvh) - 138px) !important; min-height: 0 !important; }
  body.solo-yut .y-main.port .y-side { grid-template-rows: auto 56px 60px auto; gap: 5px; }
  body.solo-yut .y-main.port .y-turn { padding-top: 2px; padding-bottom: 2px; }
  body.solo-yut .y-throw-btn.go { min-height: 54px; }
  body.solo-yut .y-throw-btn.wait { min-height: 44px; }
}

/* y24: 판 더 크게 — '내 차례' 줄 없애기(던지기 버튼이 대신 알려 줌), 아래 칸들 납작하게, 판 목록 줄 작게 */
body.solo-yut .y-main.port .y-turn { display: none; }
body.solo-yut .y-main.port .y-side { grid-template-areas: "chat held" "chat tray" "go go"; grid-template-rows: 50px 56px auto; gap: 5px; }
body.solo-yut .y-main.port .y-held .y-hchip { padding: 3px 8px; font-size: 14px; min-width: 36px; }
body.solo-yut .y-main.port .y-tray .ytok.mini { width: 26px; }
body.solo-yut .y-throw-btn.go { min-height: 50px; }
body.solo-yut .y-throw-btn.wait { min-height: 40px; }
body.solo-yut .y-main.port .y-throw-btn.wait b { font-size: 12.5px; }
body.solo-yut .yt-strip { height: 40px; padding-bottom: 4px; }
body.solo-yut .yt-strip:not([hidden]) ~ #yView { height: calc(100% - 40px); }
body.solo-yut .yt-home, body.solo-yut .yt-mini { width: 34px; height: 34px; border-radius: 10px; }
body.solo-yut .y-main.port { gap: 6px; }
@media (max-height: 780px) {
  body.solo-yut .y-main.port .y-side { grid-template-rows: 44px 50px auto; }
  body.solo-yut .y-throw-btn.go { min-height: 46px; }
}

/* y25: 버튼 대신 '화면 꾹 → 게이지만' */
body.solo-yut .y-main.port .y-holdhint { grid-area: go; text-align: center; font-size: 13px; color: var(--ink2); padding: 8px 6px 4px; line-height: 1.35; }
body.solo-yut .y-holdhint.go { color: #D63A74; font-weight: 700; font-size: 14px; animation: yHintPulse 1.4s ease-in-out infinite; }
@keyframes yHintPulse { 50% { opacity: .55; } }
.y-main.holdzone { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.y-main.holdzone .y-board { box-shadow: 0 5px 0 #F3B7CC, 0 0 0 3px rgba(214, 58, 116, .35); }
.y-main.holding .y-board { transform: scale(.985); transition: transform .15s; }
.y-holdov { position: fixed; z-index: 60; transform: translate(-50%, -50%); width: min(70vw, 260px); padding: 14px 16px 12px; border-radius: 20px; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 0 #F3B7CC, 0 10px 30px rgba(120, 30, 70, .2); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; animation: yOvIn .15s ease-out; }
.y-holdov b { color: #D63A74; font-family: var(--f-lemon, inherit); font-weight: 400; font-size: 18px; }
.y-holdov small { font-size: 11px; color: var(--ink3); }
.y-holdov .y-gauge { height: 14px; border-radius: 7px; }
.y-holdov .y-gauge i { border-radius: 7px; background: #FF8FB8; }
@keyframes yOvIn { from { transform: translate(-50%, -50%) scale(.8); opacity: 0; } }
.y-holdov .y-gauge i.hot { background: linear-gradient(90deg, #FF8FB8, #D63A74); }

/* y26: 게이지는 새 말 밑 (예전처럼 초록→빨강) · 화면 아무 데나 꾹 */
body.solo-yut .y-main.port .y-holdbar { grid-area: go; display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 4px 4px 2px; }
body.solo-yut .y-holdbar .y-gauge { height: 16px; border-radius: 8px; background: linear-gradient(90deg, rgba(91, 240, 168, .35) 0 60%, rgba(255, 107, 138, .4) 60%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
body.solo-yut .y-holdbar .y-gauge i { border-radius: 8px; background: #3DDC8A; }
body.solo-yut .y-holdbar .y-gauge i.hot { background: linear-gradient(90deg, #3DDC8A 0, #FFD84D 60%, #FF4B6E); }
body.solo-yut .y-holdbar small { text-align: center; font-size: 12.5px; font-weight: 700; color: #D63A74; animation: yHintPulse 1.4s ease-in-out infinite; }
body.y-holding .y-holdbar small { animation: none; opacity: 1; }
body.y-holding, body.y-holding * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.solo-yut .y-main.holdzone { touch-action: none; }

/* y28: 8명까지 — 점수 줄이 넘치면 옆으로 밀어서 보기, '그만'은 한 줄 */
body.solo-yut .y-top { overflow-x: auto; scrollbar-width: none; gap: 4px; }
body.solo-yut .y-top::-webkit-scrollbar { display: none; }
body.solo-yut .y-top .y-score { flex-shrink: 0; }
body.solo-yut .y-stop { white-space: nowrap; flex-shrink: 0; }

/* y29: 🏆 끝나면 순위 */
.y-win { overflow-y: auto; padding: 12px; }
.y-rank { list-style: none; margin: 2px 0 4px; padding: 0; width: min(100%, 300px); display: flex; flex-direction: column; gap: 5px; }
.y-rank li { display: flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 14px; background: color-mix(in srgb, var(--tc) 22%, rgba(255, 255, 255, .85)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tc) 55%, transparent); }
.y-rank li:first-child { padding: 8px 10px; transform: scale(1.03); }
.y-rank .yr-n { min-width: 30px; text-align: center; font-size: 18px; font-weight: 800; color: var(--ink); }
.y-rank .yr-avs { display: flex; } .y-rank .yr-avs .av { margin-right: -6px; }
.y-rank b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px !important; color: var(--ink) !important; text-shadow: none !important; text-align: left !important; font-family: inherit !important; font-weight: 700 !important; margin-left: 6px; }
.y-rank em { font-style: normal; font-size: 11.5px; color: var(--ink2); white-space: nowrap; }
.y-win { justify-content: safe center; gap: 6px; }
.y-win:has(.y-rank) .y-win-avs { transform: scale(.72); margin: -8px 0 -10px; }
.y-rank { gap: 4px; }
.y-rank li { padding: 3px 9px; }
.y-rank li:first-child { padding: 5px 9px; transform: none; }
.y-rank .yr-n { font-size: 15px; min-width: 26px; }
.y-rank .av.xs { width: 24px; height: 24px; }
.y-win .y-again { flex-shrink: 0; }
body.solo-yut #yut { overflow-x: hidden; } /* y30: 가장자리 말이 밖으로 삐져나가 화면이 옆으로 밀리지 않게 */
/* y30: 이동할 칸 표시(점선 동그라미)가 도는 동안 제자리를 벗어나 빙빙 돌던 문제 → 위치는 translate, 회전은 rotate 로 분리 */
.ydest { transform: none; translate: -50% -50%; }
.ydest.goal { transform: none; translate: -70% -50%; }
