/* --- Global & Fonts --- */
.pixel-text {
    font-family: 'Press Start 2P', monospace, sans-serif;
    letter-spacing: 0.05em;
    /* Ensure crispy rendering on some screens */
    -webkit-font-smoothing: none; 
}

/* --- Container Adjustments (Matches Wongle) --- */
#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 80vh; 
    width: 100%;
    max-width: 600px; 
    position: relative;
    margin: 0 auto;
}

/* --- Category Themes (Neon Arcade Versions) --- */
.neon-border {
    border-width: 2px;
    border-style: solid;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.cat-geo { border-color: #00FFFF; color: #00FFFF; } /* Cyan */
.cat-ent { border-color: #FF00FF; color: #FF00FF; } /* Magenta */
.cat-his { border-color: #FFFF00; color: #FFFF00; } /* Yellow */
.cat-art { border-color: #FFA500; color: #FFA500; } /* Orange */
.cat-sci { border-color: #00FF00; color: #00FF00; } /* Lime */
.cat-spo { border-color: #FF4500; color: #FF4500; } /* Red-Orange */

/* --- UI Elements --- */
.arcade-btn {
    font-family: 'Press Start 2P', monospace, sans-serif;
    text-transform: uppercase;
    transition: all 0.1s;
    background-color: rgba(15, 23, 42, 0.8); /* Slate-900 with opacity */
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.arcade-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 rgba(255, 255, 255, 0.2);
    filter: brightness(1.2);
}

.arcade-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Option Buttons specific styling */
.btn-option {
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    text-align: left;
    border: 2px solid #334155; /* Slate-700 */
    color: #cbd5e1; /* Slate-300 */
}

.btn-option:hover:not(:disabled) {
    border-color: #94a3b8; /* Slate-400 */
    color: #fff;
}

/* --- Feedback Overlay (Wongle style overlay) --- */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    backdrop-filter: blur(4px);
    border: 2px solid #334155;
    animation: fadeIn 0.3s ease-out;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.correct-anim {
    animation: pulse-neon 0.5s ease-in-out;
    background-color: rgba(0, 255, 0, 0.1);
    border-color: #00FF00 !important;
    color: #00FF00 !important;
}

.wrong-anim {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
    background-color: rgba(255, 0, 0, 0.1);
    border-color: #FF0000 !important;
    color: #FF0000 !important;
}

@keyframes pulse-neon {
    0%, 100% { box-shadow: 0 0 5px #00FF00, inset 0 0 5px #00FF00; }
    50% { box-shadow: 0 0 20px #00FF00, inset 0 0 10px #00FF00; }
}

@keyframes shake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
    40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* --- Mobile Adjustments --- */
@media (max-width: 600px) {
    #game-container h1.pixel-text {
        font-size: 2.5rem; 
    }
    .btn-option {
        font-size: 1.1rem;
        padding: 0.75rem;
    }
}