/* 加拿大28 (owner 29.11, a demo): the page of the hash games (hash.css) with the BCLC draw under the result instead of the
   block hash — 20 numbers ascending, the three zones in their colours, the zone sums. Colours ≥ 4.5:1 on the card (#101722). */

.c28-badge {
    align-self: center;
    margin-left: 8px;
    padding: 3px 9px;
    border: 1px solid rgba(138, 90, 0, 0.35);
    border-radius: 999px;
    background: #fff7e6;
    color: #7a4f00;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.c28-proof {
    display: grid;
    gap: 6px;
}

.hs-keno {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.hs-keno .kz {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 26px;
    padding: 0 4px;
    border-radius: 7px;
    background: #1a2332;
    color: #9aa4b5;
    font-family: var(--cas-mono);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.hs-keno i.kz {
    color: #818b9e;
    background: transparent;
    border: 1px dashed #3a4558;
}

.hs-hash .kz--0,
.hs-keno b.kz--0 { color: #7cc4ff; }

.hs-hash .kz--1,
.hs-keno b.kz--1 { color: #f5b83d; }

.hs-hash .kz--2,
.hs-keno b.kz--2 { color: #6ee7a8; }

/* The reveal dims the taken characters of a hash (b.is-dim): here the numbers keep their zone colour, only lose the weight. */
.hs-keno b.kz.is-dim {
    color: #9aa4b5;
}

.kz-sums {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-family: var(--cas-mono);
    font-size: 12.5px;
    font-weight: 700;
}

/* The section of its own (owner 01.12): its name, then its tables as short tabs («2.84», «2.0», «网盘»). */
.hs-section {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    margin: 0 4px 0 0;
    color: var(--cas-text);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
}

.hs-section__icon {
    width: 34px;
    height: 34px;
    flex: none;
}

.hs-tab--short {
    padding: 0 18px;
}

@media (max-width: 640px) {
    /* The heading and the sound switch on one row, the tables on their own below — every table in view in every language. */
    .hs-top {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .hs-top .hs-section {
        flex: 1 1 auto;
    }

    .hs-top .hs-tabs {
        order: 3;
        flex: 1 1 100%;
    }

    .hs-section {
        font-size: 19px;
    }

    .hs-section__icon {
        width: 28px;
        height: 28px;
    }

    .hs-tab--short {
        flex: 1 1 0;
        justify-content: center;
        padding: 0 12px;
    }
}

/* 撤单 (owner 02.12): each open bet of the round taking bets with its own button (js/casino/hash.js paintCancel) — the countdown,
   «确认撤单？» after the first press, «已过撤单时间» once the window is over. */
.hs-my__bet {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 12px;
}

.hs-my__bet .hs-my__lines {
    flex: 1 1 auto;
    min-width: 0;
}

.hs-my__bet + .hs-my__bet {
    padding-top: 8px;
    border-top: 1px dashed rgba(245, 184, 61, 0.25);
}

.hs-my__cancel {
    flex: none;
    min-height: 32px;
    padding: 4px 14px;
    border: 1px solid rgba(252, 217, 138, 0.7);
    border-radius: 999px;
    background: none;
    color: #fcd98a;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    cursor: pointer;
}

.hs-my__cancel:hover:not(:disabled) {
    background: rgba(252, 217, 138, 0.12);
}

.hs-my__cancel.is-armed {
    border-color: #f5b83d;
    background: #f5b83d;
    color: #1a1200;
}

.hs-my__cancel:disabled {
    border-color: rgba(255, 255, 255, 0.18);
    color: #a3adbd;
    cursor: default;
}
