/* AP Euro stimulus MCQ — dark shell aligned with Explore / reel */

.ap-euro-mcq-root {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    background: #0a0a0c;
    color: #f1f5f9;
}

.ap-euro-mcq-topbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    padding-top: max(0.65rem, env(safe-area-inset-top));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(10px);
}

.ap-euro-mcq-back {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.ap-euro-mcq-back:hover {
    background: rgba(255, 255, 255, 0.12);
}

.ap-euro-mcq-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.ap-euro-mcq-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ap-euro-mcq-score-host {
    flex-shrink: 0;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ap-euro-mcq-scorebar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ap-euro-mcq-score-item {
    text-align: center;
    min-width: 3.25rem;
}

.ap-euro-mcq-score-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
}

.ap-euro-mcq-score-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.ap-euro-mcq-score-divider {
    width: 1px;
    height: 2rem;
    background: rgba(255, 255, 255, 0.1);
}

.ap-euro-mcq-progress-wrap {
    flex: 1;
    min-width: 160px;
}

.ap-euro-mcq-progress-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.ap-euro-mcq-progress-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.ap-euro-mcq-progress-fill {
    background: linear-gradient(90deg, #6366f1, #818cf8);
    border-radius: 999px;
    height: 6px;
    transition: width 0.25s ease;
}

.ap-euro-mcq-nav {
    flex-shrink: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ap-euro-mcq-tab {
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ap-euro-mcq-tab:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

.ap-euro-mcq-tab.is-active {
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(129, 140, 248, 0.45);
    color: #e0e7ff;
}

.ap-euro-mcq-tab.is-complete {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(74, 222, 128, 0.35);
    color: #86efac;
}

.ap-euro-mcq-tab.is-complete.is-active {
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(129, 140, 248, 0.45);
    color: #e0e7ff;
}

.ap-euro-mcq-display {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1rem 2rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.ap-euro-mcq-card {
    max-width: 36rem;
    margin: 0 auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.ap-euro-mcq-set-head {
    padding: 1rem 1.15rem;
    background: rgba(99, 102, 241, 0.12);
    border-bottom: 1px solid rgba(129, 140, 248, 0.2);
}

.ap-euro-mcq-set-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #a5b4fc;
    margin-bottom: 0.35rem;
}

.ap-euro-mcq-set-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
}

.ap-euro-mcq-set-theme {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #94a3b8;
}

.ap-euro-mcq-directions {
    padding: 0.65rem 1.15rem;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(99, 102, 241, 0.14);
}

.ap-euro-mcq-directions p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #cbd5e1;
}

.ap-euro-mcq-directions strong {
    color: #e2e8f0;
}

.ap-euro-mcq-source-citation {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    font-style: italic;
    font-weight: 600;
    color: #c4b5fd;
    line-height: 1.4;
}

.ap-euro-mcq-source {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ap-euro-mcq-source-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.65rem;
}

.ap-euro-mcq-source-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    font-style: italic;
    color: #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid #6366f1;
}

.ap-euro-mcq-source--visual .ap-euro-mcq-source-body {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    font-style: normal;
    color: #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid #3b82f6;
}

.ap-euro-mcq-source-attr {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
    font-style: normal;
}

.ap-euro-mcq-questions {
    padding: 1rem 1.15rem 1.25rem;
}

.ap-euro-mcq-q {
    margin-bottom: 1.35rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ap-euro-mcq-q:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ap-euro-mcq-q-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.65rem;
}

.ap-euro-mcq-q-kc {
    flex-shrink: 0;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fcd34d;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.35);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
}

.ap-euro-mcq-q-num {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.ap-euro-mcq-q-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.ap-euro-mcq-skill {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(74, 222, 128, 0.25);
    vertical-align: middle;
}

.ap-euro-mcq-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.ap-euro-mcq-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: #e2e8f0;
    font-size: 0.86rem;
    line-height: 1.45;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}

.ap-euro-mcq-option:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.ap-euro-mcq-option:disabled {
    cursor: default;
}

.ap-euro-mcq-option.is-correct {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(74, 222, 128, 0.45);
    color: #bbf7d0;
}

.ap-euro-mcq-option.is-incorrect {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fecaca;
}

.ap-euro-mcq-option.is-reveal {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(74, 222, 128, 0.35);
    color: #bbf7d0;
}

.ap-euro-mcq-opt-letter {
    font-weight: 700;
    min-width: 1.25rem;
    color: #94a3b8;
}

.ap-euro-mcq-feedback {
    margin-top: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.5;
}

.ap-euro-mcq-feedback.is-correct-fb {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: #bbf7d0;
}

.ap-euro-mcq-feedback.is-incorrect-fb {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #fecaca;
}

.ap-euro-mcq-empty {
    text-align: center;
    color: #64748b;
    padding: 2rem;
}

/* Multi-paragraph stimuli, doc header, context notes, secondary + trusted visual (e.g. Unit 1.5) */
.ap-euro-mcq-source-dochead {
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.22);
}

.ap-euro-mcq-source-dochead-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e0e7ff;
    line-height: 1.35;
}

.ap-euro-mcq-source-dochead-meta {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    color: #94a3b8;
}

.ap-euro-mcq-source--secondary .ap-euro-mcq-source-dochead {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(250, 204, 21, 0.28);
}

.ap-euro-mcq-source--secondary .ap-euro-mcq-source-dochead-title {
    color: #fde68a;
}

.ap-euro-mcq-source-text-block {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid #6366f1;
}

.ap-euro-mcq-source--multi .ap-euro-mcq-source-text-block p {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    line-height: 1.65;
    font-style: italic;
    color: #e2e8f0;
}

.ap-euro-mcq-source--multi .ap-euro-mcq-source-text-block p:last-child {
    margin-bottom: 0;
}

.ap-euro-mcq-source--secondary .ap-euro-mcq-source-text-block {
    border-left-color: rgba(250, 204, 21, 0.65);
}

.ap-euro-mcq-context-note {
    margin-top: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(234, 179, 8, 0.08);
    border-left: 3px solid rgba(250, 204, 21, 0.45);
}

.ap-euro-mcq-context-note-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fcd34d;
    margin-bottom: 0.35rem;
}

.ap-euro-mcq-context-note-body {
    font-size: 0.8rem;
    line-height: 1.55;
    color: #e2e8f0;
}

.ap-euro-mcq-source-body--trusted {
    font-style: normal;
}

.ap-euro-mcq-holbein-wrap {
    text-align: center;
}

.ap-euro-mcq-holbein-wrap .portrait-svg {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.ap-euro-mcq-holbein-cap {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    font-style: italic;
    color: #94a3b8;
}

.ap-euro-mcq-feedback strong {
    font-weight: 700;
    color: #f8fafc;
}
