:root{--ink:#3b3330;--ink-soft:#6d625c;--paper:#fffbf5e0;--accent:#d9824a;--accent-ink:#fff;--line:#3b33301f;--radius:14px;color:var(--ink);font-family:Pretendard,Apple SD Gothic Neo,Noto Sans KR,system-ui,sans-serif}*{box-sizing:border-box}html,body{background:#cfe2ee;height:100%;margin:0;overflow:hidden}#app{position:fixed;inset:0}#app canvas{touch-action:none;display:block}.hidden{display:none!important}button{font:inherit;color:var(--ink);border:1px solid var(--line);cursor:pointer;background:#ffffffd9;border-radius:999px;padding:10px 18px;transition:background .15s,transform .1s}button:hover{background:#fff}button:active{transform:scale(.97)}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--accent);color:var(--accent-ink);border-color:#0000}button.danger{color:#b5452f}kbd{font:inherit;opacity:.6;border:1px solid;border-radius:4px;margin-left:4px;padding:0 4px;font-size:.75em}.screen{pointer-events:none;display:flex;position:fixed;inset:0}.screen>*{pointer-events:auto}#screen-start{background:#8fb8de;justify-content:flex-start;align-items:flex-end;padding:0 0 8vh 7vw}.intro-backdrop{object-fit:cover;filter:blur(22px)brightness(.92);width:100%;height:100%;position:absolute;inset:0;transform:scale(1.12)}.intro-video{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}@media (aspect-ratio<=4/3){.intro-video{object-fit:contain}}.intro-backdrop,.intro-video,#screen-start:after{pointer-events:none}#screen-start:after{content:"";background:linear-gradient(#140e0a00,#140e0a80);transition:opacity .4s;position:absolute;inset:45% 0 0}#screen-start .title-card{z-index:1;animation:.4s ease-out intro-rise;position:relative}#screen-start.intro{pointer-events:auto;cursor:pointer}#screen-start.intro .title-card{display:none}#screen-start.intro:after{opacity:.5}#screen-start:not(.intro) .intro-tap{display:none}.intro-tap{left:0;right:0;bottom:max(8vh, calc(env(safe-area-inset-bottom) + 24px));z-index:1;text-align:center;color:#fff;text-shadow:0 2px 12px #00000073;margin:0;font-size:clamp(16px,2.2vw,22px);font-weight:600;animation:1.6s ease-in-out infinite intro-blink;position:absolute}@keyframes intro-blink{0%,to{opacity:1}50%{opacity:.35}}@keyframes intro-rise{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.intro-tap,#screen-start .title-card{animation:none}}#screen-start .title-card h1{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}#screen-start .title-card .tagline{display:none}.title-card h1{letter-spacing:-.02em;color:#fff;text-shadow:0 2px 18px #00000040;margin:0;font-size:clamp(44px,8vw,84px)}.title-card .tagline{color:#fff;text-shadow:0 1px 10px #0000004d;margin:4px 0 12px;font-size:18px}.title-card .sub{color:#fff;text-shadow:0 1px 10px #00000059;margin:0 0 22px;line-height:1.6}.menu{flex-wrap:wrap;gap:10px;display:flex}.panel{background:var(--paper);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:var(--radius);padding:20px 22px;box-shadow:0 10px 40px #281e1426}.panel h2{margin:0 0 14px;font-size:18px}#screen-create{justify-content:flex-start;align-items:center;padding:0 0 0 4vw}.create-panel{overscroll-behavior:contain;width:min(340px,92vw);max-height:calc(100vh - 32px);overflow-y:auto}.field{margin-bottom:14px}.label{color:var(--ink-soft);margin-bottom:6px;font-size:13px;display:block}.chips{flex-wrap:wrap;gap:6px;display:flex}.chips button{padding:6px 12px;font-size:14px}.chips button.on{background:var(--ink);color:#fff}.swatches{flex-wrap:wrap;gap:8px;display:flex}.swatches button{border:2px solid #0000001a;width:30px;height:30px;padding:0}.swatches button.on{outline:3px solid var(--ink);outline-offset:2px}.row{justify-content:space-between;gap:10px;margin-top:16px;display:flex}.size-row{align-items:center;gap:10px;margin-top:10px;display:flex}.size-row input[type=range]{accent-color:var(--accent);flex:1}.end-label{color:var(--ink-soft);font-size:12px}#opt-build-label,#opt-size-label{text-align:right;min-width:42px;color:var(--ink-soft);font-variant-numeric:tabular-nums;font-size:13px}#hud{pointer-events:none;position:fixed;inset:0}#hud button{pointer-events:auto}.hud-top{justify-content:space-between;align-items:center;display:flex;position:absolute;top:16px;left:16px;right:16px}.hunger{background:var(--paper);border-radius:999px;align-items:center;gap:8px;padding:6px 14px 6px 10px;font-size:13px;display:flex}.hunger .bar{background:#0000001a;border-radius:3px;width:90px;height:6px;overflow:hidden}#hunger-fill{background:var(--accent);height:100%;transition:width .4s}.icon-btn{width:40px;height:40px;padding:0;font-size:18px}.hud-bottom{flex-wrap:wrap;justify-content:center;gap:8px;padding:0 16px;display:flex;position:absolute;bottom:40px;left:0;right:0}.pill{padding:8px 14px;font-size:14px}.pill.active{background:var(--ink);color:#fff}.hint{text-align:center;color:#ffffffe6;text-shadow:0 1px 4px #0006;margin:0;font-size:12px;position:absolute;bottom:10px;left:0;right:0}.modal{z-index:10;background:#1e181440;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal .panel{width:min(320px,92vw)}.check{cursor:pointer;align-items:center;gap:10px;padding:8px 0;display:flex}.check input{width:18px;height:18px;accent-color:var(--accent)}.select{justify-content:space-between;align-items:center;gap:10px;padding:8px 0;display:flex}.select select{font:inherit;border-radius:6px;padding:4px 6px}.credits{border-top:1px solid var(--line);color:var(--ink-soft);margin:16px 0 0;padding-top:12px;font-size:11px;line-height:1.6}.credits a{color:inherit}#fade{opacity:0;pointer-events:none;z-index:5;background:#111;transition:opacity .18s;position:fixed;inset:0}#fade.on{opacity:1}#error{text-align:center;z-index:20;background:#f4efe6;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}@media (width<=640px){#screen-create{justify-content:center;align-items:flex-end;padding:0 0 12px}.hud-bottom{bottom:34px}}#hud a{pointer-events:auto}.hud-actions{gap:8px;display:flex}.icon-link{border:1px solid var(--line);width:40px;height:40px;color:var(--ink);background:#ffffffd9;border-radius:999px;justify-content:center;align-items:center;font:italic 600 18px Georgia,Times New Roman,serif;text-decoration:none;display:inline-flex}.icon-link:hover{background:#fff}.icon-link.corner{z-index:2;position:absolute;top:16px;right:16px}.info-more{color:var(--ink);margin-top:6px;font-weight:600;display:inline-block}.joystick{left:max(20px, env(safe-area-inset-left));pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;background:#fffbf559;border:2px solid #ffffffb3;border-radius:50%;justify-content:center;align-items:center;width:128px;height:128px;display:flex;position:absolute;bottom:112px}.jump-btn{right:max(24px, env(safe-area-inset-right));color:#3a2f25;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;background:#fffbf573;border:2px solid #fffc;border-radius:50%;width:84px;height:84px;font:600 16px/1 inherit;position:absolute;bottom:132px}.jump-btn:active{background:#fffbf5bf}.joystick.active{background:#fffbf580}.joystick-knob{pointer-events:none;background:#ffffffeb;border-radius:50%;width:56px;height:56px;box-shadow:0 2px 8px #0003}.pose-menu{z-index:20;pointer-events:auto;position:fixed;inset:0}.pose-halo{pointer-events:none;background:radial-gradient(circle,#00000052 0%,#00000038 45%,#0000 70%);border-radius:50%;width:460px;height:460px;position:absolute;top:-230px;left:-230px}.pose-item{cursor:pointer;width:78px;height:78px;color:var(--ink);background:#fffbf5d1;border:none;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;gap:1px;padding:6px 4px 2px;transition:background .12s;display:flex;position:absolute;top:0;left:0;box-shadow:0 4px 14px #00000047}.pose-item:hover,.pose-item:focus-visible{outline:2px solid var(--accent);background:#fff}.pose-item img{object-fit:contain;pointer-events:none;width:54px;height:46px}.pose-item span{white-space:nowrap;font-size:11px;line-height:1.1}@media (width<=480px){.pose-item{width:64px;height:64px}.pose-item img{width:44px;height:36px}.pose-item span{font-size:10px}}.map-menu{z-index:20;pointer-events:auto;background:#1e181440;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.map-panel{width:min(340px,100%);max-height:80vh;overflow-y:auto}.map-list{flex-direction:column;gap:8px;display:flex}.map-item{text-align:left;border-radius:10px;flex-direction:column;align-items:flex-start;gap:3px;width:100%;padding:10px 14px;display:flex}.map-item:disabled{cursor:default;opacity:1;outline:2px solid var(--accent);background:#d9824a1f}.map-item b{font-size:15px}.map-here{color:var(--accent-ink);background:var(--accent);vertical-align:1px;border-radius:999px;padding:1px 7px;font-size:11px;font-weight:600}.map-blurb{color:var(--ink-soft);font-size:12px}.text-input{font:inherit;border:1px solid var(--line);color:var(--ink);background:#fff;border-radius:8px;min-width:0;padding:6px 10px}.field .text-input{box-sizing:border-box;width:100%}.hud-left{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.net-badge{background:var(--paper);border-radius:999px;padding:6px 12px;font-size:13px}.chat{flex-direction:column;gap:6px;width:min(320px,100vw - 32px);display:flex;position:absolute;top:64px;left:16px}.chat-log{color:#fff;text-shadow:0 1px 3px #0009;overflow-wrap:anywhere;flex-direction:column;justify-content:flex-end;gap:2px;max-height:30vh;margin:0;padding:0;font-size:13px;list-style:none;display:flex;overflow:hidden}.chat-log b{margin-right:6px}.chat-log .mine b{color:#ffd9b8}.chat-form,.chat-form input{pointer-events:auto}.chat-form input{box-sizing:border-box;width:100%;font:inherit;background:var(--paper);color:var(--ink);border:none;border-radius:10px;padding:8px 10px;font-size:14px}.net-overlay{pointer-events:none;position:fixed;inset:0;overflow:hidden}.net-label{white-space:nowrap;flex-direction:column;align-items:center;gap:4px;display:flex;position:absolute;top:0;left:0}.net-name{color:#fff;background:#3b33308c;border-radius:999px;padding:2px 8px;font-size:12px}.net-bubble{white-space:normal;overflow-wrap:anywhere;max-width:200px;color:var(--ink);background:#fff;border-radius:12px;padding:5px 10px;font-size:13px;box-shadow:0 2px 6px #0000002e}body.compact .hint,body.compact .pill kbd,body.compact .lbl-long,.lbl-short{display:none}body.compact .lbl-short{display:inline}body.compact .hud-top{top:max(10px, env(safe-area-inset-top));left:max(10px, env(safe-area-inset-left));right:max(10px, env(safe-area-inset-right));align-items:flex-start}body.compact .hud-left{gap:6px}body.compact .hunger{gap:6px;padding:5px 10px 5px 8px;font-size:12px}body.compact .hunger .bar{width:52px}body.compact .net-badge{padding:5px 10px;font-size:12px}body.compact .hud-actions{gap:6px}body.compact .icon-btn,body.compact .icon-link{width:34px;height:34px;font-size:16px}body.compact .hud-bottom{bottom:max(12px, env(safe-area-inset-bottom));flex-wrap:nowrap;gap:6px;padding:0 10px}body.compact .pill{white-space:nowrap;padding:7px 11px;font-size:13px}body.compact .chat{top:calc(max(10px, env(safe-area-inset-top)) + 44px);left:max(10px, env(safe-area-inset-left));width:min(260px,100vw - 20px)}body.compact .chat-log{max-height:22vh;font-size:12px}body.compact .joystick{width:116px;height:116px;left:max(16px, env(safe-area-inset-left));bottom:calc(max(12px, env(safe-area-inset-bottom)) + 60px)}body.compact .jump-btn{width:76px;height:76px;right:max(20px, env(safe-area-inset-right));bottom:calc(max(12px, env(safe-area-inset-bottom)) + 80px);font-size:15px}:is(#hud:has(.pose-menu:not(.hidden)) .joystick,#hud:has(.pose-menu:not(.hidden)) .jump-btn,#hud:has(.map-menu:not(.hidden)) .joystick,#hud:has(.map-menu:not(.hidden)) .jump-btn){visibility:hidden}
