.mix-page{max-width:1080px;margin:24px auto 48px;padding:0 16px;color:#172e46;font:1rem/1.5 system-ui,sans-serif}
.mix-hero{min-height:230px;display:grid;align-content:center;padding:clamp(22px,5vw,54px);background:linear-gradient(90deg,#102944 28%,#102944ba 62%,#10294425),url(images/home-games/color-mixing.webp) center right/cover;border-radius:24px;color:white}
.mix-hero h1{font-size:clamp(2rem,6vw,3.6rem);line-height:1.1;margin:.2em 0;color:inherit}.mix-hero p{max-width:38ch;margin:.3em 0}.mix-kicker{font-weight:800;letter-spacing:.12em;color:#a9f4e9}
.mix-panel{background:#f1f7fc;border:1px solid #cbddeb;border-radius:24px;padding:clamp(14px,3vw,26px);margin-top:18px}
.mix-tools,.mix-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}.mix-tools label{font-weight:750}.mix-tools select,.mix-page button{font:inherit;border:1px solid #8faac0;border-radius:11px;padding:8px 13px;background:white;color:#183650;min-height:44px}.mix-page button{cursor:pointer;font-weight:750}.mix-page button:disabled{cursor:default}.mix-page :focus-visible{outline:3px solid #0064b6;outline-offset:3px}
.mix-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:20px;margin-top:16px}.mix-scene{margin:0;border-radius:17px;overflow:hidden;background:#172f48;position:relative;min-height:330px;display:grid;align-content:end}.mix-scene>img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.mix-scene figcaption{position:relative;background:#10243ded;color:white;padding:12px 15px}.mix-recipe{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;padding:15px;background:#10243de8;color:white}.mix-dot{display:inline-block;width:24px;height:24px;border:2px solid #8796a7;border-radius:50%;background:var(--sample);vertical-align:middle;flex:none}.mix-chip{display:inline-flex;gap:7px;align-items:center;font-weight:750}.mix-result{border-radius:12px;padding:8px;background:white;color:#183650}.mix-result[hidden]{display:none}
.mix-questions{min-width:0}.mix-questions h2{margin:0 0 12px;font-size:clamp(1.18rem,3vw,1.55rem)}.mix-choices{display:grid;gap:9px}.mix-choices button{display:flex;align-items:center;gap:10px;text-align:left;width:100%}.mix-choices button:not(:disabled):hover{background:#e2eff9}.mix-choices .correct{background:#d2f5e1;border-color:#23704d}.mix-choices .incorrect{background:#ffe2e0;border-color:#ae423b}.mix-status{min-height:3.2em;font-weight:700;margin:12px 0}.mix-actions #mix-next{background:#154e85;color:white;border-color:#154e85}.mix-actions #mix-next:disabled{opacity:.48}
@media(max-width:680px){.mix-layout{grid-template-columns:1fr}.mix-scene{min-height:255px}}
.mix-preview{position:relative;justify-self:center;margin:16px;width:68px;height:77px;border:3px solid #f5fcff;border-radius:7px 7px 19px 19px;background:linear-gradient(90deg,#ffffff74,transparent 26% 72%,#ffffff47),linear-gradient(transparent 18%,var(--sample) 19%);box-shadow:0 4px 22px #0f182fd0;animation:mix-reveal .35s ease-out}
.mix-preview.light{width:75px;height:75px;border-radius:50%;background:var(--sample);box-shadow:0 0 32px 12px var(--sample)}
.mix-preview[hidden]{display:none}
@keyframes mix-reveal{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.mix-preview{animation:none}}

/* Free Mix uses the same lab scenes and result vessels as the challenges. */
.mix-page [hidden]{display:none}
#mix-free-toggle{background:#154e85;color:#fff;border-color:#154e85}
.mix-free-material{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-weight:750}
.mix-free-material select{font:inherit;color:inherit;background:#fff;border:1px solid #8faac0;border-radius:11px;min-height:44px;padding:6px 10px}
.mix-free-slider{display:grid;grid-template-columns:minmax(85px,1fr) minmax(72px,1.6fr) 3.5rem;align-items:center;gap:9px;margin:8px 0;padding:4px 9px;border-radius:10px;background:white;font-weight:650}
.mix-free-slider input{width:100%;min-width:0;margin:0;height:38px;accent-color:#154e85}
.mix-free-slider output,.mix-free-result output{justify-self:end;font-variant-numeric:tabular-nums}
.mix-free-result{display:flex;justify-content:space-between;gap:12px}
#mix-free-preview{width:112px;height:120px;animation:none}
#mix-free-preview.light{width:108px;height:108px;outline:1px solid #f5fcff88}
