body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    overflow-y: scroll;
    line-height: 1.6;
}

body::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #1a1a2e, #8b1e1e, transparent);
    opacity: 0;
    transition: all 5s ease;
    z-index: 1;
}

body.red-mode::before {
    top: 0;
    opacity: 0.85;
}

.container {
    max-width: 700px;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

h1 {
    color: #ff4444;
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 1;
    animation: flicker 10s infinite;    line-height: 1.5;}

.queue-info {
    font-size: 2.3rem;
    margin: 30px 0;
    min-height: 90px;
}

.number {
    font-size: 5.8rem;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

.waiting {
    font-size: 2.6rem;
    color: #ffd700;
    animation: pulse 1.5s infinite;
    margin: 50px 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes flicker {
    0% { opacity: 0.9; }
    25% { opacity: 0.5; }
    50% { opacity: 0.9; }
    75% { opacity: 0.5; }
    100% { opacity: 0.9; }
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.extreme {
    display: none;
    background: #131c35;
    border: 2px solid #ff4444;
    border-radius: 15px;
    padding: 35px;
    margin: 40px auto;
    max-width: 620px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 50px rgba(255, 68, 68, 0.4);
}

@keyframes slideIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.extreme::before {
    display: none;
}

.extreme-title {
    color: #ff6666;
    font-size: 2.1rem;
    margin-bottom: 15px;
}

.timer {
    font-size: 4.3rem;
    font-weight: bold;
    color: #ffdd66;
    margin: 25px 0;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 35px 0;
}

.progress {
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, #00ff88, #00cc66);
    transition: width 0.9s ease;
}

.footer {
    margin-top: 60px;
    font-size: 1.15rem;
    opacity: 0.85;
    min-height: 50px;
    position: relative;
    z-index: 2;
}
