/**
 * Luxury Casino Landing & Live Results Portal Stylesheet
 * Optimized for Desktop & Fully Responsive Mobile Screen Sizes (Down to 320px)
 */

:root {
    --gold-1: #fffbeb;
    --gold-2: #fef08a;
    --gold-3: #facc15;
    --gold-4: #eab308;
    --gold-5: #ca8a04;
    --gold-6: #a16207;
    --gold-7: #713f12;

    --bg-dark: #070a12;
    --bg-card: rgba(15, 23, 42, 0.88);
    --bg-card-hover: rgba(30, 41, 59, 0.95);
    --border-gold: rgba(250, 204, 21, 0.28);
    --border-gold-glow: rgba(250, 204, 21, 0.6);
    --border-dark: rgba(255, 255, 255, 0.08);

    --ruby-1: #ffe4e6;
    --ruby-3: #fda4af;
    --ruby-5: #f43f5e;
    --ruby-6: #e11d48;
    --ruby-7: #be123c;
    --ruby-9: #4c0519;

    --cyan-4: #22d3ee;
    --cyan-5: #06b6d4;
    --cyan-6: #0891b2;

    --emerald-4: #4ade80;
    --emerald-5: #22c55e;
    --emerald-6: #16a34a;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-heading: 'Outfit', sans-serif;
    --font-accent: 'Bungee', cursive, sans-serif;
    --font-body: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body.casino-landing-body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(136, 13, 30, 0.45) 0%, rgba(30, 27, 75, 0.4) 40%, rgba(7, 10, 18, 0.98) 85%),
        radial-gradient(circle at 100% 60%, rgba(202, 138, 4, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 0% 80%, rgba(225, 29, 72, 0.12) 0%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 20px, transparent 20px, transparent 40px);
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Floating Sparkle Particles */
.landing-sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.landing-sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, #fef08a 10%, rgba(250, 204, 21, 0.6) 50%, transparent 80%);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatUp 14s infinite linear;
}

@keyframes floatUp {
    0% {
        transform: translateY(105vh) scale(0.4) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-10vh) scale(1.3) rotate(360deg);
        opacity: 0;
    }
}

/* Confetti Canvas */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Top Casino Navigation Bar */
.landing-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(250, 204, 21, 0.08);
    width: 100%;
    max-width: 100%;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.brand-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.2) 0%, rgba(136, 13, 30, 0.4) 100%);
    border: 1.5px solid var(--gold-4);
    border-radius: 12px;
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.brand-wrapper:hover .brand-icon-box {
    transform: rotate(-6deg) scale(1.08);
    box-shadow: 0 0 22px rgba(250, 204, 21, 0.7);
}

.brand-text-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #fffbeb 0%, #fde047 40%, #eab308 70%, #ca8a04 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--gold-2);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    opacity: 0.9;
    white-space: nowrap;
}

/* Nav Actions & Badges */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.casino-time-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.live-beacon-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald-4);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--emerald-4);
    animation: beaconPulse 1.8s infinite;
    flex-shrink: 0;
}

@keyframes beaconPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.sound-toggle-btn {
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid var(--border-gold);
    color: var(--gold-3);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.sound-toggle-btn:hover {
    background: rgba(234, 179, 8, 0.18);
    border-color: var(--gold-2);
    transform: scale(1.05);
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.4);
}

.btn-play-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #dc2626 100%);
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 9px 20px;
    border-radius: 20px;
    border: 1.5px solid #fef08a;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-play-live::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(25deg);
    animation: btnShimmer 3.5s infinite;
}

@keyframes btnShimmer {
    0% {
        left: -60%;
    }

    25% {
        left: 140%;
    }

    100% {
        left: 140%;
    }
}

.btn-play-live:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 25px rgba(234, 88, 12, 0.65), 0 0 15px rgba(254, 240, 138, 0.5);
    color: #ffffff;
}

.btn-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-admin-link:hover {
    background: rgba(51, 65, 85, 0.85);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Page Main Content Container */
.landing-main {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px 48px;
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-x: hidden;
}

/* Games Switcher Bar */
.game-selector-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    padding: 10px 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    width: 100%;
}

.game-tabs-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.game-tab-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--gold-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.game-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.game-tab-btn:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: var(--gold-4);
    color: #ffffff;
    transform: translateY(-1px);
}

.game-tab-btn.active {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(136, 13, 30, 0.35) 100%);
    border: 1.5px solid var(--gold-3);
    color: var(--gold-1);
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.3), inset 0 0 8px rgba(250, 204, 21, 0.2);
}

.game-tab-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald-4);
    box-shadow: 0 0 6px var(--emerald-4);
    flex-shrink: 0;
}

.game-tab-status-dot.spinning {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: beaconPulse 1.2s infinite;
}

.auto-refresh-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sync-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(250, 204, 21, 0.3);
    border-top-color: var(--gold-3);
    border-radius: 50%;
    animation: rotateSync 1.2s linear infinite;
    flex-shrink: 0;
}

@keyframes rotateSync {
    to {
        transform: rotate(360deg);
    }
}

/* Two Column Primary Showcase */
.casino-portal-grid {
    display: grid;
    grid-template-columns: 460px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

.casino-portal-grid>* {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 1080px) {
    .casino-portal-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

/* LEFT COLUMN: 3D Casino Machine Showcase Card */
.slot-machine-showcase-card {
    background: var(--bg-card);
    border: 2px solid var(--border-gold);
    border-radius: 26px;
    padding: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(234, 179, 8, 0.15);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slot-machine-showcase-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.16) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* Card Marquee Header Arch */
.casino-marquee-arch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
    border: 2px solid var(--gold-4);
    border-radius: 18px;
    padding: 10px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(254, 240, 138, 0.4);
    width: 100%;
    min-width: 0;
}

.marquee-bulbs {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.marquee-bulb {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fef08a;
    box-shadow: 0 0 8px #fef08a, 0 0 14px #eab308;
    animation: bulbChase 1.4s infinite alternate;
}

.marquee-bulb:nth-child(2) {
    animation-delay: 0.35s;
    background: #f43f5e;
    box-shadow: 0 0 8px #f43f5e, 0 0 14px #e11d48;
}

.marquee-bulb:nth-child(3) {
    animation-delay: 0.7s;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8, 0 0 14px #0284c7;
}

@keyframes bulbChase {
    0% {
        opacity: 0.3;
        transform: scale(0.85);
    }

    100% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.marquee-arch-title {
    font-family: var(--font-accent);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, #fffbeb 0%, #fde047 50%, #ca8a04 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 12px rgba(250, 204, 21, 0.5);
    text-align: center;
    white-space: normal;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

/* Game Title in Spotlight */
.spotlight-game-title-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.spotlight-game-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-shadow: 0 0 18px rgba(250, 204, 21, 0.4), 0 4px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.15;
    word-break: break-word;
    max-width: 100%;
}

.spotlight-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: var(--gold-2);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

/* 3D Illuminated Machine Stage */
.machine-stage-window {
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #090d16 75%, #030712 100%);
    border: 2px solid rgba(250, 204, 21, 0.35);
    border-radius: 20px;
    padding: 24px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 310px;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(136, 13, 30, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.machine-stage-window:hover {
    border-color: var(--gold-3);
    box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.85), 0 0 35px rgba(250, 204, 21, 0.4);
}

.machine-stage-window.is-winner-celebrating {
    border-color: var(--gold-3);
    box-shadow: inset 0 0 50px rgba(234, 179, 8, 0.35), 0 0 40px rgba(234, 179, 8, 0.5), 0 0 60px rgba(225, 29, 72, 0.35);
}

.machine-stage-window::after {
    content: '';
    position: absolute;
    bottom: 38px;
    width: 65%;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(234, 179, 8, 0.45) 0%, rgba(225, 29, 72, 0.25) 50%, transparent 80%);
    border-radius: 50%;
    filter: blur(5px);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.machine-ambient-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.25) 0%, rgba(225, 29, 72, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: ambientBreathe 4s infinite ease-in-out;
    transition: all 0.4s ease;
}

.machine-stage-window.is-spinning .machine-ambient-glow {
    animation: ambientSpinGlow 1.2s infinite alternate;
}

.machine-stage-window.is-winner-celebrating .machine-ambient-glow {
    transform: scale(1.4);
    opacity: 1;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.45) 0%, rgba(225, 29, 72, 0.3) 50%, transparent 70%);
}

@keyframes ambientBreathe {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes ambientSpinGlow {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Stage Slot Machine Graphic & Interactive States */
.stage-slot-machine-svg {
    max-width: 100%;
    height: auto;
    max-height: 230px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.75));
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
}

.machine-stage-window:hover .stage-slot-machine-svg {
    transform: scale(1.03) translateY(-2px);
}

.machine-stage-window.is-spinning .stage-slot-machine-svg {
    animation: machineJolt 0.5s ease-in-out;
}

.machine-stage-window.is-winner-celebrating .stage-slot-machine-svg {
    animation: machineVictoryBounce 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes machineJolt {
    0% {
        transform: scale(1);
    }

    18% {
        transform: scale(0.97) translateY(2px) rotate(-0.5deg);
    }

    40% {
        transform: scale(1.02) translateY(-1px) rotate(0.5deg);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes machineVictoryBounce {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.07) translateY(-6px);
    }

    55% {
        transform: scale(0.98) translateY(2px);
    }

    75% {
        transform: scale(1.03) translateY(-2px);
    }

    100% {
        transform: scale(1);
    }
}

/* Slot Machine Lever Physics */
.slot-lever-assembly {
    transform-origin: 49px 38px;
    transform-box: view-box;
    transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.machine-stage-window:hover .slot-lever-assembly {
    transform: rotate(-3deg);
}

.machine-stage-window.is-spinning .slot-lever-assembly {
    animation: leverPullPhysics 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes leverPullPhysics {
    0% {
        transform: rotate(0deg);
    }

    22% {
        transform: rotate(46deg);
    }

    40% {
        transform: rotate(48deg);
    }

    60% {
        transform: rotate(-6deg);
    }

    80% {
        transform: rotate(2deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Reel Strips Spinning Animation Keyframes */
.reel-strip-strip {
    will-change: transform;
}

.machine-stage-window.is-spinning .reel-strip-1 {
    animation: reelSpin1 1.6s cubic-bezier(0.12, 0.8, 0.32, 1.05) forwards;
}

.machine-stage-window.is-spinning .reel-strip-2 {
    animation: reelSpin2 2.2s cubic-bezier(0.12, 0.8, 0.32, 1.05) forwards;
}

.machine-stage-window.is-spinning .reel-strip-3 {
    animation: reelSpin3 2.8s cubic-bezier(0.12, 0.8, 0.32, 1.05) forwards;
}

@keyframes reelSpin1 {
    0% {
        transform: translateY(0px);
        filter: blur(0px);
    }

    12% {
        transform: translateY(22px);
        filter: blur(0.7px);
    }

    70% {
        transform: translateY(212px);
        filter: blur(0.7px);
    }

    88% {
        transform: translateY(242px);
        filter: blur(0px);
    }

    95% {
        transform: translateY(236px);
        filter: blur(0px);
    }

    100% {
        transform: translateY(238px);
        filter: blur(0px);
    }
}

@keyframes reelSpin2 {
    0% {
        transform: translateY(0px);
        filter: blur(0px);
    }

    10% {
        transform: translateY(24px);
        filter: blur(0.7px);
    }

    74% {
        transform: translateY(312px);
        filter: blur(0.7px);
    }

    90% {
        transform: translateY(345px);
        filter: blur(0px);
    }

    96% {
        transform: translateY(338px);
        filter: blur(0px);
    }

    100% {
        transform: translateY(340px);
        filter: blur(0px);
    }
}

@keyframes reelSpin3 {
    0% {
        transform: translateY(0px);
        filter: blur(0px);
    }

    8% {
        transform: translateY(26px);
        filter: blur(0.7px);
    }

    78% {
        transform: translateY(412px);
        filter: blur(0.7px);
    }

    92% {
        transform: translateY(447px);
        filter: blur(0px);
    }

    97% {
        transform: translateY(440px);
        filter: blur(0px);
    }

    100% {
        transform: translateY(442px);
        filter: blur(0px);
    }
}

/* Crown Bulbs Arcade Flashing */
.slot-crown-bulb {
    transition: fill 0.2s, filter 0.2s;
}

.machine-stage-window.is-spinning .slot-crown-bulb,
.machine-stage-window.is-winner-celebrating .slot-crown-bulb {
    animation: crownBulbChaser 0.35s infinite alternate;
}

.slot-crown-bulb.bulb-left {
    animation-delay: 0s;
}

.slot-crown-bulb.bulb-mid {
    animation-delay: 0.12s;
}

.slot-crown-bulb.bulb-right {
    animation-delay: 0.24s;
}

@keyframes crownBulbChaser {
    0% {
        fill: #fef08a;
        filter: drop-shadow(0 0 3px #facc15);
    }

    50% {
        fill: #f43f5e;
        filter: drop-shadow(0 0 4px #e11d48);
    }

    100% {
        fill: #38bdf8;
        filter: drop-shadow(0 0 4px #0284c7);
    }
}

/* Center Payline Laser Glow */
.slot-payline {
    transition: all 0.3s ease;
}

.machine-stage-window.is-winner-celebrating .slot-payline {
    stroke: #ff1850;
    stroke-width: 1.8;
    filter: drop-shadow(0 0 4px #ff0055) drop-shadow(0 0 8px #f59e0b);
    animation: paylinePulse 0.45s infinite alternate;
}

@keyframes paylinePulse {
    0% {
        stroke-opacity: 0.6;
        stroke: #f43f5e;
    }

    100% {
        stroke-opacity: 1;
        stroke: #fef08a;
    }
}

/* SPIN Button Interactive & Glow */
.slot-spin-btn-group {
    cursor: pointer;
    transform-origin: 28px 47.75px;
    transform-box: view-box;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.slot-spin-btn-group:hover {
    filter: brightness(1.2) drop-shadow(0 0 3px rgba(250, 204, 21, 0.8));
    transform: scale(1.05);
}

.machine-stage-window.is-spinning .slot-spin-btn-group {
    animation: spinBtnPress 0.5s ease;
}

@keyframes spinBtnPress {
    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(0.92) translateY(0.5px);
        filter: brightness(1.3);
    }

    60% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.slot-spin-btn-glow {
    transition: opacity 0.3s ease;
}

.machine-stage-window.is-spinning .slot-spin-btn-glow,
.machine-stage-window.is-winner-celebrating .slot-spin-btn-glow {
    opacity: 0.85;
    animation: spinGlowPulse 0.6s infinite alternate;
}

@keyframes spinGlowPulse {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.95;
    }
}

/* Auto-Spin Status Badge */
.stage-spin-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 20px;
    padding: 5px 14px;
    margin-top: 14px;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--gold-2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.machine-stage-window:hover .stage-spin-indicator {
    border-color: var(--gold-3);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
}

.spin-live-indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: spinDotPulse 1.4s infinite;
    flex-shrink: 0;
}

.machine-stage-window.is-spinning .spin-live-indicator-dot {
    background: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
}

.machine-stage-window.is-winner-celebrating .spin-live-indicator-dot {
    background: #e11d48;
    box-shadow: 0 0 12px #e11d48;
}

@keyframes spinDotPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}

/* Live Round State / Countdown Box */
.round-state-box {
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.round-state-box.is-running {
    border-color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.state-label-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-wrap: wrap;
    line-height: 1.3;
}

.state-label-row.running {
    color: #fbbf24;
}

.state-label-row.ready {
    color: var(--emerald-4);
}

.live-countdown-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.countdown-box {
    background: #020617;
    border: 1.5px solid rgba(250, 204, 21, 0.4);
    border-radius: 10px;
    padding: 6px 12px;
    min-width: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.countdown-digit {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.countdown-sub {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold-3);
    letter-spacing: 0.08em;
}

.countdown-colon {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gold-4);
    line-height: 1;
}

.btn-launch-game {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #eab308 0%, #f97316 45%, #ef4444 100%);
    border: 2px solid #fffbeb;
    border-radius: 16px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-launch-game:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.65), 0 0 20px rgba(254, 240, 138, 0.6);
    color: #ffffff;
}

/* RIGHT COLUMN: Big Winner Showcase + Results History */
.results-column-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

/* TOP WINNER SPOTLIGHT CARD */
.winner-spotlight-card {
    background: radial-gradient(circle at 100% 0%, rgba(136, 13, 30, 0.4) 0%, rgba(15, 23, 42, 0.9) 70%), var(--bg-card);
    border: 2px solid var(--gold-4);
    border-radius: 26px;
    padding: 24px 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(250, 204, 21, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
    width: 100%;
}


@keyframes topShimmer {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.winner-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.winner-headline {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.winner-trophy-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.7));
    animation: trophyBounce 2.5s infinite ease-in-out;
    flex-shrink: 0;
}

@keyframes trophyBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px) rotate(4deg);
    }
}

.winner-card-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 50%, #facc15 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    word-break: break-word;
}

.winner-time-pill {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: var(--gold-2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 3D Digit Reels Display for Winner */
.winner-reels-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: inset 0 4px 16px rgba(0, 0, 0, 0.8);
    width: 100%;
}

.pana-digits-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-reel-tile {
    width: 58px;
    height: 76px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 60%, #cbd5e1 100%);
    border: 3px solid #facc15;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 0 14px rgba(250, 204, 21, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.single-reel-tile:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7), 0 0 20px rgba(250, 204, 21, 0.6);
}

.single-reel-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.reel-digit-num {
    font-family: var(--font-accent);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--ruby-6);
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.reels-connector {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold-3);
    text-shadow: 0 0 10px var(--gold-4);
    flex-shrink: 0;
}

.single-win-badge {
    width: 66px;
    height: 76px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 3px solid #38bdf8;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.single-win-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    pointer-events: none;
}

.single-win-num {
    font-family: var(--font-accent);
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.single-win-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: #bae6fd;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Winner Meta Footer */
.winner-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.winner-meta-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 12px;
}

.meta-chip strong {
    color: var(--gold-2);
}

.btn-celebrate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(234, 179, 8, 0.15);
    border: 1.5px solid var(--gold-4);
    color: var(--gold-2);
    padding: 7px 16px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-celebrate:hover {
    background: rgba(234, 179, 8, 0.3);
    border-color: #fef08a;
    color: #ffffff;
    transform: scale(1.04);
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.4);
}

/* RESULTS LEDGER CARD (TABS + TABLE) */
.results-ledger-card {
    background: var(--bg-card);
    border: 2px solid var(--border-gold);
    border-radius: 26px;
    padding: 24px 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(234, 179, 8, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.ledger-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
}

.ledger-nav-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 6, 23, 0.65);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ledger-nav-tabs::-webkit-scrollbar {
    display: none;
}

.ledger-tab-btn {
    background: transparent;
    border: 1.5px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    user-select: none;
    box-sizing: border-box;
}

.ledger-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.ledger-tab-btn.active {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(225, 29, 72, 0.25) 100%);
    border: 1.5px solid var(--gold-4);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.3);
}

.tab-icon {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tab-text-full {
    display: inline;
}

.tab-text-mobile {
    display: none;
}

.tab-count-pill {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 800;
    flex-shrink: 0;
    line-height: 1.2;
}

.ledger-search-box {
    position: relative;
    min-width: 220px;
}

.ledger-search-input {
    width: 100%;
    background: rgba(2, 6, 23, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 9px 14px 9px 36px;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.25s ease;
}

.ledger-search-input:focus {
    border-color: var(--gold-4);
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.3);
}

.ledger-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Luxury Casino Table */
.casino-table-container {
    max-height: 520px;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(2, 6, 23, 0.55);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 100%;
}

/* Custom Scrollbar */
.casino-table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.casino-table-container::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 10px;
}

.casino-table-container::-webkit-scrollbar-thumb {
    background: var(--gold-5);
    border-radius: 10px;
}

.casino-results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.casino-results-table th {
    background: rgba(15, 23, 42, 0.95);
    padding: 16px 14px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gold-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid var(--border-gold);
    white-space: nowrap;
}

.casino-results-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
    transition: background 0.2s ease;
}

.casino-results-table tr:hover td {
    background: rgba(234, 179, 8, 0.08);
}

.time-cell-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.time-main-text {
    font-weight: 800;
    font-size: 1.05rem;
    color: #ffffff;
}

.time-date-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.game-badge-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
}

/* Table Split Result Badges */
.table-result-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.pana-badge-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1.5px solid var(--gold-4);
    border-radius: 8px;
    padding: 4px 10px;
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-weight: 900;
    color: #fef08a;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.single-badge-box {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1.5px solid #38bdf8;
    border-radius: 8px;
    padding: 4px 10px;
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}

.raw-pill-cell {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

.btn-table-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid var(--gold-4);
    color: var(--gold-2);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-table-action:hover {
    background: rgba(234, 179, 8, 0.35);
    color: #ffffff;
    transform: scale(1.05);
}

/* Empty State / Awaiting Draw Box */
.empty-ledger-box {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.empty-ledger-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 12px rgba(234, 179, 8, 0.4));
    animation: beaconPulse 2s infinite;
}

.empty-ledger-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
}

.empty-ledger-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    max-width: 440px;
    line-height: 1.5;
}

/* Entrance Animations on Desktop */
@media (min-width: 769px) {
    .slot-machine-showcase-card {
        animation: cardSlideLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    }

    .results-column-wrapper {
        animation: cardSlideRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
    }

    @keyframes cardSlideLeft {
        0% {
            opacity: 0;
            transform: translateX(-30px);
        }

        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes cardSlideRight {
        0% {
            opacity: 0;
            transform: translateX(30px);
        }

        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Digit Reel Entrance Animations */
.single-reel-tile {
    animation: reelDropIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

.pana-digits-cluster .single-reel-tile:nth-child(1) {
    animation-delay: 0.15s;
}

.pana-digits-cluster .single-reel-tile:nth-child(2) {
    animation-delay: 0.28s;
}

.pana-digits-cluster .single-reel-tile:nth-child(3) {
    animation-delay: 0.42s;
}

.pana-digits-cluster .single-reel-tile:nth-child(4) {
    animation-delay: 0.55s;
}

.single-win-badge {
    animation: badgePopIn 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.55s backwards;
}

@keyframes reelDropIn {
    0% {
        opacity: 0;
        transform: translateY(-24px) scale(0.7);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badgePopIn {
    0% {
        opacity: 0;
        transform: scale(0.4) rotate(10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* =========================================================
   COMPREHENSIVE RESPONSIVE STYLES (MOBILE & TABLET)
   ========================================================= */

/* Tablet & Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    .landing-navbar {
        padding: 10px 14px;
        gap: 8px;
    }

    .brand-icon-box {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .brand-title {
        font-size: 1.05rem;
    }

    .brand-tagline {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }

    .casino-time-badge {
        display: none;
    }

    .nav-actions {
        gap: 8px;
    }

    .sound-toggle-btn {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .btn-play-live {
        padding: 7px 13px;
        font-size: 0.82rem;
        border-radius: 14px;
        gap: 5px;
    }

    .btn-admin-link {
        padding: 7px 10px;
        font-size: 0.78rem;
        border-radius: 10px;
        gap: 4px;
    }

    .landing-main {
        padding: 12px 10px 36px;
        gap: 16px;
        width: 100%;
        max-width: 100%;
    }

    /* Game Switcher Strip */
    .game-selector-strip {
        padding: 10px 12px;
        border-radius: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .game-tabs-group {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    .game-tab-label {
        width: 100%;
        margin-bottom: 2px;
        font-size: 0.72rem;
    }

    .game-tab-btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 120px;
        justify-content: center;
        padding: 7px 12px;
        font-size: 0.82rem;
        border-radius: 10px;
    }

    .auto-refresh-indicator {
        justify-content: flex-end;
        font-size: 0.72rem;
    }

    /* Showcase Card */
    .slot-machine-showcase-card {
        padding: 16px 12px;
        border-radius: 20px;
        gap: 16px;
        width: 100%;
        animation: cardFadeUp 0.6s ease-out backwards;
    }

    .results-column-wrapper {
        animation: cardFadeUp 0.6s ease-out 0.1s backwards;
        gap: 16px;
    }

    @keyframes cardFadeUp {
        0% {
            opacity: 0;
            transform: translateY(18px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Marquee Arch: Make it compact so it fits perfectly on all phones */
    .casino-marquee-arch {
        padding: 8px 10px;
        border-radius: 12px;
        gap: 6px;
    }

    .marquee-bulbs {
        gap: 4px;
    }

    .marquee-bulb {
        width: 7px;
        height: 7px;
    }

    .marquee-arch-title {
        font-size: 0.76rem;
        letter-spacing: 0.05em;
    }

    /* Spotlight Game Title */
    .spotlight-game-name {
        font-size: 1.6rem;
    }

    .spotlight-mode-badge {
        font-size: 0.7rem;
        padding: 2px 10px;
    }

    /* Stage Window */
    .machine-stage-window {
        min-height: 200px;
        padding: 16px 10px;
        border-radius: 16px;
    }

    .stage-logo-graphic {
        max-height: 155px;
        max-width: 85%;
    }

    /* State box */
    .round-state-box {
        padding: 12px 10px;
        border-radius: 14px;
        gap: 8px;
    }

    .state-label-row {
        font-size: 0.74rem;
        letter-spacing: 0.04em;
    }

    .countdown-box {
        min-width: 48px;
        padding: 5px 8px;
        border-radius: 8px;
    }

    .countdown-digit {
        font-size: 1.35rem;
    }

    .countdown-sub {
        font-size: 0.6rem;
    }

    .countdown-colon {
        font-size: 1.35rem;
    }

    .btn-launch-game {
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    /* Winner Spotlight Card */
    .winner-spotlight-card {
        padding: 16px 12px;
        border-radius: 20px;
        gap: 14px;
    }

    .winner-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .winner-trophy-icon {
        font-size: 1.6rem;
    }

    .winner-card-title {
        font-size: 1.25rem;
    }

    .winner-time-pill {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    /* 3D Reel Tiles in Winner Card */
    .winner-reels-row {
        padding: 12px 8px;
        gap: 8px;
        border-radius: 14px;
    }

    .pana-digits-cluster {
        gap: 6px;
    }

    .single-reel-tile {
        width: 46px;
        height: 60px;
        border-width: 2px;
        border-radius: 9px;
    }

    .reel-digit-num {
        font-size: 1.7rem;
    }

    .reels-connector {
        font-size: 1.4rem;
    }

    .single-win-badge {
        width: 52px;
        height: 60px;
        border-width: 2px;
        border-radius: 9px;
    }

    .single-win-num {
        font-size: 1.7rem;
    }

    .single-win-label {
        font-size: 0.52rem;
    }

    /* Winner Meta Footer */
    .winner-footer-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .winner-meta-tags {
        justify-content: center;
        gap: 6px;
    }

    .meta-chip {
        font-size: 0.74rem;
        padding: 4px 8px;
    }

    .btn-celebrate {
        width: 100%;
        justify-content: center;
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    /* Results Ledger Card */
    .results-ledger-card {
        padding: 16px 12px;
        border-radius: 20px;
        gap: 14px;
    }

    .ledger-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .tab-text-full {
        display: none !important;
    }

    .tab-text-mobile {
        display: inline !important;
    }

    .ledger-nav-tabs {
        display: flex;
        width: 100%;
        max-width: 100%;
        gap: 5px;
        padding: 5px;
        border-radius: 14px;
        background: rgba(2, 6, 23, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.1);
        overflow: hidden;
        box-sizing: border-box;
    }

    .ledger-tab-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 8px 6px;
        font-size: 0.82rem;
        font-weight: 800;
        gap: 5px;
        border-radius: 10px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    .tab-icon {
        font-size: 0.95rem;
    }

    .tab-count-pill {
        font-size: 0.7rem;
        padding: 1px 5px;
        border-radius: 8px;
    }

    .ledger-search-box {
        width: 100%;
        min-width: 100%;
    }

    .ledger-search-input {
        padding: 8px 12px 8px 32px;
        font-size: 0.82rem;
        border-radius: 12px;
    }

    .casino-table-container {
        border-radius: 14px;
        max-height: 440px;
    }

    .casino-results-table th {
        padding: 12px 8px;
        font-size: 0.75rem;
    }

    .casino-results-table td {
        padding: 10px 6px;
        font-size: 0.8rem;
    }

    .time-main-text {
        font-size: 0.88rem;
    }

    .time-date-sub {
        font-size: 0.65rem;
    }

    .pana-badge-box {
        font-size: 1.05rem;
        padding: 3px 6px;
    }

    .single-badge-box {
        font-size: 1.05rem;
        padding: 3px 6px;
    }

    .raw-pill-cell {
        font-size: 0.75rem;
        padding: 3px 6px;
    }

    .btn-table-action {
        padding: 4px 8px;
        font-size: 0.72rem;
    }
}

/* Small Smartphone Screens (<= 480px) */
@media (max-width: 480px) {
    .landing-navbar {
        padding: 8px 10px;
    }

    .brand-icon-box {
        width: 32px;
        height: 32px;
    }

    .brand-title {
        font-size: 0.98rem;
    }

    .brand-tagline {
        display: none;
    }

    .nav-actions {
        gap: 6px;
    }

    .sound-toggle-btn {
        width: 32px;
        height: 32px;
        font-size: 0.88rem;
    }

    .btn-play-live {
        padding: 6px 10px;
        font-size: 0.78rem;
        gap: 4px;
    }

    .nav-admin-text {
        display: none;
    }

    .btn-admin-link {
        padding: 6px 8px;
        font-size: 0.85rem;
    }

    .landing-main {
        padding: 10px 8px 28px;
        gap: 14px;
    }

    .slot-machine-showcase-card,
    .winner-spotlight-card,
    .results-ledger-card {
        padding: 14px 10px;
        border-radius: 16px;
    }

    .marquee-bulbs {
        display: none;
    }

    .marquee-arch-title {
        font-size: 0.74rem;
        letter-spacing: 0.03em;
    }

    .spotlight-game-name {
        font-size: 1.45rem;
    }

    .single-reel-tile {
        width: 40px;
        height: 54px;
    }

    .reel-digit-num {
        font-size: 1.5rem;
    }

    .single-win-badge {
        width: 46px;
        height: 54px;
    }

    .single-win-num {
        font-size: 1.5rem;
    }

    .reels-connector {
        font-size: 1.2rem;
    }

    .casino-results-table {
        min-width: 340px;
    }
}

/* Extra Small Screens (<= 360px - iPhone SE / Galaxy Z) */
@media (max-width: 360px) {
    .brand-title {
        font-size: 0.88rem;
    }

    .btn-play-live {
        padding: 5px 8px;
        font-size: 0.72rem;
    }

    .single-reel-tile {
        width: 36px;
        height: 48px;
    }

    .reel-digit-num {
        font-size: 1.35rem;
    }

    .single-win-badge {
        width: 40px;
        height: 48px;
    }

    .single-win-num {
        font-size: 1.35rem;
    }

    .game-tab-btn {
        min-width: 100px;
        font-size: 0.75rem;
        padding: 6px 8px;
    }

    .ledger-tab-btn {
        padding: 6px 3px;
        font-size: 0.74rem;
        gap: 3px;
    }

    .tab-icon {
        font-size: 0.82rem;
    }

    .tab-count-pill {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
}