/* ========================================
   PIXELQUIZ - MAIN STYLESHEET
   Retro 8-Bit Style Quiz Game
   ======================================== */

/* Google Fonts - Pixel Style */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

/* CSS Variables - 80s Neon Theme (Soft) */
:root {
    --neon-cyan: #00d4e6;
    --neon-magenta: #d946ef;
    --neon-pink: #ec4899;
    --neon-purple: #a855f7;
    --neon-blue: #06b6d4;
    --neon-yellow: #fbbf24;
    --neon-green: #10b981;
    --neon-orange: #f97316;
    
    --primary-color: var(--neon-magenta);
    --primary-dark: var(--neon-purple);
    --secondary-color: var(--neon-cyan);
    --accent-color: var(--neon-pink);
    --success-color: var(--neon-green);
    --error-color: #ff0055;
    --warning-color: var(--neon-orange);
    
    --bg-dark: #0a0015;
    --bg-medium: #150028;
    --bg-light: #1a0033;
    --bg-grid: rgba(0, 243, 255, 0.1);
    
    --text-primary: #ffffff;
    --text-secondary: #b388ff;
    --text-accent: var(--neon-cyan);
    
    --pixel-shadow: 4px 4px 0px rgba(0, 0, 0, 0.8);
    --neon-glow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    --neon-glow-strong: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 20px currentColor, 0 0 40px currentColor;
    --pixel-border: 3px solid #000;
    
    --font-pixel: 'Press Start 2P', cursive;
    --font-retro: 'VT323', monospace;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-retro);
    /* Subtle Vaporwave Sunset Background */
    background: 
        /* Soft scanline overlay */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.02) 2px,
            rgba(0, 0, 0, 0.02) 4px
        ),
        /* Smooth sky gradient - softer colors */
        linear-gradient(180deg, 
            #0a1a2e 0%,
            #1a2540 10%,
            #2a3555 25%,
            #3d2545 45%,
            #4d2050 65%,
            #3a1840 85%,
            #1a0830 100%
        );
    background-attachment: fixed;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1920px;
    height: 1080px;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Subtle Retro Sun */
body::before {
    content: '';
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(200, 120, 150, 0.25) 0%, 
        rgba(180, 100, 130, 0.18) 40%, 
        rgba(160, 80, 110, 0.08) 70%,
        transparent 100%);
    box-shadow: 
        0 0 40px rgba(200, 120, 150, 0.15),
        0 0 80px rgba(180, 100, 130, 0.08);
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%);
    z-index: -2;
    opacity: 0.6;
}

/* Soft gradient overlay at bottom */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: 
        linear-gradient(to bottom, 
            transparent 0%, 
            rgba(10, 5, 20, 0.3) 40%, 
            rgba(10, 5, 20, 0.6) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* Game Container */
.game-container {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    max-height: 1080px;
    padding: 40px 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

/* Screens */
.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   START SCREEN
   ======================================== */

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.pixel-title {
    font-family: var(--font-pixel);
    font-size: 4rem;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.pixel-title .letter {
    display: inline-block;
    color: var(--neon-cyan);
    text-shadow: 
        0 0 5px rgba(0, 212, 230, 0.6),
        0 0 10px rgba(0, 212, 230, 0.4),
        0 0 15px rgba(0, 212, 230, 0.2),
        2px 2px 0 rgba(0, 0, 0, 0.5);
    animation: letterBounce 1s ease infinite;
    animation-delay: calc(var(--delay) * 0.1s);
}

.pixel-title .letter.accent {
    color: var(--neon-magenta);
    text-shadow: 
        0 0 5px rgba(217, 70, 239, 0.6),
        0 0 10px rgba(217, 70, 239, 0.4),
        0 0 15px rgba(217, 70, 239, 0.2),
        2px 2px 0 rgba(0, 0, 0, 0.5);
}

@keyframes letterBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.subtitle {
    font-family: var(--font-retro);
    font-size: 2rem;
    color: var(--neon-pink);
    text-shadow: 
        0 0 5px rgba(236, 72, 153, 0.5),
        0 0 10px rgba(236, 72, 153, 0.3),
        2px 2px 0 rgba(0, 0, 0, 0.6);
}

/* Menu Container */
.menu-container {
    background: rgba(5, 5, 15, 0.92);
    border: 4px solid rgba(0, 212, 230, 0.4);
    border-radius: 20px;
    padding: 45px 55px;
    width: 100%;
    max-width: 900px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 212, 230, 0.15),
        inset 0 0 30px rgba(0, 212, 230, 0.05);
    backdrop-filter: blur(15px);
}

/* Difficulty Select - More spacing without player input */
.difficulty-select {
    margin-bottom: 25px;
}

.difficulty-select label,
.category-select label {
    display: block;
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--neon-pink);
    text-shadow: 0 0 8px rgba(236, 72, 153, 0.5);
    margin-bottom: 15px;
    text-align: center;
}

/* Remove unused player input styles */

/* Difficulty Buttons - Larger */
.difficulty-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.difficulty-btn {
    flex: 1;
    padding: 20px 15px;
    font-size: 1rem !important;
}

.difficulty-btn.active {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.5) 0%, rgba(168, 85, 247, 0.5) 100%);
    transform: scale(1.05);
    box-shadow: 
        0 0 10px rgba(217, 70, 239, 0.4),
        0 0 15px rgba(217, 70, 239, 0.2),
        inset 0 0 10px rgba(217, 70, 239, 0.15);
}

/* Category Buttons - Larger with more space */
.category-select {
    margin-bottom: 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.category-btn {
    padding: 25px 15px;
    font-size: 0.85rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.category-btn .icon {
    font-size: 2.5rem;
}

.category-btn.active {
    background: linear-gradient(135deg, rgba(0, 212, 230, 0.5) 0%, rgba(6, 182, 212, 0.5) 100%);
    transform: scale(1.05);
    box-shadow: 
        0 0 10px rgba(0, 212, 230, 0.4),
        0 0 15px rgba(0, 212, 230, 0.2),
        inset 0 0 10px rgba(0, 212, 230, 0.15);
}

/* Pixel Buttons */
.pixel-btn {
    font-family: var(--font-pixel);
    font-size: 1rem;
    padding: 18px 30px;
    border: 3px solid var(--neon-magenta);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        var(--pixel-shadow),
        0 0 8px rgba(217, 70, 239, 0.3),
        inset 0 0 10px rgba(217, 70, 239, 0.1);
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(217, 70, 239, 0.4);
}

.pixel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        6px 6px 0px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 212, 230, 0.5),
        0 0 20px rgba(0, 212, 230, 0.3),
        inset 0 0 15px rgba(0, 212, 230, 0.15);
    border-color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 212, 230, 0.6);
}

.pixel-btn:active {
    transform: translateY(2px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.start-btn {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(5, 150, 105, 0.35) 100%);
    border-color: var(--neon-green);
    font-size: 1.3rem;
    padding: 25px 35px;
    box-shadow: 
        var(--pixel-shadow),
        0 0 10px rgba(16, 185, 129, 0.4),
        inset 0 0 10px rgba(16, 185, 129, 0.1);
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}

.start-btn:hover {
    box-shadow: 
        6px 6px 0px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(16, 185, 129, 0.6),
        0 0 25px rgba(16, 185, 129, 0.3);
    border-color: var(--neon-green);
}

.secondary-btn {
    width: 100%;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-medium) 100%);
}

/* Moderator Bubble */
.moderator-bubble {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid var(--neon-cyan);
    border-radius: 15px;
    padding: 20px 25px;
    margin-top: 30px;
    max-width: 800px;
    animation: bubblePop 0.5s ease;
    box-shadow: 
        0 0 10px rgba(0, 212, 230, 0.3),
        inset 0 0 15px rgba(0, 212, 230, 0.05);
}

@keyframes bubblePop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.moderator-avatar {
    font-size: 3rem;
    animation: avatarBob 2s ease-in-out infinite;
}

@keyframes avatarBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.moderator-text {
    font-family: var(--font-retro);
    font-size: 1.5rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ========================================
   GAME SCREEN
   ======================================== */

#game-screen {
    justify-content: flex-start;
    padding-top: 20px;
}

/* Game Home Button */
.game-home-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid var(--error-color);
    border-radius: 15px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-home-btn:hover {
    background: var(--error-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.6);
}

.game-home-btn:active {
    transform: scale(0.95);
}

/* Game Header */
.game-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-magenta);
    border-radius: 10px;
    padding: 12px 20px;
    text-align: center;
    flex: 1;
    box-shadow: 
        0 0 8px rgba(217, 70, 239, 0.25),
        inset 0 0 10px rgba(217, 70, 239, 0.05);
}

.stat-label {
    display: block;
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 212, 230, 0.4);
}

.timer-box {
    border-color: var(--error-color);
    box-shadow: 
        0 0 8px rgba(255, 0, 85, 0.25),
        inset 0 0 10px rgba(255, 0, 85, 0.05);
}

.timer-box .stat-value {
    color: var(--error-color);
    text-shadow: 0 0 5px rgba(255, 0, 85, 0.4);
}

.timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.timer-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    overflow: hidden;
}

.timer-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--error-color), var(--warning-color));
    transition: width 1s linear;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    margin-bottom: 25px;
}

.progress-text {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 16px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        0 0 5px rgba(0, 212, 230, 0.2),
        inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-magenta), var(--neon-cyan));
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 212, 230, 0.3);
}

/* Question Container */
.question-container {
    width: 100%;
    margin-bottom: 20px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.4), rgba(168, 85, 247, 0.4));
    border: 2px solid var(--neon-magenta);
    padding: 10px 20px;
    border-radius: 25px;
    margin-bottom: 18px;
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.3);
    text-shadow: 0 0 5px rgba(217, 70, 239, 0.4);
}

.badge-icon {
    font-size: 1.3rem;
}

.question-box {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid var(--neon-cyan);
    border-radius: 15px;
    padding: 35px 40px;
    box-shadow: 
        var(--pixel-shadow),
        0 0 15px rgba(0, 212, 230, 0.3),
        inset 0 0 20px rgba(0, 212, 230, 0.05);
}

.question-text {
    font-family: var(--font-retro);
    font-size: 2.2rem;
    text-align: center;
    line-height: 1.5;
    color: var(--text-primary);
}

/* Answers Container */
.answers-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 25px;
}

.answer-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.7) 0%, rgba(10, 0, 21, 0.7) 100%);
    border: 3px solid var(--neon-purple);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        var(--pixel-shadow),
        0 0 8px rgba(168, 85, 247, 0.25),
        inset 0 0 10px rgba(168, 85, 247, 0.05);
}

.answer-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    border-color: var(--neon-cyan);
    box-shadow: 
        6px 6px 0px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 212, 230, 0.4),
        0 0 20px rgba(0, 212, 230, 0.2),
        inset 0 0 15px rgba(0, 212, 230, 0.1);
}

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

.answer-btn.correct {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(5, 150, 105, 0.4) 100%);
    border-color: var(--neon-green);
    animation: correctPulse 0.5s ease;
    box-shadow: 
        0 0 15px rgba(16, 185, 129, 0.5),
        0 0 25px rgba(16, 185, 129, 0.3),
        inset 0 0 15px rgba(16, 185, 129, 0.15);
}

.answer-btn.wrong {
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.4) 0%, rgba(239, 68, 68, 0.4) 100%);
    border-color: var(--error-color);
    animation: wrongShake 0.5s ease;
    box-shadow: 
        0 0 15px rgba(255, 0, 85, 0.5),
        0 0 25px rgba(255, 0, 85, 0.3),
        inset 0 0 15px rgba(255, 0, 85, 0.15);
}

.answer-btn.eliminated {
    opacity: 0.3;
    transform: scale(0.95);
    pointer-events: none;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.answer-letter {
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    color: var(--neon-cyan);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--neon-cyan);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-shadow: 0 0 5px rgba(0, 212, 230, 0.5);
    box-shadow: 0 0 5px rgba(0, 212, 230, 0.2);
}

.answer-text {
    font-family: var(--font-retro);
    font-size: 1.7rem;
    color: var(--text-primary);
    flex: 1;
    text-align: left;
}

/* Power-ups */
.power-ups {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.power-up-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(251, 146, 60, 0.25) 100%);
    border: 2px solid var(--neon-orange);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 
        0 0 8px rgba(249, 115, 22, 0.25),
        inset 0 0 10px rgba(249, 115, 22, 0.05);
}

.power-up-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 
        0 0 12px rgba(249, 115, 22, 0.5),
        0 0 20px rgba(249, 115, 22, 0.3),
        inset 0 0 15px rgba(249, 115, 22, 0.15);
    border-color: var(--neon-yellow);
}

.power-up-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.power-icon {
    font-size: 2rem;
}

.power-label {
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    color: var(--text-primary);
}

.power-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-color);
    color: var(--bg-dark);
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
}

/* Game Moderator */
.game-moderator {
    margin-top: auto;
    width: 100%;
}

/* ========================================
   RESULT SCREEN
   ======================================== */

.result-container {
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.result-header {
    margin-bottom: 35px;
}

.result-title {
    font-family: var(--font-pixel);
    font-size: 2.5rem;
    color: var(--text-accent);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    animation: resultBounce 1s ease infinite;
}

@keyframes resultBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.result-subtitle {
    font-family: var(--font-retro);
    font-size: 1.8rem;
    color: var(--text-primary);
}

/* Final Score Display */
.final-score-display {
    margin-bottom: 35px;
}

.score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--neon-magenta), var(--neon-cyan));
    border: 5px solid var(--neon-pink);
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(217, 70, 239, 0.4),
        0 0 30px rgba(0, 212, 230, 0.3),
        inset 0 0 15px rgba(217, 70, 239, 0.15);
    animation: scoreGlow 2s ease-in-out infinite;
}

@keyframes scoreGlow {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(217, 70, 239, 0.4),
            0 0 30px rgba(217, 70, 239, 0.2),
            inset 0 0 15px rgba(217, 70, 239, 0.15);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(0, 212, 230, 0.4),
            0 0 40px rgba(0, 212, 230, 0.2),
            inset 0 0 20px rgba(0, 212, 230, 0.2);
    }
}

.final-score {
    font-family: var(--font-pixel);
    font-size: 2.8rem;
    color: var(--text-primary);
}

.score-label {
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--text-accent);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-purple);
    border-radius: 12px;
    padding: 22px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 
        0 0 8px rgba(168, 85, 247, 0.25),
        inset 0 0 10px rgba(168, 85, 247, 0.05);
}

.stat-icon {
    font-size: 2rem;
}

.stat-number {
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    color: var(--text-accent);
}

.stat-text {
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Rank Badge */
.result-rank {
    margin-bottom: 35px;
}

.rank-label {
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 12px;
}

.rank-badge {
    font-family: var(--font-pixel);
    font-size: 1.3rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--neon-magenta), var(--neon-purple));
    padding: 18px 40px;
    border-radius: 35px;
    border: 3px solid var(--neon-cyan);
    display: inline-block;
    box-shadow: 
        0 0 15px rgba(217, 70, 239, 0.4),
        inset 0 0 10px rgba(217, 70, 239, 0.15);
    text-shadow: 0 0 8px rgba(0, 212, 230, 0.5);
}

.result-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

/* ========================================
   HIGHSCORE SCREEN
   ======================================== */

.screen-title {
    font-family: var(--font-pixel);
    font-size: 2rem;
    color: var(--text-accent);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
    margin-bottom: 35px;
}

.highscore-list {
    width: 100%;
    max-width: 700px;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid var(--neon-magenta);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    max-height: 550px;
    overflow-y: auto;
    box-shadow: 
        0 0 15px rgba(217, 70, 239, 0.3),
        inset 0 0 20px rgba(217, 70, 239, 0.05);
}

.highscore-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.highscore-item:hover {
    background: rgba(217, 70, 239, 0.2);
    transform: translateX(5px);
    box-shadow: 
        0 0 10px rgba(0, 212, 230, 0.3),
        inset 0 0 10px rgba(0, 212, 230, 0.1);
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
}

.highscore-item:last-child {
    margin-bottom: 0;
}

.highscore-rank {
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    width: 50px;
    text-align: center;
}

.highscore-name {
    font-family: var(--font-retro);
    font-size: 1.7rem;
    color: var(--text-primary);
    flex: 1;
}

.highscore-score {
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    color: var(--text-accent);
}

.no-scores {
    text-align: center;
    color: var(--text-secondary);
    font-family: var(--font-retro);
    font-size: 1.2rem;
    padding: 30px;
}

/* ========================================
   FEEDBACK OVERLAY
   ======================================== */

.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

.feedback-overlay.show {
    display: flex;
}

.feedback-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: feedbackPop 0.5s ease;
}

@keyframes feedbackPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.feedback-icon {
    font-size: 7rem;
}

.feedback-text {
    font-family: var(--font-pixel);
    font-size: 3rem;
    color: var(--text-primary);
    text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.feedback-points {
    font-family: var(--font-pixel);
    font-size: 2rem;
    color: var(--text-accent);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .pixel-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-header {
        flex-wrap: wrap;
    }
    
    .stat-box {
        min-width: calc(50% - 5px);
    }
    
    .answers-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .power-ups {
        gap: 10px;
    }
    
    .power-up-btn {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 10px;
    }
    
    .pixel-title {
        font-size: 1.4rem;
    }
    
    .menu-container {
        padding: 15px;
    }
    
    .difficulty-buttons {
        flex-direction: column;
    }
    
    .question-text {
        font-size: 1.3rem;
    }
    
    .answer-text {
        font-size: 1.1rem;
    }
    
    .moderator-bubble {
        flex-direction: column;
        text-align: center;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
