*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#162e34;font-family:ui-rounded,'Trebuchet MS',Arial,sans-serif;color:#173647}body{display:grid;place-items:center}#shell{container-type:inline-size;position:relative;height:min(100dvh,211.111vw);width:min(100vw,47.3684dvh);max-width:650px;overflow:hidden;background:#cbd5df;box-shadow:0 0 80px #0005;touch-action:none}canvas{width:100%;height:100%;display:block}button{font:inherit;cursor:pointer;touch-action:manipulation;border:0;-webkit-tap-highlight-color:transparent}header{position:absolute;top:calc(1.8% + env(safe-area-inset-top)/3);left:4%;right:4%;display:flex;justify-content:space-between;align-items:center;pointer-events:none}header button{pointer-events:auto;color:white;width:12%;aspect-ratio:1;border-radius:24%;background:linear-gradient(#4dc4ff,#008be1);font-weight:900;font-size:clamp(20px,6cqw,40px);border:2px solid #b8ebff;box-shadow:0 4px 0 #076aa9,0 6px 8px #2345}header div{text-align:center;text-shadow:0 2px 0 #fff9}header small{display:block;font-size:clamp(8px,2cqw,12px);letter-spacing:2px;font-weight:bold;color:#375730}header strong{display:block;font-size:clamp(20px,5cqw,32px);color:#fff;text-shadow:0 3px #30502f,2px 0 #30502f,-2px 0 #30502f}#instruction{position:absolute;top:43.5%;width:100%;text-align:center;font-size:clamp(11px,2.8cqw,17px);color:#426376;font-weight:bold;pointer-events:none}#progress{position:absolute;top:47%;left:7%;right:7%;display:flex;justify-content:space-between;font-size:clamp(10px,2.5cqw,15px);font-weight:bold;color:#617486}footer{position:absolute;bottom:2.5%;left:6%;right:6%;height:8%;display:flex;gap:5%;align-items:center}footer button{height:100%;width:29%;border:2px solid #d2f1ff;border-radius:20px;background:linear-gradient(#56ccff,#0797ed);box-shadow:0 5px 0 #277caa,0 8px 0 #fff8;color:white;text-shadow:0 1px #17648c;font-weight:900;font-size:clamp(9px,2.3cqw,14px)}footer button span{display:block;font-size:clamp(20px,6cqw,32px)}footer div{flex:1}footer b{display:block;font-size:clamp(12px,3cqw,19px);letter-spacing:1px}footer small{display:block;margin-top:6px;font-size:clamp(10px,2.3cqw,13px);color:#637887}#toast{position:absolute;bottom:13%;left:12%;width:76%;text-align:center;padding:10px;border-radius:20px;background:#173647ed;color:white;font-size:14px;opacity:0;transition:opacity .2s;pointer-events:none}#toast.show{opacity:1}#overlay{position:absolute;inset:0;background:#13313dbb;backdrop-filter:blur(5px);display:grid;place-items:center;padding:8%}#overlay[hidden]{display:none}section{width:100%;background:#fff8e7;border:5px solid #ffe199;border-radius:30px;padding:28px;text-align:center;box-shadow:0 10px #c88c3c,0 20px 40px #0005}#modalIcon{font-size:55px}h1{font-size:30px;margin:12px 0}section p{line-height:1.5;color:#64717a}section button{display:block;width:100%;padding:16px;margin-top:15px;border-radius:16px;font-weight:bold;font-size:18px;background:linear-gradient(#5cdb62,#26b249);color:white;box-shadow:0 4px #18892f}section button+button{background:#f2e6ce;color:#53626d;box-shadow:0 4px #d3c3a6}button:active{transform:translateY(2px)}button:focus-visible{outline:3px solid #fa8b26;outline-offset:3px}
footer button{padding:3px;font-size:12px}footer button span{font-size:26px;line-height:1.1}header button{font-size:32px}

footer{bottom:1.2%;height:6%}#instruction{top:44%}#progress{top:49%}

#instruction{top:51.2%;color:#f8f5e9;font-size:11px}#progress{top:48.6%;left:22%;right:22%;color:#f5f6eb;font-size:10px}footer{bottom:1.2%;height:5.5%}

[hidden]{display:none!important}#home{position:absolute;inset:0;pointer-events:none;padding:6%;color:#173e59}.home-top{display:flex;align-items:center;justify-content:space-between}.home-top button{pointer-events:auto;border-radius:15px;background:#fff8e5;color:#1692d4;font-size:29px;width:48px;height:48px;box-shadow:0 4px #b6d6dc}.home-badge{font-size:9px;letter-spacing:1px;font-weight:900;background:#fff9e9cc;border-radius:15px;padding:10px}.home-title{text-align:center;margin-top:8%}.home-title small{font-weight:900;letter-spacing:4px;color:#1c6f96}.home-title h1{margin:8px 0;font-size:clamp(38px,13cqw,70px);line-height:.95;color:#fff6b3;letter-spacing:-2px;text-shadow:0 4px #dc8a22,0 7px #175277,3px 0 #175277,-3px 0 #175277}.home-title em{font-style:normal;color:#fff}.home-title p{font-size:13px;font-weight:bold}.home-bottom{position:absolute;bottom:5%;left:9%;right:9%;text-align:center}.home-bottom>span{display:inline-block;background:#fff4d7;padding:10px 25px;border-radius:18px 18px 0 0;font-weight:900}#play{pointer-events:auto;display:block;width:100%;padding:18px;border-radius:25px;background:linear-gradient(#70e743,#22ba47);border:3px solid #eaffb6;box-shadow:0 7px #138b38,0 11px #fff8;color:white;text-shadow:0 3px #167c36;font-size:36px;font-weight:900}.home-nav{display:flex;align-items:center;justify-content:space-between;margin-top:28px}.home-nav button{pointer-events:auto;background:#fff7e6;padding:12px 18px;border-radius:14px;color:#235773;font-weight:bold;box-shadow:0 4px #aac6c8}.home-nav span{font-size:9px;font-weight:900;letter-spacing:1px}#shell.at-home header,#shell.at-home footer,#shell.at-home #progress,#shell.at-home #instruction{display:none}#toHome{background:#d9edf5;color:#2b6078;box-shadow:0 4px #a7cbdc}

footer{gap:3%;left:5%;right:5%;height:6%;bottom:1%}footer button{width:27%;flex-shrink:0}footer div{min-width:0}footer b{font-size:10px;letter-spacing:0}footer small{font-size:9px}#jumble{background:linear-gradient(#a681ff,#7054db);box-shadow:0 5px #49349e,0 8px #fff8;position:relative}#jumbleCount{position:absolute;right:-3px;top:-7px;border:2px solid #fff0bd;background:#ffbd37;color:#493311;border-radius:50%;width:22px;height:22px;font-size:13px;line-height:18px}span.disco-ball{display:block;width:28px;height:28px;margin:0 auto 2px;border-radius:50%;background:radial-gradient(circle at 30% 20%,#fff9,transparent 40%),repeating-linear-gradient(0deg,transparent 0 7px,#fff7 8px 9px),repeating-linear-gradient(90deg,transparent 0 7px,#fff7 8px 9px),conic-gradient(#ffe943,#71f64f,#1ee4ef,#466cff,#b858ff,#ff58a3,#ffe943);box-shadow:inset -4px -3px 6px #322e7977,0 2px 2px #362f76;border:1px solid #fff8}#jumble:disabled{cursor:default;filter:saturate(.3);opacity:.7}

#instruction,#progress{color:#415670;text-shadow:0 1px #fff9}#instruction{top:51%}#progress{top:48.6%}

#instruction{top:46.3%}

#coinWallet{position:absolute;top:8%;left:5%;background:#fff5d6;border:2px solid #f5cb66;border-radius:25px;padding:4px 12px 4px 5px;display:flex;align-items:center;gap:7px;color:#70430f;font-size:15px;box-shadow:0 3px #c88a37;pointer-events:none;z-index:2}.coin-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:linear-gradient(#fff88b,#ffb71f);border:2px solid #e5a316;color:#d48c00;text-shadow:0 1px #fff3ab}#shell.at-home #coinWallet{top:10%;left:38%}#extraBays{position:absolute;left:74.45%;right:1%;top:37.3%;height:6.8%;display:flex;gap:1%}#extraBays button{flex:1;min-width:0;background:#90dba627;border:2px dashed #a3ddba;border-radius:9px;color:#d4ffdf;font-size:22px;font-weight:900}#extraBays button.open{border-color:transparent;background:transparent;color:transparent;pointer-events:none}#shell.at-home #extraBays{display:none}#overlay{z-index:5}section{position:relative}#modalClose{position:absolute;top:5px;right:9px;margin:0;padding:0;width:34px;height:34px;border-radius:50%;font-size:26px;background:#ff9739;color:white;box-shadow:0 3px #c96a22}section button:disabled{opacity:.5;cursor:default}#modalText{white-space:pre-line}.ad-test-icon{animation:adspin 3s linear infinite}@keyframes adspin{to{transform:rotate(360deg)}}

/* Rounded, bold local type: no remote font dependency. */
html,body{font-family:'Arial Rounded MT Bold','Arial Black',Arial,sans-serif;font-weight:700}
button,h1,header strong,#coinBalance{font-weight:900;letter-spacing:.15px;-webkit-text-stroke:.3px currentColor;paint-order:stroke fill}
.home-title h1{letter-spacing:-1px;line-height:1.02}#modalTitle{font-size:clamp(23px,6.6cqw,32px);line-height:1.12}section p{font-size:clamp(12px,3.5cqw,16px);line-height:1.4}section{padding:22px;max-height:92%;overflow-y:auto;touch-action:pan-y}#levelGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:18px 0}#levelGrid button{margin:0;padding:9px 0;border-radius:13px;background:linear-gradient(#6cd3ff,#169edd);box-shadow:0 3px #23749c;color:#fff;font-size:20px;min-height:45px}#levelGrid button.current{background:linear-gradient(#ffe777,#ffb52c);box-shadow:0 3px #bc7a1e;color:#704918}#progress{font-size:10px}#instruction{font-size:10px}

header button,#modalClose{font-family:Arial,sans-serif;-webkit-text-stroke:0}footer button{font-size:10px;line-height:1.1}footer button span{font-size:23px}

/* Upright display type; no handwriting, italic or skew. */
html,body,button,h1,h2,p,small,strong,em{font-style:normal!important;font-synthesis:none}html,body{font-family:"Arial Rounded MT Bold","Arial Black",Arial,sans-serif}button,h1,header strong,#coinBalance{font-weight:900;letter-spacing:.1px;-webkit-text-stroke:.2px currentColor}.home-title h1{font-style:normal;letter-spacing:-1px}section p,footer small,#instruction,#progress{font-family:Arial,sans-serif;font-weight:700;-webkit-text-stroke:0}
