/* =========================================
   KENO — HILO
   PREMIUM DARK UI
========================================= */

* {
    box-sizing: border-box;
}

.hilo-page {
    width: min(1320px, calc(100% - 40px));

    margin: 32px auto 60px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        350px;

    gap: 24px;

    font-family: Inter, sans-serif;
}


/* =========================================
   HEADER
========================================= */

.game-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}

.game-label {
    display: inline-flex;

    align-items: center;
    gap: 7px;

    color: #59d99a;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.8px;

    margin-bottom: 8px;
}

.game-label::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #59d99a;

    box-shadow:
        0 0 10px rgba(89,217,154,.8);
}

.game-header h1 {
    margin: 0;

    color: #f4f4f4;

    font-size: 32px;

    line-height: 1.05;

    letter-spacing: -1.2px;
}

.game-header p {
    margin: 9px 0 0;

    color: #686868;

    font-size: 12px;
}

.round-box {
    min-width: 105px;

    padding: 12px 16px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.012)
        );

    border: 1px solid #292929;

    border-radius: 12px;

    text-align: center;
}

.round-box span {
    display: block;

    color: #555;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.3px;

    margin-bottom: 5px;
}

.round-box strong {
    color: #ddd;

    font-size: 14px;
}


/* =========================================
   MAIN CARD
========================================= */

.hilo-card {
    position: relative;

    min-height: 750px;

    overflow: hidden;

    padding: 32px 34px 28px;

    background:
        radial-gradient(
            ellipse 65% 40% at 50% 25%,
            rgba(89,217,154,.075),
            transparent 70%
        ),
        radial-gradient(
            ellipse 50% 40% at 50% 90%,
            rgba(231,195,90,.025),
            transparent 70%
        ),
        #0b0b0b;

    border: 1px solid #252525;

    border-radius: 18px;

    box-shadow:
        0 25px 80px rgba(0,0,0,.28),
        inset 0 1px rgba(255,255,255,.035);
}

.hilo-card::before {
    content: "";

    position: absolute;

    inset: 0;

    opacity: .2;

    background-image:
        linear-gradient(
            rgba(255,255,255,.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.018) 1px,
            transparent 1px
        );

    background-size: 42px 42px;

    pointer-events: none;
}


/* =========================================
   STATUS
========================================= */

.game-status {
    position: absolute;

    top: 19px;
    left: 22px;

    padding: 7px 10px;

    border-radius: 7px;

    background: rgba(255,255,255,.025);

    border: 1px solid rgba(255,255,255,.045);

    color: #666;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.3px;

    z-index: 10;
}

.game-status.active {
    color: #59d99a;

    background: rgba(89,217,154,.05);

    border-color: rgba(89,217,154,.15);
}

.game-status.win {
    color: #e7c35a;

    background: rgba(231,195,90,.05);

    border-color: rgba(231,195,90,.15);
}

.game-status.loss {
    color: #ff6565;

    background: rgba(255,101,101,.05);

    border-color: rgba(255,101,101,.15);
}


/* =========================================
   CARD
========================================= */

.card-area {
    position: relative;

    z-index: 2;

    padding-top: 30px;

    display: flex;

    flex-direction: column;

    align-items: center;
}

.card-label {
    color: #555;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1.5px;

    margin-bottom: 13px;
}

.playing-card {
    position: relative;

    width: 155px;
    height: 215px;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #ededed
        );

    border: 1px solid rgba(255,255,255,.7);

    color: #161616;

    box-shadow:
        0 25px 55px rgba(0,0,0,.4),
        0 0 45px rgba(255,255,255,.035);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.playing-card.red {
    color: #e44e58;
}

.playing-card.black {
    color: #171717;
}

.playing-card.flip {
    animation:
        cardFlip .4s ease;
}

@keyframes cardFlip {

    0% {
        transform:
            rotateY(0)
            scale(1);
    }

    50% {
        transform:
            rotateY(90deg)
            scale(1.04);
    }

    100% {
        transform:
            rotateY(0)
            scale(1);
    }
}

.card-corner {
    position: absolute;

    display: flex;

    flex-direction: column;

    align-items: center;

    line-height: 1;
}

.card-corner.top {
    top: 12px;
    left: 14px;
}

.card-corner.bottom {
    right: 14px;
    bottom: 12px;

    transform: rotate(180deg);
}

.card-corner span:first-child {
    font-size: 22px;

    font-weight: 900;
}

.card-corner span:last-child {
    margin-top: 2px;

    font-size: 16px;
}

.card-center {
    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    font-size: 70px;

    font-weight: 500;

    line-height: 1;
}

.card-value {
    margin-top: 10px;

    color: #777;

    font-size: 10px;

    font-weight: 800;
}


/* =========================================
   CURRENT MULTIPLIER
========================================= */

.multiplier-area {
    position: relative;

    z-index: 3;

    display: flex;

    flex-direction: column;

    align-items: center;

    margin-top: 14px;
}

.multiplier-area span {
    color: #555;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1.2px;
}

.multiplier-area strong {
    margin-top: 3px;

    color: #f4f4f4;

    font-size: 32px;

    font-weight: 900;

    letter-spacing: -1px;

    text-shadow:
        0 0 25px rgba(255,255,255,.05);
}

.multiplier-area small {
    margin-top: 4px;

    color: #666;

    font-size: 10px;
}


/* =========================================
   CURRENT INFO
========================================= */

.current-info {
    position: relative;

    z-index: 3;

    max-width: 560px;

    margin: 15px auto 0;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;
}

.current-info-item {
    padding: 8px 11px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    background: rgba(255,255,255,.02);

    border: 1px solid rgba(255,255,255,.035);

    border-radius: 7px;
}

.current-info-item span {
    color: #4f4f4f;

    font-size: 7px;

    font-weight: 900;

    letter-spacing: .8px;
}

.current-info-item strong {
    color: #ccc;

    font-size: 10px;

    font-weight: 900;
}


/* =========================================
   GUESS OPTIONS
========================================= */

.guess-info {
    position: relative;

    z-index: 3;

    max-width: 700px;

    margin: 17px auto 0;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.guess-option {
    padding: 14px;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #121212,
            #0d0d0d
        );

    border: 1px solid #292929;

    transition:
        transform .15s ease,
        border-color .2s ease,
        background .2s ease;
}

.guess-option:hover {
    transform: translateY(-1px);
}

.higher-option:hover {
    border-color:
        rgba(89,217,154,.3);

    background:
        linear-gradient(
            145deg,
            rgba(89,217,154,.06),
            #0d0d0d
        );
}

.lower-option:hover {
    border-color:
        rgba(231,195,90,.25);

    background:
        linear-gradient(
            145deg,
            rgba(231,195,90,.045),
            #0d0d0d
        );
}


/* option header */

.guess-option-header {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 13px;
}

.guess-arrow {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(255,255,255,.04);

    font-size: 19px;

    font-weight: 900;
}

.higher-option .guess-arrow {
    color: #59d99a;

    background:
        rgba(89,217,154,.08);
}

.lower-option .guess-arrow {
    color: #e7c35a;

    background:
        rgba(231,195,90,.07);
}

.guess-option-header div {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.guess-option-header strong {
    color: #ddd;

    font-size: 10px;

    font-weight: 1000;

    letter-spacing: .6px;
}

.guess-option-header small {
    color: #4f4f4f;

    font-size: 8px;
}


/* stats */

.guess-stats {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 7px;

    margin-bottom: 9px;
}

.guess-stats div {
    padding: 8px;

    border-radius: 7px;

    background: rgba(255,255,255,.025);

    border: 1px solid rgba(255,255,255,.035);
}

.guess-stats span {
    display: block;

    color: #4d4d4d;

    font-size: 6.5px;

    font-weight: 900;

    letter-spacing: .7px;

    margin-bottom: 4px;
}

.guess-stats strong {
    color: #ddd;

    font-size: 14px;

    font-weight: 900;
}

.higher-option .guess-stats div:first-child strong {
    color: #59d99a;
}

.lower-option .guess-stats div:first-child strong {
    color: #e7c35a;
}


/* payout */

.guess-payout {
    min-height: 25px;

    margin-bottom: 9px;

    color: #555;

    font-size: 8px;

    line-height: 1.4;
}

.guess-payout strong {
    color: #eee;

    font-size: 11px;

    margin-left: 3px;
}


/* =========================================
   GUESS BUTTON
========================================= */

.guess-button {
    width: 100%;

    height: 43px;

    border-radius: 8px;

    font-size: 9px;

    font-weight: 1000;

    cursor: pointer;

    transition:
        transform .1s ease,
        filter .15s ease,
        opacity .15s ease;
}

.guess-button:hover {
    filter: brightness(1.08);
}

.guess-button:active {
    transform: scale(.98);
}

.guess-button:disabled {
    opacity: .35;

    cursor: not-allowed;
}

.higher-option .guess-button {
    background:
        linear-gradient(
            135deg,
            #69e4a5,
            #49c98b
        ) !important;

    border: 0;

    color: #07130d !important;

    box-shadow:
        0 7px 20px rgba(89,217,154,.08);
}

.lower-option .guess-button {
    background:
        linear-gradient(
            135deg,
            #efd16d,
            #dcb64d
        ) !important;

    border: 0;

    color: #171308 !important;

    box-shadow:
        0 7px 20px rgba(231,195,90,.07);
}


/* =========================================
   CASHOUT
========================================= */

.cashout-button {
    position: relative;

    z-index: 3;

    display: block;

    width: 100%;

    max-width: 700px;

    height: 47px;

    margin: 11px auto 0;

    border: 1px solid rgba(231,195,90,.25);

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #efd16d,
            #dcb64d
        ) !important;

    color: #171308 !important;

    font-size: 10px;

    font-weight: 1000;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(231,195,90,.07);

    transition:
        filter .15s ease,
        transform .1s ease;
}

.cashout-button:hover {
    filter: brightness(1.07);
}

.cashout-button:active {
    transform: scale(.985);
}

.cashout-button:disabled {
    opacity: .35;

    cursor: not-allowed;
}


/* =========================================
   HISTORY
========================================= */

.card-history {
    position: relative;

    z-index: 3;

    max-width: 700px;

    margin: 19px auto 0;

    padding-top: 14px;

    border-top: 1px solid #1c1c1c;
}

.history-title {
    display: flex;

    justify-content: space-between;

    margin-bottom: 8px;
}

.history-title span {
    color: #555;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1.2px;
}

.history-title small {
    color: #444;

    font-size: 8px;
}

.history-cards {
    display: flex;

    gap: 7px;

    min-height: 48px;

    overflow: hidden;
}

.history-card {
    flex: 0 0 36px;

    height: 48px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    border-radius: 5px;

    background: #eee;

    color: #171717;

    font-size: 9px;

    font-weight: 900;

    box-shadow:
        0 4px 12px rgba(0,0,0,.2);
}

.history-card.red {
    color: #e44e58;
}

.history-card span {
    font-size: 14px;
}

.empty-history {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #3e3e3e;

    font-size: 9px;
}


/* =========================================
   CONTROL PANEL
========================================= */

.control-panel {
    align-self: start;

    padding: 21px;

    background:
        linear-gradient(
            145deg,
            #111,
            #0d0d0d
        );

    border: 1px solid #242424;

    border-radius: 15px;

    box-shadow:
        0 20px 55px rgba(0,0,0,.2),
        inset 0 1px rgba(255,255,255,.025);
}

.control-title {
    color: #777;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.3px;

    margin-bottom: 10px;
}


/* =========================================
   INPUT
========================================= */

.bet-input-wrap {
    height: 48px;

    display: flex;

    align-items: center;

    background: #090909;

    border: 1px solid #272727;

    border-radius: 9px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.bet-input-wrap:focus-within {
    border-color:
        rgba(89,217,154,.4);

    box-shadow:
        0 0 0 3px
        rgba(89,217,154,.045);
}

.bet-input-wrap > span {
    padding-left: 14px;

    color: #686868;

    font-size: 12px;

    font-weight: 900;
}

.bet-input-wrap input {
    width: 100%;
    height: 100%;

    padding: 0 12px 0 7px;

    border: 0;

    outline: none;

    background: transparent;

    color: #eee;

    font-size: 14px;

    font-weight: 800;
}


/* =========================================
   QUICK BETS
========================================= */

.quick-bets {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 7px;

    margin-top: 9px;
}

.quick-bets button {
    height: 34px;

    border: 1px solid #262626;

    border-radius: 7px;

    background:
        linear-gradient(
            145deg,
            #151515,
            #101010
        );

    color: #8a8a8a;

    font-size: 10px;

    font-weight: 900;

    cursor: pointer;

    transition:
        .15s ease;
}

.quick-bets button:hover {
    color: #eee;

    border-color: #353535;

    background: #191919;
}


/* =========================================
   START
========================================= */

.action-area {
    margin-top: 18px;
}

.start-button {
    width: 100%;

    height: 53px;

    border: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #69e4a5,
            #49c98b
        ) !important;

    color: #07130d !important;

    font-size: 11px;

    font-weight: 1000;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(89,217,154,.1);

    transition:
        filter .15s ease,
        transform .12s ease;
}

.start-button:hover {
    filter: brightness(1.07);
}

.start-button:active {
    transform: scale(.985);
}


/* =========================================
   RULES
========================================= */

.rules {
    margin-top: 22px;

    padding-top: 18px;

    border-top: 1px solid #1d1d1d;
}

.rules-title {
    color: #707070;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.2px;

    margin-bottom: 10px;
}

.rule-row {
    min-height: 35px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    border-bottom: 1px solid rgba(255,255,255,.025);
}

.rule-row:last-child {
    border: 0;
}

.rule-row span {
    color: #5f5f5f;

    font-size: 10px;
}

.rule-row strong {
    color: #aaa;

    font-size: 9px;

    text-align: right;
}


/* =========================================
   DECK
========================================= */

.deck-info {
    margin-top: 20px;

    padding: 12px;

    display: flex;

    align-items: center;

    gap: 11px;

    border-radius: 9px;

    background: rgba(255,255,255,.02);

    border: 1px solid #1d1d1d;
}

.deck-icon {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        rgba(89,217,154,.07);

    color: #59d99a;

    font-size: 18px;
}

.deck-info div:last-child {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.deck-info strong {
    color: #aaa;

    font-size: 8px;

    letter-spacing: 1px;
}

.deck-info span {
    color: #4d4d4d;

    font-size: 8px;
}


/* =========================================
   NOTIFICATION
========================================= */

.notification {
    position: fixed;

    left: 50%;
    bottom: 28px;

    transform:
        translate(-50%, 20px);

    padding: 12px 18px;

    border: 1px solid #303030;

    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #191919,
            #111
        );

    color: #ddd;

    font-size: 10px;

    font-weight: 800;

    opacity: 0;

    pointer-events: none;

    z-index: 100;

    transition:
        opacity .2s ease,
        transform .2s ease;

    box-shadow:
        0 15px 40px rgba(0,0,0,.4);
}

.notification.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 950px) {

    .hilo-page {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 650px) {

    .hilo-page {
        width: calc(100% - 20px);

        margin-top: 20px;
    }

    .hilo-card {
        padding:
            28px 14px 22px;
    }

    .playing-card {
        width: 140px;
        height: 195px;
    }

    .card-center {
        font-size: 60px;
    }

    .guess-info {
        grid-template-columns: 1fr;
    }

    .current-info {
        grid-template-columns: 1fr;
    }

    .game-header h1 {
        font-size: 27px;
    }

}
.quick-bets button {
    background: #111;
    color: #fff;
    border: 1px solid #333;
}

.quick-bets button:hover {
    background: #222;
}

.quick-bets button.active {
    background: #292929;
    border-color: #777;
}