*{box-sizing:border-box} [hidden]{display:none!important}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{background:#f4eedb;color:#504032;font-family:"Yu Gothic",Meiryo,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;border:0;cursor:pointer}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #d18b46;outline-offset:4px}canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}header{position:fixed;left:max(17px,env(safe-area-inset-left));top:max(12px,env(safe-area-inset-top));right:max(17px,env(safe-area-inset-right));display:flex;gap:13px;align-items:center;pointer-events:none}header a,header button{pointer-events:auto;background:#f8f3e5d9;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;text-decoration:none;color:inherit;font-size:22px;box-shadow:0 3px 0 #cbbc9b52}header div{line-height:1.3}header span{letter-spacing:.24em;font-size:9px;color:#85745d}h1{margin:2px 0;font-size:clamp(13px,2vw,18px);font-weight:600}header button{margin-left:auto}#mail{position:fixed;top:82px;left:50%;transform:translateX(-50%) rotate(-2deg);font-size:11px;background:#fffaf0;padding:8px 18px;box-shadow:0 3px 9px #55412c15;white-space:nowrap}#mail span{color:#ad7549;margin-left:8px}#edit-tools,#play-tools{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:14px;align-items:center}button.primary{background:#647b4d;color:#fff9df;box-shadow:0 5px 0 #415335,0 8px 18px #33452920;border-radius:30px;padding:14px 28px;font-weight:600;min-height:50px;white-space:nowrap;letter-spacing:.04em}button.primary span{margin-left:10px}button.primary:active{transform:translateY(3px);box-shadow:0 2px 0 #415335}button:disabled{opacity:.4;cursor:default}.tiny-tools,.row{display:flex;gap:10px;justify-content:center}.tiny-tools button,#edit,#leaf-tools button{background:#fff8e7e8;border-radius:50%;width:48px;height:48px;font-size:23px;box-shadow:0 3px 0 #d7c7a9}#leaf-tools{position:fixed;display:flex;gap:10px;align-items:center;transform:translate(-50%,-50%);white-space:nowrap}#leaf-number{font-size:11px;color:#6e6b47;background:#fff9e4bb;padding:5px;border-radius:20px}#counter{position:fixed;top:max(22px,env(safe-area-inset-top));right:75px;display:flex;gap:5px}#counter i{width:17px;height:20px;background:#bba074;border-radius:8px 8px 10px 10px;border-top:6px solid #775b3d;opacity:.3}#counter i.active{opacity:1;box-shadow:0 0 0 3px #d6cbad}#counter i.caught{opacity:1;background:#dba651;border-color:#7c7044}#counter i.miss{opacity:.4;background:transparent;border:2px solid #9e8970}#paused{position:fixed;inset:0;background:#efe9d9a8;backdrop-filter:blur(5px);display:grid;place-items:center}#result{position:fixed;inset:0;background:#3e392440;display:flex;justify-content:center;align-items:center;padding:20px;overflow:auto;backdrop-filter:blur(3px)}.result-sheet{width:min(420px,100%);padding:28px 27px 22px;background:#fff7e7;box-shadow:8px 10px 0 #56452730,0 16px 60px #342a2420;transform:rotate(-1deg);text-align:center;border-radius:3px 3px 28px 3px;position:relative}.result-sheet:before{content:"";position:absolute;top:-14px;left:calc(50% - 42px);width:84px;height:30px;background:#d7dfb1b3;transform:rotate(3deg)}.stamp{font-size:10px;letter-spacing:.12em;color:#8b8061}h2{font-size:26px;font-weight:600;margin:20px 0 8px}.score{margin:0;color:#6b7e4e}.score strong{font-size:84px;font-weight:500;line-height:1.1}.score span{font-size:24px;color:#9c927a;margin-left:8px}#result-detail{font-size:12px;color:#87705a;margin:8px 0 20px}.result-actions{display:grid;gap:17px}.row button,.row a{background:#ede4cf;padding:10px 14px;border-radius:22px;text-decoration:none;color:#65553e;font-size:12px;min-height:40px}#share-options{margin-top:17px}#share-text{margin-top:12px;width:100%;height:94px;border:1px solid #d0c5ae;border-radius:8px;background:#fffcf4;font:12px/1.6 inherit;color:#5b4a37;padding:8px}#share-status{font-size:11px;margin:10px 0;min-height:15px}.world-link{font-size:12px;color:#8a714f;text-underline-offset:4px}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);font-size:12px;background:#fff9e6e8;border-radius:18px;padding:9px 20px;opacity:0;transition:opacity .2s;pointer-events:none;white-space:nowrap}#toast.show{opacity:1}@media(max-width:500px){header{gap:8px}header a,header button{width:36px;height:36px}#counter{top:75px;right:20px}#counter i{width:15px;height:18px}#edit-tools,#play-tools{bottom:max(18px,env(safe-area-inset-bottom))}button.primary{padding:12px 25px}.result-sheet{padding:24px 20px 18px}}@media(max-height:500px){header h1{font-size:13px}#edit-tools,#play-tools{left:auto;right:18px;transform:none;bottom:20px}.result-sheet{padding:15px 25px;width:400px}.stamp{font-size:9px}h2{font-size:21px;margin:12px 0 0}.score strong{font-size:50px}#result-detail{margin:3px 0 12px}.result-actions{gap:10px}.result-actions .primary{min-height:40px;padding:10px 20px}#share-options{margin-top:8px}#share-status{margin:5px 0}.world-link{font-size:11px}}
/* The route and character fill the field; progress and controls sit on its edges. */
#progress{position:fixed;top:70px;left:22px;display:flex;align-items:center;gap:12px;pointer-events:none}#stage-number{font-size:12px;color:#85745d}#progress #counter{position:static;display:flex;gap:6px}#edit-tools #reset{background:#fff8e7e8;border-radius:50%;width:48px;height:48px;font-size:23px;box-shadow:0 3px 0 #d7c7a9}#next-tools{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%)}#result-image{display:block;max-height:260px;max-width:100%;width:auto;margin:0 auto 16px;border-radius:8px;border:1px solid #e8dcc0}.result-sheet{transform:none;max-height:calc(100dvh - 32px);overflow:auto}.score strong{font-size:62px}h2{font-size:23px;margin:12px 0 6px}#result-detail{margin:6px 0 14px}.share-hint{font-size:11px;margin:12px 0 0;color:#87705a}#share-options .row{flex-wrap:wrap}#share-status{min-height:0}@media(max-width:500px){#progress{top:65px;left:18px}#result-image{max-height:225px}.result-sheet{padding:22px 18px 16px}#progress #counter{position:static}}@media(max-height:600px){#progress{top:12px;left:50%;transform:translateX(-50%)}#result-image{max-height:125px}.result-sheet{max-height:calc(100dvh - 24px)}}
