/* Bowling stage, the 1–4 player cards and the result list; the lobby, roster and dialogs come from shared/lobby.css. */
#laneStage { position: fixed; inset: 0; overflow: hidden; background: #171330; }
#gl, #hud { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#hud { pointer-events: none; }
.court-preview #laneStage { position: absolute; inset: 0; }
.lane-preview { background: #241c47; }
.bowl-art[hidden] { display: none; }
.bowl-art { object-fit: cover; object-position: center bottom; height: 250px; min-height: 0; }
#countRow.hidden, #cpuRow.hidden { display: none; }

/* 캐릭터 고르기: 사람 수만큼 카드 (1~5장) */
#select .bw-selbottom { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.bw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.bw-card { padding: 14px 16px; }
.bw-card .nm { font-size: 20px; }
.bw-card .row { flex-wrap: wrap; gap: 6px; }
.bw-card .row > button { padding: 7px 10px; }
.bw-card .row > button:last-child { padding: 7px 16px; }
.bw-card .bw-bump { font-size: 12px; }
.bw-card .bw-bump.on { background: #25b37f; border-color: #25b37f; color: white; }
.bw-card.bw-now { border-color: #8176db; box-shadow: 0 0 0 3px #8176db38, 0 8px 35px #49345f24; }
#select .selmid { display: flex; align-items: center; justify-content: center; gap: 16px; }
#select .selmsg { max-width: none; }
.tile { position: relative; }
.tile .bw-dots { position: absolute; top: 7px; left: 7px; display: flex; gap: 3px; }
.tile .bw-dots i { display: block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fffefa; box-shadow: 0 1px 3px #4b3b5c40; }

/* 결과 */
.bw-record { margin-top: 6px; font-size: 15px; font-weight: 800; color: #d9822b; }
.bw-record.hidden { display: none; }
.bw-rank { list-style: none; margin: 14px auto 0; padding: 0; max-width: 520px; text-align: left; }
.bw-rank li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; padding: 9px 14px; margin-bottom: 6px; border-radius: 14px; background: #f6f2fb; }
.bw-rank li.win { background: #fff4d6; box-shadow: 0 0 0 2px #ffd84d inset; }
.bw-rank li b { font-size: 15px; color: #514764; }
.bw-rank li strong { font-size: 20px; color: #514764; }
.bw-rank li > span:last-child { grid-column: 2 / 4; font-size: 12px; color: #88838b; }

.bw-card { min-width: 0; }
.bw-card .bw-bump.on { background: #327b54; border-color: #327b54; }
.bw-card.bw-now { border-color: var(--lavender); box-shadow: 0 0 0 3px #7161c92b, 0 8px 28px #49345f1c; }
.bw-rank li { padding: 13px 16px; }
.bw-rank li > span:last-child { color: #696173; line-height: 1.7; }

@media (max-width: 700px) {
  .feature-copy { grid-template-columns: 1fr; min-height: 0; }
  .feature-copy .feature-intro { grid-column: 1; grid-row: 2; padding-bottom: 0; }
  .feature-copy h2 { font-size: 35px; }
  .feature-copy h2 br { display: none; }
  .bowl-art { grid-column: 1; grid-row: 3; width: calc(100% + 12px); height: 185px; min-height: 0; margin: -20px -6px 0; object-fit: cover; object-position: center bottom; }
  .bw-cards { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
  #select .selmid { flex-wrap: wrap; }
}
