.select-page { padding-bottom: 12px; }
.selection-lobby-bar { position: sticky; top: 74px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -18px 12px; padding: 10px 18px; border-bottom: 1px solid #dce6f7; background: #f7f9fff2; backdrop-filter: blur(12px); box-shadow: 0 4px 12px #1c38650a; }
.selection-lobby-bar .selection-countdown { display: flex; align-items: center; gap: 10px; text-align: left; }
.selection-lobby-bar .selection-countdown strong { color: #0867ed; font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.selection-lobby-bar .selection-countdown strong.countdown-dial { position: relative; display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; background: conic-gradient(#a96300 var(--countdown-progress, 100%), #ded9d0 0); color: #80500f; font-family: Georgia, 'Times New Roman', serif; font-size: 22px; line-height: 1; }
.selection-lobby-bar .selection-countdown strong.countdown-dial::before { content: ''; position: absolute; z-index: -1; inset: 7px; border-radius: 50%; background: #f7f9ff; }
.selection-lobby-bar .selection-countdown strong.countdown-dial { isolation: isolate; }
.selection-lobby-bar .selection-status { min-height: 0; margin: 0; text-align: right; }
.selection-back { border: 0; background: none; color: #142344; font-size: 28px; padding: 0 8px 0 0; min-height: 44px; }
.selection-details { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 14px; color: #66758f; font-size: 11px; }
.selected-panel { border: 1px solid #e0dafa; border-radius: 16px; background: linear-gradient(120deg, #fff, #f3efff); overflow: hidden; margin-bottom: 16px; }
.selection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px 6px 13px; background: #f0ecff; }
.selection-label { display: flex; align-items: center; gap: 7px; }
.selection-label h3 { margin: 0; font-size: 13px; }
.selection-label > span { display: grid; place-items: center; min-width: 23px; height: 23px; border-radius: 50%; background: #e1d5ff; color: #6432ab; font-size: 11px; font-weight: 750; }
.selected-previews { display: flex; min-width: 0; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 12px; padding: 10px 12px; scrollbar-width: thin; }
.selected-preview { flex: 0 0 164px; scroll-snap-align: start; background: #ede5ff; border: 1px solid #d9caff; border-radius: 12px; padding: 6px; }
.selected-preview-title { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 12px; font-weight: 800; padding-left: 4px; min-height: 44px; }
.remove-card { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #d9caff; border-radius: 50%; background: #fff; color: #142344; font-size: 22px; line-height: 1; }
.remove-card:hover { background: #f5f0ff; }
.select-page button:focus-visible, .select-page input:focus-visible { outline: 3px solid #9e7af4; outline-offset: 2px; }
.selected-preview .preview-bingo { margin: 4px 0 0; border-radius: 8px; background: #d3c9ef; gap: 1px; }
.selected-preview .preview-bingo span { font-size: 12px; aspect-ratio: 1.15; }
.selected-preview .preview-bingo .preview-head { background: #7437d6; color: #fff; }
.selected-preview .preview-bingo .free { background: #fef1c6; color: #8c6000; }
.selection-mode.tabs { flex: 0 0 142px; margin: 0; gap: 2px; background: #fff; border-radius: 11px; padding: 2px; }
.selection-mode.tabs button { padding: 6px 8px; font-size: 11px; border: 0; border-radius: 9px; min-height: 40px; }
.selection-placeholder { color: #66758f; font-size: 12px; line-height: 1.5; padding: 10px 13px; margin: 0; }
.selection-browse-title { margin-bottom: 12px; }
.selection-browse-title h3 { margin: 0; font-size: 17px; }
.selection-search { display: block; margin-bottom: 12px; }
.selection-search input { width: 100%; border: 1px solid #d6dfef; border-radius: 13px; background: #fff; color: #142344; padding: 13px 14px; font-size: 13px; min-height: 44px; }
.selection-legend { display: flex; gap: 16px; color: #66758f; font-size: 11px; margin-bottom: 12px; }
.selection-legend span { display: flex; align-items: center; gap: 6px; }
.selection-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #0867ed; }
.selection-legend .taken-dot { background: #d9c6ff; }
.number-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; max-height: clamp(176px, calc(100dvh - 440px), 390px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #a9bad8 transparent; padding: 3px 4px 5px 2px; align-content: start; }
.has-selection .number-grid { max-height: clamp(176px, calc(100dvh - 630px), 390px); }
.card-number { position: relative; min-width: 0; min-height: 36px; aspect-ratio: 1; border: 1px solid #dbe3f1; border-radius: 9px; background: #fff; color: #142344; font-size: 12px; font-weight: 750; }
.card-number.chosen { background: #0867ed; color: #fff; border-color: #0867ed; box-shadow: 0 3px 8px #0867ed20; }
.card-number.chosen::after { content: '\2713'; position: absolute; right: 3px; top: 0; font-size: 10px; }
.card-number.taken { background: #ede5ff; color: #7437d6; border-color: #dbcafa; opacity: 1; }
.selection-no-results { grid-column: 1 / -1; padding: 30px 12px; text-align: center; color: #66758f; font-size: 13px; }
.select-page .selection-summary { position: static; margin-top: 12px; padding: 11px 13px; border-radius: 15px; box-shadow: 0 3px 12px #1c38650a; }
.selection-total { display: grid; gap: 3px; }
.selection-total small { color: #66758f; }
.selection-total strong { font-size: 22px; }
.selection-countdown { display: grid; gap: 3px; text-align: right; }
.selection-countdown small { color: #66758f; }
.selection-countdown strong { color: #0867ed; font-size: 22px; }
.selection-fee-hint { margin: 5px 0 0; color: #66758f; font-size: 10px; line-height: 1.5; }
.selection-status { min-height: 18px; margin: 8px 0 0; font-size: 11px; color: #66758f; }
.selection-status.error { color: #a92f46; }
.selection-loading { padding: 30px; text-align: center; color: #66758f; }
.selection-retry { margin-top: 10px; }
.selection-counter { font-size: 11px; color: #66758f; margin: 8px 0 0; }
.card-selection-view > .top .header-player { padding: 6px 10px; border-radius: 12px; background: #eaf0ff; color: #3357a0; font-size: 12px; white-space: nowrap; }
.selection-combined { margin: 0 0 9px; overflow: hidden; border: 1px solid #e2e8f3; border-radius: 16px; background: #fff; box-shadow: 0 4px 14px #283b690b; }
.selection-combined-row { display: grid; grid-template-columns: .85fr 1.15fr; align-items: stretch; min-height: 88px; }
.selection-combined .selection-lobby-bar { position: static; display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; margin: 0; padding: 11px 10px; border: 0; background: #fff; box-shadow: none; backdrop-filter: none; }
.selection-combined .selection-countdown { display: grid; gap: 3px; text-align: left; }
.selection-combined .selection-countdown small { color: #71809a; font-size: 9px; font-weight: 750; letter-spacing: .45px; text-transform: uppercase; }
.selection-combined .selection-countdown strong { color: #172544; font-size: 20px; font-weight: 800; line-height: 1; }
.selection-combined .selection-status { display: block; width: 100%; overflow: hidden; color: #167540; font-size: 9px; line-height: 1.25; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.selection-combined .selection-toolbar { min-width: 0; flex-direction: column; align-items: stretch; justify-content: center; gap: 7px; padding: 8px 9px; border-left: 1px solid #e8edf5; background: #f7f5ff; }
.selection-combined .selection-label { justify-content: flex-start; gap: 6px; }
.selection-combined .selection-label h3 { font-size: 11px; }
.selection-combined .selection-label > span { min-width: 19px; height: 19px; font-size: 10px; }
.selection-combined .selection-mode.tabs { flex: 0 0 auto; width: 100%; min-width: 0; padding: 2px; background: #fff; }
.selection-combined .selection-mode.tabs button { flex: 1; min-width: 0; min-height: 32px; padding: 4px 5px; font-size: 10px; }
.selection-combined > .selected-previews { border-top: 1px solid #e8edf5; padding: 8px 10px; }
.selection-details { margin: 0 2px 11px; font-size: 10px; }
@media (max-width: 340px) {
  .selection-combined-row { grid-template-columns: .78fr 1.22fr; }
  .selection-combined .selection-lobby-bar { padding-right: 7px; padding-left: 8px; }
  .selection-combined .selection-toolbar { padding-right: 7px; padding-left: 7px; }
  .selection-combined .selection-countdown strong { font-size: 18px; }
}
@media (max-width: 380px) {
  .selection-mode.tabs { flex-basis: 134px; }
  .selected-preview .preview-bingo span { font-size: 11px; }
}
/* The countdown dial sits on the white combined panel, so its inner disc must match it. */
.selection-combined .selection-countdown strong.countdown-dial { width: 46px; height: 46px; flex-basis: 46px; font-size: 19px; }
.selection-combined .selection-countdown strong.countdown-dial::before { inset: 5px; background: #fff; }
