@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{font-family:'DM Sans',sans-serif;color:#173332;background:#b9d6c4;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}canvas{position:fixed;inset:0;width:100%;height:100%;touch-action:none}header{position:fixed;top:0;left:0;right:0;padding:30px 38px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.brand{color:inherit;text-decoration:none;font-family:'Space Grotesk',sans-serif;letter-spacing:2px;font-size:19px;font-weight:700;display:flex;align-items:center;gap:10px;pointer-events:auto}.brand-icon{font-size:30px}.edition{display:block;font-family:'DM Sans',sans-serif;font-size:10px;letter-spacing:1.5px;max-width:155px;border-left:1px solid #17333244;padding-left:16px;margin-left:10px;line-height:1.6}.icon-button{pointer-events:auto;border:1px solid #17333255;border-radius:50%;background:#edf4e9;width:44px;height:44px;font-size:20px;color:inherit;cursor:pointer}main{position:fixed;inset:0;display:flex;align-items:center;padding:100px 9%;background:linear-gradient(90deg,#eaf0e6f5 0%,#eaf0e6e8 32%,#eaf0e600 76%)}.card{max-width:510px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:2px;margin-bottom:22px}h1{font-family:'Space Grotesk',sans-serif;font-size:clamp(48px,6.4vw,92px);line-height:1.02;letter-spacing:-5px;margin:0 0 25px;font-weight:500}h1 em{font-style:normal;color:#477d5e}p{font-size:17px;line-height:1.7;color:#52635b;margin:0 0 32px}.primary{display:flex;align-items:center;justify-content:space-between;gap:60px;background:#183c35;color:#fff;border:0;padding:18px 24px;border-radius:8px;font:600 17px 'DM Sans',sans-serif;cursor:pointer;box-shadow:0 5px 0 #0e2923}.primary:hover{background:#295747;transform:translateY(-1px)}.primary span{font-size:24px;color:#c0e69c}.instructions{display:flex;gap:24px;font-size:15px;margin-top:30px}.instructions b{font-size:12px;font-weight:500}.best{margin-top:26px;font-size:10px;letter-spacing:1.5px;font-weight:700;color:#657569}footer{position:fixed;bottom:24px;left:38px;right:38px;display:flex;justify-content:space-between;gap:16px;font-size:11px;letter-spacing:1px;color:#234b41;pointer-events:none}footer>span:first-child{font-size:13px;letter-spacing:0}.spark{font-size:23px;vertical-align:middle;margin-left:12px}#hud{position:fixed;top:28px;left:50%;transform:translateX(-50%);width:340px;display:flex;justify-content:space-between;align-items:center;background:#f2f5eaeF;padding:14px 22px 20px;border-radius:12px;box-shadow:0 5px 20px #264f3315}.stat>span{display:block;font-size:9px;letter-spacing:1px}.stat strong{font-family:'Space Grotesk',sans-serif;font-size:27px;font-weight:500}.stat strong span{font-size:16px}.right{text-align:right}.clock{font:500 32px 'Space Grotesk',sans-serif}.progress{position:absolute;bottom:0;left:12px;right:12px;height:4px;background:#d9e3cf;border-radius:10px;overflow:hidden}.progress div{background:#50825c;height:100%;width:0;transition:width .3s}[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:3px solid #bd7c34;outline-offset:5px}@media(max-width:700px){header{padding:20px}.edition{display:none}.brand{font-size:15px;letter-spacing:1px}main{padding:110px 26px;background:linear-gradient(90deg,#eaf0e6f5,#eaf0e6b8)}h1{letter-spacing:-3px}footer{left:20px;right:20px;bottom:15px}footer>span:last-child{display:none}#hud{top:84px;width:280px}.instructions{gap:18px}body.playing .brand{font-size:12px}}

.audio-controls{display:flex;align-items:center;gap:10px;pointer-events:auto}.sound-button{border:1px solid #17333255;border-radius:24px;background:#edf4e9;color:#173332;padding:11px 14px;font:600 14px 'DM Sans',sans-serif;cursor:pointer;min-width:72px}
header{z-index:3}

.setup{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 22px}.setup label{font-size:10px;font-weight:700;letter-spacing:1.2px}.setup select{display:block;width:100%;margin-top:7px;border:1px solid #a4b9a5;border-radius:7px;background:#f2f5eaff;color:#173332;padding:11px 28px 11px 10px;font:500 14px 'DM Sans',sans-serif;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23173332' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.setup select:focus-visible{outline:3px solid #bd7c34;outline-offset:2px}#level-note{grid-column:1/-1;font-size:12px;color:#52635b;letter-spacing:0}.secondary{border:1px solid #8aa18e;background:#edf4e9;border-radius:7px;padding:10px 16px;color:#173332;font:500 14px 'DM Sans',sans-serif;margin-bottom:16px;cursor:pointer}.card{max-width:560px}h1{font-size:clamp(44px,5.8vw,80px)}.eyebrow{margin-bottom:14px}p{margin-bottom:20px}.instructions{margin-top:22px}.best{margin-top:18px}@media(max-height:780px){main{overflow-y:auto;align-items:flex-start;padding-top:100px;padding-bottom:70px}h1{font-size:48px;margin-bottom:16px}.eyebrow{font-size:10px}p{font-size:15px;line-height:1.5}.instructions{margin-top:18px}.best{margin-top:14px}}@media(max-width:440px){.setup{grid-template-columns:1fr}.setup select{padding-top:8px;padding-bottom:8px}.setup{gap:8px}.edition{display:none}}

body.playing .edition{display:none}@media(min-width:701px) and (max-width:1100px){#hud{top:90px}}

.wallet{border:1px solid #c8b66b;border-radius:24px;padding:11px 14px;background:#fff1bf;color:#614d23;font:700 14px 'DM Sans',sans-serif;cursor:pointer;white-space:nowrap}.earnings{font-size:13px;line-height:1.5;color:#6c5928;margin-top:17px;max-width:420px}.extra-choice{grid-column:1/-1}.setup .extra-choice select{max-width:260px}dialog{width:min(740px,calc(100% - 28px));max-height:calc(100dvh - 40px);padding:28px;background:#edf2e6;color:#173332;border:1px solid #b5c8b3;border-radius:20px;box-shadow:0 30px 100px #102d4260;overflow-y:auto}dialog::backdrop{background:#102c3acc;backdrop-filter:blur(6px)}.shop-header{display:flex;justify-content:space-between;gap:15px;align-items:center}.shop-header .eyebrow{font-size:10px;letter-spacing:1.5px;margin:0 0 8px}h2{font:500 34px 'Space Grotesk',sans-serif;letter-spacing:-1.5px;margin:0}.shop-balance{font-size:20px;color:#806129;background:#f8e9b7;border-radius:9px;padding:13px 16px;margin:20px 0 14px}.shop-balance span{font-size:12px;margin-left:12px}.shop-help{font-size:14px;line-height:1.5;margin-bottom:18px}.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.shop-item{padding:16px;background:#fafbf5;border:1px solid #d5dfcb;border-radius:12px;display:flex;flex-direction:column;gap:8px}.item-icon{font-size:26px}.item-kind{text-transform:uppercase;font-size:10px;letter-spacing:1.5px;color:#687d6c}.shop-item h3{font:600 18px 'Space Grotesk',sans-serif;margin:0}.shop-item p{font-size:13px;line-height:1.5;margin:0 0 8px;flex:1}.shop-buy{padding:10px 14px;border:0;background:#244b3e;color:white;border-radius:7px;font:600 14px 'DM Sans',sans-serif;cursor:pointer}.shop-buy:disabled{background:#e0e7d9;color:#6b7768;cursor:default}.shop-footnote{font-size:12px;margin:18px 0 0;color:#6c7c70}#shop-message{font-size:14px;margin:16px 0 0;min-height:21px}.edition{display:none}main{overflow-y:auto;align-items:flex-start;padding-top:115px;padding-bottom:90px}.card{width:100%}h1{font-size:clamp(44px,5vw,65px)}.setup{margin-bottom:16px}@media(max-width:700px){header{padding:16px;gap:8px}.brand{font-size:12px;gap:4px;letter-spacing:.5px}.brand-icon{font-size:22px}.audio-controls{gap:5px}.wallet{padding:10px}.shop-word{display:none}.sound-button{padding:10px;min-width:52px;font-size:12px}.icon-button{width:36px;height:36px}.shop-grid{grid-template-columns:1fr}dialog{padding:20px}.shop-balance span{display:block;margin:4px 0 0}.shop-header h2{font-size:28px}main{padding-top:95px}footer{font-size:10px}footer>span:first-child{font-size:11px}body.playing .brand{font-size:10px}}

.round-coins{position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);white-space:nowrap;font-size:12px;font-weight:700;color:#705827;background:#fff0bc;padding:6px 12px;border-radius:20px}.shop-item small{font-size:12px;color:#856838}body.playing #hud{z-index:1}@media(min-width:1101px){body.playing .brand{font-size:14px}}
