.progress-container {
    width: 100%;
    height: clamp(12px, 2vmin, 20px);
    margin: clamp(10px, 2vmin, 20px) 0;
    background-color: #2c2c2c;
    border: 2px solid #5d5d5d;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #740001, #ae0001);
    width: 0%;
    transition: width 0.4s ease-out;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.house-result img {
    width: clamp(120px, 30vw, 180px);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    margin: 20px auto;
    display: block;
}

.score {
    font-size: 1.2rem;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin: 15px 0;
    text-align: center;
}

.option {
    background-color: #2c2c2c;
    border: 2px solid #5d5d5d;
    border-radius: 8px;
    padding: clamp(10px, 2vmin, 16px);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: clamp(0.9rem, 3vmin, 1.1rem);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #f0e6d2;
    font-family: 'Cormorant Garamond', serif;
    min-height: clamp(40px, 8vmin, 60px);
}

.option:hover, .option:active {
    background-color: #3a3a3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    border-color: #d4af37;
}

.option.correct {
    background: linear-gradient(135deg, #1a472a, #2d623d);
    border-color: #2d623d;
    color: #fff;
    box-shadow: 0 0 15px rgba(46, 139, 87, 0.5);
}

.option.wrong {
    background: linear-gradient(135deg, #740001, #ae0001);
    border-color: #ae0001;
    color: #fff;
    box-shadow: 0 0 15px rgba(174, 0, 1, 0.5);
}

.pixel-button {
    background: linear-gradient(to bottom, #740001, #ae0001);
    color: #f0e6d2;
    border: none;
    padding: clamp(8px, 2vmin, 12px) clamp(12px, 3vmin, 20px);
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    border-radius: 8px;
    cursor: pointer;
    margin-top: clamp(15px, 3vmin, 25px);
    box-shadow: 0 4px 0 #5d0000, 0 5px 0 #000;
    font-family: 'Cinzel', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    font-size: clamp(0.9rem, 3vmin, 1.1rem);
}

.pixel-button:hover, .pixel-button:active {
    background: linear-gradient(to bottom, #8a0001, #c20002);
    transform: translateY(2px);
    box-shadow: 0 2px 0 #5d0000, 0 3px 0 #000;
}

.pixel-button:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #5d0000, 0 2px 0 #000;
}

.answer-explanation {
    margin-top: clamp(15px, 3vmin, 25px);
    padding: clamp(12px, 2vmin, 18px);
    background-color: rgba(44, 44, 44, 0.9);
    border-left: 4px solid #d4af37;
    border-radius: 0 8px 8px 0;
    color: #f0e6d2;
    animation: fadeIn 0.5s ease-in;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.9rem, 2.5vmin, 1.1rem);
    line-height: 1.7;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.option.correct::after {
    content: ' ✓';
    font-weight: bold;
    color: #fff;
}

.option.wrong::after {
    content: ' ✗';
    font-weight: bold;
    color: #fff;
}

#restart {
    width: 100%;
    margin-top: 25px;
    background: linear-gradient(to bottom, #1a472a, #2d623d);
    box-shadow: 0 4px 0 #1a3a27, 0 5px 0 #000;
}

#restart:hover, #restart:active {
    background: linear-gradient(to bottom, #2d623d, #3e7953);
    box-shadow: 0 2px 0 #1a3a27, 0 3px 0 #000;
}

.hidden {
    display: none;
}

#next-button {
    background: linear-gradient(to bottom, #0e1a40, #1a2a5a);
    color: #f0e6d2;
    border: none;
    padding: clamp(10px, 2vmin, 15px) clamp(15px, 3vmin, 25px);
    font-size: clamp(1rem, 3vmin, 1.3rem);
    border-radius: 8px;
    cursor: pointer;
    margin: clamp(20px, 4vw, 30px) auto 0;
    box-shadow: 0 4px 0 #0a1128, 0 5px 0 #000;
    font-family: 'Cinzel', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
    position: relative;
    display: block;
    width: fit-content;
    min-width: 140px;
    text-align: center;
    letter-spacing: 1.5px;
    min-width: clamp(120px, 30vmin, 160px);
    margin: clamp(15px, 3vmin, 25px) auto 0;
}

#next-button:hover {
    background: linear-gradient(to bottom, #1a2a5a, #2a3a7a);
    transform: translateY(2px);
    box-shadow: 0 2px 0 #0a1128, 0 3px 0 #000;
}

#next-button:active {
    background: linear-gradient(to bottom, #0a1128, #1a2a5a);
    transform: translateY(4px);
    box-shadow: 0 1px 0 #0a1128, 0 2px 0 #000;
}

#next-button::before {
    content: "→";
    position: absolute;
    left: 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

#next-button:hover::before {
    opacity: 1;
    left: 10px;
}

#next-button::after {
    content: "←";
    position: absolute;
    right: 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

#next-button:hover::after {
    opacity: 1;
    right: 10px;
}

/* House specific colors */
.gryffindor { color: #740001; background-color: rgba(116, 0, 1, 0.1); }
.slytherin { color: #1a472a; background-color: rgba(26, 71, 42, 0.1); }
.ravenclaw { color: #0e1a40; background-color: rgba(14, 26, 64, 0.1); }
.hufflepuff { color: #ecb939; background-color: rgba(236, 185, 57, 0.1); }

/* Magical effects */
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
    100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
}

.glow-effect {
    animation: glow 2s infinite;
}