.radar-chart-shell {
    background: transparent;
}

.radar-chart-area {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.radar-chart-area > div {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.quiz-results-panel {
    background: rgba(15, 15, 28, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: 20px;
    padding: clamp(20px, 3vw, 36px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.quiz-results-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.quiz-results-panel__title {
    font-weight: 700;
    color: #ffd700;
}

.quiz-results-panel__subtitle {
    color: rgba(245, 230, 168, 0.85);
}

.quiz-results-panel__responses {
    color: rgba(245, 230, 168, 0.95);
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 600;
}

.quiz-results-panel__content {
    display: grid;
    grid-template-columns: minmax(240px, 0.45fr) minmax(320px, 1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: stretch;
}

@media (max-width: 1024px) {
    .quiz-results-panel__content {
        grid-template-columns: 1fr;
    }
}

.quiz-results-summary-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: var(--quiz-chart-height, 280px);
}

.quiz-results-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
}

.quiz-result-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 150px;
}

.quiz-result-card.is-correct {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.15);
}

.quiz-result-card.is-incorrect {
    border-color: rgba(239, 68, 68, 0.35);
}

.quiz-result-card__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.quiz-result-card__answer {
    color: #f5e6a8;
    font-weight: 600;
}

.quiz-result-card__tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
}

.quiz-result-card__metrics {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.quiz-result-card__count {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffd700;
    line-height: 1;
}

.quiz-result-card__label {
    color: rgba(245, 230, 168, 0.8);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.quiz-result-card__percent {
    margin-left: auto;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.quiz-result-card__progress {
    height: 8px;
    border-radius: 999px;
}

.quiz-results-chart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-results-chart__surface {
    background: rgba(15, 15, 28, 0.8);
    border-radius: 18px;
    padding: 12px 12px 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-results-chart__meta {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.quiz-results-chart__meta-label {
    color: rgba(245, 230, 168, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.quiz-results-chart__meta-value {
    color: #ffd700;
    font-weight: 600;
}

.quiz-results-chart__meta-caption {
    color: rgba(245, 230, 168, 0.8);
}

.quiz-results-alert {
    color: rgba(245, 230, 168, 0.9);
    border-radius: 12px;
}

.app-bar-title {
    display: flex;
    align-items: center;
}

.app-bar-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

/* Quiz Results Section on Results Page */
.quiz-results-showcase {
    padding: clamp(24px, 4vw, 48px);
    max-width: 1200px;
    margin: 0 auto;
}

.quiz-results-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.quiz-question-result-card {
    background: rgba(30, 30, 50, 0.95);
    border: 2px solid rgba(255, 215, 0, 0.25);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.quiz-question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.quiz-answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.quiz-answer-result {
    padding: 20px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(40, 40, 60, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quiz-answer-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.quiz-answer-result.correct {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.15);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.quiz-answer-result.incorrect {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.08);
}

.quiz-answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.quiz-answer-stats {
    margin-top: 12px;
}

/* Quiz answer text styling for better visibility */
.quiz-answer-result .mud-typography-body1 {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
}

.quiz-answer-result .mud-typography-caption {
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Larger progress bars */
.quiz-answer-result .mud-progress-linear {
    height: 8px !important;
    border-radius: 4px !important;
}

/* Larger correct/incorrect chips */
.quiz-question-header .mud-chip {
    font-size: 0.95rem !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
}

/* Quiz question title styling */
.quiz-question-result-card .mud-typography-h4 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

/* Total responses text */
.quiz-question-result-card > .mud-typography-caption {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
}
