@font-face{font-family:LocalSerif;src:local(Noto Serif CJK KR),local(Batang)}*{box-sizing:border-box}html,body{color:#304a40;background:#e8e9df;width:100%;height:100%;margin:0;font-family:system-ui,-apple-system,Apple SD Gothic Neo,sans-serif;overflow:hidden}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:#355044;background:#fffdf4;border:1px solid #d7dccc;border-radius:12px;min-height:44px;padding:12px 17px;transition:background .15s,color .15s}button:hover{background:#e9eddf}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:3px;outline:3px solid #be9b4b}button:disabled{opacity:.5;cursor:wait}a{color:inherit}button.primary{color:#fffdf1;background:#355e4f;border-color:#355e4f}button.primary:hover{background:#254b3d}.full{width:100%}[hidden]{display:none!important}#world{width:100%;height:100dvh;position:fixed;inset:0}#world canvas{touch-action:none;outline:none;display:block}.topbar{z-index:5;left:max(20px, env(safe-area-inset-left));right:max(20px, env(safe-area-inset-right));top:max(16px, env(safe-area-inset-top));-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);background:#fffdf2e8;border:1px solid #f9faec;border-radius:18px;justify-content:space-between;align-items:center;padding:12px 18px;display:flex;position:fixed;box-shadow:0 4px 30px #3349320c}.brand{letter-spacing:-.6px;align-items:center;gap:11px;font-size:20px;font-weight:650;text-decoration:none;display:flex}.brand-mark{color:#ae8f50;font-size:34px;line-height:1}.brand small{letter-spacing:2px;margin-top:3px;font-size:8px;font-weight:500;display:block}.top-actions{align-items:center;gap:12px;display:flex}.top-actions button{background:0 0;border:none;padding:7px 12px}#connection{color:#647465;font-size:12px}#menu-open{font-size:21px}.scene-label{text-align:center;pointer-events:none;z-index:2;width:min(90%,600px);position:fixed;top:112px;left:50%;transform:translate(-50%)}.scene-label span,.eyebrow{letter-spacing:3px;color:#7e8f79;font-size:9px}.scene-label h1{letter-spacing:-1px;color:#345046;text-shadow:0 1px 14px #fff;margin:9px 0;font-family:LocalSerif,Iowan Old Style,serif;font-size:30px;font-weight:500}.scene-label p{color:#6e7d6d;text-shadow:0 1px 8px #fff;margin:0;font-size:12px}.world-actions{z-index:4;flex-direction:column;gap:9px;display:flex;position:fixed;bottom:132px;right:24px}.world-actions button{background:#fffdf3ed;box-shadow:0 5px 20px #374c3010}.world-actions button.primary{background:#355e4ff2}.dock{z-index:5;bottom:calc(34px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffdf1eb;border:1px solid #ffffffa0;border-radius:20px;gap:6px;padding:8px;display:flex;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 5px 30px #314b3118}.dock button{background:0 0;border:0;border-radius:14px;flex-direction:column;align-items:center;gap:5px;min-width:90px;padding:9px 12px;font-size:11px;display:flex}.dock button span{color:#7d927b;font-size:24px;line-height:28px}.movement{z-index:4;grid-template-columns:42px 42px 42px;gap:3px;display:grid;position:fixed;bottom:78px;left:32px}.movement button{color:#6e8568;touch-action:none;-webkit-user-select:none;user-select:none;background:#fffdf2bc;border:1px solid #ffffff80;min-height:42px;padding:3px}.movement button[data-move=up]{grid-column:2}.movement button[data-move=left]{grid-area:2/1}.movement button[data-move=down]{grid-area:2/2}.movement button[data-move=right]{grid-area:2/3}.quiet-footer{z-index:4;text-align:center;color:#7b8773;font-size:9px;position:fixed;bottom:7px;left:0;right:0}.quiet-footer button{background:0 0;border:none;min-height:18px;padding:2px 8px;font-size:9px;text-decoration:underline}.selection{position:fixed;top:230px;left:50%;transform:translate(-50%)}#petting-hint{text-align:center;color:#6d7b66;pointer-events:none;font-size:12px;position:fixed;bottom:150px;left:0;right:0}#toast{z-index:30;bottom:calc(150px + env(safe-area-inset-bottom));color:#fff7df;text-align:center;background:#2f5148f2;border:1px solid #ffffff30;border-radius:14px;max-width:90vw;padding:13px 22px;font-size:13px;position:fixed;left:50%;transform:translate(-50%)}#loading{z-index:3;background:#edeee5;flex-direction:column;justify-content:center;align-items:center;font-family:LocalSerif,serif;font-size:24px;display:flex;position:absolute;inset:0}#loading span{letter-spacing:1px;color:#87937d;margin-top:14px;font-family:system-ui;font-size:13px}dialog{color:#344b40;background:#fffdf5;border:1px solid #e6e4d6;border-radius:22px;width:min(600px,100vw - 32px);max-height:calc(100dvh - 48px);padding:0;overflow:auto;box-shadow:0 30px 100px #15251b35}dialog::backdrop{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#2a3c324c}dialog>header{z-index:3;background:#fffdf5;border-bottom:1px solid #e8eadf;justify-content:space-between;align-items:center;gap:10px;padding:25px 28px 16px;display:flex;position:sticky;top:0}dialog h2{letter-spacing:-.5px;margin:7px 0 0;font-family:LocalSerif,serif;font-size:24px;font-weight:500}button.close{background:0 0;border-color:#e0e4d7;border-radius:50%;width:42px;min-width:42px;min-height:42px;padding:0;font-size:25px}#panel-body{padding:24px 28px 30px}.lead{color:#7b846f;margin:0 0 24px;font-size:15px;line-height:1.9}.eyebrow{letter-spacing:2px}.fields{grid-template-columns:1fr 1fr;gap:15px;display:grid}label{flex-direction:column;gap:8px;margin-bottom:18px;font-size:13px;display:flex}label small{color:#7e8876;font-size:10px;font-weight:400}input,textarea,select{color:#344b40;background:#f6f5ed;border:1px solid #dfe4d5;border-radius:10px;width:100%;max-width:100%;min-height:46px;padding:12px;font-size:16px}textarea{resize:vertical;line-height:1.8}input[type=color]{height:48px;padding:5px}input[type=checkbox]{accent-color:#3d6855;flex:none;width:18px;height:18px;min-height:18px}.consent{flex-direction:row;align-items:flex-start;font-size:12px;line-height:1.7}.photo-upload{cursor:pointer;background:#f2f1e7;border:1px dashed #c9d4bc;border-radius:15px;justify-content:center;align-items:center;width:100%;min-height:140px}.photo-upload input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}#photo-preview{text-align:center;justify-content:center;align-items:center;gap:16px;padding:15px;display:flex}#photo-preview img{border-radius:12px;max-width:100%;max-height:170px}#photo-preview b{font-size:28px;font-weight:400}.notice{color:#7d7c66;background:#f0eee1;border-radius:12px;padding:14px 16px;font-size:12px;line-height:1.8}.fine{color:#8a8b79;font-size:11px;line-height:1.8}#form-status,#delete-status,#recovery-status{color:#a16440;font-size:13px;line-height:1.6}.search input{background:#f1f2e7}.memorial-list{flex-direction:column;gap:10px;margin-bottom:16px;display:flex}.memorial-row{text-align:left;background:#f8f7ee;border-color:#e4e6d8;align-items:center;gap:16px;padding:12px;display:flex}.memorial-row img{object-fit:cover;border-radius:10px}.memorial-row>span:nth-child(2){flex:1}.memorial-row strong{font-size:17px;font-weight:500;display:block}.memorial-row small{color:#8b927f;margin-top:5px;font-size:11px;display:block}.pet-icon{background:#e5ead9;border-radius:12px;place-items:center;width:56px;height:56px;font-size:27px;display:grid}.empty{text-align:center;color:#929b85;padding:38px 16px}.empty>span{color:#b7a56d;font-size:36px}.empty h3{font-family:LocalSerif,serif;font-size:20px;font-weight:500}.empty p{font-size:13px;line-height:1.9}.memory-photo{background:#eae8db;border-radius:15px;justify-content:center;align-items:center;height:240px;display:flex;overflow:hidden}.memory-photo img{object-fit:contain;width:100%;min-width:0;height:100%;min-height:0}.memory-photo>span{color:#a0ae90;font-size:70px}.memory-meta{text-align:center;margin:24px 0}.memory-meta>span{letter-spacing:3px;color:#a29a79;font-size:10px}.memory-meta p{color:#8b8d79;font-size:12px}.letter{white-space:pre-wrap;overflow-wrap:anywhere;margin:26px 0;padding:0 8px;font-family:LocalSerif,serif;font-size:16px;line-height:2.1}.tributes{gap:10px;display:flex}.tributes button{background:#f1f1e4;flex:1}.tributes strong{color:#a09770;margin-left:10px;font-size:12px;font-weight:400}.actions{flex-wrap:wrap;gap:8px;margin:20px 0 0;display:flex}.actions button{white-space:nowrap;flex:1;font-size:12px}.owner-actions{border-top:1px solid #e3e6d9;gap:10px;margin-top:24px;padding-top:18px;display:flex}.owner-actions button{flex:1;font-size:12px}.danger{color:#a76650;border-color:#dac9b9}.menu-grid{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:24px;display:grid}.menu-grid button{text-align:left;min-height:64px;font-size:13px}.recovery,.instructions{border-top:1px solid #e4e7d9;padding:16px 0}.recovery h3,.instructions h3,.prose h3{font-size:15px;font-weight:600}.recovery p,.instructions p,.prose p{color:#7d8574;font-size:13px;line-height:1.9}.file-button{cursor:pointer;text-align:center;background:#f0f1e5;border-radius:12px;margin:0;padding:14px}.file-button input{font-size:12px}.prose h3,.delete-label{margin-top:24px}.topbar #sound{font-size:11px}@media (max-width:700px){.topbar{left:10px;right:10px;top:max(10px, env(safe-area-inset-top));border-radius:15px;padding:10px 12px}.brand{gap:8px;font-size:17px}.brand small{letter-spacing:1.6px;font-size:6px}.brand-mark{font-size:28px}.top-actions{gap:0}#connection{max-width:85px;font-size:10px}.top-actions button{padding:7px}.scene-label{top:100px}.scene-label h1{font-size:25px}.scene-label p{font-size:11px}.world-actions{right:12px;bottom:calc(148px + env(safe-area-inset-bottom));gap:8px}.world-actions button{min-height:39px;padding:9px 13px;font-size:11px}.dock{bottom:calc(28px + env(safe-area-inset-bottom));border-radius:18px;gap:2px;padding:6px}.dock button{gap:2px;min-width:76px;padding:8px 9px;font-size:10px}.dock button span{font-size:22px}.movement{left:12px;bottom:calc(130px + env(safe-area-inset-bottom));grid-template-columns:36px 36px 36px}.movement button{border-radius:10px;min-height:36px}.quiet-footer{font-size:7px;bottom:3px}.quiet-footer button{font-size:8px}.fields{gap:10px}dialog>header{padding:20px 20px 14px}#panel-body{padding:20px}dialog h2{font-size:21px}.menu-grid{gap:8px}.menu-grid button{font-size:12px}.memory-photo{height:210px}}@media (max-height:560px){.scene-label{top:85px}.scene-label h1{font-size:20px}.scene-label p{display:none}.movement{bottom:100px}.world-actions{bottom:103px}.dock{bottom:25px}.dock button{min-height:52px;padding:4px 10px}.dock button span{font-size:17px;line-height:21px}.quiet-footer{display:none}#petting-hint{bottom:110px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}body:before{content:"";z-index:1;pointer-events:none;background:linear-gradient(#f8f5ec55,#0000 22% 77%,#30423512);position:fixed;inset:0}.topbar{background:#fffdf3d9;border-color:#fff9eac7;border-radius:12px;padding:10px 17px;top:20px;left:24px;right:24px;box-shadow:0 4px 28px #3b342b0a}.brand{gap:10px;font-family:LocalSerif,Iowan Old Style,serif;font-size:21px;font-weight:550}.brand-mark{color:#ad8e53;font-size:30px}.brand small{letter-spacing:2.8px;margin-top:4px;font-family:system-ui;font-size:7px}.top-actions{gap:6px}.top-actions button{border:1px solid #b6b5a335;border-radius:50%;width:36px;min-height:36px;padding:0;font-size:15px}.top-actions #sound{border-radius:20px;width:auto;padding:0 12px;font-size:10px}#connection{padding-right:12px;font-size:11px}#connection:before{content:"";background:#839c79;border-radius:50%;width:5px;height:5px;margin-right:7px;display:inline-block}.scene-label{text-align:left;background:linear-gradient(90deg,#f5f0e5aa,#0000);border-left:1px solid #a58f5b80;width:285px;padding:2px 0 4px 18px;top:119px;left:36px;transform:none}.scene-label h1{color:#3c5144;text-shadow:0 1px 15px #fff8e8;letter-spacing:-1.2px;margin:12px 0 11px;font-size:29px;line-height:1.45}.scene-label p{color:#66725f;text-shadow:0 1px 5px #fffdf2;word-break:keep-all;max-width:245px;font-size:11px;line-height:1.9}.scene-label>span:first-child{letter-spacing:2.3px;color:#7f775a;font-size:8px}.scene-label .place-count{letter-spacing:0;color:#8d876f;margin-top:15px;font-size:9px;display:block}.world-actions{gap:8px;bottom:126px;right:28px}.world-actions button{border-radius:9px;padding:13px 20px;font-size:12px;box-shadow:0 5px 22px #3444310d}.world-actions #list-open{background:#fffdf1e3;border-color:#e4ddcb}.dock{background:#fffdf2eb;border-color:#fff8e0;border-radius:15px;gap:4px;padding:7px;bottom:30px;box-shadow:0 8px 40px #28382b20}.dock button{color:#747c68;border-radius:10px;gap:7px;min-width:86px;padding:10px 13px;font-size:10px}.dock button span{width:24px;height:24px;line-height:24px}.dock svg{width:23px;height:23px;display:block}.dock button[aria-pressed=true]{color:#fffae8;background:#465f4e}.dock button[aria-pressed=true] span{color:#e7d8ad}.movement{grid-template-columns:36px 36px 36px;gap:4px;bottom:55px;left:35px}.movement button{background:#fffbebaa;border-color:#fff7e5;border-radius:50%;min-height:36px;font-size:14px}.view-tools{z-index:4;gap:7px;display:flex;position:fixed;top:107px;right:28px}.view-tools button{background:#fffcf0dc;border:1px solid #dcd8c7;border-radius:8px;min-height:37px;padding:8px 12px;font-size:10px}.view-tools span{color:#9b8b68;margin-left:10px}#view-reset{width:37px;padding:0;font-size:22px}.world-guide{z-index:2;color:#7d806a;pointer-events:none;font-size:9px;position:fixed;bottom:137px;left:35px}.world-guide span{letter-spacing:1px;border:1px solid #9b9b7f55;border-radius:4px;margin-right:5px;padding:4px 5px;font-size:8px}.world-guide i{margin:0 6px;font-style:normal}.quiet-footer{color:#858777;font-size:8px}.quiet-footer button{color:#6f7863;font-size:8px}body[data-scene=petting] .view-tools{top:108px}#petting-hint{color:#6d775f;font-size:10px;bottom:132px}.shelf-map{grid-template-columns:1fr 1fr;gap:16px;margin-top:25px;display:grid}.shelf-map h3{color:#7f8067;margin:0 0 9px;font-size:11px;font-weight:500}.shelf-map h3 span{color:#ad9362;margin-right:6px}.shelf-map section>div{background:#e7dfcd;border:1px solid #d8ccb4;border-radius:5px;grid-template-columns:repeat(4,1fr);gap:4px;padding:6px;display:grid}.shelf-map button{color:#a5987c;text-overflow:ellipsis;white-space:nowrap;background:#f6f0e1;border-color:#d5c9ad;border-radius:3px;min-width:0;min-height:38px;padding:5px 2px;font-size:9px;overflow:hidden}.shelf-map button.occupied{color:#fff9e9;background:#697d63;border-color:#5f7559}.guide-steps section{border-bottom:1px solid #e7e5d7;gap:16px;padding:18px 0;display:flex}.guide-steps section>span{color:#b19b73;font-family:serif;font-size:24px}.guide-steps h3{margin:0 0 8px;font-family:LocalSerif,serif;font-size:19px;font-weight:500}.guide-steps p{color:#7b806d;margin:0;font-size:12px;line-height:1.9}@media (max-width:700px){.topbar{left:12px;right:12px;top:max(12px, env(safe-area-inset-top));padding:9px 12px}.brand{gap:7px;font-size:18px}.brand-mark{font-size:26px}.brand small{letter-spacing:2px;font-size:6px}.top-actions{gap:4px}.top-actions button{width:31px;min-height:31px}.top-actions #sound{padding:0 8px;font-size:9px}#connection{padding-right:3px;font-size:9px}#connection:before{display:none}.scene-label{width:220px;padding-left:12px;top:96px;left:22px}.scene-label h1{margin:8px 0;font-size:24px}.scene-label p{max-width:200px;font-size:10px}.scene-label>span:first-child{letter-spacing:1.4px;font-size:7px}.scene-label .place-count{margin-top:10px;font-size:8px}.view-tools{gap:5px;top:207px;right:17px}.view-tools button{min-height:33px;padding:6px 9px;font-size:9px}#view-reset{width:33px}.world-actions{bottom:143px;right:17px}.world-actions button{padding:11px 13px;font-size:10px}.movement{grid-template-columns:32px 32px 32px;bottom:143px;left:18px}.movement button{min-height:32px}.dock{justify-content:space-around;gap:2px;width:calc(100% - 40px);padding:6px;bottom:31px}.dock button{flex:1;gap:5px;min-width:0;padding:9px 4px;font-size:9px}.dock svg{width:21px;height:21px}.world-guide{text-align:center;font-size:8px;bottom:116px;left:0;right:0}.world-guide span{display:none}.quiet-footer{font-size:7px;bottom:6px}.quiet-footer button{font-size:7px}.shelf-map{gap:10px}.shelf-map button{min-height:34px}#petting-hint{font-size:9px;bottom:123px}body[data-scene=petting] .view-tools{top:206px}}@media (max-height:540px){.topbar{padding-top:6px;padding-bottom:6px;top:10px}.scene-label{top:83px;left:24px}.scene-label h1{margin:6px 0;font-size:21px}.scene-label p,.place-count,.world-guide{display:none!important}.view-tools{top:82px;right:22px}.world-actions{bottom:99px}.world-actions button{padding:8px 12px}.movement{bottom:42px}.dock{width:auto;bottom:24px}.dock button{min-width:75px;padding:7px 13px}.dock svg{width:20px;height:20px}#petting-hint{bottom:111px}body[data-scene=petting] .view-tools{top:82px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}.scene-label{width:335px}.scene-label h1{word-break:keep-all;max-width:315px}.scene-label p{max-width:275px}body[data-scene=petting] .scene-label{background:linear-gradient(90deg,#f7f1e5bd,#0000)}@media (max-width:700px){.scene-label{width:245px}.scene-label h1{max-width:220px}.scene-label p{max-width:210px}}#world-fallback{z-index:3;text-align:center;background:#fffcf0ed;border:1px solid #e3dbc7;border-radius:18px;width:min(440px,100vw - 40px);padding:32px 25px;position:fixed;top:48%;left:50%;transform:translate(-50%,-50%);box-shadow:0 20px 70px #4b4a3212}#world-fallback>span{color:#b39a64;font-size:34px}#world-fallback h2{font:500 24px/1.5 LocalSerif,serif}#world-fallback p{color:#7c826f;font-size:12px;line-height:1.9}#world-fallback>div{justify-content:center;gap:8px;margin-top:22px;display:flex}#world-fallback button{font-size:11px}.world-unavailable .movement,.world-unavailable .world-guide,.world-unavailable .view-tools{display:none}@media (max-width:700px){.top-actions button{width:44px;min-height:44px}.top-actions #sound{width:44px;padding:0;font-size:9px}.topbar{padding:7px 12px}#connection{background:#fffdf0cc;border:1px solid #e8e0cc;border-radius:6px;padding:4px 7px;font-size:9px;position:absolute;bottom:-25px;right:4px}.movement{grid-template-columns:40px 40px 40px}.movement button,.world-actions button,.view-tools button{min-height:44px}#view-reset{width:44px}}#entry-paused{z-index:8;text-align:center;background:#fffdf3f5;border:1px solid #e0d6bf;border-radius:18px;width:min(430px,100% - 36px);padding:27px;position:fixed;top:46%;left:50%;transform:translate(-50%,-50%);box-shadow:0 20px 70px #26382b26}#entry-paused h2{font:500 24px LocalSerif,serif}#entry-paused p{color:#75806b;font-size:12px;line-height:1.9}#entry-paused button{margin-top:12px}#pet-actions{z-index:4;flex-direction:column;gap:7px;display:flex;position:fixed;bottom:139px;right:27px}#pet-actions button{background:#fff9e8df;border-radius:9px;min-height:44px;font-size:11px}.activity-grid{grid-template-columns:1fr 1fr;gap:12px;margin:23px 0;display:grid}.activity-grid button{text-align:left;background:#f7f4e8;border-color:#e4dcc7;flex-direction:column;align-items:flex-start;gap:8px;padding:19px;display:flex}.activity-grid button>span{color:#a28c59;font-size:25px}.activity-grid strong{font-size:14px;font-weight:550}.activity-grid small{color:#889078;font-size:10px;line-height:1.7}.type-picker{border:0;margin:22px 0;padding:0}.type-picker legend{margin-bottom:12px;font-size:12px}.type-picker>div{grid-template-columns:repeat(3,1fr);gap:7px;display:grid}.type-picker label{position:relative}.type-picker input{opacity:0;width:1px;height:1px;position:absolute}.type-picker span{background:#f4f0e2;border:1px solid #dcd4bd;border-radius:8px;justify-content:center;align-items:center;min-height:47px;padding:10px;font-size:11px;display:flex}.type-picker input:checked+span{color:#36533e;background:#e3e9d9;border-color:#6b8265;box-shadow:inset 0 0 0 1px #6b8265}.type-picker input:focus-visible+span{outline-offset:2px;outline:3px solid #be9b4b}.memory-type{color:#8c8b70;text-align:center;letter-spacing:1px;font-size:11px}.journal-list{border-top:1px solid #e4decb;margin-top:24px;padding-top:24px}.journal-list h3{font:500 21px LocalSerif,serif}.journal-list article{border-bottom:1px solid #ece6d7;padding:16px 0}.journal-list time{color:#a2916c;letter-spacing:1px;font-size:10px}.journal-list article p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9}.avatar-preview{background:radial-gradient(#e3e8d7,#f5f0e4 68%);border-radius:14px;height:160px;margin:20px 0;position:relative}.avatar-head{background:var(--skin);border-top:13px solid var(--hair);border-radius:45%;width:50px;height:52px;position:absolute;top:24px;left:calc(50% - 25px);box-shadow:0 2px 4px #796b5522}.avatar-head:before,.avatar-head:after{content:"";background:#584a3b;border-radius:50%;width:4px;height:5px;position:absolute;top:16px}.avatar-head:before{left:14px}.avatar-head:after{right:14px}.avatar-body{background:var(--shirt);border-radius:40% 40% 20% 20%;width:46px;height:43px;position:absolute;top:76px;left:calc(50% - 23px)}.avatar-preview small{text-align:center;color:#9a947e;letter-spacing:2px;font-size:9px;position:absolute;bottom:13px;left:0;right:0}#avatar-form>label{margin:15px 0;display:block}.dock button{min-width:79px}.owner-actions{flex-wrap:wrap}@media (max-width:700px){.dock button{min-width:0;padding:9px 3px;font-size:9px}.top-actions{gap:2px}.top-actions button{width:38px;min-height:44px}.top-actions #sound{width:42px}.brand{gap:6px;font-size:17px}.brand-mark{font-size:25px}#pet-actions{gap:6px;bottom:145px;right:17px}#pet-actions button{padding:8px 13px;font-size:10px}.activity-grid{gap:8px}.activity-grid button{padding:15px 12px}.type-picker>div{gap:6px}.type-picker span{padding:8px 4px;font-size:10px}.type-picker label{min-width:0}}@media (max-height:540px){#pet-actions{flex-direction:row;bottom:108px;right:20px}#pet-actions button{padding:8px 12px}.dock button{min-width:70px}}.journal-edit{background:#f7f4e8;border-color:#ded8c6;min-height:36px;padding:7px 11px;font-size:10px}@media (max-width:700px){.top-actions button{width:44px;min-height:44px}.top-actions #sound{width:44px}}@media (max-width:360px){.topbar{padding-left:8px;padding-right:8px}.brand{gap:4px;font-size:16px}.brand-mark{font-size:22px}.brand small{letter-spacing:1px}}:root{--visible-height:100dvh;--visible-top:0px}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;overscroll-behavior:none}body{overscroll-behavior:none}#world canvas{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}button,a,label{touch-action:manipulation}#panel{overscroll-behavior:contain}input,select,textarea{font-size:16px}.touch-movement{display:none}@media (max-width:900px),(max-width:1000px) and (max-height:500px),(hover:none) and (pointer:coarse){.topbar{left:max(8px, env(safe-area-inset-left));right:max(8px, env(safe-area-inset-right));top:calc(8px + env(safe-area-inset-top));background:#fffdf3f2;border-radius:13px;height:52px;padding:3px 9px}.brand{white-space:nowrap;gap:6px;min-width:0;font-size:17px}.brand-mark{font-size:24px}.brand small{letter-spacing:1.8px;margin-top:2px;font-size:6px}.top-actions{gap:2px}.top-actions button{flex:none;width:44px;min-height:44px}.topbar #sound,.topbar #help-open{display:none}#connection{color:#53664f;background:#fffdf3ed;border:1px solid #e4dfcf;border-radius:6px;max-width:115px;padding:4px 7px;font-size:10px;line-height:1.4;position:absolute;top:calc(100% + 8px);bottom:auto;right:0}#connection:before{display:none}.scene-label,body[data-scene=petting] .scene-label{left:max(12px, env(safe-area-inset-left));top:calc(78px + env(safe-area-inset-top));width:calc(100% - 150px - env(safe-area-inset-left) - env(safe-area-inset-right));background:linear-gradient(90deg,#fffdf0dc,#fffdf078);max-width:300px;padding:3px 0 3px 9px}.scene-label h1{letter-spacing:-.7px;max-width:none;margin:0;font-size:18px;line-height:1.4}.scene-label p,.scene-label .place-count,#scene-kicker{display:none!important}.view-tools,body[data-scene=petting] .view-tools{top:calc(109px + env(safe-area-inset-top));right:max(12px, env(safe-area-inset-right));gap:5px}.view-tools button{background:#fffdf1ed;min-height:44px;padding:7px 10px;font-size:11px}.view-tools span{margin-left:3px}#view-reset{width:44px;font-size:23px}.dock{left:max(8px, env(safe-area-inset-left));right:max(8px, env(safe-area-inset-right));bottom:calc(8px + env(safe-area-inset-bottom));background:#fffdf3f5;border-radius:14px;justify-content:space-between;gap:1px;width:auto;padding:4px;transform:none}.dock button{white-space:nowrap;flex:1;gap:4px;min-width:0;min-height:54px;padding:5px 1px;font-size:10px;line-height:1.2}.dock button span{width:21px;height:21px;line-height:21px}.dock svg{width:21px;height:21px}.movement,.world-guide,.quiet-footer{display:none}.touch-movement{z-index:4;left:max(16px, env(safe-area-inset-left));bottom:calc(80px + env(safe-area-inset-bottom));color:#415b4b;-webkit-user-select:none;user-select:none;flex-direction:column;align-items:center;gap:5px;font-size:10px;display:flex;position:fixed}#joystick{touch-action:none;-webkit-touch-callout:none;background:#fffdf3c9;border:1px solid #fffae5;border-radius:50%;width:108px;height:108px;padding:0;position:relative;box-shadow:0 3px 20px #1f382b14,inset 0 0 0 12px #fffcf044}.stick-guide{color:#738567;pointer-events:none;flex-direction:column;justify-content:space-between;align-items:center;font-size:11px;display:flex;position:absolute;inset:7px}.stick-guide i{letter-spacing:10px;justify-content:center;width:100%;padding-left:10px;font-style:normal;display:flex}.stick-knob{width:44px;height:44px;transform:translate(var(--stick-x,0px), var(--stick-y,0px));pointer-events:none;background:#65816df2;border:1px solid #fff8dc;border-radius:50%;position:absolute;top:calc(50% - 22px);left:calc(50% - 22px);box-shadow:0 3px 8px #324d3322}#joystick.active{background:#fffdf0ed}#joystick.active .stick-knob{background:#365e4e}.world-actions{right:max(12px, env(safe-area-inset-right));bottom:calc(88px + env(safe-area-inset-bottom));gap:6px;max-width:132px}.world-actions button{background:#fffdf3f2;min-height:44px;padding:9px 12px;font-size:11px;line-height:1.4}body[data-scene=petting] .touch-movement,.world-unavailable .touch-movement{display:none}body:has(#entry-paused:not([hidden])) .touch-movement{display:none}#pet-actions{left:max(20px, env(safe-area-inset-left));right:max(20px, env(safe-area-inset-right));bottom:calc(82px + env(safe-area-inset-bottom));flex-direction:row;justify-content:center;gap:6px}#pet-actions button{background:#fffdf0ee;flex:1;max-width:130px;min-height:44px;padding:8px 7px;font-size:12px}#petting-hint{bottom:calc(157px + env(safe-area-inset-bottom));color:#445d48;padding:0 18px;font-size:11px;line-height:1.5}#toast{bottom:calc(213px + env(safe-area-inset-bottom));pointer-events:none;width:max-content;max-width:calc(100% - 32px);padding:10px 14px;font-size:12px}dialog{inset:auto 0;top:calc(var(--visible-top) + 8px + env(safe-area-inset-top));width:min(560px,100% - 16px);max-height:calc(var(--visible-height) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch;border-radius:17px;margin:0 auto;scroll-padding:90px 0 24px;position:fixed}dialog>header{gap:8px;padding:12px 15px}dialog .eyebrow{letter-spacing:1.6px;font-size:8px}dialog h2{word-break:keep-all;overflow-wrap:anywhere;margin-top:4px;font-size:20px;line-height:1.4}button.close{width:44px;min-width:44px;min-height:44px}#panel-body{padding:16px 17px 22px}.lead{margin-bottom:16px;font-size:13px;line-height:1.8}.avatar-preview{height:135px;margin:15px 0}.avatar-head{top:12px}.avatar-body{top:64px}.avatar-preview small{bottom:8px}.activity-grid{gap:8px;margin:15px 0}.activity-grid button{gap:6px;padding:12px}.activity-grid strong{font-size:13px}.activity-grid small{color:#69775d;font-size:11px}.type-picker>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.type-picker label{min-width:0;margin:0}.type-picker span{padding:10px 6px;font-size:12px}.fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fields>label{min-width:0}label{font-size:13px}.fine{color:#68735f}.shelf-map{grid-template-columns:1fr;gap:18px}.shelf-map button{min-height:44px;font-size:11px}.file-button input{font-size:16px}.consent{align-items:center;min-height:44px}#entry-paused,#world-fallback{max-height:calc(100dvh - 24px);padding:20px;overflow-y:auto}#entry-paused h2,#world-fallback h2{font-size:21px}#world-fallback>div{flex-wrap:wrap}}@media (max-width:1000px) and (max-height:500px),(pointer:coarse) and (max-height:500px){.topbar{height:46px;top:calc(4px + env(safe-area-inset-top));padding-top:0;padding-bottom:0}.brand small,#connection{display:none}.scene-label,body[data-scene=petting] .scene-label{top:calc(59px + env(safe-area-inset-top));max-width:350px}.scene-label h1{font-size:16px}.view-tools,body[data-scene=petting] .view-tools{top:calc(59px + env(safe-area-inset-top))}.dock{width:min(390px,100% - 280px);left:50%;right:auto;bottom:calc(5px + env(safe-area-inset-bottom));transform:translate(-50%)}.dock button{gap:3px;min-height:48px;font-size:9px}.touch-movement{bottom:calc(10px + env(safe-area-inset-bottom))}#joystick{width:96px;height:96px}.world-actions{bottom:calc(14px + env(safe-area-inset-bottom))}#pet-actions{width:min(320px,100% - 240px);left:50%;right:auto;bottom:calc(64px + env(safe-area-inset-bottom));transform:translate(-50%)}#petting-hint{display:none}#toast{bottom:calc(125px + env(safe-area-inset-bottom))}.avatar-preview{height:128px}}@media (max-width:500px) and (max-height:500px){.dock{width:auto;left:8px;right:8px;transform:none}.touch-movement{bottom:70px}.world-actions{bottom:74px}#pet-actions{width:auto;left:12px;right:12px;transform:none}}@media (max-width:360px){dialog h2{font-size:18px;line-height:1.4}}#language-open{font-size:17px}:lang(en) .brand,:lang(es) .brand,:lang(fr) .brand{letter-spacing:-.4px;font-family:system-ui,sans-serif}:lang(en) .dock button,:lang(es) .dock button,:lang(fr) .dock button{white-space:normal;overflow-wrap:normal}@media (max-width:900px),(max-width:1000px) and (max-height:500px),(hover:none) and (pointer:coarse){.brand{max-width:calc(100% - 140px)}.brand>span:last-child{text-overflow:ellipsis;min-width:0;overflow:hidden}.brand small{text-overflow:ellipsis;overflow:hidden}:lang(en) .brand,:lang(es) .brand,:lang(fr) .brand{font-size:14px}:lang(en) .brand-mark,:lang(es) .brand-mark,:lang(fr) .brand-mark{display:none}.dock button{min-height:54px;line-height:1.15}:lang(en) .dock button,:lang(es) .dock button,:lang(fr) .dock button{font-size:10px}.type-picker span{text-align:center;line-height:1.4}}
