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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f4c75, #3282b8, #bbe1fa);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

#game-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px #ffd700; }
    to { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px #ffd700, 0 0 30px #ffd700; }
}

#stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
}

.label {
    color: #ffd700;
}

#start-screen, #result-screen {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
}

.welcome h2 {
    margin-bottom: 20px;
    color: #ffd700;
}

.welcome p {
    margin-bottom: 30px;
    font-size: 1.2em;
    opacity: 0.9;
}

#player-name {
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    margin: 20px;
    width: 250px;
    text-align: center;
}

button {
    padding: 15px 30px;
    font-size: 16px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    margin: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#question-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
}

#category-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #ffd700;
    color: #333;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

#question-number {
    text-align: right;
    opacity: 0.7;
    margin-bottom: 10px;
}

#question-text {
    font-size: 1.4em;
    margin-bottom: 25px;
    line-height: 1.4;
}

#options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.option {
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.option:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffd700;
}

.option.selected {
    background: #ffd700;
    color: #333;
    border-color: #ffed4e;
}

.option.correct {
    background: #27ae60;
    border-color: #2ecc71;
}

.option.incorrect {
    background: #e74c3c;
    border-color: #c0392b;
}

#timer-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

#timer-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

#timer-bar::before {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #f39c12, #e74c3c);
    width: 100%;
    transition: width 0.1s linear;
}

#timer-text {
    font-size: 1.2em;
    font-weight: bold;
    min-width: 30px;
}

#powerups {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.powerup-info {
    margin-bottom: 15px;
    text-align: center;
}

.powerup-info h4 {
    color: #ffd700;
    margin-bottom: 10px;
}

.powerup-info p {
    margin: 5px 0;
    font-size: 14px;
    opacity: 0.9;
}

.powerup-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.powerup {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    min-width: 100px;
}

.powerup:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#leaderboard {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-top: 20px;
}

#leaderboard h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #ffd700;
}

.leaderboard-entry {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    font-size: 20px;
    animation: fall linear infinite;
}

@keyframes fall {
    from {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.achievement {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    margin: 10px;
    display: inline-block;
    font-weight: bold;
    animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    #options-container {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2em;
    }
    
    #stats {
        gap: 15px;
    }
}
@keyframes comicFloat {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.5) rotate(360deg);
        opacity: 0;
    }
}

@keyframes comicBounce {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

@keyframes fireworkExplode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(20);
        opacity: 0.8;
    }
    100% {
        transform: scale(40);
        opacity: 0;
    }
}

.leaderboard-entry:first-child {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    font-weight: bold;
    animation: crownGlow 2s ease-in-out infinite alternate;
}

.leaderboard-entry:first-child::before {
    content: '👑 ';
}

@keyframes crownGlow {
    from { box-shadow: 0 0 5px #ffd700; }
    to { box-shadow: 0 0 15px #ffd700, 0 0 25px #ffd700; }
}
