body {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
    overflow-y: auto;
    height: 100%;
}

.millionaire-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.millionaire-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 50%, rgba(168, 85, 247, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 50% 75%, rgba(34, 197, 94, 0.12) 1.5px, transparent 1.5px);
    background-size: 120px 120px, 180px 180px, 240px 240px;
    animation: sparkle 4s ease-in-out infinite alternate;
}

@keyframes sparkle {
    0% { opacity: 0.4; }
    100% { opacity: 0.9; }
}

.game-container {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.golden-text {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.entrance-animation {
    animation: entrance 0.8s ease-out;
}

@keyframes entrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.timer-circle {
    width: 80px;
    height: 80px;
    border: 4px solid #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #3b82f6;
    transition: all 0.3s ease;
}

.timer-warning {
    border-color: #f59e0b;
    color: #f59e0b;
}

.timer-danger {
    border-color: #ef4444;
    color: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}