*{box-sizing:border-box}body{margin:0;background:#f3f0e8;color:#243f43;font-family:Arial,sans-serif}main{max-width:1040px;margin:auto;padding:12px 24px 8px}header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.eyebrow{font-size:10px;letter-spacing:2px;color:#73827b}h1{font-size:21px;letter-spacing:-1px;margin:4px 0 0}h1 span{font-size:12px;font-weight:400;letter-spacing:0;margin-left:18px;color:#81928b}button{border:1px solid #c8d2c9;background:transparent;border-radius:30px;padding:12px 18px;color:inherit;cursor:pointer}.stage{height:min(68vh,700px);min-height:350px;position:relative;overflow:hidden;border-radius:18px;background:#e5ede7;border:1px solid #d2ded3}canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-5px}.score{position:absolute;top:24px;left:28px;pointer-events:none}.score strong{display:block;font-size:54px;font-weight:400}.score span{font-size:9px;letter-spacing:2px}.badge{position:absolute;right:24px;top:10px;font-size:9px;letter-spacing:1px;pointer-events:none}#message{position:absolute;bottom:64px;text-align:center;width:100%;font-size:20px;pointer-events:none}.hint{position:absolute;bottom:36px;width:100%;text-align:center;font-size:11px;color:#627e75;pointer-events:none}footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 0;font-size:12px}label{display:flex;align-items:center;gap:10px}input{accent-color:#35776d;width:110px}.note{text-align:center;color:#89958b;font-size:11px;line-height:1.8}@media(max-width:600px){main{padding:max(16px,env(safe-area-inset-top)) 12px 10px}h1{font-size:20px}h1 span{display:block;margin:6px 0}header button{padding:10px;font-size:11px}.stage{height:66dvh;min-height:340px}.badge{font-size:7px;right:14px}.score{left:18px}footer{flex-wrap:wrap;gap:10px}#status{font-size:10px}footer button{padding:8px}.note{margin:0}}.gameover{position:absolute;inset:auto 12% 12%;background:#f3f0e8ed;border:1px solid #b5c7bb;border-radius:18px;padding:22px;text-align:center;box-shadow:0 12px 30px #243f4320}.gameover[hidden]{display:none}.gameover h2{margin:0 0 10px;font-size:22px}.gameover p{font-size:13px}.gameover button{background:#345b54;color:#fff}.gameover:not([hidden])~#message,.gameover:not([hidden])~.hint{visibility:hidden}@media(min-width:601px){main{height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:8px}header{margin:0}header button{padding:8px 14px;font-size:12px}.eyebrow{font-size:8px}.stage{height:auto;min-height:0}footer{padding:4px 0}footer button{padding:8px 14px}.note{margin:0;font-size:10px;line-height:1.4}}main{position:relative;max-width:1160px;width:100%;height:100dvh;padding:0;display:block}header{position:absolute;z-index:3;top:max(10px,env(safe-area-inset-top));left:16px;right:16px;margin:0;padding:7px 10px;border-radius:12px;background:#f3f0e8e8;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.stage{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;min-height:0;border:0;border-radius:0}footer{position:absolute;z-index:3;bottom:max(8px,env(safe-area-inset-bottom));left:16px;right:16px;padding:8px 10px;background:#f3f0e8ed;border-radius:12px}.note,.badge{display:none}.score{top:108px;left:24px}.score strong{font-size:42px}.overview{position:absolute;z-index:1;right:14px;top:130px;width:94px;padding:10px 6px;background:#f3f0e8dc;border:1px solid #bdcfc2;border-radius:12px;text-align:center;pointer-events:none}.overview>span,.overview small{display:block;font-size:9px;color:#69867b;letter-spacing:1px}.overview strong{display:block;font-size:17px;margin:6px 0}.overview canvas{width:100%;height:clamp(70px,calc(100dvh - 300px),230px)}.overview small{letter-spacing:0;margin-top:5px}#message{bottom:94px;font-size:18px}.hint{bottom:72px}@media(max-width:600px){header{left:8px;right:8px;padding:6px 8px}header .eyebrow{font-size:7px;letter-spacing:1px}h1{font-size:17px}h1 span{font-size:9px;margin:3px 0}header button{padding:8px;font-size:10px}footer{left:8px;right:8px;display:grid;grid-template-columns:1fr auto;gap:4px}footer #status{grid-column:1/-1;grid-row:2;text-align:center}footer input{width:80px}.overview{right:8px;top:122px;width:64px;padding:8px 3px}.overview canvas{height:clamp(70px,calc(100dvh - 300px),168px)}.overview strong{font-size:13px}.overview>span,.overview small{font-size:8px}.score{left:14px;top:106px}.score strong{font-size:36px}.score span{font-size:8px;letter-spacing:1px}#message{bottom:100px}.hint{bottom:81px;font-size:10px}}.compass{position:absolute;left:16px;bottom:100px;width:108px;padding:8px 4px;z-index:1;border:1px solid #bdcfc2;border-radius:12px;background:#f3f0e8df;pointer-events:none;text-align:center}.compass>span{font-size:9px;letter-spacing:1px;color:#69867b}.compass canvas{height:68px;width:100%}.compass strong{font-size:11px;display:block}.compass small{display:block;font-size:9px;line-height:1.6;color:#69867b}@media(max-width:600px){.compass{left:8px;bottom:110px;width:90px;padding:6px 2px}.compass canvas{height:54px}.compass small{font-size:8px}.compass strong{font-size:10px}footer{grid-template-columns:1fr auto}footer #status{grid-column:1;grid-row:1;text-align:left}}.conditions{position:absolute;right:14px;bottom:100px;width:108px;padding:10px 5px;z-index:1;border:1px solid #bdcfc2;border-radius:12px;background:#f3f0e8e8;text-align:center;pointer-events:none}.conditions span{display:block;font-size:8px;letter-spacing:.6px;color:#69867b}.conditions strong{display:block;font-size:13px;margin:5px 0 9px}.conditions strong:last-child{margin-bottom:0}.conditions b{font-size:14px}@media(max-width:600px){.conditions{right:8px;bottom:110px;width:90px;padding:8px 3px}.conditions span{font-size:7px}.conditions strong{font-size:11px}}#lives{display:block;color:#c77061;font-size:20px;letter-spacing:4px;margin-bottom:4px}.compass[data-zone=orange]{background:#fff0d8ed;box-shadow:0 0 0 2px #e6a03d55}.compass[data-zone=orange] #balance-hint{color:#a55e13;animation:balance-warning 1.3s ease-in-out infinite}.compass[data-zone=red]{background:#ffe5dfee}@keyframes balance-warning{50%{opacity:.5}}@media(prefers-reduced-motion:reduce){.compass[data-zone=orange] #balance-hint{animation:none}}footer #camera-toggle{white-space:nowrap}@media(max-width:600px){footer{grid-template-columns:1fr auto}footer #status{grid-column:1 / -1;grid-row:2;text-align:center}footer #camera-toggle,footer #sound{padding:7px 10px;font-size:11px}}header .eyebrow,header h1 span{display:none}header h1{margin:0;font-size:17px;letter-spacing:-.4px}header{padding-top:5px;padding-bottom:5px}@media(max-width:600px){footer #camera-toggle{white-space:normal;max-width:240px}}
