@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:#213e35;--cream:#f2f0e4;--gold:#d5ba7c}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#243c38;color:var(--cream);font-family:'Noto Sans KR',sans-serif;touch-action:none;-webkit-user-select:none;user-select:none}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button{color:inherit}button:disabled{opacity:.55;cursor:wait}#scene{display:block;width:100%;height:100%;position:fixed;inset:0;outline:0}#veil{position:fixed;inset:0;background:linear-gradient(90deg,#102f31da 0%,#102f3190 30%,transparent 72%),linear-gradient(0deg,#112c3577,transparent 30%);pointer-events:none;transition:opacity 1s}.playing #veil{opacity:0}header{position:fixed;inset:0 0 auto;display:flex;align-items:center;gap:16px;padding:30px 42px;z-index:3;pointer-events:none;text-shadow:0 1px 10px #0005}header>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}.brand svg{width:37px;height:32px;fill:none;stroke:currentColor;stroke-width:1.8}.brand span{font-size:27px;font-weight:600;line-height:1.15}.brand small{display:block;font-size:8px;letter-spacing:2px;margin-top:5px}.clock{margin-left:auto;display:grid;grid-template-columns:8px auto;gap:4px 8px;align-items:center;font-size:13px}.clock i{width:5px;height:5px;border-radius:50%;background:#e8ce8c}.clock small{grid-column:2;font-size:10px;opacity:.65}.round{background:#e8eee110;border:1px solid #edf1e93a;backdrop-filter:blur(10px);border-radius:50%;width:42px;height:42px;font-size:20px}#welcome{position:fixed;left:8%;top:20%;width:360px;z-index:2;max-height:76dvh;overflow:auto;scrollbar-width:none}.eyebrow{font-size:11px;letter-spacing:2px;opacity:.8}h1{font-family:'Gowun Batang',serif;font-weight:400;font-size:clamp(45px,5.5vw,76px);line-height:1.2;letter-spacing:-3px;margin:22px 0}h1 em{font-style:normal;color:#e4d1a5}#welcome>p{font-size:14px;line-height:1.9;opacity:.78;margin:20px 0}.route-preview{border-left:2px solid #dec08a;padding-left:14px;margin:28px 0 20px;display:flex;flex-direction:column;gap:7px}.route-preview span{font-size:10px;color:#d9c69e}.route-preview strong{font-size:15px;font-weight:500}.route-preview small{font-size:9px;opacity:.6}.name-label{font-size:10px;opacity:.75;display:block;margin-bottom:7px}#name{border:0;border-bottom:1px solid #ffffff40;background:transparent;padding:7px 0;width:100%;color:#fff;outline:0;font-size:14px;user-select:text}#name::placeholder{color:#c8d2c6}.colors{display:flex;gap:9px;align-items:center;margin:15px 0}.colors button{background:var(--swatch);width:21px;height:21px;border-radius:50%;border:3px solid transparent;outline:1px solid transparent}.colors button.chosen{border-color:#29433c;outline-color:#e7dabc}.colors span{font-size:10px;opacity:.6;margin-left:4px}#start{margin-top:5px;background:#e8e4d4;border:0;color:#284238;border-radius:3px;padding:17px 20px;width:100%;text-align:left;font-size:14px;font-weight:600;display:flex;justify-content:space-between}#start span{font-size:21px}.entry-note{display:block;text-align:center;opacity:.55;font-size:9px;margin-top:12px}footer{position:fixed;bottom:24px;left:42px;right:42px;display:flex;justify-content:space-between;font-size:10px;color:#e1e7dc9a}#loading{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#173b34;z-index:8;transition:opacity .7s}#loading span{width:36px;height:36px;border:1px solid #a5bcb657;border-top-color:#eed5a1;border-radius:50%;animation:rotate 1.3s linear infinite}#loading p{font-size:12px;letter-spacing:1px;margin-top:22px}@keyframes rotate{to{transform:rotate(360deg)}}[hidden]{display:none!important}#error{position:fixed;inset:20%;padding:40px;background:#203c35;z-index:20;border:1px solid #abc2a4;border-radius:16px;line-height:1.8}#error button{padding:12px;border:1px solid #aec2ab;background:none}.trail-label{position:fixed;top:122px;left:42px;display:flex;flex-direction:column;gap:7px;text-shadow:0 2px 10px #0008}.trail-label span{font-size:9px;letter-spacing:3px;color:#e3c690}.trail-label b{font-family:'Gowun Batang',serif;font-size:21px;font-weight:400}.compass{position:fixed;top:45px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:2px}.compass i{font-size:21px;color:#e2bc77}.progress{position:fixed;top:120px;right:42px;width:150px;background:#17352c4a;padding:12px;border-radius:10px;backdrop-filter:blur(8px)}.progress>div:first-child{display:flex;justify-content:space-between;align-items:center}.progress b{font-weight:500;font-size:14px}.progress span,.progress small{font-size:9px;opacity:.8}.progress small{display:block;margin-top:6px}.progress-track{height:2px;background:#ffffff35;margin-top:9px}.progress-track i{display:block;background:#ddc38f;height:100%;width:0}#joyZone{position:fixed;bottom:max(28px,env(safe-area-inset-bottom));left:20px;width:210px;height:210px;touch-action:none;display:flex;align-items:center;justify-content:center;flex-direction:column}#joyBase{width:128px;height:128px;border:1px solid #ffffef55;border-radius:50%;background:#e2e8d311;position:relative;box-shadow:inset 0 0 30px #fff1}#joyThumb{position:absolute;left:40px;top:40px;width:46px;height:46px;border-radius:50%;background:#e4e9d8a8;border:1px solid #ffffff96;box-shadow:0 5px 15px #142c2a50;pointer-events:none}#joyZone>span{font-size:9px;letter-spacing:2px;color:#ffffec99;margin-top:14px}.actions{position:fixed;right:35px;bottom:max(53px,env(safe-area-inset-bottom));display:flex;gap:14px;align-items:flex-end}.actions button{background:#173e354d;border:1px solid #fff4;border-radius:50%;width:64px;height:64px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;backdrop-filter:blur(8px)}.actions button>span{font-size:26px;line-height:1}.actions small{font-size:9px;opacity:.8}.actions svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.4}#center{position:fixed;right:38px;bottom:150px}#gestureHint{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:1px;white-space:nowrap;color:#f4f4e6a6;transition:opacity 1s}dialog{width:min(440px,calc(100% - 32px));border:0;border-radius:20px;background:#f1f0e7;color:var(--ink);padding:32px;max-height:85dvh;overflow:auto;touch-action:pan-y;box-shadow:0 30px 100px #0005}dialog::backdrop{background:#102d2770;backdrop-filter:blur(6px)}dialog .eyebrow{font-size:9px}dialog h2{font-family:'Gowun Batang',serif;font-size:26px;font-weight:400;margin:14px 0 8px}dialog h3{font-size:12px;margin-top:24px}dialog p{font-size:12px;color:#698074;line-height:1.8}.close{position:absolute;top:15px;right:16px;width:32px;height:32px;border:0;background:transparent;font-size:25px;color:#688071}.stats{display:grid;grid-template-columns:repeat(3,1fr);padding:18px 0;margin-top:20px;border-block:1px solid #d4dbcc}.stats div{display:flex;flex-direction:column;gap:7px}.stats b{font-size:24px;font-weight:500}.stats span{font-size:9px;color:#788476}.mountain{display:flex;align-items:center;gap:13px;padding:16px 0;border-bottom:1px solid #d7ddcf}.mountain>span{font-size:11px;color:#a2ac99}.mountain div{display:flex;flex-direction:column;gap:5px}.mountain b{font-size:13px}.mountain small{font-size:10px;color:#8a9587}.mountain em{margin-left:auto;font-style:normal;font-size:9px;color:#869882}.mountain.active em{color:#48765b}.notice{background:#e4e9dc;border-radius:10px;padding:13px}.setting{display:flex;justify-content:space-between;align-items:center;font-size:12px;padding:14px 0;gap:10px}.setting select{max-width:200px;border:1px solid #ced8c7;background:transparent;border-radius:6px;padding:8px;color:var(--ink);font-size:11px}.sun-times{display:flex;justify-content:space-between;font-size:12px;background:#e7eadd;padding:12px}.sun-times b{font-weight:500;margin-left:10px}.secondary,.download{background:#2f5343;border:0;color:#f1f0e5;width:100%;border-radius:8px;padding:13px;font-size:12px;margin-top:15px}.text-button{display:block;border:0;background:none;color:#7f8b7a;padding:12px;margin:auto;font-size:11px}.muted{font-size:10px;color:#8a9586}dialog>small{display:block;text-align:center}#photoImage{width:100%;border-radius:12px;margin-top:15px}.download{display:block;text-align:center;text-decoration:none}#toast{position:fixed;bottom:235px;left:50%;transform:translateX(-50%) translateY(10px);opacity:0;background:#173a30dd;color:#fff5dc;padding:12px 20px;border:1px solid #a5b89b40;border-radius:25px;font-size:12px;transition:.3s;pointer-events:none;white-space:nowrap;z-index:30}#toast.show{opacity:1;transform:translateX(-50%)}#previewTag{position:fixed;bottom:8px;left:50%;transform:translateX(-50%);font-size:9px;color:#f5d69c;background:#233b2dcc;border-radius:5px;padding:5px 10px}.playing #welcome,.playing #welcomeFooter{display:none}.photo-mode header,.photo-mode #hud,.photo-mode #previewTag,.photo-mode #toast{visibility:hidden}
@media(max-width:700px){header{padding:22px 22px;padding-top:max(22px,env(safe-area-inset-top));gap:10px}.brand span{font-size:23px}.brand svg{width:30px}.clock{font-size:11px}.clock small{font-size:9px}.round{width:37px;height:37px}#welcome{left:8%;top:16%;width:74%;max-height:78dvh}h1{font-size:49px;line-height:1.25;margin:18px 0}#welcome>p{font-size:12px;margin:15px 0}.route-preview{margin:20px 0 14px}.route-preview small{font-size:8px}#veil{background:linear-gradient(90deg,#102f31b8,transparent 140%),linear-gradient(0deg,#102f3199,transparent 75%)}footer{left:22px;right:22px;bottom:17px;font-size:8px}footer span:last-child{display:none}.trail-label{top:105px;left:24px}.trail-label b{font-size:17px}.progress{top:105px;right:22px;width:123px;padding:9px}.compass{top:80px;font-size:8px}.actions{right:20px;bottom:64px;display:grid;grid-template-columns:repeat(2,55px);gap:12px}.actions button{width:55px;height:55px}.actions button:last-child{grid-column:2;grid-row:1}#wave{grid-column:1;grid-row:2}#rest{grid-column:2;grid-row:2}#center{right:27px;bottom:206px}#joyZone{left:4px;bottom:30px;width:180px;height:180px}#joyBase{width:116px;height:116px}#joyThumb{left:35px;top:35px}#gestureHint{bottom:20px;font-size:8px;letter-spacing:0}#toast{bottom:245px;font-size:10px}dialog{padding:27px 24px}#error{inset:15% 5%;padding:28px}}
@media(max-height:730px){#welcome{top:14%}h1{font-size:39px;margin:12px 0}#welcome>p{margin:8px 0}.route-preview{margin:14px 0}.colors{margin:10px 0}#start{padding:13px}footer{display:none}}

#joyThumb{left:50%;top:50%;transform:translate(-50%,-50%)}

#welcome{touch-action:pan-y}#error small{display:block;margin-top:15px;font-size:10px;opacity:.7}

.bag-settings{margin:14px 0;font-size:11px;border-block:1px solid #ffffff25;padding:12px 0}.bag-settings summary{cursor:pointer}.bag-settings small{font-size:9px;line-height:1.8;opacity:.7;display:block}.bag-settings .setting select{color:var(--cream);max-width:150px}.bag-settings select option{color:#213e35}.flag-preview{width:24px;height:18px;object-fit:contain;margin-left:auto}.bag-upload{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}.bag-upload>img{width:80px;height:54px;object-fit:contain;border:2px solid #d0c5a5;border-radius:4px;background:#f3efe3}.photo-upload,.bag-upload button{font-size:10px;border:1px solid #8c9d88;border-radius:5px;padding:8px 10px;background:transparent;cursor:pointer}.photo-upload input{display:block;max-width:185px;font-size:9px;margin-top:6px}.bag-upload button:disabled{cursor:default;opacity:.4}.entry-sound{display:flex;align-items:center;gap:7px;font-size:10px;margin:12px 0}.entry-sound input{accent-color:#d7bd7c}#soundVolume{width:150px;accent-color:#577d5e}#welcome{max-height:73dvh;padding-bottom:20px}#welcome .setting{font-size:11px}

.country-choice{border:1px solid #8c9d8866;border-radius:7px;background:transparent;color:inherit;padding:8px 12px;min-width:140px;text-align:left}.country-choice span,.country-choice small{display:block}.country-choice small{font-size:10px;opacity:.7;margin-top:3px}.country-choice span{font-size:12px}#countryPicker{z-index:50}#countrySearch{width:100%;padding:12px;border:1px solid #c6d0c0;border-radius:7px;background:#fff8;color:var(--ink);user-select:text;touch-action:auto}.country-list{max-height:48dvh;overflow:auto;margin-top:12px;touch-action:pan-y}.country-row{display:flex;width:100%;align-items:center;gap:14px;border:0;border-bottom:1px solid #d5ddcf;background:transparent;color:var(--ink);padding:13px 10px;text-align:left}.country-row[aria-pressed=true]{background:#dde8d5;border-radius:7px}.country-row img{width:32px;height:24px;object-fit:contain}.country-row b,.country-row small{display:block}.country-row b{font-size:13px;font-weight:500}.country-row small{font-size:11px;color:#71816b;margin-top:4px}

.online-info{position:fixed;left:42px;top:185px;display:flex;flex-direction:column;gap:5px;font-size:10px;text-shadow:0 1px 5px #0009}.online-info b{font-weight:500;color:#ecd5a0}#interact{position:fixed;bottom:230px;left:50%;transform:translateX(-50%);border:1px solid #e5d2a4;background:#244637ed;color:#fff3d4;padding:13px 22px;border-radius:26px;font-size:12px;max-width:90%;white-space:nowrap}.signin-link{display:block;text-align:center;font-size:11px;color:#3c6b4d;margin:15px}header .brand span{font-size:24px}@media(max-width:700px){.online-info{left:24px;top:165px}header .brand span{font-size:20px}}

.mountain{text-decoration:none;color:inherit}.mountain-picker select{color:var(--cream);max-width:220px}.mountain-picker option{color:var(--ink)}

.bio-label{display:block;font-size:11px;margin:14px 0 6px}#bagBio,#bagBioEdit{width:100%;min-height:70px;background:#ffffff16;border:1px solid #a6b39c88;color:inherit;border-radius:6px;padding:10px;font:inherit;font-size:12px;resize:vertical;user-select:text;touch-action:pan-y}#bagProfile{width:min(350px,90%)}#profileCountry{display:flex;gap:12px;align-items:center;margin:10px 0 20px}#profileCountry img{width:40px;height:30px;object-fit:contain}#profileCountry b,#profileCountry small{display:block}#profileCountry small{font-size:11px;color:#75846f;margin-top:4px}#profileLogo{display:block;width:100%;max-height:220px;object-fit:contain;background:#f5f1e6;border-radius:9px}#profileBio{white-space:pre-wrap;overflow-wrap:anywhere;color:#3d5647;margin:20px 0 0}

header .brand span{font-size:21px}.brand small{letter-spacing:1px}@media(max-width:700px){header .brand span{font-size:17px}.brand svg{width:25px}.brand{gap:7px}.brand small{font-size:7px}.clock{font-size:10px}}
#previewStage{position:fixed;left:50%;right:4%;top:115px;height:calc(100dvh - 155px);z-index:2;touch-action:none;cursor:grab}.preview-tools{position:absolute;right:12px;top:10px;display:flex;align-items:center;gap:8px;color:#314c3c;font-size:10px}.preview-tools button{border:1px solid #84977e;border-radius:20px;background:#eef0e4;padding:6px 10px;color:#304d38;font-size:11px}.playing #previewStage{display:none}#welcome{left:4%;top:115px;width:40%;max-height:calc(100dvh - 140px);padding:24px;background:#16382eea;border-radius:16px}#welcome h1{font-size:32px;letter-spacing:-1px;line-height:1.3;margin:12px 0}#welcome h1 br{display:none}#welcome>p{font-size:11px;margin:10px 0}#veil{display:none}.dress-section>label{display:block;font-size:11px;margin-top:14px}.hat-styles{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:8px}.hat-styles button{border:1px solid #a0b19a70;background:transparent;border-radius:6px;padding:9px 3px;font-size:11px;color:#eee8d5}.hat-styles button.selected{background:#e5ddbd;color:#244333}.dress-section .colors{gap:13px;margin:10px 0}.dress-section .colors button{width:27px;height:27px}.actions button.selected{border-color:#dce5ad;background:#5d7758}#cancelStone{position:fixed;bottom:185px;left:50%;transform:translateX(-50%);background:#244637e8;color:#eee5cf;border:1px solid #a3b294;border-radius:20px;font-size:11px;padding:8px 15px}#stone{grid-column:2;grid-row:2}#rest{grid-column:1;grid-row:1}#wave{grid-column:1;grid-row:2}footer{display:none}
@media(max-width:700px){header{padding:14px 16px;padding-top:max(14px,env(safe-area-inset-top))}#previewStage{left:0;right:0;top:84px;height:30dvh;min-height:180px}#welcome{left:12px;top:max(calc(84px + 30dvh),264px);width:calc(100% - 24px);bottom:10px;height:auto;max-height:none;padding:18px;border-radius:14px}#welcome h1{font-size:24px;margin:5px 0}#welcome .eyebrow,#welcome>p{display:none}.route-preview{margin:5px 0 12px}.mountain-picker{padding:8px 0}.hat-styles button{font-size:12px}#start{position:sticky;bottom:-18px;z-index:3;box-shadow:0 -8px 20px #15392c88}.preview-tools{top:4px;right:12px}.preview-tools span{font-size:9px}.dress-section .colors{gap:14px}#stone{grid-column:2;grid-row:2}#rest{grid-column:1;grid-row:1}}

.online-info{top:86px;left:42px;flex-direction:row;align-items:center;gap:14px;font-size:11px}.online-info span{padding:6px 10px;border-radius:20px;background:#1c3f33c9;color:#fff5df}.online-info b{font-size:10px}@media(max-width:700px){.online-info{top:69px;left:16px;gap:8px;font-size:10px}.playing .compass{top:82px;left:auto;right:20px;transform:none}.playing .trail-label,.playing .progress{top:111px}}

.meal-open{position:fixed;right:22px;bottom:330px;border:1px solid #e8e7cf88;border-radius:24px;background:#294c40dd;color:#fff6dc;padding:12px 20px;z-index:12;font-size:15px}.meal-choice{display:block;width:100%;text-align:left;background:#edf0e4;color:#254638;border:1px solid #bac9af;border-radius:14px;padding:18px;margin:10px 0;font:inherit}.meal-choice:disabled{opacity:.45}#mealDialog{max-width:400px;width:calc(100% - 36px)}#mealBalance{font-weight:700;color:#32674d}@media(max-height:700px){.meal-open{bottom:240px}}

.name-label-layer{position:fixed;inset:0;pointer-events:none;z-index:2;overflow:hidden}.hiker-name{position:absolute;left:0;top:0;white-space:nowrap;font:500 11px/1.25 system-ui,sans-serif;color:#fffbed;letter-spacing:0;text-shadow:0 1px 2px #18291fd9;background:none;pointer-events:none;will-change:transform}.hiker-name[hidden],.name-label-layer[hidden]{display:none}

.gift-open{position:fixed;right:20px;bottom:350px;padding:10px 15px;border-radius:24px;background:#254b40df;color:#fff9e8;border:1px solid #dce3c277;font-size:12px}.gift-open[hidden]{display:none}.gift-options{display:flex;gap:10px;margin-top:18px}.gift-options button{flex:1;padding:15px 8px;border-radius:14px;background:#284f40;color:#fff9e8}.gift-person{padding:9px 15px;margin:4px;border-radius:20px;background:#edf0e5;border:1px solid #bdc9b7}.gift-person[aria-pressed=true]{background:#2c5445;color:white}#giftDialog{max-width:420px}#giftDialog button:disabled{opacity:.5}

.gift-cancel{position:fixed;right:20px;bottom:400px;padding:9px 14px;background:#fff9e8;color:#254b40;border-radius:20px;font-size:12px}.gift-cancel[hidden]{display:none}

/* A quiet, explicit entry screen. The 3D scene loads only after entry. */
body.intro-open> :not(#intro):not(#scene):not(script){visibility:hidden!important;pointer-events:none!important}
#intro{position:fixed;inset:0;z-index:1000;background:#153c32;color:#fff8e9;isolation:isolate;overflow:hidden}#intro[hidden]{display:none}
.intro-art,.intro-shade{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% 40%;z-index:-2}.intro-shade{z-index:-1;background:linear-gradient(180deg,#0b241b40 0%,transparent 28%,#0b241b99 52%,#0b241bf5 100%)}
.intro-brand{position:absolute;top:max(42px,calc(env(safe-area-inset-top) + 22px));left:7%;right:7%;text-shadow:0 2px 18px #15362f66}.intro-brand>span{font:600 11px/1.5 system-ui;letter-spacing:5px}.intro-brand h1{font-family:'Noto Sans KR',sans-serif;font-size:clamp(30px,5vw,56px);letter-spacing:-1.8px;line-height:1.25;margin:10px 0}.intro-brand p{font-size:13px;margin:0;letter-spacing:.4px}
.intro-bottom{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));left:7%;width:min(420px,86%)}.intro-story-window{height:230px;overflow:hidden;mask-image:linear-gradient(transparent,#000 14%,#000 82%,transparent);pointer-events:none}.intro-story{text-align:left;font-size:17px;line-height:1.95;font-weight:500;text-shadow:0 2px 7px #102a25}.intro-story p{margin:0 0 36px}.intro-story .intro-last{font-size:22px;font-weight:700;margin-bottom:0}.intro-controls{display:flex;flex-direction:column;gap:14px;margin-top:14px}#introReplay{align-self:flex-start;background:none;border:0;color:#eee9d6;font-size:11px;padding:6px 0;opacity:.8}#introEnter{display:flex;align-items:center;justify-content:space-between;width:100%;padding:18px 22px;border:1px solid #fff6d84d;border-radius:18px;background:#f1ecd9;color:#21493a;font-size:18px;font-weight:700;box-shadow:0 8px 30px #071c2440}#introEnter:disabled{opacity:.65}#introStatus{font-size:11px;text-align:center;color:#d9e2d4;margin:12px 0 0}
#welcome{background:#f7f5eaf5;color:#254536;border:1px solid #ffffffa0;box-shadow:0 14px 45px #142d2820;padding:26px}#welcome .eyebrow{font-size:11px;color:#6d806f;letter-spacing:2px}#welcome h1{font-family:'Noto Sans KR',sans-serif;font-size:28px;font-weight:700;margin:7px 0 14px}#welcome>p{color:#607568;font-size:13px}#welcome .route-preview{border-left:3px solid #789378;padding-left:13px}#welcome .route-preview span{font-size:11px;color:#6e7d6b}#welcome .route-preview strong{font-size:14px;color:#2e4d3d}#welcome .route-preview small{font-size:11px;color:#69796d;line-height:1.6}
#welcome .name-label,#welcome .mountain-picker{font-size:15px;font-weight:700;color:#284a39}#welcome #name{color:#294b3c;background:white;border:1px solid #cdd6c6;border-radius:12px;padding:13px 14px;font-size:15px;width:100%;margin-top:9px}#welcome #name::placeholder{color:#91a091;font-size:13px}#welcome .setting select{background:#fff;color:#284a39;border:1px solid #cdd6c6;border-radius:9px;padding:8px;font-size:12px}
.setup-heading{font-size:17px;line-height:1.4;font-weight:700;margin:24px 0 10px;padding-top:19px;border-top:1px solid #dce1d3;color:#244938}.dress-section>label{font-size:12px;font-weight:500;color:#697a68;margin:10px 0}.hat-styles button{color:#355542;background:#fff;border:1px solid #d5decf;border-radius:10px;padding:12px 3px}.hat-styles button.selected{background:#355d47;color:#fff9e8;border-color:#355d47}.dress-section .colors{gap:16px;padding:4px 3px}.dress-section .colors button{width:30px;height:30px;box-shadow:0 1px 3px #1a3c2920}#welcome .bag-settings{padding:17px 0;border-color:#d8dfd0}#welcome .bag-settings summary{font-size:14px;font-weight:700}#welcome .bag-settings small{font-size:11px;color:#6a7d6d;opacity:1}#welcome .photo-upload,#welcome .bag-upload button{color:#355542;border-color:#c8d2be;background:#fff;font-size:12px;border-radius:9px}#welcome .bio-label{font-size:13px;font-weight:700}#welcome textarea{background:#fff;color:#284a39;border:1px solid #cdd6c6;border-radius:10px}#welcome .entry-sound{font-size:12px;margin:20px 0}#welcome .entry-note{color:#6d7c6c;font-size:10px}#welcome #start{background:#315b45;color:#fff7e5;border-radius:13px;box-shadow:0 -7px 18px #f7f5ea;font-size:16px}#welcome .country-choice{color:#284a39;background:#fff;border-color:#cdd6c6}#welcome .country-choice small{color:#748571}.preview-tools{background:#f7f5eae0;padding:7px 10px;border-radius:22px}
@media(max-width:700px){#welcome{padding:20px;border-radius:20px 20px 12px 12px}#welcome h1{font-size:24px;margin:0 0 14px}.intro-art{object-position:57% 28%}.intro-bottom{bottom:max(18px,env(safe-area-inset-bottom))}.intro-brand{left:7%}#welcome #start{bottom:-20px}.setup-heading{margin-top:22px}}
@media(max-height:650px){.intro-story-window{height:150px}.intro-story{font-size:14px;line-height:1.8}.intro-brand{top:22px}.intro-brand h1{font-size:28px}.intro-bottom{bottom:12px}#introEnter{padding:13px 18px}.intro-controls{gap:6px}}

.gear-styles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gear-styles button{background:#fff;color:#355542;border:1px solid #d5decf;padding:12px 7px;border-radius:10px;font-size:12px}.gear-styles button.selected{background:#355d47;color:#fff9e8}.dress-section .colors{display:grid;grid-template-columns:repeat(8,30px);gap:12px;max-width:100%;margin:12px 0 20px}.dress-section .colors button.chosen{outline:2px solid #315b45;outline-offset:3px}@media(max-width:380px){.dress-section .colors{grid-template-columns:repeat(6,30px)}}

.ranking-list{list-style:none;padding:0;margin:18px 0}.ranking-list li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #dbe1d2;font-size:13px}.ranking-list li>b{color:#7a866c}.ranking-list li:first-child>b{color:#aa7c2c}.ranking-list li>span{overflow-wrap:anywhere}.ranking-list li>strong{font-size:12px;font-variant-numeric:tabular-nums}.ranking-mine{padding:13px 15px;border-radius:12px;background:#e5ebde;font-size:13px;color:#31533d}#rankingDialog{width:min(460px,92vw)}#rankingDialog h2{font-size:23px}

.name-note{display:block;margin:8px 0;color:#6b7e6c;font-size:11px;line-height:1.6}.rename-panel{border:1px solid #d4ddcc;padding:16px;border-radius:14px;margin:16px 0}.rename-panel label{font-size:14px;font-weight:700}.rename-panel input{width:100%;padding:12px;border-radius:9px;border:1px solid #bccdb6;background:#fff;color:#254536;font-size:15px}.rename-panel .muted{font-size:11px}.rename-panel button{margin-top:10px}#name[readonly]{background:#edf0e6!important}

#nameError{font-size:12px!important;line-height:1.7;color:#a34437!important;background:#f9e8df;padding:10px 12px;border-radius:9px}#nameError[hidden]{display:none!important}

/* One layout owns all food and action buttons, so labels cannot overlap */
.trail-controls{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:calc(32px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:flex-end;gap:12px;pointer-events:none;max-width:calc(100vw - 190px)}
.trail-controls button{pointer-events:auto}.trail-controls .actions{position:static}.supply-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:142px;max-width:100%}
.trail-controls .gift-open,.trail-controls .meal-open,.trail-controls .gift-cancel{position:static;min-height:44px;width:100%;padding:10px 8px;margin:0;font-size:12px;line-height:1.4;white-space:normal;z-index:auto}
#center{right:max(20px,env(safe-area-inset-right));bottom:calc(208px + env(safe-area-inset-bottom));transform:translateX(-158px)}
@media(max-width:700px){.trail-controls .actions{display:grid;grid-template-columns:repeat(2,55px);gap:12px}.trail-controls{bottom:calc(28px + env(safe-area-inset-bottom));max-width:calc(100vw - 180px)}#center{bottom:calc(174px + env(safe-area-inset-bottom));transform:translateX(-150px)}}
@media(max-height:500px) and (min-width:701px){.trail-controls{bottom:calc(18px + env(safe-area-inset-bottom))}.supply-actions{flex-direction:row;width:300px}.supply-actions button{flex:1}#center{bottom:155px;transform:none}}

.identity-card,.photo-card{border:1px solid #c9d7bf;border-radius:16px;background:#fffdf6;padding:18px;margin:12px 0 18px}.identity-card{border:2px solid #658c6c}.identity-card h2,.photo-card h2{font:700 17px/1.4 'Noto Sans KR',sans-serif;margin:0 0 12px;color:#284c39}.photo-card h2 span,.required-label{font-size:11px;font-weight:500;margin-left:6px;color:#6b7c66}.photo-card p{font-size:12px;color:#647a66;line-height:1.6}.photo-card .bag-upload{display:flex;flex-direction:column;align-items:stretch}.photo-card .photo-upload{background:#315b45!important;color:#fff!important;text-align:center;font-size:14px!important;padding:16px!important;border:0!important}.photo-card .photo-upload input{font-size:12px;width:100%;max-width:100%;margin-top:12px;color:#fff}.photo-card .bag-upload>img{width:100%;height:110px;object-fit:contain}.photo-card>small{display:block;font-size:11px;color:#647a66;line-height:1.7}.identity-card .name-note{line-height:1.6}#welcome .identity-card #name{font-size:17px;min-height:50px}.identity-card .name-label{opacity:1}

.trail-controls #center{position:static;transform:none;flex-shrink:0}

.wardrobe-mode #welcome>*:not(.dress-section):not(#start):not(#wardrobeBack){display:none!important}.wardrobe-mode .dress-section>.setup-heading:first-of-type{margin-top:0}.wardrobe-mode #welcome:before{content:'옷 · 액세서리';display:block;font-size:22px;font-weight:700;margin-bottom:16px}

/* Clear, aligned Korean labels with stable line breaks on narrow screens */
.trail-label b{font-family:'Noto Sans KR',sans-serif;font-weight:600;font-size:18px;line-height:1.45;letter-spacing:0;word-break:keep-all;overflow-wrap:break-word}.trail-label{max-width:calc(100vw - 220px)}
.progress{width:170px}.progress>div:first-child{display:grid;grid-template-columns:1fr;gap:7px;align-items:start}.progress b{font-size:13px;line-height:1.5;white-space:nowrap;font-weight:600}.progress span{font-size:12px;line-height:1.5;white-space:nowrap}.progress small{font-size:10px;line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}
dialog h2{font-family:'Noto Sans KR',sans-serif;font-weight:600;font-size:23px;line-height:1.4;word-break:keep-all}button{word-break:keep-all}#toast{max-width:calc(100vw - 32px);white-space:normal;text-align:center;line-height:1.6}
@media(max-width:700px){.trail-label{left:20px;max-width:calc(100vw - 204px)}.trail-label b{font-size:16px}.progress{right:16px;width:156px}.progress b{font-size:12px}.progress span{font-size:11px}#gestureHint{max-width:90vw;text-align:center;white-space:normal;line-height:1.5}}

.ramen-art{display:block;width:100%;aspect-ratio:1;background-image:url('/ramen-menu.webp');background-size:300% 100%;border-radius:12px;margin-bottom:10px}.meal-choice:has(.ramen-art){padding:12px;font-size:14px;font-weight:600;text-align:center}#mealList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#mealList .meal-choice{margin:0}

/* Swap the rest control in place. The label is smaller than its touch target. */
#stopMeal{grid-area:1/1;align-self:center;padding:0;border:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
#stopMeal span{padding:6px 4px;border:1px solid #e5eed47a;border-radius:14px;background:#244438e8;color:#fff9e9;font-size:11px;font-weight:600;line-height:14px;white-space:nowrap}
#stopMeal:active span{background:#385b48}
#stopMeal:not([hidden]) + #rest{display:none}


.hiker-speech{display:block;position:relative;max-width:min(230px,65vw);width:max-content;left:50%;transform:translateX(-50%);white-space:normal;overflow-wrap:anywhere;padding:9px 12px;margin-bottom:12px;border-radius:14px;background:#fffbed;color:#244339;text-shadow:none;font:500 13px/1.5 system-ui,sans-serif;box-shadow:0 3px 10px #0002}
.hiker-speech:after{content:'';position:absolute;left:calc(50% - 5px);bottom:-5px;width:10px;height:10px;background:#fffbed;transform:rotate(45deg)}.hiker-speech[hidden]{display:none}
#chatText{width:100%;padding:14px;border:1px solid #bcc9b9;border-radius:12px;font-size:16px;color:#213e35;background:#fffdf5;user-select:text}#chatDialog{width:min(90vw,380px)}#chatForm .secondary{margin-top:12px}


.shop-tabs{display:flex;gap:8px;margin:16px 0}.shop-tabs button{flex:1;border:1px solid #b4c2b2;padding:11px;border-radius:12px;background:#e3e8dc;color:#27493c}.shop-tabs button[aria-selected=true]{background:#284e40;color:#fff9e9}
#mealList:has(.tent-card){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tent-card{background:#e7eadf;border:1px solid #ced6c5;border-radius:16px;padding:12px;min-width:0}.tent-card img{display:block;width:100%;height:100px;object-fit:contain}.tent-card h3{font-size:14px;margin:8px 0}.tent-card p{font-size:11px;line-height:1.6;min-height:34px;margin:5px 0;color:#5a6e5d}.tent-card small{display:block;min-height:32px;font-size:11px;color:#536746}.tent-card .secondary{width:100%;padding:10px 5px;margin-top:6px;font-size:12px;min-height:42px}
#tentPlacement,#leaveTent{position:fixed;left:50%;top:32dvh;transform:translateX(-50%);pointer-events:auto;z-index:32;border:1px solid #c8d3b6;background:#24473eef;color:#fffae7;border-radius:18px;padding:12px 16px;max-width:90vw}#tentPlacement{width:320px;text-align:center}#tentPlacement p{font-size:12px;line-height:1.5;margin:0 0 10px}#tentPlacement button{border:1px solid #d8d9b8;border-radius:12px;background:#e9e8cf;color:#24473e;padding:11px 12px;min-height:44px;margin:0 3px}#leaveTent{top:auto;bottom:calc(34px + env(safe-area-inset-bottom));min-height:48px;font-size:14px}
.tent-label-layer{position:fixed;inset:0;z-index:2;pointer-events:none;overflow:hidden}.tent-name{position:absolute;left:0;top:0;color:#fff7dc;font:500 11px/1.3 system-ui,sans-serif;text-shadow:0 1px 3px #1e3228;white-space:nowrap}#tentPlacement[hidden],#leaveTent[hidden],.tent-name[hidden],.tent-label-layer[hidden],.actions[hidden]{display:none!important}
@media(max-width:360px){.tent-card{padding:9px}.tent-card h3{font-size:12px}.tent-card img{height:80px}}

/* Compact left-hand supplies leave the middle of the trail clear. */
.left-tools{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:calc(210px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,52px);gap:8px;pointer-events:none;z-index:12}
.left-tools button{width:52px;height:52px;border:1px solid #f2f0df75;border-radius:50%;background:#173d32b8;color:#f2f0df;padding:6px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;pointer-events:auto;touch-action:manipulation;box-shadow:none}
.left-tools button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.left-tools button small{font-size:9px;line-height:12px;white-space:nowrap;letter-spacing:0}
.left-tools button:active{transform:scale(.94);background:#396b54}
.left-tools button:disabled{opacity:.45}

#runStatus{position:fixed;bottom:calc(188px + env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left));color:#f5e8b8;font-size:11px;pointer-events:none}
.supply-art{display:block;width:100%;height:110px;background-image:url('/supplies-menu.png');background-size:200% auto;background-repeat:no-repeat;border-radius:12px;background-color:#f2f0e4}
.supply-choice{display:flex;flex-direction:column;gap:7px;text-align:left}
.supply-choice b{font-size:15px}.supply-choice small{font-size:12px;line-height:1.5}
@media(max-height:600px){.left-tools{bottom:calc(145px + env(safe-area-inset-bottom));grid-template-columns:repeat(4,46px);gap:6px}.left-tools button{width:46px;height:46px}.left-tools button svg{width:19px;height:19px}#runStatus{bottom:calc(129px + env(safe-area-inset-bottom))}}



@media(max-height:600px) and (orientation:landscape){.left-tools{bottom:calc(16px + env(safe-area-inset-bottom))}#joyZone{left:0;bottom:80px;width:150px;height:140px}#joyBase{width:100px;height:100px}#joyThumb{left:50%;top:50%}#joyZone>span{display:none}#runStatus{left:16px;bottom:68px}#gestureHint{display:none}}

/* Counts and nearby dialogue stay small and outside the central view. */
.online-info{display:grid;grid-template-columns:auto auto;gap:4px 12px;align-items:center}
#registeredStatus{grid-column:1 / -1;font-size:10px;color:#e2e9d9;font-weight:400;padding-left:3px;line-height:14px}
.playing .trail-label,.playing .progress{top:145px}
#trailChat{margin-top:5px;pointer-events:auto;max-width:100%}
#openChatHistory{display:flex;align-items:center;justify-content:space-between;gap:5px;border:0;background:transparent;color:#e7eadc;padding:3px 0 5px;width:100%;font-size:10px;text-shadow:0 1px 3px #000}
#openChatHistory span{font-size:9px;letter-spacing:0;color:#ccd9c5}
#recentChat{list-style:none;margin:0;padding:0;pointer-events:none}
#recentChat li{font-size:10px;line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f4f2e5;text-shadow:0 1px 4px #000,0 0 2px #000}
#recentChat strong{font-weight:600}#recentChat span{font-size:10px;letter-spacing:0;color:inherit}
#chatHistoryList{list-style:none;margin:0;padding:0;font-size:13px;line-height:1.7}#chatHistoryList li{padding:9px 0;border-bottom:1px solid #d7dfd0;overflow-wrap:anywhere}#chatHistoryList strong{font-size:11px;color:#496c53}
@media(max-width:700px){.playing .trail-label,.playing .progress{top:132px}#registeredStatus{font-size:9px;line-height:12px}.online-info{gap:3px 8px}}
@media(max-height:600px) and (orientation:landscape){#trailChat{max-width:240px}#recentChat li{line-height:15px}.playing .trail-label{left:180px;top:92px;max-width:240px}.playing .progress{top:100px}}

#tentPlacement{top:auto;bottom:calc(194px + env(safe-area-inset-bottom));padding:10px 12px;width:290px}#tentPlacement .tent-adjust{display:flex;gap:6px;margin-bottom:7px}#tentPlacement .tent-adjust button{flex:1;background:transparent;color:#eeeeda;padding:6px;font-size:11px;min-height:36px}#tentPlacement p{font-size:11px;margin-bottom:7px}#tentPlacement button{font-size:12px}#tentPlacement #placeTent{font-weight:600}@media(max-height:600px) and (orientation:landscape){#tentPlacement{bottom:16px;width:280px}}

/* Mobile GPU: HUD stays readable without repeatedly blurring the WebGL canvas */
.playing .round,.playing .progress,.playing .actions button{backdrop-filter:none;-webkit-backdrop-filter:none;background-color:#173d32b8}
@media (orientation:landscape) and (max-height:600px){
 header{padding:10px max(16px,env(safe-area-inset-right)) 6px max(16px,env(safe-area-inset-left));gap:10px}
 .brand span{font-size:18px}.brand svg{width:25px}.brand small{display:none}.clock{font-size:11px}.clock small{font-size:9px}
 .playing .trail-label{left:max(16px,env(safe-area-inset-left));top:104px;max-width:210px;gap:2px}.playing .trail-label b{font-size:15px}
 #trailChat{max-width:210px}#recentChat li{font-size:10px;line-height:14px}#recentChat li:nth-last-child(n+2){display:none}
 .playing .progress{top:62px;right:max(16px,env(safe-area-inset-right));width:170px;padding:8px}.progress #nextStop{display:none}
 #joyZone{left:max(8px,env(safe-area-inset-left));bottom:66px;width:132px;height:120px}#joyBase{width:100px;height:100px}#joyThumb{left:50%;top:50%}
 .left-tools{left:max(16px,env(safe-area-inset-left));bottom:max(10px,env(safe-area-inset-bottom));grid-template-columns:repeat(4,44px);gap:7px}.left-tools button{width:44px;height:44px}
 
 .trail-controls{right:max(16px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));max-width:180px}.trail-controls .actions{display:grid;grid-template-columns:repeat(2,52px);gap:10px}.trail-controls .actions button{width:52px;height:52px}
 #center{right:max(16px,env(safe-area-inset-right));bottom:140px;transform:none;width:44px;height:44px}
 #previewStage{left:max(12px,env(safe-area-inset-left));top:62px;width:39vw;height:calc(100dvh - 76px);bottom:auto}
 #welcome{left:43%;right:max(12px,env(safe-area-inset-right));top:62px;bottom:10px;width:auto;height:auto;max-height:none;padding:16px}
 #welcome #start{bottom:-16px}.intro-brand{top:20px;left:5%}.intro-brand h1{font-size:28px}.intro-bottom{left:auto;right:5%;bottom:12px;width:45%}.intro-story-window{height:130px}.intro-story{font-size:14px}.intro-controls{gap:5px}#introEnter{padding:12px 18px}
 #tentPlacement{bottom:12px;width:min(280px,40vw)}#toast{bottom:145px;max-width:65vw;white-space:normal;text-align:center}
 dialog{max-height:calc(100dvh - 24px);padding:22px}
}
@supports not (height:100dvh){#welcome,dialog{max-height:85vh}}
@media (orientation:landscape) and (max-height:600px){.online-info{top:54px;left:max(16px,env(safe-area-inset-left));gap:2px 8px;font-size:10px}.online-info #registeredStatus{padding:0;background:none;font-size:9px;line-height:12px}.online-info span{padding:4px 8px}.compass{top:18px}}

.animal-dialogue{position:fixed;z-index:18;transform:translate(-50%,-100%);max-width:min(240px,75vw);padding:10px 14px;border-radius:16px;background:#fff8e9;color:#294333;box-shadow:0 3px 12px #0003;font-size:14px;line-height:1.45;pointer-events:none;text-align:center}.animal-dialogue[hidden]{display:none}

#ownerWarpPanel{padding:18px;border:1px solid #b9bda8;border-radius:16px;margin:16px 0}#ownerWarpPanel label{display:block;margin:12px 0 6px}#ownerWarpPanel select{width:100%;padding:12px;border:1px solid #b9bda8;border-radius:10px;background:#fffdf1;color:#294333;font-size:16px}#ownerWarpPanel button{margin-top:16px}
/* Keep route progress directly below the live time caption in every orientation. */
header .clock{position:relative}
header .clock .summit-hud{display:none;position:absolute;top:calc(100% + 8px);right:0;width:180px;pointer-events:none;text-shadow:none}
header .clock .progress{position:static;width:100%;padding:9px 11px;box-sizing:border-box}
.playing header .clock .summit-hud{display:flex;flex-direction:column;align-items:stretch;gap:6px}
header .clock .progress>div:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
header .clock .progress b{font-size:12px;line-height:1.4}
header .clock .progress span,header .clock .progress small{font-size:10px;line-height:1.4}
@media(max-width:700px){header .clock .progress{padding:8px 10px}}
@media(max-height:600px) and (orientation:landscape){header .clock .summit-hud{width:180px}header .clock .progress #nextStop{display:none}}

.monk-greeting{position:fixed;z-index:16;transform:translate(-50%,-100%);pointer-events:none;background:rgba(249,245,228,.94);color:#284537;padding:9px 14px;border-radius:14px;font-size:13px;max-width:240px;text-align:center;box-shadow:0 3px 12px #0002}.monk-greeting[hidden]{display:none}
#wellDialog{width:min(88vw,380px);padding:28px;border-radius:24px}#wellDialog p{line-height:1.6}#wellDialog .close{float:right}.well-meter{position:relative;height:26px;background:#ced6c2;border-radius:13px;margin:22px 0;overflow:hidden}.well-target{position:absolute;left:42%;width:16%;height:100%;background:#638573}#wellCursor{position:absolute;top:2px;width:5px;height:22px;background:#e8b34b;border-radius:3px}#tossWell{padding:14px 22px;background:#2d5141;color:#fff4dd;border-radius:16px;border:0;width:100%}
/* Clear the compass and use the space underneath the right menu edge. */
.compass{display:none!important}
.playing header .clock .summit-hud{right:-58px}
@media(max-width:700px){.playing header .clock .summit-hud{right:-42px;width:158px}}

header .clock .progress #nextStop{word-break:keep-all;overflow-wrap:normal;line-height:1.5}header .clock .progress #altitude{word-break:keep-all;overflow-wrap:normal}
/* Hiking clubs: a scrollable notebook, never an overlay on walking controls */
.club-dialog{width:min(94vw,620px);max-height:88dvh;padding:22px;color:#244a3d;background:#f5f2e7;border:1px solid #c2cab9;border-radius:22px;overflow:auto}
.club-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.club-heading h2{margin:0;font-size:24px}.club-dialog p{line-height:1.65}.club-dialog label{display:grid;gap:8px;margin:14px 0;font-size:14px;font-weight:600}.club-dialog input,.club-dialog textarea,.club-dialog select{box-sizing:border-box;width:100%;min-width:0;padding:12px;border:1px solid #bec9b9;border-radius:10px;background:#fff;color:#254b3e;font:inherit;font-size:16px}.club-dialog button{padding:11px 14px;border-radius:12px;margin:5px 4px 5px 0;min-height:44px}.club-tabs{display:flex;flex-wrap:wrap;gap:4px}.club-tabs [aria-pressed=true]{background:#254c3f;color:white}.club-card{border:1px solid #cbd3c4;border-radius:14px;padding:14px;margin:12px 0}.club-card h3{margin:0}.club-card small{display:block;margin:8px 0}.club-title{font-weight:700;font-size:20px}.club-messages{height:min(38dvh,300px);overflow:auto;padding:10px;background:#e8edde;border-radius:12px;overflow-wrap:anywhere}.club-messages p{margin:8px 0}.club-photo{width:100%;height:auto;border-radius:12px}.club-busy button{pointer-events:none;opacity:.6}.club-permit-art{display:grid;place-content:center;background:#e7d2a3;color:#344f3f;aspect-ratio:1.5;border:5px double #a18b5a;border-radius:12px;font-size:24px;letter-spacing:3px}.club-dialog a{display:block;padding:12px;color:#254c3f}
.club-dialog{font-size:15px}.club-dialog p,.club-dialog small{font-size:14px}.club-dialog button{width:auto;font-size:14px;background:#edf0e5;color:#244a3d;border:1px solid #bdc9b8}.club-heading{margin-bottom:18px}.club-heading h2{white-space:nowrap}.club-heading button{margin-left:auto;flex:0 0 auto}.club-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}.club-tabs button{width:100%;margin:0}.club-card b{display:block;margin-bottom:8px}.club-dialog form>button{background:#2d5444;color:#fff;width:100%}.club-dialog .club-title{font-size:20px}.club-dialog .club-messages p{font-size:15px}
/* Every modal keeps its close button in a non-scrolling header */
dialog.fixed-close-dialog{padding:0!important;overflow:hidden!important;max-height:min(88dvh,calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 16px))!important}
dialog.fixed-close-dialog[open]{display:flex;flex-direction:column}
.dialog-close-bar{flex:0 0 auto;display:flex;justify-content:flex-end;align-items:center;padding:8px 12px;background:#f1f0e7;border-bottom:1px solid #d7ddcf;z-index:2}
dialog .dialog-close-bar>.dialog-close-button{position:static!important;float:none!important;inset:auto!important;transform:none!important;width:44px!important;min-width:44px;min-height:44px;height:44px;margin:0!important;padding:0!important;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#365544;touch-action:manipulation;opacity:1!important;pointer-events:auto!important}
.dialog-close-icon{display:grid;place-items:center;width:27px;height:27px;border:1px solid #c2cdbc;border-radius:50%;background:#e7ecdf;font:500 20px/1 system-ui}
dialog .dialog-close-bar>.dialog-close-button:focus-visible{outline:none}
.dialog-close-button:focus-visible .dialog-close-icon{outline:2px solid #52715e;outline-offset:2px}
.dialog-close-button:active .dialog-close-icon{background:#d5dfcd}
.dialog-scroll-content{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:18px 24px 26px;scroll-padding:12px}
.dialog-scroll-content>small{display:block;text-align:center}
.club-dialog .club-heading{margin-bottom:12px}.club-dialog .club-heading h2{margin-top:0}
@media(max-width:480px){.dialog-scroll-content{padding:14px 18px 22px}.dialog-close-bar{padding:6px 10px}}
@media(max-height:500px) and (orientation:landscape){.dialog-close-bar{padding:4px 10px}.dialog-scroll-content{padding-top:12px}}
/* Portable chair control follows the compact left-side tools. */
#packChair{font-size:12px!important;min-height:48px;padding:9px 12px!important;max-width:125px;white-space:normal}
#packChair{grid-column:1/-1;width:112px;height:auto;border-radius:18px;line-height:1.35}
#animalFoodDialog{max-width:420px}#animalFoodDialog .feed-options{display:grid;gap:12px;margin:20px 0}#animalFoodDialog .feed-options button{min-height:58px;font-size:16px}#animalFoodDialog small{font-size:12px;line-height:1.6;color:#64756a}
.tent-card img{height:auto;aspect-ratio:1;object-fit:contain;background:#f3f0e8;border-radius:12px}.tent-card .permit-photo-button{display:block;width:100%;padding:0;margin:0;border:0;background:transparent;min-height:0;border-radius:12px}.permit-photo-button:focus-visible{outline:3px solid #557968;outline-offset:3px}#permitInfoDialog{max-width:460px}#permitInfoDialog img{display:block;width:100%;max-height:220px;object-fit:contain;border-radius:14px;background:#f3f0e8}#permitInfoDialog dl{margin:20px 0}#permitInfoDialog dt{font-weight:700;margin-top:18px;color:#244a3a}#permitInfoDialog dd{margin:6px 0 0;font-size:14px;line-height:1.75;color:#53665a}#permitInfoDialog p{line-height:1.7}
.snack-product-photo{display:block;width:100%;aspect-ratio:1;object-fit:contain;border-radius:12px;margin-bottom:10px;background:#f3f0e8}.meal-choice:has(.snack-product-photo){padding:12px;font-size:14px;font-weight:600;text-align:center}

.meal-age-notice{display:block;margin:9px 0 5px;color:#973c30;font-size:13px;line-height:1.5}.meal-choice>small{display:block;margin-top:6px;line-height:1.6;font-size:12px}

#mealList .menu-section{grid-column:1/-1;margin:12px 0 0;font-size:15px;color:#294936}.shop-seat-note{font-size:13px;color:#4b6555;margin:10px 0}
.meal-choice.meal-set{grid-column:auto;background:#f6efdd;border:1px solid #b8995c}.meal-choice.meal-set img{width:100%;height:auto;aspect-ratio:1;max-height:none;object-fit:cover}.meal-choice:has(.snack-product-photo),.meal-choice:has(.ramen-art){display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}
#trailFacility,#gatherPlant,#enterWashroom{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 7.8rem);transform:translateX(-50%);z-index:8;min-height:44px;padding:.45rem .9rem;border-radius:2rem;border:1px solid #dac69e;background:#23463c;color:#fff6df;font-weight:700;white-space:nowrap}

#gatherPlant{bottom:calc(env(safe-area-inset-bottom,0px) + 10.8rem);background:#485735}
.plant-bag ul{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:0;list-style:none}.plant-bag li{border-radius:8px;background:#eef0e8;padding:6px 9px;color:#616556;font-size:.85rem}.plant-bag .collected{background:#deeacb;color:#32492c;font-weight:650}

#openInventory{pointer-events:auto;display:inline-flex;align-items:center;gap:4px;min-height:36px;padding:4px 9px;border:1px solid #e5d6b66e;border-radius:16px;color:#fff3da;background:#234438e8;font:600 11px system-ui;touch-action:manipulation}
#openInventory svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.6;fill:none}
#inventoryDialog{width:min(440px,94vw);color:#2e3c32;background:#f5f0e5}
#inventoryDialog h2{margin:2px 0 4px}#inventoryStatus{font-size:.86rem;min-height:1.3em;margin:0 0 12px;color:#536254}
#inventoryGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;list-style:none;margin:0;padding:0}
#inventoryGrid li{min-width:0;min-height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px 2px;border-radius:10px;border:1px solid #d7cbb6;background:#fffaf0;color:#354238}
#inventoryGrid li.empty{background:#ece7db;border-color:#e2dbcb}
#inventoryGrid li b{font-size:11px;line-height:1.15;word-break:keep-all;text-align:center}#inventoryGrid li small{font-size:11px;font-weight:700;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:center}
#inventoryGrid img{height:30px;width:38px;object-fit:cover;border-radius:5px}
.inv-art{color:#96705a;height:29px;display:grid;place-items:center}.inv-art svg{height:29px}
.inv-oyster{color:#93968d}.inv-chanterelle{color:#daa63d}.inv-ear{color:#825245}.inv-coral{color:#cf9770}.inv-ginseng{color:#cfa77a}.inv-wild_ginseng{color:#c6a053}
@media(max-width:380px){#inventoryGrid{gap:4px}#inventoryGrid li{min-height:69px}#inventoryGrid li b{font-size:10px}}
@keyframes inventory-open{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){#inventoryDialog[open]{animation:inventory-open .14s ease-out}}
.ranking-switch{display:flex;gap:4px;margin:8px 0 14px;padding:3px;border-radius:12px;background:#e4e8db}
.ranking-switch button{flex:1;min-height:42px;border:0;border-radius:9px;background:transparent;color:#425349;font-weight:650}
.ranking-switch button[aria-pressed=true]{background:#315540;color:#fff9e8}
#rankingPages{display:flex;align-items:center;justify-content:space-between;gap:8px}#rankingPages button{width:auto}

#enterWashroom{background:#35554e}
#washroomDialog{width:min(350px,92vw);background:#faf7ed;color:#263c32}
.washroom-plaque{display:inline-flex;align-items:center;gap:10px;padding:6px 12px;border:1px solid #b9c8b5;border-radius:5px;background:#e3e9de;color:#3b5949;font-size:.8rem}
.washroom-plaque span{padding-right:10px;border-right:1px solid #aab8a8}
#washroomTitle{margin:14px 0 6px}#washroomStatus{min-height:2.5em;color:#4b6053;line-height:1.5}
#washroomChoices{display:grid;grid-template-columns:1fr 1fr;gap:8px}#washroomChoices button{min-height:48px;border:1px solid #acbbaa;border-radius:10px;color:#244b39;background:#e1e9dc;font-weight:700}
#washroomDialog.washroom-in-use::backdrop{background:#24392fe8}

#enterWashroom small{font-size:.73rem;margin-left:.25rem;padding-left:.45rem;border-left:1px solid #a4b4a9}

.inv-hint{margin:.15rem 0 .65rem;color:#586952;font-size:.77rem}
#inventoryGrid li:has(.inv-pole){padding:0}
.inv-pole{background:transparent;color:inherit;border:0;width:100%;height:100%;min-height:74px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;padding:5px 2px;cursor:pointer}
#inventoryGrid li.equipped{border-color:#597d52;background:#e6eddb}.inv-pole_pine{color:#9a733c}.inv-pole_frost{color:#6197a5}.inv-pole_ridge{color:#485767}

#mealList .meal-set-info{grid-column:1/-1;background:#f5eedb;border-left:3px solid #b8995c;border-radius:6px;margin:0;padding:8px 11px;color:#48533f;font-size:11px;line-height:1.5}
.meal-set-info b,.meal-set-info strong,.meal-set-info span{display:block}.meal-set-info strong{color:#884735}

#mealList .pole-shop-card{grid-column:1/-1;display:grid;grid-template-columns:clamp(48px,14vw,76px) 1fr auto;align-items:center;gap:10px;text-align:left}
.pole-shop-card svg{display:block;width:100%;background:#e7eada;border-radius:9px}.pole-shop-card h3{margin:0 0 3px}.pole-shop-card button{width:auto}

#photoDialog{max-height:90dvh;overflow:auto}#photoImage{max-height:55dvh;object-fit:contain;user-select:auto;-webkit-touch-callout:default}#photoDialog [hidden]{display:none}#photoDialog .download,#sharePhoto{padding:10px;margin-top:6px}#trailPhotoStatus{font-size:13px}

#rangerWarning{position:fixed;z-index:8;top:24%;left:50%;transform:translateX(-50%);width:min(84vw,330px);padding:12px 16px;background:#faf3dc;color:#304938;border:1px solid #9da783;border-radius:15px;box-shadow:0 4px 20px #243c3835;pointer-events:none}#rangerWarning header{position:static;display:flex;justify-content:space-between;padding:0;background:none;color:inherit}#rangerWarning p{font-size:14px;line-height:1.55;margin:7px 0 0}#rangerWarning span{font-size:12px}#rangerWarning[hidden]{display:none}

.harvest-market{grid-column:1/-1;background:#fffdf5;border:1px solid #c8d1b9;border-radius:15px;padding:16px;color:#304c3c}
.harvest-market h3{margin:0 0 12px}.harvest-market label{display:grid;gap:5px;font-size:13px;font-weight:600}
.harvest-market select,.harvest-market input{min-width:0;font:inherit;color:#294536;background:white;border:1px solid #aebeaa;border-radius:8px;padding:9px}
.harvest-market .sale-quantity{display:flex;align-items:center;gap:7px;margin:12px 0}.sale-quantity input{width:5em;text-align:center}.harvest-market button{min-height:40px;padding:6px 11px}
.harvest-market .sell-submit{width:100%;background:#365c47;color:white;border-radius:10px}.harvest-market .sell-submit:disabled{opacity:.55}
.harvest-market .secondary{margin-top:9px}.harvest-market .sale-result{border-left:3px solid #b48948;background:#f6efd8;padding:8px 12px}
.harvest-market details{border-top:1px solid #d7dfcb;margin-top:14px;padding-top:12px;font-size:13px}.harvest-market dl{display:grid;grid-template-columns:1fr auto;gap:5px;margin-bottom:0}.harvest-market dd{margin:0}

.hiker-name{text-align:center}.hiker-club{display:block;margin-bottom:2px;color:#ffedb5;font-size:10px;font-weight:650;text-shadow:0 1px 3px #16271e,0 0 2px #16271e}.hiker-club[hidden]{display:none}.hiker-speech{text-align:left}

[data-club-mark]:not([data-club-mark=""])::before{content:'';display:inline-block;width:1.2em;height:1.2em;margin-right:.25em;vertical-align:-.18em;background:var(--club-mark) center/contain no-repeat}
.club-logo-upload{display:grid;gap:8px}.club-logo-upload img{width:52px;height:52px;object-fit:contain;background:#ecefe7;border-radius:6px}.club-logo-upload img[hidden]{display:none}.club-mark-settings summary{cursor:pointer}

#plantHint{position:fixed;top:0;left:0;pointer-events:none;z-index:2;padding:2px 6px;border-radius:8px;background:#263d31da;color:#fff4ce;font:600 11px/1.4 system-ui;white-space:nowrap}#plantHint::after{content:'';position:absolute;left:50%;bottom:-3px;margin-left:-3px;border:3px solid transparent;border-bottom:0;border-top-color:#263d31da}#plantHint[hidden]{display:none}

.gear-categories{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:4px;border-radius:12px;background:#dfe6d8}
.gear-categories button{min-height:38px;border:0;background:none;color:#415746;font-size:clamp(11px,3vw,14px);border-radius:8px;padding:5px 2px}.gear-categories button[aria-pressed=true]{background:#fffdf6;color:#244635;box-shadow:0 1px 4px #29433226;font-weight:700}
#mealList .gear-product{grid-column:1/-1;display:grid;grid-template-columns:clamp(62px,17vw,88px) minmax(0,1fr);gap:6px 12px;padding:10px 12px;text-align:left;align-items:center;background:#fafbf4;border:1px solid #cbd4c4;border-radius:12px}
#mealList .gear-product>:first-child{grid-column:1;grid-row:1/3;align-self:center;width:100%;margin:0}#mealList .gear-product img,#mealList .gear-product svg{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:8px}
.gear-copy,.gear-actions{grid-column:2;min-width:0}.gear-copy h3,.gear-copy small,.gear-copy p{margin:0;line-height:1.45}.gear-copy h3{font-size:15px}.gear-copy p{color:#546b59;font-size:12px}.gear-copy small{color:#395840;font-weight:650}.gear-actions{display:flex;gap:5px;flex-wrap:wrap}#mealList .gear-actions button{width:auto;margin:0;padding:5px 10px;min-height:32px;font-size:12px}

.supply-buy-options{display:flex;flex-wrap:wrap;gap:5px;margin-top:auto}.supply-buy-options button{flex:1 0 auto;min-height:38px;border:1px solid #b7c4b4;border-radius:8px;padding:6px;background:#f5f7ef;color:#264833;font-weight:650}.supply-buy-options button:disabled{opacity:.48}
.mountain-census{border:1px solid #c8d4c2;border-radius:12px;background:#fafbf4;color:#2e4939;padding:12px;margin:8px 0 14px}
.mountain-census b{font-size:13px}.mountain-census ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;margin:8px 0 0;padding:0;list-style:none}
.mountain-census li{display:flex;justify-content:space-between;gap:6px;padding:4px 6px;font-size:12px}.mountain-census li.current{border-radius:5px;background:#e4eddb}.mountain-census strong{font-variant-numeric:tabular-nums}
.online-info #onlineStatus{position:static;width:auto;height:auto;border:1px solid #ffffff42;border-radius:8px;min-height:30px;padding:4px 8px;background:#284938d9;color:#fff9e8;font-size:11px;pointer-events:auto;cursor:pointer}

#mealList .grill-choice{grid-column:1/-1;display:grid;grid-template-columns:minmax(105px,38%) 1fr;align-content:center;align-items:center;gap:7px 12px;text-align:left;background:#f7ecdc;border:1px solid #b78e63}
#mealList .grill-choice img{grid-column:1;grid-row:1/3;width:100%;margin:0;object-fit:cover}#mealList .grill-choice small{grid-column:2;margin:0;font-size:12px;line-height:1.5}

#nearSupper{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 8.5rem);transform:translateX(-50%);border:1px solid #d3ae7e;background:#543a2b;color:#fff6e7;border-radius:2rem;padding:10px 14px;min-height:42px;font-weight:650;white-space:nowrap}#nearSupper[hidden]{display:none}
#supperDialog label{display:grid;gap:6px}#supperDialog select,#joinSupper{width:100%;padding:10px;border-radius:9px}#joinSupper{background:#34533e;color:white}

#journal .dialog-close-bar{padding:3px 14px}
#journal .dialog-close-bar:before{content:'등산 수첩';margin-right:auto;color:#455f51;font-size:14px;font-weight:650}

#journal .eyebrow{display:none}
#journal h2{margin:6px 0 10px;font-size:clamp(22px,6vw,30px)}
#journal .stats{margin:0;padding:12px 0 14px;border-top:0}
#journalActions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:12px 0 15px}
#journalActions button{margin:0;min-height:44px;padding:8px;background:#e5eadf;color:#304f40;border:1px solid #ccd6c8}
#journalActions #openJournalInventory{background:#315644;color:#fff;border-color:#315644}
.journal-fold{border-top:1px solid #d1d8cd}
.journal-fold summary{display:flex;align-items:center;justify-content:space-between;min-height:46px;cursor:pointer;list-style:none;color:#2d493a;font-size:15px;font-weight:600}
.journal-fold summary::-webkit-details-marker{display:none}
.journal-fold summary:after{content:'+';color:#657960;font-size:19px}
.journal-fold[open] summary:after{content:'−'}
.journal-fold-body{padding-bottom:12px}
#journal .journal-fold-body>.muted:first-child{margin-top:0}

#nearCucumber{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 13.75rem);transform:translateX(-50%);border:1px solid #abc6a0;background:#365b42;color:#fff8e9;border-radius:2rem;box-sizing:border-box;width:78px;height:44px;padding:3px 2px;white-space:pre-line;font-size:12px;line-height:16px;text-align:center;font-weight:650}
@media(max-width:360px) and (orientation:portrait){#nearCucumber{left:max(50%,calc(env(safe-area-inset-left,0px) + 174px))}}
@media(max-height:500px) and (orientation:landscape){#nearCucumber{bottom:calc(env(safe-area-inset-bottom,0px) + 3.5rem)}}
#nearCucumber[hidden]{display:none}
#cucumberDialog{max-width:min(350px,92vw)}
#cucumberDialog h2{margin-bottom:.5rem}

#entryPopulationTotal{width:100%;min-height:44px;margin:.4rem 0 .8rem;border:1px solid #c8d4c2;border-radius:10px;background:#fafbf4;color:#2e4939;font-size:14px}
.trail-view-tools{display:flex;align-items:center;justify-content:flex-end;column-gap:20px}
.trail-view-tools > button{flex:none}
.trail-view-tools #center{min-width:44px;min-height:44px}
@media(pointer:coarse),(max-width:700px){.trail-view-tools{column-gap:24px;margin-bottom:4px}}
#spiritDisguise,#trailLantern,#fieldToolAction{display:grid;justify-items:center;align-content:center;gap:1px;width:44px;height:44px;border:1px solid #ffffff60;border-radius:50%;color:#f2f0df;background:#173d32bc;touch-action:manipulation}
#trailLantern[aria-pressed=true]{color:#fff0ac;border-color:#e7c47f;background:#60512be8}
#trailLantern svg,#fieldToolAction svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none}
#spiritDisguise small,#trailLantern small,#fieldToolAction small{font-size:9px;line-height:10px}

@media (max-width:700px) and (orientation:portrait){
 .online-info{max-width:calc(100vw - 195px - env(safe-area-inset-left) - env(safe-area-inset-right));grid-template-columns:minmax(0,auto) auto}
 .online-info #onlineStatus{min-width:0;white-space:normal;word-break:keep-all}
 #openInventory{justify-self:start;white-space:nowrap}
}
.gear-styles.outfit-gallery{grid-template-columns:repeat(auto-fill,minmax(min(100%,106px),1fr));gap:8px}
.outfit-gallery .outfit-card{position:relative;display:flex;flex-direction:column;align-items:stretch;overflow:hidden;padding:0 0 9px;gap:0;text-align:left;white-space:normal;line-height:1.35}
.outfit-card img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:contain;background:#eeeee6}
.outfit-card .outfit-name{margin:7px 7px 0;font-size:12px;font-weight:700;word-break:keep-all}
.outfit-card small{margin:3px 7px 0;font-size:10px;line-height:1.35;word-break:keep-all}
.outfit-gallery .outfit-card.selected{border-color:#315b45;box-shadow:0 0 0 1px #315b45}
.outfit-card.selected:after{content:'✓';position:absolute;top:6px;right:6px;display:grid;place-items:center;width:18px;height:18px;background:#315b45;color:white;border:1px solid #fff;border-radius:50%;font-size:12px;font-weight:700}
.outfit-card:focus-visible{outline:3px solid #486b9c;outline-offset:2px}

#noticeArea{position:fixed;inset:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));pointer-events:none;z-index:30}
#noticeArea #toast{position:absolute;bottom:auto;transform:none;transition:opacity .15s;max-width:100%;padding:7px 11px;font-size:12px;line-height:1.45;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;text-align:center}

.metal-pick{position:fixed;z-index:8;left:50%;top:58%;transform:translateX(-50%);max-width:45vw;padding:.55rem .85rem;border-radius:2rem;color:#fff5d5;background:#273f36ed;border:1px solid #b8ab7b;font:inherit;touch-action:manipulation}
.metal-pick[hidden]{display:none}


#inquiryDialog{width:min(88vw,400px)}#inquiryDialog textarea{display:block;box-sizing:border-box;width:100%;margin:6px 0;padding:10px;font-size:16px;border-radius:8px;user-select:text}#inquiryList article{padding:10px 0;border-top:1px solid #abb7a5}#inquiryList p{white-space:pre-wrap;overflow-wrap:anywhere}

#markerOptions[hidden],#markerShot[hidden],#markerFlagPreview[hidden]{display:none}
.portrait-upload{display:grid;gap:8px;font-weight:600}.portrait-upload input{max-width:100%}
#markerFlagPreview{display:block;width:min(100%,220px);height:auto;margin:12px auto}
#markerOptions button{display:block;width:100%;margin:8px 0}

#coinMeter{align-self:flex-end;display:grid;grid-template-columns:auto auto;gap:2px 5px;align-items:center;max-width:100%;box-sizing:border-box;padding:3px 6px;border-radius:9px;background:#193d32e8;color:#fff3cc;font:inherit;font-size:9.5px;line-height:1.25;font-variant-numeric:tabular-nums;position:relative;border:0;pointer-events:auto;cursor:pointer}
#coinMeter[hidden]{display:none}#coinMeter span,#coinMeter b{font-size:inherit;color:inherit}#coinMeter b{font-weight:500}
#coinMeter i{grid-column:1/-1;width:100%;height:2px;overflow:hidden;border-radius:2px;background:#ffffff35}
#coinFill{display:block;height:100%;background:#dec286}#coinMeter.earned{background:#655125;color:#fff3b7}

#coinMeter::after{content:"";position:absolute;inset:-2px 0 auto;height:max(44px,100%)}
#coinHelp{width:min(82vw,330px)}#coinHelp p{line-height:1.55}

#hairSection>label{display:block;margin:12px 0 7px;font-size:12px;font-weight:500;color:#697a68}

#scatterSpiritGifts{display:grid;place-content:center;justify-items:center;gap:1px;min-width:64px;min-height:44px;padding:3px 7px;border:1px solid #e2cc9e;border-radius:14px;background:#304b47ed;color:#fff0ce;touch-action:manipulation}
#scatterSpiritGifts svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#scatterSpiritGifts small{font-size:10px;white-space:nowrap}
#scatterSpiritGifts:disabled{opacity:.55}
#spiritGiftHint{position:fixed;top:0;left:0;pointer-events:auto;touch-action:manipulation;border:0;padding:6px 9px;border-radius:8px;background:#38463cf0;color:#fff0c9;font:600 11px/1.4 system-ui;white-space:nowrap;z-index:3}
#scatterSpiritGifts[hidden],#spiritGiftHint[hidden]{display:none}

#inquiryList article{margin:10px 0;padding:12px;border:1px solid #cbd6c9;border-radius:10px}
#inquiryList .inquiry-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}
.inquiry-meta strong{font-size:12px;color:#765826;white-space:nowrap}
.inquiry-meta strong[data-answered=true]{color:#356347}
#inquiryList [hidden]{display:none}

#stoneNoteDialog{width:min(340px,calc(100vw - 44px))}
#stoneNoteDialog label,.stone-note-buttons{display:flex;align-items:center;justify-content:space-between;gap:10px}
#stoneNoteDialog label{font-weight:650;margin:18px 0 7px}
#stoneNoteCounter{color:#68715c;font-size:.8rem;font-variant-numeric:tabular-nums}
#stoneNoteText{width:100%;box-sizing:border-box;border:1px solid #a28360;border-radius:8px;background:#f4e2c3;color:#473522;padding:12px 10px;text-align:center;font-size:20px;letter-spacing:.09em}
#stoneNoteStatus{display:block;min-height:1.5em;margin:5px 0;color:#775737}
.stone-note-buttons button{flex:1}.stone-note-buttons button:disabled{opacity:.55}

#inventoryGrid .inv-axe-art{height:45px;width:55px;object-fit:contain}
#inventoryAxe{display:flex;align-items:center;gap:12px;margin:10px 0;padding:10px 13px;border-radius:12px;border:1px solid #d8c69e;background:#fcf6e8}
#inventoryAxe[hidden]{display:none}
#inventoryAxe img{width:clamp(64px,20vw,92px);height:80px;object-fit:contain}
#inventoryAxe small{color:#775a32;font-size:11px}
#inventoryAxe h3{margin:2px 0;font-size:17px}
#inventoryAxe p{margin:3px 0 7px;font-size:12px}
#inventoryAxe button{padding:7px 14px;border-radius:8px;background:#385941;color:#fff}
.harvest-market .market-axe-art{display:block;width:94px;height:78px;object-fit:contain;margin:9px auto 0}

/* Nearby actions share one flowing panel above the permanent hiking controls. */
.trail-context-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;max-width:100%;max-height:32dvh;overflow-y:auto;overscroll-behavior:contain;pointer-events:auto}
.trail-context-tools:not(:has(>button:not([hidden]))){display:none}
#hud .trail-context-tools > button[id]{position:static;inset:auto;transform:none;flex:0 1 auto;max-width:100%;min-height:44px;margin:0;white-space:normal;line-height:1.25;touch-action:manipulation}
#hud .trail-context-tools > .zoo-action{
 appearance:none;-webkit-appearance:none;background:#294d40;color:#fff8e9;
 border:1px solid #a4bba3;border-radius:1.4rem;padding:6px 13px;
 font-size:14px;font-weight:650;
}
#hud .trail-context-tools > .zoo-action:active{background:#365e4c}
.trail-context-tools > button[hidden]{display:none!important}
.trail-controls .trail-view-tools{max-width:100%;flex-wrap:wrap;gap:8px}

#spiritLocator{padding:6px 10px;border:1px solid #c4b88a;border-radius:13px;background:#25443fed;color:#fff2c9;font-size:11px;font-weight:650}
.spirit-locator-panel{margin:12px 0;padding:13px;border:1px solid #bfcbb5;border-radius:12px;background:#e7eddf}
.spirit-locator-panel[hidden]{display:none}
.spirit-locator-panel h3,.spirit-locator-panel p{margin:0 0 6px}
.spirit-locator-panel p,.spirit-location-ends{font-size:11px;color:#445e4e}
.spirit-location-map{position:relative;height:4px;margin:17px 6px 8px;border-radius:5px;background:#8b9d85}
.spirit-location-map i{position:absolute;top:50%;width:9px;height:9px;border-radius:50%;background:#27654e;border:1px solid #eff4e8;transform:translate(-50%,-50%)}
.spirit-location-map .is-self{background:#edb849;border:2px solid #614f26;width:11px;height:11px}
.spirit-location-ends{display:flex;justify-content:space-between}
.spirit-locator-panel ul{margin:8px 0 0;padding:0;list-style:none;max-height:30dvh;overflow-y:auto}
.spirit-locator-panel li{display:grid;gap:2px;padding:5px 0;border-top:1px solid #c5d2bf;font-size:13px}
.spirit-locator-panel small{color:#445e4e;font-size:11px}

#spiritLocator small{display:block;font-size:10px;color:#dfdfc5}
.spirit-locator-panel .hiker-warp-row{display:grid;grid-template-columns:1fr auto;gap:3px 12px;align-items:center;min-height:46px;width:100%;padding:5px 8px;background:transparent;color:#244436;text-align:left;border:0}
.hiker-warp-row small{grid-column:1}.hiker-warp-row::after{content:'이동 ›';grid-column:2;grid-row:1 / 3;font-size:12px;color:#365c41}
.hiker-warp-row:active,.hiker-warp-row:focus-visible{background:#d6e4ce}

/* Fold each anchored panel in place. The clip has no invisible touch surface
   once both dimensions have contracted; surrounding groups flow into the gap. */
.hud-info-stack{position:fixed;top:86px;left:max(42px,env(safe-area-inset-left));display:flex;flex-direction:column;align-items:flex-start;gap:5px;pointer-events:none;max-width:min(224px,calc(100vw - 200px))}
.hud-info-stack :is(.online-info,.trail-label){position:static;max-width:100%;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:0}
[data-hud-fold]{--fold-width:190px;--fold-duration:210ms;pointer-events:none}
[data-hud-fold] .hud-fold-body{display:grid;grid-template-rows:1fr;max-width:var(--fold-width);min-width:0;opacity:1;transition:grid-template-rows var(--fold-duration) ease,max-width var(--fold-duration) ease,opacity 160ms ease}
[data-hud-fold].hud-fold-closed .hud-fold-body{grid-template-rows:0fr;max-width:0;opacity:0}
.hud-fold-clip{min-height:0;min-width:0;overflow:hidden}
.hud-fold-content{display:flex;flex-direction:column;align-items:stretch;gap:4px;width:var(--fold-width);padding-block:3px}
[data-hud-fold] button.hud-fold-toggle{display:inline-flex;flex:none;align-items:center;justify-content:space-between;gap:5px;width:auto;height:29px;min-width:44px;min-height:0;margin:0;padding:1px 8px;border:1px solid #e6edd338;border-radius:11px;background:#183f34df;color:#f2f2df;font:600 11px/1.2 system-ui;letter-spacing:0;white-space:nowrap;pointer-events:auto;touch-action:manipulation}
button.hud-fold-toggle::after{content:'';width:5px;height:5px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(225deg) translate(-1px,-1px);transition:transform var(--fold-duration) ease}
button.hud-fold-toggle[aria-expanded=false]::after{transform:rotate(45deg) translate(-1px,-1px)}
[data-hud-fold] .hud-fold-toggle[hidden],.left-tools[hidden]{display:none!important}
.online-info .hud-fold-content{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 5px;pointer-events:none}
.trail-label .hud-fold-content{gap:2px}
.hud-info-stack :is(.online-info,.trail-label){--fold-width:min(216px,calc(100vw - 200px))}
.playing header .clock .summit-hud{width:auto;--fold-width:180px;align-items:flex-end;gap:0}
.summit-hud .hud-fold-content{gap:5px}
.left-tools[data-hud-fold]{display:flex;flex-direction:column;align-items:flex-start;gap:0;--fold-width:112px}
.left-tools .hud-fold-content{display:grid;grid-template-columns:repeat(2,52px);gap:8px}
.hud-actions-shell{display:flex;flex-direction:column;align-items:flex-end;max-width:100%;--fold-width:300px}
.hud-actions-shell .hud-fold-content{width:max-content;max-width:var(--fold-width);align-items:flex-end;gap:9px}
.hud-actions-shell .hud-fold-body{max-width:100%}
.hud-actions-shell.hud-fold-closed .hud-fold-body{max-width:0}
@media(max-width:700px){
 .hud-info-stack{top:69px;left:max(16px,env(safe-area-inset-left))}
 .playing header .clock .summit-hud{--fold-width:min(146px,calc(48vw - 10px))}
 .hud-actions-shell{--fold-width:min(166px,calc(100vw - 180px))}
}
@media(max-height:600px){
 .left-tools[data-hud-fold]{--fold-width:202px}
 .left-tools .hud-fold-content{grid-template-columns:repeat(4,46px);gap:6px}
}
@media(orientation:landscape) and (max-height:600px){
 .hud-info-stack{top:54px;left:max(16px,env(safe-area-inset-left));max-height:calc(100dvh - 200px);max-width:min(216px,calc(100vw - 200px))}
 .left-tools .hud-fold-content{grid-template-columns:repeat(4,44px);gap:7px}
 .hud-actions-shell{--fold-width:180px}
}
@media(prefers-reduced-motion:reduce){
 [data-hud-fold] .hud-fold-body,button.hud-fold-toggle::after{transition:none}
}

/* Give the expanded right-hand panel its own width, independent of the clock. */
.playing header .clock .summit-hud{width:max-content;--fold-width:clamp(144px,44vw,184px)}
.summit-hud .hud-fold-body{width:var(--fold-width)}
.summit-hud .hud-fold-content{width:100%;min-width:0}
header .clock .progress :is(#altitude,#nextStop){max-width:100%;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
#coinMeter{grid-template-columns:minmax(0,auto) minmax(0,auto)}
#coinMeter :is(#coinCounter,#coinTimer){min-width:0;white-space:normal;overflow-wrap:anywhere}

/* On phones each top panel stays on its own side of a 12px centre gutter. */
@media(max-width:700px){
 .playing{--hud-left:max(16px,env(safe-area-inset-left));--hud-right:max(16px,env(safe-area-inset-right))}
 .hud-info-stack{left:var(--hud-left);max-width:calc(50vw - var(--hud-left) - 6px)}
 .hud-info-stack :is(.online-info,.trail-label){--fold-width:min(216px,calc(50vw - var(--hud-left) - 6px))}
 .playing header .clock .summit-hud{position:fixed;right:var(--hud-right);top:calc(env(safe-area-inset-top,0px) + 60px);--fold-width:min(184px,calc(50vw - var(--hud-right) - 6px))}
 .online-info .hud-fold-content{grid-template-columns:minmax(0,1fr) auto}
 .online-info #onlineStatus{white-space:normal;word-break:keep-all;min-width:0}
}
@media(max-width:700px){
 .online-info .hud-fold-content{grid-template-areas:"registered bag" "population population"}
 .online-info #registeredStatus{grid-area:registered}
 .online-info #openInventory{grid-area:bag;justify-self:end}
 .online-info #onlineStatus{grid-area:population;white-space:nowrap;justify-self:start;max-width:100%}
}

#mealChat{padding:6px 13px;border:1px solid #b2c5aa80;border-radius:16px;background:#284a40;color:#fff6dd;font-size:12px;font-weight:650}

#hud .trail-context-tools > #gatherPlant{
 position:relative;isolation:isolate;min-width:44px;padding:4px 10px;
 border:0;background:transparent;font-size:13px;font-weight:600;
}
#gatherPlant::before{
 content:'';position:absolute;inset:5px 0;z-index:-1;
 border:1px solid #dac69e;border-radius:16px;background:#485735;pointer-events:none;
}

/* Meal chat stays at the usual left-hand chat area, outside folding/scroll panels. */
#hud > #mealChat{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:calc(210px + env(safe-area-inset-bottom));z-index:15;min-width:80px;min-height:48px;pointer-events:auto;touch-action:manipulation}
#hud > #mealChat[hidden]{display:none!important}
@media(max-height:600px){#hud > #mealChat{bottom:calc(145px + env(safe-area-inset-bottom))}}
@media(max-height:600px) and (orientation:landscape){#hud > #mealChat{bottom:max(16px,env(safe-area-inset-bottom))}}
#ginsengNotice{position:fixed;inset:0;z-index:40;display:grid;place-items:center;pointer-events:none;padding:24px;background:radial-gradient(ellipse at center,transparent 35%,#781b1b24);}
#ginsengNotice[hidden]{display:none}
#ginsengNotice .ginseng-notice-card{width:min(440px,100%);padding:20px 18px;text-align:center;border:1px solid #ffaaa1;border-radius:18px;background:#331a19ed;box-shadow:0 8px 40px #0006;color:#fff2e7;animation:ginseng-arrive .35s ease-out}
#ginsengNotice b{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 10px;border-radius:50%;background:#d93632;color:#fff;font:bold 32px/1 system-ui}
#ginsengNotice p{margin:5px 0;font-size:clamp(14px,3.8vw,18px);line-height:1.6;white-space:pre-line}
@keyframes ginseng-arrive{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#ginsengNotice .ginseng-notice-card{animation:none}}
#ginsengLocator{padding:8px 12px;border:1px solid #d6ba76;border-radius:13px;background:#294a37;color:#fff1c6;font-size:12px}
#ginsengLocatorDialog{width:min(90vw,400px)}
.ginseng-location-row{white-space:pre-line;padding:12px;border-radius:10px;background:#e5eadc;font-size:13px;line-height:1.7}
button.ginseng-location-row{display:block;width:100%;min-height:60px;margin:10px 0;border:1px solid #a5b59a;color:#213e35;text-align:left;touch-action:manipulation}
button.ginseng-location-row:active{background:#d2dfc7}

#mealZoom{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:calc(264px + env(safe-area-inset-bottom));display:flex;gap:5px;pointer-events:auto;z-index:15}
#mealZoom[hidden]{display:none}
#mealZoom button{touch-action:manipulation;min-height:44px;padding:4px 8px;color:#fff6dd;background:#26463eee;border:1px solid #b7c2a6;border-radius:12px;font-size:12px}
@media(max-height:600px){#mealZoom{bottom:calc(199px + env(safe-area-inset-bottom))}}
@media(max-height:600px) and (orientation:landscape){#mealZoom{bottom:calc(69px + env(safe-area-inset-bottom))}}
#totalDistance{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}

#mealList .costume-card img{object-fit:contain;background:#f4f4ed;aspect-ratio:4/5;height:auto;max-height:180px}

.costume-lineup{grid-column:1/-1}.costume-lineup summary{cursor:pointer;padding:8px 0}.costume-lineup img{display:block;width:100%;height:auto;border-radius:12px}

#zooFoodDialog{padding:2.5rem 1.35rem 1.35rem;width:min(88vw,24rem)}
#zooChoice,#zooFoodAction{width:100%;padding:.75rem;border-radius:.6rem}
#zooFoodAction{background:#305449;color:#fff6e4}#zooFoodAction:disabled{opacity:.5}
#balloonShop{width:min(88vw,24rem);padding:2.5rem 1.35rem 1.35rem}
#balloonChoices{display:grid;grid-template-columns:1fr 1fr;gap:.55rem}
#balloonChoices button{min-height:46px;padding:.5rem;border-radius:.65rem;background:#e4ecdf;color:#25463b}

#onlineStatus[hidden],#entryPopulationTotal[hidden]{display:none!important}

#campPanel{position:fixed;left:50%;top:32dvh;transform:translateX(-50%);width:min(310px,88vw);padding:14px;border-radius:16px;background:#24473ef5;color:#fff8de;pointer-events:auto;text-align:center;z-index:32}
#campPanel small{display:block;margin:.5rem 0}#campPanel>div{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#campPanel button,#campPanel label{position:static;transform:none;display:grid;place-items:center;background:#38634e;color:#fff9e7;border:1px solid #acba95;border-radius:9px;min-height:42px;padding:4px}
#campPanel[hidden],#campPanel [hidden]{display:none!important}#napProgress{width:100%;accent-color:#d4c582}#napLabel:empty{display:none}

#chatHistoryList li{display:flex;align-items:center;gap:8px}#chatHistoryList li>span{flex:1;min-width:0}#chatHistoryList .chat-delete{flex:none;width:40px;min-height:40px;padding:0;color:#83483b;background:transparent;border:0;font-size:21px}

.header-census{display:none}
.playing header>.header-census{margin-left:auto;display:grid;gap:2px;text-align:right;white-space:nowrap;font-size:10px;line-height:1.2}
.playing header>.header-census #registeredStatus{padding:0;font-size:12px;font-weight:600}
.playing header>.clock{margin-left:0}
.online-info .hud-fold-content{grid-template-areas:"population bag";grid-template-columns:minmax(0,auto) auto}
@media(max-width:700px){
 .playing header{gap:clamp(4px,1.8vw,10px)}
 .playing .hud-info-stack,.playing header .clock .summit-hud{top:calc(env(safe-area-inset-top,0px) + 65px)}
 .online-info .hud-fold-content{grid-template-areas:"bag" "population";grid-template-columns:minmax(0,1fr)}
 .online-info #openInventory{justify-self:start}
}
@media(max-width:360px){.playing header .brand small{display:none}.playing header .brand span{font-size:14px}.playing header .clock small{max-width:80px}}
@media(orientation:landscape) and (max-height:600px){.playing .hud-info-stack,.playing header .clock .summit-hud{top:calc(env(safe-area-inset-top,0px) + 54px)}}

.hud-info-stack .online-info{display:grid;grid-template-columns:auto minmax(0,auto);grid-template-areas:"bag balance" "population population";align-items:center;gap:3px 5px}
.online-info #openInventory{grid-area:bag}
.online-info #onlineStatus{grid-area:population}
.online-info #coinMeter{grid-area:balance;align-self:center;justify-self:start;display:grid;grid-template-columns:1fr;gap:3px;min-width:0;min-height:32px;padding:4px 7px;background:#233c32cc;border-radius:10px;color:#eddfb4}
.online-info #coinMeter[hidden]{display:none}
.online-info #coinCounter{padding:0;background:transparent;color:inherit;font-size:10px;white-space:normal;overflow-wrap:anywhere}
.online-info #coinMeter::after{inset:0;height:auto}
.online-info #coinMeter.earned{background:#51492e}
#coinHelp #coinTimer{font-weight:650;color:#61502e}

body.in-church > :not(#scene):not(#churchPanel):not(.name-label-layer){visibility:hidden}
#churchPanel{position:fixed;inset:0;z-index:30;pointer-events:none;display:flex;flex-direction:column;justify-content:space-between;padding:max(16px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom));color:#fff5dd}
#churchPanel[hidden],#churchStand[hidden]{display:none}
.church-top,.church-sermon{background:#2e3028e8;border-radius:12px;padding:10px 14px}
.church-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}
#churchPanel button{pointer-events:auto;padding:9px 12px;border-radius:8px;border:1px solid #b2a88d;background:#544c40;color:#fff7e4;font:inherit}
.church-sermon{align-self:center;text-align:center;max-width:35rem}.church-sermon p{margin:5px 0 8px;line-height:1.5}.church-sermon small,.church-sermon span{font-size:12px;color:#dfcca6}

#churchActions[hidden],#churchCopyPanel[hidden],#churchJoy[hidden]{display:none}
#churchJoy{position:absolute;left:max(18px,env(safe-area-inset-left));bottom:calc(132px + env(safe-area-inset-bottom));width:76px;height:76px;border-radius:50%!important;touch-action:none;background:#48483c88!important;display:grid;place-items:center}
#churchJoy i{pointer-events:none;width:31px;height:31px;border-radius:50%;background:#e1d9bd;transform:translate(var(--jx,0px),var(--jy,0px))}
#churchActions{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;margin:6px 0}
#churchActions button,#churchStand{font-size:12px!important}
#churchCopyPanel{pointer-events:auto;position:absolute;z-index:2;left:50%;top:45%;transform:translate(-50%,-50%);width:min(340px,88vw);max-height:68dvh;overflow:auto;padding:18px;border-radius:14px;background:#faf3e2;color:#39372e;box-shadow:0 4px 24px #0005}
#churchCopyPanel textarea{width:100%;box-sizing:border-box;resize:vertical;margin:6px 0;font:16px/1.55 inherit}

/* Center the two shortcuts on the stick and reserve a separate touch row. */
@media (orientation:portrait){
 #joyZone{left:max(4px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));width:176px;height:158px}
 .left-tools{left:calc(max(4px,env(safe-area-inset-left)) + 88px);transform:translateX(-50%);bottom:calc(max(12px,env(safe-area-inset-bottom)) + 160px);grid-template-columns:repeat(3,48px);gap:8px}
 .left-tools button:not(#packChair){width:48px;height:48px}
}
@media (orientation:landscape) and (max-height:600px){
 .left-tools{left:max(8px,env(safe-area-inset-left));width:146px;justify-content:center;grid-template-columns:repeat(3,44px)}
}

#trailInquiry{position:fixed;right:var(--hud-right,16px);top:calc(env(safe-area-inset-top,0px) + 66px);z-index:12;pointer-events:auto;min-height:36px;padding:5px 11px;border:1px solid #b2c5aa80;border-radius:16px;background:#284a40;color:#fff6dd;font-size:12px}
@media(orientation:landscape) and (max-height:600px){#trailInquiry{top:calc(env(safe-area-inset-top,0px) + 54px)}}

#wardrobeNickname[hidden],#faceStyles[hidden],#characterHint[hidden],#changeCharacter[hidden],#wardrobeBack[hidden]{display:none!important}
.wardrobe-mode #wardrobeBack{display:block;width:100%;margin:12px 0 6px}

body.at-coast:not(.on-sand) > :not(#scene):not(#hud):not(#coastPanel):not(#coastReturn):not(#beachAction):not(#beachSeat):not(#beachDesk):not(#chatDialog):not(#chatHistoryDialog):not(.name-label-layer), body.at-coast:not(.on-sand) > .name-label-layer, body.at-coast:not(.on-sand) #hud > *{visibility:hidden!important}
body.on-sand #hud #joyZone{visibility:visible!important}
#coastPanel:not([hidden]){position:fixed;z-index:20;top:max(12px,env(safe-area-inset-top));left:10px;right:10px;display:flex;align-items:center;gap:8px;background:#214b46e6;border-radius:14px;padding:10px;color:#fff8e9;font-size:13px}
#coastPanel strong{flex:1;min-width:0;line-height:1.45;white-space:pre-line;word-break:keep-all;overflow-wrap:anywhere}#coastPanel button{flex:none;white-space:nowrap;background:#365e56;color:inherit;border:1px solid #aac2b4;border-radius:12px;padding:8px}
body.on-sand > #beachAction,body.on-sand > #coastReturn{visibility:visible!important;position:fixed;right:max(14px,env(safe-area-inset-right));bottom:max(45px,env(safe-area-inset-bottom));z-index:21;padding:13px 17px;border-radius:22px;color:#fff5dc;background:#254d43;border:1px solid #dbc58d}

body.on-sand > dialog#beachDesk[open]{visibility:visible!important}

body.on-sand > #beachSeat{visibility:visible!important;position:fixed;right:14px;bottom:108px;z-index:21;color:#fff7df;background:#264b41;border:1px solid #d9c28c;border-radius:18px;padding:10px}
#beachChoices{display:flex;gap:8px}#beachChoices .tarot-card{background:repeating-linear-gradient(45deg,#483951 0 6px,#514158 7px 9px);border:2px solid #b69b68;color:#fff1d5;min-height:74px}

body.on-sand #hud #openChat,body.on-sand #hud #trailChat,body.on-sand > dialog#chatDialog[open],body.on-sand > dialog#chatHistoryDialog[open]{visibility:visible!important}
#beachDesk:has(.tarot-table){background:linear-gradient(145deg,#282036,#171a2a 72%);color:#f3e3c8;border:1px solid #94774c;max-height:84dvh;overflow:auto}
#beachDesk:has(.tarot-table) #beachNote{color:#e5d2b8}
.tarot-table{width:100%;perspective:900px;text-align:center;padding:10px 0}
.arcana{position:relative;display:block;margin:auto;width:min(175px,44vw);aspect-ratio: .59;padding:0;border:none;background:transparent;transform-style:preserve-3d;touch-action:manipulation}
.arcana:disabled{opacity:1}
.arcana-back,.arcana-front{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;gap:18px;backface-visibility:hidden;-webkit-backface-visibility:hidden;border:4px double #cfb27e;border-radius:9px;box-shadow:0 4px 16px #08061088;overflow:hidden}
.arcana-back{background:repeating-linear-gradient(45deg,transparent 0 9px,#a8916522 10px,transparent 11px),repeating-linear-gradient(-45deg,#302736 0 9px,#514150 10px,#302736 11px);color:#edce91}
.arcana-back b{font:68px Georgia;border:1px solid #cfb27e;border-radius:50%;line-height:1;width:75px}
.arcana-front{transform:rotateY(180deg);background:#514454;color:#ffe1aa}.arcana-front img{position:absolute;width:100%;height:100%;object-fit:fill;inset:0}
.arcana.turning{animation:arcana-turn 1.65s cubic-bezier(.46,.04,.18,1) both}.arcana.revealed{transform:rotateY(180deg)}@keyframes arcana-turn{from{transform:rotateY(0) scale(1)}35%{transform:rotateY(410deg) scale(1.05)}to{transform:rotateY(900deg) scale(1)}}
.arcana-reading{text-align:left;line-height:1.75;word-break:keep-all;margin-top:22px;border-top:1px solid #897047;padding-top:18px}.arcana-reading small,.arcana-reading h4{color:#e7c58c}.arcana-reading h3{font-size:20px;margin:6px 0}.arcana-reading p{color:#f4e7d5;font-size:14px;line-height:1.75}.arcana-reading h4{margin-bottom:0}

body.on-sand .trail-context-tools > :not(#scatterSpiritGifts):not(#spiritGiftHint):not(#casinoEntrance):not(#casinoExit):not(#casinoPlay):not(#casinoOfficeButton):not(#casinoChat):not(#bankEntrance):not(#bankExit):not(#bankCounter):not(#bankTicket):not(#bankChat):not(#casinoCompanyWarp):not(#bankCompanyWarp):not(#sfcEntrance):not(#lifeStagTransform):not(#futureMotorcycle):not(#hotelCompanyWarp),body.on-sand #stone{display:none!important}
body.on-sand #beachAction,body.on-sand #coastReturn,body.on-sand #beachSeat,body.on-sand #strandPick{position:fixed;z-index:21;left:50%;right:auto;bottom:24%;transform:translateX(-50%);max-width:65vw;color:#fff6de;background:#284d43;border:1px solid #cdb782;border-radius:18px;padding:9px 13px}
body.on-sand #strandPick{bottom:32%}body.on-sand #beachSeat{bottom:39%}

@media (orientation:portrait) and (max-width:600px){
 body.on-sand #beachAction,body.on-sand #coastReturn{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 222px)}
 body.on-sand #strandPick{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 273px)}
 body.on-sand #beachSeat{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 324px)}
}

#spiritDisguise[aria-pressed=true]{background:#365d48;color:#fff1ca;border-color:#d5ba7c}

#petDialog{max-width:440px;width:calc(100% - 32px);max-height:85dvh;overflow-y:auto}
#petPortrait{display:block;width:100%;height:auto;max-height:240px;object-fit:contain;border-radius:18px;background:#e8eee2;margin:16px 0 10px}
#petPortrait[hidden],#petAgreement[hidden]{display:none}
#petStory{padding:14px 16px;background:#edf1e7;border-radius:14px;color:#344c3d;line-height:1.8}
#petAgreement{padding:14px 16px;border:1px solid #d4ddcb;border-radius:14px;margin:16px 0}
#petAgreement h3{margin:0 0 10px}#petAgreement p{font-size:14px;line-height:1.9}
#petGuardian{width:100%;box-sizing:border-box;margin-top:8px}

/* Readable adoption copy and consistent controls on narrow screens */
#petDialog{box-sizing:border-box;padding:20px;text-align:left;font-size:14px}
#petDialog h2{font-size:21px;margin:8px 0 12px}
#petDialog p{font-size:14px;line-height:1.75;word-break:keep-all;overflow-wrap:break-word;text-align:left}
#petDialog>label,#petDialog>p>label,#petAgreement>label{display:grid;gap:8px;font-size:14px;line-height:1.5;font-weight:600}
#petDialog select,#petDialog input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #c5cfc0;border-radius:10px;background:#fff;color:#254b3e;font:inherit;font-size:16px}
#petDialog #petPortrait{max-height:190px;margin:16px 0;object-fit:contain}
#petDialog #petStory{white-space:pre-line;padding:14px;margin:0 0 16px;line-height:1.85}
#petDialog #petAgreement{padding:16px;margin:0 0 16px}
#petAgreement h3{font-size:16px;margin:0 0 12px}
#petAgreement .pet-promises{display:grid;gap:8px;margin-bottom:18px}
#petAgreement .pet-promises p{margin:0;font-size:14px;line-height:1.65}
#petDialog #petGuardian{margin:0}
#petDialog #petMessage{white-space:pre-line;margin:14px 0}
#petDialog #petAdopt{display:block;box-sizing:border-box;width:100%;min-height:46px;padding:12px 16px;margin:16px 0 0;border:0;border-radius:12px;background:#2f5343;color:#fff9ed;font:inherit;font-size:15px;font-weight:600}
#petDialog #petAdopt:disabled{opacity:.5}
#fishingPanel{position:fixed;z-index:24;top:calc(env(safe-area-inset-top) + 105px);left:50%;transform:translateX(-50%);box-sizing:border-box;width:min(340px,calc(100vw - 32px));padding:16px;border:1px solid #cbd7be;border-radius:18px;background:#f1f0e7f5;color:#244b3e;text-align:center;box-shadow:0 8px 24px #102e2740;pointer-events:auto}
#fishingPanel[hidden]{display:none!important}#fishingPanel b{display:block;font-size:22px}#fishingPanel p{font-size:13px;line-height:1.7;white-space:pre-line;word-break:keep-all;margin:8px 0}#fishingGauge{width:100%;height:17px;accent-color:#527d58}#fishingPercent{display:block;margin:5px}#fishingPanel button{min-height:42px;padding:9px 16px;border-radius:10px;border:1px solid #aebea6;margin:6px 4px 0;background:#2d5746;color:#fff8e7;font:inherit;font-size:14px}#fishingPanel #fishingStop{background:#e4e9dc;color:#355644}.fishing-active #joyZone>span{font-size:0}.fishing-active #joyZone>span:after{content:'↺ 왼쪽으로 돌리기';font-size:12px;color:#fff4d3}.fishing-active #joyBase{border-color:#e8cb7f;box-shadow:0 0 0 4px #e8cb7f30}
/* Compact fishing strip leaves the water and joystick visible */
#fishingPanel{top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 185px);left:auto;right:12px;transform:none;width:204px;padding:9px 11px;border-radius:13px;background:#183c32eb;color:#fff8e5;box-shadow:0 4px 14px #0003;text-align:left}
#fishingPanel b{font-size:14px;line-height:1.4}#fishingPanel p{font-size:11px;line-height:1.5;margin:4px 0;white-space:pre-line}#fishingPanel small{font-size:10px}#fishingPanel button{padding:6px 10px;min-height:32px;font-size:12px;margin:5px 3px 0 0}#fishingPanel #fishingStop{background:transparent;color:#e6e8d7;border-color:#a5b8a0}
#fishingPanel[data-phase=idle] p,#fishingPanel[data-phase=idle] b,#fishingPanel[data-phase=idle] #fishingStop{display:none}#fishingPanel[data-phase=idle]{width:auto;background:transparent;border:0;box-shadow:none;padding:0}
#fishingPanel[data-phase=reel]{border-color:#ebc263}#fishingPanel[data-phase=reel] b{color:#ffe095}#fishingPanel progress{height:10px}#fishingPanel #fishingPercent{display:inline;margin:3px 0}
#fishingPanel button[hidden],#fishingPanel progress[hidden],#fishingPanel small[hidden]{display:none!important}
#fishTankDialog{box-sizing:border-box;width:min(440px,calc(100vw - 24px));padding:20px;max-height:85dvh}#fishTankGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fish-card{min-width:0;background:#fffdf4;border:1px solid #ccd5c2;border-radius:14px;overflow:hidden;padding:0 0 12px;text-align:center}.fish-card img{display:block;width:100%;height:auto;aspect-ratio:1.5;object-fit:contain;background:#f9f6ed}.fish-card h3{font-size:15px;margin:8px 0 3px}.fish-card p{margin:0;font-size:13px}.fish-card small{display:block;font-size:11px;color:#78856d;margin:3px}.fish-card.empty{opacity:.65}.fish-card button{max-width:calc(100% - 14px);min-height:38px;border:0;border-radius:9px;background:#315a47;color:#fff9e9;font:inherit;font-size:12px;margin-top:7px;padding:8px}.fish-card button:disabled{opacity:.4}
@media(max-height:650px){#fishingPanel{bottom:calc(env(safe-area-inset-bottom,0px) + 130px);width:180px}}
.updates-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.updates-tabs button{min-height:42px;border:1px solid #b7c5ae;background:#e4e9dc;color:#355342;border-radius:10px;font:inherit;font-size:13px}.updates-tabs button[aria-selected=true]{background:#315643;color:#fff9e8}#gameUpdates[hidden],#inquiryPrivate[hidden]{display:none!important}#gameUpdates>h3{font-size:17px;margin:20px 0}.game-update{padding:16px 0;border-top:1px solid #ced6c6}.game-update time{font-size:11px;color:#6e806c}.game-update h4{font-size:17px;margin:8px 0;word-break:keep-all}.game-update p{font-size:14px;line-height:1.8;white-space:pre-line;word-break:keep-all}.game-update button,.update-editor button{min-height:36px;padding:7px 13px;border:1px solid #b8c6af;border-radius:9px;background:#e5eadc;color:#33543f;font:inherit;font-size:12px}.update-editor{display:grid;gap:10px;margin:14px 0}.update-editor input,.update-editor textarea{box-sizing:border-box;width:100%;min-width:0;padding:12px;border:1px solid #b7c6af;border-radius:10px;font:inherit;font-size:16px;color:#254b3e;background:#fffdf7}.update-editor button[type=submit]{background:#315643;color:#fff9e8}
#eyeRidePanel{position:fixed;z-index:25;right:12px;bottom:calc(env(safe-area-inset-bottom,0px) + 210px);box-sizing:border-box;width:210px;padding:11px 13px;border:1px solid #c8c9a8;border-radius:14px;background:#244b40ed;color:#fff7e0;box-shadow:0 5px 18px #0003}
#eyeRidePanel[hidden]{display:none}#eyeRidePanel b{font-size:16px}#eyeRidePanel p{font-size:12px;line-height:1.6;margin:6px 0;word-break:keep-all}#eyeRidePanel button{min-height:36px;padding:7px 10px;margin:4px 3px 0 0;border-radius:9px;border:1px solid #c9c9a6;background:#e4e8d6;color:#2e5140;font:inherit;font-size:12px}#eyeRidePanel button[hidden]{display:none}.on-eye #joyZone,.on-eye .actions,.on-eye .left-tools,.on-eye #coastReturn,.on-eye #beachAction,.on-eye #strandPick,.on-eye #spiritGiftHint,.on-eye #fishingPanel{visibility:hidden!important}
.on-eye #eyeRidePanel{bottom:calc(env(safe-area-inset-bottom,0px) + 30px)}
/* Keep the selected-rod controls clear of the ordinary action buttons */
.fishing-offer .actions,.fishing-active .actions,.fishing-active #coastReturn,.fishing-active #beachAction,.fishing-active #strandPick,.fishing-active #spiritGiftHint{visibility:hidden!important}
#fishingPanel[data-phase=idle] #fishingStart{min-width:128px;min-height:48px;font-size:15px;padding:11px 20px;box-shadow:0 4px 15px #0003}
#fishingPanel #fishingStop{min-height:44px;padding:9px 14px;font-size:13px}
#fishingCatchImage{display:block;width:100%;height:100px;object-fit:contain;background:#faf5e8;border-radius:9px;margin:0 0 8px}#fishingCatchImage[hidden]{display:none}
#fishingPanel[data-phase=caught]{bottom:calc(env(safe-area-inset-bottom,0px) + 280px);width:min(224px,calc(100vw - 24px));padding:7px 9px;display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:9px;align-items:center;pointer-events:none}
#fishingPanel[data-phase=caught] #fishingCatchImage{grid-row:1 / 3;width:44px;height:44px;margin:0;border-radius:7px}
#fishingPanel[data-phase=caught] b{font-size:13px;line-height:1.4}
#fishingPanel[data-phase=caught] p{margin:0;font-size:10px;line-height:1.4;white-space:normal}
#fishingPanel[data-phase=caught] button,#fishingPanel[data-phase=caught] progress,#fishingPanel[data-phase=caught] small{display:none!important}
.fishing-offer .hud-actions-shell,.fishing-active .hud-actions-shell,.on-eye .hud-actions-shell{visibility:hidden!important}
.fishing-active #joyZone>span:after{content:'↺ 빠르게 빙글빙글'}

/* Mutual friends have a green nickname on both the mountain and beach. */
.hiker-name.is-friend>.hiker-label{color:#8be59c;text-shadow:0 1px 3px #123d20,0 0 4px #123d20;font-weight:700}
#friendsDialog{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-height:85dvh;color:#294b3b}
.friend-tabs{display:flex;gap:8px;margin:12px 0}.friend-tabs button{flex:1;min-height:42px;font:inherit;font-size:12px;border:1px solid #b8c6ad;border-radius:10px;background:#e4e9db;color:#31543e}.friend-tabs button[aria-pressed=true]{background:#31543e;color:#fff8e6}
.friend-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 0;border-top:1px solid #ccd5c1}.friend-row>b{flex:1;min-width:40%}.friend-row>span{font-size:12px}.friend-row>button,#friendParcel button,#requestFriend{min-height:40px;padding:8px 12px;font:inherit;font-size:13px;color:#31543e;background:#e5eadc;border:1px solid #bac8b0;border-radius:10px}.friend-row .friend-nickname,.friend-online{color:#23743b}#friendParcel{padding:14px;border:1px solid #bac8b0;border-radius:12px;margin:12px 0;background:#f3f4e9}#friendParcel label{display:block;margin:10px 0}#friendParcel select,#friendParcel input{box-sizing:border-box;width:100%;font:inherit;font-size:16px;min-height:44px;padding:8px;border:1px solid #b9c7af;border-radius:8px;background:#fff}#friendParcel p,#friendParcel small{font-size:12px;line-height:1.6}#friendsStatus{font-size:12px;line-height:1.6}

#mulhoeDialog{width:min(92vw,380px);max-height:78dvh}#mulhoeDialog h2{font-size:23px;margin:4px 0 18px}.mulhoe-copy p{margin:0 0 18px;line-height:1.65;font-size:15px;word-break:keep-all}.mulhoe-copy span{display:block}.mulhoe-error{font-size:14px;color:#a04c35;word-break:keep-all}.mulhoe-confirm{width:100%;min-height:48px;font-size:16px}#mulhoeNotice{position:fixed;z-index:26;top:27%;left:50%;transform:translateX(-50%);width:min(78vw,310px);padding:10px 15px;border-radius:16px;background:#f1efdf;color:#214b40;border:1px solid #99b09a;font-size:13px;line-height:1.5;white-space:pre-line;box-shadow:0 4px 14px #13282024}#mulhoeNotice[hidden]{display:none}

#fishingPanel[data-phase=caught]{top:45%;bottom:auto;left:50%;right:auto;transform:translate(-50%,-50%);width:min(224px,70vw);z-index:24}#fishingLegend{position:fixed;z-index:24;left:50%;top:43%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:10px;max-width:82vw;pointer-events:none;color:#fff3e8;text-shadow:0 2px 5px #000,0 0 10px #000b}#fishingLegend b{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:#af332e;color:#fff5e9;border:1px solid #f08a76;font-size:22px;text-shadow:none}#fishingLegend span{font-size:13px;line-height:1.6;white-space:nowrap;text-align:center}

#reelShopDialog{width:min(92vw,620px)}.reel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.reel-card{padding:14px;border:1px solid #ccd6c3;border-radius:16px;background:#e7eadf;color:#284c40}.reel-card[data-equipped=true]{border:2px solid #b99546;background:#f0ebd7}.reel-art svg{display:block;width:100%;height:auto}.reel-card h3{font-size:15px;margin:8px 0}.reel-card strong{display:block;color:#957129;font-size:14px}.reel-card p{font-size:12px;line-height:1.6;word-break:keep-all}.reel-card small{display:block;font-size:11px;line-height:1.6;margin-bottom:10px}.reel-card button{width:100%;min-height:44px;font-size:13px}.reel-state,.reel-odds-note{white-space:pre-line}.reel-odds-note{grid-column:1/-1;font-size:12px;line-height:1.8;word-break:keep-all}#rareOwnerPanel>button{display:block;width:100%;margin:8px 0;min-height:44px}#rareNotice{position:fixed;inset:auto;left:50%;top:43%;transform:translate(-50%,-50%);margin:0;z-index:35;display:flex;align-items:center;gap:10px;width:max-content;max-width:86vw;padding:0;border:0;background:transparent;color:#fff4e8;text-shadow:0 2px 5px #000,0 0 10px #000a;pointer-events:none}#rareNotice b{flex:0 0 28px;height:28px;display:grid;place-items:center;background:#ac342e;border:1px solid #f08a76;border-radius:50%;font-size:22px;color:#fff8e6;text-shadow:none}#rareNotice span{font-size:13px;line-height:1.6;white-space:pre-line;text-align:center;word-break:keep-all}#rareNotice::backdrop{background:transparent}.rare-notice-visible #fishingLegend{visibility:hidden}@media(max-width:370px){.reel-grid{gap:9px}.reel-card{padding:10px}.reel-card h3{font-size:13px}}

#fishingPanel #fishingPercent{white-space:pre-line}

.cloud-destinations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cloud-destinations button{min-height:44px;font-size:13px}#rankingHelp{white-space:pre-line}.ranking-tabs{flex-wrap:wrap}

.ranking-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.ranking-switch button{min-height:42px;font-size:12px;word-break:keep-all}

#hud>#rareOwnerPanel{position:fixed;z-index:15;top:calc(env(safe-area-inset-top,0px) + 110px);right:var(--hud-right,16px);width:128px;display:flex;flex-direction:column;gap:6px;pointer-events:auto}#hud>#rareOwnerPanel>h3,#hud>#rareOwnerPanel>p{display:none}#hud>#rareOwnerPanel button{width:100%;min-height:36px;margin:0;padding:7px 8px;border:1px solid #c4bc8480;border-radius:12px;background:#294d40ed;color:#fff3d2;font-size:12px;line-height:1.3;box-shadow:0 2px 6px #102a2420}#hud>#rareOwnerPanel button:active{background:#49624b}@media(orientation:landscape) and (max-height:600px){#hud>#rareOwnerPanel{top:calc(env(safe-area-inset-top,0px) + 98px);width:120px}}

#rareOwnerButtons{display:flex;flex-direction:column;gap:6px}#rareOwnerToggle{font-weight:600}

#mulhoeNotice{display:flex;align-items:center;gap:6px;padding:7px 9px 7px 13px}#mulhoeNoticeOpen{flex:1;min-width:0;padding:0;border:0;background:none;color:inherit;font:inherit;line-height:1.5;white-space:pre-line;text-align:left}#mulhoeNoticeClose{flex:0 0 32px;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:#dfe6d7;color:#365947;font-size:23px;line-height:1}

/* Stationary entry notices: the reader controls the scroll and the start button stays in view */
#intro{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:max(24px,calc(env(safe-area-inset-top,0px) + 18px)) 7% max(14px,env(safe-area-inset-bottom,0px));box-sizing:border-box}
#intro .intro-brand{position:static;inset:auto;flex:0 0 auto;width:min(560px,100%)}#intro .intro-brand h1{font-size:clamp(28px,4vw,44px);margin:6px 0;line-height:1.2}#intro .intro-brand p{font-size:12px}
#intro .intro-bottom{position:static;inset:auto;width:min(560px,100%);flex:1;min-height:0;display:flex;flex-direction:column}
#intro .intro-story-window{height:auto;min-height:0;flex:1;overflow:auto;mask-image:none;-webkit-mask-image:none;pointer-events:auto;touch-action:pan-y;overscroll-behavior:contain;scrollbar-width:thin;border:1px solid #d8dfca80;border-radius:18px;background:rgba(243,241,230,.82);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);padding:20px;color:#29493b;box-sizing:border-box}
#intro .intro-story{animation:none;transform:none;font-size:14px;line-height:1.85;font-weight:400;text-shadow:none}#intro .intro-story h2{font-size:18px;line-height:1.5;font-weight:700;margin:0 0 16px;word-break:keep-all}#intro .intro-story p{margin:0 0 18px;word-break:keep-all}#intro .intro-story p:last-child{margin-bottom:0}#intro .intro-story strong{color:#274c38;font-weight:700}.intro-record-notice{padding-left:13px;border-left:3px solid #b99a52}.intro-game-notice{margin-top:25px;padding-top:23px;border-top:1px solid #cdd7c5}
#intro .intro-controls{flex:0 0 auto;margin-top:12px;gap:0}#intro #introEnter{min-height:52px;padding:14px 20px;font-size:17px}#intro #introStatus{flex:0 0 auto;margin:8px 0 0;font-size:11px}
@media(max-width:420px){#intro{padding-left:5%;padding-right:5%;gap:12px}#intro .intro-story-window{padding:17px 14px}#intro .intro-story{font-size:13px}#intro .intro-story h2{font-size:16px}.intro-record-notice{padding-left:10px}}
@media(max-height:600px){#intro{gap:8px;padding-top:max(12px,env(safe-area-inset-top,0px));padding-bottom:max(10px,env(safe-area-inset-bottom,0px))}#intro .intro-brand>span{font-size:9px}#intro .intro-brand h1{font-size:26px}#intro .intro-brand p{font-size:11px}#intro .intro-story-window{min-height:90px}#intro #introEnter{min-height:44px;padding:10px 16px}}

.gear-activities{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px;padding:5px;border-radius:14px;background:#dae3d3}.gear-activities button{min-height:44px;border:0;border-radius:10px;padding:9px 6px;background:transparent;color:#46634e;font-size:15px;font-weight:600}.gear-activities button[aria-pressed=true]{background:#315644;color:#fff8e5}.gear-activity-note,.gear-activity-empty,#mealList>.reel-state,#mealList>.reel-grid{grid-column:1/-1}.gear-activity-empty{padding:28px 12px;text-align:center;color:#6a7c6c;font-size:14px}.gear-activity-note{margin:4px 0 14px;font-size:13px;line-height:1.7;word-break:keep-all}#mealList>.reel-grid{width:100%}

#intro .intro-home-tip{padding-top:15px;border-top:1px solid #acbc9e80;color:#294c3a}

/* Diving uses a small transparent panel and leaves the centre of the reef open. */
#divingPanel{position:fixed;z-index:35;left:50%;top:28%;transform:translateX(-50%);width:min(350px,76vw);padding:12px 15px;color:#f1f7e9;background:rgba(10,42,46,.76);border:1px solid #95beb78c;border-radius:18px;text-align:center;box-shadow:0 6px 24px #001b2530;pointer-events:auto}
#divingPanel[hidden],#divingDepth[hidden]{display:none!important}
#divingPanel strong{font-size:15px;display:block}#divingPanel p{font-size:13px;line-height:1.6;white-space:pre-line;margin:7px 0 10px;word-break:keep-all}#divingPanel>div{display:flex;justify-content:center;gap:8px}#divingPanel button{font-size:13px;min-height:44px;padding:8px 12px;color:#fff7dc;border:1px solid #aacac0;background:#2a665e;border-radius:12px}#divingPanel button[data-act=back]{background:transparent}#divingPanel progress{width:100%;height:9px;accent-color:#83d5b8;margin-bottom:8px}
#divingPanel[data-phase=swim],#divingPanel[data-phase=gather]{top:27%;background:rgba(7,37,43,.65);padding:9px 12px}#divingPanel[data-phase=swim] strong,#divingPanel[data-phase=gather] strong{display:none}
#divingDepth{position:fixed;z-index:36;right:20px;bottom:calc(26% + env(safe-area-inset-bottom));display:grid;gap:12px;color:#ddf9ee;text-align:center}#divingDepth span{font-size:13px;text-shadow:0 1px 4px #000}#divingDepth button{touch-action:none;user-select:none;width:62px;height:62px;border-radius:50%;border:1px solid #b4d9c3bb;color:#ecfff5;background:#285b6199;font-size:23px;line-height:1}#divingDepth small{display:block;font-size:11px;margin-top:4px}
body.diving-active .trail-controls,body.diving-active #beachAction,body.diving-active #coastReturn,body.diving-active #strandPick,body.diving-active #runStatus,body.diving-active #energyBar,body.diving-active #meal,body.diving-active #gestureHint,body.diving-active #rareOwnerPanel{display:none!important}
body.diving-active #joyZone>span{font-size:0}body.diving-active #joyZone>span:after{content:'조이스틱으로 수영';font-size:12px}
.diving-bag-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.diving-bag-grid article{border:1px solid #c1cdb9;border-radius:15px;padding:10px;background:#e4e9db}.diving-bag-grid img{width:100%;height:auto;display:block;border-radius:10px}.diving-bag-grid h3{font-size:16px;margin:9px 0 3px}.diving-bag-grid p{margin:5px 0}.diving-bag-grid button{font-size:13px;width:100%;margin-top:8px;min-height:44px}.diving-bag-grid small{display:block;color:#58705c}#divingBagDialog p{white-space:pre-line;line-height:1.6}
@media(orientation:landscape) and (max-height:600px){#divingPanel{top:20%;left:55%;width:300px}#divingPanel[data-phase=swim],#divingPanel[data-phase=gather]{top:16%}#divingDepth{bottom:15%;right:25px;gap:8px}#divingDepth button{width:50px;height:50px}}

.gear-activity-empty{white-space:pre-line;line-height:1.7}

/* Only the boarding offer is a card. Exploration has no persistent message box. */
#divingPanel[hidden],#divingContext[hidden],#divingNotice[hidden],#divingReturn[hidden],#divingAction[hidden],#divingProgress[hidden]{display:none!important}
#divingReturn{position:fixed;z-index:36;right:18px;bottom:calc(13% + env(safe-area-inset-bottom,0px));min-height:44px;padding:8px 11px;border:1px solid #bad5ca66;border-radius:18px;background:#10394077;color:#ecf9f0;font:inherit;font-size:11px;box-shadow:none}
#divingContext{position:fixed;z-index:36;bottom:calc(24% + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:150px;display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none}
#divingAction{pointer-events:auto;min-height:44px;max-width:180px;border:1px solid #acd7bf99;border-radius:20px;padding:9px 16px;background:#215b58b3;color:#f5ffec;font-size:13px;box-shadow:0 3px 12px #001b2530}
#divingProgress{width:110px;height:6px;accent-color:#83e2c0;pointer-events:none}
#divingNotice{position:fixed;z-index:35;top:29%;left:50%;transform:translateX(-50%);max-width:75vw;width:max-content;white-space:pre-line;line-height:1.6;font-size:12px;text-align:center;color:#ecfff4;text-shadow:0 1px 4px #001b25,0 0 8px #001b25;pointer-events:none;margin:0;padding:0;background:none;border:0;box-shadow:none}
@media(orientation:landscape) and (max-height:600px){#divingReturn{right:18px;bottom:12px}#divingContext{bottom:15%}#divingNotice{top:25%;left:55%}}
.dive-gear-shop{grid-column:1/-1;width:100%;min-width:0}.dive-gear-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dive-gear-card{padding:10px;border:1px solid #c2d0bb;border-radius:14px;background:#edf0e4;min-width:0}.dive-gear-card[data-equipped=true]{border-color:#628f73;background:#e1ead9}.dive-gear-card img{display:block;width:100%;aspect-ratio:1.2;object-fit:contain;border-radius:10px;background:#dce6dc}.dive-gear-card h3{font-size:14px;line-height:1.5;margin:9px 0 4px}.dive-gear-card strong{display:block;font-size:13px;color:#366f66}.dive-gear-card p{font-size:12px;line-height:1.6;margin:7px 0;color:#647467;word-break:keep-all}.dive-gear-card small{display:block;font-size:12px;margin:8px 0}.dive-gear-card button{width:100%;min-height:44px;font-size:13px;border-radius:10px;border:1px solid #9bb59b;background:#315e50;color:#fff8e5}.dive-gear-card button:disabled{opacity:.5}#divingDepth>span{white-space:pre-line;line-height:1.65}#divingDepth[data-low=true]>span{color:#ffe29b}
#rareNotice[data-kind=claim] b{background:#edc54e;color:#3e361d;border-color:#ffeb9e}#rareNotice[data-kind=claim] span{color:#fff1b8}#divingGatherHint{font-size:11px;color:#e2f6df;text-shadow:0 1px 4px #123d44;white-space:pre-line;text-align:center;line-height:1.5}#divingGatherHint[hidden]{display:none!important}
/* The offer close control belongs to the card rather than the fixed exit chip. */
#divingPanel{box-sizing:border-box;padding:20px 16px 16px}#divingPanel strong{padding-right:42px;line-height:1.55;text-align:left}#divingPanel .diving-offer-close{position:absolute;top:8px;right:8px;width:44px;height:44px;min-height:44px;margin:0;padding:0;display:grid;place-items:center;border-radius:50%;border:1px solid #b4d5c285;background:#16443c;font-size:26px;line-height:1;color:#fff8e5;box-sizing:border-box;z-index:1}#closeDivingOffer[hidden]{display:none!important}

body.diving-active #trailChat{max-width:210px}body.diving-active #recentChat li{display:list-item}body.diving-active #recentChat li:nth-last-child(n+3){display:none}
#divingShark{position:fixed;right:18px;bottom:calc(20% + env(safe-area-inset-bottom,0px));z-index:36;min-height:44px;padding:8px 11px;border-radius:18px;border:1px solid #9fc4cc88;background:#153d4d9e;color:#dff4ed;font-size:11px}#divingShark[hidden]{display:none!important}@media(orientation:landscape) and (max-height:600px){#divingShark{right:18px;bottom:63px}}
#divingSharkAttack{position:fixed;z-index:36;left:50%;bottom:calc(13% + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:68px;height:68px;min-height:44px;padding:8px;border-radius:50%;border:1px solid #e6c485ab;background:#31555fcc;color:#fff0cf;font-size:12px;line-height:1.4;box-shadow:0 3px 12px #001e2933}#divingSharkAttack:disabled{opacity:.5}#divingSharkAttack[hidden]{display:none!important}@media(orientation:landscape) and (max-height:600px){#divingSharkAttack{bottom:14px;width:60px;height:60px}}

#divingOwnerTools{position:fixed;right:18px;bottom:calc(20% + env(safe-area-inset-bottom,0px));z-index:36;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:calc(100vw - 36px)}#divingOwnerTools[hidden]{display:none!important}#divingOwnerTools #divingShark{position:static}#divingTreasureSpawn{min-height:44px;padding:8px 11px;border-radius:18px;border:1px solid #d5bd7f99;background:#4c4827d9;color:#fff0c0;font-size:11px}#divingTreasureSpawn[hidden],#divingTreasurePick[hidden]{display:none!important}#divingTreasurePick{min-height:44px;background:#665329;color:#fff1c3}.ranking-switch{flex-wrap:wrap}@media(orientation:landscape) and (max-height:600px){#divingOwnerTools{bottom:63px}}

#divingTreasurePick{pointer-events:auto;border:1px solid #d5bd7f99;border-radius:18px;padding:9px 14px;font-size:13px}#rankingHelp{white-space:pre-line}
#pirateHaulHint{font-size:11px;text-align:center;white-space:pre-line;line-height:1.6;color:#ffedbc;text-shadow:0 1px 4px #001b25}#pirateHaulProgress{width:120px;height:6px;accent-color:#e4bf67}#pirateHaulHint[hidden],#pirateHaulProgress[hidden]{display:none!important}
#poseidonScatter{min-height:44px;padding:8px 11px;border-radius:18px;border:1px solid #9ee0db99;background:#1d565ecf;color:#e6ffed;font-size:11px}#poseidonGiftMenu{position:absolute;right:0;bottom:calc(100% + 8px);display:grid;grid-template-columns:1fr 1fr;gap:6px;width:min(310px,calc(100vw - 36px));padding:10px;border:1px solid #a7c7bc80;border-radius:16px;background:#163e45ed;max-height:40vh;overflow-y:auto}#poseidonGiftMenu button{min-height:44px;padding:8px;font-size:12px;color:#f3efd5;background:#406467;border:1px solid #96c6ba66;border-radius:12px}#poseidonScatter[hidden],#poseidonGiftMenu[hidden],#seaGiftPick[hidden]{display:none!important}#seaGiftPick{pointer-events:auto;min-height:44px;border:1px solid #c6e4c480;border-radius:18px;padding:9px 12px;font-size:12px;background:#2a615dd9;color:#fff8d8}
/* Keep Poseidon controls clear of the joystick and collection gauge. */
#divingOwnerTools{top:calc(env(safe-area-inset-top,0px) + 110px);bottom:auto;width:148px;max-width:42vw;flex-direction:column;align-items:stretch}#divingOwnerTools>button{width:100%;box-sizing:border-box}#poseidonGiftMenu{top:calc(100% + 8px);bottom:auto}@media(orientation:landscape) and (max-height:600px){#divingOwnerTools{top:calc(env(safe-area-inset-top,0px) + 104px);right:150px;width:max-content;max-width:calc(100vw - 380px);flex-direction:row;align-items:center}#divingOwnerTools>button{width:auto;flex:0 0 auto}#poseidonGiftMenu{max-height:50vh}}
#hotelAction{position:fixed;z-index:37;left:50%;bottom:29%;transform:translateX(-50%);min-height:44px;padding:10px 16px;max-width:65vw;border:1px solid #d2bd83aa;border-radius:18px;background:#304c4be6;color:#fff1c7;font-size:12px}#hotelExit{position:fixed;z-index:37;right:18px;bottom:13%;min-height:40px;border:1px solid #d3bf8d88;border-radius:16px;padding:8px 12px;background:#304b4bd9;color:#fff1d0;font-size:11px}#hotelLocation{position:fixed;z-index:30;left:50%;top:22%;transform:translateX(-50%);max-width:80vw;font-size:12px;color:#f7e3b4;text-shadow:0 1px 5px #102929;pointer-events:none}#hotelAction[hidden],#hotelExit[hidden],#hotelLocation[hidden]{display:none!important}#hotelRoomsDialog{width:min(90vw,440px);box-sizing:border-box}#hotelRoomsDialog p{font-size:13px;line-height:1.8}.hotel-floor-tabs{display:flex;gap:7px;margin:14px 0}.hotel-floor-tabs button{flex:1;min-height:42px;font-size:13px;border:1px solid #adbc9f;background:#e2e6d9;border-radius:12px;color:#345048}.hotel-floor-tabs button[aria-pressed=true]{background:#34564b;color:#fff4cb}.hotel-room-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.hotel-room-grid button{white-space:pre-line;min-height:70px;border:1px solid #c1ac7a;background:#dfe5d9;color:#33534b;border-radius:13px;line-height:1.8}body.hotel-active #rareOwnerPanel,body.hotel-active #beachAction,body.hotel-active #coastReturn,body.hotel-active #strandPick,body.hotel-active #sprinkle,body.hotel-active #runStatus{display:none!important}@media(orientation:landscape) and (max-height:600px){#hotelAction{bottom:17%}#hotelExit{bottom:12px}#hotelLocation{top:18%}}

body.hotel-active #scatterSpiritGifts,body.hotel-active #strandPick,body.hotel-active #energyBar{display:none!important}
/* Hotel actions occupy their own vertical strip above the walking controls. */
#hotelExit{position:fixed;z-index:37;right:max(14px,env(safe-area-inset-right,0px));left:auto;bottom:auto;width:154px;max-width:44vw;height:48px;min-height:48px;padding:7px 10px;border:1px solid #d3bf8daa;border-radius:14px;background:#304b4bed;color:#fff1d0;font-size:13px;line-height:1.35;word-break:keep-all;box-shadow:0 3px 12px #142b3030}
#hotelExit{top:calc(env(safe-area-inset-top,0px) + 112px)}

body.hotel-active #rareOwnerToggle{display:none!important}
#hotelServiceDialog{width:min(90vw,420px);box-sizing:border-box}#hotelServiceDialog p{white-space:pre-line;font-size:14px;line-height:1.9}.hotel-service-name{color:#dfc38c}.hotel-staff-switch{display:flex;gap:8px;margin:12px 0}.hotel-service-choices{display:grid;gap:9px}.hotel-service-choices button,.hotel-staff-switch button{min-height:46px;border:1px solid #b7ad8f;border-radius:12px;background:#e3e6d9;color:#2f4c42;padding:9px 12px;font-size:14px}.hotel-staff-switch button{flex:1}
@media(orientation:landscape) and (max-height:600px){#hotelExit{right:max(16px,env(safe-area-inset-right,0px));width:154px;height:44px;min-height:44px;font-size:12px}#hotelExit{top:106px}}
/* Brushed black and brass elevator destination panel. */
#hotelRoomsDialog{width:min(92vw,360px);max-height:92dvh;overflow-y:auto;border:2px solid #b8a073;border-radius:22px;padding:22px 20px 18px;background:linear-gradient(110deg,#101c16,#243a2c 45%,#0b140f);color:#f5e6c5;box-shadow:inset 0 0 0 5px #0a120d,inset 0 0 0 6px #9d875e66,0 20px 70px #0009}
#hotelRoomsDialog h2{text-align:center;font-family:serif;letter-spacing:4px;font-size:20px;margin:4px 0 8px;color:#ead1a0}#hotelRoomsDialog p{text-align:center;margin:7px 0;font-size:12px;line-height:1.7}#hotelRoomsDialog .lift-welcome{font-size:11px;color:#d2c3a6}#hotelRoomsDialog .close{color:#e9d4a6}
.lift-floor-display{display:block;background:#07100c;border:1px solid #8c7953;border-radius:8px;color:#ffe0a0;text-align:center;padding:8px;font:500 32px/1.1 monospace;letter-spacing:4px;box-shadow:inset 0 2px 10px #0009}
#hotelRoomsDialog .hotel-floor-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:10px 0 12px}#hotelRoomsDialog .hotel-floor-tabs button{min-width:0;min-height:44px;height:44px;padding:0;border-radius:50%;border:2px solid #8c805e;background:radial-gradient(circle at 35% 25%,#50604b,#17241b 70%);color:#f4e6c7;font:500 17px/1 system-ui;box-shadow:inset 0 1px 2px #e4cf8d44,0 2px 4px #0005}
#hotelRoomsDialog .hotel-floor-tabs button[aria-pressed=true]{border-color:#ffcf70;color:#ffe7af;box-shadow:0 0 9px #edb64a66,inset 0 0 4px #edb64a44}#hotelRoomsDialog .hotel-floor-tabs button:last-child{grid-column:1/-1;border-radius:12px;height:42px;min-height:42px;letter-spacing:2px}
#hotelRoomsDialog .hotel-room-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:7px 0}#hotelRoomsDialog .hotel-room-grid button{min-height:36px;padding:2px;border-radius:9px;background:#17271c;color:#daca9f;border:1px solid #8a7b58;font-size:12px}#hotelRoomsDialog .hotel-room-grid button[aria-pressed=true]{border-color:#f7cf80;background:#40533a;color:#fff2cc}
#hotelRoomsDialog .lift-suite-label{font-size:10px;color:#c2b08a}@media(max-height:720px){#hotelRoomsDialog{padding:15px 16px 12px}#hotelRoomsDialog h2{margin:2px 0 4px;font-size:17px}#hotelRoomsDialog .hotel-floor-tabs{gap:5px;margin:7px 0}#hotelRoomsDialog .hotel-floor-tabs button{min-height:38px;height:38px;font-size:15px}.lift-floor-display{font-size:25px;padding:5px}}

#hotelRestExit,#hotelConsume,#hotelUse{position:fixed;z-index:38;left:50%;transform:translateX(-50%);bottom:calc(205px + env(safe-area-inset-bottom));max-width:74vw;min-height:46px;padding:10px 18px;border:1px solid #cbb580;border-radius:16px;background:#153a2ded;color:#f5e6c4;font-size:14px;box-shadow:0 4px 18px #08190e55;touch-action:manipulation}#hotelConsume{bottom:calc(260px + env(safe-area-inset-bottom))}#hotelUse[hidden],#hotelRestExit[hidden],#hotelConsume[hidden]{display:none!important}
#hotelDiningDialog,#hotelArtDialog{box-sizing:border-box;width:min(94vw,530px);max-height:88dvh;overflow-y:auto;padding:24px 18px;border:1px solid #bca36e;border-radius:22px;color:#f2e6c9;background:linear-gradient(130deg,#0b2119,#183b2d 65%,#091b14);box-shadow:0 24px 90px #0009}#hotelDiningDialog::backdrop,#hotelArtDialog::backdrop{background:#06130caa}#hotelDiningDialog .close,#hotelArtDialog .close{color:#ebd9b1}#hotelDiningDialog h2,#hotelArtDialog h2{font-size:24px;line-height:1.45;letter-spacing:-.7px;font-weight:500;margin:12px 0}.hotel-menu-eyebrow{font:11px/1.5 Georgia,serif;letter-spacing:2px;color:#d9c38f}.hotel-menu-note,.hotel-art-credit{font-size:12px;line-height:1.8;color:#c7c4ae}.hotel-wallet{font-size:13px;color:#ebd69d}.hotel-dining-tabs{display:flex;gap:7px;margin:18px 0}.hotel-dining-tabs button{flex:1;min-height:43px;padding:8px 4px;border:1px solid #7f8a65;border-radius:12px;background:#102c20;color:#e5d9b8;font-size:12px}.hotel-dining-tabs button[aria-pressed=true]{background:#3e5034;border-color:#d3b777;color:#fff0ce}.hotel-menu-list{display:grid;gap:13px}.hotel-dining-card{display:grid;grid-template-columns:114px minmax(0,1fr);gap:13px;align-items:center;padding:10px;background:#071c1580;border:1px solid #b8a26a44;border-radius:15px}.hotel-dining-card img{width:114px;height:114px;object-fit:cover;border-radius:10px}.hotel-dining-card h3{font-size:16px;font-weight:600;line-height:1.4;margin:0 0 7px}.hotel-dining-card p{font-size:12px;color:#c9ccb5;line-height:1.5;margin:0 0 9px}.hotel-dining-card button{min-height:39px;padding:7px 10px;background:#d9c28a;border:0;border-radius:10px;color:#153326;font-size:12px;font-weight:650}.hotel-dining-card button:disabled{opacity:.5}.hotel-adult{display:block;margin:17px 0 8px;font-size:13px;line-height:1.8}.hotel-adult input{accent-color:#d9c28a;width:19px;height:19px;vertical-align:middle}.hotel-adult small{color:#d4baa0;margin-left:26px}.hotel-adult[hidden]{display:none}#hotelDiningDialog [role=status]{font-size:13px;line-height:1.7;min-height:24px;color:#eed5a0;white-space:pre-line}#hotelArtDialog img{width:100%;height:auto;border:6px solid #ae915b;box-sizing:border-box;margin-top:18px}#hotelArtDialog p{font-size:13px;line-height:1.8}#hotelArtDialog a{color:#e4c988;font-size:13px}
@media(max-width:360px){.hotel-dining-card{grid-template-columns:90px 1fr;gap:10px}.hotel-dining-card img{width:90px;height:100px}.hotel-dining-card h3{font-size:14px}}
@media(max-height:650px){#hotelRestExit,#hotelUse{bottom:160px}#hotelConsume{bottom:214px}}
#btsAutographDialog{box-sizing:border-box;width:min(92vw,450px);max-height:88dvh;overflow-y:auto;border:1px solid #c4ad7b;border-radius:22px;background:linear-gradient(140deg,#10281e,#213d2d);color:#f1e4c5;padding:25px 18px}#btsAutographDialog h2{font-size:25px;margin:8px 0}.signature-eyebrow{font:11px Georgia,serif;letter-spacing:2px;color:#d6bc81}.signature-help,#btsAutographDialog [role=status]{white-space:pre-line;font-size:13px;line-height:1.8}.signature-cards{display:grid;gap:16px;margin-top:18px}.signature-card{padding:12px;border:1px solid #b6a07766;border-radius:15px;background:#091a1380}.signature-paper{background:linear-gradient(120deg,#efe8d6,#e6dae8);border:5px double #b79c65;border-radius:5px;min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#38283e}.signature-paper strong{font:italic 54px/1.2 Georgia,cursive;transform:rotate(-7deg);color:#574363}.signature-paper small{font-size:10px;letter-spacing:1.3px}.signature-paper span{font-size:11px}.signature-card button{width:100%;min-height:44px;margin-top:12px;border:1px solid #c7ac74;border-radius:11px;color:#193626;background:#d9c18a;font-size:14px}.signature-inventory-icon{display:grid;place-items:center;background:#dfd3e4;border:2px double #aa8fa7;border-radius:5px;min-width:38px;height:45px;font:italic 15px Georgia,serif;color:#604568}
#hotelProperty{position:fixed;z-index:37;right:16px;top:calc(env(safe-area-inset-top,0px) + 167px);width:154px;min-height:42px;border:1px solid #bda46f;border-radius:13px;background:#17372bec;color:#efdfb8;padding:8px;font-size:12px}#hotelProperty[hidden]{display:none!important}#hotelPropertyDialog{box-sizing:border-box;width:min(94vw,480px);max-height:88dvh;overflow:auto;padding:24px 18px;border:1px solid #b89c65;border-radius:22px;background:linear-gradient(130deg,#0c2118,#25422d);color:#f0e4c8}#hotelPropertyDialog h2{font-size:25px;font-weight:500;margin:12px 0}.estate-eyebrow{font:11px Georgia,serif;letter-spacing:2px;color:#d6bc85}.estate-intro,.estate-home,.estate-wallet,#hotelPropertyDialog [role=status]{font-size:13px;line-height:1.8;white-space:pre-line}.estate-current{padding:12px;margin:14px 0;border:1px solid #b69d6466;border-radius:13px;background:#071c1380}.estate-current h3{margin:4px 0 8px}.estate-current p{font-size:13px;white-space:pre-line;line-height:1.8}.estate-current button{width:100%;min-height:46px;border:1px solid #ceb274;border-radius:11px;background:#d6bf86;color:#183423;font-size:14px;font-weight:650}.estate-prices{display:grid;gap:7px}.estate-price-row{display:grid;grid-template-columns:38px 1fr;gap:3px 8px;border-bottom:1px solid #a79d7240;padding:10px 3px}.estate-price-row b{grid-row:span 2;font-size:14px}.estate-price-row span{font-size:12px;color:#c9cfb8}.estate-price-row strong{font-size:13px;font-weight:500;color:#eed29a}#btsAutographNotice{position:fixed;z-index:65;left:50%;bottom:calc(275px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:85vw;box-sizing:border-box;padding:11px 16px;background:#213c30ed;color:#f2e1bb;border:1px solid #c4a979;border-radius:15px;white-space:pre-line;font-size:13px;line-height:1.6;text-align:center;pointer-events:none}#btsAutographNotice[hidden]{display:none}

#hotelRoomControls{position:fixed;right:16px;top:calc(222px + env(safe-area-inset-top));width:154px;box-sizing:border-box;z-index:38;border:1px solid #cbb580;border-radius:12px;padding:9px 12px;color:#f5e6c4;background:#153a2ded;font-size:12px;min-height:40px}#hotelRoomControls[hidden]{display:none!important}
#hotelRoomDialog{box-sizing:border-box;width:min(92vw,480px);max-height:86dvh;overflow:auto;padding:25px 20px;border:1px solid #bca36e;border-radius:22px;background:#132d23;color:#f3e6c7}#hotelRoomDialog::backdrop{background:#06130caa}#hotelRoomDialog h2{font-size:22px;font-weight:500;margin:16px 0 22px}#hotelRoomDialog p{font-size:13px;line-height:1.8;white-space:pre-line}#hotelRoomDialog button,.suite-photo-label{min-height:44px;border:1px solid #b69d68;border-radius:11px;padding:10px;background:#233d2e;color:#f3e6c7;font-size:13px}#hotelRoomDialog button:disabled{opacity:.4}.suite-light-options{display:flex;gap:8px}.suite-light-options button{flex:1}.suite-light-options button[aria-pressed=true]{background:#c4a76c!important;color:#142f23!important}.suite-photo-preview{display:block;width:100%;max-height:230px;object-fit:contain;background:#e8dbc3;margin-bottom:16px}.suite-photo-preview[hidden]{display:none}.suite-photo-label{display:block;margin-bottom:12px}.suite-photo-label input{display:block;max-width:100%;margin-top:10px;color:#ddd2b9}.suite-save-photo,.suite-remove-photo{margin:0 6px 8px 0}.suite-room-status{color:#ebcd92}
#hotelWatchDialog{box-sizing:border-box;width:min(93vw,540px);max-height:86dvh;overflow:auto;padding:25px 20px;border:1px solid #ba9d62;border-radius:22px;background:linear-gradient(145deg,#182c24,#0b1d16);color:#f1e5c9}#hotelWatchDialog::backdrop{background:#06130cbb}#hotelWatchDialog h2{font-size:23px;font-weight:500;margin:14px 0}#hotelWatchDialog p{font-size:13px;line-height:1.8;white-space:pre-line;color:#d4c6a7}.suite-watch-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.suite-watch-list button{display:flex;align-items:center;flex-direction:column;gap:12px;min-height:170px;padding:18px 10px;border:1px solid #897447;border-radius:13px;background:#29342b;color:#f2e6cb;font-size:12px;line-height:1.5}.suite-watch-list button[aria-pressed=true]{border-color:#f0cb7b;background:#444333}.suite-watch-list small{color:#c9b47e}.watch-face{position:relative;width:53px;height:53px;margin:12px 0;border:7px solid var(--watch-case);border-radius:50%;background:var(--watch-dial);box-shadow:0 0 0 2px #0c140f,0 12px 18px #0006}.watch-face::before{content:'';position:absolute;inset:-19px 10px;background:linear-gradient(#473a27,#b5a172,#30251c);z-index:-1;border-radius:4px}.watch-face::after{content:'';position:absolute;left:50%;top:10%;width:2px;height:43%;background:#e3cb8e;transform-origin:bottom;transform:rotate(42deg);box-shadow:9px 14px 0 -.4px #e3cb8e}.watch-octagon{border-radius:17%}.watch-tonneau{border-radius:32%;height:64px;width:46px}.watch-remove{padding:11px 20px;border:1px solid #a38c59;border-radius:10px;background:#24392b;color:#ead7af;min-height:44px}#hotelWatchDialog button:disabled{opacity:.5}

.suite-guests{padding:10px 16px;min-height:44px;border:1px solid #bca36e;border-radius:10px;background:#253e2d;color:#f3e6c7}.suite-guests[hidden]{display:none!important}.suite-guests[aria-pressed=true]{background:#b99f68;color:#172d22}

.vvip-black-card{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:min(280px,82vw);aspect-ratio:1.586;margin:18px auto;padding:16px;border:1px solid #373737;border-radius:14px;background:linear-gradient(125deg,#090909,#191919 45%,#050505);color:#e8e2d6;font:500 27px/1 Georgia,serif;letter-spacing:5px;box-shadow:0 9px 22px #0005}.vvip-black-card[hidden]{display:none!important}#hotelVvipCardDialog{width:min(90vw,390px);box-sizing:border-box;padding:26px 20px;border:1px solid #867756;border-radius:20px;background:#15281f;color:#e9ddc1}#hotelVvipCardDialog h2{font-size:20px}#hotelVvipCardDialog p{font-size:13px;line-height:1.9}#hotelVvipCardDialog::backdrop{background:#0009}

.vvip-black-card{flex-direction:column;gap:18px}.vvip-black-card small{font:400 14px/1.2 Georgia,serif;letter-spacing:3px;color:#b6afa0}

#hotelDoorRequests{position:fixed;z-index:76;right:12px;bottom:calc(325px + env(safe-area-inset-bottom));width:min(290px,82vw);max-height:40dvh;overflow:auto;padding:14px;border:1px solid #bba46e;border-radius:15px;background:#183328f5;color:#efdfba;box-shadow:0 8px 30px #0005}#hotelDoorRequests[hidden]{display:none!important}#hotelDoorRequests section+section{border-top:1px solid #867856;margin-top:12px;padding-top:10px}#hotelDoorRequests p{font-size:13px;line-height:1.6;margin:0 0 10px}#hotelDoorRequests button{padding:9px 18px;min-height:42px;border:1px solid #bcaa79;border-radius:9px;background:#c2ad75;color:#173326;margin-right:9px}#hotelDoorRequests button+button{background:#244331;color:#efdfba}

#recentChat .whisper-chat-line,#chatHistoryList .whisper-chat-line,#recentChat .whisper-chat-line strong,#chatHistoryList .whisper-chat-line strong{color:#57d28b}.whisper-chat-line{border-left:2px solid #57d28b;padding-left:7px}.whisper-note{color:#4ebf7d;font-size:13px;line-height:1.7}.whisper-reply{border:1px solid #55ad75;border-radius:8px;padding:4px 8px;margin-left:9px;color:#80dba0;background:#153b29;font-size:11px;min-height:30px}.whisper-public-mode{padding:8px 12px;border:1px solid #91b39a;border-radius:10px;color:#335b42;background:#e5ede2}.whisper-note[hidden],.whisper-public-mode[hidden]{display:none!important}

#recentChat .whisper-chat-line span,#chatHistoryList .whisper-chat-line span{color:#57d28b}
#chatHistoryList .whisper-chat-line,#chatHistoryList .whisper-chat-line strong,#chatHistoryList .whisper-chat-line span{color:#237343}

.friend-private-note{flex-basis:100%;margin:3px 0;color:#496c53;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}#friendMemoText{display:block;width:100%;margin:8px 0;padding:10px;border:1px solid #91a394;border-radius:9px;background:#fff;color:#213e35;user-select:text}

#recentChat .system-chat-line,#recentChat .system-chat-line strong,#recentChat .system-chat-line span{color:#ff8e83}#chatHistoryList .system-chat-line,#chatHistoryList .system-chat-line strong,#chatHistoryList .system-chat-line span{color:#af302a}.system-chat-line{border-left:2px solid #db5146;padding-left:7px}

#summitWarpStone{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(205px + env(safe-area-inset-bottom));padding:10px 17px;border:1px solid #b4d5bf;border-radius:15px;background:#173d32ed;color:#f2e5ba;font-size:12px;pointer-events:auto}

/* Keep the ocean view open until the player asks for room controls. */
#hotelMenuToggle{display:none}
body.hotel-active #hotelMenuToggle{display:inline-flex;align-items:center;justify-content:center;position:fixed;right:max(14px,env(safe-area-inset-right));top:calc(91px + env(safe-area-inset-top));z-index:39;width:auto;min-width:90px;min-height:36px;padding:6px 10px;border:1px solid #cfbd8a88;border-radius:12px;background:#183d32db;color:#f5e8c8;font-size:11px;line-height:1.2}
body.hotel-active:not(.hotel-menu-open) :is(#hotelExit,#hotelProperty,#hotelRoomControls,#trailInquiry){display:none!important}
body.hotel-active.hotel-menu-open :is(#hotelExit,#hotelProperty,#hotelRoomControls,#trailInquiry){right:max(14px,env(safe-area-inset-right));left:auto;bottom:auto;width:150px;max-width:44vw;height:auto;min-height:38px;padding:7px 10px;border-radius:11px;font-size:11px;line-height:1.35;z-index:38}
body.hotel-active.hotel-menu-open #hotelExit{top:calc(135px + env(safe-area-inset-top))}
body.hotel-active.hotel-menu-open #hotelProperty{top:calc(179px + env(safe-area-inset-top))}
body.hotel-active.hotel-menu-open #hotelRoomControls{top:calc(223px + env(safe-area-inset-top))}
body.hotel-active.hotel-menu-open #trailInquiry{top:calc(267px + env(safe-area-inset-top))}

.suite-curtain-options{display:flex;gap:10px;margin:12px 0 20px}
.suite-curtain-options button{flex:1;min-height:44px;border:1px solid #b8a17a;border-radius:12px;background:#f3edde;color:#263d34;font:inherit}
.suite-curtain-options button[aria-pressed="true"]{background:#294b40;color:#fff4dd}

/* The entry cover stays above room controls until the first restored frame. */
#loading{z-index:10000}

.watch-face{z-index:0}
.watch-face::before{background:var(--watch-strap)}
.watch-face::after{background:var(--watch-hands);box-shadow:9px 14px 0 -.4px var(--watch-hands)}
.watch-subdial{position:absolute;width:13px;height:13px;border:1px solid var(--watch-case);border-radius:50%;bottom:4px;left:calc(50% - 6px);background:#ffffff25}
.watch-design-moonphase .watch-subdial{top:12px;left:3px}
.watch-design-moonphase .watch-subdial-two{left:auto;right:3px}
.watch-moon{position:absolute;width:8px;height:8px;bottom:3px;left:calc(50% - 4px);border-radius:50%;background:#edd9a3;box-shadow:3px -1px 0 0 var(--watch-dial)}
.watch-design-offset .watch-subdial{width:23px;height:23px;left:0;top:5px}
.watch-date{position:absolute;right:0;top:3px;background:#f5ead3;color:#30363f;font-size:6px;font-style:normal;line-height:10px;padding:0 2px}
.watch-design-roman{background:repeating-radial-gradient(circle,#b8c6d34d 0 1px,transparent 1px 3px),var(--watch-dial);border-style:double}
.watch-design-oak{background:repeating-linear-gradient(0deg,#c5d2d12e 0 1px,transparent 1px 4px),var(--watch-dial)}

.suite-tv-channels{display:flex;gap:10px;margin:16px 0}
.suite-tv-channels button,.suite-tv-open,.suite-tv-sound{min-height:44px;padding:10px 15px;border:1px solid #9b997b;border-radius:10px;background:#294539;color:#f4eddd}
.suite-tv-channels button[aria-pressed=true]{background:#e7dfc4;color:#243e33}

/* The TV iframe sits behind the WebGL canvas; its depth-tested screen aperture
   reveals only the actual television pixels, preserving furniture/avatar occlusion. */
#hotelTVLayer{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none}
#hotelTVSurface{position:absolute;left:0;top:0;width:640px;height:360px;transform-origin:0 0;background:#000;pointer-events:none}
#hotelTVSurface iframe{display:block;width:100%;height:100%;border:0;pointer-events:none}
#scene{z-index:0}
.suite-tv-sound{margin-left:8px}

/* If a browser requires direct user activation, the TV screen itself accepts
   that tap in place, then returns behind the depth-tested scene when playing. */
#hotelTVLayer[data-tv-activation="true"]{z-index:1}
#hotelTVLayer[data-tv-activation="true"] #hotelTVSurface,
#hotelTVLayer[data-tv-activation="true"] iframe{pointer-events:auto}

/* Image-only opening, followed by a separate readable loading page. */
#intro{align-items:center;gap:20px;padding:max(28px,calc(env(safe-area-inset-top,0px) + 18px)) 7% max(16px,env(safe-area-inset-bottom,0px));background:radial-gradient(ellipse at 50% 0%,#2b5145 0%,#173b34 55%,#123229 100%)}
#intro .intro-art{object-position:60% 40%;opacity:0}
#intro .intro-shade{display:none}
#intro[data-phase="splash"] .intro-art{opacity:1}
#intro[data-phase="splash"] .intro-bottom{visibility:hidden}
#intro[data-phase="splash"] .intro-brand>span,#intro[data-phase="splash"] .intro-brand>p{display:none}
#intro[data-phase="splash"] .intro-brand h1,#intro[data-phase="splash"] .intro-credit{color:#fff8e9;text-shadow:0 2px 12px #102d25,0 1px 3px #102d25}
#intro .intro-brand{width:min(600px,100%);text-align:center;text-shadow:none}
#intro .intro-brand>span{font-size:9px;letter-spacing:4px;color:#d2c8aa}
#intro .intro-brand h1{font-size:clamp(30px,5vw,44px);margin:9px 0;font-family:'Noto Sans KR',sans-serif;font-weight:650}
#intro .intro-brand p{font-size:12px;color:#c0cebd;margin:0}
#intro .intro-bottom{width:min(600px,100%)}
#intro .intro-story-window{padding:10px 6px 18px;border:0;border-radius:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;color:#edf0e5;scrollbar-width:thin;scrollbar-color:#c7c4a340 transparent}
#intro .intro-story{text-align:center;font-size:14px;line-height:1.9;color:#e3e9dc}
#intro .intro-story h2{font-size:20px;line-height:1.5;margin:0 0 24px;color:#f8efdc}
#intro .intro-story p{margin:0 0 22px}
#intro .intro-story strong{color:#f0dfb4}
#intro .intro-game-notice{border:0;margin:0;padding:0}
#intro .intro-record-notice{border:0;border-top:1px solid #c8d5bd40;padding:18px 0 0;margin-top:26px;text-align:left}
#intro .intro-record-notice summary{cursor:pointer;font-size:12px;color:#d9d9bb;min-height:32px}
#intro .intro-record-notice p{font-size:12px;line-height:1.85;margin:12px 0 0}
#intro .intro-home-tip{border-color:#c8d5bd40;color:#e3e9dc}
#intro .intro-controls{min-height:54px;display:flex;align-items:center;justify-content:center;margin-top:10px}
#intro #introEnter{width:100%;min-height:54px;background:#eee7cf;color:#244536;border:1px solid #f7efd7;border-radius:14px;font-size:16px;text-align:center;font-weight:650}
#intro #introStatus{text-align:center;min-height:18px;margin:8px 0 0;font-size:11px;letter-spacing:0;color:#c4d0bd}
#intro .intro-credit{flex:0 0 auto;font-size:11px;line-height:1.5;letter-spacing:1px;margin:0;color:#d6d4be;text-align:center}
.intro-loading-ring{display:none;width:28px;height:28px;border:1px solid #d8d8bc40;border-top-color:#ecdbab;border-radius:50%;animation:rotate 1.3s linear infinite}
#intro[data-phase="loading"] .intro-loading-ring{display:block}
@media(max-height:680px){#intro{gap:12px;padding-top:max(18px,env(safe-area-inset-top,0px))}#intro .intro-brand h1{font-size:29px}#intro .intro-story{font-size:13px}#intro .intro-story h2{font-size:18px;margin-bottom:16px}#intro .intro-story p{margin-bottom:16px}#intro #introEnter{min-height:48px}}
@media(prefers-reduced-motion:reduce){.intro-loading-ring{animation:none}}
#loading .loading-art,#loading .loading-shade{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% 40%}
#loading .loading-shade{background:linear-gradient(180deg,#102d25c9,#102d2580 40%,#102d25dc)}
#loading .loading-brand{position:absolute;top:max(40px,calc(env(safe-area-inset-top,0px) + 24px));left:15px;right:15px;text-align:center;font:650 30px 'Noto Sans KR',sans-serif;color:#fff6df;letter-spacing:-1px}
#loading .loading-message{position:relative;z-index:1;text-align:center;padding:20px}
#loading .loading-message span{display:block;margin:auto}
#loading .loading-credit{position:absolute;bottom:max(22px,calc(env(safe-area-inset-bottom,0px) + 12px));left:0;right:0;margin:0;text-align:center;color:#efe8cf;font-size:11px;letter-spacing:1px}

/* Keep entry artwork quiet and make return-visit guidance the first reading. */
#intro[data-phase="splash"] .intro-brand h1{font-size:clamp(22px,3.8vw,30px);letter-spacing:-.6px;font-weight:550}
#intro[data-phase="splash"] .intro-credit{position:relative;z-index:1;padding:9px 18px;border:1px solid #fff5;border-radius:24px;background:#102d25d9;color:#fff8e9;font-size:13px;font-weight:600;letter-spacing:.8px;text-shadow:none}
#intro .intro-loading-indicator{display:none;align-items:center;justify-content:center;gap:11px;flex:0 0 auto;margin:0 0 16px;font-size:14px;color:#fff3d2}
#intro[data-phase="loading"] .intro-loading-indicator{display:flex}
#intro .intro-loading-ring{flex:0 0 auto;width:30px;height:30px;border-width:3px;border-color:#f3dfaf30;border-top-color:#ffedbd;animation:rotate .9s linear infinite}
#intro .intro-browser-notice{text-align:center;padding:20px 16px 16px;border:1px solid #d8d6aa66;border-radius:18px;background:#eef0d80c;margin-bottom:30px}
#intro .intro-browser-notice h2{font-size:19px;margin-bottom:14px}
#intro .intro-browser-notice p{font-size:13px;line-height:1.8;margin-bottom:16px}
#intro .intro-home-tip{padding:0;border:0;margin-top:0}
#intro .intro-home-steps{padding:12px;border-radius:10px;background:#102d2566}
#intro .intro-browser-notice .intro-record-notice{margin-top:10px;padding-top:10px}
#intro .intro-browser-notice .intro-record-notice p{font-size:12px}
#intro .intro-game-notice{padding-top:4px}
#intro .intro-game-notice h2{font-size:17px}
@media(prefers-reduced-motion:reduce){#intro .intro-loading-ring{animation:none}}

/* Gentle title, quiet mountain silhouettes and continuous loading motion. */
#intro[data-phase="splash"] .intro-credit{display:none}
#intro .intro-brand h1,#intro[data-phase="splash"] .intro-brand h1{font-family:'Gowun Batang',serif;font-weight:400;letter-spacing:1.5px;font-size:clamp(25px,4vw,34px);line-height:1.5}
#intro[data-phase="splash"] .intro-brand h1{text-shadow:0 2px 14px #173b3477}
#intro .intro-mountains{position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/intro-mountains.svg') center bottom/cover no-repeat;opacity:.25}
#intro[data-phase="splash"] .intro-mountains{display:none}
#intro .intro-brand,#intro .intro-bottom,#intro .intro-credit{position:relative;z-index:1}
#intro .intro-mountains{z-index:0}
#intro .intro-browser-notice{background:#173b3455;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
#intro .intro-loading-ring{position:relative;display:block;will-change:transform;border-color:#f3dfaf26;border-top-color:#ffedbd;border-right-color:#ffedbd99;animation:intro-spin .85s linear infinite}
#intro .intro-loading-ring::after{content:'';position:absolute;top:1px;right:0;width:5px;height:5px;border-radius:50%;background:#fff0c3;box-shadow:0 0 8px #ffdf9488}
@keyframes intro-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#intro .intro-loading-ring{animation-duration:2.5s}}

/* Let the thin title breathe through contrast, without increasing font weight. */
#intro[data-phase="splash"] .intro-brand h1{color:#fffaf0;animation:intro-title-breathe 3s ease-in-out infinite;text-shadow:0 2px 10px #123329cc,0 0 24px #12332999}
@keyframes intro-title-breathe{0%,100%{opacity:.5;text-shadow:0 2px 12px #12332988}50%{opacity:1;text-shadow:0 2px 8px #123329ee,0 0 22px #123329bb}}
#intro .intro-story{padding-top:var(--intro-entry-space,0px);padding-bottom:48px}
#intro .intro-story-window{mask-image:linear-gradient(to bottom,transparent,#000 5%,#000 95%,transparent);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 5%,#000 95%,transparent)}
@media(prefers-reduced-motion:reduce){#intro[data-phase="splash"] .intro-brand h1{animation:none;opacity:1}#intro .intro-story{padding-top:0}}

/* Composite the full text roll independently of game-loading JavaScript. */
#intro .intro-story{padding-top:0;padding-bottom:48px}
#intro .intro-story-window{overflow:hidden;scrollbar-width:none}
#intro:not([data-phase="splash"]) .intro-story.intro-rolling{will-change:transform;animation:intro-notice-roll var(--intro-roll-duration,75s) linear forwards;transform:translate3d(0,var(--intro-roll-start,0px),0)}
@keyframes intro-notice-roll{from{transform:translate3d(0,var(--intro-roll-start,0px),0)}to{transform:translate3d(0,var(--intro-roll-end,-1200px),0)}}

/* Readers can take over the roll; loading and entry remain below the reading area. */
#intro .intro-story-window{overflow:auto;touch-action:pan-y;scrollbar-width:thin}
#intro .intro-controls .intro-loading-indicator{margin:0;min-height:54px}

/* Reuse the actual rendered game landscape behind the loading copy. */
#intro .intro-mountains{display:none;background:none}
body.intro-open>#scene{visibility:visible!important;filter:blur(3px) saturate(.6);pointer-events:none!important}
#intro:not([data-phase="splash"]){background:linear-gradient(180deg,#102c24d1,#102c24dc 45%,#102c24e8)}
#intro .intro-browser-notice{background:#173b3473;backdrop-filter:none;-webkit-backdrop-filter:none}
#intro #introEnter{justify-content:center;text-align:center}
/* The tear's prophecy stays beside live conversation until the server awards it. */
.tear-chat-pinned{color:#deb9ff!important;background:#362045c9;border:1px solid #b77ce66b;border-radius:9px;padding:8px 10px;margin:7px 0;font-size:12px;line-height:1.6;white-space:normal;text-shadow:0 1px 4px #160f22;pointer-events:auto}
.tear-chat-countdown{display:inline-block;color:#eddaff;margin-left:8px;font-size:11px;font-variant-numeric:tabular-nums}
#chatHistoryDialog .tear-chat-pinned{color:#754394!important;background:#efe5f5;text-shadow:none}#chatHistoryDialog .tear-chat-countdown{color:#754394}
#tearMining{position:fixed;z-index:7;right:14px;bottom:max(30px,calc(env(safe-area-inset-bottom,0px) + 16px));width:min(240px,calc(100vw - 210px));padding:10px;border:1px solid #75c9f050;border-radius:14px;background:#142f44da;text-align:center;pointer-events:auto}
#tearMining b{font-family:'Gowun Batang',serif;color:#b8e8ff;font-size:14px}#tearMining p{font-size:11px;line-height:1.6;color:#d4e6ec;margin:5px 0}.tear-hand-status{display:block;font-size:11px;color:#b8e8ff;margin:6px 0}#tearMining button{min-height:36px;border:1px solid #a6d3e652;border-radius:10px;background:#315365;padding:7px 10px;font-size:11px}
#tearTurnDrop{position:fixed;z-index:6;left:50%;top:38%;width:min(260px,65vw);transform:translate(-50%,-50%);pointer-events:none;text-align:center;color:#c6edff;text-shadow:0 2px 9px #092e50}
.tear-jewel-frame{height:clamp(170px,24vh,235px);width:100%;background:radial-gradient(ellipse at 50% 57%,#247bcc22,transparent 64%)}
.tear-jewel-words{font:400 17px/1.6 'Gowun Batang',serif;margin:0 0 4px;letter-spacing:2px}#tearTurnDrop small{display:block;font:10px/1.7 'Noto Sans KR',sans-serif;word-break:keep-all;color:#c4dce9}
#tearTurnRing{position:absolute;inset:-12px;pointer-events:none;color:#83ceee;opacity:.48}#tearTurnRing[data-moving="true"]{opacity:1}#tearTurnRing svg{width:100%;height:100%;transform:rotate(-90deg);overflow:visible}#tearTurnRing circle{fill:none;stroke:currentColor;stroke-width:3}.tear-turn-track{opacity:.2}.tear-turn-fill{stroke-dasharray:339.292;stroke-dashoffset:var(--tear-turn-offset,339.292);stroke-linecap:round}.tear-turn-pointer{position:absolute;inset:0;transform:rotate(var(--tear-turn-bearing,0deg))}.tear-turn-pointer em{position:absolute;top:1px;left:calc(50% - 4px);width:8px;height:8px;border-radius:50%;background:#d8f5ff;box-shadow:0 0 7px #70cfff}
.tear-mining .left-tools,.tear-mining .actions,.tear-mining .trail-context-tools,.tear-mining .trail-view-tools,.tear-mining #coastReturn,.tear-mining #beachAction,.tear-mining #strandPick,.tear-mining #spiritGiftHint,.tear-mining #coastBoard,.tear-mining #gestureHint,.tear-mining #rareOwnerPanel{visibility:hidden!important}
.tear-mining #trailChat .tear-chat-pinned[data-phase="active"]>.tear-chat-countdown{display:none}

#spiritTearBagDialog{text-align:center}#spiritTearBagDialog .tear-bag-art{width:min(170px,60%);height:190px;object-fit:contain}#spiritTearBagDialog .tear-lore{white-space:pre-line;text-align:left;line-height:1.9;font-family:'Gowun Batang',serif;font-size:14px;color:#3b5852}
#rareOwnerButtons .tear-owner-location{display:block;color:#d8efff;background:#183e4bea;padding:7px;border-radius:8px;font-size:10px;line-height:1.65;overflow-wrap:anywhere;margin:0}
#recentChat .tear-winner-chat,#recentChat .tear-winner-chat strong,#recentChat .tear-winner-chat span{color:#deb9ff}#chatHistoryList .tear-winner-chat,#chatHistoryList .tear-winner-chat strong,#chatHistoryList .tear-winner-chat span{color:#754394}.tear-winner-chat{border-left-color:#aa75d2}
/* Two deliberate lines, with an independent countdown column. */
.tear-chat-pinned{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px}
.tear-chat-pinned>span{white-space:pre-line;word-break:keep-all;overflow-wrap:normal;letter-spacing:0;font-size:11px;line-height:1.75}
.tear-chat-pinned>.tear-chat-countdown{white-space:nowrap;letter-spacing:0;margin-left:0;font-size:10px;line-height:1.6}
.tear-chat-pinned[data-phase="active"]{grid-template-columns:minmax(0,1fr);row-gap:5px}
.tear-chat-pinned[data-phase="active"]>.tear-chat-countdown{white-space:normal;word-break:keep-all}

#tearTurnDrop .tear-mining-time{margin:2px 0 5px;font:500 13px/1.6 'Noto Sans KR',sans-serif;font-variant-numeric:tabular-nums;letter-spacing:1px;color:#d0efff}

/* Keep both opening titles readable over the artwork for the full splash. */
#intro[data-phase="splash"] .intro-shade{display:block;background:linear-gradient(180deg,#09251de6 0%,#09251da6 18%,#09251d28 38%,transparent 55%)}
#intro[data-phase="splash"] .intro-brand{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%}
#intro[data-phase="splash"] .intro-brand h1{order:0;margin:0;color:#fffaf0;font-family:'Noto Sans KR',sans-serif;font-size:clamp(36px,7.8vw,64px);font-weight:750;line-height:1.3;letter-spacing:-1px;animation:none;opacity:1;text-shadow:0 2px 5px #09251d,0 4px 18px #09251dcc}
#intro[data-phase="splash"] .intro-brand>span{display:block;order:1;color:#fff3d4;font-size:clamp(12px,2.8vw,18px);font-weight:600;line-height:1.5;letter-spacing:4px;text-shadow:0 2px 5px #09251d,0 3px 12px #09251dcc}

/* The jewel floats in front of the world and chat, with room for its mist to rise. */
#tearJewelCanvas{position:fixed;inset:0;width:100%;height:100%;z-index:21;pointer-events:none;background:transparent}
#tearJewelCanvas[hidden]{display:none}
#tearTurnDrop{z-index:22;top:43%;width:min(280px,70vw)}
.tear-jewel-frame{height:clamp(190px,26vh,255px);background:none}
#tearTurnDrop .tear-jewel-words{text-shadow:0 0 14px #78bcff,0 2px 6px #061626}

/* Shared rainstorm: rolling cloud cover and one soft lightning pulse. */
#tearStormSky{position:fixed;inset:0;z-index:1;pointer-events:none;background:rgba(151,104,231,var(--storm-flash,0))}
#tearStormSky::before{content:'';position:absolute;left:-15%;top:-8%;width:130%;height:42%;opacity:calc(var(--storm-strength,0)*.72);background:radial-gradient(ellipse at 20% 18%,#1d2936 0%,#293744aa 25%,transparent 55%),radial-gradient(ellipse at 66% 5%,#26313e 0%,#303c49bb 32%,transparent 65%);filter:blur(12px);animation:tear-cloud-drift 26s ease-in-out infinite alternate}
@keyframes tear-cloud-drift{to{transform:translateX(6%)}}
@media(prefers-reduced-motion:reduce){#tearStormSky{background:none}#tearStormSky::before{animation:none}}


#tearCenterNotice{position:fixed;inset:auto;left:50%;top:43%;transform:translate(-50%,-50%);margin:0;z-index:40;display:flex;align-items:center;gap:12px;width:max-content;max-width:86vw;padding:14px 18px;border:1px solid #c994f590;border-radius:16px;background:#271337dc;box-shadow:0 0 28px #a96be43d;color:#ecd4ff;pointer-events:none;text-shadow:0 2px 4px #170b25}
#tearCenterNotice[hidden]{display:none!important}#tearCenterNotice b{display:grid;place-items:center;flex:0 0 30px;height:30px;border:1px solid #dfbaff;border-radius:50%;background:#7842a6;color:#fff3ff;font-size:24px}#tearCenterNotice span{font-size:14px;line-height:1.7;text-align:center;white-space:pre-line;word-break:keep-all}#tearCenterNotice::backdrop{background:transparent}.tear-notice-visible #rareNotice{visibility:hidden}


#casinoEntrance,#casinoExit{min-height:44px;padding:10px 16px;border:1px solid #c9ab70;border-radius:20px;background:#272133ed;color:#f4dfb5;font-size:12px}
#casinoAdmission{width:min(92vw,410px);border:1px solid #b99a64;background:#211c2b;color:#f4ead7;border-radius:20px;padding:28px 24px}#casinoAdmission h2{font-family:'Gowun Batang',serif;font-size:26px}#casinoAdmission p{line-height:1.9;font-size:13px}#casinoAdmission .muted{color:#c6bacb}#casinoAdmission .eyebrow{color:#d8b879;letter-spacing:2px}#casinoAdmission .casino-status{color:#e1cba8;font-size:12px}#casinoAdmission::backdrop{background:#090711a8}
.casino-previewing .left-tools,.casino-previewing .actions,.casino-previewing .trail-context-tools>button:not(#casinoExit):not(#casinoPlay):not(#casinoOfficeButton):not(#casinoChat):not(#casinoCompanyWarp):not(#bankCompanyWarp):not(#sfcEntrance):not(#lifeStagTransform):not(#futureMotorcycle):not(#hotelCompanyWarp){display:none!important}
#casinoAdmission{max-height:85dvh;overflow-y:auto;touch-action:pan-y}#casinoAdmission .casino-questions section{padding:12px 0;border-top:1px solid #c9ab7033}#casinoAdmission .casino-questions p{font-size:13px;color:#f4dfb5}#casinoAdmission .casino-questions button{display:block;width:100%;min-height:44px;margin:6px 0;padding:10px 12px;text-align:left;border:1px solid #8c7b9166;border-radius:10px;background:#302738;color:#eee3d4;font-size:12px;line-height:1.6}#casinoAdmission .casino-questions button[aria-pressed=true]{background:#65523a;border-color:#e1be7e;color:#fff6dc}
#casinoAdmission .casino-warning{padding:13px 14px;border:1px solid #dd9b7280;border-radius:10px;background:#623b2d55;color:#ffceaa;line-height:1.8}
#bankEntrance{min-height:44px;padding:10px 16px;border:1px solid #b8c5b1;border-radius:20px;background:#244c3eea;color:#f5e8c8;font-size:12px}#bankDialog{width:min(93vw,440px);max-height:86dvh;overflow-y:auto;touch-action:pan-y;border:1px solid #bba272;border-radius:18px;background:#1c352e;color:#f0ead8;padding:26px 22px}#bankDialog p{font-size:12px;line-height:1.9;white-space:pre-line}#bankDialog .bank-rules{background:#ffffff0b;border-left:2px solid #c9ab70;padding:12px}#bankDialog h3{font-size:16px}#bankDialog label{display:block;font-size:13px;margin:12px 0}#bankDialog input,#bankDialog select{display:block;width:100%;min-height:44px;padding:10px;margin:8px 0;background:#f0eddf;color:#284536;border:0;border-radius:8px}#bankDialog .bank-body button{display:block;width:100%;margin-top:10px}#bankDialog::backdrop{background:#0b1519aa}
#bankExit,#bankCounter,#bankTicket{min-height:44px;padding:10px 14px;border:1px solid #b8c5b1;border-radius:18px;background:#234939ed;color:#f8edcf;font-size:12px}.bank-indoors .actions,.bank-indoors .left-tools,.bank-indoors .trail-context-tools>button:not(#bankExit):not(#bankCounter):not(#bankTicket):not(#bankChat):not(#casinoCompanyWarp):not(#bankCompanyWarp):not(#sfcEntrance):not(#lifeStagTransform):not(#futureMotorcycle):not(#hotelCompanyWarp){display:none!important}
#casinoEntrance,#bankEntrance{font-weight:700;border:2px solid #dcc491;background:#244d3df2;box-shadow:0 3px 12px #0005;min-width:115px}

#casinoPlay{min-height:44px;padding:10px 16px;border:1px solid #dfc387;border-radius:20px;background:#513648;color:#fff1cb;font-size:12px}
.casino-game{width:min(94vw,560px);max-height:88dvh;overflow:auto;padding:25px 20px;border:1px solid #c5a36e;border-radius:20px;background:linear-gradient(145deg,#302038,#151b26);color:#f7e9c8;touch-action:pan-y}.casino-game::backdrop{background:#090711c9}.casino-game h2{font:700 25px 'Gowun Batang',serif;margin:12px 0}.casino-game .eyebrow{font-size:10px;letter-spacing:2px;color:#c6a776}.casino-game button{min-height:44px;border:1px solid #c2a472;border-radius:10px;background:#4c3941;color:#ffefcb;padding:10px 13px}.casino-game button:disabled{opacity:.5}.casino-game .close{float:right}.casino-wallet{font-size:12px;color:#d1c0a0}.casino-felt{min-height:210px;border:5px solid #80623d;border-radius:35px;background:radial-gradient(ellipse at top,#235d52,#122e29);padding:22px 10px;text-align:center;box-shadow:inset 0 0 24px #0008;display:flex;flex-direction:column;justify-content:center;gap:12px;overflow:hidden}.casino-table-title{letter-spacing:3px;color:#d3bd88;font-size:25px}.casino-reels{display:flex;gap:7px;justify-content:center}.casino-reel{display:flex;align-items:center;justify-content:center;width:29%;height:100px;background:linear-gradient(#a7a08f,#fff8dd 40%,#fff8dd 60%,#a7a08f);color:#7e293d;border:3px solid #caac67;border-radius:9px;font-weight:900;font-size:clamp(17px,6vw,32px);text-shadow:1px 2px #fff}.casino-wheel{display:grid;place-items:center;width:120px;height:120px;border:14px ridge #c0a36c;border-radius:50%;margin:auto;background:#1e1c23;font-size:42px;box-shadow:0 0 0 4px #482925}.casino-wheel.red{background:#a03540}.casino-wheel.green{background:#245b3e}.casino-dice{display:flex;justify-content:center;gap:8px}.casino-die{font-size:70px;line-height:1;color:#fff5dc;filter:drop-shadow(2px 5px 2px #0006)}.casino-hand{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px}.casino-hand-label{width:100%;font-size:12px;color:#e6c986}.casino-card{display:inline-grid;place-items:center;width:44px;height:62px;border-radius:6px;background:#fff4d9;color:#17242e;box-shadow:2px 3px 5px #0007;font-size:19px;font-weight:700;animation:casino-deal .4s both}.casino-card.red{color:#ab3248}.casino-payout{font-size:18px;color:#ffe2a0;font-weight:700}.casino-caption{font-size:10px;line-height:1.7;color:#c7b694}.casino-bet{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.casino-bet[hidden]{display:none}.casino-bet label{font-size:12px;flex:1;min-width:120px}.casino-bet input,.casino-bet select{display:block;width:100%;min-height:44px;margin-top:7px;background:#eee6d5;color:#25382e;border:0;border-radius:8px;padding:8px;box-sizing:border-box}.casino-bet button{width:100%;background:#9d7740;color:#fff7e2;font-weight:700}.casino-controls{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.casino-controls button{flex:1;min-width:115px}.casino-rule-text{white-space:pre-line;font-size:12px;line-height:1.9}.casino-message{font-size:12px;line-height:1.8}.casino-game summary{cursor:pointer;min-height:35px;font-size:13px}.casino-in-motion .casino-reel{animation:casino-reels .15s infinite}.casino-in-motion .casino-wheel{animation:casino-spin .5s linear infinite}.casino-in-motion .casino-die{animation:casino-tumble .3s infinite}.casino-in-motion .casino-card{animation:casino-deal .5s infinite}.casino-in-motion{filter:brightness(1.12)}
@keyframes casino-reels{50%{transform:translateY(13px);filter:blur(2px)}}@keyframes casino-spin{to{transform:rotate(360deg)}}@keyframes casino-tumble{50%{transform:translateY(-14px) rotate(35deg)}}@keyframes casino-deal{from{opacity:0;transform:translate(60px,-15px) rotate(12deg)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.casino-in-motion *,.casino-card{animation:none!important}}

.casino-felt{position:relative}.casino-in-motion::after{content:'딜러가 진행하고 있어요';position:absolute;inset:0;display:grid;place-items:center;background:#18382ce8;color:#ffe2a1;font-size:16px;letter-spacing:2px;animation:casino-deal .6s alternate infinite}

.hiker-role-title{display:block;margin-top:3px;color:#66b5ff;font-size:10px;font-weight:700;letter-spacing:.1px;text-shadow:0 1px 3px #102e56,0 0 3px #102e56}.hiker-role-title[hidden]{display:none}
.casino-game .close{position:absolute;right:18px;top:15px;float:none;width:auto;min-width:56px;height:44px;padding:8px 12px;font-size:12px}.casino-game h2{padding-right:65px}.casino-game p{color:#d9c7a8}.casino-game{overflow-x:hidden}

#casinoOfficeButton{min-height:44px;padding:10px 16px;border:1px solid #d8b77b;border-radius:20px;background:#33294aed;color:#f5dfae;font-size:12px}.casino-office-totals{display:grid;grid-template-columns:1fr auto;gap:12px;padding:18px 14px;border:1px solid #bb976755;border-radius:14px;background:#11192366;font-size:12px}.casino-office-totals dt{color:#d0c1a5}.casino-office-totals dd{margin:0;color:#ffe2a1;font-weight:700}.casino-office-body p{white-space:pre-line;line-height:1.9}.casino-closing{padding:14px 0;border-top:1px solid #b8966444}

#casinoAdmission button.venue-close,#bankDialog button.venue-close,.casino-game button.venue-close{position:absolute;inset:12px 12px auto auto;float:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;border:1px solid #c8ac7655;border-radius:50%;background:#352d3b;color:#f6e3b9;font:400 26px/1 system-ui;overflow:hidden;text-indent:0;z-index:2;touch-action:manipulation}
#casinoAdmission button.venue-close:focus-visible,#bankDialog button.venue-close:focus-visible,.casino-game button.venue-close:focus-visible{outline:2px solid #dcc18b;outline-offset:2px}
#casinoAdmission h2,#bankDialog h2{padding-right:40px}#casinoAdmission .eyebrow{padding-right:45px;font-size:9px}#casinoAdmission p{word-break:keep-all;overflow-wrap:break-word}
#casinoAdmission::backdrop,#casinoGame::backdrop,#casinoOffice::backdrop,#bankDialog::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#090c13bb}

#casinoChat{min-height:44px;padding:10px 16px;border:1px solid #bdc9bb;border-radius:20px;background:#214e41ed;color:#f1ead6;font-size:12px}
/* Quiet private-club palette with compact controls and chat that remains usable during dealing */
#casinoGame{width:min(94vw,520px);padding:22px 18px;background:#101e1d;border-color:#8e7a52;border-radius:16px;color:#eee6d2;box-shadow:0 22px 70px #0008}
#casinoGame h2{font-size:23px;margin:10px 0 5px}#casinoGame .casino-wallet{margin:5px 0 14px;font-variant-numeric:tabular-nums}
#casinoGame .casino-felt{min-height:158px;border:1px solid #80704777;border-radius:12px;background:linear-gradient(145deg,#183c33,#142c27);box-shadow:inset 0 0 35px #071a1355;padding:18px 8px;gap:8px}
#casinoGame .casino-table-title{font-size:22px;letter-spacing:1px}#casinoGame button{background:#233b34;border-color:#a28c5866;border-radius:8px}#casinoGame .casino-deal{background:#c5ac70;color:#152a23}
#casinoGame .casino-bet{gap:8px;margin:12px 0}#casinoGame .casino-bet label{min-width:110px}#casinoGame .casino-bet input,#casinoGame .casino-bet select{background:#e9e6da;border:1px solid #a18a5655;margin-top:5px}
#casinoGame .casino-reel{height:76px;font-size:clamp(18px,5vw,28px);border-width:1px;box-shadow:none}#casinoGame .casino-wheel{border:8px solid #ad945e;width:96px;height:96px;box-shadow:0 0 0 1px #d4bd7e55}
#casinoGame .casino-die{font-size:58px}#casinoGame .casino-card{width:37px;height:53px;font-size:17px;background:#f0ecdf;box-shadow:0 2px 4px #0005}#casinoGame .casino-payout{font-size:17px}#casinoGame .casino-message{margin:8px 0}
.casino-table-chat{margin-top:14px;border-top:1px solid #a5905d44;padding-top:10px}.casino-chat-feed{max-height:100px;overflow:auto;min-height:25px;text-align:left}.casino-chat-feed p{font-size:12px;line-height:1.6;margin:3px 0;overflow-wrap:anywhere}.casino-chat-form{display:flex;gap:8px;align-items:center}.casino-chat-form input{min-width:0;flex:1;min-height:44px;width:100%;box-sizing:border-box;border:1px solid #a5905d66;background:#0c1916;color:#f1e6ce;border-radius:8px;padding:10px;font-size:16px}.casino-chat-form button{flex:none;font-size:12px}.casino-chat-status{font-size:12px;margin:5px 0}.finance-tabs{display:flex;gap:8px;margin:14px 0}.finance-tabs button{flex:1}.finance-tabs button[aria-pressed=true]{background:#c6ac71;color:#172d25}.finance-body h3{font-size:14px;margin:18px 0 4px}.finance-body p{font-size:14px;white-space:pre-line;font-variant-numeric:tabular-nums}.finance-body h3+p{margin-top:4px}#bankDialog input[type=checkbox]{width:20px;height:20px;vertical-align:middle;margin-right:8px}
@media(max-height:740px){#casinoGame{max-height:91dvh;padding-top:18px}#casinoGame .casino-felt{min-height:118px}.casino-chat-feed{max-height:68px}}

.casino-entry-loading{display:grid;justify-items:center;gap:12px;margin:20px 0;padding:24px 16px;border:1px solid #c7ac7155;border-radius:14px;background:linear-gradient(145deg,#203d32,#13251f);color:#f6e8c5;text-align:center}.casino-entry-loading[hidden]{display:none}.casino-entry-loading strong{font-size:16px;letter-spacing:.5px}.casino-entry-loading small{font-size:12px;line-height:1.8;color:#d3c9ad}.casino-entry-spinner{width:32px;height:32px;border:3px solid #d2b77a33;border-top-color:#e8cc8b;border-radius:50%;animation:casino-entry-spin 1s linear infinite}#casinoAdmission[aria-busy=true] .casino-preview{opacity:.7;cursor:wait}@keyframes casino-entry-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.casino-entry-spinner{animation:none;border-color:#d2b77a;border-top-color:transparent}}

.casino-income-highlight{padding:18px 15px;margin:12px 0;border:1px solid #d6b971;border-radius:12px;background:linear-gradient(135deg,#3a3020,#182e26)}.casino-income-highlight strong{display:block;font-size:22px;color:#ffe2a1;line-height:1.5;font-variant-numeric:tabular-nums}.casino-income-highlight p{font-size:12px;margin:6px 0;white-space:pre-line}

#bankChat{min-height:44px;padding:10px 14px;border:1px solid #b8c5b1;border-radius:18px;background:#234939ed;color:#f8edcf;font-size:12px}#bankAdmission{width:min(92vw,420px);padding:26px 22px;border:1px solid #c9ab70;border-radius:18px;background:#18352b;color:#f6e8c5}#bankAdmission .bank-entry-status{font-size:13px;line-height:1.8;white-space:pre-line}#bankAdmission .close{position:absolute;right:12px;top:12px;width:44px;height:44px;border-radius:50%;font-size:26px;background:#244c3c;color:#f6e8c5}#bankAdmission h2{padding-right:48px}#bankAdmission::backdrop{background:#0b1519aa}

.company-warp{min-height:44px;padding:10px 16px;border:1px solid #d5bc7c;border-radius:18px;background:#28483aed;color:#fff0c9;font-size:12px;font-weight:700}.company-warp:disabled{opacity:.65}

.company-warp[hidden]{display:none!important}

#sfcEntrance{min-height:44px;padding:10px 16px;border:1px solid #e3bf7d;border-radius:20px;background:#38243aed;color:#fff1cd;font-size:13px;font-weight:700}.sfc-indoors .actions,.sfc-indoors .left-tools,.sfc-indoors .trail-context-tools,.sfc-indoors #coastReturn,.sfc-indoors #beachAction,.sfc-indoors #strandPick{display:none!important}#sfcPanel{position:fixed;top:calc(148px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(90vw,440px);box-sizing:border-box;padding:13px 15px;border:1px solid #aa8d5c;border-radius:14px;background:#101b2ceb;color:#f5e6c7;z-index:20;pointer-events:auto;box-shadow:0 5px 22px #0004}#sfcPanel[hidden],#sfcCombat[hidden]{display:none!important}#sfcPanel header{position:static;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}#sfcPanel button{min-height:40px;padding:8px 12px;border:1px solid #b99a60;border-radius:8px;background:#263a4c;color:#ffe9bb;font-size:12px}#sfcPanel p{font-size:12px;line-height:1.6;margin:5px 0}#sfcPanel small{font-size:10px;line-height:1.7;color:#c8bda4;display:block}.sfc-hp{height:7px;display:flex;justify-content:space-between;background:#121721;border-radius:6px;overflow:hidden}.sfc-hp i{display:block;max-width:50%;height:7px;transition:width .18s}.sfc-hp .red{background:#ca5865}.sfc-hp .blue{background:#5f9bcd}.sfc-entry-actions{display:flex;gap:8px;margin:7px 0}.sfc-entry-actions[hidden]{display:none}#sfcPanel .sfc-chat{margin-top:6px;min-height:34px;background:#213c36}#sfcCombat{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(40px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(2,70px);gap:12px;z-index:24;pointer-events:auto}#sfcCombat button{width:70px;height:70px;border:2px solid #d6ba79;border-radius:50%;background:#332d42ed;color:#fff2cb;font-size:15px;font-weight:700;touch-action:manipulation}#sfcCombat button:first-child{grid-column:1/-1;justify-self:end;width:58px;height:58px;font-size:12px;background:#253c48}#sfcCombat button:active{transform:scale(.94);background:#80613e}#sfcAdmission{width:min(92vw,420px);padding:25px;border:1px solid #c9ab70;border-radius:18px;background:#1b2333;color:#f6e7c8}#sfcAdmission .close{position:absolute;right:12px;top:12px;width:44px;height:44px;font-size:25px;background:#293c49;color:#ffedc7;border-radius:50%}#sfcAdmission p{font-size:13px;line-height:1.8}@media(max-height:740px){#sfcPanel{top:calc(130px + env(safe-area-inset-top));padding:10px 12px}#sfcPanel small{font-size:9px}#sfcCombat{bottom:25px;grid-template-columns:repeat(2,62px)}#sfcCombat button{width:62px;height:62px}}

.sfc-fighting #sfcPanel small{display:none}.sfc-fighting #sfcPanel{padding-top:9px;padding-bottom:9px}.sfc-fighting #sfcPanel .sfc-status{font-weight:700;color:#e5c281}

#sfcPanel header{padding:0;background:none;width:auto;box-shadow:none}

#sfcCombat{grid-template-columns:repeat(2,64px);gap:9px}#sfcCombat button{width:64px;height:64px;font-size:13px}#sfcCombat button:first-child{grid-column:auto;width:64px;height:64px}#sfcCombat button[data-hit="punch"],#sfcCombat button[data-hit="kick"]{background:#61402e;border-color:#f5d18b}.sfc-fighting #sfcPanel small{display:none}.sfc-fighting #sfcPanel{padding:8px 12px}.sfc-fighting #sfcPanel .sfc-chat{min-height:32px}
/* Arena UI: keep the fight visible and make the information tray opt-in. */
body.sfc-indoors>header,body.sfc-indoors #hud>:not(#sfcPanel):not(#sfcCombat):not(#joyZone){display:none!important}
body.sfc-indoors #sfcPanel{top:calc(12px + env(safe-area-inset-top));left:50%;width:min(94vw,480px);padding:8px 10px;border-radius:12px;background:#101b2cdb;pointer-events:auto;max-height:42dvh;overflow:auto;box-shadow:none}
#sfcPanel header{gap:6px;justify-content:space-between;min-height:36px}#sfcPanel header button{min-height:36px;padding:5px 9px;font-size:12px}#sfcPanel .sfc-toggle{flex:1;text-align:left;background:transparent;border-color:transparent;color:#f0d89d}#sfcPanel .sfc-chat{margin:0;min-height:36px}#sfcPanel .sfc-score{font-size:11px;margin:4px 0}#sfcPanel .sfc-energy{font-size:10px;margin:3px 0;color:#c6d8df}#sfcPanel .sfc-status{font-size:11px}
#sfcPanel[data-expanded="false"] .sfc-entry-actions,#sfcPanel[data-expanded="false"] small{display:none!important}
#sfcPanel:not(.has-match) .sfc-hp,#sfcPanel .sfc-hp[hidden]{display:none!important}#sfcPanel[data-expanded="false"]:not(.has-match) .sfc-score,#sfcPanel[data-expanded="false"]:not(.has-match) .sfc-energy{display:none}
body.sfc-indoors #joyZone{display:flex!important;visibility:visible!important;pointer-events:auto;touch-action:none;z-index:35;left:max(8px,env(safe-area-inset-left));bottom:calc(20px + env(safe-area-inset-bottom));width:160px;height:160px}body.sfc-indoors #joyBase{width:116px;height:116px;background:#65889c24;border-color:#b3d0d4aa}body.sfc-indoors #joyZone>span{font-size:0}body.sfc-indoors #joyZone>span:after{content:'자유 이동';font-size:10px;letter-spacing:0}
body.sfc-indoors #sfcCombat{z-index:35;right:max(12px,env(safe-area-inset-right));bottom:calc(30px + env(safe-area-inset-bottom));grid-template-columns:repeat(2,60px);gap:9px}body.sfc-indoors #sfcCombat button,body.sfc-indoors #sfcCombat button:first-child{height:60px;width:60px;font-size:12px;touch-action:none;user-select:none}
@media(max-width:370px){body.sfc-indoors #joyZone{width:140px}body.sfc-indoors #sfcCombat{grid-template-columns:repeat(2,54px);gap:6px}body.sfc-indoors #sfcCombat button,body.sfc-indoors #sfcCombat button:first-child{width:54px;height:54px}}

#sfcPanel .sfc-status{max-height:2.8em;overflow:hidden}#sfcPanel .sfc-status[hidden]{display:none!important}

#chatText{box-sizing:border-box;display:block;width:100%;min-height:100px;max-height:38dvh;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;font:inherit;line-height:1.6;border-radius:10px;border:1px solid #aabbac;background:#f8f7ec;color:#234538}#recentChat li.long-chat-line{white-space:pre-wrap;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:break-word}#chatHistoryList li,#chatHistoryList li span,.casino-chat-feed p{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;text-overflow:clip}#recentChat li.long-chat-line>span{white-space:pre-wrap}#trailChat:has(.long-chat-line){max-height:32dvh;overflow-y:auto;pointer-events:auto}.hiker-speech{white-space:pre-wrap;max-height:34dvh;overflow-y:auto;pointer-events:auto}.finance-tabs{display:flex;gap:6px;flex-wrap:wrap}.finance-tabs button{flex:1;min-width:62px}.hotel-income-body p,.finance-body p{white-space:pre-line}

#hotelChairOffice{position:fixed;right:max(14px,env(safe-area-inset-right));top:calc(311px + env(safe-area-inset-top));width:150px;max-width:44vw;min-height:38px;padding:7px 10px;z-index:38;border:1px solid #d3bf8daa;border-radius:11px;background:#304b4bed;color:#fff1d0;font-size:11px}#hotelChairOffice[hidden],body:not(.hotel-active) #hotelChairOffice,body.hotel-active:not(.hotel-menu-open) #hotelChairOffice{display:none!important}

#hotelCompanyWarpIndoor{display:none}body:is(.sfc-indoors,.casino-previewing,.bank-previewing) #hotelCompanyWarpIndoor:not([hidden]){display:block;position:fixed;z-index:40;left:max(16px,env(safe-area-inset-left));bottom:calc(210px + env(safe-area-inset-bottom));min-height:42px;padding:9px 16px;border:1px solid #d2bd83;border-radius:14px;background:#294d42ed;color:#fff1cd;font-size:13px}

/* Keep each role’s disguise control directly below the photo action. */
.trail-controls .actions:has(>.disguise-control:not([hidden])){display:grid;grid-template-columns:repeat(2,55px)}
.trail-controls .actions #photo{grid-column:2;grid-row:1}
.trail-controls .actions>.disguise-control{grid-column:2;grid-row:2;box-sizing:border-box;min-width:0;width:55px;height:55px;padding:5px;font-size:11px;line-height:1.25;word-break:keep-all}
.trail-controls .actions:has(>.disguise-control:not([hidden])) #stone{grid-column:2;grid-row:3}
@media(max-width:380px){.trail-controls .actions:has(>.disguise-control:not([hidden])){grid-template-columns:repeat(2,52px)}.trail-controls .actions>.disguise-control{width:52px;height:52px}}

/* Use full-size action buttons and keep expanded fold contents unclipped. */
.trail-controls .actions:has(>.disguise-control:not([hidden])){grid-auto-rows:55px;align-items:center}
.trail-controls .actions>#spiritDisguise,.trail-controls .actions>#lifeStagTransform{display:flex;flex-direction:column;align-items:center;justify-content:center;align-content:normal;flex-shrink:0;width:55px;height:55px;min-height:55px;padding:4px;border-radius:50%;gap:2px;overflow:visible}
.trail-controls .actions>#spiritDisguise>span{font-size:22px;line-height:1}
.trail-controls .actions>#spiritDisguise small{font-size:9px;line-height:12px;white-space:nowrap}
.hud-actions-shell:not(.hud-fold-closed) .hud-fold-clip{overflow:visible}
@media(max-width:380px){.trail-controls .actions:has(>.disguise-control:not([hidden])){grid-auto-rows:52px}.trail-controls .actions>#spiritDisguise,.trail-controls .actions>#lifeStagTransform{width:52px;height:52px;min-height:52px}}

.trail-controls .actions>#spiritDisguise small{white-space:normal;word-break:keep-all;text-align:center;line-height:11px}

.hiker-name.is-architect .hiker-label{color:#000;font-weight:600;text-shadow:0 1px 2px #fff9}

#futureMotorcycle{min-height:44px;padding:9px 14px;border:1px solid #63ba75;border-radius:16px;background:#172b25ed;color:#eff6e8;font-size:12px}
body.on-sand .trail-context-tools>#departmentStoreShop{display:inline-flex!important}
body.on-sand .trail-context-tools>#departmentStoreShop[hidden]{display:none!important}

body.on-sand .trail-context-tools>#popupSeatAction{display:inline-flex!important}body.on-sand .trail-context-tools>#popupSeatAction[hidden]{display:none!important}

#hud>#futureMotorcycle{position:fixed;inset:auto auto calc(34dvh + env(safe-area-inset-bottom,0px)) 16px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;min-width:56px;max-width:56px;height:44px;min-height:44px;padding:0;margin:0;flex:none;white-space:nowrap;z-index:22;pointer-events:auto}#hud>#futureMotorcycle[hidden]{display:none!important}

#backstreetStatus{position:fixed;left:50%;top:43%;transform:translate(-50%,-50%);max-width:82vw;padding:14px 18px;border:1px solid #a58f72;border-radius:14px;background:#241f1ce8;color:#fff1db;font-size:14px;z-index:50;text-align:center;pointer-events:none}#backstreetStatus[hidden]{display:none}

.finance-staff-card{padding:12px;margin:12px 0;border:1px solid #b9a36d66;border-radius:12px}.finance-staff-card table{width:100%;border-collapse:collapse;font-size:12px}.finance-staff-card th,.finance-staff-card td{text-align:left;padding:8px 3px;border-bottom:1px solid #a6bda233;overflow-wrap:anywhere}.finance-body form{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.finance-body form input{min-width:0;flex:1;max-width:100%;min-height:44px;padding:10px;font-size:16px}.finance-body form p{flex-basis:100%;margin:0}.finance-tabs>[hidden]{display:none!important}

body.on-sand .trail-context-tools>#storeCompanyWarp{display:inline-flex!important}body.on-sand .trail-context-tools>#storeCompanyWarp[hidden]{display:none!important}

#privateShowroom{width:min(96vw,740px);max-height:94dvh;overflow:auto;padding:20px;border:1px solid #c7ab72;border-radius:20px;background:#142128;color:#f1e6ce}#privateShowroom::backdrop{background:#061015e8}#privateShowroom h2{font-size:21px}#privateShowroom p{font-size:12px}.showroom-close{float:right;min-height:44px;padding:8px 14px}.showroom-stage{min-height:180px}.showroom-stage canvas{width:100%;height:auto;display:block;border-radius:12px}#privateShowroom nav{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0}#privateShowroom button{border:1px solid #ab935e;border-radius:9px;background:#293c3e;color:#f5e6c7;padding:10px;min-height:44px}#privateShowroom button[aria-pressed=true]{background:#ae9768;color:#122028}.showroom-browse{width:100%}.showroom-feed{font-size:12px;white-space:pre-line;max-height:90px;overflow:auto;margin:12px 0}#privateShowroom form{display:flex;gap:6px}#privateShowroom input{min-width:0;flex:1;font-size:16px;padding:10px;border-radius:8px}.costume-card img[src^="/luxury/"]{height:230px;object-fit:contain;background:#141b20;border-radius:12px}

.luxury-chat{grid-column:1/-1;padding:12px;background:#182c2b;border-radius:12px;color:#f2e9d3}.luxury-chat p{font-size:12px;white-space:pre-line;max-height:90px;overflow:auto}.luxury-chat form{display:flex;gap:6px}.luxury-chat input{min-width:0;flex:1;padding:10px;font-size:16px}.luxury-chat button{min-height:44px}

#hud>#departmentStoreShop{position:fixed;inset:auto auto calc(25dvh + env(safe-area-inset-bottom,0px)) 50%;transform:translateX(-50%);display:inline-flex;align-items:center;justify-content:center;width:164px;min-width:164px;max-width:164px;min-height:48px;padding:10px 14px;margin:0;border:1px solid #e5c98e;border-radius:16px;background:#244b3ef5;color:#fff2d0;font-size:14px;z-index:26;pointer-events:auto;white-space:nowrap}#hud>#departmentStoreShop[hidden]{display:none!important}
#privateShowroom.walkable-salon{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;margin:0;overflow:hidden;background:#142121}#privateShowroom.walkable-salon .showroom-stage{position:absolute;inset:0}#privateShowroom.walkable-salon canvas{width:100%;height:100%;border-radius:0}.walkable-salon .salon-header{position:absolute;inset:0 0 auto;display:flex;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 10px;align-items:center;justify-content:space-between;background:linear-gradient(#0d1b20e8,transparent);pointer-events:none}.walkable-salon .salon-header button{pointer-events:auto}.walkable-salon .salon-header h2{margin:4px 0!important;font-size:17px!important}.walkable-salon .salon-header small{font-size:9px;letter-spacing:2px}.walkable-salon .reservation-status{position:absolute;top:calc(82px + env(safe-area-inset-top,0px));left:12px;right:12px;text-align:center;font-size:12px;background:#122624c9;padding:8px;border-radius:12px}.salon-stick{position:absolute;left:20px;bottom:calc(35px + env(safe-area-inset-bottom,0px));width:116px;height:116px;border-radius:50%;border:1px solid #d8c59388;background:#a1a89326;touch-action:none;display:grid;place-items:center}.salon-stick span{width:48px;height:48px;border-radius:50%;background:#d7dac2b8;border:1px solid #f7eec6}.walkable-salon .salon-seat{position:absolute;bottom:calc(180px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);white-space:nowrap}.salon-selection{position:absolute;bottom:calc(70px + env(safe-area-inset-bottom,0px));left:12px;right:12px;padding:12px;border-radius:15px;background:#162d2be8}.salon-chat-toggle{position:absolute;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px))}.salon-chat{position:absolute;left:12px;right:12px;bottom:calc(240px + env(safe-area-inset-bottom,0px));background:#142a28f2;padding:12px;border-radius:12px}.walkable-salon [hidden]{display:none!important}

.walkable-salon .reservation-status.salon-greeting{color:#fff0ce;border:1px solid #d6ba7f;background:#203c34f0;font-size:14px;line-height:1.7}.walkable-salon .salon-selection{bottom:calc(68px + env(safe-area-inset-bottom,0px));padding:8px}.walkable-salon .salon-selection nav{gap:5px;margin:5px 0}.walkable-salon .salon-selection button{padding:8px;font-size:13px}

.luxury-fitting{grid-column:1/-1;background:#202e32;color:#f1e6d0;padding:12px;border:1px solid #b7a17b;border-radius:15px}.luxury-fitting h3{font-size:15px}.luxury-fitting canvas{display:block;width:min(100%,360px);height:auto;margin:auto;border-radius:12px}.luxury-fitting button,.luxury-preview-button{min-height:44px;padding:9px 12px;border:1px solid #bda371;border-radius:10px;background:#31463f;color:#f1e8d2;margin:6px 6px 0 0}.luxury-fitting p{font-size:12px;line-height:1.7}.luxury-house-mark{padding:22px 8px;background:#202e32;color:#d8bb85;font-family:serif;letter-spacing:2px;text-align:center;border-bottom:1px solid #b99d6b;font-size:16px}

#mealList .costume-card img.luxury-worn-photo{aspect-ratio:320/420;max-height:none;height:auto;background:#202e32;border-radius:12px;object-fit:contain}#mealList .costume-card .luxury-house-mark{padding:10px 4px;font-size:13px;letter-spacing:1px}
