/* =====================================
   JACKPOT LIVE - Lottery Drawing Page
   Premium Gaming Theme with Gold & Coins
   ===================================== */

/* CSS Variables */
:root {
    --gold-light: #FFD700;
    --gold-main: #F4A724;
    --gold-dark: #B8860B;
    --gold-deep: #8B6914;
    --red-main: #FF4757;
    --red-dark: #C0392B;
    --purple-main: #9B59B6;
    --purple-dark: #6C3483;
    --bg-dark: #000000;
    --bg-gradient: linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    --card-bg: rgba(20, 20, 20, 0.95);
    --card-border: rgba(255, 215, 0, 0.2);
    --text-light: #FFFFFF;
    --text-gold: #FFD700;
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
    --glow-red: 0 0 20px rgba(255, 71, 87, 0.5), 0 0 40px rgba(255, 71, 87, 0.3);
}

/* ===== CSS Icons (Emoji Replacements) ===== */

/* Slot Machine Icon */
.icon-slot {
    display: inline-block;
    width: 1em;
    height: 1em;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    border-radius: 0.15em;
    position: relative;
    box-shadow: inset 0 -0.1em 0.2em rgba(0, 0, 0, 0.3);
}

.icon-slot::before {
    content: '777';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.35em;
    font-weight: 900;
    color: var(--red-main);
    text-shadow: 0.02em 0.02em 0 #fff;
}

.icon-slot.large {
    width: 2em;
    height: 2em;
}

.icon-slot.large::before {
    font-size: 0.6em;
}

/* Trophy Icon */
.icon-trophy {
    display: inline-block;
    width: 1em;
    height: 1em;
    position: relative;
}

.icon-trophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 60%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    border-radius: 0 0 50% 50%;
}

.icon-trophy::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 25%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-deep));
    border-radius: 0.1em;
}

/* Dice Icon */
.icon-dice {
    display: inline-block;
    width: 1em;
    height: 1em;
    background: linear-gradient(135deg, #fff, #ddd);
    border-radius: 0.15em;
    position: relative;
    box-shadow: 0.05em 0.05em 0.1em rgba(0, 0, 0, 0.3);
}

.icon-dice::before,
.icon-dice::after {
    content: '';
    position: absolute;
    width: 0.15em;
    height: 0.15em;
    background: #333;
    border-radius: 50%;
}

.icon-dice::before {
    top: 25%;
    left: 25%;
    box-shadow: 0.35em 0.35em 0 #333;
}

.icon-dice::after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Bolt/Lightning Icon */
.icon-bolt {
    display: inline-block;
    width: 0.6em;
    height: 1em;
    position: relative;
}

.icon-bolt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-main));
    clip-path: polygon(60% 0%, 10% 50%, 40% 50%, 0% 100%, 100% 40%, 60% 40%, 100% 0%);
}

/* Chart/Progress Icon */
.icon-chart {
    display: inline-block;
    width: 1em;
    height: 1em;
    position: relative;
}

.icon-chart::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(var(--gold-light), var(--gold-light)) 5% 80%/20% 20% no-repeat,
        linear-gradient(var(--gold-main), var(--gold-main)) 40% 50%/20% 50% no-repeat,
        linear-gradient(var(--gold-dark), var(--gold-dark)) 75% 20%/20% 80% no-repeat;
}

/* Gift Icon */
.icon-gift {
    display: inline-block;
    width: 1em;
    height: 1em;
    position: relative;
}

.icon-gift::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 10%;
    width: 80%;
    height: 70%;
    background: linear-gradient(135deg, var(--red-main), var(--red-dark));
    border-radius: 0.1em;
}

.icon-gift::after {
    content: '';
    position: absolute;
    top: 0;
    left: 30%;
    width: 40%;
    height: 35%;
    border: 0.1em solid var(--gold-light);
    border-bottom: none;
    border-radius: 50% 50% 0 0;
    background: transparent;
}

/* Star Icon */
.icon-star {
    display: inline-block;
    width: 1em;
    height: 1em;
    position: relative;
}

.icon-star::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-main));
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Medal Icon */
.icon-medal {
    display: inline-block;
    width: 1em;
    height: 1em;
    position: relative;
}

.icon-medal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 20%;
    height: 35%;
    background: var(--red-main);
}

.icon-medal::after {
    content: '';
    position: absolute;
    top: 0;
    right: 25%;
    width: 20%;
    height: 35%;
    background: var(--red-main);
}

.icon-medal.gold::before,
.icon-medal.gold::after {
    background: var(--red-main);
}

.icon-medal.silver::before,
.icon-medal.silver::after {
    background: #6c757d;
}

.icon-medal.bronze::before,
.icon-medal.bronze::after {
    background: #CD7F32;
}

/* Medal Circle */
.icon-medal span,
.icon-medal {
    display: inline-block;
}

.icon-medal {
    background: radial-gradient(circle at 30% 30%,
            var(--gold-light) 0%,
            var(--gold-main) 50%,
            var(--gold-dark) 100%);
    border-radius: 50%;
    border: 0.08em solid var(--gold-deep);
    margin-top: 0.3em;
}

.icon-medal.silver {
    background: radial-gradient(circle at 30% 30%,
            #e8e8e8 0%,
            #c0c0c0 50%,
            #808080 100%);
    border-color: #606060;
}

.icon-medal.bronze {
    background: radial-gradient(circle at 30% 30%,
            #DDA06D 0%,
            #CD7F32 50%,
            #8B4513 100%);
    border-color: #6B3500;
}

/* List Icon */
.icon-list {
    display: inline-block;
    width: 1em;
    height: 1em;
    position: relative;
}

.icon-list::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 60%;
    background:
        linear-gradient(var(--gold-light), var(--gold-light)) 0% 0%/100% 20% no-repeat,
        linear-gradient(var(--gold-main), var(--gold-main)) 0% 50%/100% 20% no-repeat,
        linear-gradient(var(--gold-dark), var(--gold-dark)) 0% 100%/100% 20% no-repeat;
}


/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans SC', 'Orbitron', sans-serif;
    background: #000000;
    color: var(--text-light);
    position: relative;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

/* Three.js Fireworks Canvas */
#fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
}

/* Online Count Display */
.online-count-display {
    position: fixed;
    top: 10px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.online-icon {
    color: #4cd137;
    /* Green dot */
    font-size: 0.8rem;
    animation: blink 2s infinite;
}

.online-text {
    font-size: 0.9rem;
    color: var(--gold-light);
    font-weight: bold;
}


/* Header */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: transparent;
    border: none;
    margin-bottom: 20px;
    box-shadow: none;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-main) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    letter-spacing: 3px;
}

.jackpot-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.jackpot-amount .label {
    font-size: 0.9rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.jackpot-amount .amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-light);
    text-shadow: var(--glow-gold);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Prize Display */
.prize-display {
    text-align: center;
    margin-bottom: 20px;
}


.current-prize-type {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 15px 40px;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
    border: 1px solid var(--gold-main);
    border-radius: 50px;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.15),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.current-prize-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.prize-badge {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-main) 100%);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px var(--gold-light);
    }

    to {
        box-shadow: 0 0 15px var(--gold-light);
    }
}

.prize-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.prize-count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.prize-count-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.prize-count-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 700;
}

.prize-amount-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 5px 15px;
    min-width: 100px;
}

.prize-amount-label {
    font-size: 0.7rem;
    color: var(--gold-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.prize-amount {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    padding: 0;
    background: none;
    border-radius: 0;
}

/* Slot Machine Wrapper */
.slot-machine-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    max-width: 100%;
    overflow: hidden;
}

.slot-machine-frame {
    position: relative;
    padding: 25px 30px;
    background: rgba(20, 20, 20, 0.9);
    border: 3px solid var(--gold-main);
    border-radius: 20px;
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.2),
        inset 0 0 50px rgba(0, 0, 0, 0.5),
        0 20px 60px rgba(0, 0, 0, 0.8);
    max-width: 100%;
    box-sizing: border-box;
}

/* Light Ring */
.light-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    pointer-events: none;
}

.light {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--gold-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-light), 0 0 20px var(--gold-main);
    animation: blink 0.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

.light:nth-child(-n+5) {
    top: 0;
    left: calc(var(--i) * 20% - 10%);
}

.light:nth-child(n+6):nth-child(-n+10) {
    right: 0;
    top: calc((var(--i) - 5) * 25%);
}

.light:nth-child(n+11):nth-child(-n+15) {
    bottom: 0;
    right: calc((var(--i) - 10) * 20% - 10%);
}

.light:nth-child(n+16) {
    left: 0;
    bottom: calc((var(--i) - 15) * 25%);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
        background: var(--gold-light);
    }

    50% {
        opacity: 0.3;
        background: var(--gold-dark);
    }
}

/* Slot Machine */
.slot-machine {
    position: relative;
    z-index: 2;
}

.reels-container {
    display: flex;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(180deg, #0D0D1A 0%, #1A1A2E 50%, #0D0D1A 100%);
    border-radius: 15px;
    border: 3px solid var(--gold-dark);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
    position: relative;
    /* Ensure relative positioning for overlay */
}

.reel-wrapper {
    width: 70px;
    height: 100px;
    overflow: hidden;
    background: linear-gradient(180deg, #000 0%, #1a1a2e 50%, #000 100%);
    border-radius: 10px;
    border: 2px solid var(--gold-main);
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.reel-wrapper::before,
.reel-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 2;
    pointer-events: none;
}

.reel-wrapper::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

.reel-wrapper::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.reel-wrapper.number-reel {
    background: linear-gradient(180deg, #1a0a0a 0%, #2a1a1a 50%, #1a0a0a 100%);
}

.reel {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.1s ease-out;
}

.symbol {
    width: 70px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold-light);
    text-shadow: 0 0 10px var(--gold-main), 0 0 20px var(--gold-dark);
}

.reel.spinning .symbol {
    animation: spinSymbol 0.08s linear infinite;
}

@keyframes spinSymbol {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100px);
    }
}

/* Lever */
.lever-container {
    position: relative;
}

.lever {
    width: 30px;
    height: 150px;
    background: linear-gradient(90deg, #8B4513 0%, #CD853F 50%, #8B4513 100%);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

.lever:hover {
    transform: scale(1.05);
}

.lever.pulled {
    transform: rotate(30deg);
}

.lever-handle {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 100px;
    background: linear-gradient(90deg, #4a4a4a 0%, #8a8a8a 50%, #4a4a4a 100%);
    border-radius: 5px;
}

.lever-ball {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, var(--red-main), var(--red-dark));
    border-radius: 50%;
    box-shadow: 0 0 15px var(--red-main), inset -5px -5px 10px rgba(0, 0, 0, 0.3);
}

/* Result Popup Display */
.result-display {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

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

.result-content {
    text-align: center;
    padding: 50px 80px;
    background: linear-gradient(135deg, #151515 0%, #000 100%);
    border: 2px solid var(--gold-main);
    border-radius: 30px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
    transform: scale(0.8);
    animation: popupScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popupScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 1s ease-in-out infinite;
}

.result-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 8px;
    margin-bottom: 10px;
    text-shadow: none;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

.result-prize {
    font-size: 1.5rem;
    color: var(--gold-light);
    font-weight: 700;
}

/* Control Panel */
.control-panel {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.spin-button,
.auto-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.spin-button::before,
.auto-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.spin-button:hover::before,
.auto-button:hover::before {
    left: 100%;
}

.spin-button {
    background: linear-gradient(135deg, #FFD700 0%, #F4A724 50%, #B8860B 100%);
    color: #000;
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.spin-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.spin-button:active {
    transform: translateY(0);
}

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

.auto-button {
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 50%, #6C3483 100%);
    color: #fff;
    box-shadow:
        0 4px 15px rgba(155, 89, 182, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(155, 89, 182, 0.5);
}

.auto-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(155, 89, 182, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.auto-button.active {
    background: linear-gradient(135deg, var(--red-main) 0%, var(--red-dark) 100%);
    animation: pulseButton 1s ease-in-out infinite;
}

@keyframes pulseButton {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
    }

    50% {
        box-shadow: 0 10px 40px rgba(230, 57, 70, 0.7);
    }
}

.button-icon {
    font-size: 1.5rem;
}

/* Progress Section */
.progress-section {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.progress-stats {
    display: flex;
    align-items: baseline;
    gap: 5px;
    background: rgba(255, 215, 0, 0.1);
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid var(--gold-dark);
}

.progress-current {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold-light);
    text-shadow: var(--glow-gold);
}

.progress-divider {
    font-size: 1.5rem;
    color: var(--gold-dark);
}

.progress-total {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.progress-label {
    font-size: 0.9rem;
    color: #888;
    margin-left: 10px;
}

/* Main Progress Bar */
.main-progress-container {
    margin-bottom: 15px;
    padding: 0 5px;
}

.main-progress-bar {
    position: relative;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    border: 1px solid var(--gold-dark);
    overflow: visible;
}

.main-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
            var(--gold-dark) 0%,
            var(--gold-main) 50%,
            var(--gold-light) 100%);
    border-radius: 8px;
    transition: width 0.5s ease-out;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    position: relative;
}

.main-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.3) 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.2) 100%);
    border-radius: 8px;
}

.progress-milestones {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.milestone {
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.milestone-dot {
    width: 10px;
    height: 10px;
    background: var(--gold-main);
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--gold-light);
}

.milestone-label {
    position: absolute;
    top: 18px;
    white-space: nowrap;
    font-size: 0.65rem;
    color: #888;
    font-weight: 600;
}

/* Prize Progress Cards */
.prize-progress-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.prize-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prize-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prize-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-main);
}

.prize-card.active {
    border-color: var(--gold-light);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    animation: cardPulse 2s ease-in-out infinite;
}

.prize-card.active::before {
    opacity: 1;
}

@keyframes cardPulse {

    0%,
    100% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.6);
    }
}

.prize-card.completed {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.prize-card.completed::before {
    background: linear-gradient(90deg, transparent, #28a745, transparent);
    opacity: 1;
}

.prize-card.grand {
    border-color: rgba(255, 165, 0, 0.3);
}

.prize-card.jackpot {
    border-color: rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.prize-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.prize-card-icon {
    font-size: 1.4rem;
}

.prize-card-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-light);
}

/* Prize Amount - Hero Element */
.prize-card-amount-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    padding: 8px 6px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 165, 0, 0.06) 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.prize-card-currency {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold-main);
}

.prize-card-amount {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--gold-light);
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
    line-height: 1;
}

/* Grand prize cards get bigger amounts */
.prize-card.grand .prize-card-amount {
    font-size: 1.6rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.prize-card.grand .prize-card-amount-row {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(255, 165, 0, 0.08) 100%);
    border-color: rgba(255, 215, 0, 0.25);
}

.prize-card.active .prize-card-amount-row {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.22) 0%, rgba(255, 165, 0, 0.12) 100%);
    border-color: rgba(255, 215, 0, 0.35);
    animation: amountPulse 2s ease-in-out infinite;
}

@keyframes amountPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.15);
    }

    50% {
        box-shadow: 0 0 18px rgba(255, 215, 0, 0.3);
    }
}

.prize-card.completed .prize-card-amount-row {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.25);
}

.prize-card.completed .prize-card-amount,
.prize-card.completed .prize-card-currency {
    color: #5cb85c;
    text-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

.prize-card-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.prize-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.prize-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.prize-progress-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-light);
    text-align: right;
}

.prize-card-status {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.prize-card.active .prize-card-status {
    color: var(--gold-light);
    background: rgba(255, 215, 0, 0.1);
}

.prize-card.completed .prize-card-status {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

/* Winners Section */
.winners-section {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.title-icon {
    font-size: 1.5rem;
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {

    0%,
    100% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

/* Winners Tabs */
.winners-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.winner-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    color: #888;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.winner-tab:hover {
    border-color: var(--gold-main);
    color: var(--text-light);
    background: rgba(255, 215, 0, 0.1);
}

.winner-tab.active {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
    border-color: var(--gold-light);
    color: var(--bg-dark);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.tab-icon {
    font-size: 1.1rem;
}

.tab-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
}

.winner-tab.active .tab-count {
    background: rgba(0, 0, 0, 0.2);
}

/* Winners Container */
.winners-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.winners-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

/* Empty State */
.empty-winners {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 15px;
    color: #666;
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.5;
    animation: bounce 2s ease-in-out infinite;
}

.empty-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #888;
}

.empty-hint {
    font-size: 0.9rem;
    color: #666;
}

/* Winner Card */
.winner-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(26, 26, 46, 0.95) 100%);
    border: 2px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    animation: fadeInSlide 0.5s ease-out;
    transition: all 0.3s ease;
}

.winner-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold-main);
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.2);
}

.winner-card.highlight {
    animation: highlightCard 0.8s ease-out;
    border-color: var(--gold-light);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

@keyframes highlightCard {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.winner-card .rank {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
    border-radius: 50%;
    font-weight: 700;
    color: var(--bg-dark);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.winner-card .rank.grand-rank {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    animation: pulseRank 1.5s ease-in-out infinite;
}

@keyframes pulseRank {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.winner-card .code {
    flex: 1;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 2px;
}

.winner-card .prize-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.winner-card .prize-tag.consolation {
    background: linear-gradient(135deg, #5a6268, #3d4145);
    color: white;
}

.winner-card .prize-tag.special {
    background: linear-gradient(135deg, var(--purple-main), var(--purple-dark));
    color: white;
}

.winner-card .prize-tag.third {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: white;
}

.winner-card .prize-tag.second {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #333;
}

.winner-card .prize-tag.first {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-main));
    color: #333;
    animation: firstPrizeGlow 1s ease-in-out infinite alternate;
}

.winner-card .winner-amount {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold-light);
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
    white-space: nowrap;
}

@keyframes firstPrizeGlow {
    from {
        box-shadow: 0 0 5px var(--gold-light);
    }

    to {
        box-shadow: 0 0 15px var(--gold-light), 0 0 25px var(--gold-main);
    }
}



/* Celebration Overlay */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.celebration-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.celebration-content {
    text-align: center;
    animation: zoomIn 0.5s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fireworks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.firework {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: fireworkExplode 1s ease-out forwards;
}

@keyframes fireworkExplode {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    50% {
        transform: scale(20);
        opacity: 0.8;
    }

    100% {
        transform: scale(30);
        opacity: 0;
    }
}

/* Firework Variations */
.firework.ring {
    background: transparent !important;
    border: 2px solid;
    animation: fireworkRing 1.2s ease-out forwards;
}

.firework.star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: fireworkExplode 1.5s ease-out forwards;
}

.firework.sparkle {
    animation: fireworkSparkle 1.5s ease-out forwards;
}

@keyframes fireworkRing {
    0% {
        transform: scale(0);
        opacity: 1;
        border-width: 2px;
    }

    50% {
        transform: scale(25);
        opacity: 0.8;
        border-width: 1px;
    }

    100% {
        transform: scale(40);
        opacity: 0;
        border-width: 0;
    }
}

@keyframes fireworkSparkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }

    25% {
        opacity: 0.5;
    }

    50% {
        transform: scale(35) rotate(180deg);
        opacity: 1;
    }

    75% {
        opacity: 0.5;
    }

    100% {
        transform: scale(60) rotate(360deg);
        opacity: 0;
    }
}

.big-win-text {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold-light);
    text-shadow: var(--glow-gold);
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px) rotate(-1deg);
    }

    75% {
        transform: translateX(5px) rotate(1deg);
    }
}

.winner-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-main) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 10px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    animation: pulse 1s ease-in-out infinite;
}

.winner-prize {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.close-celebration {
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
    color: var(--bg-dark);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(244, 167, 36, 0.4);
}

.close-celebration:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(244, 167, 36, 0.6);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-main);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .jackpot-amount {
        align-items: center;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .jackpot-amount .amount {
        font-size: 1.5rem;
    }

    .slot-machine-wrapper {
        flex-direction: column;
    }

    .lever-container {
        transform: rotate(-90deg);
    }

    .reel-wrapper {
        width: 50px;
        height: 70px;
    }

    .symbol {
        width: 50px;
        height: 70px;
        font-size: 1.8rem;
    }

    .control-panel {
        flex-direction: column;
        align-items: center;
    }

    .spin-button,
    .auto-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .result-code {
        font-size: 2.5rem;
        letter-spacing: 5px;
    }

    .prize-tiers {
        padding: 15px;
    }

    .tier {
        padding: 15px 20px;
        min-width: 100px;
    }

    .big-win-text {
        font-size: 2rem;
    }

    .winner-code {
        font-size: 3rem;
        letter-spacing: 5px;
    }

    .winner-prize {
        font-size: 1.8rem;
    }
}

/* Final Grand Prize Animation */
.grand-prize-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(120vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Tablet and below */
@media screen and (max-width: 768px) {
    .main-container {
        padding: 10px;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .logo-container {
        flex-direction: column;
        gap: 8px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .jackpot-amount .amount {
        font-size: 1.5rem;
    }


    .reels-container {
        gap: 5px;
    }

    .reel-wrapper {
        width: 45px;
        height: 70px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .reel {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .symbol {
        font-size: 2rem;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: normal;
        padding: 0;
        margin: 0;
    }

    /* Prize Display */
    .prize-display {
        padding: 8px;
        margin-bottom: 5px;
    }

    .current-prize-type {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 8px 15px;
    }

    .prize-badge,
    .prize-name,
    .prize-count {
        font-size: 1.1rem;
    }

    /* Progress Section */
    .progress-section {
        padding: 15px;
    }

    .progress-header {
        flex-direction: column;
        gap: 10px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .prize-progress-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 6px;
    }

    .prize-card {
        min-width: 140px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .prize-card {
        padding: 10px;
    }

    .prize-card-name {
        font-size: 0.85rem;
    }

    .prize-card-icon {
        font-size: 1.2rem;
    }

    .prize-card-amount {
        font-size: 1.2rem;
    }

    .prize-card-amount-row {
        padding: 6px 4px;
    }

    /* Winners Section */
    .winners-section {
        padding: 15px;
    }

    .winners-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .winner-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
        flex: 1 1 45%;
    }

    .winners-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .winner-card {
        padding: 12px;
    }

    .winner-code {
        font-size: 1rem;
    }

    /* Celebration Overlay */
    .celebration-content {
        padding: 20px 15px;
        width: 85%;
        border-radius: 20px;
    }

    .big-win-text {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .winner-code {
        font-size: 1.8rem;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }

    .winner-prize {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    /* Result Popup */
    .result-content {
        padding: 20px 30px;
        width: 85%;
        border-radius: 20px;
    }

    .result-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .result-code {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .result-prize {
        font-size: 1.1rem;
    }
}

/* Mobile phones */
@media screen and (max-width: 480px) {
    .main-container {
        padding: 5px;
        overflow-x: hidden;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .header {
        padding: 10px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .jackpot-amount .label {
        font-size: 0.8rem;
    }

    .jackpot-amount .amount {
        font-size: 1.2rem;
    }

    /* Slot Machine - fit within viewport */
    .slot-machine-frame {
        padding: 15px 10px;
    }

    .light-ring {
        display: none;
    }

    .reels-container {
        padding: 10px;
        gap: 4px;
    }

    .reel-wrapper {
        width: 38px;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .symbol {
        font-size: 1.6rem;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: normal;
    }

    /* Lever */
    .lever-container {
        display: none;
    }

    /* Prize Display Mobile */
    .prize-display {
        margin-bottom: 12px;
        max-width: 100%;
        overflow: hidden;
    }

    .current-prize-type {
        padding: 8px 12px;
        gap: 8px;
        border-radius: 40px;
        max-width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap;
        justify-content: center;
    }

    .prize-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
        height: 28px;
        white-space: nowrap;
    }

    .prize-name {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .prize-amount-container {
        padding: 4px 10px;
        min-width: 60px;
        border-radius: 8px;
    }

    .prize-amount {
        font-size: 1.1rem;
    }

    .prize-count-label {
        font-size: 0.6rem;
    }

    .prize-count-value {
        font-size: 1rem;
    }

    /* Control Panel */
    .control-panel {
        padding: 10px;
    }

    .spin-button,
    .auto-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .button-icon {
        display: none;
    }

    /* Progress Section */
    .progress-section {
        padding: 10px;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .section-title {
        font-size: 1rem;
    }

    .title-icon {
        display: none;
    }

    .prize-progress-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 6px;
    }

    .prize-progress-cards::-webkit-scrollbar {
        height: 3px;
    }

    .prize-progress-cards::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    .prize-progress-cards::-webkit-scrollbar-thumb {
        background: rgba(255, 215, 0, 0.3);
        border-radius: 3px;
    }

    .prize-card {
        min-width: 120px;
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 8px;
    }

    .prize-card-header {
        gap: 4px;
        margin-bottom: 4px;
    }

    .prize-card-name {
        font-size: 0.8rem;
    }

    .prize-card-icon {
        font-size: 1rem;
    }

    .prize-card-amount {
        font-size: 1.2rem;
    }

    .prize-card.grand .prize-card-amount {
        font-size: 1.3rem;
    }

    .prize-card-currency {
        font-size: 0.8rem;
    }

    .prize-card-amount-row {
        padding: 5px 3px;
        margin-bottom: 6px;
    }

    .prize-progress-text {
        font-size: 0.7rem;
    }

    .prize-card-status {
        font-size: 0.65rem;
    }

    /* Main Progress Bar */
    .main-progress-bar {
        height: 15px;
    }

    .milestone-label {
        font-size: 0.6rem;
    }

    .milestone-dot {
        width: 8px;
        height: 8px;
    }

    /* Winners Section */
    .winners-section {
        padding: 8px;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .winners-tabs {
        gap: 5px;
    }

    .winner-tab {
        padding: 5px 8px;
        font-size: 0.65rem;
    }

    .tab-icon {
        display: none;
    }

    .tab-count {
        padding: 1px 4px;
        font-size: 0.55rem;
    }

    .winner-card {
        padding: 10px;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .winner-code {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .winner-prize-type {
        font-size: 0.75rem;
    }

    /* Empty State */
    .empty-icon {
        font-size: 1.8rem;
    }

    .empty-text {
        font-size: 1rem;
    }

    .empty-hint {
        font-size: 0.8rem;
    }

    /* Celebration Overlay */
    .celebration-content {
        padding: 15px 10px;
        width: 85%;
        border-radius: 20px;
    }

    .big-win-text {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .winner-code {
        font-size: 1.4rem;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .winner-prize {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    /* Result Popup */
    .result-content {
        padding: 15px 20px;
        width: 85%;
        border-radius: 20px;
    }

    .result-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .result-code {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .result-prize {
        font-size: 0.9rem;
    }

    .close-celebration {
        padding: 8px 25px;
        font-size: 0.9rem;
    }
}

/* Extra small phones */
@media screen and (max-width: 360px) {
    .current-prize-type {
        padding: 8px 12px;
        gap: 6px;
    }

    .prize-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .prize-name {
        font-size: 1rem;
    }

    .prize-amount-container {
        padding: 3px 8px;
        min-width: 70px;
    }

    .prize-amount {
        font-size: 1rem;
    }

    .slot-machine-wrapper {
        transform: scale(0.52);
        margin: -15px 0;
    }

    .reel-wrapper {
        width: 32px;
        height: 50px;
    }

    .symbol {
        font-size: 1.4rem;
    }

    .prize-progress-cards {
        grid-template-columns: 1fr;
    }

    .winner-tab {
        flex: 1 1 100%;
    }
}

/* Landscape mode on mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .slot-machine-wrapper {
        transform: scale(0.5);
        margin: -60px 0;
    }

    .header {
        padding: 5px 15px;
    }

    .progress-section,
    .winners-section {
        padding: 8px;
    }
}

/* ===== Waiting View Styles ===== */

.view-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.waiting-content {
    width: 90%;
    max-width: 800px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 60px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.logo-text.large {
    font-size: 3.5rem;
    margin-bottom: 40px;
    letter-spacing: 8px;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.waiting-jackpot {
    margin-bottom: 50px;
}

.waiting-label {
    display: block;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.waiting-amount {
    font-size: 5rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-main) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(244, 167, 36, 0.3);
    animation: pulseGlow 2s infinite alternate ease-in-out;
}

.countdown-container {
    position: relative;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.countdown-label {
    display: block;
    font-size: 1rem;
    color: var(--gold-main);
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.countdown-timer {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    letter-spacing: 5px;
    margin-bottom: 15px;
}

.countdown-target {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes pulseGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(244, 167, 36, 0.2));
        transform: scale(1);
    }

    to {
        filter: drop-shadow(0 0 25px rgba(244, 167, 36, 0.5));
        transform: scale(1.02);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for Waiting View */
@media screen and (max-width: 768px) {
    .logo-text.large {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }

    .waiting-amount {
        font-size: 3rem;
    }

    .countdown-timer {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .waiting-content {
        padding: 40px 20px;
    }
}

@media screen and (max-width: 480px) {
    .waiting-amount {
        font-size: 2.2rem;
    }

    .countdown-timer {
        font-size: 2rem;
    }
}

/* Countdown Overlay */
/* Countdown Overlay */
.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
    animation: fadeIn 0.3s ease-out;
}

.countdown-overlay.show {
    display: flex;
}

.countdown-content {
    text-align: center;
    background: transparent;
    padding: 0;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: pulse 1s infinite alternate;
}

.countdown-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: var(--gold-light);
    text-shadow: 0 0 15px var(--gold-main), 0 0 30px var(--red-main);
    line-height: 1;
}

.countdown-text {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Fairness Verification Entry Point */
.fairness-entry {
    margin: 30px auto;
    max-width: 600px;
    width: 100%;
    padding: 0 15px;
}

.verify-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.verify-link:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold-main);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.verify-icon {
    font-size: 1.5rem;
}

.verify-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gold-light);
}

.verify-arrow {
    font-size: 1.2rem;
    color: var(--gold-dark);
    transition: transform 0.3s ease;
}

.verify-link:hover .verify-arrow {
    transform: translateX(5px);
    color: var(--gold-light);
}

@media screen and (max-width: 480px) {
    .verify-text {
        font-size: 0.9rem;
    }

    .verify-link {
        padding: 12px 18px;
    }
}

.fairness-verification {
    margin-top: 25px;
    padding-bottom: 30px;
    display: flex;
    justify-content: center;
    padding-left: 15px;
    padding-right: 15px;
}

.verify-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.verify-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.verify-link:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-color: var(--gold-main);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.verify-link:hover::before {
    transform: translateX(100%);
}

.verify-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.verify-icon {
    font-size: 1.4rem;
}

.verify-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.verify-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.5px;
}

.verify-desc {
    font-size: 0.75rem;
    color: #888;
    font-weight: 400;
}

.verify-link:hover .verify-desc {
    color: #aaa;
}

.verify-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-arrow {
    font-size: 1.2rem;
    color: var(--gold-dark);
    transition: transform 0.3s ease, color 0.3s ease;
}

.verify-link:hover .verify-arrow {
    transform: translateX(5px);
    color: var(--gold-light);
}

/* Navigation Actions Grid */
.nav-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
}

@media screen and (max-width: 600px) {
    .nav-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* Reusing verify-link styles for history-link with minor tweaks if needed */
.nav-link-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.nav-link-card:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-color: var(--gold-main);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.nav-link-card:hover::before {
    transform: translateX(100%);
}

.nav-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-icon {
    font-size: 1.4rem;
}

.nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.5px;
}

.nav-desc {
    font-size: 0.75rem;
    color: #888;
    font-weight: 400;
}

.nav-link-card:hover .nav-desc {
    color: #aaa;
}

.nav-arrow {
    font-size: 1.2rem;
    color: var(--gold-dark);
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-link-card:hover .nav-arrow {
    transform: translateX(5px);
    color: var(--gold-light);
}

/* Waiting View History Button */
/* Waiting View History Button */
.waiting-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.history-btn-waiting {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--gold-dark);
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--gold-light);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.history-btn-waiting:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold-light);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}