/* 3D 공연장 한 화면 + 위아래 알약 조작부 (산사식 3인칭). LED 자리에는 유튜브 플레이어가 3D로 겹친다 */
:root {
  color-scheme: dark;
  --hall: #0b0912;
  --glass: #17141fa6; /* 위·아래 버튼 줄, 메뉴, 설정창 공통 바탕: 85% → 65% (뒤가 비치게, 2026-11-02 사용자 요청) */
  --line: #ffffff1f;
  --ink: #f4f0fa;
  --dim: #a59fb3;
  --live: #ff3d6e;
  --display: "Dela Gothic One", "Noto Sans KR", system-ui, sans-serif; /* 라틴·일본어는 Dela, 한글은 Noto Sans KR 900 (2026-11-04: Black Han Sans 는 작은 글씨에서 뭉개져 읽기 어려웠다) */
  --body: "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}
html, body { height: 100%; margin: 0; }
[hidden] { display: none !important; }
body { background: var(--hall); color: var(--ink); font: 14px var(--body); overflow: hidden; }
#app { position: relative; height: 100%; overflow: hidden; }
#css3d, #scene, #labels, #floats { position: absolute; inset: 0; }
/* 콜·리액션 글씨는 메뉴보다 위 층에 떠서 메뉴를 열어 둬도 보인다 */
#floats { z-index: 7; pointer-events: none; overflow: hidden; }
#css3d { z-index: 0; pointer-events: none; }
#ytWrap, .subWrap { width: 1920px; height: 1080px; background: #000; overflow: hidden; }
#ytWrap iframe, .subWrap iframe { width: 100%; height: calc(100% + 240px); margin-top: -120px; border: 0; } /* 위 제목 줄·아래 로고는 잘린 바깥으로 (2026-11-05) */
#scene { z-index: 1; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }
#labels { z-index: 2; pointer-events: none; overflow: hidden; }
.tag {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); white-space: nowrap;
  font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #0b0912cc; color: #e9e4f3;
}
/* 내 이름표: 흰 바탕이면 칭호·레벨 색이 묻혀서, 어두운 바탕에 내 최애색 테두리로 구분 */
.tag.me { background: #0b0912e6; color: #fff; font-weight: 700; box-shadow: 0 0 0 1.5px var(--my, #fff), 0 0 12px -2px var(--my, #fff); }
/* 친구 이름표: 분홍 테두리 + 분홍 이름 (남은 기본, 나는 최애색 테두리) */
.tag.npc { background: #17141fcc; color: #a9a3b8; font-size: 11px; font-weight: 500; }
.tag.npc i { font-style: normal; font-weight: 800; font-size: 11px; letter-spacing: 0.04em; background: #3a3448; color: #d8d2e6; padding: 1px 4px; border-radius: 5px; margin-right: 4px; }
.tag.friend { background: #2a0f20e6; color: #ffc2e2; font-weight: 700; box-shadow: 0 0 0 1.5px #ff8fc7; }
.heat { gap: 4px; }
/* 상점 */
.modeTabs { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: #ffffff0a; }
.modeTabs button { padding: 6px 12px; border-radius: 8px; font-size: 15px; font-weight: 800; color: var(--dim); }
.modeTabs button[aria-pressed="true"] { background: var(--line); color: var(--ink); }
.dlgHead h2 { margin: 0; font-size: 18px; }
.cname { font-size: 12px; font-weight: 700; color: var(--dim); align-self: center; }
/* 분류 탭: 미리보기 바로 아래, 한 줄 (폰에서는 옆으로 밀어 본다) */
.catTabs { flex-wrap: wrap; justify-content: center; overflow: visible; } /* 2026-11-05: 넓은 화면에서도 줄바꿈 (오른쪽 탭이 잘렸다) */
.catTabs button { flex: none; font-size: 14px; white-space: nowrap; }
@media (max-width: 520px) { .catTabs { flex-wrap: wrap; justify-content: center; overflow: visible; } .catTabs button { font-size: 12px; padding: 10px 8px; } } /* 폰: 탭이 오른쪽에서 잘리지 않게 */
.dealBox { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #ffffff08; border: 1px solid var(--line); }
.dealBox b { width: 100%; font-size: 13px; }
.goldBox { background: #ffc93a14; border-color: #ffc93a66; }
.shout.say.mc { animation: holdMc 5.4s ease-out forwards; font-size: 14px; max-width: 70vw; white-space: normal; text-align: center; }
@keyframes holdMc { 0% { transform: translate(-50%, -80%); opacity: 0; } 6% { transform: translate(-50%, -100%); opacity: 1; } 88% { opacity: 1; } 100% { transform: translate(-50%, -104%); opacity: 0; } }
#poseRow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 2px; } /* 포즈가 많아 옆으로 넘겨 본다 (2026-11-05) */
#poseRow::-webkit-scrollbar { display: none; }
#poseRow button { flex: 0 0 68px; white-space: nowrap; scroll-snap-align: start; }
#poseRow button span { font-size: 11px; }
#poseRow button.duoPose { border-color: #ff8fc788; box-shadow: inset 0 0 0 1px #ff8fc755; }
#poseRow button.duoPose span::after { content: " 2인"; font-size: 11px; color: #ff8fc7; }
.goldBox small { width: 100%; font-size: 11px; color: var(--dim); margin-top: -4px; }
.goldBox i { width: 100%; font-style: normal; font-size: 11px; font-weight: 800; color: #ffd75a; margin-top: 4px; }
.opt.gold { border-color: #ffc93a55; } .tbook { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; } .tbook span { font-size: 11px; padding: 2px 7px; border-radius: 999px; border: 1px solid #ffffff22; color: var(--dim); } .tbook span.on { color: #f4f0fa; border-color: var(--hc); background: color-mix(in srgb, var(--hc) 18%, transparent); } .opt.gold.afford { color: #ffe14a; border-color: #ffd75acc; background: #ffc93a14; } .opt.gold:not(.afford) small.pr { color: var(--dim); }
.opt small.pr { margin-left: 6px; font-size: 11px; font-weight: 800; color: #ffe14a; opacity: .9; }
/* 등급 표시 (2026-11-05): 뽑기 등급과 같은 기준 · 긴테 상점은 금빛 */
.opt em.tb { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 5px; border-radius: 6px; margin-right: 5px; vertical-align: 1px; }
.opt em.tb.t0 { background: #ffffff1c; color: #dfe3ee; } .opt em.tb.t1 { background: #4fd8ff24; color: #7fe4ff; } .opt em.tb.t2 { background: #ffb3ff24; color: #ffc4ff; } .opt em.tb.tg { background: #ffc93a2c; color: #ffd75a; }
.opt.locked:not(.afford) small.pr { color: var(--dim); }
/* 얻은 것 카드 (2026-11-05): 산 것·뽑은 것을 크게 보여 주고 바로 입어 볼 수 있다 */
.gotDlg { width: min(320px, 88vw); text-align: center; border: 2px solid var(--gc, #ffe14a); box-shadow: 0 0 40px -6px var(--gc, #ffe14a); }
.gotDlg[open] { animation: gotPop .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes gotPop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.gotDlg .gotNew { display: inline-block; font-size: 12px; font-weight: 900; padding: 2px 10px; border-radius: 999px; background: var(--gc, #ffe14a); color: #0b0912; }
.gotDlg img { width: 180px; height: 180px; display: block; margin: 6px auto 0; }
.gotDlg .gotIcon { font-size: 64px; line-height: 1.2; margin-top: 6px; }
.gotDlg h2 { margin: 4px 0 2px; font-size: 20px; }
.gotDlg .gotBtns { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.opt.deal { border-color: #ffffff38; }
.call.locked { opacity: .65; }
.tryBar .tag.sample { position: static; transform: none; display: inline-block; }
#pvTag { pointer-events: none; z-index: 1; } /* 미리보기 머리 위 이름표: 고른 테두리가 보이게 */
/* 이름표 테두리 (상점) */
.tag[data-nt="1"] { box-shadow: 0 0 0 1.5px #e8b923, 0 0 10px -2px #e8b923; }
.tag[data-nt="2"] { box-shadow: 0 0 0 1.5px #4fd8ff, 0 0 14px #4fd8ff; color: #c9f4ff; }
.tag[data-nt="3"] { border: 1.5px solid transparent; background: linear-gradient(#0b0912e6, #0b0912e6) padding-box, linear-gradient(90deg, #ff3b4f, #ffe14a, #3ee07a, #4fd8ff, #b160ff) border-box; box-shadow: none; }
.tag[data-nt="4"] { box-shadow: 0 0 0 1.5px #ff6fb5, 0 0 10px -2px #ff6fb5; }
.tag[data-nt="4"]::before, .tag[data-nt="4"]::after { content: "♥"; position: absolute; color: #ff6fb5; font-size: 12px; line-height: 1; text-shadow: 0 0 5px #ff6fb5; pointer-events: none; }
.tag[data-nt="4"]::before { top: -8px; left: -4px; transform: rotate(-20deg); }
.tag[data-nt="4"]::after { bottom: -7px; right: -3px; transform: rotate(18deg); font-size: 10px; }
.tag[data-nt="5"] { box-shadow: 0 0 0 1px #fff8, 0 0 16px #ffe9a0; }
.tag[data-nt="5"]::before, .tag[data-nt="5"]::after { content: "✦"; position: absolute; color: #ffe9a0; line-height: 1; text-shadow: 0 0 6px #ffd75a; pointer-events: none; animation: ntTwinkle 1.6s ease-in-out infinite; }
.tag[data-nt="5"]::before { top: -9px; right: 2px; font-size: 13px; }
.tag[data-nt="5"]::after { bottom: -7px; left: -2px; font-size: 9px; animation-delay: -0.8s; }
@keyframes ntTwinkle { 50% { opacity: 0.35; transform: scale(0.7); } }
html.calm .tag[data-nt="5"]::before, html.calm .tag[data-nt="5"]::after { animation: none; }
.tag[data-nt="6"] { border: 1.5px solid transparent; background: linear-gradient(#1a1406e6, #1a1406e6) padding-box, linear-gradient(90deg, #ffd75a, #fff3c0, #e8b923) border-box; color: #ffe9a0; box-shadow: 0 0 12px -2px #ffc93a; }
.tag[data-nt="6"]::before { content: "🎗"; margin-right: 3px; }
.tag[data-nt="7"] { border: 1.5px solid #e8b923; border-radius: 5px; background: linear-gradient(90deg, #2a1f08ee, #1a1406ee); color: #ffe9a0; padding-right: 18px;
  -webkit-mask: radial-gradient(circle 4px at 0 50%, #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 4px at 100% 50%, #0000 96%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 4px at 0 50%, #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 4px at 100% 50%, #0000 96%, #000) right / 51% 100% no-repeat; } /* 금빛 티켓: 양옆 반달 홈 */
.tag[data-nt="7"]::after { content: ""; position: absolute; top: 3px; bottom: 3px; right: 10px; border-left: 1.5px dashed #e8b923aa; pointer-events: none; } /* 절취선 */
/* 성공률 100%: 화면 가장자리가 빨갛게 달아오른다 */
body.hot::after { content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 140px 30px #ff3b4f77; animation: hotPulse .45s ease-in-out infinite alternate; }
@keyframes hotPulse { to { box-shadow: inset 0 0 90px 10px #ff9a2e55; } }
html.calm body.hot::after { animation: none; }
/* 설정 창: 줄마다 이름 + 켜짐/꺼짐 */
.pop.settings { display: grid; gap: 4px; width: min(340px, calc(100% - 32px)); padding: 12px; }
.pop.settings h3, .pop.quests h3 { margin: 0 0 4px; font-size: 13px; color: var(--dim); font-weight: 600; }
.setrow { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; min-width: 0; padding: 10px 12px; border-radius: 12px; justify-content: flex-start; text-align: left; }
.pop.settings { overflow-x: hidden; } /* 폰 설정이 옆으로 밀리지 않게: 줄 너비에 안쪽 여백까지 넣어 계산 (2026-11-03 사용자 요청) */
.setrow.vol input { min-width: 0; }
.setrow svg { width: 18px; height: 18px; flex: none; }
.pop.settings .ib span.t { display: inline; flex: 1; font-size: 14px; }
.setrow kbd { font: 600 10px var(--body); color: var(--dim); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
@media (pointer: coarse) { .setrow kbd { display: none; } } /* 폰에는 키보드가 없다 */
.setrow[aria-pressed]::after { content: "꺼짐"; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--line); color: var(--dim); }
.setrow[aria-pressed="true"]::after { content: "켜짐"; background: var(--my, var(--live)); color: #0b0912; }
.setrow.vol { cursor: default; }
.setrow .tagMode { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--my, var(--live)); color: #0b0912; }
.settings .note.iosVol { margin: -4px 12px 4px; }
.setrow.vol span { flex: none; font-size: 14px; }
.setrow.vol input { flex: 1; }
.pop.settings .note { margin: 6px 2px 0; font-size: 11px; }
.setrow.donate { text-decoration: none; color: var(--ink); }
/* 미리보기 띠: 캐릭터 그림 바로 아래에 붙어 있다 */
/* 미리보기 묶음: 대화창을 아래로 내려도 맨 위에 붙어 캐릭터가 늘 보인다 */
.pvWrap { position: sticky; top: -20px; z-index: 3; display: grid; gap: 6px; justify-items: stretch; margin: 0 -20px; padding: 6px 20px 10px; background: #17141f; box-shadow: 0 8px 12px -10px #000; }
.pvWrap #preview { justify-self: center; }
.pvWrap .note { margin: 0; }
.tryBar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: #1d1828; border: 1px solid #ffe14a66; box-shadow: 0 4px 14px #0008; }
.tryBar span { flex: 1; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tryBar #tryBuy:not(:disabled) { background: #ffe14a; color: #0b0912; border-color: #ffe14a; font-weight: 800; }
.opt.trying, .hc.trying { box-shadow: 0 0 0 2px var(--fan); }
.donateDlg form { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 6px 4px; }
.donateDlg h2 { margin: 0; font-size: 18px; }
.donateDlg img { border-radius: 12px; background: #fff; }
.setrow.donate .cup { font-size: 16px; }
.setrow.cp { background: #4fa3ff12; border-color: #4fa3ff55; margin-top: 6px; }
.cpNote { margin: 4px 12px 2px; font-size: 11px; line-height: 1.5; word-break: keep-all; }
.acct { display: grid; gap: 6px; margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: #ffffff08; }
.acct b { font-size: 13px; }
.acct .note { margin: 0; line-height: 1.5; }
.acctRow { display: flex; gap: 6px; align-items: center; }
.acctRow code { flex: 1; font: 700 14px/1 ui-monospace, Consolas, monospace; letter-spacing: 1px; color: #ffe14a; }
.acctRow input { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: #0b0912; color: var(--ink); font: 600 13px ui-monospace, Consolas, monospace; text-transform: uppercase; }
/* 바닥 조명 위 '여기로!' 글자 */
.wlabel { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; pointer-events: none; font-weight: 800; font-size: 16px; color: var(--c); text-shadow: 0 0 10px var(--c), 0 2px 3px #000; animation: wbob 0.8s ease-in-out infinite alternate; }
.wlabel::after { content: "▼"; display: block; text-align: center; font-size: 12px; }
.wlabel.spotTag { pointer-events: auto; cursor: pointer; }
body.inTunnel .wlabel, body.inTunnel .tag:not(.me) { visibility: hidden; } /* 입장 터널 안: 공연장 표지·이름표가 천장 너머로 비치지 않게 */
@keyframes wbob { to { margin-top: -6px; } }
.heat .hbar { display: inline-block; width: 54px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.heat .hbar i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, #ff9a2e, #ff3b4f); transition: width .3s; }
.att { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--dim); }
.att i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.att i.on { background: var(--fan); }
.tag.me b { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--my, #fff); color: #0b0912; font-size: 11px; margin-right: 5px; }
.shout {
  position: absolute; left: 0; top: 0; font-family: var(--display); font-size: 26px; white-space: nowrap;
  color: var(--c, var(--ink));
  /* 영상·무대 위에서도 읽히게 어두운 테두리 + 색 번짐 */
  text-shadow: 0 0 3px #000, 0 0 3px #000, 0 2px 4px #000, 0 0 16px var(--c, var(--live));
  animation: rise 3.2s ease-out forwards; font-weight: 900; }
/* 콜 글씨는 3초 넘게 머물다가 천천히 사라진다 */
@keyframes rise {
  0% { transform: translate(-50%, -60%) scale(.7); opacity: 0; }
  8% { transform: translate(-50%, -100%) scale(1.1); opacity: 1; }
  15% { transform: translate(-50%, -100%) scale(1); }
  75% { transform: translate(-50%, -200%); opacity: 1; }
  100% { transform: translate(-50%, -260%); opacity: 0; }
}
.hud {
  position: absolute; z-index: 3; left: 0; right: 0; display: flex; align-items: center; gap: 8px; pointer-events: none;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.hud > * { pointer-events: auto; }
.top { top: 0; padding-top: calc(14px + env(safe-area-inset-top, 0px)); flex-wrap: wrap; }
.bottom { bottom: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); justify-content: center; }
.pill {
  display: flex; align-items: center; gap: 4px; background: var(--glass); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.spacer { flex: 1; }
button { font: inherit; color: var(--ink); background: none; border: 0; cursor: pointer; }
.ib { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.ib:hover, .ib[aria-pressed="true"] { background: var(--line); }
.ib svg { width: 18px; height: 18px; flex-shrink: 0; }
.roomBtn { padding: 8px 14px; gap: 10px; }
.roomBtn .brand { font-family: var(--display); font-size: 15px; font-weight: 900; }
.roomBtn .rn { color: var(--dim); font-size: 13px; }
.now { font-size: 12px; color: var(--dim); padding: 6px 12px 8px; max-width: min(360px, 60vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; border-radius: 16px; }
.now .bar { display: block; height: 3px; margin: 5px 0 4px; border-radius: 3px; background: linear-gradient(90deg, var(--my, var(--live)) var(--p, 0%), var(--line) var(--p, 0%)); }
.now small { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.now .meet { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: #3ee07a; }
/* 처음 온 사람 안내 */
.guide { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; background: #0b0912b3; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.guide-card { box-sizing: border-box; width: min(420px, 100%); max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overflow-y: auto; display: grid; gap: 14px; padding: 22px; border-radius: 20px; background: #17141f; border: 1px solid var(--line); }
.guide-card .more { margin: 0; font-size: 12px; color: var(--dim); }
.helpMore { display: grid; gap: 6px; }
#entryInfo { white-space: pre-line; }
#rotateHint { position: fixed; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); z-index: 90; max-width: 360px; margin: 0 auto; padding: 18px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12, 10, 18, .92); color: var(--ink); text-align: center; font-weight: 700; line-height: 1.5; }
#rotateHint .ic { display: block; font-size: 34px; margin-bottom: 6px; animation: rotIc 1.8s ease-in-out infinite; }
#rotateHint .mini { margin-top: 10px; }
#rotateHint .rotSub { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--dim); }
#rotateHint .rotGo { display: block; width: 100%; margin-top: 14px; min-height: 46px; border-radius: 999px; background: var(--fan); color: var(--fanInk); font: 800 16px var(--display); }
#rotateHint .rotGo[hidden] { display: none; }
/* 화면을 가리지 않게 (2026-11-07 사용자: 상자 크기): 맨 위 얇은 띠 하나 */
#rotateHint { top: calc(66px + env(safe-area-inset-top, 0px)); left: 8px; right: 8px; /* 위 줄(방·곡·메뉴) 아래: 메뉴 버튼을 덮지 않게 */ transform: none; max-width: 420px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; text-align: left; font-size: 13px; line-height: 1.35; border-radius: 12px; }
#rotateHint[hidden] { display: none; }
#rotateHint { pointer-events: none; } #rotateHint button { pointer-events: auto; }
#rotateHint br, #rotateHint .rotSub { display: none; }
#rotateHint .ic { display: inline-block; font-size: 18px; margin: 0; }
#rotateHint .rotGo { display: inline-flex; align-items: center; width: auto; margin: 0 0 0 auto; min-height: 40px; padding: 0 14px; font-size: 13px; }
#rotateHint .mini { margin: 0; min-height: 40px; padding: 0 10px; font-size: 12px; }
@keyframes rotIc { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
@media (prefers-reduced-motion: reduce) { #rotateHint .ic { animation: none; } }
#entryTitle { word-break: keep-all; text-wrap: balance; } /* '같/이 보기'처럼 낱말 중간에서 끊기지 않게 */
.helpMore details { border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.helpMore summary { cursor: pointer; padding: 10px 0; font-weight: 800; font-size: 14px; }
.helpMore ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; }
.guide-card h2 { font-family: var(--display); font-size: 20px; font-weight: 900; margin: 0; }
.guide-card ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.guide-card ol li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.5; }
/* 도움말 색 구분: 노랑 조작 · 분홍 참여 · 초록 보상 · 하늘 친구 */
.guide-card em { font-style: normal; font-weight: 800; }
.guide-card .gk { color: #ffe14a; } .guide-card .gm { color: #ff6fb5; } .guide-card .gr { color: #3ee07a; } .guide-card .gf { color: #4fd8ff; }
.guide-card .legend { margin: 0; font-size: 12px; color: var(--dim); text-align: center; }
.guide-card ol li b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--line); font-size: 13px; }
.now b { color: var(--ink); font-weight: 500; }
.count { font-variant-numeric: tabular-nums; }
#vol, #sfxVol { accent-color: var(--fan); }
#vol { width: 84px; margin: 0 8px 0 0; cursor: pointer; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--my, #b160ff); box-shadow: 0 0 10px var(--my, #b160ff); }
/* 내 프로필 아이콘: 내 캐릭터 얼굴 (2026-11-03 사용자 요청: 프로필처럼) */
.avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #2a2338; border: 2px solid var(--my, #b160ff); box-shadow: 0 0 8px var(--my, #b160ff); flex: none; }
#charBtnName { max-width: 7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act { flex-direction: column; gap: 3px; padding: 8px 14px; font-size: 12px; border-radius: 20px; }
.act svg { width: 22px; height: 22px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hint {
  position: absolute; z-index: 3; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); margin: 0; pointer-events: none;
  font-size: 12px; white-space: nowrap; transition: opacity .6s;
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
/* 첫 90초 체험: 아래 안내 문구 자리에 작은 카드 (화면을 가리지 않게 한 줄) */
.tour { position: absolute; z-index: 5; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 12px; border-radius: 999px; background: #0b0912e6; border: 1px solid var(--line); box-shadow: 0 8px 18px -10px #000; font-size: 13px; max-width: calc(100% - 24px); white-space: nowrap; }
.tour b { color: #ffe14a; font-size: 12px; }
.tour span { overflow: hidden; text-overflow: ellipsis; }
.tour button { font-size: 11px; color: var(--dim); padding: 4px 8px; border-radius: 999px; background: #ffffff14; flex: none; }
@media (pointer: coarse) { .tour { bottom: calc(196px + env(safe-area-inset-bottom, 0px)); font-size: 12px; } }
body:has(.tour:not([hidden])) .hint { display: none; }
/* 폰 전용 작은 조이스틱: 왼쪽 아래, 응원 버튼 줄 바로 위 */
.joy {
  display: none; position: absolute; z-index: 4; left: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  width: 78px; height: 78px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); touch-action: none; opacity: .75;
}
.joy .knob { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px; border-radius: 50%; background: #fff6; border: 1px solid #fff9; }
#jumpBtn { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } /* 걷는 중 두 번째 손가락으로 눌러도 확대·선택 없이 바로 뛴다 */
@media (pointer: coarse) { .joy { display: block; } .hint { bottom: calc(196px + env(safe-area-inset-bottom, 0px)); } } /* 안내 문구가 스틱을 가리지 않게 */
@media (pointer: coarse) { body:has(#cue:not([hidden])) .hint, body:has(#tapBtn:not([hidden])) .hint, body:has(#spotBtn:not([hidden])) .hint { visibility: hidden; } } /* 오른쪽 상자·버튼과 겹치지 않게 */
body:has(.pop:not([hidden]):not(.grid):not(.emos):not(#colorPop):not(#wavePop)) .joy { display: none; } /* 큰 창(설정·퀘스트·신청곡)이 열리면 스틱이 창을 가리지 않게. 콜·리액션·흔들기·최애색 같은 오른쪽 작은 메뉴는 열어 둔 채로도 걷는다 (2026-11-07 사용자) */
/* 폰 전용 3인칭 시점 고정: 왼쪽 가운데 (오른쪽 미션 버튼과 마주 보게) */
.camLock {
  display: none; position: absolute; z-index: 4; left: max(10px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); opacity: .8; touch-action: manipulation;
}
.camLock b { display: block; font-size: 18px; line-height: 1; }
.camLock small { display: block; font-size: 11px; font-weight: 700; color: var(--dim); margin-top: 2px; white-space: nowrap; }
.camLock[aria-pressed="true"] { opacity: 1; border-color: var(--my, var(--ink)); box-shadow: 0 0 14px -2px var(--my, var(--ink)); }
.camLock[aria-pressed="true"] small { color: var(--ink); }
@media (pointer: coarse) { .camLock { display: block; } }
/* 시점 단계 버튼: 컴퓨터는 왼쪽 아래, 폰은 시점 고정 버튼 아래 */
.zoomBtn { position: absolute; z-index: 4; left: max(20px, env(safe-area-inset-left, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); touch-action: manipulation; }
.zoomBtn b { display: block; font-size: 20px; line-height: 1; }
/* 무대 바로가기 (2026-11-07 사용자): 컴퓨터는 시점 버튼 위, 폰은 왼쪽 세로 줄 맨 위 */
.stageGo { position: absolute; z-index: 4; left: max(20px, env(safe-area-inset-left, 0px)); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); color: var(--ink); touch-action: manipulation; }
.stageGo b { display: block; font-size: 19px; line-height: 1; } .stageGo small { display: block; font-size: 11px; font-weight: 700; color: var(--dim); margin-top: 2px; white-space: nowrap; }
.stageGo:active { transform: scale(.94); }
body.photoMode .stageGo, body.menuOpen .stageGo { visibility: hidden; }
.zoomBtn small { display: block; font-size: 11px; font-weight: 700; color: var(--dim); margin-top: 2px; white-space: nowrap; }
@media (pointer: coarse) { .zoomBtn { left: max(10px, env(safe-area-inset-left, 0px)); top: calc(50% + 34px); bottom: auto; width: 52px; height: 52px; } }
body.photoMode .zoomBtn { display: none; }
.pop {
  position: absolute; z-index: 8; /* 직접 연 메뉴는 참여 포인트 상자(6)보다 위 */ bottom: calc(96px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px; max-width: calc(100% - 32px);
  background: var(--glass); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.call { font-family: var(--display); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 900; }
.call:hover, .call[aria-pressed="true"] { background: var(--line); }
.call.wide { font-family: var(--body); font-weight: 700; border-color: var(--dim); }
/* 콜·흔들기 메뉴: 같은 크기 칸으로 줄 맞춤. 넓은 버튼은 한 줄 전체 */
.pop.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: min(460px, calc(100% - 32px)); padding: 12px; }
.pop.grid .call {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 6px;
  white-space: nowrap; overflow: hidden; border-radius: 16px; font-size: clamp(12px, 3.8vw, 15px);
}
.pop.grid .call small { font-family: var(--body); font-size: 11px; color: var(--dim); }
.pop.grid .wide { grid-column: 1 / -1; }
#wavePop { grid-template-columns: repeat(5, minmax(0, 1fr)); } /* 흔들기 5개 한 줄 (2026-11-03). 폰에서는 다른 메뉴처럼 오른쪽 미션 줄을 비운 너비 */
#watchBtn[aria-pressed="true"] { color: var(--fan); background: #b9a3ff26; }
#waveStop { grid-column: 1 / -1; min-height: 40px; border-radius: 12px; font-size: 12px; font-weight: 700; color: var(--ink); background: #0b091259; border: 1px solid #ffffff26; }
#waveStop:disabled { opacity: .4; }
.opt[data-slot]::before { content: attr(data-slot); display: inline-block; margin-right: 4px; padding: 0 4px; border-radius: 6px; font-size: 10px; font-weight: 700; line-height: 1.5; vertical-align: 1px; color: var(--dim); background: #ffffff14; } /* 소품 칸 이름: 머리·얼굴·등·손·옷 (칸마다 하나씩 겹쳐 쓴다) */
#autoPen { grid-column: 1 / -1; min-height: 40px; border-radius: 12px; font-size: 12px; font-weight: 700; color: var(--ink); background: #0b091259; border: 1px solid #ffffff26; }
#autoPen[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--my, #ff5fa2); } /* 펜라이트 '화면 따라' 켬 */
#wavePop .call { padding-left: 2px; padding-right: 2px; white-space: normal; word-break: keep-all; line-height: 1.2; } /* '번갈아 두 손'은 좁으면 낱말 단위로 두 줄 */
@media (max-width: 520px) { .pop.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 리액션: 아이콘 한 줄 */
/* 친구 캐릭터를 눌렀을 때 뜨는 작은 메뉴: 누른 자리 옆에 */
.peerMenu {
  position: absolute; z-index: 6; display: grid; gap: 6px; padding: 10px; width: 170px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.peerMenu b { font-size: 12px; color: var(--dim); text-align: center; padding: 2px 26px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; grid-column: 1 / -1; }
.peerMenu > .dlgX { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; font-size: 12px; }
.peerMenu .call.dim { order: 99; } /* 친구 끊기·신고는 맨 아래 */
#peerMenu { width: 196px; grid-template-columns: repeat(3, minmax(0, 1fr)); } /* 컴퓨터: 3칸 타일 */
.peerMenu .call { font-family: var(--body); font-weight: 700; font-size: 12px; padding: 5px 8px; text-align: left; }
.peerMenu { width: 142px; gap: 3px; padding: 6px; } /* 2026-11-03 사용자 요청: 상호작용 메뉴가 커서 줄인다 */
.peerMenu .call.dim { color: var(--dim); font-weight: 600; font-size: 12px; }
.pop.emos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; width: min(380px, calc(100% - 32px)); padding: 10px; }
.emo { font-size: 26px; line-height: 1; padding: 10px 0; border-radius: 16px; }
.emo:hover, .emo:active { background: var(--line); }
.fansaRow { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; border-top: 1px solid #ffffff1f; padding-top: 6px; }
.fansaRow small { grid-column: 1 / -1; font-size: 11px; opacity: .75; }
.fansaBtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 11px; padding: 4px 2px; border-radius: 12px; min-height: 44px; white-space: nowrap; } /* 아이콘 위 · 짧은 글자 아래, 손가락 크기 */
.fansaBtn b { font-size: 18px; font-weight: normal; line-height: 1.1; }
.fansaBtn[aria-pressed="true"] { background: #ff7ab855; box-shadow: inset 0 0 0 1.5px #ffb3d6; }
#emoteBtn.fansaOn { box-shadow: 0 0 0 3px #ff7ab8cc, 0 0 14px #ff7ab866; } /* 우치와를 든 동안 */
#topTools #rhyBtn kbd { display: none; } /* 폰 ≡ 메뉴 안: 키보드 글자는 빼고 이름만 */
@media (max-width: 520px), (pointer: coarse) and (orientation: landscape) and (max-height: 520px) { .fansaRow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fansaBtn:last-child { grid-column: 1 / -1; } } /* 좁은 리액션 창(폰): 2열, 다섯째는 한 줄 전체 */
.fansaCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin-bottom: 10px; }
.fansaCards .fc { display: flex; align-items: center; gap: 2px; padding: 4px 6px; border-radius: 10px; background: #ffffff0d; }
.fansaCards .fc small { flex: 1; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fansaCards i { font-style: normal; font-size: 14px; filter: grayscale(1); opacity: .28; }
.fansaCards i.on { filter: none; opacity: 1; }
.shout.emo { font-size: 32px; text-shadow: none; padding: 0; animation-duration: 1.8s; }
.shout.grade { font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: 1px; }
.shout.big { font-size: 18px; font-weight: 800; }
/* 미션: 진행 중일 때만 위쪽 가운데에 뜬다 */
.mission {
  position: absolute; z-index: 4; left: 50%; top: calc(64px + env(safe-area-inset-top, 0px)); transform: translateX(-50%);
  display: grid; justify-items: center; gap: 2px; padding: 10px 22px; border-radius: 16px; text-align: center;
  background: var(--glass); border: 1px solid var(--live); box-shadow: 0 0 24px -6px var(--live); max-width: calc(100% - 32px);
}
.mission b { font-family: var(--display); font-size: 20px; font-weight: 900; }
/* 참여 포인트: 화면 가운데 크게, 해야 할 버튼도 같이 빛난다 */
/* 참여 포인트: 공연 화면을 가리지 않게 아래 버튼 줄 바로 위 */
/* 참여 포인트 상자: 오른쪽 아래 (가운데 아래 흔들기·리액션·콜 메뉴를 가리지 않게, 2026-11-02 사용자 요청) */
.cue {
  position: absolute; z-index: 6; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(158px + env(safe-area-inset-bottom, 0px)); max-width: 300px; pointer-events: none;
  padding: 8px 18px 10px; border-radius: 20px; background: #0b0912cc; border: 1px solid var(--c, var(--line));
  box-shadow: 0 0 28px -8px var(--c, var(--live));
  display: grid; justify-items: center; gap: 4px; text-align: center; white-space: normal;
}
.cue small { font-size: 13px; letter-spacing: 2px; color: var(--ink); background: var(--glass); border: 1px solid var(--line); padding: 3px 12px; border-radius: 999px; }
.cue b { font-family: var(--display); font-weight: 900; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; color: var(--c, var(--ink)); text-shadow: 0 0 3px #000, 0 2px 4px #000, 0 0 18px var(--c, var(--live)); }
.cue span { font-size: 14px; font-weight: 700; text-shadow: 0 1px 6px #000; font-variant-numeric: tabular-nums; }
.cue.go b { animation: cuego .5s ease-out; }
@keyframes cuego { from { transform: scale(1.4); } to { transform: scale(1); } }
.cueAct {
  pointer-events: auto; margin-top: 6px; min-width: 150px; padding: 12px 22px; border-radius: 999px; touch-action: manipulation;
  font-family: var(--display); font-size: 20px; background: var(--c, var(--live)); color: #0b0912; box-shadow: 0 0 24px var(--c, var(--live)); font-weight: 900; }
.cueAct:active { transform: scale(.95); }
.cueSkip { pointer-events: auto; font-size: 11px; color: var(--dim); padding: 8px 12px; margin-top: 2px; text-decoration: underline; text-underline-offset: 3px; }
.cueGlow { box-shadow: 0 0 0 2px var(--c, var(--live)), 0 0 18px var(--c, var(--live)); background: var(--line); }
.mission span { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.mission.done { border-color: var(--ink); box-shadow: 0 0 24px -6px var(--ink); }
/* 렉 감지 안내: 위쪽 가운데, 눌러야만 가볍게 보기로 바뀐다 */
.liteAsk { position: absolute; z-index: 9; left: 50%; top: calc(76px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); display: flex; gap: 4px; align-items: center;
  padding: 4px; border-radius: 999px; background: #0b0912e6; border: 1px solid var(--line); box-shadow: 0 8px 18px -10px #000; max-width: calc(100% - 24px); }
.liteAsk #liteYes { padding: 8px 14px; border-radius: 999px; background: #ffe14a; color: #0b0912; font-weight: 700; font-size: 13px; white-space: nowrap; }
.liteAsk #liteNo { padding: 6px 10px; color: var(--dim); }
/* 맵 상호작용 버튼: 게시판·부스·뽑기 기계 가까이 가면 왼쪽 아래에 뜬다 (오른쪽은 미션 버튼 줄) */
.spotBtn {
  position: absolute; z-index: 6; left: max(20px, env(safe-area-inset-left, 0px)); bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  padding: 12px 20px; border-radius: 999px; background: #ffe14a; color: #0b0912; font-weight: 800; font-size: 15px;
  box-shadow: 0 0 22px #ffe14a88; border: 2px solid #fff; animation: tapPulse .8s ease-in-out infinite alternate;
}
html.calm .spotBtn { animation: none; }
.spotBtn kbd { font: inherit; font-size: 11px; opacity: .7; margin-left: 6px; }
@media (pointer: coarse) { .spotBtn { left: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(196px + env(safe-area-inset-bottom, 0px)); padding: 9px 14px; font-size: 13px; } .spotBtn kbd { display: none; } }
/* 캡슐 뽑기 창: 확률과 나올 수 있는 아이템을 다 보여 준다 */
#gachaDlg form { display: grid; gap: 10px; }
.glist { display: grid; gap: 8px; max-height: 40vh; overflow-y: auto; }
.glist h4 { margin: 4px 0 2px; font-size: 12px; color: var(--dim); font-weight: 700; }
.glist div { display: flex; flex-wrap: wrap; gap: 4px; }
.glist span { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: #ffffff10; }
.glist span.got { color: var(--dim); background: #ffffff06; }
.gres { margin: 0; padding: 10px; border-radius: 12px; background: #ffe14a22; color: #ffe14a; font-weight: 800; text-align: center; }
.primary.ghost { background: none; border: 1px solid var(--line); color: var(--ink); }
/* 포토 타임: 조작부를 숨기고 아래에 포즈·각도·찰칵 */
body.photoMode .hud, body.photoMode .joy, body.photoMode .camLock, body.photoMode .hint, body.photoMode .cue, body.photoMode .tapBtn,
body.photoMode .mission, body.photoMode .reply, body.photoMode .spotBtn, body.photoMode .peerMenu, body.photoMode .liteAsk { display: none !important; }
.photoBar { position: absolute; z-index: 11; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: min(460px, calc(100% - 32px));
  display: grid; gap: 8px; padding: 12px; border-radius: 20px; background: #14111cf0; border: 1px solid var(--line); }
.pbHead { display: flex; align-items: center; justify-content: space-between; }
.pbHead b { font-size: 15px; }
.pbX { width: 32px; height: 32px; border-radius: 50%; background: #ffffff14; font-size: 14px; }
.pbRow { display: flex; flex-wrap: wrap; gap: 6px; }
.pbRow button { flex: 1 1 0; min-width: 0; padding: 8px 4px; border-radius: 12px; background: #ffffff10; font-size: 12px; font-weight: 700; display: grid; justify-items: center; gap: 2px; }
.pbRow button i { font-style: normal; font-size: 22px; line-height: 1; }
.pbRow button[aria-pressed="true"] { background: #b9a3ff2e; box-shadow: inset 0 0 0 2px var(--fan); }
.pbAngle button { font-size: 13px; padding: 8px 4px; }
.pbGo .primary { flex: 2 1 0; font-size: 15px; background: var(--ink); color: var(--hall); display: block; }
.pbGo .pbCard { flex: 1.2 1 0; font-size: 12px; }
.shotCount { position: absolute; z-index: 12; inset: 0; display: grid; place-items: center; pointer-events: none; font-family: var(--display); font-size: 120px; color: #fff; text-shadow: 0 0 30px #ff6fb5, 0 4px 12px #000; font-weight: 900; }
.shotFlash { position: fixed; inset: 0; z-index: 20; background: #fff; pointer-events: none; animation: flash .45s ease-out forwards; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
html.calm .shotFlash { display: none; }
#shotDlg form { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); } /* 1080px 사진이 칸을 넓히지 않게 */
.shotImg { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 12px; background: #000; }
.shotBtns { display: flex; gap: 8px; }
.shotBtns button { flex: 1; }
/* 친구 창 */
#friendDlg form { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.frSum { font-size: 12px; color: var(--dim); }
.frBody { display: grid; gap: 12px; max-height: min(56vh, 520px); overflow-y: auto; }
.frBody h4 { margin: 0 0 6px; font-size: 13px; color: var(--dim); }
.frItem { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #ffffff0a; }
.frItem + .frItem { margin-top: 4px; }
.frItem .nm { flex: 1; min-width: 0; }
.frItem .nm b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frItem .nm small { display: block; font-size: 11px; color: var(--dim); }
.frItem .mini { min-height: 32px; }
.frItem .mini.go { background: #ff6fb5; color: #0b0912; border-color: #ff6fb5; font-weight: 800; }
.frEmpty { margin: 0; font-size: 13px; color: var(--dim); }
/* 최애곡 투표 창 */
#voteDlg form { display: grid; gap: 10px; }
.vtop { display: grid; gap: 6px; }
.vtop .vt { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.vtop .vt b { color: #ffe14a; text-align: center; }
.vtop .vt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtop .vt .bar { grid-column: 2 / -1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.vtop .vt .bar i { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, #ff6fb5, #ffe14a); }
.vlist { display: grid; gap: 4px; max-height: 42vh; overflow-y: auto; padding-right: 4px; }
.vlist .vr { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 12px; background: #ffffff08; }
.vlist .vr div { display: grid; min-width: 0; }
.vlist .vr b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vlist .vr small { color: var(--dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vlist .vr.mine { background: #ff6fb522; box-shadow: inset 0 0 0 1px #ff6fb5; }
.qmedal { letter-spacing: 1px; font-size: 14px; }
.claimAll { width: 100%; margin: 2px 0 4px; }
.frRight { display: flex; gap: 6px; align-items: center; }
.qmedal i { font-style: normal; opacity: .25; }
.disclaim { margin-top: 10px; font-size: 11px; opacity: .7; }
.qmedal i.on { opacity: 1; }
/* 연타 챌린지 게이지 */
.gauge { width: min(260px, 70vw); height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.gauge i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, #ff6fb5, #ffe14a); transition: width .15s; }
/* 미션 버튼: 오른쪽 아래, 받아치기 버튼 바로 위 (참여 포인트 상자와 같은 자리지만 둘은 같이 뜨지 않는다)
   진한 분홍으로 꽉 채우고 두근거려서 '눌러야 하는 버튼'으로 바로 보이게 (2026-11-02 사용자 요청) */
.tapBtn {
  position: absolute; z-index: 6; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(158px + env(safe-area-inset-bottom, 0px)); transform: scale(var(--s, 1));
  width: 84px; height: 84px; border-radius: 50%; border: 3px solid #fff;
  background: radial-gradient(circle at 50% 35%, #ffa6d3, #ff4f9f 70%); color: #0b0912;
  box-shadow: 0 0 calc(30px * var(--s, 1)) #ff6fb5, 0 0 0 6px #ff6fb533;
  font-family: var(--display); font-size: 20px; touch-action: manipulation; animation: tapPulse .7s ease-in-out infinite alternate; font-weight: 900; }
@media (min-width: 521px) and (pointer: fine) {
  .cue, .tapBtn, .reply { right: auto; left: calc(var(--navR, calc(100% - 360px)) + 16px); }
  .cue { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: min(300px, calc(100% - var(--navR, 0px) - 32px)); }
  .tapBtn { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .reply { bottom: calc(220px + env(safe-area-inset-bottom, 0px)); }
}
@keyframes tapPulse { to { scale: 1.08; box-shadow: 0 0 40px #ff6fb5, 0 0 0 12px #ff6fb522; } }
html.calm .tapBtn { animation: none; }
.tapBtn[data-mode="beat"] { animation: none; } /* 박자는 버튼 크기가 박자에 맞춰 커져서 따로 두근거리지 않는다 */
.tapBtn span { display: block; line-height: 1.1; word-break: keep-all; padding: 0 4px; } /* '흔들기 켜기'가 '흔들기 켜/기'로 끊기지 않게 */
.tapBtn small { display: block; font-family: var(--body); font-size: 11px; font-weight: 800; color: #0b0912b0; margin-top: 4px; white-space: nowrap; }
/* 박자 링: 버튼 테두리에 딱 닿는 순간이 박자. 리듬 게임의 '다가오는 원' */
.tapBtn .ring { position: absolute; inset: -3px; border-radius: 50%; border: 3px solid #fff; pointer-events: none; transform: scale(var(--a, 1)); opacity: calc(2 - var(--a, 1)); }
.tapBtn[data-mode="mash"] .ring, .tapBtn[data-mode="cheer"] .ring { display: none; }
.tapBtn[data-mode="mash"], .tapBtn[data-mode="cheer"] { width: 92px; height: 92px; font-size: 17px; }
.tapBtn[data-mode="lock"] { background: radial-gradient(circle at 50% 35%, #5a5566, #2b2836 70%); color: #d8d0ea; box-shadow: none; animation: none; border-color: #6a6478; }
.tapBtn[data-mode="wait"] { background: radial-gradient(circle at 50% 35%, #4a4458, #2b2836 70%); color: #a59fb3; box-shadow: none; animation: none; border-color: #6a6478; }
.tapBtn[data-mode="color"] { background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--want, #fff) 70%, white), var(--want, #fff) 70%); box-shadow: 0 0 30px var(--want, #fff); }
#colorBtn.want .dot { box-shadow: 0 0 0 3px var(--want), 0 0 18px var(--want); animation: tapPulse .6s ease-in-out infinite alternate; }
/* 오늘의 퀘스트 */
.pop.quests { display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); padding: 12px; max-height: 60vh; overflow-y: auto; }
.pop.quests h3 { margin: 0 0 2px; font-size: 13px; color: var(--dim); font-weight: 600; }
.quest { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #ffffff08; }
.quest b { font-size: 14px; }
.quest small { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.quest .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.quest .bar i { display: block; height: 100%; width: var(--p, 0%); background: #ffe14a; }
.quest.done { opacity: .55; }
.quest .mini:not(:disabled) { background: #ffe14a; color: #0b0912; border-color: #ffe14a; font-weight: 800; }
/* 폰은 소리 있는 자동재생이 막혀서, 영상은 음소거로 먼저 틀고 이 버튼으로 소리를 켠다 */
body.tapVideo #scene { pointer-events: none; }
body.tapVideo #css3d { pointer-events: auto; }
body.tapVideo #css3d iframe { pointer-events: auto; }
.tapVideoHint { position: absolute; z-index: 13; left: 50%; transform: translateX(-50%); top: calc(64px + env(safe-area-inset-top, 0px)); padding: 10px 16px; border-radius: 999px; background: var(--fan); color: var(--fanInk); font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 10px 24px -10px #000; animation: replyIn .35s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.soundHelp { position: absolute; z-index: 13; left: 50%; transform: translateX(-50%); top: calc(64px + env(safe-area-inset-top, 0px)); width: min(340px, calc(100% - 24px)); box-sizing: border-box;
  display: grid; gap: 6px; padding: 10px 12px; border-radius: 16px; background: #1d1830f5; border: 1px solid #b9a3ff80; box-shadow: 0 10px 26px -12px #000; text-align: center; word-break: keep-all; }
.iabGuide { position: fixed; z-index: 40; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; width: min(300px, calc(100% - 20px)); box-sizing: border-box; display: grid; gap: 8px; padding: 46px 16px 14px; border-radius: 16px;
  background: #0b0912f2; border: 1.5px solid var(--fan); color: var(--ink); box-shadow: 0 12px 40px #000a; text-align: left; }
.iabGuide b { font-size: 16px; } .iabGuide em { font-style: normal; display: inline-block; min-width: 28px; text-align: center; padding: 0 6px; border-radius: 8px; background: #ffffff1f; }
.iabGuide small { user-select: text; -webkit-user-select: text; word-break: break-all; }
.iabGuide ol { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.55; color: #e4dcf3; } .iabGuide small { font-size: 12px; color: #9fe8b4; }
.iabGuide .mini { justify-self: end; min-height: 34px; padding: 0 16px; border-radius: 999px; background: #ffffff14; border: 1px solid #ffffff26; color: var(--ink); font-size: 12px; font-weight: 700; }
.iabArrow { position: absolute; top: 4px; right: 12px; font-style: normal; font-size: 34px; color: var(--fan); animation: iabBob 1s ease-in-out infinite; }
@keyframes iabBob { 50% { transform: translate(4px, -6px); } }
@media (prefers-reduced-motion: reduce) { .iabArrow { animation: none; } }
.rbHint { font-style: normal; font-size: 11px; color: var(--dim); margin-left: 4px; padding: 1px 6px; border-radius: 999px; border: 1px solid #ffffff26; }
@media (max-width: 520px) { .rbHint { display: none; } }
.rbShow { font-style: normal; font-size: 11px; font-weight: 700; color: #ffe14a; margin-left: 6px; white-space: nowrap; } /* 이 홀 공연 시각 (2026-11-05 사용자) */
.soundHelp b { font-size: 13px; } .soundHelp span { font-size: 12px; color: #cfc6e2; line-height: 1.4; }
.soundHelp div { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.soundHelp .mini { min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 800; text-decoration: none; background: #ffffff14; border: 1px solid #ffffff26; color: var(--ink); }
.soundHelp #shOpen, .soundHelp #shCopy:first-child { background: var(--fan); color: var(--fanInk); border: 0; }
.phoneTip { margin: 2px 0; font-size: 11px; line-height: 1.5; color: var(--dim); text-align: center; word-break: keep-all; }
.phoneTip .mini { margin-left: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--fan); border: 1px solid #b9a3ff66; background: none; text-decoration: none; }
.inApp { display: grid; gap: 6px; justify-items: center; margin: 4px 0 2px; padding: 8px 10px; border-radius: 12px; background: #ffffff0f; border: 1px solid #ffffff1f; font-size: 12px; color: var(--ink); text-align: center; word-break: keep-all; }
.entry .inApp small { font-size: 11px; font-weight: 400; color: var(--dim); background: none; border: 0; padding: 0; box-shadow: none; }
.entry .inApp button { padding: 8px 18px; border-radius: 999px; background: var(--fan); color: var(--fanInk); font-size: 13px; font-weight: 800; text-decoration: none; border: 0; }
.soundTap {
  position: absolute; z-index: 5; left: 50%; bottom: calc(168px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  padding: 10px 18px; border-radius: 999px; background: var(--live); color: #0b0912; font-weight: 800; font-size: 14px; box-shadow: 0 0 20px var(--live);
}
.combo {
  position: absolute; z-index: 3; left: 50%; top: calc(24% + env(safe-area-inset-top, 0px)); pointer-events: none; white-space: nowrap;
  font-family: var(--display); color: var(--c, var(--ink)); text-shadow: 0 0 18px var(--c, var(--live)), 0 2px 0 #0008;
  transform: translate(-50%, -50%); font-weight: 900; }
.combo.go { animation: combo 2.4s ease-out forwards; }
@keyframes combo {
  0% { transform: translate(-50%, -50%) scale(.6); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
  30% { transform: translate(-50%, -50%) scale(1); }
  80% { transform: translate(-50%, -60%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -70%) scale(1); opacity: 0; }
}
.swatch { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 2px solid transparent; box-shadow: 0 0 10px -2px var(--c); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.swatchName { display: grid; justify-items: center; gap: 3px; padding: 4px 2px; border-radius: 12px; font-size: 11px; font-weight: 700; color: var(--dim); }
.swatchName .swatch { display: block; }
.swatchName[aria-pressed="true"] { background: var(--line); color: var(--ink); }
.swatchName[aria-pressed="true"] .swatch { border-color: var(--ink); }
.songs { display: grid; width: min(380px, calc(100% - 32px)); overflow-y: auto; gap: 2px; padding: 8px; }
.pop.songs:not(.side) { max-height: min(360px, 42vh); } /* 컴퓨터 신청곡 창이 화면 끝까지 길어서 짧게 (2026-11-04 사용자 요청). 폰은 아래 규칙 */
.songs h3 { margin: 4px 8px 6px; font-size: 12px; font-weight: 500; color: var(--dim); }
.song { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; }
.song.on { background: var(--line); }
.song .st { flex: 1; min-width: 0; display: grid; }
.song .st b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song .st small { color: var(--dim); font-size: 11px; }
.badge { font-size: 11px; color: var(--live); white-space: nowrap; }
.rk { display: inline-block; font-style: normal; font-weight: 800; font-size: 11px; line-height: 1; padding: 2px 5px; border-radius: 6px; vertical-align: middle; color: #17141f; background: #a59fb3; } /* 곡 목록의 내 최고 랭크 */
.rkS { background: #ffe14a; } .rkA { background: #ff9ad1; } .rkB { background: #4fd8ff; }
.mini { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; white-space: nowrap; }
.mini:hover { background: var(--line); }
.mini:disabled { opacity: .35; cursor: default; background: none; }
/* ---- 모션 UI: 메뉴·알림이 살짝 튀어나오고, 버튼은 눌리는 느낌 ---- */
.ib, .call, .emo, .opt, .mini, .swatch { transition: transform .12s ease, background-color .15s ease, box-shadow .2s ease; }
.ib:active, .call:active, .emo:active, .opt:active, .mini:active, .swatch:active { transform: scale(.93); }
.pop { --tx: -50%; }
.pop:not([hidden]) { animation: popIn .2s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes popIn { from { opacity: 0; transform: translateX(var(--tx)) translateY(12px) scale(.96); } to { opacity: 1; transform: translateX(var(--tx)); } }
.peerMenu:not([hidden]) { animation: menuIn .18s ease-out; transform-origin: top left; }
@keyframes sheetIn { from { transform: translateY(24px); opacity: 0; } }
.peerMenu .pmClose { display: none; grid-column: 1 / -1; font-size: 12px; color: var(--dim); padding: 6px; }
@keyframes menuIn { from { opacity: 0; transform: scale(.9); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } }
.mission:not([hidden]) { animation: dropIn .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes dropIn { from { opacity: 0; transform: translateX(-50%) translateY(-16px) scale(.95); } }
html.calm .pop, html.calm .peerMenu, html.calm .mission, html.calm .reply { animation: none !important; }
/* 퀘스트 창: 컴퓨터에서는 오른쪽 위 (퀘스트 버튼 바로 아래) */
.pop.settings.side, .pop.quests.side { --tx: 0; left: auto; right: max(16px, env(safe-area-inset-right, 0px)); bottom: auto; transform: none; width: 380px; max-height: calc(100vh - 260px); }
.qtabs { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: #ffffff0a; }
.qtabs button { flex: 1; padding: 7px 4px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--dim); }
.qtabs button[aria-pressed="true"] { background: var(--line); color: var(--ink); }
.qtabs button .n { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 4px; border-radius: 8px; background: #ffe14a; color: #0b0912; font-size: 11px; }
.quest.ready { background: #b9a3ff14; box-shadow: inset 0 0 0 1px #b9a3ff55; }
.qempty { font-size: 13px; color: var(--dim); text-align: center; padding: 14px 8px; line-height: 1.6; }
/* 도감 (2026-11-17): 본 것은 밝게, 못 본 것은 ？ 와 힌트. 곡 랭크는 랭크 색 */
.dexH { margin: 12px 2px 6px; font-size: 13px; font-weight: 800; color: var(--ink, #f2eefa); }
.dexGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.dexItem { padding: 8px 9px; border-radius: 12px; background: #ffffff08; border: 1px dashed #ffffff22; display: grid; gap: 2px; min-height: 44px; }
.dexItem b { font-size: 13px; color: #8f87a3; } .dexItem small { font-size: 11px; color: var(--dim); line-height: 1.35; }
.dexItem.on { border-style: solid; border-color: #ffffff30; background: #ffffff10; } .dexItem.on b { color: #fff; }
.dexItem.rkS b { color: #ffe14a; } .dexItem.rkA b { color: #4fd8ff; } .dexItem.rkB b { color: #b9a3ff; } .dexItem.rkC b { color: #cfc6e2; } .dexItem.none b { color: #6f6880; }
/* 콜 받아치기·어깨동무 받기: 오른쪽 아래 (참여 포인트 상자·미션 버튼과 겹치지 않게) */
.reply {
  position: absolute; z-index: 6; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); /* 오른쪽 아래 맨 밑, 미션 버튼·참여 포인트 상자 아래 */
  padding: 12px 22px; border-radius: 999px; background: #ff6fb5; color: #0b0912; font-weight: 800; font-size: 16px;
  box-shadow: 0 0 24px #ff6fb5; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis;
}
.reply.go { animation: replyIn .4s cubic-bezier(.2, .9, .3, 1.5), replyPulse 1s ease-in-out .4s infinite alternate; }
@keyframes replyIn { from { opacity: 0; transform: scale(.6); } }
/* 동의 카드: 누가 무엇을 · 거절/수락 · 남은 시간 막대 (시간이 지나면 거절) */
.askCard { position: absolute; z-index: 7; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(220px + env(safe-area-inset-bottom, 0px)); width: 240px; box-sizing: border-box;
  display: grid; gap: 8px; padding: 10px 12px 12px; border-radius: 16px; overflow: hidden; background: #1d1830f5; border: 1px solid color-mix(in srgb, var(--fan) 60%, transparent);
  box-shadow: 0 10px 26px -12px #000; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.35; word-break: keep-all; }
.askCard.go { animation: replyIn .35s cubic-bezier(.16, 1, .3, 1); }
.askRow { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; }
.askRow button { min-height: 44px; border-radius: 999px; /* 2026-11-19: 38 → 44 (버튼 44px 규칙) */ font-size: 13px; font-weight: 800; touch-action: manipulation; }
#askNoBtn { background: #ffffff14; color: #cfc6e2; border: 1px solid #ffffff26; }
#askYesBtn { background: var(--fan); color: var(--fanInk); }
.askRow button:active { transform: scale(.95); }
.askBar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--fan); transform-origin: left; animation: askBar var(--ms, 6s) linear forwards; }
@keyframes askBar { to { transform: scaleX(0); } }
body.photoMode .askCard { display: none !important; }
@media (min-width: 521px) and (pointer: fine) { .askCard { right: auto; left: calc(var(--navR, calc(100% - 360px)) + 16px); } }
@media (max-width: 520px) { .askCard { right: 12px; bottom: calc(240px + env(safe-area-inset-bottom, 0px)); width: 196px; gap: 6px; padding: 8px 10px 10px; font-size: 12px; border-radius: 16px; }
  .askRow button { min-height: 44px; font-size: 12px; } }
@keyframes replyPulse { to { box-shadow: 0 0 40px #ff6fb5; } }
.tag i.fr { color: #ff8fc7; }
.tag i.hm { font-style: normal; font-weight: 700; font-size: 11px; color: #ffd0e6; margin-left: 5px; margin-right: 0; opacity: .9; }

/* 안내 데스크 카드 (2026-11-05): 왼쪽에 작게 (LED·내 캐릭터를 가리지 않게) */
.infoCard { position: absolute; z-index: 22; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(150px + env(safe-area-inset-bottom, 0px)); width: 260px; box-sizing: border-box; background: #17141ff0; border: 1px solid #ffffff2e; border-radius: 16px; padding: 10px 12px 12px; color: var(--ink); box-shadow: 0 10px 24px -10px #000; }
.infoHead { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.infoBtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.infoBtns button { font: inherit; font-size: 13px; padding: 8px 4px; border-radius: 12px; border: 1px solid #ffffff26; background: #ffffff10; color: var(--ink); cursor: pointer; word-break: keep-all; }
.infoBtns button.on { border-color: var(--accent, #b9a8ff); background: #b9a8ff22; }
.infoAns { margin: 8px 2px 0; font-size: 12px; line-height: 1.5; word-break: keep-all; }
.infoGo { margin-top: 8px; width: 100%; font: inherit; font-size: 13px; padding: 8px; border-radius: 12px; border: 0; background: #b9a8ff; color: #17141f; font-weight: 700; cursor: pointer; }
@media (max-width: 520px) { .infoCard { width: min(176px, 45vw); bottom: calc(196px + env(safe-area-inset-bottom, 0px)); left: 10px; padding: 8px 8px 10px; } /* 왼쪽 아래 조이스틱 위: 가운데 내 캐릭터·위쪽 LED 를 피한다 */ .infoBtns button { font-size: 12px; padding: 7px 2px; } .infoAns { font-size: 12px; } }
body.photoMode .infoCard { display: none !important; }
/* 한 줄 팁: 알림 자리, ✕ 와 '다시 보지 않기' */
.toast.tip { pointer-events: auto; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; white-space: normal; word-break: keep-all; border-radius: 16px; padding: 8px 10px 6px 14px; border-color: #b9a8ff66; text-align: left; max-width: 340px; }
.toast.tip .tipX { background: none; border: 0; color: var(--ink); opacity: .7; font-size: 14px; cursor: pointer; padding: 2px 4px; }
.toast.tip .tipOff { grid-column: 1 / -1; justify-self: start; background: none; border: 0; padding: 2px 0 0; color: var(--ink); opacity: .55; font-size: 11px; text-decoration: underline; cursor: pointer; }
.menuBtn.tipGlow { box-shadow: 0 0 0 2px #b9a8ff, 0 0 16px 4px #b9a8ff88; animation: tipGlow 1.6s ease-in-out infinite; }
@keyframes tipGlow { 50% { box-shadow: 0 0 0 2px #b9a8ff, 0 0 6px 1px #b9a8ff44; } }
html.calm .menuBtn.tipGlow { animation: none; }
.toasts { position: absolute; z-index: 20; right: max(16px, env(safe-area-inset-right, 0px)); top: calc(74px + env(safe-area-inset-top, 0px)); display: grid; gap: 6px; justify-items: end; pointer-events: none; max-width: min(360px, calc(100% - 32px)); }
.toast { background: #17141fe6; color: var(--ink); border: 1px solid #ffffff2e; padding: 8px 14px; border-radius: 999px; font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: toastIn .3s cubic-bezier(.2, .9, .3, 1.3); }
.toast.out { opacity: 0; transform: translateX(20px); transition: all .25s; }
@media (max-width: 520px) { .toasts { right: 12px; left: 12px; justify-items: center; max-width: none; } .toast { font-size: 12px; border-radius: 16px; white-space: normal; word-break: keep-all; text-align: center; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } }
.newver { position: absolute; z-index: 21; left: max(16px, env(safe-area-inset-left, 0px)); top: calc(118px + env(safe-area-inset-top, 0px)); /* 왼쪽 위 (2026-11-07 사용자: 알림이 화면 가운데에 뜨지 않게) */ padding: 10px 18px; border-radius: 999px; background: #ffe14a; color: #0b0912; font-weight: 800; font-size: 13px; box-shadow: 0 0 20px #ffe14a88; }
/* 로비 */
.lobby {
  position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; overflow-y: auto;
  background: #0b0912cc; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding-block: 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.lobby-card { width: min(480px, 100%); display: grid; gap: 16px; }
/* 링크 진입 카드: 로비 목록 대신 그 홀 하나 (홍보·초대 링크로 들어온 사람) */
.frHide { margin-top: 12px; justify-self: start; }
.chorusBtn { position: absolute; z-index: 6; left: max(20px, env(safe-area-inset-left, 0px)); bottom: calc(164px + env(safe-area-inset-bottom, 0px)); /* 왼쪽 아래 '무대 앞'·'무대' 둥근 버튼 위 */ padding: 10px 16px; border-radius: 999px;
  background: #17141fe6; color: var(--ink); font-weight: 700; font-size: 14px; border: 1px solid var(--line); box-shadow: 0 6px 18px -10px #000; }
.chorusBtn.on { background: #ffe14a; color: #0b0912; border-color: #fff; }
@media (pointer: coarse) { .chorusBtn { left: calc(max(14px, env(safe-area-inset-left, 0px)) + 92px); bottom: calc(196px + env(safe-area-inset-bottom, 0px)); padding: 8px 12px; font-size: 13px; } } /* 폰: 왼쪽 둥근 버튼 줄(무대 앞·시점 고정·무대) 오른쪽 옆 */
.bye { display: grid; gap: 6px; padding: 14px 18px; border-radius: 20px; background: #ffffff0d; border: 1px solid var(--line); }
.bye b { font-size: 16px; }
.bye span { font-size: 13px; color: #d8d0ea; }
.bye small { font-size: 12px; font-weight: 800; color: var(--dim); margin-top: 4px; }
.bye ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 13px; color: var(--ink); }
.entry { display: grid; gap: 8px; padding: 18px; border-radius: 20px; background: linear-gradient(160deg, #2a1342e6, #17141fe6); border: 1px solid var(--line); box-shadow: 0 12px 28px -14px #000; }
.entry small { justify-self: start; font-size: 12px; font-weight: 800; color: var(--fan); padding: 3px 10px; border-radius: 999px; background: #b9a3ff1f; }
.entry b { font-size: 20px; line-height: 1.35; }
.entry span { font-size: 13px; color: #d8d0ea; }
.entry .entryWhat { margin: 2px 0 4px; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 13px; color: #f4f0fa; }
.entry .primary { padding: 13px; font-size: 16px; font-weight: 800; }
.entry .mini { justify-self: center; background: none; border: 0; color: var(--dim); text-decoration: underline; }
body.entryMode #rooms, body.entryMode #lobbyH2 { display: none; }
.lobby-head { display: flex; align-items: flex-start; gap: 12px; }
.lobby h1 { font-family: var(--display); font-size: 28px; margin: 0; letter-spacing: .5px; font-weight: 900; }
.lobby h1 + p { margin: 4px 0 0; color: var(--dim); }
.lobby h2 { font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: 1px; margin: 0; }
.rooms { display: grid; gap: 8px; }
.room {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; width: 100%;
  padding: 12px 52px 12px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); position: relative; /* 오른쪽 ♡(최애 홀) 자리 */
}
.room:hover { border-color: var(--dim); }
.room .fav { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: #ffffff12; font-size: 16px; line-height: 1; }
.room .fav.on { background: #ff6fb533; }
.room.home { border-color: var(--fan); }
.room.invited { border-color: var(--fan); }
.room.invited em { color: #ffe14a; }
.room.live { border-color: var(--live); background: #ff3d6e12; }
.room.best { box-shadow: 0 0 0 1px var(--live); }
.room b em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--live); margin-left: 4px; }
.room b { font-size: 15px; font-weight: 700; }
.room .ppl { color: var(--ink); font-variant-numeric: tabular-nums; align-self: center; grid-row: span 2; display: flex; align-items: center; gap: 6px; }
.room .ppl i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); }
.room .ppl.zero i { background: var(--dim); box-shadow: none; }
.room small { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nick {
  font: inherit; color: var(--ink); background: var(--hall); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0;
}
.opt { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--hall); }
.primary { padding: 10px; border-radius: 999px; background: var(--ink); color: var(--hall); font-weight: 700; }
.close { margin-left: auto; font-size: 22px; line-height: 1; padding: 4px 10px; border-radius: 999px; }
.close:hover { background: var(--line); }
.note { font-size: 12px; color: var(--dim); margin: 0; line-height: 1.6; }
.note.err { color: var(--live); }
/* 캐릭터 */
dialog {
  background: #17141f; color: var(--ink); border: 1px solid var(--line); border-radius: 20px;
  width: min(420px, calc(100% - 32px)); padding: 20px; max-height: calc(100% - 32px); box-sizing: border-box; /* 폰에서 안쪽 여백만큼 화면 밖으로 나가지 않게 */
}
dialog::backdrop { background: #0b091280; }
dialog h2 { font-family: var(--display); font-size: 18px; margin: 0; font-weight: 900; }
dialog form { display: grid; gap: 12px; }
#preview { width: 220px; height: 220px; justify-self: center; border-radius: 20px; background: radial-gradient(circle at 50% 40%, #3a2d55, #0b0912 75%); cursor: grab; touch-action: none; }
#preview:active { cursor: grabbing; }
dialog { overflow-y: auto; }
.dlgHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dlgHead .wallet { margin-left: auto; font-weight: 700; color: #ffe14a; font-variant-numeric: tabular-nums; }
/* 창 위쪽 줄: 내려도 맨 위에 붙어 있고, 오른쪽 끝에 ✕ 닫기 (2026-11-03 사용자 요청) */
.dlgHead { position: sticky; top: -20px; z-index: 4; margin: -20px -20px 0; padding: 16px 58px 8px 20px; min-height: 32px; background: #17141f; flex-wrap: wrap; row-gap: 6px; }
/* ✕ 는 줄이 접혀도 늘 오른쪽 위 모서리 */
.dlgX { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1;
  color: var(--ink); background: var(--line); }
.meMenu { padding-top: 12px; width: 230px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.meMenu .dlgX { top: 6px; right: 6px; width: 28px; height: 28px; font-size: 13px; }
.meMenu b { color: var(--ink); padding: 0 30px 0; grid-column: 1 / -1; }
.meStats { margin: 0; font-size: 12px; line-height: 1.6; color: var(--dim); white-space: pre-line; text-align: center; grid-column: 1 / -1; }
/* 포인트 */
.ib.pts b { color: #ffe14a; font-size: 15px; text-shadow: 0 0 8px #ffe14a88; }
.ib.pts span { font-weight: 700; font-variant-numeric: tabular-nums; }
.ib.pts small { font-size: 11px; color: var(--dim); }
.ib.pts.bump { animation: bump .5s ease-out; }
@keyframes bump { 30% { transform: scale(1.25); background: #ffe14a33; } }
.shout.pts { font-family: var(--body); font-weight: 800; font-size: 22px; }
/* 내 캐릭터의 점수·동작 글자: 머리 위 대신 오른쪽 옆에서 조금만 떠오르고, 번짐도 약하게 (캐릭터·이름표를 가리지 않게, 2026-11-04) */
.shout.side { margin-left: 74px; animation: riseSide 2.2s ease-out forwards; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 2px 4px #000, 0 0 6px var(--c, var(--live)); }
@keyframes riseSide {
  0% { transform: translate(0, -40%) scale(.8); opacity: 0; }
  12% { transform: translate(0, -70%) scale(1); opacity: 1; }
  75% { transform: translate(0, -110%); opacity: 1; }
  100% { transform: translate(0, -140%); opacity: 0; }
}
.shout.say { font-family: var(--body); font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 12px; background: #17141fd9; border: 1px solid #ffffff1f; color: var(--c, #fff); text-shadow: none; animation: sayIn 1.6s ease-out forwards; }
@keyframes sayIn { 0% { transform: translate(-50%, -80%); opacity: 0; } 12% { transform: translate(-50%, -100%); opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(-50%, -110%); opacity: 0; } }
@media (max-width: 520px) { .shout.say { font-size: 11px; padding: 2px 7px; } }
.shout.nudge { font-family: var(--body); font-weight: 700; font-size: 13px; background: #0b0912e6; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--c, #4fd8ff); animation-duration: 4s; text-shadow: none; }
#charBtn, #questBtn, #ptsBtn, #friendBtn { position: relative; }
#friendBtn .frN { font-size: 11px; font-weight: 800; color: #ff8fc7; margin-left: 2px; }
#charBtn.new::after, #questBtn.new::after, #ptsBtn.new::after, #friendBtn.new::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 6px var(--live); }
.tag i { font-style: normal; font-weight: 800; color: #ffe14a; margin-right: 5px; }

/* 칭호 등급: 일반 회색 · 레어 하늘 · 에픽 보라 · 전설 금빛 반짝 */
.ttl { font-style: normal; font-weight: 800; font-size: 11px; margin-right: 5px; padding: 1px 6px; border-radius: 999px; }
.ttl.common { background: #ffffff1f; color: #e9e4f3; }
.ttl.rare { background: #4fd8ff2e; color: #7fe3ff; }
.ttl.epic { background: #b160ff38; color: #d7a8ff; box-shadow: 0 0 8px #b160ff66; }
.ttl.legend { background: linear-gradient(90deg, #ffe14a, #ff9a2e, #ffe14a); background-size: 200% 100%; color: #2a1a00; box-shadow: 0 0 10px #ffe14aaa; animation: shine 2s linear infinite; }
@keyframes shine { to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .ttl.legend { animation: none; } }
/* 잠긴 아이템 */
.opt.locked { color: var(--dim); border-style: dashed; }
.opt.locked.afford { color: #ffe14a; border-color: #ffe14a88; }
.hc.locked { position: relative; opacity: .55; }
.hc.locked::after { content: "🔒"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; }
.hc.locked.afford { opacity: .9; box-shadow: 0 0 0 2px #ffe14a88; }
.hc.armed { box-shadow: 0 0 0 3px var(--fan); opacity: 1; }
.note.center { text-align: center; margin-top: -6px; }
.row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.subCats { gap: 4px; margin-bottom: -2px; }
.subCats button { padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--dim); background: #ffffff0d; }
.subCats button[aria-pressed="true"] { background: var(--ink); color: #0b0912; }
.subCats button, .subCats .label { flex: none; }
/* 분류 칩 UI (2026-11-10 사용자): 폰은 한 줄로 옆으로 밀어 보고(세로 자리 아끼기), PC 상점은 줄 칩이 위쪽에 붙어 있다 */
@media (max-width: 520px) { .subCats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; } .subCats::-webkit-scrollbar { display: none; } .dealBox .subCats { margin-right: 0; padding-right: 0; } .row.subCats .label { width: auto; margin-right: 4px; } }
#rowCats { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) { #charDlg #rowCats { position: sticky; top: var(--headH, 40px); z-index: 3; background: #17141f; padding-top: 8px; } }
.row .hsNote { width: 100%; font-size: 11px; color: var(--dim); }
/* 내 마스코트 창 (2026-11-03) */
#petCv { cursor: pointer; width: 170px; height: 170px; justify-self: center; border-radius: 20px; background: radial-gradient(circle at 50% 45%, #3a2d55, #0b0912 75%); }
.petInfo { margin: 0; font-size: 13px; line-height: 1.5; text-align: center; color: var(--ink); }
.petStages { display: flex; gap: 4px; }
.petStages span { flex: 1; text-align: center; font-size: 11px; color: var(--dim); padding: 5px 0; border-radius: 8px; white-space: nowrap; }
.petStages span.done { color: var(--ink); }
.petStages span.on { background: var(--line); color: var(--ink); font-weight: 800; }
.petBar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.petBar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffe14a, #ff8fc7); }
#petDlg .note { margin: 0; text-align: center; }
.petTip { justify-self: center; font-size: 11px; color: var(--dim); margin-top: -6px; }
.label { font-size: 11px; letter-spacing: 1px; color: var(--dim); width: 64px; flex-shrink: 0; }
.hc { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--c); }
.hc[aria-pressed="true"] { border-color: var(--ink); }
#nick { flex: 1; padding: 8px 10px; }
@media (max-width: 520px), (pointer: coarse) and (max-height: 520px) {
  .roomBtn .brand, .ib span.t { display: none; }
  .heat .hbar { width: 22px; }
  #soundText { display: none; } /* 휴대폰은 아이콘만: 위쪽 도구 모음이 한 줄에 들어가게 */
  .mission { padding: 6px 14px; } .mission b { font-size: 15px; } .mission span { font-size: 12px; } /* 미션 상자가 영상을 덜 가리게 */
  .top .pill .ib { padding: 6px 5px; }
  .top .pill { gap: 2px; } /* 친구 버튼까지 9개가 375px 폰 한 줄에 들어가게 (전에도 설정 버튼이 25px 넘쳐 잘렸다) */
  #friendBtn .frN { display: none; }
  .pts small { display: none; }
  .now { order: 9; max-width: 100%; }
  .act { padding: 8px 10px; }
  .hint { white-space: normal; text-align: center; width: calc(100% - 32px); }
  .label { width: 100%; }
}
/* '애니메이션 줄이기' 설정이면 움직이지 않고 같은 시간 동안 보였다가 사라진다 (바로 사라지면 못 읽는다) */
@media (prefers-reduced-motion: reduce) {
  .shout { animation-name: hold; transform: translate(-50%, -100%); }
  .combo.go { animation-name: holdc; }
}
@keyframes hold { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes holdc { 0% { opacity: 0; transform: translate(-50%, -50%); } 10%, 75% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -50%); } }
/* ---- 휴대폰: 공연 화면과 내 캐릭터는 무조건 보이게 ----
   가운데는 비우고, 참여 포인트·미션 버튼은 오른쪽 아래(엄지 자리)에 작게. 왼쪽 아래는 이동 스틱 */
@media (max-width: 520px), (pointer: coarse) and (max-height: 520px) {
  .cue { left: auto; right: max(10px, env(safe-area-inset-right, 0px)); transform: none; bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    max-width: min(58vw, 230px); padding: 5px 10px 7px; gap: 1px; border-radius: 16px; white-space: normal; justify-items: end; text-align: right; background: #0b091299; }
  .cue small { font-size: 11px; padding: 1px 8px; letter-spacing: 1px; }
  body.popOpen .cue { visibility: hidden; }
  .cue b { font-size: clamp(17px, 5.5vw, 24px); }
  .cue span { font-size: 11px; line-height: 1.3; }
  .cueAct { margin-top: 3px; min-width: 0; padding: 8px 16px; font-size: 15px; }
  .cueSkip { font-size: 11px; padding: 10px 8px; margin: -6px 0; }
  .cue.go b { animation: none; }
  /* 폰 미션 문구: 낱말 중간에서 끊기거나 한 글자만 다음 줄로 넘어가지 않게, 설명은 잘리지 않고 2줄까지 (2026-11-03 사용자 요청) */
  .mission { padding: 5px 12px; width: max-content; max-width: min(330px, calc(100% - 24px)); }
  .mission b { font-family: var(--body); font-weight: 800; font-size: 13px; line-height: 1.3; word-break: keep-all; text-wrap: balance; } /* 영문 장식 글꼴은 숫자만 굵게 튀어서 본문 글꼴로 */
  .mission span { font-size: 11px; line-height: 1.35; max-width: 100%; word-break: keep-all; text-wrap: balance;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  /* 오른쪽 줄: 받아치기(맨 아래) 위에 미션 버튼. 메뉴는 이 줄을 비워 두고 왼쪽에 열린다 */
  .tapBtn { right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(150px + env(safe-area-inset-bottom, 0px)); width: 66px; height: 66px; font-size: 14px; }
  .tapBtn[data-mode="mash"], .tapBtn[data-mode="cheer"] { width: 72px; height: 72px; font-size: 14px; }
  .tapBtn small { font-size: 11px; }
  .reply { left: auto; right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); padding: 6px 8px; font-size: 11px; width: 76px; max-width: 76px; white-space: normal; text-align: center; border-radius: 16px; line-height: 1.25; }
  .soundTap { bottom: calc(200px + env(safe-area-inset-bottom, 0px)); padding: 8px 14px; font-size: 13px; }
  .newver { top: calc(104px + env(safe-area-inset-top, 0px)); left: 12px; font-size: 12px; padding: 8px 14px; }
  .combo { top: calc(30% + env(safe-area-inset-top, 0px)); }
  .shout { font-size: 18px; }
  .shout.pts { font-size: 15px; }
  .shout.side { margin-left: 52px; }
  .shout.emo { font-size: 24px; }
  .shout.nudge { font-size: 11px; padding: 4px 9px; }
  .wlabel { font-size: 12px; }
  .tag { font-size: 11px; padding: 2px 7px; }
  /* 친구 메뉴: 폰에서는 화면 아래에서 올라오는 시트 (누른 자리 옆에 띄우면 화면 밖으로 삐져나온다) */
  .peerMenu { position: fixed; left: 16px !important; right: 16px; top: auto !important; width: auto; max-width: 420px; margin: 0 auto;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)); max-height: 52vh; overflow-y: auto; z-index: 30;
    grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 8px; border-radius: 16px; max-height: 40vh; }
  .peerMenu:not([hidden]) { animation: sheetIn .2s ease-out; }
  .peerMenu b { grid-column: 1 / -1; padding: 0 0 2px; font-size: 13px; }
  .peerMenu .call { font-size: 11px; padding: 6px 2px; border-radius: 12px; text-align: center; line-height: 1.2; min-height: 32px; word-break: keep-all; }
  .meMenu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .peerMenu > .dlgX, .meMenu .dlgX, .whoHead .dlgX { width: 32px; height: 32px; font-size: 14px; } /* 손가락 크기 (2026-11-03 피로 점검) */
  .peerMenu .call.dim { min-height: 32px; }
  .top .pill .ib { min-height: 36px; }
  .peerMenu .call.dim { grid-column: 1 / -1; font-size: 11px; padding: 6px; min-height: 0; }
  #peerMenu { width: auto; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .meMenu .meStats { font-size: 12px; }
  /* 콜·흔들기 메뉴: 네 칸으로 낮게 */
  .pop.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 8px; }
  .pop.grid .call { min-height: 36px; padding: 4px 2px; font-size: 12px; border-radius: 12px; }
  .pop.emos { padding: 8px; gap: 4px; }
  .emo { font-size: 22px; padding: 6px 0; }
  /* 흔들기·콜·리액션·최애색 메뉴는 작게, 왼쪽부터 오른쪽 92px 앞까지만. 오른쪽 줄은 미션 버튼·받아치기 자리 (2026-11-02 사용자 요청) */
  .pop.grid, .pop.emos, #colorPop { --tx: 0; left: 8px; right: 92px; width: auto; max-width: none; transform: none; }
  .pop.grid { gap: 4px; padding: 6px; }
  .pop.grid .call { min-height: 32px; font-size: 11px; }
  .pop.emos { padding: 6px; gap: 2px; }
  .emo { font-size: 19px; padding: 4px 0; }
  /* 최애색 9개를 한 줄로 */
  #colorPop { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 6px; } /* 9색을 두 줄로: 손가락으로 누르기 쉽게 (2026-11-03) */
  #colorPop .swatchName { padding: 4px 0; font-size: 11px; gap: 3px; min-height: 44px; }
  #colorPop .swatch { width: 30px; height: 30px; }
  #preview { width: 150px; height: 150px; }
  .pvWrap .note { display: none; }
}
/* ---- 아래 묶음들은 앞의 폰 규칙보다 뒤에 있어야 이긴다 ---- */
/* 폰 도움말: 여백·글자를 한 단계 줄이고 줄 간격을 고르게 (2026-11-02 사용자 요청) */
@media (max-width: 520px) {
  .guide-card { padding: 14px 14px 12px; gap: 10px; border-radius: 16px; }
  .guide-card h2 { font-size: 17px; }
  .guide-card ol { gap: 8px; }
  .guide-card ol li { grid-template-columns: 22px 1fr; gap: 8px; font-size: 13px; line-height: 1.45; }
  .guide-card ol li b { width: 22px; height: 22px; font-size: 11px; }
  .guide-card .more { font-size: 11px; line-height: 1.4; }
  .helpMore { gap: 5px; }
  .helpMore details { padding: 0 10px; border-radius: 12px; }
  .helpMore summary { padding: 8px 0; font-size: 13px; }
  .helpMore ul { margin: 0 0 8px; padding-left: 16px; gap: 5px; font-size: 12px; line-height: 1.45; }
  .guide-card .primary { padding: 9px; font-size: 14px; }
}
/* 폰: 상자가 공연 화면·내 캐릭터를 덜 가리게 (2026-11-02 사용자 요청: "작게 해서 가리지 않게") */
@media (max-width: 520px), (pointer: coarse) and (orientation: landscape) and (max-height: 520px) {
  /* 위쪽: 방 이름 옆 빈자리에 곡 정보를 올려 세 줄 → 두 줄 (높이 175 → 약 100px) */
  .top .spacer { display: none; }
  .top .roomBtn { order: 1; }
  .top .now { order: 2; flex: 1 1 0; min-width: 0; max-width: none; padding: 5px 10px 6px; font-size: 11px; }
  .top .now .bar { margin: 3px 0 0; height: 2px; }
  .top .now small { display: none; } /* '다음 곡'은 신청곡 메뉴에서 */
  .toasts { top: calc(114px + env(safe-area-inset-top, 0px)); } /* 알림이 위쪽 버튼 줄(59~106px)을 덮지 않게 그 아래로 */
  .top > .pill:not(.roomBtn):not(.now) { order: 3; }
  /* 설정·퀘스트·신청곡 창: 화면 45%까지만 (나머지는 스크롤). 위쪽 큰 화면은 보이게 */
  .pop.quests:not(.side), .pop.songs:not(.side) { max-height: 45dvh; }
  /* 폰 신청곡: 좁고 낮게, 줄도 촘촘하게 (2026-11-03 사용자 요청 "박스 크기가 크니깐 조금더 작게") */
  .pop.songs:not(.side) { width: min(300px, calc(100% - 32px)); max-height: 34dvh; padding: 6px; gap: 0; }
  .songs h3 { font-size: 11px; line-height: 1.4; margin: 2px 6px 4px; }
  .song { padding: 5px 6px; gap: 6px; border-radius: 12px; }
  .song .st b { font-size: 13px; }
  .song .st small { font-size: 11px; }
  .song .mini { font-size: 11px; padding: 4px 9px; }
  .song .badge { font-size: 11px; }
  /* 설정 창: 더 낮게(36%) 줄 간격·글자를 줄이고 나머지는 스크롤 (2026-11-02 사용자 요청) */
  .pop.settings:not(.side) { max-height: 36dvh; width: min(300px, calc(100% - 32px)); padding: 8px; gap: 2px; }
  .pop.settings:not(.side) h3 { font-size: 11px; margin: 0 0 2px; }
  .pop.settings:not(.side) .setrow { padding: 6px 8px; gap: 8px; border-radius: 12px; }
  .pop.settings:not(.side) .setrow svg { width: 15px; height: 15px; }
  .pop.settings:not(.side) .setrow .t, .pop.settings:not(.side) .setrow.vol span { font-size: 12px; }
  .pop.settings:not(.side) .setrow[aria-pressed]::after { font-size: 11px; padding: 2px 7px; }
  .pop.settings:not(.side) .acct { padding: 8px; } .pop.settings:not(.side) .acct b, .pop.settings:not(.side) .note { font-size: 11px; }
  /* 친구 메뉴: 네 칸으로 낮게 (높이 311 → 약 200px) */
  .peerMenu { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 8px; max-height: 42vh; }
  .peerMenu .call { font-size: 11px; padding: 6px 2px; min-height: 36px; border-radius: 12px; }
  .peerMenu .call.dim, .peerMenu .pmClose { grid-column: span 2; }
  /* 사진 메뉴: 제목 줄을 빼고 버튼을 작게 (높이 228 → 약 150px) */
  .photoBar { gap: 6px; padding: 8px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .pbHead b { display: none; }
  .pbHead { position: absolute; right: 6px; top: -38px; }
  .pbRow { gap: 4px; }
  .pbRow button { padding: 5px 2px; font-size: 11px; border-radius: 12px; }
  .pbRow button i { font-size: 18px; }
  .pbAngle button, .pbGo .pbCard { font-size: 11px; padding: 6px 2px; }
  .pbGo .primary { font-size: 13px; padding: 8px; }
}
/* 1) 아래에서 올라오는 창(설정·퀘스트·신청곡 등)은 화면 높이를 넘으면 위가 잘려 스크롤도 안 됐다 → 높이 제한 + 스크롤 */
.pop:not(.side) { max-height: calc(100dvh - 180px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 520px), (pointer: coarse) and (max-height: 520px) {
  /* 6) 메뉴가 열려 있어도 미션 버튼·받아치기는 그 위에서 누를 수 있게 */
  body.popOpen .tapBtn, body.popOpen .reply { z-index: 9; }
  /* 12) 가운데 메뉴·친구 시트가 왼쪽 시점 고정·시점 단계 버튼과 겹쳐 보이던 것: 메뉴가 열린 동안 숨긴다 (2026-11-03 사용자 요청) */
  body.popOpen .camLock, body.popOpen .zoomBtn, body:has(.peerMenu:not([hidden])) .camLock, body:has(.peerMenu:not([hidden])) .zoomBtn { visibility: hidden; }
  /* 13) 미션 버튼이 떠 있으면 메뉴는 오른쪽 줄(미션·받아치기)을 비우고 왼쪽으로 (2026-11-03 사용자 요청 "미션 가리지 않게") */
  body:has(#tapBtn:not([hidden])) .pop:not(.side):not(.grid):not(.emos):not(#colorPop) { box-sizing: border-box; max-width: calc(100% - 112px); left: calc(50% - 40px); } /* 흔들기·콜·리액션·최애색은 원래 왼쪽에 붙어 오른쪽 줄을 비운다 */
  /* 9) 긴 초대 문구가 위 미션 버튼까지 자라지 않게 세 줄까지만 */
  .reply { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; padding: 5px 7px; }
  /* 11) 리액션·콜 버튼을 손가락으로 누르기 쉽게 (작게 해 달라는 요청과 맞춰 36px) */
  .pop.emos button { min-height: 36px; }
  .pop.grid .call { min-height: 36px; }
}
/* 아주 좁은 폰(360px): 아래 버튼 줄 7개가 화면 안에 들어가게 */
@media (max-width: 380px) { .hud.bottom .act { padding: 8px 6px; } .hud.bottom .pill { gap: 2px; } }
/* 가로로 돌린 폰: 높이가 낮아 왼쪽 가운데의 시점 버튼이 이동 스틱·곡 정보와 겹친다 → 스틱 오른쪽 옆에 나란히, 설치물 버튼은 아래 가운데 위 */
@media (pointer: coarse) and (max-height: 520px) {
  .camLock { top: auto; transform: none; left: calc(max(14px, env(safe-area-inset-left, 0px)) + 84px); bottom: calc(104px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; }
  .zoomBtn { top: auto; left: calc(max(14px, env(safe-area-inset-left, 0px)) + 84px); bottom: calc(156px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; }
  .spotBtn { left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); padding: 8px 14px; font-size: 13px; }
  .now { max-width: min(260px, 38vw); }
}
/* 흔들기·콜·리액션·최애색 메뉴, 친구 메뉴, 받아치기·친구 신청 버튼: 반투명으로 뒤의 캐릭터가 비쳐 보이게 (2026-11-02 사용자 요청)
   흐림(blur)을 걸면 뒤가 뭉개져 안 보여서 끄고, 글씨는 버튼마다 옅은 바탕 + 그림자로 읽히게 */
.pop.grid, .pop.emos, #colorPop, .peerMenu { background: #17141f66; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: #ffffff26; }
/* ---- 피로감 줄이기 (2026-11-04, .impeccable/surfaces): 네온 테두리·빛 번짐을 빼고 강조색 하나(라벤더) ---- */
:root { --fan: #b9a3ff; --fanInk: #1a1530; --disc: #221b36e6; }
.mission { border-color: #ffffff26; box-shadow: 0 6px 18px -10px #000; }
.tour { border-color: #ffffff2e; box-shadow: 0 6px 18px -10px #000; }
.tourHi { box-shadow: 0 0 0 3px #ffe14a, 0 0 18px 4px #ffe14a99 !important; animation: tourHi 1.1s ease-in-out infinite; } /* 체험 안내가 가리키는 버튼 */
@keyframes tourHi { 50% { box-shadow: 0 0 0 6px #ffe14a66, 0 0 22px 8px #ffe14a55; } }
@media (prefers-reduced-motion: reduce) { .tourHi { animation: none; } }
.tour b { color: var(--fan); }
.camLock[aria-pressed="true"] { box-shadow: none; }
.dot { box-shadow: none; }
.avatar { box-shadow: none; }
.tag.me { box-shadow: 0 0 0 1.5px var(--my, #fff); }
.menuBtn { display: none; position: relative; }
#menuClose, .popClose { display: none; }
.pop { scrollbar-width: thin; scrollbar-color: #b9a3ff80 transparent; }
.pop.more { -webkit-mask-image: linear-gradient(#000 calc(100% - 34px), #0005); mask-image: linear-gradient(#000 calc(100% - 34px), #0005); }
.pop.more::after { content: "▾"; position: sticky; bottom: 0; grid-column: 1 / -1; justify-self: end; display: grid; place-items: center; width: 22px; height: 22px; margin-top: -22px; border-radius: 50%; background: var(--fan); color: var(--fanInk); font-size: 12px; font-weight: 800; pointer-events: none; } /* 더 있어요: 오른쪽 아래 작은 표시 */
.roomN { display: none; }
.hint { top: auto; left: 88px; transform: none; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); } /* 안내는 왼쪽 아래: LED·내 캐릭터·아래 버튼 줄 밖 (폰은 아래에서 따로) */
/* 빛 번짐 대신 그림자 하나: 누르라고 알리는 버튼도 깜빡이는 빛 대신 살짝 커졌다 작아지기만 */
.tapBtn { box-shadow: 0 8px 18px -8px #000; }
.reply, .soundTap, .liteAsk, .spotBtn { box-shadow: 0 8px 18px -8px #000; }
.liteAsk { border-color: var(--line); }
.entry { box-shadow: 0 10px 28px -14px #000; }
.room.invited { box-shadow: none; }
.mission.done { box-shadow: 0 6px 18px -10px #000; }
.call.tile small, .whoBox small, .pop.grid .call small, kbd { font-size: 11px; } /* 11px 아래로 내려가지 않게 */
@keyframes tapPulse { to { scale: 1.05; } }
@keyframes replyPulse { to { opacity: .88; } }
.ib.pts b { text-shadow: none; }
.room.best { box-shadow: 0 0 0 1px var(--live); }
.room .ppl i, .att i.on { box-shadow: none; }
.ttl.legend { box-shadow: none; }
.camLock b svg, .zoomBtn b svg { width: 20px; height: 20px; }
.camLock b, .zoomBtn b { display: grid; place-items: center; }
.heat b svg, .ib.pts b svg { width: 16px; height: 16px; }
.ib.pts b { color: #ffe14a; } /* 재화 ✦ 는 노랑 (빛 번짐 없이) */
.heat b { color: #ff9a6a; }
/* 미션 카드: 번짐 없이 그림자 하나, 숫자 알약 대신 작은 글자 */
.cue { box-shadow: 0 6px 18px -10px #000; }
.cue small { background: none; border: 0; padding: 0; letter-spacing: 1px; color: var(--dim); }
.cue b { text-shadow: 0 2px 4px #000; }
.cueAct { box-shadow: none; }
.cueGlow { box-shadow: none; outline: 2px solid var(--c, var(--live)); outline-offset: 2px; background: var(--line); }
/* 작은 글자는 11px 아래로 내려가지 않게 */
.camLock small, .zoomBtn small { font-size: 11px; letter-spacing: -.03em; }
/* 메뉴 안 버튼에 새 소식이 있으면 메뉴 버튼에 점 */
body:has(#topTools .new) .menuBtn::after { content: ""; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
/* ---- 폰: 엄지 부채 (오른손 엄지 하나로 흔들기·콜·리액션·점프·사진) ---- */
@media (max-width: 520px), (pointer: coarse) and (orientation: landscape) and (max-height: 520px) { /* + 가로 폰 (2026-11-07) */
  /* 위: 한 줄 (방 · 곡 · 진행 · 메뉴). 도구 묶음은 메뉴를 누르면 펼쳐지는 패널 */
  .top { flex-wrap: nowrap; }
  .menuBtn { display: grid; place-items: center; flex: none; order: 4; width: 40px; height: 40px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); }
  .menuBtn svg { width: 18px; height: 18px; }
  body.menuOpen .menuBtn { background: var(--fan); color: var(--fanInk); border-color: transparent; }
  #topTools { display: none; }
  body.menuOpen #topTools { display: grid; position: absolute; z-index: 12; top: calc(62px + env(safe-area-inset-top, 0px)); right: 12px; left: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding: 6px; border-radius: 16px; background: #17141ff2; border: 1px solid var(--line); animation: sheetIn .18s ease-out; }
  body.menuOpen #topTools .ib { flex-direction: column; justify-content: center; gap: 3px; min-height: 50px; padding: 4px 0; border-radius: 12px; font-size: 11px; overflow: hidden; }
  body.menuOpen #topTools #charBtnName { max-width: 4.5em; }
  body.menuOpen #topTools .ib span.t, body.menuOpen #topTools #soundText { display: block; font-size: 11px; }
  body.menuOpen #topTools .heat .hbar { width: 40px; }
  body.menuOpen #topTools #songBtn { font-size: 11px; }
  .toasts { top: calc(108px + env(safe-area-inset-top, 0px)); left: 12px; right: auto; justify-items: start; max-width: min(300px, 78vw); } /* 위 줄 아래 왼쪽 (2026-11-07 사용자: 알림이 화면 가운데에 뜨지 않게) */
  body.menuOpen .toasts { visibility: hidden; }
  body.menuOpen .hud.top { z-index: 13; } /* 펼친 메뉴가 미션 상자(4)보다 위 */
  /* 아래: 부채. 흔들기 원(96px) 위로 오른쪽 가장자리를 따라 휘어 오른다. 가운데 아래(내 캐릭터 자리)는 비운다 */
  .hud.bottom { left: auto; right: 0; width: 0; height: 0; padding: 0; }
  .hud.bottom nav.pill { display: contents; }
  .hud.bottom .act { position: absolute; width: 48px; height: 48px; padding: 0; border-radius: 50%; justify-content: center; gap: 0; font-size: 0;
    background: var(--disc); border: 1px solid #ffffff1a; color: #e9e4f7; touch-action: manipulation; }
  .hud.bottom .act svg { width: 22px; height: 22px; }
  .hud.bottom .act:active { transform: scale(.94); }
  .hud.bottom #waveBtn { right: 14px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 96px; height: 96px; gap: 4px; font-size: 13px; font-weight: 700;
    background: var(--fan); color: var(--fanInk); border: 0; transition: box-shadow .25s ease-out; }
  .hud.bottom #waveBtn svg { width: 30px; height: 30px; }
  .hud.bottom #waveBtn.on { box-shadow: 0 0 0 5px #b9a3ff3a, 0 10px 24px -10px #000; }
  /* 내 캐릭터(화면 아래에서 약 127px 위부터)를 비워 두는 자리: 왼쪽 두 개는 그 아래, 위 두 개는 캐릭터 오른쪽 바깥 */
  .hud.bottom #callBtn { right: 122px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } /* 리액션 원과 8px 이상 띄운다 */
  .hud.bottom #emoteBtn { right: 112px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .hud.bottom #jumpBtn { right: 64px; bottom: calc(126px + env(safe-area-inset-bottom, 0px)); }
  .hud.bottom #photoBtn { right: 14px; bottom: calc(160px + env(safe-area-inset-bottom, 0px)); }
  .hud.bottom #songBtn, .hud.bottom #colorBtn { display: none; } /* 신청곡·최애색은 메뉴 안 (스크립트가 옮긴다) */
  #topTools #songBtn, #topTools #colorBtn { display: flex; }
  #topTools #colorBtn .dot { width: 18px !important; height: 18px !important; }
  /* 빠른 메뉴(흔들기·콜·리액션·최애색)는 엄지 쪽 오른쪽 세로 칸: 영상도 내 캐릭터도 가리지 않는다. 여는 동안 부채는 숨김 */
  body.popOpen .hud.bottom, body.menuOpen .hud.bottom { visibility: hidden; }
  .pop.grid, .pop.emos, #colorPop, #wavePop { left: auto; right: 8px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 124px; max-width: none; transform: none; }
  .pop.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #wavePop { grid-template-columns: 1fr; }
  .pop.grid .call { font-size: 11px; padding: 4px 2px; }
  .pop.emos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #colorPop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pop.grid .wide { grid-column: 1 / -1; }
  /* 긴 창(설정·퀘스트·신청곡)과 위쪽 도구 메뉴는 화면 맨 아래 시트 */
  .pop:not(.side):not(.grid):not(.emos):not(#colorPop) { left: 8px; right: 8px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; transform: none; }
  body:has(#tapBtn:not([hidden])) .pop:not(.side):not(.grid):not(.emos):not(#colorPop) { max-width: none; left: 8px; }
  body.menuOpen #topTools { position: fixed; top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); } /* 위 줄 안에 있어도 화면 맨 아래 시트로 */
  /* 미션 버튼(흔들기 자리)이 떠 있으면 아래 시트들은 그 오른쪽 자리를 비워 둔다: 둘 다 보이고 둘 다 눌린다 */
  body:has(#tapBtn:not([hidden])) .pop:not(.side):not(.grid):not(.emos):not(#colorPop), body:has(#tapBtn:not([hidden])).menuOpen #topTools { right: 118px; }
  body:has(#tapBtn:not([hidden])).menuOpen #topTools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* 글자 11px 바닥 (마무리 비평) */
  .tag, .tag.me b, .tapBtn small, .cue small, .song .st small, .song .badge, #colorPop .swatchName, .songs h3 { font-size: 11px; }
  .pop.settings:not(.side) .setrow[aria-pressed]::after { font-size: 11px; }
  body.menuOpen .joy, body.menuOpen .camLock, body.menuOpen .zoomBtn { visibility: hidden; }
  /* 왼쪽: 이동 스틱 위로 시점 버튼 두 개 (영상 모서리에서 뗀다) */
  .joy { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .zoomBtn { top: auto; transform: none; left: max(22px, env(safe-area-inset-left, 0px)); bottom: calc(112px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; }
  .camLock { top: auto; transform: none; left: max(22px, env(safe-area-inset-left, 0px)); bottom: calc(170px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; }
  .stageGo { left: max(22px, env(safe-area-inset-left, 0px)); bottom: calc(228px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; }
  body.popOpen .stageGo { visibility: hidden; }
  /* 미션 버튼은 흔들기 자리에 잠깐 대신 선다. 받아치기·미션 카드는 부채 위 오른쪽 */
  .tapBtn { right: 14px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 96px; height: 96px; }
  .tapBtn[data-mode="mash"], .tapBtn[data-mode="cheer"] { width: 96px; height: 96px; }
  body:has(#tapBtn:not([hidden])) #waveBtn, body:has(#cueAct:not([hidden])) #waveBtn { visibility: hidden; }
  /* 메뉴에 숨었던 것 (2026-11-04 비평 P1-b): 인원은 방 이름 옆, 열기는 흔들기 원 둘레, 최애색은 흔들기 메뉴 첫 줄 */
  .roomN { display: inline; margin-left: 6px; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
  .hud.bottom #waveBtn::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
    background: conic-gradient(#ff9a2e var(--heat, 0%), #ffffff14 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); transition: background .3s; }
  #wavePop #colorBtn { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 6px; border-radius: 12px; font-size: 12px; font-weight: 700; background: #0b091259; border: 1px solid #ffffff26; }
  #wavePop #colorBtn .dot { width: 18px !important; height: 18px !important; }
  /* 닫기: 메뉴 시트 끝 칸 · 빠른 메뉴 옆 떠 있는 버튼 */
  body.menuOpen #topTools #menuClose { display: flex; }
  body.popOpen .popClose { display: flex; position: fixed; z-index: 12; right: 140px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); align-items: center; gap: 4px;
    min-height: 44px; padding: 0 14px 0 10px; border-radius: 999px; background: #17141ff2; border: 1px solid #ffffff2e; color: var(--ink); font-size: 13px; font-weight: 700; box-shadow: 0 8px 18px -8px #000; }
  .popClose svg { width: 18px; height: 18px; }
  body.popOpen:has(.pop.side:not([hidden]), #songPop:not([hidden]), #questPop:not([hidden]), #setPop:not([hidden])) .popClose { right: 12px; bottom: auto; top: calc(62px + env(safe-area-inset-top, 0px)); } /* 큰 창은 위 오른쪽 */
  /* 한 번에 누를 곳은 하나 (2026-11-04 비평 P1): 참여 포인트 버튼도 미션 버튼처럼 흔들기 자리에 선다 */
  .cueAct { position: fixed; z-index: 7; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 96px; height: 96px; margin: 0; padding: 0 8px;
    border-radius: 50%; display: grid; place-items: center; font-size: 16px; line-height: 1.15; word-break: keep-all; text-wrap: balance; border: 3px solid #fff; box-shadow: 0 8px 18px -8px #000; }
  .cueGlow { outline: 0; background: var(--disc); }
  .reply { right: 12px; bottom: calc(240px + env(safe-area-inset-bottom, 0px)); }
  .cue { bottom: calc(240px + env(safe-area-inset-bottom, 0px)); }
  body:has(#replyBtn:not([hidden])) .cue { bottom: calc(296px + env(safe-area-inset-bottom, 0px)); }
  /* 안내는 위 한 줄 바로 아래 (아래쪽 이름표 띠와 겹치지 않게), 알림은 그 아래 */
  .hint, .tour { bottom: auto; top: calc(64px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); } /* 위 한 줄 바로 아래, LED 위쪽 빈자리 */
  .spotBtn { bottom: auto; top: calc(112px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); }
  .soundTap { bottom: calc(240px + env(safe-area-inset-bottom, 0px)); }
  .soundTap { bottom: calc(216px + env(safe-area-inset-bottom, 0px)); }
}
.pop.grid .call, .pop.emos button, .peerMenu .call { background: #0b091259; text-shadow: 0 1px 3px #000; }
.pop.grid .call[aria-pressed="true"], .peerMenu .call:hover { background: #ffffff33; }
/* 내 프로필 카드는 글이 많아 거의 불투명하게 (2026-11-03 사용자 요청: 반투명이라 글씨가 안 보인다) */
.peerMenu.meMenu { background: #17141ff2; border-color: #ffffff33; }
.meMenu .call { background: #2a2338; text-shadow: none; }
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 2px 0 4px; }
.chip { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: #2a2338; color: #e4ddf2; white-space: nowrap; }
/* 아이콘 위·짧은 이름 아래 타일 버튼 (내 프로필·캐릭터 메뉴) */
.peerMenu .call.tile { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; text-align: center; min-height: 0; }
.call.tile i { font-style: normal; font-size: 17px; line-height: 1.1; }
.call.tile span { font-size: 11px; line-height: 1.2; white-space: nowrap; }
.call.tile small { font-size: 11px; color: var(--dim); }
/* 지금 이 방에 누가 있나: 위쪽 사람 수 아래 작은 상자 (2026-11-03) */
#countBtn { cursor: pointer; }
.whoBox { position: absolute; z-index: 20; top: calc(108px + env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px)); width: 210px; max-height: 42vh; overflow-y: auto;
  background: #17141ff2; border: 1px solid #ffffff33; border-radius: 16px; padding: 8px; box-sizing: border-box; }
.whoHead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.whoHead b { font-size: 12px; color: var(--dim); }
.whoHead .dlgX { position: static; width: 24px; height: 24px; font-size: 12px; }
.whoBox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.whoBox li { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 4px; border-radius: 8px; }
.whoBox li.me { background: #ffffff14; }
.whoBox li i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.whoBox li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whoBox li small { color: var(--dim); font-size: 11px; flex: none; }
@media (max-width: 520px) { .whoBox { top: calc(100px + env(safe-area-inset-top, 0px)); width: 190px; } }
.reply { background: #ff6fb5b3; }
/* 나머지 상자들도 조금 더 비치게: 참여 상자·미션 배너·사진 메뉴·체험 카드·설치물 버튼 */
.cue { background: #0b0912a6; }
.photoBar { background: #14111cb3; }
.tour { background: #0b0912b3; }
.mission { background: #17141f99; }
@media (max-width: 520px), (pointer: coarse) and (max-height: 520px) { .mission { background: #17141fe6; } .cue { background: #0b0912e0; } } /* 폰: 미션·참여 상자는 덜 비치게 (2026-11-04 사용자 요청) */
/* 폰: 친구 메뉴는 아래 버튼 줄 위에 겹쳐 올라오니, 열린 동안 그 밑 버튼 줄·안내 글씨는 숨긴다 (반투명이라 글씨가 섞여 보였다) */
@media (max-width: 520px) { body:has(.peerMenu:not([hidden])) .hud.bottom, body:has(.peerMenu:not([hidden])) .hint { visibility: hidden; } }
/* 이름표 (2026-11-04 사용자 요청): 긴 이름은 말줄임 대신 두 줄로, 간격을 맞추고 글씨는 조금 작게 */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 12px; font-size: 11px; line-height: 1.15; }
.tag > b, .tag.me > b, .tag > i, .tag i.hm { margin: 0; flex: none; }
.tag > i { font-size: 11px; }
.tag .nm { white-space: nowrap; }
.nickCnt { font-size: 11px; font-weight: 400; color: var(--dim); font-variant-numeric: tabular-nums; }
.tag .r1 { display: inline-flex; align-items: center; gap: 4px; }
.tag .rows { display: grid; justify-items: start; gap: 1px; }
.tag:not(.full):not(.hasTtl) .r2, .tag:not(.full) .lv, .tag:not(.full) i.fr, .tag:not(.full) i.hm, .tag.full .lvS, .tag.me .lvS { display: none; }
.tag.hasTtl:not(.full) .rows { justify-items: center; gap: 2px; } .tag.hasTtl:not(.full) .r2 .ttl { font-size: 11px; line-height: 1.4; padding: 0 5px; }
.tag.hasTtl:not(.full) { padding: 3px 8px 2px; } /* 2026-11-05: 칭호를 누르지 않아도 보이게, 짧게 두 줄 */
.tag.two:not(.full) { padding: 2px 7px; }
.tag .lvS { font-style: normal; font-size: 11px; font-weight: 800; color: #ffe14a; opacity: .8; margin: 0 0 0 1px; }
#camPip { position: fixed; z-index: 8; pointer-events: none; border-radius: 12px; box-shadow: 0 0 0 2px #ff3b4f, 0 6px 18px #0009; }
#camPip span { position: absolute; left: 6px; top: -22px; font-size: 11px; font-weight: 800; color: #fff; background: #ff3b4fe6; padding: 2px 7px; border-radius: 8px; white-space: nowrap; }
.tag .r2 { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #cfc6e2; white-space: nowrap; }
.tag .r2 .ttl { margin: 0; padding: 0 5px; font-size: 11px; line-height: 1.45; box-shadow: none; }
.tag .rows i, .tag .r2 i.hm { font-size: 11px; margin: 0; }
.tag.two { padding: 3px 9px 3px 6px; }
@media (max-width: 520px) { .tag { padding: 2px 7px; font-size: 11px; } .tag.me b { width: 15px; height: 15px; } }
/* ---- 참여 카드 · 행동 원 (2026-11-04 다시 디자인) ----
   카드: 무엇을(제목) · 어떻게(설명) · 얼마나 남았나(아래 막대). 행동 원: 지금 누를 것 하나, 카드 바로 아래.
   미션은 라벤더, 응원 신호는 그 신호 색(--c) 하나만. 테두리 번쩍임·흰 테두리·두근거림은 없앤다 */
.mission, .cue { overflow: hidden; border-radius: 16px; background: #17141ff2; border: 1px solid color-mix(in srgb, var(--c, var(--fan)) 55%, transparent); box-shadow: 0 8px 22px -12px #000; }
.mission { --c: var(--fan); padding: 9px 16px 12px; gap: 3px; }
.mission b { font-family: var(--display); font-weight: 900; font-size: 17px; line-height: 1.2; color: var(--ink); text-shadow: none; word-break: keep-all; text-wrap: balance; }
.mission span { font-size: 12px; line-height: 1.35; color: #cfc6e2; }
.mission.done { border-color: color-mix(in srgb, var(--ink) 50%, transparent); }
.cue { padding: 8px 14px 12px; gap: 2px; }
.cue small { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: color-mix(in srgb, var(--c) 80%, white); background: color-mix(in srgb, var(--c) 18%, transparent); padding: 1px 8px; border-radius: 999px; }
.cue b { font-size: 22px; line-height: 1.15; color: var(--ct, var(--c, var(--ink))); text-shadow: none; } /* --ct: 어두운 색(남색·검정)은 밝힌 글자색 (2026-11-06 검수) */
.cue span { font-size: 12px; font-weight: 700; color: #cfc6e2; text-shadow: none; }
.mbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c, var(--fan)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.gauge { width: 100%; min-width: 180px; height: 6px; border-radius: 3px; background: #ffffff1f; }
@media (max-width: 520px) { .gauge { min-width: 0; } }
.gauge i { background: var(--fan); }
/* 행동 원: 꽉 찬 한 색 + 옅은 바깥 고리. 뜰 때 고리가 한 번 퍼진다 */
.tapBtn, .cueAct { border: 0; color: var(--fanInk); font-family: var(--display); animation: none;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c, var(--fan)) 28%, transparent), 0 10px 22px -10px #000; font-weight: 900; }
.tapBtn { --c: var(--fan); background: var(--c); }
.cueAct { background: var(--c, var(--fan)); }
.tapBtn span { font-size: 18px; line-height: 1.1; }
.tapBtn small { color: color-mix(in srgb, var(--fanInk) 75%, transparent); font-family: var(--body); font-weight: 800; }
.tapBtn::after, .cueAct::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; border: 2px solid var(--c, var(--fan)); animation: actRing .7s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes actRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
/* 박자 미션 '누를 자리' (2026-11-15 사용자 요청: 클릭할 곳이 눈에 보이게). 노란 기준 원 = 링이 닿을 곳, 박자 순간엔 빛난다 · 다가오는 링은 굵게 · 누르면 판정 색으로 퍼진다 */
.tapBtn .tgt, .tapBtn .burst { display: none; position: absolute; border-radius: 50%; pointer-events: none; }
.tapBtn[data-mode="beat"] .tgt { display: block; inset: -7px; border: 3px solid #ffe14a; opacity: calc(.6 + var(--g, 0) * .4); box-shadow: 0 0 0 2px #0b091299, 0 0 calc(4px + var(--g, 0) * 26px) #ffe14a, inset 0 0 calc(var(--g, 0) * 18px) #ffe14a88; }
.tapBtn[data-mode="beat"] .ring { inset: -7px; border: 4px solid #fff; box-shadow: 0 0 0 2px #0b091299, 0 0 10px #ffffffaa; }
.tapBtn[data-mode="beat"] .burst { display: block; inset: -7px; border: 5px solid var(--bc, #ffe14a); opacity: 0; }
.tapBtn .burst.go { animation: tapBurst .45s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes tapBurst { from { transform: scale(1); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
html.calm .tapBtn .burst.go { animation-duration: .01s; }
@media (pointer: coarse) { /* 폰: 버튼 옆에 리액션·확성기·꾸미기 버튼이 붙어 있어 링이 덮지 않게 작게 (최대 1.32배, 2026-11-15) */
  .tapBtn[data-mode="beat"] .ring { transform: scale(calc(1 + (var(--a, 1) - 1) * .36)); }
  .tapBtn .burst.go { animation-name: tapBurstS; } }
@keyframes tapBurstS { from { transform: scale(1); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
html.calm .tapBtn::after, html.calm .cueAct::after { animation: none; opacity: 0; }
.tapBtn:active, .cueAct:active { transform: scale(.94); }
.tapBtn .ring { border: 2px solid #ffffffb3; inset: -2px; }
.tapBtn[data-mode="lock"], .tapBtn[data-mode="wait"] { --c: #3a3348; background: #2a2438; color: #cfc6e2; box-shadow: 0 10px 22px -10px #000; }
.tapBtn[data-mode="color"] { --c: var(--want, var(--fan)); background: var(--want, var(--fan)); }
/* 미션 버튼 검수 (2026-11-06): 기다리는 버튼의 작은 글씨가 어두운 바탕에 어두워 안 보였다 · 팀전 버튼도 내 팀 색 · 검정·남색 같은 어두운 색 버튼은 흰 글씨 */
.tapBtn[data-mode="lock"] small, .tapBtn[data-mode="wait"] small { color: #b9b2c8; }
.tapBtn.tint { --c: var(--want, var(--fan)); background: var(--want, var(--fan)); }
.tapBtn.inkLight, .tapBtn.inkLight small, .cueAct.inkLight { color: #fff; }
.tapBtn[data-mode="mash"], .tapBtn[data-mode="cheer"] { font-size: 18px; }
@media (max-width: 520px), (pointer: coarse) and (orientation: landscape) and (max-height: 520px) {
  /* 폰: 미션 카드도 응원 카드와 같은 자리 (흔들기 원 위 오른쪽). 영상 위쪽을 비운다 */
  /* 작게: 내용만큼만, 최대 190px, 제목 한 줄 + 설명 한 줄 */
  .mission { left: auto; right: 12px; top: auto; transform: none; bottom: calc(232px + env(safe-area-inset-bottom, 0px)); width: max-content; max-width: min(190px, calc(100% - 24px));
    justify-items: end; text-align: right; padding: 5px 10px 8px; gap: 1px; border-radius: 12px; }
  .mission:not([hidden]) { animation: none; }
  .mission b { font-family: var(--display); font-weight: 900; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .mission span { font-size: 11px; -webkit-line-clamp: 1; line-clamp: 1; }
  .mission .gauge { height: 4px; }
  .cue { width: max-content; max-width: min(190px, calc(100% - 24px)); padding: 5px 10px 8px; gap: 1px; border-radius: 12px; background: #17141ff2; bottom: calc(232px + env(safe-area-inset-bottom, 0px)); }
  .cue b { font-size: clamp(16px, 4.8vw, 19px); }
  .cue small { font-size: 11px; } .cue span { font-size: 11px; }
  body:has(#askCard:not([hidden])) .mission, body:has(#askCard:not([hidden])) .cue { bottom: calc(340px + env(safe-area-inset-bottom, 0px)); } /* 동의 카드가 뜨면 그 위로 */
  body.popOpen .mission { visibility: hidden; }
  .cueAct { font-size: 17px; }
}
/* 폰: 점프 ↔ 흔들기 자리 바꿈 (2026-11-04 사용자 요청: 미션 버튼이 사라진 큰 원 자리에서 흔들기를 잘못 눌러 꺼졌다).
   큰 원 자리는 미션·응원 버튼이 잠깐 대신 서는 곳이라, 잘못 눌러도 한 번 뛰고 끝나는 점프를 둔다. 흔들기는 그 위 작은 원 (켜지면 라벤더) */
@media (max-width: 520px), (pointer: coarse) and (orientation: landscape) and (max-height: 520px) {
  .hud.bottom #jumpBtn { right: 14px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 96px; height: 96px; gap: 4px; font-size: 13px; font-weight: 700; background: var(--fan); color: var(--fanInk); border: 0; }
  .hud.bottom #jumpBtn svg { width: 30px; height: 30px; }
  .hud.bottom #waveBtn { right: 64px; bottom: calc(126px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; gap: 0; font-size: 0; background: var(--disc); color: #e9e4f7; border: 1px solid #ffffff1a; }
  .hud.bottom #waveBtn svg { width: 22px; height: 22px; }
  .hud.bottom #waveBtn.on { background: var(--fan); color: var(--fanInk); border-color: transparent; box-shadow: 0 0 0 4px #b9a3ff3a, 0 8px 18px -8px #000; }
  body:has(#tapBtn:not([hidden])) #waveBtn, body:has(#cueAct:not([hidden])) #waveBtn { visibility: inherit; }
  body:has(#tapBtn:not([hidden])) #jumpBtn, body:has(#cueAct:not([hidden])) #jumpBtn { visibility: hidden; }
  /* 열기 고리는 큰 원(점프) 둘레로 */
  .hud.bottom #waveBtn::before { content: none; }
  .hud.bottom #jumpBtn::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
    background: conic-gradient(#ff9a2e var(--heat, 0%), #ffffff14 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
  /* 흔들기 메뉴는 작은 흔들기 원 쪽(오른쪽 위)으로: 큰 원 위를 덮지 않게 */
}
@media (pointer: coarse) { .hud.top { transition: opacity .6s ease; } body.idle .hud.top { opacity: .3; } } /* 폰: 곡 중 5초 손대지 않으면 위쪽 메뉴만 흐리게 (2026-11-17) */
.markBox { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); top: calc(118px + env(safe-area-inset-top, 0px)); display: grid; gap: 4px; justify-items: center; padding: 6px 8px; border-radius: 14px; background: #17141fe6; border: 1px solid #b9a3ff66; color: #e8e2f4; font-size: 12px; max-width: calc(100vw - 16px); }
.markBox small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.markBox div { display: flex; gap: 6px; }
.markBox button { min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 0; background: #3a3350; color: #fff; font-weight: 800; font-size: 14px; }
.markBox .mkHit { background: var(--fan); color: var(--fanInk); min-width: 96px; font-size: 16px; }
.calBox { top: auto; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } /* 박자 맞추기: LED 를 가리지 않게 아래쪽 (PC 는 아래 버튼 줄 위) */
@media (pointer: coarse) { .calBox { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); } }
/* 리듬 게임 (2026-11-17): 고르는 창은 박자 맞추기처럼 아래쪽 · 게임 판은 화면 아래 (LED 는 위에 그대로 보인다). 폰은 아래 절반 어디를 눌러도 판정 */
.rhyPick { top: auto; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
#rhyBtn { position: relative; }
#rhyBtn.new::after { content: ""; position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #ff5d8f; box-shadow: 0 0 0 2px #17141f; } /* 2026-11-18: 아직 안 해 본 기능 표시 (한 번 누르면 사라짐) */
.rhyPick b { font-size: 15px; }
.rhyPick button[aria-pressed="true"] { background: var(--fan); color: var(--fanInk); }
.rhyPick .rpH { white-space: normal; text-align: center; max-width: 300px; }
@media (pointer: coarse) { .rhyPick { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); } }
.rhy { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; height: calc(196px + env(safe-area-inset-bottom, 0px)); touch-action: none; user-select: none; -webkit-user-select: none; background: linear-gradient(#0b091200, #0b0912b3 45%); }
.rhy canvas { position: absolute; left: 0; right: 0; bottom: env(safe-area-inset-bottom, 0px); width: 100%; height: 140px; }
.rhyTop { position: absolute; top: 6px; left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; color: #e8e2f4; font-size: 13px; }
.rhyTop .rhyC { margin-left: auto; font-weight: 900; color: #ffe14a; font-size: 15px; }
.rhyX { min-width: 44px; min-height: 44px; border-radius: 999px; border: 0; background: #3a3350; color: #fff; font-size: 16px; font-weight: 800; }
@media (pointer: coarse) { .rhy { height: calc(46vh + env(safe-area-inset-bottom, 0px)); } }
/* 리듬 2차 (2026-11-19): 피버 게이지 · 방 싱크율 · 결과 카드 · 이번 주 홀 순위 */
.rhyF { position: relative; width: 64px; height: 18px; border-radius: 9px; background: #ffffff1a; overflow: hidden; flex: none; }
.rhyF i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: #ff8a3d; transition: width .2s; }
.rhyF em { position: relative; display: block; text-align: center; font: 800 10px/18px system-ui, sans-serif; font-style: normal; color: #fff; }
.rhyF.on { width: 84px; box-shadow: 0 0 0 2px #ff8a3d66; } .rhyF.on i { background: linear-gradient(90deg, #ff8a3d, #ffe14a); }
.rhyS { font-weight: 700; color: #4fd8ff; white-space: nowrap; }
.rhyRes { position: absolute; right: 12px; bottom: calc(146px + env(safe-area-inset-bottom, 0px)); width: min(300px, calc(100vw - 24px)); display: grid; gap: 3px; padding: 8px 12px 10px; border-radius: 16px; background: #17141ff2; border: 1px solid #b9a3ff66; color: #e8e2f4; font-size: 12px; box-shadow: 0 10px 30px -12px #000; }
.rhyRes .rrX { position: absolute; top: 2px; right: 2px; min-width: 44px; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: #cfc6e2; font-size: 15px; font-weight: 800; }
.rhyRes .rrT { padding-right: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #cfc6e2; }
.rrM { display: flex; align-items: center; gap: 12px; } .rrM > div { display: grid; }
.rrR { font: 900 40px/1 system-ui, sans-serif; } .rrS { font-size: 20px; font-weight: 900; color: #fff; } .rrB { color: #ffe14a; font-weight: 700; min-height: 1em; }
.rrJ { color: #cfc6e2; }
.rrW { display: grid; gap: 1px; width: 100%; min-width: 220px; } .markBox .rrW { display: grid; gap: 1px; } .rrW[hidden], .markBox .rrW[hidden] { display: none; }
.rwH { color: #cfc6e2; margin-top: 2px; } .rwL, .markBox .rwL { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; } .rwL.me { color: #ffe14a; font-weight: 800; }
@media (pointer: coarse) and (orientation: portrait) { .rhyRes { right: auto; left: 50%; transform: translateX(-50%); } }
/* 2026-11-19 UI 검수: 좁은 폰은 위쪽 줄이 두 줄로 깨졌다(보/통 · 점수) → 난이도 글자를 빼고 한 줄로. 고르는 창 버튼도 글자가 꺾이지 않게 줄을 넘긴다 */
.rhyTop > * { white-space: nowrap; } .rhyPick div { flex-wrap: wrap; justify-content: center; } .rhyPick button { white-space: nowrap; }
@media (max-width: 520px) { .rhyTop { gap: 8px; font-size: 12px; } .rhyTop .rhyD { display: none; } .rhyTop .rhyC { font-size: 13px; } .rhyF.on { width: 64px; } }
/* PC: 고르는 창(순위를 펼치면 길어진다)이 가운데 아래 내 캐릭터를 가렸다 → 오른쪽 아래 */
@media (pointer: fine) and (min-width: 900px) { .rhyPick { left: auto; right: 16px; transform: none; bottom: 140px; } }
body.rhyOn .hud.bottom, body.rhyOn #tapBtn, body.rhyOn #joy, body.rhyOn #zoomBtn, body.rhyOn #camLockBtn, body.rhyOn #hint, body.rhyOn #stageGo, body.rhyOn #chorusBtn { display: none !important; }
.testPanel { position: fixed; z-index: 30; left: 8px; top: calc(110px + env(safe-area-inset-top, 0px)); display: grid; gap: 6px; justify-items: start; }
.testTog { padding: 7px 12px; border-radius: 999px; background: var(--fan); color: var(--fanInk); font-size: 13px; font-weight: 800; }
.testBox { width: min(330px, calc(100vw - 16px)); max-height: min(70vh, 560px); overflow-y: auto; padding: 8px 10px 10px; border-radius: 16px; background: #17141ff2; border: 1px solid #b9a3ff66; box-shadow: 0 10px 26px -12px #000; display: grid; gap: 4px; }
.testBox b { font-size: 11px; color: var(--fan); margin-top: 4px; }
.testRow { display: flex; flex-wrap: wrap; gap: 4px; }
.testNow { font-size: 11px; color: #ffe14a; font-weight: 700; }
.testRow button { padding: 5px 9px; border-radius: 8px; background: #ffffff12; border: 1px solid #ffffff26; color: var(--ink); font-size: 12px; font-weight: 700; }
.testRow button:active { background: var(--fan); color: var(--fanInk); }
/* 객석 콜 글씨는 조금 작게 (2026-11-04 사용자 요청) */
.shout.call { font-size: 20px; }
.shout.bot { font-family: var(--body); font-weight: 800; font-size: 12px; text-shadow: 0 1px 3px #000c; } /* 봇(NPC·공연자) 글자는 작게 (2026-11-04 사용자 요청) */
.shout.emo.bot { font-size: 18px; }
@media (max-width: 520px) { .shout.bot { font-size: 11px; } .shout.emo.bot { font-size: 14px; } }
@media (max-width: 520px) { .shout.call { font-size: 14px; } }
html { font-synthesis-weight: none; } /* 굵은 글꼴이 없는 Dela Gothic One 을 가짜로 굵게 그리지 않는다 */

/* PC 화면 정리 (2026-11-05 사용자 결정): 위쪽 줄은 자주 쓰는 4개만 글자, 나머지는 아이콘 + 바로 뜨는 이름 풍선.
   아래 줄은 단축키 표시, 지금 열린 창은 라벤더 바탕 + 아래 막대, 미션 안내는 테두리 대신 작은 주황 점 */
.rbHint { font-size: 11px; }
.roomBtn .door { width: 16px; height: 16px; flex: none; }
.hud.bottom kbd { display: none; }
body:not(.menuOpen) #hallsBtn { display: none; } /* 방 이름 버튼이 같은 일을 한다 (폰 메뉴 안에서는 그대로) */
@media (min-width: 521px) and (hover: hover) and (pointer: fine) {
  #soundText, #friendBtn .t, #watchBtn .t { display: none; }
  #topTools [data-tip] { position: relative; }
  #topTools [data-tip]:hover::before, #topTools [data-tip]:focus-visible::before { content: attr(data-tip); position: absolute; z-index: 30; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    padding: 5px 10px; border-radius: 8px; background: #17141ff2; border: 1px solid var(--line); color: var(--ink); font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none;
    box-shadow: 0 6px 14px -8px #000; animation: tipIn .15s ease-out .3s both; }
  #topTools > :last-child[data-tip]::before { left: auto; right: 0; transform: none; }
  @keyframes tipIn { from { opacity: 0; } }
  .hud.bottom .act { position: relative; }
  .hud.bottom .act kbd { display: inline; margin-left: 4px; font: 600 11px/1 var(--body); color: var(--dim); }
  /* 콜·리액션·신청곡·흔들기·최애색 창은 가운데 그대로 (2026-11-05 사용자), 열린 동안 다른 사람 이름표는 흐리게 */
  body:has(#callPop:not([hidden]), #emotePop:not([hidden]), #songPop:not(.side):not([hidden]), #wavePop:not([hidden]), #colorPop:not([hidden])) .tag:not(.me) { opacity: .3; }
  .tag { transition: opacity .2s; }
  /* 옆 창(설정·퀘스트)이 열린 동안 알림은 숨긴다 (창 위를 덮었다). 닫으면 이어서 뜬다 */
  body:has(.pop.side:not([hidden])) .toasts { visibility: hidden; }
  .hud.top, .hud.bottom, .zoomBtn, .camLock { transition: opacity .6s ease; }
  body.idle .hud.top, body.idle .hud.bottom, body.idle .zoomBtn, body.idle .camLock { opacity: .3; }
.tag { transition: opacity .6s; } body.songOn .tag:not(.me) { opacity: .35; } /* 곡이 나오는 동안 남의 이름표는 흐리게 (2026-11-05 사용자: 공연 중엔 잘 안 보이게). 내 이름표는 그대로 */
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  #charDlg { width: min(900px, calc(100% - 48px)); }
  #charDlg form { grid-template-columns: 340px minmax(0, 1fr); column-gap: 20px; row-gap: 0; align-items: start; }
  #charDlg form > * { grid-column: 2; margin-bottom: 12px; } /* 줄 간격 대신 아래 여백: 미리보기가 걸친 빈 줄에 간격이 쌓이지 않게 */
  #charDlg .dlgHead { grid-column: 1 / -1; }
  #charDlg .pvWrap { grid-column: 1; grid-row: 2 / span 40; margin: 0; padding: 6px 0 10px; box-shadow: none; }
  #charDlg #preview { width: 320px; height: 320px; }
}
/* 설정 묶음 · 켜짐 표시는 오른쪽 알약 하나 (줄 바탕은 칠하지 않는다) · 켜짐·선택은 라벤더 */
.setHead { display: flex; align-items: center; justify-content: space-between; }
.pop.settings .setHead h3 { margin: 0; }
.setHelp { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--dim); }
.setHelp:hover, .setHelp:focus-visible { background: var(--line); color: var(--ink); }
.setHelp svg { width: 18px; height: 18px; }
.pop.settings h4.sg { margin: 10px 12px 2px; font-size: 11px; font-weight: 700; color: var(--dim); }
.pop.settings .setHead + h4.sg { margin-top: 2px; }
.setrow[aria-pressed="true"] { background: none; }
.setrow[aria-pressed="true"]:hover { background: var(--line); }
.setrow[aria-pressed="true"]::after, .setrow .tagMode { background: var(--fan); color: var(--fanInk); }
.support > summary { list-style: none; cursor: pointer; }
.support > summary::-webkit-details-marker { display: none; }
.support .chev { margin-left: auto; color: var(--dim); font-size: 16px; transition: transform .2s; }
.support[open] .chev { transform: rotate(90deg); }
.support[open] { display: grid; gap: 4px; padding-bottom: 4px; border-radius: 12px; background: #ffffff08; }
@media (min-width: 521px) and (hover: hover) and (pointer: fine) {
  .hud.bottom .act[aria-expanded="true"] { background: #b9a3ff26; color: var(--fan); }
  .hud.bottom .act[aria-expanded="true"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--fan); }
  .cueGlow { outline: 0; background: none; }
  .cueGlow::before { content: ""; position: absolute; top: 5px; left: 7px; width: 8px; height: 8px; border-radius: 50%; background: #ff9a2e; }
}

/* 폰 검수 결정 (2026-11-05): 설정·퀘스트·신청곡은 높고 불투명한 시트, 메뉴 숫자에 이름, 닫기는 ✕ 하나 */
.mt { display: none; }
@media (max-width: 520px), (pointer: coarse) and (orientation: landscape) and (max-height: 520px) {
  #setPop:not(.side), #questPop:not(.side), #songPop:not(.side) { max-height: 60dvh; background: #17141ff5; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.menuOpen #topTools .mt { display: block; font-size: 11px; color: var(--ink); }
  body.menuOpen #topTools #count::after { content: "명"; }
  body.popOpen .popClose { width: 48px; padding: 0; justify-content: center; border-radius: 50%; }
  /* 높은 시트가 열린 동안 그 위로 겹치던 객석 카메라 테두리·알림은 숨긴다 */
  body:has(#setPop:not([hidden]), #questPop:not([hidden]), #songPop:not([hidden])) :is(#camPip, .toasts) { visibility: hidden; }
}

/* MC 자막 (2026-11-05): 아래 버튼 줄 바로 위 가운데 */
.mcCap { position: absolute; z-index: 6; left: 50%; bottom: calc(104px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: min(640px, calc(100% - 32px)); padding: 8px 16px; border-radius: 12px; background: #0b0912cc; color: var(--ink); font-size: 15px; line-height: 1.5; text-align: center; word-break: keep-all; pointer-events: none; }
.mcCap.in { animation: capIn .35s ease-out; }
.mcCap b { display: block; font-size: 17px; font-weight: 800; line-height: 1.4; } .mcCap span { display: block; font-size: 13px; color: var(--dim); } /* 일본어(공연자 말투) + 한국어 자막 */
@keyframes capIn { from { opacity: 0; transform: translateX(-50%) translateY(8px); } }
@media (max-width: 520px) { .mcCap { bottom: calc(190px + env(safe-area-inset-bottom, 0px)); font-size: 13px; } }
/* MC 말풍선 (2026-11-07 사용자: MC 대사는 코스프레 공연자 머리 위 말풍선으로). 공연자가 화면에 보일 때만 그 위에, 안 보이면 아래 자막 자리 */
.mcCap.bubble { bottom: auto; transform: translate(-50%, -100%); max-width: min(300px, calc(100% - 24px)); border-radius: 14px; background: #fffffff0; color: #1a1530; padding: 7px 13px; box-shadow: 0 6px 16px -8px #000; }
.mcCap.bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #fffffff0; }
.mcCap.bubble b { font-size: 15px; color: #1a1530; } .mcCap.bubble span { color: #4a4460; font-size: 12px; }
.mcCap.bubble.in { animation: bubIn .3s ease-out; }
@keyframes bubIn { from { opacity: 0; transform: translate(-50%, -100%) scale(.85); } }
@media (orientation: landscape) and (max-height: 500px) { .entry .entryWhat, .lobby-head p { display: none; } } /* 가로 폰: 입장 버튼이 화면 아래로 잘리지 않게 */
/* 가로 폰 (2026-11-07 사용자: 가로 전용 UI, 왼쪽 조작 · 오른쪽 엄지 버튼): 세로 폰 엄지 배치를 그대로 쓰고(위 미디어 쿼리), 높이가 낮은 만큼만 맞춘다 */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 520px) {
  .hud.top, .now, .toasts, .mcCap { zoom: .86; } .cue, .mission { zoom: .72; max-width: 220px; } /* 미션·응원 상자는 무대를 가리지 않게 작게 (2026-11-07 사용자) */
  .toasts { top: calc(64px + env(safe-area-inset-top, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); right: auto; transform: none; justify-items: start; max-width: min(320px, 40vw); } /* 왼쪽 위 (2026-11-07 사용자: 알림이 화면 가운데에 뜨지 않게) · 오른쪽 미션 상자·엄지 버튼과도 겹치지 않게 */
  /* 손 위치 (2026-11-07 사용자: 가로로 쥐면 엄지가 화면 가장자리보다 조금 안쪽·위에 닿는다): 스틱과 엄지 버튼 무리를 가장자리에서 띄운다 */
  .joy { left: calc(max(14px, env(safe-area-inset-left, 0px)) + 18px); bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
  .zoomBtn, .camLock { left: calc(max(22px, env(safe-area-inset-left, 0px)) + 18px); }
  .zoomBtn { bottom: calc(126px + env(safe-area-inset-bottom, 0px)); } .camLock { bottom: calc(184px + env(safe-area-inset-bottom, 0px)); }
  .stageGo { left: calc(max(22px, env(safe-area-inset-left, 0px)) + 18px); bottom: calc(242px + env(safe-area-inset-bottom, 0px)); width: 40px; height: 40px; } .stageGo small { display: none; } .stageGo b { font-size: 17px; }
  .hud.bottom { right: calc(env(safe-area-inset-right, 0px) + 16px); bottom: 12px; }
  .tapBtn { right: calc(env(safe-area-inset-right, 0px) + 30px); bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
  /* 빠른 메뉴(콜·리액션·흔들기·최애색): 오른쪽 가장자리 좁은 세로 칸 (2026-11-07 사용자: 넓게 펼치면 가운데 화면을 가린다). 오른쪽 큰 원이 떠 있으면 그 위로 */
  .pop.grid, .pop.emos, #colorPop, #wavePop { left: auto !important; right: calc(env(safe-area-inset-right, 0px) + 10px); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: 128px; max-height: calc(100dvh - 76px); overflow-y: auto; } /* left: 큰 창용 규칙(미션 원이 떠 있을 때 left 8px)이 흔들기 메뉴에도 걸려서 */
  .pop.emos, #colorPop { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pop.emos > *, #colorPop > * { min-height: 44px; }
  body:has(#tapBtn:not([hidden]), .reply:not([hidden])) :is(.pop.grid, .pop.emos, #colorPop, #wavePop) { bottom: calc(158px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 222px); }
  #wavePop { grid-template-columns: repeat(2, minmax(0, 1fr)); } #wavePop #colorBtn { grid-column: 1 / -1; }
  .pop.grid .call, #wavePop > * { min-height: 42px; }
  body.popOpen .popClose { right: calc(env(safe-area-inset-right, 0px) + 146px); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } /* 닫기는 메뉴 칸 바로 왼쪽 아래 */
  .mission, .cue { top: auto; bottom: calc(322px + env(safe-area-inset-bottom, 0px)); } /* 다른 가로 규칙의 top 이 남아 상자가 위아래로 늘어났다 · 엄지 부채(사진 버튼) 위로 (zoom .72 이라 실제로는 약 232px) */
}
