:root{color-scheme:light;font-family:system-ui,-apple-system,"Hiragino Maru Gothic ProN",sans-serif;color:#22407e;background:#eee8df}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
body{display:flex;justify-content:center;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);height:100dvh}
#game-shell{position:relative;width:100%;max-width:500px;height:100%;background:#fff9f1;overflow:hidden}
canvas{display:block;width:100%;height:100%;touch-action:none;outline:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;background:#fff9f1;overflow:auto;z-index:2}
[hidden]{display:none!important}
.app-icon{width:132px;height:132px;border-radius:28px;box-shadow:0 10px 25px #22407e1a}
.badge{background:#ffe0eb;border-radius:30px;padding:5px 16px;color:#ae3766;font-size:13px;font-weight:700;margin:24px 0 10px}
h1{font-size:28px;line-height:1.5;margin:8px 0}h2{font-size:23px}p{font-size:15px;line-height:1.8;margin:12px 0}
button{font:inherit;font-weight:800;font-size:20px;border:0;border-radius:18px;background:#ff6891;color:white;padding:16px 24px;min-width:240px;cursor:pointer;box-shadow:0 6px 0 #d95075;margin-top:12px;touch-action:manipulation}
button:focus-visible{outline:3px solid #22407e;outline-offset:5px}button:disabled{opacity:.7;cursor:wait}
.note{font-size:12px;color:#5a6984;margin-top:22px}#status{font-size:13px;margin:15px 0 4px;min-height:23px}progress{width:240px;height:8px;accent-color:#ff6891}
#failure{z-index:4}#rotate{display:none;position:absolute;bottom:8px;left:10%;right:10%;z-index:3;background:#fff9f1ee;border-radius:12px;padding:8px;text-align:center;pointer-events:none;font-size:12px}
@media(max-height:520px) and (orientation:landscape){#rotate{display:block}.app-icon{width:72px;height:72px}.cover{justify-content:flex-start}h1{font-size:20px}.badge{margin:10px 0}.note{margin-top:12px}}
