/* 택배 러시 전용 */
:root { --bg: #12161c; --panel: #1a2029; --panel-2: #232b37; --line: #323d4c; --muted: #9aa7b8; --accent: #ffa94d; --accent-ink: #2b1500; }
.how { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
.online { color: var(--accent); font-weight: 700; font-size: 14px; min-height: 1.5em; }
.guest-row, .join-row { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.join-row { margin-top: 12px; }
.guest-row input, .join-row input { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 0; }
.join-row input { width: 110px; text-transform: uppercase; letter-spacing: .2em; font-weight: 800; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.seg .gn-btn[aria-selected="true"], .seg .gn-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.team { color: var(--muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lobby { max-width: 560px; display: grid; gap: 16px; }
.lobby-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.lobby-head p { margin: 0; }
.code { font-size: 44px; font-weight: 900; letter-spacing: .18em; line-height: 1; }
.members { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.members li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.members li.empty { border-style: dashed; color: var(--muted); justify-content: center; }
.members .dot { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.members .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.members .tag { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.wait { color: var(--muted); text-align: center; }
.last { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.last h3 { margin: 0 0 6px; font-size: 15px; }

#play { position: fixed; inset: 52px 0 0 0; background: #0b0e12; user-select: none; -webkit-user-select: none; }
#canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hud { position: absolute; inset: 0 0 auto 0; display: flex; gap: 8px; align-items: center; padding: 10px 12px; pointer-events: none; flex-wrap: wrap; }
.chip { background: rgba(10, 14, 20, .78); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; display: flex; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.chip b { font-size: 18px; }
.chip.time.low b { color: #ff6b6b; }
#hud-stars { color: var(--gold); letter-spacing: 2px; }
.emotes { margin-left: auto; display: flex; gap: 4px; pointer-events: auto; }
.emotes button { background: rgba(10, 14, 20, .78); border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; font-size: 17px; cursor: pointer; padding: 0; }
.banner { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font-size: clamp(28px, 7vw, 56px); font-weight: 900; color: #fff; text-shadow: 0 4px 20px rgba(0, 0, 0, .7); opacity: 0; pointer-events: none; white-space: nowrap; text-align: center; }
.banner.show { animation: banner 2s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.7); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }

.touch { display: none; }
@media (pointer: coarse) {
  .touch { display: block; position: absolute; inset: 0; pointer-events: none; }
  .stick { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .18); left: 24px; bottom: 28px; opacity: .6; }
  .stick.active { opacity: 1; }
  .knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
  .act { position: absolute; right: 26px; bottom: 36px; width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 38px; pointer-events: auto; box-shadow: 0 6px 0 rgba(0, 0, 0, .35); touch-action: none; }
  .act:active, .act.down { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
  .emotes button { width: 32px; height: 32px; font-size: 15px; }
}
.big-score { font-size: 54px; font-weight: 900; letter-spacing: -.04em; line-height: 1; margin: 6px 0; font-variant-numeric: tabular-nums; }
.stars { font-size: 34px; color: var(--gold); letter-spacing: 4px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; text-align: center; }
.stats div { background: var(--panel-2); border-radius: 12px; padding: 8px 4px; }
.stats b { display: block; font-size: 20px; }
.stats span { font-size: 12px; color: var(--muted); }
.status-line { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); font-size: 14px; }

#play { touch-action: none; }
@media (pointer: coarse) {
  .emotes button { width: 40px; height: 40px; }
  .act { bottom: calc(24px + env(safe-area-inset-bottom)); }
  .stick { bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .members { grid-template-columns: minmax(0, 1fr); }
  .emotes { gap: 3px; }
  .banner { max-width: calc(100% - 24px); white-space: normal; }
}

#play-leave { pointer-events: auto; background: rgba(10, 14, 20, .78); }
