html,
body {
    margin: 0;
    background: #f4f7fb;
    color: #122033;
    font-family: Arial, Helvetica, sans-serif;
}

.state-nav-badge {
    position: fixed;
    top: 0.45rem;
    left: 50%;
    z-index: 9;
    max-width: 45%;
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    background: #0f766e;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    text-align: center;
    transform: translateX(-50%);
}

.mobile-header .wallet-quick-actions {
    grid-column: 1 / -1;
}

.wallet-quick-actions {
    position: static;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    margin: 0;
}

.wallet-quick-actions button {
    min-width: 0;
    min-height: 2.75rem;
    border: 1px solid #c8d3e2;
    border-radius: 8px;
    background: #ffffff;
    color: #122033;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.12);
}

.wallet-quick-actions .deposit {
    border-left: 0.35rem solid #047857;
}

.wallet-quick-actions .cashout {
    border-left: 0.35rem solid #2563eb;
}

.wallet-quick-actions .statement {
    border-left: 0.35rem solid #7c3aed;
}

.wallet-quick-actions .pending {
    border-left: 0.35rem solid #d97706;
}

.wallet-quick-actions .player-card-action {
    grid-column: 1 / -1;
    border-left: 0.35rem solid #0891b2;
}

.account-sheet {
    max-height: min(85vh, 42rem);
    overflow-y: auto;
}

.account-sheet-backdrop {
    z-index: 12;
}

.statement-range-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
    border: 1px solid #c9d5e4;
    border-radius: 6px;
    padding: 0.15rem;
    background: #ffffff;
}

.statement-range-filter button {
    width: auto;
    height: 1.65rem;
    min-width: 4.25rem;
    border: 0;
    border-radius: 4px;
    padding: 0 0.55rem;
    background: transparent;
    color: #32415a;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.statement-range-filter button.active {
    background: #0f766e;
    color: #ffffff;
}

.mobile-ticket-list,
.mobile-statement-list {
    display: grid;
    gap: 0.6rem;
}

.mobile-ticket-card,
.mobile-statement-row {
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    padding: 0.75rem;
    background: #ffffff;
}

.mobile-ticket-card header,
.mobile-ticket-card footer,
.mobile-statement-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.mobile-ticket-card header {
    margin-bottom: 0.55rem;
}

.mobile-ticket-card header strong,
.mobile-ticket-card b,
.mobile-statement-row strong {
    color: #122033;
    font-weight: 900;
}

.mobile-ticket-card header small,
.mobile-ticket-card div small,
.mobile-statement-row small {
    display: block;
    margin-top: 0.15rem;
    color: #66758d;
    font-size: 0.72rem;
    font-weight: 800;
}

.mobile-ticket-card header span {
    border-radius: 999px;
    padding: 0.22rem 0.52rem;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.72rem;
    font-weight: 900;
}

.mobile-ticket-card header .pending-ticket-summary {
    margin-left: auto;
    color: #122033;
    font-size: 0.95rem;
    font-weight: 950;
    white-space: nowrap;
}

.mobile-ticket-card footer {
    margin-top: 0.65rem;
    border-top: 1px solid #eef2f7;
    padding-top: 0.55rem;
    color: #20304a;
    font-size: 0.82rem;
    font-weight: 900;
}

.pending-ticket-actions {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.65rem;
    border-top: 1px solid #eef2f7;
    padding-top: 0.55rem;
}

.pending-ticket-action {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #e3eaf4;
    border-radius: 6px;
    padding: 0.5rem;
    background: #f8fbff;
    color: #122033;
    font-size: 0.76rem;
    font-weight: 900;
}

.pending-ticket-action strong {
    display: block;
    color: #122033;
    font-size: 0.78rem;
    font-weight: 950;
}

.pending-ticket-action small {
    display: block;
    margin-top: 0.15rem;
    color: #66758d;
    font-size: 0.68rem;
    font-weight: 850;
}

.pending-ticket-action > span {
    min-width: 0;
}

.pending-ticket-action > span:nth-child(3),
.pending-ticket-action > span:nth-child(4) {
    text-align: right;
    white-space: nowrap;
}

.statement-money {
    flex: 0 0 auto;
    text-align: right;
}

.statement-money > span {
    display: block;
    color: #20304a;
    font-size: 0.95rem;
    font-weight: 900;
}

.statement-money > span.credit {
    color: #047857;
}

.statement-money > span.debit {
    color: #b91c1c;
}

.mobile-statement-ledger {
    flex: 0 0 auto;
    height: min(68vh, 42rem);
    max-height: min(68vh, 42rem);
    overflow-x: auto;
    overflow-y: auto;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-statement-ledger .ledger-table__head,
.mobile-statement-ledger .ledger-row {
    display: grid;
    grid-template-columns: minmax(130px, 0.75fr) minmax(120px, 0.6fr) minmax(330px, 1.75fr) minmax(105px, 0.55fr) minmax(105px, 0.55fr) minmax(105px, 0.55fr) minmax(105px, 0.55fr) minmax(125px, 0.65fr) minmax(125px, 0.65fr) minmax(95px, 0.45fr);
    min-width: 1305px;
    align-items: center;
}

.mobile-statement-ledger .ledger-table__head {
    position: sticky;
    top: 0;
    z-index: 3;
    min-height: 2.5rem;
    background: #f3f6fa;
    color: #61708a;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mobile-statement-ledger .ledger-table__head span,
.mobile-statement-ledger .ledger-row > * {
    display: flex;
    align-items: center;
    min-height: 2.85rem;
    border-right: 1px solid #e3e8f0;
    border-bottom: 1px solid #edf1f6;
    padding: 0.45rem 0.65rem;
}

.mobile-statement-ledger .ledger-table__head span:last-child,
.mobile-statement-ledger .ledger-row > *:last-child {
    border-right: 0;
}

.mobile-statement-ledger .ledger-row strong {
    color: #20304a;
    font-weight: 900;
}

.mobile-statement-ledger .ledger-description {
    gap: 0.4rem;
    flex-wrap: wrap;
    align-content: center;
    white-space: normal;
}

.mobile-statement-ledger .ledger-result-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.25rem;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    line-height: 1;
}

.mobile-statement-ledger .ledger-result-badge.win {
    border: 1px solid #86efac;
    background: #dcfce7;
    color: #166534;
}

.mobile-statement-ledger .ledger-result-badge.loss {
    border: 1px solid #fca5a5;
    background: #fee2e2;
    color: #991b1b;
}

.mobile-statement-ledger .ledger-result-badge.tie {
    border: 1px solid #fde68a;
    background: #fef3c7;
    color: #92400e;
}

.mobile-statement-ledger .money {
    justify-content: flex-end;
    white-space: nowrap;
    font-weight: 900;
}

.mobile-statement-ledger .money.credit {
    color: #0f766e;
}

.mobile-statement-ledger .money.debit {
    color: #991b1b;
}

.mobile-statement-ledger .money.balance-forward {
    color: #334155;
}


button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-frame {
    min-height: 100vh;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    min-height: 3rem;
    border-bottom: 1px solid #d9e2ef;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}

.app-topbar strong {
    color: #122033;
    font-size: 1rem;
    font-weight: 900;
}

.app-topbar nav {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
}

.app-topbar a {
    border: 1px solid #cbd7e6;
    border-radius: 999px;
    padding: 0.32rem 0.55rem;
    color: #20304a;
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.app-topbar a.active {
    border-color: #0f766e;
    background: #0f766e;
    color: #ffffff;
}

.app-topbar span {
    color: #536179;
    font-size: 0.72rem;
    font-weight: 900;
}

.mobile-shell {
    display: grid;
    gap: 0.85rem;
    width: min(100%, 46rem);
    margin: 0 auto;
    padding: 0.65rem 0.65rem calc(6.75rem + env(safe-area-inset-bottom, 0px));
}

.mobile-shell.ticket-open {
    padding-bottom: calc(min(28rem, 62dvh) + 6rem + env(safe-area-inset-bottom, 0px));
}

.oddzmaster-web-shell {
    width: min(1600px, calc(100vw - 2rem));
}

.login-shell {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 1rem;
    min-height: calc(100vh - 3.4rem);
    padding: 0 1rem 1rem;
}

.login-card {
    box-sizing: border-box;
    width: min(100%, 27rem);
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    padding: 1rem;
    background: #ffffff;
}

.login-form {
    display: grid;
    gap: 0.75rem;
}

.login-logo {
    display: block;
    width: 100vw;
    max-width: 100%;
    height: clamp(8.75rem, 34vw, 13rem);
    object-fit: contain;
    object-position: center;
    border-bottom: 1px solid #d7e1ee;
    background: #05080d;
}

.oddzmaster-web-login-shell {
    width: min(15in, calc(100vw - 2rem));
    margin: 0 auto;
}

.oddzmaster-web-login-shell .login-logo {
    width: 100%;
    max-width: 100%;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
}

.oddzmaster-web-login-shell .login-card {
    width: min(100%, 27rem);
}

.login-location-card {
    display: grid;
    gap: 0.1rem;
    width: min(100%, 27rem);
    border: 1px solid #cfd9e8;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    background: #ffffff;
}

.login-location-card span,
.login-location-card small {
    color: #66758d;
    font-size: 0.72rem;
    font-weight: 800;
}

.login-location-card span {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-location-card strong {
    color: #10233f;
    font-size: 1.2rem;
    font-weight: 900;
}

.login-location-card.allowed {
    border-color: #99d6ca;
    background: #f0fdfa;
}

.login-location-card.allowed strong {
    color: #047857;
}

.login-location-card.blocked {
    border-color: #fecaca;
    background: #fff5f5;
}

.login-location-card.blocked strong {
    color: #b91c1c;
}

.login-location-card.checking,
.login-location-card.unknown {
    border-color: #cfd9e8;
    background: #f8fafc;
}

.location-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    margin-top: 0.55rem;
}

.location-actions button {
    min-height: 2.25rem;
    border: 1px solid #b9cbe2;
    border-radius: 6px;
    background: #ffffff;
    color: #10233f;
    font-size: 0.78rem;
    font-weight: 900;
}

.login-copy {
    margin: 0.35rem 0 1rem;
    color: #66758d;
    font-weight: 800;
}

.login-field {
    display: block;
    color: #66758d;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.login-field input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0.35rem 0 0.75rem;
    border: 1px solid #cbd7e6;
    border-radius: 8px;
    padding: 0.8rem;
    color: #122033;
    font-size: 1rem;
    font-weight: 900;
}

.remember-login-toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: -0.15rem 0 0.85rem;
    color: #526077;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: none;
}

.remember-login-toggle input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #0f766e;
}

.create-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.55rem;
}

.create-account-grid .login-field.wide {
    grid-column: 1 / -1;
}

.create-account-grid .login-field input {
    margin-bottom: 0.58rem;
    padding: 0.62rem;
    font-size: 0.86rem;
}

.login-message,
.empty-state {
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    padding: 0.75rem;
    background: #f8fafc;
    color: #526077;
    font-size: 0.86rem;
    font-weight: 900;
}

.secondary-action {
    width: 100%;
    min-height: 2.65rem;
    margin-top: 0.55rem;
    border: 1px solid #cbd7e6;
    border-radius: 8px;
    background: #ffffff;
    color: #20304a;
    font-weight: 900;
}

.login-message {
    margin-bottom: 0.75rem;
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.mobile-header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.75rem;
}

.mobile-header .player-logo-card {
    display: none;
}

.eyebrow {
    margin: 0 0 0.18rem;
    color: #66758d;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    color: #101827;
    font-weight: 900;
}

h1 {
    font-size: 1.55rem;
}

h2 {
    font-size: 1rem;
}

.balance-card {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    gap: .75rem;
    min-width: 9.25rem;
    border: 1px solid #cfd9e8;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    background: #ffffff;
    text-align: right;
}

.balance-values{min-width:0;text-align:right}

.player-logo-card {
    display: grid;
    place-items: center;
    width: 6.8rem;
    aspect-ratio: 1;
    border: 1px solid #cfd9e8;
    border-radius: 8px;
    padding: 0;
    background: #05080d;
    overflow: hidden;
}

.player-logo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.balance-card span,
.balance-card small {
    display: block;
    color: #66758d;
    font-size: 0.72rem;
    font-weight: 800;
}

.balance-card strong {
    display: block;
    margin: 0.1rem 0;
    color: #047857;
    font-size: 1.3rem;
    font-weight: 900;
}

.wallet-button,
.notification-button {
    min-height: 4.2rem;
    border: 1px solid #cbd7e6;
    border-radius: 8px;
    padding: 0.75rem;
    background: #ffffff;
    color: #122033;
    text-align: left;
}

.wallet-button span,
.wallet-button strong,
.notification-button span,
.notification-button strong {
    display: block;
}

.wallet-button span,
.notification-button span {
    color: #66758d;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.wallet-button strong,
.notification-button strong {
    margin-top: 0.25rem;
    font-size: 0.92rem;
    font-weight: 900;
}

.wallet-button.deposit {
    border-left: 0.35rem solid #047857;
}

.wallet-button.cashout {
    border-left: 0.35rem solid #2563eb;
}

.wallet-button.statement {
    border-left: 0.35rem solid #7c3aed;
}

.wallet-button.pending {
    border-left: 0.35rem solid #d97706;
}

.notification-button {
    border-left: 0.35rem solid #d9a400;
}

.notification-button:not(:disabled) {
    color: #7a4d00;
}

.notification-button:disabled {
    cursor: default;
    opacity: 0.55;
}

.wallet-quick-actions {
    display: grid;
}

.flow-card,
.games-section {
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.flow-step {
    padding: 0.85rem;
    border-bottom: 1px solid #e5ebf3;
}

.flow-step:last-child {
    border-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.section-title span {
    display: grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: #122033;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.league-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.25rem, 1fr));
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.league-chip {
    width: 100%;
    min-width: 0;
    border: 1px solid #cbd7e6;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    color: #20304a;
    text-align: left;
}

.league-chip strong,
.league-chip small {
    display: block;
}

.league-chip strong {
    font-weight: 900;
}

.league-chip small {
    margin-top: 0.15rem;
    color: #66758d;
    font-size: 0.72rem;
    font-weight: 800;
}

.league-chip.active {
    border-color: #0f766e;
    background: #e7f6f3;
    color: #064e3b;
}

.bet-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.mobile-account-links {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

.mobile-account-links a {
    display: inline-grid;
    place-items: center;
    min-height: 1.8rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid #c8d3e2;
    border-radius: 6px;
    background: #ffffff;
    color: #5c6880;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.mobile-account-links a:hover {
    border-color: #0f766e;
    background: #e8f7f4;
    color: #0f766e;
}

.mobile-account-links a.active {
    border-color: #0f766e;
    background: #0f766e;
    color: #ffffff;
}

.bet-type-grid--primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bet-type-group-title {
    margin: 0.8rem 0 0.35rem;
    color: #536179;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bet-type-grid + .bet-type-grid,
.bet-type-group-title + .bet-type-grid {
    margin-bottom: 0.25rem;
}

.bet-type {
    min-height: 2.8rem;
    border: 1px solid #cbd7e6;
    border-radius: 8px;
    background: #f8fafc;
    color: #20304a;
    font-size: 0.86rem;
    font-weight: 900;
}

.bet-type.active {
    border-color: #0f766e;
    background: #0f766e;
    color: #ffffff;
}

.teaser-point-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.teaser-point-grid.monster-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teaser-point {
    min-height: 2.45rem;
    border: 1px solid #cbd7e6;
    border-radius: 8px;
    background: #f8fafc;
    color: #20304a;
    font-size: 0.86rem;
    font-weight: 900;
}

.teaser-point--monster {
    min-height: 3.25rem;
    padding: 0.45rem 0.6rem;
    line-height: 1.2;
}

.teaser-point.active {
    border-color: #0f766e;
    background: #0f766e;
    color: #ffffff;
}

.games-section {
    padding: 0.65rem;
    margin-bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px));
}

.games-section > .section-title {
    justify-content: space-between;
    gap: 0.85rem;
}

.games-section > .section-title > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.clear-notifications-button {
    min-height: 2rem;
    border: 1px solid #dc2626;
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    white-space: nowrap;
}

.clear-notifications-button:disabled {
    border-color: #cbd5e1;
    background: #e2e8f0;
    color: #64748b;
    cursor: default;
}

.board-search {
    display: grid;
    gap: 0.2rem;
    width: min(45%, 15rem);
    min-width: 9rem;
    color: #66758d;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.board-search input {
    width: 100%;
    min-height: 2rem;
    border: 1px solid #cbd7e6;
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
    color: #122033;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.game-list {
    display: grid;
    gap: 0.75rem;
    max-height: min(64vh, 46rem);
    overflow-y: auto;
    padding: 0 0.25rem calc(4.75rem + env(safe-area-inset-bottom, 0px)) 0;
    scroll-padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

.mobile-shell.ticket-open .game-list {
    padding-bottom: calc(min(28rem, 62dvh) + 1rem);
    scroll-padding-bottom: calc(min(28rem, 62dvh) + 1rem);
}

.game-card {
    border: 1px solid #d8e1ec;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.game-card.in-play-game {
    border-color: #15803d;
    background: #dcfce7;
}

.game-card.started-game {
    border-color: #86efac;
    background: #f0fdf4;
}

.game-card header {
    display: grid;
    grid-template-columns: 4.1rem 3.2rem minmax(0, 1fr);
    align-items: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #e5ebf3;
    background: #f3f6fa;
}

.game-card header.has-parts {
    cursor: pointer;
}

.game-card.in-play-game header {
    border-bottom-color: #86efac;
    background: #bbf7d0;
}

.game-card.started-game header {
    border-bottom-color: #bbf7d0;
    background: #dcfce7;
}

.game-card header strong,
.game-card header span,
.game-card header small {
    display: block;
}

.game-card header strong {
    font-size: 0.84rem;
    font-weight: 900;
}

.game-card header .game-date-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
}

.game-parts-chevron {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #0f766e !important;
    font-size: 0.82rem !important;
    font-weight: 950 !important;
    line-height: 1;
}

.game-time {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 0.2rem;
    min-width: 0;
    text-align: center;
}

.game-time .mobile-game-actions {
    grid-column: 1 / -1;
}

.game-card header .score-heading,
.game-card header .market-headings {
    align-self: end;
}

.game-time strong,
.game-time small {
    white-space: nowrap;
}

.mobile-game-actions {
    display: flex !important;
    justify-content: center;
    gap: 0.18rem;
    margin-top: 0.18rem;
}

.mobile-game-action {
    border: 1px solid #9ec6e8;
    border-radius: 4px;
    padding: 0.1rem 0.2rem;
    background: #ffffff;
    color: #075985;
    font-size: 0.52rem;
    font-weight: 900;
    line-height: 1.15;
    cursor: pointer;
}

.mobile-game-action.active {
    background: #075985;
    color: #ffffff;
}

.mobile-game-action:disabled {
    opacity: 0.4;
    cursor: default;
}

.mobile-mline-heading {
    display: grid !important;
    justify-items: center;
    gap: 0.1rem;
}

.mobile-inplay-badge {
    border-radius: 3px;
    padding: 0.06rem 0.18rem;
    background: #059669;
    color: #ffffff !important;
    font-size: 0.52rem !important;
    line-height: 1;
}

.mobile-props-notice {
    padding: 0.55rem 0.7rem;
    color: #536179;
    font-size: 0.7rem;
    font-weight: 700;
}

.mobile-props-panel {
    border-top: 1px solid #d8b4fe;
    background: #faf5ff;
}

.mobile-props-error {
    color: #b91c1c;
}

.mobile-prop-market {
    border-bottom: 1px solid #e9d5ff;
}

.mobile-prop-market summary {
    padding: 0.5rem 0.65rem;
    color: #581c87;
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
}

.mobile-prop-market summary small {
    margin-left: 0.3rem;
    color: #7c3aed;
}

.mobile-prop-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-top: 1px solid #f0e4ff;
    background: #ffffff;
    font-size: 0.68rem;
}

.mobile-prop-player {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.mobile-prop-player strong,
.mobile-prop-player small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-prop-player strong {
    font-weight: 800;
}

.mobile-prop-player small {
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.6rem;
    font-weight: 700;
}

.mobile-prop-odds {
    min-width: 3.8rem;
    color: #581c87;
    border-color: #d8b4fe;
    background: #faf5ff;
}

.mobile-prop-odds.active {
    border-color: #7c3aed;
    background: #7c3aed;
    color: #ffffff;
}

.mobile-props-preview-notice {
    margin: 0.25rem 0.7rem 0.65rem;
    color: #581c87;
    font-size: 0.75rem;
    font-weight: 800;
}

.game-card header span,
.game-card header small {
    color: #66758d;
    font-size: 0.72rem;
    font-weight: 800;
}

.mobile-game-state-badge {
    display: inline-grid;
    place-items: center;
    width: fit-content;
    margin: 0.18rem auto 0;
    border-radius: 999px;
    padding: 0.1rem 0.34rem;
    color: #ffffff !important;
    font-size: 0.58rem !important;
    font-weight: 900 !important;
    line-height: 1;
    letter-spacing: 0.03em;
}

.mobile-game-state-badge.inplay {
    border: 1px solid #047857;
    background: #059669;
}

.mobile-game-state-badge.started {
    border: 1px solid #d97706;
    background: #f59e0b;
}

.team-cell {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.team-cell span {
    min-width: 0;
}

.team-cell strong {
    display: inline-grid;
    place-items: center;
    min-width: 1.75rem;
    min-height: 1.6rem;
    border: 1px solid #cbd7e6;
    border-radius: 6px;
    background: #ffffff;
    color: #122033;
    font-size: 0.82rem;
    font-weight: 950;
}

.market-headings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.28rem;
    min-width: 0;
    color: #536179;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

.score-heading {
    color: #536179;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

.market-headings.teaser {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
}

.odds-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.42rem;
    width: 100%;
    min-height: 3.4rem;
    border-bottom: 1px solid #e9eef5;
    padding: 0.62rem 0.6rem;
    background: #ffffff;
    color: #122033;
    text-align: left;
}

.game-card.in-play-game .odds-row {
    border-bottom-color: #bbf7d0;
    background: #dcfce7;
}

.game-card.started-game .odds-row {
    border-bottom-color: #dcfce7;
    background: #f0fdf4;
}

.odds-row:last-child {
    border-bottom: 0;
}

.odds-row span {
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 900;
}

.team-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    min-width: 0;
}

.team-line > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-score {
    display: grid;
    place-items: center;
    min-width: 1.8rem;
    height: 1.8rem;
    border: 1px solid #b8c9df;
    border-radius: 6px;
    background: #eef6f4;
    color: #064e3b;
    font-size: 0.88rem;
    font-weight: 900;
}

.line-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(3.55rem, 1fr));
    gap: 0.22rem;
    width: 100%;
    min-width: 0;
}

.line-strip.teaser {
    grid-template-columns: repeat(2, minmax(4rem, 1fr));
    min-width: 0;
}

.line-button {
    border: 1px solid #cbd7e6;
    border-radius: 6px;
    padding: 0.38rem 0.18rem;
    background: #f8fafc;
    color: #003a73;
    font-size: 0.68rem;
    text-align: center;
    font-weight: 900;
    white-space: nowrap;
}

.line-button.active {
    border-color: #0f766e;
    background: #0f766e;
    color: #ffffff;
}

.line-button.odds-changed:not(.active) {
    border-color: #d9a400;
    background: #ffe85c;
    color: #111827;
    box-shadow: inset 0 0 0 2px #d9a400;
    animation: mobile-line-change-pulse 0.5s ease-in-out 0s 6 alternate;
}

@keyframes mobile-line-change-pulse {
    from {
        border-color: #d9a400;
        background: #fff8c5;
        box-shadow: inset 0 0 0 1px #d9a400;
        transform: scale(1);
    }

    to {
        border-color: #b88700;
        background: #ffe13b;
        box-shadow: inset 0 0 0 2px #b88700, 0 0 0 2px rgb(217 164 0 / 22%);
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .line-button.odds-changed:not(.active) {
        animation: none;
    }
}

.line-button:disabled {
    cursor: default;
    opacity: 0.45;
}

.game-parts-list {
    display: grid;
    border-top: 1px solid #dfe7f1;
    background: #f8fafc;
}

.game-part {
    border-bottom: 1px solid #e5ebf3;
}

.game-part:last-child {
    border-bottom: 0;
}

.game-part-title {
    padding: 0.42rem 0.6rem;
    border-bottom: 1px solid #d9a400;
    background: #fff3a3;
    color: #4a3300;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.odds-row.part-row {
    min-height: 2.75rem;
    padding-block: 0.42rem;
}

.odds-row.part-row span {
    font-size: 0.78rem;
}

.sportsbook-card {
    display: grid;
}

.sportsbook-teams {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid #e5ebf3;
    background: #fbfcfe;
    color: #122033;
    font-size: 0.78rem;
    font-weight: 900;
}

.sportsbook-book {
    border-bottom: 1px solid #dce5f0;
}

.sportsbook-book:last-child {
    border-bottom: 0;
}

.sportsbook-book__name {
    padding: 0.45rem 0.6rem;
    border-left: 0.35rem solid #0f766e;
    background: #eef6f4;
    color: #064e3b;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sportsbook-book__rows {
    display: grid;
    grid-template-columns: minmax(6.5rem, 0.7fr) minmax(12rem, 1fr);
    gap: 0;
}

.sportsbook-book__rows > span {
    display: flex;
    align-items: center;
    min-width: 0;
    border-bottom: 1px solid #eef2f7;
    padding: 0.55rem 0.6rem;
    color: #122033;
    font-size: 0.78rem;
    font-weight: 900;
}

.sportsbook-book__rows .line-strip {
    min-width: 0;
    border-bottom: 1px solid #eef2f7;
    padding: 0.45rem 0.5rem;
}

.primary-action {
    border: 0;
    border-radius: 6px;
    background: #0f766e;
    color: #ffffff;
    font-weight: 900;
}

.wager-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
}

.wager-confirm {
    display: grid;
    gap: 0.75rem;
    width: min(100%, 25rem);
    border: 1px solid #c8d3e2;
    border-radius: 8px;
    padding: 0.9rem;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
}

.wager-confirm__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wager-confirm__header .eyebrow {
    margin: 0;
}

.wager-confirm__close {
    display: grid;
    flex: 0 0 1.9rem;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid #cbd7e6;
    border-radius: 6px;
    padding: 0;
    background: #ffffff;
    color: #526077;
    font-size: 0.85rem;
    font-weight: 900;
}

.wager-confirm__close:hover {
    border-color: #b42318;
    color: #b42318;
}

.wager-confirm__selection {
    display: grid;
    gap: 0.2rem;
    border-block: 1px solid #e2e8f0;
    padding: 0.8rem 0;
}

.wager-confirm__selection strong {
    color: #122033;
    font-size: 1rem;
}

.wager-confirm__selection span {
    color: #66758d;
    font-size: 0.82rem;
    font-weight: 800;
}

.wager-confirm__selection small {
    color: #0f766e;
    font-size: 0.8rem;
    font-weight: 900;
}

.wager-confirm__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.65rem;
}

.wager-confirm__actions label {
    color: #66758d;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.wager-confirm__actions input {
    display: block;
    width: 100%;
    height: 2.5rem;
    margin-top: 0.25rem;
    border: 1px solid #cbd7e6;
    border-radius: 6px;
    padding: 0.45rem 0.6rem;
    color: #122033;
    font-weight: 900;
}

.wager-confirm__submit {
    height: 2.5rem;
    border: 0;
    border-radius: 6px;
    padding: 0 1rem;
    background: #0f766e;
    color: #ffffff;
    font-weight: 900;
}

.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: end;
    background: rgba(15, 23, 42, 0.45);
}

.sheet-backdrop--center {
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.sheet-backdrop--center .wallet-sheet {
    width: min(100%, 30rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.3);
}

.wallet-sheet {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    border-radius: 14px 14px 0 0;
    padding: 1rem;
    background: #ffffff;
    box-shadow: 0 -16px 42px rgba(15, 23, 42, 0.22);
}

.account-sheet-backdrop {
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
}

.account-sheet-backdrop .account-sheet {
    width: 100%;
    max-width: 30rem;
    max-height: calc(100dvh - 1.3rem);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 14px;
}

.wallet-sheet header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wallet-sheet header button {
    width: 2rem;
    height: 2rem;
    border: 1px solid #cbd7e6;
    border-radius: 6px;
    background: #ffffff;
    color: #20304a;
    font-weight: 900;
}

.amount-field {
    display: block;
    color: #66758d;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.amount-field input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin: 0.35rem 0 1rem;
    border: 1px solid #cbd7e6;
    border-radius: 8px;
    padding: 0.8rem;
    color: #122033;
    font-size: 1.1rem;
    font-weight: 900;
}

.mobile-deposit-form {
    display: grid;
    gap: 0.85rem;
}

.mobile-deposit-form label,
.deposit-amount-row label,
.payment-card-form label {
    display: grid;
    gap: 0.25rem;
    color: #526077;
    font-size: 0.78rem;
    font-weight: 900;
}

.mobile-deposit-form input,
.mobile-deposit-form select {
    width: 100%;
    min-height: 2.65rem;
    border: 1px solid #b9c3d0;
    border-radius: 6px;
    padding: 0 0.7rem;
    background: #ffffff;
    color: #122033;
}

.deposit-amount-row,
.payment-card-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.payment-card-form .wide {
    grid-column: 1 / -1;
}

.payment-type-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(8rem, auto);
    align-items: center;
    gap: 0.65rem;
}

.payment-type-title select {
    width: 100%;
}

.save-card-toggle {
    display: flex !important;
    align-items: center;
    gap: 0.65rem !important;
    color: #242936 !important;
}

.save-card-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.save-card-toggle > span {
    position: relative;
    width: 2.5rem;
    height: 1.4rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #cbd5e1;
}

.save-card-toggle > span::after {
    content: "";
    position: absolute;
    top: 0.16rem;
    left: 0.18rem;
    width: 1.08rem;
    height: 1.08rem;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.15s ease;
}

.save-card-toggle input:checked + span {
    background: #0f766e;
}

.save-card-toggle input:checked + span::after {
    transform: translateX(1.05rem);
}

.wallet-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.6rem;
    margin-top: 1rem;
}

.wallet-actions .secondary-action {
    width: auto;
    min-width: 6rem;
    margin: 0;
}

.ticket-bar {
    position: fixed;
    right: 0.85rem;
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    left: 0.85rem;
    z-index: 7;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    width: min(calc(100% - 1.7rem), 40.3rem);
    margin: 0 auto;
    isolation: isolate;
}

@media (max-width: 480px) {
    .sheet-backdrop--center {
        padding: 0.65rem;
    }

    .sheet-backdrop--center .wallet-sheet {
        width: 100%;
        max-height: calc(100dvh - 1.3rem);
        padding: 0.85rem;
    }

    .wallet-sheet header {
        margin-bottom: 0.7rem;
    }

    .wallet-sheet h2 {
        margin-block: 0.15rem 0;
    }

    .wallet-actions {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }

    .wallet-actions button {
        min-width: 0;
        padding-inline: 0.45rem;
        font-size: 0.78rem;
    }

    .mobile-statement-list {
        gap: 0.45rem;
    }

    .mobile-statement-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 0.45rem;
        padding: 0.65rem;
    }

    .mobile-statement-row > div:first-child {
        min-width: 0;
    }

    .mobile-statement-row strong,
    .mobile-statement-row small {
        overflow-wrap: anywhere;
    }

    .statement-money {
        max-width: 6.5rem;
    }
}

.ticket-bar::before {
    position: absolute;
    z-index: -1;
    top: -0.55rem;
    right: -0.65rem;
    bottom: calc(-0.85rem - env(safe-area-inset-bottom, 0px));
    left: -0.65rem;
    border-top: 1px solid #d7e1ec;
    background: #f4f7fb;
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.08);
    content: "";
}

.ticket-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 3.15rem;
    border: 1px solid #c8d3e2;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    background: #ffffff;
    color: #122033;
    text-align: left;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.22);
}

.ticket-toggle:disabled {
    cursor: default;
}

.ticket-toggle span {
    color: #66758d;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ticket-toggle strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-toggle small {
    display: grid;
    place-items: center;
    min-height: 2.35rem;
    border-radius: 8px;
    padding: 0 0.75rem;
    background: #0f766e;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ticket-toggle:disabled small {
    background: #94a3b8;
}

.ticket-message {
    position: fixed;
    right: 0.85rem;
    bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
    left: 0.85rem;
    z-index: 5;
    width: min(calc(100% - 1.7rem), 40.3rem);
    margin: 0 auto;
    border: 1px solid #9ccdc8;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    background: #e8f6f3;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 900;
}

.ticket-drawer {
    position: fixed;
    right: 0.85rem;
    bottom: calc(4.45rem + env(safe-area-inset-bottom, 0px));
    left: 0.85rem;
    z-index: 6;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    width: min(calc(100% - 1.7rem), 40.3rem);
    max-height: min(28rem, calc(100dvh - 8.75rem - env(safe-area-inset-bottom, 0px)));
    margin: 0 auto;
    border: 1px solid #c8d3e2;
    border-radius: 8px;
    padding: 0.75rem;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.22);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ticket-close {
    display: grid;
    place-items: center;
    align-self: start;
    width: 2rem;
    height: 2rem;
    border: 1px solid #cbd7e6;
    border-radius: 6px;
    background: #ffffff;
    color: #122033;
    font-weight: 900;
}

@media (max-width: 420px) {
    .deposit-amount-row,
    .payment-card-form {
        grid-template-columns: 1fr;
    }

    .payment-card-form .wide {
        grid-column: auto;
    }

    .payment-type-title {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .payment-type-title select {
        grid-column: 1 / -1;
    }
}


.primary-action {
    width: 100%;
    min-height: 3.1rem;
}

.alert-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.52);
}

.alert-modal {
    width: min(100%, 22rem);
    border: 1px solid #c8d3e2;
    border-radius: 10px;
    padding: 1rem;
    background: #ffffff;
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.32);
}

.alert-modal header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.alert-modal h2 {
    margin: 0;
    color: #122033;
    font-size: 1.2rem;
    line-height: 1.1;
}

.alert-modal header button {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #cbd7e6;
    border-radius: 6px;
    background: #ffffff;
    color: #526077;
    font-weight: 900;
}

.alert-modal p {
    margin: 0 0 1rem;
    color: #526077;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
}

.alert-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.alert-actions .secondary-action {
    margin-top: 0;
}

#blazor-error-ui {
    display: none;
}

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background: #ffffff;
        width: 100%;
        z-index: 7;
    }
}

@media (min-width: 680px) {
    .mobile-shell {
        padding-top: 1.25rem;
    }

    .wallet-sheet {
        width: min(100%, 32rem);
        margin: 0 auto;
        border-radius: 14px 14px 0 0;
    }
}

/* Keep the player experience phone-sized when it is demonstrated in a desktop
   browser. This is the same composition a customer sees on a real phone and
   gives screen recordings a clean, centered device presentation. */
@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
    .mobile-web-frame {
        min-height: 100vh;
        background:
            radial-gradient(circle at 50% 12%, rgba(15, 118, 110, 0.18), transparent 30rem),
            #071426;
    }

    .mobile-web-frame .app-topbar {
        width: min(100%, 28rem);
        margin: 0 auto;
        border-right: 1px solid #cad5e3;
        border-left: 1px solid #cad5e3;
        padding-inline: 0.75rem;
    }

    .mobile-web-frame .mobile-shell {
        display: grid;
        width: min(100%, 28rem);
        min-height: calc(100vh - 3rem);
        margin: 0 auto;
        padding: 0.75rem 0.65rem 6.75rem;
        border-right: 1px solid #cad5e3;
        border-left: 1px solid #cad5e3;
        background: #f4f7fb;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    }

    .mobile-web-frame .mobile-header {
        grid-template-columns: 1fr;
    }

    .mobile-web-frame .game-card header {
        grid-template-columns: 3.65rem 2.6rem minmax(0, 1fr);
        gap: 0.35rem;
        min-height: 2.45rem;
        padding: 0.42rem 0.48rem;
    }

    .mobile-web-frame .game-card header strong {
        font-size: 0.78rem;
    }

    .mobile-web-frame .game-card header span,
    .mobile-web-frame .game-card header small {
        font-size: 0.64rem;
    }

    .mobile-web-frame .market-headings {
        gap: 0.2rem;
        font-size: 0.56rem;
        letter-spacing: 0.03em;
    }

    .mobile-web-frame .score-heading {
        font-size: 0.56rem;
        letter-spacing: 0.03em;
    }

    .mobile-web-frame .odds-row {
        grid-template-columns: minmax(5.9rem, 0.8fr) 1.55rem minmax(11.2rem, 1.55fr);
        align-items: center;
        gap: 0.34rem;
        min-height: 2.85rem;
        padding: 0.42rem 0.48rem;
    }

    .mobile-web-frame .odds-row span {
        font-size: 0.74rem;
    }

    .mobile-web-frame .team-line > span {
        font-size: 0.78rem;
        line-height: 1.1;
    }

    .mobile-web-frame .team-score {
        min-width: 1.45rem;
        height: 1.45rem;
        font-size: 0.7rem;
    }

    .mobile-web-frame .line-strip {
        grid-column: auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.18rem;
    }

    .mobile-web-frame .tie-row .line-strip {
        grid-column: 3;
    }

    .mobile-web-frame .line-strip.teaser {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-web-frame .line-button {
        min-height: 2.05rem;
        padding: 0.24rem 0.06rem;
        font-size: 0.56rem;
        line-height: 1.05;
    }

    .mobile-web-frame .odds-row.part-row {
        grid-template-columns: minmax(6.6rem, 0.95fr) minmax(11.5rem, 1.45fr);
    }

    .mobile-web-frame .ticket-bar,
    .mobile-web-frame .ticket-message,
    .mobile-web-frame .ticket-drawer {
        right: 50%;
        left: auto;
        width: min(calc(100% - 1.5rem), 26.5rem);
        transform: translateX(50%);
    }

    .mobile-web-frame .ticket-drawer {
        grid-template-columns: minmax(0, 1fr);
        max-height: calc(100vh - 8.75rem);
        padding: 0.65rem;
    }

    .mobile-web-frame .ticket-close {
        justify-self: end;
    }
}

@media (max-width: 620px) {
    .mobile-header {
        grid-template-columns: 1fr;
    }

    .game-card header {
        display: grid;
        grid-template-columns: minmax(5.9rem, 0.8fr) 1.55rem minmax(11.2rem, 1.55fr);
        gap: 0.35rem;
        min-height: 2.45rem;
        padding: 0.42rem 0.48rem;
    }

    .game-time {
        flex-basis: auto;
        min-width: 0;
    }

    .game-card header strong {
        font-size: 0.78rem;
    }

    .game-card header span,
    .game-card header small {
        font-size: 0.64rem;
    }

    .market-headings {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.2rem;
        min-width: 0;
        font-size: 0.56rem;
        letter-spacing: 0.03em;
    }

    .score-heading {
        font-size: 0.56rem;
        letter-spacing: 0.03em;
    }

    .market-headings.teaser {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
    }

    .odds-row {
        grid-template-columns: minmax(5.9rem, 0.8fr) 1.55rem minmax(11.2rem, 1.55fr);
        align-items: center;
        gap: 0.34rem;
        min-height: 2.85rem;
        padding: 0.42rem 0.48rem;
    }

    .odds-row span {
        font-size: 0.74rem;
    }

    .team-line {
        gap: 0.25rem;
    }

    .team-line > span {
        font-size: 0.78rem;
        line-height: 1.1;
    }

    .team-score {
        min-width: 1.45rem;
        height: 1.45rem;
        border-radius: 5px;
        font-size: 0.7rem;
    }

    .line-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-column: auto;
        gap: 0.18rem;
    }

    .tie-row .line-strip {
        grid-column: 3;
    }

    .line-strip.teaser {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .line-button {
        min-height: 2.05rem;
        padding: 0.24rem 0.06rem;
        border-radius: 5px;
        font-size: 0.56rem;
        line-height: 1.05;
    }

    .odds-row.part-row {
        grid-template-columns: minmax(6.6rem, 0.95fr) minmax(11.5rem, 1.45fr);
    }

    .wallet-quick-actions {
        position: static;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        width: 100%;
        margin: 0;
    }

    .wallet-quick-actions button {
        min-height: 2.75rem;
        border: 1px solid #c8d3e2;
        border-radius: 8px;
        background: #ffffff;
        color: #122033;
        font-size: 0.72rem;
        font-weight: 900;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    }

    .wallet-quick-actions .deposit {
        border-left: 0.35rem solid #047857;
    }

    .wallet-quick-actions .cashout {
        border-left: 0.35rem solid #2563eb;
    }

    .wallet-quick-actions .statement {
        border-left: 0.35rem solid #7c3aed;
    }

    .wallet-quick-actions .pending {
        border-left: 0.35rem solid #d97706;
    }

    .wallet-quick-actions .player-card-action {
        border-left: 0.35rem solid #0891b2;
    }
}

.player-card-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(4, 10, 22, 0.82);
}

.mobile-player-card {
    position: relative;
    width: min(100%, 360px);
    background: #fff;
    color: #132035;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
}

.mobile-player-card h2 {
    margin: 0 2rem 0.75rem;
    font-size: 1.25rem;
}

.mobile-player-card img {
    display: block;
    width: min(100%, 260px);
    aspect-ratio: 1;
    margin: 0 auto 0.75rem;
}

.mobile-player-card strong,
.mobile-player-card small {
    display: block;
}

.mobile-affiliate-menu {
    text-align: left;
}

.mobile-affiliate-menu h2 {
    margin-bottom: 1rem;
}

.affiliate-menu-links {
    display: grid;
    gap: 0.65rem;
}

.affiliate-menu-links button {
    min-height: 3rem;
    border: 1px solid #b9c9da;
    border-radius: 8px;
    background: #ffffff;
    color: #122033;
    font-size: 0.95rem;
    font-weight: 900;
    text-align: left;
    padding: 0 1rem;
}

.affiliate-menu-links button:hover {
    border-color: #0f766e;
    background: #e8f7f4;
    color: #0f766e;
}

.affiliate-menu-note {
    color: #657085;
}

.mobile-player-card small {
    margin-top: 0.35rem;
    color: #657085;
}

.player-card-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: #26344a;
    font-size: 1.2rem;
}


/* Mobile player surface: use one natural document scroller so iOS can reach
   every game; the fixed ticket bar retains its own independent behavior. */
@media (hover: none), (pointer: coarse) {
    .mobile-web-frame {
        height: auto;
        min-height: 100dvh;
        overflow-y: visible;
    }

    .mobile-web-frame .mobile-shell {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
        padding-bottom: calc(10rem + env(safe-area-inset-bottom, 0px));
    }

    .mobile-web-frame .games-section,
    .mobile-web-frame .game-list {
        height: auto;
        max-height: none;
        overflow: visible;
        overscroll-behavior: auto;
    }

    .mobile-web-frame .game-list {
        padding-right: 0;
        padding-bottom: 1.5rem;
    }
}
