*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#132b32;color:#fff;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}button,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,select:focus-visible{outline:3px solid #ffd277;outline-offset:3px}[hidden]{display:none!important}#app{position:relative;width:100%;max-width:540px;height:100dvh;min-height:400px;margin:auto;overflow:hidden;background:#ecbd78;box-shadow:0 0 90px #0005}canvas{position:absolute;width:100%;height:100%;touch-action:none}.hud{position:absolute;inset:0 0 auto;padding: max(18px,env(safe-area-inset-top)) 23px 12px;z-index:2;background:linear-gradient(#173940db,transparent);pointer-events:none}.topline{display:flex;align-items:center;gap:12px;height:28px}.brand{font-size:18px;font-weight:900;letter-spacing:-1px}.brand span{color:#ffd078;margin-left:3px}#theme{margin-left:auto;font-size:10px;letter-spacing:2px;font-weight:800}button#pause{pointer-events:auto;border:1px solid #ffffff50;color:#fff;background:#ffffff20;border-radius:10px;width:38px;height:38px}.stats{display:flex;justify-content:space-between;margin-top:16px}.stats small{display:block;font-size:9px;letter-spacing:2px;opacity:.7}.stats strong{font-size:30px;line-height:1.25}.stats i{font-size:13px;font-style:normal;font-weight:500}.score{text-align:right}.health{display:flex;justify-content:space-between;align-items:center;margin-top:7px}.health span{color:#ffe6a3;font-size:21px;letter-spacing:2px}.health small{font-variant-numeric:tabular-nums;color:#fff9}#effects{font-size:12px;min-height:25px;padding-top:6px;color:#fff1bd}#question{position:absolute;z-index:3;top:190px;left:18px;right:18px;background:#fff9eaf5;color:#193e42;border-radius:18px;padding:16px;text-align:center;box-shadow:0 8px 24px #53300f20}#question small{font-size:10px;letter-spacing:1px;color:#637e72}#question h2{font-size:24px;margin:7px 0 12px}#answers{display:flex;gap:7px}#answers span{flex:1;min-width:0;padding:10px 2px;border:1px solid #d5ddd3;border-radius:9px;font-weight:800;font-size:15px}#answers .selected{color:white;background:#207c70;border-color:#207c70}.timer{height:4px;background:#dbe6d9;margin-top:12px;border-radius:3px;overflow:hidden}.timer i{display:block;height:100%;background:#eeac45;width:100%}#toast{position:absolute;top:40%;left:20px;right:20px;text-align:center;z-index:5;font-size:17px;font-weight:750;padding:13px;border-radius:14px;background:#193f40ed;opacity:0;transition:opacity .15s;pointer-events:none}.overlay{position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;padding:24px;background:#14333a55;overflow:auto;backdrop-filter:blur(5px)}#home{align-items:flex-start;padding-top:clamp(154px,23vh,210px);background:linear-gradient(#17394008,#17394055 52%,#102e38ee)}.intro{width:100%;max-width:370px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2.5px;color:#ffe1a4}h1{font-size:clamp(34px,9vw,47px);line-height:1.2;letter-spacing:-2px;margin:15px 0}h1 em{font-style:normal;color:#ffe0a0}.intro p{font-size:14px;line-height:1.7;color:#fffce5cf}.journey{display:flex;gap:14px;align-items:center;margin:20px 0 25px;font-size:12px;color:#fff3d4}.journey b{opacity:.4}.intro label{display:block;font-size:11px;margin-bottom:7px;color:#fff9}select{width:100%;height:46px;padding:0 13px;border:1px solid #ffffff40;border-radius:11px;background:#234a50;color:white;margin-bottom:12px}.primary{border:0;background:#ffce7a;color:#203c3a;font-weight:850;border-radius:13px;min-height:53px;width:100%;padding:14px 18px;box-shadow:0 5px 0 #bf8945}.primary span{float:right}.how{display:flex;justify-content:space-around;margin:24px 0 0}.how span{text-align:center;font-size:25px}.how small{display:block;font-size:10px;font-weight:500;opacity:.75}.intro p.hint{font-size:10px;text-align:center;margin:14px 0 5px}.textbtn{border:0;background:transparent;color:inherit;font-size:12px;padding:12px;width:100%;text-decoration:underline;text-underline-offset:4px}.card{width:100%;background:#183c42;border:1px solid #ffffff20;border-radius:24px;padding:26px;box-shadow:0 24px 80px #0004;max-height:100%;overflow:auto}.card h2{font-size:25px;letter-spacing:-1px}.card p{line-height:1.9;font-size:13px;color:#e0e8df}.secondary{width:100%;padding:14px;margin-top:15px;border-radius:12px;background:transparent;border:1px solid #fff4;color:#fff}.resultstats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.resultstats div{background:#ffffff0c;border:1px solid #ffffff13;border-radius:12px;padding:14px}.resultstats small{display:block;font-size:11px;color:#acc4c0}.resultstats strong{display:block;font-size:25px;color:#ffe0a0}.card h3{font-size:13px}#mistakes{max-height:150px;overflow:auto;margin-bottom:20px;font-size:12px;line-height:1.8;color:#d8e7dc}#mistakes article{padding:8px 0;border-bottom:1px solid #ffffff15}#mistakes b{color:#ffe1a4}#controls{position:absolute;z-index:4;bottom:max(20px,env(safe-area-inset-bottom));left:20px;right:20px;display:flex;gap:10px;touch-action:none}#controls button{height:56px;flex:1;background:#173a43b5;border:1px solid #fff5;color:#fff;border-radius:15px;font-size:25px;backdrop-filter:blur(5px);touch-action:none}#controls small{display:block;font-size:9px;line-height:9px}footer{position:absolute;z-index:9;bottom:14px;width:100%;text-align:center;color:#fff5;font-size:8px;letter-spacing:2px;pointer-events:none}@media(max-height:740px){#home{padding-top:135px}.intro h1{font-size:34px;margin:9px 0}.intro p{margin:8px 0}.journey{margin:12px 0}.how{margin-top:15px}footer{display:none}#question{top:167px;padding:12px}#question h2{font-size:21px}}@media(max-height:610px){#home{padding-top:105px}.intro h1{font-size:28px}.journey,.intro>p:not(.hint){display:none}.hud .stats{margin-top:5px}.how{margin-top:10px}.overlay{padding:15px}.card{padding:20px}#question{top:145px}#question h2{font-size:18px}}

/* Academy edition: touch-first onboarding and local records. */
.academy{margin:0 0 19px;color:#fff2d4}.academy b{display:block;font-size:22px;letter-spacing:-.7px}.academy span{display:block;font-size:11px;letter-spacing:.5px;margin-top:4px;color:#ffe2adaf}.academy.compact b{font-size:18px}.academy.compact{margin-bottom:22px}.hudacademy{display:block!important;font-size:9px!important;font-weight:500;letter-spacing:0;opacity:.8;margin-top:1px}.topline{height:35px}.setup{display:flex;gap:9px;align-items:flex-end}.setup label{flex:1;min-width:0}.setup select{margin:5px 0 0;height:39px;font-size:12px}.setup button{height:39px;margin-bottom:7px;flex:0 0 110px;border:1px solid #ffffff40;border-radius:10px;background:#234a50;color:#fff;font-size:12px}.intro .bestscore{font-size:11px;color:#ffe1a4;margin:10px 0 13px}.homeactions{display:flex}.homeactions .textbtn{font-size:10px;padding:12px 0}.homeactions button:first-child{flex:2}.homeactions button:last-child{flex:1}#home{padding-top:clamp(115px,16vh,155px)}.intro h1{font-size:39px;margin:10px 0}.intro .journey{margin:14px 0 18px}.intro .how{margin-top:20px}#countdown{position:absolute;z-index:7;inset:0;background:#15383d66;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none;backdrop-filter:blur(2px)}#countdown strong{font-size:100px;color:#ffda92;text-shadow:0 8px 0 #183b3b55}#countdown small{font-size:20px;font-weight:700}#countdown span{font-size:12px}#practicePanel{position:absolute;z-index:6;top:190px;left:20px;right:20px;background:#183e44ed;padding:20px;border:1px solid #fff4;border-radius:20px;text-align:center}#practicePanel small{color:#ffd58b;letter-spacing:2px;font-size:11px}#practicePanel h2{font-size:24px;margin:12px 0}#practicePanel p{font-size:12px;line-height:1.7;color:#d7e7dc}#practicePanel .primary{font-size:14px;margin-top:10px}.newrecord{color:#ffdc88!important}@media(max-height:820px){#home{padding-top:85px}.academy{margin-bottom:13px}.intro .journey{margin:10px 0}.intro h1{font-size:33px}.intro>p{font-size:12px;margin:8px 0}.intro .how{margin-top:13px}}@media(max-height:670px){#home{padding-top:30px;padding-bottom:22px}.intro .academy{margin-bottom:9px}.intro h1{font-size:29px}.intro>.eyebrow,.intro>.journey,.intro>p:not(.hint):not(.bestscore){display:none}.intro .how{margin-top:12px}.intro .hint{margin-bottom:0}#practicePanel{top:165px}}@media(max-width:350px){.academy b{font-size:20px}.intro h1{font-size:30px}.setup button{flex-basis:100px}}
#homeFooter{display:none}
