@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@100..900&display=swap');

:root {
  font-family: Colfax, colfax-web, "Noto Sans", sans-serif;
  color: #142344;
  background: #edf2fc;
  color-scheme: light;
  font-size: 14px;
  font-synthesis: none;
  --blue: #0867ed;
  --purple: #7437d6;
  --muted: #66758f;
  --border: #e2e9f6;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #a98be6;
  outline-offset: 3px;
}
button, input, textarea { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
.app { max-width: 480px; min-height: 100dvh; margin: auto; padding-bottom: calc(94px + env(safe-area-inset-bottom)); background: #f7f9ff; }
.top { position: sticky; top: 0; z-index: 6; min-height: 74px; padding: 16px 18px; display: flex; gap: 12px; align-items: center; justify-content: space-between; background: #fbfcfff5; backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.brand { display: flex; gap: 10px; align-items: center; min-width: 0; }
.brand strong { font-size: 20px; letter-spacing: -.7px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: linear-gradient(140deg, #9950f2, #6624c4); border-radius: 11px; transform: rotate(-7deg); }
.brand-mark .ui-icon { width: 24px; height: 24px; }
.header-player { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.content { padding: 22px 18px; }
.auth-page { min-height: calc(100dvh - 160px); display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 390px; margin: 0 auto; }
.auth-page > p { margin: 0; color: var(--muted); }
.auth-mark { width: 52px; height: 52px; }
.auth-page .wallet-form { margin-top: 8px; }
.auth-page .link-button { border: 0; background: transparent; color: var(--blue); font-weight: 650; padding: 10px; }
.auth-page .auth-note { margin-top: 12px; text-align: center; font-size: 12px; }
h2, h3, p { overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.7px; }
h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: -.3px; }
p { line-height: 1.55; }
.page-heading { display: flex; gap: 10px; align-items: center; margin-bottom: 24px; min-height: 34px; }
.page-heading .icon-button { margin-left: -6px; }
.page-description { color: var(--muted); margin: -8px 0 22px; font-size: 13px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack, .button-stack { display: grid; gap: 12px; }
.button-stack { margin-top: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ui-icon { display: inline-block; flex-shrink: 0; width: 22px; height: 22px; background: currentColor; mask: var(--icon) center / contain no-repeat; -webkit-mask: var(--icon) center / contain no-repeat; vertical-align: middle; }
.icon-button { display: inline-grid; place-items: center; width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--blue); flex-shrink: 0; }
.icon-button:hover { background: #edf2ff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 16px; border: 1px solid var(--blue); border-radius: 12px; background: var(--blue); box-shadow: 0 3px 8px #0867ed18; color: #fff; font-weight: 750; text-align: center; }
.btn:hover:not(:disabled) { background: #0559d0; }
.btn.secondary { background: #fff; border-color: #cfdcf0; color: var(--blue); box-shadow: 0 2px 5px #253d6707; }
.btn.secondary:hover:not(:disabled) { background: #f0f5ff; }
.btn.green { background: #0aab46; border-color: #0aab46; color: #fff; }
.btn.green:hover:not(:disabled) { background: #078e39; }
.btn.full { width: 100%; }
.text-button { border: 0; background: transparent; color: var(--blue); font-size: 12px; min-height: 44px; padding: 0 2px; }
.balance-panel { display: flex; align-items: center; justify-content: space-between; padding: 22px; border-radius: 18px; background: linear-gradient(115deg, #e0f1ff, #e4d7ff); margin-bottom: 20px; }
.balance-panel > div { min-width: 0; }
.balance-panel span { color: #52668b; font-size: 13px; font-weight: 650; }
.balance-panel strong { display: block; margin-top: 8px; font-size: clamp(25px, 7vw, 33px); font-weight: 850; letter-spacing: -.7px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.balance-panel > .ui-icon { width: 45px; height: 45px; margin-left: 14px; color: #304dcd; }
.balance-panel.compact { padding: 18px; margin-bottom: 24px; }
.balance-panel.compact strong { font-size: 27px; }
.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.action { display: grid; justify-items: center; align-content: center; gap: 10px; padding: 15px 2px; min-height: 80px; background: #fff; border: 1px solid var(--border); border-radius: 15px; box-shadow: 0 3px 7px #253d6706; color: #233a65; font-size: 11px; font-weight: 700; }
.action .ui-icon { width: 25px; height: 25px; color: var(--blue); }
.action:hover { background: #edf4ff; }
.play-button { margin: 4px 0 8px; font-size: 17px; min-height: 52px; }
.section { margin: 25px 0 14px; font-size: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 8px; }
.section-heading h3 { margin: 0; }
.small-heading { font-size: 13px; color: #52668b; margin-top: 20px; }
.game-list { display: grid; gap: 16px; }
.game-card { padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 4px 10px #253d6707; }
.game-card-top { display: flex; gap: 12px; align-items: flex-start; }
.game-symbol { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; background: linear-gradient(150deg, #994de7, #6c23c5); border-radius: 12px; color: #fff; }
.game-symbol .ui-icon { width: 28px; height: 28px; }
.game-name { flex: 1; min-width: 0; }
.game-name h3 { font-size: 16px; margin: 0 0 7px; }
.game-prize { color: #4e3587; font-weight: 700; font-size: 12px; margin: 0; }
.game-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; color: #344d79; font-size: 12px; }
.game-meta span { display: flex; align-items: center; gap: 7px; }
.game-meta .ui-icon { width: 15px; height: 15px; }
.games-lobby { --lobby-purple: #7020bf; }
.lobby-heading { margin: 4px 0 22px; }
.lobby-heading .page-heading { margin-bottom: 10px; }
.lobby-heading h2 { font-size: 29px; letter-spacing: -1px; }
.lobby-heading .page-description { margin: 0; font-size: 14px; }
.featured-game { position: relative; isolation: isolate; overflow: hidden; padding: 20px; border-radius: 22px; background: #7020bf; color: #fff; }
.featured-game-heading { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.featured-game-heading .game-symbol { width: 48px; height: 48px; border-radius: 13px; background: #fff; color: var(--lobby-purple); flex-shrink: 0; }
.featured-game-heading h3 { flex: 1; min-width: 0; margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.6px; }
.featured-game-heading .tag { flex-shrink: 0; background: #dbf8df; color: #146c30; }
.featured-prize { position: relative; z-index: 1; margin-top: 22px; }
.featured-prize > span { display: block; margin-bottom: 5px; font-size: 15px; font-weight: 650; }
.featured-prize strong { display: block; font-size: clamp(29px, 8vw, 43px); line-height: 1.15; letter-spacing: -1.5px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.featured-game .game-meta { position: relative; z-index: 1; gap: 16px; color: #fff; font-size: 13px; margin: 18px 0 24px; }
.featured-game .game-meta .ui-icon { width: 18px; height: 18px; }
.featured-game-art { position: absolute; z-index: 0; right: -28px; bottom: 47px; width: 120px; height: 120px; object-fit: contain; pointer-events: none; }
.featured-game-action.btn { position: relative; z-index: 1; min-height: 54px; border: 0; border-radius: 15px; background: #fff; color: var(--lobby-purple); font-size: 18px; box-shadow: none; }
.featured-game-action.btn:hover:not(:disabled) { background: #f1e6ff; }
.featured-game-action:focus-visible { outline-color: #fff; }
.lobby-more { margin-top: 28px; }
.lobby-more > h3 { font-size: 23px; margin: 0 0 8px; letter-spacing: -.6px; }
.lobby-game { padding: 21px 0; }
.lobby-game + .lobby-game { border-top: 1px solid #dfe5f2; }
.lobby-game-heading { display: flex; align-items: flex-start; gap: 12px; }
.lobby-game-heading .game-symbol { width: 44px; height: 46px; border-radius: 12px; flex-shrink: 0; }
.lobby-game-heading .game-name { flex: 1; min-width: 0; }
.lobby-game-heading h3 { margin: 1px 0 8px; font-size: 20px; line-height: 1.2; letter-spacing: -.5px; }
.lobby-game-heading .game-prize { color: var(--lobby-purple); font-size: 13px; line-height: 1.4; }
.lobby-game-heading .game-prize strong { font-size: 17px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.lobby-game-heading .tag { margin-top: 2px; }
.lobby-game-details { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; }
.lobby-game-details .game-meta { margin: 0; gap: 9px 12px; font-size: 12px; }
.lobby-game-details .btn { flex-shrink: 0; min-height: 44px; padding: 10px 14px; border: 1.5px solid var(--blue); border-radius: 12px; font-size: 13px; background: transparent; box-shadow: none; }
@media (max-width: 380px) {
  .featured-game { padding: 18px; }
  .featured-game-heading { gap: 9px; }
  .featured-game-heading h3 { font-size: 21px; }
  .featured-game-heading .game-symbol { width: 40px; height: 42px; }
  .featured-game .game-meta { gap: 10px; font-size: 12px; }
  .lobby-game-heading { gap: 10px; }
  .lobby-game-heading h3 { font-size: 18px; }
  .lobby-game-heading .game-prize strong { font-size: 15px; }
  .lobby-game-details { align-items: flex-end; }
  .lobby-game-details .game-meta { flex-direction: column; align-items: flex-start; }
  .lobby-game-details .btn { padding-inline: 12px; }
}
.compact-games .game-card { padding: 15px; }
.compact-games .game-card .btn { min-height: 42px; font-size: 12px; }
.tag { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px; border-radius: 24px; background: #eef2fc; color: #52617d; font-size: 11px; font-weight: 750; white-space: nowrap; }
.tag.live { background: #dcf8e8; color: #107342; }
.tag.pending { background: #fff0cc; color: #986114; }
.tag.rejected { background: #ffe8ed; color: #a92f46; }
.tag .ui-icon { width: 16px; height: 16px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card { padding: 18px; border: 1px solid var(--border); border-radius: 17px; margin-bottom: 15px; background: #fff; box-shadow: 0 3px 8px #253d6705; }
.card p { color: var(--muted); margin: 6px 0; }
.activity-list { display: grid; gap: 10px; margin-bottom: 20px; }
.activity-row { display: flex; align-items: center; gap: 11px; padding: 14px 12px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 2px 5px #253d6704; }
.activity-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; }
.green { background: #e0f8e9; color: #118244; }
.purple { background: #efe3ff; color: var(--purple); }
.blue { background: #e5efff; color: var(--blue); }
.gold { background: #fff0ce; color: #b27a0b; }
.red { background: #ffe8ed; color: #a92f46; }
.activity-description { flex: 1; min-width: 0; }
.activity-description strong { display: block; font-size: 12px; }
.activity-description small, .deposit-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.activity-amount { font-size: 12px; text-align: right; white-space: nowrap; letter-spacing: -.3px; }
.activity-amount.positive { color: #0a802d; }
.history-group h3 { padding: 11px 14px; background: #eaf0fe; font-size: 13px; color: #465d8c; border-radius: 10px; margin: 24px 0 12px; }
.history-filter { display: grid; gap: 8px; margin: 18px 0 20px; }
.history-filter label { color: #445c85; font-size: 13px; font-weight: 650; }
.history-filter > div { display: flex; align-items: center; gap: 12px; }
.history-filter input { flex: 1; min-width: 0; min-height: 47px; border: 1px solid #ccd8ef; border-radius: 12px; background: #fff; color: #142344; padding: 12px 14px; }
.field { display: grid; gap: 8px; margin: 20px 0; min-width: 0; }
.field label, .destination-options legend { color: #445c85; font-size: 13px; font-weight: 650; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; min-height: 47px; border: 1px solid #ccd8ef; border-radius: 12px; background: #fff; color: #142344; padding: 12px 14px; }
.field input::placeholder, .field textarea::placeholder { color: #7c8da8; font-size: 12px; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.wallet-form > .btn { margin-top: 10px; }
.payment-recipient { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: #fff; margin-bottom: 24px; }
.recipient-icon { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 58px; background: linear-gradient(145deg, #9d50f0, #7227ca); border-radius: 14px; color: #fff; }
.recipient-icon .ui-icon { width: 30px; height: 30px; }
.payment-recipient > div { flex: 1; min-width: 0; }
.payment-recipient strong { display: block; font-size: 22px; letter-spacing: -.5px; margin-top: 6px; }
.payment-recipient > div > span { font-size: 12px; color: var(--muted); }
.payment-recipient .icon-button { width: 36px; }
.info-notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px; background: #eaf1ff; color: #49638a; border-radius: 13px; margin: 20px 0 14px; }
.info-notice .ui-icon { width: 18px; height: 18px; margin-top: 2px; }
.info-notice p { margin: 0; font-size: 12px; }
.deposit-state { display: grid; justify-items: center; gap: 16px; margin: 14px 0 24px; }
.state-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; }
.state-icon .ui-icon { width: 42px; height: 42px; }
.deposit-state > strong { font-size: 28px; letter-spacing: -.6px; }
.deposit-state > .tag { font-size: 14px; padding: 8px 18px; }
dl { margin: 0; }
dl > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 11px 0; }
dt { color: #52668b; font-size: 12px; }
dd { margin: 0; color: #142344; font-weight: 750; font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.review-card h3 { font-size: 15px; margin-bottom: 4px; }
.review-card dl > div + div { border-top: 1px solid #eef1f8; }
.review-total dt, .review-total dd { font-size: 20px; font-weight: 850; color: #142344; }
.deposit-list { display: grid; gap: 10px; }
.deposit-row { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: #fff; color: #142344; }
.deposit-row.selected { border-color: #c3a7f2; }
.deposit-row > span:nth-child(2) { flex: 1; }
.deposit-row strong { font-size: 13px; }
.destination-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; margin: 20px 0; padding: 0; min-width: 0; }
.destination-options legend { margin-bottom: 10px; }
.destination-options label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px; border: 1px solid #d5e0f3; border-radius: 13px; background: #fff; font-size: 12px; font-weight: 700; }
.destination-options label:has(input:checked) { border-color: #3886ff; background: #f0f6ff; }
.destination-options input { accent-color: var(--blue); }
.destination-options .ui-icon { width: 20px; height: 20px; color: var(--purple); }
.purchase-game { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 17px; background: linear-gradient(110deg, #e1f1ff, #e8dcff); }
.purchase-game h3 { margin-bottom: 5px; }
.purchase-game span { font-size: 12px; color: #52668b; }
.purchase-game .game-symbol { color: #fff; }
.selected-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.selected-chips span { padding: 8px 20px; background: #eee2ff; color: #553189; border-radius: 24px; font-weight: 800; }
.purchase-balance { background: #eaf1ff; padding: 6px 18px; border-radius: 14px; }
.game-heading { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.game-heading .icon-button { margin: -7px 0 0 -8px; color: #142344; }
.game-heading > div { flex: 1; min-width: 0; }
.game-heading h2 { font-size: 21px; }
.game-heading p { margin: 6px 0 0; color: var(--purple); font-size: 12px; font-weight: 750; }
.tabs { display: flex; gap: 6px; margin: 16px 0; }
.tabs button { flex: 1; min-width: 0; min-height: 44px; padding: 10px 8px; border: 1px solid #dce5f3; border-radius: 12px; background: #fff; color: #52668b; font-weight: 700; }
.tabs button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.mode-tabs { background: #edf1ff; border: 1px solid #d4dff5; border-radius: 12px; padding: 3px; margin: 10px 0 12px; }
.mode-tabs button { border: 0; min-height: 38px; background: transparent; }
.latest-number { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 126px; padding: 12px; border-radius: 16px; background: linear-gradient(120deg, #fff8ed, #f8f0e4); margin: 12px 0; }
.latest-current { display: grid; justify-items: center; gap: 5px; }
.latest-call-caption, .recent-calls-heading { color: #60749a; font-size: 10px; font-weight: 700; }
.number-orb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 96px; height: 96px; flex-shrink: 0; border-radius: 50%; background: radial-gradient(circle, #f0e2cd 0 57%, #9c6116 59%, #c58a32 78%, #8d5715 100%); color: #17202c; font-family: Georgia, 'Times New Roman', serif; font-size: 35px; font-weight: 800; line-height: 1; box-shadow: 0 5px 12px #79501825; }
.latest-ball-letter { color: #87500c; font-size: 14px; line-height: 1.2; }
.recent-calls { min-width: 0; }
.recent-calls-heading { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 6px; }
.recent-calls-heading strong { color: #253456; font-size: 11px; }
.recent-calls-list { display: flex; align-items: center; gap: 4px; min-width: 0; }
.recent-call { display: flex; flex: 1 1 0; min-width: 0; height: 43px; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid #e6dcf7; border-radius: 10px; background: #fff; color: #896bb8; }
.recent-call > span { font-size: 9px; font-weight: 800; line-height: 1; }
.recent-call > strong { color: #6335a1; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; }
.recent-calls-empty { color: #8893aa; font-size: 10px; }
.owned-card-tabs { justify-content: center; overflow-x: auto; padding-bottom: 0; margin: 8px 0; }
.owned-card-tabs button { flex: 0 0 auto; padding: 7px 18px; border-radius: 22px; background: #f1e8ff; color: #6c32b4; font-size: 12px; }
.owned-card-tabs button.active { background: #e8d7ff; border-color: #c5a2f1; color: #6425b8; }
.bingo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 8px auto 0; }
.bingo .head { background: transparent; color: #a35e0a; text-align: center; padding: 4px 0 2px; border-radius: 0; font-size: 15px; font-weight: 850; }
.cell { aspect-ratio: 1; min-width: 0; border: 1px solid #d9d2c8; border-radius: 9px; background: #eee9e1; color: #17202b; font-size: 18px; font-weight: 800; }
.cell:disabled { opacity: 1; }
.cell.called { outline: 0; }
.cell.marked, .play-board .cell.marked { background: #16843b; border-color: #11702f; color: #fff; }
.cell.free { background: #eee9e1; color: #95600c; font-size: 25px; }
.card-drawer { width: min(100%, 390px); margin: 12px auto; padding: 14px; border: 1px solid #e0d9ce; border-radius: 21px; background: linear-gradient(145deg, #f8f3eb, #f3eee6); box-shadow: 0 8px 22px #503d2015; }
.card-drawer-title { color: #715435; text-align: center; font-family: Georgia, 'Times New Roman', serif; font-size: 14px; font-weight: 800; letter-spacing: .8px; }
.play-board { width: min(100%, 290px); gap: 4px; border: 0; border-radius: 0; overflow: visible; background: transparent; margin: 8px auto 0; }
.play-board .head { background: transparent; color: #a35e0a; padding: 4px 0 2px; font-size: 15px; }
.play-board .head:nth-child(2) { color: #145fd0; }
.play-board .head:nth-child(4) { color: #26773a; }
.play-board .head:nth-child(3) { color: #8125b8; }
.play-board .head:nth-child(5) { color: #b5171b; }
.play-board .cell { border: 1px solid #d9d2c8; border-radius: 9px; aspect-ratio: 1.05; background: #eee9e1; font-size: 17px; }
.play-board .cell.latest, .play-board .cell.latest.marked { border-color: #287d34; background: #287d34; color: #fff; }
.play-board .cell.free { background: #eee9e1; color: #95600c; font-size: 23px; }
.board-hint { font-size: 11px; color: var(--muted); text-align: center; margin: 8px 0 0; }
.called-numbers { display: flex; flex-wrap: wrap; gap: 8px; }
.called-numbers > span:not(.hint) { display: grid; place-items: center; border: 1px solid #d8e0f1; background: #fff; border-radius: 50%; width: 34px; height: 34px; font-size: 12px; font-weight: 750; }
.called-numbers > .latest { background: var(--purple) !important; color: #fff; border-color: var(--purple) !important; }
.caller-panel { margin: 20px 0 8px; padding: 16px 12px; border: 1px solid #dce5f3; border-radius: 18px; background: linear-gradient(145deg, #fff, #f6f3ff); }
.caller-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.caller-heading h3 { margin: 0; font-size: 16px; }
.caller-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.caller-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.caller-column { display: grid; grid-template-rows: 30px repeat(15, minmax(23px, 1fr)); gap: 4px; justify-items: center; }
.caller-letter { display: grid; place-items: center; width: 100%; border-radius: 9px; background: linear-gradient(160deg, #9348eb, #7024bf); color: #fff; font-size: 15px; font-weight: 850; }
.caller-number { display: grid; place-items: center; width: min(100%, 38px); min-height: 23px; aspect-ratio: 1; border: 1px solid #dce4f2; border-radius: 50%; background: #fff; color: #8290a7; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.caller-number.called { border-color: #cdb7f2; background: #eee5ff; color: #6425b8; }
.caller-number.latest { border-color: #0867ed; background: #0867ed; color: #fff; box-shadow: 0 0 0 3px #0867ed24; }
.caller-empty { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.profile-card { text-align: center; padding: 24px 16px; }
.profile-avatar { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #eee2ff; color: #7937c9; font-size: 36px; font-weight: 750; margin: 0 auto 18px; }
.profile-card h3 { font-size: 24px; margin: 0; }
.profile-card p { margin: 6px 0 22px; font-size: 13px; }
.profile-identity { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid #d7e0f3; border-radius: 12px; margin-bottom: 20px; font-size: 11px; }
.profile-identity > .ui-icon { color: var(--blue); width: 17px; height: 17px; }
.profile-identity > span:not(.ui-icon) { color: #52668b; text-align: left; }
.profile-identity strong { flex: 1; overflow-wrap: anywhere; text-align: right; }
.profile-identity .icon-button { width: 30px; }
.profile-identity .icon-button .ui-icon { width: 17px; height: 17px; }
.admin-entry { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 22px 18px; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 16px -2px 18px; padding: 3px 2px 7px; scrollbar-width: thin; }
.admin-tabs button { flex: 0 0 auto; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: #52668b; font-size: 12px; font-weight: 700; }
.admin-tabs button.active { border-color: #0867ed; background: #0867ed; color: #fff; }
.admin-tabs button b { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 4px; border-radius: 20px; background: #fff; color: #0867ed; font-size: 10px; }
.admin-content { display: grid; gap: 16px; }
.admin-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-metric { display: grid; gap: 10px; min-height: 92px; padding: 14px; text-align: left; border: 1px solid var(--border); border-radius: 15px; background: #fff; color: #52668b; }
.admin-metric span { font-size: 11px; }
.admin-metric strong { color: #142344; font-size: 27px; line-height: 1; }
.admin-section { display: grid; gap: 11px; }
.admin-section > h3, .admin-section-heading h3 { margin: 0; font-size: 16px; }
.admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-count { display: inline-flex; margin-left: 5px; padding: 4px 8px; border-radius: 20px; background: #fff0cc; color: #986114; font-size: 10px; font-weight: 700; vertical-align: middle; }
.admin-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-record { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 15px; background: #fff; }
.admin-record p { margin: 0; color: #66758f; font-size: 11px; overflow-wrap: anywhere; }
.admin-record-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.admin-record-head strong { font-size: 13px; line-height: 1.4; }
.pending-tag { background: #fff0cc; color: #986114; }
.admin-actions { margin-top: 4px; }
.admin-actions .btn { min-height: 42px; padding: 9px 10px; font-size: 11px; }
.admin-actions-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; }
.admin-actions-wrap .btn { flex: 1 1 110px; min-height: 40px; padding: 8px 10px; font-size: 11px; }
.btn.danger { border: 1px solid #f2cbd3; background: #fff0f2; color: #a92f46; }
.admin-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.admin-mini-row strong { font-size: 12px; }
.admin-mini-row span { color: var(--muted); font-size: 10px; }
.admin-create-form { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 15px; background: #fff; }
.admin-create-form .field { margin: 0; }
.admin-create-form .field span { display: block; margin-bottom: 6px; color: #52668b; font-size: 11px; font-weight: 650; }
.admin-create-form input { width: 100%; min-height: 44px; border: 1px solid #ccd8ef; border-radius: 12px; padding: 10px 12px; }
.admin-record details summary { color: #3357a0; font-size: 11px; font-weight: 700; cursor: pointer; }
.admin-record .evidence-text { max-height: 140px; overflow: auto; margin-top: 8px; padding: 10px; border-radius: 10px; background: #f6f8fc; white-space: pre-wrap; }
.admin-player-search input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #ccd8ef; border-radius: 12px; background: #fff; }
.admin-player[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.text-action { border: 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 700; padding: 8px; }
.admin-entry .btn { grid-column: 1 / -1; margin-top: 10px; }
.admin-entry h3 { margin-bottom: 6px; }
.admin-entry p { font-size: 12px; margin: 0; }
.win-page { text-align: center; padding: 0 0 8px; }
.winner-heading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; margin: -8px 0 12px; text-align: center; }
.winner-heading .winner-hero { display: block; width: min(320px, 78vw); height: clamp(112px, 23dvh, 190px); object-fit: contain; }
.winner-heading h2 { display: block; width: fit-content; max-width: 100%; margin: -6px auto 0; padding: 8px 28px; border-radius: 14px; background: linear-gradient(100deg, #8520eb, #5314bd 55%, #8b27e8); box-shadow: 0 8px 20px #7324d526; color: #fff; font-size: clamp(26px, 7vw, 34px); font-style: normal; font-weight: 850; letter-spacing: -.7px; line-height: 1.15; }
.winner-heading p { margin: 8px 0 0; color: #71809e; font-size: 15px; font-weight: 700; }
.winner-section { margin: 0 0 12px; padding: 9px 12px; border: 2px solid #a3e9aa; border-radius: 24px; background: linear-gradient(145deg, #f2fff0, #fbfff9 52%, #f1faee); box-shadow: 0 8px 22px #27bd4b19; }
.winner-section > h3 { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; color: #0a9841; font-size: clamp(24px, 6.5vw, 34px); font-weight: 850; letter-spacing: -.8px; }
.winner-section > h3::before, .winner-section > h3::after { content: ""; flex: 1; height: 2px; background: #37c85f; }
.winner-section > h3 .ui-icon { width: 38px; height: 38px; }
.winner-cards { display: grid; gap: 0; margin: 10px 0 0; padding: 8px 10px; border-radius: 28px; background: #ffffffbd; }
.winner-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, .95fr); align-items: center; gap: 8px; min-height: 56px; padding: 5px 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
.winner-card + .winner-card { border-top: 1px solid #dcebdd; }
.winner-card-id, .winner-card-player, .winner-card-prize { display: flex; align-items: center; gap: 8px; min-width: 0; color: #172d68; }
.winner-card-id { padding: 9px 12px; border-radius: 999px; background: #f0e5ff; color: #782be3; }
.winner-card-id strong, .winner-card-player strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.winner-card-player { min-height: 40px; padding-inline: 10px; border-left: 1px solid #cbd6ea; border-right: 1px solid #cbd6ea; }
.winner-card-player > span { display: grid; min-width: 0; gap: 2px; }
.winner-card-player small { overflow: hidden; color: #627394; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.winner-card-prize { justify-content: flex-end; color: #7626da; font-size: clamp(11px, 3vw, 15px); font-weight: 850; white-space: nowrap; }
.winner-card .ui-icon { width: 24px; height: 24px; }
.winner-empty { margin: 12px 0 18px; color: var(--muted); }
.winner-board { max-width: 290px; margin: 10px auto 0; padding: 8px; gap: 3px; border: 1px solid #cbb9e6; border-radius: 13px; background: #f5f0fb; }
.winner-board .head { padding: 4px 0; border-radius: 5px; font-size: 12px; }
.winner-board .cell { border-color: #e3dcec; border-radius: 6px; font-size: 14px; }
.winner-board .cell.marked, .winner-board .cell.called { background: #21834a; color: #fff; outline: 0; }
.winner-board .cell.free { background: #f3dba8; color: #805400; }
.win-page > .btn + .btn { margin-top: 10px; }
.win-trophy { display: grid; place-items: center; width: 130px; height: 130px; border-radius: 50%; background: #fff2ce; color: #e9a608; margin: 10px auto 30px; }
.win-trophy .ui-icon { width: 78px; height: 78px; }
.winner-confirmation { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin: 0 0 10px !important; padding: 8px 12px; border: 1px solid #a6e8ba; border-radius: 18px; background: #e5f9e9; color: #11853b !important; font-size: 14px !important; font-weight: 700; }
.winner-confirmation .ui-icon { width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: #0ba544; color: #fff; }
.win-page > .btn { min-height: 52px; border-radius: 999px; font-size: 18px; }
.win-page > .winner-next { gap: 16px; border: 0; background: linear-gradient(105deg, #a414ef, #4d10e4 55%, #0788fb); box-shadow: 0 9px 20px #461fe638; }
.win-page > .winner-next:hover:not(:disabled) { background: linear-gradient(105deg, #8f12d2, #4010ca 55%, #0779e0); }
.winner-next-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #6120e2; }
.winner-next-icon .ui-icon { width: 22px; height: 22px; }
.brand-copy { display: grid; gap: 1px; }
.brand-subtitle { display: none; color: #64739a; font-size: 11px; font-weight: 600; letter-spacing: 0; }
.winner-view { background: linear-gradient(145deg, #f5fffd 0%, #f6fbff 55%, #f3f2ff 100%); }
.winner-view .top { min-height: 82px; padding: 12px 18px; border: 0; border-radius: 0 0 46px 46px / 0 0 30px 30px; background: linear-gradient(112deg, #f8fffe 0%, #eff5ff 52%, #d2c8ff 100%); box-shadow: 0 6px 22px #617eb311; }
.winner-view .brand { gap: 13px; }
.winner-view .brand-mark { width: 46px; height: 46px; border-radius: 15px; }
.winner-view .brand-mark .ui-icon { width: 27px; height: 27px; }
.winner-view .brand strong { color: #132656; font-size: 22px; letter-spacing: -.6px; }
.winner-view .brand-subtitle { display: none; }
.winner-view .header-player { display: flex; align-items: center; gap: 7px; max-width: 150px; min-height: 42px; padding: 7px 12px; border: 1px solid #fff; border-radius: 24px; background: #ffffffb8; color: #132656; font-size: 12px; font-weight: 750; box-shadow: 0 4px 12px #6675a00c; }
.winner-view .header-player .ui-icon { width: 22px; height: 22px; }
.winner-view .header-player span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.winner-view .header-chevron { font-size: 16px; line-height: 1; }
.winner-view .content { padding: 6px 20px 12px; }
.winner-view .bottom { min-height: 83px; padding: 10px 5px calc(10px + env(safe-area-inset-bottom)); border: 0; border-radius: 38px 38px 0 0; background: #ffffffed; box-shadow: 0 -7px 25px #6f86bd14; }
.winner-view .bottom button { gap: 4px; min-height: 55px; color: #63759e; font-size: 11px; }
.winner-view .bottom .ui-icon { width: 25px; height: 25px; }
.winner-view .bottom button.active { position: relative; color: #7723df; }
.winner-view .bottom button.active::after { content: ""; position: absolute; right: 10%; bottom: -10px; left: 10%; height: 4px; border-radius: 5px 5px 0 0; background: #7626eb; }
.winner-view .bottom button.active .ui-icon { filter: drop-shadow(0 2px 2px #7824df22); }
@media (max-width: 370px) {
  .winner-view .content { padding-inline: 14px; }
  .winner-view .top { padding-inline: 12px; }
  .winner-view .brand { gap: 9px; }
  .winner-view .brand-mark { width: 41px; height: 41px; }
  .winner-view .brand strong { font-size: 19px; }
  .winner-view .header-player { max-width: 125px; padding-inline: 9px; }
  .winner-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, .95fr); gap: 5px; padding: 10px 8px; }
  .winner-card-id, .winner-card-player, .winner-card-prize { gap: 5px; }
  .winner-card-player { padding-inline: 6px; }
  .winner-card .ui-icon { width: 20px; height: 20px; }
  .winner-card-id strong, .winner-card-player strong, .winner-card-prize { font-size: 10px; }
}
@media (max-height: 680px) {
  .winner-heading .winner-hero { height: clamp(88px, 18dvh, 126px); }
  .winner-heading { margin-bottom: 8px; }
  .winner-heading p { margin-top: 5px; }
  .winner-section > h3 { font-size: clamp(22px, 5.5vw, 28px); }
  .winner-section > h3 .ui-icon { width: 30px; height: 30px; }
  .winner-card { min-height: 48px; }
  .winner-view .top { min-height: 70px; padding-block: 8px; }
  .winner-view .bottom { min-height: 72px; padding-top: 6px; }
}
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; max-width: 480px; margin: auto; padding: 9px 5px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--border); background: #fff; box-shadow: 0 -4px 15px #31436904; }
.bottom button { display: grid; justify-items: center; gap: 6px; min-height: 46px; border: 0; background: none; color: #6c7b99; font-size: 10px; }
.bottom .ui-icon { width: 23px; height: 23px; }
.bottom button.active { color: var(--blue); font-weight: 750; }
.notice { margin: 0 0 16px; padding: 13px; border: 1px solid #d5e3fb; border-radius: 12px; background: #f0f5ff; color: #365487; font-size: 12px; line-height: 1.5; }
.notice.success { background: #e9fbf2; color: #14744b; border-color: #bdeed5; }
.notice.error { background: #fff0f1; color: #a92f46; border-color: #f3c8d0; }
.empty { text-align: center; color: var(--muted); padding: 38px 16px; font-size: 13px; line-height: 1.6; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 12px; line-height: 1.5; }
.mini { font-size: 12px; }
.listline { padding: 12px 0; border-bottom: 1px solid var(--border); }
.pill { padding: 7px 12px; background: #eaf0ff; border-radius: 20px; color: #3357a0; }
.hide { display: none; }
.preview-bingo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: #dbe2f0; border-radius: 8px; overflow: hidden; }
.preview-bingo span { display: grid; place-items: center; background: #fff; color: #142344; aspect-ratio: 1; font-weight: 750; }
.preview-bingo .preview-head { background: var(--purple); color: #fff; }
.selection-summary { background: #fff; border: 1px solid #dfe8f5; box-shadow: 0 -5px 28px #1c38651a; }
@media (max-width: 370px) {
  .content { padding: 20px 14px; }
  .brand strong { font-size: 18px; }
  .header-player { max-width: 80px; }
  h2 { font-size: 22px; }
  .actions { gap: 7px; }
  .activity-row { gap: 8px; padding: 12px 9px; }
  .activity-icon { width: 30px; height: 34px; }
  .activity-description strong, .activity-amount { font-size: 11px; }
  .payment-recipient { gap: 10px; padding: 14px; }
  .payment-recipient strong { font-size: 19px; }
  .recipient-icon { width: 44px; }
  .game-card { padding: 15px; }
  .game-symbol { width: 38px; height: 42px; }
  .game-name h3 { font-size: 14px; }
  .game-card-top { gap: 9px; }
  .game-card .tag { padding: 5px 7px; font-size: 10px; }
}

/* Live game: compact layout that fits one phone screen, from 320 x 568 up.
   Sizes follow the viewport so the current call stays the focus and BINGO stays reachable. */
.app.game-view > .top { display: none; }
.app.game-view { padding-bottom: 0; }
.app.game-view > .content { padding: 0 0 calc(70px + env(safe-area-inset-bottom)); }
.live-game {
  --orb: clamp(68px, min(28vw, 13dvh), 120px);
  --gap: clamp(6px, 1.2dvh, 12px);
  --edge: 10px;
  --cell: clamp(40px, 6.2dvh, 54px);
  --card-inset: clamp(12px, 6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-height: calc(100dvh - 70px - env(safe-area-inset-bottom));
}
.live-game > * { margin-top: 0; margin-bottom: 0; }

.game-heading { align-items: center; gap: 6px; min-height: 0; margin: 0; padding: 2px var(--edge) 2px 4px; background: #fff; border-bottom: 1px solid #e2e9f6; }
.game-heading .icon-button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; border-radius: 50%; background: transparent; color: #5b23b8; }
.game-heading .game-heading-copy { flex: 1; min-width: 0; }
.game-heading h2 { overflow: hidden; font-size: 16px; line-height: 1.2; letter-spacing: -.3px; text-overflow: ellipsis; white-space: nowrap; }
.game-heading p { margin: 1px 0 0; overflow: hidden; color: #5d6b85; font-size: 12px; font-weight: 400; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.game-heading p strong { color: #6a2fd0; font-weight: 750; }
.game-heading > .tag { flex: 0 0 auto; min-width: 0; padding: 4px 9px; background: #e7f8ee; color: #0f6b32; font-size: 11px; letter-spacing: .3px; }
.game-heading > .tag:not(.live) { background: #eef2fc; color: #52617d; }
.game-heading .status-dot { width: 7px; height: 7px; }
.live-game > .notice, .live-game > .btn, .live-game > .empty, .live-game > .claim-banner { margin-right: var(--edge); margin-left: var(--edge); }
.live-game > .claim-banner { margin-top: 0; }

/* Call strip: the current call is the largest thing on screen. */
.latest-number { display: flex; align-items: center; gap: var(--edge); min-height: 0; margin: 0 var(--edge); padding: clamp(5px, 1.2dvh, 12px) var(--edge); overflow: visible; border-radius: 16px; background: #6a2fd0; box-shadow: 0 6px 18px #3b2a7a26; color: #fff; }
.number-orb { --ring: #1f8a44; display: flex; flex: 0 0 var(--orb); flex-direction: column; align-items: center; justify-content: center; gap: 0; width: var(--orb); height: var(--orb); box-sizing: border-box; border: calc(var(--orb) * .055) solid var(--ring); border-radius: 50%; background: #fff; color: #0e1630; box-shadow: 0 0 0 3px #ffffffcc, 0 0 22px 6px #ffffff70; font-family: inherit; font-weight: 900; line-height: 1; }
.number-orb.ball-b { --ring: #c2410c; }
.number-orb.ball-i { --ring: #1d4ed8; }
.number-orb.ball-n { --ring: #7e22ce; }
.number-orb.ball-g { --ring: #1f8a44; }
.number-orb.ball-o { --ring: #b91c1c; }
.number-orb .latest-ball-letter { color: var(--ring); font-family: inherit; font-size: calc(var(--orb) * .24); font-weight: 900; line-height: 1; letter-spacing: .5px; }
.number-orb .latest-ball-number { font-size: calc(var(--orb) * .45); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.number-orb.empty .latest-ball-number { color: #8893aa; }
.recent-calls { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.recent-calls-list { display: flex; align-items: stretch; gap: 4px; min-width: 0; }
.recent-call { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: calc(var(--orb) * .52); border: 0; border-radius: 10px; background: #fff; color: #2f6bf0; }
.recent-call:nth-child(2) { opacity: .9; }
.recent-call:nth-child(3) { opacity: .8; }
.recent-call:nth-child(4) { opacity: .7; }
.recent-call > span { font-size: 9px; font-weight: 800; line-height: 1; }
.recent-call > strong { color: #17213d; font-size: clamp(13px, 4vw, 17px); line-height: 1; font-variant-numeric: tabular-nums; }
.recent-calls-empty { display: flex; align-items: center; min-height: calc(var(--orb) * .52); color: #eee7ff; font-size: 11px; }
.calls-progress { display: flex; align-items: center; gap: 8px; margin: 0; }
.calls-progress-track { flex: 1; height: 5px; overflow: hidden; border-radius: 4px; background: #ffffff40; }
.calls-progress-track > span { display: block; height: 100%; border-radius: inherit; background: #fff; transition: width .25s ease; }
.caller-chip { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; min-height: 24px; padding: 0 9px; border: 1px solid #ffffff66; border-radius: 12px; background: #ffffff1f; color: #fff; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.caller-chip .ui-icon { width: 12px; height: 12px; }
.caller-chip:hover { background: #ffffff33; }

/* Card tabs and Auto/Manual share one row. */
.play-controls { display: flex; align-items: center; gap: 6px; margin: 0 var(--edge); }
.play-controls .tabs { margin: 0; }
.play-controls .owned-card-tabs { flex: 1; justify-content: flex-start; min-width: 0; min-height: 0; padding: 2px 0; overflow-x: auto; scrollbar-width: none; }
.play-controls .owned-card-tabs::-webkit-scrollbar { display: none; }
.play-controls .owned-card-tabs button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border: 1px solid #e3d6f7; border-radius: 18px; background: #f5efff; color: #6c32b4; font-size: 12px; }
.play-controls .owned-card-tabs button.active { border-color: #c5a2f1; background: #e8d7ff; color: #5b1fae; font-weight: 800; }
.tab-dot { width: 7px; height: 7px; border-radius: 50%; background: #c47d0e; }
.tab-dot.bingo { background: #1f7a35; box-shadow: 0 0 0 2px #1f7a3533; }
.play-controls .mode-tabs { flex: 0 0 auto; margin: 0 0 0 auto; padding: 2px; border-radius: 18px; background: #e9eefb; }
.play-controls .mode-tabs button { flex: 0 0 auto; min-height: 32px; padding: 0 11px; border-radius: 16px; font-size: 12px; }

/* The card: narrower than the screen, lifted with a shadow. */
.card-drawer { display: flex; flex-direction: column; gap: var(--gap); width: auto; margin: 0 var(--edge); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.card-sheet { margin: 0 var(--card-inset); padding: clamp(5px, 1.1dvh, 10px); border: 1px solid #e0d9ce; border-radius: 16px; background: #f6f1e9; box-shadow: 0 2px 4px #3b2a1414, 0 10px 24px #3b2a1430, 0 18px 40px -12px #3b2a1440; }
.card-drawer-title { justify-content: space-between; min-height: 18px; margin-bottom: 2px; color: #6b4e2f; font-family: inherit; font-size: 11px; letter-spacing: .8px; }
.play-board { width: 100%; gap: clamp(3px, .6dvh, 5px); margin: 0; }
.play-board .head { padding: 0; font-size: clamp(13px, 4vw, 16px); font-weight: 900; line-height: 1.3; }
.play-board .cell { aspect-ratio: auto; height: var(--cell); min-height: 0; border-radius: 8px; font-size: clamp(15px, 4.6vw, 18px); font-variant-numeric: tabular-nums; }
.play-board .cell.free { font-size: clamp(19px, 5.6vw, 23px); }
.card-drawer > .board-legend { margin: 0; }
.card-drawer > .btn, .card-drawer > .notice { margin: 0; }
.card-drawer > .notice { padding: 6px 12px; border-radius: 12px; font-size: 11px; line-height: 1.35; text-align: center; }
.card-drawer > #bingo-claim { min-height: clamp(44px, 6dvh, 52px); border-radius: 14px; font-size: 18px; font-weight: 900; letter-spacing: 1px; }
.card-drawer > .board-hint { margin: -4px 0 0; }
.live-game > .caller-panel { margin: 0 var(--edge) 8px; }

/* Short screens drop the legend and hint before anything shrinks further. */
@media (max-height: 699px) { .card-drawer > .board-legend { display: none; } }
@media (max-height: 819px) { .card-drawer > .board-hint { display: none; } }
@media (max-height: 640px) {
  .app.game-view > .content { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .live-game { --orb: clamp(64px, min(28vw, 12dvh), 120px); --gap: 5px; min-height: calc(100dvh - 58px - env(safe-area-inset-bottom)); }
  .app.game-view .bottom { padding-top: 3px; padding-bottom: calc(3px + env(safe-area-inset-bottom)); }
  .app.game-view .bottom button { gap: 2px; min-height: 44px; }
  .app.game-view .bottom .ui-icon { width: 20px; height: 20px; }
}
@media (max-width: 340px) {
  .play-controls .owned-card-tabs button { padding: 0 9px; }
  .play-controls .mode-tabs button { padding: 0 8px; }
}
.admin-create-form select { width: 100%; min-height: 44px; border: 1px solid #ccd8ef; border-radius: 12px; padding: 10px 12px; background: #fff; color: #142344; }
.field > small { color: var(--muted); font-size: 11px; }

/* Live game: line progress, claim window and collapsible caller. */
.card-drawer-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 18px; }
.to-go-badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 2px 7px; border-radius: 10px; background: #fdecc8; color: #8a5300; font-family: inherit; font-size: 10px; font-weight: 800; letter-spacing: .2px; white-space: nowrap; }
.to-go-badge.bingo { background: #1f7a35; color: #fff; }
.card-drawer-title .to-go-badge { margin-left: 0; }
.play-board .cell.latest, .play-board .cell.latest.marked { border-color: #c98a00; background: #fff4d6; color: #17202b; box-shadow: 0 0 0 3px #e0a10066; }
.play-board .cell.latest.marked { border-color: #c98a00; background: #16843b; color: #fff; }
.play-board .cell.one-to-go { border: 2px dashed #c47d0e; background: #fffaf0; }
.play-board .cell.win-line, .play-board .cell.win-line.latest { border-color: #0a4f20; background: #0b5a25; color: #fff; box-shadow: inset 0 0 0 2px #f5c542; }
.play-board .cell.free.win-line { color: #ffe39a; }
.play-board .cell.free.marked:not(.win-line) { border-color: #d9d2c8; }
.board-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin: 9px 0 2px; color: #6b5a43; font-size: 11px; }
.board-legend span { display: inline-flex; align-items: center; gap: 5px; }
.board-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.board-legend .legend-marked { background: #16843b; border: 1px solid #11702f; }
.board-legend .legend-near { background: #fffaf0; border: 2px dashed #c47d0e; }
.board-legend .legend-win { background: #0b5a25; box-shadow: inset 0 0 0 2px #f5c542; }
.owned-card-tabs button { display: inline-flex; align-items: center; justify-content: center; }
.btn.green.ready:not(:disabled) { box-shadow: 0 0 0 4px #2f8a4233; animation: bingo-ready 1.2s ease-in-out infinite; }
@keyframes bingo-ready { 50% { box-shadow: 0 0 0 9px #2f8a4200; } }
.claim-banner { position: sticky; top: 0; z-index: 7; margin: 12px; padding: 14px 16px; border: 1px solid #f0d58a; border-radius: 16px; background: #fff8e3; color: #5c4210; box-shadow: 0 6px 18px #5c421022; }
.claim-banner p { margin: 0; font-size: 13px; }
.claim-banner .claim-title { margin-bottom: 4px; font-size: 17px; font-weight: 850; color: #3f2c05; }
.claim-banner #claim-countdown { font-size: 18px; font-variant-numeric: tabular-nums; }
.claim-banner.urgent { border-color: #2f8a42; background: #eaf7ec; color: #1d4d27; }
.claim-banner.urgent .claim-title { color: #14401d; }
.claim-banner-button { margin-top: 12px; min-height: 52px; font-size: 17px; }
.caller-panel > summary { cursor: pointer; list-style: none; margin-bottom: 0; }
.caller-panel > summary::-webkit-details-marker { display: none; }
.caller-panel > summary .tag::after { content: ''; width: 7px; height: 7px; margin-left: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.caller-panel[open] > summary { margin-bottom: 12px; }
.caller-panel[open] > summary .tag::after { transform: translateY(2px) rotate(-135deg); }
.recent-call.ball-b > span { color: #c2410c; }
.recent-call.ball-i > span { color: #1d4ed8; }
.recent-call.ball-n > span { color: #7e22ce; }
.recent-call.ball-g > span { color: #15803d; }
.recent-call.ball-o > span { color: #b91c1c; }
@media (prefers-reduced-motion: reduce) {
  .btn.green.ready:not(:disabled) { animation: none; }
  .calls-progress-track > span, .caller-panel > summary .tag::after { transition: none; }
}
