*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#fffdf6;color:#526b70;font-family:ui-rounded,Avenir Next,system-ui,sans-serif;overscroll-behavior:none;touch-action:none}#game{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:hidden}canvas{display:block;touch-action:none}nav{position:fixed;top:max(14px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));display:flex;gap:10px}nav button{width:46px;height:46px;border:2px solid #dfe7e5;background:#fffdf6ed;border-radius:50%;color:#526b70;font:700 25px system-ui;cursor:pointer;touch-action:manipulation}nav button:active{background:#ffdc70}#sound.off{opacity:.6}dialog{touch-action:pan-y;width:min(600px,92vw);border:0;border-radius:28px;padding:28px 32px;background:#fffdf6;color:#526b70;box-shadow:0 10px 80px #486a7040;max-height:85vh;overflow:auto}dialog::backdrop{background:#315b6255}dialog h1{font-size:26px;margin-top:0}dialog p{line-height:1.65}dialog button{font:inherit;border:0;border-radius:16px;background:#dce9d6;color:#345d55;padding:13px 19px;margin:5px;cursor:pointer}dialog .close{float:right;background:#f3e9d6}dialog .danger{background:#f8ddcd}dialog .picture{display:flex;align-items:center;gap:12px;padding:10px;background:#f4f1e5;border-radius:15px;margin:12px 0}dialog .picture img{width:55px;height:65px;object-fit:contain}small{display:block;line-height:1.6}a{color:#398e89}nav #restart{width:auto;min-width:46px;border-radius:24px;padding:0 14px;display:flex;align-items:center;gap:7px}.reset-label{font:700 14px ui-rounded,system-ui,sans-serif}@media(max-width:480px){nav{gap:7px}nav #restart{padding:0 10px}.reset-label{font-size:12px}}
