@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;700;900&display=swap');

:root {
    --casino-green: #0b6623;
    --casino-gold: #d4af37;
    --roulette-red: #e63946;
    --roulette-black: #1a1a1a;
}

.table-layout {
    width: min(1200px, 96vw);
    display: grid;
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
    gap: 42px;
    align-items: start;
    padding-bottom: 40px;
}

.wheel-column,
.betting-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wheel-card {
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%), rgba(7, 13, 9, 0.9);
    border-radius: 30px;
    padding: 1px 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 45px 80px rgba(0, 0, 0, 0.65), inset 0 2px 20px rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.history-panel {
    background: rgba(5, 10, 8, 0.85);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2px 24px;
    box-shadow: inset 0 2px 14px rgba(255, 255, 255, 0.03);
}

.history-panel__title {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.history-track {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.12), transparent 65%), rgba(6, 12, 10, 0.95);
      padding: 2px 3px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.04);
}

.status-item,
.status-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 4px 0;
}

.status-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.55);
}

.status-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 6px;
    color: var(--casino-gold);
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

.status-visual {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.status-note {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2em;
}

.betting-console {
    background: rgba(5, 13, 8, 0.92);
    border-radius: 30px;
    padding: 1px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.65);
}

.chip-tray {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
        padding: 3px 24px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(9, 16, 12, 0.85), rgba(4, 8, 6, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chip-tray__label {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

.action-bar {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.history-track .w-10 {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1024px) {
    .table-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .status-strip {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .status-visual {
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 12px 0;
    }

    .chip-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@keyframes blazingPop {
    0% {
        transform: translateY(10px) scale(0.6);
        opacity: 0;
    }
    60% {
        transform: translateY(-5px) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes blazingHalo {
    0% {
        opacity: 0.35;
        filter: blur(0px);
    }
    50% {
        opacity: 0.9;
        filter: blur(1.5px);
    }
    100% {
        opacity: 0.35;
        filter: blur(0px);
    }
}

@keyframes prizeBlink {
    0% {
        opacity: 0.85;
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.5), 0 0 16px rgba(255, 255, 255, 0.35);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(255, 215, 128, 0.9), 0 0 35px rgba(255, 255, 255, 0.7);
    }
    100% {
        opacity: 0.9;
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.55), 0 0 20px rgba(255, 255, 255, 0.45);
    }
}

body {
    background: radial-gradient(circle at 30% -20%, rgba(255, 255, 255, 0.07), transparent 55%),
                radial-gradient(circle at 70% 120%, rgba(255, 220, 180, 0.08), transparent 60%),
                linear-gradient(135deg, #040b05, #081909 45%, #010402 100%);
    font-family: 'Roboto', sans-serif;
    color: #f7f7f5;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(255, 204, 122, 0.12), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

h1 {
    letter-spacing: 0.35rem;
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-header {
    z-index: 1;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    color: var(--casino-gold);
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.side-nav {
    width: 250px;
    padding: 32px 24px;
    background: rgba(3, 10, 6, 0.92);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.side-nav__divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border: none;
}

.side-nav__clock {
    width: 100%;
    min-height: 120px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 12px rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.25rem 1rem;
    gap: 6px;
    text-align: center;
}

.player-card {
    width: 100%;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 12px rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 1.2rem 1rem;
}

.player-card__name {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

.player-card__balance {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--casino-gold);
}

.player-card__meta {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
}

.player-card__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.player-card__level {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--casino-gold);
}

.player-xp-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-top: 4px;
}

.player-xp-track__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #b87c00, #fcd253);
    transition: width 0.3s ease;
}

.side-clock__label {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.side-clock__time {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--casino-gold);
    letter-spacing: 0.15em;
}

.side-clock__date {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.75);
}

.session-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.session-modal--hidden {
    opacity: 0;
    pointer-events: none;
}

.session-modal__panel {
    width: min(420px, 90vw);
    background: rgba(4, 12, 7, 0.95);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.65);
    padding: 2rem;
    text-align: center;
}

.session-modal__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    letter-spacing: 0.35rem;
    color: var(--casino-gold);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.session-modal__text {
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.session-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-modal__link {
    color: var(--casino-gold);
    text-decoration: underline;
}

.form-shell {
    width: min(600px, 96vw);
    background: rgba(6, 16, 9, 0.92);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: clamp(1.5rem, 5vw, 3rem);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1.25rem;
}

.form-group label {
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.form-control {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: #f7f7f5;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--casino-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
}

.form-error {
    color: #ff6666;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.legal-link {
    color: var(--casino-gold);
    text-decoration: underline;
}

.legal-section {
    width: min(900px, 96vw);
    margin: 0 auto;
    background: rgba(4, 12, 7, 0.9);
    border-radius: 28px;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}

.legal-section + .legal-section {
    margin-top: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    width: 100%;
}

.chart-card {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    box-shadow: inset 0 1px 14px rgba(255, 255, 255, 0.04);
}

.mining-console__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mining-console__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.mining-stat {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mining-stat__value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--casino-gold);
    letter-spacing: 0.1em;
}

.mining-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.mining-button {
    flex: 1;
    min-width: 220px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, #fcd253, #b87c00);
    color: #1d1200;
    font-weight: 800;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.mining-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.45);
}

.mining-button--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
}

.mining-progress {
    width: 100%;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.mining-progress__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #fcd253, #f97316);
    transition: width 0.2s ease;
}

.mining-log {
    max-height: 220px;
    overflow-y: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mining-log__item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.75);
}

.mission-level {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.mission-level__value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--casino-gold);
    letter-spacing: 0.2em;
}

.mission-progress {
    width: 100%;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.mission-progress__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #34d399, #047857);
    transition: width 0.3s ease;
}

.mission-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.mission-list__item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.25);
}

.mission-list__item h4 {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.35rem;
}

.mission-list__item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.mining-simulator {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 12, 7, 0.88);
    box-shadow: inset 0 1px 18px rgba(255, 255, 255, 0.03);
}

.stat-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.stat-stack__item {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.25);
    text-align: center;
}

.stat-stack__label {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.65);
}

.stat-stack__value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--casino-gold);
}

.reward-display {
    text-align: center;
    padding: 1.25rem;
    border-radius: 22px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.8);
}

.level-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tap-log {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.tap-log__item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.75);
}

.chart-card__title {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.chart-card canvas {
    width: 100%;
    height: 240px;
}

.chart-legend {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.15em;
}

.mining-console {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: clamp(1.25rem, 4vw, 2.25rem);
    box-shadow: inset 0 1px 14px rgba(255, 255, 255, 0.04);
}

.mining-balance {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.65);
}

.mining-balance__value {
    font-size: 2.4rem;
    color: var(--casino-gold);
    letter-spacing: 0.1em;
}

.mining-meter {
    width: 100%;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
}

.mining-meter__fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fcd253, #b87c00);
    width: 0%;
    transition: width 0.3s ease;
}

.token-log {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.token-log__item {
    display: flex;
    justify-content: space-between;
    letter-spacing: 0.2em;
}

.side-nav__brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.45rem;
    color: var(--casino-gold);
}

.side-nav__tagline {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.35rem;
    color: rgba(255, 255, 255, 0.55);
}

.side-nav__menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-nav__link {
    text-transform: uppercase;
    letter-spacing: 0.35rem;
    font-weight: 700;
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.side-nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.side-nav__link.is-active {
    background: linear-gradient(135deg, #fcd253, #b87c00);
    color: #1d1200;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.7), inset 0 -4px 0 rgba(0, 0, 0, 0.25), 0 12px 22px rgba(0, 0, 0, 0.5);
}

.main-content {
    flex: 1;
    padding: 36px clamp(24px, 4vw, 72px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.page-section {
    width: min(1100px, 96vw);
    background: rgba(6, 16, 9, 0.9);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: clamp(1.5rem, 4vw, 3.25rem);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 2px 18px rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.page-section + .page-section {
    margin-top: 1.5rem;
}

.profile-grid,
.stat-grid,
.mining-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.profile-card,
.stat-card,
.mining-card {
    background: rgba(0, 0, 0, 0.32);
    border-radius: 22px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 14px rgba(255, 255, 255, 0.04);
}

.profile-card__label,
.stat-card__title,
.mining-card__title {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.profile-card__value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--casino-gold);
    margin: 0.6rem 0;
}

.profile-card__meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.stat-card__value {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0.5rem 0;
}

.stat-card__note {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline-item {
    position: relative;
    padding-left: 32px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--casino-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.timeline-item::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 20px;
    bottom: -18px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-item h4 {
    margin: 0;
    letter-spacing: 0.25em;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.timeline-item p {
    margin: 0.2rem 0 0;
    color: #f7f7f5;
}

.mining-card__title {
    color: var(--casino-gold);
    margin-bottom: 0.5rem;
}

.mining-card__meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 0.75rem;
}

.mining-card__cta {
    margin-top: 1rem;
    display: inline-flex;
}

@media (max-width: 1024px) {
    .app-shell {
        flex-direction: column;
    }

    .side-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    }

    .side-nav__menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .side-nav__link {
        flex: 1 1 45%;
    }

    .main-content {
        padding: 24px 16px 48px;
    }
}

.nav-tabs {
    display: inline-flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    padding: 0.65rem 1.8rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
    position: relative;
    z-index: 1;
}

.nav-tab {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-weight: 800;
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-tab.active {
    background: linear-gradient(120deg, #fcd253, #b87c00);
    color: #1d1200;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.75), inset 0 -4px 0 rgba(0, 0, 0, 0.25), 0 12px 25px rgba(0, 0, 0, 0.6);
}

.nav-tab:focus-visible {
    outline: 2px solid var(--casino-gold);
    outline-offset: 2px;
}

.main-sections {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-section {
    width: min(1100px, 96vw);
    margin-top: 1.5rem;
    transition: opacity 0.2s ease;
}

.is-hidden {
    display: none !important;
}

.landing-section {
    background: linear-gradient(135deg, rgba(4, 48, 20, 0.95), rgba(6, 82, 33, 0.92));
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: clamp(1.5rem, 4vw, 3rem);
    color: #f5fff3;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 2px 18px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.landing-section::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.landing-intro {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 1rem;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    position: relative;
    z-index: 1;
}

.landing-feature {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 18px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 12px rgba(255, 255, 255, 0.04);
}

.landing-feature__title {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--casino-gold);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.landing-cta {
    margin-top: 1.75rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.landing-cta .action-button {
    padding: 0.85rem 2.5rem;
}

.roulette-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-title::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    opacity: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.65), transparent 45%);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero-title.glow-active {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 45px rgba(255, 204, 122, 0.65);
    animation: glowPulse 2.2s ease forwards;
}

.hero-title.glow-active::after {
    opacity: 1;
    animation: shineSweep 1.6s ease forwards;
}

.hero-subtitle.glow-active {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    animation: subtitlePulse 1.4s ease forwards;
}

@keyframes glowPulse {
    0% { filter: brightness(1); }
    40% { filter: brightness(1.6); }
    100% { filter: brightness(1.1); }
}

@keyframes shineSweep {
    0% { transform: translateX(-120%) skewX(-15deg); opacity: 0; }
    30% { opacity: 0.9; }
    80% { transform: translateX(140%) skewX(-15deg); opacity: 0; }
    100% { opacity: 0; }
}

@keyframes subtitlePulse {
    0% { letter-spacing: 0.35em; }
    50% { letter-spacing: 0.45em; }
    100% { letter-spacing: 0.35em; }
}

.gold-text {
    color: var(--casino-gold);
    font-family: 'Playfair Display', serif;
}

.wheel-outer-container {
    position: relative;
    width: min(480px, calc(100% - 28px));
    height: min(480px, calc(100% - 28px));
      margin: 1px auto 2px;
    border-radius: 50%;
    padding: 1px;
    background: #2a1a0a;
    border: 8px solid #3d2b1f;
    box-shadow: inset 0 0 20px #000, 0 10px 30px rgba(0, 0, 0, 0.8);
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .wheel-outer-container {
        width: 360px;
        height: 360px;
    }
}

.wheel-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}


.betting-area {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: min(100%, 1020px);
    margin: 0 auto;
    justify-content: center;
}

.betting-table {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    grid-auto-rows: 1fr;
    gap: 3px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
    border: 1px solid var(--casino-gold);
    border-radius: 10px;
    position: relative;
    flex: 1 1 auto;
    aspect-ratio: 13 / 3;
    width: 90%;
}

.betting-table .cell {
    font-size: 1.05rem;
    aspect-ratio: auto;
}

.betting-wrapper {
    width: min(100%, 1000px);
    margin: 2px auto 0;
   padding: 7px 11px 8px;
    background: linear-gradient(180deg, rgba(9, 28, 16, 0.9), rgba(5, 13, 8, 0.9));
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.65), inset 0 2px 18px rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.betting-wrapper::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.column-bets {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chip-selector {
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
                rgba(0, 0, 0, 0.45);
    padding: 16px 28px;
    border-radius: 999px;
    border: 0px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.04), 0 15px 35px rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.chip-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    color: #050505;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), inset 0 -4px 0 rgba(0, 0, 0, 0.35), 0 12px 20px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chip-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.7), inset 0 -4px 0 rgba(0, 0, 0, 0.4), 0 20px 30px rgba(0, 0, 0, 0.6);
}

.chip-btn.active,
.chip-btn.ring-4 {
    border-color: var(--casino-gold);
    box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.75), inset 0 -4px 0 rgba(0, 0, 0, 0.45), 0 24px 40px rgba(212, 175, 55, 0.4);
}

.chip-btn.chip-value-5 {
    background: radial-gradient(circle at 30% 30%, #fefcf1, #f3d486);
}

.chip-btn.chip-value-10 {
    background: radial-gradient(circle at 30% 30%, #ffffff, #d8d8d8);
}

.chip-btn.chip-value-50 {
    background: radial-gradient(circle at 30% 30%, #a3d5ff, #3b82f6);
}

.chip-btn.chip-value-100 {
    background: radial-gradient(circle at 30% 30%, #ffd9d6, #e11d48);
}

.chip-btn.chip-value-500 {
    background: radial-gradient(circle at 30% 30%, #f8cbf4, #a21caf);
}

.chip-btn.chip-value-1000 {
    background: radial-gradient(circle at 30% 30%, #d1fae5, #10b981);
}

.chip-btn.chip-value-10000 {
    background: radial-gradient(circle at 30% 30%, #fce7f3, #db2777);
}

.column-bets .cell,
.betting-matrix .cell {
    min-height: 40px;
    border-radius: 4px;
}

.dozen-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 960px);
    margin: 8px auto 0;
}

.betting-matrix {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 4px;
    column-gap: 6px;
    width: min(97%, 960px);
    margin: 12px auto 0;
    margin-right: 54px;
    margin-left: 4px;
}

.cell {
    background: var(--casino-green);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    transition: all 0.2s;
    user-select: none;
}

.cell:hover {
    filter: brightness(1.3);
}

.cell.red {
    background: var(--roulette-red);
}

.cell.black {
    background: var(--roulette-black);
}

.cell.zero {
    background: #1b8a3b;
    grid-row: 1 / span 3;
    aspect-ratio: auto;
}

.chip {
    position: absolute;
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #fff 0%, #ccc 100%);
    border: 2px dashed #666;
    border-radius: 50%;
    color: #333;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

.bet-hotspot {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 6;
}

.bet-hotspot.corner {
    border-radius: 6px;
    width: 20px;
    height: 20px;
}

.bet-hotspot:hover {
    transform: scale(1.15);
    background: rgba(212, 175, 55, 0.6);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.winning-cell {
    animation: pulse 0.5s infinite;
    box-shadow: inset 0 0 20px white;
    z-index: 2;
}

.result-card {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.85), rgba(42, 42, 42, 0.85));
    border-radius: 24px;
    border: 4px solid rgba(255, 255, 255, 0.12);
    padding: 0.75rem 2.5rem;
    min-width: 260px;
    text-align: center;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6), inset 0 2px 12px rgba(255, 255, 255, 0.08);
    letter-spacing: 0.1em;
}

.action-button {
    position: relative;
    padding: 1rem 3.4rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.12em;
    border: none;
    background: linear-gradient(135deg, #fcd253, #b87c00);
    color: #1d1200;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.7), inset 0 -6px 0 rgba(113, 74, 0, 0.8), 0 20px 40px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.action-button::after {
    content: "";
    position: absolute;
    inset: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0.4;
    pointer-events: none;
}

.action-button:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.8), inset 0 -6px 0 rgba(113, 74, 0, 0.75), 0 28px 45px rgba(0, 0, 0, 0.6);
    filter: brightness(1.05);
}

.action-button.secondary {
    background: linear-gradient(135deg, #7e1111, #f94141);
    color: #ffeaea;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), inset 0 -6px 0 rgba(68, 6, 6, 0.8), 0 20px 40px rgba(0, 0, 0, 0.55);
}

.action-button.neutral {
    background: linear-gradient(135deg, #0e4d2c, #21b075);
    color: #e8fff5;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), inset 0 -6px 0 rgba(8, 40, 23, 0.8), 0 20px 40px rgba(0, 0, 0, 0.55);
}

.win-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 42px;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.25), transparent 65%), rgba(6, 17, 10, 0.92);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.65), inset 0 4px 24px rgba(255, 255, 255, 0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.45s ease;
    z-index: 20;
}

.win-toast__label {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.32em;
    font-weight: 900;
    color: var(--casino-gold);
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.6), 0 0 28px rgba(0, 0, 0, 0.55);
    animation: prizeBlink 1.1s ease-in-out infinite;
}

.win-toast__value {
    font-size: clamp(3.2rem, 6vw, 4.8rem);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
}

.win-toast--visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.win-toast--leaving {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.7);
}

.blazing-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    padding: 28px 46px;
    border-radius: 32px;
    border: 1px solid rgba(126, 192, 255, 0.65);
    background: radial-gradient(circle at 30% 20%, rgba(70, 150, 255, 0.45), transparent 70%),
                linear-gradient(145deg, rgba(2, 10, 28, 0.92), rgba(5, 38, 88, 0.95));
    box-shadow: 0 45px 90px rgba(0, 10, 20, 0.7), inset 0 2px 18px rgba(255, 255, 255, 0.08);
    color: #e5f1ff;
    text-transform: uppercase;
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    transition: opacity 0.4s ease, transform 0.5s ease, top 0.6s ease, left 0.6s ease, right 0.6s ease;
}

.blazing-panel--hidden {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.6);
    pointer-events: none;
}

.blazing-panel--docked {
    top: 135px;
    right: 40px;
    left: auto;
    transform: translateY(0) scale(0.88);
    padding: 16px 26px;
    border-radius: 22px;
    box-shadow: 0 25px 50px rgba(0, 10, 20, 0.55);
}

.blazing-panel__title {
    letter-spacing: 0.35em;
    font-size: 0.95rem;
    font-weight: 800;
    color: #f2f7ff;
    text-shadow: 0 0 18px rgba(115, 182, 255, 0.7);
}

.blazing-panel__list {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.blazing-panel--docked .blazing-panel__title {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
}

.blazing-panel--docked .blazing-panel__list {
    gap: 12px;
}

.blazing-card {
    position: relative;
    min-width: 110px;
    padding: 14px 12px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(5, 10, 18, 0.7);
    text-align: center;
    color: #fff;
    overflow: visible;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
}

.blazing-panel--docked .blazing-card {
    min-width: 90px;
    padding: 12px 10px;
    border-radius: 20px;
}

.blazing-card__halo {
    position: absolute;
    inset: -12px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255, 232, 119, 0.9), rgba(247, 179, 0, 0.15));
    filter: blur(1px);
    opacity: 0.4;
    animation: blazingHalo 1.4s ease-in-out infinite;
    z-index: -1;
}

.blazing-card__number {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ff4545;
    letter-spacing: 0.08em;
}

.blazing-card__multiplier {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #ff5d5d;
    text-shadow: 0 0 12px rgba(255, 185, 0, 0.5);
}

.blazing-card--visible {
    animation: blazingPop 0.6s ease forwards;
}

.blazing-card--winner {
    box-shadow: 0 0 25px rgba(255, 222, 133, 0.8), 0 0 60px rgba(255, 164, 27, 0.7);
    border-color: rgba(255, 204, 102, 0.9);
}

.blazing-card--winner .blazing-card__number,
.blazing-card--winner .blazing-card__multiplier {
    color: #ffe28a;
}

@media (max-width: 768px) {
    .blazing-panel--docked {
        top: auto;
        bottom: 110px;
        right: auto;
        left: 50%;
        transform: translate(-50%, 0) scale(0.92);
    }

    .blazing-panel {
        width: min(90vw, 420px);
    }

    .blazing-panel__list {
        flex-wrap: wrap;
    }
}
.blazing-card__number--red {
    color: #d63b3b;
}

.blazing-card__number--black {
    color: #0f0f0f;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.blazing-card__number--zero {
    color: #1e9d5a;
}
