/* css/base.css - PREMIUM GREEN THEME (WITH CIPHER PROTOCOL) */

:root {
    --bg-deep: #020502;
    --primary: #00ff9c;
    --primary-dim: rgba(0, 255, 156, 0.3);
    --accent: #ffffff;
    --glass-bg: rgba(10, 20, 15, 0.85);
    --border-color: rgba(0, 255, 156, 0.2);
}

* { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; user-select: none; }

body {
    margin: 0; padding: 0;
    background-color: var(--bg-deep);
    background-image: radial-gradient(circle at 50% 40%, #0a2e1a 0%, #000000 70%);
    color: var(--accent);
    font-family: 'Rajdhani', sans-serif;
    height: 100vh; overflow: hidden;
}

::-webkit-scrollbar { display: none; }

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

.hidden { display: none !important; }

.modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    z-index: 10000;
}

.special-glow { animation: pulseGlow 2s infinite; }
@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px var(--primary-dim); }
    50% { box-shadow: 0 0 20px var(--primary); }
    100% { box-shadow: 0 0 5px var(--primary-dim); }
}

/* --- LUCKY SPIN WHEEL STYLES --- */
#wheelCanvas {
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-dim), inset 0 0 20px rgba(0,0,0,0.8);
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.wheel-pointer {
    position: absolute; top: -22px; left: 50%;
    transform: translateX(-50%); z-index: 20;
    color: #ff0040; font-size: 45px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.8));
    pointer-events: none;
}

#spinBtn { transition: transform 0.1s, box-shadow 0.2s; }
#spinBtn:active { transform: scale(0.95); box-shadow: 0 0 10px var(--primary); }

/* --- GAME CARD STYLES --- */
.game-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.game-card:active {
    transform: scale(0.96);
    box-shadow: 0 0 10px var(--primary-dim) !important;
}

/* --- CIPHER PROTOCOL STYLES (NEW) --- */
.scanline-effect::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: rgba(0, 255, 156, 0.8);
    box-shadow: 0 0 10px #00ff9c;
    opacity: 0.7;
    z-index: 50;
    pointer-events: none;
    animation: scanMove 3s linear infinite;
}

@keyframes scanMove {
    0% { top: -5%; opacity: 0; }
    100% { top: 105%; opacity: 0; }
}

.cipher-key {
    background: rgba(255,255,255,0.1);
    border: 1px solid #333;
    color: #fff;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}
.cipher-key:active {
    background: #00ff9c;
    color: #000;
}
/* --- UTILITY CLASSES (Moved from HTML) --- */
.hidden { 
    display: none !important; 
}

.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 10000; 
    background: rgba(0,0,0,0.9); /* Dark background fix */
    backdrop-filter: blur(5px);   /* Blur effect */
}

/* --- ADMIN PANEL STYLE --- */
.admin-content {
    border: 2px solid #ff0040;
    background: #0a0000;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
}
