:root {
  color-scheme: light;
  --blue: #2878f0;
  --blue-deep: #1457c7;
  --ink: #1d3151;
  --muted: #73819a;
  --cream: #fffaf0;
  --paper: #ffffff;
  --line: #e8edf5;
  --yellow: #ffc94a;
  --green: #31ba83;
  --coral: #f47f71;
  --shadow: 0 16px 42px rgba(44, 75, 122, .11);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  background:
    radial-gradient(ellipse at 9% 1%, rgba(255, 219, 126, .21), transparent 29rem),
    radial-gradient(ellipse at 91% 18%, rgba(83, 178, 255, .12), transparent 25rem),
    var(--cream);
}
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 4px solid rgba(40,120,240,.35); outline-offset: 3px; }
.page-sparkle { position: fixed; z-index: -1; color: rgba(40,120,240,.13); font-size: 3.7rem; pointer-events: none; }
.sparkle-one { top: 21%; left: 4%; transform: rotate(-12deg); }
.sparkle-two { top: 72%; right: 3%; color: rgba(255,201,74,.28); font-size: 2.7rem; }
.topbar { width: min(1240px, calc(100% - 44px)); margin: 0 auto; min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 50px; height: 50px; border-radius: 18px 18px 18px 8px; display: grid; place-items: center; position: relative; color: #fff; background: var(--blue); font-weight: 1000; font-size: 29px; box-shadow: 0 5px 0 #1c60c4; transform: rotate(-3deg); }
.brand-mark span { position: absolute; left: -5px; top: -9px; color: var(--yellow); font-size: 18px; text-shadow: 0 1px 0 #eab938; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { color: var(--blue-deep); font-size: 20px; font-weight: 900; }
.brand-copy small { font-size: 11px; color: var(--muted); }
.main-nav { display: flex; gap: 6px; padding: 5px; border-radius: 20px; background: rgba(255,255,255,.74); border: 1px solid rgba(232,237,245,.8); }
.nav-link { min-height: 43px; padding: 0 14px; border: 0; border-radius: 15px; background: transparent; color: #63718a; font-weight: 800; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.nav-link:hover { background: #f2f6ff; color: var(--blue-deep); transform: translateY(-1px); }
.nav-link.is-active { color: #fff; background: var(--blue); box-shadow: 0 4px 9px rgba(40,120,240,.22); }
.nav-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; margin-inline-start: 4px; border-radius: 12px; color: var(--blue-deep); background: #e9f1ff; font-size: 11px; }
.top-stats { display: flex; align-items: center; gap: 10px; }
.stat-pill, .sound-toggle { height: 42px; border: 1px solid #edf0f5; background: #fff; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; box-shadow: 0 3px 9px rgba(38,69,115,.04); }
.stat-pill strong { color: var(--ink); font-size: 14px; }
.stat-pill small { font-size: 11px; color: var(--muted); }
.sound-toggle { cursor: pointer; color: var(--blue-deep); font-size: 12px; font-weight: 800; transition: background .18s; }
.sound-toggle[aria-pressed="true"] { background: #e8f2ff; }
.app-shell { width: min(1120px, calc(100% - 44px)); margin: 22px auto 60px; min-height: 520px; }
.loading-card { min-height: 360px; display: grid; place-content: center; justify-items: center; color: var(--blue-deep); background: #fff; border: 2px dashed #cfe0fb; border-radius: 32px; font-weight: 800; }
.loading-mascot { font-size: 72px; animation: floaty 1.4s ease-in-out infinite; }
.site-footer { width: min(1120px, calc(100% - 44px)); min-height: 48px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; gap: 11px; color: #9ba4b3; font-size: 11px; text-align: center; }

/* الصفحة الرئيسية */
.welcome-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.16fr .84fr; align-items: center; min-height: 300px; padding: clamp(26px, 5vw, 55px); border-radius: 34px; color: #fff; background: linear-gradient(125deg, #226be0 0%, #398cf5 63%, #69bcfa 100%); box-shadow: 0 16px 34px rgba(40,120,240,.2); }
.welcome-card::before, .welcome-card::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.10); pointer-events: none; }
.welcome-card::before { width: 290px; height: 290px; inset-inline-start: -150px; top: -175px; }
.welcome-card::after { width: 230px; height: 230px; inset-inline-end: 33%; bottom: -182px; }
.welcome-copy { position: relative; z-index: 2; max-width: 610px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #ffebad; font-size: 12px; font-weight: 900; letter-spacing: .01em; }
.welcome-copy h1 { max-width: 570px; margin: 0; font-size: clamp(31px, 4.3vw, 48px); line-height: 1.3; font-weight: 1000; letter-spacing: -.035em; }
.welcome-copy h1 .highlight { color: var(--yellow); }
.welcome-copy p { max-width: 500px; margin: 12px 0 21px; color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.9; }
.primary-btn, .soft-btn, .outline-btn { min-height: 49px; border: 0; border-radius: 16px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; text-decoration: none; font-weight: 900; transition: transform .18s, box-shadow .18s, background .18s; }
.primary-btn { color: #3b351e; background: var(--yellow); box-shadow: 0 5px 0 #e4a92d, 0 8px 15px rgba(28,63,116,.13); }
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #e4a92d, 0 11px 17px rgba(28,63,116,.13); }
.primary-btn:active, .soft-btn:active, .outline-btn:active { transform: translateY(2px); }
.soft-btn { color: var(--blue-deep); background: #edf4ff; border: 1px solid #dce9fd; }
.soft-btn:hover { background: #e2edff; }
.outline-btn { color: var(--blue-deep); background: #fff; border: 1px solid var(--line); }
.welcome-art { height: 235px; position: relative; display: grid; place-items: center; z-index: 1; }
.mascot-image { height: 245px; width: min(100%, 280px); object-fit: contain; filter: drop-shadow(0 14px 13px rgba(10,50,115,.2)); animation: floaty 3.2s ease-in-out infinite; }
.mascot-fallback { display: none; font-size: 138px; line-height: 1; filter: drop-shadow(0 13px 12px rgba(14,49,104,.18)); animation: floaty 3.2s ease-in-out infinite; }
.mascot-star { position: absolute; color: var(--yellow); font-size: 30px; animation: twinkle 2s ease-in-out infinite; }
.mascot-star.star-a { top: 13%; inset-inline-end: 17%; }
.mascot-star.star-b { bottom: 14%; inset-inline-start: 16%; font-size: 22px; animation-delay: .6s; }
.speech-bubble { position: absolute; inset-inline-end: 2%; top: 4%; max-width: 162px; padding: 10px 13px; border: 2px solid rgba(255,255,255,.65); border-radius: 18px 18px 5px 18px; color: #315282; background: #fffdf7; box-shadow: 0 7px 16px rgba(31,67,132,.12); font-size: 12px; line-height: 1.7; font-weight: 900; transform: rotate(2deg); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 31px 3px 14px; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: 23px; font-weight: 1000; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.section-kicker { margin-bottom: 4px; color: #9aa5b5; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.map-wrap { position: relative; padding: 7px 0 0; }
.map-wrap::before { content: ""; position: absolute; top: 67px; bottom: 58px; left: 9%; right: 9%; z-index: 0; border-top: 5px dotted rgba(94,157,237,.26); transform: rotate(-4deg); pointer-events: none; }
.path-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.path-card { --chapter-color: #2878f0; position: relative; min-height: 185px; padding: 17px; border: 1px solid rgba(225,232,242,.9); border-radius: 24px; background: #fff; box-shadow: 0 8px 20px rgba(44,75,122,.065); transition: transform .2s, box-shadow .2s; }
.path-card:nth-child(2), .path-card:nth-child(5) { transform: translateY(17px); }
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.path-card:nth-child(2):hover, .path-card:nth-child(5):hover { transform: translateY(12px); }
.path-card-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.path-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; color: var(--chapter-color); background: color-mix(in srgb, var(--chapter-color) 12%, white); font-size: 26px; }
.path-level { padding: 6px 8px; border-radius: 11px; color: #8894a8; background: #f7f8fb; font-size: 10px; font-weight: 900; }
.path-card h3 { margin: 12px 0 4px; font-size: 16px; font-weight: 1000; }
.path-card p { min-height: 34px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.mastery-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; color: #77859c; font-size: 10px; font-weight: 800; }
.mastery-track { height: 8px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: #edf1f7; }
.mastery-fill { height: 100%; width: var(--mastery, 0%); border-radius: inherit; background: var(--chapter-color); transition: width .6s cubic-bezier(.2,.7,.3,1); }
.path-start { width: 100%; min-height: 36px; margin-top: 12px; border: 0; border-radius: 12px; color: #fff; background: var(--chapter-color); font-size: 11px; font-weight: 900; cursor: pointer; transition: filter .15s, transform .15s; }
.path-start:hover { filter: brightness(.96); transform: translateY(-1px); }
.map-note { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding: 14px 17px; border: 1px solid #f2e6bc; border-radius: 18px; color: #7a6430; background: #fff9df; font-size: 12px; line-height: 1.8; }
.map-note span:first-child { font-size: 21px; }

/* التدريب */
.practice-shell { max-width: 760px; margin: 0 auto; }
.practice-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.back-btn { width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 15px; color: #536680; background: #fff; cursor: pointer; font-size: 19px; }
.practice-label { flex: 1; }
.practice-label strong { display: block; font-size: 14px; }
.practice-label small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.round-count { padding: 9px 13px; border-radius: 13px; color: var(--blue-deep); background: #eaf2ff; font-size: 11px; font-weight: 900; white-space: nowrap; }
.round-track { height: 10px; margin: 0 1px 17px; overflow: hidden; border-radius: 99px; background: #e6ecf4; }
.round-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #52c999, #9add68); transition: width .35s; }
.question-card { padding: clamp(20px, 4vw, 34px); border: 1px solid #e9edf3; border-radius: 29px; background: #fff; box-shadow: var(--shadow); }
.question-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.question-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 12px; color: #64758f; background: #f5f7fa; font-size: 10px; font-weight: 900; }
.read-question { width: 38px; height: 38px; border: 1px solid #d9e7fb; border-radius: 13px; color: var(--blue-deep); background: #f1f6ff; cursor: pointer; }
.question-art { min-height: 82px; display: grid; place-items: center; margin: 12px 0 4px; font-size: 58px; line-height: 1.2; }
.question-title { max-width: 640px; margin: 0 auto 23px; font-size: clamp(21px, 3.5vw, 29px); line-height: 1.65; text-align: center; font-weight: 1000; }
.answer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.answer-option { min-height: 61px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 2px solid #e7edf5; border-radius: 18px; color: #354963; background: #fff; text-align: right; font-size: 14px; font-weight: 900; cursor: pointer; transition: transform .15s, border .15s, background .15s; }
.answer-option:hover:not(:disabled) { border-color: #b9d5ff; background: #f5f9ff; transform: translateY(-2px); }
.answer-option:disabled { cursor: default; }
.answer-option.is-correct { border-color: #45bf8b; color: #147c55; background: #ebfaf3; animation: pop-in .34s ease-out; }
.answer-option.is-wrong { border-color: #f2a79e; color: #8d4b42; background: #fff1ee; animation: gentle-shake .38s ease-in-out; }
.answer-option.reveal-correct { border-color: #83d4ae; background: #f1fcf6; }
.option-key { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 9px; color: #8290a2; background: #f0f3f7; font-size: 11px; }
.feedback-box { margin-top: 17px; padding: 15px 17px; border-radius: 17px; display: flex; align-items: start; gap: 12px; line-height: 1.85; animation: feedback-rise .28s ease-out; }
.feedback-box.is-right { color: #226b4e; background: #eaf9f1; border: 1px solid #d1f0df; }
.feedback-box.is-not-right { color: #76563b; background: #fff7e7; border: 1px solid #f5e7c7; }
.feedback-symbol { font-size: 24px; line-height: 1; }
.feedback-copy strong { display: block; margin-bottom: 3px; font-size: 14px; }
.feedback-copy p { margin: 0; font-size: 12px; }
.feedback-copy small { display: block; margin-top: 6px; font-size: 10px; opacity: .88; }
.feedback-actions { display: flex; justify-content: space-between; align-items: center; gap: 11px; margin-top: 17px; }
.xp-note { color: #a78328; font-size: 12px; font-weight: 900; }

/* المراجعة والتقدم */
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 6px 0 22px; }
.page-heading h1 { margin: 0; font-size: clamp(26px,4vw,36px); }
.page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.review-list { display: grid; gap: 12px; }
.review-item { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 5px 15px rgba(44,75,122,.05); }
.review-icon { width: 51px; height: 51px; display: grid; place-items: center; border-radius: 16px; background: #fff2df; font-size: 26px; }
.review-item h3 { margin: 0; font-size: 13px; line-height: 1.7; }
.review-item p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.review-btn { min-height: 39px; padding: 0 14px; border: 0; border-radius: 12px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 900; cursor: pointer; }
.empty-state { max-width: 600px; margin: 50px auto; padding: 32px; border: 2px dashed #d7e5fa; border-radius: 27px; background: rgba(255,255,255,.77); text-align: center; }
.empty-icon { font-size: 62px; }
.empty-state h2 { margin: 9px 0; font-size: 21px; }
.empty-state p { max-width: 430px; margin: 0 auto 17px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.progress-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr); gap: 17px; align-items: start; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 6px 18px rgba(44,75,122,.05); }
.panel-title { margin: 0; font-size: 16px; font-weight: 1000; }
.panel-sub { margin: 5px 0 16px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.chart-panel { text-align: center; }
.radar-chart { width: min(100%, 360px); height: auto; overflow: visible; }
.radar-grid { fill: none; stroke: #e6edf6; stroke-width: 1; }
.radar-axis { stroke: #edf1f6; stroke-width: 1; }
.radar-area { fill: rgba(49,186,131,.19); stroke: #31ba83; stroke-width: 2.5; stroke-linejoin: round; transition: all .4s; }
.radar-dot { fill: #fff; stroke: #31ba83; stroke-width: 2; }
.radar-label { fill: #677a94; font: 10px Tahoma, sans-serif; }
.mastery-list { display: grid; gap: 14px; margin-top: 17px; }
.mastery-row { display: grid; grid-template-columns: 29px minmax(0,1fr) 41px; gap: 10px; align-items: center; }
.mastery-row .tiny-icon { font-size: 19px; text-align: center; }
.mastery-row strong { display: block; margin-bottom: 5px; font-size: 11px; }
.mastery-row .mastery-track { margin: 0; height: 7px; }
.mastery-row .percent { color: var(--muted); text-align: left; font-size: 10px; font-weight: 900; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.mini-stat { min-height: 80px; padding: 12px; border: 1px solid #edf0f5; border-radius: 17px; background: #fcfdff; text-align: center; }
.mini-stat strong { display: block; margin-bottom: 5px; color: var(--blue-deep); font-size: 24px; }
.mini-stat span { display: block; color: var(--muted); font-size: 9px; line-height: 1.6; }
.summary-card { max-width: 760px; margin: 0 auto; padding: clamp(22px,4vw,35px); overflow: hidden; position: relative; border: 1px solid #e7edf6; border-radius: 29px; background: #fff; box-shadow: var(--shadow); animation: summary-show .55s cubic-bezier(.2,.8,.2,1); }
.summary-card::before { content: "✦　 ✧　　　 ✦"; position: absolute; inset-inline-start: 4%; top: 16px; color: rgba(255,201,74,.65); font-size: 31px; letter-spacing: 17px; transform: rotate(-8deg); }
.summary-top { text-align: center; }
.summary-emoji { display: inline-grid; place-items: center; width: 92px; height: 92px; border: 5px solid #ffefbc; border-radius: 50%; background: #fff9e8; font-size: 55px; animation: pop-in .55s ease-out; }
.summary-top h1 { margin: 13px 0 6px; font-size: clamp(25px,4vw,35px); }
.summary-top p { margin: 0 auto 16px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.score-banner { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; color: #73550b; background: #fff4d5; font-weight: 1000; }
.summary-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; margin: 22px 0; padding: 17px 0; border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; }
.summary-chart { text-align: center; }
.summary-chart .radar-chart { width: min(100%,280px); }
.summary-copy h2 { margin: 0 0 9px; font-size: 17px; }
.summary-copy p { color: var(--muted); font-size: 12px; line-height: 1.9; }
.summary-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.toast { position: fixed; z-index: 5; left: 50%; bottom: 22px; max-width: calc(100vw - 32px); padding: 11px 17px; border-radius: 14px; color: #fff; background: #223a5b; box-shadow: var(--shadow); font-size: 12px; font-weight: 800; opacity: 0; transform: translate(-50%, 15px); transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.hidden { display: none !important; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes twinkle { 0%,100% { opacity: .68; transform: scale(.9) rotate(-7deg); } 50% { opacity: 1; transform: scale(1.2) rotate(10deg); } }
@keyframes pop-in { 0% { transform: scale(.91); } 68% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes gentle-shake { 0%,100% { transform: translateX(0); } 28% { transform: translateX(-3px); } 70% { transform: translateX(3px); } }
@keyframes feedback-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes summary-show { from { opacity: 0; transform: translateY(15px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 900px) {
  .topbar { width: min(760px, calc(100% - 30px)); min-height: 83px; flex-wrap: wrap; row-gap: 10px; padding: 11px 0; }
  .brand-copy small { display: none; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; }
  .nav-link { flex: 1; padding: 0 7px; font-size: 11px; }
  .top-stats { margin-inline-start: auto; }
  .app-shell { width: min(760px, calc(100% - 30px)); margin-top: 13px; }
  .path-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .path-card:nth-child(2), .path-card:nth-child(5) { transform: translateY(0); }
  .path-card:nth-child(4) { transform: translateY(11px); }
  .path-card:nth-child(4):hover { transform: translateY(7px); }
  .map-wrap::before { top: 55px; bottom: 40px; left: 10%; right: 10%; border-top: 0; border-inline-start: 5px dotted rgba(94,157,237,.21); transform: rotate(8deg); }
}
@media (max-width: 600px) {
  .topbar { width: calc(100% - 24px); }
  .brand-mark { width: 42px; height: 42px; border-radius: 15px; font-size: 25px; }
  .brand-copy strong { font-size: 16px; }
  .stat-pill, .sound-toggle { height: 38px; padding: 0 9px; border-radius: 13px; }
  .sound-label { display: none; }
  .app-shell { width: calc(100% - 24px); min-height: 500px; margin-bottom: 39px; }
  .main-nav { border-radius: 16px; }
  .nav-link { min-height: 40px; border-radius: 12px; font-size: 10px; }
  .nav-link span:first-child { display: none; }
  .welcome-card { grid-template-columns: 1fr .57fr; min-height: 240px; padding: 21px; border-radius: 26px; }
  .welcome-copy h1 { font-size: 27px; }
  .welcome-copy p { margin: 8px 0 15px; font-size: 12px; line-height: 1.8; }
  .welcome-copy .primary-btn { min-height: 42px; padding: 0 14px; font-size: 12px; }
  .welcome-art { height: 172px; margin-inline-start: -14px; }
  .mascot-image { width: 160px; height: 170px; }
  .mascot-fallback { font-size: 88px; }
  .speech-bubble { inset-inline-end: 0; top: -2px; max-width: 105px; padding: 7px 8px; font-size: 9px; }
  .mascot-star { font-size: 20px; }
  .section-heading { align-items: start; margin-top: 25px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading p { max-width: 210px; font-size: 10px; line-height: 1.7; }
  .path-grid { grid-template-columns: 1fr; gap: 11px; }
  .path-card { min-height: auto; display: grid; grid-template-columns: 51px minmax(0,1fr) auto; align-items: center; gap: 0 11px; padding: 12px; border-radius: 19px; }
  .path-card-top { grid-row: span 2; grid-column: 1; }
  .path-level { display: none; }
  .path-icon { width: 46px; height: 46px; font-size: 23px; border-radius: 14px; }
  .path-card h3 { grid-column: 2; margin: 0 0 3px; font-size: 13px; }
  .path-card p { grid-column: 2; min-height: 0; font-size: 10px; }
  .mastery-meta { grid-column: 3; grid-row: 1; margin: 0; font-size: 9px; }
  .mastery-track { grid-column: 3; grid-row: 2; width: 75px; height: 7px; margin-top: 5px; }
  .path-start { grid-column: 1 / -1; margin-top: 10px; min-height: 34px; }
  .map-wrap::before { display: none; }
  .map-note { margin-top: 17px; font-size: 10px; }
  .answer-list { grid-template-columns: 1fr; gap: 8px; }
  .answer-option { min-height: 54px; font-size: 13px; }
  .question-card { padding: 16px; border-radius: 22px; }
  .question-title { margin-bottom: 17px; font-size: 21px; }
  .question-art { min-height: 66px; font-size: 49px; }
  .feedback-actions { align-items: end; }
  .feedback-actions .primary-btn { min-height: 43px; padding: 0 14px; font-size: 11px; }
  .page-heading { align-items: start; }
  .page-heading h1 { font-size: 26px; }
  .review-item { grid-template-columns: 43px minmax(0,1fr); gap: 11px; padding: 12px; }
  .review-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 22px; }
  .review-btn { grid-column: 1 / -1; width: 100%; }
  .progress-layout { grid-template-columns: 1fr; }
  .summary-body { grid-template-columns: 1fr; }
  .summary-copy { text-align: center; }
  .summary-actions > * { flex: 1; }
  .stats-grid { gap: 6px; }
  .mini-stat { padding: 9px 5px; }
  .mini-stat strong { font-size: 21px; }
  .site-footer { width: calc(100% - 24px); flex-wrap: wrap; gap: 5px 9px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
