.settlement-walk { position:absolute!important; inset:0; overflow:hidden; background:#173f47; color:#f0e6ce; isolation:isolate; }
.settlement-world { position:absolute; inset:0; }
.settlement-world canvas { display:block; width:100%; height:100%; outline:none; touch-action:none; }
.settlement-world-labels { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.settlement-marker { position:absolute; top:0; left:0; pointer-events:auto; min-height:30px; padding:4px 11px; font-size:12px; background:#142d32db; border-color:#a4b4a77d; border-radius:2px; white-space:nowrap; box-shadow:0 2px 12px #07171a77; }
.settlement-marker.near { border-color:#eed196; color:#ffe4a7; background:#30453dec; }
/* Speech over the heads of the registry clerk and the people in line (lodging-scene.js). */
.settlement-bubble { position:absolute; top:0; left:0; max-width:230px; padding:6px 11px 7px; font-size:13px; line-height:1.55; color:#20302c; background:#f1e7c9f2; border:1px solid #5d6a55; border-radius:10px 10px 10px 2px; box-shadow:0 3px 14px #07171a66; pointer-events:none; white-space:normal; z-index:1; animation:settlement-bubble-in .18s ease-out; }
.settlement-bubble::after { content:""; position:absolute; left:14px; bottom:-7px; border:7px solid transparent; border-top-color:#f1e7c9f2; border-bottom:0; }
@keyframes settlement-bubble-in { from { opacity:0; margin-top:6px; } to { opacity:1; margin-top:0; } }
@media(max-width:680px) { .settlement-bubble { font-size:12px; max-width:170px; padding:4px 8px 5px; } }
@media(prefers-reduced-motion:reduce) { .settlement-bubble { animation:none; } }
/* What people standing near the player say, written along the bottom of the view (lodging-scene.js). */
.settlement-subtitles { position:absolute; left:50%; bottom:150px; transform:translateX(-50%); width:max-content; max-width:min(700px,calc(100% - 40px)); display:flex; flex-direction:column; align-items:center; gap:5px; pointer-events:none; z-index:1; }
.settlement-subtitles[hidden], .settlement-walk:has(.oasis-arrival:not([hidden])) .settlement-subtitles { display:none; }
.settlement-subtitles p { margin:0; padding:5px 14px 6px; font-size:16px; line-height:1.6; text-align:center; color:#fbf3dc; background:#08191fd1; border-radius:3px; text-shadow:0 1px 2px #000; animation:settlement-subtitle-in .2s ease-out; }
.settlement-subtitles p.far { font-size:14px; color:#dcdecd; background:#08191fbd; }
.settlement-subtitles b { font-weight:500; color:#efcf8f; }
.settlement-subtitles b::after { content:"："; }
.settlement-subtitles i { margin-right:8px; padding:0 5px 1px; font-style:normal; font-size:11px; color:#b9d2c8; border:1px solid #6d877f; border-radius:2px; vertical-align:2px; }
@keyframes settlement-subtitle-in { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
@media(max-width:680px) { .settlement-subtitles { bottom:236px; max-width:calc(100% - 24px); } .settlement-subtitles p { font-size:13px; padding:4px 9px 5px; } .settlement-subtitles p.far { font-size:12px; } }
@media(prefers-reduced-motion:reduce) { .settlement-subtitles p { animation:none; } }
.settlement-walk-header { position:absolute; inset:0 0 auto; display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:25px 32px 48px; pointer-events:none; background:linear-gradient(#0d242be8,transparent); }
.settlement-walk-header small { color:#c2d6ce; letter-spacing:.15em; font-size:11px; }
.settlement-walk-header h1 { margin:5px 0 0; font-size:30px; font-weight:500; letter-spacing:.16em; text-shadow:0 2px 12px #102124; }
.settlement-walk-buttons { display:flex; gap:8px; pointer-events:auto; }
.settlement-walk-buttons button { background:#163137de; }
.settlement-directions { position:absolute; left:28px; top:112px; width:240px; max-height:calc(100dvh - 290px); overflow:auto; background:#142c30ed; border:1px solid #748c80; padding:15px; box-shadow:0 15px 35px #07171977; }
.settlement-directions p { font-size:11px; color:#b2c7bd; }
.settlement-directions button { display:flex; flex-direction:column; align-items:flex-start; width:100%; margin-top:7px; background:#26423f; text-align:left; }
.settlement-directions small { color:#b7c6b7; font-size:11px; }
.settlement-walk-footer { position:absolute; bottom:0; left:0; right:0; padding:55px 30px 22px; display:flex; align-items:flex-end; justify-content:space-between; gap:24px; background:linear-gradient(transparent,#0c222be8); pointer-events:none; }
.settlement-walk-prompt { min-width:240px; max-width:52%; }
.settlement-walk-prompt small { display:block; font-size:12px; color:#c9d5c4; margin-bottom:7px; }
.settlement-walk-prompt button { pointer-events:auto; min-width:210px; font-size:15px; }
.settlement-walk-prompt p { min-height:17px; margin:8px 0 0; font-size:12px; color:#d1dccb; }
.settlement-stamina { display:flex; align-items:center; gap:7px; margin:0 0 8px; font-size:11px; color:#c9d5c4; }
.settlement-stamina[hidden] { display:none; }
.settlement-stamina span { flex:none; letter-spacing:1px; }
.settlement-stamina i { flex:1; max-width:180px; height:6px; border-radius:3px; background:#123038; overflow:hidden; box-shadow:inset 0 0 0 1px #2c4a51; }
.settlement-stamina i b { display:block; height:100%; width:100%; border-radius:3px; background:linear-gradient(90deg,#6fae5c,#a8cf6a); transition:width .18s linear; }
.settlement-stamina em { flex:none; min-width:26px; text-align:right; font-style:normal; color:#e2e7d7; }
.settlement-stamina.low i b { background:linear-gradient(90deg,#c99a3c,#e0c25a); }
.settlement-stamina.empty i b { background:linear-gradient(90deg,#b0503f,#d4715a); }
.settlement-stamina.empty em { color:#e0a091; }
.settlement-walk-help { font-size:12px; line-height:1.9; color:#e2e7d7; text-align:right; }
.settlement-walk-help small { font-size:11px; color:#b2c6bd; }
.settlement-loading { position:absolute; top:45%; left:50%; transform:translate(-50%,-50%); padding:28px; width:min(400px,85vw); text-align:center; background:#173438f2; border:1px solid #839e91; }
.settlement-loading b { font-size:22px; letter-spacing:.1em; }
.settlement-loading p { color:#b8ccc0; font-size:13px; }
.settlement-touch { position:absolute; bottom:135px; right:22px; text-align:center; display:none; }
.settlement-touch button { width:44px; height:44px; padding:0; margin:2px; touch-action:none; background:#1c3c42d9; }
.settlement-facts { display:flex; flex-wrap:wrap; gap:12px; margin:18px 0; }
.settlement-facts span { flex:1; min-width:120px; padding:12px; background:#13272a; border:1px solid #415d59; font-size:12px; color:#b4c8bd; }
.settlement-facts b { display:block; font-size:17px; color:#e5d8b9; margin-top:5px; }
.settlement-harbor article { padding:12px 0; border-bottom:1px solid #45605b; }
.settlement-from-street > .settlement-tabs { display:none; }
.settlement-from-street .ui-section-tabs:has(>button:only-child) { display:none; }
.settlement-location { color:#e1c990; border-bottom:1px solid #536c63; padding-bottom:10px; }
@media (pointer:coarse) { .settlement-touch {display:block;} .settlement-walk-help {display:none;} }
@media(max-width:680px) { .settlement-walk-header {padding:16px 14px 36px;} .settlement-walk-header h1 {font-size:23px;} .settlement-walk-header small {font-size:10px;letter-spacing:0;} .settlement-walk-buttons {gap:4px;} .settlement-walk-buttons button {font-size:11px;padding:6px 8px;} .settlement-walk-footer {padding:40px 14px 16px;} .settlement-walk-help {display:none;} .settlement-walk-prompt {max-width:90%;} .settlement-directions {left:14px;top:93px;max-height:calc(100dvh - 265px);} .settlement-marker {font-size:11px;padding:3px 7px;} }

.settlement-camera-controls { position:absolute; top:90px; right:22px; display:flex; flex-direction:column; align-items:flex-end; gap:7px; z-index:2; max-width:240px; pointer-events:none; }
.settlement-camera-controls button { pointer-events:auto; color:#f0e6ce; background:#173339ed; border:1px solid #849b8b; border-radius:4px; padding:7px 12px; cursor:pointer; }
.settlement-camera-controls small { font:11px/1.6 system-ui,sans-serif; color:#e3e9d8; background:#102c32bf; border-radius:3px; padding:3px 7px; text-align:right; }
.settlement-crosshair { position:absolute; left:50%; top:50%; width:5px; height:5px; transform:translate(-50%,-50%); background:#f1e5c4; border-radius:50%; box-shadow:0 0 2px 1px #132a30; pointer-events:none; }
.settlement-crosshair[hidden] { display:none; }
@media(max-width:680px) { .settlement-camera-controls {top:90px;right:14px;max-width:200px;} .settlement-camera-controls button {font-size:12px;} }

.settlement-jump {display:none;position:absolute;bottom:145px;left:22px;z-index:3;width:56px;height:48px;padding:0;border:1px solid #849b8b;border-radius:5px;color:#f0e6ce;background:#1c3c42d9;touch-action:none;}
@media(pointer:coarse){.settlement-jump{display:block;}}

.oasis-area {position:absolute;top:102px;left:32px;padding:6px 12px;border-left:2px solid #c5bb7c;background:#18372fca;color:#e8dec0;font-size:12px;pointer-events:none;}
.oasis-arrival {position:absolute;left:50%;bottom:135px;transform:translateX(-50%);width:min(440px,calc(100% - 32px));padding:22px;background:#17372feb;border:1px solid #8e9e78;box-shadow:0 12px 40px #061c2277;}
.oasis-arrival[hidden] {display:none;}
.oasis-arrival small {color:#c6d39f;letter-spacing:.12em;font-size:11px;}
.oasis-arrival h2 {margin:9px 0;font-size:21px;color:#f0e3be;}
.oasis-arrival p {margin:10px 0 17px;color:#c4d4c1;font-size:13px;line-height:1.8;}
.oasis-arrival div {display:flex;gap:10px;}
.oasis-street .settlement-directions {top:142px;}
@media(max-width:680px){.oasis-area{left:14px;top:91px;max-width:140px;font-size:11px;}.oasis-arrival{bottom:155px;padding:16px;}.oasis-arrival h2{font-size:18px;}.oasis-street .settlement-directions{top:130px;}}

.oasis-tour-note{position:absolute;z-index:25;left:50%;top:50%;transform:translate(-50%,-50%);width:min(440px,calc(100% - 40px));padding:24px;background:#152e2ef5;color:#e9dfc6;border:1px solid #a99465;box-shadow:0 20px 80px #0008;border-radius:5px}.oasis-tour-note h2{font-size:21px;margin:0 0 14px}.oasis-tour-note p{line-height:1.9;font-size:15px}.oasis-tour-note button{padding:10px 22px;background:#bfa16b;color:#162b2b;border:0;border-radius:3px;cursor:pointer}
.oasis-tour-guide{position:absolute;right:22px;top:171px;width:192px;z-index:3;background:#102e2be8;border:1px solid #728c70;color:#e8dec2;border-radius:4px;box-shadow:0 8px 30px #0c242655;font:12px/1.6 system-ui,sans-serif}.oasis-tour-guide summary{padding:9px 12px;cursor:pointer;letter-spacing:.08em}.oasis-tour-guide-content{padding:0 12px 12px}.oasis-tour-guide svg{width:100%;height:155px;background:#152e31;border-radius:3px}.oasis-tour-guide small{display:block;color:#bdcbb5;margin-top:6px}.oasis-tour-guide p{font-size:11px;min-height:33px;margin:8px 0}.oasis-tour-guide button{display:block;width:100%;background:#2d4b40;color:#e9dbb5;border:1px solid #73886d;padding:6px;margin-top:6px;font-size:11px;cursor:pointer;border-radius:3px}.oasis-tour-guide button:hover{background:#4b6050}@media(max-width:750px){.oasis-tour-guide{right:14px;top:166px;width:155px}.oasis-tour-guide svg{height:115px}}
