/* CCA-F/styles.css — All shared styles. No Tailwind dependency. */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
body { font-family: 'DM Sans', sans-serif; background: #0B1120; color: #F1F5F9; min-height: 100vh; overflow-x: hidden; }
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; }
code { font-family: 'Courier New', monospace; background: rgba(99,102,241,0.12); color: #A5B4FC; padding: .1em .35em; border-radius: 4px; font-size: .92em; }
pre { background: rgba(15,23,42,0.85); border: 1px solid rgba(99,102,241,0.2); border-radius: 10px; padding: 1rem 1.25rem; overflow-x: auto; margin: .75rem 0; }
pre code { background: none; color: #94A3B8; padding: 0; font-size: .85rem; line-height: 1.65; }
strong { font-weight: 700; color: #E2E8F0; }
p + p { margin-top: .75rem; }

/* ── Header ── */
#site-header { height: 64px; background: rgba(11,17,32,0.88); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.06); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1400px; margin: 0 auto; height: 100%; display: flex; align-items: center; padding: 0 1.5rem; gap: .75rem; }
.header-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem; color: #818CF8; text-decoration: none; flex-shrink: 0; }
.header-logo:hover { color: #A5B4FC; }
.header-sep { color: rgba(255,255,255,0.2); font-size: .9rem; }
.header-title { font-family: 'Space Grotesk', sans-serif; font-size: .88rem; font-weight: 600; color: #CBD5E1; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-progress { font-size: .78rem; font-weight: 600; font-family: 'Space Grotesk', sans-serif; background: rgba(99,102,241,0.12); color: #818CF8; border: 1px solid rgba(99,102,241,0.2); padding: .28rem .8rem; border-radius: 9999px; flex-shrink: 0; transition: background .4s, color .4s, border-color .4s; }
.header-progress.all-done { background: rgba(34,197,94,0.12); color: #4ADE80; border-color: rgba(34,197,94,0.25); }

/* ── Layout root (side-by-side split) ── */
#layout-root { display: flex; height: calc(100vh - 64px); overflow: hidden; }
#mindmap-container { flex: 1; min-width: 0; position: relative; overflow: hidden; }

/* ── Scenario side panel ── */
#scenario-panel { flex-shrink: 0; width: 0; min-width: 0; overflow: hidden; background: #0B1120; color: #E2E8F0; display: flex; flex-direction: column; transition: width 0.38s cubic-bezier(0.4,0,0.2,1); }
body.scenario-open #scenario-panel { width: 58%; min-width: 340px; overflow-y: auto; overflow-x: hidden; border-left: 1px solid rgba(99,102,241,0.18); padding: 1.5rem 1.5rem 3rem; }
#scenario-card { width: 100%; background: #0F172A; border: 1px solid rgba(99,102,241,0.22); border-radius: 14px; padding: 1.25rem 1.5rem 2rem; }
.overlay-close { background: none; border: 1px solid rgba(255,255,255,0.1); color: #64748B; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 1.2rem; line-height: 1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: border-color .2s, color .2s; }
.overlay-close:hover { border-color: rgba(239,68,68,0.4); color: #F87171; }

/* ── Active connector (node → panel) ── */
.active-connector-line { animation: dashFlow 1.4s linear infinite; }
.active-connector-arrow { }

/* ── Transitions ── */
.fade-in  { animation: fadeIn  250ms ease forwards; }
.fade-out { animation: fadeOut 250ms ease forwards; pointer-events: none; }

/* ── SVG / connectors ── */
.mindmap-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.connector-line { transition: stroke .4s; }
.connector-line.active { stroke: rgba(99,102,241,0.5) !important; animation: dashFlow 1.2s linear infinite; }
.connector-line.done   { stroke: rgba(34,197,94,0.4)  !important; }

/* ── Node cards ── */
.node-card { position: absolute; width: 172px; background: rgba(15,23,42,0.68); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: .75rem 1rem; cursor: pointer; user-select: none; transition: border-color .2s, box-shadow .2s, transform .25s; }
.node-card:hover, .node-card.hovered { border-color: rgba(99,102,241,0.45); box-shadow: 0 0 24px rgba(99,102,241,0.2); transform: translateY(-4px); }
.node-card.active { border-color: rgba(99,102,241,0.6); box-shadow: 0 0 32px rgba(99,102,241,0.3); animation: glowPulse 2s ease-in-out infinite; }
.node-card.partial { border-color: rgba(245,158,11,0.45); box-shadow: 0 0 18px rgba(245,158,11,0.12); }
.node-card.complete { border-color: rgba(34,197,94,0.45); box-shadow: 0 0 24px rgba(34,197,94,0.2); animation: none; cursor: default; pointer-events: none; }
.node-header { display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; }
.node-icon { font-size: 1rem; line-height: 1; }
.node-id { font-size: .7rem; font-weight: 700; color: #818CF8; font-family: 'Space Grotesk', sans-serif; letter-spacing: .04em; }
.node-label { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 600; color: #E2E8F0; line-height: 1.25; margin-bottom: .5rem; }
.node-footer { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.node-scenario-count { font-size: .7rem; color: #64748B; font-weight: 500; }
.node-progress-bar { flex: 1; height: 3px; background: rgba(99,102,241,0.15); border-radius: 9999px; overflow: hidden; }
.node-progress-fill { height: 100%; background: linear-gradient(90deg,#6366F1,#22C55E); border-radius: 9999px; width: 0%; transition: width .5s ease; }
.node-card.partial .node-progress-fill { background: #F59E0B; }
.node-card.complete .node-progress-fill { background: #22C55E; }
.complete-badge { position: absolute; top: -.5rem; right: -.5rem; width: 22px; height: 22px; background: #22C55E; color: #0B1120; font-size: .75rem; font-weight: 800; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: badgeIn 350ms ease-out forwards; }

/* ── Scenario panel ── */
.scenario-panel { padding-bottom: 3rem; }
.scenario-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.back-btn { background: none; border: 1px solid rgba(255,255,255,0.1); color: #94A3B8; font-family: 'Space Grotesk', sans-serif; font-size: .85rem; font-weight: 500; padding: .45rem .9rem; border-radius: 8px; cursor: pointer; transition: border-color .2s, color .2s; }
.back-btn:hover { border-color: rgba(99,102,241,0.4); color: #E2E8F0; }
.scenario-breadcrumb { font-size: .8rem; color: #64748B; font-family: 'Space Grotesk', sans-serif; }
.scenario-label { font-size: .72rem; font-weight: 700; letter-spacing: .09em; color: #818CF8; margin-bottom: .6rem; font-family: 'Space Grotesk', sans-serif; }
.situation-card { background: rgba(15,23,42,0.68); backdrop-filter: blur(12px); border: 1px solid rgba(99,102,241,0.18); border-radius: 14px; padding: 1.25rem 1.5rem; color: #CBD5E1; line-height: 1.7; font-size: .95rem; margin-bottom: 1.75rem; }
.options-label { font-size: .82rem; color: #64748B; font-weight: 600; font-family: 'Space Grotesk', sans-serif; margin-bottom: .75rem; }
.options-list { display: flex; flex-direction: column; gap: .5rem; }
.option-card { display: flex; align-items: flex-start; gap: .75rem; padding: .8rem 1rem; background: rgba(15,23,42,0.5); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; cursor: pointer; transition: background .15s, border-color .15s; line-height: 1.5; }
.option-card:hover:not(.disabled):not(.correct):not(.wrong) { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); }
.option-card.wrong   { background: rgba(239,68,68,0.08)  !important; border-color: rgba(239,68,68,0.35)  !important; }
.option-card.correct { background: rgba(34,197,94,0.1)   !important; border-color: rgba(34,197,94,0.4)   !important; }
.option-card.disabled { cursor: default; opacity: .5; }
.option-letter { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; background: rgba(100,116,139,0.25); color: #94A3B8; flex-shrink: 0; transition: background .15s, color .15s; }
.option-card.wrong   .option-letter { background: rgba(239,68,68,0.2);  color: #F87171; }
.option-card.correct .option-letter { background: rgba(34,197,94,0.2);  color: #4ADE80; }
.option-text { font-size: .9rem; color: #CBD5E1; }
.option-card.wrong   .option-text { color: #FCA5A5; }
.option-card.correct .option-text { color: #86EFAC; }

/* ── Explanation panels ── */
.explanation-panel { margin-top: .3rem; padding: .75rem 1rem; border-radius: 0 0 10px 10px; font-size: .875rem; line-height: 1.6; animation: slideDown 200ms ease forwards; }
.wrong-exp   { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.2); border-top: none; }
.correct-exp { background: rgba(34,197,94,0.06);  border: 1px solid rgba(34,197,94,0.2);  border-top: none; }
.exp-why { margin-bottom: .45rem; }
.wrong-exp   .exp-why { color: #FCA5A5; }
.correct-exp .exp-why { color: #86EFAC; }
.hint-pill { display: inline-flex; align-items: center; gap: .3rem; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); color: #A5B4FC; font-size: .82rem; padding: .28rem .7rem; border-radius: 9999px; }

/* ── Buttons ── */
.btn-primary { background: linear-gradient(135deg,#6366F1,#4F46E5); color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .9rem; padding: .65rem 1.5rem; border: none; border-radius: 10px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.4); }

/* ── Concept Brief toggle + panel ── */
.concept-toggle { display: flex; align-items: center; gap: .5rem; background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.28); color: #A5B4FC; font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 600; padding: .45rem .95rem; border-radius: 9px; cursor: pointer; margin-bottom: .75rem; transition: background .2s, border-color .2s, color .2s; width: 100%; }
.concept-toggle:hover { background: rgba(99,102,241,0.16); border-color: rgba(99,102,241,0.45); }
.concept-toggle[aria-expanded="true"] { background: rgba(99,102,241,0.14); color: #C7D2FE; border-color: rgba(99,102,241,0.4); }
.concept-icon { font-size: 1rem; line-height: 1; flex-shrink: 0; }
.concept-toggle-label { flex: 1; text-align: left; }

.concept-panel { max-height: 0; overflow: hidden; background: rgba(99,102,241,0.05); border: 1px solid transparent; border-radius: 12px; margin-bottom: 0; transition: max-height 0.32s ease, padding 0.32s ease, border-color 0.32s ease, margin-bottom 0.32s ease; }
.concept-panel.open { max-height: 600px; padding: 1.1rem 1.25rem 1.25rem; border-color: rgba(99,102,241,0.2); margin-bottom: 1.25rem; }
.concept-title { font-family: 'Space Grotesk', sans-serif; font-size: .88rem; font-weight: 700; color: #C7D2FE; margin-bottom: .55rem; }
.concept-summary { font-size: .875rem; color: #94A3B8; line-height: 1.65; margin-bottom: .8rem; }
.concept-points { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.concept-points li { display: flex; gap: .5rem; font-size: .84rem; color: #A5B4FC; line-height: 1.5; }
.concept-points li::before { content: '→'; color: rgba(99,102,241,0.7); flex-shrink: 0; margin-top: .05em; }

/* ── Scenario navigation bar ── */
.scenario-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.07); gap: .75rem; }
.nav-btn { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .88rem; padding: .55rem 1.2rem; border-radius: 9px; cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; border: 1px solid rgba(99,102,241,0.3); background: rgba(99,102,241,0.08); color: #A5B4FC; }
.nav-btn:hover:not(:disabled) { background: rgba(99,102,241,0.18); border-color: rgba(99,102,241,0.5); }
.nav-btn:disabled { opacity: .35; cursor: default; }
.nav-btn.done-btn { background: linear-gradient(135deg,#6366F1,#4F46E5); border-color: transparent; color: #fff; }
.nav-btn.done-btn:hover:not(:disabled) { box-shadow: 0 6px 20px rgba(99,102,241,0.4); }
.nav-count { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 600; color: #64748B; flex: 1; text-align: center; }

/* ── Node complete ── */
.complete-panel { padding-bottom: 3rem; }
.complete-body { text-align: center; padding: 3rem 1.5rem 2rem; }
.complete-title { font-size: 2rem; font-weight: 700; color: #F1F5F9; margin-bottom: .5rem; }
.complete-subtitle { color: #64748B; font-size: .95rem; margin-bottom: 2rem; }
.attempt-summary { max-width: 480px; margin: 0 auto 2.5rem; text-align: left; display: flex; flex-direction: column; gap: .6rem; }
.attempt-row { display: flex; align-items: center; justify-content: space-between; background: rgba(15,23,42,0.5); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: .65rem 1rem; }
.attempt-scenario { font-size: .9rem; color: #CBD5E1; font-weight: 500; }
.attempt-badge { font-size: .78rem; font-weight: 600; font-family: 'Space Grotesk', sans-serif; padding: .2rem .65rem; border-radius: 9999px; }
.badge-gold   { background: rgba(251,191,36,0.15); color: #FCD34D; border: 1px solid rgba(251,191,36,0.25); }
.badge-silver { background: rgba(148,163,184,0.1);  color: #94A3B8;  border: 1px solid rgba(148,163,184,0.2); }
.badge-review { background: rgba(239,68,68,0.1);    color: #FCA5A5;  border: 1px solid rgba(239,68,68,0.2); }
.back-map-btn { margin-top: 0; }

/* ── Keyframes ── */
@keyframes glowPulse  { 0%,100% { box-shadow: 0 0 20px rgba(99,102,241,0.2); } 50% { box-shadow: 0 0 42px rgba(99,102,241,0.45); } }
@keyframes shake      { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes pulseGreen { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut    { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideDown  { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes badgeIn    { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes dashFlow   { to { stroke-dashoffset: -20; } }
.shake       { animation: shake       400ms ease; }
.pulse-green { animation: pulseGreen  400ms ease; }

/* ── Sub-node (child) card variant ── */
.node-card.child-node { border-color: rgba(45,212,191,0.15); }
.node-card.child-node:hover { border-color: rgba(45,212,191,0.45); box-shadow: 0 0 24px rgba(45,212,191,0.2); }
.node-card.child-node.active { border-color: rgba(45,212,191,0.6); box-shadow: 0 0 32px rgba(45,212,191,0.3); animation: glowTeal 2s ease-in-out infinite; }
.node-card.child-node.partial { border-color: rgba(245,158,11,0.45); }
.node-card.child-node.complete { border-color: rgba(34,197,94,0.45); }
.node-card.child-node .node-id { color: #2DD4BF; }

/* ── Domain anchor (tethered breadcrumb node in submap) ── */
.domain-anchor { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: .1rem; background: radial-gradient(circle at 50% 38%, #312E81, #1E1B4B); border: 1px solid rgba(99,102,241,0.45); color: #C7D2FE; font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 700; width: 92px; height: 92px; border-radius: 50%; cursor: pointer; z-index: 10; transition: border-color .2s, box-shadow .2s; }
.domain-anchor:hover { border-color: rgba(129,140,248,0.8); box-shadow: 0 0 26px rgba(99,102,241,0.35); }
.domain-anchor .anchor-arrow { font-size: .85rem; color: #818CF8; line-height: 1; }
.domain-anchor .anchor-sub { font-size: .58rem; font-weight: 500; color: #64748B; letter-spacing: .05em; text-transform: uppercase; }
.domain-anchor:hover .anchor-sub { color: #A5B4FC; }

@keyframes glowTeal { 0%,100% { box-shadow: 0 0 20px rgba(45,212,191,0.2); } 50% { box-shadow: 0 0 42px rgba(45,212,191,0.45); } }

/* ── Calm mode: stop ambient motion while the learner is reading a scenario ── */
body.scenario-open .node-card { animation: none; }
body.scenario-open .node-card.active { animation: glowTeal 3s ease-in-out infinite; }
body.scenario-open .connector-line.active { animation: none; }

/* ── Focus visibility (keyboard nav) ── */
.option-card:focus-visible, .nav-btn:focus-visible, .btn-primary:focus-visible,
.back-btn:focus-visible, .concept-toggle:focus-visible, .exam-dot:focus-visible,
.exam-mode-btn:focus-visible, .domain-anchor:focus-visible, .overlay-close:focus-visible {
  outline: 2px solid #818CF8; outline-offset: 2px;
}

/* ── Header extras ── */
.header-crumb { font-family: 'Space Grotesk', sans-serif; font-size: .88rem; font-weight: 600; color: #94A3B8; text-decoration: none; flex-shrink: 0; }
.header-crumb:hover { color: #C7D2FE; }
.header-weight { font-size: .7rem; font-weight: 700; color: #64748B; background: rgba(148,163,184,0.1); border: 1px solid rgba(148,163,184,0.18); padding: .1rem .45rem; border-radius: 9999px; margin-left: .4rem; }
.exam-mode-btn { font-family: 'Space Grotesk', sans-serif; font-size: .78rem; font-weight: 700; color: #FBBF24; background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.3); padding: .3rem .85rem; border-radius: 9999px; cursor: pointer; flex-shrink: 0; transition: background .2s, border-color .2s; }
.exam-mode-btn:hover { background: rgba(251,191,36,0.16); border-color: rgba(251,191,36,0.55); }

/* ── Exam overlay ── */
body.exam-open #layout-root { display: none; }
#exam-overlay { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; overflow-y: auto; background: #0B1120; z-index: 90; padding: 1.5rem clamp(1rem, 6vw, 4rem) 4rem; }
.exam-intro { max-width: 560px; margin: 8vh auto 0; background: rgba(15,23,42,0.7); border: 1px solid rgba(251,191,36,0.22); border-radius: 18px; padding: 2.5rem 2.5rem 2rem; text-align: center; }
.exam-intro-icon { font-size: 2.6rem; margin-bottom: .75rem; }
.exam-intro-title { font-size: 1.6rem; color: #F1F5F9; margin-bottom: .3rem; }
.exam-intro-sub { color: #94A3B8; font-size: .92rem; margin-bottom: 1.5rem; }
.exam-rules { list-style: none; text-align: left; display: flex; flex-direction: column; gap: .55rem; margin-bottom: 2rem; }
.exam-rules li { display: flex; gap: .55rem; color: #CBD5E1; font-size: .9rem; line-height: 1.5; }
.exam-rules li::before { content: '▸'; color: #FBBF24; flex-shrink: 0; }
.exam-intro-actions { display: flex; justify-content: center; gap: .9rem; }

.exam-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1rem; background: rgba(11,17,32,0.94); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: .6rem 1rem; margin: 0 auto 1.25rem; max-width: 860px; }
.exam-timer { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .95rem; color: #4ADE80; min-width: 74px; }
.exam-timer.low { color: #F87171; animation: pulseGreen 1s ease infinite; }
.exam-count { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; color: #94A3B8; font-weight: 600; white-space: nowrap; }
.exam-palette { display: flex; flex-wrap: wrap; gap: .3rem; margin-left: auto; }
.exam-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(148,163,184,0.4); background: transparent; cursor: pointer; padding: 0; transition: background .15s, border-color .15s, transform .15s; }
.exam-dot:hover { transform: scale(1.25); }
.exam-dot.answered { background: rgba(99,102,241,0.7); border-color: rgba(99,102,241,0.8); }
.exam-dot.current { border-color: #FBBF24; box-shadow: 0 0 0 2px rgba(251,191,36,0.35); }
.exam-qwrap { max-width: 860px; margin: 0 auto; }
.exam-topic-tag { font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: #FBBF24; text-transform: uppercase; margin-bottom: .6rem; }
.option-card.selected { background: rgba(99,102,241,0.14) !important; border-color: rgba(99,102,241,0.55) !important; }
.option-card.selected .option-letter { background: rgba(99,102,241,0.35); color: #C7D2FE; }
#exam-overlay .scenario-nav { max-width: 860px; margin: 2rem auto 0; }

.exam-results { max-width: 860px; margin: 0 auto; }
.exam-timeout-note { text-align: center; color: #FBBF24; font-weight: 600; margin-bottom: 1rem; }
.exam-score-banner { text-align: center; border-radius: 18px; padding: 2.2rem 1rem 1.8rem; margin-bottom: 1rem; border: 1px solid; }
.exam-score-banner.pass { background: rgba(34,197,94,0.07); border-color: rgba(34,197,94,0.3); }
.exam-score-banner.fail { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.28); }
.exam-score-num { font-family: 'Space Grotesk', sans-serif; font-size: 3.4rem; font-weight: 700; color: #F1F5F9; line-height: 1; }
.exam-score-sub { color: #64748B; font-size: .85rem; margin: .4rem 0 .8rem; }
.exam-score-verdict { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; }
.exam-score-banner.pass .exam-score-verdict { color: #4ADE80; }
.exam-score-banner.fail .exam-score-verdict { color: #F87171; }
.exam-correct-line { text-align: center; color: #94A3B8; font-size: .92rem; margin-bottom: 2rem; }
.exam-section-title { font-size: 1.05rem; color: #E2E8F0; margin: 0 0 .8rem; }
.exam-strat { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 2.25rem; }
.exam-strat-row { display: grid; grid-template-columns: minmax(140px, 220px) 1fr 48px; align-items: center; gap: .8rem; background: rgba(15,23,42,0.5); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: .55rem .9rem; }
.exam-strat-label { font-size: .85rem; color: #CBD5E1; font-weight: 500; }
.exam-strat-bar { height: 6px; background: rgba(148,163,184,0.12); border-radius: 9999px; overflow: hidden; }
.exam-strat-fill { height: 100%; border-radius: 9999px; transition: width .6s ease; }
.exam-strat-fill.good { background: #22C55E; }
.exam-strat-fill.mid  { background: #F59E0B; }
.exam-strat-fill.bad  { background: #EF4444; }
.exam-strat-score { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 700; color: #94A3B8; text-align: right; }
.exam-review { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 2rem; }
.exam-review-item { border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden; }
.exam-review-item.miss { border-color: rgba(239,68,68,0.25); }
.exam-review-head { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; cursor: pointer; background: rgba(15,23,42,0.5); }
.exam-review-head:hover { background: rgba(15,23,42,0.85); }
.exam-review-mark { flex-shrink: 0; }
.exam-review-title { font-size: .88rem; color: #E2E8F0; font-weight: 600; flex: 1; }
.exam-review-topic { font-size: .72rem; color: #64748B; font-family: 'Space Grotesk', sans-serif; }
.exam-review-body { display: none; padding: 1rem 1.1rem 1.2rem; border-top: 1px solid rgba(255,255,255,0.05); }
.exam-review-item.open .exam-review-body { display: block; }
.exam-review-sit { color: #94A3B8; font-size: .87rem; line-height: 1.6; margin-bottom: .8rem; }
.exam-review-ans { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 700; color: #FBBF24; margin-bottom: .55rem; }
.exam-review-why { color: #86EFAC; font-size: .86rem; line-height: 1.6; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
