:root{font-family:"Pretendard","Noto Sans KR",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f8f6ed;background:#1b353d;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}
button:focus-visible,input:focus-visible{outline:3px solid #ffdc87;outline-offset:3px}
.hidden{display:none!important}#worldCanvas{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:0}
body:before{content:"";pointer-events:none;position:fixed;inset:0;background:linear-gradient(180deg,rgba(19,43,55,.16),transparent 28%,transparent 75%,rgba(11,29,35,.45));z-index:1}
.topbar{position:fixed;z-index:4;top:0;left:0;right:0;display:flex;align-items:center;gap:20px;padding:20px clamp(18px,4vw,64px);height:88px;background:linear-gradient(180deg,rgba(18,40,51,.5),transparent)}
.brand{display:flex;align-items:center;gap:11px;flex-shrink:0}.brand-mark{display:grid;place-items:center;width:41px;height:41px;border-radius:13px;background:rgba(234,209,156,.91);color:#274956;font-size:30px;line-height:1}
.brand strong{display:block;letter-spacing:.17em;font-size:16px}.brand small{display:block;font-size:10px;letter-spacing:.06em;color:#d6e8dd;margin-top:3px}
.live{margin:auto;display:flex;align-items:center;justify-content:center;gap:12px;background:rgba(16,38,46,.61);border:1px solid rgba(232,245,227,.19);padding:12px 18px;border-radius:100px;backdrop-filter:blur(14px);white-space:nowrap;font-size:12px;color:#f6f1e6}
.top-actions{display:flex;gap:8px}.top-actions button{background:rgba(21,41,48,.55);border:1px solid rgba(235,235,218,.25);color:#fff;border-radius:13px;min-width:42px;height:42px;padding:0 13px;backdrop-filter:blur(10px)}
.top-actions button:hover,.actionbar button:hover{background:rgba(225,208,164,.25)}.scenery{position:fixed;left:clamp(16px,4vw,64px);top:130px;max-width:340px;z-index:3;pointer-events:none}
.eyebrow{font-size:10px;letter-spacing:.22em;font-weight:800;color:#f0ce93}.scenery h1{font-size:clamp(23px,2.5vw,37px);font-weight:650;letter-spacing:-.04em;margin:13px 0 6px;text-shadow:0 2px 18px #122b34}
.scenery p{font-size:13px;line-height:1.7;margin:0;color:#e6eadf;text-shadow:0 1px 7px #16303b}
.scenery .rule{width:48px;height:2px;background:#efca8d;margin:17px 0}
.scenery .scenery-description{max-width:254px;opacity:.93}.scenery .scenery-foot{font-size:11px;margin-top:20px;color:#e1d3ac}
.cruise-pill{position:fixed;z-index:4;right:clamp(16px,4vw,64px);top:124px;display:flex;align-items:center;gap:14px;background:rgba(21,42,52,.78);border:1px solid rgba(247,233,193,.28);border-radius:20px;padding:12px;min-width:285px;box-shadow:0 12px 35px rgba(9,23,29,.19);backdrop-filter:blur(16px)}
.ship-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#e5bb83;color:#1e3e43;font-size:24px}
.cruise-pill strong,.cruise-pill small{display:block}.cruise-pill strong{font-size:13px}.cruise-pill small{margin-top:5px;font-size:11px;color:#cdd9d1}.cruise-pill button{margin-left:auto;padding:8px 12px;border-radius:10px;border:0;background:#efce97;color:#244248;font-weight:800;font-size:12px}
.notice{position:fixed;z-index:5;left:50%;transform:translateX(-50%);bottom:127px;max-width:min(550px,80vw);padding:9px 17px;text-align:center;color:#f1f8f1;background:rgba(25,48,55,.73);border:1px solid rgba(227,237,219,.2);border-radius:50px;font-size:12px;line-height:1.4;backdrop-filter:blur(10px);pointer-events:none}
.actionbar{position:fixed;z-index:4;bottom:calc(24px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:5px;background:rgba(21,42,49,.8);border:1px solid rgba(244,238,217,.27);border-radius:22px;padding:8px;backdrop-filter:blur(17px);box-shadow:0 16px 28px #11293155}
.actionbar button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-width:76px;min-height:63px;color:white;background:transparent;border:0;border-radius:14px}
.actionbar button span{font-size:25px;line-height:1}.actionbar button small{font-size:11px;color:#eef2eb}
.keyhelp{position:fixed;z-index:3;bottom:22px;left:28px;color:#e5efe4;font-size:10px;text-shadow:0 1px 6px #15313f}
.connection-state{position:fixed;z-index:5;bottom:21px;right:21px;font-size:10px;color:#d0e7d9;background:#1d393ea8;padding:8px 11px;border-radius:8px}
.joystick{display:none}
.drawer{position:fixed;z-index:12;right:15px;top:100px;bottom:20px;width:min(410px,calc(100vw - 30px));overflow-y:auto;background:#213c44ed;border:1px solid #9eb2a577;box-shadow:0 12px 55px #0d1e26bb;border-radius:25px;padding:23px;backdrop-filter:blur(22px)}
.drawer-head{display:flex;justify-content:space-between;align-items:start}.drawer h2{margin:8px 0 9px;font-size:25px;letter-spacing:-.04em}.close{border:0;border-radius:12px;background:#e4e4d91d;color:white;font-size:25px;width:38px;height:38px;line-height:1}
.drawer-intro{color:#cfddda;font-size:12px;line-height:1.75;margin:12px 0 19px}.map-river{display:flex;justify-content:space-between;align-items:center;padding:18px 4px;border-bottom:1px solid #ffffff28;border-top:1px solid #ffffff28;color:#e4cea0;font-size:12px}.map-river span:nth-child(2){color:#8ed3df;letter-spacing:.4em}
.park-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}.park-card{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;text-align:left;background:#34565c;border:1px solid #aec4b833;border-radius:12px;color:#f1f5ec;min-height:48px;min-width:0}.park-card.active{border-color:#e3bc7c;background:#4a5a54}
.park-card strong{display:block;font-size:14px;min-width:0}.park-card small{display:block;font-size:10px;color:#b7d5ca;text-align:right;margin:0;min-width:0}.park-card strong,.park-card small{overflow-wrap:anywhere}
.small-note{font-size:11px;line-height:1.65;color:#bed0c9;margin-top:18px}.group-spots{display:grid;gap:8px}.group-spot{width:100%;text-align:left;padding:12px;border-radius:12px;color:#f4f1e9;background:#3b5a60;border:1px solid #708b8580}
.group-spot.active{background:#55715d;border-color:#e2c182}.group-members{font-size:12px;color:#f4dcaa;margin:17px 0}.messages{min-height:130px;max-height:260px;overflow-y:auto;background:#19343a;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px}
.messages p{margin:0;color:#c4d3cb;font-size:12px}.message{font-size:12px;padding:8px 10px;border-radius:9px;background:#385359;color:#f9f5e8}.message b{display:block;color:#e8cf97;margin-bottom:3px}
.chat-form{display:flex;gap:8px;margin-top:11px}.chat-form input{flex:1;min-width:0;padding:12px;background:#142e35;border:1px solid #70929666;border-radius:10px;color:#f5f2e8}
.chat-form button,.leave{border:0;border-radius:9px;background:#eed29e;color:#24424c;padding:10px 13px;font-weight:700}.leave{margin-top:12px;width:100%;background:#e9b1a2}
/* Small talk is secondary to the river view; never cover the whole world. */
.chat-panel{top:auto;bottom:20px;width:min(360px,calc(100vw - 30px));max-height:min(510px,calc(100dvh - 115px))}
.chat-panel .drawer-intro{margin:8px 0 12px}
.chat-panel .messages{min-height:80px;max-height:130px;gap:6px}
.chat-panel .group-members{margin:10px 0}
.chat-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}
.chat-quick button{min-width:46px;min-height:38px;background:#385b61;color:#fff;border:1px solid #84a5a180;border-radius:12px;font-size:20px}
.chat-quick button:disabled{opacity:.35}
.help-panel p{line-height:1.8;color:#deebe6;font-size:13px}
.help-panel{display:flex;flex-direction:column}
.help-panel .help-provider{align-self:flex-end;margin-top:auto;padding-top:24px;max-width:100%;color:#d5e4dd;font-size:12px;line-height:1.5;text-align:right}
/* Shared, low-distraction visitor board occupies only the unused help drawer space. */
.help-guestbook{display:flex;flex:1 1 auto;flex-direction:column;gap:9px;min-height:285px;margin-top:22px;padding-top:16px;border-top:1px solid rgba(229,222,192,.26)}
.guestbook-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.guestbook-heading h3{margin:0;font-size:17px;letter-spacing:-.03em;color:#f4dfad}
.guestbook-heading button{flex:none;padding:7px 9px;border:1px solid rgba(201,221,206,.32);border-radius:9px;background:#33535a;color:#e8f3e9;font-size:11px}
.guestbook-intro{font-size:11px;line-height:1.5;color:#c9d9d3}
.guestbook-list{flex:1 1 auto;min-height:130px;max-height:380px;overflow:auto;overscroll-behavior:contain;background:#18353c;border:1px solid #72928b44;border-radius:12px;padding:8px}
.guestbook-empty{padding:24px 10px;text-align:center;color:#bcd0c9;font-size:12px;line-height:1.7}
.guestbook-post{padding:9px 8px;border-bottom:1px solid #a1b9ab29}
.guestbook-post:last-child{border-bottom:0}
.guestbook-meta{display:flex;align-items:center;justify-content:space-between;gap:9px}
.guestbook-meta strong{font-size:12px;color:#f3dca5;overflow-wrap:anywhere}
.guestbook-meta time{flex:none;font-size:10px;color:#aec7c1;white-space:nowrap}
.guestbook-text{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:5px;color:#f0f5ec;font-size:12px;line-height:1.55}
.guestbook-form{display:flex;flex-direction:column;gap:7px}
.guestbook-form textarea{display:block;width:100%;min-height:64px;max-height:116px;resize:vertical;padding:10px 11px;background:#152f37;border:1px solid #7b9d9b77;border-radius:10px;color:#f4f4e8;font:inherit;font-size:12px;line-height:1.5}
.guestbook-form textarea:disabled{opacity:.57}
.guestbook-form textarea:focus-visible,.guestbook-heading button:focus-visible{outline:2px solid #f4d69c;outline-offset:2px}
.guestbook-actions{display:flex;align-items:center;justify-content:space-between;gap:9px}
.guestbook-actions span{font-size:11px;line-height:1.4;color:#d4e1d4;min-height:16px}
.guestbook-actions button{flex:none;border:0;border-radius:9px;padding:9px 13px;background:#e9cf9c;color:#203f47;font-size:12px;font-weight:800}
.guestbook-policy{font-size:10px;color:#adc5be}
.guestbook-owner-actions,.guestbook-editor-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:7px}
.guestbook-owner-actions button,.guestbook-editor-actions button{border:1px solid #8baaa082;border-radius:8px;background:#32545b;color:#f5f0df;font-size:11px;padding:6px 10px}
.guestbook-owner-actions .guestbook-remove{background:transparent;border-color:#ddaaa280;color:#f6c5ba}
.guestbook-editor{display:grid;gap:7px;margin-top:8px}
.guestbook-editor textarea{width:100%;min-height:68px;max-height:116px;resize:vertical;border-radius:9px;padding:10px;background:#152f37;border:1px solid #83a49e;color:#f9f8eb;font:inherit;font-size:12px;line-height:1.5}
.guestbook-editor-actions button[type=submit]{background:#ead09d;color:#203f47;border:0;font-weight:750}
.guestbook-owner-actions button:focus-visible,.guestbook-editor-actions button:focus-visible,.guestbook-editor textarea:focus-visible{outline:2px solid #ffdc87;outline-offset:2px}
.guestbook-edited{font-size:10px;opacity:.83}
@media(max-height:500px){.help-guestbook{flex:0 0 auto;min-height:250px}.guestbook-list{max-height:175px}}
.entry-overlay{position:fixed;inset:0;z-index:20;background:rgba(11,29,35,.83);display:grid;place-items:center;overflow-y:auto;padding:28px 12px;backdrop-filter:blur(12px)}
.entry-wrap{width:min(1050px,100%);display:grid;grid-template-columns:1fr 1fr;min-height:600px;background:#f8f5eb;border-radius:27px;overflow:hidden;box-shadow:0 25px 100px #0a1a22bd}
.entry-visual{position:relative;background:linear-gradient(180deg,#b5ced2 0%,#d7d7bd 45%,#5c8c8b 46%,#346873 100%);color:#173742;padding:58px 42px;overflow:hidden;display:flex;flex-direction:column;justify-content:center}
.entry-visual:before{content:"";position:absolute;width:700px;height:330px;bottom:-240px;left:-230px;background:#32584d;border-radius:50%;opacity:.8}
.entry-sun{position:absolute;width:170px;height:170px;border-radius:50%;background:#f4c884;right:4%;top:17%;box-shadow:0 0 80px #f3cc9cb0}
.entry-kicker{z-index:1;font-size:11px;font-weight:800;letter-spacing:.2em;color:#326263}
.entry-visual h2{z-index:1;font-size:clamp(27px,3vw,42px);line-height:1.35;letter-spacing:-.05em;margin:12px 0}
.entry-visual>p:not(.entry-kicker){z-index:1;font-size:14px;line-height:1.8}.entry-illustration{position:absolute;right:20px;bottom:80px;display:flex;flex-direction:column;gap:6px;color:#d3f2d8;align-items:end}
.entry-illustration span{font-size:36px;color:#f2d49a}.entry-illustration i{font-size:40px;font-style:normal}.entry-visual-foot{position:absolute;bottom:26px;left:42px;color:#d3e8dd;font-size:11px}
.entry-form{padding:36px 35px 24px;color:#1e3b43;display:flex;flex-direction:column}
.entry-head{display:flex;align-items:baseline;justify-content:space-between}.entry-head h3{margin:0 0 17px;font-size:25px}.entry-head small{letter-spacing:.2em;color:#7d908c}
.role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:318px;overflow-y:auto;padding-right:3px}
.role-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#ecf0e9;border:2px solid transparent;border-radius:14px;padding:12px 5px;color:#294a48;min-height:90px}
.role-card .emoji{font-size:27px}.role-card .label{font-size:12px;font-weight:600}.role-card.active{border-color:#60958b;background:#dfece0}
.entry-form label{display:flex;align-items:baseline;gap:10px;font-size:13px;font-weight:800;margin-top:22px;margin-bottom:10px}.entry-form label small{font-size:11px;font-weight:400;color:#768a84}
.nickname-row{display:flex;gap:8px;align-items:stretch}
.nickname-row input{flex:1;min-width:0;padding:13px 15px;border-radius:11px;border:1px solid #b6c5bb;background:#fff;color:#213c40}
.nickname-row button{white-space:nowrap;padding:0 13px;border:1px solid #8aaca1;border-radius:11px;background:#e3eee7;color:#28534d;font-size:12px;font-weight:800}
.nickname-row button:hover{background:#d0e7d9}
.nickname-status{font-size:11px;line-height:1.45;min-height:30px;margin:7px 0 0;color:#697f79}
.nickname-status[data-state="available"]{color:#216d4d;font-weight:700}
.nickname-status[data-state="taken"],.nickname-status[data-state="invalid"]{color:#aa4343;font-weight:700}
.nickname-status[data-state="checking"]{color:#47667e}
.enter{margin-top:17px;padding:17px 18px;display:flex;justify-content:space-between;align-items:center;background:#275d62;color:#fff;border:0;border-radius:13px;font-size:15px;font-weight:750}
.enter span{font-size:21px}.enter:hover{background:#397a74}.entry-note{font-size:10px;line-height:1.65;color:#82928b}
@media (max-width:760px){
 .topbar{height:70px;padding:14px;gap:9px}.brand-mark{width:35px;height:35px;font-size:25px}.brand strong{font-size:12px}.brand small{font-size:8px}
 .live{font-size:10px;padding:9px 10px;gap:5px;margin:auto}.live .separator{display:none}
 .top-actions{gap:5px}.top-actions button{min-width:36px;height:36px;padding:0 8px;font-size:12px}
 .scenery{top:83px;left:15px;max-width:195px}.scenery h1{font-size:22px;margin-top:7px}.scenery p{font-size:11px}.scenery .rule{margin:10px 0}.scenery .scenery-description{display:none}.scenery .scenery-foot{margin-top:7px;font-size:9px}
 .cruise-pill{top:79px;right:12px;min-width:0;padding:9px;max-width:178px;gap:6px;border-radius:13px}
 .ship-icon{display:none}.cruise-pill strong{font-size:10px}.cruise-pill small{font-size:9px;line-height:1.3}.cruise-pill button{padding:5px 6px;font-size:10px}
 .keyhelp{display:none}.connection-state{bottom:calc(105px + env(safe-area-inset-bottom));right:10px;font-size:9px}
 .actionbar{left:unset;right:9px;transform:none;bottom:calc(18px + env(safe-area-inset-bottom));border-radius:16px;padding:5px;gap:2px}
 .actionbar button{min-width:59px;min-height:59px}.actionbar button span{font-size:22px}.actionbar button small{font-size:9px}
 .notice{bottom:calc(96px + env(safe-area-inset-bottom));max-width:90vw;font-size:10px;padding:8px 12px}
 .joystick{display:block;position:fixed;bottom:calc(22px + env(safe-area-inset-bottom));left:19px;z-index:6;width:108px;height:108px;border:1px solid #dbead585;border-radius:100px;background:rgba(21,46,53,.31);touch-action:none}
 .joystick-knob{position:absolute;top:29px;left:29px;width:48px;height:48px;border-radius:100px;background:#f3ead4b2;border:1px solid #fff;box-shadow:0 3px 10px #17344060}.joystick small{position:absolute;bottom:0;left:40px;font-size:9px;color:white}
 .drawer{top:76px;bottom:8px;right:7px;width:min(390px,calc(100vw - 14px));padding:18px;border-radius:18px}.entry-overlay{padding:0;align-items:start}
 .chat-panel{top:auto;bottom:calc(8px + env(safe-area-inset-bottom));max-height:min(470px,58dvh);width:min(390px,calc(100vw - 14px))}
 .chat-panel .drawer-intro{font-size:11px;margin:6px 0 8px}
 .entry-wrap{grid-template-columns:1fr;border-radius:0;min-height:100dvh}.entry-visual{min-height:185px;padding:23px 20px;justify-content:center}.entry-visual h2{font-size:25px;margin:2px 0}.entry-visual>p:not(.entry-kicker){font-size:11px}.entry-illustration,.entry-visual-foot{display:none}.entry-sun{width:130px;height:130px;top:8%;right:-25px}
 .entry-form{padding:20px}.entry-head h3{font-size:21px;margin-bottom:12px}.role-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none;gap:6px}.role-card{min-height:72px;padding:8px 4px;border-radius:11px}.role-card .emoji{font-size:22px}.role-card .label{font-size:10px}
 .entry-form label{margin-top:13px;margin-bottom:6px}.nickname-row input{padding:10px 12px}.nickname-row button{padding:0 9px;font-size:11px}.nickname-status{min-height:28px;font-size:10px}.enter{padding:13px}.entry-note{margin:7px 0 0}
}
@media (max-width:380px){.actionbar button{min-width:52px}.live{font-size:9px}.brand small{display:none}.role-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Localized UI and preview-only river region — isolated from 3D renderer. */
.language-pill{height:42px;display:flex;align-items:center;gap:6px;padding:0 8px;background:rgba(21,41,48,.62);border:1px solid rgba(235,235,218,.25);border-radius:13px;color:#f5f2e8;font-size:11px}
.language-pill select{background:transparent;border:0;max-width:105px;color:inherit;font-size:12px;cursor:pointer}
.language-pill select option{background:#24434a;color:#fff}
.region-select-label{display:block;margin:12px 0 8px;color:#e9dfbf;font-size:12px}
.region-select{width:100%;padding:12px;background:#173b44;color:#f5f2e9;border:1px solid #9aaca088;border-radius:11px}
.region-select option{color:#f5f2e9;background:#24454b}
.region-preview{margin-top:16px;border-radius:14px;background:#16353a;padding:12px;border:1px solid #e8e2d022}
.region-photo{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:9px}
.region-photo[hidden]{display:none}
.region-preview h3{font-size:18px;margin:13px 0 5px}
.region-status{font-size:12px;color:#ead3a6;margin:7px 0}
.region-credits{font-size:10px;line-height:1.6;color:#d9d7be}
.region-credits a{color:#d6e5d1;text-decoration:underline;text-underline-offset:2px}
.region-world-banner{margin:20px 0 12px;background:#3b5e58;padding:13px;border-radius:11px;font-size:12px;line-height:1.5}
.leave-button{display:block;width:100%;border:0;border-radius:10px;background:#edc993;color:#244145;font-weight:700;padding:13px}
@media(max-width:760px){
 .language-pill{height:36px;padding:0 4px;gap:0;border-radius:9px}
 .language-pill span{display:none}
 .language-pill select{max-width:66px;font-size:10px}
 .top-actions{gap:4px}
 .topbar{gap:5px}
 .brand{gap:4px}
 .brand strong{font-size:10px;letter-spacing:.02em}
 .brand-mark{width:28px;height:31px}
 .live{font-size:9px;padding:8px 7px;gap:4px}
 .top-actions button{min-width:31px;padding:0 6px;font-size:10px}
}
@media(max-width:410px){
 .brand small{display:none}
 .topbar{padding:11px 8px}
 .top-actions #helpOpen{display:none}
 .live{padding:7px 6px}
}

/* Character-and-environment controls remain outside gameplay/network modules. */
.time-selector{display:flex;align-items:center;gap:7px;margin-top:9px;
 width:max-content;max-width:100%;pointer-events:auto;
 padding:7px 10px;border:1px solid rgba(255,240,205,.25);
 border-radius:11px;background:rgba(24,55,62,.66);
 backdrop-filter:blur(8px);font-size:11px;color:#fff0d7}
.time-selector select{max-width:130px;background:transparent;color:#fff0d7;
 border:0;font-size:11px;cursor:pointer}
.time-selector select option{background:#24434a;color:#fff}
.bridge-guide-btn{display:block;width:100%;margin-top:17px;
 padding:14px;background:#c9dfd2;border:1px solid #bedac6;
 border-radius:13px;color:#203e3d;font-weight:750;font-size:14px}
.bridge-guide-btn:hover{background:#e5f2e5}
@media(max-width:760px){
 .time-selector{margin-top:8px;padding:5px 8px;font-size:9px}
 .time-selector select{max-width:95px;font-size:9px}
}
/* Source and license links remain in the Region drawer (#regionCredits). */
.landscape-credit{display:none!important}

/* v10: compact fifth action and consent-based nearby greeting. */
.greet-panel{top:auto;bottom:20px;width:min(360px,calc(100vw - 30px));max-height:min(435px,calc(100dvh - 110px))}
.greet-nearby{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:210px;overflow:auto}
.greet-peer,.greet-request button{border:1px solid #9abab47a;background:#345b5d;color:#fff;border-radius:11px;padding:11px 6px;font-size:12px}
.greet-request{display:flex;gap:9px;align-items:center;flex-wrap:wrap;color:#fff1c7;font-size:12px;margin:9px 0}
.greet-request:empty{display:none}
@media(max-width:760px){.actionbar button{min-width:46px;min-height:56px}.actionbar button small{font-size:9px}.greet-panel{bottom:calc(8px + env(safe-area-inset-bottom));max-height:58dvh}}
@media(max-width:380px){.actionbar button{min-width:42px}.joystick{bottom:calc(106px + env(safe-area-inset-bottom))}}

/* Motion control is optional and independent of WASD/touch navigation. */
.avatar-mode-control{display:flex;flex-direction:column;gap:5px;margin-top:10px;font-size:12px;font-weight:700;color:#f6e9d2}
.avatar-mode-control select{width:100%;max-width:230px;border:1px solid rgba(183,214,208,.65);border-radius:8px;background:rgba(21,51,58,.94);color:#fff7e9;padding:7px 9px;font:inherit;font-weight:500;font-size:12px}
.avatar-mode-control select:disabled{opacity:.48}
.avatar-mode-control select:focus-visible{outline:2px solid #ffd99a;outline-offset:2px}
.avatar-mode-hint{display:block;margin-top:4px;max-width:270px;color:#d2d8ce;font-size:10px;line-height:1.4}
@media(max-width:760px){
 .avatar-mode-control{margin-top:7px}
 .avatar-mode-control select{max-width:188px;font-size:11px;padding:6px}
 .avatar-mode-hint{font-size:10px;max-width:200px}
}

/* The scenic panel ignores canvas clicks except explicitly interactive controls. */
.avatar-mode-control { pointer-events:auto; }
.avatar-mode-control select { pointer-events:auto; touch-action:manipulation; }

/* Final K-HanGang character picker: two shared 53-bone cute avatars only. */
.role-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;gap:12px}
/* Short landscape entry forms scroll instead of squeezing the character choices. */
.entry-form .role-grid{flex-shrink:0;overflow:visible}
.role-card{min-height:118px;padding:18px 12px;border-radius:17px}
.role-card .mascot-thumb{display:block;width:84px;height:84px;max-width:100%;object-fit:contain;flex:none;pointer-events:none}
.role-card .label{font-size:16px;font-weight:750}
.role-card:focus-visible{outline:3px solid #79ab9c;outline-offset:3px}
@media(max-width:760px){
 .role-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .role-card{min-height:98px;padding:12px 8px}
 .role-card .emoji{font-size:32px}
 .role-card .label{font-size:14px}
}

/* Approved two-avatar V20 look: on <=2 GB mobile only disable expensive
   backdrop compositing; preserve panel colors, placement and interaction. */
html.khangang-lowmem *,
html.khangang-lowmem *::before,
html.khangang-lowmem *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* v25 rooms, Android fullscreen, and landscape compact controls */
.group-venue{padding:10px;border:1px solid #708b8570;border-radius:13px;background:#294b51}
.group-venue-title{display:block;margin:0 0 8px;font-size:12px;color:#f5ddb0}
.group-venue-row{display:flex;gap:8px;min-width:0;align-items:stretch}
.group-room-select{min-width:0;flex:1;background:#16383e;color:#f4f2e7;border:1px solid #73949a;border-radius:10px;padding:8px;font-size:12px}
.group-room-select option{background:#203e46;color:#f6f4ed}
.group-venue-row .group-spot{width:65px;flex-shrink:0;text-align:center;font-size:12px}
.group-venue-row button:disabled{opacity:.45}
#fullscreenAction{display:inline-flex;align-items:center;justify-content:center}
.landscape-prompt[hidden]{display:none!important}
.landscape-prompt{position:fixed;inset:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:26px;background:#16343df5;color:#f8f4e7;text-align:center}
.landscape-prompt strong{font-size:19px}
.landscape-prompt p{max-width:410px;font-size:13px;line-height:1.6}
.landscape-prompt button{border:0;border-radius:12px;padding:12px 24px;background:#efd29b;color:#243e43;font-weight:800}
.landscape-prompt .landscape-skip{background:transparent;color:#d6e2d9;border:1px solid #b1c7bb88}
@media(hover:none),(pointer:coarse){#fullscreenAction{display:inline-flex;align-items:center;justify-content:center}}
@media(hover:none) and (orientation:landscape) and (max-height:620px){
 .topbar{height:50px;padding:6px 10px;gap:7px}
 .brand small{display:none}.brand strong{font-size:12px}
 .brand-mark{width:32px;height:32px;font-size:23px}
 .top-actions button{min-width:34px;height:33px;padding:0 8px}
 .scenery{display:none}
 .cruise-pill{top:56px;right:9px;min-width:0;max-width:240px;padding:7px}
 .actionbar{left:auto;right:8px;bottom:calc(6px + env(safe-area-inset-bottom));transform:none;padding:5px;gap:2px}
 .actionbar button{min-width:49px;min-height:47px;gap:2px}
 .actionbar button span{font-size:19px}.actionbar button small{font-size:9px}
 .joystick{left:16px;bottom:calc(10px + env(safe-area-inset-bottom))}
 .entry-wrap{min-height:0;max-height:100dvh}
 .entry-visual{display:none}
 .entry-form{padding:12px 18px;overflow-y:auto;max-height:90dvh}
 .chat-panel{bottom:5px;max-height:calc(100dvh - 66px)}
}


/* v25h1: touch controls remain visible when rotation makes the viewport wider than 760px.
   Pointer processing stays in input/controls.js; avoid transform on the knob's parent. */
.joystick #knob {
 position:absolute;
 top:calc(50% - 24px);left:calc(50% - 24px);
 width:48px;height:48px;
 border-radius:50%;
 background:rgba(243,234,212,.87);
 border:1px solid rgba(255,255,255,.95);
 box-shadow:0 3px 10px rgba(23,52,64,.38);
 pointer-events:none;
}
@media (pointer:coarse) and (max-width:1280px), (hover:none) and (max-width:1280px) {
 .joystick {
  display:block;
  position:fixed;
  z-index:7;
  left:calc(16px + env(safe-area-inset-left));
  bottom:calc(16px + env(safe-area-inset-bottom));
  width:108px;height:108px;
  border:1px solid rgba(219,234,213,.75);
  border-radius:50%;
  background:rgba(21,46,53,.52);
  touch-action:none;
  -webkit-user-select:none;
  user-select:none;
 }
 .joystick small{position:absolute;bottom:2px;left:50%;transform:translateX(-50%);font-size:9px;color:#fff;pointer-events:none}
 .keyhelp{display:none}
 .connection-state{pointer-events:none}
}
@media (pointer:coarse) and (orientation:landscape) and (max-height:620px),
       (hover:none) and (orientation:landscape) and (max-height:620px) {
 .joystick{display:block;left:calc(14px + env(safe-area-inset-left));bottom:calc(10px + env(safe-area-inset-bottom));width:96px;height:96px}
 .joystick #knob{width:44px;height:44px;left:calc(50% - 22px);top:calc(50% - 22px)}
 .joystick small{bottom:1px}
 .connection-state{bottom:calc(75px + env(safe-area-inset-bottom));right:calc(12px + env(safe-area-inset-right));font-size:9px}
}
@media (orientation:landscape) and (max-height:620px) and (max-width:1280px) {
 .actionbar{left:auto;right:calc(8px + env(safe-area-inset-right));transform:none;bottom:calc(6px + env(safe-area-inset-bottom));padding:5px;gap:2px;border-radius:13px}
 .actionbar button{min-width:49px;min-height:47px;gap:2px}
 .actionbar button span{font-size:19px}
 .actionbar button small{font-size:9px}
}


/* V31 world HUD: one minimap for location, then boat and optional controls. */
.right-hud{position:fixed;z-index:6;right:clamp(12px,2vw,34px);top:25px;
 width:252px;display:flex;flex-direction:column;gap:7px;pointer-events:auto}
.mini-map-card{background:rgba(15,42,51,.88);border:1px solid rgba(237,230,202,.48);
 border-radius:14px;padding:8px;box-shadow:0 8px 22px #122c3845}
.mini-map-head{display:flex;justify-content:space-between;align-items:center;gap:4px;
 margin-bottom:5px;color:#f5eccf;font-weight:750;font-size:11px}
#miniMapPlace{color:#c4dfd5;font-weight:550;font-size:10px;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#miniMap{display:block;width:100%;padding:0;border:0;border-radius:10px;background:#274b4d;overflow:hidden;cursor:pointer}
#miniMap svg{display:block;width:100%;height:102px}
#miniMap:focus-visible{outline:2px solid #ffe4a4;outline-offset:2px}
.right-hud .cruise-pill{position:relative;inset:auto;right:auto;top:auto;width:100%;min-width:0;max-width:none;
 padding:9px;gap:8px;border-radius:13px;display:flex;box-shadow:0 9px 20px #122b3444}
.right-hud .ship-icon{width:30px;height:30px;flex-shrink:0;font-size:17px;border-radius:10px}
.right-hud .cruise-pill>div:nth-child(2){flex:1;min-width:0}
.right-hud .cruise-pill strong{font-size:11px}
.right-hud .cruise-pill small{font-size:10px;line-height:1.3;overflow-wrap:anywhere;margin-top:3px}
.right-hud .cruise-pill button{flex-shrink:0;font-size:10px;padding:7px 8px}
.world-options{color:#f6efdb;border-radius:12px;border:1px solid #bbd2bc63;
 background:#1a3b46e3;font-size:11px;box-shadow:0 6px 18px #112b3340}
.world-options>summary{cursor:pointer;list-style:none;padding:8px 11px;font-size:11px;font-weight:750}
.world-options>summary::-webkit-details-marker{display:none}
.world-options>summary:after{content:"▾";float:right}
.world-options[open]>summary:after{content:"▴"}
.world-options-content{padding:0 10px 11px;display:grid;gap:9px;max-height:36dvh;overflow:auto}
/* Keep time heading and selector in one row on both rivers. */
.world-options .avatar-mode-control{display:flex;flex-direction:column;gap:4px;margin:0;pointer-events:auto}
.world-options .time-selector{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;margin:0;min-width:0;width:100%;pointer-events:auto}
.world-options .time-selector span{flex:0 0 auto;white-space:nowrap}
.world-options .time-selector select{flex:1 1 auto;min-width:0;width:auto;max-width:none;white-space:nowrap;text-overflow:ellipsis}
.world-options .time-selector span,.world-options .avatar-mode-control span{color:#e2d5b8;font-size:10px}
.world-options select{width:100%;max-width:none;padding:6px 7px;background:#153942;color:#fff;
 border:1px solid #80a3a399;border-radius:8px;font-size:11px}
.world-options .avatar-mode-hint{display:block;margin:0;line-height:1.4;font-size:9px;color:#ccd8cc;max-width:none}
.message-center{display:contents}

/* Preserve the same desktop-look navigation on landscape touchscreen browsers.
   The host OS may still identify the page as a mobile browser (UA cannot be forced). */
@media (pointer:coarse) and (orientation:landscape) and (max-height:700px),
       (hover:none) and (orientation:landscape) and (max-height:700px){
 .topbar{height:52px;padding:5px 9px;gap:8px}
 .brand{gap:6px}.brand-mark{width:29px;height:29px;border-radius:9px;font-size:21px}
 .brand strong{font-size:12px;letter-spacing:.08em}.brand small{display:none}
 .live{margin:auto;font-size:10px;padding:6px 9px;min-width:0;max-width:180px;overflow:hidden;text-overflow:ellipsis}
 .top-actions{gap:5px;flex-shrink:0}.top-actions button{min-width:30px;height:30px;padding:0 7px;font-size:11px}
 .language-pill{height:30px;padding:0 5px;font-size:10px}
 .language-pill select{max-width:64px;font-size:10px}
 .scenery{display:block;top:66px;left:calc(8px + env(safe-area-inset-left));width:min(170px,22vw);
  max-width:none;pointer-events:none}
 .scenery .eyebrow{font-size:8px;letter-spacing:.1em}
 .scenery h1{font-size:clamp(14px,2vw,18px);margin:7px 0 4px}
 .scenery p{font-size:10px;line-height:1.3}
 .scenery .scenery-description{display:none}.scenery .rule{margin:8px 0}
 .right-hud{top:56px;right:calc(6px + env(safe-area-inset-right));width:clamp(190px,27vw,226px);gap:5px}
 .mini-map-card{padding:5px;border-radius:10px}.mini-map-head{margin-bottom:3px;font-size:10px}
 #miniMap svg{height:79px}
 .right-hud .cruise-pill{top:auto;right:auto;max-width:none;min-width:0;padding:6px;border-radius:10px}
 .right-hud .ship-icon{width:27px;height:27px;font-size:14px}
 .right-hud .cruise-pill small{font-size:9px}
 .right-hud .cruise-pill button{padding:5px 6px;font-size:10px;word-break:keep-all}
 .world-options>summary{padding:6px 9px;font-size:10px}
 .world-options-content{max-height:24dvh}
 .joystick{display:block;left:calc(4px + env(safe-area-inset-left));bottom:calc(5px + env(safe-area-inset-bottom));
  width:96px;height:96px;z-index:8}
 .actionbar{left:auto;right:calc(4px + env(safe-area-inset-right));bottom:calc(4px + env(safe-area-inset-bottom));
  transform:none;padding:4px;gap:2px;border-radius:12px;z-index:7}
 .actionbar button{min-width:48px;min-height:48px;gap:2px}
 .actionbar button span{font-size:19px}.actionbar button small{font-size:9px}
 .message-center{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;
  position:fixed;left:calc(105px + env(safe-area-inset-left));right:calc(225px + env(safe-area-inset-right));
  bottom:calc(5px + env(safe-area-inset-bottom));z-index:8;pointer-events:none;min-height:0}
 .message-center .notice,.message-center .connection-state{position:static;inset:auto;transform:none;
  margin:0;max-width:100%;width:auto;min-width:0;line-height:1.2;font-size:10px;text-align:center;white-space:normal;
  padding:5px 8px;overflow-wrap:anywhere;border-radius:10px;box-shadow:none}
 .message-center .connection-state{font-size:9px;padding:4px 7px}
 .keyhelp{display:none}
 .drawer{top:59px;bottom:4px}
 .chat-panel{max-height:calc(100dvh - 62px)}
}
/* Extra-narrow portrait or small landscape: messages stay above the controls
   rather than pushing the joystick out of the screen. */
@media (max-width:600px) and (orientation:portrait){
 .message-center{display:flex;position:fixed;left:8px;right:8px;bottom:135px;
  align-items:center;flex-direction:column;gap:3px;z-index:8;pointer-events:none}
 .message-center .notice,.message-center .connection-state{position:static;transform:none;
  margin:0;max-width:95%;font-size:10px;padding:4px 8px;text-align:center}
 .right-hud{right:8px;top:77px;width:min(198px,48vw)}
 #miniMap svg{height:82px}
 .right-hud .cruise-pill{top:auto;right:auto;max-width:none;min-width:0}
 .world-options-content{max-height:25dvh}
 .joystick{left:4px;bottom:6px}
 .actionbar{right:4px;bottom:6px}
}


/* PC-only HUD placement. Mobile coarse-pointer layout remains unchanged. */
@media (hover:hover) and (pointer:fine) and (min-width:761px) {
 .actionbar {
  left:auto;right:calc(22px + env(safe-area-inset-right));
  bottom:calc(22px + env(safe-area-inset-bottom));
  transform:none;
 }
 .message-center {
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;
  position:fixed;z-index:6;left:50%;right:auto;
  bottom:calc(20px + env(safe-area-inset-bottom));
  transform:translateX(-50%);width:max-content;max-width:min(550px,calc(100vw - 420px));
  pointer-events:none;
 }
 .message-center .notice,.message-center .connection-state {
  position:static;inset:auto;transform:none;margin:0;box-sizing:border-box;
  max-width:100%;width:fit-content;white-space:normal;overflow-wrap:anywhere;
  text-align:center;line-height:1.35;
 }
 .message-center .connection-state {font-size:10px;border-radius:10px}
}
/* On narrow desktop windows place messages just above the bottom controls to avoid overlap. */
@media (hover:hover) and (pointer:fine) and (min-width:761px) and (max-width:1130px) {
 .message-center {bottom:calc(116px + env(safe-area-inset-bottom));max-width:calc(100vw - 40px)}
}


/* Entry-only mobile responsive capsule: never resize or rotate the 3D canvas. */
@media (pointer:coarse) and (orientation:portrait),
       (hover:none) and (orientation:portrait),
       (max-width:600px) and (orientation:portrait) {
 #entry.entry-overlay {
  display:flex;align-items:center;justify-content:center;
  width:100%;max-width:100%;padding:12px max(10px,env(safe-area-inset-right)) 12px max(10px,env(safe-area-inset-left));
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
 }
 #entry .entry-wrap {
  display:grid;grid-template-columns:minmax(0,1fr);width:min(100%,470px);max-width:100%;
  min-width:0;min-height:0;max-height:calc(100dvh - 24px);
  overflow-x:hidden;overflow-y:auto;border-radius:20px;
  margin:auto;align-self:center;
 }
 #entry .entry-visual{display:flex;min-height:88px;padding:13px 17px;flex-shrink:0}
 #entry .entry-visual h2{font-size:clamp(17px,4.4vw,23px);line-height:1.3;margin:4px 0}
 #entry .entry-kicker{font-size:9px}
 #entry .entry-visual>p:not(.entry-kicker),#entry .entry-illustration,#entry .entry-visual-foot{display:none}
 #entry .entry-form{width:100%;min-width:0;max-width:100%;max-height:none;overflow:visible;padding:16px 15px 17px}
 #entry .entry-head{gap:8px;min-width:0;align-items:center}
 #entry .entry-head h3{font-size:clamp(18px,5vw,24px);margin:0 0 12px;min-width:0}
 #entry .entry-head small{font-size:10px;letter-spacing:.08em;white-space:nowrap}
 #entry .role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;padding:0;overflow:visible}
 #entry .role-card{min-width:0;min-height:105px;padding:9px 6px;gap:3px;border-radius:13px}
 #entry .role-card .mascot-thumb{width:70px;height:70px;max-width:95%;object-fit:contain}
 #entry .role-card .label{font-size:14px}
 #entry .entry-form label{margin:13px 0 6px;min-width:0;flex-wrap:wrap}
 #entry .nickname-row{width:100%;min-width:0;max-width:100%;gap:7px}
 #entry .nickname-row input{flex:1 1 0;min-width:0;width:0;max-width:100%;padding:11px 10px;font-size:15px}
 #entry .nickname-row button{flex:0 0 auto;min-width:76px;padding:0 10px;font-size:11px}
 #entry .nickname-status{min-height:25px;font-size:10px}
 #entry .enter{width:100%;min-height:48px;max-width:100%;margin-top:10px;padding:11px 14px;font-size:14px}
 #entry .entry-note{font-size:10px;margin:6px 0 0}
}
@media (pointer:coarse) and (orientation:landscape),
       (hover:none) and (orientation:landscape) {
 #entry.entry-overlay{display:flex;align-items:center;justify-content:center;padding:8px 12px;overflow:hidden}
 #entry .entry-wrap{
  display:grid;grid-template-columns:minmax(0,1fr);
  width:min(100%,560px);min-width:0;max-width:calc(100vw - 24px);
  min-height:0;max-height:calc(100dvh - 16px);
  margin:auto;overflow-x:hidden;overflow-y:auto;border-radius:18px;
 }
 #entry .entry-visual{display:none}
 #entry .entry-form{width:100%;min-width:0;max-width:100%;max-height:none;overflow:visible;padding:12px 17px 14px}
 #entry .entry-head{gap:8px;align-items:center}
 #entry .entry-head h3{font-size:20px;margin:0 0 8px}
 #entry .entry-head small{font-size:11px;letter-spacing:.1em}
 #entry .role-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-width:0;overflow:visible}
 #entry .role-card{min-height:79px;padding:5px 6px;gap:3px}
 #entry .role-card .mascot-thumb{width:54px;height:54px;max-width:100%}
 #entry .role-card .label{font-size:12px}
 #entry .entry-form label{margin:8px 0 5px;gap:7px}
 #entry .nickname-row{min-width:0;max-width:100%;gap:7px}
 #entry .nickname-row input{flex:1 1 0;width:0;min-width:0;padding:8px 10px;font-size:14px}
 #entry .nickname-row button{flex:0 0 auto;min-width:75px;padding:0 9px;font-size:11px}
 #entry .nickname-status{min-height:18px;font-size:10px;margin-top:4px}
 #entry .enter{width:100%;min-height:37px;margin-top:7px;padding:8px 12px;font-size:13px}
 #entry .entry-note{margin:3px 0 0;font-size:9px}
}
@media (pointer:coarse) and (orientation:landscape) and (max-height:410px),
       (hover:none) and (orientation:landscape) and (max-height:410px){
 #entry .entry-wrap{width:min(100%,520px)}
 #entry .entry-form{padding:8px 13px}
 #entry .entry-head h3{font-size:18px;margin-bottom:5px}
 #entry .role-card{min-height:67px;padding:3px 5px}
 #entry .role-card .mascot-thumb{width:44px;height:44px}
 #entry .entry-form label{margin:5px 0 3px}
 #entry .nickname-row input{padding:6px 9px}
 #entry .nickname-status{min-height:16px}
 #entry .enter{margin-top:5px;min-height:34px;padding:5px 11px}
}

/* Operator-controlled current human-visitor badge */
.visitor-count-badge{position:fixed;left:50%;top:max(9px,env(safe-area-inset-top));
 transform:translateX(-50%);z-index:140;background:rgba(18,38,48,.86);
 color:#fffdf5;border:1px solid rgba(232,245,227,.5);border-radius:100px;
 padding:9px 16px;white-space:nowrap;font:600 13px/1.3 system-ui,sans-serif;
 box-shadow:0 8px 28px rgba(0,0,0,.26);pointer-events:none}
.visitor-admin-overlay{position:fixed;inset:0;z-index:600;display:flex;
 align-items:center;justify-content:center;padding:18px;background:rgba(5,14,21,.56)}
.visitor-admin-dialog{box-sizing:border-box;width:min(420px,100%);max-height:88dvh;
 overflow:auto;border-radius:20px;border:1px solid rgba(212,231,231,.52);
 background:#f8fafb;color:#1c3038;padding:25px;
 box-shadow:0 18px 60px rgba(0,0,0,.38);font:15px/1.55 system-ui,sans-serif}
.visitor-admin-dialog h2{margin:0 0 22px;font-size:21px;color:#163c48}
.visitor-admin-dialog form{display:flex;flex-direction:column;gap:12px}
.visitor-admin-dialog input[type=password]{box-sizing:border-box;width:100%;
 padding:12px;border-radius:10px;border:1px solid #8196a0;font-size:16px;
 background:#fff;color:#132831}
.visitor-admin-setting{display:flex;align-items:center;justify-content:space-between;
 gap:15px;padding:16px 0;border-top:1px solid #d4dfe3;border-bottom:1px solid #d4dfe3}
.visitor-admin-setting span{font-weight:650}
.visitor-admin-setting small{display:block;font-size:12px;font-weight:400;color:#617680}
.visitor-admin-setting input[type=checkbox]{appearance:none;flex:none;
 width:54px;height:30px;border-radius:50px;border:1px solid #8d9da5;background:#aeb9be;
 cursor:pointer;position:relative;transition:background .15s}
.visitor-admin-setting input[type=checkbox]::before{content:"";position:absolute;
 width:24px;height:24px;border-radius:50%;background:white;top:2px;left:3px;
 box-shadow:0 2px 5px #47556950;transition:transform .15s}
.visitor-admin-setting input[type=checkbox]:checked{background:#197b6a}
.visitor-admin-setting input[type=checkbox]:checked::before{transform:translateX(23px)}
.visitor-admin-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.visitor-admin-actions button{border-radius:9px;border:1px solid #b7c9d1;
 padding:10px 20px;background:#ecf3f5;color:#21404d;font-weight:650;cursor:pointer}
.visitor-admin-actions button:last-child{background:#225b67;color:white;border-color:#225b67}
.visitor-admin-actions button:disabled{opacity:.45;cursor:wait}
.visitor-admin-error{color:#a02929;font-size:13px;min-height:1.2em;margin:0}
.visitor-admin-info{color:#385861;font-size:13px;min-height:1.4em;margin:14px 0 0}
.visitor-count-badge[hidden],.visitor-admin-overlay[hidden],
.visitor-admin-dialog [hidden]{display:none!important}
@media(max-width:760px){.visitor-count-badge{top:max(4px,env(safe-area-inset-top));
 padding:6px 10px;font-size:11px;max-width:50vw;overflow:hidden;text-overflow:ellipsis}
 .visitor-admin-dialog{padding:18px;border-radius:15px}}

/* Map drawer sizes to its own content; other drawers retain full height. */
#mapPanel{bottom:auto;max-height:calc(100dvh - 112px);overflow-y:auto}
@media (max-width:700px){#mapPanel{max-height:calc(100dvh - 68px)}}

#visitorAdminRename{margin-top:14px;padding-top:14px;border-top:1px solid #d4dfe3;gap:7px}
#visitorAdminRename label{font-weight:650}
#visitorAdminNickname{box-sizing:border-box;width:100%;padding:10px;border-radius:9px;border:1px solid #8196a0;font-size:15px;color:#132831;background:#fff}
#visitorAdminRenameSubmit{align-self:flex-end;border:0;border-radius:9px;background:#225b67;color:white;padding:9px 16px;font-weight:650;cursor:pointer}
#visitorAdminRenameSubmit:disabled{opacity:.45}

/* Client-only companion puppy toggle. */
#dogAction[aria-pressed=true]{background:rgba(93,171,140,.32);outline:1px solid #7cc9a3}
#dogAction:disabled{opacity:.46;cursor:not-allowed}
@media(max-width:480px){.actionbar{gap:3px;padding:5px}.actionbar button{min-width:42px}}

/* Support link shares existing actionbar, immediately LEFT of dog. */
.actionbar .support-action{display:none;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-width:76px;min-height:63px;color:#fff4d8;background:transparent;border:0;border-radius:14px;text-decoration:none}
body:has(#entry.hidden) .actionbar .support-action{display:flex}
.actionbar .support-action span{font-size:25px;line-height:1}
.actionbar .support-action small{font-size:11px;color:#eef2eb}
.actionbar .support-action:hover,.actionbar .support-action:focus-visible{background:rgba(225,208,164,.25);outline-offset:3px}
@media(max-width:760px){.actionbar .support-action{min-width:46px;min-height:56px}.actionbar .support-action span{font-size:22px}.actionbar .support-action small{font-size:9px}}
@media(max-width:480px){.actionbar .support-action{min-width:42px}}

/* Manual logout is adjacent to Help, including narrow mobile screens. */
#logoutAction{display:inline-grid;place-items:center;padding:0 9px}
#logoutAction[hidden]{display:none!important}
#logoutAction svg{display:block;width:21px;height:21px;pointer-events:none}
@media(max-width:410px){
 .top-actions #helpOpen{display:inline-grid;place-items:center;min-width:29px;padding:0 4px}
 .top-actions #logoutAction{min-width:29px;padding:0 4px}
 .top-actions{gap:2px}
 .language-pill select{max-width:52px}
 .topbar{gap:3px}
}
/* v56: choose the existing shared locale before entering the river. */
#entry .entry-head{align-items:center;gap:10px;min-width:0}
#entry .entry-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto;margin-left:auto}
#entry .entry-head .entry-language{display:inline-flex;align-items:center;gap:5px;margin:0;padding:5px 8px;max-width:210px;border:1px solid #a6c7ba;background:#e8f2e9;border-radius:10px;color:#28564d;cursor:pointer}
#entry .entry-language span{font-size:15px;flex:none;line-height:1}
#entry .entry-language select{border:0;outline:0;background:transparent;color:#25473e;font:700 12px system-ui,sans-serif;max-width:140px;min-width:78px;cursor:pointer;padding:3px 0}
#entry .entry-language:focus-within{outline:2px solid #509489;outline-offset:2px}
#entry .entry-head-actions>small{font-size:10px;letter-spacing:.1em;white-space:nowrap;color:#7d908c}
@media(max-width:760px){
 #entry .entry-head{flex-wrap:wrap;row-gap:5px}
 #entry .entry-head-actions{gap:7px}
 #entry .entry-head .entry-language{padding:3px 5px}
 #entry .entry-language select{max-width:106px;min-width:72px;font-size:11px}
}
@media(max-width:380px){
 #entry .entry-head{gap:5px}
 #entry .entry-head-actions{gap:5px}
 #entry .entry-language select{max-width:88px;min-width:62px}
}

/* Read-only fountain preview: no visitor session, preserve ordinary world UI. */
body.fountain-preview .actionbar,body.fountain-preview .joystick,
body.fountain-preview .keyhelp,body.fountain-preview .mini-map-card,
body.fountain-preview .cruise-pill,body.fountain-preview .world-options,
body.fountain-preview .landscape-credit{display:none!important}
.fountain-preview-nav{position:fixed;z-index:12;left:50%;bottom:25px;
transform:translateX(-50%);display:flex;gap:8px;flex-wrap:wrap;justify-content:center;
padding:9px;border-radius:16px;background:rgba(17,40,49,.88);border:1px solid #ffffff42}
.fountain-preview-nav a{padding:10px 12px;border-radius:10px;color:#fff;
font-size:13px;font-weight:700;text-decoration:none;background:rgba(80,129,133,.6)}
.fountain-preview-nav a[aria-current="page"]{background:#dfbc81;color:#243d43}
body.fountain-preview .scenery{top:92px}
body.fountain-preview .notice{bottom:107px}
@media(max-width:680px){.fountain-preview-nav{width:min(96vw,520px);bottom:10px}
.fountain-preview-nav a{font-size:11px;padding:9px}.fountain-preview .scenery{display:none}}

/* v66: small, lightweight one-line personal speech bubble editor. */
.about-me-popover{position:fixed;left:50%;bottom:102px;transform:translateX(-50%);
 z-index:16;width:min(355px,calc(100vw - 24px));background:rgba(28,60,66,.97);
 border:1px solid rgba(222,239,222,.65);border-radius:16px;padding:14px;
 color:#fffaf0;box-shadow:0 12px 36px rgba(6,24,30,.48)}
.about-me-head{display:flex;justify-content:space-between;align-items:center;
 margin-bottom:11px;font-size:14px}
.about-me-head button{border:0;background:transparent;color:#fff;font-size:24px;
 line-height:1;width:30px;height:28px;cursor:pointer}
.about-me-form input{display:block;box-sizing:border-box;width:100%;
 border:1px solid #92b9ad;border-radius:10px;background:#fdfcf6;color:#254a4c;
 font-size:14px;padding:11px 12px;outline-offset:2px}
.about-me-commands{display:flex;justify-content:flex-end;gap:8px;margin-top:11px}
.about-me-commands button{border:1px solid #84a99d;background:#3b6264;
 color:#fff;border-radius:9px;padding:8px 17px;font-size:12px;font-weight:700}
.about-me-commands button[type=submit]{background:#f0d8a8;color:#203f43;border-color:#f0d8a8}
@media(max-width:760px){.about-me-popover{left:auto;right:8px;transform:none;
 bottom:calc(89px + env(safe-area-inset-bottom));width:min(318px,calc(100vw - 16px));
 padding:11px}.about-me-form input{font-size:13px;padding:9px 10px}}

/* V68 strange vending: interaction is visible only near a real machine. */
.strange-vending{position:fixed;z-index:31;left:max(18px,env(safe-area-inset-left));bottom:calc(89px + env(safe-area-inset-bottom));width:min(330px,calc(100vw - 36px));pointer-events:none;display:flex;flex-direction:column;gap:9px}
.strange-vending[hidden],.strange-vending-result[hidden]{display:none!important}
.strange-vending>button{pointer-events:auto;display:block;max-width:100%;padding:12px 15px;border:1px solid #cf9ffc;border-radius:17px;color:#fff6ff;background:linear-gradient(125deg,#703498,#452b80);box-shadow:0 6px 25px rgba(36,20,74,.38);font-weight:750;cursor:pointer}
.strange-vending>button:disabled{opacity:.48;cursor:default}
.strange-vending-result{pointer-events:none;border:1px solid rgba(239,201,255,.58);border-radius:16px;padding:12px 14px;background:rgba(48,24,68,.93);color:#faf4ff;box-shadow:0 10px 35px rgba(20,7,40,.36);display:grid;gap:5px;max-width:100%}
.strange-vending-result strong{font-size:17px}
.strange-vending-result span{font-size:13px;line-height:1.4}
@media(max-width:760px){.strange-vending{bottom:calc(114px + env(safe-area-inset-bottom));left:max(10px,env(safe-area-inset-left));width:min(250px,calc(100vw - 24px));gap:6px}.strange-vending>button{padding:9px 12px;font-size:12px;border-radius:12px}.strange-vending-result{padding:8px 10px}.strange-vending-result strong{font-size:14px}.strange-vending-result span{font-size:11px}}

/* V75: Small bank-side tabs and a self-contained two-bank collaborative graffiti editor. */
.graffiti-side{position:fixed;z-index:7;top:52%;transform:translateY(-50%);pointer-events:none}
.graffiti-side-south{left:max(4px,env(safe-area-inset-left))}
.graffiti-side-north{right:max(4px,env(safe-area-inset-right))}
.graffiti-tab{pointer-events:auto;display:flex;align-items:center;gap:6px;flex-direction:column;max-width:72px;padding:10px 7px;
 border:1px solid #eedbaa99;border-radius:13px;background:rgba(26,58,64,.84);color:#fff;backdrop-filter:blur(7px);
 box-shadow:0 5px 18px #0b232c70;font-size:19px}
.graffiti-tab span{font-size:10px;font-weight:750;line-height:1.3;text-align:center}
.graffiti-tab:hover,.graffiti-tab[aria-expanded=true]{background:#456e6b;border-color:#ffdc9c}
.graffiti-overlay{position:fixed;z-index:40;inset:0;background:#081d26bb;display:grid;place-items:center;padding:12px}
.graffiti-dialog{width:min(780px,96vw);max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #ead3a16b;
 border-radius:20px;background:#203d44;color:#f8f1e0;box-shadow:0 18px 70px #071a23d9;padding:17px;display:flex;flex-direction:column;gap:9px}
.graffiti-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.graffiti-head small{font-size:10px;color:#e2bd83;letter-spacing:.18em}
.graffiti-head h2{font-size:23px;letter-spacing:-.04em;margin:3px 0}
.graffiti-head button{border:0;border-radius:10px;background:#47646b;color:#fff;font-size:24px;padding:4px 12px}
#graffitiIntro{font-size:12px;color:#cce0da;margin:0}
#graffitiCanvas{display:block;width:100%;height:auto;aspect-ratio:2/1;background:#f1e6ce;border:6px solid #a87a52;border-radius:9px;
 cursor:crosshair;touch-action:none;user-select:none;box-shadow:inset 0 0 14px #1d3b3666}
.graffiti-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.graffiti-colors{display:flex;gap:4px;flex-wrap:wrap}
.graffiti-colors button{width:27px;height:27px;border-radius:50%;border:2px solid #f1dcb088;flex:none}
.graffiti-colors button[aria-pressed=true]{outline:2px solid #ffe8ac;outline-offset:1px}
.graffiti-width-label{display:flex;align-items:center;gap:5px;font-size:11px;color:#e4efea}
.graffiti-width-label select{background:#2b555d;border:1px solid #c1d6cf70;border-radius:7px;padding:5px;color:#fff}
.graffiti-controls>button,.graffiti-owners button{background:#32555d;color:#f9e7c7;border:1px solid #c7d2b64d;border-radius:8px;padding:7px 9px;font-size:11px}
.graffiti-footer{display:flex;justify-content:space-between;align-items:center;gap:12px}
.graffiti-message{display:flex;flex-direction:column;gap:3px;min-height:35px}
.graffiti-message span{font-size:12px;color:#f8dfb5;line-height:1.3}
.graffiti-message small,.graffiti-owners small{font-size:10px;color:#b8cbc4;line-height:1.3}
#graffitiSubmit{flex:none;border:0;border-radius:10px;background:#f4d39b;color:#25434a;padding:11px 16px;font-size:12px;font-weight:800}
#graffitiSubmit:disabled{opacity:.5}
.graffiti-owners{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:18px}
@media(max-width:760px){.graffiti-tab{max-width:45px;padding:7px 3px;border-radius:10px;font-size:16px}.graffiti-tab span{font-size:8px}
 .graffiti-side{top:51%}.graffiti-dialog{padding:12px;gap:6px}.graffiti-head h2{font-size:17px}
 .graffiti-colors button{width:22px;height:22px}.graffiti-footer{gap:6px}#graffitiSubmit{padding:8px;font-size:11px}}
@media(max-height:490px) and (orientation:landscape){
 .graffiti-dialog{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(175px,1fr);gap:8px;grid-template-rows:auto auto auto auto}
 .graffiti-head{grid-column:1/-1;grid-row:1}.graffiti-head h2{font-size:16px}
 #graffitiIntro{display:none}
 #graffitiCanvas{grid-column:1;grid-row:2/5;width:100%;align-self:start;max-height:calc(100dvh - 95px);object-fit:contain}
 .graffiti-controls{grid-column:2;grid-row:2;align-content:start}
 .graffiti-footer{grid-column:2;grid-row:3;flex-direction:column;align-items:stretch}
 .graffiti-owners{grid-column:2;grid-row:4;flex-wrap:wrap}
 .graffiti-message small{font-size:9px}
}

/* V76: physical board stays latest, older graffiti pages open read-only in editor. */
.graffiti-pages{display:flex;align-items:center;justify-content:center;gap:12px;margin:0;padding:2px 0}
.graffiti-pages strong{min-width:70px;text-align:center;color:#f4dfad;font-size:13px;font-variant-numeric:tabular-nums}
.graffiti-pages button{border:1px solid #8baaa0;border-radius:8px;background:#31555b;color:#fff;padding:5px 12px;font-size:12px}
.graffiti-pages button:disabled{opacity:.35}
@media(max-height:490px) and (orientation:landscape){
 .graffiti-pages{grid-column:2;grid-row:1;justify-content:end;align-self:end;margin-right:45px}
 .graffiti-pages button{padding:4px 5px;font-size:10px}
 .graffiti-pages strong{font-size:11px;min-width:40px}
 .graffiti-head{grid-column:1/-1;grid-row:1}
}

/* V77 bank access: the ineligible board is never clickable or visible. */
.graffiti-tab[hidden],.graffiti-side[hidden]{display:none!important}

/* V88 zone chat: separate non-modal overlay, never consumes walking keyboard focus. */
.zone-chat-window[hidden]{display:none!important}
.zone-chat-window{position:fixed;left:14px;bottom:82px;z-index:9;width:min(326px,calc(100vw - 28px));background:rgba(25,51,61,.94);border:1px solid rgba(188,220,205,.65);color:#f4f7f2;border-radius:14px;box-shadow:0 12px 30px #071e28a6;backdrop-filter:blur(12px);font:12px/1.4 system-ui,-apple-system,"Malgun Gothic",sans-serif;pointer-events:auto}
.zone-chat-window .zone-chat-head{display:flex;align-items:center;gap:8px;padding:9px 11px}
.zone-chat-window .zone-chat-head strong{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.zone-chat-window .zone-chat-head small{font-size:10px;color:#b7d7cd}
.zone-chat-window button{border:0;cursor:pointer;color:inherit;background:#3a6570;border-radius:7px}
.zone-chat-window .zone-chat-fold{width:26px;height:25px;font-size:15px}
.zone-chat-window .zone-chat-body{padding:0 10px 10px}
.zone-chat-window .zone-chat-tip{display:block;color:#bed5cc;font-size:10px;padding:0 0 7px}
.zone-chat-window .zone-chat-log{height:122px;overflow-y:auto;overscroll-behavior:contain;display:grid;align-content:start;gap:5px}
.zone-chat-window .zone-chat-line{background:#355660;padding:5px 7px;border-radius:8px;overflow-wrap:anywhere}
.zone-chat-window .zone-chat-line-head{display:flex;align-items:center;gap:7px;margin-bottom:2px}
.zone-chat-window .zone-chat-line-head b{color:#f5d4a5}.zone-chat-window .zone-chat-line-head small{color:#b1c7cb;font-size:9px}
.zone-chat-window .zone-chat-line>span{display:block;white-space:pre-wrap}
.zone-chat-window .zone-chat-report{font-size:9px;float:right;margin-top:-3px;padding:2px 6px;opacity:.8}
.zone-chat-window .zone-chat-form{display:flex;gap:5px;margin-top:8px}
.zone-chat-window .zone-chat-form input{flex:1;min-width:0;padding:8px;font:12px system-ui;border:1px solid #557e83;border-radius:7px;color:#fff;background:#1a3540}
.zone-chat-window .zone-chat-form button{padding:0 12px}
.zone-chat-window .zone-chat-status{display:block;color:#ffdcac;min-height:0;font-size:10px}
@media(max-width:1280px) and (pointer:coarse),(max-width:760px){
 .zone-chat-window{left:9px;bottom:calc(118px + env(safe-area-inset-bottom));width:min(308px,calc(100vw - 22px));font-size:11px}
 .zone-chat-window .zone-chat-log{height:75px}
 .zone-chat-window .zone-chat-body{padding-bottom:6px}
}


/* V89: compact mobile-only HUD. Desktop controls retain their original behavior. */
.help-drawer-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
#helpRiverOpen{display:none;align-items:center;justify-content:center;min-height:34px;padding:6px 10px;background:#345961;color:#f7e9c8;border:1px solid #9eb8ad80;border-radius:9px;font-size:12px;font-weight:750;white-space:nowrap}
.mobile-extra{display:contents}
@media (max-width:760px),
       (pointer:coarse) and (orientation:landscape) and (max-height:700px),
       (hover:none) and (orientation:landscape) and (max-height:700px) {
  .top-actions #riverOpen{display:none!important}
  #helpRiverOpen{display:inline-flex}
  .mobile-extra{display:none;position:absolute;right:0;bottom:calc(100% + 7px);z-index:9;
    align-items:center;justify-content:center;gap:3px;padding:5px;
    border:1px solid #c8d3bc70;border-radius:13px;background:rgba(19,45,52,.96);
    box-shadow:0 9px 25px #08171bb8;backdrop-filter:blur(12px)}
  .actionbar .mobile-extra .support-action,
  .actionbar .mobile-extra #dogAction{display:flex!important;flex-direction:column;
    align-items:center;justify-content:center;gap:3px;min-width:63px;
    min-height:52px;padding:4px 6px;color:#fff;border-radius:9px}
  .actionbar .mobile-extra .support-action span,
  .actionbar .mobile-extra #dogAction span{font-size:20px;line-height:1}
  .actionbar .mobile-extra .support-action small,
  .actionbar .mobile-extra #dogAction small{font-size:9px;white-space:nowrap}
  .actionbar button small{white-space:nowrap}
  #helpPanel .drawer-head{gap:8px;align-items:center}
  #helpPanel .drawer-head>div{min-width:0}
  #helpPanel .drawer-head h2{font-size:19px;margin:4px 0}
  #helpPanel .drawer-head .eyebrow{font-size:8px}
  #helpPanel .drawer-head .close{width:33px;height:33px;flex-shrink:0}
  #helpPanel .help-drawer-actions{gap:5px}
  #helpRiverOpen{font-size:11px;min-height:33px;padding:5px 7px}
  .topbar{height:49px;padding:5px 7px;gap:6px}
  .brand{gap:6px}
  .brand-mark{width:29px;height:29px;border-radius:9px;font-size:22px}
  .brand strong{font-size:12px;letter-spacing:0}
  .brand small{display:none}
  .top-actions{margin-left:auto;gap:4px;flex-shrink:0}
  .top-actions button{height:33px;min-width:33px;padding:0 7px;font-size:12px;border-radius:9px}
  .language-pill{height:33px;gap:3px;padding:0 5px;border-radius:9px;font-size:10px}
  .language-pill select{max-width:69px;font-size:11px}
  .scenery{top:57px;left:calc(8px + env(safe-area-inset-left));width:min(43vw,180px);max-width:none}
  .scenery .eyebrow,.scenery .rule,.scenery .scenery-description{display:none}
  .scenery h1{font-size:clamp(15px,2.9vw,20px);margin:0 0 4px;line-height:1.15}
  .scenery p{font-size:10px;line-height:1.3}
  .right-hud{top:54px;right:calc(5px + env(safe-area-inset-right));width:clamp(135px,21vw,180px);gap:4px}
  .mini-map-card{padding:5px;border-radius:10px}
  .mini-map-head{margin-bottom:3px;font-size:10px}
  #miniMapPlace{max-width:65px;font-size:9px}
  #miniMap svg{height:61px}
  .right-hud .cruise-pill{padding:5px 6px;gap:4px;border-radius:10px;min-height:43px}
  .right-hud .ship-icon{display:none}
  .right-hud .cruise-pill strong{font-size:10px}
  .right-hud .cruise-pill small{font-size:9px;line-height:1.2;margin-top:1px}
  .right-hud .cruise-pill button{padding:5px 6px;font-size:10px}
  .world-options{border-radius:9px}
  .world-options>summary{padding:6px 8px;font-size:10px}
  .world-options-content{max-height:31dvh}
  .actionbar{left:auto;right:calc(5px + env(safe-area-inset-right));bottom:calc(5px + env(safe-area-inset-bottom));
    transform:none;gap:1px;padding:4px;border-radius:13px}
  .actionbar>button{min-width:43px;min-height:50px;padding:3px 4px;gap:2px}
  .actionbar>button span{font-size:19px}
  .actionbar>button small{font-size:9px}
  .actionbar #chatAction small{font-size:8px}
  .graffiti-tab{max-width:40px;padding:6px 3px;border-radius:9px}
  .graffiti-tab span{font-size:8px;line-height:1.15}
  .graffiti-side{top:45%}
  .message-center{display:flex;flex-direction:column;align-items:center;gap:2px;position:fixed;
    bottom:calc(65px + env(safe-area-inset-bottom));z-index:8;pointer-events:none}
  .message-center .notice,.message-center .connection-state{position:static;inset:auto;
    transform:none;margin:0;padding:4px 7px;max-width:100%;width:max-content;
    text-align:center;line-height:1.2;border-radius:9px;white-space:normal;
    overflow-wrap:anywhere;box-shadow:none;font-size:9px}
  .message-center .connection-state{font-size:8px;padding:3px 6px}
}
@media (max-width:760px) and (orientation:portrait),
       (pointer:coarse) and (orientation:portrait) and (max-width:900px),
       (hover:none) and (orientation:portrait) and (max-width:900px) {
  .topbar{gap:4px}
  .top-actions{gap:3px}
  .top-actions button{min-width:30px;height:32px;padding:0 5px}
  .language-pill{height:32px}
  .language-pill select{max-width:64px}
  .scenery{top:57px;width:min(46vw,190px)}
  .right-hud{top:57px;right:6px;width:clamp(135px,39vw,168px)}
  #miniMap svg{height:58px}
  .world-options-content{max-height:26dvh}
  .joystick{left:calc(5px + env(safe-area-inset-left));bottom:calc(7px + env(safe-area-inset-bottom));
    width:85px;height:85px;z-index:8}
  .joystick #knob{width:42px;height:42px;left:calc(50% - 21px);top:calc(50% - 21px)}
  .joystick small{bottom:1px}
  .actionbar>button{min-width:42px;min-height:48px;padding:2px 3px}
  .actionbar>button span{font-size:18px}
  .actionbar>button small{font-size:8px}
  .message-center{left:calc(96px + env(safe-area-inset-left));
    right:calc(5px + env(safe-area-inset-right));bottom:calc(64px + env(safe-area-inset-bottom))}
  .message-center .notice{max-width:100%}
}
@media (pointer:coarse) and (orientation:landscape) and (max-height:700px),
       (hover:none) and (orientation:landscape) and (max-height:700px) {
  .scenery{top:56px;width:min(175px,25vw)}
  .right-hud{top:49px;width:clamp(145px,20vw,185px)}
  #miniMap svg{height:58px}
  .joystick{left:calc(6px + env(safe-area-inset-left));
    bottom:calc(5px + env(safe-area-inset-bottom));width:82px;height:82px;z-index:8}
  .joystick #knob{width:40px;height:40px;left:calc(50% - 20px);top:calc(50% - 20px)}
  .actionbar>button{min-height:44px;min-width:44px}
  .message-center{left:calc(92px + env(safe-area-inset-left));
    right:calc(246px + env(safe-area-inset-right));bottom:calc(4px + env(safe-area-inset-bottom))}
}
@media (max-width:350px) and (orientation:portrait) {
  .brand strong{font-size:11px}
  .topbar{padding:5px 4px;gap:3px}
  .top-actions{gap:2px}
  .language-pill select{max-width:52px}
  .actionbar>button{min-width:39px;min-height:47px;padding:2px}
  .actionbar>button small{font-size:8px}
  .right-hud{width:133px}
}

/* V89: embedded voluntary support, no navigation or extra world tabs. */
.support-modal[hidden]{display:none!important}
.support-modal{position:fixed;inset:0;z-index:90;background:rgba(6,24,31,.77);display:grid;place-items:center;padding:max(9px,env(safe-area-inset-top)) max(9px,env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left));}
.support-modal-dialog{width:min(570px,100%);height:min(735px,calc(100dvh - 18px));min-height:190px;display:flex;flex-direction:column;border-radius:18px;border:1px solid #9fbdb4;background:#183a42;box-shadow:0 24px 75px #041b23d9;overflow:hidden;color:#f2f8f2}
.support-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 15px;background:#21434b}
.support-modal-head h2{font:700 17px/1.4 system-ui,sans-serif;margin:0}
.support-modal-close{flex:none;background:#42626b;color:white;border:1px solid #99b5af;border-radius:9px;font-size:24px;line-height:1;padding:4px 13px;cursor:pointer}
.support-modal-frame-holder{flex:1;min-height:0;background:#183a42}
.support-modal-frame{display:block;width:100%;height:100%;border:0}
@media(max-height:480px) and (orientation:landscape){.support-modal-dialog{width:min(690px,100%);height:calc(100dvh - 16px);border-radius:12px}.support-modal-head{padding:4px 11px}.support-modal-head h2{font-size:14px}.support-modal-close{padding:2px 9px;font-size:20px}}


/* V91: the chat input occupies the actual visible viewport when the IME is open.
   No permanent gameplay HUD changes outside the focused, mobile chat. */
@media (pointer:coarse) and (max-width:1280px),
       (hover:none) and (max-width:1280px),
       (max-width:760px) {
 body.zone-chat-typing #worldCanvas{pointer-events:none!important}
 body.zone-chat-typing::after{content:"";position:fixed;inset:0;z-index:30;background:rgba(5,21,28,.82);pointer-events:auto}
 body.zone-chat-typing .topbar,
 body.zone-chat-typing .scenery,
 body.zone-chat-typing .right-hud,
 body.zone-chat-typing .actionbar,
 body.zone-chat-typing .joystick,
 body.zone-chat-typing .message-center,
 body.zone-chat-typing .graffiti-side,
 body.zone-chat-typing .strange-vending{visibility:hidden!important;pointer-events:none!important}
 body.zone-chat-typing .zone-chat-window{
   position:fixed!important;z-index:40!important;right:auto!important;
   margin:0!important;max-width:none!important;max-height:none!important;
   padding:0!important;border-radius:12px!important;
   box-sizing:border-box!important;display:flex!important;
   flex-direction:column!important;overflow:hidden!important;
   background:rgba(21,49,60,.98)!important;
 }
 body.zone-chat-typing .zone-chat-window .zone-chat-head{
   flex:0 0 auto;min-height:34px;padding:5px 10px;gap:9px;
   background:#203e49;position:relative;z-index:2;
 }
 body.zone-chat-typing .zone-chat-window .zone-chat-head strong{font-size:12px}
 body.zone-chat-typing .zone-chat-window .zone-chat-fold{min-width:34px;min-height:32px;font-size:18px}
 body.zone-chat-typing .zone-chat-window .zone-chat-body{
   display:flex!important;flex:1 1 0!important;min-height:0!important;
   flex-direction:column!important;overflow:hidden!important;
   padding:3px 8px 5px!important;gap:3px!important;
 }
 body.zone-chat-typing .zone-chat-window .zone-chat-tip{display:none!important}
 body.zone-chat-typing .zone-chat-window .zone-chat-log{
   flex:1 1 0!important;min-height:0!important;height:auto!important;
   max-height:none!important;overflow-y:auto!important;
   overscroll-behavior:contain!important;align-content:start;
   padding:0 2px!important;scrollbar-width:thin;
 }
 body.zone-chat-typing .zone-chat-window .zone-chat-form{
   flex:0 0 auto!important;display:flex!important;gap:6px;margin:0!important;
   min-height:38px;align-items:stretch;
 }
 body.zone-chat-typing .zone-chat-window .zone-chat-form input{
   display:block!important;min-width:0!important;flex:1 1 0!important;
   min-height:38px!important;font-size:16px!important;line-height:1.3!important;
   padding:7px 9px!important;border-radius:8px;
 }
 body.zone-chat-typing .zone-chat-window .zone-chat-form button{
   display:block!important;flex:0 0 auto!important;min-width:53px;
   min-height:38px!important;font-size:13px;font-weight:700;
 }
 body.zone-chat-typing .zone-chat-window .zone-chat-status{
   flex:0 0 auto;max-height:19px;min-height:0!important;
   overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
   font-size:10px;line-height:1.2;
 }
 body.zone-chat-typing .zone-chat-window.zone-chat-tight .zone-chat-head{
   min-height:29px;padding:2px 7px;
 }
 body.zone-chat-typing .zone-chat-window.zone-chat-tight .zone-chat-form{min-height:34px}
 body.zone-chat-typing .zone-chat-window.zone-chat-tight .zone-chat-form input,
 body.zone-chat-typing .zone-chat-window.zone-chat-tight .zone-chat-form button{min-height:34px!important}
 body.zone-chat-typing .zone-chat-window.zone-chat-tight .zone-chat-status:empty{display:none}
}

/* V96: auto touring takes the old support slot. Sponsorship UI remains inaccessible. */
#supportAction{display:none!important}
.actionbar #autoRoamAction[aria-pressed="true"]{background:rgba(161,209,154,.28);box-shadow:inset 0 0 0 1px rgba(179,239,172,.55)}
.actionbar #autoRoamAction[aria-pressed="true"] small{color:#e4ffdd}
@media (max-width:760px),(pointer:coarse) and (orientation:landscape) and (max-height:700px),(hover:none) and (orientation:landscape) and (max-height:700px){
 .actionbar .mobile-extra #autoRoamAction{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:63px;min-height:52px;padding:4px 6px;color:#fff;border-radius:9px}
 .actionbar .mobile-extra #autoRoamAction span{font-size:20px;line-height:1}
 .actionbar .mobile-extra #autoRoamAction small{font-size:9px;white-space:nowrap}
}

/* V106 one-line post-it composer, including compact landscape controls. */
.graffiti-type-switch{display:flex;gap:5px;flex-basis:100%}
.graffiti-type-switch button{flex:1;min-width:0;min-height:30px;border:1px solid #87a69f;border-radius:9px;background:#284850;color:#f7f1dd;font-size:12px;font-weight:700}
.graffiti-type-switch button[aria-pressed=true]{background:#f1d29e;border-color:#f1d29e;color:#203c45}
.graffiti-text-wrap{display:flex;flex-direction:column;gap:5px;flex-basis:100%;min-width:0;font-size:11px;color:#f1e2c6}
.graffiti-text-wrap input{width:100%;min-width:0;box-sizing:border-box;padding:9px;border:1px solid #9bc3b8;border-radius:9px;background:#f8f3e8;color:#223740;font-size:14px}
.graffiti-text-wrap input:focus{outline:2px solid #e5ba72;outline-offset:1px}
.graffiti-controls [hidden]{display:none!important}
@media(max-height:490px) and (orientation:landscape){
 .graffiti-type-switch button{min-height:26px;font-size:10px}
 .graffiti-text-wrap input{padding:5px 7px;font-size:12px}
}

/* Shared Seoul/London HUD: retain connection lifecycle in JS, remove its visual chip.
   The existing message-center flex layout then places #notice in the bottom slot. */
#connectionState{display:none!important}

/* Four-city minimap: the local clock sits between the map title and place. */
.mini-map-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;column-gap:4px}
.mini-map-head strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

#miniMapPlace{justify-self:end;min-width:0;max-width:100%;text-align:right}

/* 20261108HudContrastV3: desktop scenery captions only; preserve park layout and 3D geometry. */
@media (min-width:901px) {
 .scenery h1{text-shadow:0 1px 2px #0b202b,0 3px 9px #0b202b,0 0 23px #0b202b!important}
 .scenery p{text-shadow:0 1px 2px #0b202b,0 2px 8px #0b202b,0 0 17px #0b202b!important}
 .scenery .eyebrow{text-shadow:0 1px 3px #0b202b,0 0 10px #0b202b}
}

/* Warsaw-only compact landscape polish: protect local place name and controls from overlap. */
@media (orientation:landscape) and (max-width:900px) and (max-height:480px){
 .scenery{display:block!important;top:88px!important;left:calc(85px + env(safe-area-inset-left))!important;width:min(38vw,315px)!important;max-width:315px!important;pointer-events:none}
 .scenery .eyebrow{display:block!important;font-size:8px!important;letter-spacing:.12em!important;white-space:nowrap}
 .scenery h1{font-size:clamp(16px,2.3vw,20px)!important;line-height:1.12!important;margin:7px 0 0!important}
 .scenery p,.scenery .rule,.scenery-description{display:none!important}
 .graffiti-side{top:70%!important}
 .message-center{left:calc(101px + env(safe-area-inset-left))!important;right:calc(280px + env(safe-area-inset-right))!important;bottom:calc(78px + env(safe-area-inset-bottom))!important;max-width:none!important}
 .message-center .notice{white-space:normal!important;text-align:center!important;max-width:100%!important;font-size:10px!important;line-height:1.25!important}
}

/* miniLegendHeader20261112v1 */

/* Shared compact minimap legend, relocated from SVG lower-left to HUD heading. */
.mini-map-head{grid-template-columns:minmax(0,1fr) max-content}
.mini-map-head strong{display:inline-flex;align-items:center;gap:6px;overflow:hidden;white-space:nowrap;font-size:10px}
.mini-map-legend-item{display:inline-flex;align-items:center;gap:3px;min-width:0;white-space:nowrap}
.mini-map-legend-dot{display:inline-block;width:7px;height:7px;box-sizing:border-box;flex:none;border:1px solid #fffdf0;border-radius:50%}
.mini-map-legend-dot.is-me{background:#f77c5e}
.mini-map-legend-dot.is-other{background:#f01932}
#miniMapPlace{max-width:70px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px) and (max-height:540px){
 .mini-map-head strong{gap:4px;font-size:9px}
 .mini-map-legend-item{gap:2px}
 .mini-map-legend-dot{width:6px;height:6px}
 #miniMapPlace{max-width:36px;font-size:9px}
}

/* Guestbook-only drawer: retain actions while granting the post list all available space. */
#helpPanel.help-panel{display:flex;flex-direction:column;overflow:hidden;width:min(520px,calc(100vw - 30px))}
#helpPanel>.drawer-head{flex:0 0 auto;display:flex;justify-content:flex-end;align-items:center;min-height:36px;margin-bottom:8px}
#helpPanel>.help-guestbook{display:flex;flex:1 1 0;min-height:0;min-width:0;overflow:hidden;flex-direction:column;gap:8px;margin:0;padding:0;border:0}
#helpPanel .guestbook-list{flex:1 1 0;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
#helpPanel .guestbook-heading,#helpPanel .guestbook-intro,#helpPanel .guestbook-form,#helpPanel .guestbook-policy{flex:0 0 auto}
#helpPanel .guestbook-heading h3{font-size:19px}
#helpPanel .guestbook-text{font-size:13px;line-height:1.55}
@media(max-width:760px){#helpPanel.help-panel{width:min(390px,calc(100vw - 14px))}}
@media(max-height:500px){
 #helpPanel>.drawer-head{min-height:24px;margin-bottom:2px}
 #helpPanel>.help-guestbook{flex:1 1 0;min-height:0;gap:3px}
 #helpPanel .guestbook-intro,#helpPanel .guestbook-policy{display:none}
 #helpPanel .guestbook-list{flex:1 1 0;min-height:0;max-height:none}
 #helpPanel .guestbook-heading h3{font-size:16px}
 #helpPanel .guestbook-heading button{padding:4px 7px}
 #helpPanel .guestbook-form{gap:4px}
 #helpPanel .guestbook-form textarea{min-height:36px;max-height:48px;height:36px;padding:5px 9px}
 #helpPanel .guestbook-actions button{padding:5px 9px}
}

 
/* River-side accessibility: keep both banks' boards at the right edge. */
.graffiti-side-south{left:auto;right:max(4px,env(safe-area-inset-right))}
body.zone-chat-typing .river-kiosk-launch{visibility:hidden!important;pointer-events:none!important}
/* Keep mobile landscape guides clear of the minimap and the bottom action bar. */
@media(max-height:500px) and (orientation:landscape){
 .graffiti-side{top:31%}
 .graffiti-side-south,.graffiti-side-north{left:auto;right:calc(clamp(145px,20vw,185px) + 14px + env(safe-area-inset-right))}
}
@media(max-height:360px) and (orientation:landscape){
 .graffiti-side{top:26%}
}

/* Six confirmed avatar choices: 3x2 on wide screens; 2x3 on narrow. */
#entry .role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#entry .role-card{min-width:0;min-height:88px;padding:6px 4px}
#entry .role-card .mascot-thumb{width:64px;height:64px;max-width:100%}
#entry .role-card .label{font-size:13px;line-height:1.2;overflow-wrap:anywhere}
@media(max-width:580px){#entry .role-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}#entry .role-card{min-height:73px}#entry .role-card .mascot-thumb{width:46px;height:46px}#entry .role-card .label{font-size:12px}}
@media(max-height:460px) and (min-width:580px){#entry .role-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}#entry .role-card{min-height:67px;padding:3px}#entry .role-card .mascot-thumb{width:42px;height:42px}}

/* Compact navigation and nameplate visibility. Keep >=44px mobile touch targets. */
body .actionbar{gap:2px;padding:4px;border-radius:13px}
body .actionbar>button{min-width:50px;min-height:46px;padding:3px 5px;gap:2px;border-radius:10px}
body .actionbar>button>span{font-size:19px;line-height:1}
body .actionbar>button>small{font-size:9px;line-height:1.12;white-space:nowrap}
body .actionbar>button#nameplatesToggleAction{min-width:64px}
body .actionbar #nameplatesToggleAction .nav-name-eye{width:24px;height:24px;display:block}
body .actionbar #nameplatesToggleAction .nav-name-eye svg{display:block;width:24px;height:24px}
body .actionbar #nameplatesToggleAction[aria-pressed="true"] .nav-name-eye-slash{display:none}
body .actionbar #nameplatesToggleAction[aria-pressed="true"]{background:rgba(161,209,154,.23)}
body .actionbar #nameplatesToggleAction[disabled]{opacity:.55;cursor:default}
@media (max-width:760px),(pointer:coarse) and (orientation:landscape) and (max-height:700px),(hover:none) and (orientation:landscape) and (max-height:700px){
 body .actionbar{gap:1px;padding:3px}
 body .actionbar>button{min-width:44px;min-height:44px;padding:2px 3px;gap:1px}
 body .actionbar>button>span{font-size:17px}
 body .actionbar>button>small{font-size:8px}
 body .actionbar>button#nameplatesToggleAction{min-width:59px}
 body .actionbar #nameplatesToggleAction .nav-name-eye,body .actionbar #nameplatesToggleAction .nav-name-eye svg{width:20px;height:20px}
}


/* 2026-11-15 Mobile touch HUD: navigation on the LEFT, movement pad on the RIGHT.
   Desktop pointer/fine layout remains unchanged. */
@media (max-width:760px),
       (max-width:1024px) and (orientation:landscape) and (max-height:700px),
       (pointer:coarse) and (max-width:1024px),
       (hover:none) and (max-width:1024px) {
 body .actionbar {
  left:calc(5px + env(safe-area-inset-left));
  right:auto;
  transform:none;
 }
 body .joystick {
  left:auto;
  right:calc(6px + env(safe-area-inset-right));
 }
}
/* On narrow portrait phones the full nav row and pad cannot fit side by side:
   lift the RIGHT-hand joystick clear of the LEFT-hand nav. */
@media (max-width:900px) and (orientation:portrait) {
 body .actionbar {
  left:calc(5px + env(safe-area-inset-left));
  right:auto;
  bottom:calc(5px + env(safe-area-inset-bottom));
  transform:none;
 }
 body .joystick {
  left:auto;
  right:calc(6px + env(safe-area-inset-right));
  bottom:calc(98px + env(safe-area-inset-bottom));
 }
}
/* The original tiny font glyph looks like a dot on the Samsung screen.
   A CSS triangle with a high-contrast backing is independent of font rendering. */
.world-options>summary {
 position:relative;
 padding-right:39px;
 min-height:34px;
 box-sizing:border-box;
 display:flex;
 align-items:center;
 line-height:1.35;
}
.world-options>summary::before {
 content:"";
 position:absolute;
 top:50%;
 right:5px;
 transform:translateY(-50%);
 width:27px;
 height:26px;
 background:rgba(11,39,48,.92);
 border:1px solid rgba(255,228,163,.75);
 border-radius:7px;
 pointer-events:none;
}
.world-options>summary::after {
 content:"";
 float:none;
 position:absolute;
 top:50%;
 right:12px;
 transform:translateY(-27%);
 width:0;
 height:0;
 border-left:7px solid transparent;
 border-right:7px solid transparent;
 border-top:10px solid #ffe09a;
 border-bottom:0;
 filter:drop-shadow(0 1px 1px #0a2630);
 pointer-events:none;
}
.world-options[open]>summary::after {
 content:"";
 transform:translateY(-68%);
 border-top:0;
 border-bottom:10px solid #ffe09a;
}
.world-options>summary:focus-visible {
 outline:2px solid #ffe09a;
 outline-offset:2px;
 border-radius:6px;
}

/* Mobile dropdown must receive taps above the overlapping graffiti tab strip. */
@media (max-width:760px),
       (max-width:1024px) and (orientation:landscape) and (max-height:700px),
       (pointer:coarse) and (max-width:1024px),
       (hover:none) and (max-width:1024px) {
 body .right-hud{z-index:8}
}

/* Samsung physical-device verified portrait menu: keep the full title readable,
   with a comfortably tappable arrow outside the right-edge floating-pen overlay. */
@media (max-width:900px) and (orientation:portrait) {
 .world-options {
  width:calc(100% + 27px);
  margin-left:-27px;
 }
 .world-options>summary {
  padding-right:67px;
  word-break:keep-all;
 }
 .world-options>summary::before {right:33px}
 .world-options>summary::after {right:40px}
}


/* 20261115 Mobile immersive HUD: world view by default, controls on demand.
   Applies only to touch/narrow viewports; PC desktop controls stay unchanged. */
#mobileNavToggle,#mobileInfoToggle{display:none}
@media (max-width:760px),
       (pointer:coarse) and (orientation:portrait) and (max-width:900px),
       (hover:none) and (orientation:portrait) and (max-width:900px),
       (pointer:coarse) and (orientation:landscape) and (max-height:700px),
       (hover:none) and (orientation:landscape) and (max-height:700px) {
 body.mobile-immersive-ready .topbar{
  height:43px;padding:3px max(6px,env(safe-area-inset-right)) 3px max(6px,env(safe-area-inset-left));
  gap:5px;background:linear-gradient(180deg,rgba(14,38,46,.7),transparent);
 }
 body.mobile-immersive-ready .brand-mark{width:27px;height:27px;border-radius:8px;font-size:20px}
 body.mobile-immersive-ready .brand strong{font-size:12px}
 body.mobile-immersive-ready .top-actions{gap:3px}
 body.mobile-immersive-ready .top-actions button{min-width:32px;height:32px;padding:0 5px}
 body.mobile-immersive-ready .scenery{
  top:calc(48px + env(safe-area-inset-top));left:calc(7px + env(safe-area-inset-left));
  width:min(43vw,160px);max-width:none;padding:5px 8px;border-radius:10px;
  background:rgba(13,40,48,.6);border:1px solid rgba(245,235,204,.26);
  backdrop-filter:blur(7px);pointer-events:none;
 }
 body.mobile-immersive-ready .scenery h1{
  font-size:12px!important;line-height:1.25!important;margin:0!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 }
 body.mobile-immersive-ready .scenery p,
 body.mobile-immersive-ready .scenery .eyebrow,
 body.mobile-immersive-ready .scenery .rule{display:none!important}
 body.mobile-immersive-ready .right-hud{
  top:calc(48px + env(safe-area-inset-top));right:calc(6px + env(safe-area-inset-right));
  width:104px;gap:4px;align-items:flex-end;max-height:calc(100dvh - 110px);z-index:8;
 }
 body.mobile-immersive-ready .right-hud>.mini-map-card{
  width:104px;max-width:104px;padding:3px;border-radius:11px;flex:0 0 auto;
  background:rgba(13,40,48,.7);box-shadow:0 3px 11px #0b20264d;
 }
 body.mobile-immersive-ready .mini-map-head{display:none!important}
 body.mobile-immersive-ready #miniMap{width:100%;border-radius:8px}
 body.mobile-immersive-ready #miniMap svg{display:block;width:100%;height:56px!important}
 body.mobile-immersive-ready #mobileInfoToggle{
  display:flex;align-items:center;justify-content:center;gap:2px;
  flex-direction:column;width:44px;height:44px;padding:3px;
  color:#fff4d9;background:rgba(18,47,55,.84);
  border:1px solid rgba(255,226,168,.62);border-radius:11px;box-shadow:0 3px 9px #0a22294d;
 }
 body.mobile-immersive-ready #mobileInfoToggle>span{font-size:19px;line-height:1}
 body.mobile-immersive-ready #mobileInfoToggle>small{font-size:10px;line-height:1}
 body.mobile-immersive-ready #mobileInfoToggle[aria-expanded="true"]>span{transform:rotate(180deg)}
 body.mobile-immersive-ready .right-hud>.cruise-pill,
 body.mobile-immersive-ready .right-hud>.world-options{display:none!important}
 body.mobile-immersive-ready .right-hud.mobile-hud-info-open{
  width:min(210px,56vw);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  padding:0 0 4px 4px;
 }
 body.mobile-immersive-ready .right-hud.mobile-hud-info-open>.cruise-pill{
  display:flex!important;width:100%;flex:0 0 auto;min-height:44px;
 }
 body.mobile-immersive-ready .right-hud.mobile-hud-info-open>.world-options{
  display:block!important;width:100%;margin:0!important;flex:0 0 auto;
 }
 body.mobile-immersive-ready .right-hud .world-options>summary{
  width:100%;min-height:44px;padding:7px 43px 7px 9px!important;font-size:11px;
  overflow-wrap:anywhere;word-break:keep-all;
 }
 body.mobile-immersive-ready .world-options>summary::before{right:5px!important}
 body.mobile-immersive-ready .world-options>summary::after{right:12px!important}
 body.mobile-immersive-ready .right-hud .world-options-content{max-height:min(28dvh,200px)}
 body.mobile-immersive-ready .actionbar{
  left:calc(6px + env(safe-area-inset-left));right:auto;bottom:calc(7px + env(safe-area-inset-bottom));
  transform:none;display:flex;flex-direction:column;align-items:stretch;
  width:54px;max-height:calc(100dvh - 118px);gap:2px;padding:4px;
  border-radius:13px;background:rgba(17,44,51,.73);
  box-shadow:0 3px 14px #0a222b55;z-index:9;
 }
 body.mobile-immersive-ready .actionbar>button:not(#mobileNavToggle),
 body.mobile-immersive-ready .actionbar>.mobile-extra{display:none!important}
 body.mobile-immersive-ready .actionbar>#mobileNavToggle{
  display:flex!important;align-items:center;justify-content:center;
  min-width:44px!important;width:44px;min-height:44px!important;height:44px;
  padding:3px;border-radius:10px;gap:0;
 }
 body.mobile-immersive-ready #mobileNavToggle>span{font-size:22px;line-height:1}
 body.mobile-immersive-ready #mobileNavToggle>small{font-size:9px;line-height:1}
 body.mobile-immersive-ready .actionbar.mobile-nav-open{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;
  width:min(214px,calc(100vw - 105px));padding:5px;gap:3px;
 }
 body.mobile-immersive-ready .actionbar.mobile-nav-open>button:not(#mobileNavToggle):not([hidden]){
  display:flex!important;min-width:0!important;width:100%;min-height:44px!important;
  padding:4px 2px!important;border-radius:8px;
 }
 body.mobile-immersive-ready .actionbar.mobile-nav-open>button>small{
  display:block;max-width:100%;font-size:9px;overflow:hidden;text-overflow:ellipsis;
 }
 body.mobile-immersive-ready .actionbar.mobile-nav-open>.mobile-extra{display:none!important}
 body.mobile-immersive-ready .actionbar.mobile-nav-open.mobile-more-open>.mobile-extra{
  display:flex!important;right:auto;left:0;max-width:min(250px,80vw);flex-wrap:wrap;
 }
 body.mobile-immersive-ready .joystick{
  display:block!important;left:auto!important;right:calc(7px + env(safe-area-inset-right))!important;
  bottom:calc(9px + env(safe-area-inset-bottom))!important;
  width:86px!important;height:86px!important;z-index:8;
 }
 body.mobile-immersive-ready .joystick #knob{
  width:42px!important;height:42px!important;left:calc(50% - 21px)!important;top:calc(50% - 21px)!important;
 }
 body.mobile-immersive-ready .message-center{
  display:flex;left:50%!important;right:auto!important;bottom:calc(13px + env(safe-area-inset-bottom))!important;
  transform:translateX(-50%);width:min(49vw,250px);max-width:250px;z-index:7;
  align-items:center;pointer-events:none;
 }
 body.mobile-immersive-ready .message-center .notice{
  max-width:100%;font-size:9px;line-height:1.25;padding:5px 7px;
  white-space:normal;overflow-wrap:anywhere;
 }
 body.mobile-immersive-ready .graffiti-tab{max-width:42px;padding:5px 3px;border-radius:9px}
 body.mobile-immersive-ready .graffiti-tab span{font-size:8px;line-height:1.2}
 body.mobile-immersive-ready .river-kiosk-launch{max-width:42px;padding:5px 3px;border-radius:9px}
 body.mobile-immersive-ready .river-kiosk-launch-label{font-size:8px;line-height:1.2}
 body.mobile-immersive-ready .right-hud.mobile-hud-info-open ~ .actionbar{pointer-events:auto}
}

/* K-Hangang / HERE RIVER mobile landscape: one left-edge shortcut rail
   and a compact, scrollable information dock beside the minimap.
   Portrait/desktop controllers, actions, and world rendering are unchanged. */
@media (orientation:landscape) and (max-height:700px) and (max-width:1024px) and (pointer:coarse),
       (orientation:landscape) and (max-height:700px) and (max-width:1024px) and (hover:none) {
 body.mobile-immersive-ready .graffiti-side-south,
 body.mobile-immersive-ready .graffiti-side-north {
  left:calc(6px + env(safe-area-inset-left))!important;
  right:auto!important;
  top:calc(47px + env(safe-area-inset-top))!important;
  transform:none!important;
 }
 body.mobile-immersive-ready .graffiti-side .graffiti-tab {
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  width:46px;min-width:46px;max-width:46px;height:44px;min-height:44px;
  box-sizing:border-box;padding:2px 2px;border-radius:9px;
  font-size:15px;line-height:1;
 }
 body.mobile-immersive-ready .graffiti-side .graffiti-tab span{
  font-size:9px;line-height:1.1;word-break:keep-all;
 }
 body.mobile-immersive-ready #todayTab{
  width:46px;max-width:46px;min-width:46px;height:44px;min-height:44px;
  box-sizing:border-box;padding:2px 2px;
 }
 body.mobile-immersive-ready .river-kiosk-launch{
  width:46px;max-width:46px;min-width:46px;height:44px;max-height:44px;
  min-height:44px;padding:2px 2px;box-sizing:border-box;
 }
 /* Leave the place badge visible instead of covering it with the shortcut rail. */
 body.mobile-immersive-ready .scenery{
  left:calc(60px + env(safe-area-inset-left));width:min(45vw,154px);
 }
 /* The right HUD is only a map plus its left-attached Info button.
    The content dock is independent of the right-bottom movement joystick. */
 body.mobile-immersive-ready .right-hud,
 body.mobile-immersive-ready .right-hud.mobile-hud-info-open {
  display:flex;flex-direction:column;align-items:flex-end;
  position:fixed;
  top:calc(48px + env(safe-area-inset-top));
  right:calc(6px + env(safe-area-inset-right));
  left:auto;
  box-sizing:border-box;
  width:104px!important;max-width:104px;min-width:104px;
  max-height:calc(100dvh - 54px);padding:0!important;
  overflow:visible!important;
  pointer-events:none;
  z-index:11;
 }
 body.mobile-immersive-ready .right-hud>.mini-map-card{
  width:104px;min-width:104px;max-width:104px;pointer-events:auto;
 }
 body.mobile-immersive-ready #mobileInfoToggle{
  position:absolute;top:0;left:auto;
  right:calc(100% + 6px);bottom:auto;
  display:flex!important;
  width:46px;min-width:46px;height:63px;min-height:44px;
  flex-direction:column;align-items:center;justify-content:center;
  padding:3px 3px;
  border-radius:10px;z-index:13;pointer-events:auto;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock{
  display:none;
  position:absolute;top:calc(63px + 6px);
  right:calc(100% + 6px);left:auto;
  box-sizing:border-box;
  width:min(225px,calc(100vw - 130px));
  max-width:min(225px,calc(100vw - 130px));
  min-height:0;
  max-height:max(90px,calc(100dvh - 124px - env(safe-area-inset-bottom)));
  overflow-y:auto;overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  flex-direction:column;align-items:stretch;gap:5px;
  padding:4px;
  background:rgba(17,43,50,.75);
  border:1px solid rgba(228,216,173,.43);
  border-radius:11px;box-shadow:0 4px 16px #0620296b;
  pointer-events:auto;touch-action:pan-y;
  z-index:12;
 }
 body.mobile-immersive-ready .right-hud.mobile-hud-info-open #mobileLandscapeInfoDock{
  display:flex;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.cruise-pill{
  display:flex;width:100%;max-width:100%;
  min-width:0;min-height:44px;flex:0 0 auto;
  position:relative;inset:auto;
  margin:0;padding:6px;gap:4px;border-radius:9px;
  pointer-events:auto;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.cruise-pill[hidden]{
  display:none!important;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.cruise-pill strong{font-size:11px}
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.cruise-pill small{font-size:9px}
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.cruise-pill button{
  font-size:10px;min-width:40px;min-height:44px;padding:4px;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.world-options{
  display:block;width:100%;max-width:100%;min-width:0;flex:0 0 auto;
  margin:0!important;pointer-events:auto;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.world-options>summary{
  min-height:44px;width:100%;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.world-options .world-options-content{
  max-height:min(34dvh,120px);min-height:0;overflow-y:auto;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.fountain-panel{
  width:100%;min-width:0;max-width:100%;min-height:0;flex:0 0 auto;
  margin:0;pointer-events:auto;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.fountain-panel[hidden]{display:none!important}
 body.mobile-immersive-ready .joystick{
  z-index:8;
 }
}

/* Optional home-screen installation; desktop login and 3D HUD remain unchanged. */
.pwa-install-panel[hidden]{display:none!important}
.pwa-install-panel{display:flex;align-items:center;flex-wrap:wrap;gap:6px 11px;margin:5px 0 9px;padding:0;min-width:0}
.pwa-install-button{appearance:none;border:1px solid #8badb2;border-radius:11px;background:#e1efea;color:#24565e;padding:8px 12px;font:inherit;font-size:12px;font-weight:800;line-height:1.25;cursor:pointer;white-space:normal;min-height:35px}
.pwa-install-button:hover,.pwa-install-button:focus-visible{background:#d1e8df;outline-offset:2px}
.pwa-install-button:disabled{opacity:.65;cursor:default}
.pwa-install-hint{flex:1 1 185px;font-size:11px;line-height:1.4;color:#566d70;min-width:0}
@media(min-width:901px){.pwa-install-panel{display:none!important}}
@media(max-height:410px){.pwa-install-panel{margin:3px 0 4px}.pwa-install-button{padding:5px 9px;min-height:30px}.pwa-install-hint{font-size:10px}}

/* Install app shortcut stays visible on short landscape login screens. */
.pwa-install-quick[hidden]{display:none!important}
.pwa-install-quick{appearance:none;display:inline-grid;place-items:center;flex:0 0 34px;min-width:34px;height:30px;margin:0;border:1px solid #8badb2;border-radius:9px;background:#e1efea;color:#28555b;font-size:18px;cursor:pointer;padding:0}
.pwa-install-quick:hover,.pwa-install-quick:focus-visible{background:#d1e8df;outline-offset:2px}
.pwa-install-quick:disabled{opacity:.65}
@media(max-width:900px){#entry .entry-head-actions>small{display:none!important}}

/* Samsung landscape: compact information dock, preserve the existing controls.
   The minimap, info button and landscape joystick remain at their approved locations. */
@media (orientation:landscape) and (max-height:700px) and (max-width:1024px) and (pointer:coarse),
       (orientation:landscape) and (max-height:700px) and (max-width:1024px) and (hover:none) {
 body.mobile-immersive-ready #mobileInfoToggle{
  width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;
  padding:2px!important;gap:1px!important;border-radius:9px!important;
 }
 body.mobile-immersive-ready #mobileInfoToggle>span{font-size:17px!important}
 body.mobile-immersive-ready #mobileInfoToggle>small{font-size:9px!important}
 body.mobile-immersive-ready #mobileLandscapeInfoDock{
  top:calc(44px + 4px)!important;
  width:min(182px,calc(100vw - 130px))!important;
  max-width:min(182px,calc(100vw - 130px))!important;
  padding:3px!important;gap:3px!important;border-radius:9px!important;
  max-height:max(85px,calc(100dvh - 104px - env(safe-area-inset-bottom)))!important;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.cruise-pill{
  min-height:40px!important;padding:4px!important;gap:3px!important;border-radius:8px!important;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.cruise-pill strong{font-size:10px!important;line-height:1.2}
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.cruise-pill small{font-size:9px!important;line-height:1.15;margin-top:2px!important}
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.cruise-pill button{
  min-width:36px!important;min-height:38px!important;padding:3px 4px!important;
  border-radius:7px!important;font-size:10px!important;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.world-options>summary{
  min-height:39px!important;padding:5px 32px 5px 7px!important;
  font-size:10px!important;line-height:1.2!important;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.world-options>summary::before{
  width:23px!important;height:23px!important;right:4px!important;border-radius:6px!important;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.world-options>summary::after{
  right:9px!important;border-left-width:6px!important;border-right-width:6px!important;
  border-top-width:8px!important;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.world-options .world-options-content{
  padding:0 5px 6px!important;gap:5px!important;max-height:min(30dvh,145px)!important;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock .world-options .time-selector{
  min-height:35px!important;padding:4px 5px!important;gap:3px!important;border-radius:8px!important;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock .world-options select{
  min-height:32px!important;padding:4px 5px!important;font-size:10px!important;
  border-radius:7px!important;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock .world-options .avatar-mode-control{
  gap:3px!important;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.fountain-panel{
  padding:5px!important;gap:4px!important;border-radius:8px!important;
 }
 body.mobile-immersive-ready #mobileLandscapeInfoDock>.fountain-panel button{
  min-height:36px!important;padding:4px 6px!important;font-size:10px!important;
 }
}
/* Portrait uses the same compact inner spacing; no controls are relocated. */
@media (max-width:900px) and (orientation:portrait) and (pointer:coarse),
       (max-width:900px) and (orientation:portrait) and (hover:none) {
 body.mobile-immersive-ready .right-hud.mobile-hud-info-open{width:min(190px,56vw)!important;gap:3px!important}
 body.mobile-immersive-ready .right-hud.mobile-hud-info-open>.cruise-pill{min-height:40px!important;padding:4px 5px!important}
 body.mobile-immersive-ready .right-hud.mobile-hud-info-open>.world-options>summary{
  min-height:40px!important;padding-top:5px!important;padding-bottom:5px!important;
 }
 body.mobile-immersive-ready .right-hud.mobile-hud-info-open .world-options-content{gap:5px!important;padding:0 6px 6px!important}
}

/* Two-consent companions: the incoming request is visible without blocking chat. */
.chat-quick #companionLinkAction{margin-left:auto;min-width:42px;border-color:#b4c9c1;color:#f1e6bf;transition:background .2s,border-color .2s,box-shadow .2s}
.chat-quick #companionLinkAction[data-companion-state="incoming"]{background:#496d59;border-color:#f8df86;box-shadow:0 0 0 2px #f8df8655,0 0 16px #f8df86b0;animation:companion-accept-pulse 1.35s ease-in-out infinite}
.chat-quick #companionLinkAction[data-companion-state="requested"]{background:#455c65;border-color:#e9ce8d;opacity:1}
.chat-quick #companionLinkAction[data-companion-state="active"]{background:#597753;border-color:#faf0a7;box-shadow:0 0 10px #e9cc8966;opacity:1}
.chat-quick #companionLinkAction:disabled{opacity:.36;animation:none;box-shadow:none}
.companion-link-status{display:block;margin-top:5px;color:#f4dda2;font-size:11px;line-height:1.4}
.companion-link-status[hidden]{display:none}
@keyframes companion-accept-pulse{0%,100%{box-shadow:0 0 0 1px #f8df8655,0 0 6px #f8df8670}50%{box-shadow:0 0 0 3px #f8df8677,0 0 18px #f8df86db}}
@media(prefers-reduced-motion:reduce){.chat-quick #companionLinkAction{animation:none!important}}

/* A paired visitor can reopen their 1:1 chat or unlink without locating the peer. */
.companion-peer-pill{position:fixed;z-index:14;left:50%;top:calc(77px + env(safe-area-inset-top,0px));transform:translateX(-50%);max-width:min(380px,calc(100vw - 20px));display:flex;align-items:center;gap:6px;padding:5px 6px;border-radius:14px;border:1px solid rgba(238,214,149,.65);background:rgba(26,54,57,.92);box-shadow:0 8px 24px #061d2066;color:#f8edce;backdrop-filter:blur(12px)}
.companion-peer-pill[hidden]{display:none!important}
.companion-peer-pill button{font:inherit;cursor:pointer;border-radius:9px;white-space:nowrap;border:1px solid rgba(240,224,168,.34);padding:7px 10px;min-height:32px}
.companion-peer-pill #companionPeerOpen{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;background:#426b62;color:#fff0cf;font-size:12px;font-weight:700}
.companion-peer-pill #companionPeerUnlink{flex:none;background:#76504a;color:#fff2ed;font-size:11px}
.companion-peer-pill button:focus-visible{outline:2px solid #ffe0a0;outline-offset:2px}
@media(max-width:760px){.companion-peer-pill{top:calc(57px + env(safe-area-inset-top,0px));gap:4px;padding:4px 5px}.companion-peer-pill button{min-height:29px;padding:5px 7px}.companion-peer-pill #companionPeerOpen{font-size:11px}.companion-peer-pill #companionPeerUnlink{font-size:10px}}

/* 2026-11-16 mobile vehicle rail: right below the minimap, not inside Info.
   Small yellow LED + orange indirect backlight only when boarding is allowed. */
@media (max-width:760px),
       (pointer:coarse) and (orientation:portrait) and (max-width:900px),
       (hover:none) and (orientation:portrait) and (max-width:900px),
       (pointer:coarse) and (orientation:landscape) and (max-height:700px),
       (hover:none) and (orientation:landscape) and (max-height:700px){
 body.mobile-immersive-ready #mobileVehicleRail{
  display:flex!important;position:relative;z-index:14;
  flex-direction:column;align-self:flex-end;align-items:flex-end;
  flex:0 0 auto;width:52px;max-width:52px;
  gap:7px;margin:4px 0 0;padding:0;
  pointer-events:auto;overflow:visible;
 }
 body.mobile-immersive-ready #mobileVehicleRail>.cruise-pill{
  display:flex!important;position:relative!important;inset:auto!important;
  box-sizing:border-box!important;flex:0 0 auto!important;
  flex-direction:column!important;align-items:center!important;justify-content:center!important;
  width:52px!important;min-width:52px!important;max-width:52px!important;
  height:57px!important;min-height:57px!important;max-height:57px!important;
  margin:0!important;padding:5px 3px 3px!important;gap:1px!important;
  border:1px solid rgba(227,219,189,.56)!important;border-radius:11px!important;
  background:linear-gradient(155deg,rgba(25,58,66,.95),rgba(15,37,46,.93))!important;
  box-shadow:0 3px 9px rgba(6,23,29,.5)!important;
  cursor:pointer;overflow:visible!important;pointer-events:auto;
 }
 body.mobile-immersive-ready #mobileVehicleRail>.cruise-pill>div:nth-child(2){
  display:none!important;
 }
 body.mobile-immersive-ready #mobileVehicleRail>.cruise-pill>.ship-icon{
  display:flex!important;justify-content:center;align-items:center;
  width:30px!important;height:29px!important;min-width:30px!important;
  flex:0 0 29px!important;padding:0!important;margin:0!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;color:#fff7e3!important;
  font-size:23px!important;line-height:1!important;
 }
 body.mobile-immersive-ready #mobileVehicleRail>.cruise-pill>button{
  display:block!important;box-sizing:border-box;flex:0 0 auto;
  width:100%!important;min-width:0!important;max-width:100%!important;
  min-height:19px!important;height:19px!important;
  margin:0!important;padding:1px 0!important;
  background:transparent!important;border:0!important;border-radius:3px!important;
  box-shadow:none!important;color:#f4ebd5!important;
  font:inherit;font-size:10px!important;font-weight:800!important;
  line-height:17px!important;letter-spacing:-.02em;text-align:center;
  white-space:nowrap!important;cursor:inherit;
 }
 body.mobile-immersive-ready #mobileVehicleRail>.cruise-pill>button:disabled{
  opacity:.74!important;cursor:default;
 }
 body.mobile-immersive-ready #mobileVehicleRail>.cruise-pill::before{
  content:"";position:absolute;right:4px;top:4px;
  width:7px;height:7px;border-radius:50%;
  background:#66777a;box-shadow:inset 0 0 2px rgba(0,0,0,.5);
  pointer-events:none;
 }
 body.mobile-immersive-ready #mobileVehicleRail>.cruise-pill:has(>button:not(:disabled)):not([data-aboard="true"]){
  border-color:#ffdf87!important;
  box-shadow:0 0 0 1px rgba(255,202,92,.45),
             0 0 16px 4px rgba(250,137,39,.68),
             0 0 30px 9px rgba(242,115,29,.32)!important;
 }
 body.mobile-immersive-ready #mobileVehicleRail>.cruise-pill:has(>button:not(:disabled)):not([data-aboard="true"])::before{
  background:#ffe16d;
  box-shadow:0 0 4px 2px #ffe783b8,0 0 11px 4px #f2b03f99;
 }
 body.mobile-immersive-ready #mobileVehicleRail>.cruise-pill[data-aboard="true"]{
  border-color:rgba(180,224,194,.85)!important;
  box-shadow:0 0 0 1px rgba(155,213,172,.22),0 4px 13px rgba(4,29,28,.52)!important;
 }
 body.mobile-immersive-ready #mobileVehicleRail>.cruise-pill[data-aboard="true"]>button{
  color:#fce6ac!important;
 }
 body.mobile-immersive-ready #mobileVehicleRail>.cruise-pill:focus-within{
  outline:2px solid #ffe3a1;outline-offset:2px;
 }
 body.mobile-immersive-ready .right-hud.mobile-hud-info-open #mobileVehicleRail{
  overflow:visible!important;
 }
}

/* Expanded mobile left-bottom navigation: no folding main-menu switch.
   Keep the established Move / Experience popovers and all original actions. */
@media (max-width:760px),
       (pointer:coarse) and (orientation:portrait) and (max-width:900px),
       (hover:none) and (orientation:portrait) and (max-width:900px),
       (pointer:coarse) and (orientation:landscape) and (max-height:700px),
       (hover:none) and (orientation:landscape) and (max-height:700px){
 body.mobile-immersive-ready #actionbar,
 body.mobile-immersive-ready #actionbar.mobile-nav-open{
  display:grid!important;grid-template-columns:repeat(3,46px)!important;
  grid-auto-rows:44px!important;align-items:stretch!important;
  justify-content:start!important;
  position:fixed!important;
  left:calc(7px + env(safe-area-inset-left))!important;
  right:auto!important;top:auto!important;
  bottom:calc(7px + env(safe-area-inset-bottom))!important;
  transform:none!important;
  box-sizing:border-box!important;
  width:152px!important;min-width:152px!important;max-width:152px!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  padding:4px!important;gap:3px!important;
  border-radius:12px!important;background:rgba(17,44,51,.76)!important;
  overflow:visible!important;pointer-events:auto!important;z-index:9!important;
 }
 body.mobile-immersive-ready #actionbar>#mobileNavToggle{
  display:none!important;
 }
 body.mobile-immersive-ready #actionbar>:is(#nameplatesToggleAction,#aboutMeAction,#empathyAction,#homeAction,#moveAction,#venueAction),
 body.mobile-immersive-ready #actionbar.mobile-nav-open>:is(#nameplatesToggleAction,#aboutMeAction,#empathyAction,#homeAction,#moveAction,#venueAction){
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;
  width:46px!important;min-width:46px!important;max-width:46px!important;
  height:44px!important;min-height:44px!important;max-height:44px!important;
  margin:0!important;padding:3px 1px!important;gap:2px!important;
  border-radius:8px!important;position:relative!important;
 }
 body.mobile-immersive-ready #actionbar>:is(#nameplatesToggleAction,#aboutMeAction,#empathyAction,#homeAction,#moveAction,#venueAction)>span{
  font-size:19px!important;line-height:1!important;
 }
 body.mobile-immersive-ready #actionbar>:is(#nameplatesToggleAction,#aboutMeAction,#empathyAction,#homeAction,#moveAction,#venueAction)>small{
  display:block!important;font-size:9px!important;line-height:1.13!important;
  max-width:100%!important;overflow:hidden!important;
  white-space:nowrap!important;text-overflow:ellipsis!important;
 }
 body.mobile-immersive-ready #actionbar>#nameplatesToggleAction>small{
  font-size:8px!important;letter-spacing:-.3px!important;
 }
 body.mobile-immersive-ready #actionbar>#nameplatesToggleAction .nav-name-eye,
 body.mobile-immersive-ready #actionbar>#nameplatesToggleAction .nav-name-eye svg{
  width:21px!important;height:21px!important;
 }
 body.mobile-immersive-ready #actionbar>.mobile-extra{
  display:none!important;
 }
 body.mobile-immersive-ready #actionbar>.nav-foldout-menu{
  left:0!important;right:auto!important;
  bottom:calc(100% + 6px)!important;max-height:calc(100dvh - 143px)!important;
 }
 body.mobile-immersive-ready #actionbar>.nav-foldout-menu[hidden]{
  display:none!important;
 }
}


/* 2026-11-16 v2: landscape single-row navigation; portrait two rows.
   Vehicle button outer dimensions mirror CURRENT graffiti-tab bounding box. */
@media (orientation:landscape) and (max-width:760px),
       (orientation:landscape) and (max-height:700px) and (pointer:coarse),
       (orientation:landscape) and (max-height:700px) and (hover:none){
 body.mobile-immersive-ready #actionbar,
 body.mobile-immersive-ready #actionbar.mobile-nav-open{
  grid-template-columns:repeat(6,46px)!important;
  grid-auto-rows:44px!important;
  width:299px!important;min-width:299px!important;max-width:299px!important;
 }
}
@media (orientation:portrait) and (max-width:760px),
       (orientation:portrait) and (max-width:900px) and (pointer:coarse),
       (orientation:portrait) and (max-width:900px) and (hover:none){
 body.mobile-immersive-ready #actionbar,
 body.mobile-immersive-ready #actionbar.mobile-nav-open{
  grid-template-columns:repeat(3,46px)!important;
  grid-auto-rows:44px!important;
  width:152px!important;min-width:152px!important;max-width:152px!important;
 }
}
@media (max-width:760px),
       (pointer:coarse) and (orientation:portrait) and (max-width:900px),
       (hover:none) and (orientation:portrait) and (max-width:900px),
       (pointer:coarse) and (orientation:landscape) and (max-height:700px),
       (hover:none) and (orientation:landscape) and (max-height:700px){
 body.mobile-immersive-ready #mobileVehicleRail{
  width:var(--vehicle-card-width,46px)!important;
  min-width:var(--vehicle-card-width,46px)!important;
  max-width:var(--vehicle-card-width,46px)!important;
 }
 body.mobile-immersive-ready #mobileVehicleRail>.cruise-pill{
  width:var(--vehicle-card-width,46px)!important;
  min-width:var(--vehicle-card-width,46px)!important;
  max-width:var(--vehicle-card-width,46px)!important;
  height:var(--vehicle-card-height,44px)!important;
  min-height:var(--vehicle-card-height,44px)!important;
  max-height:var(--vehicle-card-height,44px)!important;
  gap:0!important;
  padding:2px 2px!important;
 }
 body.mobile-immersive-ready #mobileVehicleRail>.cruise-pill>.ship-icon{
  height:clamp(19px,calc(var(--vehicle-card-height,44px) - 23px),30px)!important;
  min-height:0!important;
  max-height:30px!important;
  flex:0 0 auto!important;
  font-size:clamp(19px,calc(var(--vehicle-card-height,44px) * .45),24px)!important;
  line-height:1!important;
 }
 body.mobile-immersive-ready #mobileVehicleRail>.cruise-pill>button{
  height:15px!important;min-height:15px!important;max-height:15px!important;
  line-height:14px!important;font-size:9px!important;
  padding:0!important;margin:0!important;flex:0 0 auto!important;
 }
}

/* Compact centered hologram settings. Reuse the ORIGINAL time/animation/fountain
   controls; move only the existing Info trigger to the top bar before logout. */
#mobileSettingsOverlay[hidden]{display:none!important}
/* Shared PC and mobile settings overlay styles; no mobile-only media scope. */
 body.mobile-immersive-ready .top-actions #mobileInfoToggle{
  display:inline-flex!important;position:static!important;
  inset:auto!important;transform:none!important;
  flex:0 0 32px!important;
  width:32px!important;min-width:32px!important;max-width:32px!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;
  box-sizing:border-box!important;padding:0!important;margin:0!important;
  justify-content:center!important;align-items:center!important;
  border:1px solid rgba(233,211,168,.44)!important;border-radius:9px!important;
  background:rgba(25,53,60,.76)!important;color:#f8ebcd!important;
  box-shadow:0 3px 10px #041e285a!important;
  z-index:auto!important;pointer-events:auto!important;
 }
 body.mobile-immersive-ready .top-actions #mobileInfoToggle>span{
  display:block!important;font-size:22px!important;line-height:1!important;
  transform:none!important;letter-spacing:0!important;
 }
 body.mobile-immersive-ready .top-actions #mobileInfoToggle>small{
  display:none!important;
 }
 body.mobile-immersive-ready .top-actions #mobileInfoToggle[aria-expanded="true"]{
  color:#ffdf98!important;border-color:#ffdf98!important;
  box-shadow:0 0 11px #d4aa5270!important;
 }
 body.mobile-immersive-ready .right-hud #mobileInfoToggle{
  display:none!important;
 }
 body.mobile-immersive-ready #mobileSettingsOverlay:not([hidden]){
  display:flex!important;position:fixed!important;inset:0!important;
  z-index:75!important;
  align-items:center!important;justify-content:center!important;
  padding:14px max(14px,env(safe-area-inset-right)) 14px max(14px,env(safe-area-inset-left))!important;
  background:rgba(6,23,32,.48)!important;
  backdrop-filter:blur(3px)!important;
  -webkit-backdrop-filter:blur(3px)!important;
  overscroll-behavior:contain!important;pointer-events:auto!important;
 }
 body.mobile-immersive-ready #mobileSettingsPanel{
  position:relative;display:flex;flex-direction:column;
  box-sizing:border-box!important;
  width:fit-content!important;min-width:min(238px,calc(100vw - 30px))!important;
  max-width:min(316px,calc(100vw - 30px))!important;
  max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  padding:11px 12px 12px!important;gap:8px!important;
  border:1px solid rgba(255,221,155,.56)!important;border-radius:15px!important;
  color:#f9f2dc!important;
  background:linear-gradient(140deg,rgba(29,64,73,.91),rgba(12,35,45,.94))!important;
  box-shadow:0 0 0 1px rgba(164,216,211,.12),
    0 12px 44px rgba(1,15,24,.63),inset 0 0 29px rgba(131,203,218,.09)!important;
  backdrop-filter:blur(17px)!important;-webkit-backdrop-filter:blur(17px)!important;
  scrollbar-width:thin;pointer-events:auto!important;
 }
 body.mobile-immersive-ready #mobileSettingsPanel>.mobile-settings-heading{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;flex:0 0 auto!important;
  padding:0 0 7px;margin:0 0 1px;
  border-bottom:1px solid rgba(255,226,162,.23);
 }
 body.mobile-immersive-ready #mobileSettingsTitle{
  font-size:14px;line-height:1.35;letter-spacing:-.02em;color:#ffe6ad;
 }
 body.mobile-immersive-ready #mobileSettingsClose{
  display:grid;place-items:center;flex:0 0 30px;
  width:30px;height:30px;min-width:30px;min-height:30px;
  padding:0;border:1px solid rgba(224,222,195,.38);
  border-radius:8px;background:rgba(36,75,80,.6);color:#f7edda;
  font-size:23px;line-height:1;
 }
 body.mobile-immersive-ready #mobileSettingsOverlay #mobileLandscapeInfoDock{
  display:flex!important;position:static!important;inset:auto!important;
  transform:none!important;box-sizing:border-box!important;
  flex-direction:column;align-items:stretch;gap:7px!important;
  width:auto!important;min-width:0!important;max-width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;overflow-x:visible!important;overflow-y:visible!important;
  margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;
  pointer-events:auto!important;touch-action:auto!important;
 }
 body.mobile-immersive-ready #mobileSettingsOverlay #mobileLandscapeInfoDock>.world-options{
  display:block!important;width:100%!important;max-width:100%!important;
  min-width:0!important;margin:0!important;flex:0 0 auto!important;
 }
 body.mobile-immersive-ready #mobileSettingsOverlay #worldOptions>summary{
  display:none!important;
 }
 body.mobile-immersive-ready #mobileSettingsOverlay #worldOptions .world-options-content{
  display:flex!important;flex-direction:column!important;
  width:100%!important;max-height:none!important;overflow:visible!important;
  margin:0!important;padding:0!important;gap:8px!important;
 }
 body.mobile-immersive-ready #mobileSettingsOverlay #worldOptions :is(.time-selector,.avatar-mode-control){
  width:100%!important;min-width:0!important;min-height:37px!important;
  gap:5px!important;padding:5px 7px!important;
 }
 body.mobile-immersive-ready #mobileSettingsOverlay #worldOptions select{
  min-width:0!important;width:100%!important;max-width:100%!important;
  min-height:34px!important;padding:5px 7px!important;font-size:12px!important;
 }
 body.mobile-immersive-ready #mobileSettingsOverlay #mobileLandscapeInfoDock>.fountain-panel{
  display:flex!important;flex-direction:column!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:6px!important;gap:5px!important;
 }
 body.mobile-immersive-ready #mobileSettingsOverlay #mobileLandscapeInfoDock>.fountain-panel[hidden]{
  display:none!important;
 }
 body.mobile-immersive-ready #mobileSettingsOverlay button:focus-visible,
 body.mobile-immersive-ready #mobileSettingsOverlay select:focus-visible{
  outline:2px solid #ffe1a2!important;outline-offset:2px!important;
 }




/* Shared PC + mobile vertical riverside shortcuts, all sharing the original
   graffiti-tab z-index (7). Original buttons and event handlers are preserved. */
body {
 --riverside-rail-left:max(6px,env(safe-area-inset-left));
 --riverside-rail-top:clamp(100px,42dvh,350px);
 --riverside-rail-width:54px;
 --riverside-rail-height:57px;
 --riverside-rail-gap:7px;
}
body .top-actions #riverOpen,
body .graffiti-side .graffiti-tab,
body #todayTab,
body .river-kiosk-launch {
 box-sizing:border-box!important;
 width:var(--riverside-rail-width)!important;
 min-width:var(--riverside-rail-width)!important;
 max-width:var(--riverside-rail-width)!important;
 height:var(--riverside-rail-height)!important;
 min-height:var(--riverside-rail-height)!important;
 max-height:var(--riverside-rail-height)!important;
 border:1px solid #eedbaa99!important;
 border-radius:11px!important;
 background:rgba(26,58,64,.84)!important;
 color:#fff!important;
 box-shadow:0 5px 18px #0b232c70!important;
 backdrop-filter:blur(7px);
 -webkit-backdrop-filter:blur(7px);
 padding:4px 2px!important;
 margin:0!important;
 font-size:17px!important;
 line-height:1.1!important;
 text-align:center!important;
 align-items:center!important;
 justify-content:center!important;
 flex-direction:column!important;
 gap:2px!important;
 z-index:7!important;
 pointer-events:auto!important;
}
body .top-actions #riverOpen{
 display:flex!important;
 position:fixed!important;
 top:var(--riverside-rail-top)!important;
 left:var(--riverside-rail-left)!important;
 right:auto!important;bottom:auto!important;transform:none!important;
 font-size:9px!important;font-weight:750!important;
 letter-spacing:-.02em!important;
 white-space:normal!important;
 word-break:keep-all!important;
 cursor:pointer!important;
}
body .top-actions #riverOpen::before{
 content:"🌐";display:block;font-size:17px;line-height:1.05;
}
body.mobile-immersive-ready .graffiti-side-south,
body.mobile-immersive-ready .graffiti-side-north,
body .graffiti-side-south,
body .graffiti-side-north{
 position:fixed!important;
 top:calc(var(--riverside-rail-top) + var(--riverside-rail-height) + var(--riverside-rail-gap))!important;
 left:var(--riverside-rail-left)!important;
 right:auto!important;bottom:auto!important;transform:none!important;
 z-index:7!important;
}
body .graffiti-side .graffiti-tab{
 display:flex!important;cursor:pointer!important;
}
body .graffiti-side .graffiti-tab span,
body #todayTab .today-tab-text,
body .river-kiosk-launch .river-kiosk-launch-label{
 font-size:9px!important;line-height:1.12!important;
 font-weight:750!important;word-break:keep-all!important;
 white-space:normal!important;overflow-wrap:anywhere!important;
}
body #todayTab{
 display:flex!important;
 position:fixed!important;
 top:calc(var(--riverside-rail-top) + (var(--riverside-rail-height) + var(--riverside-rail-gap))*2)!important;
 left:var(--riverside-rail-left)!important;
 right:auto!important;bottom:auto!important;transform:none!important;
 cursor:pointer!important;
}
body .river-kiosk-launch{
 display:flex!important;
 position:fixed!important;
 top:calc(var(--riverside-rail-top) + (var(--riverside-rail-height) + var(--riverside-rail-gap))*3)!important;
 left:var(--riverside-rail-left)!important;
 right:auto!important;bottom:auto!important;transform:none!important;
 cursor:pointer!important;
}
body .river-kiosk-launch .river-kiosk-launch-icon{
 font-size:18px!important;line-height:1!important;
}
body .graffiti-side .graffiti-tab[hidden],
body #todayTab[hidden],
body .river-kiosk-launch[hidden]{
 display:none!important;
}
body #helpRiverOpen{display:none!important}
/* If scene is busy with chat, preserve original chat layering. */
body.zone-chat-typing .top-actions #riverOpen,
body.zone-chat-typing #todayTab {visibility:hidden!important;pointer-events:none!important}
@media (orientation:landscape) and (max-height:700px){
 body{
  --riverside-rail-top:calc(53px + env(safe-area-inset-top));
  --riverside-rail-width:46px;
  --riverside-rail-height:44px;
  --riverside-rail-gap:6px;
 }
}
@media (orientation:portrait) and (max-width:900px){
 body{
  --riverside-rail-top:clamp(132px,30dvh,285px);
  --riverside-rail-width:42px;
  --riverside-rail-height:58px;
  --riverside-rail-gap:7px;
 }
}
@media (max-height:310px){
 body{
  --riverside-rail-top:40px;
  --riverside-rail-height:40px;
  --riverside-rail-gap:2px;
 }
}

/* Existing 16-country river picker, centered compact hologram modal.
   Keep original selector/image/destination link; new buttons only confirm/cancel. */
#riverSelectionOverlay[hidden]{display:none!important}
#riverSelectionOverlay:not([hidden]){
 position:fixed!important;
 z-index:75!important;
 inset:0!important;
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 padding:12px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left))!important;
 background:rgba(6,23,32,.5)!important;
 backdrop-filter:blur(4px);
 -webkit-backdrop-filter:blur(4px);
 pointer-events:auto!important;
}
#riverSelectionOverlay #regionPanel{
 position:relative!important;
 inset:auto!important;left:auto!important;right:auto!important;
 top:auto!important;bottom:auto!important;transform:none!important;
 display:flex!important;flex-direction:column!important;
 box-sizing:border-box!important;
 width:fit-content!important;
 min-width:min(260px,calc(100vw - 28px))!important;
 max-width:min(338px,calc(100vw - 28px))!important;
 height:auto!important;min-height:0!important;
 max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
 overflow-x:hidden!important;overflow-y:auto!important;
 padding:12px 13px!important;
 margin:0!important;gap:6px!important;
 background:linear-gradient(140deg,rgba(29,64,73,.94),rgba(12,35,45,.94))!important;
 border:1px solid rgba(255,221,155,.58)!important;border-radius:15px!important;
 color:#f9f2dc!important;
 box-shadow:0 0 0 1px rgba(164,216,211,.12),0 12px 45px rgba(1,15,24,.65),inset 0 0 29px rgba(131,203,218,.10)!important;
 backdrop-filter:blur(14px)!important;
 -webkit-backdrop-filter:blur(14px)!important;
 scrollbar-width:thin;
}
#riverSelectionOverlay #regionPanel.hidden{display:none!important}
#riverSelectionOverlay #regionPanel .drawer-head{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 margin:0!important;padding-bottom:5px!important;border-bottom:1px solid #ffdc9c55!important;
}
#riverSelectionOverlay #regionPanel .drawer-head .eyebrow{font-size:8px!important}
#riverSelectionOverlay #regionPanel #regionNotice{
 margin:1px 0 3px!important;
 font-size:11px!important;line-height:1.35!important;
}
#riverSelectionOverlay #regionPanel #regionSelectLabel{
 display:block!important;margin:0 0 1px!important;font-size:11px!important;
}
#riverSelectionOverlay #regionPanel #regionSelect{
 display:block!important;width:100%!important;max-width:100%!important;
 min-height:36px!important;height:36px!important;
 margin:0!important;padding:5px 7px!important;
 border-radius:9px!important;background:#244c56!important;color:#fff8e4!important;
 border:1px solid rgba(235,219,174,.48)!important;
 font-size:12px!important;
}
#riverSelectionOverlay #regionPanel #regionPreview{
 display:flex!important;flex-direction:column!important;
 min-width:0!important;max-width:100%!important;
 margin:2px 0!important;padding:6px!important;gap:3px!important;
 border-radius:10px!important;
 background:rgba(8,32,40,.28)!important;
}
#riverSelectionOverlay #regionPanel #regionPhoto{
 display:block!important;width:100%!important;
 height:112px!important;min-height:0!important;
 object-fit:cover!important;border-radius:9px!important;
 margin:0!important;
}
#riverSelectionOverlay #regionPanel #regionPhoto[hidden]{display:none!important}
#riverSelectionOverlay #regionPanel #regionLocation{
 margin:2px 0!important;font-size:13px!important;line-height:1.2!important;
}
#riverSelectionOverlay #regionPanel #regionStatus{
 margin:0!important;font-size:11px!important;line-height:1.3!important;
}
#riverSelectionOverlay #regionPanel #regionCredits{
 font-size:9px!important;line-height:1.25!important;
}
#riverSelectionOverlay #regionPanel #regionLiveJump,
#riverSelectionOverlay #regionPanel #regionReturn{
 display:none!important;
}
#riverSelectionOverlay #regionModalActions{
 display:flex;justify-content:flex-end;gap:8px;
 position:sticky;bottom:0;z-index:1;
 padding-top:6px;margin-top:2px;
 background:linear-gradient(0deg,rgba(15,41,50,.96),rgba(15,41,50,.08));
}
#riverSelectionOverlay #regionModalActions button{
 min-height:36px!important;min-width:78px!important;
 padding:6px 11px!important;
 border-radius:9px!important;
 background:#2a535d!important;color:#fff7e5!important;
 border:1px solid #d4d5bb75!important;
 font-size:12px!important;font-weight:750!important;cursor:pointer!important;
}
#riverSelectionOverlay #regionModalActions #regionConfirm:not(:disabled){
 color:#1c4047!important;background:#f2d79d!important;
 border-color:#ffe4ae!important;
}
#riverSelectionOverlay #regionModalActions #regionConfirm:disabled{
 opacity:.48!important;cursor:default!important;
}
#riverSelectionOverlay #regionPanel :is(button,select,a):focus-visible{
 outline:2px solid #ffe4ad!important;outline-offset:2px!important;
}
@media (max-height:540px){
 #riverSelectionOverlay #regionPanel{padding:8px 10px!important;gap:3px!important}
 #riverSelectionOverlay #regionPanel #regionPhoto{height:72px!important}
 #riverSelectionOverlay #regionPanel #regionNotice{margin:0!important;font-size:10px!important}
 #riverSelectionOverlay #regionModalActions button{min-height:32px!important;padding:3px 7px!important}
}



/* PC header settings gear: identical outer dimensions and shape to logout/fullscreen.
   Mobile landscape/portrait keeps the previously approved 32px icon untouched. */
@media (min-width:761px) and (hover:hover) and (pointer:fine){
 body.mobile-immersive-ready .top-actions #mobileInfoToggle{
  flex:0 0 42px!important;
  box-sizing:border-box!important;
  width:42px!important;min-width:42px!important;max-width:42px!important;
  height:42px!important;min-height:42px!important;max-height:42px!important;
  border-radius:13px!important;
  border:1px solid rgba(235,235,218,.25)!important;
  background:rgba(21,41,48,.55)!important;
  box-shadow:none!important;
  align-items:center!important;justify-content:center!important;
 }
}
/* MOBILE_LEFT_RAIL_CENTER_20261119_V1 */
/* Landscape handset: center the five left controls as one visual group.
   The visitor guide docks above riverOpen; EasyPlan docks below Today.
   The four base controls retain their own handlers, sizes and spacing. */
@media (orientation:landscape) and (max-width:1024px) and (max-height:700px) and (pointer:coarse),
       (orientation:landscape) and (max-width:1024px) and (max-height:700px) and (hover:none) {
 body { --riverside-rail-top:calc(50dvh - 72px); }
}
/* The existing ultra-short viewport switches to 40px buttons and 2px gaps. */
@media (orientation:landscape) and (max-width:1024px) and (max-height:310px) and (pointer:coarse),
       (orientation:landscape) and (max-width:1024px) and (max-height:310px) and (hover:none) {
 body { --riverside-rail-top:calc(50dvh - 62px); }
}


/* 2026-11-23: boarding-pass vehicle HUD. Visual-only; native boat/plane actions stay authoritative. */
.right-hud > .cruise-pill {
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) 70px;
  gap:0;align-items:stretch;box-sizing:border-box;min-height:82px;
  padding:10px 0 10px 13px;border-radius:2px;
  border:1px solid #B3B3B3;background:rgba(43,43,43,.96);color:#FFFFFF;
  box-shadow:0 8px 24px rgba(0,0,0,.32);overflow:visible;
}
.right-hud > .cruise-pill + .cruise-pill:not([hidden]){margin-top:5px}
.right-hud > .cruise-pill > .ship-icon{display:none}
.right-hud > .cruise-pill > div:nth-child(2){
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  min-width:0;padding:0 9px 0 0;
}
.right-hud > .cruise-pill > div:nth-child(2)::before{
  content:"BOARDING PASS";display:block;margin:0 0 5px;
  font-size:9px;font-weight:750;letter-spacing:.16em;color:#D4D4D4;
  white-space:nowrap;
}
.right-hud > .cruise-pill strong{font-size:13px;line-height:1.3;color:#FFFFFF;letter-spacing:0;overflow-wrap:anywhere}
.right-hud > .cruise-pill small{font-size:10px;line-height:1.25;color:#D4D4D4;margin-top:3px;overflow-wrap:anywhere}
.right-hud > .cruise-pill > button{
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  align-self:stretch;gap:3px;box-sizing:border-box;min-width:0;width:70px;height:auto;
  padding:6px 3px;margin:-10px 0 -10px 0;border:0;border-left:1px dashed #B3B3B3;
  border-radius:0;background:transparent;color:#FFFFFF;
  font-family:inherit;font-size:11px;font-weight:700;line-height:1.2;text-align:center;
  cursor:pointer;word-break:keep-all;
}
.right-hud > .cruise-pill > button::after{content:"↗";font-size:18px;font-weight:500;line-height:1}
.right-hud > .cruise-pill > button:disabled{color:#B3B3B3;cursor:default;opacity:.72}
.right-hud > .cruise-pill > button:not(:disabled):hover{background:rgba(255,255,255,.10)}
.right-hud > .cruise-pill > button:focus-visible{outline:2px solid #FFFFFF;outline-offset:-3px}
.right-hud > .cruise-pill::before,.right-hud > .cruise-pill::after{
  content:"";position:absolute;right:64px;width:10px;height:10px;border-radius:50%;
  background:#D4D4D4;z-index:1;pointer-events:none;
}
.right-hud > .cruise-pill::before{top:-5px}
.right-hud > .cruise-pill::after{bottom:-5px}
/* Preserve the approved 52 x 57 mobile rail and real native action button. */
@media (max-width:760px),
       (pointer:coarse) and (orientation:portrait) and (max-width:900px),
       (hover:none) and (orientation:portrait) and (max-width:900px),
       (pointer:coarse) and (orientation:landscape) and (max-height:700px),
       (hover:none) and (orientation:landscape) and (max-height:700px){
  body.mobile-immersive-ready #mobileVehicleRail > .cruise-pill{
    border-radius:2px!important;background:rgba(43,43,43,.96)!important;
    border-color:#B3B3B3!important;
  }
  body.mobile-immersive-ready #mobileVehicleRail > .cruise-pill > .ship-icon{
    color:#FFFFFF!important;
  }
  body.mobile-immersive-ready #mobileVehicleRail > .cruise-pill > button{
    border-top:1px dashed #B3B3B3!important;border-radius:0!important;
    color:#FFFFFF!important;
  }
  body.mobile-immersive-ready #mobileVehicleRail > .cruise-pill[data-aboard="true"]{
    border-color:#FFFFFF!important;box-shadow:0 0 0 1px #B3B3B3,0 3px 9px rgba(0,0,0,.4)!important;
  }
  body.mobile-immersive-ready #mobileVehicleRail > .cruise-pill[data-aboard="true"] > button{
    color:#FFFFFF!important;
  }
}


/* 2026-11-23: compact vehicle boarding pass v2. 82px -> 42px, title/status same row.
   Pure presentation; original boatAction/planeAction and mobile 52x57 rail unchanged. */
.right-hud > .cruise-pill {
  grid-template-columns:minmax(0,1fr) 54px;
  min-height:42px;height:42px;
  padding:5px 0 5px 6px;
  gap:0;
}
.right-hud > .cruise-pill + .cruise-pill:not([hidden]) { margin-top:0; }
.right-hud > .cruise-pill > div:nth-child(2) {
  display:grid;min-width:0;
  grid-template-columns:max-content minmax(0,1fr);
  grid-template-rows:11px 16px;
  align-content:center;align-items:center;
  column-gap:4px;row-gap:0;
  padding:0 4px 0 0;
}
.right-hud > .cruise-pill > div:nth-child(2)::before {
  grid-column:1 / -1;grid-row:1;
  margin:0;line-height:11px;font-size:8px;letter-spacing:.13em;
}
.right-hud > .cruise-pill strong {
  grid-column:1;grid-row:2;
  display:block;min-width:0;font-size:11px;line-height:16px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.right-hud > .cruise-pill small {
  grid-column:2;grid-row:2;
  display:block;min-width:0;max-width:100%;
  margin:0;text-align:right;font-size:9px;line-height:16px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.right-hud > .cruise-pill > button {
  flex-direction:row;gap:2px;
  width:54px;min-width:0;margin:-5px 0;
  padding:3px 1px;white-space:nowrap;
  font-size:10px;line-height:14px;
}
.right-hud > .cruise-pill > button::after {
  font-size:14px;line-height:14px;
}
.right-hud > .cruise-pill::before,
.right-hud > .cruise-pill::after {
  right:49px;width:8px;height:8px;
}
.right-hud > .cruise-pill::before{top:-4px}
.right-hud > .cruise-pill::after{bottom:-4px}

/* 2026-11-23: common 16-river message board hologram, matching Today... and the Riverside Guide.
   PRESENTATION ONLY. No API, moderation, language, post/editor or account behavior changes. */
#helpPanel.help-panel {
  position:fixed;
  z-index:39;
  left:clamp(12px,16.52vw,285px);
  right:auto;
  top:2.4vh;
  bottom:2.4vh;
  width:min(620px,calc(100vw - 28px));
  min-width:0;
  display:flex;
  flex-direction:column;
  padding:0;
  overflow:hidden;
  border:1px solid #bfded6a8;
  border-radius:20px;
  background:linear-gradient(150deg,rgba(25,63,66,.37),rgba(13,48,61,.45));
  box-shadow:inset 0 0 25px #d8d9a81a,0 0 28px #163e5855;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  color:#f3ffff;
}
#helpPanel>.drawer-head {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex:0 0 64px;
  min-height:64px;
  margin:0;
  padding:10px 19px;
  border-bottom:1px solid #c7e3e23c;
  background:rgba(3,41,58,.26);
}
#helpPanel #helpGuestbookTitle {
  position:absolute;
  top:19px;
  left:20px;
  margin:0;
  max-width:calc(100% - 175px);
  color:#ecfcfa;
  font-size:22px;
  font-weight:650;
  line-height:1.3;
  letter-spacing:.015em;
  overflow-wrap:anywhere;
}
#helpPanel .help-drawer-actions{display:flex;gap:7px;align-items:center}
#helpPanel .help-drawer-actions .close,
#helpPanel #helpRiverOpen,
#helpPanel #helpGuestbookRefresh,
#helpPanel .guestbook-owner-actions button,
#helpPanel .guestbook-editor-actions button{
  color:#eaffff;
  border:1px solid #aad7da65;
  border-radius:8px;
  box-shadow:none;
  background:rgba(29,99,112,.42);
  font-weight:550;
}
#helpPanel .help-drawer-actions .close{
  width:37px;
  height:37px;
  padding:0;
  color:#fff;
  font-size:23px;
}
#helpPanel .help-drawer-actions .close:hover,
#helpPanel #helpRiverOpen:hover,
#helpPanel #helpGuestbookRefresh:hover,
#helpPanel .guestbook-owner-actions button:hover,
#helpPanel .guestbook-editor-actions button:hover{background:rgba(50,122,129,.55)}
#helpPanel>.help-guestbook {
  display:flex;
  flex:1 1 0;
  flex-direction:column;
  min-height:0;
  gap:7px;
  margin:0;
  padding:10px 17px 12px;
  border:0;
  overflow:hidden;
}
#helpPanel .guestbook-heading{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  flex:0 0 auto;
  gap:8px;
  min-height:30px;
}
#helpPanel #helpGuestbookRefresh{padding:6px 10px;font-size:11px}
#helpPanel .guestbook-intro{
  flex:0 0 auto;
  color:#d5eeec;
  font-size:11px;
  line-height:1.45;
}
#helpPanel .guestbook-list {
  flex:1 1 0;
  min-height:0;
  max-height:none;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#a7dbd69c transparent;
  padding:4px 5px;
  color:#f3ffff;
  border:1px solid #b8eeef44;
  border-left:none;
  border-right:none;
  border-radius:0;
  background:rgba(5,32,43,.14);
}
#helpPanel .guestbook-post{
  padding:11px 7px 12px;
  border-bottom:1px solid #b8eeef39;
  background:transparent;
}
#helpPanel .guestbook-post:last-child{border-bottom:0}
#helpPanel .guestbook-meta strong{color:#e8f5f2;font-size:12px;font-weight:650}
#helpPanel .guestbook-meta time{color:#c7dddb;font-size:10px}
#helpPanel .guestbook-text{color:#f3ffff;font-size:13px;line-height:1.65}
#helpPanel .guestbook-empty{color:#d1e8e6}
#helpPanel .guestbook-form{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  gap:7px;
  margin:0;
  padding:1px 0 0;
}
#helpPanel .guestbook-form textarea,
#helpPanel .guestbook-editor textarea{
  box-sizing:border-box;
  width:100%;
  min-height:62px;
  max-height:112px;
  resize:vertical;
  padding:9px 11px;
  border:1px solid #b8dad954;
  border-radius:8px;
  background:rgba(10,55,67,.34);
  color:#f3ffff;
  font:inherit;
  font-size:12px;
  line-height:1.55;
}
#helpPanel .guestbook-form textarea::placeholder{color:#c9e3e0;opacity:.78}
#helpPanel .guestbook-form textarea:disabled{opacity:.62}
#helpPanel .guestbook-actions{align-items:center;gap:7px}
#helpPanel .guestbook-actions span{color:#d5eeec;font-size:11px}
#helpPanel .guestbook-actions button,
#helpPanel .guestbook-editor-actions button[type=submit]{
  border:1px solid #d4efe5;
  border-radius:8px;
  padding:8px 12px;
  background:#dbf3e8;
  color:#153e45;
  font-size:12px;
  font-weight:700;
}
#helpPanel .guestbook-actions button:disabled{opacity:.56;cursor:default}
#helpPanel .guestbook-policy{flex:0 0 auto;color:#c7dfdd;font-size:10px}
#helpPanel :is(button,textarea):focus-visible{outline:2px solid #d4f0e8;outline-offset:2px}
@media (max-width:900px){
 #helpPanel.help-panel{
  left:max(7px,env(safe-area-inset-left));
  right:auto;
  top:7px;
  bottom:7px;
  width:min(560px,calc(100vw - 14px));
  border-radius:13px;
 }
 #helpPanel>.drawer-head{flex-basis:48px;min-height:48px;padding:5px 11px}
 #helpPanel #helpGuestbookTitle{top:13px;left:13px;font-size:17px;max-width:calc(100% - 135px)}
 #helpPanel>.help-guestbook{padding:6px 10px 8px;gap:5px}
 #helpPanel .guestbook-intro{font-size:10px}
}
@media (max-height:500px) and (orientation:landscape){
 #helpPanel.help-panel{top:4px;bottom:4px;width:min(560px,calc(100vw - 10px));border-radius:10px}
 #helpPanel>.drawer-head{flex-basis:38px;min-height:38px;padding:3px 9px}
 #helpPanel #helpGuestbookTitle{top:7px;left:12px;font-size:15px}
 #helpPanel .help-drawer-actions .close{width:31px;height:31px;font-size:22px}
 #helpPanel>.help-guestbook{gap:3px;padding:3px 9px 5px}
 #helpPanel .guestbook-heading{min-height:23px}
 #helpPanel #helpGuestbookRefresh{padding:3px 8px}
 #helpPanel .guestbook-intro,#helpPanel .guestbook-policy{display:none}
 #helpPanel .guestbook-list{min-height:0}
 #helpPanel .guestbook-post{padding:5px 6px 7px}
 #helpPanel .guestbook-text{font-size:11px;line-height:1.35}
 #helpPanel .guestbook-form{gap:3px}
 #helpPanel .guestbook-form textarea{min-height:36px;height:38px;max-height:60px;padding:4px 8px}
 #helpPanel .guestbook-actions button{padding:4px 9px}
}
@media(max-width:480px) and (min-height:501px){
 #helpPanel.help-panel{width:calc(100vw - 12px);left:6px;right:6px}
 #helpPanel>.drawer-head{flex-basis:51px;min-height:51px}
 #helpPanel #helpGuestbookTitle{font-size:17px}
 #helpPanel>.help-guestbook{padding:7px 11px 10px}
 #helpPanel .guestbook-form textarea{min-height:54px}
}
