/* Preserve the captured bet_cart appearance while giving its controls native semantics. */
.reference-body .reference-betslip[hidden],
.reference-body .reference-betslip-toggle[hidden] { display:none !important; }
.reference-betslip .bc_ttl .bc_da,
.reference-betslip .money_box .reset_money {
    border:0;
    padding:0;
    background:transparent;
    color:inherit;
}
.reference-betslip .bc_ttl .bc_da { line-height:20px; }
.reference-betslip .controll_box { border:0; padding:0; line-height:0; }
.reference-betslip .controll_box:disabled { cursor:not-allowed; opacity:1; }
.reference-betslip .controll_box .circle { display:block; }
.reference-betslip .money_box .reset_money { margin-right:3px; vertical-align:middle; line-height:20px; }
.reference-betslip .money_btn_box .btn_money { box-sizing:border-box; padding:0; height:36px; font-size:12px; }
.reference-betslip .bc_btn_box .btn_bet { box-sizing:content-box; border:0; font-size:14px; }
.reference-betslip .bet_money:focus-visible { outline:2px solid #f6d400; outline-offset:2px; }
.reference-betslip .reference-betslip-note { margin:8px 10px 0; color:#f6d400; font-size:12px; line-height:1.5; }
.reference-betslip .reference-betslip-note[hidden] { display:none; }
.reference-betslip .bc_select #ho-mini-selected.is-filled { padding:10px; text-align:left; line-height:1.6; }
.reference-betslip .bc_select .is-filled strong,
.reference-betslip .bc_select .is-filled span,
.reference-betslip .bc_select .is-filled em { display:block; }
.reference-betslip .bc_select .is-filled em { color:#fc0; text-align:right; font-style:normal; }
.reference-betslip .btn_bet:disabled { cursor:not-allowed; }
.reference-betslip .bc_info_box li[hidden] { display:none; }
.reference-body .reference-betslip-toggle { border:0; background:transparent; }
.reference-betslip-toggle [hidden] { display:none; }
@media screen and (max-width:767px) {
    .reference-body .reference-betslip-toggle { bottom:60px; }
    .reference-betslip-toggle .closed { padding:8px; border-radius:3px; background:#e5aa06; }
    .reference-body #reference-betslip { transition:right .2s ease; padding-bottom:60px; box-sizing:border-box; }
}

/* Header account opener and a persistent guest toolbar for the mobile drawer. */
body.reference-body .ho-betslip-header { display: none; }
@media screen and (max-width: 767px) {
    body.reference-body.ho-betslip-open { overflow: hidden; }
    body.reference-body #reference-betslip {
        top: max(8px, env(safe-area-inset-top));
        right: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
        width: calc(100% - 16px);
        max-width: 380px;
        height: auto;
        padding: 0 0 12px;
        background: #0d0b08;
        border: 1px solid #806339;
        border-radius: 12px;
        box-shadow: 0 10px 36px rgba(0, 0, 0, .55);
        transform: translateX(calc(100% + 16px));
        transition: transform .2s ease;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #705333 #0d0b08;
    }
    body.reference-body #reference-betslip.bet_slip_on { transform: translateX(0); }
    body.reference-body #reference-betslip .ho-betslip-header {
        position: sticky;
        top: 0;
        z-index: 5;
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        padding: 8px;
        background: linear-gradient(135deg, #211b11, #0e0c09 70%);
        border-bottom: 1px solid #745832;
        box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
    }
    body.reference-body #reference-betslip .ho-betslip-close {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
        border: 1px solid #ae8b50;
        border-radius: 50%;
        color: #ffe9b3;
        background: radial-gradient(circle at 35% 20%, #3a2d19, #100e09 75%);
        box-shadow: inset 0 1px 0 rgba(255, 236, 179, .2);
        cursor: pointer;
    }
    body.reference-body #reference-betslip .ho-betslip-guest-actions {
        display: grid;
        grid-template-columns: 1fr 1.25fr 1.75fr;
        align-items: stretch;
        gap: 5px;
        min-width: 0;
    }
    body.reference-body #reference-betslip :is(.ho-betslip-close, .ho-betslip-guest-actions > button, .ho-betslip-guest-actions > a):focus-visible {
        outline: 2px solid #ffe9a5;
        outline-offset: 2px;
    }
    body.reference-body #reference-betslip :is(.ho-betslip-close, .ho-betslip-guest-actions > button, .ho-betslip-guest-actions > a):hover { filter: brightness(1.12); }
    body.reference-body .reference-betslip-toggle {
        top: 0;
        left: auto;
        right: 0;
        bottom: auto;
        z-index: 9990;
        box-sizing: border-box;
        width: 50px;
        height: 50px;
        min-height: 50px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        line-height: 0;
    }
    body.reference-body .reference-betslip-toggle .opened {
        position: relative;
        display: grid;
        place-items: center;
        box-sizing: border-box;
        width: 50px;
        height: 50px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        color: #efd49c;
        background: transparent;
        box-shadow: none;
    }
    body.reference-body .reference-betslip-toggle .opened::before {
        content: "";
        display: block;
        width: 27px;
        height: 27px;
        background: currentColor;
        -webkit-mask: url('/ho135/img/ui/account-user.svg') center / contain no-repeat;
        mask: url('/ho135/img/ui/account-user.svg') center / contain no-repeat;
    }
    body.reference-body .reference-betslip-toggle .opened > img { display: none; }
    body.reference-body .reference-betslip-toggle .count_bet {
        position: absolute;
        top: 4px;
        right: 3px;
        bottom: auto;
        left: auto;
        display: grid;
        place-items: center;
        box-sizing: border-box;
        min-width: 18px;
        width: auto;
        height: 18px;
        margin: 0;
        padding: 0 4px;
        border: 2px solid #100c06;
        border-radius: 12px;
        background: linear-gradient(135deg, #ffe9a5, #ba8d45);
        color: #241b0c;
        font-size: 10px;
        font-weight: 800;
        line-height: 14px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
    }
    body.reference-body .reference-betslip-toggle .opened[hidden],
    body.reference-body .reference-betslip-toggle .count_bet[hidden],
    body.reference-body .reference-betslip-toggle .closed { display: none; }
    body.reference-body .reference-betslip-toggle:is(:hover, :focus-visible) .opened { color: #fff0c9; background: rgba(191, 153, 85, .12); }
    body.reference-body .reference-betslip-toggle:active .opened { filter: brightness(.9); }
}
@media screen and (max-width: 767px) and (prefers-reduced-motion: reduce) {
    body.reference-body #reference-betslip { transition: none; }
}

/* Mobile home and drawer share one compact guest-action surface and icon set. */
@media screen and (max-width: 767px) {
    body.reference-body #main-content .contents_join_box.ho-guest-actions {
        display: grid;
        grid-template-columns: 1fr 1fr 1.5fr;
        gap: 5px;
        box-sizing: border-box;
        width: calc(100% - 10px);
        height: auto;
        margin: 8px 5px 6px;
        padding: 0;
        border: 0;
        background: transparent;
    }
    body.reference-body #main-content .contents_join_box.ho-guest-actions > .ho-auth-action,
    body.reference-body #reference-betslip .ho-betslip-guest-actions > .ho-auth-action {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        box-sizing: border-box;
        width: auto;
        min-width: 0;
        height: 40px;
        min-height: 40px;
        margin: 0;
        padding: 4px 3px;
        border: 1px solid #695333;
        border-radius: 6px;
        color: #efdab0;
        background: linear-gradient(145deg, #30271b, #15120d);
        box-shadow: inset 0 1px 0 rgba(255, 235, 195, .08);
        font-family: inherit;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
    }
    body.reference-body #main-content .contents_join_box.ho-guest-actions > .ho-auth-signup,
    body.reference-body #reference-betslip .ho-betslip-guest-actions > .ho-auth-signup {
        color: #241b0d;
        background: linear-gradient(110deg, #ab8245, #e6cca0, #be9959);
        border-color: #b79458;
    }
    body.reference-body #main-content .contents_join_box.ho-guest-actions > [aria-disabled="true"],
    body.reference-body #reference-betslip .ho-betslip-guest-actions > [aria-disabled="true"] {
        color: #b5a17c;
        border-color: #493c27;
        background: #1c1811;
        cursor: not-allowed;
    }
    body.reference-body .ho-guest-actions > .ho-auth-action > img { display: none; }
    body.reference-body .ho-guest-actions > .ho-auth-action::before {
        content: "";
        display: block;
        position: static;
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
        margin: 0;
        padding: 0;
        border: 0;
        background: currentColor;
        -webkit-mask: var(--ho-auth-icon) center / contain no-repeat;
        mask: var(--ho-auth-icon) center / contain no-repeat;
    }
    body.reference-body .ho-auth-login { --ho-auth-icon: url('/ho135/img/ui/auth-login.svg'); }
    body.reference-body .ho-auth-signup { --ho-auth-icon: url('/ho135/img/ui/auth-signup.svg'); }
    body.reference-body .ho-auth-telegram { --ho-auth-icon: url('/ho135/img/ui/auth-telegram.svg'); }
    body.reference-body #main-content .contents_join_box.ho-guest-actions > .ho-auth-action:is(:hover, :focus-visible):not([aria-disabled="true"]),
    body.reference-body #reference-betslip .ho-betslip-guest-actions > .ho-auth-action:is(:hover, :focus-visible):not([aria-disabled="true"]) { filter: brightness(1.12); }
    body.reference-body .telegram_btn.only_mobile {
        display: grid;
        place-items: center;
        top: 0;
        right: 50px;
        width: 44px;
        height: 50px;
        line-height: 0;
    }
    body.reference-body .telegram_btn.only_mobile img { width: 28px; height: 28px; }
    body.reference-body .logo_gnb { display: flex; align-items: center; justify-content: center; }
    body.reference-body .logo_gnb > a { display: block; line-height: 0; }
    body.reference-body .logo_gnb > a > img { width: 184.6px; max-width: calc(100vw - 190px); height: auto; }
}
@media screen and (max-width: 359px) {
    body.reference-body #reference-betslip .ho-betslip-guest-actions > .ho-auth-action { font-size: 11.5px; gap: 3px; }
    body.reference-body #reference-betslip .ho-betslip-guest-actions > .ho-auth-action::before { flex-basis: 14px; width: 14px; height: 14px; }
}
