@import url('https://fonts.googleapis.com/css2?family=Gmarket+Sans:wght@300;400;700;900&family=Noto+Sans+KR:wght@300;400;700;900&display=swap');

:root {
    --ref-black: #050505;
    --ref-panel: #141414;
    --ref-panel-soft: #242424;
    --ref-gold: #e7ae4d;
    --ref-gold-light: #fff0b7;
    --ref-line: #4b3518;
    --ref-muted: #919191;
}

* { box-sizing: border-box; }
html, body { min-width: 0; min-height: 100%; margin: 0; }
body {
    overflow-x: hidden;
    background: #050505;
    color: #eee;
    font-family: "Gmarket Sans", "Noto Sans KR", sans-serif;
    font-size: 13px;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; font: inherit; }

#referenceWrap { min-height: 100vh; background: #050505; }
#referenceSidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: 264px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px 18px 28px;
    background: linear-gradient(180deg, #151515, #0b0b0b);
    border-right: 1px solid #272727;
    box-shadow: 5px 0 20px #000b;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}
#referenceSidebar:hover {
    scrollbar-color: #8a641c rgba(0, 0, 0, .18);
}
#referenceSidebar::-webkit-scrollbar {
    width: 5px;
    height: 0;
}
#referenceSidebar::-webkit-scrollbar-track {
    background: transparent;
}
#referenceSidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
    border: 1px solid transparent;
}
#referenceSidebar:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c4923a, #7a5414);
    border-color: rgba(0, 0, 0, .35);
}
#referenceSidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d4a84a, #8c5c16);
}
#referenceSidebar::-webkit-scrollbar-corner {
    background: transparent;
}
.referenceLogo {
    display: block;
    height: 106px;
    margin-bottom: 16px;
    text-align: center;
}
.referenceLogo img {
    display: block;
    width: min(240px, 100%);
    max-width: 100%;
    height: 102px;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
    transition: filter .22s ease;
}

.referenceLogo:hover img {
    filter: brightness(1.15) saturate(1.08) drop-shadow(0 0 12px rgba(255, 202, 82, .42));
}
.referenceSectionTitle {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 18px 4px 8px;
    color: var(--ref-gold-light);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.03em;
    text-transform: uppercase;
    white-space: nowrap;
}
.referenceSectionTitle:first-letter { color: var(--ref-gold); }
.referenceNav { display: grid; gap: 2px; }
.referenceNav a {
    display: flex;
    align-items: center;
    min-height: 39px;
    padding: 7px 6px;
    border-bottom: 1px solid #292929;
    color: #bdbdbd;
    font-size: 14px;
    transition: .18s ease;
}
.referenceNav a i {
    width: 25px;
    margin-right: 2px;
    color: var(--ref-gold);
    font-size: 18px;
    font-style: normal;
    text-align: center;
}
.referenceNav a:hover,
.referenceNav a.active { background: #33240e; color: #fff; }
.referenceSideFooter {
    margin-top: 34px;
    padding: 12px 5px;
    border-top: 1px solid #302c24;
    color: #707070;
    font-size: 10px;
    letter-spacing: .08em;
}
.referenceSideFooter small { display: block; margin-top: 4px; letter-spacing: 0; }

#referenceContent { margin-left: 264px; }
#referenceTopbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 55px;
    padding: 0 16px;
    background: linear-gradient(180deg, #1b1b1b, #0b0b0b);
    border-bottom: 1px solid #6d531f;
}
.referenceMenuToggle {
    display: none;
    width: 34px;
    height: 32px;
    margin-right: 8px;
    border: 1px solid #6d531f;
    border-radius: 5px;
    background: #111;
    color: var(--ref-gold-light);
    font-size: 18px;
}
.referenceSidebarBackdrop { display: none; }
.referenceBell { color: #aaa; font-size: 16px; }
.referenceTicker {
    flex: 1;
    margin: 0 40px;
    overflow: hidden;
    color: #ffd533;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
.referenceTicker span {
    display: inline-block;
    padding-left: 100%;
    animation: referenceTickerMove 20s linear infinite;
}
.referenceTicker:hover span { animation-play-state: paused; }
@keyframes referenceTickerMove {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
.referenceAuthButtons { display: flex; gap: 4px; }
.referenceButton {
    min-width: 80px;
    height: 29px;
    padding: 0 12px;
    border: 1px solid #d99e2e;
    border-radius: 6px;
    background: linear-gradient(#fff4c8, #edae31);
    color: #16110a;
    font-size: 10px;
    font-weight: 900;
}
.referenceButton.dark { border-color: #eee2b2; background: #070707; color: #fff; }
.referenceButton:hover { filter: brightness(1.16); }
.referenceUser { align-self: center; margin-right: 8px; color: var(--ref-gold-light); font-size: 11px; }
.referenceAccountPanel { display: flex; align-items: center; gap: 7px; }
.referenceBalanceItem { min-width: 92px; padding: 4px 9px; border: 1px solid #6f5523; border-radius: 5px; background: linear-gradient(180deg, #211a0d, #0d0c09); }
.referenceBalanceItem span { display: block; color: #b89a5a; font-size: 8px; letter-spacing: .06em; }
.referenceBalanceItem strong { display: block; margin-top: 2px; color: #ffe29a; font-size: 11px; white-space: nowrap; }
.referenceBalanceItem strong b { color: #fff1bf; font-size: 14px; }
.referenceUserCard { display: flex; align-items: center; gap: 5px; min-width: 92px; padding: 3px 7px; border: 1px solid #3d3a32; border-radius: 5px; background: #111; }
.referenceUserAvatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid #c99b39; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe6a0, #8c5c16); color: #271907; font-size: 12px; font-weight: 950; }
.referenceUserCard small { display: block; color: #8c8c8c; font-size: 7px; letter-spacing: .08em; }
.referenceUserCard b { display: block; max-width: 72px; margin-top: 2px; overflow: hidden; color: #f7d779; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.referenceLogout { display: inline-flex; align-items: center; gap: 4px; min-height: 29px; padding: 0 9px; border: 1px solid #8a3e32; border-radius: 5px; background: linear-gradient(180deg, #3a1713, #1b0c0a); color: #ffd1c8; font-size: 9px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.referenceLogout span { color: #ff9e89; font-size: 16px; line-height: 1; }
.referenceLogout:hover { border-color: #e46d5a; background: linear-gradient(180deg, #5a2119, #2a100d); color: #fff; }

#referenceMain {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 14px;
}
.referenceHero {
    position: relative;
    aspect-ratio: 1920 / 450;
    overflow: hidden;
    border-bottom: 2px solid #b7892e;
    background: #0a0a0a;
}
.referenceHeroSlides { position: absolute; inset: 0; }
.referenceHeroSlides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0a0a0a;
    opacity: 0;
    transition: opacity .45s ease;
}
.referenceHeroSlides img.active { opacity: 1; }
.referenceHeroArrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 30px;
    height: 50px;
    margin-top: -25px;
    background: #0005;
    color: #fff0ae;
    font-size: 38px;
    line-height: 35px;
}
.referenceHeroArrow.left { left: 5px; }
.referenceHeroArrow.right { right: 5px; }
.referenceHeroArrow:hover { background: #bd822c; }
.referenceHeroDots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    z-index: 3;
    display: flex;
    gap: 5px;
    transform: translateX(-50%);
}
.referenceHeroDots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #0007;
}
.referenceHeroDots button.active { background: var(--ref-gold); }

.referenceGameTabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 17px 30px 7px;
}
.referenceGameTabs button {
    height: 28px;
    border-radius: 5px;
    background: #333;
    color: #cfcfcf;
    font-size: 12px;
}
.referenceGameTabs button.active,
.referenceGameTabs button:hover {
    background: linear-gradient(#fff0b0, #e9ab33);
    color: #3a270d;
}
.referenceGamePanel { display: none; padding: 0 30px; }
.referenceGamePanel.active { display: block; }
.referenceCardGrid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    max-height: none;
    overflow: visible;
    padding-bottom: 12px;
}
.referenceGameCard {
    display: block;
    overflow: hidden;
    border: 2px solid #d0a34d;
    border-radius: 10px;
    background: #080808;
    box-shadow: 0 2px 8px #000;
    transition: .2s ease;
}
.referenceGameCard:hover {
    border-color: #fff5c5;
    box-shadow: 0 0 15px #e8b64c99;
    transform: translateY(-2px);
}
.referenceGameCard img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.referenceGameCard.is-blocked {
    position: relative;
    cursor: not-allowed;
    opacity: .48;
    filter: grayscale(.85);
    pointer-events: none;
}
.referenceGameCard.is-blocked:hover {
    border-color: #d0a34d;
    box-shadow: 0 2px 8px #000;
    transform: none;
}
.referenceGameBlocked {
    position: absolute;
    inset: auto 8px 8px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .78);
    color: #ffb4b4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}
.mini-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 850px; margin: auto; }
.referenceSportsPanel {
    position: relative;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    min-height: 260px;
    overflow: hidden;
    border: 2px solid #d0a34d;
    background: #101010;
}
.referenceSportsVisual {
    position: relative;
    min-height: 260px;
    background-position: center;
    background-size: cover;
    filter: brightness(.62) saturate(.7);
}
.referenceSportsVisual::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 28, 19, .2), rgba(1, 10, 7, .08) 45%, rgba(2, 9, 7, .9)),
        linear-gradient(135deg, transparent 0 58%, rgba(89, 255, 173, .18) 58.2% 58.6%, transparent 58.8% 100%);
    content: "";
}
.referenceSportsVisual::after {
    position: absolute;
    right: 8%;
    bottom: 16%;
    width: 125px;
    height: 125px;
    border: 1px solid rgba(130, 255, 193, .55);
    border-radius: 50%;
    box-shadow: 0 0 0 9px rgba(130, 255, 193, .08), 0 0 28px rgba(74, 222, 128, .35);
    content: "";
    transform: rotate(24deg);
}
.referenceSportsOverlay {
    position: absolute;
    top: 26px;
    left: 28px;
    z-index: 1;
    display: grid;
    gap: 4px;
    text-shadow: 0 3px 10px #00150c;
}
.referenceSportsOverlay span {
    color: #79ffba;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .24em;
}
.referenceSportsOverlay b {
    color: #f4ffd9;
    font-size: clamp(22px, 3vw, 37px);
    font-weight: 900;
    letter-spacing: -.06em;
}
.referenceSportsOverlay small {
    color: rgba(225, 255, 237, .75);
    font-size: 9px;
    letter-spacing: .1em;
}
.referenceSportsCopy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    background: linear-gradient(135deg, #181818, #070707);
}
.referenceSportsCopy > span { color: var(--ref-gold); font-size: 10px; font-weight: 900; letter-spacing: .17em; }
.referenceSportsCopy h2 { margin: 9px 0 7px; color: #fff1b7; font-size: 27px; }
.referenceSportsCopy p { margin: 0; color: #aaa; font-size: 12px; line-height: 1.7; }
.referenceSportsActions { display: flex; gap: 7px; margin-top: 21px; }
.referenceSportsActions a {
    padding: 9px 15px;
    border: 1px solid #d0a34d;
    background: linear-gradient(#fff0b0, #e9ab33);
    color: #35220a;
    font-size: 11px;
    font-weight: 900;
}
.referenceSportsActions a + a { background: #111; color: #f2ce7a; }
.referenceBoardRow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 18px 30px 60px;
}
.referenceBoardCard {
    position: relative;
    display: grid;
    grid-template-columns: 30px 1fr 20px;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    min-height: 60px;
    padding: 8px 12px;
    border-top: 1px solid #5f431b;
    border-bottom: 1px solid #5f431b;
    background: linear-gradient(90deg, #191919, #0d0d0d);
}
.referenceBoardCard i { grid-row: 1 / span 2; color: var(--ref-gold); font-size: 23px; font-style: normal; }
.referenceBoardCard b { color: #eee; font-size: 12px; }
.referenceBoardCard small { color: #7d7d7d; font-size: 9px; }
.referenceBoardCard strong { grid-column: 3; grid-row: 1 / span 2; color: var(--ref-gold); font-size: 24px; font-weight: 300; }
.referenceBoardCard:hover { border-color: #e6b75a; background: #241a0d; }

.renewal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background: #000a;
    backdrop-filter: blur(7px);
}
.renewal-overlay.is-open { display: flex; }
.referenceAuthModal {
    position: relative;
    display: grid;
    grid-template-columns: 57% 43%;
    width: min(640px, calc(100vw - 30px));
    max-height: 94vh;
    overflow: hidden;
    border: 1px solid #3c3c3c;
    border-radius: 9px;
    background: #282828;
    box-shadow: 0 0 12px #fff3, 0 0 30px #ffb25e44;
}
.renewal-close {
    position: absolute;
    top: 7px;
    right: 12px;
    z-index: 5;
    width: 35px;
    height: 35px;
    background: transparent;
    color: #eee;
    font-size: 40px;
    font-weight: 200;
    line-height: 28px;
}
.renewal-close:hover { color: #fff0b4; }
.referenceAuthVisual {
    position: relative;
    min-height: 550px;
    overflow: hidden;
    background: #333;
}
.referenceAuthVisual::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 67%, #282828);
    content: "";
}
.referenceAuthVisual img {
    position: absolute;
    bottom: -3px;
    left: -12px;
    width: calc(100% + 18px);
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.referenceAuthPanel {
    overflow-y: auto;
    padding: 42px 24px 24px;
    background: #292929;
    text-align: center;
}
.referenceAuthLogo { display: block; width: 172px; height: 68px; margin: 0 auto 8px; object-fit: cover; object-position: center; }
.referenceAuthPanel h2 { margin: 0 0 18px; color: #f1f1f1; font-size: 24px; font-weight: 700; }
.renewal-form { display: grid; gap: 10px; }
.renewal-form.is-hidden { display: none; }
.renewal-form input {
    display: block;
    width: 100%;
    height: 45px;
    padding: 0 14px;
    border: 1px solid #50452b;
    border-radius: 6px;
    outline: none;
    background: #1b1b1b;
    color: #fff0c8;
    font-size: 13px;
    text-align: center;
}
.renewal-form input:focus { border-color: #fff0b4; }
.renewal-captcha { display: grid; grid-template-columns: 1fr 100px; gap: 7px; }
.renewal-captcha img { width: 100px; height: 45px; border-radius: 5px; background: #fff; cursor: pointer; object-fit: cover; }
.referenceAuthSubmit {
    display: block;
    width: 100%;
    height: 45px;
    border-radius: 6px;
    background: linear-gradient(#fff1bd, #efa92b);
    color: #221506;
    font-size: 15px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 #fff, 0 4px 10px #0006;
}
.referenceAuthSubmit:hover { filter: brightness(1.12); }
.referenceTelegram {
    width: 100%;
    height: 49px;
    border: 1px solid #00bce8;
    background: #0a0a0a;
    color: #00c7f1;
    font-size: 13px;
}
.referenceTelegram:disabled { cursor: default; opacity: .9; }
.referenceChat {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffd126;
    color: #1a1001;
    font-size: 24px;
    box-shadow: 0 2px 15px #f7ca2788;
}
.referenceTelegramSupport {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 65;
    min-width: 164px;
    height: 54px;
    padding: 0 18px 0 9px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(83, 203, 255, .48);
    border-radius: 999px;
    background: linear-gradient(135deg, #16a6ec, #0875c5);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 15px 42px rgba(0,0,0,.45), 0 0 24px rgba(22,166,236,.32);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -.03em;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.referenceTelegramSupport:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 20px 54px rgba(0,0,0,.52), 0 0 34px rgba(22,166,236,.42);
}
.referenceTelegramSupport span {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 21px;
    line-height: 1;
    flex: 0 0 auto;
}
.referenceTelegramSupport b {
    color: #fff;
    white-space: nowrap;
}
.reference-view-root { min-height: calc(100vh - 55px); }
.reference-view-root[hidden] { display: none; }
.direct-view {
    min-height: calc(100vh - 55px);
    padding: 28px 30px 70px;
    background:
        radial-gradient(circle at 80% 0, rgba(71, 32, 8, .28), transparent 28rem),
        #070707;
}
.direct-view-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin-bottom: 16px;
    border-bottom: 1px solid #68491b;
}
.direct-view-head h1 { flex: 1; margin: 0; color: #ffe9aa; font-size: 22px; }
.direct-view-badge { color: #bf8e3e; font-size: 9px; letter-spacing: .18em; }
.direct-back {
    width: 34px;
    height: 34px;
    border: 1px solid #87632c;
    background: #151515;
    color: #f6ca6a;
    font-size: 28px;
    line-height: 20px;
}
.direct-view-body { max-width: 1080px; margin: 0 auto; }
.direct-view-body:has(.renewal-sports-layout) { width: 100%; max-width: 1360px; }
.direct-view-body.is-loading { min-height: 340px; display: grid; place-items: center; }
.direct-loading, .direct-empty { padding: 55px 20px; color: #999; text-align: center; }
.renewal-slot-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}
.renewal-slot-toolbar input {
    flex: 1;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #5c421c;
    background: #121212;
    color: #f5e7c4;
    font-size: 14px;
}
.renewal-slot-toolbar b {
    color: #d8bd76;
    font-size: 12px;
    white-space: nowrap;
}
.renewal-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.renewal-slot-card {
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 1px solid #4d3817;
    background: linear-gradient(180deg, #17140f, #0d0c0a);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.renewal-slot-card:hover {
    border-color: #c49a45;
    transform: translateY(-1px);
}
.renewal-slot-card img,
.renewal-slot-noimg {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #111;
}
.renewal-slot-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a7040;
    font-size: 28px;
}
.renewal-slot-card span {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.renewal-slot-card b {
    color: #ffe9aa;
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.renewal-slot-card small {
    color: #9a8660;
    font-size: 10px;
}
@media (max-width: 640px) {
    .renewal-slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .renewal-slot-card { padding: 6px; }
    .renewal-slot-card b { font-size: 11px; }
}
.direct-error { padding: 26px; border: 1px solid #802b25; background: #29100d; color: #ffb1a8; }
.direct-balance-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.direct-balance-row > span,
.direct-balance-grid > div {
    flex: 1;
    padding: 14px;
    border: 1px solid #573c18;
    background: #131313;
    color: #999;
}
.direct-balance-row b,
.direct-balance-grid b { display: block; margin-top: 4px; color: #f8d77c; font-size: 20px; }
.direct-form {
    display: grid;
    gap: 10px;
    padding: 20px;
    border: 1px solid #5c421c;
    background: linear-gradient(135deg, #191919, #0e0e0e);
}
.direct-form label { display: grid; gap: 5px; color: #d8bd76; font-size: 12px; }
.direct-form input,
.direct-form select,
.direct-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #493719;
    border-radius: 4px;
    outline: none;
    background: #080808;
    color: #eee;
}
.direct-form textarea { min-height: 130px; resize: vertical; }
.direct-form input:focus,
.direct-form select:focus,
.direct-form textarea:focus { border-color: #e4ae45; }
.direct-methods,
.direct-balance-grid,
.direct-profile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.direct-methods label { display: block; }
.direct-methods input { display: none; }
.direct-methods span {
    display: block;
    padding: 13px;
    border: 1px solid #493719;
    color: #bbb;
    text-align: center;
}
.direct-methods input:checked + span { border-color: #e5b34e; background: #39280f; color: #ffe5a0; }
.direct-submit {
    min-height: 43px;
    margin-top: 4px;
    background: linear-gradient(#fff0b6, #e7a62f);
    color: #261706;
    font-weight: 900;
}
.direct-note { margin-top: 12px; color: #9b9b9b; font-size: 11px; }
.direct-account-box { padding: 13px; border: 1px solid #3c522e; background: #102016; color: #b9e4a7; }
.direct-profile { margin-bottom: 14px; }
.direct-profile > div { padding: 14px; border: 1px solid #4c3718; background: #141414; }
.direct-profile small { display: block; color: #8c8c8c; font-size: 11px; }
.direct-profile b { display: block; margin-top: 5px; color: #f0d281; font-size: 14px; }
.direct-form h3 { margin: 0 0 4px; color: #ffe6a0; }
.direct-list,
.direct-notice-list { display: grid; gap: 8px; }
.direct-list-item,
.direct-notice {
    padding: 14px 16px;
    border: 1px solid #4d371a;
    background: #131313;
}
.direct-notice {
    padding: 0;
}
.direct-list-item:hover,
.direct-notice:hover { border-color: #d6a642; background: #1c160d; }
.direct-list-item > div,
.direct-notice-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.direct-notice-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.direct-notice-toggle:focus-visible {
    outline: 2px solid #e9b64e;
    outline-offset: -2px;
}
.direct-notice-head { flex: 1; min-width: 0; }
.direct-notice-head b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.direct-notice-chevron {
    flex: 0 0 auto;
    color: #d7a544;
    font-size: 18px;
    line-height: 1;
    transition: transform .16s ease;
}
.direct-notice.is-expanded .direct-notice-chevron { transform: rotate(45deg); }
.direct-list-item b,
.direct-notice b { color: #f5d77e; }
.direct-list-item small,
.direct-notice small { color: #898989; font-size: 10px; }
.direct-list-item > span { float: right; color: #8e8e8e; font-size: 10px; }
.direct-list-item > span.unread { color: #f2b740; }
.direct-list-item p { margin: 10px 0 0; color: #b9b9b9; white-space: pre-line; line-height: 1.65; }
.direct-notice-content {
    margin: 0;
    padding: 0 16px 14px;
    border-top: 1px solid rgba(215, 164, 68, .24);
    color: #b9b9b9;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.direct-notice-content p { margin: 0 0 10px; }
.direct-notice-content p:last-child { margin-bottom: 0; }
.direct-notice-content h2,
.direct-notice-content h3,
.direct-notice-content h4 { margin: 12px 0 8px; color: #f5d77e; line-height: 1.35; }
.direct-notice-content ul,
.direct-notice-content ol { margin: 8px 0; padding-left: 22px; }
.direct-notice-content blockquote {
    margin: 10px 0;
    padding: 9px 12px;
    border-left: 3px solid #d7a544;
    background: #241b0d;
    color: #e7ca83;
}
.direct-notice-content hr { margin: 12px 0; border: 0; border-top: 1px solid #4d371a; }
.direct-notice-content a { color: #f5d77e; text-decoration: underline; }
.direct-notice-content img { display: block; max-width: 100%; height: auto; margin: 8px auto; }
.direct-answer { margin-top: 10px; padding: 10px; border-left: 3px solid #d7a544; background: #241b0d; color: #e7ca83; white-space: pre-line; }
.direct-sports-grid { display: grid; gap: 8px; margin-bottom: 14px; }
.direct-sports-wallet { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid #5c421c; background: linear-gradient(135deg, #191919, #0e0e0e); }
.direct-sports-wallet small { display: block; color: #9b9b9b; font-size: 10px; }
.direct-sports-wallet > div b { display: block; margin-top: 3px; color: #f8d77c; font-size: 18px; }
.direct-sports-transfer { display: flex; gap: 6px; }
.direct-sports-transfer input { min-width: 190px; min-height: 34px; padding: 6px 9px; border: 1px solid #493719; background: #080808; color: #eee; }
.direct-sports-transfer button { padding: 0 12px; border: 1px solid #85602a; background: #241a0b; color: #f4d17a; cursor: pointer; }
.direct-sports-match { padding: 15px; border: 1px solid #4d371a; background: #111; }
.direct-sports-meta { color: #ae8440; font-size: 10px; }
.direct-sports-match h3 { margin: 8px 0 12px; color: #eee; font-size: 15px; }
.direct-sports-match h3 em { margin: 0 9px; color: #c7953d; font-size: 10px; font-style: normal; }
.direct-market-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.direct-odd-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 8px 10px; border: 1px solid #4e3a1b; background: #191919; color: #d9d9d9; font-size: 11px; text-align: left; }
.direct-odd-button:hover,
.direct-odd-button.selected { border-color: #e9b64e; background: #38260d; color: #ffe6a1; }
.direct-odd-button b { flex: 0 0 auto; color: #f1c25c; }
.direct-cart { min-height: 38px; padding: 10px; border: 1px dashed #6d4c1e; color: #c5a55d; font-size: 11px; }
.direct-cart-item { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #332714; }
.direct-cart-item:last-child { border-bottom: 0; }
.direct-cart-item button { border: 0; background: transparent; color: #d99a3e; font-size: 16px; cursor: pointer; }
.direct-sports-history-list { display: grid; gap: 10px; }
.direct-sports-history { padding: 15px; border: 1px solid #4d371a; background: #111; }
.direct-sports-history > header,
.direct-sports-history > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.direct-sports-history > header b { color: #f5d77e; }
.direct-sports-history > header small,
.direct-sports-history > footer small { color: #898989; font-size: 10px; }
.direct-sports-history > header strong { color: #e9b64e; font-size: 12px; }
.direct-sports-history-summary { margin-top: 10px; color: #bcbcbc; font-size: 11px; }
.direct-sports-history ul { display: grid; gap: 5px; margin: 12px 0; padding: 0; list-style: none; }
.direct-sports-history li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px; background: #191919; color: #e5e5e5; font-size: 11px; }
.direct-sports-history li small { color: #a98a51; }
.direct-sports-history li b { color: #f0c866; }
.direct-action { min-height: 30px; padding: 0 12px; border: 1px solid #85602a; background: #241a0b; color: #f4d17a; cursor: pointer; }
.direct-action:hover { border-color: #f2bd4e; background: #4a300d; }
.renewal-sports-tabs { display: grid; grid-template-columns: repeat(9, minmax(70px, 1fr)); gap: 4px; margin-bottom: 8px; }
.renewal-sports-tabs button { min-height: 38px; border: 1px solid #3f321d; background: #111; color: #b9b9b9; cursor: pointer; font-size: 11px; font-weight: 800; }
.renewal-sports-tabs button i { margin-right: 5px; font-style: normal; }
.renewal-sports-tabs button:hover,
.renewal-sports-tabs button.active { border-color: #dca943; background: linear-gradient(180deg, #3b2a0d, #1b1408); color: #ffe5a0; }
.renewal-sports-filter { display: none; }
.renewal-sports-filter button { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; padding: 0 9px; border: 1px solid #334333; background: #121914; color: #b8c6b4; cursor: pointer; font-size: 10px; }
.renewal-sports-filter button b { color: #e1b84f; font-size: 10px; }
.renewal-sports-filter button:hover,
.renewal-sports-filter button.active { border-color: #34c58a; background: #103c2f; color: #effff7; }
.renewal-sports-layout { display: grid; grid-template-columns: minmax(0, 1fr) 235px; gap: 10px; align-items: start; }
.renewal-sports-board { min-width: 0; display: grid; gap: 7px; }
.renewal-league-heading { display: flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px; border: 1px solid #62491e; background: linear-gradient(180deg, #211b10, #15120b); color: #f2d477; }
.renewal-league-heading span { color: #42d59d; }
.renewal-league-heading b { flex: 1; font-size: 12px; }
.renewal-league-heading small { color: #b39350; font-size: 10px; }
.renewal-sports-match { padding: 8px; border: 1px solid #292929; background: linear-gradient(180deg, #161616, #0e0e0e); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.renewal-sports-match > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; padding-bottom: 6px; border-bottom: 1px solid #29251b; color: #a9915b; font-size: 10px; }
.renewal-sports-match > header time { color: #888; white-space: nowrap; font-variant-numeric: tabular-nums; }
.renewal-match-sport { display: inline-flex; align-items: center; gap: 6px; color: #f0cf72; }
.renewal-match-sport i { font-size: 15px; font-style: normal; line-height: 1; }
.renewal-match-sport b { font-size: 10px; letter-spacing: .05em; }
.renewal-sports-match h3 { display: grid; grid-template-columns: minmax(0,1fr) 42px minmax(0,1fr); align-items: center; gap: 8px; margin: 8px 0; color: #f2f2f2; font-size: 13px; text-align: center; }
.renewal-sports-match h3 b:first-child { text-align: right; }
.renewal-sports-match h3 b:last-child { text-align: left; }
.renewal-sports-match h3 em { color: #d19c3d; font-size: 10px; font-style: normal; }
.renewal-market-labels { display: grid; grid-template-columns: minmax(0,1fr) minmax(84px,.45fr) minmax(0,1fr); gap: 4px; margin-bottom: 4px; color: #82704a; font-size: 9px; text-align: center; }
.renewal-market-lines { display: grid; gap: 4px; }
.renewal-market-line { display: grid; grid-template-columns: minmax(0,1fr) minmax(84px,.45fr) minmax(0,1fr); gap: 4px; min-height: 42px; }
.renewal-odd-button { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; padding: 6px 9px; border: 1px solid #343434; border-radius: 4px; background: linear-gradient(180deg, #292929, #202020); color: #e9e9e9; cursor: pointer; font-size: 10px; text-align: left; }
.renewal-odd-button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.renewal-odd-button b { flex: 0 0 auto; color: #efc568; font-size: 11px; }
.renewal-odd-button.is-center-odd { justify-content: center; padding-inline: 4px; text-align: center; }
.renewal-odd-button.is-center-odd b { flex: 0 0 auto; }
.renewal-odd-button:hover,
.renewal-odd-button.selected { border-color: #35d39b; background: linear-gradient(180deg, #145942, #0b3528); color: #effff7; }
.renewal-odd-button.selected b { color: #b5ffdc; }
.renewal-odd-button.is-empty { opacity: .45; cursor: not-allowed; }
.renewal-market-center { display: flex; align-items: center; justify-content: center; min-width: 0; border: 1px solid #3b3322; border-radius: 4px; background: #191612; color: #d0a84e; font-size: 11px; font-weight: 900; text-align: center; overflow: hidden; }
.renewal-market-center.is-vs { color: #68d8aa; }
.renewal-more-markets { width: 100%; min-height: 30px; margin-top: 7px; border: 1px solid #8b682c; background: linear-gradient(180deg, #33250e, #1b1409); color: #f3cc70; cursor: pointer; font-size: 10px; font-weight: 800; }
.renewal-more-markets:hover { border-color: #e6b94f; background: #4b350e; }
.renewal-extra-market-group { display: none; margin-top: 7px; padding: 7px; border: 1px solid #8b6b36; background: linear-gradient(180deg, #eee0c3, #d6bc8d); color: #2c210f; }
.renewal-extra-market-group.is-open { display: block; }
.renewal-extra-market-group > header { display: flex; align-items: center; gap: 6px; min-height: 28px; margin-bottom: 5px; color: #4b3413; font-size: 10px; }
.renewal-extra-market-group > header span { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: #238b62; color: #fff; font-size: 11px; }
.renewal-extra-market-group > header b { flex: 1; }
.renewal-extra-market-group > header small { color: #755827; }
.renewal-extra-market-group .renewal-market-line { grid-template-columns: minmax(0,1fr) minmax(84px,.45fr) minmax(0,1fr); }
.renewal-extra-market-group .renewal-odd-button { border-color: #b2935e; background: #fff9ec; color: #211b12; }
.renewal-extra-market-group .renewal-odd-button b { color: #9e6814; }
.renewal-extra-market-group .renewal-odd-button:hover,
.renewal-extra-market-group .renewal-odd-button.selected { border-color: #16885f; background: #d8f8e8; }
.renewal-sports-slip { position: sticky; top: 12px; display: grid; gap: 8px; width: 235px; max-width: 235px; min-width: 0; justify-self: end; padding: 10px; border: 1px solid #68491b; background: linear-gradient(180deg, #18140d, #0d0d0d); }
.renewal-mobile-slip-toggle,
.renewal-mobile-slip-backdrop,
.renewal-mobile-slip-head { display: none; }
.renewal-sports-balance { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 7px 10px; border: 1px solid #3f5e36; background: #102016; }
.renewal-sports-balance small { display: inline; color: #9bb695; font-size: 10px; white-space: nowrap; }
.renewal-sports-balance small::after { content: " :"; }
.renewal-sports-balance b { display: inline; margin-top: 0; color: #a9e68e; font-size: 18px; white-space: nowrap; }
.renewal-sports-transfer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px; }
.renewal-sports-transfer input,
.renewal-sports-transfer button,
.renewal-sports-bet-form input { min-height: 34px; border: 1px solid #493719; background: #080808; color: #eee; font-size: 10px; }
.renewal-sports-transfer input,
.renewal-sports-bet-form input { padding: 0 8px; }
.renewal-sports-transfer button { padding: 0 8px; background: #2a1d0a; color: #f5d17b; cursor: pointer; }
.renewal-sports-bet-form { display: grid; gap: 7px; padding: 10px; border: 1px solid #5c421c; background: #111; }
.renewal-sports-bet-form h2 { margin: 0; color: #f5d77e; font-size: 14px; }
.renewal-sports-bet-form label { display: grid; gap: 4px; color: #ad9360; font-size: 10px; }
.renewal-sports-bet-form > button { min-height: 38px; border: 0; background: linear-gradient(#fff0b6, #e7a62f); color: #261706; cursor: pointer; font-weight: 900; }
.renewal-sports-bet-form > button:disabled { filter: grayscale(.75); opacity: .55; cursor: not-allowed; }
.renewal-sports-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.renewal-sports-quick button { min-height: 28px; border: 1px solid #56401d; background: #18120a; color: #f3d17d; font-size: 10px; cursor: pointer; }
.renewal-sports-quick button:hover { border-color: #e0ad47; background: #2b1e0b; }
.renewal-sports-cart { min-height: 55px; min-width: 0; padding: 7px; border: 1px dashed #745421; color: #cbb26f; font-size: 10px; overflow: hidden; }
.renewal-cart-bonus { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; color: #8be6b5; }
.renewal-cart-bonus span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.renewal-cart-bonus button { border: 1px solid #5e3920; background: #22100b; color: #ffb18e; font-size: 10px; cursor: pointer; }
.renewal-cart-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; padding: 6px 0; border-bottom: 1px solid #342915; }
.renewal-cart-item span { flex: 1 1 0; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.renewal-cart-item small { display: block; min-width: 0; margin-top: 2px; overflow: hidden; color: #93825d; text-overflow: ellipsis; white-space: nowrap; }
.renewal-cart-odds { flex: 0 0 auto; padding: 4px 6px; border: 1px solid #9a6c1f; background: #2a1a05; color: #ffe08a; font-size: 10px; white-space: nowrap; }
.renewal-cart-item button { flex: 0 0 auto; border: 0; background: none; color: #db9c40; cursor: pointer; font-size: 16px; }
.renewal-cart-policy { margin-top: 6px; padding: 6px; border: 1px solid #3d3421; background: #0c0c0c; color: #9e8e6d; line-height: 1.45; overflow-wrap: anywhere; }
.renewal-cart-warning { margin-top: 6px; padding: 6px; border: 1px solid #6e281e; background: #240e0b; color: #ffb1a8; line-height: 1.45; overflow-wrap: anywhere; }
.renewal-cart-empty { color: #888; text-align: center; }
.renewal-sports-slip-total { padding: 7px; border-top: 1px solid #3d2d16; color: #a6926b; font-size: 10px; line-height: 1.8; }
.renewal-sports-slip-total b { float: right; color: #f2ce70; }
@media (max-width: 900px) and (min-width: 701px) {
    #referenceSidebar { width: 210px; padding-inline: 12px; }
    #referenceContent { margin-left: 210px; }
    .referenceLogo img { width: min(225px, 100%); height: 96px; }
    .referenceNav a { font-size: 12px; }
    .referenceCardGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .renewal-sports-tabs { grid-template-columns: repeat(5, minmax(70px, 1fr)); }
}
@media (max-width: 700px) {
    #referenceSidebar {
        position: fixed;
        width: 245px;
        padding: 16px 15px 24px;
        transform: translateX(-105%);
        transition: transform .25s ease;
    }
    body.reference-sidebar-open #referenceSidebar { transform: translateX(0); }
    #referenceContent { width: 100%; margin-left: 0; }
    .referenceMenuToggle { display: block; }
    .referenceSidebarBackdrop {
        position: fixed;
        inset: 0;
        z-index: 25;
        background: rgba(0, 0, 0, .7);
    }
    body.reference-sidebar-open .referenceSidebarBackdrop { display: block; }
    #referenceTopbar { padding-inline: 8px; }
    .referenceBell { display: none; }
    .referenceTicker { margin-inline: 4px; font-size: 9px; }
    .referenceAuthButtons { gap: 2px; }
    .referenceButton { min-width: 0; padding-inline: 7px; font-size: 9px; }
    .referenceAccountPanel { gap: 3px; }
    .referenceBalanceItem { min-width: 72px; padding-inline: 5px; }
    .referenceBalanceItem strong b { font-size: 11px; }
    .referenceUserCard { min-width: 70px; padding-inline: 4px; }
    .referenceUserAvatar { width: 20px; height: 20px; font-size: 10px; }
    .referenceLogout { padding-inline: 5px; font-size: 8px; }
    .referenceHero {
        height: auto;
        aspect-ratio: 1920 / 450;
    }
    .referenceGameTabs { padding-inline: 10px; }
    .referenceGamePanel { padding-inline: 10px; }
    .referenceCardGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .direct-market-list { grid-template-columns: 1fr; }
    .direct-sports-wallet { align-items: stretch; flex-direction: column; }
    .direct-sports-transfer input { min-width: 0; flex: 1; }
    .renewal-sports-tabs { grid-template-columns: repeat(3, minmax(70px, 1fr)); }
    .renewal-sports-layout { grid-template-columns: 1fr; padding-bottom: 92px; }
    .renewal-mobile-slip-toggle {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 66;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        min-height: 54px;
        padding: 9px 12px;
        border: 1px solid #d5a43f;
        border-radius: 14px;
        background: linear-gradient(180deg, #2b210e, #0b0b0b);
        color: #f9d874;
        box-shadow: 0 12px 36px rgba(0,0,0,.6), 0 0 0 1px rgba(255,214,98,.1) inset;
        transition: transform .18s ease, opacity .18s ease;
    }
    .renewal-mobile-slip-toggle span { color: #8ee7b6; font-size: 10px; font-weight: 900; white-space: nowrap; }
    .renewal-mobile-slip-toggle b { min-width: 0; overflow: hidden; color: #fff1b8; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
    .renewal-mobile-slip-toggle small { color: #ffd85d; font-size: 10px; font-weight: 900; white-space: nowrap; }
    .renewal-mobile-slip-toggle.has-items { border-color: #36d596; background: linear-gradient(180deg, #173d2e, #0b0f0d); }
    body.renewal-sports-slip-open .renewal-mobile-slip-toggle { opacity: 0; pointer-events: none; transform: translateY(16px); }
    .renewal-mobile-slip-backdrop {
        position: fixed;
        inset: 0;
        z-index: 67;
        display: none;
        background: rgba(0,0,0,.64);
        backdrop-filter: blur(2px);
    }
    .renewal-mobile-slip-backdrop.is-open { display: block; }
    .renewal-mobile-slip-head {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: -10px -10px 0;
        padding: 12px 14px;
        border-bottom: 1px solid #5e4219;
        background: linear-gradient(180deg, #211709, #111);
    }
    .renewal-mobile-slip-head strong { color: #ffe18a; font-size: 15px; }
    .renewal-mobile-slip-head button { width: 34px; height: 30px; border: 1px solid #6a4a1b; border-radius: 8px; background: #120d07; color: #ffc45b; font-size: 21px; line-height: 1; }
    .renewal-sports-slip {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 68;
        width: auto;
        max-width: none;
        max-height: min(78vh, 680px);
        overflow: auto;
        padding: 10px;
        border-width: 1px 0 0;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -18px 55px rgba(0,0,0,.72);
        opacity: 0;
        pointer-events: none;
        transform: translateY(108%);
        transition: transform .22s ease, opacity .22s ease;
    }
    .renewal-sports-slip.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .renewal-sports-slip .renewal-sports-bet-form h2 { display: none; }
    .renewal-market-line,
    .renewal-extra-market-group .renewal-market-line { grid-template-columns: minmax(0,1fr) 66px minmax(0,1fr); }
    .renewal-sports-match h3 { font-size: 11px; }
    .referenceSportsPanel { grid-template-columns: 1fr; }
    .referenceSportsCopy { padding: 20px; }
    .referenceBoardRow { grid-template-columns: 1fr; padding-inline: 10px; }
    .referenceAuthModal { display: block; width: min(390px, calc(100vw - 20px)); }
    .referenceAuthVisual { display: none; }
    .referenceAuthPanel { padding: 35px 22px 22px; }
}

@media (max-width: 900px) {
    .direct-view-body:has(.renewal-sports-layout) { max-width: none; }
    .renewal-sports-layout { grid-template-columns: 1fr; padding-bottom: 92px; }
    .renewal-mobile-slip-toggle {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 66;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        min-height: 54px;
        padding: 9px 12px;
        border: 1px solid #d5a43f;
        border-radius: 14px;
        background: linear-gradient(180deg, #2b210e, #0b0b0b);
        color: #f9d874;
        box-shadow: 0 12px 36px rgba(0,0,0,.6), 0 0 0 1px rgba(255,214,98,.1) inset;
        transition: transform .18s ease, opacity .18s ease;
    }
    .renewal-mobile-slip-toggle span { color: #8ee7b6; font-size: 10px; font-weight: 900; white-space: nowrap; }
    .renewal-mobile-slip-toggle b { min-width: 0; overflow: hidden; color: #fff1b8; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
    .renewal-mobile-slip-toggle small { color: #ffd85d; font-size: 10px; font-weight: 900; white-space: nowrap; }
    .renewal-mobile-slip-toggle.has-items { border-color: #36d596; background: linear-gradient(180deg, #173d2e, #0b0f0d); }
    body.renewal-sports-slip-open .renewal-mobile-slip-toggle { opacity: 0; pointer-events: none; transform: translateY(16px); }
    .renewal-mobile-slip-backdrop {
        position: fixed;
        inset: 0;
        z-index: 67;
        display: none;
        background: rgba(0,0,0,.64);
        backdrop-filter: blur(2px);
    }
    .renewal-mobile-slip-backdrop.is-open { display: block; }
    .renewal-mobile-slip-head {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: -10px -10px 0;
        padding: 12px 14px;
        border-bottom: 1px solid #5e4219;
        background: linear-gradient(180deg, #211709, #111);
    }
    .renewal-mobile-slip-head strong { color: #ffe18a; font-size: 15px; }
    .renewal-mobile-slip-head button { width: 34px; height: 30px; border: 1px solid #6a4a1b; border-radius: 8px; background: #120d07; color: #ffc45b; font-size: 21px; line-height: 1; }
    .renewal-sports-slip {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 68;
        width: auto;
        max-width: none;
        max-height: min(82vh, 720px);
        overflow: auto;
        padding: 10px;
        border-width: 1px 0 0;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -18px 55px rgba(0,0,0,.72);
        opacity: 0;
        pointer-events: none;
        transform: translateY(108%);
        transition: transform .22s ease, opacity .22s ease;
    }
    .renewal-sports-slip.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .renewal-sports-slip .renewal-sports-bet-form h2 { display: none; }
}

/* Authenticated topbar: keep notice text and account controls visible together. */
#referenceTopbar,
.referenceTicker,
.referenceAuthButtons,
.referenceAccountPanel,
.referenceBalanceItem,
.referenceUserCard {
    min-width: 0;
}

.referenceAuthButtons {
    flex: 0 1 auto;
}

.referenceAccountPanel {
    max-width: 100%;
    flex-wrap: nowrap;
}

@media (max-width: 1100px) {
    #referenceTopbar {
        height: auto;
        min-height: 55px;
        flex-wrap: wrap;
        row-gap: 6px;
        padding-top: 6px;
        padding-bottom: 7px;
    }

    #referenceTopbar .referenceBell {
        display: none;
    }

    #referenceTopbar .referenceTicker {
        order: 1;
        flex: 1 1 100%;
        width: 100%;
        margin-inline: 0;
    }

    #referenceTopbar .referenceAuthButtons {
        order: 2;
        flex: 1 1 100%;
        width: 100%;
        justify-content: flex-end;
    }

    .referenceAccountPanel {
        width: 100%;
        justify-content: flex-end;
    }

    .referenceBalanceItem,
    .referenceUserCard {
        max-width: 35vw;
    }
}

@media (max-width: 700px) {
    #referenceTopbar .referenceAuthButtons {
        justify-content: stretch;
    }

    .referenceAccountPanel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        width: 100%;
        gap: 3px;
    }

    .referenceBalanceItem,
    .referenceUserCard,
    .referenceLogout {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .referenceUserCard b {
        max-width: 100%;
    }
}

/* Authenticated account sizing: fit a balance up to 10,000,000원. */
.referenceBalanceItem {
    flex: 0 1 126px;
    min-width: 126px;
}

.referenceBalanceItem strong b {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

.referencePointItem {
    cursor: pointer;
    text-decoration: none;
}

.referencePointItem strong b {
    color: #f6d36f;
}

.referenceUserCard {
    flex: 0 1 104px;
    min-width: 104px;
}

.referenceUserCard b {
    display: block;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: #f7d779;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.referenceUserCard {
    justify-content: center;
    text-align: center;
}

@media (max-width: 700px) {
    .referenceAccountPanel {
        grid-template-columns: minmax(108px, 1.2fr) minmax(78px, .9fr) minmax(74px, .85fr) auto;
    }

    .referenceBalanceItem {
        min-width: 108px;
        flex: 1 1 auto;
    }

    .referenceUserCard {
        min-width: 80px;
        flex: 1 1 auto;
    }

    .referenceBalanceItem strong b {
        font-size: 13px;
    }
}

@media (min-width: 701px) {
    .referenceLogo {
        height: 120px;
        margin-left: -8px;
        margin-right: -8px;
    }

    .referenceLogo img {
        width: 100%;
        max-width: 250px;
        transform: scale(1.10);
        transform-origin: center center;
    }
}

/* Keep the balance, nickname, and logout controls at one shared height. */
.referenceBalanceItem,
.referenceUserCard,
.referenceLogout {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
}

.referenceBalanceItem {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.renewal-mobile-sports-layout .direct-view-body:has(.renewal-sports-layout) { max-width: none; }
body.renewal-mobile-sports-layout .renewal-sports-layout { grid-template-columns: 1fr !important; padding-bottom: 92px; }
body.renewal-mobile-sports-layout .renewal-mobile-slip-toggle {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 66;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 9px 12px;
    border: 1px solid #d5a43f;
    border-radius: 14px;
    background: linear-gradient(180deg, #2b210e, #0b0b0b);
    color: #f9d874;
    box-shadow: 0 12px 36px rgba(0,0,0,.6), 0 0 0 1px rgba(255,214,98,.1) inset;
}
body.renewal-mobile-sports-layout .renewal-mobile-slip-toggle span { color: #8ee7b6; font-size: 10px; font-weight: 900; white-space: nowrap; }
body.renewal-mobile-sports-layout .renewal-mobile-slip-toggle b { min-width: 0; overflow: hidden; color: #fff1b8; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
body.renewal-mobile-sports-layout .renewal-mobile-slip-toggle small { color: #ffd85d; font-size: 10px; font-weight: 900; white-space: nowrap; }
body.renewal-mobile-sports-layout .renewal-mobile-slip-toggle.has-items { border-color: #36d596; background: linear-gradient(180deg, #173d2e, #0b0f0d); }
body.renewal-mobile-sports-layout.renewal-sports-slip-open .renewal-mobile-slip-toggle { opacity: 0; pointer-events: none; transform: translateY(16px); }
body.renewal-mobile-sports-layout .renewal-mobile-slip-backdrop {
    position: fixed;
    inset: 0;
    z-index: 67;
    display: none;
    background: rgba(0,0,0,.64);
    backdrop-filter: blur(2px);
}
body.renewal-mobile-sports-layout .renewal-mobile-slip-backdrop.is-open { display: block; }
body.renewal-mobile-sports-layout .renewal-mobile-slip-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -10px -10px 0;
    padding: 12px 14px;
    border-bottom: 1px solid #5e4219;
    background: linear-gradient(180deg, #211709, #111);
}
body.renewal-mobile-sports-layout .renewal-mobile-slip-head strong { color: #ffe18a; font-size: 15px; }
body.renewal-mobile-sports-layout .renewal-mobile-slip-head button { width: 34px; height: 30px; border: 1px solid #6a4a1b; border-radius: 8px; background: #120d07; color: #ffc45b; font-size: 21px; line-height: 1; }
body.renewal-mobile-sports-layout .renewal-sports-slip {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 68;
    width: auto !important;
    max-width: none !important;
    max-height: min(82vh, 720px);
    justify-self: auto;
    overflow: auto;
    padding: 10px;
    border-width: 1px 0 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 55px rgba(0,0,0,.72);
    opacity: 0;
    pointer-events: none;
    transform: translateY(108%);
    transition: transform .22s ease, opacity .22s ease;
}
body.renewal-mobile-sports-layout .renewal-sports-slip.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
body.renewal-mobile-sports-layout .renewal-sports-slip .renewal-sports-bet-form h2 { display: none; }

@media (max-width: 640px) {
    .referenceTelegramSupport {
        right: 12px;
        bottom: 12px;
        min-width: 138px;
        height: 46px;
        padding: 0 13px 0 7px;
        gap: 8px;
        font-size: 12px;
        box-shadow: 0 12px 30px rgba(0,0,0,.45), 0 0 20px rgba(22,166,236,.28);
    }
    .referenceTelegramSupport span {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}

/* Legacy floating chat buttons are not used in the Flex renewal UI. */
.referenceChat,
.renewal-chat,
#liveChatFloating,
.live-chat-floating {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
