/* LV666.COM rebuild — Milestone 1 global styles (spec: LV939-UI-Design-Specification) */
[hidden] { display: none !important; }
:root {
    --gutter: #6E0707;
    --surface: #430404;
    --surface-dark: #1C0801;
    --surface-deep: #240C02;
    --red: #D21A1A;
    --disabled: #6B0B0B;
    --gold-link: #F5D04C;
    --gold-button: #FCB612;
    --gold-frame: #E2A92A;
    --gold-code: #F9B636;
    --muted: #776B67;
    --placeholder: #8A7A7A;
    --about: #B39A9A;
    --column-w: 414px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--gutter);
    color: #fff;
    font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
button { font-family: inherit; }
.icon { flex: none; }

.page-gutter { min-height: 100vh; }
.column {
    max-width: var(--column-w);
    margin: 0 auto;
    background: var(--surface);
    min-height: 100vh;
    position: relative;
    padding-bottom: 104px;
    box-shadow: 0 0 40px rgba(0,0,0,.35);
}

/* ---------- sticky top block ---------- */
.top-sticky { position: sticky; top: 0; z-index: 40; }

.app-banner {
    height: 55px; background: var(--surface-dark);
    display: flex; align-items: center; gap: 10px;
    padding: 0 12px 0 36px; border-bottom: 1px solid #400B05; position: relative;
}
.app-banner-close {
    position: absolute; top: 0; left: 0; width: 34px; height: 34px;
    background: radial-gradient(circle at 0 0, #3b3b3b 0 70%, transparent 71%);
    border: 0; color: #fff; cursor: pointer; display: grid; place-items: start; padding: 5px 0 0 6px;
}
.app-banner-logo {
    flex: none; width: 36px; height: 36px; display: grid; place-items: center;
    background: linear-gradient(160deg, #C41212, #7A0505); border: 1px solid var(--gold-frame);
    color: #F7E980; font-weight: 900; font-size: 9px; border-radius: 8px; letter-spacing: 0;
}
.app-banner-text { color: #fff; font-size: 12.5px; line-height: 1.35; flex: 1; margin: 0; }
.app-banner-install {
    flex: none; width: 118px; height: 40px;
    background: linear-gradient(90deg, #E5922E, #F07A22);
    color: #fff; font-weight: 700; font-size: 12px; line-height: 1.15; text-align: left;
    border: 1px solid #F5BD1E; border-radius: 6px; padding: 0 8px;
    display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}

.site-header {
    height: 80px;
    background: linear-gradient(112deg, var(--surface-dark) 0 34%, #3A0B05 34.2% 100%);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 15px;
}
.logo { text-decoration: none; display: inline-flex; align-items: baseline; gap: 3px; }
.logo-text {
    font-size: 40px; font-weight: 900; font-style: italic; letter-spacing: 1px;
    background: linear-gradient(180deg, #F7E980 10%, #F5BD1E 48%, #B97F06 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 0 rgba(0,0,0,.5));
}
.logo-dot { color: var(--gold-frame); font-size: 13px; font-weight: 700; }
.header-actions { display: flex; gap: 12px; }
.header-btn-wrap { position: relative; }
.header-btn {
    width: 44px; height: 44px; border-radius: 8px; cursor: pointer;
    background: linear-gradient(180deg, #5E0C08, #3A0604);
    border: 1px solid #C98A2B; color: #FFF4D6;
    display: grid; place-items: center;
}
.lang-menu {
    position: absolute; right: 0; top: 52px; z-index: 60; width: 216px;
    background: var(--surface-deep); border: 1px solid var(--gutter);
    border-radius: 10px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.lang-item {
    display: flex; align-items: center; gap: 9px; width: 100%;
    background: none; border: 0; border-radius: 6px; cursor: pointer;
    color: #fff; font-size: 14px; padding: 9px 10px; text-align: left;
}
.lang-item.is-active { background: var(--surface); }
.flag { width: 24px; height: 24px; border-radius: 50%; display: inline-block; flex: none; }
.flag-bd { background: radial-gradient(circle at 45% 50%, #F42A41 0 36%, transparent 37%), #006A4E; }
.flag-us { background: linear-gradient(180deg, #3C3B6E 0 45%, transparent 45%), repeating-linear-gradient(180deg, #B22234 0 4px, #fff 4px 8px); }

.welcome-row {
    min-height: 65px; background: linear-gradient(180deg, #2A0B05, var(--surface-dark));
    border-top: 1px solid #4A1A0A;
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 15px; gap: 10px;
}
.welcome-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar-circle {
    width: 40px; height: 40px; border-radius: 50%; flex: none;
    background: #5C0A0A; border: 1px solid var(--gutter); color: #B39A9A;
    display: grid; place-items: center;
}
.welcome-text { display: flex; flex-direction: column; line-height: 1.3; }
.welcome-text strong { font-size: 16px; }
.welcome-text small { color: #9B8F8F; font-size: 12px; }
.welcome-text .balance-line { color: var(--gold-link); display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.welcome-actions { display: flex; gap: 3px; }
.btn-skew {
    text-decoration: none; height: 42px; border: 0; cursor: pointer; font-weight: 700; font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-skew-red { background: var(--red); color: #fff; min-width: 110px; padding: 0 22px 0 16px; clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%); }
.btn-skew-gold { background: var(--gold-button); color: var(--surface-dark); min-width: 118px; padding: 0 16px 0 24px; clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); }
.account-actions { display: flex; gap: 20px; }
.account-action {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: #fff; text-decoration: none; font-size: 12px;
}
.account-action-icon { display: grid; place-items: center; }
.account-action-icon.gold { color: var(--gold-button); }
.account-action-icon.red { color: #F54033; }

/* ---------- homepage sections ---------- */
.page-main { display: block; }
.carousel { position: relative; height: 165px; margin: 12px 15px 0; border-radius: 12px; overflow: hidden; background: var(--surface-dark); }
.carousel-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
    padding: 18px 20px; display: flex; align-items: center; pointer-events: none;
}
.carousel-slide.is-active { opacity: 1; pointer-events: auto; }
.carousel-slide-inner { display: flex; flex-direction: column; gap: 5px; position: relative; z-index: 1; }
.carousel-kicker { color: var(--gold-link); font-size: 13px; font-weight: 700; }
.carousel-title { font-size: 25px; font-weight: 800; line-height: 1.3; text-shadow: 0 2px 6px rgba(0,0,0,.45); }
.carousel-cta {
    margin-top: 6px; width: fit-content; font-size: 11px; font-weight: 700;
    color: var(--gold-link); border: 1px solid var(--gold-frame);
    padding: 3px 12px; border-radius: 12px; background: rgba(0,0,0,.25);
}
.carousel-deco { position: absolute; right: 14px; bottom: -14px; font-size: 96px; font-weight: 900; color: rgba(255,215,0,.16); }

.promo-tiles { display: flex; gap: 10px; padding: 12px 15px 0; }
.promo-tile {
    flex: 1; height: 75px; border-radius: 12px; text-decoration: none;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 14px; color: #fff;
}
.promo-tile-red { background: linear-gradient(120deg, #8F0606, var(--red)); }
.promo-tile-gold { background: linear-gradient(120deg, #C78F06, var(--gold-button)); color: var(--surface-deep); }
.promo-tile-text strong { display: block; font-size: 15px; }
.promo-tile-text small { font-size: 11px; opacity: .85; }
.promo-tile-art { font-size: 30px; }

.ticker { height: 48px; box-sizing: content-box; display: flex; align-items: stretch; gap: 12px; padding: 8px 15px; }
.ticker-main { flex: 1; min-width: 0; display: flex; align-items: stretch; background: var(--surface-dark); border-radius: 8px; overflow: hidden; }
.ticker-bell {
    width: 48px; flex: none;
    background: linear-gradient(180deg, #6B0808, #430404); color: #FFC21A;
    display: grid; place-items: center; position: relative;
}
.ticker-badge {
    position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px;
    border-radius: 9px; background: #FF2222; color: #fff; font-size: 10px; font-weight: 700;
    display: grid; place-items: center; border: 1.5px solid var(--surface); padding: 0 3px;
}
.ticker-track-wrap { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.ticker-track {
    display: inline-flex; white-space: nowrap;
    animation: ticker-scroll 40s linear infinite; font-size: 14px; font-weight: 600;
    will-change: transform;
}
.ticker-set { display: inline-flex; flex: none; gap: 56px; padding: 0 28px; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-search {
    width: 48px; height: 48px; align-self: center; flex: none; border-radius: 8px; cursor: pointer;
    background: linear-gradient(180deg, #5E0C08, #3A0604); border: 1px solid #C98A2B; color: #fff;
    display: grid; place-items: center;
}

.home-body { display: flex; padding: 4px 15px 0; }
.provider-rail {
    width: 68px; flex: none; align-self: flex-start;
    position: sticky; top: 140px;
    display: flex; flex-direction: column; gap: 13px;
    max-height: calc(100vh - 152px); overflow-y: auto; scrollbar-width: none;
}
.provider-rail::-webkit-scrollbar { display: none; }
.rail-tile {
    width: 68px; min-height: 88px; border-radius: 10px; cursor: pointer;
    background: linear-gradient(180deg, #740708, #9F0809);
    border: 1px solid transparent; color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 6px 2px;
}
.rail-tile small { font-size: 10px; line-height: 1.2; text-align: center; }
.rail-tile-initials { font-size: 20px; font-weight: 900; color: var(--gold-link); }
.rail-tile.is-selected { background: var(--red); border-color: var(--gold-link); }
.home-sections { flex: 1; min-width: 0; padding-left: 15px; display: flex; flex-direction: column; gap: 20px; }
.game-section { background: #5A0606; border-radius: 12px; overflow: hidden; padding-bottom: 14px; }
.game-section-bar {
    height: 54px; padding: 0 12px 0 18px;
    background: linear-gradient(90deg, #A00202, #FC5403 50%, var(--red));
    display: flex; align-items: center; justify-content: space-between;
}
.game-section-title { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; }
.game-section-title .icon { color: #FFE2DA; }
.game-section-count { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.count-pill { background: var(--surface-dark); border-radius: 15px; padding: 5px 12px; min-width: 70px; text-align: center; font-weight: 700; }
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 12px; padding: 0 9px; }
.game-card { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.game-card-art {
    position: relative; aspect-ratio: 77 / 103; border-radius: 8px; overflow: hidden;
    border: 1px solid rgba(245,208,76,.45); display: grid; place-items: center;
}
.game-card-initials { font-size: 25px; font-weight: 900; color: rgba(255,255,255,.92); text-shadow: 0 2px 5px rgba(0,0,0,.5); }
.game-card-plus {
    position: absolute; top: 4px; right: 4px; width: 16px; height: 16px;
    border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center;
}
.game-card-hot {
    position: absolute; top: 4px; left: 4px; background: var(--red); color: #fff;
    font-size: 8px; font-weight: 800; padding: 2px 5px; border-radius: 4px;
    display: inline-flex; align-items: center; gap: 2px;
}
.game-card-name { color: #fff; font-size: 11px; text-align: center; line-height: 1.3; }
.see-all-bar {
    height: 50px; width: 100%; border: 0; border-radius: 8px; cursor: pointer;
    background: linear-gradient(90deg, #A00202, #FC5403, var(--red));
    color: #fff; font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

.app-download { padding: 24px 15px 4px; }
.app-download-title { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.app-download-cards { display: flex; gap: 15px; }
.app-download-card {
    flex: 1; height: 75px; border-radius: 12px; cursor: pointer; text-align: left;
    background: var(--surface-dark); border: 1px solid var(--gutter); color: #fff;
    display: flex; align-items: center; gap: 10px; padding: 0 14px;
}
.app-download-card small { display: block; color: #9B8F8F; font-size: 11px; }
.app-download-card strong { font-size: 14px; }
.app-download-chevron { margin-left: auto; color: #9B8F8F; }

/* ---------- footer ---------- */
.site-footer { padding: 26px 15px 26px; margin-top: 26px; border-top: 1px solid var(--gutter); }
.footer-heading { font-size: 16px; font-weight: 700; margin: 20px 0 10px; }
.footer-heading:first-child { margin-top: 0; }
.footer-partner-empty { height: 60px; }
.footer-providers { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 15px; row-gap: 24px; }
.footer-provider-cell { height: 35px; display: grid; place-items: center; color: #E8DADA; font-weight: 700; font-size: 13px; text-align: center; }
.footer-contact { display: flex; gap: 14px; margin: 22px 0 2px; }
.contact-circle {
    width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; text-decoration: none; font-weight: 800; font-size: 15px;
}
.contact-telegram { background: #229ED9; }
.contact-whatsapp { background: #25D366; }
.contact-facebook { background: #1877F2; }
.contact-instagram { background: linear-gradient(45deg, #FEDA75, #D62976, #962FBF); }
.footer-marks { display: flex; gap: 14px; align-items: center; }
.mark-21 {
    width: 35px; height: 35px; border-radius: 50%; background: #F8F8F8;
    border: 2px solid var(--red); color: var(--red);
    display: grid; place-items: center; font-weight: 800; font-size: 11px;
}
.mark-gamecare { background: #F8F8F8; color: #0B7A43; font-size: 10px; font-weight: 800; padding: 7px 8px; border-radius: 4px; letter-spacing: .4px; }
.mark-seal { width: 35px; height: 35px; border-radius: 50%; background: #FE7009; color: #fff; display: grid; place-items: center; font-weight: 800; }
.footer-about { color: var(--about); font-size: 12.5px; line-height: 1.75; margin: 16px 0 0; }
.footer-bottom { border-top: 1px solid var(--gutter); margin-top: 16px; padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.footer-brand { font-size: 14px; font-weight: 700; }
.footer-copy { color: #9B8F8F; font-size: 12px; }

/* ---------- bottom nav & floating ---------- */
.bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: min(var(--column-w), 100%); height: 90px; z-index: 45;
    background: linear-gradient(180deg, #390E11, #29100F 55%, #1A100F);
    border-top: 1px solid var(--gutter);
    display: flex; align-items: stretch;
}
.bottom-nav::before {
    content: ""; position: absolute; top: -21px; left: 50%; transform: translateX(-50%);
    width: 112px; height: 23px; background: #390E11;
    border-radius: 112px 112px 0 0; border-top: 1px solid var(--gutter);
}
.bottom-nav-item {
    flex: 1; background: none; border: 0; cursor: pointer; position: relative;
    color: #E8DADA; text-decoration: none; font-size: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.bottom-nav-icon { color: #E8C97A; display: grid; place-items: center; }
.bottom-nav-gift {
    width: 58px; height: 58px; border-radius: 50%; margin-top: -36px;
    background: radial-gradient(circle at 35% 30%, #FFE066, var(--gold-button) 60%, #D99406);
    border: 3px solid var(--surface); color: #7A0505;
    display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.45);
    position: relative; z-index: 1;
}
.nav-dot { position: absolute; top: 10px; right: calc(50% - 17px); width: 8px; height: 8px; border-radius: 50%; background: #FF2222; }
.floating-headset {
    position: fixed; top: 72%; left: max(2px, calc(50% - var(--column-w) / 2));
    width: 55px; height: 55px; border-radius: 50%; z-index: 44;
    background: var(--red); color: #fff; display: grid; place-items: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.5); text-decoration: none;
}
.mine-trigger {
    position: fixed; top: calc(72% - 14px); right: max(8px, calc(50% - 235px));
    z-index: 43; display: flex; flex-direction: column; align-items: center; gap: 1px;
    cursor: pointer; background: none; border: 0;
}
.mine-label { color: #FF5A3C; font-style: italic; font-weight: 800; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.mine-gift { font-size: 42px; line-height: 1; filter: drop-shadow(0 3px 5px rgba(0,0,0,.5)); }
.mine-countdown {
    background: linear-gradient(90deg, #F2823A, #FE7009); color: #fff;
    font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 10px;
    min-width: 75px; text-align: center;
}

/* ---------- overlays: drawer / sheets / modals ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(26,1,1,.72); z-index: 60; }
.backdrop-drawer { background: rgba(24,8,1,.72); z-index: 65; }
.backdrop-modal { z-index: 85; }

.drawer-shell {
    position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
    width: min(var(--column-w), 100%); overflow: hidden; z-index: 70; pointer-events: none;
}
.drawer {
    position: absolute; top: 0; right: 0;
    width: min(402px, 92%); height: 100%;
    background: var(--surface-deep); overflow-y: auto; overscroll-behavior: contain;
    padding: 0 16px 30px; transform: translateX(100%); visibility: hidden; pointer-events: none;
    transition: transform .35s ease, visibility 0s linear .35s;
    box-shadow: -8px 0 30px rgba(0,0,0,.45);
}
.drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; transition: transform .35s ease, visibility 0s; }
.drawer-top { position: sticky; top: 0; z-index: 2; background: var(--surface-deep); padding: 14px 0 12px; margin: 0 -16px; padding-inline: 16px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head .logo-text { font-size: 40px; }
.drawer-close { width: 42px; height: 42px; border-radius: 8px; border: 1px solid #5A0A0A; background: #3A0707; color: #F23A3A; display: grid; place-items: center; cursor: pointer; }
.drawer-welcome { text-align: center; font-size: 16px; font-weight: 500; margin: 10px 0 0; padding: 18px 0 10px; background: radial-gradient(ellipse at 50% 100%, rgba(220,80,110,.38), transparent 68%); }
.drawer-divider { height: 1px; background: linear-gradient(90deg, transparent, #D0788C, transparent); margin-bottom: 16px; }
.drawer-auth { display: flex; gap: 4px; }
.drawer-auth .btn-skew { flex: 1; height: 42px; }
.drawer-account { text-align: center; }
.drawer-account strong { font-size: 18px; display: block; }
.drawer-account small { color: var(--gold-link); font-size: 13px; }
.drawer-logout { display: flex; justify-content: center; margin-top: 12px; }
.drawer-section-title { color: var(--gold-link); font-size: 13px; font-weight: 700; margin: 18px 0 10px; }
.drawer-featured { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.drawer-featured::-webkit-scrollbar { display: none; }
.drawer-featured-card { flex: none; width: 78px; text-align: center; }
.drawer-featured-art {
    height: 105px; border-radius: 10px; display: grid; place-items: center;
    border: 2px solid rgba(245,208,76,.5); font-size: 20px; font-weight: 900; color: var(--gold-link);
    background: linear-gradient(160deg, #740708, var(--surface));
}
.drawer-events { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer-event-card { background: #460808; border-radius: 10px; padding: 10px; min-height: 88px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.drawer-event-title {
    font-size: 13px; font-weight: 700; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.drawer-event-open { background: var(--surface-deep); color: #9B8F8F; font-size: 11px; padding: 3px 9px; border-radius: 10px; width: fit-content; }
.drawer-providers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer-provider-cell {
    background: #3D0505; border: 1px solid #6E0707; border-radius: 8px;
    min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 6px 12px;
    font-weight: 700; font-size: 14px;
}
.drawer-provider-icon { width: 28px; height: 28px; flex: none; display: grid; place-items: center; color: var(--gold-code); font-size: 18px; }
.drawer-app-card { margin-top: 22px; background: #3D0505; border: 1px solid #6E0707; border-radius: 10px; padding: 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.drawer-app-icon { color: #A98CFF; flex: none; }
.drawer-app-text strong { display: block; font-size: 16px; }
.drawer-app-text small { display: block; color: #9B8F8F; font-size: 12px; margin-top: 2px; }
.drawer-app-btns { display: flex; gap: 8px; margin-top: 10px; }
.app-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
    background: var(--surface-dark); border: 1px solid #6E0707; color: #fff;
    border-radius: 22px; height: 40px; padding: 0 16px; font-size: 13px; font-weight: 600;
}

.auth-sheet {
    position: fixed; bottom: 0; left: 50%; z-index: 80;
    width: min(var(--column-w), 100%); height: 100dvh;
    display: flex; flex-direction: column; background: transparent;
    overflow-y: auto; transform: translate(-50%, 105%); transition: transform .35s ease;
}
.auth-panel { flex: 1; padding: clamp(24px, 5.6vh, 48px) 4%; background: var(--surface); border-top: 2px solid var(--red); border-radius: 22px 22px 0 0; }
.auth-sheet.is-open { transform: translate(-50%, 0); }
.sheet-close {
    position: absolute; top: -52px; right: 12px; width: 40px; height: 40px;
    border-radius: 50%; background: var(--surface-dark); border: 1px solid var(--gutter);
    color: #fff; display: grid; place-items: center; cursor: pointer;
}
.auth-title { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.auth-subtitle { color: #9B8F8F; font-size: 14px; margin: 0 0 26px; }
.gold-link { text-decoration: none; background: none; border: 0; padding: 0; color: var(--gold-link); font: inherit; font-weight: 700; cursor: pointer; }
.auth-errors {
    background: rgba(210,26,26,.15); border: 1px solid var(--red); color: #FFB3B3;
    border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 18px;
}
.auth-errors p { margin: 2px 0; }
.field {
    display: flex; align-items: center; gap: 10px; height: 55px;
    background: var(--surface-dark); border: 1px solid var(--gutter);
    border-radius: 8px; padding: 0 14px; margin-bottom: 24px; cursor: text;
}
.field input {
    flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
    color: #fff; font-size: 15px; font-family: inherit;
}
.field input::placeholder { color: var(--placeholder); }
.phone-prefix { font-weight: 700; font-size: 14px; }
.field-divider { width: 1px; height: 24px; background: var(--gutter); flex: none; }
.field-icon { color: var(--muted); }
.eye-toggle { background: none; border: 0; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 4px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px 0 22px; }
.remember-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; cursor: pointer; }
.remember-check input, .lucky-reminder input {
    appearance: none; -webkit-appearance: none; flex: none; cursor: pointer;
    display: grid; place-items: center; margin: 0;
}
.remember-check input { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--gutter); background: var(--surface-dark); }
.remember-check input:checked { background: var(--red); border-color: var(--red); }
.remember-check input:checked::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 800; }
.forgot-link { background: none; border: 0; color: #fff; font-size: 13px; cursor: pointer; padding: 0; white-space: nowrap; }
.auth-submit {
    width: 100%; height: 56px; border: 0; border-radius: 8px; cursor: pointer;
    background: var(--red); color: #fff; font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-submit:disabled { background: var(--disabled); color: rgba(255,255,255,.75); cursor: not-allowed; }

.forgot-modal {
    position: fixed; top: 50%; left: 50%; z-index: 90;
    width: min(400px, calc(100vw - 30px));
    background: var(--surface); border-radius: 15px; padding: 26px 24px 30px;
    transform: translate(-50%, -50%) scale(.96); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.forgot-modal.is-open { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.forgot-close { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; }
.forgot-title { font-size: 20px; font-weight: 700; margin: 0 24px 4px 0; }
.forgot-subtitle { color: #9B8F8F; font-size: 13px; margin: 0 0 20px; }
.forgot-steps { display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.forgot-step {
    width: 28px; height: 28px; border-radius: 50%; flex: none;
    border: 1.5px solid #6E3D3D; color: #9B8F8F;
    display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.forgot-step.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.forgot-step-line { width: 82px; height: 1.5px; background: #6E3D3D; }
.turnstile-placeholder {
    height: 65px; background: #F8F8F8; border-radius: 4px; margin-bottom: 22px;
    display: flex; align-items: center; gap: 10px; padding: 0 14px;
}
.turnstile-check { width: 20px; height: 20px; flex: none; border: 2px solid #B5B5B5; border-radius: 3px; background: #fff; }
.turnstile-text { color: #222; font-size: 14px; flex: 1; }
.turnstile-brand { color: #666; font-size: 11px; font-weight: 700; }
.turnstile-wrap { margin-bottom: 22px; }
.forgot-submit {
    width: 100%; height: 57px; border: 0; border-radius: 8px; cursor: pointer;
    background: linear-gradient(90deg, #F54033, #F2823A 50%, #FE7009);
    color: #fff; font-size: 16px; font-weight: 700;
}

.lucky-popup {
    position: fixed; inset: 0; z-index: 90; padding: 20px;
    display: grid; place-items: center; align-content: center;
}
.lucky-card {
    width: min(415px, 100%); text-align: center; overflow: hidden;
    background: radial-gradient(ellipse at 50% 45%, #A8100F, #6E0707 55%, #430404);
    border-radius: 15px; padding: 26px 22px 0;
}
.lucky-logo .logo-text { font-size: 34px; }
.lucky-headline { font-size: 16px; font-weight: 700; line-height: 1.55; margin: 12px 0 0; text-shadow: 0 0 7px rgba(226,169,42,.65); }
.lucky-codes { display: flex; gap: 12px; justify-content: center; margin: 16px 0 6px; flex-wrap: wrap; }
.lucky-code-pill {
    background: var(--gold-code); border: 2px solid #F6D56A; outline: 2px solid var(--red); outline-offset: -5px; color: var(--red);
    font-weight: 800; font-size: 28px; line-height: 1.2; padding: 10px 14px; border-radius: 12px; min-width: 140px;
    box-shadow: 0 0 14px rgba(249,182,54,.45);
}
.lucky-code-pill.is-masked { letter-spacing: 3px; }
.lucky-follow { color: #63E5FA; font-size: 18px; font-weight: 700; margin: 8px 0 2px; }
.lucky-sub { font-size: 14px; margin: 0 0 16px; }
.lucky-redeem {
    width: 260px; max-width: 100%; height: 57px; border-radius: 30px; cursor: pointer;
    border: 2px solid var(--red); color: #430404; font-size: 16px; font-weight: 800;
    background: linear-gradient(180deg, #F5BD1E, #F2823A);
    box-shadow: 0 0 18px rgba(245,189,30,.55);
}
.lucky-tabs { display: flex; margin: 26px -22px 0; }
.lucky-tab { flex: 1; height: 61px; display: grid; place-items: center; font-size: 14px; color: var(--muted); background: var(--surface); }
.lucky-tab.is-active { background: var(--gutter); color: #fff; }
.lucky-reminder {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--surface-deep); border-radius: 8px; cursor: pointer;
    width: min(260px, 100%); margin: 12px auto 0; padding: 11px; font-size: 13px;
}
.lucky-reminder input { width: 16px; height: 16px; border-radius: 3px; border: 1.5px solid var(--red); background: transparent; }
.lucky-reminder input:checked { background: var(--red); }
.lucky-close {
    margin-top: 14px; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    background: rgba(28,8,1,.85); border: 1px solid #fff; color: #fff;
    display: grid; place-items: center; justify-self: center;
}

.pwa-sheet {
    position: fixed; bottom: 0; left: 50%; z-index: 65;
    width: min(var(--column-w), 100%); min-height: 177px;
    background: var(--surface); border-radius: 20px 20px 0 0; padding: 20px;
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
    transform: translate(-50%, 105%); transition: transform .3s ease;
}
.pwa-sheet.is-open { transform: translate(-50%, 0); }
.pwa-icon {
    width: 70px; height: 70px; flex: none; border-radius: 12px;
    background: linear-gradient(160deg, #B30D0D, #7A0505);
    border: 1px solid var(--gold-frame); color: var(--gold-link);
    font-size: 24px; font-weight: 900; display: grid; place-items: center;
}
.pwa-text { flex: 1; min-width: 180px; font-size: 15px; line-height: 1.5; margin: 0; }
.pwa-actions { width: 100%; display: flex; justify-content: flex-end; gap: 10px; }
.pwa-cancel { width: 110px; height: 45px; background: none; border: 0; color: #fff; font-size: 14px; cursor: pointer; }
.pwa-install { width: 140px; height: 45px; background: var(--red); border: 0; border-radius: 10px; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }

.toast {
    position: fixed; bottom: 108px; left: 50%; transform: translateX(-50%);
    z-index: 120; background: var(--surface-dark); border: 1px solid var(--gold-frame);
    color: #fff; font-size: 14px; padding: 12px 22px; border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,.5); max-width: calc(100vw - 30px); text-align: center;
}

/* ---------- profile placeholder ---------- */
.profile-placeholder { padding: 32px 25px 42px; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.profile-placeholder .avatar-circle { width: 64px; height: 64px; }
.profile-account { font-size: 20px; margin: 4px 0 0; }
.profile-vip {
    display: inline-flex; align-items: center; gap: 4px;
    background: #80070F; color: #FAE869; font-size: 12px; font-weight: 700;
    padding: 4px 12px; border-radius: 12px;
}
.profile-id { color: #9B8F8F; font-size: 13px; margin: 0; }
.profile-balance {
    width: 100%; background: var(--surface-dark); border: 1px solid var(--gutter);
    border-radius: 12px; padding: 16px; margin: 14px 0 18px;
    display: flex; flex-direction: column; gap: 3px;
}
.profile-balance small { color: #9B8F8F; font-size: 12px; }
.profile-balance strong { color: var(--gold-link); font-size: 24px; }
.profile-placeholder form { width: 100%; }

@media (max-width: 520px) {
    .floating-headset { left: 2px; }
    .drawer { right: 0; }
}

.is-subpage .top-sticky, .is-subpage .site-footer { display: none; }
.is-subpage .column { background: #240C02; }
.is-subpage .page-main { min-height: calc(100vh - 90px); }
.is-subpage .floating-headset, .is-subpage .mine-trigger { display: none; }
.page-games-search .bottom-nav, .page-games-category .bottom-nav, .page-deposit .bottom-nav,
.page-reports .bottom-nav, .page-security .bottom-nav, .page-checkin .bottom-nav,
.page-agency-public .bottom-nav, .page-agent .bottom-nav, .page-messages .bottom-nav { display: none; }
.page-games-search .column, .page-games-category .column, .page-deposit .column,
.page-reports .column, .page-security .column, .page-checkin .column,
.page-agency-public .column, .page-agent .column, .page-messages .column { padding-bottom: 0; }
.page-promotions .column { background: #1C0801; }
.reference-page-bar { height: 60px; display: flex; align-items: center; justify-content: center; background: #430404; position: relative; border-bottom: 1px solid #380501; }
.reference-page-bar h1 { font-size: 20px; font-weight: 750; margin: 0; }
.reference-back { position: absolute; left: 15px; top: 0; height: 60px; width: 38px; display: grid; place-items: center; font-size: 34px; line-height: 1; color: #fff; text-decoration: none; }
.reference-bar-extra { position: absolute; right: 20px; }
.reference-page { min-height: 60vh; font-size: 14px; }
.reference-page button, .reference-page a { -webkit-tap-highlight-color: transparent; }
.reference-page a { color: inherit; text-decoration: none; }
.reference-heading { margin: 18px 14px 12px; font-size: 17px; font-weight: 700; }
.reference-search-form { background: #1C0801; border: 1px solid #470c08; border-radius: 8px; display: flex; align-items: center; height: 49px; margin: 10px 15px; }
.reference-search-form input { color: #fff; background: transparent; min-width: 0; border: 0; outline: 0; flex: 1; height: 100%; padding: 0 14px; font-size: 14px; }
.reference-search-form input::placeholder { color: #837171; }
.reference-search-form button { height: 100%; width: 46px; border: 0; background: transparent; color: #a89595; cursor: pointer; }
.reference-tabs { display: flex; white-space: nowrap; overflow-x: auto; scrollbar-width: none; background: #1C0801; border-bottom: 1px solid #6E0707; }
.reference-tabs::-webkit-scrollbar { display: none; }
.reference-tabs a { text-decoration: none; position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 14px; color: #796c69; font-size: 13px; }
.reference-tabs a.is-active { color: #e92b2b; font-weight: 700; }
.reference-tabs a.is-active::after { content: ''; height: 3px; background: #d21a1a; position: absolute; bottom: 0; left: 15%; right: 15%; border-radius: 4px 4px 0 0; }
.reference-empty { height: 47vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #806966; }
.reference-empty span { font-size: 68px; color: #5c3931; opacity: .65; line-height: 1; }
.reference-empty p { margin: 0; font-size: 13px; }
.reference-game-grid { display: grid; gap: 10px; }
.search-game-grid { grid-template-columns: repeat(4,minmax(0,1fr)); padding: 4px 15px 25px; }
.category-game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0 0 18px; }
.search-page { background: #430404; }
.search-tabs { justify-content: space-between; }
.search-tabs a { flex: 1; padding-inline: 4px; }
.category-page { background: #430404; }
.category-tabs { margin: 10px 14px 13px; display: flex; gap: 8px; }
.category-tabs span { min-width: 70px; height: 40px; padding: 0 10px; border: 1px solid #65504b; border-radius: 7px; display: grid; place-items: center; color: #978682; font-size: 13px; }
.category-tabs span.is-active { background: #D21A1A; color: white; border-color: #D21A1A; }
.category-layout { display: flex; gap: 13px; padding: 0 14px; align-items: stretch; }
.category-rail { flex: 0 0 68px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: calc(100dvh - 228px); position: sticky; top: 12px; scrollbar-width: none; }
.category-rail .rail-tile { text-decoration: none; opacity: .56; }
.category-rail .rail-tile.is-selected { opacity: 1; }
.category-results { flex: 1; min-width: 0; }
.game-section-count { text-decoration: none; color: #fff; }
.game-card { min-width: 0; width: 100%; }
.game-card-art { width: 100%; display: flex; flex-direction: column; justify-content: center; padding: 12px 4px 8px; border-color: #f0cf8d; border-width: 1.5px; box-shadow: inset 0 0 18px rgba(0,0,0,.2); }
.game-card-art::before { content: ''; position: absolute; inset: 3px; border-radius: inherit; border: 1px solid rgba(255,215,112,.32); pointer-events: none; }
.game-card-spark { position: absolute; top: 5px; left: 7px; color: #ffdb76; opacity: .9; font-size: 17px; }
.game-card-feature { font-size: clamp(25px,5.5vw,43px); line-height: 1; color: #ffdf68; text-shadow: 1px 3px 0 #7d2a1e,0 0 15px #ffe56a; transform: rotate(-8deg); }
.game-card-plus { background: rgba(22,6,2,.75); border: 1px solid #fff6df; }
.search-game-grid .game-card-art { aspect-ratio: 109/148; }
.category-game-grid .game-card-art { aspect-ratio: 113/153; }
.category-game-grid .game-card-plus, .search-game-grid .game-card-plus { width: 20px; height: 20px; }
.rail-symbol { font-weight: 900; color: #e5c550; font-size: 29px; line-height: 1; text-shadow: 0 1px 3px #380103; }
.rail-tile { text-decoration: none; }
.ticker-search { text-decoration: none; }
.drawer-provider-cell, .drawer-event-card { text-decoration: none; color: inherit; }
.account-action { border: 0; background: none; padding: 0; cursor: pointer; }
.see-all-bar { text-decoration: none; }
.promotion-page { padding-bottom: 24px; }
.vip-offers-tabs { padding-bottom: 0; background: #1C0801; position: sticky; top: 0; z-index: 3; }
.promotion-tabs { position: sticky; top: 0; z-index: 3; justify-content: space-between; }
.promotion-tabs a { padding: 0 10px; min-height: 62px; font-size: 12.5px; }
.promotion-list { padding: 15px; }
.promotion-entry { margin-bottom: 32px; }
.promotion-art { min-height: 150px; border: 3px solid #d8a632; border-radius: 12px; box-shadow: inset 0 0 0 3px #621c05,0 2px 8px #180301; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; position: relative; overflow: hidden; padding: 18px 60px; text-align: center; }
.promotion-art::before, .promotion-art::after { content: '✦'; font-size: 85px; line-height: 1; position: absolute; color: #ffd953; opacity: .25; top: 37px; }
.promotion-art::before { left: -15px; transform: rotate(-20deg); }
.promotion-art::after { right: -15px; transform: rotate(20deg); }
.promotion-art .promotion-seal { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); padding: 1px 12px; border-radius: 0 0 8px 8px; background: #a91800; color: #ffe178; font-size: 12px; font-weight: 900; }
.promotion-art .promotion-crown { color: #ffd447; font-size: 28px; position: absolute; top: 28px; left: 22px; }
.promotion-art strong { color: #ffdf51; font-size: 23px; font-weight: 900; text-shadow: -2px 2px #6b0505,0 1px 12px #ce4d00; }
.promotion-art span:last-child { color: #fff0c9; font-size: 13px; font-weight: 700; }
.promotion-entry-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; }
.promotion-entry-foot strong { font-size: 14px; }
.promotion-status { padding: 9px 13px; background: #430404; color: #e62828; border-radius: 6px; font-size: 12px; }
.reference-gradient-button { background: linear-gradient(90deg,#ed4c37,#fb8b28); color: #fff!important; border: 0; border-radius: 7px; min-height: 48px; display: flex; justify-content: center; align-items: center; text-align: center; padding: 10px 16px; font-size: 15px; font-weight: 700; width: calc(100% - 28px); margin: 16px 14px; cursor: pointer; text-decoration: none; }
.reference-gradient-button:disabled { background: #6b0b0b; color: #bca8a8!important; cursor: not-allowed; }
.promotion-vip-promo { margin: 22px 15px; min-height: 230px; background: radial-gradient(circle at 50% 25%,#db1f28,#600408); border: 2px solid #d7ab35; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; }
.promotion-vip-promo strong { font-size: 30px; font-weight: 900; color: #ffe59a; }
.promotion-vip-promo a { padding: 8px 22px; background: linear-gradient(90deg,#ffbd37,#e57212); border-radius: 22px; color: #5c1904; }
.promotion-code-box { padding: 30px 15px; text-align: center; }
.vip-page { background: #430404; padding-bottom: 25px; }
.vip-public-hero { margin: 10px 14px; background: radial-gradient(circle at center 30%,#df181b,#920713 50%,#470108); min-height: 360px; border: 3px solid #e2a92a; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: inset 0 0 45px #3b0107; }
.vip-public-hero .vip-glow { font-size: 105px; color: #ffd55c; line-height: 1; text-shadow: 0 0 40px #fff2b0; }
.vip-public-hero strong { font-size: 37px; color: #ffca44; font-weight: 900; }
.vip-public-hero h2 { color: #ffe3a4; font-weight: 1000; font-size: 110px; line-height: 1; margin: 0; text-shadow: 0 7px #862507,0 0 20px #fff5a0; }
.vip-public-hero p { font-size: 26px; font-weight: 800; margin: 0; color: #fbd066; }
.vip-public-hero > span:last-child { border: 1px solid #edae2b; border-radius: 50px; background: #80070f; padding: 10px 24px; color: #fbe869; font-weight: 700; }
.vip-summary { border-radius: 8px; background: linear-gradient(150deg,#6b6866,#3b3d3f); margin: 10px 14px 20px; padding: 20px 15px; }
.vip-current { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.vip-shield { background: #b7b7b7; color: #333; border-radius: 20px; padding: 7px; font-weight: 700; }
.vip-progress { display: flex; justify-content: space-between; font-size: 12px; }
.vip-tabs { justify-content: space-around; }
.vip-tabs a { padding-inline: 10px; }
.vip-table-wrap { padding: 0 14px 20px; scroll-margin-top: 20px; }
.vip-table-wrap h3 { font-size: 15px; }
.vip-table { border-collapse: collapse; width: 100%; text-align: center; font-variant-numeric: tabular-nums; table-layout: fixed; }
.vip-table th { background: #a4090a; color: #ff9f48; border: 1px solid #be1818; padding: 9px 2px; font-size: 11px; }
.vip-table td { background: #e40a0a; color: #fff; border: 1px solid #d43224; padding: 9px 2px; font-size: clamp(9px,2.1vw,12px); overflow-wrap: anywhere; }
.vip-table tr:nth-child(even) td { background: #cb080b; }
.vip-table-wrap h3 { margin: 12px 0; }
.agency-page { background: linear-gradient(180deg,#17387e,#16163e 65%,#160f30); padding-bottom: 28px; }
.agency-hero { height: 360px; background: radial-gradient(ellipse at center,#7358a9 0,#223992 44%,#100f50 72%); border-bottom: 6px solid #7d64d2; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.agency-treasure { font-size: 80px; line-height: 1; color: #ffd34e; text-shadow: 0 6px 12px #07031c; }
.agency-hero strong { color: #ffd45f; font-size: 24px; text-shadow: 0 2px #5f2200; }
.agency-chest { font-size: 110px; filter: drop-shadow(0 10px 20px #040b34); }
.agency-hero h2 { color: #fff4a5; margin: 0; }
.agency-sharing { margin: -7px 10px 20px; border: 3px solid #8d71d9; border-radius: 14px; background: linear-gradient(145deg,#383eae,#17195a); padding: 15px 13px; position: relative; }
.agency-social { display: flex; justify-content: center; gap: 11px; flex-wrap: wrap; margin: 8px 0 16px; }
.agency-social span { background: #137edb; border: 2px solid #fff; box-shadow: 0 2px 8px #14093d; border-radius: 50%; width: 35px; height: 35px; color: white; font-size: 18px; display: grid; place-items: center; font-weight: 800; }
.agency-social span:nth-child(3) { background: #21b75e; }.agency-social span:nth-child(4) { background: #d43a87; }.agency-social span:nth-child(5) { background: #111; }.agency-social span:nth-child(6) { background: #111; }
.agency-sharing label, .agent-link label { display: block; font-size: 13px; margin-bottom: 5px; }
.agency-link { display: flex; gap: 6px; align-items: stretch; }
.agency-link input { min-width: 0; flex: 1; height: 39px; padding: 0 8px; border: 1px solid #515cb5; background: #121b58; color: #fff; border-radius: 6px; font-size: 11px; }
.agency-link button { background: #e32030; border: 0; color: #fff; border-radius: 4px; padding: 0 11px; cursor: pointer; }
.agency-rewards { padding: 0 12px; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.agency-rewards > div { background: linear-gradient(#3e2e9e,#25206f); border: 1px solid #8975e5; border-radius: 10px; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.agency-rewards span { font-size: 30px; }.agency-rewards small { color: #ddd1ff; font-size: 10px; text-align: center; }
.profile-page { background: #240C02; padding-bottom: 20px; }
.profile-hero { background: linear-gradient(165deg,#7e0908,#510405 66%,#300606); padding: 16px 14px 20px; }
.profile-identity { display: flex; align-items: center; gap: 12px; }
.profile-identity > div { display: flex; flex-direction: column; gap: 3px; }
.profile-identity strong { font-size: 15px; }.profile-identity small { color: #bea3a3; font-size: 11px; display: flex; align-items: center; gap: 8px; }
.profile-identity small button { border: 0; background: transparent; color: #bca9a9; padding: 0; cursor: pointer; }
.profile-avatar { height: 60px; width: 60px; border-radius: 50%; background: linear-gradient(120deg,#f3b6a4,#8b4a30); border: 2px solid #ead0b5; display: grid; place-items: center; color: #603b32; }
.profile-identity .profile-vip { align-self: flex-start; font-size: 10px; background: #c6c7c8; color: #6e7071; border-radius: 10px; padding: 1px 9px; }
.profile-money { display: grid; grid-template-columns: 1fr 1fr; margin: 23px 0 16px; }
.profile-money > div { display: flex; flex-direction: column; gap: 5px; }.profile-money small { color: #bda0a0; font-size: 11px; }.profile-money strong { font-size: 19px; }
.profile-money-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.profile-money-actions > * { background: linear-gradient(100deg,#d50b0b,#8a0606); color: #fff; text-decoration: none; font-size: 15px; font-weight: 700; border: 0; border-radius: 6px; height: 45px; display: grid; place-items: center; cursor: pointer; }
.profile-vip-panel { margin: 12px 14px; display: flex; flex-direction: column; gap: 9px; border: 1px solid #575556; border-radius: 8px; color: #c8cbce; text-decoration: none; padding: 17px; background: linear-gradient(140deg,#373b3e,#262829); }
.profile-vip-panel > div:first-child { display: flex; justify-content: space-between; }.profile-vip-panel strong { font-size: 13px; }.profile-vip-panel span { font-size: 12px; }.profile-vip-panel small { color: #a8a8a8; }
.vip-track { height: 7px; background: #535353; border-radius: 10px; overflow: hidden; }.vip-track i { display: block; height: 100%; background: #ebd07e; }
.profile-links { background: #430404; margin-top: 15px; padding: 7px 14px; }
.profile-links a,.profile-links button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 7px; border: 0; border-bottom: 1px solid #570c07; background: transparent; color: #fff; text-decoration: none; text-align: left; font-size: 14px; cursor: pointer; }
.profile-links a > span, .profile-links button > span { width: 22px; text-align: center; color: #b78983; font-size: 19px; }
.profile-links b { margin-left: auto; font-size: 23px; color: #986962; font-weight: 400; }.profile-links small { font-size: 10px; color: #4cbb65; }.profile-links button small { color: #a68480; }.profile-links form { margin: 0; }
.reference-info-card { background: #430404; padding: 0 12px; margin: 15px 0 0; }
.reference-info-row { display: flex; align-items: center; min-height: 55px; justify-content: space-between; gap: 8px; border-bottom: 1px solid #5b0b07; font-size: 13px; }
.reference-info-row:last-child { border: 0; }.reference-info-row strong { color: #bd9e98; font-size: 12px; font-weight: 400; overflow-wrap: anywhere; text-align: right; }
.message-support { margin: 14px; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 8px; background: #430404; font-size: 14px; }
.message-support-icon { color: #fff; background: #bc1717; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.message-support strong { flex: 1; }.message-support > span:last-child { border-radius: 12px; padding: 5px 10px; color: #c89d91; background: #2a0805; }
.message-entry { margin: 12px; padding: 12px; background: #430404; border: 1px solid #67120d; border-radius: 8px; }
.message-entry > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.message-entry time { font-size: 11px; color: #a38d88; }.message-entry p { font-size: 13px; line-height: 1.6; }
.reports-page { background: #240C02; min-height: calc(100vh - 60px); }.reports-tabs a { font-size: 12px; padding: 0 10px; }.report-filters { background: #2a1009; padding: 12px; display: flex; }.report-filters select { color: #fff; background: #5a0708; border: 1px solid #8d1515; border-radius: 5px; height: 33px; padding: 0 10px; }
.report-summary { position: absolute; bottom: 0; width: min(var(--column-w),100vw); background: #700e0c; padding: 10px 13px; font-size: 11px; }.report-summary > div { display: flex; justify-content: space-between; }.report-summary strong { font-size: 12px; }
.report-record { display: flex; justify-content: space-between; border-bottom: 1px solid #60100b; padding: 14px; }.report-record > div { display: flex; flex-direction: column; gap: 4px; }.report-record small { color: #aa9390; }
.checkin-page { padding: 15px 0 70px; background: #2a0d06; min-height: calc(100vh - 60px); }
.checkin-stats { display: flex; justify-content: space-around; margin-bottom: 20px; }.checkin-stats span { color: #f5c14e; border-radius: 22px; background: #500e0a; padding: 7px 16px; }
.checkin-vip { margin: 15px; }.checkin-vip strong { color: #ffe1a1; }.checkin-vip p { color: #baa49c; font-size: 12px; }
.checkin-board { background: #690a07; border: 1px solid #920f09; border-radius: 8px; padding: 14px 9px; margin: 15px; }
.checkin-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }.checkin-day { min-height: 115px; border: 1px solid #a31a0b; background: #410d06; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: space-around; }.checkin-day.checked { background: #781b11; }.checkin-day span { font-size: 25px; }.checkin-day small { font-size: 12px; }.checkin-day b { color: #f9cb68; font-size: 12px; }
.checkin-rules { padding: 8px 15px; color: #c3aaa1; }.checkin-rules strong { color: #fff; }.checkin-rules p { font-size: 12px; line-height: 1.7; }.checkin-action { position: fixed; bottom: 10px; max-width: 458px; left: 50%; transform: translateX(-50%); z-index: 10; }
.cashback-page { background: #350903; padding-bottom: 25px; }.cashback-summary { margin: 14px; display: flex; flex-direction: column; gap: 8px; text-align: center; color: #e9d0c6; }.cashback-summary strong { font-size: 28px; color: #f5bf56; }.cashback-summary span { font-size: 12px; }.cashback-title { margin: 15px; color: #fff; border-radius: 7px; background: #cb130f; padding: 11px; }.cashback-row { padding: 12px; margin: 7px 14px; background: #550a06; border-radius: 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }.cashback-row div { display: flex; flex-direction: column; gap: 3px; }.cashback-row small { color: #a88580; }.cashback-row > span { color: #f6bd64; font-size: 11px; }.cashback-row button { background: #6a0a0a; border: 0; color: #ad8580; border-radius: 5px; padding: 8px 14px; }
.agent-tabs { justify-content: flex-start; }.agent-tabs a { font-size: 12px; padding-inline: 10px; }.agent-page { background: #240c02; }.agent-referrals,.agent-metrics { background: #440605; margin: 15px; border-radius: 7px; padding: 18px; display: flex; justify-content: space-around; align-items: center; }.agent-referrals strong { color: #f5d04c; font-size: 24px; }.agent-link { padding: 12px 15px; }.agent-link .agency-link input { background: #350a07; border: 1px solid #6e1515; }.agent-guide { padding: 20px; }.agent-guide p { line-height: 1.6; color: #d3b8b2; }.agent-tree { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 30px; }.agent-tree > span, .agent-tree div span { width: 70px; height: 70px; border-radius: 50%; background: #8e1a10; display: grid; place-items: center; }.agent-tree > div { display: flex; gap: 90px; }.agent-metrics { gap: 16px; }.agent-metrics span { display: flex; flex-direction: column; gap: 8px; }.agent-metrics strong { font-size: 20px; color: #e4c26c; }.agent-rates { padding: 15px; }
.deposit-page { background: #310903; padding: 10px 12px 26px; }.deposit-page h3 { font-size: 13px; font-weight: 700; color: #c0a1a1; margin: 19px 0 9px; }.deposit-heading { height: 44px; background: #750a0a; text-align: center; line-height: 44px; border-radius: 6px; font-weight: 700; }.deposit-methods { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }.deposit-methods button { position: relative; min-height: 57px; display: flex; align-items: center; gap: 5px; background: #570806; color: #fff; border: 1px solid #570806; border-radius: 7px; padding: 9px 5px; font-size: 11px; cursor: pointer; text-align: left; }.deposit-methods button.is-selected { border-color: #df4b3c; background: #740b0a; }.deposit-methods button small { position: absolute; top: -4px; right: 0; font-size: 8px; background: #f02626; padding: 2px 4px; border-radius: 0 5px 0 5px; }.deposit-method-nagad,.deposit-method-bkash { flex: none; width: 29px; height: 29px; border-radius: 5px; color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 900; }.deposit-method-nagad { background: linear-gradient(45deg,#f5821e,#e33416); }.deposit-method-bkash { background: #e31978; }
.deposit-channels { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }.deposit-channels button { background: #430503; border: 1px solid #560e09; color: #bda3a0; font-size: 12px; padding: 12px 8px; cursor: pointer; border-radius: 4px; text-align: left; }.deposit-channels button.is-selected { background: #7c1011; border-color: #c33e36; color: #fff; }.deposit-instructions { margin: 12px 0; color: #76baf7; font-size: 12px; background: #500d08; padding: 12px; min-height: 77px; line-height: 1.6; }
.deposit-amount-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }.deposit-amount-grid button { border: 0; border-radius: 4px; background: #690c0b; color: #fff; font-size: 12px; font-weight: 700; height: 35px; cursor: pointer; }.deposit-amount-grid button.is-selected { background: #e43125; }.deposit-entry-label { display: block; margin: 12px 0; color: #bda9a6; font-size: 13px; }.deposit-entry-label input { display: block; background: #240704; border: 1px solid #4e1109; width: 100%; height: 43px; padding: 0 12px; color: #fff; margin-top: 6px; outline: 0; }.deposit-page .reference-gradient-button { width: 100%; margin: 12px 0; }
.mine-popup { width: min(430px,calc(100vw - 20px)); position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); background: linear-gradient(#381e6b,#131f42); border-radius: 18px; z-index: 95; overflow: hidden; box-shadow: 0 15px 40px #000b; }
.mine-popup-art { height: 250px; background: radial-gradient(ellipse at center 10%,#8856c6,#392072 60%,#14104a); text-align: center; }.mine-tunnel { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 16px; }.mine-tunnel > span:first-child { color: #ffd369; font-size: 40px; }.mine-tunnel strong { font-size: 31px; color: #ffcf3f; line-height: .98; text-shadow: 2px 4px #54126e; }.mine-tunnel .mine-treasure { font-size: 58px; }
.mine-popup-body { text-align: center; padding: 0 16px 20px; }.mine-popup-steel { margin: -26px auto 12px; height: 56px; background: linear-gradient(#b5b5b5,#5d5d5e); color: #2f2840; font-weight: 800; font-size: 15px; clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%); max-width: 92%; position: relative; z-index: 2; display: grid; place-items: center; }.mine-popup-body p { font-size: 12px; }.mine-time-slots { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px 10px; padding: 13px 9px; background: #2c1855; border-radius: 10px; max-height: 158px; overflow: auto; }.mine-time-slots span { padding: 10px 2px; background: #47356b; color: #fff; border-radius: 6px; font-size: 12px; }.mine-popup-details { color: #c1b5e3; }.mine-popup-close { position: absolute; z-index: 2; top: 8px; right: 14px; background: none; border: none; color: #fff; font-size: 34px; cursor: pointer; }
.withdraw-gate { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(330px,calc(100vw - 34px)); border-radius: 12px; background: #4b0406; z-index: 90; text-align: center; padding: 0 17px 17px; box-shadow: 0 12px 32px #0008; }.withdraw-mascot { background: #91d1ea; margin: 0 -17px; padding: 15px 0; border-radius: 12px 12px 0 0; font-size: 72px; }.withdraw-mascot span { font-size: 27px; }.withdraw-gate p { line-height: 1.6; font-size: 13px; }.withdraw-gate .reference-gradient-button { min-width: 160px; width: auto; padding: 0 24px; min-height: 44px; margin: 15px auto 0; }.withdraw-gate-close { background: none; border: 0; color: #fff; position: absolute; top: 4px; right: 9px; font-size: 25px; cursor: pointer; }
@media(max-width:410px){.welcome-actions { gap: 3px; }.btn-skew-red { min-width: 77px; }.btn-skew-gold { min-width: 87px; }.home-sections { padding-left: 8px; }.home-body { padding: 4px 8px 0; }.game-grid { gap: 8px; }.game-section-bar { padding-left: 13px; padding-right: 5px; }.game-section-title { font-size: 13px; }.category-layout { padding-inline: 8px; gap: 7px; }.category-rail { flex-basis: 60px; }.category-rail .rail-tile { width: 60px; }.promotion-tabs a { padding: 0 7px; font-size: 11px; }.reference-tabs a { font-size: 11px; }.agency-rewards { gap: 5px; }.agency-rewards small { font-size: 9px; }}

.is-home .welcome-row { position: sticky; top: 135px; z-index: 39; }
.is-home .provider-rail { top: 205px; max-height: calc(100dvh - 220px); }

.lucky-redeem { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.profile-language-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; padding: 10px 4px; }
.profile-language-options button { text-align: center; border: 1px solid #903528; padding: 9px; border-radius: 6px; background: #3f0e09; color: #fff; cursor: pointer; }

/* ---------- Phase 1: homepage reference alignment ---------- */
.site-footer { border-top: 0; }
.footer-heading { color: var(--about); font-weight: 600; }
.footer-split { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 22px; }
.footer-split .footer-heading { margin: 0 0 12px; font-size: 15px; }
.footer-split-end { text-align: right; }
.footer-split-end .footer-marks { justify-content: flex-end; }
.footer-split .footer-contact { margin: 0; }
.footer-split .footer-marks .mark-21, .footer-split .footer-marks .mark-seal { width: 30px; height: 30px; }
.pwa-sheet { align-items: flex-start; }
.pwa-sheet .pwa-text { font-weight: 500; }
@media (max-width: 380px) {
    .footer-split { flex-direction: column; }
    .footer-split-end { text-align: left; }
    .footer-split-end .footer-marks { justify-content: flex-start; }
}

/* ---------- Homepage (mobile reference, scales with the column) ---------- */
:root { --u: calc(min(100vw, var(--column-w)) / 360); }
.is-home .column { background: #240C02; padding-bottom: calc(96 * var(--u)); }

.app-banner { height: calc(45 * var(--u)); gap: calc(7 * var(--u)); padding: 0 calc(11 * var(--u)) 0 calc(34 * var(--u)); background: #1C0801; border-bottom: 0; }
.app-banner-close { width: calc(27 * var(--u)); height: calc(27 * var(--u)); padding: calc(5 * var(--u)) 0 0 calc(5 * var(--u)); background: radial-gradient(circle at 0 0, #3A2D29 0 70%, transparent 71%); }
.app-banner-close .icon { width: calc(10 * var(--u)); height: calc(10 * var(--u)); stroke-width: 2.6; }
.app-banner-logo { width: calc(34 * var(--u)); height: calc(34 * var(--u)); border: 0; border-radius: calc(7 * var(--u)); background: none; padding: 0; object-fit: cover; }
.app-banner-text { flex: 1; min-width: 0; font-size: calc(11.6 * var(--u)); line-height: calc(17 * var(--u)); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.app-banner-install {
    width: calc(99 * var(--u)); height: calc(31 * var(--u)); padding: 0 calc(7 * var(--u)) 0 calc(8 * var(--u)); gap: calc(5 * var(--u)); border: 0; border-radius: calc(4 * var(--u));
    justify-content: flex-start; background: linear-gradient(90deg, #C8901A, #F07B22);
    color: #fff; font-size: calc(12.6 * var(--u)); font-weight: 700; line-height: 1.22;
}
.app-banner-install .icon { width: calc(23 * var(--u)); height: calc(23 * var(--u)); color: #1C0801; stroke-width: 2.2; }

.site-header { height: calc(47 * var(--u)); padding: 0 calc(11 * var(--u)) 0 calc(12 * var(--u)); background: #1C0801; position: relative; }
.site-header::before { content: ""; position: absolute; inset: 0; clip-path: polygon(55.6% 0, 100% 0, 100% 100%, 47.2% 100%); background: linear-gradient(90deg, #3B0B07, #250A04 45%, #1D0902); pointer-events: none; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, #3A0703, #8A2219 35%, #6A1610 60%, #2A0602); pointer-events: none; }
.site-header > * { position: relative; z-index: 1; }
.logo-img { display: block; width: calc(137 * var(--u)); height: auto; }
.header-actions { gap: calc(18.7 * var(--u)); }
.header-btn { width: calc(32 * var(--u)); height: calc(32 * var(--u)); border-radius: calc(4 * var(--u)); border: 1px solid #E0A040; background: linear-gradient(180deg, #B5140F, #4A0605); color: #fff; }
.header-btn .icon { width: calc(19 * var(--u)); height: calc(19 * var(--u)); }
.header-btn svg[viewBox="0 0 24 24"]:not([stroke]) { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.lang-menu { top: calc(38 * var(--u)); }

.is-home .carousel { height: calc(123 * var(--u)); margin: calc(11 * var(--u)) calc(11 * var(--u)) 0; border-radius: 0; background: transparent; }
.is-home .carousel-slide {
    width: calc(325 * var(--u)); right: auto; border-radius: calc(8 * var(--u)); overflow: hidden; opacity: 1; pointer-events: auto;
    padding: calc(14 * var(--u)) calc(16 * var(--u)); transform: translateX(calc(var(--pos, 0) * 326 * var(--u))); transition: transform .6s ease;
}
.is-home .carousel-title { font-size: calc(20 * var(--u)); }
.is-home .carousel-kicker { font-size: calc(11 * var(--u)); }
.is-home .carousel-cta { font-size: calc(10 * var(--u)); }
.is-home .carousel-deco { font-size: calc(80 * var(--u)); }

.is-home .welcome-row { height: calc(70 * var(--u)); min-height: 0; padding: 0 calc(11 * var(--u)); gap: calc(8 * var(--u)); background: #240C02; border-top: 0; top: calc(92 * var(--u)); }
.is-home .welcome-user { gap: calc(11 * var(--u)); }
.is-home .avatar-circle { width: calc(37 * var(--u)); height: calc(37 * var(--u)); border: 0; background: none; }
.is-home .avatar-circle svg { width: 100%; height: 100%; display: block; }
.is-home .welcome-text { line-height: 1.15; }
.is-home .welcome-text strong { font-size: calc(16.5 * var(--u)); font-weight: 800; }
.is-home .welcome-text small { font-size: calc(12 * var(--u)); color: #EDE3E1; margin-top: calc(4 * var(--u)); }
.welcome-actions { gap: calc(1.7 * var(--u)); }
.welcome-actions .btn-skew {
    width: calc(81 * var(--u)); min-width: 0; height: calc(31.4 * var(--u)); padding: 0 0 calc(3 * var(--u)); clip-path: none; color: #fff;
    font-size: calc(15 * var(--u)); font-weight: 700;
    -webkit-mask: url('../images/home/btn-login-mask.png') center / 100% 100% no-repeat;
    mask: url('../images/home/btn-login-mask.png') center / 100% 100% no-repeat;
}
.welcome-actions .btn-skew-red { background: linear-gradient(180deg, #D61D1D 0, #D21A1A 88%, #7E0A0A 88%); }
.welcome-actions .btn-skew-gold {
    width: calc(81.7 * var(--u)); background: linear-gradient(180deg, #FCB916 0, #FBB611 88%, #9A6A0E 88%);
    -webkit-mask-image: url('../images/home/btn-register-mask.png'); mask-image: url('../images/home/btn-register-mask.png');
}

.is-home .promo-tiles { padding: calc(15 * var(--u)) calc(11 * var(--u)) 0; gap: calc(14 * var(--u)); }
.is-home .promo-tile { flex: 1; height: auto; padding: 0; display: block; border-radius: calc(6 * var(--u)); overflow: hidden; background: none; }
.is-home .promo-tile img { display: block; width: 100%; height: calc(51.7 * var(--u)); object-fit: cover; }

.is-home .ticker { height: calc(33 * var(--u)); padding: 0 calc(11 * var(--u)); margin-top: calc(18.3 * var(--u)); gap: calc(9.3 * var(--u)); }
.is-home .ticker-main { border-radius: calc(6 * var(--u)); background: #420504; }
.is-home .ticker-bell { width: calc(33 * var(--u)); background: #6E0708; }
.is-home .ticker-bell img { width: calc(22 * var(--u)); height: auto; display: block; }
.is-home .ticker-track { font-size: calc(14 * var(--u)); font-weight: 700; }
.is-home .ticker-set { gap: calc(40 * var(--u)); padding: 0 calc(18 * var(--u)); }
.is-home .ticker-search { width: calc(33 * var(--u)); height: calc(33 * var(--u)); border-radius: calc(4 * var(--u)); border: 1px solid #E5A23C; background: linear-gradient(180deg, #A10F0F, #4A0605); }
.is-home .ticker-search svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }

.is-home .home-body { padding: calc(18.7 * var(--u)) calc(11 * var(--u)) 0; }
.is-home .provider-rail { width: calc(51.3 * var(--u)); gap: calc(10.7 * var(--u)); top: calc(172 * var(--u)); max-height: calc(100dvh - 268 * var(--u)); }
.is-home .rail-tile {
    flex: none; width: calc(51.3 * var(--u)); min-height: 0; height: calc(63.3 * var(--u)); padding: 0; gap: 0; position: relative; justify-content: flex-start;
    background: url('../images/home/rail-tile.png') center / 100% 100% no-repeat; border: 1px solid #E8853E; border-radius: calc(4 * var(--u));
}
.is-home .rail-tile.is-selected { background: url('../images/home/rail-tile.png') center / 100% 100% no-repeat; border-color: #F6C46E; box-shadow: inset 0 calc(10 * var(--u)) calc(14 * var(--u)) rgba(255,190,190,.28); }
.is-home .rail-logo { width: calc(42 * var(--u)); height: calc(42 * var(--u)); object-fit: contain; display: block; }
.is-home .rail-logo-color { width: calc(28 * var(--u)); height: calc(28 * var(--u)); margin: calc(7 * var(--u)) 0; }
.is-home .rail-logo-flame { width: calc(30 * var(--u)); height: calc(30 * var(--u)); margin-top: calc(4 * var(--u)); margin-bottom: calc(8 * var(--u)); }
.is-home .rail-symbol { font-size: calc(26 * var(--u)); height: calc(42 * var(--u)); line-height: calc(42 * var(--u)); }
.is-home .rail-tile small { font-size: calc(12.5 * var(--u)); font-weight: 700; line-height: 1.1; padding: 0 calc(2 * var(--u)); }

.is-home .home-sections { padding-left: calc(11 * var(--u)); gap: calc(14 * var(--u)); }
.is-home .game-section { background: #6E0708; border-radius: calc(8 * var(--u)); overflow: hidden; padding-bottom: calc(12 * var(--u)); }
.is-home .game-section-bar {
    height: calc(38 * var(--u)); padding: 0 calc(8 * var(--u)) 0 calc(11 * var(--u)); position: relative; overflow: hidden;
    background: linear-gradient(180deg, rgba(110,7,8,0) 55%, #6E0708 100%), linear-gradient(90deg, #C00202, #CF120A 40%, #D8261A);
}
.is-home .game-section-bar::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: calc(22 * var(--u)); width: calc(110 * var(--u));
    clip-path: polygon(0 0, 81% 0, 100% 50%, 81% 100%, 0 100%);
    background: linear-gradient(90deg, rgba(251,120,40,0), rgba(251,120,40,.75) 55%, #FC8A3A);
}
.is-home .game-section-bar > * { position: relative; z-index: 1; }
.is-home .game-section-title { gap: calc(10 * var(--u)); font-size: calc(18 * var(--u)); font-weight: 800; }
.is-home .game-section-icon { width: calc(19 * var(--u)); height: calc(19 * var(--u)); object-fit: contain; }
.is-home .game-section-count { gap: calc(6 * var(--u)); font-size: calc(16 * var(--u)); font-weight: 800; }
.is-home .count-pill { min-width: calc(52 * var(--u)); height: calc(25 * var(--u)); padding: 0 calc(9 * var(--u)); display: inline-flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); border-radius: calc(13 * var(--u)); background: #1C0801; font-size: calc(14 * var(--u)); }
.is-home .count-pill svg { width: calc(7 * var(--u)); height: calc(10 * var(--u)); }
.is-home .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(11.7 * var(--u)); padding: 0 calc(7.3 * var(--u)); margin-top: calc(12 * var(--u)); }
.is-home .game-card-art { aspect-ratio: 56.7 / 75.7; border: calc(2 * var(--u)) solid #ECE4E4; border-radius: calc(6 * var(--u)); }
.is-home .game-card-art::before { display: none; }
.is-home .game-card-plus { top: calc(3 * var(--u)); right: calc(3 * var(--u)); width: calc(13.5 * var(--u)); height: calc(13.5 * var(--u)); border: 0; background: rgba(205,198,198,.82); }
.is-home .game-card-plus svg { display: none; }
.is-home .game-card-plus::after { content: "\2605"; color: #6C6262; font-size: calc(9.5 * var(--u)); line-height: 1; }

body .floating-headset {
    width: calc(38 * var(--u)); height: calc(38 * var(--u)); top: calc(73.4% - 19 * var(--u)); left: max(calc(15 * var(--u)), calc(50% - var(--column-w) / 2 + 15 * var(--u)));
    background: #D21A1A; box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0,0,0,.35);
}
body .floating-headset svg { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }

.mine-trigger { top: 64%; right: max(calc(13 * var(--u)), calc(50% - var(--column-w) / 2 + 13 * var(--u))); left: auto; transform: none; width: calc(73 * var(--u)); display: block; }
.mine-widget-art { display: block; width: calc(73 * var(--u)); height: calc(73 * var(--u)); }
.mine-trigger .mine-countdown {
    position: absolute; left: 0; right: 0; bottom: calc(2.5 * var(--u)); min-width: 0; padding: 0; background: none; border-radius: 0;
    text-align: center; color: #fff; font-size: calc(12.5 * var(--u)); font-weight: 800; line-height: calc(13 * var(--u)); letter-spacing: .2px;
    text-shadow: 0 1px 1px rgba(110,30,0,.85);
}

.bottom-nav { height: calc(86.8 * var(--u)); display: block; border-top: 0; background: url('../images/home/nav-bg.png') center bottom / 100% 100% no-repeat; }
.bottom-nav::before { display: none; }
.bottom-nav-item {
    position: absolute; top: calc(39 * var(--u)); width: calc(62 * var(--u)); height: calc(46 * var(--u)); margin-left: calc(-31 * var(--u)); flex: none; padding: 0;
    justify-content: flex-start; gap: calc(1 * var(--u)); color: #9C9190; font-size: calc(13 * var(--u));
}
.bottom-nav-home { left: 9%; }
.bottom-nav-offer { left: 26.9%; }
.bottom-nav-deposit { left: 73.3%; }
.bottom-nav-profile { left: 91.2%; }
.bottom-nav-icon { color: #E8C97A; }
.bottom-nav-icon img { display: block; width: calc(27 * var(--u)); height: calc(27 * var(--u)); }
.bottom-nav-icon .icon { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.bottom-nav-item small { font-size: calc(13 * var(--u)); line-height: calc(16 * var(--u)); color: #9C9190; white-space: nowrap; }
.bottom-nav-item.is-active small { color: #FFD24A; font-weight: 700; }
.bottom-nav-centre { left: 50%; top: calc(-11 * var(--u)); width: calc(96 * var(--u)); height: calc(82 * var(--u)); margin-left: calc(-48 * var(--u)); gap: calc(7 * var(--u)); }
.bottom-nav-gift { width: calc(52 * var(--u)); height: calc(52 * var(--u)); margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; display: block; }
.bottom-nav-gift img { display: block; width: 100%; height: 100%; transform: scale(1.24); transform-origin: center bottom; }
.bottom-nav-centre small { font-size: calc(18 * var(--u)); line-height: calc(20 * var(--u)); color: #FFD24A; font-weight: 800; }
.nav-dot { top: calc(2 * var(--u)); right: calc(50% - 15 * var(--u)); }

.drawer { width: 83%; padding: 0 calc(11 * var(--u)) calc(20 * var(--u)); background: #240C02; }
.drawer-top { margin: 0 calc(-11 * var(--u)); padding: calc(7 * var(--u)) calc(11 * var(--u)) calc(9 * var(--u)); background: #240C02; }
.drawer-head { align-items: flex-start; }
.drawer-logo { display: block; width: calc(137 * var(--u)); height: auto; margin-left: calc(1.5 * var(--u)); }
.drawer-close { width: calc(29 * var(--u)); height: calc(29 * var(--u)); margin-top: calc(1 * var(--u)); border: 0; border-radius: calc(4 * var(--u)); background: #420504; color: #CE1C1C; }
.drawer-close .icon { width: calc(14 * var(--u)); height: calc(14 * var(--u)); stroke-width: 2.6; }
.drawer-welcome {
    margin: calc(14 * var(--u)) 0 0; padding: calc(12 * var(--u)) 0 calc(16 * var(--u)); font-size: calc(14.5 * var(--u)); font-weight: 400;
    background: radial-gradient(ellipse 52% 90% at 50% 100%, rgba(150,22,15,.55), rgba(150,22,15,0) 72%);
}
.drawer-divider { width: calc(165 * var(--u)); height: 1px; margin: 0 auto calc(15 * var(--u)); background: linear-gradient(90deg, rgba(255,240,235,0), #E9DCD8 50%, rgba(255,240,235,0)); }
.drawer-auth { gap: calc(2 * var(--u)); }
.drawer-auth .btn-skew {
    flex: none; width: calc(136 * var(--u)); min-width: 0; height: calc(31.8 * var(--u)); padding: 0 0 calc(3 * var(--u)); clip-path: none; color: #fff; font-size: calc(15 * var(--u)); font-weight: 700;
    -webkit-mask: url('../images/home/drawer-login-mask.png') center / 100% 100% no-repeat;
    mask: url('../images/home/drawer-login-mask.png') center / 100% 100% no-repeat;
}
.drawer-auth .btn-skew-red { background: linear-gradient(180deg, #D61D1D 0, #D21A1A 88%, #7E0A0A 88%); }
.drawer-auth .btn-skew-gold {
    background: linear-gradient(180deg, #FCB916 0, #FBB611 88%, #9A6A0E 88%);
    -webkit-mask-image: url('../images/home/drawer-register-mask.png'); mask-image: url('../images/home/drawer-register-mask.png');
}
.drawer-best { display: flex; align-items: center; gap: calc(6 * var(--u)); margin: calc(7 * var(--u)) 0 calc(6 * var(--u)); }
.drawer-best img { width: calc(18 * var(--u)); height: auto; }
.drawer-best span { display: flex; flex-direction: column; line-height: 1.2; }
.drawer-best strong { font-size: calc(16 * var(--u)); font-weight: 800; }
.drawer-best small { font-size: calc(12.5 * var(--u)); color: #9B8E88; }
.drawer-featured { margin: 0 calc(-11 * var(--u)); padding: calc(11 * var(--u)); gap: calc(9.3 * var(--u)); background: #420504; }
.drawer-featured-card { width: calc(51.7 * var(--u)); position: relative; }
.drawer-featured-art { height: calc(67 * var(--u)); border: calc(2 * var(--u)) solid #ECE4E4; border-radius: calc(5 * var(--u)); font-size: calc(16 * var(--u)); }
.drawer-section-title { margin: calc(14 * var(--u)) 0 calc(10 * var(--u)); font-size: calc(15.5 * var(--u)); font-weight: 500; color: #9B8E88; }
.drawer-events { gap: calc(9.7 * var(--u)); }
.drawer-event-card {
    min-height: calc(62 * var(--u)); padding: calc(8 * var(--u)) calc(5 * var(--u)) calc(5 * var(--u)); gap: calc(6 * var(--u)); border: 1px solid #56120F; border-radius: calc(4 * var(--u));
    background: repeating-linear-gradient(135deg, #460707 0 calc(16 * var(--u)), #4E0B0B calc(16 * var(--u)) calc(32 * var(--u)));
}
.drawer-event-title { font-size: calc(14 * var(--u)); line-height: 1.35; }
.drawer-event-open { display: inline-flex; align-items: center; gap: calc(4 * var(--u)); padding: calc(1 * var(--u)) calc(6 * var(--u)); border-radius: calc(10 * var(--u)); background: #240C02; color: #9B8E88; font-size: calc(12.5 * var(--u)); }
.drawer-providers { gap: calc(7.7 * var(--u)) calc(6 * var(--u)); }
.drawer-provider-cell { min-height: calc(38.3 * var(--u)); padding: 0 calc(8 * var(--u)) 0 calc(11 * var(--u)); gap: calc(4 * var(--u)); border: 1px solid #5D0F0D; border-radius: calc(4 * var(--u)); background: #480300; font-size: calc(14.5 * var(--u)); font-weight: 700; }
.drawer-provider-icon { width: calc(23 * var(--u)); height: calc(23 * var(--u)); flex: none; object-fit: contain; border-radius: 0; background: none; color: var(--gold-code); font-size: calc(14 * var(--u)); display: grid; place-items: center; }
.drawer-app-card {
    position: relative; margin-top: calc(24 * var(--u)); padding: calc(10 * var(--u)) calc(6 * var(--u)) calc(8 * var(--u)); border: 1px solid #561213; border-radius: calc(5 * var(--u));
    background: linear-gradient(180deg, #210303, #1B0303); align-items: flex-end;
}
.drawer-app-text strong { font-size: calc(16 * var(--u)); }
.drawer-app-text { min-width: 0; max-width: calc(100% - 60 * var(--u)); }
.drawer-app-text small { font-size: calc(11.5 * var(--u)); color: #9B8E88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-app-btns { gap: calc(9 * var(--u)); margin-top: calc(10 * var(--u)); }
.app-pill { height: calc(27 * var(--u)); padding: 0 calc(9 * var(--u)); gap: calc(5 * var(--u)); white-space: nowrap; border: 1px solid #640A0A; border-radius: calc(14 * var(--u)); background: transparent; font-size: calc(13.5 * var(--u)); font-weight: 700; }
.app-pill .icon { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.drawer-app-icon { position: absolute; right: calc(6 * var(--u)); bottom: calc(2 * var(--u)); width: calc(63 * var(--u)); height: auto; }

/* ---------- Homepage sections, rail, footer, drawer events ---------- */
.is-home .rail-logo-white, .is-home .game-section-icon.rail-logo-white { filter: brightness(0) invert(1); }
.is-home .rail-logo-color { width: calc(42 * var(--u)); height: calc(42 * var(--u)); margin: 0; }
.is-home .rail-tile small { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0; }

.is-home .home-sections { gap: calc(18.7 * var(--u)); }
.is-home .game-section { background: transparent; border-radius: calc(8 * var(--u)); overflow: hidden; padding-bottom: 0; }
.is-home .game-section.has-more { background: #D21A1A; }
.is-home .game-panel { position: relative; z-index: 1; background: #6E0708; border-radius: 0 0 calc(8 * var(--u)) calc(8 * var(--u)); padding: calc(12 * var(--u)) 0; }
.is-home .game-panel .game-grid { margin-top: 0; }
.is-home .game-section-icon { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }
.is-home .game-section-icon-flame { width: calc(19 * var(--u)); height: calc(19 * var(--u)); }
.game-section-more {
    width: 100%; height: calc(35 * var(--u)); display: flex; align-items: center; justify-content: center; gap: calc(7 * var(--u));
    border: 0; background: transparent; color: #fff; font-family: inherit; font-size: calc(15 * var(--u)); font-weight: 700; cursor: pointer;
}
.game-section-more svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.nav-top-icon { color: #FFD24A; }

.is-home .app-download {
    margin-top: calc(18.7 * var(--u)); padding: calc(20 * var(--u)) calc(13 * var(--u)) 0; background: #420504;
    border-top: 1px solid #5D0F0D; border-radius: calc(13 * var(--u)) calc(13 * var(--u)) 0 0;
}
.is-home .app-download-title { margin: 0 0 calc(12 * var(--u)); font-size: calc(18 * var(--u)); font-weight: 600; color: #9C8584; }
.is-home .app-download-cards { gap: calc(14 * var(--u)); }
.is-home .app-download-card {
    height: calc(54 * var(--u)); padding: 0 calc(8 * var(--u)) 0 calc(12 * var(--u)); gap: calc(8 * var(--u)); border: 0; border-radius: calc(8 * var(--u)); background: #6E0708; color: #fff;
}
.is-home .app-download-card small { display: block; }
.is-home .app-download-card > .icon:first-child { width: calc(20 * var(--u)); height: calc(20 * var(--u)); flex: none; }
.is-home .app-download-card span { flex: 1; min-width: 0; line-height: 1.25; }
.is-home .app-download-card small { color: #fff; font-size: calc(11.5 * var(--u)); }
.is-home .app-download-card strong { display: block; font-size: calc(13 * var(--u)); white-space: nowrap; }
.is-home .app-download-card:last-child strong { white-space: normal; }
.is-home .app-download-chevron { width: calc(12 * var(--u)); height: calc(12 * var(--u)); color: #B39A9A; }

.is-home .site-footer { margin-top: 0; padding: calc(16 * var(--u)) calc(13 * var(--u)) calc(20 * var(--u)); background: #420504; border-top: 0; }
.is-home .footer-heading { margin: 0 0 calc(12 * var(--u)); font-size: calc(18 * var(--u)); font-weight: 600; color: #9C8584; line-height: 1.3; }
.is-home .footer-partner-empty { height: calc(24 * var(--u)); }
.is-home .footer-providers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(10 * var(--u)) calc(5 * var(--u)); padding: 0 calc(2 * var(--u)); }
.is-home .footer-provider-cell {
    height: calc(38.3 * var(--u)); overflow: hidden; border: 2px solid #EEC64D; border-radius: calc(8 * var(--u));
    background: linear-gradient(180deg, #8A0D08, #4A0603); display: grid; place-items: center;
}
.is-home .footer-provider-cell img { width: calc(62 * var(--u)); max-width: 100%; height: calc(28 * var(--u)); object-fit: contain; object-position: center; display: block; margin: auto; }
.is-home .footer-provider-cell img.is-gold { filter: brightness(0) saturate(100%) invert(79%) sepia(46%) saturate(780%) hue-rotate(353deg) brightness(101%) contrast(92%); }
.is-home .footer-split { margin-top: calc(32 * var(--u)); gap: calc(10 * var(--u)); }
.is-home .footer-split-col { flex: 1 1 58%; min-width: 0; }
.is-home .footer-split-end { flex: 0 0 38%; text-align: left; }
.is-home .footer-split .footer-heading { font-size: calc(19 * var(--u)); font-weight: 700; margin-bottom: calc(12 * var(--u)); }
.is-home .footer-contact { gap: calc(11 * var(--u)); margin: 0; }
.is-home .contact-circle { width: calc(25 * var(--u)); height: calc(25 * var(--u)); border-radius: 50%; background: none; box-shadow: 0 calc(1 * var(--u)) calc(3 * var(--u)) rgba(0,0,0,.5); overflow: hidden; }
.is-home .contact-circle img { display: block; width: 100%; height: 100%; }
.is-home .footer-split-end .footer-marks { justify-content: flex-start; gap: calc(8 * var(--u)); }
.is-home .footer-split .footer-marks .mark-21 {
    width: calc(21 * var(--u)); height: calc(21 * var(--u)); border: 1.5px solid #8E7B78; background: none; color: #8E7B78; font-size: calc(8.5 * var(--u)); font-weight: 700;
}
.is-home .mark-21 sup { font-size: .7em; }
.is-home .mark-gamecare { padding: calc(3 * var(--u)) calc(4 * var(--u)); border: 1px solid #8E7B78; border-radius: calc(3 * var(--u)); background: none; color: #8E7B78; font-size: calc(6.5 * var(--u)); letter-spacing: 0; }
.is-home .mark-gamble { width: calc(19 * var(--u)); height: calc(19 * var(--u)); border-radius: 50%; display: block; }
.is-home .footer-about { margin: calc(28 * var(--u)) 0 0; padding: 0 calc(14 * var(--u)); font-size: calc(13.4 * var(--u)); line-height: calc(16.7 * var(--u)); color: #A3888A; }
.is-home .footer-copyline { display: flex; align-items: center; margin-top: calc(24 * var(--u)); padding: 0 calc(14 * var(--u)); font-size: calc(13.4 * var(--u)); color: #A3888A; }
.is-home .footer-copyline-sep { flex: 1; text-align: center; }
.is-home .footer-badges { display: flex; justify-content: center; align-items: center; gap: calc(32 * var(--u)); margin-top: calc(50 * var(--u)); color: #8E676A; }
.is-home .badge-approved { display: flex; flex-direction: column; align-items: center; gap: calc(2 * var(--u)); }
.is-home .badge-approved b { font-size: calc(10 * var(--u)); font-weight: 700; letter-spacing: .3px; }
.is-home .badge-approved i { font-style: normal; margin: 0 calc(2 * var(--u)); }
.is-home .badge-approved small { padding: calc(1 * var(--u)) calc(9 * var(--u)); border-radius: calc(9 * var(--u)); background: #8E676A; color: #420504; font-size: calc(6.5 * var(--u)); font-weight: 700; letter-spacing: 1px; }
.is-home .badge-leader { font-size: calc(17 * var(--u)); font-weight: 700; letter-spacing: -.3px; font-stretch: condensed; }
.is-home .footer-bottom { margin-top: calc(58 * var(--u)); padding: 0; border-top: 0; display: flex; flex-direction: column; align-items: center; gap: calc(10 * var(--u)); }
.is-home .footer-logo { width: calc(190 * var(--u)); height: auto; display: block; }
.is-home .footer-copy { font-size: calc(13.4 * var(--u)); color: #926667; }

.drawer-event-card { position: relative; overflow: hidden; }
.drawer-event-title { max-width: calc(100% - 28 * var(--u)); position: relative; z-index: 1; }
.drawer-event-open { position: relative; z-index: 1; }
.drawer-event-icon { position: absolute; right: calc(5 * var(--u)); bottom: calc(4 * var(--u)); width: calc(40 * var(--u)); height: calc(40 * var(--u)); object-fit: contain; }

/* ---------- Phase 3: provider labels ---------- */
.is-home .rail-tile small, .category-rail .rail-tile small { display: block; width: 100%; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: clip; text-align: center; }
.category-rail .rail-logo { width: 42px; height: 42px; object-fit: contain; display: block; }
.category-rail .rail-logo-white { filter: brightness(0) invert(1); }

/* ---------- Phase 3: bottom navigation icon sizes ---------- */
.bottom-nav-item { top: calc(37 * var(--u)); }
.bottom-nav-icon img { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }
.bottom-nav-icon .icon { width: calc(29 * var(--u)); height: calc(29 * var(--u)); }
.bottom-nav-centre { top: calc(-23 * var(--u)); width: calc(104 * var(--u)); height: calc(96 * var(--u)); margin-left: calc(-52 * var(--u)); gap: calc(5 * var(--u)); }
.bottom-nav-gift { width: calc(66 * var(--u)); height: calc(66 * var(--u)); }

/* ---------- Phase 3: richer reds ---------- */
.header-btn { background: linear-gradient(180deg, #C9170F, #530707); }
.welcome-actions .btn-skew-red, .drawer-auth .btn-skew-red { background: linear-gradient(180deg, #E52424 0, #DB1E1E 88%, #860B0B 88%); }
.is-home .ticker-main { background: #4C0607; }
.is-home .ticker-bell { background: #7E090B; }
.is-home .ticker-search { background: linear-gradient(180deg, #B81212, #520606); }
.is-home .game-panel { background: #7C080B; }
.is-home .game-section.has-more { background: #E01F1F; }
.is-home .game-section-bar { background: linear-gradient(180deg, rgba(124,8,11,0) 55%, #7C080B 100%), linear-gradient(90deg, #CF0606, #DF1A10 40%, #E8331F); }
.is-home .app-download, .is-home .site-footer { background: #4A0607; }
.is-home .app-download-card { background: #7C080B; }
.is-home .footer-provider-cell { background: linear-gradient(180deg, #9A0F0A, #520704); }

/* ---------- Phase 3: compact footer ---------- */
.is-home .app-download { padding-top: calc(16 * var(--u)); }
.is-home .site-footer { padding-top: calc(12 * var(--u)); padding-bottom: calc(10 * var(--u)); }
.is-home .footer-heading { margin-bottom: calc(10 * var(--u)); }
.is-home .footer-partner-empty { height: calc(12 * var(--u)); }
.is-home .footer-split { margin-top: calc(22 * var(--u)); }
.is-home .footer-about { margin-top: calc(18 * var(--u)); }
.is-home .footer-copyline { margin-top: calc(16 * var(--u)); }
.is-home .footer-badges { margin-top: calc(28 * var(--u)); }
.is-home .footer-bottom { margin-top: calc(34 * var(--u)); gap: calc(8 * var(--u)); }
.is-home .footer-logo { width: calc(168 * var(--u)); }

.is-home .footer-split { flex-direction: row; }
.is-home .footer-split-end { text-align: left; }
.is-home .footer-split-end .footer-marks { justify-content: flex-start; }

/* ---------- Phase 3: banner slider (one slide, no next-slide preview) ---------- */
.is-home .carousel-slide { width: 100%; transform: translateX(calc(var(--pos, 0) * (100% + 12px))); }
.carousel-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Phase 3: authenticated account row ---------- */
.is-home .account-row .welcome-user { text-decoration: none; color: inherit; }
.is-home .avatar-photo { overflow: hidden; border-radius: 50%; }
.is-home .avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.is-home .account-row .welcome-text strong { font-size: calc(17 * var(--u)); font-weight: 500; letter-spacing: .2px; }
.is-home .account-row .balance-line { display: flex; align-items: center; gap: calc(6 * var(--u)); margin-top: calc(4 * var(--u)); color: #F5C04A; font-size: calc(13.5 * var(--u)); font-weight: 700; }
.is-home .account-row .balance-line img { width: calc(19 * var(--u)); height: calc(19 * var(--u)); display: block; }
.is-home .account-actions { gap: calc(16 * var(--u)); padding-right: calc(2 * var(--u)); }
.is-home .account-action { gap: calc(2 * var(--u)); color: #fff; font-size: calc(15 * var(--u)); font-family: inherit; }
.is-home .account-action-icon svg { width: calc(34 * var(--u)); height: calc(28 * var(--u)); display: block; }

/* ---------- Phase 3: search page ---------- */
.page-games-search .column, .page-games-search .search-page { background: #240C02; }
.page-games-search .reference-page-bar { height: calc(46 * var(--u)); background: #400404; border-bottom: 0; }
.page-games-search .reference-page-bar h1 { font-size: calc(19 * var(--u)); font-weight: 800; }
.page-games-search .reference-back { height: calc(46 * var(--u)); left: calc(10 * var(--u)); font-size: calc(28 * var(--u)); font-weight: 300; }
.search-page-form { height: calc(39 * var(--u)); margin: calc(13 * var(--u)) calc(7 * var(--u)) 0; border: 1.5px solid #6E1414; border-radius: calc(6 * var(--u)); background: #1E0802; }
.search-page-form input { font-size: calc(14 * var(--u)); padding: 0 calc(12 * var(--u)); }
.search-page-form input::placeholder { color: #7F6A66; }
.search-page-form button { width: calc(44 * var(--u)); color: #8F7D7A; }
.search-page-form button svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.search-page .search-tabs { justify-content: flex-start; margin-top: calc(14 * var(--u)); background: transparent; border-bottom: 1px solid #5A0F0F; }
.search-page .search-tabs a { flex: 0 0 auto; gap: calc(5 * var(--u)); min-height: calc(42 * var(--u)); padding: 0 calc(9 * var(--u)); color: #8A7A77; font-size: calc(14.5 * var(--u)); }
.search-page .search-tabs a svg { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.search-page .search-tabs a.is-active { color: #EC2F27; }
.search-page .search-tabs a.is-active::after { left: 0; right: 0; }
.search-page .search-game-grid { gap: calc(8.7 * var(--u)); padding: calc(9 * var(--u)) calc(7 * var(--u)) calc(20 * var(--u)); }
.search-page .game-card-art { border: calc(2 * var(--u)) solid #ECE4E4; border-radius: calc(6 * var(--u)); }
.search-page .game-card-art::before { display: none; }
.search-page .game-card-plus { top: calc(3 * var(--u)); right: calc(3 * var(--u)); width: calc(15 * var(--u)); height: calc(15 * var(--u)); border: 0; background: rgba(205,198,198,.82); }
.search-page .game-card-plus svg { display: none; }
.search-page .game-card-plus::after { content: "\2605"; color: #6C6262; font-size: calc(10 * var(--u)); line-height: 1; }
.simple-pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 4px 15px 24px; }
.simple-pager-btn { padding: 8px 14px; border-radius: 6px; background: #5A0707; color: #fff; text-decoration: none; font-size: 13px; }
.simple-pager-btn.is-disabled { opacity: .4; }
.simple-pager-page { color: #C9B3AF; font-size: 13px; }

/* ---------- Phase 3: animated bonus popup ---------- */
.bonus-popup { position: fixed; inset: 0; z-index: 130; display: flex; justify-content: center; overflow: hidden; background: rgba(12,3,3,.76); }
.bonus-coins { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bonus-coin {
    position: absolute; top: -14%; width: calc(var(--size, 26) * var(--u)); height: calc(var(--size, 26) * var(--u));
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='19' fill='%23E9A714'/%3E%3Ccircle cx='20' cy='20' r='16.5' fill='%23FFE15A'/%3E%3Ccircle cx='20' cy='20' r='12.5' fill='none' stroke='%23F0B21E' stroke-width='2'/%3E%3Crect x='15.5' y='15.5' width='9' height='9' rx='1' fill='%23C98608'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
    animation-name: bonusCoinFall, bonusCoinFlip; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite, infinite;
}
.bonus-close {
    position: absolute; z-index: 3; top: calc(14 * var(--u)); right: max(calc(12 * var(--u)), calc(50% - var(--column-w) / 2 + 12 * var(--u)));
    width: calc(30 * var(--u)); height: calc(30 * var(--u)); display: grid; place-items: center; padding: 0; cursor: pointer;
    border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(0,0,0,.35); color: #fff;
}
.bonus-close svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.bonus-stage { position: relative; z-index: 1; width: min(var(--column-w), 100%); min-height: 100%; padding: calc(24 * var(--u)) 0 calc(28 * var(--u)); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bonus-head { text-align: center; }
.bonus-title {
    margin: 0; font-size: calc(36 * var(--u)); font-weight: 900; line-height: 1.15;
    background: linear-gradient(180deg, #FFF8BE, #F8D84A 55%, #EAA915); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 0 #6A2A00);
}
.bonus-sub { margin: calc(2 * var(--u)) 0 0; color: #fff; font-size: calc(12.5 * var(--u)); font-weight: 700; }
.bonus-gift { position: relative; width: calc(170 * var(--u)); height: calc(170 * var(--u)); margin-top: calc(6 * var(--u)); transition: width .45s ease, height .45s ease; }
.bonus-glow {
    position: absolute; left: 50%; top: 52%; width: calc(270 * var(--u)); height: calc(270 * var(--u)); translate: -50% -50%; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255,216,96,.8) 0, rgba(255,166,40,.38) 34%, rgba(255,120,20,0) 68%);
    animation: bonusGlow 2s ease-in-out infinite;
}
.bonus-rays {
    position: absolute; left: 50%; top: 46%; width: calc(320 * var(--u)); height: calc(320 * var(--u)); translate: -50% -50%; border-radius: 50%; pointer-events: none; opacity: 0;
    background: repeating-conic-gradient(from 0deg, rgba(255,238,160,.6) 0deg 7deg, rgba(255,238,160,0) 7deg 22deg);
    -webkit-mask: radial-gradient(circle, #000 0, #000 18%, transparent 64%); mask: radial-gradient(circle, #000 0, #000 18%, transparent 64%);
    transition: opacity .4s ease .2s;
}
.bonus-gift-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 90%; animation: bonusBounce 1.6s ease-in-out infinite; }
.bonus-gift-lid { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.2,1.35,.4,1); }
.bonus-burst { position: absolute; left: 50%; top: 52%; width: 0; height: 0; z-index: 2; }
.bonus-coin.bonus-coin-burst { top: 0; left: 0; translate: -50% -50%; animation: bonusBurst .95s cubic-bezier(.15,.7,.3,1) forwards; }
.bonus-amount { position: absolute; left: 50%; top: 47%; z-index: 3; translate: -50% -50%; scale: .3; opacity: 0; text-align: center; white-space: nowrap; transition: opacity .3s ease .3s, scale .45s cubic-bezier(.2,1.5,.4,1) .3s; }
.bonus-amount span { display: block; color: #fff; font-size: calc(16 * var(--u)); font-weight: 800; text-shadow: 1px 1px 0 #B3121B, -1px -1px 0 #B3121B, 1px -1px 0 #B3121B, -1px 1px 0 #B3121B; }
.bonus-amount strong { display: block; color: #FFE45C; font-size: calc(38 * var(--u)); font-weight: 900; line-height: 1.05; text-shadow: 0 2px 0 #B3121B, 2px 0 0 #B3121B, -2px 0 0 #B3121B, 0 -2px 0 #B3121B, 0 4px 12px rgba(0,0,0,.45); }
.bonus-open {
    margin-top: calc(26 * var(--u)); width: calc(149 * var(--u)); height: calc(37 * var(--u)); border: 0; border-radius: calc(6 * var(--u)); cursor: pointer;
    background: linear-gradient(180deg, #FFDA4C, #F5B40A); box-shadow: 0 calc(3 * var(--u)) 0 #B87A00;
    color: #6B3300; font-family: inherit; font-size: calc(16 * var(--u)); font-weight: 800;
}
.bonus-details { display: none; width: 100%; margin-top: calc(18 * var(--u)); padding: calc(12 * var(--u)) calc(16 * var(--u)) calc(14 * var(--u)); background: rgba(22,30,92,.84); text-align: center; }
.bonus-details h3 { margin: 0 0 calc(6 * var(--u)); color: #DCE85E; font-size: calc(15 * var(--u)); font-weight: 800; }
.bonus-details p { margin: 0; color: #fff; font-size: calc(12.5 * var(--u)); line-height: 1.55; }
.bonus-actions { display: none; width: calc(100% - 26 * var(--u)); gap: calc(10 * var(--u)); margin-top: calc(22 * var(--u)); }
.bonus-deposit, .bonus-cancel {
    flex: 1; height: calc(37 * var(--u)); display: grid; place-items: center; border: 0; border-radius: calc(6 * var(--u)); cursor: pointer; text-decoration: none;
    font-family: inherit; font-size: calc(14 * var(--u)); font-weight: 800;
}
.bonus-deposit { background: linear-gradient(180deg, #FFDA4C, #F5B40A); box-shadow: 0 calc(3 * var(--u)) 0 #B87A00; color: #6B3300; }
.bonus-cancel { background: linear-gradient(180deg, #4F88FF, #2D60EE); box-shadow: 0 calc(3 * var(--u)) 0 #1C3FA6; color: #fff; }
.bonus-popup.is-opened .bonus-head, .bonus-popup.is-opened .bonus-open { display: none; }
.bonus-popup.is-opened .bonus-gift { width: calc(200 * var(--u)); height: calc(200 * var(--u)); }
.bonus-popup.is-opened .bonus-gift-svg { animation: bonusPop .5s ease-out 1; }
.bonus-popup.is-opened .bonus-gift-lid { transform: translateY(-64px) rotate(-12deg); }
.bonus-popup.is-opened .bonus-rays { opacity: 1; animation: bonusSpin 9s linear infinite; }
.bonus-popup.is-opened .bonus-amount { opacity: 1; scale: 1; }
.bonus-popup.is-opened .bonus-details { display: block; animation: bonusRise .45s ease .35s both; }
.bonus-popup.is-opened .bonus-actions { display: flex; animation: bonusRise .45s ease .5s both; }
@keyframes bonusCoinFall { from { translate: 0 0; } to { translate: 0 128vh; } }
@keyframes bonusCoinFlip { 0%, 100% { scale: 1 1; } 50% { scale: .28 1; } }
@keyframes bonusBounce { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 15% { transform: translateY(-6%) rotate(-4deg); } 30% { transform: translateY(0) rotate(3deg); } 45% { transform: translateY(-3%) rotate(-2deg); } }
@keyframes bonusPop { 0% { transform: scale(.92); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes bonusGlow { 0%, 100% { opacity: .75; scale: .95; } 50% { opacity: 1; scale: 1.06; } }
@keyframes bonusSpin { to { rotate: 360deg; } }
@keyframes bonusRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bonusBurst { from { transform: translate(0, 0) scale(.4) rotate(0); opacity: 1; } 80% { opacity: 1; } to { transform: translate(calc(var(--dx) * var(--u)), calc(var(--dy) * var(--u))) scale(1) rotate(220deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .bonus-gift-svg, .bonus-glow, .bonus-coin, .bonus-popup.is-opened .bonus-rays { animation: none; }
}


/* Visitor popup images */
.visitor-popup-card { width: min(90vw, calc(var(--column-w) * .90), max(140px, calc((100dvh - 156px) * .92))); overflow: hidden; border-radius: 14px; background: #4B0506; box-shadow: 0 14px 38px rgba(0,0,0,.65); }
.visitor-popup-slides { width: 100%; aspect-ratio: 838 / 910; overflow: hidden; background: linear-gradient(135deg,#740706,#290300); }
.visitor-popup-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.visitor-popup-slides[hidden], .visitor-popup-image[hidden] { display: none; }
.visitor-popup-empty { height: 100%; display: grid; place-items: center; color: #d9bab1; font-size: 14px; }
.visitor-popup-tabs { display: grid; grid-template-columns: repeat(2, 1fr); height: 53px; }
.visitor-popup-tabs button { border: 0; background: #450404; color: #ab9494; font: inherit; font-weight: 700; cursor: pointer; }
.visitor-popup-tabs button.is-active { background: #790608; color: #fff; }
.visitor-popup-reminder { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 12px auto 0; padding: 10px 15px; background: #240C02; border-radius: 8px; color: white; font-size: 14px; cursor: pointer; }
.visitor-popup-reminder input { accent-color: #d21a1a; width: 17px; height: 17px; }
.lucky-popup[hidden], .logout-confirm[hidden] { display: none !important; }
.lucky-popup { padding: 10px; overflow-y: auto; grid-template-columns: 100%; align-content: safe center; }

/* Login and registration: scoped translucent logo header */
.auth-glass-header { flex: 0 0 clamp(72px, 13.5dvh, 120px); display: flex; align-items: flex-start; justify-content: space-between; padding: 12px 4%; background: rgba(48,12,5,.28); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.auth-glass-logo { width: 33%; height: 36px; object-fit: contain; object-position: left center; }
.auth-glass-header .sheet-close { position: static; width: 34px; height: 34px; border: 0; background: rgba(125,87,65,.72); }
#authBackdrop { background: rgba(29,7,3,.44); }

/* Only the authenticated drawer header changes */
.drawer-logged-in { padding: calc(7 * var(--u)) calc(4 * var(--u)) calc(14 * var(--u)); }
.drawer-user-info { display: flex; align-items: center; gap: calc(12 * var(--u)); }
.drawer-user-avatar { width: calc(37 * var(--u)); height: calc(37 * var(--u)); border-radius: 50%; object-fit: cover; flex: none; }
.drawer-user-identity { min-width: 0; display: flex; flex-direction: column; gap: calc(4 * var(--u)); }
.drawer-user-identity strong { font-size: calc(16 * var(--u)); white-space: nowrap; }
.drawer-user-identity small { color: #a38a84; font-size: calc(12 * var(--u)); white-space: nowrap; }
.drawer-wallet-balance { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: calc(4 * var(--u)); white-space: nowrap; }
.drawer-wallet-balance strong { font-size: calc(15 * var(--u)); }
.drawer-wallet-balance small { color: #a38a84; font-size: calc(12 * var(--u)); }
.drawer-wallet-actions { margin-top: calc(15 * var(--u)); display: flex; gap: calc(2 * var(--u)); }
.drawer-wallet-actions a,.drawer-wallet-actions button { flex: 1; display: grid; place-items: center; min-width: 0; height: calc(37 * var(--u)); border: 0; color: white; font: inherit; font-size: calc(17 * var(--u)); font-weight: 800; cursor: pointer; text-decoration: none; border-radius: calc(4 * var(--u)); }
.drawer-wallet-actions .drawer-wallet-deposit { background: #d21a1a; clip-path: polygon(0 0,100% 0,92% 100%,0 100%); }
.drawer-wallet-actions .drawer-wallet-withdraw { background: #ffb90f; clip-path: polygon(8% 0,100% 0,100% 100%,0 100%); }
.drawer-logout { margin: calc(22 * var(--u)) auto 0; }
.drawer-logout .btn-skew { min-width: calc(145 * var(--u)); }

/* Website logout confirmation */
.logout-confirm { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.77); padding: 14px; }
.logout-confirm-card { width: min(calc(var(--column-w) * .97), 100%); background: #430404; border-radius: 14px; padding: 26px 18px 20px; text-align: center; box-shadow: 0 12px 34px rgba(0,0,0,.4); }
.logout-confirm-card h2 { font-size: clamp(19px, 4.5vw, 24px); margin: 0 0 26px; color: white; }
.logout-confirm-card p { font-size: clamp(13px, 3.5vw, 17px); line-height: 1.6; color: #bb9292; margin: 0 0 30px; }
.logout-confirm-actions { display: flex; gap: 13px; }
.logout-confirm-actions button { flex: 1; height: 54px; border: 0; border-radius: 8px; font: inherit; font-size: 20px; font-weight: 800; color: #fff; cursor: pointer; }
.logout-confirm-actions button:first-child { background: #7E0909; }
.logout-confirm-actions button:last-child { background: linear-gradient(90deg,#f45440,#ffb033); }

.visitor-popup-fallback {
    position: relative; display: block; height: 100%; container-type: inline-size;
    background: #590605 url('../images/home/visitor-popup/lucky-default.webp') center / 100% 100% no-repeat;
}
.visitor-popup-fallback img {
    position: absolute; left: 28%; top: 4%; width: 44%; height: 12%;
    padding: 1%; background: radial-gradient(ellipse, #852205, #700c04); border-radius: 6%; object-fit: contain;
}
.visitor-popup-fallback strong {
    position: absolute; left: 11%; top: 33%; width: 33%; height: 10%;
    display: grid; place-content: center; overflow: hidden; text-align: center;
    color: #a30705; background: linear-gradient(#ffe383, #ffcd48, #ffec99);
    border-radius: 10%; font: 900 clamp(12px, 6cqw, 30px)/1 system-ui;
}

.visitor-popup-track { display: flex; width: 100%; height: 100%; transition: transform .45s ease; }
.visitor-popup-track > * { flex: 0 0 100%; min-width: 0; }
.visitor-popup-image { object-fit: contain; }

.drawer-public-id { display: flex; align-items: center; gap: calc(5 * var(--u)); min-width: 0; }
.drawer-id-copy { display: inline-grid; place-items: center; flex: none; padding: 0; width: calc(17 * var(--u)); height: calc(17 * var(--u)); color: #9F3030; background: none; border: 0; cursor: pointer; }
.drawer-id-copy svg { width: 100%; height: 100%; }
.drawer-user-identity { flex: 1; }
.drawer-wallet-balance { flex: none; }

/* homepage: category list and game list scroll independently; the page still scrolls on to the footer */
.is-home .welcome-row { top: var(--top-h, calc(92 * var(--u))); }
.is-home .home-body {
    box-sizing: border-box; align-items: stretch; overflow: hidden; min-height: 320px;
    height: calc(100vh - var(--stack-h, calc(162 * var(--u))) - calc(86.8 * var(--u)));
    height: calc(100dvh - var(--stack-h, calc(162 * var(--u))) - calc(86.8 * var(--u)));
    padding-bottom: calc(6 * var(--u));
}
.is-home .provider-rail { position: static; align-self: stretch; height: 100%; max-height: none; overflow-y: auto; overscroll-behavior-y: auto; -webkit-overflow-scrolling: touch; }
.is-home .home-sections { position: relative; height: 100%; overflow-y: auto; overscroll-behavior-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.is-home .home-sections::-webkit-scrollbar { display: none; }
.is-home .home-sections > * { flex: none; }
.is-home .ticker, .is-home .ticker-main, .is-home .ticker-track-wrap, .is-home .ticker-track { touch-action: pan-y; }

/* floating icons: gentle attention animation (click behaviour and positions unchanged) */
@keyframes mine-bob { 0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); } 50% { transform: translateY(calc(-6 * var(--u))) rotate(2deg) scale(1.05); } }
.mine-trigger { animation: mine-spring 2.2s cubic-bezier(.34,1.56,.64,1) infinite; transform-origin: center 65%; will-change: transform; }
@keyframes mine-spring { 0%, 100% { transform: scale(1); } 38% { transform: scale(1.12); } 58% { transform: scale(.97); } 75% { transform: scale(1.025); } }
.mine-trigger .mine-widget-art { animation: none; }
@keyframes headset-pop { 0%, 100% { transform: scale(1); box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0,0,0,.35), 0 0 0 0 rgba(210, 26, 26, .55); } 50% { transform: scale(1.12); box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0,0,0,.35), 0 0 0 calc(7 * var(--u)) rgba(210, 26, 26, 0); } }
body .floating-headset { width: calc(44 * var(--u)); height: calc(44 * var(--u)); top: calc(73.4% - 22 * var(--u)); animation: headset-pop 2.2s ease-in-out infinite; will-change: transform; }
body .floating-headset svg { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }

body:not(.admin-panel) { -webkit-touch-callout: none; }
body:not(.admin-panel) :not(input):not(textarea):not([contenteditable="true"]) { -webkit-user-select: none; user-select: none; }
body input, body textarea, body [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
body img { -webkit-user-drag: none; user-drag: none; }

.footer-provider-cell img { display: block; width: min(100%, 62px); height: 30px; object-fit: contain; object-position: center; margin: auto; }
.ac-empty { box-sizing: border-box; width: 100%; min-height: 320px; padding: 80px 0 40px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; }
.ac-empty svg { display: block; width: 170px; max-width: 70%; height: 140px; flex: none; }
.ac-empty p { margin: 18px 0 0; color: #6F5550; font-size: 18px; line-height: 1.4; text-align: center; }

body:not(.admin-panel) a, body:not(.admin-panel) button, body:not(.admin-panel) summary,
body:not(.admin-panel) [role="button"], body:not(.admin-panel) [role="link"] { -webkit-tap-highlight-color: transparent; }
.drawer-event-disabled { cursor: default; -webkit-tap-highlight-color: transparent; }
.lv-water-ripple {
    position: fixed; z-index: 2147483000; width: 10px; height: 10px; pointer-events: none;
    border-radius: 50%; transform: translate(-50%, -50%) scale(.25);
    border: 1px solid rgba(166, 234, 255, .40);
    box-shadow: 0 0 3px rgba(106, 222, 255, .12);
    animation: lv-ripple .42s ease-out both;
}
.lv-water-ripple::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit;
    border: 1px solid rgba(206, 244, 255, .27);
    animation: lv-ripple-ring .42s ease-out both;
}
@keyframes lv-ripple { 0% { transform: translate(-50%, -50%) scale(.25); opacity: .6; } 70% { opacity: .27; } 100% { transform: translate(-50%, -50%) scale(4.2); opacity: 0; } }
@keyframes lv-ripple-ring { 0% { transform: scale(.25); opacity: .5; } 100% { transform: scale(1.17); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lv-water-ripple { display: none; } }
.forgot-modal .forgot-email-field, .forgot-modal .forgot-code-field, .forgot-modal .field-password { margin-bottom: 16px; }
.forgot-field-symbol { flex: none; font-size: 20px; color: #a48d82; padding-left: 13px; }
.forgot-modal .forgot-email-field input, .forgot-modal .forgot-code-field input { min-width: 0; }
.forgot-step.is-complete { background: #74170d; color: #fff; border-color: #cd6336; }
.forgot-info { color: #f7d296; margin: -4px 0 14px; font-size: 13px; line-height: 1.5; }
.forgot-restart-form { margin-top: 12px; text-align: center; }
.forgot-restart { color: #f6cd79; background: transparent; border: 0; font-size: 13px; cursor: pointer; padding: 8px; }

.forgot-modal { max-height: calc(100dvh - 30px); overflow-y: auto; }
/* Language-safe responsive layout */
html, body, .page-gutter { width: 100%; max-width: 100%; overflow-x: clip; }
.column, .page-main { width: 100%; min-width: 0; max-width: var(--column-w); }
.page-main { overflow-x: clip; }
.bottom-nav { max-width: 100vw; }
.bottom-nav-item { min-width: 0; }
.bottom-nav-item small { display: block; width: 100%; max-width: 100%; text-align: center; overflow: hidden; text-overflow: clip; font-size: clamp(10px, calc(12 * var(--u)), 14px); line-height: 1.2; }
html[lang="en"] .bottom-nav-item:not(.bottom-nav-centre) small { font-size: clamp(9px, calc(10.7 * var(--u)), 12.5px); letter-spacing: -.25px; }
html[lang="en"] .bottom-nav-centre small { font-size: clamp(12px, calc(15.5 * var(--u)), 18px); }
@media(max-width:370px) { html[lang="en"] .bottom-nav-item:not(.bottom-nav-centre) small { font-size: 10px; } }
.reference-tabs { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x; gap: 2px; }
.reference-tabs a { padding-inline: 13px; min-height: 48px; font-size: 14px; line-height: 1.25; color: #b6a09a; }
.reference-tabs a:focus-visible { outline: 2px solid #ffd34d; outline-offset: -2px; }
.reference-tabs a.is-active { color: #ff4444; }
.promotion-tabs { justify-content: flex-start; }
.promotion-tabs a { flex: 0 0 auto; }
.vip-tabs { justify-content: space-around; }
.vip-tabs a { flex: 1 1 0; min-width: 0; white-space: normal; text-align: center; }
@media(max-width:410px) { .reference-tabs a, .promotion-tabs a { font-size: 13px; padding-inline: 12px; } }
.pwa-guide { width: 100%; margin: 4px 0; padding: 9px 10px; background: #431209; border: 1px solid #bd7d34; border-radius: 7px; color: #f8dfbd; font-size: 12.5px; line-height: 1.5; }

.wallet-refresh-trigger { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: 1; cursor: pointer; }
.wallet-refresh-trigger svg { display: block; transform-origin: center; }
.wallet-refresh-trigger.is-spinning svg { animation: wallet-refresh-spin .65s ease-in-out 1; }
@keyframes wallet-refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wallet-refresh-trigger.is-spinning svg { animation-duration: .01ms; } }

.drawer-featured-art { position: relative; overflow: hidden; }
.game-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: inherit;
    opacity: 0;
    z-index: 2;
}
.game-cover.is-loaded { opacity: 1; filter: saturate(1.16) contrast(1.045); }
.game-cover-placeholder { object-fit: cover; object-position: center 30%; }
.game-card-plus, .game-card-hot { z-index: 3; }

a.carousel-slide { color: inherit; text-decoration: none; }

/* Visitor popup slider */
.visitor-popup-slides { position: relative; touch-action: pan-y; }
.visitor-popup-track { position: relative; display: block; }
.visitor-popup-track > .visitor-popup-image { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .45s ease; will-change: transform; }
.visitor-popup-arrow {
    position: absolute; top: 50%; z-index: 3; width: 34px; height: 34px; margin-top: -17px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
    background: rgba(20,4,3,.55); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(2px);
}
.visitor-popup-arrow.is-prev { left: 8px; }
.visitor-popup-arrow.is-next { right: 8px; }
.visitor-popup-arrow:active { background: rgba(120,6,8,.85); }

/* Homepage announcement switched off: keep only the search button */
.ticker.is-compact { justify-content: flex-end; }
.is-home .ticker.is-compact { margin-top: calc(8 * var(--u)); }

/* Website loading splash */
#siteSplash { position: fixed; inset: 0; z-index: 2147483000; background: #000; transition: opacity .45s ease; }
#siteSplash img { display: block; width: 100%; height: 100%; object-fit: cover; }
#siteSplash.is-hidden { opacity: 0; pointer-events: none; }

/* Administrator view and account restriction notice */
.impersonation-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 2147482000; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; background: #b4141c; color: #fff; font: 600 13px/1.3 system-ui, sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.impersonation-bar form { margin: 0; }
.impersonation-bar button { border: 1px solid rgba(255,255,255,.7); border-radius: 6px; background: #fff; color: #7a0a10; padding: 5px 12px; font: 700 12px system-ui, sans-serif; cursor: pointer; }
body.is-impersonating { padding-top: 46px; }
.restriction-popup { z-index: 2147481000; }
.restriction-popup .logout-confirm-card p { font-size: 17px; line-height: 1.6; }
