@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');
:root{font-family:'Noto Sans KR',-apple-system,BlinkMacSystemFont,sans-serif;color:#243d36;background:#e9eddf;font-synthesis:none;--cream:#fffcf3;--green:#365f4b;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}*{box-sizing:border-box}html,body,#app{margin:0;width:100%;height:100%;height:100dvh;overflow:hidden;overscroll-behavior:none}button,input{font:inherit}button{border:0;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;color:inherit}button:focus-visible,input:focus-visible{outline:2px solid #b27838;outline-offset:3px}button:disabled{opacity:.55;cursor:wait}button:active{transform:scale(.97)}input{min-width:0;outline:none}svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#scene{position:absolute;inset:0;touch-action:none}#scene canvas{width:100%;height:100%;display:block}.scene-vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#e6eee210,transparent 50%,#152f2929)}.hidden{display:none!important}.glass{background:#fffdf0b5;backdrop-filter:blur(12px);border:1px solid #fffdf38f;box-shadow:0 3px 18px #20352d0a}.icon-btn{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.icon-btn.active{background:#355d49;color:#fffbee}#home{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#e8eee339,transparent 48%,#193b252b)}#home button,#home input{pointer-events:auto}.home-header{position:absolute;top:calc(24px + var(--safe-top));left:26px;right:24px;display:flex;align-items:center;justify-content:space-between}.wordmark{display:flex;gap:9px;align-items:center;color:#294e43}.wordmark span{font-size:12px;letter-spacing:3.7px;font-weight:700}.wordmark svg{width:30px;height:25px;stroke-width:1.8}.home-copy{position:absolute;top:calc(16% + var(--safe-top));left:30px;text-shadow:0 2px 24px #f1f5e991}.eyebrow{font-size:9px;font-weight:600;letter-spacing:2.3px}.home-copy h1{font-family:'Gowun Batang',serif;font-size:49px;line-height:1.28;letter-spacing:-2.5px;font-weight:400;margin:18px 0 19px}.home-copy p{font-size:12px;line-height:1.9;letter-spacing:.1px;color:#37574c}.start-card{position:absolute;bottom:calc(54px + var(--safe-bottom));left:22px;right:22px;padding:19px 20px 11px;border:1px solid #ffffffad;border-radius:23px;background:#fffcf1ed;box-shadow:0 14px 45px #1e362530;backdrop-filter:blur(16px)}.start-title{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;font-weight:600;margin-bottom:15px}.tiny-tag{font-size:9px;color:#839084;font-weight:400}.profile-row{display:flex;gap:10px;margin-bottom:12px}.gender-select{display:flex;gap:4px;background:#e9eadd;border-radius:12px;padding:4px;flex:1}.gender-select button{flex:1;border-radius:9px;padding:7px 9px;font-size:12px;background:transparent;color:#879287;white-space:nowrap}.gender-select button span{font-size:17px;margin-right:3px}.gender-select button.selected{background:#fffdf4;color:#365f4b;box-shadow:0 2px 6px #3047330c}.profile-row input{width:42%;border:1px solid #daddcf;border-radius:12px;background:#faf9ef;padding:10px;font-size:12px;text-align:center;color:#365747}.primary{display:flex;align-items:center;justify-content:center;gap:25px;width:100%;padding:16px 20px;background:#365f4b;color:#fffced;border-radius:13px;font-size:14px;letter-spacing:.2px}.primary span{font-size:18px}.text-button{display:block;background:none;margin:9px auto 0;padding:5px 10px;font-size:11px;color:#6c7d6d}.text-button span{margin-left:9px}.home-footer{position:absolute;bottom:calc(20px + var(--safe-bottom));left:29px;right:29px;display:flex;justify-content:space-between;gap:10px;font-size:9px;color:#fbfbed;letter-spacing:.4px}#hud{position:absolute;inset:0;pointer-events:none}#hud button,#hud input,#joystick{pointer-events:auto}.hud-header{position:absolute;top:calc(17px + var(--safe-top));left:19px;right:18px;display:flex;justify-content:space-between;align-items:center;gap:10px}.location-card{display:flex;align-items:center;gap:10px;background:#fffcefdf;border:1px solid #fffdf0b5;border-radius:17px;padding:11px 14px;box-shadow:0 5px 20px #3152370c;text-align:left;backdrop-filter:blur(10px)}.location-card small{display:block;font-size:8px;color:#8c988c;letter-spacing:.5px;margin-bottom:3px}.location-card strong{font-family:'Gowun Batang',serif;font-weight:700;font-size:17px}.location-dot{width:7px;height:7px;border-radius:50%;background:#648973;box-shadow:0 0 0 4px #658c7514}.chevron{font-size:16px;color:#899786;margin-left:5px}.header-actions{display:flex;gap:7px}.header-actions .icon-btn{width:39px;height:39px}.trail-progress{position:absolute;top:calc(92px + var(--safe-top));left:23px;width:155px;color:#304b3e;text-shadow:0 1px 5px #fff9}.trail-progress>div:first-child{display:flex;justify-content:space-between;font-size:8px;margin-bottom:6px}.progress-track{height:3px;border-radius:3px;background:#fffceba3;overflow:hidden}.progress-track i{height:100%;display:block;background:#557f5e;width:0;transition:width 1s}.world-label{position:absolute;transform:translate(-50%,-100%);padding:6px 10px;border-radius:20px;background:#fff9e9e6;font-size:10px;white-space:nowrap;box-shadow:0 4px 16px #27443515}.world-label:after{content:'';position:absolute;bottom:-5px;left:calc(50% - 4px);border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #fff9e9e6}#room-badge{position:absolute;top:calc(123px + var(--safe-top));left:22px;color:#365947;background:#fffcedc9;padding:5px 9px;border-radius:9px;font-size:9px}#controls{position:absolute;bottom:calc(88px + var(--safe-bottom));left:25px;right:23px;display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none}#joystick{width:114px;text-align:center;touch-action:none;user-select:none;-webkit-user-select:none}.joystick-ring{display:grid;place-items:center;width:108px;height:108px;border-radius:50%;border:1px solid #fff9e96e;background:#fffdf023;box-shadow:inset 0 0 30px #fdf4df17;backdrop-filter:blur(2px)}#joystick-knob{width:43px;height:43px;border-radius:50%;border:1px solid #fffbdbbf;background:#fffbea99;box-shadow:0 3px 14px #1d402020;pointer-events:none}#joystick>span{display:block;font-size:9px;color:#fff9e5;text-shadow:0 1px 3px #1b382a;margin-top:10px;letter-spacing:1px}.right-controls{display:flex;flex-direction:column;align-items:center;gap:10px}.action-button{width:57px;height:57px;border-radius:50%;display:grid;place-items:center}.action-button svg{width:26px;height:26px}.small-actions{display:flex;gap:9px}.small-actions .icon-btn{width:38px;height:38px}.small-actions svg{width:20px;height:20px}.game-footer{position:absolute;bottom:calc(14px + var(--safe-bottom));left:23px;right:23px}.game-footer button{display:flex;align-items:center;gap:9px;width:100%;text-align:left;background:#fffdefc9;backdrop-filter:blur(12px);border:1px solid #fffde680;border-radius:13px;padding:12px 14px;color:#667760;font-size:10px}.game-footer button svg{width:17px;height:17px}.game-footer>span{display:block;color:#fcfae9c2;font-size:8px;text-align:center;margin-top:10px;letter-spacing:.6px}#chat-unread{width:6px;height:6px;background:#cb8b55;border-radius:50%;margin-left:auto}#interact{position:absolute;left:50%;bottom:calc(227px + var(--safe-bottom));transform:translateX(-50%);border-radius:25px;padding:12px 20px;font-size:11px;white-space:nowrap;background:#fff9e8ed;border:1px solid #fffaf0;box-shadow:0 5px 25px #314e2e18}#discovery{position:absolute;top:29%;width:100%;text-align:center;color:#fff9eb;text-shadow:0 2px 12px #274c3f60;animation:discover 5s both;pointer-events:none}#discovery span{font-size:10px;letter-spacing:3px}#discovery strong{font-family:'Gowun Batang',serif;display:block;font-size:32px;margin-top:12px;font-weight:400}#discovery p{font-size:11px}@keyframes discover{0%,100%{opacity:0;transform:translateY(10px)}15%,80%{opacity:1;transform:none}}#quick-message{position:absolute;top:39%;left:50%;transform:translateX(-50%);border-radius:20px;padding:10px 17px;background:#fff8e8e8;font-size:12px;max-width:80%}#onboarding{position:absolute;top:40%;left:50%;transform:translate(-50%,-50%);width:285px;background:#fffbedee;border:1px solid #ffffef;border-radius:23px;padding:25px;pointer-events:auto;text-align:center;box-shadow:0 10px 50px #1c412a33}#onboarding strong{font-family:'Gowun Batang',serif;font-size:17px}#onboarding p{font-size:11px;line-height:1.9;color:#788575}#onboarding button{background:#365f4b;color:#fff8e8;border-radius:10px;padding:9px 25px;font-size:11px}#modal-layer{position:absolute;inset:0;background:#17372850;backdrop-filter:blur(5px);display:flex;align-items:flex-end;justify-content:center;z-index:30;padding:15px 14px calc(15px + var(--safe-bottom))}.sheet{width:100%;max-width:430px;max-height:83dvh;overflow:auto;background:#fffdf3;border:1px solid #fff;border-radius:25px;padding:23px 24px 24px;box-shadow:0 18px 90px #152c3940;animation:sheet-in .25s ease-out}.sheet-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.sheet-header h2{font-family:'Gowun Batang',serif;font-size:24px;font-weight:400;margin:0}.sheet-close{border-radius:50%;width:31px;height:31px;background:#edeee3;font-size:23px;line-height:1}.sheet p{font-size:12px;line-height:1.9;color:#7b8977}.sheet .subtitle{font-size:9px;text-transform:uppercase;letter-spacing:1.8px;color:#99a18f}.sheet input{padding:14px;border:1px solid #d6dfcd;border-radius:12px;background:#f6f6eb;width:100%;font-size:13px;color:#365747;margin-bottom:10px}.sheet .secondary{width:100%;padding:13px 18px;background:#e9eddf;border-radius:12px;font-size:12px;margin-top:10px}.sheet .fine{font-size:10px;color:#929b8b;text-align:center}.divider{display:flex;align-items:center;gap:15px;font-size:10px;color:#a4ac9c;margin:22px 0}.divider:before,.divider:after{content:'';height:1px;background:#e5e9da;flex:1}.room-code{font-size:35px;letter-spacing:7px;font-weight:600;color:#3c6149;text-align:center;margin:20px 0}.room-status{text-align:center;font-size:11px!important}.form-error{color:#b76e51!important;font-size:11px;min-height:16px}.trail-stop{display:flex;gap:15px;padding:15px 0;position:relative;border-bottom:1px solid #e9eddf}.trail-stop:last-child{border:0}.stop-number{background:#edf0e2;color:#94a18d;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;font-size:11px;flex-shrink:0}.trail-stop.visited .stop-number{background:#587d60;color:#fff9e8}.trail-stop strong{font-size:13px;font-weight:500}.trail-stop p{margin:3px 0 0;font-size:10px}.trail-stop small{font-size:9px;color:#a0aa96}.trail-stop button{margin-left:auto;background:transparent;color:#617d5c;font-size:10px;white-space:nowrap}.setting-row{padding:14px 0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8eddf;font-size:12px;gap:10px}.setting-row select,.setting-row button{border:0;background:#e9eedf;border-radius:9px;padding:8px 13px;color:#4d6d50;font-size:11px}.setting-row span small{display:block;font-size:9px;color:#94a08c;margin-top:5px}.dialog-name{font-size:11px;color:#8b9b7e;margin-top:5px}.npc-quote{font-family:'Gowun Batang',serif;font-size:20px!important;line-height:1.9!important;color:#405b42!important;margin:25px 0}.dialog-footer{display:flex;gap:10px}.dialog-footer .primary{font-size:12px}.chat-sheet{height:62dvh;display:flex;flex-direction:column}.chat-sheet .sheet-header{margin-bottom:10px}.messages{overflow:auto;flex:1;min-height:100px;padding:5px 0 16px}.message{margin:13px 0;max-width:90%;width:fit-content}.message small{font-size:9px;color:#8e9c87;display:block;margin-bottom:4px}.message p{margin:0;border-radius:12px 12px 12px 2px;background:#edf0e3;padding:9px 12px;font-size:12px;color:#526b4e;word-break:break-word;white-space:pre-wrap}.message.mine{margin-left:auto}.message.mine small{text-align:right}.message.mine p{background:#527759;color:#fffced;border-radius:12px 12px 2px 12px}.system-message{text-align:center;font-size:10px!important;color:#9aa591!important}.chat-form{display:flex;gap:8px;align-items:flex-start}.chat-form input{margin:0;font-size:12px}.chat-form button{border-radius:12px;background:#365f4b;color:#fffced;padding:14px;flex-shrink:0;font-size:12px}.quick-replies{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.quick-replies button{font-size:9px;background:#eef0e4;border:1px solid #e1e6d5;padding:7px 10px;border-radius:15px}.photo-result{width:100%;border-radius:15px;max-height:52dvh;object-fit:contain;background:#e4e9d8}.stats{display:grid;grid-template-columns:repeat(3,1fr);margin:25px 0;text-align:center}.stats strong{display:block;font-size:24px;font-weight:500}.stats span{font-size:10px;color:#98a28f}#photo-hud{position:absolute;inset:0;pointer-events:none;color:#fffae9;text-align:center}#photo-hud button{pointer-events:auto}#photo-close{position:absolute;left:23px;top:calc(23px + var(--safe-top));font-size:26px}#photo-hud>div{position:absolute;left:0;right:0;top:calc(30px + var(--safe-top));pointer-events:none}#photo-hud>div span{font-size:10px;letter-spacing:4px}#photo-hud p{font-size:10px;text-shadow:0 1px 5px #355a34}#shutter{position:absolute;bottom:calc(60px + var(--safe-bottom));left:calc(50% - 32px);width:64px;height:64px;border-radius:50%;border:2px solid #fff9e6;background:#fff9e630;display:grid;place-items:center}#shutter i{display:block;width:48px;height:48px;border-radius:50%;background:#fff9e6}#photo-hud>small{position:absolute;bottom:calc(30px + var(--safe-bottom));left:0;right:0;font-size:10px}#toast{position:absolute;z-index:80;top:calc(140px + var(--safe-top));left:50%;transform:translateX(-50%);max-width:88%;width:max-content;padding:12px 18px;border-radius:15px;background:#2d4f3fe8;color:#fffdec;box-shadow:0 5px 30px #263c2825;font-size:11px;line-height:1.6;text-align:center;pointer-events:none}#loading,#fatal{position:absolute;inset:0;background:#e9eddf;z-index:90;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:30px}#loading strong{font-family:'Gowun Batang',serif;font-size:37px;letter-spacing:8px;padding-left:8px;font-weight:400}.loading-mark{font-size:60px;color:#69856b;line-height:1;margin-bottom:18px}#loading p{font-size:10px;color:#8d9c86;letter-spacing:1px;margin-top:25px}.loading-line{width:95px;height:2px;background:#a5b79a;margin-top:18px;animation:loading 1.5s infinite}.error-text{color:#b8694b;font-size:11px}#fatal button{padding:13px 25px;border-radius:12px;background:#365f4b;color:#fff8e8}#fatal p{font-size:13px;line-height:1.8}@keyframes loading{50%{opacity:.25;transform:scaleX(.4)}}@keyframes sheet-in{from{transform:translateY(35px);opacity:0}to{transform:none;opacity:1}}@media(min-width:700px) and (min-height:600px){.home-header{left:6%;right:5%}.home-copy{left:9%;top:20%}.home-copy h1{font-size:75px}.home-copy p{font-size:15px}.eyebrow{font-size:10px}.start-card{left:auto;right:7%;width:350px;bottom:12%;padding:24px}.home-footer{left:6%;right:6%;bottom:28px}.hud-header{left:30px;right:30px}.trail-progress{left:34px}#controls{left:60px;right:50px;bottom:110px}.game-footer{left:calc(50% - 180px);right:auto;width:360px;bottom:25px}#modal-layer{align-items:center}.sheet{border-radius:25px}#interact{bottom:160px}#room-badge{left:33px}}@media(max-height:620px) and (orientation:landscape){.home-copy{top:25%;left:5%}.home-copy h1{font-size:40px;margin:10px 0}.home-copy p{font-size:10px}.eyebrow{font-size:8px}.start-card{width:295px;left:auto;right:4%;bottom:40px;padding:15px}.home-header{top:15px}.home-footer{bottom:12px}.start-title{margin-bottom:10px}.primary{padding:11px}.home-copy p br{display:none}#controls{bottom:55px;left:28px;right:28px}.joystick-ring{width:90px;height:90px}.game-footer{width:260px;left:calc(50% - 130px);bottom:12px}.game-footer>span{display:none}#joystick>span{display:none}#interact{bottom:100px}.sheet{max-width:430px;max-height:90dvh}.home-footer{font-size:8px}.trail-progress{top:87px}#modal-layer{align-items:center}#photo-hud>div{top:15px}#shutter{left:auto;right:30px;bottom:calc(50% - 32px)}#photo-hud>small{bottom:15px}}

/* Walking and conversation share the screen. The drawer never covers the world with a backdrop. */
:root{--keyboard-height:0px;--chat-height:260px;--visible-height:100dvh}
#walk-status{position:absolute;top:calc(153px + var(--safe-top));left:22px;padding:6px 10px;border-radius:12px;background:#335e4cd9;color:#fffbea;box-shadow:0 3px 12px #183d2920;font-size:9px;letter-spacing:.2px;max-width:calc(100% - 44px);pointer-events:none}
#follow-walk.active{background:#b98255;color:#fff8e8;border-color:#dca575}
#modal-layer.chat-layer{inset:auto 0 var(--keyboard-height) 0;padding:0 10px calc(10px + var(--safe-bottom));height:auto;background:none;backdrop-filter:none;pointer-events:none;transition:bottom .12s ease-out;align-items:flex-end;z-index:25}
.chat-layer .chat-sheet{pointer-events:auto;max-width:500px;height:min(280px,44dvh);max-height:calc(var(--visible-height) - 120px);overflow:hidden;background:#fffdf0f0;backdrop-filter:blur(14px);border:1px solid #fffdf5c9;box-shadow:0 8px 30px #20443124;padding:14px 16px 12px;border-radius:21px;display:flex;flex-direction:column}
.chat-sheet .sheet-header{margin-bottom:5px;flex-shrink:0}.chat-sheet .sheet-header h2{font-family:'Noto Sans KR',sans-serif;font-size:15px;letter-spacing:-.3px;font-weight:500}.chat-sheet .sheet-close{width:27px;height:27px;font-size:21px}.chat-sheet .messages{min-height:28px;padding:0 0 8px;flex:1;overscroll-behavior:contain}.chat-sheet .message{margin:7px 0}.chat-sheet .message small{font-size:8px;margin-bottom:3px}.chat-sheet .message p{font-size:11px;padding:6px 10px}.chat-sheet .system-message{margin:6px 0;font-size:10px}.chat-sheet .quick-replies{margin:3px 0 7px;gap:5px;flex-shrink:0}.chat-sheet .quick-replies button{padding:5px 8px;font-size:9px}.chat-sheet .chat-form{flex-shrink:0}.chat-sheet .chat-form input{padding:11px;font-size:16px;background:#ffffffc9}.chat-sheet .chat-form button{padding:13px 12px;font-size:11px}.chat-sheet .form-error{margin:4px 0 0;min-height:0;font-size:9px;line-height:1.3;flex-shrink:0}.chat-sheet .form-error:empty{display:none}
.chatting #controls{bottom:calc(var(--chat-height) + var(--keyboard-height) + 24px + var(--safe-bottom));transition:bottom .15s ease-out}.chatting .game-footer{visibility:hidden}.chatting #interact{bottom:calc(var(--chat-height) + var(--keyboard-height) + 150px + var(--safe-bottom));font-size:10px;padding:9px 14px}.chatting #quick-message{display:none}.chatting #controls .right-controls{gap:8px}.chatting #joystick>span{display:none}
.chatting .joystick-ring{width:86px;height:86px}.chatting #joystick{width:86px}.chatting #joystick-knob{width:35px;height:35px}.chatting .action-button{width:46px;height:46px}.chatting .small-actions .icon-btn{width:34px;height:34px}
.home-copy{text-shadow:0 1px 18px #f1f7e9c9,0 0 45px #eff5e3b3}.home-copy p{color:#244838}.scene-vignette{background:linear-gradient(180deg,#d8eee406,transparent 58%,#122f241f)}
@media(min-width:700px) and (min-height:600px){#modal-layer.chat-layer{left:auto;right:22px;width:380px;padding-bottom:20px}.chat-layer .chat-sheet{height:330px}.chatting #controls{bottom:110px;right:430px;left:60px}.chatting #interact{bottom:170px}.chatting .game-footer{visibility:visible;width:300px;left:50px;right:auto}.chatting .joystick-ring{width:108px;height:108px}.chatting #joystick{width:108px}#walk-status{left:33px}}
@media(max-height:620px) and (orientation:landscape){#modal-layer.chat-layer{left:auto;right:10px;width:min(360px,46vw);padding:0 0 10px}.chat-layer .chat-sheet{height:min(260px,84dvh);max-height:calc(var(--visible-height) - 20px)}.chatting #controls{left:25px;right:calc(min(360px,46vw) + 30px);bottom:30px}.chatting #controls .right-controls{display:none}.chatting #interact{left:26%;bottom:125px;font-size:9px;padding:7px 10px}.chatting #joystick{width:86px}#walk-status{top:121px;left:auto;right:25px;max-width:47%;font-size:8px}}
#modal-layer.moving-layer:not(.chat-layer){background:none;backdrop-filter:none;pointer-events:none;align-items:flex-end}.moving-layer:not(.chat-layer) .sheet{pointer-events:auto;max-height:55dvh;box-shadow:0 8px 35px #1f442a25;background:#fffdf3f0;backdrop-filter:blur(12px)}
@media(min-width:700px) and (min-height:600px){#modal-layer.moving-layer:not(.chat-layer){align-items:center;justify-content:flex-end;padding-right:30px}.moving-layer:not(.chat-layer) .sheet{max-width:370px;max-height:76dvh}}
@media(max-width:699px) and (orientation:portrait){.chatting #scene{bottom:calc(var(--chat-height) + var(--keyboard-height) + 20px + var(--safe-bottom))}.chatting #walk-status{top:calc(145px + var(--safe-top));font-size:8px;padding:5px 8px}.chatting #interact{display:none}}
@media(max-height:620px) and (orientation:landscape){.chatting #scene{right:calc(min(360px,46vw) + 20px);bottom:var(--keyboard-height)}}

.season-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:12px}.season-picker button{min-height:44px;padding:8px 4px;border-radius:12px;border:1px solid #dfe4d5;background:#f1f2e8;color:#7b8875;font-size:11px;display:flex;align-items:center;justify-content:center;gap:5px}.season-picker button>span{font-size:20px;line-height:1}.season-picker button.selected{border-color:#91a48a;background:#e2ebd8;color:#385d42;box-shadow:inset 0 0 0 1px #91a48a40}.season-picker button[data-season="spring"].selected{background:#f5e4e7;color:#985766;border-color:#d9aeb9}.season-picker button[data-season="autumn"].selected{background:#f4e4cb;color:#9b5d2d;border-color:#d4ab75}.season-picker button[data-season="winter"].selected{background:#e2edf3;color:#4c7188;border-color:#a3bdcc}.season-picker button:disabled{cursor:default;opacity:.6}.season-picker button.selected:disabled{opacity:.9}.season-description,.sheet .season-description{font-size:10px;color:#889180;text-align:center;margin:8px 0 14px;line-height:1.5;min-height:15px}#home-seasons .season-picker{margin-top:0}.start-title{margin-bottom:12px}#season-open{position:absolute;top:calc(90px + var(--safe-top));right:20px;border-radius:20px;min-height:36px;padding:7px 12px;font-size:11px;display:flex;align-items:center;gap:6px;color:#49624c}#season-open>span{font-size:18px}#season-open small{margin-left:3px;color:#7e8d77}.sheet>.season-picker{margin-top:20px}
@media(max-height:720px) and (orientation:portrait){.home-copy{top:14%;left:27px}.home-copy h1{font-size:39px;line-height:1.2;margin:12px 0}.home-copy p{font-size:11px;line-height:1.6}.start-card{bottom:45px;padding:14px 16px 9px}.home-footer{bottom:16px}.season-description{margin:6px 0 10px}.primary{padding:13px 18px}}
@media(max-height:620px) and (orientation:landscape){.season-picker{gap:4px}.season-picker button{min-height:36px;padding:5px}.season-description{margin:5px 0 8px}.start-card{bottom:30px;padding:12px}.start-title{margin-bottom:7px}.profile-row{margin-bottom:8px}#season-open{top:76px}}

/* Keep the world in view; quiet controls sit at the edges of the landscape. */
#home{background:linear-gradient(180deg,#142d3c22,transparent 42%,#142e2a30)}.home-copy{color:#fffcef;text-shadow:0 2px 14px #172f3a6b,0 1px 3px #172f3a55}.home-copy p{color:#fffcee}.home-copy h1{font-weight:700;font-size:46px;line-height:1.3;letter-spacing:-2px}.home-copy .eyebrow{color:#f2f6e9;font-weight:500}.wordmark{color:#fffceb;filter:drop-shadow(0 1px 3px #244b4c88)}.start-card{background:#fffdf1ed;border-color:#fffdf6c9;box-shadow:0 15px 40px #14282c29}.location-card{background:#fffcf0dc;border-radius:16px}.location-card strong{font-size:16px}.glass{background:#fffdef91;backdrop-filter:blur(7px)}.joystick-ring{background:#fffdf010;border-color:#fff9e955;backdrop-filter:none}.scene-vignette{background:linear-gradient(180deg,transparent 60%,#112b2a20)}
@media(max-height:720px) and (orientation:portrait){.home-copy h1{font-size:37px}}
@media(min-width:700px) and (min-height:600px){.home-copy h1{font-size:70px}}

#reunite{position:absolute;top:calc(153px + var(--safe-top));left:22px;padding:9px 12px;border-radius:12px;background:#365f4b;color:#fffced;font-size:11px;box-shadow:0 4px 18px #1b382a26} @media(min-width:700px) and (min-height:600px){#reunite{left:33px}}

/* The first name is a quiet introduction, with room for a phone keyboard. */
#welcome-name{position:fixed;inset:0 0 auto;z-index:60;display:flex;flex-direction:column;align-items:center;width:100%;height:min(100dvh,var(--visible-height,100dvh));padding:calc(20px + var(--safe-top)) 20px calc(20px + var(--safe-bottom));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;background:linear-gradient(180deg,#173d3445,#173b325e);backdrop-filter:blur(5px);isolation:isolate}
#welcome-name .welcome-card{flex:none;width:100%;max-width:360px;margin-block:auto;padding:27px 25px 23px;border:1px solid #fffef6d9;border-radius:25px;background:#fffdf3f7;box-shadow:0 20px 65px #16392c35;animation:welcome-in .24s ease-out}
#welcome-name .welcome-eyebrow{display:flex;align-items:center;gap:8px;margin-bottom:19px;color:#63816b}
#welcome-name .welcome-eyebrow svg{width:24px;height:19px;stroke-width:1.7}
#welcome-name .welcome-eyebrow span{font-size:9px;font-weight:600;letter-spacing:3.3px}
#welcome-name h2{margin:0;font-family:'Gowun Batang',serif;font-size:clamp(24px,6.7vw,27px);font-weight:400;line-height:1.5;letter-spacing:-1.1px;color:#294b3c;word-break:keep-all}
#welcome-name .welcome-intro{margin:8px 0 23px;font-size:11px;line-height:1.8;color:#7c8b79;word-break:keep-all}
#welcome-name label{display:block;margin-bottom:9px;font-size:12px;font-weight:500;color:#4e6a53}
#welcome-name input{display:block;width:100%;min-height:52px;padding:13px 15px;border:1px solid #d9e0ce;border-radius:12px;background:#f6f7ed;color:#294d3c;font-size:16px;line-height:1.5;letter-spacing:.1px;transition:border-color .15s,box-shadow .15s}
#welcome-name input::placeholder{color:#a2ad99;font-size:14px}
#welcome-name input:focus{outline:none;border-color:#7e9a7b;background:#fffef8;box-shadow:0 0 0 3px #88a68520}
#welcome-name input[aria-invalid="true"]{border-color:#bc856d;box-shadow:0 0 0 3px #bc856d12}
#welcome-name #welcome-error{min-height:17px;margin:6px 0 12px;color:#a75f46;font-size:11px;line-height:1.55;word-break:keep-all}
#welcome-name .welcome-submit{display:flex;align-items:center;justify-content:center;gap:17px;width:100%;min-height:51px;padding:14px 12px;border:1px solid #365f4b;border-radius:13px;background:#365f4b;color:#fffcef;font-size:13px;font-weight:500;line-height:1.5;box-shadow:0 5px 14px #365f4b12}
#welcome-name .welcome-submit span{font-size:18px;line-height:1}
#welcome-name .welcome-submit:focus-visible{outline:2px solid #a27f51;outline-offset:3px}
#welcome-name .welcome-fine{margin:14px 0 0;color:#8e9a85;font-size:10px;line-height:1.7;text-align:center;word-break:keep-all}
@keyframes welcome-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@media(max-width:374px){#welcome-name{padding-inline:16px}#welcome-name .welcome-card{padding-inline:22px}#welcome-name h2{font-size:24px}}
@media(max-height:700px){#welcome-name:focus-within{padding-top:12px;padding-bottom:12px}#welcome-name:focus-within .welcome-card{padding-top:20px;padding-bottom:18px}#welcome-name:focus-within .welcome-eyebrow,#welcome-name:focus-within .welcome-intro{display:none}#welcome-name:focus-within h2{margin-bottom:18px;font-size:24px}#welcome-name:focus-within .welcome-fine{margin-top:11px}}
@media(max-height:430px){#welcome-name{padding-block:10px}#welcome-name .welcome-card{padding-top:17px;padding-bottom:15px}#welcome-name .welcome-eyebrow,#welcome-name .welcome-intro{display:none}#welcome-name h2{margin-bottom:14px;font-size:23px}#welcome-name input{min-height:47px;padding-block:10px}#welcome-name .welcome-submit{min-height:47px;padding-block:11px}#welcome-name #welcome-error{margin-bottom:9px}#welcome-name .welcome-fine{margin-top:10px}}
@media(prefers-reduced-motion:reduce){#welcome-name .welcome-card{animation:none}#welcome-name input{transition:none}}

/* A small trail-side notebook keeps the conversation nearby. */
#chat-history{position:absolute;top:calc(190px + var(--safe-top));left:22px;z-index:20;width:min(210px,60vw);overflow:hidden;border:1px solid #fffdf3a3;border-radius:15px;background:#fffdf0ba;backdrop-filter:blur(10px);box-shadow:0 5px 20px #203d2f12;color:#3c5748;pointer-events:auto}
#history-toggle{display:flex;align-items:center;gap:7px;width:100%;min-height:37px;padding:9px 12px;background:transparent;text-align:left;font-size:10px;font-weight:500;letter-spacing:.1px}
#history-toggle:after{content:'';width:6px;height:6px;margin:0 2px 3px auto;border-right:1.5px solid #73866f;border-bottom:1.5px solid #73866f;transform:rotate(45deg);transition:transform .15s}
#history-toggle:focus-visible{outline-offset:-4px;border-radius:14px}
#history-unread{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 5px;border-radius:8px;background:#b77d4f;color:#fffbed;font-size:8px;line-height:1}
#history-body{display:flex;flex-direction:column;max-height:min(152px,calc(25dvh - 37px));overflow:hidden;border-top:1px solid #7f95731c}
#history-messages{flex:1;min-height:0;overflow:auto;padding:2px 12px 9px;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#8da08766 transparent}
#history-messages:focus-visible{outline:1px solid #7d9472;outline-offset:-2px}
#history-messages::-webkit-scrollbar{width:3px}#history-messages::-webkit-scrollbar-thumb{border-radius:3px;background:#8da08766}
#chat-history .history-entry{margin:10px 0 0;font-size:10px;line-height:1.6;overflow-wrap:anywhere}
#chat-history .history-meta{display:flex;align-items:baseline;gap:6px;margin-bottom:2px;min-width:0}
#chat-history .history-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#536e51;font-size:9px;font-weight:600}
#chat-history .history-entry time{margin-left:auto;flex-shrink:0;color:#87917e;font-size:8px;font-variant-numeric:tabular-nums;font-weight:400}
#chat-history .history-text{margin:0;color:#445b49;font-size:10px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
#chat-history .history-entry.mine .history-name{color:#6f825d}#chat-history .history-entry.mine .history-text{color:#526949}
#chat-history .history-entry.system{color:#87917e;font-size:9px;text-align:center}
#history-latest{flex-shrink:0;align-self:center;margin:2px 9px 9px;padding:6px 11px;border:1px solid #d7dfc9;border-radius:20px;background:#f5f6e8;color:#5b7351;font-size:9px;box-shadow:0 2px 8px #3c5b3510}
#chat-history.collapsed{width:fit-content;min-width:116px}#chat-history.collapsed #history-body{display:none}#chat-history.collapsed #history-toggle:after{margin-top:4px;transform:rotate(225deg)}
.chatting #chat-history{display:none}

/* Screen-projected speech stays light, with a tail aimed at its speaker. */
#speech-layer{position:absolute;inset:0;z-index:18;overflow:hidden;pointer-events:none}
.speech-bubble{--speech-bg:#fffdf0f2;--speech-border:#fffef4c9;position:absolute;transform:translate(-50%,-100%);width:max-content;max-width:min(calc(100vw - 24px),clamp(180px,56vw,220px));padding:10px 13px 11px;border:1px solid var(--speech-border);border-radius:15px;background:var(--speech-bg);box-shadow:0 4px 18px #163b2c24;color:#3d5544;pointer-events:none;isolation:isolate}
.speech-bubble:after{content:'';position:absolute;left:clamp(13px,var(--tail-x,50%),calc(100% - 13px));bottom:-6px;width:10px;height:10px;background:var(--speech-bg);border-right:1px solid var(--speech-border);border-bottom:1px solid var(--speech-border);transform:translateX(-50%) rotate(45deg)}
.speech-bubble.mine{--speech-bg:#eaf2dff5;--speech-border:#edf5dfd9;color:#3e5a43}
.speech-name{display:block;max-width:100%;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6b8061;font-size:12px;font-weight:600;line-height:1.4;letter-spacing:.1px}
.speech-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--speech-lines,3);overflow:hidden;margin:0;color:inherit;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.speech-direction{display:none}
.speech-bubble.offscreen{max-width:min(190px,calc(100vw - 24px));padding:8px 11px;border-radius:13px;background:var(--speech-bg);box-shadow:0 3px 13px #163b2c1c}
.speech-bubble.offscreen:after{display:none}
.speech-bubble.offscreen .speech-text{-webkit-line-clamp:1;font-size:11px;margin:0 0 4px}
.speech-bubble.offscreen .speech-name{margin-bottom:3px;font-size:10px}
.speech-bubble.offscreen .speech-direction{display:flex;align-items:center;gap:5px;color:#718168;font-size:10px;line-height:1.5;white-space:nowrap}
.speech-bubble.offscreen .speech-direction:before{content:'↑';display:inline-block;flex:none;width:13px;height:15px;text-align:center;color:#779169;font-size:15px;line-height:15px;transform:rotate(var(--arrow-angle,0rad));transform-origin:50% 50%}
.speech-bubble.offscreen[data-direction="left"]{--arrow-angle:-1.5708rad}.speech-bubble.offscreen[data-direction="right"]{--arrow-angle:1.5708rad}.speech-bubble.offscreen[data-direction="behind"]{--arrow-angle:3.1416rad}.speech-bubble.offscreen[data-direction="ahead"]{--arrow-angle:0rad}
@media(min-width:700px) and (min-height:600px){#chat-history{left:33px;width:225px}}
@media(max-height:620px) and (orientation:landscape){#chat-history{top:164px;left:23px;width:190px}#history-body{max-height:max(0px,min(102px,calc(100dvh - 350px - var(--safe-bottom))))}#history-toggle{min-height:32px;padding-block:7px}}
@media(prefers-reduced-motion:reduce){#history-toggle:after{transition:none}}
#history-messages .history-empty{font-size:10px;line-height:1.7;color:#7b8a73;margin:11px 0 3px}
#chat-preview{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#time-open{position:absolute;right:20px;top:calc(134px + var(--safe-top));border-radius:20px;min-height:34px;padding:7px 12px;font-size:10px;color:#49624c;font-variant-numeric:tabular-nums}
.sheet .clock-now{font-size:30px;font-family:'Gowun Batang',serif;color:#42634b;text-align:center;margin:22px 0}
.time-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:20px 0}.time-presets button{min-height:48px;border-radius:12px;background:#e5ebdc;color:#42634b;font-size:11px}.time-presets button:last-child{background:#263951;color:#e4e8f8}.time-presets button:disabled{opacity:.5;cursor:default}.time-slider-label{display:block;font-size:11px;color:#6a7e62;margin-bottom:14px}.sheet input[type=range]{padding:0;accent-color:#527759;min-height:32px}
@media(max-height:620px) and (orientation:landscape){#time-open{top:116px}}

/* Tile City walking controls: floating stick, one quiet action rail. */
#hud #joystick{position:fixed;display:block;left:78px;top:calc(100dvh - 155px - var(--safe-bottom));opacity:.16;transition:opacity .15s;width:108px;height:108px;margin:-54px 0 0 -54px;pointer-events:none;z-index:20;user-select:none}
#hud #joystick.engaged{display:block;opacity:.55}
#hud .joystick-ring{width:108px;height:108px;border:1.5px solid #56617d42;background:#ffffff38;box-shadow:none;backdrop-filter:none}
#hud #joystick-knob{width:46px;height:46px;background:#ffffffd1;border:0;box-shadow:0 2px 10px #56617d33}
#controls{left:auto;right:16px;bottom:calc(92px + var(--safe-bottom));width:70px;display:block}
#controls .right-controls{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
#controls button{width:44px;height:44px;min-height:44px;border-radius:14px;background:#ffffffc2;border:1px solid #56617d33;box-shadow:0 4px 16px #56617d1c;backdrop-filter:blur(6px);color:#56617d;touch-action:none}
#controls button svg{width:22px;height:22px}
#controls button.active{background:#547865;color:#fff;border-color:#547865}
#controls #view-mode{width:70px;font-size:12px;font-weight:600}
#controls #follow-walk.active{background:#b98255;border-color:#b98255;color:#fff}
.game-footer{left:18px;right:18px;bottom:calc(12px + var(--safe-bottom));width:auto}
.game-footer button{max-width:420px;margin:auto;background:#ffffffe0;border-color:#ffffffba;padding:12px 15px;border-radius:15px;color:#56617d;font-size:11px}
.game-footer>span{font-size:10px;color:#4e6474;background:#ffffffad;border-radius:30px;width:fit-content;max-width:100%;padding:6px 12px;margin:7px auto 0;letter-spacing:0}
#interact{bottom:calc(110px + var(--safe-bottom));max-width:calc(100% - 150px);white-space:normal;text-align:center;padding:10px 14px;line-height:1.6}
.hud-header{left:16px;right:16px}.location-card{padding:9px 12px;border-radius:14px}.location-card strong{font-family:'Noto Sans KR',sans-serif;font-size:14px;font-weight:600}.location-card small{font-size:9px}.header-actions .icon-btn{width:42px;height:42px;border-radius:14px}.trail-progress{top:calc(84px + var(--safe-top));left:20px}
#season-open{top:calc(80px + var(--safe-top));right:16px;min-height:38px}#time-open{right:16px}
.chatting #controls{left:auto;right:16px;bottom:calc(var(--chat-height) + var(--keyboard-height) + 30px + var(--safe-bottom))}
.scene-vignette{background:linear-gradient(180deg,transparent 78%,#304b4812)}
@media(min-width:700px) and (min-height:600px){#controls{right:24px;bottom:100px}.game-footer{left:50%;right:auto;width:420px;transform:translateX(-50%)}.chatting #controls{right:430px;bottom:100px}.chatting .game-footer{left:24px;transform:none}.hud-header{left:24px;right:24px}}
@media(max-height:620px) and (orientation:landscape){#controls{bottom:20px;right:20px}.game-footer{left:50%;right:auto;width:280px;transform:translateX(-50%);bottom:12px}#controls .right-controls{gap:5px}#controls button{height:40px;min-height:40px}#interact{bottom:82px}.chatting #controls{right:calc(min(360px,46vw) + 30px);bottom:20px}.chatting #controls .right-controls{display:flex}}

/* 산책 배지, 에나멜 버튼, 숲빛 유리. 움직임은 입력과 발견 순간에만. */
:root{--ui-ink:#274b41;--ui-gold:#ecd49e;--ui-edge:#fff9dcbd;--ui-shadow:0 4px 0 #263d364a,0 9px 20px #132c3429;--ui-glass:linear-gradient(135deg,#edfbe62e,#b8d8ce0d 44%,#ffffe917),#193d38a3}
button{transition:filter .15s,background-color .15s,box-shadow .15s;user-select:none}
button:focus-visible,summary:focus-visible{outline:3px solid #e5be78;outline-offset:4px}
.glass,.location-card{background:linear-gradient(155deg,#fffef4f5,#ede8d2e0);border:1px solid #fffbe6;box-shadow:var(--ui-shadow),inset 0 1px 0 #fff;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:var(--ui-ink)}
.primary{position:relative;min-height:52px;border:1px solid #abc997;border-radius:19px;background:linear-gradient(#678b66,#42684e);box-shadow:0 5px 0 #254b3b,0 9px 20px #244d3433,inset 0 2px 0 #ffffff30;color:#fff9e6;font-weight:700;letter-spacing:.4px;text-shadow:0 1px 2px #274735}
.primary:active{box-shadow:0 2px 0 #254b3b,inset 0 2px 5px #244d3433;filter:brightness(1.08)}
.home-copy{top:17%;text-shadow:0 3px 0 #35534899,0 9px 30px #19352d88}
.home-copy .eyebrow{display:inline-block;padding:7px 12px;border-radius:20px;border:1px solid #fff1c757;background:#23483e63;font-size:10px;letter-spacing:2px;color:#fff2c7}
.home-copy h1{font-size:94px;line-height:1.08;letter-spacing:5px;color:#fff4d8;margin:18px 0 22px}
.home-copy h1 span{display:block;font-family:'Noto Sans KR',sans-serif;font-size:17px;letter-spacing:1px;font-weight:500;margin-top:14px}
.home-copy p{font-size:12px;line-height:1.9;color:#fff6df}
.start-card{padding:17px 18px 22px;background:linear-gradient(140deg,#fffbe9de,#e5e9d6c4);border:1px solid #fff6dccc;border-radius:26px;box-shadow:inset 0 2px 0 #fff9,0 8px 0 #233e3029,0 15px 40px #14282c38}
.start-title{justify-content:center;color:#546c50;font-size:11px;margin:0 0 14px;letter-spacing:.4px}.start-title:before,.start-title:after{content:'✦';color:#af8f54;font-size:10px}
.home-footer{color:#fff4dacc}.hud-header{align-items:flex-start;gap:12px}
.location-card{gap:9px;max-width:calc(100% - 105px);padding:8px 12px 9px 8px;border-radius:22px 22px 22px 8px;min-height:61px}
.location-card>div{min-width:0}.location-card small{font-size:8px;color:#71826b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px;margin-bottom:4px}
.location-card strong{font-size:14px;font-weight:700;letter-spacing:-.4px;white-space:nowrap}.location-card .chevron{font-size:14px;margin-left:0;color:#8c9876}
.trail-emblem{width:35px;height:35px;display:grid;place-items:center;border-radius:50%;flex:none;background:linear-gradient(#678970,#3d6654);border:2px solid #e8d7a6;box-shadow:0 2px 0 #23463740,inset 0 1px 3px #fff4;color:#fff0c7}.trail-emblem svg{width:23px;height:23px;stroke-width:1.5}
.header-actions{padding-top:5px;gap:8px}.header-actions .icon-btn{width:42px;height:42px;border-radius:50%}.header-actions svg{width:21px;height:21px}
.trail-progress{left:20px;top:calc(89px + var(--safe-top));width:181px;padding:9px 12px 8px;border:1px solid #fff3ce42;border-radius:8px 15px 15px;background:#1c3f35b3;box-shadow:inset 0 1px 0 #ffffff1a;color:#fff5dc;text-shadow:0 1px 2px #163328}
.trail-progress>div:first-child{font-size:9px;margin-bottom:8px;gap:6px}.trail-progress #distance-label{color:#f3dba3;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.progress-track{height:5px;overflow:hidden;background:#071f256e;border:1px solid #fff1c52e;box-shadow:inset 0 1px 2px #0002;border-radius:8px}.progress-track i{background:linear-gradient(90deg,#a5c790,#f3dda2);border-radius:8px;box-shadow:0 0 8px #e9d7a97a}
#trail-milestones{position:relative;height:0;margin:0 2px;top:-3px}#trail-milestones i{position:absolute;top:0;width:5px;height:5px;border-radius:50%;background:#425a4b;border:1px solid #b6bd93;transform:translate(-50%,-50%)}#trail-milestones i.visited{background:#fff2c0;border-color:#fff6d2;box-shadow:0 0 5px #fff2c073}
#trail-progress-label{display:block;font-size:8px;letter-spacing:.3px;margin-top:7px;color:#cfddbf}
#room-badge{top:calc(165px + var(--safe-top));left:20px;max-width:calc(100% - 40px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#1b3d32b8;color:#eff3d8;border:1px solid #fff2cb40;border-radius:20px;padding:6px 10px;font-size:9px}
#walk-status,#reunite{top:calc(198px + var(--safe-top));left:20px;border:1px solid #e6d6a67d;border-radius:20px;background:#375c49e8;color:#fff3d0}
#reunite:not(.hidden)~#walk-status{display:none}
#controls{right:16px;width:58px;bottom:calc(85px + var(--safe-bottom))}
#controls .right-controls{gap:10px;align-items:center}#controls button{position:relative;width:48px;height:48px;min-height:48px;display:grid;place-content:center;justify-items:center;gap:1px;border-radius:18px;border:1px solid #fff3cf;background:linear-gradient(145deg,#fffdf1ed,#dddcc4e6);box-shadow:var(--ui-shadow),inset 0 2px 0 #fff9;color:#486450;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
#controls button:after{content:attr(data-caption);font-size:8px;line-height:1.1;letter-spacing:.2px;font-weight:600}#controls button:not([data-caption]):after{display:none}#controls button svg{width:22px;height:22px;stroke-width:1.8}
#controls #photo-open{width:56px;height:56px;border-radius:50%;border:2px solid #f1db9d;color:#755d38;background:linear-gradient(145deg,#fffae2,#e8d9aa)}
#controls button.active{background:linear-gradient(#64876b,#365d4b);border-color:#dbe9ae;color:#fff2cc;box-shadow:0 4px 0 #244636,0 0 0 3px #d6e8af33,inset 0 2px 0 #ffffff26}
#controls #follow-walk.active{background:linear-gradient(#bb9363,#8f653f);border-color:#f2d4a6}#controls #view-mode{width:54px;min-height:32px;height:32px;border-radius:13px;font-size:10px;letter-spacing:.2px}
.game-footer{bottom:calc(12px + var(--safe-bottom))}.game-footer button{min-height:46px;border-radius:24px;background:var(--ui-glass);border:1px solid #fff6d273;box-shadow:inset 0 1px 0 #ffffff30,0 6px 20px #102c3829;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#edf3dd;padding:11px 15px;font-size:11px}
.game-footer .chat-icon{display:grid;place-items:center;border-radius:50%;width:27px;height:27px;background:#f1e6b91f;color:#efdaa6;flex:none}.game-footer>span{background:none;padding:0;color:#f1f4deb3;text-shadow:0 1px 3px #112f2d;font-size:8px;margin-top:7px}
#chat-unread{background:#eccc7c;box-shadow:0 0 0 4px #edcc7833}#interact{background:linear-gradient(#fff6dd,#e6dbb8);color:#53634b;border:1px solid #fff4cd;box-shadow:0 3px 0 #354c385e,0 5px 16px #132d322e;border-radius:24px;font-weight:600}
#chat-history{top:calc(233px + var(--safe-top));left:20px;width:min(218px,59vw);border-radius:20px 20px 20px 7px;background:var(--ui-glass);border:1px solid #e7f8dd57;box-shadow:inset 0 1px 0 #ffffff45,inset 0 -1px 0 #c5e5cd12,0 9px 28px #0b273538;backdrop-filter:blur(14px) saturate(1.25);-webkit-backdrop-filter:blur(14px) saturate(1.25);color:#edf5e2}
#history-toggle{min-height:41px;padding:9px 12px;font-weight:600;color:#f3edd1}#history-toggle:after{border-color:#d9e9c3}.history-title{display:flex;gap:7px;align-items:center}.history-title svg{width:16px;height:16px;color:#e7d79c}
#history-body{border-color:#f0f8da20;max-height:min(158px,23dvh)}#history-messages{padding:0 10px 10px;scrollbar-color:#dce7bc60 transparent}
#chat-history .history-entry{padding:7px 8px;margin-top:7px;background:#e6f7e20b;border:1px solid #e7f7d414;border-radius:11px 11px 11px 3px;line-height:1.6}
#chat-history .history-entry.mine{background:#ccecb523;border-color:#d8e9c124;border-radius:11px 11px 3px 11px}
#chat-history .history-name,#chat-history .history-entry.mine .history-name{color:#e7dda9;font-weight:500}#chat-history .history-entry time{color:#b2c9bb;font-size:8px}#chat-history .history-text,#chat-history .history-entry.mine .history-text{color:#f1f6e6;text-shadow:0 1px 2px #173c3066;font-size:11px}
#history-messages .history-empty{color:#c1d3c3;padding:3px 2px}#history-unread{background:#edcf8d;color:#395644;box-shadow:0 0 0 3px #e4d49b16}#history-latest{background:#cfdfb6ed;border-color:#f5e7ba;color:#3d614a}
#chat-history.collapsed{border-radius:24px;min-width:130px}.chatting #chat-history{display:none}
#modal-layer{background:#0e272a42;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.sheet,.moving-layer:not(.chat-layer) .sheet{border:1px solid #fff7db;border-radius:29px 29px 22px 22px;background:linear-gradient(145deg,#fffaf0f7,#ebe8d5f5);box-shadow:inset 0 2px 0 #fff,0 7px 0 #2c4c3838,0 20px 65px #112c374a;animation:game-sheet-in .34s cubic-bezier(.16,1,.3,1)}
.sheet:before{content:'';display:block;width:34px;height:4px;border-radius:4px;background:#a5ae8c73;margin:-10px auto 17px}.sheet-header{margin-bottom:16px}.sheet-header h2{font-family:'Noto Sans KR',sans-serif;font-size:21px;font-weight:700;color:#3c5845;letter-spacing:-.6px}.sheet-close{width:34px;height:34px;flex:none;border:1px solid #fff7dc;background:#d5ddc7;box-shadow:0 2px 0 #536d4733;color:#526546}.sheet p{color:#687b5f}.sheet .subtitle{color:#88956b;letter-spacing:1.4px;font-size:8px}.sheet .secondary,.setting-row button,.setting-row select{background:#dfe6cc;border:1px solid #c4d1af;box-shadow:inset 0 1px 0 #fff9,0 2px 0 #84967226;color:#456347;border-radius:13px}.sheet .secondary{min-height:44px}.setting-row{border-bottom:1px solid #a7b68d33}.setting-row button{min-height:38px}.sheet details{border-bottom:1px solid #a7b68d33;padding:12px 0}.sheet summary{font-size:12px;cursor:pointer;color:#4d684b}.sheet .fine{color:#7f8e6e}.sheet .text-button{padding:10px;min-height:36px}.sheet .gender-select{margin-top:12px}
.trail-stop{border-color:#b7c3a057}.stop-number{border:1px solid #cad2b2;background:#e5e8d3;color:#8a9a74;width:34px;height:34px}.trail-stop.visited .stop-number{border-color:#98b489;background:linear-gradient(#74936b,#4c704e);box-shadow:0 3px 0 #3c5f3530;color:#fff0c6}.trail-stop button{border-radius:12px;background:#d9e3c8;padding:8px;min-height:36px}
.chat-layer .chat-sheet{background:var(--ui-glass);border:1px solid #e9f9e273;border-radius:26px 26px 21px 21px;box-shadow:inset 0 1px 0 #ffffff45,0 12px 38px #092a3545;backdrop-filter:blur(16px) saturate(1.25);-webkit-backdrop-filter:blur(16px) saturate(1.25);padding:14px 15px 12px;height:min(300px,44dvh)}
.chat-sheet:before{margin:-5px auto 9px;height:3px;background:#dfebce5e}.chat-sheet .sheet-header{margin-bottom:7px}.chat-sheet .sheet-header h2{font-size:14px;color:#f3edd4;letter-spacing:.1px}.chat-sheet .sheet-close{background:#f4ffea1a;border-color:#eff8dd40;color:#f6f5df;box-shadow:none}
.chat-sheet p,.chat-sheet .system-message{color:#d0dfcf!important}.chat-sheet .message small{color:#c9d9bf;font-size:9px}.chat-sheet .message p{background:#e4f0d71a;color:#f4f5e5!important;border:1px solid #e8f8df20;border-radius:14px 14px 14px 3px;padding:8px 11px;line-height:1.65}.chat-sheet .message.mine p{background:#d5e8b42e;border-color:#deebbd40;border-radius:14px 14px 3px 14px;color:#fff5ce!important}
.messages,.sheet{scrollbar-width:thin;scrollbar-color:#a0b38b70 transparent}.messages::-webkit-scrollbar,.sheet::-webkit-scrollbar{width:4px}.messages::-webkit-scrollbar-track,.sheet::-webkit-scrollbar-track{background:transparent}.messages::-webkit-scrollbar-thumb,.sheet::-webkit-scrollbar-thumb{background:#c3d7ad6b;border-radius:8px}
.chat-sheet .quick-replies button{background:#e7f1d914;border:1px solid #edf2cc3d;color:#e5eccc;border-radius:18px;min-height:30px;padding:6px 10px;font-size:9px}.chat-sheet .chat-form input{border:1px solid #d1e5ca57;border-radius:17px;background:#12352c78;color:#fff8df;padding:12px;font-size:16px}.chat-sheet .chat-form input::placeholder{color:#bdcfc0;font-size:12px}.chat-sheet .chat-form button{border:1px solid #fff3c9;background:linear-gradient(#f5e9bc,#cfdaab);box-shadow:0 3px 0 #142d2a66;color:#365644;font-weight:700;border-radius:16px;padding:13px 14px;min-height:44px}.chat-sheet .form-error{color:#ffd6ad!important}
.chatting #scene{bottom:var(--keyboard-height);right:0}.chatting #walk-status{top:calc(198px + var(--safe-top))}
.message-new{animation:message-pop .27s cubic-bezier(.2,.8,.2,1)}
#toast{background:linear-gradient(145deg,#355c4ef0,#183d34ed);border:1px solid #e6d4a478;border-radius:22px;box-shadow:inset 0 1px 0 #ffffff23,0 6px 0 #193f3033,0 10px 26px #0e293338;color:#fff0ca;animation:toast-pop .3s ease-out}
#discovery{top:27%}#discovery:before{content:'✧';display:block;color:#f9e3a3;font-size:40px;margin-bottom:10px;text-shadow:0 0 20px #fbe3a484}#discovery strong{font-size:35px;color:#fff4d5;font-weight:700;text-shadow:0 2px 0 #52634c,0 5px 24px #183c37}#discovery span{padding:6px 13px;border-radius:20px;background:#284f3c80;color:#f5dfaa;border:1px solid #f2ddb050;letter-spacing:2px;font-size:9px}
#ui-effects{position:fixed;inset:0;z-index:85;overflow:hidden;pointer-events:none;contain:strict}.ui-spark{position:absolute;width:7px;height:7px;border-radius:1px;box-shadow:0 0 6px #fff4c07a;pointer-events:none}
#together-walk{position:absolute;left:50%;bottom:calc(98px + var(--safe-bottom));transform:translateX(-50%);min-height:44px;padding:11px 24px;border-radius:25px;background:linear-gradient(#eff2ce,#ccddb1);border:1px solid #fff3cc;box-shadow:0 4px 0 #274a3966,0 8px 20px #17392d33;color:#355c45;font-size:12px;font-weight:700;white-space:nowrap;pointer-events:auto}
#together-walk.active{background:var(--ui-glass);color:#f8edcc;border-color:#e1deb280}
#hud:has(#together-walk:not(.hidden)) #interact{bottom:calc(155px + var(--safe-bottom))}
#chat-history,.chatting #chat-history{display:block;top:auto;bottom:calc(160px + var(--safe-bottom));left:16px;width:min(244px,62vw);max-height:48dvh}
#chat-history.recent{background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;overflow:visible;pointer-events:none}
#chat-history.recent #history-toggle{width:fit-content;min-height:32px;padding:7px 10px;margin-bottom:7px;border:1px solid #fff4cd49;border-radius:20px;background:#23463d93;pointer-events:auto;font-size:9px}
#chat-history.recent #history-toggle:after{margin-left:12px;transform:rotate(225deg)}
#chat-history.recent #history-body{border:0;max-height:240px;overflow:visible;pointer-events:none}
#chat-history.recent #history-messages{overflow:visible;padding:0;pointer-events:none}
#chat-history.recent .history-entry{width:fit-content;max-width:100%;background:var(--ui-glass);border:1px solid #e7f8dd57;box-shadow:inset 0 1px 0 #ffffff38,0 5px 16px #0a293127;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:17px 17px 17px 4px;padding:8px 11px;transition:opacity .2s}
#chat-history.recent .history-entry.mine{margin-left:14px;background:linear-gradient(135deg,#c4e3b332,#dcefd610),#214c40a3;border-radius:17px 17px 4px 17px}
#chat-history.recent .history-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px}#chat-history.recent time{display:none}
#chat-history.expanded{pointer-events:auto}#chat-history.expanded #history-body{max-height:min(300px,37dvh)}
.chat-layer .chat-sheet{height:auto!important;min-height:0;max-height:calc(var(--visible-height) - 90px);background:none!important;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;padding:0;overflow:visible;animation:message-pop .22s ease-out}
.chat-sheet:before,.chat-sheet>.sheet-header{display:none}.chat-sheet .chat-form{padding:6px;border:1px solid #e9f8d878;border-radius:27px;background:var(--ui-glass);box-shadow:inset 0 1px 0 #ffffff36,0 7px 25px #143a3330;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);align-items:center;gap:5px}
.chat-sheet .chat-form input{background:transparent;border:0;box-shadow:none;margin:0;min-height:40px;padding:8px 11px;color:#fff9e9}.chat-sheet .chat-form button{min-height:38px;width:39px;height:39px;padding:0;border-radius:50%;font-size:22px;box-shadow:0 2px 0 #142d2a66}
.chat-sheet .quick-replies{justify-content:center;margin:7px 0 0;gap:6px}.chat-sheet .quick-replies button{background:#24473bbd;border-color:#edf2cc40;color:#f3edcf}.chat-sheet .form-error{background:#24473bee;border-radius:16px;padding:5px 10px}
.chatting #chat-history{bottom:calc(var(--chat-height) + var(--keyboard-height) + 75px + var(--safe-bottom))}
.chatting #together-walk{bottom:calc(var(--chat-height) + var(--keyboard-height) + 22px + var(--safe-bottom))}
.chatting #controls{bottom:calc(var(--chat-height) + var(--keyboard-height) + 25px + var(--safe-bottom))}
.chatting #scene{bottom:var(--keyboard-height);right:0}
#app[data-ui-quality="low"] #chat-history.recent{background:none}#app[data-ui-quality="low"] .history-entry,#app[data-ui-quality="low"] .chat-form{backdrop-filter:none;-webkit-backdrop-filter:none;background:#21483de0}
@keyframes game-sheet-in{from{opacity:0;transform:translateY(22px) scale(.97)}to{opacity:1;transform:none}}
@keyframes message-pop{from{opacity:0;transform:translateY(7px) scale(.97)}to{opacity:1;transform:none}}
@keyframes toast-pop{from{opacity:0;scale:.94;translate:0 -6px}to{opacity:1;scale:1;translate:0 0}}
#app[data-ui-motion="off"] *,#app[data-ui-motion="off"] *:before,#app[data-ui-motion="off"] *:after{animation:none!important;transition:none!important}#app[data-ui-motion="off"] #discovery{opacity:1}
#app[data-ui-quality="low"] .glass,#app[data-ui-quality="low"] #chat-history,#app[data-ui-quality="low"] .sheet,#app[data-ui-quality="low"] .game-footer button,#app[data-ui-quality="low"] #controls button{backdrop-filter:none;-webkit-backdrop-filter:none}#app[data-ui-quality="low"] #chat-history,#app[data-ui-quality="low"] .chat-sheet{background:#20483de8}
@supports not (backdrop-filter:blur(1px)){#chat-history,.chat-layer .chat-sheet{background:#20483de8}}
@media(prefers-reduced-motion:reduce){#app *,#app *:before,#app *:after{animation:none!important;transition:none!important}}
@media(max-width:360px){.hud-header{left:12px;right:12px;gap:7px}.location-card{max-width:calc(100% - 96px);gap:6px;padding-right:8px}.location-card strong{font-size:12px}.trail-emblem{width:29px;height:29px}.header-actions{gap:6px}.header-actions .icon-btn{width:40px;height:40px}.location-card small{max-width:95px;font-size:7px}.trail-progress,#chat-history,#room-badge{left:14px}.home-copy h1{font-size:82px}}
@media(max-height:720px) and (orientation:portrait){.home-copy{top:14%}.home-copy h1{font-size:76px;margin:14px 0}.home-copy h1 span{font-size:15px}.home-copy p{font-size:11px}.start-card{padding:14px 16px 19px}#chat-history{top:calc(238px + var(--safe-top))}#history-body{max-height:110px}#controls .right-controls{gap:7px}.chatting #controls .right-controls{gap:6px}.chatting #controls button{width:40px;height:40px;min-height:40px;border-radius:15px}.chatting #controls #photo-open{width:44px;height:44px}.chatting #controls #view-mode{height:28px;min-height:28px;width:48px}.chatting #controls button svg{width:18px;height:18px}.chatting #controls button:after{font-size:7px}}
@media(min-width:700px) and (min-height:600px){.home-copy h1{font-size:120px}.home-copy h1 span{font-size:23px}.location-card{max-width:320px;min-width:220px}.trail-progress,#room-badge,#walk-status,#chat-history{left:28px}#chat-history{width:244px}#history-body{max-height:190px}#controls{right:28px}.chat-layer .chat-sheet{height:350px}.chatting #controls{right:430px}}
@media(max-height:620px) and (orientation:landscape){.home-copy{top:23%;left:5%}.home-copy h1{font-size:64px;margin:9px 0}.home-copy h1 span{font-size:13px;margin-top:7px}.home-copy .eyebrow{font-size:8px;padding:4px 9px}.home-copy p{display:none}.start-card{padding:13px 15px 18px}.hud-header{top:12px}.location-card{min-height:53px}.trail-progress{top:76px}.trail-progress #trail-progress-label{display:none}#room-badge{top:128px}#walk-status,#reunite,.chatting #walk-status{top:160px;left:20px;right:auto}#chat-history{top:198px;width:190px}#history-body{max-height:max(0px,calc(100dvh - 265px))}#controls{bottom:18px}#controls .right-controls{gap:6px}#controls button{width:40px;height:40px;min-height:40px;border-radius:15px}#controls #photo-open{width:45px;height:45px}#controls button:after{font-size:7px}#controls button svg{width:19px;height:19px}.chat-layer .chat-sheet{height:min(290px,86dvh)}.chatting #controls{right:calc(min(360px,46vw) + 30px)}.chatting #scene{right:0}}

/* 전체 풍경 위의 대화: 작은 화면과 가로 모드에서도 큰 채팅 패널을 만들지 않는다. */
@media(max-height:720px) and (orientation:portrait){#chat-history{top:auto;bottom:calc(160px + var(--safe-bottom));max-height:38dvh}#chat-history.recent #history-body{max-height:180px}#chat-history.recent .history-entry{padding:6px 9px}.chatting #chat-history{bottom:calc(var(--chat-height) + var(--keyboard-height) + 72px + var(--safe-bottom));max-height:max(40px,calc(var(--visible-height) - 270px))}.chatting #chat-history.recent #history-body{max-height:140px;overflow:hidden}.chatting #controls{bottom:calc(var(--chat-height) + var(--keyboard-height) + 20px + var(--safe-bottom))}}
@media(min-width:700px) and (min-height:600px){#chat-history{top:auto;bottom:165px;width:260px}.chatting #chat-history{bottom:170px}.chatting #together-walk{bottom:105px}.chatting #controls{right:24px;bottom:150px}#modal-layer.chat-layer{width:410px;right:20px}}
@media(max-height:620px) and (orientation:landscape){#chat-history{top:auto;bottom:80px;width:235px;max-height:220px}#chat-history.recent #history-body{max-height:160px}.chatting #chat-history{top:auto;bottom:calc(var(--chat-height) + var(--keyboard-height) + 30px);left:auto;right:15px;width:225px;max-height:210px}.chatting #controls{right:calc(min(360px,46vw) + 30px);bottom:20px}#together-walk,.chatting #together-walk{left:25%;bottom:15px}.chatting #chat-history.recent #history-body{max-height:155px;overflow:hidden}}
.speech-bubble,.speech-bubble.mine{--speech-bg:#24493ee6;--speech-border:#ebf8dd7d;color:#fff7e0;box-shadow:inset 0 1px 0 #ffffff30,0 7px 22px #0e2b3740;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.speech-name,.speech-bubble.mine .speech-name{color:#e8d9a6}.speech-bubble.offscreen .speech-direction{color:#d5e5c5}.speech-bubble.offscreen .speech-direction:before{color:#e8d9a6}
#hud:has(#together-walk:not(.hidden)) #follow-walk,#hud:has(#together-walk:not(.hidden)) #auto-walk{display:none}

/* 채팅은 색을 입히지 않은 뿌연 유리로, 글자는 또렷하게. */
:root{--chat-frost:linear-gradient(145deg,#ffffff70,#ffffff0d 55%,#cdd0d51c),#eceef0eb;--chat-ink:#36404a;--chat-border:#ffffffd9}
#chat-history.recent .history-entry,#chat-history.recent .history-entry.mine,.chat-sheet .chat-form,.game-footer button{background:var(--chat-frost);border:1px solid var(--chat-border);color:var(--chat-ink);box-shadow:inset 0 1px 0 #fff,0 5px 18px #15202e26;backdrop-filter:blur(18px) saturate(.2);-webkit-backdrop-filter:blur(18px) saturate(.2)}
#chat-history.recent .history-entry{border-radius:18px 18px 18px 5px}#chat-history.recent .history-entry.mine{border-radius:18px 18px 5px 18px}
#chat-history.recent .history-name,#chat-history.recent .history-entry.mine .history-name{display:block;color:#707883;font-size:9px;margin-bottom:4px}
#chat-history.recent .history-text,#chat-history.recent .history-entry.mine .history-text{color:var(--chat-ink);text-shadow:none}
.speech-bubble,.speech-bubble.mine{--speech-bg:#eceef0f0;--speech-border:#ffffffd9;color:var(--chat-ink);box-shadow:inset 0 1px 0 #fff,0 6px 20px #15202e26;backdrop-filter:blur(18px) saturate(.2);-webkit-backdrop-filter:blur(18px) saturate(.2)}
.speech-name,.speech-bubble.mine .speech-name{color:#6b7480}.speech-bubble.offscreen .speech-direction,.speech-bubble.offscreen .speech-direction:before{color:#697582}
.chat-sheet .chat-form input{color:var(--chat-ink)}.chat-sheet .chat-form input::placeholder{color:#7a828b}.chat-sheet .chat-form button{background:linear-gradient(#fff,#e1e4e8);border-color:#fff;color:#465361;box-shadow:0 2px 0 #9ba3ac55}
.chat-sheet .quick-replies button{background:#e9ecf0ed;border-color:#ffffffbd;color:#535e6a}.game-footer .chat-icon{color:#687482;background:#ffffff61}.chat-sheet .form-error{background:#f4eeebeF;color:#934e41!important}
#app[data-ui-quality="low"] #chat-history.recent .history-entry,#app[data-ui-quality="low"] .chat-form,#app[data-ui-quality="low"] .speech-bubble{background:#eceef0;backdrop-filter:none;-webkit-backdrop-filter:none}

/* 풍경 전체 폭 안에서 상대는 왼쪽, 나는 오른쪽. */
#chat-history.recent,.chatting #chat-history.recent{left:16px;right:88px;width:auto;max-width:560px}
#chat-history.recent #history-messages{display:flex;flex-direction:column;gap:8px}
#chat-history.recent .history-entry{align-self:flex-start;max-width:80%;margin:0}
#chat-history.recent .history-entry.mine{align-self:flex-end;margin:0;background:linear-gradient(145deg,#fffdf4f5,#eee9dff0)}
#chat-history.recent .history-entry.mine .history-name{text-align:right}
#chat-history.recent .history-entry[hidden]{display:none}
#photo-album{position:absolute;z-index:65;top:calc(12px + var(--safe-top));left:12px;right:12px;max-width:540px;margin:auto;padding:12px;border:1px solid #ffffffde;border-radius:23px;background:var(--chat-frost);color:var(--chat-ink);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 12px 40px #17233238;max-height:calc(100dvh - 125px - var(--safe-top));overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
.album-header{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:12px}.album-header>span{flex:1;font-weight:600}.album-header button,.album-actions button{border:1px solid #fff;border-radius:13px;background:#ffffffad;color:#46515c;padding:10px 12px;font:inherit;min-height:40px}.album-header button:last-child{font-size:22px;padding:4px 12px}
.album-main img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:13px;background:#cdd2d6}.album-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.album-grid button{padding:0;background:#fff9;border:0;border-radius:10px;overflow:hidden;color:#46515c}.album-grid img{width:100%;aspect-ratio:4/3;display:block}.album-grid span{display:block;padding:7px 3px;font-size:9px}
.album-thumbnails{display:flex;gap:7px;margin-top:10px}.album-thumbnails button{width:25%;padding:2px;border:2px solid transparent;border-radius:10px;background:#ffffff55}.album-thumbnails button[aria-pressed="true"]{border-color:#748894;background:#fff}.album-thumbnails img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;display:block}.album-caption{text-align:center;font-size:11px;color:#65717c;margin:9px 0}.album-actions{display:flex;gap:7px}.album-actions button{flex:1;font-size:11px;padding:10px 5px}.album-actions button:last-child{background:#dce3e8;color:#334956}
#photo-flash{position:absolute;inset:0;z-index:70;pointer-events:none;box-shadow:inset 0 0 65px 22px #fff9;background:#fff1;display:flex;align-items:center;justify-content:center;color:white;font-size:20px;text-shadow:0 2px 10px #0008}
#controls #album-open{width:38px;height:32px;min-height:32px;font-size:21px;border-radius:12px;align-self:center;background:var(--chat-frost);color:var(--chat-ink)}
@media(min-width:700px){#chat-history.recent,.chatting #chat-history.recent{left:24px;right:100px;max-width:500px}}
@media(max-height:620px) and (orientation:landscape){#photo-album{left:auto;right:12px;width:310px;max-height:calc(100dvh - 24px)}#chat-history.recent,.chatting #chat-history.recent{left:16px;right:auto;width:42vw;max-width:360px}.album-main img{max-height:32dvh}.album-thumbnails{display:none}}

/* 행동은 상단 두 줄로 모으고, 아래 풍경의 좌우 폭은 대화에 돌려준다. */
#hud .hud-header{top:calc(10px + var(--safe-top));left:12px;right:12px;gap:8px}
#hud .location-card{min-height:44px;height:44px;min-width:0;max-width:calc(100% - 100px);padding:6px 10px;gap:7px;border-radius:18px}
#hud .location-card strong{font-size:13px}#hud .location-card small{font-size:8px}#hud .trail-emblem{width:27px;height:27px;flex:none}#hud .header-actions{padding:0;gap:6px}#hud .header-actions .icon-btn{width:44px;height:44px}
#hud #controls,.chatting #hud #controls{top:calc(63px + var(--safe-top));left:12px;right:12px;bottom:auto;width:auto;pointer-events:none}
#hud #controls .right-controls{flex-direction:row;justify-content:flex-end;align-items:center;gap:6px;pointer-events:none}
#hud #controls button,#hud #controls #photo-open,#hud #controls #album-open,#hud #controls #view-mode{position:relative;flex:none;width:44px;height:44px;min-height:44px;border-radius:15px;pointer-events:auto}
#hud #controls button svg{width:20px;height:20px}#hud #controls button:after{font-size:8px}#hud #controls #view-mode{font-size:9px}
#hud #controls #together-walk{position:relative;inset:auto;transform:none;width:auto;max-width:96px;height:44px;padding:8px 12px;font-size:10px;white-space:normal}
#hud .trail-progress{top:calc(117px + var(--safe-top));left:12px;right:12px;width:auto;padding:6px 10px;border-radius:12px}
#hud .trail-progress>div:first-child{margin-bottom:4px;font-size:8px}#hud .progress-track{height:3px}#hud #trail-progress-label,#hud #trail-milestones{display:none}
#hud #room-badge{top:calc(158px + var(--safe-top));left:12px;max-width:55%;font-size:8px;padding:4px 7px}
#hud #walk-status,#hud #reunite,.chatting #hud #walk-status{top:calc(158px + var(--safe-top));left:auto;right:12px;max-width:42%;padding:4px 7px;font-size:8px}
#chat-history.recent,.chatting #chat-history.recent{--history-top:190px;top:auto;left:12px;right:12px;bottom:calc(89px + var(--safe-bottom));width:auto;max-width:none;height:max(0px,calc(var(--visible-height) - var(--history-top) - 89px - var(--safe-top) - var(--safe-bottom)));max-height:none;overflow:hidden;border-radius:0;mask-image:linear-gradient(to bottom,transparent,#0004 16%,#0009 45%,#000e 78%,#000);-webkit-mask-image:linear-gradient(to bottom,transparent,#0004 16%,#0009 45%,#000e 78%,#000)}
.chatting #chat-history.recent{bottom:calc(var(--chat-height) + var(--keyboard-height) + 18px + var(--safe-bottom));height:max(0px,calc(var(--visible-height) - var(--history-top) - var(--chat-height) - 18px - var(--safe-top) - var(--safe-bottom)))}
#chat-history.recent #history-body,.chatting #chat-history.recent #history-body{display:flex;flex-direction:column;justify-content:flex-end;height:100%;max-height:none;overflow:visible}
#chat-history.recent #history-messages{flex:0 0 auto;min-height:0;gap:6px;overflow:visible;padding:0}
#chat-history.recent .history-entry,#chat-history.recent .history-entry.mine{flex:none;max-width:82%;padding:7px 10px;background:#f1f3f5c9;border-color:#ffffff8c;box-shadow:inset 0 1px 0 #ffffff70,0 3px 10px #14203212;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
#chat-history.recent .history-entry.mine{background:#f4f0e8cc}#chat-history.recent .history-name{margin-bottom:2px;font-size:9px}#chat-history.recent .history-text{display:block;overflow:visible;font-size:12px;line-height:1.45;-webkit-line-clamp:unset}
#app.keyboard-open #chat-history.recent{--history-top:116px}#app.keyboard-open .trail-progress,#app.keyboard-open #room-badge,#app.keyboard-open #walk-status,#app.keyboard-open #reunite{visibility:hidden}
#hud #interact,#hud:has(#together-walk:not(.hidden)) #interact{bottom:calc(94px + var(--safe-bottom));font-size:10px;padding:8px 12px}.chatting #hud #interact{display:none}
@media(min-width:700px){#hud .hud-header{right:24px;left:24px}#hud #controls,.chatting #hud #controls{left:auto;right:24px;top:calc(63px + var(--safe-top))}#hud .trail-progress{right:auto;width:210px}#chat-history.recent,.chatting #chat-history.recent{left:24px;right:24px;max-width:none}.chatting #modal-layer.chat-layer{left:24px;right:24px;width:auto;max-width:none}.chat-layer .chat-sheet{max-width:none;width:100%}}
@media(max-height:500px) and (orientation:landscape){#hud .hud-header{right:auto;width:260px}#hud #controls,.chatting #hud #controls{left:290px;right:12px;top:calc(10px + var(--safe-top))}#hud .trail-progress{top:calc(64px + var(--safe-top));width:240px;right:auto}#hud #room-badge{top:calc(66px + var(--safe-top));left:280px}#hud #walk-status,#hud #reunite{top:calc(66px + var(--safe-top));max-width:30%}#chat-history.recent,.chatting #chat-history.recent{--history-top:106px;left:12px;right:12px;width:auto}#hud #interact{display:none}}

/* 진행도와 설정은 접어 두고, 펼친 항목은 위에서부터 가볍게 따라 나온다. */
#hud-menu-toggle{position:absolute;z-index:52;top:calc(12px + var(--safe-top));right:12px;width:46px;height:46px;border-radius:17px;border:1px solid #ffffff7a;background:#eef2f25c;color:#354d51;box-shadow:inset 0 1px 0 #ffffff6b,0 4px 18px #172b3920;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;pointer-events:auto}
#hud-menu-toggle span{display:block;width:19px;height:2px;border-radius:2px;background:currentColor;transition:transform .22s,opacity .18s}
#hud-menu-toggle[aria-expanded="true"]{background:#edf1f1b8}#hud-menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}#hud-menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}#hud-menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
#hud #hud-menu{position:absolute;z-index:51;top:calc(66px + var(--safe-top));right:12px;width:min(330px,calc(100% - 24px));max-height:calc(var(--visible-height) - 82px - var(--safe-top));overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:12px;display:flex;flex-direction:column;gap:10px;border:1px solid #ffffff9c;border-radius:24px;background:#eef2efe0;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:inset 0 1px 0 #ffffffaa,0 12px 35px #152d3438;transform-origin:top right;transform:translateY(-12px) scale(.95);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s,transform .25s cubic-bezier(.2,.8,.2,1),visibility 0s .25s}
#hud.menu-open #hud-menu{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition-delay:0s}
#hud #hud-menu .hud-header{position:static;inset:auto;width:auto;display:flex;gap:8px;align-items:center}
#hud #hud-menu .location-card{flex:1;max-width:none;background:#fff9;border-color:#fff;color:#3e5550;box-shadow:none}
#hud #hud-menu .header-actions{gap:5px}#hud #hud-menu .header-actions .icon-btn{width:40px;height:44px}
#hud #hud-menu .trail-progress{position:static;inset:auto;width:auto;margin:0;padding:8px 10px;background:#45645413;color:#40564e;text-shadow:none;border-color:#6a877d22;box-shadow:none;visibility:visible}
#hud #hud-menu #distance-label{color:#5b705c}#hud #hud-menu .progress-track{background:#2b493924}#hud #hud-menu .progress-track i{background:linear-gradient(90deg,#93af97,#c7b987);box-shadow:none}
#hud #hud-menu #room-badge,#hud #hud-menu #walk-status,#hud #hud-menu #reunite{position:static;inset:auto;width:auto;max-width:none;margin:0;align-self:flex-start;visibility:visible;background:#ffffff6e;color:#526660;border-color:#fff8;font-size:9px}
#hud #hud-menu #menu-actions{position:static;inset:auto;width:auto;margin:0;order:2}
#hud #hud-menu #menu-actions{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:7px}
#hud #hud-menu #menu-actions:not(:has(> button:not(.hidden))){display:none}
#hud #hud-menu #menu-actions button{box-shadow:inset 0 1px 0 #fff9,0 2px 4px #223b2714}
#hud.menu-open #hud-menu>*,#hud.menu-open #hud-menu #menu-actions button{animation:hud-unfold .32s cubic-bezier(.16,.8,.25,1) both}
#hud.menu-open #hud-menu>.trail-progress{animation-delay:.04s}#hud.menu-open #hud-menu>#room-badge{animation-delay:.08s}#hud.menu-open #hud-menu>#menu-actions{animation-delay:.09s}
#hud.menu-open #hud-menu #menu-actions button:nth-child(2){animation-delay:.10s}#hud.menu-open #hud-menu #menu-actions button:nth-child(3){animation-delay:.14s}
@keyframes hud-unfold{from{opacity:0;transform:translateY(-9px) scale(.94)}to{opacity:1;transform:none}}
#app #chat-history.recent,#app.keyboard-open #chat-history.recent{--history-top:72px}
#app[data-ui-quality="low"] #hud-menu,#app[data-ui-quality="low"] #hud-menu-toggle{backdrop-filter:none;-webkit-backdrop-filter:none}
#app:has(#hud.menu-open) #toast{visibility:hidden}

/* English words need a little more room than the Korean wordmark. */
html[lang="en"] .home-copy h1{font-size:clamp(46px,13vw,86px);letter-spacing:0}
html[lang="en"] .home-copy h1 span{font-size:15px;letter-spacing:.2px}
html[lang="en"] .home-copy .eyebrow{letter-spacing:.7px}
html[lang="en"] .location-card strong{font-size:14px}
html[lang="en"] .sheet-header h2{font-size:20px}
html[lang="en"] .npc-quote{font-size:18px!important;line-height:1.65!important}
html[lang="en"] #interact{max-width:calc(100% - 24px);white-space:normal;text-align:center}
html[lang="en"] .setting-row>span,html[lang="en"] .setting-row>label{min-width:0}
html[lang="en"] .setting-row>button,html[lang="en"] .setting-row>select{flex-shrink:0}
@media(max-height:620px) and (orientation:landscape){html[lang="en"] .home-copy h1{font-size:48px}}

/* 걷기 · 인사 · 사진 · 시점: 채팅 바로 위 한 줄, 채팅 오른쪽 끝에 맞춘다. */
#hud #controls,.chatting #hud #controls{position:absolute;top:auto;left:auto;right:var(--actions-right,18px);bottom:var(--actions-bottom,90px);width:max-content;transform:none;transition:bottom .12s ease-out}
#hud #controls .right-controls{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;gap:6px}
#hud #controls button{margin:0;padding:5px;border:1px solid #ffffffb3;background:var(--chat-frost);color:var(--chat-ink);box-shadow:inset 0 1px 0 #fff9,0 3px 12px #15202e20}
#hud #controls button.active{background:linear-gradient(#e4eee2ed,#c1d4c3ed);border-color:#f7fff4;color:#345d41}
#hud #hud-menu #menu-actions button{position:static;inset:auto;transform:none;min-height:44px;min-width:44px;padding:8px 12px;border-radius:15px;border:1px solid #ffffffb3;background:var(--chat-frost);color:var(--chat-ink);font-size:11px;pointer-events:auto}
#hud #hud-menu #menu-actions button svg{width:20px;height:20px}
#hud #hud-menu #menu-actions button.active{background:#d0e0d2;color:#345d41}
#hud #chat-history.recent,.chatting #hud #chat-history.recent{bottom:calc(var(--actions-bottom,90px) + 56px);height:max(0px,calc(100% - var(--actions-bottom,90px) - 56px - 72px - var(--safe-top)))}
#hud #interact,#hud:has(#together-walk:not(.hidden)) #interact{bottom:calc(var(--actions-bottom,90px) + 56px)}

/* A small fitting room: preview above, one group of controls at a time. */
.avatar-settings{padding:15px 0;border-bottom:1px solid #a7b68d33;font-size:12px}
.avatar-entry-actions{display:flex;gap:8px}.avatar-entry-actions .secondary{flex:1;width:auto;margin-top:10px}
#modal-layer.avatar-layer{z-index:60;align-items:center;background:#20313e55;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);padding:12px 12px calc(12px + var(--safe-bottom))}
.avatar-layer .sheet{display:flex;flex-direction:column;width:100%;max-width:490px;max-height:calc(var(--visible-height) - 24px - var(--safe-bottom));padding:16px;overflow:hidden;background:linear-gradient(155deg,#fffdf8f7,#edf0f4f5);border-color:#fff;border-radius:28px;box-shadow:0 18px 65px #152b3e40}
.avatar-layer .sheet:before{display:none}.avatar-layer .sheet-header{flex:none;margin:0 0 10px}.avatar-layer .sheet-header h2{color:#41505d;font-size:20px}.avatar-layer .sheet-close{background:#e1e6eb;border-color:#fff;color:#52616e}
#avatar-editor{display:flex;flex-direction:column;min-height:0;color:#45525f}
.avatar-preview{position:relative;flex:none;height:clamp(150px,27dvh,235px);border:1px solid #fff;border-radius:22px;background:radial-gradient(ellipse at 50% 75%,#fffaf0,#e5eaf0 75%);overflow:hidden}
.avatar-canvas{position:absolute;inset:0;touch-action:none;cursor:grab}.avatar-canvas:active{cursor:grabbing}.avatar-canvas canvas{display:block;width:100%;height:100%}
.avatar-hint{position:absolute;top:12px;left:13px;font-size:9px;color:#7c8792;pointer-events:none}
.avatar-view-actions{position:absolute;right:9px;bottom:8px;display:flex;gap:5px}.avatar-view-actions button{min-width:32px;min-height:32px;padding:5px 9px;border:1px solid #fff;border-radius:12px;background:#ffffffb8;color:#586879;font-size:10px}
.avatar-tools{display:flex;justify-content:space-between;gap:8px;flex:none;margin:9px 0}.avatar-tools button{padding:8px 12px;border:1px solid #fff;border-radius:12px;background:#e5eaf0;color:#536574;font-size:11px;min-height:36px}
.avatar-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;flex:none;padding:4px;border-radius:17px;background:#dde3e9}
.avatar-tabs button{border:1px solid transparent;border-radius:13px;background:transparent;padding:6px 2px;font-size:10px;color:#6c7986;display:grid;gap:2px;justify-items:center;min-height:44px}.avatar-tabs button span{font-size:16px;line-height:17px}.avatar-tabs button[aria-selected="true"]{background:#fff;border-color:#fff;color:#384c5e;box-shadow:0 2px 7px #42556913}
.avatar-options{min-height:75px;flex:1;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:12px 2px 8px;scrollbar-width:thin}
.avatar-options section{margin-bottom:13px}.avatar-options h3{font-size:11px;font-weight:600;margin:0 0 9px}
.avatar-palette{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.avatar-swatch{position:relative;width:32px;height:32px;min-width:32px;min-height:32px;background:var(--swatch);border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #b3bdc655}
.avatar-swatch[aria-pressed="true"]{box-shadow:0 0 0 2px #55738b,0 2px 6px #415e7830}.avatar-swatch[aria-pressed="true"]:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:14px;text-shadow:0 1px 3px #000,0 0 3px #000}
.avatar-custom-color{position:relative;display:grid;place-items:center;width:32px;height:32px;border:1px solid #bac7d2;border-radius:50%;background:conic-gradient(#eab3b7,#e9d5a9,#b5d6bf,#b5c8e7,#d2b5df,#eab3b7);color:#425771;font-size:21px;overflow:hidden}
.avatar-options .avatar-custom-color input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}
.avatar-hair-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:16px}.avatar-hair-options button{display:grid;justify-items:center;gap:5px;min-height:56px;padding:7px 2px;border:1px solid #d8e0e7;border-radius:14px;background:#f4f6f8;color:#627080;font-size:9px}.avatar-hair-options button span{font-size:21px;color:#786956}.avatar-hair-options button[aria-pressed="true"],.avatar-face button[aria-pressed="true"],.avatar-view-actions button[aria-pressed="true"]{border-color:#7c98ae;background:#e0eaf2;color:#314d65}
.avatar-range-label{display:flex;justify-content:space-between;font-size:11px;font-weight:600}.avatar-range-label output{font-weight:400;color:#8293a2;font-variant-numeric:tabular-nums}
.avatar-options input[type="range"]{display:block;width:100%;height:30px;min-height:30px;padding:0;margin:5px 0 0;background:transparent;border:0;accent-color:#718fa4;cursor:pointer;touch-action:pan-y}
.avatar-range-ends{display:flex;justify-content:space-between;font-size:9px;color:#8a96a0}
.avatar-face{display:flex;gap:7px}.avatar-face button{padding:8px 18px;min-height:36px;border:1px solid #d2dce4;border-radius:12px;background:#f5f7f9;color:#637382;font-size:11px}
#avatar-error{flex:none;color:#a35650;margin:0;font-size:11px;line-height:1.5}#avatar-error:empty{display:none}
.avatar-footer{display:flex;gap:8px;padding-top:10px;flex:none;border-top:1px solid #d4dce4}.avatar-footer button{min-height:44px;border-radius:15px;border:1px solid #fff;background:#e0e6ec;color:#596b7b;font-size:12px;padding:10px 18px}.avatar-footer #avatar-apply{flex:1;background:linear-gradient(#849cad,#627e94);color:#fff;box-shadow:inset 0 1px 0 #ffffff69,0 3px 0 #4a63782b}
#avatar-editor button:disabled,#avatar-editor input:disabled{opacity:.55;cursor:wait}#avatar-editor button:focus-visible,#avatar-editor input:focus-visible{outline:2px solid #668ba9;outline-offset:3px}
@media(max-height:660px){.avatar-preview{height:155px}.avatar-layer .sheet{padding:12px}.avatar-tools{margin:6px 0}.avatar-options{padding-top:8px}.avatar-footer{padding-top:7px}}
@media(max-height:460px) and (orientation:landscape){.avatar-layer .sheet{max-width:700px}#avatar-editor{display:grid;grid-template-columns:40% 1fr;grid-template-rows:auto minmax(60px,1fr) auto;gap:8px;min-height:0}.avatar-preview{grid-column:1;grid-row:1/3;height:auto;min-height:160px}.avatar-tools{grid-column:1;grid-row:3;margin:0;align-self:center}.avatar-tabs{grid-column:2;grid-row:1}.avatar-options{grid-column:2;grid-row:2;padding:5px 2px}#avatar-error{grid-column:1;grid-row:4}.avatar-footer{grid-column:2;grid-row:3;padding-top:5px}.avatar-options section{margin-bottom:8px}.avatar-hair-options{margin-bottom:10px}}
#app:has(.avatar-layer:not(.hidden)) #toast{visibility:hidden}
.avatar-tabs button span svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.avatar-hair-options button span svg{display:block;width:28px;height:28px;overflow:visible}
#app:has(.avatar-layer:not(.hidden)) #hud{visibility:hidden}
.avatar-options input[type="range"]{appearance:none;-webkit-appearance:none;height:36px;min-height:36px}
.avatar-options input[type="range"]::-webkit-slider-runnable-track{height:5px;border-radius:5px;background:#c7d3dd}
.avatar-options input[type="range"]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:24px;height:24px;margin-top:-9.5px;border:3px solid #fff;border-radius:50%;background:#718fa4;box-shadow:0 1px 5px #3e5a7244}
.avatar-options input[type="range"]::-moz-range-track{height:5px;border-radius:5px;background:#c7d3dd}
.avatar-options input[type="range"]::-moz-range-thumb{width:18px;height:18px;border:3px solid #fff;border-radius:50%;background:#718fa4;box-shadow:0 1px 5px #3e5a7244}
#app:has(.avatar-layer:not(.hidden)) #hud{overflow:clip}

/* 항목명과 도움말은 안내, 실제 이름과 선택값은 주 정보. */
.settings-sheet .setting-row{gap:14px;min-height:66px;padding:15px 0;font-size:12px;line-height:1.5}
.settings-sheet .setting-row>span,.settings-sheet .setting-row>label{min-width:0;color:#5e7067;font-weight:500}
.settings-sheet .setting-row span small{font-size:11px;line-height:1.55;font-weight:400;color:#748077;margin-top:5px}
.settings-sheet .setting-row button,.settings-sheet .setting-row select{flex-shrink:0;min-height:44px;padding:9px 13px;font-size:14px;font-weight:650;line-height:1.35;color:#344e40}
.settings-sheet .setting-row button[aria-pressed="true"]{background:#cedecb;border-color:#a8c09f;color:#2d4c32}
.settings-sheet .profile-setting{padding:15px 0 18px;gap:12px;min-height:82px}
.settings-sheet .setting-copy{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.settings-sheet .setting-label{font-size:11px;line-height:1.4;font-weight:400;color:#6e7c73}
.settings-sheet #profile-current{display:block;font-size:20px;line-height:1.4;font-weight:700;color:#30483b;letter-spacing:-.4px;overflow-wrap:anywhere}
.settings-sheet #edit-profile{font-size:12px;font-weight:500}
.settings-sheet .avatar-settings>span{font-size:11px;font-weight:400;color:#6e7c73}
.settings-sheet .avatar-entry-actions .secondary{font-size:13px;font-weight:600;min-height:44px;line-height:1.4;padding:12px 10px}
.settings-sheet .season-setting{padding:14px 0}
.settings-sheet .season-setting summary{display:flex;align-items:center;gap:12px;min-height:28px;list-style:none}
.settings-sheet .season-setting summary::-webkit-details-marker{display:none}
.settings-sheet .season-setting summary .setting-value{margin-left:auto;font-size:15px;line-height:1.4;font-weight:650;color:#344e40}
.settings-sheet .season-setting summary:after{content:'⌄';font-size:15px;color:#748077;transition:transform .2s}
.settings-sheet .season-setting[open] summary:after{transform:rotate(180deg)}
.settings-sheet .fine{font-size:11px;line-height:1.65;color:#748077}
.profile-sheet #profile-form>label{display:block;margin-bottom:7px;font-size:11px;font-weight:400;line-height:1.5;color:#6e7c73}
.profile-sheet #profile-name{font-size:18px;font-weight:650;line-height:1.5;min-height:54px;color:#30483b}
.avatar-range-label{font-weight:500;color:#667785}
.avatar-range-label output{font-size:14px;font-weight:650;color:#364f64;line-height:1.2}

/* Every action has a visible control surface; icons remain decorative. */
.has-control-icon{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.has-control-icon:before{content:'';display:block;flex:none;width:17px;height:17px;background:currentColor;mask-image:var(--control-icon);-webkit-mask-image:var(--control-icon);mask-size:contain;-webkit-mask-size:contain;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;pointer-events:none}
#app button,#app summary,#app select{cursor:pointer;-webkit-tap-highlight-color:transparent}
#app button:disabled,#app select:disabled{cursor:default;opacity:.5}
#app button:focus-visible,#app summary:focus-visible,#app select:focus-visible{outline:3px solid #809eae;outline-offset:3px}
#app button:not(:disabled):active,#app summary:active{filter:brightness(.94)}
#app[data-ui-motion="on"] button:not(:disabled):active,#app[data-ui-motion="on"] summary:active{scale:.97}
@media(hover:hover){#app button:not(:disabled):hover,#app summary:hover{filter:brightness(1.04)}}
.sheet .text-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;width:100%;border:1px solid #b9c9b366;border-radius:14px;background:#e7eddfb3;margin-top:8px;padding:10px 12px;line-height:1.4;text-decoration:none}
.sheet-close{min-width:44px;min-height:44px}
.settings-sheet .season-setting summary{padding:11px 12px;border:1px solid #bdcbb5;border-radius:14px;background:#e3ead6;box-shadow:inset 0 1px 0 #fff8;min-height:46px;color:#526c50}
.settings-sheet .season-setting[open] summary{background:#d6e2cc;border-color:#9eb895}
.settings-sheet .select-control{position:relative;flex:none;display:inline-flex;min-width:110px;max-width:58%;color:#49654b}
.settings-sheet .select-control:before{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:17px;height:17px;z-index:1;pointer-events:none}
.settings-sheet .select-control select{width:100%;max-width:100%;padding-left:35px;padding-right:9px}
.settings-sheet .setting-row button.has-control-icon{gap:6px;padding-inline:10px}
.settings-sheet #edit-profile{max-width:115px;line-height:1.35}
.settings-sheet .avatar-entry-actions button.has-control-icon{gap:6px;padding-inline:8px}
#hud #controls #view-mode{display:grid;gap:1px;justify-items:center;align-content:center;font-size:8px}
#hud #controls #view-mode:before{width:19px;height:19px}
.avatar-tools button.has-control-icon{gap:5px;padding-inline:9px}.avatar-tools .has-control-icon:before{width:15px;height:15px}
.avatar-view-actions button.has-control-icon{gap:4px}.avatar-view-actions .has-control-icon:before{width:14px;height:14px}
.avatar-face button.has-control-icon{gap:5px}
.avatar-range-label.has-control-icon{display:flex;justify-content:flex-start;gap:6px}.avatar-range-label.has-control-icon output{margin-left:auto}.avatar-range-label.has-control-icon:before{width:14px;height:14px;opacity:.8}
.avatar-swatch,.avatar-custom-color{width:36px;height:36px;min-width:36px;min-height:36px}.avatar-custom-color:focus-within{outline:3px solid #809eae;outline-offset:3px}
.avatar-options input[type="range"]{height:44px;min-height:44px}
.album-header button.has-control-icon{font-size:11px;gap:5px;padding-inline:9px}.album-header .has-control-icon:before{width:15px;height:15px}
.album-actions button.has-control-icon{flex-direction:column;gap:5px;min-height:58px}.album-actions .has-control-icon:before{width:18px;height:18px}
.album-thumbnails button{position:relative;cursor:pointer}.album-thumbnails button[aria-pressed="true"]:after{content:'✓';position:absolute;right:4px;bottom:4px;width:17px;height:17px;border-radius:50%;display:grid;place-items:center;background:#617f92;color:white;font-size:11px}
.quick-replies button.has-control-icon{min-height:36px;gap:4px;padding:7px 9px}.quick-replies .has-control-icon:before{width:14px;height:14px}
@media(prefers-reduced-motion:reduce){#app button:active,#app summary:active{scale:1!important}}

/* The introduction owns its scrolling surface; the game retains its fixed viewport. */
.welcome{--ink:#253c32;--paper:#f6f5ef;--muted:#788176;position:fixed;inset:0;z-index:100;background:var(--paper);color:var(--ink);overflow-y:auto;overflow-x:hidden;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;font-family:'Noto Sans KR',sans-serif;font-size:14px;scroll-behavior:smooth}
.welcome *{box-sizing:border-box}.welcome button,.welcome a{touch-action:manipulation}.welcome button{font:inherit;cursor:pointer}.welcome a{color:inherit;text-decoration:none}.welcome button:focus-visible,.welcome a:focus-visible{outline:3px solid #b29162;outline-offset:5px}.welcome h1,.welcome h2,.welcome h3,.welcome p{margin:0;word-break:keep-all}.welcome h1,.welcome h2{font-family:'Gowun Batang',serif;font-weight:400;letter-spacing:-.05em}.intro-header,.chooser-header{height:100px;padding:0 6%;display:flex;align-items:center;justify-content:space-between;gap:22px}.intro-brand{display:flex;align-items:center;gap:12px}.intro-brand svg{width:42px;height:30px;fill:none;stroke:currentColor;stroke-width:1.4}.intro-brand>span{font-family:'Gowun Batang',serif;font-size:27px;font-weight:700;letter-spacing:2px}.intro-brand small{display:block;font-family:sans-serif;font-size:8px;font-weight:400;letter-spacing:3.5px;margin-top:2px}.intro-header nav{display:flex;align-items:center;gap:32px;font-size:12px}.intro-header nav button{background:none;border:1px solid #cbd0c4;border-radius:30px;padding:9px 15px;font-size:11px}.intro-hero{height:min(780px,82dvh);min-height:530px;position:relative;margin:0 28px;overflow:hidden;border-radius:4px;background:#7a8b69}.intro-hero-image,.hero-shade{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.intro-hero-image{object-position:center 47%}.hero-shade{background:linear-gradient(90deg,#132c2c99,transparent 80%),linear-gradient(0deg,#20332e55,transparent 40%)}.hero-copy{position:absolute;inset:18% auto auto 7%;color:#fffef2}.intro-kicker{display:block;font-size:10px;letter-spacing:2.5px;line-height:1.6;font-weight:500}.hero-copy h1{font-size:clamp(48px,5.8vw,85px);line-height:1.3;margin:28px 0 24px;letter-spacing:-.065em}.hero-copy p{font-size:15px;line-height:2;color:#f6f6e8e0}.hero-explore{display:inline-flex;gap:35px;align-items:center;margin-top:35px;border-bottom:1px solid #fff8;padding:0 0 11px;font-size:12px}.hero-explore span{font-size:20px}.hero-caption{position:absolute;bottom:27px;left:7%;right:5%;display:flex;justify-content:space-between;gap:20px;color:#fff9;font-size:9px;letter-spacing:1.3px}.intro-note{max-width:850px;margin:auto;padding:110px 24px;text-align:center}.intro-note .intro-kicker{color:#889480}.intro-note h2{font-size:36px;margin:24px 0}.intro-note p{color:#7b8376;font-size:14px;line-height:2.1}.intro-facts{display:flex;justify-content:center;align-items:center;gap:23px;margin-top:35px;font-size:11px;color:#64745f}.intro-facts i{width:3px;height:3px;border-radius:50%;background:#a2ad97}.intro-places{padding:30px 7% 110px;scroll-margin-top:25px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:38px;gap:25px}.section-heading .intro-kicker{color:#8c947f}.section-heading h2{font-size:38px;margin-top:17px}.section-heading>p{color:#7d8579;font-size:12px;line-height:1.9}.place-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px 28px}.place-card{display:block;border:0;padding:0;background:none;text-align:left;color:inherit}.place-image{position:relative;aspect-ratio:1.38;overflow:hidden;background:#d4dac9;border-radius:3px}.place-image img{width:100%;height:100%;object-fit:cover;transition:transform .6s}.place-card:hover img{transform:scale(1.035)}.place-number{position:absolute;top:14px;left:16px;color:#fff;font-size:10px;letter-spacing:1px;text-shadow:0 1px 4px #0008}.place-arrow{position:absolute;right:12px;bottom:12px;border-radius:50%;width:32px;height:32px;background:#fff9;display:grid;place-items:center;font-size:18px;color:#334a3d}.place-copy{padding:22px 0 0}.place-copy>span{color:#919783;font-size:10px;letter-spacing:1px}.place-copy h3{font-family:'Gowun Batang',serif;font-size:25px;font-weight:400;margin:7px 0 10px}.place-copy p{font-size:12px;color:#78816f;line-height:1.85;max-width:330px}.place-copy small{display:block;margin-top:16px;font-size:10px;color:#556c51}.intro-fireside{display:grid;grid-template-columns:1.1fr 1fr;min-height:540px;background:#273d34;color:#f7f3e7;scroll-margin-top:20px}.fireside-photo{min-height:450px}.fireside-photo img{width:100%;height:100%;object-fit:cover}.fireside-copy{padding:75px 13% 65px}.fireside-copy .intro-kicker{color:#b9c1a8;font-size:9px}.fireside-copy h2{font-size:40px;line-height:1.5;margin:25px 0}.fireside-copy p{color:#c1c9b9;font-size:12px;line-height:2.2}.intro-link{background:none;color:#ebe5cd;padding:0 0 9px;border:0;border-bottom:1px solid #819080;margin-top:35px;font-size:12px!important}.fireside-small{display:block;color:#96a68f;font-size:10px;margin-top:22px}.intro-how{padding:110px 8% 90px;text-align:center}.intro-how>.intro-kicker{color:#8b937e}.intro-how h2{font-size:35px;margin:20px 0 55px}.intro-how>div{display:grid;grid-template-columns:repeat(3,1fr);gap:50px;max-width:1000px;margin:auto}.intro-how article>span{font-family:serif;font-style:italic;font-size:28px;color:#a8af96}.intro-how h3{font-size:15px;font-weight:500;margin:18px 0 14px}.intro-how article p{font-size:12px;color:#818877;line-height:1.9}.intro-keyboard{color:#a3a994;font-size:10px;margin-top:45px!important}.intro-footer{margin:0 7%;border-top:1px solid #dce0d2;padding:35px 0 145px;display:flex;align-items:center;justify-content:space-between;gap:30px}.intro-footer p{color:#8d9683;font-size:11px}.intro-footer>span{color:#a0a98f;font-size:8px;letter-spacing:1px}.walk-dock,.choose-dock{position:fixed;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:105;display:flex;align-items:center;justify-content:space-between;gap:32px;width:min(550px,calc(100% - 32px));padding:10px 10px 10px 25px;border:1px solid #fff8;border-radius:18px;background:#fbfbf1ef;box-shadow:0 8px 45px #243a3330;backdrop-filter:blur(16px)}.walk-dock strong{display:block;font-size:12px;font-weight:500}.walk-dock>div>span{display:block;font-size:10px;margin-top:5px;color:#8c9780}.walk-dock button,.choose-dock button{display:flex;align-items:center;justify-content:space-between;gap:30px;background:#345441;border:0;border-radius:12px;min-width:205px;min-height:58px;padding:16px 23px;color:#fffcef;font-size:16px;font-weight:500;box-shadow:0 3px 8px #203b3214}.walk-dock button:hover,.choose-dock button:hover{background:#45664c}.walk-dock button>span,.choose-dock button>span{font-size:24px;font-weight:400}.welcome button:disabled{opacity:.6;cursor:wait}.chooser-header{border-bottom:1px solid #e2e5da;height:90px}.chooser-header>button{background:none;font-size:12px;color:#7b8873}.chooser-main{max-width:1200px;padding:54px 35px 150px;margin:auto}.chooser-main>.intro-kicker{color:#879779}.chooser-main h1{font-size:37px;margin:18px 0 15px;outline:none}.chooser-lead{color:#849078;font-size:12px;line-height:1.9}.chooser-layout{display:grid;grid-template-columns:330px 1fr;gap:35px;margin-top:35px}.course-options{display:flex;flex-direction:column;gap:9px}.course-options button{display:flex;align-items:center;gap:15px;border:1px solid #dde2d6;border-radius:12px;background:#fff9;padding:9px;text-align:left;color:#40523d;min-height:78px}.course-options button[aria-pressed=true]{border-color:#5e7d54;background:#eef1e4;box-shadow:inset 0 0 0 1px #5e7d54}.course-options img{width:77px;height:60px;object-fit:cover;border-radius:6px}.course-options strong{display:block;font-size:13px;font-weight:500}.course-options small{display:block;color:#8c9982;font-size:10px;margin-top:6px}.course-options i{font-style:normal;margin-left:auto;margin-right:12px}.course-preview{border-radius:15px;overflow:hidden;background:#fffdfa;border:1px solid #e7e9df}.course-preview>img{width:100%;height:300px;object-fit:cover;display:block}.course-preview>div{padding:27px 30px}.course-preview .intro-kicker{color:#8d9b80;letter-spacing:1px;font-size:10px}.course-preview h2{font-size:30px;margin:12px 0 14px}.course-preview p{font-size:13px;line-height:1.85;color:#79856e;max-width:480px}.course-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:25px}.course-meta>span{font-size:10px;color:#67785e;background:#eff2e7;border-radius:5px;padding:8px 10px}.chooser-layout:not(:has(.course-options)){display:block;max-width:740px}.choose-dock{width:min(700px,calc(100% - 32px))}.choose-dock>span{font-size:12px;color:#76856b}.choose-dock button{min-width:260px}#launch-error{font-size:13px;color:#a2644d;margin-top:20px}.camp-seat-dock{position:absolute;left:50%;bottom:calc(160px + var(--safe-bottom));transform:translateX(-50%);pointer-events:auto;display:flex;gap:6px;align-items:center;background:#fff9e8e8;backdrop-filter:blur(12px);border:1px solid #fff8;border-radius:16px;padding:9px 12px;white-space:nowrap;z-index:6}.camp-seat-dock span{font-size:10px;margin-right:4px}.camp-seat-dock button{border-radius:10px;min-width:43px;min-height:42px;background:#e9ddc4;font-size:12px;padding:7px 10px;color:#62503b}.camp-seat-dock button[aria-pressed=true]{background:#856640;color:white}.camp-seat-dock button:disabled{opacity:.4}.camp-seat-dock .stand-up{background:#365f4b;color:#fff9e8;min-width:100px}.extra-peer-label{position:absolute;z-index:5;pointer-events:none}.intro-language button{background:none}
@media(min-width:1600px){.intro-places,.intro-how{max-width:1500px;margin:auto}.hero-copy{left:12%}}
@media(max-width:760px){.intro-header,.chooser-header{height:80px;padding:0 23px}.intro-brand{gap:9px}.intro-brand svg{width:31px}.intro-brand>span{font-size:23px}.intro-brand small{font-size:7px}.intro-header nav{gap:18px;font-size:10px}.intro-header nav a:nth-child(2){display:none}.intro-header nav button{padding:7px 11px}.intro-hero{margin:0 12px;min-height:570px;height:75dvh}.hero-copy{left:7%;right:6%;top:18%}.hero-copy h1{font-size:51px;margin:25px 0}.hero-copy p{font-size:12px;line-height:2.1}.hero-copy .intro-kicker{font-size:8px;letter-spacing:1.6px}.hero-caption{font-size:7px;left:7%;right:7%;letter-spacing:.7px}.hero-caption>span:last-child{max-width:100px;text-align:right;line-height:1.8}.hero-explore{font-size:10px;margin-top:28px}.intro-note{padding:75px 24px}.intro-note h2{font-size:27px;line-height:1.5}.intro-note p{font-size:12px}.intro-facts{gap:10px;font-size:9px;flex-wrap:wrap}.intro-places{padding:10px 24px 70px}.section-heading{display:block;margin-bottom:25px}.section-heading h2{font-size:30px;line-height:1.5}.section-heading>p{margin-top:15px;font-size:11px}.section-heading>p br{display:none}.place-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 16px}.place-image{aspect-ratio:1}.place-copy{padding-top:16px}.place-copy h3{font-size:21px}.place-copy>span{font-size:8px;letter-spacing:0}.place-copy p{font-size:10px;line-height:1.85}.place-copy small{font-size:8px;margin-top:12px}.place-number{font-size:8px;top:10px;left:12px}.place-arrow{width:27px;height:27px;right:8px;bottom:8px;font-size:16px}.intro-fireside{display:block}.fireside-photo{height:320px;min-height:0}.fireside-copy{padding:42px 28px 50px}.fireside-copy h2{font-size:33px}.fireside-copy p{font-size:12px}.intro-how{padding:70px 26px 60px}.intro-how h2{font-size:27px;line-height:1.6;margin-bottom:35px}.intro-how>div{display:block;text-align:left}.intro-how article{position:relative;padding:0 0 28px 50px}.intro-how article>span{position:absolute;left:0;top:0;font-size:24px}.intro-how h3{font-size:14px;margin:0 0 10px}.intro-how article p{font-size:11px}.intro-keyboard{font-size:9px;line-height:1.8;margin-top:12px!important}.intro-footer{display:flex;flex-wrap:wrap;margin:0 25px;gap:20px;padding-bottom:140px}.intro-footer>span{width:100%}.intro-footer p{font-size:10px;max-width:160px}.walk-dock{width:calc(100% - 24px);bottom:max(12px,env(safe-area-inset-bottom));padding:8px;border-radius:16px;gap:0}.walk-dock>div{display:none}.walk-dock button{width:100%;min-height:59px;justify-content:center;gap:45px;font-size:17px}.chooser-header>button{font-size:10px}.chooser-main{padding:32px 20px 135px}.chooser-main h1{font-size:28px;line-height:1.5}.chooser-main>.intro-kicker{font-size:8px}.chooser-lead{font-size:11px}.chooser-layout{display:flex;flex-direction:column;gap:20px;margin-top:25px}.course-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.course-options button{padding:8px;gap:8px;min-height:69px;border-radius:10px}.course-options img{width:42px;height:48px;border-radius:5px}.course-options strong{font-size:11px}.course-options small{font-size:8px;margin-top:4px}.course-options i{display:none}.course-preview>img{height:190px}.course-preview>div{padding:22px}.course-preview h2{font-size:26px}.course-preview p{font-size:11px}.course-meta{gap:5px;margin-top:20px}.course-meta>span{font-size:9px;padding:7px}.choose-dock{width:calc(100% - 24px);padding:8px;display:block;bottom:max(12px,env(safe-area-inset-bottom));border-radius:16px}.choose-dock>span{display:block;text-align:center;font-size:10px;margin:2px 0 9px}.choose-dock button{width:100%;justify-content:center;gap:35px;min-height:52px;min-width:0;font-size:15px}.camp-seat-dock{bottom:calc(158px + var(--safe-bottom));padding:7px;gap:4px}.camp-seat-dock span{font-size:9px}.camp-seat-dock button{min-width:38px;font-size:10px;padding:5px 8px}}
@media(max-width:350px){.hero-copy h1{font-size:43px}.intro-hero{min-height:500px}.intro-header{padding-inline:17px}.intro-places{padding-inline:18px}.place-copy h3{font-size:19px}.chooser-main{padding-inline:15px}.course-options img{width:35px}.course-options strong{font-size:10px}}
@media(max-height:500px) and (orientation:landscape){.intro-hero{min-height:450px}.chooser-header{height:65px}.chooser-main{padding-top:20px}.course-options{grid-template-columns:repeat(3,minmax(0,1fr))}.choose-dock{max-width:520px}.course-preview>img{height:220px}.camp-seat-dock{left:25%;bottom:70px}.walk-dock{max-width:360px}}
@media(prefers-reduced-motion:reduce){.welcome{scroll-behavior:auto}.place-image img{transition:none}}

.course-menu-actions{display:flex;gap:8px;margin-top:12px}.course-menu-actions button{padding:10px 12px;border-radius:10px;background:#fff9;color:#405b45;font-size:11px}

/* 대화가 길어져도 모닥불의 앉기/일어나기 버튼을 덮지 않는다. */
@media(min-height:501px){#hud:has(#camp-seats:not(.hidden)) #chat-history.recent{bottom:max(230px,calc(var(--actions-bottom,90px) + 56px));height:max(0px,calc(100% - max(230px,calc(var(--actions-bottom,90px) + 56px)) - 72px - var(--safe-top)))}}
