:root{--ink:#4a3b33;--ink-soft:#7a665a;--sky:#bfe6ff;--panel:#fffdf8;--primary:#ff8a5b;--primary-dark:#d9643a;--accent:#3aa6b4;--good:#2f9e5f;--warn:#d9643a;--ready:#ffc93c;--sl:env(safe-area-inset-left,0px);--sr:env(safe-area-inset-right,0px);--st:env(safe-area-inset-top,0px);--sb:env(safe-area-inset-bottom,0px);--font:"Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Rounded Mplus 1c", "M PLUS Rounded 1c", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body{background:var(--sky);height:100%;color:var(--ink);font-family:var(--font);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;overscroll-behavior:none;margin:0;overflow:hidden}body{-webkit-user-select:none;user-select:none}#app{height:100%;height:100dvh;position:fixed;top:0;bottom:0;left:0;right:0;overflow:hidden}#game-layer{touch-action:none;-webkit-touch-callout:none;position:absolute;top:0;bottom:0;left:0;right:0}#game-layer canvas{width:100%;height:100%;display:block}button{color:inherit;cursor:pointer;-webkit-touch-callout:none;font-family:inherit}button:focus-visible{outline:4px solid var(--accent);outline-offset:3px}.icon{line-height:0;display:inline-flex}.icon svg{width:28px;height:28px}#hud{pointer-events:none;z-index:10;position:absolute;top:0;bottom:0;left:0;right:0}#hud[data-mode=none]>:not(.toast),#hud[data-mode=house] #capture-btn,#hud[data-mode=house] .hint-btn,#hud:not([data-mode=house]) .house-only,#hud:not([data-mode=explore]) .explore-only{display:none!important}.hud-top{top:calc(8px + var(--st));left:calc(10px + var(--sl));right:calc(10px + var(--sr));justify-content:space-between;align-items:flex-start;gap:8px;display:flex;position:absolute}.hud-top-right{pointer-events:auto;gap:8px;display:flex}.pill{background:#fffdf8f0;border:3px solid #fff;border-radius:999px;align-items:center;gap:8px;min-height:48px;padding:4px 16px 4px 8px;font-size:19px;font-weight:800;display:inline-flex;box-shadow:0 3px 10px #4a3b332e}.count-faces{gap:2px;display:inline-flex}.face{line-height:0;display:inline-flex}.face svg{width:30px;height:30px}.count-faces .face:not(.got){opacity:.3;filter:grayscale()}.count-faces .face.got{animation:.45s ease-out pop}.round-btn{min-width:52px;height:52px;color:var(--ink);background:#fffdf8f0;border:3px solid #fff;border-radius:999px;justify-content:center;align-items:center;gap:4px;padding:0 10px;display:inline-flex;box-shadow:0 3px 10px #4a3b332e}.round-btn.off{color:#a8968a}.hint-btn{background:var(--ready);border-color:#fff;padding:0 16px 0 10px;font-size:18px;font-weight:800;animation:1.8s ease-in-out infinite soft-pulse}.hint-btn[hidden]{display:none}#joystick-zone{pointer-events:auto;touch-action:none;width:50%;height:78%;position:absolute;bottom:0;left:0}.joy-base{left:calc(86px + var(--sl));top:calc(100% - 86px - var(--sb));background:#ffffff52;border:4px solid #ffffffe6;border-radius:50%;width:116px;height:116px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 4px 14px #4a3b332e}.joy-base.active{background:#ffffff73}.joy-knob{border:4px solid var(--accent);background:#fff;border-radius:50%;width:54px;height:54px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 3px 8px #4a3b3340}.joy-label{color:#fff;text-shadow:0 1px 3px #281e14cc;white-space:nowrap;font-size:15px;font-weight:800;position:absolute;top:-30px;left:50%;transform:translate(-50%)}.joy-base.active .joy-label{opacity:0}#capture-btn{right:calc(26px + var(--sr));bottom:calc(20px + var(--sb));border:5px solid var(--primary);pointer-events:auto;touch-action:none;background:radial-gradient(circle at 50% 35%,#fff,#ffe8d9);border-radius:50%;flex-direction:column;justify-content:center;align-items:center;gap:0;width:100px;height:100px;padding:0;transition:transform 80ms,border-color .2s,box-shadow .2s;display:flex;position:absolute;box-shadow:0 5px #4a3b3340,0 6px 16px #4a3b3333}#capture-btn .net-icon svg{width:54px;height:54px}.cap-label{margin-top:-2px;font-size:13px;font-weight:800}.cap-ready{background:var(--ready);width:34px;height:34px;color:var(--ink);border:3px solid #fff;border-radius:50%;font-size:20px;font-weight:900;line-height:28px;transition:transform .2s;position:absolute;top:-8px;right:-4px;transform:scale(0)}#capture-btn.ready{border-color:var(--ready);border-style:double;border-width:8px;animation:1.4s ease-in-out infinite soft-pulse;box-shadow:0 0 0 6px #fffffff2,0 0 26px 10px #ffd250d9}#capture-btn.ready .cap-ready{transform:scale(1)}#capture-btn.pressed{transform:scale(.9)}.bottom-center{left:50%;bottom:calc(16px + var(--sb));pointer-events:auto;position:absolute;transform:translate(-50%)}.bottom-center[hidden]{display:none}.house-empty{text-align:center;background:#fffdf8f2;border:3px solid #fff;border-radius:24px;max-width:80vw;padding:14px 24px;font-size:21px;font-weight:800;position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);box-shadow:0 4px 14px #4a3b332e}.house-empty[hidden]{display:none}.toast{top:calc(68px + var(--st));opacity:0;text-align:center;pointer-events:none;background:#fffdf8f7;border:3px solid #fff;border-radius:999px;max-width:min(86vw,640px);padding:8px 24px;font-size:21px;font-weight:800;transition:opacity .25s,transform .25s;position:absolute;left:50%;transform:translate(-50%,-8px);box-shadow:0 4px 14px #4a3b3333}.toast.show{opacity:1;transform:translate(-50%)}.toast[data-kind=good]{color:#23744a;border-color:#8fdcae}.toast[data-kind=warn]{color:#a5441f;border-color:#ffc2a8}#modals{pointer-events:none;z-index:20;position:absolute;top:0;bottom:0;left:0;right:0}.overlay{padding:max(12px, var(--st)) max(16px, var(--sr)) max(12px, var(--sb)) max(16px, var(--sl));opacity:0;pointer-events:auto;touch-action:manipulation;z-index:20;background:#3c281e61;justify-content:center;align-items:center;transition:opacity .2s;display:flex;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.overlay.show{opacity:1}.panel{background:var(--panel);text-align:center;border:4px solid #fff;border-radius:28px;width:min(520px,100%);max-height:100%;margin:auto;padding:18px 28px 20px;overflow:auto;box-shadow:0 10px 40px #3c281e4d}.menu h2{margin:4px 0 8px;font-size:26px}.menu p{margin:6px 0;font-size:18px;line-height:1.6}.btn-col{flex-direction:column;align-items:stretch;gap:10px;margin-top:12px;display:flex}.big-btn{min-height:56px;color:var(--ink);white-space:nowrap;background:#fff;border:3px solid #e3d6ca;border-radius:999px;justify-content:center;align-items:center;gap:8px;padding:8px 26px;font-size:21px;font-weight:800;display:inline-flex;box-shadow:0 4px #4a3b3333}.big-btn.primary{background:var(--primary);border-color:var(--primary-dark);color:#fff;text-shadow:0 1px #78321459}.big-btn:active{transform:translateY(2px);box-shadow:0 2px #4a3b3333}.big-btn.bottom-center:active{transform:translate(-50%,2px)}.link-btn{min-height:44px;color:var(--ink-soft);background:0 0;border:none;padding:8px 14px;font-size:15px;font-weight:700;text-decoration:underline}.title-overlay{background:radial-gradient(70% 40% at 20% 105%,#9fd67f 60%,#0000 61%),radial-gradient(80% 45% at 85% 110%,#b6e39a 60%,#0000 61%),linear-gradient(#bfe6ff 0%,#e6f6ff 55%,#fff3e0 100%)}.panel.title-panel{box-shadow:none;background:0 0;border:none;width:min(940px,100%);padding:8px}.title-wrap{justify-content:center;align-items:center;gap:clamp(16px,4vw,48px);display:flex}.title-left{flex:1.2;min-width:0}.title-right{flex-direction:column;flex:1;align-items:stretch;gap:6px;max-width:340px;display:flex}.title-cats{justify-content:center;gap:6px;display:flex}.title-cat svg{width:clamp(56px,15vh,100px);height:clamp(56px,15vh,100px)}.title-cat{animation:2.4s ease-in-out infinite bob}.title-cat.c1{animation-delay:-.8s}.title-cat.c2{animation-delay:-1.6s}.logo{letter-spacing:.06em;-webkit-text-stroke:4px var(--ink);paint-order:stroke fill;text-shadow:0 6px #4a3b3338;margin:0;font-size:clamp(52px,15vh,104px);line-height:1.05}.logo span:first-child{color:#ffb35c}.logo span:last-child{color:#6fd0dc}.tagline{text-shadow:0 1px #fff;margin:6px 0 0;font-size:clamp(15px,3.2vh,20px);font-weight:800}.notice{background:#ffffffc7;border-radius:14px;margin:6px 0 0;padding:8px 12px;font-size:13px;line-height:1.5}@media (max-aspect-ratio:1){.title-wrap{flex-direction:column}}.tutorial .tut-steps{justify-content:center;gap:14px;display:flex}.tut-step{background:#fff3e6;border-radius:20px;flex:1;padding:12px 10px 8px}.tut-step p{margin:8px 0 0;font-size:17px}.tut-step b{color:var(--primary-dark)}.tut-pic{border-radius:50%;width:84px;height:84px;margin:0 auto;position:relative}.tut-joy{border:4px solid var(--accent);background:#3aa6b426}.tut-knob{border:4px solid var(--accent);background:#fff;border-radius:50%;width:34px;height:34px;animation:2.4s ease-in-out infinite knob;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tut-net{border:5px solid var(--ready);background:#fff;justify-content:center;align-items:center;animation:1.4s ease-in-out infinite soft-pulse;display:flex}.tut-net svg{width:52px;height:52px}.tut-pc{color:var(--ink-soft);font-size:13px!important}@media (pointer:coarse){.tut-pc{display:none}}.clear-faces{justify-content:center;gap:10px;margin:6px 0;display:flex}.clear-faces .face svg{width:64px;height:64px}.clear-faces .face{animation:1.6s ease-in-out infinite bob}.clear-faces .face:nth-child(2){animation-delay:-.5s}.clear-faces .face:nth-child(3){animation-delay:-1s}#rotate-notice{z-index:50;text-align:center;background:linear-gradient(#bfe6ff,#fff3e0);flex-direction:column;justify-content:center;align-items:center;gap:20px;padding:24px;display:none;position:fixed;top:0;bottom:0;left:0;right:0}#rotate-notice p{margin:0;font-size:24px;font-weight:800}.rotate-phone{border:6px solid var(--ink);background:#fff;border-radius:14px;width:64px;height:104px;animation:2.2s ease-in-out infinite turn}@media (orientation:portrait) and (pointer:coarse){#rotate-notice{display:flex}}#loading{background:linear-gradient(#bfe6ff,#fff3e0)}.loading-box{text-align:center;font-size:22px;font-weight:800}.loading-paw{background:var(--primary);border-radius:50%;width:48px;height:48px;margin:0 auto;animation:.9s ease-in-out infinite bob}.fps{left:calc(8px + var(--sl));bottom:calc(4px + var(--sb));z-index:60;color:#fff;pointer-events:none;background:#00000073;border-radius:6px;padding:2px 6px;font:12px/1.2 ui-monospace,monospace;position:fixed}@media (max-height:420px){.panel{padding:12px 20px 14px}.menu h2{margin:0 0 4px;font-size:22px}.menu p{font-size:16px}.big-btn{min-height:50px;font-size:19px}.btn-col{gap:8px;margin-top:8px}.tut-pic{width:64px;height:64px}.tut-step p{font-size:15px}.toast{top:calc(62px + var(--st));font-size:18px}}@keyframes pop{0%{transform:scale(.4)}70%{transform:scale(1.25)}to{transform:scale(1)}}@keyframes soft-pulse{0%,to{filter:brightness()}50%{filter:brightness(1.12)}}@keyframes bob{0%,to{transform:translateY(0)}50%{transform:translateY(-8px)}}@keyframes knob{0%,to{transform:translate(-50%,-50%)}25%{transform:translate(-10%,-50%)}50%{transform:translate(-50%,-90%)}75%{transform:translate(-90%,-50%)}}@keyframes turn{0%,30%{transform:rotate(0)}60%,to{transform:rotate(-90deg)}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
