.keno-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 12px;
    border: 2px solid #333;
    user-select: none;
    touch-action: none;
}

.keno-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.keno-cell.selected {
    background: var(--gold);
    color: #000;
    transform: scale(0.95);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.keno-cell.draw {
    background: #444;
    color: #fff;
}

.keno-cell.hit {
    background: var(--neon-red) !important;
    color: #fff !important;
    animation: hit-flash 0.5s infinite alternate;
    box-shadow: 0 0 15px var(--neon-red);
    z-index: 5;
}

@keyframes hit-flash {
    from {
        transform: scale(1);
        box-shadow: 0 0 10px var(--neon-red);
    }

    to {
        transform: scale(1.1);
        box-shadow: 0 0 20px var(--neon-red);
    }
}

.keno-payout-panel {
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
}

.payout-title {
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 800;
}

.payout-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.payout-item {
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.payout-match {
    display: block;
    color: #aaa;
}

.payout-odd {
    display: block;
    color: var(--gold);
    font-weight: 700;
}

.speed-btns {
    display: flex;
    gap: 5px;
}

.speed-btns button {
    padding: 5px 10px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
}

.speed-btns button.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.ev-display {
    text-align: center;
    padding: 5px;
}

.ev-sub {
    display: block;
    font-size: 0.6rem;
    color: #666;
}

@media (max-width: 600px) {
    .keno-grid {
        gap: 3px;
        padding: 5px;
    }

    .keno-cell {
        font-size: 0.75rem;
    }

    .payout-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .game-controls {
        padding-bottom: 100px;
        /* Space for bottom tab bar */
    }
}