/* Hidden Casino — Premium Violet theme (Shuffle.com style) */

:root {
    --hidden-bg: #0f1115;
    --hidden-panel: #171a21;
    --hidden-elevated: #1f232e;
    --hidden-surface: #262c3a;
    --hidden-border: rgba(255, 255, 255, 0.05);
    --hidden-border-strong: rgba(124, 58, 237, 0.25);
    --hidden-accent: #8b5cf6; /* premium violet */
    --hidden-accent-bright: #a78bfa;
    --hidden-accent-dark: #6d28d9;
    --hidden-text: #f8fafc;
    --hidden-muted: #64748b;
    --hidden-danger: #ef4444;
    --hidden-radius: 8px;
    --hidden-radius-lg: 12px;
    --hidden-radius-sm: 6px;
    --hidden-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --hidden-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --hidden-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
    --hidden-shadow-glow: 0 4px 20px rgba(139, 92, 246, 0.35);
    --hidden-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --hidden-nav-h: 64px;
    --hidden-sidebar-w: 220px; /* expanded sidebar to show real text links like Shuffle! */
    --hidden-font-display: 'Outfit', sans-serif;
    --hidden-font-body: 'Source Sans 3', sans-serif;

    --color-main-bg: var(--hidden-bg);
    --color-inner: var(--hidden-panel);
    --color-nav-active: rgba(124, 58, 237, 0.12);
    --main-color: var(--hidden-accent);
    --main-color-dark: var(--hidden-accent-dark);
    --btn-color-bg: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --x3: var(--hidden-accent-bright);
    --x50: #10b981;
}

/* ── Base ── */
body.hidden-site {
    background: var(--hidden-bg);
    color: var(--hidden-text);
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--hidden-font-body);
    -webkit-font-smoothing: antialiased;
}

body.hidden-site * {
    font-family: inherit;
}

body.hidden-site h1,
body.hidden-site h2,
body.hidden-site h3,
body.hidden-site .brand-logo,
body.hidden-site .hidden-hero__title,
body.hidden-site .auth__modal_head {
    font-family: var(--hidden-font-display);
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--hidden-nav-h);
    padding: 0;
    display: flex;
    align-items: center;
    background: var(--hidden-panel);
    border-bottom: 1px solid var(--hidden-border);
    box-shadow: none;
    backdrop-filter: none;
}

.navbar__inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 16px;
    min-width: 0;
}

.logotype {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.brand-logo {
    font-family: var(--hidden-font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hidden-text);
    line-height: 1;
    white-space: nowrap;
}

.brand-accent {
    color: var(--hidden-accent);
    text-shadow: none;
}

.navmenu {
    margin-left: 24px;
    flex: 1;
    min-width: 0;
}

.navmenu__list {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.navmenu__item_link {
    font-family: var(--hidden-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--hidden-muted);
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.navmenu__item_link:hover,
.navmenu__item_link.active {
    color: var(--hidden-text);
    background: var(--color-nav-active);
}

.navmenu__item_link.active::after {
    display: none;
}

.auth__btn {
    margin-left: auto;
    flex-shrink: 0;
    font-family: var(--hidden-font-display);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--hidden-radius);
    padding: 10px 20px;
    background: var(--btn-color-bg);
    color: #fff;
    box-shadow: var(--hidden-shadow-glow);
    transform: none;
    cursor: pointer;
    transition: transform var(--hidden-transition), box-shadow var(--hidden-transition), filter var(--hidden-transition);
}

.auth__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45);
    filter: brightness(1.06);
}

.auth__btn:active {
    transform: translateY(0);
    box-shadow: var(--hidden-shadow-sm);
}

.user__wallet {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user__balance {
    background: var(--hidden-bg);
    border: 1px solid var(--hidden-border);
    border-bottom: 2px solid var(--hidden-accent);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.user__balance .currency {
    color: var(--hidden-accent-bright);
}

.wallet_up_btn {
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 16px;
    white-space: nowrap;
}

/* ── Left sidebar ── */
.fix__left_nav {
    width: var(--hidden-sidebar-w);
    background: var(--hidden-panel);
    border-right: 1px solid var(--hidden-border);
    backdrop-filter: none;
    z-index: 50;
}

.leftside__games {
    margin-top: var(--hidden-nav-h);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.leftside__game {
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.leftside__game a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    font-size: 20px;
    line-height: 1;
    color: var(--hidden-muted);
    box-sizing: border-box;
    transition: color 0.15s, background 0.15s;
}

.leftside__game a i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.leftside__game a:hover {
    color: var(--hidden-accent-bright);
    background: var(--color-nav-active);
    border-color: transparent;
}

.leftside__social {
    border-top-color: var(--hidden-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0 12px;
}

.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    margin-bottom: 0;
}

.social a:last-child {
    margin-bottom: 0;
}

/* ── Main layout ── */
.main__content {
    top: var(--hidden-nav-h);
    padding-left: calc(var(--hidden-sidebar-w) + 16px);
    padding-right: 20px;
    padding-bottom: 24px;
    z-index: 1;
    min-height: calc(100vh - var(--hidden-nav-h));
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ── Hero (homepage) ── */
.hidden-hero {
    max-width: 1280px;
    margin: 0 auto 32px;
    padding: 28px 0 4px;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.hidden-hero::before {
    display: none;
}

.hidden-hero__eyebrow {
    font-family: var(--hidden-font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hidden-accent);
    margin-bottom: 10px;
}

.hidden-hero__title {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--hidden-text);
    letter-spacing: -0.02em;
}

.hidden-hero__title span {
    color: var(--hidden-accent-bright);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.hidden-hero__sub {
    max-width: 520px;
    color: var(--hidden-muted);
    font-size: 15px;
    line-height: 1.6;
}

.hidden-hero__stats {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hidden-hero__stat {
    background: var(--hidden-elevated);
    border: 1px solid var(--hidden-border);
    border-radius: var(--hidden-radius);
    padding: 14px 20px;
    min-width: 100px;
}

.hidden-hero__stat strong {
    display: block;
    font-family: var(--hidden-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--hidden-accent-bright);
    line-height: 1.2;
}

.hidden-hero__stat span {
    display: block;
    font-size: 12px;
    color: var(--hidden-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Game cards ── */
.games__container {
    background: transparent;
    border-radius: 0;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.games__section-title {
    max-width: 1280px;
    margin: 0 auto 18px;
    padding: 0;
    font-family: var(--hidden-font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hidden-muted);
}

.games__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 0;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.games__item {
    display: block;
    width: 100%;
    text-decoration: none;
    animation: none;
    min-width: 0;
}

.games__card-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--hidden-radius-lg);
    overflow: hidden;
    background: var(--hidden-elevated);
    border: 1px solid var(--hidden-border);
    transition: border-color var(--hidden-transition), box-shadow var(--hidden-transition), transform var(--hidden-transition);
    box-shadow: var(--hidden-shadow-sm);
}

.games__item:hover .games__card-wrap {
    transform: translateY(-2px);
    border-color: var(--hidden-border-strong);
    box-shadow: var(--hidden-shadow-lg);
}

.games__card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 0 !important;
    border-radius: 0;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.games__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(9, 9, 11, 0.92) 100%);
    pointer-events: none;
}

.card_dice,
.card_mines,
.card_wheel,
.card_jackpot,
.card_crash,
.card_blackjack,
.card_keno,
.card_other {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.games__card-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 14px 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.games__card-name {
    font-family: var(--hidden-font-display);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.games__card-tag {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hidden-accent);
    margin-top: 3px;
}

.card_btn {
    position: static;
    transform: none;
    margin: 0;
    flex-shrink: 0;
}

.card__play {
    padding: 7px 14px;
    font-family: var(--hidden-font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: var(--hidden-radius-sm);
    backdrop-filter: blur(6px);
    color: var(--hidden-accent-bright);
    transition: background var(--hidden-transition), color var(--hidden-transition), border-color var(--hidden-transition), transform var(--hidden-transition), box-shadow var(--hidden-transition);
}

.games__item:hover .card__play {
    background: var(--hidden-accent);
    border-color: var(--hidden-accent);
    color: #fff;
    transform: scale(1.02);
    box-shadow: var(--hidden-shadow-glow);
}

.games__other .games__card-wrap {
    opacity: 0.45;
    pointer-events: none;
}

/* ── Footer ── */
.footer {
    max-width: 1280px;
    margin: 48px auto 16px;
    padding: 28px 0 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    border-top: 1px solid var(--hidden-border);
    width: 100%;
}

.footer__header {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hidden-border);
    flex-wrap: wrap;
}

.footer__logo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
}

.footer__logo .logo {
    justify-content: flex-start;
}

.footer__logo .logo-img {
    width: 36px;
    height: 36px;
}

.footer_security {
    font-size: 12px;
    color: var(--hidden-muted);
}

.footer__warn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 200px;
    max-width: 420px;
}

.warn_mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--hidden-danger);
    border-radius: 50%;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warn_text {
    font-size: 12px;
    line-height: 1.45;
    color: var(--hidden-muted);
    max-width: none;
}

.footer__bottom {
    display: flex;
    gap: 20px;
    margin-top: 14px;
    font-size: 13px;
}

.footer__bottom a {
    color: var(--hidden-muted);
    transition: color 0.15s;
}

.footer__bottom a:hover {
    color: var(--hidden-accent);
}

/* ── Auth modal ── */
.modal__window {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__window.active .modal__dialog {
    animation: authModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__dialog.modal__auth {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 16px;
    justify-content: center;
    min-height: auto;
    align-items: center;
}

.modal__auth .modal {
    width: 100%;
    max-width: 440px;
    background: var(--hidden-elevated) !important;
    border: 1px solid var(--hidden-border) !important;
    border-radius: var(--hidden-radius-lg) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6) !important;
}

.auth__modal_content_inner {
    width: 100%;
}

.auth__modal_head {
    font-family: var(--hidden-font-display) !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    border-bottom: 1px solid var(--hidden-border);
    margin-bottom: 12px;
    padding-bottom: 14px !important;
    text-align: center;
}

.auth__checkbox {
    width: 100%;
}

.auth__checkbox .checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

/* Custom checkbox styling — make checkboxes visible */
.auth__checkbox .checkbox input.custom-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid var(--hidden-muted);
    border-radius: 5px;
    background: var(--hidden-bg);
    cursor: pointer;
    position: relative;
    margin: 0;
    margin-top: 1px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.auth__checkbox .checkbox input.custom-checkbox:checked {
    background: var(--hidden-accent);
    border-color: var(--hidden-accent);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.auth__checkbox .checkbox input.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth__checkbox .checkbox input.custom-checkbox:hover {
    border-color: var(--hidden-accent-bright);
}

.auth__checkbox .checkbox label {
    cursor: pointer;
    user-select: none;
}

.auth__rules span,
.auth__multi span {
    text-align: left;
    justify-content: flex-start;
    font-size: 14px;
    color: var(--hidden-muted);
}

.auth__modal_desc {
    color: var(--hidden-muted);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

.other_auth_modal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
}

.other_auth_divider {
    color: var(--hidden-muted);
    margin: 0 4px;
    font-size: 13px;
}

.register_modal_auth,
.login_modal_auth {
    width: 100%;
    gap: 10px;
}

/* Auth back button */
.auth__back_btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--hidden-muted);
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: color 0.15s;
    background: none;
    border: none;
    padding: 0;
}

.auth__back_btn:hover {
    color: var(--hidden-text);
}

.auth__back_btn i {
    font-size: 16px;
}

/* Auth loading spinner */
.auth__spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(10, 10, 11, 0.3);
    border-top-color: #0a0a0b;
    border-radius: 50%;
    animation: authSpin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes authSpin {
    to { transform: rotate(360deg); }
}

.games__sidebar_wrapper_input {
    width: 100%;
    margin-bottom: 8px;
}

.games__sidebar_input {
    width: 100%;
    background: var(--hidden-bg) !important;
    border: 1px solid var(--hidden-border) !important;
    border-radius: 8px !important;
    color: var(--hidden-text) !important;
    height: 44px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.games__sidebar_input:focus {
    outline: none;
    border-color: var(--hidden-accent) !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.games__sidebar_input.input-error {
    border-color: var(--hidden-danger) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.sidebar__play,
.register_button,
.login_button {
    width: 100%;
    font-family: var(--hidden-font-display);
    font-weight: 600 !important;
    border-radius: 8px !important;
    background: var(--btn-color-bg) !important;
    border: none !important;
    color: #0a0a0b !important;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    position: relative;
}

.sidebar__play:hover,
.register_button:hover,
.login_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.sidebar__play:active,
.register_button:active,
.login_button:active {
    transform: translateY(0);
}

.sidebar__play:disabled,
.register_button:disabled,
.login_button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.other_method_auth {
    color: var(--hidden-accent-bright) !important;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s;
}

.other_method_auth:hover {
    color: #fff !important;
}

.colored-link {
    color: var(--hidden-accent-bright);
}

/* ── Profile & avatar assets ── */
.profile__avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    display: block;
    border: 2px solid var(--hidden-border-strong);
}

.crash__bet_user_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar__jackpot {
    width: 55px !important;
    height: 55px !important;
    object-fit: cover;
}

.jackpot__roll .inbox .jackpot__players img {
    width: 85px;
    height: 85px;
    object-fit: cover;
}

.profile__rank_icon,
.user__rank_icon,
.crash__bet_user_rank,
.avatar__jackpot_rank {
    object-fit: contain;
}

.method__img,
.modal__wallet_pay_method img,
.modal__wallet_withdraw_method img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ── Game pages & shared panels ── */
.games__area,
.bonus__container,
.profile__container,
.dice__container,
.mines__container,
.wheel__container,
.crash__container,
.jackpot__container,
.slots-page__container,
.pay__container {
    background: var(--hidden-panel) !important;
    border: 1px solid var(--hidden-border);
    border-radius: var(--hidden-radius-lg) !important;
    overflow: hidden;
}

.games__area {
    min-width: 0;
}

.games__field,
.dice__field {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.games__sidebar {
    background: var(--hidden-elevated) !important;
    border-radius: var(--hidden-radius-lg) !important;
    border: 1px solid var(--hidden-border);
    flex-shrink: 0;
}

.pay__container .modal__wallet {
    background: transparent !important;
    border: none;
    min-height: auto;
}

.profile__container .profile__wrapper {
    background: transparent !important;
}

.game__mines_coefs,
.game__wheel_coefs,
.game__crash_coefs {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.game__mines_coefs::-webkit-scrollbar,
.game__wheel_coefs::-webkit-scrollbar,
.game__crash_coefs::-webkit-scrollbar {
    display: none;
}

.crash-ship {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 3;
    display: none;
    transform: translate(-50%, -50%) rotate(45deg);
    filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.85)) drop-shadow(0 0 18px rgba(124, 58, 237, 0.45));
    transition: left 80ms linear, top 80ms linear;
}

.crash__block .crash {
    position: relative;
}

.game__field_mines,
.game__field_wheel,
.game__field_crash {
    min-width: 0;
    width: 100%;
}

.game__field_crash {
    max-width: 100%;
}

.crash__history,
.wheel__bet_history {
    overflow-x: hidden;
}

/* ── Mobile bottom nav ── */
.mobile_menu {
    background: var(--hidden-panel);
    border-top: 1px solid var(--hidden-border);
    backdrop-filter: none;
    height: 56px;
}

.mobile_menu__content {
    max-width: 480px;
    margin: 0 auto;
}

.mobile_menu__link {
    color: var(--hidden-muted);
    font-size: 10px;
    font-weight: 500;
}

.mobile_menu__link i {
    font-size: 20px;
    margin-bottom: 3px;
}

.mobile_menu__link:hover,
.mobile_menu__link.active {
    color: var(--hidden-accent);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .games__area {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .games__field,
    .dice__field {
        order: 1;
        width: 100%;
        min-height: 380px;
    }

    .games__field > .game__field_mines,
    .games__field > .game__dice_wrapper,
    .games__field > .game__field_crash,
    .games__field > .game__field_wheel,
    .games__field > .jackpot__field_wrapper,
    .games__field > .bj_table,
    .games__field > .keno_game_wrapper {
        padding-bottom: 48px;
    }

    .games__sidebar {
        order: 2;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: auto;
        padding: 20px;
    }
}

@media (max-width: 780px) {
    .navbar__inner {
        padding: 0 12px;
        gap: 10px;
    }

    .main__content {
        top: var(--hidden-nav-h);
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-bottom: 72px !important;
    }

    .hidden-hero {
        padding: 16px 0 4px;
        margin-bottom: 24px;
    }

    .hidden-hero__stats {
        gap: 8px;
    }

    .hidden-hero__stat {
        flex: 1 1 calc(33% - 8px);
        min-width: 0;
        padding: 12px 14px;
    }

    .games__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .games__card-name {
        font-size: 14px;
    }

    .games__card-tag {
        font-size: 10px;
    }

    .card__play {
        padding: 6px 10px;
        font-size: 10px;
    }

    .games__card-meta {
        padding: 10px 12px;
    }

    .footer {
        display: flex !important;
        margin-top: 32px;
        padding-top: 20px;
    }

    .footer__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__warn {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }

    .games__sidebar_help_bombs {
        flex-wrap: wrap;
        gap: 4px;
    }

    .games__sidebar_bombs_action {
        flex: 1 1 calc(20% - 4px);
        min-width: 0;
    }

    .games__area_field {
        padding: 16px;
    }

    .mines__field {
        width: 100%;
        max-width: 340px;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .mines__cell {
        height: 56px;
    }

    .dice__play_buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .dice__play {
        width: 100%;
    }

    .crash__bet {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }

    .crash__bet_values {
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    .crash__bet_win {
        width: auto;
        min-width: 80px;
    }

    .wheel__colors_history {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .wheel__history_color {
        margin-right: 0;
        min-width: 0;
    }

    .game__wheel {
        width: min(290px, 100%);
        height: min(290px, 100%);
    }

    .wheel__row {
        width: 100%;
        height: 100%;
    }

    .jackpot__field_wrapper {
        padding: 16px;
    }

    .players__jackpot {
        max-width: 100%;
    }

    .bonus__grid {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        gap: 16px;
    }

    .profile__wrapper {
        padding: 16px;
    }

    .profile__block_social,
    .profile__block_balance {
        flex: 1 1 100%;
    }

    .profile__user_rank {
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal__wallet {
        padding: 16px;
        border-radius: var(--hidden-radius-lg) !important;
    }

    .modal__wallet_body_paysys,
    .modal__wallet_body_pay {
        width: 100%;
    }
}

@media (max-width: 500px) {
    :root {
        --hidden-nav-h: 56px;
    }

    .navbar {
        height: var(--hidden-nav-h);
    }

    .logo-img {
        width: 34px;
        height: 34px;
    }

    .brand-logo {
        font-size: 17px;
    }

    .main__content {
        top: var(--hidden-nav-h);
    }

    .leftside__games {
        margin-top: var(--hidden-nav-h);
    }

    .user__balance {
        font-size: 13px;
        padding: 8px 10px;
    }

    .wallet_up_btn {
        font-size: 13px;
        padding: 8px 12px;
    }

    .hidden-hero__stat {
        flex: 1 1 100%;
    }

    .profile__avatar {
        width: 96px;
        height: 96px;
    }
}

/* ── Sidebar & Navigation Redesign (Shuffle.com style) ── */
.fix__left_nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 16px;
    height: 100vh;
    position: fixed;
    top: var(--hidden-nav-h);
    left: 0;
    box-sizing: border-box;
    overflow-y: auto;
}

.sidebar__section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar__title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hidden-muted);
    font-weight: 700;
    padding-left: 8px;
    margin-bottom: 4px;
}

.sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar__item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--hidden-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.sidebar__item a i {
    font-size: 20px;
    color: var(--hidden-muted);
    transition: color 0.15s;
}

.sidebar__item:hover a,
.sidebar__item.active a {
    color: var(--hidden-text);
    background: var(--color-nav-active);
}

.sidebar__item:hover a i,
.sidebar__item.active a i {
    color: var(--hidden-accent-bright);
}

/* Category Filter Tabs (Lobby layout) */
.category__tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto 24px auto;
    border-bottom: 1px solid var(--hidden-border);
    padding-bottom: 16px;
}

.category__tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--hidden-panel);
    border: 1px solid var(--hidden-border);
    color: var(--hidden-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.category__tab:hover,
.category__tab.active {
    background: var(--hidden-elevated);
    color: var(--hidden-text);
    border-color: var(--hidden-accent);
}

.category__tab i {
    font-size: 16px;
}

/* Banners grid */
.lobby__banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto 32px auto;
    width: 100%;
}

.lobby__banner {
    border-radius: var(--hidden-radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--hidden-panel);
    border: 1px solid var(--hidden-border);
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lobby__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lobby__banner:hover {
    transform: translateY(-2px);
    border-color: var(--hidden-border-strong);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

@media (max-width: 991px) {
    .lobby__banners {
        grid-template-columns: 1fr;
    }
    .fix__left_nav {
        display: none;
    }
    .main__content {
        padding-left: 20px;
    }
}

/* ══════════════════════════════════════════════════
   MINES PREMIUM UI — Shuffle.com inspired redesign
   ══════════════════════════════════════════════════ */

/* Grid layout — CSS Grid instead of flexbox */
.mines__field {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: auto !important;
    flex-wrap: unset !important;
}

/* Individual tile — glass-morphism + subtle glow */
.mines__cell {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: 76px !important;
    margin: 0 !important;
    background: linear-gradient(145deg, rgba(31, 35, 46, 0.9) 0%, rgba(23, 26, 33, 0.95) 100%) !important;
    border: 1px solid rgba(139, 92, 246, 0.08) !important;
    border-radius: 12px !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.25s,
                box-shadow 0.25s,
                background 0.3s;
    perspective: 600px;
}

/* Subtle inner glow overlay */
.mines__cell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 11px;
    background: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

/* Question mark icon for unplayed cells */
.mines__cell:not(.active):not([disabled])::after {
    content: '?';
    position: absolute;
    font-family: var(--hidden-font-display);
    font-size: 24px;
    font-weight: 700;
    color: rgba(139, 92, 246, 0.2);
    transition: color 0.2s, transform 0.2s;
    z-index: 1;
}

.mines__cell:not(.active):not([disabled]):hover::after {
    color: rgba(139, 92, 246, 0.5);
    transform: scale(1.1);
}

/* Disabled state (before game starts) */
.mines__cell[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(145deg, rgba(23, 26, 33, 0.7) 0%, rgba(15, 17, 21, 0.7) 100%) !important;
    border-color: rgba(255, 255, 255, 0.03) !important;
}

/* Hover state — lift + glow */
.mines__cell:not([disabled]):not(.active):hover {
    transform: translateY(-3px) scale(1.04);
    border-color: rgba(139, 92, 246, 0.3) !important;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15),
                0 0 0 1px rgba(139, 92, 246, 0.1);
}

.mines__cell:not([disabled]):not(.active):hover::before {
    opacity: 1;
}

/* Active/pressed state */
.mines__cell:not([disabled]):not(.active):active {
    transform: translateY(0) scale(0.97);
}

/* Gem revealed state */
.mines__cell.active.diamond-mine {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 78, 59, 0.2) 100%) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15),
                inset 0 0 20px rgba(16, 185, 129, 0.05);
    animation: gemReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.mines__cell.active.diamond-mine::before {
    background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
    opacity: 1;
}

/* Bomb revealed state */
.mines__cell.active.bomb-mine {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.15) 0%, rgba(127, 29, 29, 0.2) 100%) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15),
                inset 0 0 20px rgba(239, 68, 68, 0.05);
    animation: bombReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.mines__cell.active.bomb-mine::before {
    background: radial-gradient(circle at 50% 30%, rgba(239, 68, 68, 0.15) 0%, transparent 60%);
    opacity: 1;
}

/* The clicked bomb cell — extra emphasis */
.mines__cell.active.bomb-mine.bomb-hit {
    border-color: rgba(239, 68, 68, 0.7) !important;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.3),
                inset 0 0 30px rgba(239, 68, 68, 0.1);
}

/* Gem icon */
.mines__cell .cristal {
    margin: auto;
    height: 52px !important;
    width: 52px !important;
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.3));
    animation: gemBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    position: relative;
}

/* Bomb icon */
.mines__cell .bomb {
    margin: auto;
    width: 44px !important;
    height: 44px !important;
    filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.3));
    animation: bombBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    position: relative;
}

/* Styling for cells revealed on loss */
.mines__cell.revealed-loss {
    opacity: 0.35 !important;
    filter: grayscale(40%) !important;
}

/* ── Mines Animations ── */
@keyframes gemReveal {
    0% { transform: scale(0.8) rotateY(90deg); opacity: 0.5; }
    50% { transform: scale(1.08) rotateY(0deg); opacity: 1; }
    100% { transform: scale(1) rotateY(0deg); opacity: 1; }
}

@keyframes bombReveal {
    0% { transform: scale(0.8) rotateY(90deg); opacity: 0.5; }
    50% { transform: scale(1.08) rotateY(0deg); opacity: 1; }
    70% { transform: scale(0.96); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes gemBounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes bombBounce {
    0% { transform: scale(0) rotate(-15deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes cellShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Shockwave ripple on bomb hit */
@keyframes bombShockwave {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    100% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
}

.mines__cell.bomb-hit {
    animation: bombReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
               bombShockwave 0.8s ease-out !important;
}

/* ── Coefficient Strip Redesign ── */
.game__mines_coefs {
    background: var(--hidden-elevated) !important;
    border-bottom: 1px solid var(--hidden-border) !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    padding: 14px 20px !important;
    gap: 6px;
}

.mines_coef {
    border: 2px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    font-family: var(--hidden-font-display) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: var(--hidden-muted) !important;
    white-space: nowrap;
    transition: border-color 0.25s, color 0.25s, background 0.25s, box-shadow 0.25s;
    background: transparent;
}

.mines_coef.active {
    border-color: var(--hidden-accent) !important;
    color: #fff !important;
    background: rgba(139, 92, 246, 0.12) !important;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

.game__mines_coef_wrap {
    flex-shrink: 0;
}

/* ── Games Area Field — better padding ── */
.games__area_field {
    background: var(--hidden-bg) !important;
    padding: 20px 24px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 420px;
}

.games__field {
    padding: 16px 20px !important;
}

.games__area {
    gap: 0 !important;
}

/* ── Cash Out button enhanced ── */
.sidebar__take_win {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-family: var(--hidden-font-display);
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 20px;
    font-size: 15px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    animation: cashoutPulse 2s ease-in-out infinite;
}

.sidebar__take_win:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

@keyframes cashoutPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* ══════════════════════════════════════════════
   CORE MICRO-ANIMATIONS & POLISH
   ══════════════════════════════════════════════ */

/* Page load fade-in */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.mines__container,
.dice__container,
.wheel__container,
.crash__container,
.jackpot__container,
.keno__container,
.blackjack__container,
.slots-page__container {
    animation: fadeInUp 0.4s ease-out;
}

/* Balance pulse on update */
@keyframes balancePulse {
    0% { color: var(--hidden-text); }
    30% { color: #10b981; text-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
    100% { color: var(--hidden-text); text-shadow: none; }
}

.user__balance.balance-updating {
    animation: balancePulse 0.8s ease-out;
}

/* Game cards — enhanced hover */
.games__card {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s,
                border-color 0.25s !important;
}

.games__card:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(139, 92, 246, 0.15) !important;
}

/* Quick action buttons (bet +1, +10, etc.) */
.games__sidebar_bombs_action {
    transition: background 0.15s, color 0.15s, transform 0.1s !important;
}

.games__sidebar_bombs_action:hover {
    background: var(--hidden-accent) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.games__sidebar_bombs_action:active {
    transform: translateY(0) scale(0.97);
}

/* Sidebar labels */
.games__sidebar_label {
    font-family: var(--hidden-font-display) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hidden-muted) !important;
    margin-bottom: 8px;
}

/* Notification improvements */
.notifyjs-corner {
    z-index: 10000 !important;
}

/* Smooth scrollbar for game areas */
.games__area::-webkit-scrollbar {
    width: 4px;
}

.games__area::-webkit-scrollbar-track {
    background: transparent;
}

.games__area::-webkit-scrollbar-thumb {
    background: var(--hidden-surface);
    border-radius: 4px;
}

/* ── Mines Responsive Overrides ── */
@media (max-width: 780px) {
    .mines__field {
        max-width: 340px !important;
        gap: 6px !important;
    }

    .mines__cell {
        height: 58px !important;
        border-radius: 10px !important;
    }

    .mines__cell .cristal {
        height: 42px !important;
        width: 42px !important;
    }

    .mines__cell .bomb {
        width: 36px !important;
        height: 36px !important;
    }

    .mines_coef {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    .games__area_field {
        padding: 16px !important;
        min-height: 380px;
    }
}

@media (max-width: 500px) {
    .mines__field {
        max-width: 300px !important;
        gap: 5px !important;
    }

    .mines__cell {
        height: 50px !important;
        border-radius: 8px !important;
    }

    .mines__cell .cristal {
        height: 36px !important;
        width: 36px !important;
    }

    .mines__cell .bomb {
        width: 30px !important;
        height: 30px !important;
    }

    .mines__cell:not(.active):not([disabled])::after {
        font-size: 18px;
    }
}

/* ── Shuffle Sidebar Layout ── */
.sidebar__tabs { display: flex; gap: 8px; margin-bottom: 20px; background: #1e222a; padding: 4px; border-radius: 8px; }
.sidebar__tab { flex: 1; padding: 10px; text-align: center; font-weight: 600; font-size: 13px; color: var(--hidden-muted); background: transparent; border: none; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.sidebar__tab.active { background: #2f3542; color: #fff; }
.sidebar__tab:hover:not(.active) { color: #fff; }

.label_row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.crypto_amount { font-size: 12px; color: var(--hidden-muted); }

.input_with_actions { display: flex; background: #15181e; border: 1px solid var(--hidden-border); border-radius: 8px; padding: 4px; align-items: center; margin-bottom: 16px; }
.input_prefix { display: flex; align-items: center; flex: 1; padding-left: 10px; }
.currency_icon { color: var(--hidden-danger); font-weight: 700; font-size: 14px; margin-right: 6px; }
.input_prefix input { background: transparent; border: none; color: #fff; font-weight: 600; font-size: 14px; width: 100%; outline: none; }
.input_actions { display: flex; gap: 4px; }
.action_btn { background: #232833; border: none; color: var(--hidden-muted); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 4px; cursor: pointer; transition: 0.2s; }
.action_btn:hover { background: #2f3542; color: #fff; }

.mines_gems_inputs { display: flex; gap: 12px; margin-bottom: 16px; }
.input_group { flex: 1; display: flex; flex-direction: column; }
.select_wrapper { position: relative; }
.select_wrapper i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--hidden-muted); pointer-events: none; }
.games__sidebar_input { background: #15181e; border: 1px solid var(--hidden-border); border-radius: 8px; padding: 12px; color: #fff; font-weight: 600; font-size: 14px; outline: none; width: 100%; -webkit-appearance: none; appearance: none; }
.games__sidebar_input:focus { border-color: var(--hidden-accent); }

.sidebar__pick_random { width: 100%; background: transparent; border: 1px solid #fff; border-radius: 8px; color: #fff; font-weight: 600; font-size: 14px; padding: 14px; margin-bottom: 16px; cursor: pointer; transition: 0.2s; }
.sidebar__pick_random:hover { background: rgba(255,255,255,0.05); }

/* Primary bet styling moved to game-bet-panel.css (Stake green) */

.shuffle_cashout { background: #10b981 !important; width: 100%; padding: 12px !important; border-radius: 8px !important; display: flex !important; align-items: center; justify-content: space-between; margin-bottom: 20px; color: #fff !important; border: none !important; box-shadow: none !important; transform: none !important; }
.shuffle_cashout:hover { filter: brightness(1.1); }
.cashout_text { font-weight: 700; font-size: 14px; text-transform: uppercase; }
.cashout_amount { font-weight: 700; font-size: 16px; }

.profit_summary { background: #1e222a; border-radius: 8px; padding: 16px; }
.profit_row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.profit_row:last-child { margin-bottom: 0; }
.profit_row.highlight .profit_fiat { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.profit_row.highlight .profit_fiat .currency { color: var(--hidden-danger); }
.profit_row.highlight .profit_multiplier { color: #10b981; font-weight: 700; font-size: 14px; }
.profit_label { font-size: 12px; color: #fff; font-weight: 500; }
.profit_value_crypto { font-size: 12px; color: var(--hidden-muted); }
.profit_divider { text-align: center; margin: 12px 0; position: relative; }
.profit_divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--hidden-border); z-index: 1; }
.divider_icon { position: relative; display: inline-block; background: #1e222a; padding: 0 8px; z-index: 2; color: var(--hidden-muted); }

/* Cashout Overlay */
.cashout_overlay { position: absolute; top: 55%; left: 50%; transform: translate(-50%, -50%); opacity: 0; background: #10b981; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; padding: 0; overflow: hidden; box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4); min-width: 200px; border: 2px solid #059669; pointer-events: none; }
.cashout_overlay_mult { font-size: 32px; font-weight: 800; color: #0a0a0b; padding: 16px 32px; width: 100%; text-align: center; }
.cashout_overlay_bottom { background: #171a21; width: 100%; display: flex; justify-content: center; align-items: center; padding: 12px 20px; gap: 16px; }
.cashout_overlay_fiat { font-size: 16px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 4px; }
.cashout_overlay_fiat .currency { color: var(--hidden-danger); }
.cashout_overlay_gems { font-size: 16px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 6px; }
.tiny_gem { width: 18px; height: 18px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }

/* ── Shuffle Header Nav ── */
.shuffle_wallet_group { display: flex; align-items: center; gap: 12px; position: relative; margin-left: auto; }
.wallet_pill { display: flex; align-items: center; background: var(--hidden-panel); border: 1px solid var(--hidden-border); border-radius: 20px; padding: 4px 12px 4px 4px; cursor: pointer; transition: 0.2s; position: relative; }
.wallet_pill:hover { background: var(--hidden-surface); }
.wallet_currency_icon { width: 28px; height: 28px; background: #2f3542; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 8px; font-size: 14px; }
.wallet_balance { color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.wallet_balance i { color: var(--hidden-muted); }
.shuffle_wallet_btn { background: var(--btn-color-bg) !important; border: none !important; border-radius: 20px !important; padding: 8px 16px !important; color: #fff !important; font-weight: 600 !important; font-size: 14px !important; display: flex !important; align-items: center; gap: 6px; transition: filter 0.2s; }
.shuffle_wallet_btn i { font-size: 16px; }
.shuffle_wallet_btn:hover { filter: brightness(1.1); }
.header_actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.action_icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: var(--hidden-muted); font-size: 20px; border-radius: 50%; cursor: pointer; transition: 0.2s; }
.action_icon:hover { background: var(--hidden-panel); color: #fff; }
.profile_dropdown_wrapper { position: relative; }

/* Header Dropdowns */
.header_dropdown { position: absolute; top: calc(100% + 12px); right: 0; background: var(--hidden-panel); border: 1px solid var(--hidden-border); border-radius: 12px; width: 280px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); z-index: 200; padding: 8px; }
.dropdown_search { display: flex; align-items: center; background: #15181e; border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
.dropdown_search i { color: var(--hidden-muted); margin-right: 8px; }
.dropdown_search input { background: transparent; border: none; color: #fff; font-size: 13px; width: 100%; outline: none; }
.dropdown_item { display: flex; align-items: center; padding: 10px 12px; border-radius: 8px; cursor: pointer; gap: 10px; font-size: 14px; font-weight: 600; color: var(--hidden-muted); transition: 0.2s; }
.dropdown_item:hover { background: #2f3542; color: #fff; }
.dropdown_item.active { background: #2f3542; color: #fff; }
.dropdown_bal { margin-left: auto; }
.dropdown_footer { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-top: 1px solid var(--hidden-border); margin-top: 8px; font-size: 13px; color: var(--hidden-muted); font-weight: 600; }
.toggle_switch { width: 32px; height: 18px; background: #2f3542; border-radius: 10px; position: relative; cursor: pointer; }
.toggle_switch::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; background: var(--hidden-muted); border-radius: 50%; transition: 0.2s; }
.toggle_switch.active { background: #10b981; }
.toggle_switch.active::after { left: 16px; background: #fff; }

/* Profile Dropdown */
.profile_dropdown { width: 320px; }
.profile_head { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--hidden-border); margin-bottom: 8px; }
.profile_avatar { width: 40px; height: 40px; background: #2f3542; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
.profile_name { font-weight: 700; font-size: 15px; color: #fff; }
.profile_level { background: #15181e; border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.level_badge { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.level_progress { background: #2f3542; height: 6px; border-radius: 3px; margin-bottom: 8px; overflow: hidden; }
.level_bar { background: #a78bfa; height: 100%; border-radius: 3px; }
.level_stats { display: flex; justify-content: space-between; font-size: 12px; color: var(--hidden-muted); font-weight: 600; }
.next_level { color: #fff; }
.profile_menu { display: flex; flex-direction: column; gap: 4px; }
.profile_menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--hidden-muted); font-weight: 600; font-size: 14px; border-radius: 8px; transition: 0.2s; }
.profile_menu a i { font-size: 18px; }
.profile_menu a:hover { background: #2f3542; color: #fff; }
.logout_link { color: #ef4444 !important; }
.logout_link:hover { background: rgba(239,68,68,0.1) !important; color: #ef4444 !important; }

/* ── Dice Game Overhaul (Shuffle.com style) ── */
.dice__container {
    width: 100%;
    margin: 0 auto;
}

.dice_history_strip {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 24px;
    height: 32px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 4px;
}
.dice_history_strip::-webkit-scrollbar {
    display: none;
}

.dice_history_badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #171a21;
    border: 1px solid var(--hidden-border);
    transition: transform 0.15s;
    flex-shrink: 0;
}
.dice_history_badge.win {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}
.dice_history_badge.lose {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.game__dice_wrapper {
    padding: 64px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 360px;
}

/* Slider Track & Range */
.dice_slider_wrapper {
    position: relative;
    width: 100%;
    margin: 40px 0;
    padding: 0 10px;
}

.dice_slider_container {
    position: relative;
    height: 16px;
    border-radius: 8px;
    background: #0f1115;
    border: 1px solid var(--hidden-border);
    width: 100%;
}

.dice_slider_track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 8px;
    pointer-events: none;
    background: linear-gradient(to right, #ef4444 50%, #10b981 50%); /* dynamic background updated by JS */
}

/* Floating Result Badge */
.dice_slider_result_badge {
    position: absolute;
    bottom: 100%;
    margin-bottom: 16px;
    transform: translateX(-50%);
    background: #171a21;
    border: 2px solid var(--hidden-border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    pointer-events: none;
    z-index: 5;
    transition: left 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: none;
}
.dice_slider_result_badge::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #171a21 transparent transparent transparent;
}
.dice_slider_result_badge.win {
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
.dice_slider_result_badge.lose {
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

/* Standard HTML range styled to overlay exactly on top */
.dice_range_input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 16px;
    opacity: 0;
    cursor: pointer;
    z-index: 4;
}

/* Custom visual handle that matches the range slider value */
.dice_slider_handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 36px;
    background: #8b5cf6;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    pointer-events: none;
    z-index: 3;
    transition: left 0.05s ease-out;
}

/* Slider Marks */
.dice_slider_marks {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 10px;
}
.dice_slider_mark {
    font-size: 14px;
    font-weight: 700;
    color: var(--hidden-muted);
}

/* Bottom Stats Row */
.dice_stats_row {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.dice_stat_col {
    flex: 1;
    background: #171a21;
    border: 1px solid var(--hidden-border);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

.dice_stat_col label {
    font-size: 11px;
    font-weight: 700;
    color: var(--hidden-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
    white-space: nowrap;
}

.dice_stat_input_wrapper {
    display: flex;
    align-items: center;
    position: relative;
    gap: 10px;
}

.dice_stat_input_wrapper input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    outline: none;
    padding: 0;
}

.dice_stat_icon {
    font-size: 18px;
    color: var(--hidden-muted);
    cursor: pointer;
    transition: color 0.15s;
    user-select: none;
}
.dice_stat_icon:hover {
    color: #fff;
}
.dice_stat_suffix {
    font-size: 14px;
    font-weight: 700;
    color: var(--hidden-muted);
    user-select: none;
}
.dice_active_badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #10b981;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: none;
}

/* ══════════════════════════════════════════════
   ENHANCED DICE / WHEEL / MINES ANIMATIONS
   ══════════════════════════════════════════════ */

@keyframes diceRollShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

@keyframes diceBadgePop {
    0% { transform: translate(-50%, -120%) scale(0.6); opacity: 0; }
    60% { transform: translate(-50%, -120%) scale(1.12); opacity: 1; }
    100% { transform: translate(-50%, -120%) scale(1); opacity: 1; }
}

@keyframes diceHandlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
}

.dice_rolling .dice_slider_track {
    animation: diceRollShake 0.35s ease-in-out;
}

.dice_handle_pulse {
    animation: diceHandlePulse 0.6s ease-out infinite;
    transition: left 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.dice_badge_pop {
    animation: diceBadgePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dice_history_badge {
    animation: fadeInUp 0.35s ease-out;
}

@keyframes wheelTimerPulse {
    0%, 100% { transform: scale(1); text-shadow: 0 0 12px rgba(139, 92, 246, 0.4); }
    50% { transform: scale(1.08); text-shadow: 0 0 24px rgba(139, 92, 246, 0.7); }
}

@keyframes wheelSpinGlow {
    0% { filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.2)); }
    50% { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.55)); }
    100% { filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.2)); }
}

#wheelTime {
    animation: wheelTimerPulse 1s ease-in-out infinite;
}

.wheel__row.spinning,
#wheelSpin.spinning {
    animation: wheelSpinGlow 0.8s ease-in-out infinite;
}

.wheel__pointer {
    transition: transform 0.15s ease;
}

.wheel__row.spinning ~ .wheel__pointer,
.game__wheel:has(.spinning) .wheel__pointer {
    transform: scale(1.05);
}

@keyframes mineTileFlip {
    0% { transform: rotateY(90deg) scale(0.85); opacity: 0.3; }
    100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

.mines__cell.active.diamond-mine,
.mines__cell.active.bomb-mine {
    animation: mineTileFlip 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.mines__cell .cristal,
.mines__cell .bomb,
.tiny_gem {
    object-fit: contain;
}

/* ══════════════════════════════════════════════
   DIGITAL BLACKJACK
   ══════════════════════════════════════════════ */

.blackjack__container {
    animation: fadeInUp 0.4s ease-out;
}

.bj_table {
    width: 100%;
    max-width: 720px;
    min-height: 420px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 20px;
    background: radial-gradient(ellipse at 50% 30%, #14532d 0%, #052e16 55%, #022c22 100%);
    border: 2px solid rgba(16, 185, 129, 0.25);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35), 0 12px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.bj_shoe {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.bj_shoe_stack {
    position: relative;
    width: 52px;
    height: 72px;
    border-radius: 8px;
    background: linear-gradient(145deg, #312e81 0%, #1e1b4b 55%, #0f172a 100%);
    border: 1px solid rgba(99, 102, 241, 0.45);
    box-shadow:
        0 2px 0 #4338ca,
        0 4px 0 #3730a3,
        0 6px 0 #312e81,
        0 10px 24px rgba(0, 0, 0, 0.45);
    animation: bjShoePulse 3s ease-in-out infinite;
}

.bj_shoe_stack::after {
    content: '';
    position: absolute;
    inset: 8px 6px auto;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
}

.bj_shoe_label {
    margin-top: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
}

@keyframes bjShoePulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.bj_table_center {
    text-align: center;
}

.bj_table_logo {
    font-family: var(--hidden-font-display);
    font-size: 42px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
    letter-spacing: 4px;
}

.bj_hand_label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bj_cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 110px;
}

.bj_card {
    width: 72px;
    height: 100px;
    border-radius: 10px;
    background: linear-gradient(145deg, #fff 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--hidden-font-display);
    font-weight: 800;
    color: #0f172a;
    position: relative;
}

.bj_card--deal {
    animation: bjCardDeal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.bj_card--pull {
    animation: bjCardPull 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--deal-delay, 0ms);
    transform-origin: center bottom;
    z-index: 3;
}

.bj_card--flip {
    animation: bjCardFlip 0.48s ease-in-out both;
    transform-style: preserve-3d;
}

@keyframes bjCardDeal {
    from { transform: translateY(-30px) rotate(-8deg) scale(0.7); opacity: 0; }
    to { transform: translateY(0) rotate(0) scale(1); opacity: 1; }
}

@keyframes bjCardPull {
    0% {
        transform: translate(72px, 56px) rotate(14deg) scale(0.42);
        opacity: 0;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    35% {
        opacity: 1;
    }
    70% {
        transform: translate(6px, -18px) rotate(-3deg) scale(1.04);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
    }
    100% {
        transform: translate(0, 0) rotate(0) scale(1);
        opacity: 1;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }
}

@keyframes bjCardFlip {
    0% { transform: perspective(600px) rotateY(0deg) scale(1); }
    45% { transform: perspective(600px) rotateY(90deg) scale(0.92); }
    55% { transform: perspective(600px) rotateY(90deg) scale(0.92); }
    100% { transform: perspective(600px) rotateY(0deg) scale(1); }
}

.bj_card--red { color: #dc2626; }
.bj_card--hidden {
    background: linear-gradient(145deg, #312e81 0%, #1e1b4b 100%);
    color: #a5b4fc;
    border-color: #4338ca;
}

.bj_card_rank { font-size: 22px; line-height: 1; }
.bj_card_suit { font-size: 20px; line-height: 1; margin-top: 4px; }

.bj_action_row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.bj_action_btn {
    padding: 12px 8px;
    border-radius: 8px;
    border: 1px solid var(--hidden-border);
    background: var(--hidden-elevated);
    color: var(--hidden-text);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.bj_action_btn:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-1px);
}

.bj_action_btn:disabled { opacity: 0.4; cursor: not-allowed; }

.bj_result_banner {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-family: var(--hidden-font-display);
    animation: fadeInUp 0.35s ease-out;
}

.bj_result_banner.win { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35); }
.bj_result_banner.lose { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.bj_result_banner.push { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }

.bj_book_hint {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: var(--hidden-radius-md);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.bj_book_hint__label {
    color: var(--hidden-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.bj_book_hint__move {
    color: #c4b5fd;
    font-weight: 700;
}

.bj_insurance_bar {
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--hidden-radius-md);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bj_insurance_bar__text {
    font-size: 13px;
    color: var(--hidden-text);
    line-height: 1.4;
}

.bj_insurance_bar__text strong {
    color: #fcd34d;
}

.bj_insurance_bar__actions {
    display: flex;
    gap: 8px;
}

.bj_player_hands {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    width: 100%;
}

.bj_split_hand {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    min-width: 140px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bj_split_hand--active {
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2), 0 8px 24px rgba(139, 92, 246, 0.12);
}

.bj_split_hand--finished {
    opacity: 0.72;
}

.bj_split_hand__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hidden-text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.bj_split_hand__value {
    color: #c4b5fd;
    margin-left: 4px;
}

.ha-fair-field__row--seed {
    flex-wrap: wrap;
    gap: 6px;
}

.ha-fair-field__row--seed .ha-fair-client-input {
    flex: 1 1 100%;
    min-width: 0;
}

/* ══════════════════════════════════════════════
   DEPOSIT ACKNOWLEDGEMENT TOASTS (left side)
   ══════════════════════════════════════════════ */

#haDepositNotifyStack {
    position: fixed;
    left: 16px;
    top: calc(var(--hidden-nav-h, 64px) + 12px);
    z-index: 99990;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: min(260px, calc(100vw - 32px));
}

.ha-deposit-toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 27, 75, 0.94) 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow: hidden;
    transform: translateX(-120%) scale(0.92);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.ha-deposit-toast--visible {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.ha-deposit-toast--leaving {
    transform: translateX(-110%) scale(0.9);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.4s ease;
}

.ha-deposit-toast__glow {
    position: absolute;
    inset: -40% auto auto -20%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
    pointer-events: none;
    animation: haDepositGlow 2.4s ease-in-out infinite;
}

@keyframes haDepositGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.ha-deposit-toast__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
    font-size: 16px;
    animation: haDepositIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes haDepositIconPop {
    from { transform: scale(0.4) rotate(-20deg); opacity: 0; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}

.ha-deposit-toast__body {
    flex: 1;
    min-width: 0;
}

.ha-deposit-toast__title {
    font-family: var(--hidden-font-display);
    font-size: 11px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 2px;
}

.ha-deposit-toast__msg {
    font-size: 10px;
    line-height: 1.35;
    color: rgba(203, 213, 225, 0.85);
    margin-bottom: 4px;
}

.ha-deposit-toast__amount {
    font-family: var(--hidden-font-display);
    font-size: 12px;
    font-weight: 800;
    color: #c4b5fd;
    letter-spacing: 0.01em;
}

.ha-deposit-toast__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    transform-origin: left center;
    animation: haDepositProgress 4.8s linear forwards;
}

@keyframes haDepositProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Profile dropdown level + vault */
.level_xp { font-size: 10px; color: var(--hidden-muted); margin-top: 6px; }
.profile_level_rewards { max-height: 140px; overflow-y: auto; margin: 10px 0; padding-right: 4px; }
.ha-level-reward { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 11px; margin-bottom: 4px; background: rgba(255,255,255,0.03); border: 1px solid var(--hidden-border); }
.ha-level-reward--claimable { border-color: rgba(139,92,246,0.35); }
.ha-level-reward--claimed { opacity: 0.55; }
.ha-level-reward__name { flex: 1; color: #e2e8f0; }
.ha-level-reward__amt { color: #c4b5fd; font-weight: 700; }
.ha-level-reward__btn { background: var(--hidden-accent); color: #fff; border: none; border-radius: 5px; padding: 4px 8px; font-size: 10px; font-weight: 700; cursor: pointer; }
.ha-level-reward__tag { font-size: 10px; color: var(--hidden-muted); }

/* Vault modal */
.ha-vault-modal { position: fixed; inset: 0; z-index: 100000; display: none; }
.ha-vault-modal--open { display: block; }
.ha-vault-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.ha-vault-modal__panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(380px, calc(100vw - 32px)); background: var(--hidden-panel); border: 1px solid var(--hidden-border-strong); border-radius: 14px; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
.ha-vault-modal__close { position: absolute; top: 12px; right: 12px; background: transparent; border: none; color: var(--hidden-muted); font-size: 22px; cursor: pointer; }
.ha-vault-modal__title { font-family: var(--hidden-font-display); font-size: 20px; margin: 0 0 6px; }
.ha-vault-modal__desc { font-size: 13px; color: var(--hidden-muted); margin: 0 0 16px; }
.ha-vault-modal__balance { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--hidden-bg); border-radius: 8px; margin-bottom: 14px; font-size: 13px; }
.ha-vault-modal__balance strong { font-size: 18px; color: #c4b5fd; }
.ha-vault-modal__input { display: flex; align-items: center; gap: 8px; background: var(--hidden-bg); border: 1px solid var(--hidden-border); border-radius: 8px; padding: 8px 10px; margin-bottom: 14px; }
.ha-vault-modal__input input { flex: 1; background: transparent; border: none; color: #fff; font-weight: 700; outline: none; }
.ha-vault-modal__input button { background: var(--hidden-elevated); border: 1px solid var(--hidden-border); color: #fff; border-radius: 6px; padding: 6px 10px; font-size: 11px; cursor: pointer; }
.ha-vault-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ha-vault-btn { padding: 12px; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; }
.ha-vault-btn--deposit { background: linear-gradient(180deg, var(--hidden-accent-bright), var(--hidden-accent)); color: #fff; }
.ha-vault-btn--withdraw { background: var(--hidden-elevated); color: #fff; border: 1px solid var(--hidden-border); }

/* Profile page */
.ha-profile-page { padding: 24px !important; }
.ha-profile__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.ha-profile__title { font-family: var(--hidden-font-display); font-size: 28px; margin: 0; }
.ha-profile__subtitle { color: var(--hidden-muted); margin: 6px 0 0; font-size: 14px; }
.ha-profile__logout { color: #fca5a5; text-decoration: none; font-weight: 600; font-size: 13px; }
.ha-profile__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ha-profile__card { background: var(--hidden-elevated); border: 1px solid var(--hidden-border); border-radius: 12px; padding: 16px; }
.ha-profile__card--wide { grid-column: 1 / -1; }
.ha-profile__card-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hidden-muted); font-weight: 700; margin-bottom: 8px; }
.ha-profile__balance { font-family: var(--hidden-font-display); font-size: 26px; font-weight: 800; color: #c4b5fd; }
.ha-profile__balance--muted { color: #94a3b8; font-size: 22px; }
.ha-profile__hint { font-size: 12px; color: var(--hidden-muted); margin: 8px 0 0; }
.ha-profile__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ha-profile__btn { padding: 8px 14px; border-radius: 8px; background: var(--hidden-accent); color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; border: none; cursor: pointer; }
.ha-profile__btn--ghost { background: transparent; border: 1px solid var(--hidden-border); color: #e2e8f0; }
.ha-profile__user-row { display: flex; gap: 14px; align-items: center; }
.ha-profile__username { font-size: 18px; font-weight: 700; }
.ha-profile__binds { display: flex; gap: 8px; margin-top: 12px; }
.ha-profile__bind { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--hidden-bg); color: var(--hidden-muted); border: 1px solid var(--hidden-border); }
.ha-profile__bind.is-linked { color: #c4b5fd; border-color: rgba(139,92,246,0.35); }
.ha-profile__card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ha-profile__xp-tag { font-size: 12px; color: #c4b5fd; font-weight: 700; }
.ha-profile__level-meta { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.ha-profile__level-bar { height: 8px; background: var(--hidden-bg); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.ha-profile__level-bar div { height: 100%; background: linear-gradient(90deg, var(--hidden-accent-dark), var(--hidden-accent-bright)); border-radius: 99px; }
.ha-profile__stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ha-profile__stat { background: var(--hidden-elevated); border: 1px solid var(--hidden-border); border-radius: 10px; padding: 14px; }
.ha-profile__stat span { display: block; font-size: 11px; color: var(--hidden-muted); margin-bottom: 6px; }
.ha-profile__stat strong { font-size: 18px; color: #f8fafc; }

/* Referrals + Bonus pages */
.ha-referrals-page, .ha-bonus-page { padding: 24px !important; }
.ha-referrals__title, .ha-bonus__title { font-family: var(--hidden-font-display); font-size: 28px; margin: 0 0 6px; }
.ha-referrals__subtitle, .ha-bonus__subtitle { color: var(--hidden-muted); margin: 0 0 20px; }
.ha-referrals__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.ha-referrals__stat, .ha-bonus__card { background: var(--hidden-elevated); border: 1px solid var(--hidden-border); border-radius: 12px; padding: 16px; }
.ha-referrals__stat-value { font-size: 24px; font-weight: 800; color: #c4b5fd; }
.ha-referrals__stat-label { font-size: 12px; color: var(--hidden-muted); margin-top: 4px; }
.ha-referrals__card { background: var(--hidden-elevated); border: 1px solid var(--hidden-border); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.ha-referrals__link-row { display: flex; gap: 10px; margin-top: 12px; }
.ha-referrals__input, .ha-bonus__input { flex: 1; background: var(--hidden-bg); border: 1px solid var(--hidden-border); border-radius: 8px; padding: 12px; color: #fff; }
.ha-referrals__copy, .ha-bonus__btn { background: var(--hidden-accent); color: #fff; border: none; border-radius: 8px; padding: 12px 16px; font-weight: 700; cursor: pointer; }
.ha-referrals__tips { display: grid; gap: 8px; }
.ha-referrals__tip { font-size: 13px; color: var(--hidden-muted); display: flex; gap: 8px; align-items: center; }
.ha-bonus__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ha-bonus__card--wide { grid-column: 1 / -1; }
.ha-bonus__card-icon { font-size: 22px; color: #c4b5fd; margin-bottom: 10px; }
.ha-bonus__text { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.ha-bonus__multiplier { background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.25); border-radius: 8px; padding: 10px 12px; font-size: 12px; font-weight: 700; color: #c4b5fd; }
.ha-bonus__promo-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 12px; }
.ha-bonus__btn--ghost { background: transparent; border: 1px solid var(--hidden-border); }

@media (max-width: 900px) {
    .ha-profile__grid, .ha-bonus__grid { grid-template-columns: 1fr; }
    .ha-profile__stats, .ha-referrals__stats { grid-template-columns: 1fr 1fr; }
}

/* ── Provably Fair badge + modal ── */
/* Keep sidebar + game field side-by-side; PF bar is anchored inside the field */
@media (min-width: 992px) {
    .games__area {
        flex-wrap: nowrap !important;
        align-items: stretch;
    }
}

.games__field {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 0;
}

.games__field > .game__field_mines,
.games__field > .game__dice_wrapper,
.games__field > .game__field_crash,
.games__field > .game__field_wheel,
.games__field > .jackpot__field_wrapper,
.games__field > .bj_table,
.games__field > .keno_game_wrapper {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding-bottom: 52px;
    box-sizing: border-box;
}

.games__field > .ha-provably-fair {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    flex: none;
    width: 100%;
    margin-top: 0;
    padding: 10px 12px 12px;
    box-sizing: border-box;
}

.ha-provably-fair {
    display: flex;
    justify-content: center;
    padding: 10px 16px 12px;
    border-top: 1px solid rgba(139, 92, 246, 0.12);
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.04) 100%);
}

.ha-provably-fair__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    max-width: 100%;
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.08);
    color: #c4b5fd;
    font-family: var(--hidden-font-display);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ha-provably-fair__trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.14);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.18);
    color: #e9d5ff;
}

.ha-provably-fair__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.ha-provably-fair__chevron {
    font-size: 16px;
    opacity: 0.6;
}

.ha-fair-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s, visibility 0.25s;
}

.ha-fair-modal--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ha-fair-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 14, 0.78);
    backdrop-filter: blur(6px);
}

.ha-fair-modal__panel {
    position: relative;
    width: min(560px, 100%);
    max-height: min(82vh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, #1a1d26 0%, #12151c 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(139, 92, 246, 0.08);
}

.ha-fair-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}

.ha-fair-modal__title {
    margin: 0;
    font-family: var(--hidden-font-display);
    font-size: 17px;
    font-weight: 700;
    color: #f8fafc;
}

.ha-fair-modal__close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ha-fair-modal__close:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #e9d5ff;
}

.ha-fair-modal__body {
    padding: 18px 20px 22px;
    overflow-y: auto;
}

.ha-fair-desc, .ha-fair-algo p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--hidden-muted);
    margin: 0 0 14px;
}

.ha-fair-algo {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.14);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.ha-fair-algo strong {
    display: block;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c4b5fd;
    margin-bottom: 6px;
}

.ha-fair-section__title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a78bfa;
    margin: 16px 0 10px;
}

.ha-fair-field {
    margin-bottom: 12px;
}

.ha-fair-field__label {
    font-size: 11px;
    color: var(--hidden-muted);
    margin-bottom: 6px;
}

.ha-fair-field__row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.ha-fair-field__value {
    flex: 1;
    display: block;
    padding: 10px 12px;
    background: #0f1218;
    border: 1px solid var(--hidden-border);
    border-radius: 8px;
    font-size: 11px;
    color: #e2e8f0;
    word-break: break-all;
    line-height: 1.45;
}

.ha-fair-field__value--sm {
    font-size: 10px;
    margin-top: 6px;
}

.ha-fair-field__copy, .ha-fair-verify-btn {
    flex-shrink: 0;
    padding: 0 14px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.ha-fair-field__copy:hover, .ha-fair-verify-btn:hover {
    background: rgba(139, 92, 246, 0.22);
}

.ha-fair-field__hint {
    font-size: 11px;
    color: var(--hidden-muted);
    margin-top: 6px;
}

.ha-fair-client-input {
    flex: 1;
    padding: 10px 12px;
    background: #0f1218;
    border: 1px solid var(--hidden-border);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
}

.ha-fair-history__item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ha-fair-history__item--compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--hidden-muted);
}

.ha-fair-history__meta {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.ha-fair-empty, .ha-fair-loading {
    font-size: 13px;
    color: var(--hidden-muted);
    text-align: center;
    padding: 24px 12px;
}

.ha-fair-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ha-fair-verify {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.ha-fair-verify--ok {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.ha-fair-verify--bad {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.ha-fair-verify code {
    display: block;
    margin-top: 8px;
    font-size: 10px;
    word-break: break-all;
    font-weight: 400;
    opacity: 0.85;
}

body.ha-fair-modal-open {
    overflow: hidden;
}

/* ── Mines cell loading spinner ── */
.ha-mines-spinner {
    display: block;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(139, 92, 246, 0.18);
    border-top-color: #8b5cf6;
    border-right-color: #a78bfa;
    border-radius: 50%;
    animation: haSpinner 0.75s linear infinite;
    position: relative;
    z-index: 3;
}

.ha-mines-spinner--inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-width: 2px;
    vertical-align: middle;
    margin-right: 6px;
}

.mines__cell--loading {
    pointer-events: none;
    border-color: rgba(139, 92, 246, 0.45) !important;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.22), inset 0 0 20px rgba(139, 92, 246, 0.08) !important;
    background: linear-gradient(145deg, rgba(109, 40, 217, 0.12) 0%, rgba(23, 26, 33, 0.95) 100%) !important;
    animation: mineCellPulse 1.2s ease-in-out infinite;
}

.mines__cell--loading::after {
    display: none !important;
}

.mines__cell--loading::before {
    opacity: 1 !important;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 70%) !important;
}

.mines__cell--loading .ha-mines-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -16px 0 0 -16px;
}

@keyframes haSpinner {
    to { transform: rotate(360deg); }
}

@keyframes mineCellPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.97); }
}

/* ── Keno game ── */
.keno_game_wrapper {
    width: 100%;
    padding: 16px;
}

.keno_history_strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    margin-bottom: 12px;
    min-height: 28px;
}

.keno_history_chip {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--hidden-radius-sm);
    background: var(--hidden-elevated);
    border: 1px solid var(--hidden-border);
    color: var(--hidden-muted);
    transition: transform var(--hidden-transition);
}

.keno_history_chip.win {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.1);
}

.keno_history_chip.lose {
    color: var(--hidden-muted);
}

.keno_result_badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 20px;
    border-radius: var(--hidden-radius);
    background: var(--hidden-elevated);
    border: 1px solid var(--hidden-border);
    box-shadow: var(--hidden-shadow-sm);
    transition: border-color var(--hidden-transition), box-shadow var(--hidden-transition);
}

.keno_result_badge.win {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.keno_result_badge.lose {
    border-color: rgba(239, 68, 68, 0.25);
}

.keno_result_hits {
    font-weight: 700;
    font-size: 15px;
}

.keno_result_mult {
    font-weight: 800;
    font-size: 18px;
    color: var(--hidden-accent-bright);
}

.keno_grid_wrap {
    position: relative;
    margin-bottom: 16px;
}

.keno_risk_block {
    margin-bottom: 12px;
}

.keno_risk_pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.keno_risk_pill {
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--hidden-radius-sm);
    border: 1px solid var(--hidden-border);
    background: var(--hidden-bg);
    color: var(--hidden-muted);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.keno_risk_pill:hover {
    border-color: var(--hidden-border-strong);
    color: var(--hidden-text);
}

.keno_risk_pill.active {
    border-color: var(--hidden-accent);
    background: rgba(139, 92, 246, 0.15);
    color: var(--hidden-accent-bright);
}

.keno_risk_hint {
    font-size: 11px;
    line-height: 1.4;
    color: var(--hidden-muted);
    margin: 0;
}

.keno_grid_wrap.keno--drawing .keno_cell:not(.drawn) {
    opacity: 0.85;
}

.keno_grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
}

.keno_cell.revealing {
    animation: kenoRevealPop 0.35s ease-out;
}

@keyframes kenoRevealPop {
    0% { transform: scale(0.7); opacity: 0.4; }
    60% { transform: scale(1.12); }
    100% { transform: scale(1); opacity: 1; }
}

.keno_cell {
    aspect-ratio: 1;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--hidden-muted);
    background: var(--hidden-elevated);
    border: 1px solid var(--hidden-border);
    border-radius: var(--hidden-radius-sm);
    cursor: pointer;
    transition: background var(--hidden-transition), border-color var(--hidden-transition), color var(--hidden-transition), transform 0.12s, box-shadow var(--hidden-transition);
    padding: 0;
}

.keno_cell:hover:not(.drawn) {
    border-color: var(--hidden-border-strong);
    color: var(--hidden-text);
    transform: scale(1.04);
    box-shadow: var(--hidden-shadow-sm);
}

.keno_cell:active:not(.drawn) {
    transform: scale(0.96);
}

.keno_cell.selected {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--hidden-accent);
    color: var(--hidden-accent-bright);
    box-shadow: inset 0 0 12px rgba(139, 92, 246, 0.15);
}

.keno_cell.drawn {
    background: var(--hidden-surface);
    border-color: var(--hidden-border-strong);
    color: var(--hidden-text);
}

.keno_cell.hit {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    color: #6ee7b7;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
    animation: kenoHitPop 0.35s ease-out;
}

.keno_cell.miss {
    opacity: 0.45;
}

.keno_drawn_row {
    margin-top: 8px;
    padding: 12px;
    background: var(--hidden-panel);
    border: 1px solid var(--hidden-border);
    border-radius: var(--hidden-radius);
}

.keno_drawn_label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hidden-muted);
    margin-bottom: 8px;
}

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

.keno_drawn_chip {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--hidden-elevated);
    border: 1px solid var(--hidden-border);
    color: var(--hidden-muted);
}

.keno_drawn_chip.hit {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.keno_spots_summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: var(--hidden-bg);
    border: 1px solid var(--hidden-border);
    border-radius: var(--hidden-radius);
}

.keno_spots_label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hidden-muted);
}

.keno_spots_count {
    font-weight: 800;
    color: var(--hidden-accent-bright);
}

.keno_clear_btn {
    margin-top: -4px;
    margin-bottom: 8px;
}

@keyframes kenoHitPop {
    0% { transform: scale(0.85); }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ── Provably Fair modal tabs + guide ── */
.ha-fair-modal__tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px 12px;
    border-bottom: 1px solid var(--hidden-border);
}

.ha-fair-modal__tab {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--hidden-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--hidden-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ha-fair-modal__tab:hover {
    color: var(--hidden-text);
    border-color: rgba(139, 92, 246, 0.35);
}

.ha-fair-modal__tab--active {
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.45);
    color: #c4b5fd;
}

.ha-fair-modal__how {
    padding: 16px 20px 24px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
}

.ha-fair-guide__section {
    margin-bottom: 20px;
}

.ha-fair-guide__section h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--hidden-text);
    margin: 0 0 10px;
}

.ha-fair-guide__section p,
.ha-fair-guide__section li {
    font-size: 13px;
    line-height: 1.55;
    color: var(--hidden-muted);
}

.ha-fair-guide__steps,
.ha-fair-guide__list {
    margin: 10px 0 12px 18px;
    padding: 0;
}

.ha-fair-guide__steps li {
    margin-bottom: 8px;
}

.ha-fair-guide__code {
    margin: 10px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--hidden-border);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.6;
    color: #c4b5fd;
    word-break: break-all;
}

/* ── Site chat (right panel) ── */
.ha-site-chat__fab {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1040;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
    transition: transform 0.15s, box-shadow 0.15s;
}

.ha-site-chat__fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.55);
}

body.ha-chat-open .ha-site-chat__fab {
    opacity: 0;
    pointer-events: none;
}

.ha-site-chat {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1050;
    width: min(360px, 100vw);
    height: 100vh;
    background: var(--hidden-surface, #171a21);
    border-left: 1px solid var(--hidden-border);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
}

.ha-site-chat--open {
    transform: translateX(0);
}

.ha-site-chat__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1045;
    background: rgba(0, 0, 0, 0.45);
}

.ha-site-chat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--hidden-border);
}

.ha-site-chat__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--hidden-text);
}

.ha-site-chat__close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--hidden-muted);
    font-size: 22px;
    cursor: pointer;
}

.ha-site-chat__close:hover {
    color: var(--hidden-text);
    background: rgba(255, 255, 255, 0.08);
}

.ha-site-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ha-site-chat__msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ha-site-chat__msg--mine {
    flex-direction: row-reverse;
}

.ha-site-chat__msg--mine .ha-site-chat__bubble {
    background: rgba(124, 58, 237, 0.18);
    border-color: rgba(124, 58, 237, 0.35);
}

.ha-site-chat__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ha-site-chat__avatar--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--hidden-muted);
    font-size: 16px;
}

.ha-site-chat__bubble {
    max-width: 78%;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--hidden-border);
}

.ha-site-chat__meta {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 4px;
}

.ha-site-chat__name {
    font-size: 12px;
    font-weight: 700;
    color: #c4b5fd;
}

.ha-site-chat__time {
    font-size: 10px;
    color: var(--hidden-muted);
}

.ha-site-chat__text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--hidden-text);
    word-break: break-word;
}

.ha-site-chat__composer {
    display: flex;
    gap: 8px;
    padding: 12px 14px 16px;
    border-top: 1px solid var(--hidden-border);
}

.ha-site-chat__composer input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--hidden-border);
    background: var(--hidden-bg);
    color: var(--hidden-text);
    font-size: 13px;
}

.ha-site-chat__composer input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
}

.ha-site-chat__composer button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

body.ha-chat-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .ha-site-chat {
        width: 100vw;
    }
}

/* ══════════════════════════════════════════════════
   UI REDESIGN — Premium pill nav, sidebar icons, footer
   ══════════════════════════════════════════════════ */

.hidden-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-body {
    flex: 1;
    position: relative;
    margin-top: var(--hidden-nav-h);
    min-height: calc(100vh - var(--hidden-nav-h));
}

body.hidden-site .navbar__inner--aligned {
    max-width: none;
    width: 100%;
    padding-left: calc(var(--hidden-sidebar-w) + 44px);
    padding-right: 32px;
    gap: 0;
}

body.hidden-site .navbar__inner--aligned .logotype {
    margin-right: 28px;
}

body.hidden-site .navbar__inner--aligned .navmenu--primary {
    margin-left: 0;
    flex: 0 0 auto;
}

body.hidden-site .navbar__inner--aligned .navmenu__list {
    gap: 6px;
}

body.hidden-site .navbar__inner--aligned .navmenu__item_link {
    padding: 9px 16px;
    font-size: 14px;
    letter-spacing: 0.01em;
}

body.hidden-site .navbar__spacer {
    flex: 1 1 auto;
    min-width: 32px;
}

body.hidden-site .navbar__inner--aligned .user__wallet {
    margin-left: 0;
    gap: 12px;
}

body.hidden-site .navbar__inner--aligned .wallet_pill {
    padding: 8px 14px;
}

body.hidden-site .navbar__inner--aligned .header_actions {
    gap: 6px;
}

.sidebar__icon--glow img {
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.65));
}

body.hidden-site .main__content {
    top: 0 !important;
    position: relative !important;
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 56px;
}

.site-footer {
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    max-width: none;
    padding: 48px 24px 32px;
    padding-left: calc(var(--hidden-sidebar-w) + 24px);
    background: linear-gradient(180deg, transparent 0%, rgba(11, 12, 16, 0.85) 24%, var(--hidden-bg) 100%);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 0;
}

.site-footer .footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.site-footer .footer__header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.site-footer .warn_mark {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

.sidebar__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hidden-muted);
    transition: color 0.15s;
}

.sidebar__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.sidebar__icon--img img {
    width: 20px;
    height: 20px;
    display: block;
}

.sidebar__item:hover .sidebar__icon,
.sidebar__item.active .sidebar__icon {
    color: var(--hidden-accent-bright);
}

body.hidden-site .fix__left_nav {
    top: var(--hidden-nav-h);
    height: calc(100vh - var(--hidden-nav-h));
}

/* Blackjack house rules */
.bj_rules-panel {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: rgba(23, 26, 33, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.2);
    overflow: hidden;
    box-shadow: var(--hidden-shadow-sm);
}

.bj_rules-panel__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--hidden-text);
    font-family: var(--hidden-font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.bj_rules-panel__toggle i:first-child {
    color: var(--hidden-accent-bright);
    font-size: 18px;
}

.bj_rules-panel__toggle span {
    flex: 1;
    text-align: left;
}

.bj_rules-panel__chevron {
    transition: transform 0.2s ease;
    color: var(--hidden-muted);
}

.bj_rules-panel.is-open .bj_rules-panel__chevron {
    transform: rotate(180deg);
}

.bj_rules-panel__toggle:hover {
    background: rgba(139, 92, 246, 0.08);
}

.bj_rules-panel__body {
    padding: 0 16px 14px;
    border-top: 1px solid var(--hidden-border);
}

.bj_rules-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.bj_rules-list li {
    font-size: 13px;
    line-height: 1.5;
    color: var(--hidden-muted);
    padding-left: 14px;
    position: relative;
}

.bj_rules-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hidden-accent);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

.bj_rules-list li strong {
    color: var(--hidden-accent-bright);
    font-weight: 600;
}

.bj_table {
    border-color: rgba(139, 92, 246, 0.22);
    box-shadow:
        inset 0 0 80px rgba(0, 0, 0, 0.4),
        0 16px 48px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(124, 58, 237, 0.08);
}

.bj_table::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 55%);
}

.bj_table_logo {
    color: rgba(167, 139, 250, 0.12);
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

@media (max-width: 991px) {
    body.hidden-site .navbar__inner--aligned {
        padding-left: 16px;
    }

    .site-footer {
        padding-left: 24px;
    }
}