:root {
    --primary-blue: #1e3a8a;
    --electric-blue: #3b82f6;
    --gold-bright: #FFD700;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #F59E0B 50%, #B8860B 100%);
    --bg-deep: #0a0f2a;
    --glass-blue: rgba(59, 130, 246, 0.2);
    --neon-glow: 0 0 30px rgba(59, 130, 246, 0.8);
    --success-glow: 0 0 40px rgba(34, 197, 94, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background: linear-gradient(135deg, #243698 0%, #11193c 100%);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Animated Particles Background */
body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 40%, rgba(255, 215, 0, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 80% 60%, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Floating particles animation */
@keyframes floatParticle {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.game-container {
    max-width: 1250px;
    width: 95%;
    background: rgba(10, 20, 50, 0.7);
    backdrop-filter: blur(25px);
    border-radius: 2.5rem;
    padding: 3.5rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(25, 57, 156, 0.3);
    position: relative;
}

/* Animated Border Line */
.border-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 2.5rem;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.border-line::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, var(--gold-bright));
    animation: rotateBorder 6s linear infinite;
}

@keyframes rotateBorder {
    100% {
        transform: rotate(360deg);
    }
}

.inner-bg {
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: #08112d;
    border-radius: 2.4rem;
    z-index: 1;
}


.content-wrapper {
    position: relative;
    z-index: 5;
}

/* HEADER */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    width: 100%;
}

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

.logo-main {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #fff, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.badge-live {
    background: rgba(220, 38, 38, 0.9);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    animation: pulseRed 1.2s infinite;
    box-shadow: 0 0 12px #ef4444;
    position: absolute;
    right: 0;
    white-space: nowrap;
}

.status-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 6px 16px;
    border-radius: 30px;
    text-transform: uppercase;
    animation: pulseGlow 1.2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 5px #ef4444;
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 25px #ef4444;
        transform: scale(1.02);
    }
}

.credits-panel {
    background: linear-gradient(135deg, #1e3a8a, #0f2a5e);
    padding: 0.6rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--gold-bright);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.credits-panel::after {
    content: '⚡';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    animation: sparkle 1s infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

.c-label {
    font-size: 0.7rem;
    color: #a5b4fc;
    font-weight: 700;
    display: block;
    letter-spacing: 1px;
}

.c-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--gold-bright);
    font-weight: 900;
}

/* MAIN ARENA */
.arena {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    gap: 2.5rem;
    align-items: stretch;
}

/* LEFT: REEL */
.reel-section {
    background: linear-gradient(145deg, #1b284a, #08102a);
    border-radius: 2rem;
    padding: 1.8rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(5px);
}

.reel-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--gold-bright);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.reel-title::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-bright), transparent);
}

.reel-viewport {
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #030617;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 215, 0, 0.2);
}

.winning-bar {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 80px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(203, 174, 6, 0.2), rgba(210, 210, 9, 0.3), rgba(193, 165, 7, 0.2));
    border-top: 3px solid var(--gold-bright);
    border-bottom: 3px solid var(--gold-bright);
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}

.winning-bar::before {
    content: '🏆 WINNING ZONE 🏆';
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--gold-bright);
    letter-spacing: 2px;
    background: linear-gradient(135deg, #1e3a8a, #0f2a5e);
    padding: 4px 20px;
    border-radius: 30px;
    border: 1px solid var(--gold-bright);
    white-space: nowrap;
}

.reel-content {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transition: transform 18s cubic-bezier(0.08, 0.55, 0.12, 1);
}

.player-row {
    height: 80px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.p-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 700;
    transition: all 0.4s;
    letter-spacing: 1px;
}

.p-val {
    font-size: 1rem;
    color: var(--gold-bright);
    font-weight: 800;
    opacity: 0.4;
    transition: all 0.4s;
}

/* WINNER CELEBRATION STYLE */
.player-row.winner {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.25), rgba(59, 130, 246, 0.4), rgba(255, 215, 0, 0.25));
    border-top: 2px solid var(--gold-bright);
    border-bottom: 2px solid var(--gold-bright);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
    transform: scale(1.02);
}

.player-row.winner .p-name {
    color: #FFE484;
    text-shadow: 0 0 20px #FFD700, 0 0 40px #FFA500;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.player-row.winner .p-val {
    opacity: 1;
    filter: drop-shadow(0 0 12px gold);
    transform: scale(1.15);
    color: #FFE484;
}

/* RIGHT: CONTROLS */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    height: 100%;
}

.bonus-card {
    background: linear-gradient(145deg, #1b284a, #08102a);
    border-radius: 2.5rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* DISC SCROLLER - Enhanced */
.disc-scroller {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 100px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.disc {
    width: 65px;
    height: 65px;
    background: radial-gradient(circle at 35% 35%, #ba9f08, #F5A623, #B8860B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    border: 2px solid #fff;
    transition: all 0.15s ease;
    cursor: default;
}

.disc.spinning {
    animation: discSpin 0.4s ease-in-out infinite;
}

@keyframes discSpin {
    0% {
        transform: rotate(0deg) scale(1);
        filter: brightness(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
        filter: brightness(1.4);
    }

    100% {
        transform: rotate(360deg) scale(1);
        filter: brightness(1);
    }
}


.award-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--gold-gradient);
    border: none;
    border-radius: 60px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: #000;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 8px 0 #92400e, 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.1s ease;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
}

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

.award-button:hover:not(:disabled)::before {
    left: 100%;
}

.award-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 11px 0 #92400e, 0 25px 50px rgba(0, 0, 0, 0.5);
}

.award-button:active:not(:disabled) {
    transform: translateY(6px);
    box-shadow: 0 2px 0 #92400e;
}

.award-button:disabled {
    filter: grayscale(0.3);
    opacity: 0.6;
    cursor: not-allowed;
}

.status-text {
    margin-top: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.award-log {
    background: rgba(10, 20, 45, 0.6);
    border-radius: 1.5rem;
    padding: 1.2rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
    max-height: 220px;
    overflow-y: auto;
}

.log-header {
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-left: 3px solid #FFD700;
    padding-left: 12px;
}

.log-row {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.log-row:hover {
    background: rgba(255, 215, 0, 0.1);
    padding-left: 8px;
}

.log-name {
    color: #cbd5e1;
}

.log-val {
    color: var(--gold-bright);
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
}

/* ENHANCED MODAL */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 30, 0.98);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(20px);
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-box {
    background: linear-gradient(145deg, #1e3a8a, #0a0f2a);
    border: 3px solid var(--gold-bright);
    border-radius: 3rem;
    padding: 3rem;
    text-align: center;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 0 100px rgba(255, 215, 0, 0.4);
    animation: modalBounce 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes modalBounce {
    0% {
        transform: scale(0.3) rotate(-5deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.05) rotate(2deg);
    }

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

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2.5rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #FFD700;
}

.modal-user {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-align: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 1rem 0;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.modal-reward {
    font-size: 1.8rem;
    color: #FFD700;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.claim-btn {
    background: var(--gold-gradient);
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    padding: 1rem 3rem;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.1s;
}

.claim-btn:active {
    transform: scale(0.97);
}

@media (max-width: 1000px) {
    .arena {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .player-row {
        padding: 0 1rem;
    }

    .p-name {
        font-size: 1.2rem;
    }

    .disc {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

.pos-badge {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}