:root{color-scheme:dark;font-family:ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif;color:#f2fffa;background:#051c2c}*{box-sizing:border-box}body{margin:0;min-height:100svh;display:grid;place-items:center;overflow:hidden}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #fff;outline-offset:4px}#game{position:relative;width:min(100vw,55.26svh);height:min(100svh,180.95vw);max-height:100svh;overflow:hidden;background:#07364b;isolation:isolate;box-shadow:0 0 100px #0008}canvas{display:block;width:100%;height:100%;touch-action:none}#hud{position:absolute;inset:0 0 auto;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px;pointer-events:none;background:linear-gradient(#062a3dc9,transparent)}.top{display:flex;align-items:center;justify-content:space-between;gap:8px}.brand{font-size:11px;letter-spacing:.17em;font-weight:850;color:#c5fff0}.hearts{font-size:17px;color:#ffaccb;letter-spacing:1px}#pause{pointer-events:auto;width:44px;height:44px;border:1px solid #a4eee941;border-radius:15px;color:white;background:#073748aa;font-size:22px}.progress{height:5px;background:#d3fff422;border-radius:20px;margin:11px 0 8px;overflow:hidden}.progress span{display:block;width:0;height:100%;background:#a5f5cf;border-radius:20px}.stats{display:flex;justify-content:space-between;font-size:11px;font-weight:750;color:#c8edea}#hint{position:absolute;bottom:calc(20px + env(safe-area-inset-bottom,0px));left:0;right:0;text-align:center;font-size:12px;letter-spacing:.02em;color:#d3f7eb;pointer-events:none;text-shadow:0 2px 6px #002d36}.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:22px;background:linear-gradient(#021c2855,#06304111 35%,#021a27bb)}.overlay[hidden]{display:none}.panel{width:100%;text-align:center;padding:22px 20px;border:1px solid #c4ffee3b;border-radius:28px;background:linear-gradient(155deg,#0d4d5ded,#073242f2);box-shadow:0 20px 70px #00172580;backdrop-filter:blur(12px)}.eyebrow{margin:0 0 13px;color:#a5f5cf;font-size:10px;font-weight:850;letter-spacing:.23em;text-transform:uppercase}h1{font-size:clamp(28px,8.5vw,40px);line-height:1.04;letter-spacing:-1.7px;margin:0;color:#fff3f6}h1 span{color:#ffb5d2}h2{font-size:30px;line-height:1.1;margin:6px 0 14px;letter-spacing:-1px}.intro{color:#c3e7e3;font-size:13px;line-height:1.6;margin:17px 0}.mascot-space{height:100px}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:16px 0 11px}.choice{padding:12px 3px 10px;border:1px solid #a7e5dc40;border-radius:13px;background:#0a3a4b;color:#bedbdc;font-size:11px;font-weight:800}.choice span{display:block;font-size:20px;margin-bottom:6px}.choice[aria-pressed=true]{background:#ddffdf;color:#173c40;border-color:#ddffdf;box-shadow:0 3px 18px #a8eeb72a}#difficultyInfo{min-height:32px;font-size:11px;line-height:1.5;color:#bedbdc;margin:10px 0 16px}.primary,.secondary{width:100%;border:0;border-radius:15px;padding:15px 10px;font-weight:850;font-size:14px}.primary{background:#ffb3cf;color:#3c2640;box-shadow:0 5px 0 #b86c99,0 10px 30px #e594b61a}.primary:active{transform:translateY(3px);box-shadow:0 2px 0 #b86c99}.secondary{background:#ffffff0b;color:#d4eeeb;border:1px solid #b7eddf30;margin-top:13px}.fine{font-size:10px;color:#9cc8c7;line-height:1.6;margin:18px 0 0}.result-icon{font-size:44px;margin:4px 0 12px}.resultstats{display:flex;gap:10px;margin:18px 0 22px}.resultstats div{flex:1;background:#ffffff09;border:1px solid #e8fff416;border-radius:13px;padding:13px 5px;font-size:10px;color:#b8dcd8}.resultstats strong{display:block;font-size:24px;color:#fff0f5;margin-bottom:4px}#announcer{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-height:610px){.panel{padding:16px}.mascot-space{height:48px}.intro{margin:10px 0}.choices{margin:8px 0}.fine{margin-top:12px}h1{font-size:29px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

/* Keep every menu action reachable on short screens, including landscape. */
@media(max-height:610px){.overlay{position:fixed;overflow-y:auto;align-items:flex-start;padding:16px;z-index:10}.panel{max-width:360px;margin:auto;flex-shrink:0}}

/* v2: menus use all available iframe space; the world letterboxes independently. */
body{height:100dvh;min-height:0;background:radial-gradient(ellipse at top,#124c60,#051c2c)}
#game{width:100%;height:100dvh;max-width:560px;max-height:none;background:radial-gradient(ellipse,#0b5267,#062b40)}
#world{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:auto;height:auto}
.overlay{position:absolute;inset:0;overflow-y:auto;align-items:flex-start;padding:14px;z-index:5}
.panel{max-width:360px;flex-shrink:0;margin:auto;padding:18px}
h1{font-size:34px}.mascot-space{height:78px}.intro{margin:12px 0;font-size:12px}.eyebrow{font-size:9px;margin-bottom:10px}.choices{margin:12px 0 8px}.fine{margin-top:13px}#difficultyInfo{min-height:18px;margin:9px 0 14px}
#ability{position:absolute;bottom:calc(43px + env(safe-area-inset-bottom,0px));left:16px;right:16px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}#ability[hidden]{display:none}#powerStatus{font-size:10px;font-weight:750;max-width:190px;padding:8px 10px;border-radius:12px;background:#073748ba;color:#e2fff4}
#dash{pointer-events:auto;touch-action:manipulation;border:1px solid #c6ffed8a;border-radius:17px;min-width:86px;min-height:54px;background:#b8f4e8;color:#103d4d;font-weight:850;font-size:14px;box-shadow:0 4px 0 #428786}#dash small{display:block;font-size:9px;margin-top:2px}#dash:disabled{background:#154b61;color:#bdd6db;box-shadow:none;border-color:#8bc7d34a;cursor:default}#hint{font-size:10px;bottom:calc(17px + env(safe-area-inset-bottom,0px))}
#toast{position:absolute;top:115px;left:18px;right:18px;z-index:3;border:1px solid #e7ffdc73;border-radius:16px;padding:12px;background:#124251ef;text-align:center;font-size:12px;line-height:1.5;color:#edffed;pointer-events:none;box-shadow:0 8px 24px #002b3555}
@media(max-height:610px){.overlay{position:absolute;padding:10px}.panel{padding:14px;max-width:350px}.mascot-space{height:46px}h1{font-size:28px}.intro{font-size:11px;margin:8px 0}.choice{padding:8px 3px}.choice span{font-size:17px;margin-bottom:4px}.fine{font-size:9px;margin-top:11px}.eyebrow{font-size:8px}.primary,.secondary{padding:12px 10px}.choices{margin:9px 0 6px}#difficultyInfo{font-size:10px;margin:8px 0 11px}}
