@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{--ink:#35443d;--muted:#737b70;--green:#496050;--paper:#f8f7f1;--line:#dcded2}*{box-sizing:border-box}body{margin:0;background:#e8e8dc;color:var(--ink);font-family:'Noto Sans KR',sans-serif;font-size:13px;overflow:hidden}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #53705b;outline-offset:5px}button:disabled{cursor:default;opacity:.65}a{color:inherit;text-decoration:none}[hidden]{display:none!important}#world{position:fixed;inset:0}#world canvas{display:block;width:100%;height:100%;touch-action:none}#loading{position:fixed;inset:0;z-index:30;display:grid;align-content:center;justify-items:center;background:#f1f0e8;color:#6d7869;transition:opacity .5s}#loading .brand-symbol{font-size:50px;animation:breathe 2s infinite}.topbar{position:fixed;inset:0 0 auto;z-index:4;height:102px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:linear-gradient(#f8f7f0ed,#f8f7f000);pointer-events:none}.topbar>*{pointer-events:auto}.brand{display:flex;gap:12px;align-items:center}.brand svg{width:25px;height:36px;fill:none;stroke:#60775b;stroke-width:1.35}.brand>span{font-family:'Gowun Batang',serif;font-size:30px;letter-spacing:4px}.brand small{display:block;font-family:'Noto Sans KR',sans-serif;font-size:9px;letter-spacing:2px;margin-top:3px;font-weight:400;color:#757c6e}.place{display:flex;align-items:center;gap:10px;font-size:11px;color:#5e685c;letter-spacing:.4px;background:#f8f7ed8c;padding:10px 18px;border:1px solid #ffffff80;border-radius:24px;backdrop-filter:blur(8px)}.live-dot{height:5px;width:5px;border-radius:50%;background:#7c9165}.divider{opacity:.4;margin:0 3px}.tools{display:flex;gap:20px}.icon-button{background:transparent;font-size:17px;display:flex;align-items:center;gap:8px}.icon-button span{font-size:11px}.welcome{position:fixed;left:45px;top:24%;pointer-events:none;max-width:290px;transition:opacity 3s ease-in-out,transform 3s ease-in-out}.welcome button{pointer-events:auto}.welcome.dismissed{opacity:0;transform:translateX(-80px);pointer-events:none}.welcome.dismissed button{pointer-events:none}.eyebrow{font-size:9px;letter-spacing:2.7px;font-weight:600;color:#7b8b6f;margin:0 0 23px}h1,h2,.memorial-message{font-family:'Gowun Batang',serif}h1{font-size:35px;font-weight:400;line-height:1.6;letter-spacing:-1.5px;margin:0 0 23px;text-shadow:0 1px 20px #f8f7e9}.intro{font-size:12px;line-height:2.1;color:#68725f}.text-button{padding:10px 0;background:none;font-size:12px;display:flex;gap:30px;align-items:center}.welcome .text-button{border-bottom:1px solid #aeb69d;margin-top:12px}.text-button span{font-size:18px}.fine-line{height:1px;width:28px;background:#a6b091;margin-top:36px}.space-note{font-size:10px;line-height:2;color:#7a8371}.location-tag{position:fixed;left:50%;top:112px;transform:translateX(-50%);font-size:10px;color:#7a8572;white-space:nowrap}.location-tag span{margin-right:10px;color:#53664c;border:1px solid #b6c2a4;border-radius:50%;padding:5px}.location-tag i{font-style:normal;padding:0 10px;opacity:.5}.avatar-card{position:fixed;left:36px;bottom:40px;display:flex;align-items:center;gap:13px;background:#fbfaf2d9;border:1px solid #ffffffaa;border-radius:15px;padding:13px 17px;backdrop-filter:blur(16px);min-width:237px;box-shadow:0 8px 30px #5a655609}.avatar-icon{width:37px;height:42px;background:#e6e9dc;color:#6e7c5b;border-radius:11px;font-size:32px;text-align:center;line-height:42px}.avatar-card small{display:block;font-size:9px;color:#818776;margin-bottom:4px}.avatar-card strong{font-size:12px;font-weight:500}.avatar-card>button{margin-left:20px;background:none;font-size:10px;color:#74816b}.movement-hint{position:fixed;bottom:126px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:13px;font-size:10px;color:#757e6d;white-space:nowrap;transition:opacity .5s}.movement-hint>div{text-align:center}.movement-hint kbd{margin:1px}kbd{display:inline-flex;align-items:center;justify-content:center;border:1px solid #b8c1ab;background:#fbfaefb0;border-radius:4px;min-width:19px;height:19px;font-size:10px;font-family:inherit}.movement-hint b{padding:0 8px;font-weight:400;opacity:.4}.bottom-nav{position:fixed;bottom:40px;left:50%;transform:translateX(-50%);display:flex;gap:5px;padding:6px;border-radius:30px;background:#faf9efeb;border:1px solid #ffffffb0;box-shadow:0 6px 25px #465a450c;backdrop-filter:blur(14px)}.bottom-nav button{display:flex;align-items:center;gap:9px;border-radius:24px;padding:13px 20px;background:transparent;font-size:11px;white-space:nowrap;transition:background .3s}.bottom-nav button span{font-size:18px}.bottom-nav button.active{background:#51664c;color:#fff}.bottom-nav button:hover:not(.active){background:#e5e8dc}.prototype-label{position:fixed;bottom:7px;left:50%;transform:translateX(-50%);font-size:9px;color:#7e8974;white-space:nowrap}.camera-tools{position:fixed;right:38px;top:47%;display:grid;gap:2px;padding:4px;border-radius:22px;background:#f9f9eece;border:1px solid #fff7}.camera-tools button{width:32px;height:32px;background:transparent;border-radius:50%;font-size:17px}.camera-tools button:hover{background:#e5e8db}.context{position:fixed;bottom:192px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:20px;white-space:nowrap;border:1px solid #fff9;background:#fbfaefd9;border-radius:12px;padding:12px 17px;backdrop-filter:blur(10px);box-shadow:0 10px 30px #56644910}.context span{font-size:11px}.context button{background:#526b50;color:white;border-radius:8px;padding:9px 13px;font-size:11px;display:flex;gap:12px;align-items:center}.context kbd{background:#ffffff20;border-color:#ffffff50}.side-panel{position:fixed;right:18px;top:18px;bottom:18px;width:375px;max-width:calc(100vw - 36px);padding:42px 30px 25px;z-index:10;border:1px solid white;background:#faf9f3f5;backdrop-filter:blur(25px);border-radius:18px;overflow:auto;box-shadow:0 20px 90px #3d483b20;text-align:center;animation:slideIn .35s ease}.close{position:absolute;right:17px;top:13px;font-size:25px;background:none;font-weight:400;color:#79806d;line-height:30px;width:30px}.side-panel .eyebrow{margin:12px 0 25px;font-size:8px}.memorial-flower{font-size:75px;line-height:100px;color:#a4b591;text-shadow:0 8px 20px #c4caae}.muted{color:var(--muted);font-size:12px;line-height:1.9}.side-panel .muted{font-size:10px}.side-panel h2{font-size:24px;font-weight:400;margin:14px 0}.memorial-message{font-size:14px;line-height:2.1;color:#79816d;white-space:pre-line}.side-panel .text-button{margin:auto;font-size:10px;color:#73816c}.rituals{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:25px 0 15px}.rituals button{border:1px solid #dce0d1;background:#f1f2e9;padding:14px 4px;border-radius:10px;font-size:12px}.rituals button>span{display:block;font-size:30px;margin-bottom:7px;color:#9aab7c}.rituals small{display:block;font-size:9px;color:#7e8871;margin-top:5px}.panel-divider{border-top:1px solid var(--line);margin:25px 0}.side-panel h3{text-align:left;font-size:12px;font-weight:500}.primary{background:#52694e;color:#fff;padding:13px 18px;border-radius:9px;width:100%;font-size:12px}.primary:hover{background:#3f573d}textarea,input{border:1px solid #d8dece;border-radius:8px;background:#fffdf8;color:#455540;padding:12px;width:100%;line-height:1.8}textarea{resize:vertical;min-height:95px;margin:0 0 10px}#tributes{text-align:left}.tribute{border-bottom:1px solid #e3e5d9;padding:18px 2px;font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.tribute small{display:block;color:#929a87;margin-bottom:4px;font-size:9px}.storage-note{font-size:9px!important;color:#9a9f90;line-height:1.8;margin-top:25px}dialog{border:1px solid #fff;border-radius:20px;background:var(--paper);color:var(--ink);width:440px;max-width:calc(100vw - 32px);padding:40px 32px 30px;box-shadow:0 20px 90px #2b3b3330;max-height:85dvh;overflow:auto}dialog::backdrop{background:#38453b38;backdrop-filter:blur(5px)}dialog h2{font-size:27px;line-height:1.6;font-weight:400;margin:0 0 10px}dialog .eyebrow{font-size:8px;margin-bottom:16px}dialog form>label,legend{display:block;font-size:11px;margin:22px 0 9px}fieldset{margin:0 0 20px;padding:0;border:0}legend{margin-bottom:13px}.swatches{display:flex;gap:15px}.swatch{position:relative;width:37px;height:37px;cursor:pointer;border-radius:50%;display:block;border:4px solid var(--paper);outline:1px solid transparent}.swatch:has(input:checked){outline-color:#6c8065}.swatch input{position:absolute;opacity:0;inset:0;cursor:pointer}.swatch:focus-within{outline:2px solid #536b50}.choice-row{display:flex;gap:10px}.choice-row label{padding:10px 12px;background:#eaece2;border-radius:8px;font-size:11px}.choice-row input{width:auto;accent-color:#52694e}.help-list p{font-size:12px;line-height:1.9;color:#7a826e;margin:20px 0}.help-list b{display:block;font-weight:500;color:#4d6046;margin-bottom:5px}#toast{position:fixed;left:50%;top:120px;transform:translateX(-50%);z-index:40;background:#42573eea;color:#f7f8ec;padding:14px 24px;border-radius:30px;font-size:12px;max-width:90vw;box-shadow:0 10px 30px #273f2320;text-align:center}#mobile-pad{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes breathe{50%{opacity:.3;transform:scale(.9)}}@keyframes slideIn{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}@media(min-width:1600px){.welcome{left:65px}h1{font-size:42px}}@media(max-width:1100px){.welcome{top:23%;max-width:230px;left:27px}h1{font-size:28px}.intro{font-size:11px}.avatar-card{left:20px;bottom:35px;min-width:0;padding:10px}.avatar-card>button{margin-left:5px}.bottom-nav button{padding:12px 15px}.topbar{padding:0 25px}.place{font-size:10px}.location-tag{top:108px}.movement-hint span{font-size:9px}.prototype-label{font-size:8px}}
@media(max-width:760px){.topbar{height:82px;padding:0 20px}.brand>span{font-size:24px}.brand small{font-size:8px;letter-spacing:1px}.brand svg{width:20px}.place{position:fixed;top:85px;left:20px;font-size:9px;padding:7px 12px}.tools{gap:15px}.icon-button span{display:none}.icon-button{font-size:19px}.location-tag{display:none}.welcome{top:155px;left:22px;max-width:235px;background:#f4f2e5d9;padding:10px 12px 12px 0}.welcome .eyebrow{font-size:7px;margin-bottom:12px}h1{font-size:26px;line-height:1.55;margin-bottom:12px}.intro{font-size:10px}.fine-line,.space-note{display:none}.welcome .text-button{margin-top:6px;font-size:11px}.avatar-card{bottom:104px;left:15px;border-radius:11px;gap:8px;padding:8px 10px}.avatar-card small{font-size:8px}.avatar-card strong{font-size:10px}.avatar-icon{width:28px;height:30px;font-size:24px;line-height:30px}.avatar-card>button{font-size:9px}.bottom-nav{bottom:32px;gap:1px;padding:4px}.bottom-nav button{font-size:10px;padding:10px 14px;gap:6px}.bottom-nav button span{font-size:16px}.prototype-label{bottom:3px;font-size:7px;letter-spacing:-.3px}.movement-hint{display:none}.camera-tools{right:15px;top:135px}.camera-tools button{width:30px;height:30px}.context{bottom:215px;padding:9px 12px;gap:9px}.context span{font-size:10px}.context button{font-size:10px;padding:8px 10px}.context kbd{display:none}#mobile-pad{position:fixed;right:17px;bottom:107px;display:block;text-align:center;user-select:none}#mobile-pad button{background:#f9f9edc9;border:1px solid #ffffff99;border-radius:9px;color:#627456;width:34px;height:34px;margin:2px;touch-action:none;font-size:17px}#mobile-pad button:active{background:#a9b794}.side-panel{inset:12px;width:auto;max-width:none;padding:35px 25px}.side-panel h2{font-size:22px}.memorial-flower{font-size:55px;line-height:65px}.side-panel .eyebrow{margin-bottom:15px}#toast{top:86px;font-size:10px;padding:11px 17px}dialog{padding:35px 25px 25px}dialog h2{font-size:24px}}
#view-mode{font-size:9px;letter-spacing:-.5px;padding:0;white-space:nowrap}.welcome{background:#f4f2e5d9;padding:20px 25px 22px 18px;border-radius:12px}.topbar{background:linear-gradient(#f8f7f0ed,#f8f7f077,transparent)}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.location-tag b{font-weight:400}.location-tag em{font-style:normal}.movement-hint{bottom:175px}.welcome{max-width:350px}.welcome h1{font-size:34px}.prototype-label{background:#f6f6e4a8;padding:2px 6px;border-radius:4px}@media(max-width:1100px){.welcome{max-width:280px}.welcome h1{font-size:28px}}@media(max-width:760px){.welcome{max-width:250px}.welcome h1{font-size:25px}.context{bottom:240px}}

#return-veil{position:fixed;inset:0;z-index:1000;background:#fff;opacity:0;pointer-events:auto;cursor:default;will-change:opacity;}

#slot-location{margin:-4px 0 16px;letter-spacing:.3px;color:#7c806e;}


/* Keep a usable world and conversation when the browser is short or rotated. */
@media(max-width:760px){
  #mobile-pad button{width:40px;height:40px}
  .camera-tools button{width:36px;height:36px}
}
@media(max-height:540px){
  .topbar{height:65px;padding:0 20px}
  .brand>span{font-size:23px}.brand small{display:none}.brand svg{height:30px}
  .place,.location-tag,.movement-hint,
  .welcome{top:118px;left:20px;max-width:245px;padding:12px 16px}
  .welcome .eyebrow{display:none}.welcome h1{font-size:22px;line-height:1.35;margin-bottom:8px}
  .welcome .intro{font-size:10px;line-height:1.65;margin:8px 0}.welcome .fine-line,.welcome .space-note{display:none}
  .welcome .text-button{font-size:10px;margin-top:4px;padding:6px 0}
  .tools{gap:16px}.icon-button span{display:none}
  .camera-tools{top:74px;right:16px;grid-template-columns:repeat(3,32px);gap:2px;border-radius:13px}
  .camera-tools button{width:32px;height:32px}
  .avatar-card{left:20px;bottom:22px;min-width:0;padding:8px 10px;gap:8px;border-radius:11px}
  .avatar-card small{font-size:8px}.avatar-card strong{font-size:10px}.avatar-card>button{font-size:9px;margin-left:5px}
  .avatar-icon{width:28px;height:30px;font-size:24px;line-height:30px}
  .bottom-nav{bottom:22px;padding:4px}.bottom-nav button{padding:10px 14px;font-size:10px;gap:6px}.bottom-nav button span{font-size:16px}
  .prototype-label{bottom:2px;font-size:7px}

  .context{bottom:135px;padding:8px 12px;gap:10px}.context span{font-size:10px}.context button{font-size:10px;padding:8px 10px}
  #mobile-pad{position:fixed;right:17px;bottom:84px;display:block;text-align:center;user-select:none}
  #mobile-pad button{width:36px;height:36px;margin:2px;border:1px solid #ffffff99;border-radius:9px;background:#f9f9edc9;color:#627456;touch-action:none;font-size:17px}
  #toast{top:70px;font-size:10px;padding:10px 16px}
}
@media(max-height:540px) and (max-width:600px){
  .avatar-card{bottom:82px;left:12px}
  #mobile-pad{right:12px;bottom:82px}
  .context{bottom:205px}
}
@media(max-height:360px){.welcome .intro{display:none}}

/* Leave the centre of the view clear for the entrance and memorial inscriptions. */
.location-tag{left:42px;transform:none;color:#53634e;background:#f8f7edc7;border:1px solid #ffffff80;border-radius:22px;padding:8px 12px;backdrop-filter:blur(8px)}
.location-tag span{margin-right:8px;border-color:#bcc8af}.location-tag i{padding:0 7px}
@media(max-width:1100px){.location-tag{left:25px}}
@media(max-height:800px){.welcome .fine-line,.welcome .space-note{display:none}}
.side-panel:focus-visible{outline:2px solid #53705b;outline-offset:2px}

/* A quiet, always-visible game chat, with the profile kept beside the top tools. */
.welcome{top:18%}
.avatar-card{left:auto;right:38px;top:107px;bottom:auto;min-width:0;padding:7px 10px;gap:8px;border-radius:12px;background:#fbfaf2db}
.avatar-card small{display:none}.avatar-icon{width:26px;height:28px;line-height:28px;font-size:22px;border-radius:7px}.avatar-card strong{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.avatar-card>button{margin-left:7px;font-size:10px;color:#52664d}
.chat-panel{position:fixed;left:26px;bottom:60px;z-index:9;width:min(440px,calc(100vw - 52px));height:min(205px,29dvh);display:flex;flex-direction:column;pointer-events:none;text-align:left}
.chat-header{height:0;flex:none;overflow:hidden}.chat-history{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:flex-end}#chat-messages{min-height:0;max-height:100%;overflow:hidden;padding:2px 4px;overscroll-behavior:contain;scrollbar-width:none}#chat-messages:focus-visible{outline:1px solid #dce8c6;outline-offset:2px}
.chat-message{flex:none;margin:3px 0;font-size:13px;line-height:1.8;color:#fffef5;overflow-wrap:anywhere;text-shadow:0 1px 2px #16291a,1px 0 1px #16291acc,-1px 0 1px #16291acc}.chat-message-head{display:inline}.chat-message-head strong{font-weight:600;color:#dce9bf}.chat-message-head strong:after{content:' : ';font-weight:400}.chat-message p{display:inline;margin:0;padding:0;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message>time{display:none}.chat-message.is-mine .chat-message-head strong{color:#e7d8b1}
#chat-activate{position:fixed;left:28px;bottom:25px;z-index:9;display:flex;align-items:center;gap:8px;padding:4px 0;background:none;color:#fffef0;text-shadow:0 1px 3px #1d3020;font-size:11px}#chat-activate kbd{background:#24362770;border-color:#ffffff70;color:#fff;font-size:9px;height:20px;padding:0 5px}
#chat-form{position:fixed;inset:auto 0 0;z-index:12;display:grid;grid-template-columns:auto minmax(0,1fr) 56px 30px;gap:4px 10px;align-items:center;padding:10px 26px calc(9px + env(safe-area-inset-bottom));border-top:1px solid #ffffff32;background:#21362eea;backdrop-filter:blur(12px);color:#f4f5e9}.chat-channel{font-size:12px;font-weight:500;color:#d3dfb8}#chat-input{margin:0;min-height:34px;max-height:82px;resize:none;padding:5px 9px;line-height:1.65;font-size:14px;border:1px solid #dce5ce45;border-radius:5px;background:#ffffff0c;color:#fffef5}#chat-input::placeholder{color:#ccd4c0a6}#chat-input:focus-visible{outline:1px solid #dce8c6;outline-offset:1px}#chat-send{align-self:end;height:34px;padding:0 5px;border:1px solid #dce5ce45;background:#dde8c51f;color:#f2f5e5;border-radius:5px;font-size:11px}#chat-send:disabled{opacity:.4}#chat-close{height:30px;align-self:start;background:none;color:#d9e3cd;font-size:23px}.chat-composer-note{grid-column:2/4;display:flex;justify-content:space-between;gap:10px;font-size:9px;color:#c6d1b7}.chat-connection{flex:none;pointer-events:auto;color:#fff2d7;text-shadow:0 1px 3px #1d3020;font-size:11px}.chat-error{margin:4px 0;line-height:1.7}.chat-error:empty{display:none}#chat-retry,#chat-login{display:inline-block;background:none;color:inherit;font-size:11px;padding:4px 0;margin-right:12px;text-decoration:underline}
body.chat-typing .chat-panel{bottom:calc(var(--chat-composer-height,80px) + 14px)}body.chat-typing #chat-messages{pointer-events:auto;overflow:auto;scrollbar-width:thin;scrollbar-color:#dce8c680 transparent}body.chat-typing #chat-activate,body.chat-typing .bottom-nav,body.chat-typing .prototype-label,body.chat-typing .movement-hint,body.chat-typing #mobile-pad,body.chat-typing .context{visibility:hidden;pointer-events:none}
#speech-layer{position:fixed;inset:0;z-index:5;pointer-events:none;overflow:hidden}.speech-bubble{position:absolute;left:0;top:0;max-width:250px;padding:8px 12px;border:1px solid #ffffffe0;border-radius:13px;background:#fffef5f5;box-shadow:0 5px 18px #2c402b22;color:#3d5038;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;will-change:transform,opacity}.speech-bubble:after{content:'';position:absolute;left:50%;bottom:-6px;width:10px;height:10px;background:#fffef5;transform:translateX(-50%) rotate(45deg);border-right:1px solid #fff;border-bottom:1px solid #fff}.speech-bubble strong{display:block;margin-bottom:3px;font-size:9px;font-weight:500;color:#7a896d}.speech-bubble span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden}
@media(max-width:1100px){.chat-panel{left:20px;width:360px}.avatar-card{right:20px}#chat-activate{left:24px}}
@media(max-width:760px){
 .welcome{top:151px}.avatar-card{top:86px;right:16px;left:auto;bottom:auto;padding:6px 8px;gap:5px}.avatar-icon{display:none}.avatar-card strong{font-size:10px;max-width:65px}.avatar-card>button{font-size:9px;margin-left:5px}
 .chat-panel{left:14px;bottom:125px;width:calc(100vw - 122px);height:min(170px,25dvh)}.chat-message{font-size:11px;line-height:1.8}#chat-activate{left:18px;bottom:96px;font-size:10px}#chat-activate kbd{display:none}#chat-form{padding:8px 12px calc(7px + env(safe-area-inset-bottom));gap:4px 7px;grid-template-columns:auto minmax(0,1fr) 47px 23px}#chat-input{max-height:66px;font-size:16px}#chat-send{font-size:10px}.chat-channel{font-size:10px}.chat-composer-note{font-size:8px}.chat-composer-note>span:nth-child(2){display:none}body.chat-typing .chat-panel{width:calc(100vw - 28px)}
 #mobile-pad{bottom:107px}.context{bottom:215px}.speech-bubble{max-width:210px;font-size:11px;padding:7px 10px}
}
@media(max-height:540px){
 .avatar-card{top:15px;right:124px;left:auto;bottom:auto;padding:5px 8px;gap:5px}.avatar-card strong{max-width:90px;font-size:10px}.avatar-card>button{font-size:9px;margin-left:5px}.avatar-icon{display:none}
 .welcome{left:20px;top:76px;width:540px;max-width:calc(100vw - 160px);padding:9px 14px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 16px}.welcome h1{font-size:20px;line-height:1.35;margin:0}.welcome h1 br{display:none}.welcome .intro{display:none}.welcome .text-button{margin:0;padding:5px 0;grid-column:2;grid-row:1}
 .chat-panel{left:16px;bottom:48px;width:min(340px,calc(100vw - 32px));height:min(135px,31dvh)}#chat-activate{left:20px;bottom:15px}.chat-message{font-size:11px;line-height:1.7}#chat-input{max-height:52px}.chat-composer-note{font-size:8px}
 .context{left:auto;right:145px;transform:none;bottom:105px;max-width:300px}
}
@media(max-height:540px) and (max-width:600px){
 .avatar-card{right:103px;top:16px;max-width:150px}.avatar-card strong{max-width:55px}.chat-panel{left:12px;bottom:110px;width:calc(100vw - 110px);height:min(115px,30dvh)}#chat-activate{bottom:82px;left:16px}
 .camera-tools{left:15px;right:auto;top:66px}#mobile-pad{right:15px;top:66px;bottom:auto}.context{left:50%;right:auto;transform:translateX(-50%);bottom:235px}.welcome{display:block;left:15px;top:68px;width:calc(100vw - 30px);max-width:none;padding:9px 13px}.welcome h1{font-size:18px}.welcome .text-button{font-size:10px;margin-top:4px}
 body:has(.welcome:not(.dismissed)) .camera-tools,body:has(.welcome:not(.dismissed)) #mobile-pad,body:has(#chat-input:focus) .camera-tools,body:has(#chat-input:focus) #mobile-pad{display:none}
}
@media(max-height:360px) and (max-width:600px){.welcome{display:none}}
.graphics-recovery{text-align:center;width:370px;padding:34px 26px 30px}.graphics-recovery::backdrop{background:#e8ecdfed;backdrop-filter:blur(8px)}.graphics-recovery .recovery-mark{display:block;font-size:38px;line-height:1.25;margin-bottom:17px;color:#839574;animation:breathe 3s ease-in-out infinite}.graphics-recovery h2{font-size:21px;line-height:1.55;margin:0 0 12px}.graphics-recovery p{font-size:12px;line-height:1.9;margin:0;color:#7a866f}
.graphics-recovery:focus{outline:1px solid #c0cbb5;outline-offset:1px}
.camera-tools{grid-template-columns:1fr;border-radius:50%;padding:4px}#view-mode{width:38px;height:38px;font-size:10px}

/* The composer occupies the same small corner as its Enter hint. */
#chat-form{inset:auto;display:block;padding:0;border:0;background:transparent;backdrop-filter:none;box-shadow:none;gap:0}
#chat-form .chat-channel,#chat-form .chat-composer-note,#chat-send,#chat-close{display:none}
#chat-input{display:block;width:100%;min-height:34px;margin:0;padding:5px 7px;background:transparent;border:1px solid #fff8;border-radius:3px;color:#fffef5;text-shadow:0 1px 2px #16291a,1px 0 1px #16291acc,-1px 0 1px #16291acc}
#chat-input::placeholder{color:#f3f4e8b8}#chat-input:focus-visible{outline:none;border-color:#fff9}
body.chat-typing .chat-panel{bottom:calc(var(--chat-composer-height,34px) + var(--chat-composer-bottom,25px) + 10px)}
body.chat-typing .bottom-nav,body.chat-typing .prototype-label,body.chat-typing .movement-hint,body.chat-typing .context{visibility:visible;pointer-events:auto}

/* Keep the remaining camera toggle centred at its established height. */
.view-controls{position:fixed;left:50%;bottom:126px;transform:translateX(-50%);z-index:5;width:max-content}

.view-controls>.camera-tools{position:static;left:auto;right:auto;top:auto;bottom:auto;transform:none}
@media(max-width:760px){.view-controls{bottom:185px}}
@media(max-height:540px){.view-controls{bottom:88px}}
@media(max-height:540px) and (max-width:600px){.view-controls{bottom:165px}}

/* Larger, clearer brand at its original top-left anchor; no raster scaling. */
.topbar{background:transparent}
.brand{color:#384735;text-shadow:0 0 3px #fffdf4b3,0 0 8px #fffdf477}
.brand svg{width:37.5px;height:54px;flex-shrink:0;stroke:#435c3d;stroke-width:1.8;filter:drop-shadow(0 0 3px #fffdf4b3) drop-shadow(0 0 8px #fffdf477)}
.brand>span{font-size:45px;font-weight:700;line-height:1.25}
.brand small{font-size:15px;line-height:1.6;letter-spacing:.1px;white-space:nowrap;margin-top:4.5px;font-weight:500;color:#46583e}
@media(max-width:760px){
  .topbar{height:110px}
  .brand{gap:10px;max-width:calc(100% - 58px)}
  .brand>span{font-size:36px;min-width:0}
  .brand svg{width:30px;height:54px}
  .brand small{display:block;font-size:13.5px;letter-spacing:0;white-space:normal}
  .topbar .tools{flex-shrink:0}
}
@media(max-height:540px){
  .topbar{height:102px}
  .brand>span{font-size:34.5px}
  .brand svg{height:45px}
  .brand small{display:block;font-size:13.5px}
}
.welcome h1{text-shadow:none;letter-spacing:0}
.chat-message,#chat-input{text-shadow:0 1px 2px #14281def}

/* A clear close view of the selected niche, with the visitor left in place. */
#niche-view-back{position:fixed;left:var(--niche-view-center-x,50%);top:108px;transform:translateX(-50%);z-index:11;display:flex;align-items:center;gap:12px;padding:10px 16px;border:1px solid #ffffffb0;border-radius:24px;background:#f8f7efed;font-size:11px;white-space:nowrap}
#niche-view-back kbd{font-size:9px}
body.inspecting-niche .welcome,body.inspecting-niche .bottom-nav,body.inspecting-niche .view-controls,body.inspecting-niche .movement-hint,body.inspecting-niche #mobile-pad,body.inspecting-niche .location-tag,body.inspecting-niche .avatar-card,body.inspecting-niche .prototype-label,body.inspecting-niche #context{visibility:hidden!important;pointer-events:none!important}
body.inspecting-niche #memorial-panel{animation:none}
body.inspecting-niche .memorial-flower{display:none}
@media(max-width:760px){
  body.inspecting-niche #memorial-panel{inset:auto 12px 12px;width:auto;max-width:none;max-height:42dvh;padding:22px 22px 18px;border-radius:16px;text-align:left}
  body.inspecting-niche #memorial-panel .eyebrow{margin:0 35px 8px 0}
  body.inspecting-niche #memorial-panel h2{font-size:20px;margin:8px 0}
  body.inspecting-niche #memorial-panel .muted{margin:5px 0}
  body.inspecting-niche #memorial-panel .rituals{margin:15px 0}
  body.inspecting-niche #memorial-panel .text-button{margin-left:0}
  #niche-view-back{top:110px;padding:8px 12px;font-size:10px}
}

body.inspecting-niche #speech-layer{visibility:hidden}

/* Keep remembrance details still; only the collection of submitted hearts scrolls. */
#memorial-panel{display:flex;flex-direction:column;gap:12px;padding:34px 24px 20px;overflow:hidden}
#memorial-details{flex:0 0 auto;min-height:0}
#memorial-details>.eyebrow{margin:0 28px 10px;font-size:8px}
#memorial-details>.muted{margin:3px 0}
#memorial-panel h2{font-size:22px;line-height:1.45;margin:8px 0}
#memorial-panel .memorial-message{font-size:13px;line-height:1.65;margin:8px 0;overflow-wrap:anywhere}
#memorial-panel .rituals{margin:10px 0 4px;gap:8px}
#memorial-panel .rituals button{padding:8px 4px}
#memorial-panel .rituals button>span{font-size:24px;margin-bottom:4px}
#ritual-note:empty{display:none}
#tribute-section{display:flex;flex:1;flex-direction:column;gap:8px;min-height:0;padding-top:12px;border-top:1px solid var(--line)}
#tribute-heading{flex:none;margin:0;font-size:12px}
#tribute-form{flex:none;display:grid;gap:6px}
#tribute-form textarea{min-height:54px;height:60px;max-height:96px;margin:0;padding:8px;line-height:1.6}
#tribute-form .primary{padding:8px 12px}
#tributes{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;touch-action:pan-y}
#tributes .tribute{padding:12px 2px}
#memorial-panel .storage-note{flex:none;margin:0;font-size:8px!important;line-height:1.5}
.memorial-tabs{display:none}
@media(max-width:760px){
  body.inspecting-niche #memorial-panel{height:42dvh;padding:14px 18px;gap:8px}
  .memorial-tabs{display:flex;flex:none;gap:6px;padding-right:28px}
  .memorial-tabs button{padding:6px 9px;border-radius:16px;background:transparent;font-size:10px}
  .memorial-tabs button[aria-selected=true]{background:#e5e9dd;color:#3f573d}
  #memorial-panel #tribute-section{display:none}
  #memorial-panel.view-tributes #memorial-details{display:none}
  #memorial-panel.view-tributes #tribute-section{display:flex;padding-top:4px;border-top:0}
  #memorial-details>.eyebrow{display:none}
  #memorial-panel h2{font-size:18px;margin:4px 0}
  #memorial-panel .memorial-message{font-size:11px;line-height:1.5;margin:5px 0}
  #memorial-panel .rituals{margin:6px 0 0}
  #memorial-panel .rituals button{padding:5px 3px;font-size:10px}
  #memorial-panel .rituals button>span{font-size:18px;margin-bottom:1px}
  #memorial-panel .rituals small{font-size:8px;margin-top:2px}
  #memorial-panel .storage-note{font-size:7px!important;line-height:1.4}
  #tribute-form textarea{height:48px;min-height:48px;max-height:64px;font-size:11px}
}

#memorial-panel #memorial-title.long-memory{font-size:18px}
#memorial-panel #memorial-message.long-memory{font-size:12px;line-height:1.5}
@media(max-width:760px){#memorial-panel #memorial-title.long-memory{font-size:15px}#memorial-panel #memorial-message.long-memory{font-size:10px;line-height:1.4}}



.welcome{opacity:0}
.welcome.arrived{opacity:1}
.welcome.arrived.dismissed{opacity:0}

.mini-map{position:fixed;right:20px;bottom:24px;width:264px;height:192px;overflow:hidden;border:1px solid #fff9;border-radius:14px;background:#dde4d2ed;box-shadow:0 5px 22px #263c2224;padding:0;cursor:pointer;pointer-events:auto}
#mini-map-canvas{display:block;width:100%;height:100%}

body.inspecting-niche .mini-map{display:none}
@media(max-width:760px){.mini-map{width:168px;height:122.4px;right:14px;bottom:242px}}

.map-dialog{width:720px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:25px 24px 16px;overflow:auto}
.map-dialog h2{font-size:25px;margin:0 35px 4px 0}
.map-dialog #map-range{font-size:12px;color:#62725b;margin:0 32px 16px 0}
#expanded-map-canvas{display:block;width:100%;aspect-ratio:11/8;max-height:calc(100dvh - 185px);border-radius:12px;background:#d8e1cc;touch-action:none;cursor:grab}
.map-dialog .map-hint{font-size:11px;color:#62725b;margin:12px 0 0;text-align:center}
@media(max-width:760px){.map-dialog{padding:24px 16px 16px}.map-dialog h2{font-size:23px}.map-dialog #map-range{font-size:11px}}

#expanded-map-canvas.dragging{cursor:grabbing}
.map-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.map-footer .map-hint{margin:0;text-align:left}
#map-recenter{flex-shrink:0;background:#e6ebdf;color:#3d553b;border:1px solid #c5d0bc;border-radius:18px;padding:7px 13px;font-size:11px}
@media(max-width:420px){.map-footer{gap:8px}.map-footer .map-hint{font-size:10px}#map-recenter{padding:7px 10px}}

/* Enlarge the arrival card through layout and type sizes, keeping text sharp. */
.welcome{max-width:525px;padding:30px 37.5px 33px 27px;border-radius:18px}
.welcome .eyebrow{font-size:13.5px;letter-spacing:4.05px;margin-bottom:34.5px}
.welcome h1{font-size:51px;margin-bottom:34.5px}
.welcome .intro{font-size:18px}
.welcome .fine-line{height:1.5px;width:42px;margin-top:54px}
.welcome .space-note{font-size:15px}
@media(max-width:1100px){.welcome{max-width:420px}.welcome h1{font-size:42px}.welcome .intro{font-size:16.5px}}
@media(max-width:760px){
 .welcome{max-width:min(375px,calc(100vw - 44px))}
 .welcome .eyebrow{font-size:10.5px;margin-bottom:18px}
 .welcome h1{font-size:37.5px;margin-bottom:18px}
 .welcome .intro{font-size:15px}
}
@media(max-height:540px){
 .welcome{width:810px;max-width:calc(100vw - 40px);padding:13.5px 21px;gap:0 24px}
 .welcome h1{font-size:30px;margin:0}
}

/* Reclaim the removed footer row without resizing or separating its controls. */
:root{--footer-ui-drop:17px}
.bottom-nav,.view-controls,.movement-hint{transform:translate(-50%,var(--footer-ui-drop))}
@media(max-width:1100px){:root{--footer-ui-drop:16px}}
@media(max-width:760px){:root{--footer-ui-drop:14px}}

/* The movement guide shares the arrival card's timed appearance. */
.movement-hint{opacity:0;gap:12px;padding:10px 14px;border:1px solid #ffffffc9;border-radius:12px;background:#f8f7efed;color:#344d39;box-shadow:0 4px 18px #1f372425;transition:opacity 3s ease-in-out,transform 3s ease-in-out;pointer-events:none}
.movement-hint.arrived{opacity:1}
.movement-hint.arrived.dismissed{opacity:0}
.movement-hint kbd{width:26px;min-width:26px;height:26px;font-size:12px;font-weight:600;line-height:1;color:#2e4833;background:#fffef8;border:1px solid #8c9d82;border-radius:5px;box-shadow:0 2px 0 #d4ddc9}
.movement-hint .movement-copy>span{display:block;font-size:12px;font-weight:500;line-height:1.75}
.movement-hint .movement-copy>span:first-child{font-weight:600}

/* Every current and future seat uses the same single action button. */
.context{padding:0!important;gap:0;border:0;background:transparent;box-shadow:none;backdrop-filter:none}
.context button{box-shadow:0 4px 18px #23382c20;border:1px solid #ffffff70;font-size:12px;padding:11px 15px;border-radius:10px}

/* Temporary prelaunch environment controls; hidden by PREOPEN_TEST_MODE at launch. */
.environment-controls{position:fixed;z-index:8;left:50%;top:25px;transform:translateX(-50%);display:flex;align-items:center;gap:7px;padding:5px 7px;background:#f7f7eedb;border:1px solid #ffffffb0;border-radius:24px;backdrop-filter:blur(9px);box-shadow:0 3px 15px #243c2312}
.environment-controls button{background:transparent;font-size:11px;padding:7px 9px;border-radius:18px;min-height:30px;white-space:nowrap}
.environment-controls button[aria-pressed=true]{background:#536b51;color:#fffdf5}
#time-toggle{min-width:56px}.environment-divider{width:1px;height:17px;background:#9ba69166}.season-controls{display:flex;gap:1px}
body.night .brand>span,body.night .brand small,body.night .topbar .icon-button{color:#edf0e4}body.night .brand svg{stroke:#d1dec1}
body.night .environment-controls{color:#e3e9df;background:#1e302edb;border-color:#c5d5d136}
body.night .environment-controls button[aria-pressed=true]{background:#d8dfc9;color:#253e30}
body.night .brand::before,body.night .brand::after{opacity:.15}
@media(max-width:1000px){.environment-controls{left:28px;top:111px;transform:none}}
@media(max-width:760px){.environment-controls{left:15px;top:116px;padding:3px 5px;gap:4px}.environment-controls button{font-size:10px;padding:5px 7px;min-height:28px}#time-toggle{min-width:48px}}

body.night .brand>span,body.night .brand small{text-shadow:0 0 8px #c4d4bc45,0 1px 2px #122523}

#guest-dialog{width:440px;max-width:calc(100vw - 32px)}#guest-dialog h2{font-size:28px;line-height:1.5}#guest-form{display:grid;gap:12px}#guest-name{font-size:16px;min-height:48px}.guest-error{margin:0;color:#8c503f;font-size:12px;min-height:1.5em}.guest-note{font-size:12px;margin:18px 0 0}

#visitor-name-layer{position:fixed;inset:0;z-index:5;pointer-events:none}.visitor-name{position:absolute;left:0;top:0;color:#fffef7;font:600 12px/1.5 "Noto Sans KR",sans-serif;text-shadow:0 1px 3px #142413,0 0 3px #142413;white-space:nowrap;will-change:transform}.visitor-name[hidden]{display:none}
