:root {
    --bg: #0f1923;
    --bg-soft: #1a242d;
    --card: #1f2830;
    --card-2: #252f38;
    --line: #323b45;
    --line-soft: rgba(140, 144, 153, 0.18);
    --text: #ffffff;
    --text-soft: #b1bad3;
    --text-dim: #8c9099;
    --accent: #f12c4c;
    --accent-dark: #cc2843;
    --success: #0ce385;
    --black-tile: #0a1219;
    --white-tile: #ffffff;
    --radius: 4px;
    --radius-lg: 12px;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top right, rgba(241, 44, 76, 0.18), transparent 32%),
        radial-gradient(circle at left center, rgba(255, 255, 255, 0.03), transparent 24%),
        var(--bg);
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.flash-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
}

.flash {
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line-soft);
    background: rgba(15, 25, 35, 0.92);
    box-shadow: var(--shadow);
    color: var(--text);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.flash.is-dismissing {
    opacity: 0;
    transform: translateY(-8px);
}

.flash-success {
    border-color: rgba(12, 227, 133, 0.35);
}

.flash-error {
    border-color: rgba(241, 44, 76, 0.45);
}

.guest-shell {
    width: min(1320px, calc(100vw - 32px));
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.95fr;
    gap: 24px;
    align-items: center;
    padding: 40px 0;
}

.guest-hero,
.auth-card,
.panel-card,
.stage-card,
.controller-card,
.admin-sidebar,
.admin-card {
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(37, 47, 56, 0.95), rgba(26, 36, 45, 0.96));
    box-shadow: var(--shadow);
}

.guest-hero {
    padding: 36px;
    border-radius: 24px;
}

.hero-badge,
.panel-label,
.brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: var(--text-dim);
}

.guest-hero h1,
.stage-card h1,
.auth-heading h2,
.panel-card h2 {
    margin: 10px 0 0;
    line-height: 1;
}

.guest-hero h1 {
    font-size: clamp(42px, 5vw, 72px);
    max-width: 12ch;
}

.guest-hero p {
    max-width: 56ch;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-soft);
}

.hero-preview {
    margin: 32px 0;
    padding: 18px;
    border-radius: 16px;
    background: rgba(10, 18, 25, 0.68);
    border: 1px solid var(--line-soft);
    overflow: hidden;
}

.preview-track,
.roulette-strip {
    display: flex;
    gap: 12px;
    align-items: center;
}

.preview-tile,
.roulette-tile {
    width: 78px;
    height: 78px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.08);
}

.tile-red,
.roulette-tile.tile-red {
    background: var(--accent);
    color: var(--text);
}

.tile-black,
.roulette-tile.tile-black {
    background: var(--black-tile);
    color: var(--text);
}

.tile-white,
.roulette-tile.tile-white {
    background: var(--white-tile);
    color: var(--accent);
}

.hero-stats,
.metric-grid,
.admin-grid {
    display: grid;
    gap: 16px;
}

.hero-stats,
.metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.metric-card,
.admin-card {
    padding: 18px;
    border-radius: 16px;
    background: rgba(10, 18, 25, 0.52);
}

.stat-card span,
.metric-card span,
.admin-card span {
    display: block;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.stat-card strong,
.metric-card strong,
.admin-card strong {
    font-size: 24px;
}

.auth-shell {
    display: grid;
    gap: 24px;
}

.auth-shell-single {
    grid-template-columns: minmax(320px, 520px);
    justify-content: center;
}

.auth-card {
    border-radius: 24px;
    padding: 28px;
}

.auth-heading span {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
}

.auth-form,
.bet-form,
.settings-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.field,
.auth-form label {
    display: grid;
    gap: 8px;
}

.field span,
.auth-form span {
    color: var(--text-soft);
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 18, 25, 0.7);
    color: var(--text);
    border-radius: 12px;
    padding: 14px 16px;
    outline: none;
}

input:focus {
    border-color: rgba(241, 44, 76, 0.55);
    box-shadow: 0 0 0 3px rgba(241, 44, 76, 0.12);
}

textarea:focus {
    border-color: rgba(241, 44, 76, 0.55);
    box-shadow: 0 0 0 3px rgba(241, 44, 76, 0.12);
    outline: none;
}

input[readonly] {
    background: rgba(18, 27, 37, 0.9);
    color: var(--text-soft);
    cursor: default;
}

.primary-btn,
.ghost-btn,
.ghost-link,
.admin-nav-link {
    transition: 0.2s ease;
}

.primary-btn {
    border: 0;
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    color: var(--text);
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 700;
}

.primary-btn:hover {
    filter: brightness(1.08);
}

.primary-btn-wide {
    width: 100%;
}

.ghost-btn,
.ghost-link {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 18, 25, 0.45);
    color: var(--text-soft);
    border-radius: 12px;
    padding: 12px 14px;
}

.ghost-btn:hover,
.ghost-link:hover,
.admin-nav-link:hover {
    border-color: rgba(241, 44, 76, 0.35);
    color: var(--text);
}

.auth-note,
.form-hint {
    color: var(--text-dim);
    font-size: 13px;
}

body.guest-body {
    background: #0F1923;
    color: #ffffff;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.guest-body .flash-stack {
    top: 96px;
    right: max(20px, 5vw);
    z-index: 120;
}

.guest-body .flash {
    background: rgba(20, 20, 20, 0.94);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.guest-login-page {
    min-height: 100vh;
    padding-bottom: 40px;
}

.guest-login-nav,
.guest-login-hero,
.guest-login-main,
.guest-login-footer {
    width: min(1280px, calc(100vw - 40px));
    margin: 0 auto;
}

.guest-login-nav {
    position: sticky;
    top: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    background: #0F1923
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.guest-login-brand {
    display: inline-flex;
    align-items: center;
}

.guest-login-brand-image {
    display: block;
    max-height: 34px;
    width: auto;
    max-width: min(220px, 48vw);
}

.guest-login-brand-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.guest-login-nav-actions,
.guest-login-hero-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.guest-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.guest-login-btn:hover {
    transform: translateY(-1px);
}

.guest-login-btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.guest-login-btn-primary:hover {
    background: var(--accent-dark);
}

.guest-login-btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.84);
}

.guest-login-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.guest-login-btn-large,
.guest-login-btn-submit {
    min-height: 52px;
    padding-inline: 28px;
}

.guest-login-btn-submit {
    width: 100%;
}

.guest-login-hero {
    padding: 88px 0 64px;
    text-align: center;
    border-bottom: 1px solid #FFFFFF;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(5, 5, 5, 0) 100%);
}

.guest-login-hero h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.25rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.guest-login-hero p {
    max-width: 700px;
    margin: 18px auto 0;
    color: #a3a3a3;
    font-size: 1.18rem;
    line-height: 1.65;
}

.guest-login-main {
    padding-top: 52px;
}

.guest-login-section + .guest-login-section {
    margin-top: 56px;
}

.guest-login-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 28px;
    font-size: 1.8rem;
    line-height: 1.2;
}

.guest-login-section-title::before {
    content: "";
    width: 5px;
    height: 26px;
    border-radius: 999px;
    background: var(--accent);
}

.guest-games-grid,
.guest-auth-grid {
    display: grid;
    gap: 24px;
}

.guest-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guest-auth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guest-auth-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 32px;
    border: 1px solid #222222;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(241, 44, 76, 0.14), transparent 36%),
        linear-gradient(145deg, #141414, #0f0f0f);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.18);
}

.guest-auth-launch-copy {
    display: grid;
    gap: 12px;
    max-width: 620px;
}

.guest-auth-launch-kicker {
    color: #a3a3a3;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.guest-auth-launch h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.05;
}

.guest-auth-launch p,
.guest-auth-modal-note {
    margin: 0;
    color: #a3a3a3;
    line-height: 1.65;
}

.guest-auth-launch-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.guest-game-card,
.guest-auth-card {
    border: 1px solid #222222;
    border-radius: 12px;
    background: #141414;
    color: #ffffff;
    overflow: hidden;
}

.guest-game-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.guest-game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(241, 44, 76, 0.55);
    box-shadow: 0 18px 28px rgba(229, 9, 20, 0.1);
}

.guest-game-thumb {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 24px;
    background: linear-gradient(145deg, #111111, #232323);
}

.guest-game-thumb-double {
    background: radial-gradient(circle at center, #232323 0%, #000000 100%);
}

.guest-double-circles {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guest-double-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.45);
}

.guest-double-circle-red {
    background: var(--accent);
}

.guest-double-circle-white {
    background: #ffffff;
}

.guest-double-circle-black {
    background: #111111;
    border: 2px solid #333333;
}

.guest-game-thumb-crash::before {
    content: "";
    position: absolute;
    width: 122px;
    height: 66px;
    background: linear-gradient(135deg, transparent 0 20%, rgba(241, 44, 76, 0.1) 20% 28%, transparent 28% 42%, rgba(241, 44, 76, 0.75) 42% 48%, transparent 48% 58%, rgba(241, 44, 76, 1) 58% 66%, transparent 66%);
    transform: rotate(-4deg);
    opacity: 0.95;
}

.guest-thumb-copy {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
}

.guest-game-thumb-slots {
    background: linear-gradient(135deg, #0f0f0f 0%, #2a2a2a 100%);
}

.guest-slot-reels {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guest-slot-reels span {
    width: 52px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    font-size: 2rem;
    font-weight: 900;
}

.guest-game-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
}

.guest-game-info h3,
.guest-auth-heading h2 {
    margin: 0;
}

.guest-game-info p {
    margin: 6px 0 0;
    color: #a3a3a3;
    font-size: 0.92rem;
}

.guest-play-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.guest-auth-card {
    padding: 28px;
    scroll-margin-top: 108px;
}

.guest-auth-heading span {
    display: inline-block;
    margin-bottom: 10px;
    color: #a3a3a3;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.guest-auth-heading h2 {
    font-size: 1.9rem;
    line-height: 1.1;
}

.guest-auth-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.guest-auth-form label {
    display: grid;
    gap: 8px;
}

.guest-auth-form span {
    color: #e5e5e5;
    font-size: 0.93rem;
    font-weight: 600;
}

.guest-auth-form input {
    width: 100%;
    min-height: 50px;
    border: 1px solid #2f2f2f;
    border-radius: 8px;
    background: #0f0f0f;
    color: #ffffff;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.guest-auth-form input::placeholder {
    color: #7e7e7e;
}

.guest-auth-form input:focus {
    border-color: rgba(241, 44, 76, 0.8);
    box-shadow: 0 0 0 3px rgba(241, 44, 76, 0.14);
    background: #121212;
}

.guest-auth-note {
    margin: 18px 0 0;
    color: #a3a3a3;
    font-size: 0.88rem;
    line-height: 1.6;
}

.wallet-modal.guest-auth-modal {
    z-index: 160;
}

.guest-body .wallet-modal-backdrop {
    z-index: 150;
}

.wallet-modal-card.guest-auth-modal-card {
    width: min(520px, calc(100vw - 24px));
    padding: 26px;
}

.guest-login-footer {
    margin-top: 56px;
    padding: 30px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #a3a3a3;
    font-size: 0.92rem;
}

.guest-login-footer p {
    margin: 0;
}

.guest-login-footer-note {
    margin-top: 10px;
    font-size: 0.82rem;
}

@media (max-width: 960px) {
    .guest-login-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .guest-games-grid,
    .guest-auth-grid {
        grid-template-columns: 1fr;
    }

    .guest-auth-launch {
        flex-direction: column;
        align-items: flex-start;
    }

    .guest-login-hero {
        padding-top: 72px;
    }
}

@media (max-width: 680px) {
    .guest-login-nav,
    .guest-login-hero,
    .guest-login-main,
    .guest-login-footer {
        width: min(100vw - 24px, 100%);
    }

    .guest-body .flash-stack {
        top: 136px;
        right: 12px;
        width: min(100vw - 24px, 100%);
    }

    .guest-login-nav-actions,
    .guest-login-hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .guest-login-btn {
        width: 100%;
    }

    .guest-login-hero {
        padding: 56px 0 48px;
    }

    .guest-login-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.2rem);
    }

    .guest-login-hero p {
        font-size: 1rem;
    }

    .guest-game-thumb {
        min-height: 160px;
    }

    .guest-auth-launch {
        padding: 22px;
    }

    .guest-auth-launch-actions {
        width: 100%;
        flex-direction: column;
    }

    .guest-auth-launch-actions .guest-login-btn {
        width: 100%;
    }

    .guest-auth-card {
        padding: 22px;
    }

    .wallet-modal-card.guest-auth-modal-card {
        padding: 22px;
    }
}

.topbar {
    width: min(1400px, calc(100vw - 32px));
    margin: 20px auto 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 18px;
    background: rgba(15, 25, 35, 0.82);
    border: 1px solid var(--line-soft);
    backdrop-filter: blur(14px);
}

.brand-lockup,
.topbar-actions,
.balance-pill {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--accent), #ff7a93);
    box-shadow: 0 0 18px rgba(241, 44, 76, 0.55);
}

.balance-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(10, 18, 25, 0.62);
    border: 1px solid var(--line-soft);
    color: var(--text-soft);
}

.balance-pill strong {
    color: var(--text);
}

.game-shell {
    width: min(1400px, calc(100vw - 32px));
    margin: 20px auto 32px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr) 340px;
    gap: 20px;
}

.panel-card,
.stage-card {
    border-radius: 24px;
    padding: 24px;
}

.controller-card h2,
.stage-card h1,
.panel-card h2 {
    font-size: 30px;
}

.quick-row,
.color-picker,
.sidebar-stack,
.list-stack,
.admin-content,
.table-wrap,
.inline-form,
.timer-line,
.stage-top,
.roulette-stage {
    display: grid;
    gap: 14px;
}

.quick-row {
    grid-template-columns: repeat(3, 1fr);
}

.color-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.color-option {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px 12px;
    background: linear-gradient(180deg, rgba(241, 44, 76, 0.18), rgba(241, 44, 76, 0.08));
    color: var(--text);
    display: grid;
    gap: 4px;
    text-align: center;
}

.color-option span {
    color: rgba(255, 255, 255, 0.75);
}

.color-option-white {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(233, 237, 242, 0.92));
    color: var(--accent);
}

.color-option-white span {
    color: rgba(241, 44, 76, 0.8);
}

.color-option-black {
    background: linear-gradient(180deg, rgba(18, 24, 31, 0.98), rgba(8, 12, 17, 0.98));
}

.color-option.is-active {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.inline-feedback {
    min-height: 20px;
    color: var(--text-soft);
    font-size: 14px;
}

.stage-card {
    display: grid;
    gap: 20px;
}

.stage-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.status-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(241, 44, 76, 0.12);
    border: 1px solid rgba(241, 44, 76, 0.26);
    color: var(--text);
}

.timer-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(10, 18, 25, 0.6);
    border: 1px solid var(--line-soft);
}

.progress-track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #ff738e);
    transition: width 0.4s linear;
}

.timer-line {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 12px;
}

.timer-line span {
    color: var(--text-soft);
}

.roulette-stage {
    position: relative;
    padding: 34px 18px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(10, 18, 25, 0.72), rgba(10, 18, 25, 0.9));
    border: 1px solid var(--line-soft);
    overflow: hidden;
}

.roulette-pointer {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--accent);
    border-radius: 4px;
    box-shadow: 0 0 16px rgba(241, 44, 76, 0.55);
}

.roulette-strip {
    min-height: 92px;
    padding: 8px 6px 4px;
    overflow-x: auto;
}

.roulette-strip.is-animating {
    animation: pulseStrip 0.7s ease;
}

@keyframes pulseStrip {
    0% { transform: translateX(0); }
    30% { transform: translateX(-8px); }
    60% { transform: translateX(6px); }
    100% { transform: translateX(0); }
}

.roulette-tile .tile-number {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 4px solid rgba(255, 255, 255, 0.92);
}

.roulette-tile.tile-black .tile-number {
    border-color: rgba(255, 255, 255, 0.25);
}

.roulette-tile.tile-white .tile-number {
    width: auto;
    height: auto;
    border: 0;
}

.white-gem {
    width: 42px;
    height: 42px;
}

.history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(10, 18, 25, 0.55);
    border: 1px solid var(--line-soft);
}

.history-item strong {
    display: block;
}

.history-item span {
    color: var(--text-dim);
    font-size: 13px;
}

.history-item.is-positive > strong:last-child {
    color: var(--success);
}

.sidebar-stack {
    align-content: start;
}

.empty-state {
    padding: 18px;
    border-radius: 16px;
    background: rgba(10, 18, 25, 0.48);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    text-align: center;
}

.admin-shell {
    width: min(1400px, calc(100vw - 32px));
    margin: 20px auto 32px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
}

.admin-sidebar {
    border-radius: 24px;
    padding: 18px;
    align-content: start;
    display: grid;
    gap: 10px;
}

.admin-nav-link {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    color: var(--text-soft);
    background: rgba(10, 18, 25, 0.42);
    border: 1px solid transparent;
}

.admin-nav-link.is-active {
    color: var(--text);
    border-color: rgba(241, 44, 76, 0.32);
    background: rgba(241, 44, 76, 0.12);
}

.admin-content {
    align-content: start;
}

.admin-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
}

.rtp-control-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 18, 25, 0.55);
}

.rtp-control-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.rtp-control-head strong {
    display: block;
    font-size: 18px;
}

.rtp-control-head span {
    display: block;
    margin-top: 6px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.5;
}

.rtp-badge {
    min-width: 96px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(241, 44, 76, 0.14);
    border: 1px solid rgba(241, 44, 76, 0.22);
    color: var(--text);
    text-align: center;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    margin: 0;
    appearance: none;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(241, 44, 76, 0.85), rgba(241, 44, 76, 0.35));
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    appearance: none;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

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

.rtp-preview-card {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.rtp-preview-card span {
    display: block;
    color: var(--text-dim);
    font-size: 12px;
    margin-bottom: 8px;
}

.rtp-preview-card strong {
    font-size: 20px;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}

.data-table th {
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.data-table td span {
    display: block;
    color: var(--text-dim);
    margin-top: 4px;
    font-size: 13px;
}

.inline-form {
    grid-template-columns: 120px minmax(0, 1fr) auto;
    margin-bottom: 10px;
}

.inline-form-short {
    grid-template-columns: auto;
}

@media (max-width: 1160px) {
    .guest-shell,
    .game-shell,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .hero-stats,
    .metric-grid,
    .admin-grid,
    .admin-grid.two-columns,
    .color-picker,
    .rtp-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .guest-shell,
    .topbar,
    .game-shell,
    .admin-shell {
        width: min(100vw - 20px, 100%);
    }

    .hero-stats,
    .metric-grid,
    .admin-grid,
    .admin-grid.two-columns,
    .quick-row,
    .color-picker,
    .stage-top,
    .rtp-preview-grid {
        grid-template-columns: 1fr;
    }

    .preview-tile,
    .roulette-tile {
        width: 64px;
        height: 64px;
        font-size: 22px;
    }

    .topbar,
    .topbar-actions,
    .brand-lockup {
        flex-wrap: wrap;
    }

    .wallet-history-grid,
    .wallet-affiliate-stats {
        grid-template-columns: 1fr;
    }

    .wallet-modal {
        padding: 14px;
    }

    .panel-card,
    .stage-card,
    .guest-hero,
    .auth-card {
        padding: 18px;
    }

    .rtp-control-head {
        flex-direction: column;
    }
}

@font-face {
    font-family: SofiaPro;
    src: url("https://blaze.bet.br/static/font/SofiaPro-Regular.705232bd.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: SofiaPro;
    src: url("https://blaze.bet.br/static/font/SofiaPro-Medium.6bcefc48.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: SofiaPro;
    src: url("https://blaze.bet.br/static/font/SofiaPro-SemiBold.83344354.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: SofiaPro;
    src: url("https://blaze.bet.br/static/font/SofiaPro-Bold.6c051b3c.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: SofiaPro;
    src: url("https://blaze.bet.br/static/font/SofiaPro-Black.6a22fe9b.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: RobotoMono;
    src: url("https://blaze.bet.br/static/font/RobotoMono-Medium.af8c4ae6.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.game-body {
    --nav-height: 72px;
    --leftbar-width: 245px;
    --sidebar-width: 0px;
    --separator: #323b45;
    --separator-two: #353e4c;
    --background: #0f1923;
    --background-two: #1a242d;
    --background-three: #252f38;
    --background-four: #1d2730;
    --dark-background-four: #262f3c;
    --light-background: #1b242f;
    --light-grey: #8c9099;
    --white-grey: #aab0c3;
    --red: #f12c4c;
    --dark-red: #cc2843;
    --charcoal-grey: #343b4a;
    --rouge: #8c1024;
    --lime-green-two: #06e385;
    --content-width: 1104px;
    background: var(--background);
    color: #fff;
    font-family: SofiaPro, Roboto, sans-serif, Nasalization, sans-serif;
}

.game-body .flash-stack {
    top: 86px;
}

.blaze-game-app {
    min-height: 100vh;
}

.game-body .roulette-tile {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    flex: 0 0 auto;
}

.game-body #fixed-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
}

.game-body #header {
    height: var(--nav-height);
    z-index: 1000;
    border-bottom: 1px solid var(--separator);
    background: var(--background);
}

.game-body #header,
.game-body #header > div,
.game-body #header .right,
.game-body #header .right .content,
.game-body #header .subcategory-row,
.game-body #header .account,
.game-body #header .routes,
.game-body #header .content-first,
.game-body #header .wallet,
.game-body #header .wallet > div,
.game-body #header .user-rank-progress .top,
.game-body #header .icons,
.game-body .notification.notice,
.game-body .game-controller-container,
.game-body .game-controller-container .controller .tabbed-nav,
.game-body .bet-input-row,
.game-body #roulette-controller .side .select,
.game-body .controller-meta,
.game-body .casino-extras,
.game-body .game-wrapper,
.game-body .game-inner,
.game-body #roulette-slider .wrapper,
.game-body #roulette-slider .entries,
.game-body .roulette-tile,
.game-body .network,
.game-body .roulette-previous,
.game-body .roulette-previous .entries,
.game-body .segment-summary,
.game-body .bet-panels-grid,
.game-body .description-layout,
.game-body .bet-list-item {
    display: flex;
}

.game-body #header .left {
    position: absolute;
    inset: 0 auto 0 0;
    align-items: center;
}

.game-body #header .right {
    margin-left: var(--leftbar-width);
    flex: 1 1 0%;
    height: 100%;
}

.game-body #header .right .content {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    max-width: calc(100vw - var(--leftbar-width) - 24px);
    padding-right: 24px;
    gap: 16px;
}

.game-body #header .left-bar-action {
    display: flex;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 12px;
    margin-right: 16px;
}

.game-body #header .left-bar-action:hover {
    background: rgba(141, 146, 151, 0.15);
}

.game-body #header .left-bar-action img {
    width: 20px;
    height: 20px;
}

.game-body #header #logo {
    width: 109px;
    display: block;
}

.game-body #header #logo img {
    width: 100%;
    display: block;
}

.game-body #header .subcategory-row {
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 10px;
    gap: 0;
    min-width: 0;
}

.game-body #header .subcategory-col {
    flex: 0 0 auto;
    height: 100%;
}

.game-body #header .subcategory {
    display: flex;
    text-transform: uppercase;
    color: var(--light-grey);
    justify-content: center;
    align-items: center;
    height: 100%;
    min-width: 0;
    padding: 0 15px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
}

.game-body #header .subcategory svg {
    height: 15px;
    margin-right: 5px;
    flex: 0 0 auto;
}

.game-body #header .subcategory:hover,
.game-body #header .subcategory.active {
    border-bottom-color: var(--red);
    color: #fff;
}

.game-body #header .subcategory:hover svg *,
.game-body #header .subcategory.active svg * {
    fill: #fff !important;
}

.game-body #header .routes {
    align-items: center;
    margin-left: auto;
    gap: 12px;
    min-width: 0;
    flex: 0 0 auto;
}

.game-body #header .account {
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: nowrap;
}

.game-body #header .user-rank-progress {
    width: 140px;
    cursor: default;
    overflow: hidden;
    margin-right: 0;
    flex: 0 0 auto;
}

.game-body #header .user-rank-progress .user-rank {
    margin-right: 21px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.game-body #header .user-rank-progress img {
    width: 16px;
    height: 16px;
}

.game-body #header .user-rank-progress .rank-name,
.game-body #header .user-rank-progress .level {
    font-size: 12px;
}

.game-body #header .user-rank-progress .level {
    color: rgb(188, 191, 199);
}

.game-body #header .user-rank-progress .progress-bar {
    margin-top: 4px;
    width: 100%;
    height: 4px;
    background: var(--separator-two);
    border-radius: 2px;
    overflow: hidden;
}

.game-body #header .user-rank-progress .progress {
    height: 100%;
}

.game-body #header .icons {
    align-items: center;
    margin: 0 6px 0 0;
    flex: 0 0 auto;
}

.game-body .wallet-more-menu {
    position: relative;
}

.game-body .wallet-more-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(25, 35, 46, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
}

.game-body .wallet-more-toggle span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    display: block;
}

.game-body .wallet-more-toggle:hover,
.game-body .wallet-more-toggle[aria-expanded="true"] {
    border-color: rgba(241, 44, 76, 0.35);
    background: rgba(41, 55, 70, 0.98);
}

.game-body .wallet-more-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 184px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(15, 25, 35, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    display: grid;
    gap: 4px;
    z-index: 35;
}

.game-body .wallet-more-dropdown[hidden] {
    display: none !important;
}

.game-body .wallet-dropdown-item {
    width: 100%;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    padding: 10px 12px;
    white-space: nowrap;
}

.game-body .wallet-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.game-body .wallet-dropdown-item.is-link {
    display: block;
}

.game-body .notification.notice {
    position: relative;
    align-items: center;
}

.game-body .notification.notice img {
    width: 16px;
    height: 16px;
}

.game-body .notification.notice div {
    position: absolute;
    top: -8px;
    right: -12px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--red);
    border: 2px solid var(--background);
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 700;
}

.game-body #header .wallet-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
    min-width: 0;
    flex: 0 1 auto;
}

.game-body #header .wallet {
    color: #fff;
    letter-spacing: 1px;
    gap: 10px;
    align-items: center;
}

.game-body #header .wallet img {
    width: 15px;
    height: 15px;
}

.game-body #header .wallet .type {
    display: block;
    color: #3aea62;
    font-size: 10px;
    text-transform: uppercase;
}

.game-body #header .wallet strong {
    display: block;
    font-size: 14px;
    line-height: 1;
}

.game-body #header .wallet-balance-card {
    min-width: 138px;
    padding: 9px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(25, 35, 46, 0.92);
    justify-content: space-between;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    flex: 0 0 auto;
}

.game-body #header .wallet-balance-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(30, 42, 55, 0.96);
    transform: translateY(-1px);
}

.game-body #header .wallet-balance-card > div {
    display: grid;
    gap: 2px;
}

.game-body #header .wallet-shortcuts {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: nowrap;
    min-width: 0;
}

.game-body #header .wallet-shortcut-btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(25, 35, 46, 0.88);
    color: var(--white-grey);
    padding: 6px 9px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.game-body #header .wallet-shortcut-btn:hover {
    border-color: rgba(241, 44, 76, 0.35);
    color: #fff;
    background: rgba(41, 55, 70, 0.98);
}

.game-body #header .link,
.game-body #header .user-profile-link {
    color: var(--light-grey);
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.game-body #header .link.selected,
.game-body #header .link:hover,
.game-body #header .user-profile-link:hover {
    color: #fff;
}

.wallet-modal-open {
    overflow: hidden;
}

.wallet-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(4, 10, 14, 0.68);
    backdrop-filter: blur(4px);
}

.wallet-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}

.wallet-modal[hidden],
.wallet-modal-backdrop[hidden] {
    display: none !important;
}

.wallet-modal-card {
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(26, 36, 45, 0.98), rgba(15, 25, 35, 0.98));
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
}

.wallet-modal-card-wide {
    width: min(980px, calc(100vw - 32px));
}

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

.wallet-modal-header h3,
.wallet-history-grid h4 {
    margin: 0;
}

.wallet-modal-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 22px;
    line-height: 1;
}

.wallet-modal-close:hover {
    color: var(--text);
    border-color: rgba(241, 44, 76, 0.28);
}

.wallet-form {
    display: grid;
    gap: 14px;
}

.wallet-feedback {
    min-height: 21px;
    margin-top: 14px;
    color: var(--success);
    font-size: 13px;
}

.wallet-feedback.is-error {
    color: var(--accent);
}

.wallet-result {
    margin-top: 18px;
    display: grid;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-qr-image {
    width: 240px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 auto;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
}

.wallet-textarea {
    min-height: 110px;
    resize: vertical;
}

.wallet-history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wallet-history-list {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.wallet-affiliate-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.logo-preview-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-preview-card span {
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.logo-preview-card img {
    max-width: 180px;
    max-height: 52px;
    object-fit: contain;
}

.brand-logo {
    max-width: 130px;
    max-height: 30px;
    object-fit: contain;
    display: block;
}

.auth-card .brand-logo {
    margin-bottom: 18px;
}

.game-body #leftbar {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    bottom: 0;
    width: var(--leftbar-width);
    min-width: var(--leftbar-width);
    background: var(--background);
    border-right: 1px solid var(--separator);
    overflow-y: auto;
    padding: 0 0 24px;
    z-index: 10;
    scrollbar-width: none;
}

.game-body #leftbar::-webkit-scrollbar {
    display: none;
}

.game-body .leftbar-header {
    padding: 22px 0 8px 24px;
}

.game-body .leftbar-header img {
    width: 109px;
    display: block;
}

.game-body .casino-group-open,
.game-body .casino-group-open li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.game-body .casino-group-open {
    margin: 22px 0 -8px;
}

.game-body #leftbar ul li {
    width: 100%;
    padding: 8px 0;
}

.game-body .menu-collapse-dropdown {
    color: var(--light-grey);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 34px;
}

.game-body .menu-collapse-icon {
    color: #fff;
    font-size: 10px;
}

.game-body .menu-collapse-icon svg {
    display: block;
}

.game-body #leftbar .theme-blaze {
    color: var(--light-grey);
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 24px;
    padding: 0 10px 0 32px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
}

.game-body #leftbar .theme-active {
    color: #fff;
    background: transparent;
    border-right: 3px solid var(--red);
}

.game-body #leftbar .theme-blaze:hover {
    color: #fff;
}

.game-body .menu-icon-svg {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
}

.game-body .menu-icon-svg svg {
    width: 100%;
    height: 100%;
}

.game-body #leftbar .theme-active .menu-icon-svg svg *,
.game-body #leftbar .theme-blaze:hover .menu-icon-svg svg * {
    fill: #fff !important;
}

.game-body .leftbar-footer {
    margin-top: 24px;
    padding: 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.game-body .leftbar-footer a {
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    height: 40px;
    margin: 0 18px;
    padding: 0 16px;
    border-radius: 4px;
}

.game-body .leftbar-footer a:hover {
    background: var(--background-two);
}

.game-body #page-container {
    position: relative;
    margin-left: var(--leftbar-width);
    min-height: calc(100vh - var(--nav-height));
}

.game-body #page-container .scrollable {
    min-height: calc(100vh - var(--nav-height));
}

.game-body #page-container > .page,
.game-body .page {
    width: 100%;
    max-width: 1170px;
    min-height: calc(100vh - var(--nav-height));
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

.game-body .content {
    width: 100%;
    max-width: 1070px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
}

.game-body .game-controller-container {
    background-color: var(--background-two);
    border-radius: 4px;
    width: 100%;
    max-width: 1070px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: rgba(6, 10, 14, 0.25) 0 5px 20px;
}

.game-body .game-controller-container .controller {
    background-color: var(--background-two);
    border-right: 1px solid var(--separator);
    border-radius: 4px 0 0 4px;
    flex-shrink: 0;
    width: 325px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
}

.game-body #roulette .controller {
    height: 449px;
}

.game-body #roulette-controller .body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-body .game-controller-container .controller .tabbed-nav {
    border: solid 1px var(--separator);
    background-color: var(--light-background);
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    height: 48px;
    margin-bottom: 16px;
    padding: 3px;
    overflow: hidden;
}

.game-body .game-controller-container .controller .tabbed-nav > div {
    width: 100%;
    height: 100%;
    color: var(--light-grey);
    text-transform: capitalize;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    line-height: 2;
    display: flex;
}

.game-body .game-controller-container .controller .tabbed-nav > div.selected {
    background-color: var(--background);
    color: #fff;
    border-radius: 4px;
}

.game-body .inputs-wrapper {
    display: flex;
    flex-direction: column;
}

.game-body .balance-input-field {
    width: 65%;
    min-width: 0;
    position: relative;
}

.game-body .input-field-wrapper {
    background: var(--background);
    border: 1px solid transparent;
    cursor: text;
    min-height: 48px;
    position: relative;
    padding: 5px 0 5px 12px;
}

.game-body .input-field-wrapper .label {
    height: 15px;
    color: var(--light-grey);
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
    display: block;
}

.game-body .input-field-wrapper input {
    background-color: transparent;
    width: 90%;
    padding: 0;
    border: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    margin-top: 4px;
}

.game-body .balance-input-field .emblem {
    color: var(--light-grey);
    font-weight: 700;
    line-height: 1.14;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
}

.game-body .bet-input-row {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 4px;
}

.game-body .bet-input-row button {
    border-radius: 4px;
    width: 48px;
    height: 48px;
    padding: 0;
    flex: 0 0 48px;
}

.game-body button.red {
    background-color: var(--red);
    color: #fff;
    border-radius: 4px;
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
}

.game-body button.red:hover {
    background-color: var(--dark-red);
}

.game-body button.grey {
    border: solid 1px var(--separator);
    background-color: var(--background-two);
    color: #acb1cd;
    border-radius: 3px;
    justify-content: center;
    align-items: center;
    padding: 16px 30px;
    font-size: 12px;
    font-weight: 600;
}

.game-body button.grey:hover {
    color: #fff;
    background: var(--background) !important;
}

.game-body #roulette-controller .input {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
    display: flex;
}

.game-body #roulette-controller .side > span.double {
    color: var(--light-grey);
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.game-body #roulette-controller .side .select {
    align-items: center;
    gap: 4px;
    justify-content: space-around !important;
    width: 100%;
}

.game-body #roulette-controller .side .select > .double-button-wrapper {
    flex: 1 1 0%;
    position: relative;
}

.game-body #roulette-controller .side .select > .double-button-wrapper > div {
    text-align: center;
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 2;
    display: flex;
}

.game-body #roulette-controller .side .select > .double-button-wrapper > div > div {
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 48px;
    display: flex;
}

.game-body #roulette-controller .side .select > .double-button-wrapper > div.red {
    background-color: var(--red);
    color: #fff;
}

.game-body #roulette-controller .side .select > .double-button-wrapper > div.black {
    background-color: var(--charcoal-grey);
    color: #fff;
}

.game-body #roulette-controller .side .select > .double-button-wrapper > div.white {
    background-color: #fff;
    color: var(--red);
}

.game-body #roulette-controller .side .select > .double-button-wrapper > div.red.selected,
.game-body #roulette-controller .side .select > .double-button-wrapper > div.black.selected {
    border: 2px solid #fff;
}

.game-body #roulette-controller .side .select > .double-button-wrapper > div.white.selected {
    border: 2px solid var(--red);
}

.game-body .place-bet button {
    height: 48px;
    width: 100%;
    font-size: 14px;
}

.game-body .controller-footer-line {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--separator);
}

.game-body .controller-feedback {
    min-height: 18px;
    color: var(--white-grey);
    font-size: 12px;
    margin-bottom: 10px;
}

.game-body .controller-feedback.is-error {
    color: #f9305b;
}

.game-body .controller-meta {
    justify-content: space-between;
    align-items: center;
    color: var(--light-grey);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.game-body .casino-extras {
    border-top: 1px solid var(--separator);
    margin-top: 16px;
    padding-top: 14px;
    justify-content: space-between;
    gap: 8px;
}

.game-body .casino-extras > div {
    flex: 1 1 0%;
}

.game-body .casino-extras button {
    width: 100%;
    height: 32px;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.game-body .game-controller-container .game {
    width: 100%;
    padding: 14px;
    overflow: hidden;
}

.game-body #roulette .game {
    border-bottom: 1px solid var(--separator);
    margin-bottom: 0;
    padding: 12px;
}

.game-body #roulette .game-wrapper {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.game-body #roulette .game-inner {
    background: var(--background);
    border-radius: 4px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.game-body #roulette-timer {
    padding-top: 24px;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
    border-radius: 4px;
}

.game-body #roulette-timer .progress-bar {
    background-color: var(--dark-background-four);
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    height: 38px;
    padding: 8px;
    position: relative;
    overflow: hidden;
}

.game-body #roulette-timer .progress-bar .progress-view {
    border-radius: 4px;
    width: 100%;
    height: 22px;
    position: relative;
    overflow: hidden;
}

.game-body #roulette-timer .progress-bar .progress {
    z-index: 0;
    background-color: var(--red);
    border-radius: 4px;
    height: 22px;
    transition: width 0.4s linear;
}

.game-body #roulette-timer .progress-bar .time-left {
    z-index: 1;
    text-transform: capitalize;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 2;
    position: absolute;
}

.game-body #roulette-slider {
    opacity: 1;
    margin-top: 74px;
    margin-bottom: 96px;
    transition: 1s;
    position: relative;
    width: 100% !important;
}

.game-body #roulette-slider .wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 96px;
}

.game-body #roulette-slider .fade-left,
.game-body #roulette-slider .fade-right {
    z-index: 3;
    width: 100px;
    position: absolute;
    top: 0;
    bottom: 0;
    pointer-events: none;
}

.game-body #roulette-slider .fade-left {
    left: 0;
    background: linear-gradient(90deg, rgb(17, 19, 23), rgba(19, 22, 28, 0));
}

.game-body #roulette-slider .fade-right {
    right: 0;
    background: linear-gradient(90deg, rgba(19, 22, 28, 0), rgb(17, 19, 23));
}

.game-body #roulette-slider .selector {
    z-index: 4;
    width: 4px;
    height: 160px;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.game-body #roulette-slider .entries {
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.32, 0.64, 0.45, 1);
    will-change: transform;
}

.game-body #roulette-slider .entries.is-spinning {
    will-change: transform;
}

.game-body #roulette-slider .entries.is-updating {
    animation: slider-bounce 0.8s ease;
}

@keyframes slider-bounce {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
    100% { filter: brightness(1); }
}

.game-body #roulette-slider .entries .tile-wrapper {
    justify-content: center;
    align-items: center;
    padding: 0 4px;
    flex: 0 0 auto;
    transition: filter 0.45s ease, transform 0.45s ease;
}

.game-body #roulette-slider .entries .tile-wrapper.is-winning {
    z-index: 2;
}

.game-body #roulette-slider .entries .tile-wrapper.is-winning .lg-box {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14), 0 10px 26px rgba(241, 44, 76, 0.28);
}

.game-body #roulette-slider .entries.is-spinning .tile-wrapper.is-winning .lg-box {
    animation: roulette-winner-glow 1s ease 1.9s both;
}

@keyframes roulette-winner-glow {
    0% { transform: scale(1); filter: brightness(1); }
    55% { transform: scale(1.04); filter: brightness(1.08); }
    100% { transform: scale(1.02); filter: brightness(1.02); }
}

.game-body #roulette-slider .roulette-tile {
    width: 96px;
    height: 96px;
}

.game-body #roulette .lg-box {
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    width: 96px;
    height: 96px;
    display: flex;
}

.game-body #roulette .sm-box {
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    display: flex;
}

.game-body #roulette .lg-box.red,
.game-body #roulette .sm-box.red {
    background-color: var(--red);
}

.game-body #roulette .lg-box.black,
.game-body #roulette .sm-box.black {
    background-color: var(--dark-background-four);
}

.game-body #roulette .lg-box.white,
.game-body #roulette .sm-box.white {
    background-color: #fff;
}

.game-body #roulette .lg-box .number {
    border: solid 4px #fff;
    letter-spacing: -1px;
    text-align: center;
    width: 52px;
    height: 52px;
    color: #fff;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    line-height: normal;
    display: flex;
}

.game-body #roulette .lg-box.black .number {
    border-color: rgba(255, 255, 255, 0.24);
}

.game-body #roulette .sm-box .number {
    letter-spacing: -0.5px;
    text-align: center;
    color: var(--light-grey);
    border: 2px solid var(--light-grey);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    margin-top: -1px;
    padding: 0;
    font-size: 9px;
    font-weight: 800;
    line-height: normal;
    display: flex;
}

.game-body #roulette .sm-box.red .number {
    color: var(--rouge);
    border-color: var(--rouge);
}

.game-body .white-gem-lg {
    height: 53px;
    width: 40px;
}

.game-body .white-gem-sm {
    height: 16px;
    width: 12px;
}

.game-body .network-wrapper {
    width: 100%;
    margin-right: 40px;
    position: relative;
}

.game-body .network {
    pointer-events: auto;
    cursor: pointer;
    align-items: center;
    position: absolute;
    bottom: 0;
    right: 0;
}

.game-body .network__dot-pulse {
    border-radius: 50%;
    width: 7px;
    height: 7px;
    margin: 0 0.7rem;
    position: relative;
    background-color: var(--lime-green-two);
}

.game-body .network__dot-pulse::before,
.game-body .network__dot-pulse::after {
    content: "";
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: 2s ease-out infinite pulse-wave;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background-color: rgba(6, 227, 133, 0.6);
}

.game-body .network__dot-pulse::after {
    animation-delay: 1s;
}

@keyframes pulse-wave {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

.game-body .network__status {
    letter-spacing: 0.1em;
    align-items: end;
    height: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

.game-body .network__status__online {
    color: var(--lime-green-two);
}

.game-body #roulette-recent {
    text-align: left;
    width: 100%;
    padding: 16px 24px;
    position: relative;
}

.game-body #roulette-recent h3 {
    color: var(--light-grey);
    text-transform: uppercase;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 2;
}

.game-body .roulette-previous {
    text-transform: uppercase;
    flex-grow: 1;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: 8px;
    position: relative;
}

.game-body .roulette-previous .entries {
    flex-direction: row-reverse;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.game-body .roulette-previous .entries.is-updating {
    animation: recent-results-swipe 0.55s ease;
}

.game-body .roulette-previous::after {
    content: "";
    background: linear-gradient(to left, transparent, var(--background-two) 71%);
    pointer-events: none;
    width: 25px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
}

.game-body .roulette-previous .entry {
    cursor: pointer;
    transition: 0.5s;
    animation: 1s ease-in-out 0s 1 normal forwards roulette-previous-in;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-body .roulette-previous .entry:hover {
    transform: scale(1.2);
}

.game-body .roulette-previous .roulette-tile {
    width: 32px;
    height: 32px;
}

@keyframes roulette-previous-in {
    0% { opacity: 0; right: -50px; transform: scale(0.9); }
    100% { opacity: 1; right: 0; transform: scale(1); }
}

@keyframes recent-results-swipe {
    0% { transform: translateX(12px); opacity: 0.75; }
    100% { transform: translateX(0); opacity: 1; }
}

.game-body .buttons-history {
    margin-left: 12px;
}

.game-body .original-games-and-description-container {
    background-color: var(--background-two);
    border-radius: 4px;
    width: 100%;
    max-width: 1070px;
    margin: 0 auto;
    padding: 40px;
    box-shadow: rgba(6, 10, 14, 0.25) 0 5px 20px;
}

.game-body .segments-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 2px solid var(--separator);
    margin-bottom: 12px;
}

.game-body .segment-tab {
    width: auto;
    border: 0;
    appearance: none;
    background: transparent;
    color: var(--light-grey);
    border-radius: 0;
    padding: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
    border-bottom: 2px solid transparent;
}

.game-body .segment-tab:focus,
.game-body .segment-tab:focus-visible {
    outline: none;
    box-shadow: none;
}

.game-body .segment-tab.is-active {
    color: #fff;
    border-bottom-color: var(--red);
}

.game-body .segment-panel {
    display: none;
}

.game-body .segment-panel.is-active {
    display: block;
}

.game-body .description-layout {
    gap: 16px;
}

.game-body .description-card {
    background: var(--background-three);
    border-radius: 4px;
    padding: 16px;
}

.game-body .col-wrapper {
    width: 100%;
}

.game-body .roulette-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.game-body .roulette-column {
    background-color: var(--background-two);
    border-radius: 8px;
    padding: 0 16px;
    box-shadow: rgba(6, 10, 14, 0.25) 0 5px 20px;
    margin-top: 20px;
}

.game-body .roulette-column .header {
    cursor: default;
    color: #fff;
    border-bottom: 1px solid var(--separator);
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding-left: 8px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
}

.game-body .roulette-column .header .column-tile {
    width: 35px;
    height: 35px;
    display: block;
}

.game-body .roulette-column .header .roulette-tile {
    width: 35px;
    height: 35px;
}

.game-body .roulette-column .body {
    padding-bottom: 16px;
}

.game-body .roulette-column .total {
    color: #fff;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.33;
    display: flex;
}

.game-body .roulette-column .total .counter {
    font-size: 16px;
}

.game-body .roulette-column .entries-header {
    background-color: var(--dark-background-four);
    color: var(--light-grey);
    border-radius: 4px;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 0 16px;
    height: 32px;
    font-size: 12px;
    font-weight: 600;
    line-height: 2;
    display: flex;
}

.game-body .roulette-column .entry {
    border-bottom: 1px solid var(--separator);
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    display: flex;
}

.game-body .roulette-column .entry:last-child {
    border-bottom: none;
    margin-bottom: -16px;
}

.game-body .roulette-column .username {
    color: var(--white-grey);
    text-align: left;
    align-items: center;
    padding-right: 15px;
    font-size: 12px;
    font-weight: 500;
    line-height: normal;
    display: flex;
}

.game-body .roulette-column .user-rank {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.game-body .roulette-column .user-rank img {
    width: 16px;
    height: 16px;
}

.game-body .roulette-column .user-profile-link {
    color: var(--white-grey);
    text-transform: none;
    font-size: 12px;
    font-weight: 500;
    margin-left: 0;
}

.game-body .roulette-column .amount {
    color: #fff;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
}

.game-body .table-empty-card {
    color: var(--light-grey);
    text-align: center;
    padding: 16px;
    font-size: 12px;
}

.game-body .blaze-table {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
}

.game-body .blaze-table thead th {
    background-color: var(--background-three);
    color: var(--light-grey);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: left;
    height: 32px;
    padding: 0 12px;
}

.game-body .blaze-table tbody td {
    color: #fff;
    background: #1a242d;
    border-bottom: 1px solid var(--separator);
    text-transform: capitalize;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    padding: 14px 12px;
}

.game-body .blaze-table tbody tr:last-child td {
    border-bottom: 0;
}

.game-body .table-empty {
    color: var(--light-grey) !important;
    text-align: center;
}

.game-body .description-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.game-body .description-card p,
.game-body .description-list {
    color: var(--white-grey);
    font-size: 14px;
    line-height: 1.6;
}

.game-body .description-list {
    margin: 0;
    padding-left: 18px;
}

.game-body .empty-state {
    padding: 18px;
    border-radius: 4px;
    background: var(--background);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    color: var(--light-grey);
    text-align: center;
}

@media (max-width: 1200px) {
    .game-body {
        --nav-height: 65px;
    }

    .game-body #header .right {
        margin-left: 0;
    }

    .game-body #leftbar {
        display: none;
    }

    .game-body #page-container {
        margin-left: 0;
    }

    .game-body .game-controller-container {
        flex-direction: column-reverse;
    }

    .game-body .game-controller-container .controller {
        width: 100%;
        border-right: none;
        border-top: 1px solid var(--separator);
        border-radius: 0 0 4px 4px;
    }

    .game-body .roulette-columns-grid,
    .game-body .description-layout {
        grid-template-columns: 1fr;
    }

    .game-body .description-layout {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .game-body #header .right .content {
        padding-right: 12px;
        justify-content: flex-end;
    }

    .game-body #header .subcategory-row {
        display: none;
    }

    .game-body #header .user-rank-progress {
        display: none;
    }

    .game-body #header .account {
        gap: 8px;
    }

    .game-body #header .wallet-balance-card {
        min-width: 122px;
        padding: 8px 10px;
    }

    .game-body #header .wallet-shortcut-btn {
        padding: 6px 8px;
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .game-body .flash-stack {
        top: 78px;
        right: 10px;
        width: min(320px, calc(100vw - 20px));
    }

    .game-body #page-container > .page,
    .game-body .page {
        padding: 20px 0 40px;
    }

    .game-body .content {
        padding: 0 10px;
    }

    .game-body #header .icons,
    .game-body #header .link {
        display: none;
    }

    .game-body #header .icons {
        display: flex;
    }

    .game-body .wallet-more-toggle {
        display: inline-flex;
    }

    .game-body #header .left {
        z-index: 2;
    }

    .game-body #header .left .content-first {
        min-width: 146px;
    }

    .game-body #header #logo {
        width: 92px;
    }

    .game-body #header .left-bar-action {
        margin-left: 8px;
        margin-right: 10px;
    }

    .game-body #header .right .content {
        max-width: 100%;
        padding-left: 154px;
        padding-right: 10px;
    }

    .game-body #header .wallet strong {
        font-size: 11px;
    }

    .game-body #header .wallet-container {
        width: auto;
        margin-right: 0;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .game-body #header .wallet-shortcuts {
        display: none;
    }

    .game-body #header .user-profile-link {
        max-width: 82px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: none;
    }

    .game-body #header .account {
        margin-left: auto;
        gap: 4px;
    }

    .game-body #roulette .controller {
        height: auto;
    }

    .game-body .balance-input-field {
        width: 100%;
    }

    .game-body .bet-input-row {
        gap: 8px;
    }

    .game-body #roulette-slider {
        margin-top: 24px;
        margin-bottom: 42px;
    }

    .game-body #roulette-slider .selector {
        height: 104px;
    }

    .game-body #roulette .lg-box {
        width: 72px;
        height: 72px;
    }

    .game-body #roulette .lg-box .number {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .game-body #roulette-timer {
        padding: 8px;
    }

    .game-body #roulette-timer .progress-bar {
        height: 36px;
    }

    .game-body #roulette-timer .progress-bar .progress {
        height: 20px;
    }

    .game-body .original-games-and-description-container {
        padding: 16px;
    }

    .game-body .roulette-column {
        margin-top: 12px;
        padding: 0 10px;
        border-radius: 0;
    }

    .game-body .roulette-column .header {
        height: 64px;
        font-size: 14px;
    }
}
