* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Fredoka', cursive, sans-serif;
}

body {
    background: #1a0f1d;
    background-image: 
        radial-gradient(circle at 50% 20%, #4a1c1d 0%, transparent 60%),
        linear-gradient(to bottom, #110914, #261121);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
}

.game-wrapper {
    background: #2b1b2d;
    width: 100%;
    max-width: 720px;
    border: 4px solid #5a375e;
    border-radius: 24px;
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.25), inset 0 0 15px rgba(0, 0, 0, 0.5);
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.volcano-header {
    text-align: center;
    margin-bottom: 15px;
}

.volcano-icon {
    font-size: 2.8rem;
    display: inline-block;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.volcano-header h1 {
    font-size: 1.8rem;
    color: #ffaa00;
    text-shadow: 2px 2px 0 #8b0000;
}

.screen {
    display: none;
}

.screen.active {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.screen.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 8, 17, 0.95);
    z-index: 10;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.institutional-card {
    background: #3b243d;
    border: 3px solid #734878;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
}

.institutional-card h2 {
    color: #ffaa00;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.institutional-card h3 {
    color: #dddddd;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: normal;
}

.info-grid {
    background: #281729;
    padding: 15px;
    border-radius: 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.info-grid p {
    font-size: 1rem;
    color: #e2d1e4;
}

.difficulty-selector {
    background: #382138;
    padding: 12px;
    border-radius: 14px;
    text-align: center;
}

.difficulty-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ffaa00;
}

.diff-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.diff-btn {
    background: #231423;
    border: 2px solid #523152;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.diff-btn.active {
    border-color: #ffaa00;
    background: #523152;
    font-weight: bold;
}

.avatar-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #3b243d;
    padding: 15px;
    border-radius: 16px;
}

.avatar-emoji { font-size: 2.8rem; }
.dialogue-bubble { font-size: 0.95rem; line-height: 1.3; }

.rules-card {
    background: #481f28;
    border: 2px dashed #ff5555;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #ffd2d2;
}

.arcade-btn {
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.arcade-btn.green { background: #2ecc71; color: #07381a; box-shadow: 0 5px 0 #1e8449; }
.arcade-btn.red { background: #e74c3c; color: #3b0904; box-shadow: 0 5px 0 #962d22; }
.arcade-btn.yellow { background: #f1c40f; color: #423502; box-shadow: 0 5px 0 #b7950b; }

.arcade-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.arcade-btn:disabled {
    background: #555555;
    color: #888888;
    box-shadow: 0 5px 0 #333333;
    cursor: not-allowed;
}

.map-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1c111e;
    padding: 10px 15px;
    border-radius: 30px;
}

.track {
    flex-grow: 1;
    height: 12px;
    background: #3a223e;
    border-radius: 6px;
    position: relative;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffaa00, #2ecc71);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.player-pin {
    position: absolute;
    top: -12px;
    left: 0%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    transition: left 0.3s ease;
}

.status-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hud-box {
    background: #3b243d;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.95rem;
    font-weight: bold;
}

.hud-label { color: #ffaa00; }

.hud-btn {
    background: #523152;
    border: none;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.hud-btn:hover { background: #6a3e6a; }

.question-board {
    background: linear-gradient(135deg, #42293b, #2f1d2a);
    border: 3px solid #8c5383;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.question-board h2 {
    font-size: 1.05rem;
    color: #ffffff;
    line-height: 1.3;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 500px) {
    .options-grid { grid-template-columns: 1fr; }
}

.option-card {
    background: #382138;
    border: 2px solid #633a63;
    border-radius: 12px;
    padding: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 0 #211321;
    transition: all 0.2s ease;
}

.option-card:hover {
    background: #4a2c4a;
    border-color: #ffaa00;
}

.option-card .badge {
    background: #523152;
    color: #ffaa00;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: bold;
}

.option-card.correct { background: #1e5a36 !important; border-color: #2ecc71 !important; }
.option-card.incorrect { background: #5a1e1e !important; border-color: #e74c3c !important; }
.option-card.disabled { opacity: 0.3; pointer-events: none; }

.action-bar { text-align: center; }
.feedback-banner { text-align: center; font-size: 0.95rem; font-weight: bold; min-height: 22px; }

.outcome-card {
    text-align: center;
    padding: 20px;
    background: #382138;
    border-radius: 16px;
    border: 2px solid #633a63;
}

.big-emoji { font-size: 3.5rem; display: block; margin-bottom: 5px; }
.final-score-box { background: #231423; padding: 10px; border-radius: 10px; margin: 15px 0; color: #ffaa00; font-size: 1.1rem; }