@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Barlow+Condensed:wght@600;700&display=swap');

:root {
    --bg: #070707;
    --bg-elevated: #0d0d0d;
    --surface: #141414;
    --surface-hover: #1a1a1a;
    --border: rgba(255, 255, 255, 0.07);
    --border-accent: rgba(212, 160, 23, 0.35);
    --red: #dc2626;
    --red-bright: #ef4444;
    --red-dark: #991b1b;
    --red-glow: rgba(220, 38, 38, 0.3);
    --gold: #d4a017;
    --gold-light: #f0c040;
    --gold-glow: rgba(212, 160, 23, 0.25);
    --pix: #32bcad;
    --text: #f0f0f0;
    --text-muted: #777;
    /* aliases legados */
    --green: var(--gold-light);
    --green-hover: var(--gold);
    --green-glow: var(--gold-glow);
    --border-accent-green: var(--border-accent);
    --sidebar-w: 260px;
    --radius: 4px;
    --radius-lg: 6px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --transition: 0.2s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Barlow', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    line-height: 1.5;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 10% 0%, rgba(220, 38, 38, 0.1), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(212, 160, 23, 0.05), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    padding: 20px 14px;
    overflow-y: auto;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    animation: slideInLeft 0.4s ease;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: 10px;
    z-index: 120;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(240, 192, 64, 0.45);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 55%),
        linear-gradient(180deg, #1c1a16, #0e0d0b);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-toggle__bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 18px;
}

.sidebar-toggle__bars span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--gold-light);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sidebar-toggle.is-open .sidebar-toggle__bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sidebar-toggle.is-open .sidebar-toggle__bars span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.is-open .sidebar-toggle__bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.sidebar-is-open {
    overflow: hidden;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--text);
}

.sidebar-logo-mark {
    width: 38px;
    height: 38px;
    background: linear-gradient(145deg, var(--red-bright), var(--red-dark));
    display: grid;
    place-items: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: #fff;
    box-shadow: 0 0 16px var(--red-glow);
    border: 1px solid rgba(255,255,255,0.12);
    flex-shrink: 0;
}

.sidebar-logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
}

.sidebar-logo-text span { color: var(--gold-light); }

.sidebar-logo-text small {
    display: block;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 1px;
}

.menu-section { margin-bottom: 22px; }

.menu-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    padding: 0 12px;
    font-family: 'Barlow Condensed', sans-serif;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    margin-bottom: 2px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.menu-item:hover {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.menu-item.active {
    background: rgba(220, 38, 38, 0.1);
    color: var(--red-bright);
    font-weight: 600;
    border-color: rgba(220, 38, 38, 0.25);
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 55%;
    background: var(--red);
}

/* MAIN */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* TOPBAR */
.topbar {
    background: rgba(7, 7, 7, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), var(--gold), var(--red), transparent);
    opacity: 0.35;
}

.topbar-left { display: flex; align-items: center; gap: 20px; flex: 1; }

.topbar-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.topbar-search {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.topbar-search input {
    width: 100%;
    padding: 9px 16px 9px 38px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    transition: var(--transition);
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.1);
}

.topbar-search::before {
    content: '⌕';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.4;
    color: var(--text-muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-wallets {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
}

.user-balance {
    display: flex;
    align-items: center;
    padding: 7px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    white-space: nowrap;
}

.user-balance--bonus {
    border-color: rgba(45, 212, 191, 0.35);
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.08), var(--surface));
}

.balance-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-family: 'Barlow Condensed', sans-serif;
}

.balance-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-light);
    text-shadow: 0 0 20px rgba(240, 192, 64, 0.2);
}

.balance-value--bonus {
    color: #5eead4 !important;
    text-shadow: 0 0 18px rgba(45, 212, 191, 0.25);
}

.balance-pending {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fbbf24;
    font-family: 'Barlow Condensed', sans-serif;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .topbar-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .user-wallets {
        width: 100%;
        justify-content: flex-end;
    }
    .user-balance {
        padding: 6px 12px;
    }
    .balance-value {
        font-size: 17px;
    }
}

/* Dashboard mobile — tela fixa */
@media (max-width: 768px) {
    html:has(body.page-dashboard),
    body.page-dashboard {
        height: 100%;
        max-height: 100dvh;
        overflow: hidden;
        overscroll-behavior: none;
        touch-action: manipulation;
    }

    .page-dashboard .main-content--dashboard {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        margin-left: 0;
    }

    .page-dashboard .topbar {
        flex-shrink: 0;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 12px 10px 56px;
        position: relative;
    }

    .page-dashboard .topbar-left {
        flex: 1 1 auto;
        min-width: 0;
    }

    .page-dashboard .topbar-title {
        font-size: 15px;
        letter-spacing: 0.06em;
    }

    .page-dashboard .topbar-actions {
        flex: 1 1 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: stretch;
        width: 100%;
    }

    .page-dashboard .user-wallets {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .page-dashboard .user-balance {
        width: 100%;
        padding: 6px 8px;
        min-width: 0;
    }

    .page-dashboard .balance-label {
        font-size: 9px;
    }

    .page-dashboard .balance-value {
        font-size: 15px;
    }

    .page-dashboard .balance-pending {
        font-size: 9px;
        white-space: normal;
        line-height: 1.2;
    }

    .page-dashboard .btn-deposit {
        flex: 1;
        padding: 8px 10px;
        font-size: 12px;
        justify-content: center;
    }

    .page-dashboard .page-content--dashboard {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        animation: none;
    }

    .page-dashboard .hero-grid {
        display: none;
    }

    .page-dashboard .tabs {
        display: none;
    }

    .page-dashboard .section-header {
        display: none;
    }

    .page-dashboard .popular-bets {
        display: none;
    }

    .page-dashboard .games-grid {
        flex: 1;
        min-height: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }

    .page-dashboard .game-card {
        position: relative;
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
        flex: 0 0 auto;
        animation: none;
        overflow: hidden;
        border-radius: 16px;
    }

    .page-dashboard .game-card:hover {
        transform: none;
    }

    .page-dashboard .game-card-header {
        position: absolute;
        inset: 0;
        height: auto !important;
        min-height: 0 !important;
        flex: none !important;
        padding: 0;
        overflow: hidden;
    }

    .page-dashboard .game-card-header .game-card-thumb,
    .page-dashboard .game-card-header--roulette .game-card-thumb,
    .page-dashboard .game-card-header--mystery .game-card-thumb,
    .page-dashboard .game-card-header--scratch .game-card-thumb,
    .page-dashboard .game-card-header--slots .game-card-thumb,
    .page-dashboard .game-card-header--bicho .game-card-thumb {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        aspect-ratio: auto;
        object-fit: cover;
        object-position: center;
        border-radius: 0 !important;
        filter: none;
    }

    .page-dashboard .game-card-header::after {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 42%, transparent 70%);
    }

    .page-dashboard .game-card-badge {
        z-index: 4;
    }

    .page-dashboard .game-card-body {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 3;
        padding: 14px 12px 12px;
        background: transparent;
    }

    .page-dashboard .game-title {
        font-size: 16px;
        margin-bottom: 2px;
        color: #fff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
    }

    .page-dashboard .game-description {
        font-size: 12px;
        margin-bottom: 8px;
        color: rgba(255, 255, 255, 0.75);
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .page-dashboard .game-button {
        padding: 10px 8px;
        font-size: 12px;
        width: 100%;
    }
}

.btn-deposit {
    padding: 9px 18px;
    background: var(--pix);
    color: #032;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn-deposit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* PAGE */
.page-content {
    flex: 1;
    padding: 24px 28px 40px;
    animation: fadeInUp 0.4s ease;
}

.page-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.page-title span { color: var(--gold-light); }

/* HERO BANNERS */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.hero-card {
    border-radius: var(--radius-lg);
    padding: 22px;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.hero-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--border-accent);
}

.hero-card--live {
    background: linear-gradient(135deg, #2a0808 0%, #140404 100%);
    border-color: rgba(220, 38, 38, 0.3);
}

.hero-card--wins {
    background: linear-gradient(135deg, #1a1208 0%, #0f0a04 100%);
    border-color: rgba(212, 160, 23, 0.25);
}

.hero-card--bicho {
    background: linear-gradient(135deg, #1a1408 0%, #0c0a04 100%);
    border-color: rgba(226, 182, 74, 0.3);
}

.hero-card--support {
    background: linear-gradient(135deg, #081a18 0%, #040f0e 100%);
    border-color: rgba(50, 188, 173, 0.25);
}

.hero-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.hero-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.hero-card-icon { font-size: 28px; margin-bottom: 8px; }

.hero-card-icon--img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.hero-card-icon--img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-btn {
    align-self: flex-start;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    margin-top: 12px;
    transition: var(--transition);
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-card:hover .hero-card-btn {
    background: rgba(212, 160, 23, 0.15);
    border-color: var(--gold);
}

/* TABS */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--surface);
    padding: 4px;
    border-radius: var(--radius);
    width: fit-content;
    border: 1px solid var(--border);
}

.tab {
    padding: 9px 18px;
    cursor: pointer;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    border: none;
    background: transparent;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.tab.active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 12px var(--red-glow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.section-link {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-link:hover { color: var(--gold-light); }

/* GAME CARDS */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

/* Dashboard desktop: 5 cards quadrados preenchendo a largura */
@media (min-width: 769px) {
    .page-dashboard .games-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 28px;
        align-items: start;
    }

    .page-dashboard .game-card {
        position: relative;
        aspect-ratio: 1 / 1;
        width: 100%;
        height: auto;
        min-width: 0;
        display: block;
        overflow: hidden;
    }

    .page-dashboard .game-card-header {
        position: absolute;
        inset: 0;
        height: auto !important;
        min-height: 0 !important;
        flex: none !important;
        overflow: hidden;
        padding: 0;
    }

    .page-dashboard .game-card-header .game-card-thumb,
    .page-dashboard .game-card-header--roulette .game-card-thumb,
    .page-dashboard .game-card-header--mystery .game-card-thumb,
    .page-dashboard .game-card-header--scratch .game-card-thumb,
    .page-dashboard .game-card-header--slots .game-card-thumb,
    .page-dashboard .game-card-header--bicho .game-card-thumb {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        aspect-ratio: auto;
        object-fit: cover;
        object-position: center;
        border-radius: 0 !important;
        filter: none;
    }

    .page-dashboard .game-card-header::after {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 45%, transparent 72%);
    }

    .page-dashboard .game-card-body {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 3;
        padding: 12px 10px 10px;
        background: transparent;
    }

    .page-dashboard .game-title {
        font-size: clamp(11px, 1.05vw, 14px);
        margin-bottom: 2px;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    }

    .page-dashboard .game-description {
        font-size: clamp(9px, 0.85vw, 11px);
        margin-bottom: 6px;
        color: rgba(255, 255, 255, 0.72);
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 0;
    }

    .page-dashboard .game-button {
        width: 100%;
        padding: 7px 6px;
        font-size: clamp(10px, 0.9vw, 12px);
    }
}

.game-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    animation: fadeInUp 0.4s ease backwards;
}

.game-card:nth-child(1) { animation-delay: 0.05s; }
.game-card:nth-child(2) { animation-delay: 0.1s; }
.game-card:nth-child(3) { animation-delay: 0.15s; }
.game-card:nth-child(4) { animation-delay: 0.2s; }

.game-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 160, 23, 0.15);
}

.game-card-header {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    position: relative;
    overflow: hidden;
}

.game-card-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--surface) 0%, transparent 55%);
}

.game-card-header--roulette {
    background:
        radial-gradient(circle at 50% 55%, rgba(220, 38, 38, 0.25), transparent 55%),
        radial-gradient(circle at 50% 40%, rgba(226, 182, 74, 0.18), transparent 50%),
        #0a0a0a;
    padding: 0;
}

.game-card-header--roulette .game-card-thumb {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.game-card-header--roulette .card-wheel-mini {
    display: none;
}

.game-card-header--mystery {
    background:
        radial-gradient(circle at 50% 60%, rgba(255, 60, 40, 0.22), transparent 55%),
        linear-gradient(160deg, #120808, #1a1008 55%, #0a0a0a);
    padding: 0;
}

.game-card-header--mystery .game-card-thumb {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}
.game-card-header--scratch {
    background:
        radial-gradient(circle at 50% 60%, rgba(220, 38, 38, 0.28), transparent 55%),
        linear-gradient(160deg, #1a0808, #2a1010 55%, #0a0a0a);
    padding: 0;
}

.game-card-header--scratch .game-card-thumb {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.game-card-header--slots {
    background:
        radial-gradient(circle at 50% 55%, rgba(226, 182, 74, 0.28), transparent 55%),
        linear-gradient(160deg, #1a1208, #2a1a0a 55%, #0a0a0a);
    padding: 0;
}

.game-card-header--slots .game-card-thumb {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}
.game-card-header--bicho {
    background:
        radial-gradient(circle at 50% 55%, rgba(226, 182, 74, 0.28), transparent 55%),
        linear-gradient(160deg, #1a1008, #2a1a0c 55%, #0a0a0a);
    padding: 0;
}

.game-card-header--bicho .game-card-thumb {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.game-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: var(--radius);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 2;
    font-family: 'Barlow Condensed', sans-serif;
}

.badge-hot { background: var(--red); color: #fff; }
.badge-new { background: var(--gold); color: #1a0a00; }
.badge-top { background: var(--gold-light); color: #1a0a00; }

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
}

.game-card:hover .game-card-overlay { opacity: 1; }

.play-btn-circle {
    width: 48px;
    height: 48px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 4px 16px var(--red-glow);
    transform: scale(0.85);
    transition: var(--transition);
    border: 2px solid var(--gold);
}

.game-card:hover .play-btn-circle { transform: scale(1); }

.game-card-body { padding: 14px; }

.game-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.game-description {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.game-button {
    width: 100%;
    padding: 9px;
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: var(--radius);
    color: var(--red-bright);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.game-button:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* POPULAR BETS */
.popular-bets {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    border-left: 3px solid var(--red);
}

.popular-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: var(--red-bright);
    border-radius: 50%;
    animation: pulse 1.4s infinite;
    box-shadow: 0 0 6px var(--red-bright);
}

.bet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius);
    margin-bottom: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.bet-item:hover {
    border-color: rgba(212, 160, 23, 0.3);
}

.bet-game { font-weight: 600; font-size: 14px; }
.bet-amount {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 14px;
    font-family: 'Barlow Condensed', sans-serif;
}
.bet-time { font-size: 12px; color: var(--text-muted); }

/* CONTENT PAGES */
.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    animation: fadeInUp 0.4s ease;
}

.content-card h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-box {
    background: var(--bg-elevated);
    border-left: 3px solid var(--red);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-family: 'Barlow Condensed', sans-serif;
}

.stat-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-light);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.back-btn:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

/* FORMS */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(180deg, var(--red-bright), var(--red-dark));
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 16px var(--red-glow);
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* TABLE */
table { width: 100%; border-collapse: collapse; }

th {
    background: var(--bg-elevated);
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Barlow Condensed', sans-serif;
}

td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

tr:hover td { background: rgba(220, 38, 38, 0.04); }

.win { color: var(--gold-light); font-weight: 600; }
.loss { color: var(--red-bright); font-weight: 600; }
.empty { text-align: center; color: var(--text-muted); padding: 48px; }

.empty__icon { font-size: 48px; margin-bottom: 12px; line-height: 1; }
.empty__title { font-size: 16px; color: var(--text); font-weight: 600; }
.empty__sub { margin-top: 8px; font-size: 13px; color: var(--text-muted); }
.empty__cta { margin-top: 18px; display: inline-flex; }

/* Histórico — cards mobile-first */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.22);
}

.history-card--win {
    border-color: rgba(240, 192, 64, 0.28);
}

.history-card--loss {
    border-color: rgba(220, 38, 38, 0.22);
}

.history-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.history-card__main {
    min-width: 0;
}

.history-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-bottom: 4px;
}

.history-card__game {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.history-card__date {
    font-size: 11px;
    color: var(--text-muted);
}

.history-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.history-card__status {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.history-card__result {
    font-size: 14px;
    font-weight: 800;
    font-family: 'Barlow Condensed', sans-serif;
    white-space: nowrap;
    text-align: right;
}

.page-title--compact {
    font-size: 22px;
    margin-bottom: 14px;
}

.content-card--historico {
    padding: 12px;
}

@media (max-width: 768px) {
    html:has(body.page-historico),
    body.page-historico {
        height: 100%;
        max-height: 100dvh;
        overflow: hidden;
        overscroll-behavior: none;
        touch-action: manipulation;
    }

    .page-historico .main-content--historico {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        margin-left: 0;
    }

    .page-historico .topbar {
        flex-shrink: 0;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 12px 10px 56px;
        position: relative;
    }

    .page-historico .topbar-left {
        flex: 1 1 auto;
        min-width: 0;
    }

    .page-historico .topbar-title {
        font-size: 15px;
        letter-spacing: 0.06em;
    }

    .page-historico .topbar-actions {
        flex: 1 1 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    .page-historico .user-wallets {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .page-historico .user-balance {
        width: 100%;
        padding: 6px 8px;
        min-width: 0;
    }

    .page-historico .balance-label { font-size: 9px; }
    .page-historico .balance-value { font-size: 15px; }
    .page-historico .balance-pending {
        font-size: 9px;
        white-space: normal;
        line-height: 1.2;
    }

    .page-historico .btn-deposit {
        flex: 1;
        padding: 8px 10px;
        font-size: 12px;
        justify-content: center;
    }

    .page-historico .page-content--historico {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
        animation: none;
    }

    .page-historico .page-title--compact {
        flex-shrink: 0;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .page-historico .content-card--historico {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 10px;
    }

    .page-historico .history-list {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-right: 2px;
    }

    .page-historico .history-card {
        padding: 10px;
        gap: 8px;
        grid-template-columns: 36px minmax(0, 1fr) auto;
    }

    .page-historico .history-card__icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .page-historico .history-card__game {
        font-size: 13px;
    }

    .page-historico .history-card__result {
        font-size: 13px;
    }
}

/* GAME PAGE */
.page-content--game {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
}

.page-game,
.page-game .main-content--game {
    overflow-x: clip;
    max-width: 100%;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}

.page-game--rounds,
.page-game--rounds .main-content--game {
    touch-action: manipulation;
}

html:has(body.page-game) {
    overflow-x: clip;
    overscroll-behavior-x: none;
}

.page-game {
    width: 100%;
}

.main-content--game {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.game-container {
    width: 100%;
    max-width: 640px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    box-sizing: border-box;
    overflow-x: clip;
}

.game-page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.game-page-header .game-title {
    font-size: 24px;
    color: var(--text);
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
}

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

.bet-input-group {
    margin-bottom: 8px;
}

.rounds-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.rounds-status {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.rounds-count {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold-light);
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.02em;
}

.rounds-price {
    text-align: right;
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
}

.rounds-price small {
    display: block;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
    margin-top: 2px;
}

.rounds-custom {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-top: 12px;
}

.rounds-custom .bet-input {
    margin: 0;
}

.rounds-hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.rounds-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.rounds-pkg {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    padding: 14px 14px 12px;
    border: 1px solid rgba(212, 160, 23, 0.35);
    border-radius: 4px;
    background: rgba(212, 160, 23, 0.08);
    color: #f0f0f0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    line-height: 1.25;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.rounds-pkg:hover:not(:disabled) {
    border-color: #d4a017;
    background: rgba(212, 160, 23, 0.16);
    transform: translateY(-1px);
}

.rounds-pkg.is-selected {
    border-color: #f0c040;
    background: rgba(212, 160, 23, 0.22);
    box-shadow: 0 0 0 1px rgba(240, 192, 64, 0.45);
}

.rounds-pkg:disabled {
    opacity: 0.55;
    cursor: wait;
}

.rounds-pkg__qty {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #f0c040;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rounds-pkg__price {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #f0f0f0;
}

.rounds-chips {
    margin-top: 4px;
}

.bet-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--gold-light);
    font-size: 14px;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bet-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition);
}

.bet-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.play-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(180deg, var(--red-bright), var(--red-dark));
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 16px;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 16px var(--red-glow);
}

.play-actions {
    margin-top: 16px;
}

.play-actions .play-button {
    margin-top: 0;
}

/* Barra fixa inferior — GIRAR sempre à vista (estilo cassino) */
.play-dock {
    position: fixed;
    left: var(--sidebar-w);
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background:
        linear-gradient(180deg, rgba(8, 8, 10, 0) 0%, rgba(8, 8, 10, 0.72) 28%, rgba(8, 8, 10, 0.94) 100%);
    pointer-events: none;
}

.play-dock__bar {
    pointer-events: auto;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 12px 10px;
    border-radius: 18px;
    border: 1px solid rgba(240, 192, 64, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%),
        linear-gradient(180deg, #1a1814, #0e0d0b);
    box-shadow:
        0 -8px 28px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: visible;
    box-sizing: border-box;
    width: 100%;
}

.play-dock__packages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    overflow: visible;
    padding: 0;
}

.rounds-pkg--dock {
    width: 100%;
    min-width: 0;
    flex-shrink: 1;
    padding: 8px 6px;
    gap: 2px;
    border-radius: 10px;
    align-items: center;
    text-align: center;
}

.rounds-pkg--dock .rounds-pkg__qty {
    font-size: 14px;
    line-height: 1.1;
}

.rounds-pkg--dock .rounds-pkg__price {
    font-size: 11px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.play-dock__wallets {
    display: flex;
    align-items: stretch;
    gap: 6px;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
}

.play-dock__wallets .play-dock__stat {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid rgba(240, 192, 64, 0.22);
    background: rgba(0, 0, 0, 0.35);
}

.play-dock__stat--bonus {
    border-color: rgba(45, 212, 191, 0.35);
}

.play-dock__stat-value--bonus {
    color: #2dd4bf;
}

.play-dock__pending {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    font-weight: 700;
    color: var(--gold-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-dock__controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.play-dock__spin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    gap: 6px;
    overflow: visible;
}

.play-dock__meta--rounds {
    justify-self: start;
    max-width: 100%;
}

.play-dock__spin-row .play-actions {
    justify-self: center;
    margin-top: 0;
    flex: 0 0 auto;
    justify-content: center;
    max-width: 100%;
}

.play-dock__spin-row .auto-switch {
    justify-self: end;
    align-self: center;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
}

.play-dock .play-actions {
    margin-top: 0;
    flex: 0 0 auto;
    justify-content: center;
}

.play-dock .play-actions--special {
    gap: 0;
    flex-wrap: nowrap;
}

.description--compact {
    margin: 8px 0 4px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.play-dock__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.play-dock__stat {
    min-width: 92px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.play-dock__stat-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: 'Barlow Condensed', sans-serif;
}

.play-dock__stat-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-light);
    font-family: 'Barlow Condensed', sans-serif;
    line-height: 1.15;
}

.play-dock .play-button--spin {
    width: 88px;
    height: 88px;
    min-width: 88px;
}

.play-dock .play-button--open,
.play-dock .play-button--scratch,
.play-dock .play-button--slots,
.play-dock .play-button--bicho {
    height: 64px;
    min-width: 0;
    max-width: 100%;
}

.play-dock .play-button--slots {
    min-width: 120px;
    padding: 0 14px;
}

.play-dock .auto-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 8px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.play-dock .auto-switch__label {
    font-size: 11px;
}

.play-dock .auto-switch__track {
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.play-dock .auto-switch__knob {
    width: 20px;
    height: 20px;
    top: 3px;
    left: 3px;
}

.play-dock .auto-switch__track.is-on .auto-switch__knob {
    transform: translateX(22px);
}

.play-dock-spacer {
    height: 260px;
}

.page-game--rounds {
    --play-dock-h: 250px;
}

.page-game--rounds.page-game--roulette {
    --play-dock-h: 300px;
    --roulette-col: 420px;
}

.page-game--rounds .play-dock-spacer {
    height: 0;
    display: none;
}

.page-content--game {
    padding-bottom: 24px;
}

.page-game--rounds .page-content--game {
    padding-bottom: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.page-game--rounds .main-content--game {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.page-game--rounds .game-container {
    max-height: calc(100dvh - 12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--play-dock-h, 250px) + 8px);
}

.page-game--rounds .game-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Tablet / desktop estreito: coluna estilo mobile */
@media (min-width: 769px) and (max-width: 1023px) {
    .page-game--roulette .main-content--game {
        display: flex;
        justify-content: center;
        padding: 0;
    }

    .page-game--roulette .page-content--game {
        width: 100%;
        max-width: var(--roulette-col, 420px);
        margin: 0 auto;
    }

    .page-game--roulette .game-container {
        max-width: var(--roulette-col, 420px);
        width: 100%;
        margin: 0 auto;
        padding: 10px 12px calc(var(--play-dock-h, 300px) + 6px);
        border-radius: 16px;
        max-height: 100dvh;
    }

    .page-game--roulette .game-content {
        justify-content: flex-start;
        padding-top: 6px;
    }

    .page-game--roulette .play-dock {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-game--roulette .play-dock__bar {
        max-width: var(--roulette-col, 420px);
        gap: 8px;
        padding: 10px;
    }

    .page-game--roulette .play-dock__packages {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-game--roulette .play-dock .play-button--spin {
        width: 76px;
        height: 76px;
        min-width: 76px;
    }
}

/* Desktop largo: roleta à esquerda, controles à direita */
@media (min-width: 1024px) {
    .page-game--rounds.page-game--roulette {
        --play-dock-h: 0;
    }

    .page-game--roulette .main-content--game {
        display: flex;
        justify-content: center;
        align-items: stretch;
        padding: 16px 20px;
        box-sizing: border-box;
    }

    .page-game--roulette .page-content--game {
        width: 100%;
        max-width: min(1100px, 100%);
        margin: 0 auto;
        height: 100%;
    }

    .page-game--roulette .game-container {
        max-width: none;
        width: 100%;
        height: 100%;
        max-height: calc(100dvh - 32px);
        margin: 0;
        padding: 18px 22px;
        border-radius: 20px;
        overflow: visible;
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(340px, 400px);
        grid-template-rows: minmax(0, 1fr);
        gap: 22px;
        align-items: stretch;
        background:
            radial-gradient(ellipse 70% 60% at 30% 45%, rgba(176, 40, 48, 0.12), transparent 55%),
            radial-gradient(ellipse 50% 40% at 80% 70%, rgba(226, 182, 74, 0.08), transparent 50%),
            var(--surface);
    }

    .page-game--roulette .game-content {
        display: contents;
    }

    .page-game--roulette .game-image {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        justify-self: center;
        width: 100%;
        max-width: 560px;
        overflow: visible;
    }

    .page-game--roulette .play-dock {
        grid-column: 2;
        grid-row: 1;
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        padding: 0;
        background: none;
        pointer-events: auto;
        display: flex;
        align-items: center;
        align-self: stretch;
        z-index: 5;
    }

    .page-game--roulette .play-dock__bar {
        max-width: none;
        width: 100%;
        margin: 0;
        gap: 12px;
        padding: 16px 14px;
        border-radius: 18px;
        justify-content: center;
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .page-game--roulette .play-dock__packages {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .page-game--roulette .rounds-pkg--dock {
        padding: 12px 8px;
        border-radius: 12px;
    }

    .page-game--roulette .rounds-pkg--dock .rounds-pkg__qty {
        font-size: 16px;
    }

    .page-game--roulette .rounds-pkg--dock .rounds-pkg__price {
        font-size: 12px;
    }

    .page-game--roulette .play-dock__wallets .play-dock__stat {
        padding: 10px 12px;
    }

    .page-game--roulette .play-dock__stat-value {
        font-size: 18px;
    }

    .page-game--roulette .play-dock .play-button--spin {
        width: 96px;
        height: 96px;
        min-width: 96px;
    }

    .page-game--roulette .play-dock-spacer {
        display: none;
    }
}

html:has(body.page-game--rounds),
body.page-game--rounds {
    height: 100%;
    max-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
}

.play-actions--roulette,
.play-actions--special {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.play-button--spin {
    position: relative;
    width: 112px;
    height: 112px;
    min-width: 112px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: 3px solid #f0c040;
    background: #111;
    box-shadow:
        0 0 0 4px rgba(212, 160, 23, 0.2),
        0 8px 24px rgba(220, 38, 38, 0.35),
        inset 0 0 0 2px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.play-button--open {
    position: relative;
    width: auto;
    min-width: 188px;
    height: 64px;
    padding: 0 22px 0 16px;
    margin: 0;
    border-radius: 14px;
    border: 2px solid rgba(240, 192, 64, 0.75);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
        linear-gradient(135deg, #c81e2e 0%, #9b1324 48%, #6f0e18 100%);
    box-shadow:
        0 8px 22px rgba(180, 20, 40, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -3px 8px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.play-button--spin:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.05);
}

.play-button--open:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.06);
    border-color: #f0c040;
    box-shadow:
        0 10px 26px rgba(180, 20, 40, 0.55),
        0 0 0 3px rgba(240, 192, 64, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -3px 8px rgba(0, 0, 0, 0.28);
}

.play-button--open:active:not(:disabled) {
    transform: translateY(0);
}

.play-button--scratch {
    position: relative;
    width: auto;
    min-width: 200px;
    height: 64px;
    padding: 0 22px 0 14px;
    margin: 0;
    border-radius: 12px;
    border: 2px solid rgba(240, 192, 64, 0.8);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, #1a1a1a 0%, #2a1810 45%, #1a0e0a 100%);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -3px 8px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.play-button--scratch:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
    border-color: #f0c040;
    box-shadow:
        0 10px 26px rgba(212, 160, 23, 0.28),
        0 0 0 3px rgba(240, 192, 64, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.scratch-btn__ticket {
    position: relative;
    width: 44px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 4px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.2), transparent 40%),
        linear-gradient(145deg, #ef4444, #b91c1c 55%, #7f1d1d);
    border: 1px solid rgba(255, 220, 130, 0.35);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    animation: scratchTicketIdle 2.8s ease-in-out infinite;
    z-index: 1;
}

.scratch-btn__ticket::before,
.scratch-btn__ticket::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #141414;
    transform: translateY(-50%);
}

.scratch-btn__ticket::before { left: -5px; }
.scratch-btn__ticket::after { right: -5px; }

.scratch-btn__foil {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 7px;
    bottom: 7px;
    border-radius: 2px;
    background: linear-gradient(120deg, #c5ccd4, #f2f4f6 40%, #9aa3ae 70%, #e8ebef);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.scratch-btn__foil::after {
    content: '$$$';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: rgba(90, 100, 110, 0.55);
    font-family: 'Barlow Condensed', sans-serif;
}

.scratch-btn__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.05;
    pointer-events: none;
}

.scratch-btn__label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.play-button--scratch.is-scratching .scratch-btn__ticket {
    animation: scratchTicketBusy 0.35s ease-in-out infinite;
}

.play-button--scratch.is-scratching .scratch-btn__foil {
    animation: scratchFoilWipe 0.55s linear infinite;
}

/* ── Slot machine — botão GIRAR ── */
.play-button--slots {
    position: relative;
    width: auto;
    min-width: 160px;
    height: 64px;
    padding: 0 22px;
    margin: 0;
    border-radius: 12px;
    border: 2px solid rgba(200, 164, 78, 0.85);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 42%),
        linear-gradient(135deg, #e8cf8d 0%, #c8a44e 35%, #8f7026 70%, #6b5418 100%);
    box-shadow:
        0 8px 22px rgba(90, 70, 35, 0.45),
        inset 0 1px 0 rgba(255, 248, 220, 0.45),
        inset 0 -3px 8px rgba(70, 50, 15, 0.35);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.play-button--slots:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.06);
    border-color: #f0c040;
    box-shadow:
        0 10px 26px rgba(120, 95, 55, 0.5),
        0 0 0 3px rgba(240, 192, 64, 0.2),
        inset 0 1px 0 rgba(255, 248, 220, 0.5);
}

.play-button--slots:active:not(:disabled) {
    transform: translateY(0);
}

.slots-btn__visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    height: 38px;
    pointer-events: none;
}

.slots-btn__reels {
    display: flex;
    gap: 2px;
    padding: 3px 4px;
    border-radius: 4px;
    background: #241c10;
    border: 1px solid rgba(200, 164, 78, 0.6);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
}

.slots-btn__reel {
    width: 16px;
    height: 22px;
    border-radius: 2px;
    background: linear-gradient(180deg, #fffef8, #f5f0e6);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

.slots-btn__reel span {
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    font-family: Georgia, serif;
    color: #b71c1c;
}

.slots-btn__reel:nth-child(2) span {
    font-family: Arial, sans-serif;
    font-size: 5px;
    letter-spacing: 0.02em;
    color: #333;
}

.slots-btn__reel:nth-child(3) span {
    font-size: 10px;
}

.slots-btn__lever {
    position: relative;
    width: 14px;
    height: 34px;
    flex-shrink: 0;
}

.slots-btn__lever-arm {
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 4px;
    height: 22px;
    margin-left: -2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #888, #ddd, #aaa);
    transform-origin: bottom center;
    transform: rotate(-12deg);
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.35);
}

.slots-btn__lever-knob {
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff8a80, #c62828);
    border: 1px solid #5c0e19;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.slots-btn__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.05;
    pointer-events: none;
}

.slots-btn__label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #3d2e0a;
    text-shadow: 0 1px 0 rgba(255, 248, 220, 0.6);
}

.slots-btn__sub {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(61, 46, 10, 0.65);
    font-family: 'Barlow Condensed', sans-serif;
}

.play-button--slots.is-slots-spinning .slots-btn__reel {
    animation: slotsBtnReelShake 0.12s ease-in-out infinite;
}

.play-button--slots.is-slots-spinning .slots-btn__reel:nth-child(2) {
    animation-delay: 0.04s;
}

.play-button--slots.is-slots-spinning .slots-btn__reel:nth-child(3) {
    animation-delay: 0.08s;
}

.play-button--slots.is-slots-spinning .slots-btn__lever-arm {
    transform: rotate(28deg);
}

.play-button--slots.is-slots-spinning .slots-btn__lever-knob {
    transform: translateY(14px);
}

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

.play-button--bicho {
    position: relative;
    width: auto;
    min-width: 188px;
    height: 64px;
    padding: 0 22px 0 14px;
    margin: 0;
    border-radius: 12px;
    border: 2px solid rgba(240, 192, 64, 0.8);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 42%),
        linear-gradient(135deg, #c81e2e 0%, #9b1324 48%, #6f0e18 100%);
    box-shadow:
        0 8px 22px rgba(180, 20, 40, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -3px 8px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.play-button--bicho:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.06);
    border-color: #f0c040;
    box-shadow:
        0 10px 26px rgba(180, 20, 40, 0.55),
        0 0 0 3px rgba(240, 192, 64, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bicho-btn__paw {
    position: relative;
    z-index: 1;
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    animation: bichoPawIdle 2.4s ease-in-out infinite;
}

.bicho-btn__copy {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.bicho-btn__label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.play-button--bicho.is-drawing .bicho-btn__paw {
    animation: bichoPawBusy 0.35s ease-in-out infinite;
}

@keyframes bichoPawIdle {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-2px) rotate(4deg); }
}

@keyframes bichoPawBusy {
    0%, 100% { transform: scale(1) rotate(-8deg); }
    50% { transform: scale(1.08) rotate(8deg); }
}

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

@keyframes scratchTicketBusy {
    0%, 100% { transform: translateX(0) rotate(-3deg); }
    50% { transform: translateX(2px) rotate(3deg); }
}

@keyframes scratchFoilWipe {
    0% { clip-path: inset(0 0 0 0); opacity: 1; }
    50% { clip-path: inset(0 40% 0 0); opacity: 0.7; }
    100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

.spin-btn__wheel {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: conic-gradient(
        #dc2626 0deg 45deg,
        #111 45deg 90deg,
        #d4a017 90deg 135deg,
        #111 135deg 180deg,
        #dc2626 180deg 225deg,
        #111 225deg 270deg,
        #d4a017 270deg 315deg,
        #111 315deg 360deg
    );
    animation: spinBtnIdle 4.5s linear infinite;
    z-index: 0;
}

.spin-btn__hub {
    position: absolute;
    width: 58%;
    height: 58%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #2a2a2a, #0a0a0a 70%);
    border: 2px solid rgba(240, 192, 64, 0.55);
    z-index: 1;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.65);
}

.open-btn__glow {
    position: absolute;
    inset: -40% -20%;
    background: radial-gradient(ellipse at 30% 40%, rgba(255, 210, 90, 0.22), transparent 55%);
    pointer-events: none;
    animation: openGlowPulse 2.8s ease-in-out infinite;
}

.open-btn__gift {
    position: relative;
    width: 42px;
    height: 38px;
    flex-shrink: 0;
    transform-origin: 50% 80%;
    animation: openGiftIdle 2.6s ease-in-out infinite;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
    z-index: 1;
}

.open-btn__body {
    position: absolute;
    left: 5px;
    bottom: 0;
    width: 32px;
    height: 22px;
    border-radius: 3px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 34%),
        linear-gradient(145deg, #ff6b7a, #d42a42 55%, #8e1630);
    border: 1px solid rgba(60, 8, 16, 0.35);
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.open-btn__ribbon {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 7px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #8a6410, #ffe08a 42%, #e7b52d 60%, #8a6410);
}

.open-btn__mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #fff6d0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.open-btn__lid {
    position: absolute;
    left: 2px;
    top: 6px;
    width: 38px;
    height: 12px;
    transform-origin: 16% 100%;
    z-index: 2;
}

.open-btn__lid-face {
    position: absolute;
    inset: 0;
    border-radius: 3px 3px 1px 1px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, transparent 48%),
        linear-gradient(145deg, #ff7a88, #d42a42 60%, #9a1a30);
    border: 1px solid rgba(60, 8, 16, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.open-btn__lid-face::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 7px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #8a6410, #ffe08a 42%, #e7b52d 60%, #8a6410);
}

.open-btn__bow {
    position: absolute;
    left: 50%;
    top: -7px;
    width: 14px;
    height: 10px;
    transform: translateX(-50%);
    z-index: 3;
}

.open-btn__bow::before,
.open-btn__bow::after {
    content: '';
    position: absolute;
    top: 1px;
    width: 9px;
    height: 7px;
    border-radius: 50% 50% 40% 40%;
    background: radial-gradient(circle at 35% 30%, #fff0b8, #d4a017 70%, #9a7010);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.open-btn__bow::before { left: -1px; transform: rotate(-28deg); }
.open-btn__bow::after { right: -1px; transform: rotate(28deg) scaleX(-1); }

.open-btn__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
    pointer-events: none;
}

.open-btn__label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.open-btn__sub {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 236, 180, 0.85);
}

.play-button--open.is-opening .open-btn__gift {
    animation: openGiftShake 0.28s ease-in-out infinite;
}

.play-button--open.is-opening .open-btn__lid {
    animation: openLidPop 0.55s ease-in-out infinite;
}

.play-button--open.is-opening .open-btn__glow {
    animation: openGlowPulse 0.9s ease-in-out infinite;
}

.spin-btn__label {
    position: relative;
    z-index: 2;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.play-button--spin.is-spinning .spin-btn__wheel {
    animation: spinBtnFast 0.55s linear infinite;
}

.play-button--spin:disabled,
.play-button--open:disabled,
.play-button--scratch:disabled,
.play-button--slots:disabled,
.play-button--bicho:disabled {
    opacity: 1;
    cursor: wait;
}

@keyframes spinBtnIdle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinBtnFast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes openGlowPulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes openGiftIdle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    40% { transform: translateY(-2px) rotate(-2deg); }
    70% { transform: translateY(-1px) rotate(2deg); }
}

@keyframes openGiftShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-2px) rotate(-4deg); }
    75% { transform: translateX(2px) rotate(4deg); }
}

@keyframes openLidPop {
    0%, 100% { transform: rotate(0deg); }
    45% { transform: rotate(-42deg) translateY(-3px); }
    55% { transform: rotate(-38deg) translateY(-2px); }
}

.auto-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    padding: 8px 14px;
    border: 1px solid rgba(212, 160, 23, 0.35);
    border-radius: var(--radius);
    background: rgba(212, 160, 23, 0.06);
}

.auto-switch__label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f0c040;
    white-space: nowrap;
}

.auto-switch__track {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    width: 56px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #3a3a3a;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.auto-switch__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f0f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.auto-switch__track.is-on {
    background: linear-gradient(180deg, #f0c040, #d4a017);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 12px rgba(212, 160, 23, 0.35);
}

.auto-switch__track.is-on .auto-switch__knob {
    transform: translateX(26px);
    background: #1a1200;
}

.auto-switch__track:focus-visible {
    outline: 2px solid #f0c040;
    outline-offset: 3px;
}

@media (max-width: 520px) {
    .play-actions--roulette,
    .play-actions--special {
        flex-direction: column;
    }

    .auto-switch {
        flex-direction: row;
        justify-content: space-between;
        min-width: 0;
        width: 100%;
        max-width: 220px;
        padding: 12px 14px;
    }

    .play-dock .auto-switch,
    .play-dock__spin-row .auto-switch {
        flex-direction: column;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        padding: 8px 6px;
        gap: 5px;
    }

    .play-dock__spin-row {
        gap: 4px;
    }
}

.play-button:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px var(--red-glow);
}

.play-button:active:not(:disabled) {
    transform: translateY(1px);
}

.play-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.back-button {
    margin-top: 12px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    color: var(--gold-light);
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.back-button:hover {
    border-color: var(--gold);
    background: rgba(212, 160, 23, 0.08);
    color: var(--gold-light);
}

.game-container--wide {
    max-width: 1100px;
}

/* MODAL */
.modal, .result-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal.show, .result-modal.show { display: flex; }

.modal-content, .result-content {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    max-width: 440px;
    animation: scaleIn 0.35s ease;
}

.result-card {
    position: relative;
    width: min(100%, 380px);
    overflow: hidden;
    text-align: center;
    padding: 28px 24px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
        #121212;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    animation: scaleIn 0.35s ease;
}

.result-card__glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 160px;
    pointer-events: none;
    opacity: 0.55;
    filter: blur(28px);
    background: radial-gradient(circle, rgba(212, 160, 23, 0.45), transparent 70%);
}

.result-card.is-lose .result-card__glow {
    background: radial-gradient(circle, rgba(220, 38, 38, 0.35), transparent 70%);
}

.result-card.is-win .result-card__glow {
    background: radial-gradient(circle, rgba(240, 192, 64, 0.55), transparent 70%);
}

.result-card__badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    margin-bottom: 16px;
    border-radius: 999px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f0c040;
    background: rgba(212, 160, 23, 0.12);
    border: 1px solid rgba(212, 160, 23, 0.35);
}

.result-card.is-lose .result-card__badge {
    color: #ffb4b4;
    background: rgba(220, 38, 38, 0.14);
    border-color: rgba(220, 38, 38, 0.35);
}

.result-card__icon {
    position: relative;
    font-size: 42px;
    line-height: 1;
    margin-bottom: 14px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.result-card__title {
    position: relative;
    margin: 0 0 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.45rem, 4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    line-height: 1.2;
}

.result-card__sub {
    position: relative;
    margin: 0 0 18px;
    font-size: 14px;
    color: #9a9a9a;
    line-height: 1.45;
}

.result-card__prize {
    position: relative;
    display: inline-block;
    margin: 0 0 20px;
    padding: 10px 18px;
    border-radius: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #f0c040;
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid rgba(212, 160, 23, 0.35);
    text-shadow: 0 0 24px rgba(212, 160, 23, 0.35);
}

.result-card__prize[hidden] {
    display: none !important;
}

.result-card__btn {
    position: relative;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #ef4444, #991b1b);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.28);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.result-card.is-win .result-card__btn {
    background: linear-gradient(180deg, #f0c040, #d4a017);
    color: #1a1200;
    box-shadow: 0 8px 20px rgba(212, 160, 23, 0.28);
}

.result-card__btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* Depósito — saldo insuficiente e Pix */
.deposit-prompt-modal,
.pix-deposit-modal {
    z-index: 1400;
}

.deposit-prompt,
.pix-deposit {
    position: relative;
    width: min(420px, calc(100vw - 28px));
    max-height: min(92vh, 760px);
    overflow: auto;
    padding: 26px 22px 20px;
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(50, 188, 173, 0.16), transparent 55%),
        linear-gradient(180deg, #141a22 0%, #0c1016 100%);
    border: 2px solid rgba(50, 188, 173, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    text-align: center;
}

.deposit-prompt__glow,
.pix-deposit__glow {
    position: absolute;
    inset: -20% -10% auto;
    height: 55%;
    background: radial-gradient(ellipse, rgba(50, 188, 173, 0.14), transparent 70%);
    pointer-events: none;
}

.deposit-prompt__badge,
.pix-deposit__badge {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pix);
    background: rgba(50, 188, 173, 0.12);
    border: 1px solid rgba(50, 188, 173, 0.35);
}

.deposit-prompt__icon {
    position: relative;
    font-size: 42px;
    line-height: 1;
    margin: 4px 0 10px;
}

.deposit-prompt__title,
.pix-deposit__title {
    position: relative;
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc;
}

.deposit-prompt__message {
    position: relative;
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(248, 250, 252, 0.82);
}

.deposit-prompt__actions {
    position: relative;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.deposit-prompt__btn {
    min-width: 130px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.deposit-prompt__btn--ghost {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.deposit-prompt__btn--pix {
    color: #022;
    background: linear-gradient(180deg, #4fd4c6 0%, var(--pix) 100%);
    box-shadow: 0 4px 14px rgba(50, 188, 173, 0.35);
}

.deposit-prompt__btn:hover,
.pix-deposit__submit:hover,
.pix-deposit__copy:hover {
    transform: translateY(-1px);
}

.pix-deposit {
    text-align: left;
    padding-top: 22px;
}

.pix-deposit__head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pix-deposit__sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.pix-deposit__close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.pix-deposit__feedback {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.pix-deposit__feedback.is-ok {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.pix-deposit__feedback.is-error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.pix-deposit__bonus-hint {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.pix-deposit__bonus-hint-title {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.pix-deposit__bonus-hint-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(251, 191, 36, 0.95);
}

.pix-deposit__bonus-hint-text strong {
    color: #fde68a;
}

.pix-deposit__field {
    display: block;
    margin-bottom: 14px;
}

.pix-deposit__field span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.pix-deposit__field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 16px;
}

.pix-deposit__keybox {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.pix-deposit__keylabel {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.pix-deposit__keyrow {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pix-deposit__key {
    flex: 1;
    font-family: monospace;
    font-size: 12px;
    color: var(--pix);
    word-break: break-all;
}

.pix-deposit__copy {
    flex-shrink: 0;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(50, 188, 173, 0.15);
    color: var(--pix);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.pix-deposit__qr {
    margin-bottom: 16px;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    background: linear-gradient(135deg, #1e3a5f, #0f2744);
    border: 1px solid var(--border);
}

.pix-deposit__qr-icon {
    font-size: 42px;
    margin-bottom: 6px;
}

.pix-deposit__qr-title {
    font-weight: 700;
}

.pix-deposit__qr-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.pix-deposit__submit {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #022;
    background: linear-gradient(180deg, #4fd4c6 0%, var(--pix) 100%);
    box-shadow: 0 4px 14px rgba(50, 188, 173, 0.35);
    cursor: pointer;
}

.modal-title, .result-emoji { font-size: 48px; margin-bottom: 16px; }

.modal-message, .result-message {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text);
}

.result-prize {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 24px;
    text-shadow: 0 0 24px var(--gold-glow);
}

.modal-close, .result-button {
    padding: 12px 28px;
    background: var(--red);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: var(--transition);
}

.modal-close:hover, .result-button:hover {
    background: var(--red-bright);
}

/* ROULETTE (game) */
.roleta-demo { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0; }
.roleta-demo__stage { position: relative; width: 280px; height: 280px; }
.roleta-demo__pointer {
    position: absolute; top: -4px; left: 50%; transform: translateX(-50%); z-index: 3;
    width: 0; height: 0;
    border-left: 12px solid transparent; border-right: 12px solid transparent;
    border-top: 22px solid var(--gold);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
.roleta-demo__wheel-wrap {
    width: 100%; height: 100%; border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow: 0 0 32px var(--red-glow), inset 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden; background: #0a0a0a; position: relative;
}
.roleta-demo__wheel-inner { width: 100%; height: 100%; transform: rotate(0deg); }
.roleta-demo__wheel-inner.is-spinning { transition: transform 4.2s cubic-bezier(0.15, 0.85, 0.2, 1); }
.roleta-demo__wheel { width: 100%; height: 100%; display: block; }
.roleta-demo__hub {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold));
    border: 3px solid #fff; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; font-family: 'Barlow Condensed', sans-serif;
    color: #1a0a00; pointer-events: none;
}

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .topbar-search { display: none; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-toggle {
        display: inline-flex;
    }
    .sidebar-backdrop:not([hidden]) {
        display: block;
    }
    .main-content { margin-left: 0; }
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    body.page-dashboard .games-grid { grid-template-columns: 1fr; }

    .page-game .main-content--game,
    .page-game .page-content--game,
    .page-game .game-container {
        overflow-x: clip;
        max-width: 100%;
    }

    .page-game .game-container {
        padding: 14px 10px 18px;
        border-radius: 12px;
        margin: 0 6px;
        width: calc(100% - 12px);
    }

    .page-game--roulette .game-container {
        padding: 10px 8px 12px;
    }

    .play-dock {
        left: 0;
        right: 0;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
        max-width: 100vw;
        box-sizing: border-box;
    }
    .play-dock__bar {
        gap: 8px;
        padding: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .play-dock__packages {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }
    .rounds-pkg--dock {
        padding: 7px 4px;
    }
    .rounds-pkg--dock .rounds-pkg__qty {
        font-size: 13px;
    }
    .rounds-pkg--dock .rounds-pkg__price {
        font-size: 10px;
    }
    .play-dock__controls {
        gap: 8px;
    }
    .play-dock__stat {
        flex: 0 0 auto;
        min-width: 64px;
    }
    .play-dock .play-button--spin {
        width: 72px;
        height: 72px;
        min-width: 72px;
    }
    .play-dock-spacer {
        height: 280px;
    }

    .page-game--rounds {
        --play-dock-h: 270px;
    }

    .page-game--rounds .play-dock-spacer {
        display: none;
        height: 0;
    }

    .page-game--rounds .game-container {
        margin: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 8px 8px calc(var(--play-dock-h, 270px) + 4px);
        max-height: 100dvh;
    }
}
