:root{color:#403934;background:#d9d6ce;font-family:system-ui,sans-serif;color-scheme:light}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;height:100dvh;overflow:hidden;overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
body{background:radial-gradient(ellipse at 52% 38%,#eeece5,#cfcbc5);touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body.falling nav,body.falling #joystick{display:none}
#queue{position:fixed;inset:0;display:grid;place-items:center;pointer-events:none}
#queue b{display:grid;place-items:center;min-width:72px;height:72px;padding:0 18px;border-radius:999px;background:#fbf6e6e0;border:1px solid #71634d2e;color:#6b6152;font-size:26px;font-weight:600;letter-spacing:.02em;box-shadow:0 10px 30px #554b3726;animation:queuePulse 2.4s ease-in-out infinite}
@keyframes queuePulse{0%,100%{transform:scale(1);opacity:.92}50%{transform:scale(1.04);opacity:1}}
#fade{position:fixed;inset:0;background:#141210;opacity:0;pointer-events:none;display:grid;place-items:center}
#fade.done{pointer-events:auto}
#fall-actions{display:flex;gap:10px}
#webgl-fallback button{width:auto;height:auto;padding:10px 18px;border-radius:12px;font-size:14px;font-weight:600}
#fall-retry,#webgl-reload{background:#e8d599}
#fall-fresh{background:#faf5e8}
[hidden]{display:none!important}.defs{position:absolute;width:0;height:0}
#world{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
button,input{font:inherit;color:inherit}
button{display:grid;place-items:center;flex:none;width:37px;height:37px;border:1px solid #71634d45;border-radius:10px;background:#faf5e8;cursor:pointer;touch-action:manipulation}
button[aria-pressed=true],button:active{background:#e9dac0}
button:focus-visible,input:focus-visible{outline:2px solid #89714b;outline-offset:2px}
button:disabled{opacity:.54}
svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
button svg{pointer-events:none}
#issue{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;gap:8px;padding:8px;border-radius:16px;background:#fcf8eb;box-shadow:0 8px 36px #554b3732}
#nickname{width:min(210px,55vw);min-width:0;border:1px solid #71634d45;border-radius:11px;padding:0 12px;background:#fffdf5;font-size:16px;-webkit-user-select:text;user-select:text}
#issue-error{position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);color:#b05256;font-size:13px;white-space:nowrap;animation:nudge .32s ease}
#issue-check,#finish{background:#e8d599}
#walk-tools button{position:absolute;box-shadow:0 3px 12px #35322922}
#copy{right:calc(max(13px,env(safe-area-inset-right)) + 43px);top:max(13px,env(safe-area-inset-top))}
#fresh{right:max(13px,env(safe-area-inset-right));top:max(13px,env(safe-area-inset-top))}
#brush-tool{left:50%;transform:translateX(-50%);bottom:max(18px,env(safe-area-inset-bottom));background:#e8d599}
#draw-tools{position:absolute;left:50%;transform:translateX(-50%);bottom:max(14px,env(safe-area-inset-bottom));display:flex;gap:2px;padding:4px;background:#fcf8eb;border-radius:13px;box-shadow:0 4px 24px #554b372e}
#draw-tools button{width:clamp(29px,9.2vw,39px);height:clamp(29px,9.2vw,39px);border-color:transparent}
#draw-tools button[aria-pressed=true]{border-color:#887c64}
#joystick{position:absolute;width:78px;height:78px;border:1px solid #685d4970;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;display:grid;place-items:center;background:#f6edce55}
#joystick i{width:30px;height:30px;border:1px solid #6f604d60;background:#dccbb1;border-radius:50%}
#notice{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);color:#a4494d}
#notice svg{width:48px;height:48px}
#toast{position:fixed;left:50%;top:max(16px,env(safe-area-inset-top));transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:#fcf8ebf2;border:1px solid #71634d38;box-shadow:0 6px 24px #554b3726;font-size:13px;z-index:20}
#toast button{width:auto;height:auto;padding:4px 10px;border-radius:999px;background:#e8d599;font-size:12px;font-weight:600}
#webgl-fallback{position:fixed;inset:0;display:grid;place-content:center;justify-items:center;gap:10px;padding:24px;text-align:center;background:#eeece5e8;z-index:30}
#webgl-fallback p{margin:0;font-size:15px}
#webgl-hint{font-size:13px!important;color:#6b6152}
.feedback{outline:2px solid #b05256!important;animation:nudge .32s ease}
@keyframes nudge{30%{translate:-4px}70%{translate:4px}}
html[data-gate-taps]:not([data-world-interactive]) #world,html[data-kakao-webview]:not([data-world-interactive]) #world{pointer-events:none}
