/* BCH Play — game lobby & play UI */
.hx-lobby-hero {
    padding: 3rem 0 2rem;
    text-align: center;
}
.hx-lobby-hero h1 {
    font-family: var(--hx-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin: 0 0 .6rem;
}
.hx-lobby-hero .hx-dash-sub { color: var(--hx-muted); max-width: 640px; margin: 0 auto 1.5rem; }

.hx-lobby-wrap { padding: 1rem 0 4rem; }
.hx-lobby-section { margin-bottom: 2.5rem; }
.hx-lobby-section h2 {
    font-family: var(--hx-display);
    font-size: 1.25rem;
    margin: 0 0 1rem;
    color: var(--hx-bch-bright);
}
.hx-lobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.hx-game-card-v2 {
    position: relative;
    background: var(--hx-panel);
    border: 1px solid var(--hx-line);
    border-radius: var(--hx-radius);
    padding: 1.35rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    transition: transform .2s, border-color .2s;
}
.hx-game-card-v2:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--game-color) 50%, transparent);
}
.hx-game-card-v2__glow {
    position: absolute;
    top: -40%;
    right: -30%;
    width: 140px;
    height: 140px;
    background: var(--game-color);
    opacity: .12;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}
.hx-game-card-v2__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--game-color) 18%, transparent);
    color: var(--game-color);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}
.hx-game-card-v2 h3 { margin: 0; font-size: 1.05rem; }
.hx-game-card-v2 p { margin: 0; font-size: .85rem; color: var(--hx-muted); flex: 1; }
.hx-game-card-v2__tag {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--hx-bch);
}
.hx-game-card-v2 .hx-btn { margin-top: .5rem; width: 100%; }

/* Play layout */
.hx-play-wrap { padding: 1.5rem 0 3rem; }
.hx-play-breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--hx-muted);
    margin-bottom: 1rem;
}
.hx-play-breadcrumb a:hover { color: var(--hx-bch); }
.hx-play-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.25rem;
    align-items: start;
}
@media (max-width: 900px) {
    .hx-play-layout { grid-template-columns: 1fr; }
}
.hx-play-panel {
    background: var(--hx-panel);
    border: 1px solid var(--hx-line);
    border-radius: var(--hx-radius);
    padding: 1.25rem;
}
.hx-play-game-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--hx-line);
}
.hx-play-game-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--game-color) 20%, transparent);
    color: var(--game-color);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
}
.hx-play-game-head h1 { margin: 0; font-size: 1.35rem; font-family: var(--hx-display); }
.hx-play-game-head p { margin: 0; color: var(--hx-muted); font-size: .9rem; }

.hx-controls { display: flex; flex-direction: column; gap: 1rem; }
.hx-control-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}
.hx-control-row label {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: .8rem;
    color: var(--hx-muted);
    flex: 1;
    min-width: 120px;
}
.hx-input {
    background: var(--hx-panel-2);
    border: 1px solid var(--hx-line);
    border-radius: 10px;
    color: var(--hx-text);
    padding: .55rem .75rem;
    font: inherit;
    width: 100%;
}
.hx-input:focus { outline: none; border-color: var(--hx-bch); }
.hx-muted { color: var(--hx-muted); }
.hx-mult-badge {
    align-self: flex-end;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: rgba(10,193,142,.15);
    color: var(--hx-bch-bright);
    font-weight: 600;
    font-size: .9rem;
}

.hx-game-result {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border-radius: 12px;
    font-size: .95rem;
    border: 1px solid var(--hx-line);
}
.hx-game-result--win {
    background: rgba(10,193,142,.12);
    border-color: rgba(10,193,142,.35);
    color: var(--hx-bch-bright);
}
.hx-game-result--loss {
    background: rgba(255,77,109,.1);
    border-color: rgba(255,77,109,.3);
    color: #ff8fa3;
}

/* Side panel */
.hx-side-balance .hx-balance-label { font-size: .75rem; color: var(--hx-muted); text-transform: uppercase; letter-spacing: .05em; }
.hx-side-balance .hx-balance-amount { font-size: 1.5rem; font-weight: 700; margin-top: .25rem; }
.hx-side-fair h3, .hx-play-side h3 { font-size: .9rem; margin: 0 0 .75rem; }
.hx-fair-hash {
    display: block;
    font-size: .65rem;
    word-break: break-all;
    background: var(--hx-panel-2);
    padding: .5rem;
    border-radius: 8px;
    color: var(--hx-muted);
}
.hx-mini-games { display: flex; flex-direction: column; gap: .4rem; }
.hx-mini-game {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .6rem;
    border-radius: 10px;
    font-size: .82rem;
    background: var(--hx-panel-2);
    border: 1px solid transparent;
    transition: border-color .15s;
}
.hx-mini-game:hover { border-color: color-mix(in srgb, var(--game-color) 40%, transparent); }
.hx-mini-game i { color: var(--game-color); }

/* Dice / Limbo */
.hx-limbo-display {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    font-family: var(--hx-display);
    color: var(--hx-bch-bright);
    padding: 1rem;
    background: var(--hx-panel-2);
    border-radius: 14px;
}
.hx-limbo-display.hx-limbo-win { color: var(--hx-bch-bright); }
.hx-limbo-display.hx-limbo-loss { color: var(--hx-red); }

/* Mines */
.hx-mines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .45rem;
    max-width: 320px;
    margin: 0 auto;
}
.hx-mines-tile {
    aspect-ratio: 1;
    border: none;
    border-radius: 10px;
    background: var(--hx-panel-2);
    color: var(--hx-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.hx-mines-tile:hover:not(:disabled) { background: rgba(10,193,142,.2); transform: scale(1.03); }
.hx-mines-tile:disabled { cursor: default; }
.hx-mines-tile--gem { background: rgba(10,193,142,.35); color: var(--hx-bch-bright); }
.hx-mines-tile--mine { background: rgba(255,77,109,.4); color: #fff; }

/* Plinko */
.hx-plinko-board {
    position: relative;
    height: 200px;
    background: var(--hx-panel-2);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: .5rem;
}
.hx-plinko-ball {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--hx-gold);
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px var(--hx-gold);
    transition: left .6s ease-in-out, top .6s ease-in-out;
}
.hx-plinko-slots {
    display: flex;
    justify-content: space-between;
    padding: 0 .5rem;
    font-size: .65rem;
    color: var(--hx-muted);
}

/* Wheel */
.hx-wheel-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 1rem;
}
.hx-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--hx-line);
    background: conic-gradient(
        #0ac18e 0deg 30deg, #1a2744 30deg 60deg, #f5c842 60deg 90deg,
        #5d9bff 90deg 120deg, #ff6b35 120deg 150deg, #c56eff 150deg 180deg,
        #0ac18e 180deg 210deg, #1a2744 210deg 240deg, #f5c842 240deg 270deg,
        #5d9bff 270deg 300deg, #ff6b35 300deg 330deg, #c56eff 330deg 360deg
    );
    transition: transform 2.5s cubic-bezier(.2,.8,.2,1);
}
.hx-wheel-pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 18px solid var(--hx-gold);
}

/* Keno */
.hx-keno-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: .35rem;
}
.hx-keno-num {
    border: 1px solid var(--hx-line);
    background: var(--hx-panel-2);
    color: var(--hx-text);
    border-radius: 8px;
    padding: .4rem;
    font-size: .8rem;
    cursor: pointer;
}
.hx-keno-num--picked { background: rgba(10,193,142,.3); border-color: var(--hx-bch); color: var(--hx-bch-bright); }
.hx-keno-num--hit { background: var(--hx-bch); color: #032218; font-weight: 700; }
.hx-keno-drawn {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    min-height: 2rem;
}
.hx-keno-drawn span {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--hx-panel-2);
    font-size: .75rem;
    font-weight: 600;
}

/* Hi-Lo */
.hx-hilo-card {
    width: 100px;
    height: 140px;
    margin: 0 auto;
    border-radius: 12px;
    background: linear-gradient(145deg, #fff, #e8ecf5);
    color: #1a1a2e;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.hx-hilo-btns { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }

/* Horses */
.hx-race-track { display: flex; flex-direction: column; gap: .45rem; }
.hx-runner {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .75rem;
    border-radius: 10px;
    background: var(--hx-panel-2);
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color .15s;
}
.hx-runner:has(input:checked) { border-color: var(--hx-bch); background: rgba(10,193,142,.1); }
.hx-runner input { accent-color: var(--hx-bch); }
.hx-runner-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--hx-panel);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .85rem;
}
.hx-runner--winner { border-color: var(--hx-gold); background: rgba(245,200,66,.15); }

/* Sports */
.hx-sports-match {
    background: var(--hx-panel-2);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
}
.hx-sports-league {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--hx-muted);
    margin-bottom: .75rem;
}
.hx-sports-vs {
    font-weight: 800;
    color: var(--hx-vegas-gold, #ffd700);
    font-size: .85rem;
}
.hx-sports-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: .75rem;
    align-items: center;
}
.hx-sports-team { font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.hx-sports-team--home { justify-content: flex-end; text-align: right; }
.hx-sports-team--away { justify-content: flex-start; text-align: left; }
.hx-sports-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--hx-panel);
    display: grid;
    place-items: center;
    font-size: .7rem;
    color: var(--hx-muted);
}
.hx-sports-scoreboard {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--hx-display);
    color: var(--hx-bch-bright);
    min-width: 80px;
}
.hx-sports-odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}
.hx-odds-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding: .75rem .5rem;
    border-radius: 12px;
    background: var(--hx-panel-2);
    border: 1px solid var(--hx-line);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.hx-odds-btn:has(input:checked) {
    border-color: var(--hx-bch);
    background: rgba(10,193,142,.12);
}
.hx-odds-btn input { display: none; }
.hx-odds-label { font-size: .75rem; color: var(--hx-muted); }
.hx-odds-val { font-weight: 700; color: var(--hx-bch-bright); }

/* Bingo */
.hx-bingo-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .35rem;
    max-width: 280px;
    margin: 0 auto;
}
.hx-bingo-cell {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--hx-panel-2);
    font-size: .75rem;
    font-weight: 600;
    border: 1px solid var(--hx-line);
}
.hx-bingo-cell--marked { background: rgba(10,193,142,.25); border-color: var(--hx-bch); color: var(--hx-bch-bright); }
.hx-bingo-cell--line { background: var(--hx-bch); color: #032218; }
.hx-bingo-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: .9rem;
}
.hx-bingo-drawn-wrap { margin-top: .5rem; }
.hx-bingo-drawn {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    max-height: 80px;
    overflow-y: auto;
}
.hx-bingo-drawn span {
    padding: .2rem .45rem;
    border-radius: 6px;
    background: var(--hx-panel-2);
    font-size: .7rem;
}

/* Homepage featured games */
.hx-games--featured .hx-game-tile { min-height: 280px; }
.hx-game-tile--catalog .hx-game-art-icon { opacity: .9; }