:root {
    --bg: #0A0D17;
    --card: #121826;
    --card-hover: #161C2E;
    --border: #232B40;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #0A0D17;
    color: #E2E8F0;
}

.font-display {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-weight: 600;
}

.rainbet-logo {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-link {
    transition: color 0.1s ease;
}
.nav-link:hover {
    color: #fff;
}
.nav-link.active {
    color: #fff;
    position: relative;
}
.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #22C55E, #86EFAC);
}

.section-title {
    font-size: 13px;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
}

.game-card {
    background: #121826;
    border: 1px solid #232B40;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.game-card:hover {
    transform: translateY(-1px);
    border-color: #334155;
    background: #161C2E;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
}

.game-cover {
    background: linear-gradient(145deg, #1E2538, #11151F);
    position: relative;
    overflow: hidden;
}

.game-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
}

.casino-bg {
    background: #0A0D17;
}

.modal {
    animation: modalPop 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.bet-row {
    transition: background-color 0.1s ease;
}
.bet-row:hover {
    background-color: #161C2E;
}

.live-dot {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.multiplier {
    font-variant-numeric: tabular-nums;
}

.chip {
    transition: all 0.1s ease;
}
.chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.2);
}
.chip:active {
    transform: scale(0.95);
}

.nav-active {
    background: #1A2133;
    color: white;
    border-radius: 6px;
}

.rainbet-green {
    color: #22C55E;
}

.stat-pill {
    background: #161C2E;
    border: 1px solid #232B40;
}

.game-modal {
    background: #0F1320;
}

@media (max-width: 1023px) {
    #plinko-stage {
margin-left: -1.25rem;
margin-right: -1.25rem;
padding: 0.75rem 0.25rem;
    }
}

.crash-graph {
    position: relative;
    height: 420px;
    background:
radial-gradient(90% 70% at 50% 110%, rgba(16, 185, 129, 0.16), transparent 55%),
linear-gradient(180deg, #12182a 0%, #070b14 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.crash-graph::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -20%;
    height: 62%;
    background: radial-gradient(closest-side, rgba(52, 211, 153, 0.22), transparent 72%);
    filter: blur(6px);
    pointer-events: none;
    animation: crash-glow 3.4s ease-in-out infinite;
}
.crash-graph.is-live {
    background:
radial-gradient(80% 70% at 72% 88%, rgba(52, 211, 153, 0.28), transparent 52%),
linear-gradient(180deg, #12182a 0%, #070b14 100%);
}
.crash-graph.is-live::before { animation-duration: 1.15s; }
.crash-graph.is-hot {
    background:
radial-gradient(80% 70% at 78% 78%, rgba(251, 191, 36, 0.3), transparent 54%),
linear-gradient(180deg, #1a160f 0%, #070b14 100%);
}
.crash-graph.is-hot::before {
    background: radial-gradient(closest-side, rgba(251, 191, 36, 0.28), transparent 72%);
}
.crash-graph.is-blaze {
    background:
radial-gradient(80% 70% at 78% 70%, rgba(251, 113, 133, 0.32), transparent 54%),
linear-gradient(180deg, #1c1016 0%, #070b14 100%);
}
.crash-graph.is-blaze::before {
    background: radial-gradient(closest-side, rgba(251, 113, 133, 0.3), transparent 72%);
}
.crash-graph.is-win {
    background:
radial-gradient(70% 60% at 50% 42%, rgba(74, 222, 128, 0.22), transparent 58%),
linear-gradient(180deg, #0d1914 0%, #070b14 100%);
}
.crash-graph.is-bust {
    background:
radial-gradient(70% 60% at 50% 42%, rgba(248, 113, 113, 0.28), transparent 58%),
linear-gradient(180deg, #1c1016 0%, #070b14 100%);
    animation: crash-shake 0.42s ease;
}
.crash-graph.is-bust::before {
    background: radial-gradient(closest-side, rgba(248, 113, 113, 0.28), transparent 72%);
    animation: none;
}
.crash-readout {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
#crash-multiplier {
    font-size: clamp(64px, 11vw, 104px);
    line-height: 0.86;
    letter-spacing: -0.045em;
    color: #fff;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    transition: color 0.2s ease;
}
#crash-multiplier.is-hot { color: #fde68a; }
#crash-multiplier.is-blaze { color: #fb7185; }
#crash-multiplier.is-win { color: #4ade80; }
#crash-multiplier.is-bust { color: #fda4af; }
.crash-phase {
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #86efac;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
}
.crash-phase.is-hot { color: #fde68a; border-color: rgba(251, 191, 36, 0.45); }
.crash-phase.is-blaze { color: #fda4af; border-color: rgba(251, 113, 133, 0.5); }
.crash-phase.is-win { color: #4ade80; border-color: rgba(74, 222, 128, 0.45); }
.crash-phase.is-bust { color: #fda4af; border-color: rgba(251, 113, 133, 0.5); }
.crash-status {
    margin-top: 8px;
    max-width: 92%;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(7, 11, 20, 0.82);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    color: #6ee7b7;
}
.crash-history {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    min-height: 30px;
    margin-bottom: 8px;
    scrollbar-width: none;
}
.crash-history::-webkit-scrollbar { display: none; }
.crash-history.is-overflowing {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent);
}
.crash-history-empty {
    font-size: 11px;
    color: #64748b;
    padding: 4px 2px;
}
.crash-pill {
    flex: none;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 4px 8px;
    border-radius: 999px;
    background: #171d2e;
    color: #94a3b8;
}
.crash-pill.is-low { color: #fda4af; background: rgba(136, 19, 55, 0.4); }
.crash-pill.is-mid { color: #fcd34d; background: rgba(120, 53, 15, 0.45); }
.crash-pill.is-big { color: #6ee7b7; background: rgba(6, 78, 59, 0.5); }
#crash-cash-btn { animation: crash-pulse 1.25s ease-out infinite; }
@keyframes crash-glow {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-10px); opacity: 1; }
}
@keyframes crash-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
}
@keyframes crash-pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); }
    100% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}
@media (max-width: 639px) {
    .crash-graph { height: 300px; }
}

.plinko-peg {
    width: 9px;
    height: 9px;
    background: #475569;
    border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

#plinko-board {
    background:
radial-gradient(64% 36% at 50% 0%, rgba(52, 211, 153, 0.18), transparent 68%),
radial-gradient(88% 46% at 50% 108%, rgba(245, 158, 11, 0.16), transparent 64%),
linear-gradient(180deg, #121826 0%, #0A0D17 50%, #070b14 100%);
    box-shadow:
inset 0 0 56px rgba(52, 211, 153, 0.09),
inset 0 -40px 52px rgba(245, 158, 11, 0.08),
inset 0 1px 0 rgba(255, 255, 255, 0.07),
inset 0 0 0 1px #232B40;
}
#plinko-board::before {
    content: '';
    position: absolute;
    left: 14%;
    right: 14%;
    top: 0;
    height: 44%;
    background: radial-gradient(closest-side, rgba(110, 231, 183, 0.24), transparent 72%);
    filter: blur(6px);
    pointer-events: none;
}
#plinko-multipliers {
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 13, 23, 0), rgba(18, 24, 38, 0.82));
}

.mines-readout {
    max-width: 380px;
    margin-bottom: 12px;
    text-align: center;
}
#mines-mult {
    font-size: clamp(40px, 9vw, 68px);
    line-height: 0.86;
    letter-spacing: -0.045em;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}
#mines-mult.is-live { color: #6ee7b7; }
#mines-mult.is-bust { color: #fb7185; }
#mines-next {
    margin-top: 6px;
    min-height: 1.4em;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
}
#mines-next.is-step {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-size: clamp(20px, 3.4vw, 30px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #a7f3d0;
    font-variant-numeric: tabular-nums;
}
#mines-grid {
    padding: 10px;
    background: #0A0D17;
    border: 1px solid #232B40;
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.45);
}
#mines-grid .mine-cell {
    position: relative;
    cursor: pointer;
    color: #64748b;
    background:
linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 46%),
linear-gradient(180deg, #1c2438 0%, #121826 100%);
    border: 1px solid #232B40;
    box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.22),
0 3px 0 #070a12,
0 5px 8px rgba(0, 0, 0, 0.28);
    transition: transform 0.1s ease, background 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}
#mines-grid .mine-cell:hover:not(.revealed) {
    border-color: #3b4663;
    background:
linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 46%),
linear-gradient(180deg, #27314a 0%, #171e30 100%);
    transform: translateY(-2px);
}
#mines-grid .mine-cell:active:not(.revealed) {
    transform: translateY(2px);
    background:
linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 40%),
linear-gradient(180deg, #101624 0%, #0c111c 100%);
    box-shadow:
inset 0 3px 7px rgba(0, 0, 0, 0.5),
0 1px 0 #070a12;
}
#mines-grid .mine-cell.revealed {
    cursor: default;
}
#mines-grid .mine-cell.is-gem {
    color: #34d399;
    border-color: #059669;
    background: radial-gradient(circle at 50% 38%, #059669 0%, #064e3b 42%, #022c22 78%);
    box-shadow:
inset 0 1px 0 rgba(209, 250, 229, 0.4),
0 0 16px rgba(16, 185, 129, 0.32);
}
#mines-grid .mine-cell.is-gem-dim {
    color: rgba(52, 211, 153, 0.42);
    border-color: #232B40;
    background: #0A0D17;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
#mines-grid .mine-cell.is-mine {
    color: #fb7185;
    border-color: #e11d48;
    background: radial-gradient(circle at 50% 40%, #be123c 0%, #881337 46%, #4c0519 80%);
    box-shadow:
inset 0 1px 0 rgba(255, 228, 230, 0.32),
0 0 16px rgba(244, 63, 94, 0.38);
}
#mines-grid .mine-cell.is-pop {
    animation: mines-pop 0.28s cubic-bezier(0.2, 0.85, 0.3, 1.25);
}
#mines-grid.is-shake {
    animation: mines-shake 0.42s ease;
}
#mines-cashout-btn.is-live {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%);
    color: #052e16;
    border-color: #6ee7b7;
    font-weight: 800;
    box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.4),
0 8px 18px rgba(5, 150, 105, 0.35);
}
#mines-cashout-btn.is-live:hover {
    background: linear-gradient(180deg, #6ee7b7 0%, #047857 100%);
}
@keyframes mines-pop {
    0% { transform: scale(0.84); }
    55% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
@keyframes mines-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) {
    #mines-grid .mine-cell.is-pop,
    #mines-grid.is-shake {
animation: none;
    }
}

.balance-display {
    font-variant-numeric: tabular-nums;
}

.fake-win {
    animation: winPop 0.6s ease;
}

.category-pill {
    transition: all 0.1s ease;
}
.category-pill.active {
    background: #1E2538;
    color: #fff;
    border-color: #334155;
}

.rainbet-border {
    border-color: #232B40;
}

.mini-stat {
    font-size: 10px;
    letter-spacing: 0.5px;
}

.overlay {
    display: none;
}
.overlay.open {
    display: flex;
}

@media (max-width: 639px) {
    #originals-row > :last-child:nth-child(odd) {
grid-column: 1 / -1;
    }
}

.balance-low {
    color: #f87171;
}

/* Divider sits on the target. That number loses, so it is not inside the win zone. */
.dice-track {
    margin: 0 20px 16px;
}
.dice-track-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}
.dice-track-stage {
    position: relative;
    height: 68px;
}
.dice-track-rail {
    position: absolute;
    left: 0;
    right: 0;
    top: 30px;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: #121826;
    box-shadow: 0 0 0 1px #232B40, inset 0 1px 2px rgba(0, 0, 0, 0.55);
}
.dice-zone {
    position: absolute;
    top: 0;
    bottom: 0;
}
.dice-zone-win {
    background:
linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 46%),
linear-gradient(90deg, #059669, #34d399);
}
.dice-zone-lose {
    background:
linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 46%),
linear-gradient(90deg, #fb7185, #e11d48);
}
.dice-divider {
    position: absolute;
    top: 24px;
    width: 2px;
    height: 26px;
    border-radius: 1px;
    background: #f8fafc;
    transform: translateX(-50%);
    box-shadow: 0 0 0 2px #0A0D17;
    z-index: 2;
    pointer-events: none;
}
.dice-target-tick {
    position: absolute;
    top: 52px;
    transform: translateX(-50%);
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
.dice-marker {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    pointer-events: none;
    transition: left 420ms cubic-bezier(0.45, 0.05, 0.2, 1);
}
.dice-marker.is-idle {
    opacity: 0;
}
.dice-marker-bubble {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    min-width: 28px;
    padding: 1px 5px 2px;
    border-radius: 7px;
    background: #232B40;
    border: 1px solid #64748b;
    color: #f8fafc;
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.dice-marker-pin {
    position: absolute;
    top: 31px;
    left: 0;
    width: 12px;
    height: 12px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #0A0D17;
    box-shadow: 0 0 0 1px #232B40;
}
.dice-marker.is-win .dice-marker-bubble {
    background: #064e3b;
    border-color: #34d399;
    color: #34d399;
}
.dice-marker.is-lose .dice-marker-bubble {
    background: #450a0a;
    border-color: #f87171;
    color: #f87171;
}
.dice-marker.is-win .dice-marker-pin {
    background: #34d399;
    box-shadow: 0 0 0 2px #0A0D17, 0 0 12px rgba(52, 211, 153, 0.85);
    animation: dice-marker-land 220ms ease;
}
.dice-marker.is-lose .dice-marker-pin {
    background: #f87171;
    box-shadow: 0 0 0 2px #0A0D17, 0 0 12px rgba(248, 113, 113, 0.8);
    animation: dice-marker-land 220ms ease;
}
@keyframes dice-marker-land {
    from { transform: translateX(-50%) scale(0.6); }
    to { transform: translateX(-50%) scale(1); }
}

.wheel-stage { width: 280px; height: 280px; }
#wheel-canvas { filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45)); }
.wheel-pointer {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 10;
    width: 32px;
    height: 40px;
    transform: translateX(-50%);
    pointer-events: none;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55));
}
