@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;font-family:'DM Sans',sans-serif;color:#f2eee8;background:#101c20}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 40%,#243c3c 0,transparent 65%);min-height:100vh}button,a,select{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button{cursor:pointer;color:inherit;background:#ffffff08;border:1px solid #ffffff25;border-radius:12px;padding:12px 20px}button:hover:not(:disabled){background:#ffffff15}button:disabled{opacity:.35;cursor:default}:focus-visible{outline:3px solid #d9f99c;outline-offset:5px}a{color:inherit;text-decoration:none}header,footer{max-width:1200px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:26px 35px;gap:20px}header>span,footer,.eyebrow{font-size:10px;letter-spacing:2px;color:#a8bcb5}.brand{font:bold 24px 'Space Grotesk',sans-serif}.brand span{color:#d9f99c}main{max-width:920px;margin:20px auto 65px;padding:0 24px}.intro{text-align:center}.eyebrow{color:#d9f99c}h1{font:500 clamp(52px,8vw,82px)/1 'Space Grotesk',sans-serif;letter-spacing:-5px;margin:20px 0}h1 em{font-family:Georgia,serif;font-weight:normal;color:#d9f99c}.intro>p:last-child{color:#adbfba;line-height:1.7;font-size:15px}.game{margin-top:35px;border:1px solid #ffffff1c;border-radius:26px;background:linear-gradient(135deg,#ffffff07,#ffffff01);box-shadow:0 30px 90px #0003;overflow:hidden}.toolbar{display:flex;justify-content:space-between;align-items:center;padding:24px 30px;border-bottom:1px solid #ffffff12}.toolbar label{font-size:9px;letter-spacing:2px;color:#94aaa1}.toolbar select{display:block;margin-top:8px;border:0;background:#1c3031;color:#f3eee5;font-size:15px;padding:7px;border-radius:6px}.moves{text-align:right}.moves strong{display:block;font:32px 'Space Grotesk',sans-serif}.moves span{font-size:9px;letter-spacing:2px;color:#94aaa1}#board{display:flex;justify-content:center;align-items:flex-end;flex-wrap:wrap;gap:30px 25px;padding:55px 25px 30px;min-height:280px}.jar{position:relative;padding:0;width:85px;height:190px;border:0;background:none!important;border-radius:0;isolation:isolate;transition:transform .2s;flex:0 0 85px}.jar.selected{transform:translateY(-18px)}.jar.selected .glass{box-shadow:0 0 0 2px #d9f99c,0 0 28px #d9f99c22}.glass{position:absolute;inset:10px 5px 20px;border:2px solid #b4d4d766;border-top:3px solid #dbe9e990;border-radius:7px 7px 24px 24px;background:linear-gradient(90deg,#ffffff12,transparent 40%,#ffffff0c);overflow:hidden}.glass:after{content:'';position:absolute;inset:5px 7px 12px;border-left:4px solid #ffffff40;border-radius:4px 0 0 12px;pointer-events:none}.liquids{position:absolute;bottom:3px;left:3px;right:3px;height:140px;display:flex;flex-direction:column-reverse;justify-content:flex-start;overflow:hidden;border-radius:0 0 18px 18px}.layer{height:25%;flex-shrink:0;background:var(--liquid);box-shadow:inset 0 2px 0 #ffffff30;display:grid;place-items:center;color:#14212990;font-size:10px}.jar-label{position:absolute;bottom:0;left:0;right:0;font-size:10px;color:#adc5bc;letter-spacing:1px}.jar.complete .jar-label{color:#d9f99c}.jar:after{content:'';position:absolute;bottom:12px;left:0;right:0;height:10px;background:#0003;border-radius:50%;z-index:-1}#status{min-height:42px;text-align:center;padding:0 20px;font-size:13px;color:#c4d3ce}.actions{display:flex;justify-content:center;gap:12px;padding:0 20px 25px}.instructions{display:flex;justify-content:center;gap:30px;margin-top:27px;font-size:12px;color:#bccac4}.instructions b{font-weight:400;color:#d9f99c;margin-right:8px}.tip{text-align:center;font-size:12px;color:#809b90;margin-top:20px}footer{border-top:1px solid #ffffff15;font-size:9px}footer a{color:#d9f99c;letter-spacing:0;font-size:13px}.pour-ghost{position:fixed;z-index:20;pointer-events:none;margin:0;transition:none}.stream{position:fixed;z-index:19;width:7px;border-radius:6px;pointer-events:none;box-shadow:0 0 12px #ffffff20;transform-origin:top}dialog{background:#203635;color:#f1eee7;border:1px solid #d9f99c55;border-radius:24px;max-width:420px;width:calc(100% - 40px);padding:35px;text-align:center}dialog::backdrop{background:#091414bb;backdrop-filter:blur(8px)}dialog h2{font:32px 'Space Grotesk',sans-serif}dialog p{line-height:1.6}dialog button{display:block;width:100%;margin-top:12px}#next{background:#d9f99c;color:#1b3025;border:0}
#lab-report{max-width:500px;position:relative}.lab-report-content{}.confetti-container{position:fixed;inset:0;pointer-events:none;z-index:999999}.confetti{position:absolute;width:10px;height:10px;pointer-events:none}.confetti-particle{animation:fall 3s ease-in forwards}.lab-header{font-size:10px;letter-spacing:2px;color:#d9f99c;margin-bottom:8px}@keyframes fall{to{transform:translateY(100vh) rotate(360deg);opacity:0}}.lab-subtitle{color:#a8bcb5;font-size:13px;margin-top:8px;margin-bottom:20px}.completion-badge{display:inline-block;background:#d9f99c;color:#1b3025;padding:8px 16px;border-radius:20px;font-weight:600;font-size:12px;letter-spacing:1px;margin:16px 0}.color-collection{display:grid;grid-template-columns:repeat(10,1fr);gap:8px;margin:24px 0;padding:16px;background:#1c3031;border-radius:12px}.color-swatch{aspect-ratio:1;border-radius:8px;box-shadow:0 4px 12px #0003;animation:swatchPulse 0.6s ease-out}.lab-stats{text-align:left;margin:24px 0;padding:16px;background:#1c3031;border-radius:12px}.stat{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #ffffff12;font-size:13px}.stat:last-child{border-bottom:none}.stat-label{color:#a8bcb5}.stat-value{color:#d9f99c;font-weight:600}.certificate{margin:24px 0;padding:20px;border:2px solid #d9f99c;border-radius:12px;background:#0a1212}.certificate-text{font-family:'Space Grotesk',sans-serif;font-size:16px;font-weight:600;color:#d9f99c;margin-bottom:12px}.certificate p{font-size:11px;color:#a8bcb5;line-height:1.6}#lab-close{background:#d9f99c!important;color:#1b3025!important;border:0!important;font-weight:600}@keyframes swatchPulse{0%{transform:scale(0);opacity:0}100%{transform:scale(1);opacity:1}}.shake{animation:shake .25s}@keyframes shake{25%,75%{translate:-5px}50%{translate:5px}}@media(max-width:600px){header,footer{padding:20px}header>span{display:none}main{padding:0 14px;margin-top:15px}h1{letter-spacing:-3px}.toolbar{padding:18px}#board{gap:25px 14px;padding:35px 14px 20px}.jar{width:72px;flex-basis:72px}.instructions{gap:12px;flex-wrap:wrap;font-size:11px}footer{flex-wrap:wrap}.game{margin-top:25px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.liquid-animation{position:fixed;inset:0;width:100vw;height:100vh;z-index:30;pointer-events:none}

/* Rounded, rolled glass mouth, shared visually with the canvas pour. */
.glass{border-top:0;border-radius:3px 3px 24px 24px}
.jar-rim{position:absolute;left:5px;right:5px;top:7px;height:10px;border:3px solid #d8eeee85;border-bottom-color:#f0ffffc0;border-radius:50%;box-shadow:inset 0 1px 1px #172d3280;pointer-events:none;z-index:2}

/* Level Select Screen */
.level-select{margin-top:35px;border:1px solid #ffffff1c;border-radius:26px;background:linear-gradient(135deg,#ffffff07,#ffffff01);box-shadow:0 30px 90px #0003;overflow:hidden;padding:40px 30px}
.experiments-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:20px;margin-top:30px}
.experiment-btn{position:relative;padding:0;border:2px solid #ffffff25;border-radius:16px;background:linear-gradient(135deg,#ffffff12,#ffffff08);aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;cursor:pointer;transition:all .2s;font-size:12px;color:#f2eee8;line-height:1.4}
.experiment-btn:hover:not(:disabled){border-color:#d9f99c;background:linear-gradient(135deg,#d9f99c22,#d9f99c12)}
.experiment-btn:disabled{opacity:.4;cursor:not-allowed}
.experiment-btn{position:relative;overflow:hidden}
.experiment-btn .jar-preview{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:6px;opacity:0.4;pointer-events:none;z-index:1}
.experiment-btn .tiny-jar{width:28px;height:48px;border:1.5px solid #b4d4d766;border-radius:3px 3px 12px 12px;overflow:hidden;display:flex;flex-direction:column-reverse;background:linear-gradient(90deg,#ffffff08,transparent)}
.experiment-btn .jar-layer{flex:1;box-shadow:inset 0 1px 1px #ffffff20}
.experiment-btn .level-num{font-size:24px;font-weight:600;font-family:'Space Grotesk',sans-serif;color:#d9f99c;position:relative;z-index:2}
.experiment-btn .level-name{font-size:13px;font-weight:500;color:#f2eee8;margin-top:6px;letter-spacing:0.5px;position:relative;z-index:2}
.experiment-btn .best-score{font-size:10px;color:#d9f99c;margin-top:6px;font-weight:500;position:relative;z-index:2}
.experiment-btn .lock-icon{font-size:32px;color:#a8bcb5}
