*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 10% 0%,#ddd6fe 0,transparent 45%),radial-gradient(ellipse at 95% 25%,#b9f3ed 0,transparent 45%),#f5f6fc;color:#17233b;font:600 18px/1.7 system-ui,sans-serif}main{max-width:1440px;margin:auto;padding:24px 32px}header{display:flex;justify-content:space-between;align-items:center}a{color:#4e3999;font-weight:750;text-decoration:none}a:hover{text-decoration:underline}.heading{margin:32px 0 24px}.eyebrow{font-size:14px;letter-spacing:1px;font-weight:850;color:#55318b}h1{font-size:clamp(36px,5vw,64px);line-height:1.06;letter-spacing:-2px;margin:9px 0 12px;font-weight:900}h2{font-size:27px;line-height:1.2;margin:14px 0}p{margin:10px 0}.heading>p:last-child{color:#34425c;font-size:18px}.workspace{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr);gap:22px;align-items:start}.viewer{position:relative;overflow:hidden;border:1px solid #fff9;background:radial-gradient(ellipse at 50% 40%,#233a54,#111b30 75%);border-radius:28px;color:white;box-shadow:0 18px 55px #26325d20}.view-top{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px}.badge{font-size:13px;font-weight:850;letter-spacing:.6px;color:#e7fbff}button,select{font:inherit}button{cursor:pointer;background:#fff;border:1px solid #dfe2ee;color:#25314e;border-radius:12px;padding:10px 15px;font-weight:800;min-height:44px}button:hover{background:#eee8ff}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,#stage:focus-visible{outline:3px solid #f5b83d;outline-offset:3px}button:disabled{cursor:default;opacity:1}#stage{height:570px;position:relative;touch-action:none;outline-offset:-4px;cursor:grab}#stage:active{cursor:grabbing}canvas{width:100%;height:100%;display:block}#loading,#error{position:absolute;inset:20px;display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;z-index:3}#loading{animation:breathe 1.5s infinite}#error{background:#16233aeb;border-radius:20px;padding:30px}#error p{color:#c2ccde}#labels{pointer-events:none;position:absolute;inset:0;overflow:hidden}.muscle-label{position:absolute;transform:translate(-50%,-50%);font-size:14px;line-height:1.4;font-weight:800;background:#081326;border:1px solid #c5f4ee;color:#fff;padding:6px 9px;border-radius:7px;max-width:160px;text-align:center;box-shadow:0 2px 8px #0008}.gesture{text-align:center;color:#f0f5ff;font-size:15px;padding:0 18px}.tools{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:15px}.tools button,.view-top button{color:#fff;background:#2b3d59;border-color:#a6b9d1;font-size:15px}.tools button:hover,.view-top button:hover{background:#3a5070}.tools label{font-size:15px;font-weight:800;display:flex;gap:7px;align-items:center;min-height:44px}.model-note{font-size:14px;color:#dce7f6;text-align:center;padding:0 25px 16px;max-width:620px;margin:0 auto}.modes{display:flex;background:#e6e5f0;padding:5px;border-radius:15px;margin-bottom:24px}.modes button{flex:1;border:0;background:transparent}.modes [aria-pressed=true]{background:#fff;color:#683ab8;box-shadow:0 3px 10px #392a5910}aside{background:#fff;border:1px solid white;border-radius:28px;padding:24px;box-shadow:0 15px 50px #26325d0c}#detail{min-height:245px}#detail .location{display:inline-block;font-size:15px;background:#eee8fb;color:#4c287e;border-radius:8px;padding:5px 10px;font-weight:800}#detail h2{font-weight:900}#detail p{color:#26344e;font-size:18px;line-height:1.75}.movement{background:linear-gradient(120deg,#eee7ff,#dcf6f2);padding:13px 15px;border-radius:13px;font-size:17px}.choose-label{display:block;font-size:15px;font-weight:850;margin:20px 0 6px}select{width:100%;border:1px solid #d9dced;border-radius:12px;padding:12px;background:#fff;color:#28324d}#legend{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.chip{font-size:14px;font-weight:800;display:flex;align-items:center;gap:5px}.chip i{width:12px;height:12px;border-radius:50%}.fact{border-top:1px solid #dee2ed;margin-top:22px;padding-top:20px}.fact p{font-size:17px;line-height:1.75;color:#34425c}#answers{display:grid;gap:10px;margin:22px 0}#answers button{text-align:start;font-size:17px;line-height:1.5;padding:14px 16px}#answers button.correct{background:#d9f7e8;border-color:#2caa76;color:#14573c}#answers button.wrong{background:#fff1ee;border-color:#da8c78}.primary{background:#6842b2;color:white;width:100%}#feedback{min-height:52px;font-weight:750;font-size:17px}footer{text-align:center;color:#45516b;font-size:14px;padding:25px}footer a{font-weight:600}.viewer:fullscreen{border-radius:0;display:flex;flex-direction:column;justify-content:center}.viewer:fullscreen #stage{height:calc(100dvh - 220px);min-height:150px}.viewer.expanded{position:fixed;inset:0;z-index:20;border-radius:0;display:flex;flex-direction:column;justify-content:center}.viewer.expanded #stage{height:calc(100dvh - 230px);min-height:150px}body.expanded{overflow:hidden}[hidden]{display:none!important}@keyframes breathe{50%{opacity:.45}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}@media(max-width:850px){main{padding:18px}.workspace{grid-template-columns:1fr}.heading{margin-top:25px}#stage{height:490px}aside{padding:22px}#detail{min-height:0}}@media(max-width:440px){main{padding:12px}#stage{height:440px}.view-top{padding:15px;gap:4px}.badge{font-size:12px;letter-spacing:0}.tools{gap:5px;padding:10px}.tools button{padding:8px 10px}.viewer,aside{border-radius:22px}.heading h1{letter-spacing:-1px}}

/* Arabic reads more clearly with natural spacing and a taller line height. */
html[lang=ar] body{line-height:1.85}html[lang=ar] .eyebrow,html[lang=ar] .badge{letter-spacing:0}html[lang=ar] #detail p,html[lang=ar] .fact p{line-height:1.9}.tools input{width:18px;height:18px;accent-color:#b6a0ff}.modes button{font-size:18px}#loading{animation:none;font-weight:750}.view-top{flex-wrap:wrap}.viewer:fullscreen #stage,.viewer.expanded #stage{height:calc(100dvh - 290px)}

/* Aurora text accents retain strong contrast on the existing panels. */
.heading h1,#detail h2{color:#6d28d9}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
 .heading h1,#detail h2{background:linear-gradient(110deg,#6d28d9 5%,#1d4ed8 36%,#0f766e 65%,#be185d 95%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
}
.heading .eyebrow,#explore-panel>.eyebrow{color:#7e22ce}
.heading>p:last-child{color:#1d4ed8}
#detail .location{color:#9d174d;background:#fce7f3}
#detail p{color:#1e40af}
#detail p.movement{color:#6b21a8}
.choose-label{color:#0f766e}
.fact>strong{color:#0f766e}
.fact p{color:#334e80}
#legend .chip:nth-child(1){color:#6d28d9}
#legend .chip:nth-child(2){color:#be123c}
#legend .chip:nth-child(3){color:#0f766e}
#legend .chip:nth-child(4){color:#92400e}
.modes #explore{color:#6d28d9}.modes #quiz{color:#0f766e}
#progress{color:#be185d}#question{color:#6d28d9}#quiz-hint{color:#1d4ed8}
#feedback{color:#0f766e}
.badge{color:#a7f3d0}.gesture{color:#bfdbfe}.model-note{color:#ddd6fe}
.tools #front{color:#ddd6fe}.tools #rear{color:#99f6e4}.tools #reset{color:#fde68a}.tools label{color:#fbcfe8}
.muscle-label{color:#ddd6fe}
.muscle-label:nth-child(2),.muscle-label:nth-child(5),.muscle-label:nth-child(6){color:#fda4af}
.muscle-label:nth-child(7),.muscle-label:nth-child(8){color:#99f6e4}
.muscle-label:nth-child(n+9){color:#fde68a}
footer a{color:#6d28d9}
