.content {
    padding: 100px 40px 40px;
    min-height: 100%;
    width: 100%;
    background: #fff8d6;
    color: #1f1f1f;
    font-size: 24px;
}

.quiz-page {
    max-width: 1100px;
    margin: 0 auto;
}

.quiz-start,
.quiz-end {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 5px solid #cc0000;
    border-radius: 10px;
    padding: 40px;
}

.quiz-start h1,
.quiz-end h1 {
    margin-bottom: 20px;
}

.quiz-start p {
    margin-bottom: 30px;
}

.quiz-button {
    font-size: 24px;
    font-weight: bold;
    padding: 14px 24px;
    background: #cc0000;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}

.quiz-button:hover {
    background: #a30000;
}

.quiz-button:disabled {
    background: #999;
    cursor: not-allowed;
}

.quiz-button-next {
    margin-top: 10px;
    background: #1f1f1f;
}

.quiz-button-next:hover {
    background: #000;
}

.quiz-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 22px;
}

.quiz-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.quiz-volume input[type="range"] {
    width: 140px;
    cursor: pointer;
    accent-color: #cc0000;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.quiz-volume input[type="range"]:focus {
    outline: none;
}

.quiz-volume input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #f0c800;
    border: 2px solid #1f1f1f;
    border-radius: 4px;
}

.quiz-volume input[type="range"]::-moz-range-track {
    height: 6px;
    background: #f0c800;
    border: 2px solid #1f1f1f;
    border-radius: 4px;
}

.quiz-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -8px;
    background: #cc0000;
    border: 2px solid #1f1f1f;
    border-radius: 50%;
    cursor: pointer;
}

.quiz-volume input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #cc0000;
    border: 2px solid #1f1f1f;
    border-radius: 50%;
    cursor: pointer;
}

.quiz-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 36px;
    color: #cc0000;
    text-shadow: 3px 3px 0 #f0c800;
    letter-spacing: 1px;
}

.quiz-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.quiz-silhouette-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #f7c948 0%, #f29c3b 60%, #d96a2c 100%);
    border: 5px solid #1f1f1f;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-silhouette {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) contrast(1);
}

.quiz-silhouette-frame.is-revealed .quiz-silhouette {
    filter: none;
}

.quiz-silhouette-frame.is-correct {
    box-shadow: 0 0 0 5px #2e7d32;
}

.quiz-silhouette-frame.is-wrong {
    box-shadow: 0 0 0 5px #c62828;
}

.quiz-reveal-banner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 31, 31, 0.85);
    color: #fff;
    text-align: center;
    padding: 12px 8px;
    font-size: 26px;
    font-weight: bold;
}

.quiz-controls {
    background: #fff;
    border: 5px solid #1f1f1f;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.quiz-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-label {
    font-weight: bold;
    font-size: 20px;
}

.quiz-input {
    font-size: 24px;
    padding: 12px 16px;
    border: 3px solid #1f1f1f;
    border-radius: 6px;
    font-family: inherit;
}

.quiz-input:focus {
    outline: none;
    border-color: #cc0000;
}

.quiz-input:disabled {
    background: #eee;
    color: #555;
}

.quiz-feedback {
    font-size: 22px;
    font-weight: bold;
    padding: 12px 16px;
    border-radius: 6px;
    text-align: center;
}

.quiz-feedback.is-correct {
    background: #c8e6c9;
    color: #1b5e20;
    border: 3px solid #2e7d32;
}

.quiz-feedback.is-wrong {
    background: #ffcdd2;
    color: #b71c1c;
    border: 3px solid #c62828;
}

.quiz-final-score {
    font-size: 28px;
    margin-bottom: 15px;
}

.quiz-grade {
    font-size: 22px;
    font-weight: bold;
    color: #cc0000;
    margin-bottom: 30px;
}

.quiz-back {
    display: inline-block;
    margin-top: 20px;
    margin-left: 20px;
    color: #cc0000;
    font-weight: bold;
    text-decoration: none;
    font-size: 20px;
}

.quiz-back:hover {
    text-decoration: underline;
}

@media (max-width: 750px) {
    .content {
        padding: 80px 10px 20px;
        font-size: 18px;
    }

    .quiz-start,
    .quiz-end {
        padding: 25px;
    }

    .quiz-title {
        font-size: 28px;
    }

    .quiz-stage {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .quiz-controls {
        padding: 20px;
    }

    .quiz-status {
        font-size: 18px;
    }

    .quiz-reveal-banner {
        font-size: 20px;
        padding: 8px 6px;
    }
}
