/* 냥냥 댄스 전용 스타일 (공통은 ../style.css) */

.best { text-align: center; margin: 0 0 4px; font-size: 1.1rem; }
.best b { color: var(--accent); font-size: 1.5rem; }
.center { text-align: center; }
.muted { color: var(--muted); margin: 0 0 8px; }
.roll-row { margin-top: 8px; }
.roll-row button.roll { flex: 1 1 130px; min-width: 0; max-width: 340px; padding: 14px 10px; white-space: nowrap; }
#btnRoom { font-size: clamp(0.8rem, 3.9vw, 1rem); }

.pick-title { text-align: center; font-weight: 700; margin: 8px 0 6px; }
.picker { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.picker button {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 4px 0; min-width: 0; background: #fff; border-radius: 10px;
}
.picker button canvas { width: 40px; height: 40px; max-width: 100%; }
.picker button small { font-size: 0.68rem; color: var(--muted); white-space: nowrap; }
.picker button.on { border-color: var(--accent); background: #fff3c4; box-shadow: 0 0 0 3px rgba(181, 72, 45, 0.15); }

.room-title { text-align: center; font-weight: 800; font-size: 1.15rem; margin: 0 0 10px; }
.room-title small { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.seats { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seats li {
  display: flex; align-items: center; gap: 6px; min-height: 46px; min-width: 0;
  padding: 4px 8px; border: 2px solid var(--line, #e2d8c5); border-radius: 12px; background: #fff;
}
.seats li.empty { border-style: dashed; color: var(--muted); justify-content: center; font-size: 0.85rem; }
.seats li.me { border-color: var(--accent); background: #fff3c4; }
.seats canvas { width: 34px; height: 34px; flex: none; }
.seats .seat-name { font-weight: 700; font-size: 0.88rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seats .seat-x { margin-left: auto; padding: 2px 8px; font-size: 0.8rem; flex: none; }
#room .row { margin-bottom: 8px; }
#room input { min-width: 0; flex: 1; }
.invite-box { margin: 4px 0 10px; font-size: 0.9rem; }
.invite-box p { margin: 0 0 6px; }

.standings { list-style: none; padding: 0; margin: 4px 0 12px; text-align: left; }
.standings li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; }
.standings li.me { background: #fff3c4; font-weight: 700; }
.standings b { width: 1.7em; text-align: center; flex: none; }
.standings canvas { width: 28px; height: 28px; flex: none; }
.standings span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standings em { font-style: normal; font-weight: 800; color: var(--accent); flex: none; }

/* 위 상태줄: 글자 크기를 게임판 폭에 맞춰(dance.js resize) 한 줄로 */
.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  margin: 6px auto 4px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  max-width: 100%;
}
.hud > span { flex: none; }
#hudScore { color: var(--accent); }
.hud-btns { display: flex; gap: 0.35em; flex: none; }
.hud button { padding: 0.25em 0.55em; font-size: 1em; border-radius: 0.5em; }

.stage-wrap { display: flex; justify-content: center; }
#stage {
  display: block;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.over-score { margin: 4px 0 0; font-size: 2.2rem; font-weight: 800; color: var(--accent); }

.playing .rules { display: none; }
body.playing { overscroll-behavior: none; user-select: none; -webkit-user-select: none; touch-action: none; }

.online-line { margin: 4px 0 0; font-size: 0.85rem; color: var(--muted); min-height: 0; }
.online-line:empty { display: none; }

.ready-btn { min-width: 220px; padding: 12px 16px; font-size: 1.05rem; }
.seats .seat-ready { margin-left: auto; flex: none; font-size: 0.95rem; }
