:root {
  --bg: #0b0806;
  --surface: rgba(24, 17, 12, 0.88);
  --surface-2: rgba(44, 31, 22, 0.92);
  --line: rgba(224, 164, 88, 0.22);
  --text: #f4ead5;
  --muted: #b8a68a;
  --accent: #e0a458;
  --accent-strong: #f2b766;
  --danger: #e46a5a;
  --ok: #7fbf7f;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ── 3D 레이어: WebGL 아래, 이름표 위 ── */
#app { position: fixed; inset: 0; touch-action: none; }
#gl, #labels { position: absolute; inset: 0; }
#gl { z-index: 1; }
#gl canvas { display: block; width: 100%; height: 100%; }
#labels { z-index: 2; pointer-events: none; }

/* ── 유튜브 플레이어: 3D 밖의 평평한 창. 유튜브 규정대로 맨 앞에 두고(아무것도 겹치지 않게) 변형하지 않는다 ── */
#player {
  position: fixed; z-index: 60; background: #000; overflow: hidden; border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55); min-width: 356px; min-height: 200px;
}
#player iframe { display: block; width: 100%; height: 100%; border: 0; }
#player-backdrop { position: fixed; inset: 0; z-index: 58; background: rgba(0, 0, 0, 0.88); }
#player-expand {
  position: fixed; z-index: 59; padding: 4px 10px; border-radius: 999px; font-size: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.bigscreen-close {
  position: fixed; top: 12px; right: 12px; z-index: 61; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
}

/* 이름표·말풍선 */
.nametag {
  font-size: 12px; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  background: rgba(0, 0, 0, 0.55); color: #fff;
}
.nametag.me { background: rgba(224, 164, 88, 0.85); color: #1a0f06; }
.bubble {
  max-width: 200px; padding: 6px 10px; border-radius: 12px; font-size: 13px; line-height: 1.35;
  background: #fff8ea; color: #2a1a10; word-break: break-word; text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.emote-pop { font-size: 28px; animation: pop 1.8s ease-out forwards; }
@keyframes pop {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { transform: translateY(-6px) scale(1.1); opacity: 1; }
  100% { transform: translateY(-36px) scale(1); opacity: 0; }
}

/* ── 입장 화면 ── */
.overlay {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at center, rgba(11, 8, 6, 0.55), rgba(11, 8, 6, 0.92));
}
.card {
  width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 24px; display: grid; gap: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); backdrop-filter: blur(6px);
}
.logo {
  margin: 0; text-align: center; font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 34px; letter-spacing: 0.06em; color: var(--accent-strong);
  text-shadow: 0 0 18px rgba(242, 183, 102, 0.45);
}
.sub { margin: -8px 0 4px; text-align: center; color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.field input, .admin input, .panel-input {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35); color: var(--text); font-size: 16px; outline: none;
}
.field input:focus, .admin input:focus, .panel-input:focus { border-color: var(--accent); }
.colors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.colors button {
  aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; padding: 0;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25);
}
.colors button[aria-checked="true"] { border-color: var(--text); transform: scale(1.08); }
.admin summary { color: var(--muted); font-size: 13px; cursor: pointer; }
.admin input { margin-top: 8px; }
.primary {
  padding: 13px; border: 0; border-radius: 10px; background: var(--accent); color: #1a0f06;
  font-weight: 700; font-size: 16px;
}
.primary:disabled { opacity: 0.6; cursor: progress; }
.status { margin: 0; min-height: 1.2em; text-align: center; font-size: 13px; color: var(--muted); }
.status.error { color: var(--danger); }

/* ── HUD ── */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#hud > * { pointer-events: auto; }
#hud.menu-open { z-index: 25; }
#topbar {
  position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 12px;
  justify-content: space-between; align-items: center; pointer-events: none;
}
#topbar > * { pointer-events: auto; }
.np {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 12px; min-width: 0; max-width: min(520px, 55vw); display: grid;
}
.np-label { font-size: 10px; letter-spacing: 0.14em; color: var(--accent); }
#np-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.top-actions {
  display: flex; gap: 8px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px;
}
.top-actions button { background: none; border: 0; font-size: 18px; padding: 2px 4px; }
#count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.sound-ctl { position: relative; display: flex; align-items: center; }
.top-actions #sound-opts { font-size: 12px; color: var(--muted); padding: 2px; }
#sound-menu {
  position: absolute; top: calc(100% + 10px); right: -6px; z-index: 30; display: grid; gap: 8px; min-width: 170px;
  padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
#sound-menu label { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; cursor: pointer; }
#sound-menu input { width: 16px; height: 16px; accent-color: var(--accent); }
.volume { display: flex; align-items: center; gap: 4px; }
.volume input { width: 90px; accent-color: var(--accent); }
#ios-note { font-size: 11px; color: var(--muted); max-width: 120px; }

#emotes {
  position: absolute; bottom: calc(16px + var(--safe-b)); left: 16px;
  display: flex; gap: 8px;
}
#emotes button, #sit-btn, #tap-sound {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 20px; display: flex; align-items: center; gap: 6px;
}
#emotes button span { font-size: 13px; color: var(--muted); }
#emotes button:disabled { opacity: 0.45; }
#actions {
  position: absolute; bottom: calc(72px + var(--safe-b)); left: 16px; right: 390px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; pointer-events: none;
}
#actions > * { pointer-events: auto; }
#sit-btn { font-size: 15px; background: var(--accent); color: #1a0f06; font-weight: 700; white-space: nowrap; }
#jump-btn { display: none !important; }
#tap-sound {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 18px; padding: 14px 22px; background: var(--accent); color: #1a0f06; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
#conn-status {
  position: absolute; top: 70px; left: 50%; transform: translateX(-50%); margin: 0;
  background: var(--danger); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 13px;
}
#joystick {
  position: absolute; left: 24px; bottom: calc(24px + var(--safe-b)); width: 120px; height: 120px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  touch-action: none;
}
#joystick .knob {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; background: rgba(224, 164, 88, 0.7);
}

/* ── 패널 ── */
#panel {
  position: fixed; z-index: 20; top: 72px; right: 12px; bottom: 12px; width: 360px;
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(6px);
  transition: transform 0.25s ease;
}
#panel.collapsed { transform: translateX(calc(100% - 44px)); }
.tabs { display: flex; border-bottom: 1px solid var(--line); flex: none; }
.tabs button {
  flex: 1; background: none; border: 0; padding: 11px 4px; font-size: 13px; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tabs button[aria-selected="true"] { color: var(--accent-strong); border-bottom-color: var(--accent); }
.tabs .toggle { flex: none; width: 44px; font-size: 16px; }
.tab-body { flex: 1; min-height: 0; display: none; flex-direction: column; }
.tab-body.active { display: flex; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px; }
.composer { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); flex: none; }
.composer .panel-input { padding: 9px 10px; font-size: 15px; }
.btn {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; font-size: 13px; white-space: nowrap;
}
.btn.accent { background: var(--accent); color: #1a0f06; border-color: transparent; font-weight: 700; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: 0.4; cursor: default; }
.icon-btn { background: none; border: 0; padding: 4px 6px; font-size: 14px; color: var(--muted); }
.icon-btn:hover { color: var(--text); }

.chat-msg { margin: 0 0 8px; font-size: 14px; line-height: 1.4; word-break: break-word; }
.chat-msg .who { color: var(--accent); margin-right: 6px; font-weight: 600; }
.chat-msg.system { color: var(--muted); font-size: 12px; }

.track { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.track img { width: 64px; height: 36px; object-fit: cover; border-radius: 4px; flex: none; background: #000; }
.track .meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.track .title { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .by { font-size: 11px; color: var(--muted); }
.track .actions { display: flex; flex: none; }
.badge {
  display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 999px; margin-right: 4px;
  background: rgba(224, 164, 88, 0.2); color: var(--accent-strong);
}
.section-title { font-size: 11px; letter-spacing: 0.12em; color: var(--accent); margin: 14px 0 4px; }
.section-title:first-child { margin-top: 0; }
.now { background: rgba(224, 164, 88, 0.08); border-radius: 8px; padding: 8px; }
.controls { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.progress { width: 100%; accent-color: var(--accent); margin-top: 6px; }
.time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); font-size: 13px; text-align: center; padding: 24px 0; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.req-status { font-size: 11px; }
.req-status.approved { color: var(--ok); }
.req-status.rejected { color: var(--danger); }
.toast {
  position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 50;
  background: var(--surface-2); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px;
  font-size: 13px; animation: fade 3s forwards;
}
@keyframes fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* ── 모바일 ── */
@media (max-width: 767px), (pointer: coarse) and (max-width: 1024px) {
  #topbar { top: 8px; left: 8px; right: 8px; gap: 6px; }
  .np { max-width: 46vw; padding: 6px 10px; }
  .volume input { width: 64px; }
  #ios-note { display: none; }
  #emotes { left: auto; right: 12px; transform: none; flex-direction: column; bottom: calc(76px + var(--safe-b)); }
  #emotes button { padding: 8px 10px; }
  #emotes button span { display: none; }
  #actions { left: 12px; right: 12px; justify-content: center; bottom: calc(196px + var(--safe-b)); }
  #jump-btn { display: flex !important; }
  #panel {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 60vh; border-radius: 16px 16px 0 0;
    padding-bottom: var(--safe-b);
  }
  #panel.collapsed { transform: translateY(calc(100% - 44px - var(--safe-b))); }
  #panel .tabs .toggle { order: -1; }
  #joystick { bottom: calc(60px + var(--safe-b)); }
}

/* ── 꾸미기 ── */
.outfit-btn {
  padding: 10px; border-radius: 10px; border: 1px dashed var(--line); background: rgba(0, 0, 0, 0.25);
  color: var(--text); font-size: 14px;
}
.wardrobe { z-index: 45; }
.wardrobe-card { width: min(760px, 100%); max-height: calc(100vh - 32px); padding: 18px; gap: 12px; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.wardrobe-head { display: flex; justify-content: space-between; align-items: center; }
.wardrobe-head h2 { margin: 0; font-size: 18px; color: var(--accent-strong); }
.wardrobe-close { background: none; border: 0; font-size: 18px; color: var(--muted); }
.wardrobe-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; min-height: 0; }
.wardrobe-preview {
  height: 300px; border-radius: 14px; overflow: hidden; touch-action: none; cursor: grab;
  background: radial-gradient(circle at 50% 35%, #3a2416, #120b07 75%);
}
.wardrobe-preview canvas { display: block; }
.wardrobe-pick { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-height: 0; }
.wardrobe-tabs { display: flex; gap: 6px; }
.wardrobe-tabs button {
  flex: 1; padding: 8px 0; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); font-size: 14px;
}
.wardrobe-tabs button[aria-selected="true"] { background: var(--accent); color: #1a0f06; border-color: var(--accent); font-weight: 700; }
.wardrobe-items {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px;
  overflow-y: auto; max-height: 300px; padding-right: 2px; scrollbar-color: var(--line) transparent;
}
.wardrobe-item {
  position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3);
}
.wardrobe-item .icon { font-size: 24px; line-height: 1.1; }
.wardrobe-item .name { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.2; }
.wardrobe-item .badge { position: absolute; top: 3px; right: 4px; font-size: 10px; }
.wardrobe-item[aria-pressed="true"] { border-color: var(--accent); background: rgba(224, 164, 88, 0.2); }
.wardrobe-item[aria-pressed="true"] .name { color: var(--text); }
.wardrobe-item:disabled { opacity: 0.45; cursor: not-allowed; }
.wardrobe-note { margin: 0; font-size: 12px; color: var(--muted); }
.wardrobe-foot { display: flex; gap: 8px; justify-content: flex-end; }
.wardrobe-foot .primary { min-width: 120px; padding: 10px 16px; }
.wardrobe-reset { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--muted); }

@media (max-width: 640px) {
  .wardrobe-card { padding: 14px; }
  .wardrobe-body { grid-template-columns: 1fr; }
  .wardrobe-preview { height: 190px; }
  .wardrobe-items { max-height: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── 바: 주문·잡기/마시기 버튼, 칵테일 메뉴, 제조 연출 ── */
#order-btn, #act-btn {
  border-radius: 999px; padding: 8px 14px; font-size: 15px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--accent); color: var(--text);
}
#order-btn { background: linear-gradient(135deg, #ff6fa3, #e0a458) !important; color: #1a0f06 !important; border: 0 !important; }
#act-btn kbd, #sit-btn kbd {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-right: 6px; border-radius: 5px;
  background: var(--accent); color: #1a0f06; font: 700 12px/18px var(--font);
}
.cocktail-menu { z-index: 45; }
.menu-card { width: min(1000px, 100%); max-height: calc(100vh - 32px); padding: 18px; gap: 10px; grid-template-rows: auto auto auto minmax(0, 1fr); }
.menu-body { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 12px; min-height: 0; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; overflow-y: auto; align-content: start; scrollbar-color: var(--line) transparent; }
.menu-item.previewing { border-color: var(--accent-strong); background: rgba(224, 164, 88, 0.16); }
.menu-preview {
  display: grid; grid-template-rows: auto auto auto auto auto 1fr; gap: 4px; align-content: start; padding: 12px; border-radius: 14px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); overflow-y: auto;
}
.menu-stage { height: 230px; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #3a2416, #120b07 75%); }
.menu-stage canvas { display: block; }
.menu-pv-name { margin-top: 6px; font-size: 18px; color: var(--accent-strong); }
.menu-pv-en { font: italic 13px Georgia, serif; color: var(--muted); }
.menu-pv-desc { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.menu-pv-meta { margin: 2px 0 0; font-size: 12px; color: var(--accent); }
.menu-pv-order { align-self: end; margin-top: 10px; }
.menu-preview.premium { border-color: rgba(232, 193, 90, 0.55); }
.menu-preview.premium .menu-stage { background: radial-gradient(circle at 50% 40%, #4a3510, #0d0904 75%); }
.menu-preview.premium .menu-pv-name { color: #ffe7a3; }
@media (max-width: 700px) {
  .menu-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .menu-preview { order: -1; grid-template-columns: 110px 1fr; grid-template-rows: none; column-gap: 10px; }
  .menu-stage { height: 120px; grid-row: span 5; }
  .menu-pv-name { margin-top: 0; font-size: 15px; }
  .menu-pv-desc { font-size: 13px; margin: 2px 0 0; }
  .menu-pv-order { padding: 8px; font-size: 14px; }
}
.menu-item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left;
  padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3);
}
.menu-item:hover { border-color: var(--accent); background: rgba(224, 164, 88, 0.12); }
.menu-item .swatch {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25), 0 0 14px rgba(255, 180, 100, 0.25);
}
.menu-item .text { display: grid; gap: 2px; min-width: 0; }
.menu-item .text b { font-size: 14.5px; }
.menu-item .text small { font-size: 11.5px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.menu-item .strength { font-size: 10px; color: var(--accent); letter-spacing: 1px; }

.cine { position: fixed; inset: 0; z-index: 35; pointer-events: none; }
.cine-bar {
  position: absolute; left: 0; right: 0; height: 12vh; background: #000;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cine-bar.top { top: 0; transform: translateY(-100%); }
.cine-bar.bottom { bottom: 0; transform: translateY(100%); }
.cine.on .cine-bar { transform: none; }
.cine-title {
  position: absolute; left: 0; right: 0; bottom: 15vh; text-align: center; opacity: 0;
  transform: translateY(12px) scale(0.96); transition: opacity 0.5s, transform 0.5s;
}
.cine.title-on .cine-title { opacity: 1; transform: none; }
.cine-title small { display: block; font-size: 13px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--muted); }
.cine-title b {
  display: block; font: italic 700 clamp(34px, 7vw, 72px) Georgia, "Times New Roman", serif; color: #ffe1b0;
  text-shadow: 0 0 8px #ff8a3d, 0 0 26px #ff6a1a, 0 0 48px rgba(255, 90, 30, 0.6);
  animation: neon-flicker 2.4s steps(1) infinite;
}
.cine-title span { display: block; margin-top: 4px; font-size: 16px; color: var(--text); letter-spacing: 0.2em; }
@keyframes neon-flicker {
  0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; }
  20%, 63% { opacity: 0.55; }
}
.cine-hidden { visibility: hidden; }

#sit-btn kbd { background: #1a0f06; color: var(--accent); }
.screen-hover { cursor: zoom-in; }

/* ── 입장 화면: 가운데 입장 카드, 양옆에 열린 방 ── */
#entry { overflow-y: auto; place-items: safe center; }
.entry-layout {
  display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 380px) minmax(200px, 280px);
  gap: 20px; align-items: start; justify-content: center; width: min(1020px, 100%);
}
.room-col { display: grid; gap: 8px; align-content: start; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-color: var(--line) transparent; }
.room-col-title { margin: 4px 2px; font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }
.room-card {
  display: grid; gap: 4px; text-align: left; padding: 10px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(6px);
  transition: border-color 0.15s, transform 0.15s;
}
.room-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.room-card.selected { border-color: var(--accent-strong); background: rgba(224, 164, 88, 0.18); box-shadow: 0 0 0 1px var(--accent) inset; }
.room-card.quiet:not(.selected) { opacity: 0.7; }
.room-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.room-card-head b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.room-card .room-desc { font-size: 12px; color: var(--muted); white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.room-pick { font-size: 11px; color: var(--muted); }
.room-card.selected .room-pick { color: var(--accent-strong); font-weight: 700; }
.room-empty { padding: 14px 12px; border-radius: 12px; border: 1px dashed var(--line); background: rgba(0, 0, 0, 0.3); display: grid; gap: 10px; }
.room-empty p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.secondary-btn {
  padding: 11px; border-radius: 10px; border: 1px solid var(--accent); background: transparent; color: var(--accent-strong);
  font-weight: 700; font-size: 15px;
}
.secondary-btn:hover { background: rgba(224, 164, 88, 0.12); }
@media (max-width: 900px) {
  .entry-layout { grid-template-columns: minmax(0, 420px); }
  #entry-form { order: -1; width: 100%; }
  .room-col { max-height: none; overflow: visible; }
}

/* ── 방·계정·포인트 ── */
.entry-room {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted);
  padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line);
}
.entry-room b { color: var(--accent-strong); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-row button {
  padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px;
}
.account-box .hint { margin: 8px 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.account-row { display: flex; gap: 6px; margin-top: 6px; }
.account-row input { flex: 1; margin-top: 0 !important; font-size: 13px !important; padding: 8px 10px !important; }
#room-title { font-size: 13px; color: var(--accent); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#points { font-size: 13px; color: #ffd76a; white-space: nowrap; cursor: pointer; }
#points:hover { text-decoration: underline; }
.wardrobe-head { gap: 10px; }
.wardrobe-head h2 { flex: 1; }
.wardrobe-points { font-size: 14px; color: #ffd76a; font-weight: 700; }
.wardrobe-item.locked .icon { filter: grayscale(0.6); opacity: 0.75; }
.wardrobe-item .badge.price { font-size: 10px; color: #ffd76a; top: 2px; right: 3px; }
.buy-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px;
  border-radius: 10px; background: rgba(255, 215, 106, 0.1); border: 1px solid rgba(255, 215, 106, 0.35); font-size: 13px;
}
.buy-btn { padding: 7px 12px; border-radius: 9px; border: 0; background: #ffd76a; color: #1a0f06; font-weight: 700; white-space: nowrap; }
.buy-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.rooms-dialog { z-index: 46; }
.rooms-card { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; gap: 10px; }
.room-private { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* ── 댄스 스테이지 버튼 ── */
#dance-bar {
  position: absolute; left: 16px; bottom: calc(128px + var(--safe-b));
  display: flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(20, 10, 30, 0.85); border: 1px solid rgba(255, 61, 154, 0.5);
  box-shadow: 0 0 18px rgba(255, 61, 154, 0.35);
}
#dance-bar button {
  display: flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 999px; border: 0;
  background: transparent; font-size: 18px; color: var(--text);
}
#dance-bar button span { font-size: 12.5px; color: #f6c6ff; }
#dance-bar button:hover { background: rgba(255, 61, 154, 0.18); }
#dance-bar button.on { background: linear-gradient(135deg, #ff3d9a, #9b5cff); }
#dance-bar button.on span { color: #fff; }
@media (max-width: 767px), (pointer: coarse) and (max-width: 1024px) {
  #dance-bar { left: 50%; transform: translateX(-50%); bottom: calc(250px + var(--safe-b)); flex-wrap: wrap; justify-content: center; width: min(92vw, 420px); border-radius: 18px; }
  #dance-bar button span { display: none; }
}

/* ── 프리미엄 샷 연출·메뉴 ── */
.cine.gold::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.8s;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 200, 90, 0.08), rgba(10, 6, 2, 0.55) 70%);
}
.cine.gold.on::before { opacity: 1; }
.cine.gold .cine-title b {
  color: #fff3c4; text-shadow: 0 0 8px #e8c15a, 0 0 26px #c9962a, 0 0 46px rgba(232, 193, 90, 0.6);
  font-family: "Didot", "Bodoni MT", Georgia, serif; letter-spacing: 0.04em; animation: none;
}
.cine.gold .cine-title small { color: #e8c15a; }
/* 프리미엄 샷: 불이 꺼진 듯 더 어둡게, 영문 이름은 한 글자씩 떠오른다 */
.cine.gold::before { background: radial-gradient(ellipse at 50% 45%, rgba(255, 200, 90, 0.06), rgba(6, 3, 1, 0.82) 62%); }
.cine.gold .cine-title b span { display: inline-block; white-space: pre; opacity: 0; transform: translateY(14px) scale(1.4); filter: blur(6px); }
.cine.gold.title-on .cine-title b span { animation: letter-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--i) * 55ms + 0.25s); }
@keyframes letter-in { to { opacity: 1; transform: none; filter: none; } }
.cine-flash { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at 50% 45%, #fff6d8, rgba(255, 220, 140, 0.5) 45%, transparent 75%); }
.cine-flash.warm { background: radial-gradient(circle at 50% 50%, #ffd08a, rgba(255, 120, 40, 0.45) 45%, transparent 75%); }
.cine-flash.on { animation: flash 0.55s ease-out; }
@keyframes flash { 0% { opacity: 0.85; } 100% { opacity: 0; } }
.menu-tabs { display: flex; gap: 6px; }
.menu-tabs button {
  flex: 1; padding: 8px 0; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); font-size: 14px;
}
.menu-tabs button[aria-selected="true"] { background: var(--accent); color: #1a0f06; border-color: var(--accent); font-weight: 700; }
.menu-item.premium { border-color: rgba(232, 193, 90, 0.45); background: linear-gradient(135deg, rgba(232, 193, 90, 0.1), rgba(0, 0, 0, 0.3)); }
.menu-item.premium .swatch { box-shadow: inset 0 0 0 2px #e8c15a, 0 0 14px rgba(232, 193, 90, 0.45); }
.menu-item.premium .strength { color: #ff8a3d; }

/* ── 방 공지(채팅 위) · 자동 승인 ── */
.notice { flex: none; margin: 10px 12px 0; padding: 8px 10px; border-radius: 10px; background: rgba(224, 164, 88, 0.1); border: 1px solid var(--line); }
.notice-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.08em; color: var(--accent); }
.notice-text { margin: 4px 0 0; font-size: 13px; line-height: 1.45; white-space: pre-line; word-break: break-word; max-height: 7.5em; overflow-y: auto; }
.notice-text.empty-notice { color: var(--muted); font-size: 12px; }
.notice-text.folded { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: none; cursor: pointer; opacity: 0.75; }
.notice-fold { background: none; border: 0; padding: 0; font-size: 11px; letter-spacing: 0.08em; color: var(--accent); }
.notice-form { display: grid; gap: 6px; margin-top: 6px; }
.notice-input { resize: vertical; font-size: 14px; padding: 8px 10px; }
.auto-row {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; cursor: pointer;
  background: rgba(127, 191, 127, 0.08); border: 1px solid rgba(127, 191, 127, 0.3);
}
.auto-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ok); flex: none; }
.auto-row span { display: grid; gap: 2px; }
.auto-row b { font-size: 14px; }
.auto-row small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.room-create textarea { resize: vertical; font-size: 14px; }
.color-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.color-row button { aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; padding: 0; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25); }
.color-row button[aria-checked="true"] { border-color: var(--text); transform: scale(1.1); }
.cine.gold.cheers .cine-title b { animation: cheers-pop 0.7s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes cheers-pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── 쿠폰 창 ── */
.coupons { z-index: 45; }
.coupon-card { width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px; gap: 10px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; font-size: 15px; }
.coupon-row .primary { padding: 10px 16px; font-size: 15px; white-space: nowrap; }
.coupon-card input:not([type="number"]) { text-transform: uppercase; letter-spacing: 0.04em; }
.coupon-card input::placeholder { text-transform: none; letter-spacing: 0; }
.coupon-card .status { text-align: left; }
