@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');
:root{--ink:#283c37;--sage:#436457;--muted:#788078;--cream:#f7f6f0;--border:#dfe3d9}*{box-sizing:border-box}body{margin:0;background:#cbd4c1;color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #b99753;outline-offset:4px}[hidden]{display:none!important}#world{position:fixed;inset:84px 0 34px;width:100%;height:calc(100% - 118px);touch-action:none}header{height:84px;position:fixed;inset:0 0 auto;background:var(--cream);display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--border);z-index:3}.brand{text-decoration:none;display:flex;align-items:center;gap:12px;color:var(--ink);font-family:'Libre Caslon Display',Georgia,serif;font-size:32px}.brand-icon{font:44px Georgia;color:#799481}.brand-sub{display:block;font-family:'DM Sans',sans-serif;font-size:8px;letter-spacing:2px;margin-top:2px}nav{display:flex;align-items:center;gap:25px}.text-button{border:0;background:none;color:var(--ink);padding:8px 0;font-size:12px}.divider{height:18px;width:1px;background:#d7ddd3}.location{font-size:12px;display:flex;align-items:center;gap:9px}.dot{display:inline-block;width:7px;height:7px;background:#6b8d71;border-radius:50%;box-shadow:0 0 0 4px #789b7320}main{position:fixed;z-index:2;top:84px;bottom:34px;left:0;pointer-events:none}.welcome{width:400px;height:100%;overflow:auto;background:var(--cream);padding:50px 46px 25px;pointer-events:auto;box-shadow:12px 0 50px #263c3214}.eyebrow{font-size:9px;letter-spacing:2.2px;color:#7b8978;font-weight:600}h1{font-family:'Libre Caslon Display',Georgia,serif;font-size:70px;font-weight:400;line-height:.99;letter-spacing:-1.7px;margin:25px 0 24px}h1 em{font-style:italic;color:#6d8974}.intro{font-size:14px;line-height:1.8;color:#788176}.line{height:1px;background:var(--border);margin:27px 0}.invitation{font-size:12px;line-height:1.9;color:#657367;margin-bottom:23px}label{font-size:11px;font-weight:500;display:block;margin-bottom:10px}input{background:#fffefa;border:1px solid #d9dfd3;border-radius:6px;height:46px;width:100%;padding:0 14px;color:var(--ink);font-size:12px}.primary{background:var(--sage);color:white;display:flex;align-items:center;justify-content:space-between;width:100%;height:48px;border:0;border-radius:6px;padding:0 18px;font-size:12px;margin-top:11px;transition:background .2s}.primary:hover{background:#2c4f40}.primary span{font-size:21px}.small{font-size:10px;color:#7d867a;line-height:1.6}.welcome form .small{text-align:center}.welcome-foot{display:flex;align-items:center;gap:10px;border-top:1px solid var(--border);margin-top:29px;padding-top:16px;color:#7c8979;font-size:10px}.little-flower{font-size:24px;color:#92a58b}.world-top{position:fixed;top:109px;left:425px;right:26px;z-index:1;display:flex;justify-content:space-between;align-items:start;gap:12px;pointer-events:none}.place-pill{background:#fafbf5ed;border:1px solid #fff9;border-radius:9px;display:flex;align-items:center;gap:12px;padding:13px 16px;box-shadow:0 4px 25px #2c48351a;font-size:12px}.pin{font-size:25px;color:#6a8268}.place-pill div>span{display:block;font-size:10px;color:#81907d;margin-top:3px}.world-tag{font-size:8px;letter-spacing:1px;border:1px solid #d7dfd1;border-radius:4px;padding:5px;margin-left:16px;color:#7a8d77}.presence{background:#fafbf5ed;border-radius:30px;padding:11px 16px;font-size:10px;display:flex;gap:9px;align-items:center}.loading{position:fixed;left:calc(50% + 190px);top:50%;transform:translate(-50%,-50%);background:var(--cream);border:1px solid #d8dece;border-radius:8px;padding:20px 25px;display:flex;align-items:center;gap:12px;z-index:2;font-size:12px}.spinner{width:18px;height:18px;border:2px solid #c3ceb8;border-top-color:#436457;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.world-bottom{position:fixed;bottom:57px;left:425px;right:26px;display:flex;justify-content:space-between;align-items:end;gap:20px;pointer-events:none;z-index:1}.controls-hint{font-size:10px;background:#fafbf5e8;padding:10px 12px;border-radius:6px;display:flex;align-items:center;gap:5px;color:#768571;pointer-events:auto}.key{display:inline-flex;align-items:center;justify-content:center;width:20px;height:22px;border:1px solid #d2dccb;border-bottom-width:2px;border-radius:4px;font-size:9px}.controls-hint>span:nth-child(5){margin-left:6px}.hint-divider{width:1px;background:#cdd7c6;height:16px;margin:0 6px}.map-card{background:#fafbf5f2;border:1px solid #fff9;border-radius:9px;padding:12px;width:220px;box-shadow:0 4px 24px #2c48351a;pointer-events:auto}.map-head{display:flex;align-items:center;justify-content:space-between;font-size:8px;letter-spacing:1px;color:#7b8b73}.map-head button{font-size:9px;background:none;color:#436457;border:0;padding:0;letter-spacing:0}#minimap{width:100%;height:130px;display:block;margin:10px 0 5px;border-radius:4px;background:#e1e7d6}.map-foot{display:flex;justify-content:space-between;font-size:8px;color:#89937e}.map-foot i{display:inline-block;background:#b39966;border:2px solid #fff;border-radius:50%;width:9px;height:9px;vertical-align:middle;margin-right:3px}footer{height:34px;position:fixed;inset:auto 0 0;background:var(--cream);display:flex;justify-content:space-between;align-items:center;font-size:8px;color:#8a9484;padding:0 25px;gap:15px;z-index:3}footer a{color:inherit;margin-left:10px}.footer-flower{margin-left:10px;color:#8a9b80}.walk-panel{pointer-events:auto;background:#f7f6f0ed;margin:25px 0 0 26px;width:285px;padding:25px;border:1px solid #fff9;box-shadow:0 4px 24px #2c48351a;border-radius:9px}.walk-panel h2{font-family:'Libre Caslon Display',Georgia,serif;font-size:35px;font-weight:400;margin:16px 0 5px}.walk-panel>p{font-size:12px;color:#788176}.tribute-actions{display:flex;flex-direction:column;gap:8px;margin-top:18px}.tribute-actions button{height:43px;border:1px solid #d8dfd1;background:#fffdf6;border-radius:6px;color:#4c6352;text-align:left;font-size:11px;padding:0 12px}.tribute-actions button span{font-size:20px;display:inline-block;width:33px;color:#a58c58}.memory-count{font-size:10px;border-top:1px solid #dce2d4;margin-top:17px;padding-top:17px;color:#859079}.memory-count>span{font-size:16px;color:#4c6352;margin-right:3px}.memory-count .count-sep{font-size:12px;margin:0 9px}.walk-panel #leaveBtn{margin-top:14px;color:#8b9285;font-size:10px}body.walking .world-top{left:337px}body.walking .world-bottom{left:337px}body.walking .loading{left:50%}.toast{position:fixed;z-index:6;bottom:90px;left:50%;transform:translateX(-50%);max-width:90%;padding:16px 24px;color:#fff;background:#395747;border-radius:8px;box-shadow:0 8px 30px #0002;text-align:center;font-size:13px}dialog{border:1px solid #d8decf;background:var(--cream);color:var(--ink);border-radius:12px;max-width:560px;width:calc(100% - 32px);padding:35px;box-shadow:0 30px 100px #182c3544}dialog::backdrop{background:#293f3c66;backdrop-filter:blur(3px)}dialog h2{font:42px 'Libre Caslon Display',Georgia,serif;font-weight:400;margin:18px 0}dialog p{font-size:12px;line-height:1.8;color:#6f7c6c}dialog a{color:var(--sage);font-size:11px}.close{position:absolute;right:15px;top:12px;background:none;border:0;font-size:26px;color:#7b8973}.world-error{position:fixed;z-index:4;left:50%;top:50%;transform:translate(-30%,-50%);background:var(--cream);padding:30px;max-width:400px;border-radius:10px}.world-error h2{font-family:Georgia,serif;font-weight:400}.world-error p{font-size:12px;line-height:1.7}.world-error button{padding:12px;background:var(--sage);color:white;border:0;border-radius:5px}#joinError{font-size:11px;color:#965f43}.mobile-controls{position:fixed;bottom:100px;left:18px;z-index:2;pointer-events:none}@media(min-width:1500px){.welcome{width:440px;padding:65px 55px}h1{font-size:83px}.world-top,.world-bottom{left:468px}}@media(max-height:800px) and (min-width:761px){.welcome{padding-top:28px}h1{font-size:60px;margin:18px 0}.line{margin:18px 0}.invitation{margin-bottom:18px}.welcome-foot{margin-top:18px;padding-top:10px}}@media(max-width:1050px) and (min-width:761px){.welcome{width:340px;padding-left:30px;padding-right:30px}h1{font-size:63px}.world-top,.world-bottom{left:360px}.presence{display:none}.controls-hint{display:none}.world-bottom{justify-content:flex-end}}@media(max-width:760px){header{height:68px;padding:0 19px}.brand{font-size:27px}.brand-icon{font-size:35px}.brand-sub{font-size:6px;letter-spacing:1.5px}nav{gap:10px}.location,.divider{display:none}nav .text-button{font-size:10px}#world{inset:68px 0 30px;height:calc(100% - 98px)}main{top:auto;bottom:30px;right:0;max-height:62%}.welcome{width:100%;height:auto;max-height:calc(100dvh - 230px);padding:24px 25px 15px;border-radius:22px 22px 0 0;box-shadow:0 -10px 60px #203c3229}.eyebrow{font-size:8px}h1{font-size:43px;line-height:1.02;margin:12px 0;letter-spacing:-.8px}h1 br{display:none}h1 br::after{content:' '}.intro{font-size:12px;line-height:1.6;margin:10px 0}.intro br{display:none}.line,.invitation,.welcome-foot{display:none}label{margin-top:18px;font-size:10px}.primary{height:43px;margin-top:8px}input{height:42px}.welcome form .small{margin:8px 0 0;font-size:9px}.world-top{top:83px;left:15px;right:15px}.place-pill{padding:9px 11px;gap:8px;font-size:10px}.place-pill div>span{font-size:8px}.world-tag{font-size:6px;margin-left:4px}.presence{font-size:8px;padding:9px 10px;max-width:100px;line-height:1.5}.world-bottom{display:none}footer{height:30px;font-size:7px;padding:0 15px}footer>span:first-child{display:none}footer>span:last-child{max-width:100%;line-height:1.4}.loading{left:50%;top:30%;font-size:10px;padding:15px;width:245px}.walk-panel{margin:0;border-radius:18px 18px 0 0;width:100%;padding:16px 20px 10px;background:#f7f6f0f5}.walk-panel .eyebrow,.walk-panel>p:first-of-type,.walk-panel #leaveBtn{display:none}.walk-panel h2{font-size:25px;margin:0}.walk-panel .primary{width:auto;position:absolute;top:8px;right:20px;padding:0 12px;font-size:10px;gap:15px;height:34px}.tribute-actions{flex-direction:row;margin-top:12px;gap:8px}.tribute-actions button{flex:1;font-size:10px;padding:0 8px}.tribute-actions button span{width:22px;font-size:17px}.walk-panel #tributeHint{font-size:9px;margin:8px 0}.memory-count{border:0;margin:0;padding:0;font-size:9px}.memory-count>span{font-size:12px}body.walking .world-top{left:15px}body.walking .world-bottom{display:block;left:auto;right:15px;bottom:240px}.map-card{width:135px;padding:8px}.map-head>span{display:none}.map-head{justify-content:flex-end}.map-head button{font-size:9px}#minimap{height:78px;margin:7px 0}.map-foot{font-size:6px}.mobile-controls{bottom:244px}.toast{bottom:235px;font-size:11px;width:85%}.world-error{left:20px;right:20px;transform:translateY(-50%);max-width:none}dialog{padding:28px}dialog h2{font-size:34px}.controls-hint{display:none}}

.world-tools{position:fixed;right:26px;top:180px;display:flex;gap:9px;align-items:center;z-index:2}.world-tools>button{background:#fafbf5ed;border:1px solid #e9eddf;border-radius:6px;padding:11px 14px;color:#4f6751;font-size:10px;box-shadow:0 3px 15px #24392e16}.compass{border:1px solid #e9eddf;border-radius:50%;width:41px;height:41px;background:#fafbf5ed;display:flex;align-items:center;justify-content:center;gap:2px;font-size:10px;color:#5a7156}.compass span{display:block;font-size:19px;color:#9d7951;transition:transform .2s}.compass b{font-size:8px;font-weight:500}.walk-location{display:none;position:fixed;left:337px;top:183px;background:#fafbf5e8;padding:10px 14px;border-radius:6px;z-index:1;font-size:10px;color:#4f6751}.walk-location>span{display:block}.walk-location>span+span{margin-top:4px;font-size:9px;color:#7d8874}body.walking .walk-location{display:block}body:has(dialog[open]) .mobile-controls{pointer-events:none}
@media(max-width:760px){.world-tools{right:15px;top:147px;gap:6px}.world-tools>button{font-size:9px;padding:9px 11px}.compass{width:34px;height:34px}.walk-location{left:15px;top:148px;font-size:9px;padding:9px 11px}.walk-location>span+span{font-size:8px}h1{white-space:normal}.welcome h1 br{display:none}body.walking .world-bottom{bottom:240px}body.walking .world-tools{top:147px}}
.map-memorial-button{width:100%;margin-top:10px;padding:8px 4px;background:#f4eddd;color:#806438;border:1px solid #dfd1b5;border-radius:5px;font-size:9px}.chat-toggle{position:fixed;z-index:3;right:26px;top:235px;background:#fafbf5ed;border:1px solid #d4ddcb;padding:12px 16px;border-radius:7px;font-size:11px;color:#436457;box-shadow:0 3px 15px #24392e16}.chat-unread{background:#436457;color:white;display:inline-block;min-width:18px;border-radius:20px;padding:2px 5px;margin-left:5px;font-size:9px}.chat-panel{position:fixed;right:26px;top:286px;bottom:57px;z-index:4;width:340px;max-height:530px;background:#f7f6f0;border:1px solid #d9e0d1;border-radius:10px;box-shadow:0 10px 45px #24392e30;display:flex;flex-direction:column;overflow:hidden}.chat-header{display:flex;justify-content:space-between;align-items:start;padding:17px 18px;border-bottom:1px solid #dde3d5}.chat-header strong{font-size:13px;font-weight:500}.chat-header p{font-size:9px;color:#7d8977;margin:6px 0 0;line-height:1.5}.chat-header>button{border:0;background:none;color:#788672;font-size:24px;line-height:1;padding:0 2px}.chat-conversation{flex:1;min-height:50px;position:relative;display:flex;flex-direction:column}.chat-empty{font-size:12px;color:#83907b;text-align:center;line-height:1.9;padding:20px 12px}.chat-messages{list-style:none;overflow-y:auto;flex:1;min-height:0;margin:0;padding:14px;overscroll-behavior:contain;scrollbar-width:thin}.chat-message{padding:10px 12px;background:#fffcf5;border:1px solid #e2e6d9;border-radius:8px;margin:0 22px 10px 0;overflow-wrap:anywhere}.chat-message.own{margin:0 0 10px 22px;background:#e7eddf;border-color:#d7dfcb}.chat-meta{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.chat-meta strong{font-size:10px;color:#4b654f;font-weight:600}.chat-meta time{font-size:8px;color:#8b957f;white-space:nowrap}.chat-message p{font-size:12px;line-height:1.65;margin:6px 0 0;white-space:pre-wrap;color:#4d5e4c}.chat-panel form{border-top:1px solid #dde3d5;padding:13px 16px 10px}.chat-panel label{font-size:9px;margin:0 0 7px}.chat-panel textarea{resize:none;width:100%;background:#fffdf6;border:1px solid #d6decd;border-radius:6px;min-height:56px;max-height:100px;padding:10px;color:#354e3a;font:12px 'DM Sans',sans-serif}.chat-compose-footer{display:flex;justify-content:space-between;align-items:center;margin-top:6px;color:#8c9681;font-size:9px}.chat-compose-footer button{border:0;background:#436457;color:white;border-radius:5px;padding:8px 15px;font-size:11px}.chat-notice{font-size:8px;line-height:1.6;color:#8c9681;margin:8px 0 0}#chatError{color:#9b6349;font-size:10px;line-height:1.6;margin:4px 0}.chat-open .map-card{visibility:hidden}
@media(max-width:760px){.chat-toggle{right:15px;top:192px;padding:9px 12px;font-size:10px}.chat-panel{right:12px;left:12px;top:auto;bottom:42px;width:auto;height:min(62dvh,500px);max-height:calc(100dvh - 150px);z-index:5}.chat-header{padding:13px 16px}.chat-header strong{font-size:12px}.chat-panel textarea{font-size:16px;min-height:60px}.chat-panel label{font-size:9px}.chat-message p{font-size:13px}.chat-open .mobile-controls{display:none}.map-memorial-button{font-size:7px;margin-top:7px;padding:6px 0}.chat-open .world-bottom{visibility:hidden}}
:root{--sage:#456e65;--ink:#2e4846;--cream:#faf8f0;--border:#dedfd3}.welcome{background:linear-gradient(155deg,#fcfaf2,#f3f4e9)}.walk-panel,.place-pill,.map-card{box-shadow:0 5px 28px #34574c20}.walk-panel{background:#faf8f0f5}.candle-colors{display:flex;align-items:center;gap:7px;margin-top:18px}.candle-colors>span{font-size:10px;color:#728272;margin-right:auto}.candle-colors button{display:flex;align-items:center;gap:6px;background:#fffcf4;color:#5a6b58;border:1px solid #dce0d3;border-radius:20px;padding:7px 10px;font-size:10px}.candle-colors button[aria-pressed="true"]{border-color:#678b7d;background:#e6efe4;box-shadow:0 0 0 1px #678b7d33}.candle-colors i{width:11px;height:15px;border-radius:3px 3px 4px 4px;display:inline-block}.red-wax{background:#b72d3f;box-shadow:inset 0 2px #df8490}.white-wax{background:#fff9e8;box-shadow:inset 0 0 0 1px #d2c7aa}.tribute-actions{margin-top:10px}.tribute-actions button{border-color:#d9dfcf;background:linear-gradient(#fffdf6,#f7f6eb)}.world-tools>button,.chat-toggle{background:#fbfaf2f2}.world-tag{background:#edf2e5}.map-card{border-color:#f5f5e9}
@media(max-width:760px){.candle-colors{margin-top:9px;gap:8px}.candle-colors>span{font-size:9px}.candle-colors button{font-size:9px;padding:5px 10px}.tribute-actions{margin-top:8px}.mobile-controls{bottom:284px}body.walking .world-bottom{bottom:284px}.controls-hint{max-width:270px;flex-wrap:wrap}}
.profile-fields{display:grid;grid-template-columns:1.2fr 1fr;gap:12px;margin-top:15px}.profile-fields label{font-size:10px}.profile-fields select{width:100%;height:43px;border:1px solid #d9dfd3;border-radius:6px;background:#fffefa;padding:0 10px;color:#425d53;font:11px 'DM Sans',sans-serif}.profile-fields input{height:43px}.profile-preview{display:flex;align-items:center;gap:15px;min-height:70px;padding:10px 14px;margin-top:12px;border:1px solid #e0e4d6;border-radius:7px;background:#edf1e5;--avatar-scale:.91;--avatar-hair:#645346}.profile-preview strong{display:block;font-size:10px;font-weight:500;color:#4a695b}.profile-preview span{display:block;font-size:9px;color:#85907c;margin-top:5px;line-height:1.5}.profile-silhouette{height:49px;width:32px;position:relative;transform:scale(var(--avatar-scale));transform-origin:bottom center}.profile-silhouette i{position:absolute;display:block}.silhouette-head{width:13px;height:14px;border-radius:50%;background:#dfbb9b;top:0;left:9px;border-top:5px solid var(--avatar-hair)}.silhouette-body{width:24px;height:21px;background:#739aa0;border-radius:8px 8px 5px 5px;top:15px;left:4px}.silhouette-legs{width:19px;height:18px;background:linear-gradient(90deg,#516475 43%,transparent 43%,transparent 57%,#516475 57%);top:34px;left:6px}.profile-preview[data-gender="female"] .silhouette-head{box-shadow:4px 3px 0 -1px var(--avatar-hair);border-radius:45%}.statistics-dialog{max-width:620px;max-height:calc(100dvh - 45px);overflow:auto}.statistics-dialog h2{font-size:39px}.stats-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:24px 0 15px}.stats-cards>div{padding:18px 12px;background:#eef2e5;border:1px solid #dce3d1;border-radius:8px}.stats-cards strong{display:block;font:34px 'Libre Caslon Display',Georgia,serif;color:#476957}.stats-cards span{display:block;font-size:9px;color:#7a8a73;margin-top:6px;line-height:1.5}.stats-candle-colors{display:flex;gap:20px;font-size:10px;color:#7d886f;align-items:center}.stats-candle-colors i{display:inline-block;width:10px;height:13px;border-radius:3px;vertical-align:middle;margin-right:5px}.stats-candle-colors b{font-weight:500}.stats-section{margin-top:23px;border-top:1px solid #dce2d3;padding-top:18px}.stats-section h3{font-size:12px;font-weight:500;margin:0}.stats-section p{font-size:10px;margin:8px 0 15px}.age-bars{list-style:none;padding:0;margin:0 0 16px}.age-row{display:grid;grid-template-columns:92px 1fr 35px;gap:10px;align-items:center;font-size:10px;color:#6d7f66;margin:11px 0}.age-track{height:9px;background:#e6ebde;border-radius:10px;overflow:hidden}.age-track i{display:block;height:100%;background:#8aa58c;border-radius:10px;min-width:0}.age-row strong{font-weight:500;text-align:right;font-size:10px}.stats-section details{font-size:10px;color:#6c8165}.stats-section summary{cursor:pointer}.exact-age-table{width:100%;border-collapse:collapse;font-size:10px;margin-top:10px}.exact-age-table td,.exact-age-table th{padding:8px;border-bottom:1px solid #e0e6d8;text-align:left;font-weight:400}.exact-age-table th{font-weight:600}.stats-genders{display:flex;gap:16px;font-size:10px;color:#7b8a72;margin-top:13px;flex-wrap:wrap}.stats-genders strong{color:#4d6d55;margin-left:5px}.statistics-dialog .stats-note{font-size:9px;line-height:1.8}.stats-bottom{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#88937d;gap:10px;margin-top:15px}.stats-bottom button{background:#e9efdf;border:1px solid #d6e0cc;border-radius:5px;padding:8px 12px;color:#526e50;font-size:10px}@media(max-width:760px){nav{gap:14px}.profile-fields{gap:10px;margin-top:12px}.profile-fields label{margin-top:0}.profile-fields select,.profile-fields input{height:40px;font-size:16px}.profile-preview{min-height:59px;padding:5px 12px;margin-top:9px}.profile-silhouette{height:48px}.profile-preview strong{font-size:10px}.profile-preview span{font-size:8px}.stats-cards{grid-template-columns:repeat(2,1fr);margin-top:18px}.statistics-dialog h2{font-size:34px}.stats-candle-colors{gap:12px;font-size:9px}.age-row{grid-template-columns:86px 1fr 25px}.statistics-dialog{padding:27px 22px}}
.field-label{font-size:10px;display:block;margin-bottom:10px}.gender-options{display:grid;grid-template-columns:1fr 1fr;gap:6px}.gender-options button{min-width:0;height:43px;border:1px solid #cfd9c8;border-radius:6px;background:#fffdf5;color:#536b5b;font-size:10px;padding:0 6px}.gender-options button[aria-pressed="true"]{background:#dfeadd;border-color:#668d77;box-shadow:inset 0 0 0 1px #668d77;color:#284b3c;font-weight:600}.memory-caption{font-size:9px;color:#8b957f;margin-top:16px}.memory-caption+.memory-count{margin-top:7px;padding-top:9px}@media(max-width:760px){.gender-options button{height:40px;font-size:12px}.field-label{font-size:10px;margin-bottom:10px}.profile-fields{grid-template-columns:1.4fr 1fr}.memory-caption{font-size:8px;margin-top:4px}.memory-caption+.memory-count{margin-top:3px;padding-top:0}}

.mobile-controls{width:132px;align-items:center;flex-direction:column;gap:8px;user-select:none;-webkit-user-select:none;pointer-events:none}.joystick-pad{position:relative;width:132px;height:132px;display:block;flex:none;border-radius:50%;border:1px solid #f5f7efaa;background:radial-gradient(circle at 42% 32%,#fcfdf36b,#dce6d047 65%,#62785d33);box-shadow:inset 0 2px 12px #f7f8eb66,inset 0 -4px 16px #36503e1f,0 4px 20px #213f3224;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);pointer-events:auto;touch-action:none;-webkit-touch-callout:none;padding:0;cursor:grab}.joystick-pad.is-active{cursor:grabbing;border-color:#e8f0dfdd;background:radial-gradient(circle at 42% 32%,#fcfdf37d,#dce6d05c 65%,#62785d47)}.joystick-ring{position:absolute;inset:14px;border:1px solid #eef3e5aa;border-radius:50%;box-shadow:inset 0 0 0 14px #fafcf016}.joystick-pad::before,.joystick-pad::after{content:'';position:absolute;left:50%;top:50%;background:#eef3e57a;transform:translate(-50%,-50%);pointer-events:none}.joystick-pad::before{width:78px;height:1px}.joystick-pad::after{width:1px;height:78px}.joystick-knob{position:absolute;left:calc(50% - 26px);top:calc(50% - 26px);width:52px;height:52px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#f8faee,#d1dfc9 68%,#97b09a);border:1px solid #fffdf0dd;box-shadow:0 5px 13px #294d3838,inset 0 2px 3px #fffdf5e6;will-change:transform;display:flex;align-items:center;justify-content:center;pointer-events:none;transition:transform .16s ease-out}.joystick-pad.is-active .joystick-knob{transition:none}.joystick-knob i{width:12px;height:12px;border:1px solid #819b7d66;border-radius:50%;box-shadow:inset 0 1px 3px #5a735128}.joystick-caption{font-size:9px;letter-spacing:.3px;color:#4b654c;text-shadow:0 1px 5px #fffdf5;pointer-events:none}body.walking .mobile-controls:not([hidden]){display:flex}body.chat-open .mobile-controls{display:none!important}
@media(max-width:760px){.mobile-controls{left:max(18px,env(safe-area-inset-left));bottom:calc(282px + env(safe-area-inset-bottom,0px))}}
@media(max-height:540px) and (max-width:960px) and (pointer:coarse){body.walking main{left:auto;right:12px;width:280px;max-height:calc(100dvh - 100px);overflow:auto}body.walking .walk-panel{margin:0;width:100%;border-radius:12px;padding:15px}body.walking .world-bottom{display:none}.mobile-controls{bottom:calc(48px + env(safe-area-inset-bottom,0px));left:22px}.joystick-pad{width:112px;height:112px}.mobile-controls{width:112px}.joystick-knob{width:44px;height:44px;left:calc(50% - 22px);top:calc(50% - 22px)}}
@media(prefers-reduced-motion:reduce){.joystick-knob{transition:none}}

.scene-time{position:fixed;z-index:4;left:425px;top:235px;padding:8px 12px;border-radius:18px;background:#fffdf0e8;color:#496358;font-size:10px;pointer-events:none;box-shadow:0 2px 12px #243b2812}@media(max-width:760px){.scene-time{left:15px;top:199px;font-size:9px;padding:7px 10px}}

body.walking .scene-time{left:337px}@media(max-width:760px){body.walking .scene-time{left:15px}}

/* Keep phone layouts within the visual viewport, including landscape Safari. */
html,body{width:100%;max-width:100%;overflow:hidden}main{max-width:100vw}.mobile-panel-toggle{display:none}
#joinBtn{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(120deg,#285c50,#497a68);border:1px solid #1d5146;box-shadow:0 6px 18px #234e4030;color:#fffdf3;min-height:64px;font-size:15px;font-weight:600;text-align:left;border-radius:12px;padding:14px 18px;width:100%;margin-top:20px}#joinBtn>span{float:none}#joinBtn small{display:block;font-size:10px;font-weight:400;color:#e0eee2;margin-top:5px}.entry-icon{font-size:26px}#joinBtn:hover{background:#285c50}.profile-fields{grid-template-columns:1fr}
@media(max-width:760px){main{width:100%;left:0!important;right:0!important}.welcome,.walk-panel{max-width:100vw}.welcome{padding:22px 22px 16px}.welcome h1{font-size:34px;line-height:1.06;margin:10px 0}.welcome h1 br{display:none}.welcome .intro,.welcome .line,.welcome .invitation,.welcome-foot{display:none}.welcome .eyebrow{font-size:8px}.welcome form>label{margin-top:14px}#joinBtn{min-height:66px;font-size:16px;margin-top:15px}.gender-options button{height:43px}.world-tools{top:145px}.walk-panel h2{overflow-wrap:anywhere}.tribute-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tribute-actions button{min-width:0;padding:10px 8px;font-size:11px}.walk-panel .primary{max-width:100%}}
@media(orientation:landscape) and (max-height:600px) and (pointer:coarse){
 header,footer,.world-top,.world-tools,.walk-location,.scene-time,.world-bottom,.controls-hint{display:none!important}#world{inset:0;width:100%;height:100dvh}main{top:0;bottom:0;left:0;right:0;width:100%;display:flex;align-items:center;justify-content:center}.welcome{width:min(440px,calc(100vw - 40px));height:auto;max-height:calc(100dvh - 20px);overflow:auto;border-radius:18px;padding:16px 22px}.welcome h1{font-size:28px;line-height:1.05;margin:8px 0}.welcome h1 br,.welcome .intro,.welcome .line,.welcome .invitation,.welcome-foot{display:none}.welcome .profile-fields{margin-top:8px}.welcome label{margin-top:8px}.welcome #joinBtn{min-height:52px;margin-top:10px;padding:8px 14px}.welcome .small{margin:8px 0}.welcome #joinError:empty{display:none}body.walking main{display:none!important}body.walking .mobile-panel-toggle{display:block;position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:7;border:1px solid #e5e7d6;border-radius:24px;padding:12px 20px;background:#faf8ef;color:#365d50;box-shadow:0 3px 16px #142e3330;font-size:13px}body.walking.mobile-panel-open main{display:flex!important;justify-content:flex-end;padding-right:max(16px,env(safe-area-inset-right));pointer-events:none}body.walking.mobile-panel-open .walk-panel{display:block;width:290px;max-height:calc(100dvh - 78px);overflow:auto;margin:0 0 52px;border-radius:16px;padding:15px}body.walking.mobile-panel-open .walk-panel h2{font-size:24px;margin:5px 0}body.walking.mobile-panel-open .walk-panel>.eyebrow,body.walking.mobile-panel-open .walk-panel>p:not(#tributeHint),body.walking.mobile-panel-open #leaveBtn{display:none}.mobile-controls{left:max(18px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));width:110px}.joystick-pad{width:110px;height:110px}.joystick-caption{display:none}.chat-toggle{top:12px;right:max(16px,env(safe-area-inset-right));padding:10px 15px}.chat-panel{left:auto;right:12px;top:12px;bottom:65px;width:min(350px,calc(100vw - 160px));height:auto;max-height:none}body.chat-open .mobile-panel-toggle{display:none}
}

#joinBtn>span:not(.entry-icon){font-size:15px}@media(max-width:760px){.profile-fields{grid-template-columns:1fr}.walk-panel h2{padding-right:0;max-width:100%;font-size:24px}.walk-panel .primary{position:static;width:100%;height:40px;margin:10px 0;justify-content:center;gap:14px}.walk-panel>p{display:none}.mobile-controls{bottom:calc(295px + env(safe-area-inset-bottom,0px))}body.walking .world-bottom{bottom:295px}}
@media(orientation:landscape) and (max-height:600px) and (pointer:coarse){body.walking main{width:100%;max-height:none;overflow:visible;top:0;bottom:0;left:0!important;right:0!important}.mobile-controls{bottom:max(16px,env(safe-area-inset-bottom))}.walk-panel .primary{position:static;width:100%;height:36px;margin:8px 0}.profile-fields{grid-template-columns:1fr}}

/* Larger, readable UI text without enlarging labels above the figures. */
body{font-size:16px}label,.field-label,.profile-fields label{font-size:14px}.small,.welcome form .small{font-size:13px;line-height:1.6}.text-button{font-size:14px}.eyebrow,.welcome .eyebrow{font-size:11px}.intro,.invitation{font-size:15px;line-height:1.6}.gender-options button{font-size:15px}.primary,.walk-panel .primary{font-size:15px}.tribute-actions button{font-size:14px;min-height:48px;height:auto;line-height:1.35}.candle-colors>span,.candle-colors button{font-size:13px}.memory-caption{font-size:12px}.memory-count,.memory-count>span{font-size:14px}#tributeHint,.walk-panel #tributeHint{font-size:13px;line-height:1.5}#joinBtn>span:not(.entry-icon){font-size:17px}#joinBtn small{font-size:12px}.place-pill{font-size:15px}.place-pill div>span,.presence{font-size:12px}.walk-location{font-size:14px}.walk-location>span+span{font-size:12px}.scene-time,.chat-toggle,.mobile-panel-toggle{font-size:13px}.map-head button,.map-memorial-button{font-size:12px}.map-foot{font-size:11px}.chat-header strong{font-size:16px}.chat-header p,.chat-meta strong,.chat-panel label,.chat-compose-footer,.chat-notice{font-size:12px}.chat-message p,.chat-panel textarea{font-size:15px}.chat-meta time{font-size:11px}.chat-compose-footer button{font-size:14px}.stats-cards span,.age-row,.stats-section p,.stats-section details,.exact-age-table,.stats-genders,.statistics-dialog .stats-note{font-size:13px}.stats-section h3{font-size:16px}
@media(max-width:760px){header{padding-left:15px;padding-right:15px}nav{gap:12px}nav .text-button{font-size:13px}.brand{font-size:28px}.welcome{max-height:calc(100dvh - 170px);overflow-y:auto}.welcome form>label,.field-label{font-size:14px}.gender-options button{font-size:15px}.welcome form .small{font-size:12px}.walk-panel{max-height:48dvh;overflow-y:auto;padding:14px 18px 12px}.walk-panel h2{font-size:28px}.walk-panel .primary{height:43px;font-size:14px}.candle-colors>span,.candle-colors button{font-size:12px}.candle-colors button{min-height:34px}.tribute-actions button{font-size:13px;padding:10px 7px}.tribute-actions button span{width:22px;font-size:19px}.memory-caption{font-size:11px;margin-top:7px}.memory-count,.memory-count>span{font-size:13px}.place-pill{font-size:13px;padding:9px 10px}.place-pill div>span{font-size:11px}.world-tag{display:none}.presence{font-size:11px;max-width:125px}.walk-location{font-size:12px}.walk-location>span+span{font-size:11px}.scene-time{top:211px;font-size:12px}.chat-toggle{top:211px;font-size:13px}.map-head button,.map-memorial-button{font-size:11px}.map-foot{font-size:10px;flex-wrap:wrap}.map-foot>span:last-child{display:none}.mobile-controls{bottom:calc(min(48dvh,340px) + 18px + env(safe-area-inset-bottom,0px))}body.walking .world-bottom{bottom:calc(min(48dvh,340px) + 18px)}.joystick-caption{font-size:11px}.chat-panel textarea{font-size:16px}.chat-message p{font-size:15px}}
@media(orientation:landscape) and (max-height:600px) and (pointer:coarse){.mobile-controls{bottom:max(16px,env(safe-area-inset-bottom))}.chat-toggle{top:12px}body.walking .mobile-panel-toggle{font-size:15px}.walk-panel .primary{font-size:14px}body.walking.mobile-panel-open .walk-panel{max-height:calc(100dvh - 78px)}.welcome{max-height:calc(100dvh - 20px)}}

/* Phone portrait: clear world view with optional remembrance sheet. */
@media(max-width:760px) and (orientation:portrait) and (pointer:coarse){
 header{height:64px;padding:0 14px}.brand{font-size:27px;gap:7px}.brand-icon{font-size:32px}.brand-sub{font-size:6px;letter-spacing:1px}nav{gap:10px}nav .text-button{font-size:12px;min-height:44px}.location,.divider{display:none}#world{inset:64px 0 0;height:calc(100dvh - 64px);width:100%}footer{display:none}
 main{bottom:0;max-height:none;width:100%;pointer-events:none}.welcome{max-height:min(66dvh,510px);padding:18px 20px calc(16px + env(safe-area-inset-bottom,0px));border-radius:24px 24px 0 0;overflow-y:auto;overscroll-behavior:contain}.welcome h1{font-size:30px;line-height:1.12;margin:8px 0 14px;white-space:normal}.welcome .eyebrow{font-size:10px;letter-spacing:1.2px}.welcome form>label{margin:8px 0;font-size:14px}.welcome input#name{height:46px;font-size:16px}.welcome .profile-fields{margin-top:12px}.welcome .field-label{font-size:13px;margin-bottom:7px}.welcome .gender-options button{height:44px;font-size:14px}#joinBtn{margin-top:14px;min-height:62px;padding:12px 15px}#joinBtn>span:not(.entry-icon){font-size:16px}#joinBtn small{font-size:11px}.welcome form .small{font-size:11px;margin:9px 0 0}#joinError:empty{display:none}
 .world-top,body.walking .world-top{top:76px;left:12px;right:12px;gap:8px;align-items:stretch}.place-pill{min-width:0;flex:1;gap:8px;padding:9px 10px;font-size:12px;box-shadow:0 2px 12px #243b2810}.place-pill .pin{font-size:20px}.place-pill div>span{font-size:10px;margin-top:3px}.presence{flex:none;width:100px;max-width:100px;font-size:10px;padding:9px;display:flex;align-items:center;gap:8px;line-height:1.35}.world-tools,body.walking .world-tools{top:141px;left:12px;right:auto}.compass{width:32px;height:32px}.scene-time,body.walking .scene-time{top:146px;left:52px;font-size:10px;padding:6px 8px}.walk-location,body.walking .walk-location{display:none}.chat-toggle{top:141px;right:12px;font-size:12px;padding:10px 12px;min-height:40px}
 body.walking main{display:none}body.walking .mobile-panel-toggle{display:flex;align-items:center;justify-content:center;position:fixed;z-index:6;right:16px;bottom:calc(20px + env(safe-area-inset-bottom,0px));min-height:50px;min-width:145px;padding:12px 20px;border:1px solid #f4f3e1;border-radius:27px;background:#315e50;color:#fffdf0;font-size:16px;font-weight:600;box-shadow:0 5px 22px #163a3438}
 body.walking.mobile-panel-open main{display:block;bottom:calc(84px + env(safe-area-inset-bottom,0px));padding:0 12px}body.walking.mobile-panel-open .walk-panel{display:block;width:100%;max-height:min(54dvh,440px);margin:0;padding:18px;border-radius:22px;background:#faf8f0fa;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 8px 35px #1b3b3333}.walk-panel h2{font-size:27px;line-height:1.15;margin:0 0 12px}.walk-panel .primary{position:static;width:100%;height:44px;margin:8px 0 12px;font-size:14px;justify-content:center;gap:15px}.walk-panel .candle-colors{margin-top:10px}.walk-panel .candle-colors button{min-height:38px;font-size:13px}.walk-panel .tribute-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.walk-panel .tribute-actions button{min-height:54px;font-size:13px;padding:9px;line-height:1.35}.walk-panel .memory-caption{margin-top:12px;font-size:11px}.walk-panel .memory-count{font-size:14px;margin-top:5px}.walk-panel #tributeHint{display:block;font-size:12px;line-height:1.5;margin:10px 0}.walk-panel #leaveBtn{display:block;font-size:12px;margin-top:10px}
 .mobile-controls,body.walking .mobile-controls{left:16px;bottom:calc(20px + env(safe-area-inset-bottom,0px));width:110px;gap:5px}.joystick-pad{width:110px;height:110px}.joystick-caption{font-size:10px}.joystick-knob{width:46px;height:46px;left:calc(50% - 23px);top:calc(50% - 23px)}body.mobile-panel-open .mobile-controls{display:none!important}
 body.walking .world-bottom{display:block;left:auto;right:16px;bottom:calc(82px + env(safe-area-inset-bottom,0px));width:145px}.map-card{width:145px;padding:0;border:0;background:none;box-shadow:none}.map-head{justify-content:stretch}.map-head button{width:100%;min-height:42px;border:1px solid #e1e5d8;border-radius:22px;background:#faf8eff0;color:#3f6254;font-size:13px;padding:10px}.map-card #minimap,.map-card .map-foot,.map-card .map-memorial-button{display:none}body.mobile-panel-open .world-bottom{display:none}
 .chat-panel{left:10px;right:10px;top:132px;bottom:calc(12px + env(safe-area-inset-bottom,0px));height:auto;width:auto;max-height:none;border-radius:18px}.chat-panel textarea{font-size:16px}body.chat-open .mobile-panel-toggle,body.chat-open main{display:none!important}.toast{bottom:calc(155px + env(safe-area-inset-bottom,0px));font-size:13px;line-height:1.5;width:calc(100% - 32px);padding:13px 16px;border-radius:12px}body.mobile-panel-open .toast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}.loading{top:27%;font-size:12px}.world-error{left:16px;right:16px}dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;border-radius:18px}
}

/* Black lettering with a white outline for contrast against the world. */
button,label,.field-label,.small,.eyebrow,.place-pill,.presence,.walk-location,.scene-time,.joystick-caption,.map-foot,.memory-caption,.memory-count,.chat-message p,.chat-meta,.chat-header,.chat-notice,.stats-note,#greeting,#tributeHint,#joinBtn small{color:#000;font-weight:700;text-shadow:-1px -1px 0 #fff,0 -1px 0 #fff,1px -1px 0 #fff,1px 0 0 #fff,1px 1px 0 #fff,0 1px 0 #fff,-1px 1px 0 #fff,-1px 0 0 #fff}
button{font-size:16px}.small,#tributeHint{font-size:14px}.place-pill{font-size:16px}.place-pill div>span,.presence,.scene-time,.walk-location>span+span{font-size:13px;font-weight:700;color:#000}.walk-panel .primary,.tribute-actions button,.candle-colors button{font-size:15px}#joinBtn>span:not(.entry-icon){font-size:18px}#joinBtn small{font-size:13px}.chat-message p{font-size:16px}
@media(max-width:760px) and (orientation:portrait) and (pointer:coarse){nav .text-button{font-size:13px}.place-pill{font-size:14px}.place-pill div>span,.presence,.scene-time{font-size:11px}.chat-toggle{font-size:14px}.walk-panel .primary,.walk-panel .tribute-actions button,.walk-panel .candle-colors button{font-size:15px}.walk-panel #tributeHint,.welcome form .small{font-size:13px}.welcome .gender-options button{font-size:16px}body.walking .mobile-panel-toggle{font-size:18px}.map-head button{font-size:15px}.joystick-caption{font-size:12px}}
#joinBtn,#joinBtn>span,.primary,body.walking .mobile-panel-toggle,.gender-options button[aria-pressed="true"]{color:#000;font-weight:700}

/* Plain white text on the green entry button. */
#joinBtn,#joinBtn>span,#joinBtn small{color:#fff;text-shadow:none;-webkit-text-stroke:0}

.language-dialog{width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;border:1px solid #e1e4d6;border-radius:25px;padding:30px;background:linear-gradient(145deg,#fffdf4,#edf1e7);color:#294b40;text-align:center;box-shadow:0 20px 100px #132d4a44}.language-dialog::backdrop{background:#102635a6;backdrop-filter:blur(7px)}.language-emblem{font-size:35px;color:#78937d}.language-dialog .language-kicker{font-size:13px;letter-spacing:.4px}.language-dialog h2{font-family:'Libre Caslon Display',Georgia,serif;font-size:38px;margin:12px 0;line-height:1.15}.language-dialog h2 span{font-size:29px}.language-dialog p{font-size:14px;line-height:1.65}.language-options{display:grid;gap:12px;margin:22px 0}.language-options button{display:block;text-align:left;border:1px solid #b8cbbd;border-radius:14px;background:#fffef7;color:#294b40;padding:17px 20px;min-height:80px;text-shadow:none}.language-options button:hover,.language-options button:focus-visible{background:#e5eee1;border-color:#426d58}.language-options strong{display:block;font-size:21px}.language-options span{display:block;font-size:13px;font-weight:400;margin-top:5px}.language-dialog .language-note{font-size:12px;color:#63786a}#languageBtn{white-space:nowrap}html[lang="vi"] .brand{font-size:26px}html[lang="vi"] #joinBtn>span:not(.entry-icon){font-size:16px}html[lang="vi"] .place-pill{line-height:1.4}html[lang="vi"] .tribute-actions button{overflow-wrap:anywhere}
@media(max-width:760px){header nav{gap:8px}#languageBtn{font-size:11px}html[lang="vi"] .brand{font-size:21px;gap:5px}html[lang="vi"] .brand-sub{font-size:5px;letter-spacing:.6px}html[lang="vi"] nav .text-button{font-size:11px}.language-dialog{padding:22px}.language-dialog h2{font-size:33px}.language-dialog h2 span{font-size:26px}}
@media(orientation:landscape) and (max-height:600px) and (pointer:coarse){.language-dialog{width:min(600px,calc(100vw - 30px));padding:16px 24px}.language-emblem,.language-dialog .language-kicker{display:none}.language-dialog h2{font-size:26px;margin:0}.language-dialog h2 br{display:none}.language-dialog h2 span{font-size:23px;margin-left:12px}.language-options{grid-template-columns:1fr 1fr;margin:12px 0}.language-dialog p{margin:8px 0;font-size:12px}.language-options button{min-height:65px;padding:12px 15px}}

/* Direct remembrance actions and car controls, without an extra opening button. */
body.walking main{display:block!important;position:fixed;top:auto;bottom:48px;left:auto!important;right:24px!important;width:360px;max-width:calc(100vw - 32px);max-height:none;overflow:visible;pointer-events:none;z-index:4}
body.walking .walk-panel{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;position:relative;width:100%;max-height:none;overflow:visible;margin:0;padding:10px;border-radius:18px;background:#faf8f0ef;pointer-events:auto;box-shadow:0 5px 25px #173d3733}
body.walking .walk-panel>h2,body.walking .walk-panel>.eyebrow,body.walking .walk-panel>p,body.walking .walk-panel>.memory-caption,body.walking .walk-panel>.memory-count,body.walking .walk-panel>#leaveBtn{display:none!important}
body.walking .walk-panel .tribute-actions{display:contents}body.walking .walk-panel button{position:static;width:100%;min-height:46px;height:auto;margin:0;padding:10px 8px;font-size:14px;line-height:1.3;text-align:center;border:1px solid #c9d7ca;border-radius:11px;background:#fffdf5;color:#183b30;text-shadow:none;font-weight:700;white-space:normal}body.walking .walk-panel #memorialBtn{grid-column:1;grid-row:1;background:#366757;color:#fff}body.walking .walk-panel #driveBtn{grid-column:2;grid-row:1;background:#e3ede4}body.walking .walk-panel #flowerBtn{grid-column:1;grid-row:2}body.walking .walk-panel #candleBtn{grid-column:2;grid-row:2}body.walking .walk-panel button:disabled{opacity:.5;cursor:not-allowed}.driving-speed{position:absolute;right:8px;top:-34px;background:#244a40;color:white;font-weight:700;font-size:16px;padding:6px 12px;border-radius:15px;pointer-events:none}.candle-dialog{max-width:calc(100vw - 28px);width:360px;border-radius:20px;padding:28px;background:#faf8f0}.candle-dialog .candle-colors{display:grid;grid-template-columns:1fr 1fr;gap:12px}.candle-dialog .candle-colors button{min-height:54px;justify-content:center;font-size:16px}.candle-dialog h2{font-size:32px}.candle-dialog::backdrop{background:#102635a6;backdrop-filter:blur(5px)}body.walking .world-bottom{bottom:225px}.mobile-panel-toggle{display:none!important}body.driving .joystick-caption{font-size:0}body.driving .joystick-caption::after{content:'↑ ↓ / ← →';font-size:12px}
@media(max-width:760px) and (orientation:portrait) and (pointer:coarse){body.walking main{right:12px!important;bottom:calc(18px + env(safe-area-inset-bottom,0px));width:calc(100vw - 150px);max-width:310px;padding:0}body.walking .walk-panel{padding:7px;gap:6px;border-radius:15px}body.walking .walk-panel button{min-height:50px;font-size:12px;padding:8px 5px;overflow-wrap:anywhere}.mobile-controls,body.walking .mobile-controls{left:12px;bottom:calc(18px + env(safe-area-inset-bottom,0px));width:110px}.joystick-pad{width:110px;height:110px}body.walking .world-bottom{bottom:calc(148px + env(safe-area-inset-bottom,0px));right:12px;width:118px}.map-card{width:118px}.driving-speed{font-size:14px;top:-32px}.toast{bottom:calc(175px + env(safe-area-inset-bottom,0px))}}
@media(orientation:landscape) and (max-height:600px) and (pointer:coarse){body.walking main{display:block!important;top:auto;bottom:max(12px,env(safe-area-inset-bottom));right:max(14px,env(safe-area-inset-right))!important;left:auto!important;width:300px;max-width:calc(100vw - 170px);padding:0}body.walking .walk-panel{padding:7px;gap:6px}body.walking .walk-panel button{min-height:41px;font-size:13px;padding:7px}body.walking .world-bottom{display:block!important;top:65px;bottom:auto;left:auto;right:16px;width:116px}.map-card{width:116px;padding:0;border:0;background:transparent;box-shadow:none}.map-card #minimap,.map-card .map-foot,.map-card .map-memorial-button{display:none}.map-head button{min-height:40px;border-radius:22px;background:#faf8ef}.mobile-controls{bottom:max(16px,env(safe-area-inset-bottom))}.toast{bottom:130px}.driving-speed{font-size:13px;top:-30px}}
body.chat-open.walking main{display:none!important}body.chat-open.walking .world-bottom{display:none!important}

/* Three direct actions; interactive driving has been removed. */
body.walking .walk-panel #memorialBtn{grid-column:1 / -1;grid-row:1}body.walking .walk-panel #flowerBtn{grid-column:1;grid-row:2}body.walking .walk-panel #candleBtn{grid-column:2;grid-row:2}

/* Desktop HUD belongs to the outer edges, never over the memorial. */
@media(min-width:761px) and (pointer:fine){
 body.walking .world-top{top:100px;left:20px!important;right:20px;align-items:flex-start;gap:12px}.world-top .place-pill{padding:10px 13px;max-width:310px;font-size:14px}.place-pill .world-tag{display:none}.place-pill div>span{font-size:11px}.world-top .presence{padding:10px 13px;font-size:12px}body.walking .walk-location{display:none!important}body.walking .scene-time{left:20px!important;top:176px;font-size:12px;padding:7px 10px}body.walking .world-tools{right:20px;top:170px}body.walking .chat-toggle{right:76px;top:170px}
 body.walking .world-bottom{position:static;display:contents!important}.controls-hint{position:fixed;left:20px;bottom:48px;max-width:310px;flex-wrap:wrap;gap:5px;padding:8px 10px;font-size:10px;opacity:.85}.map-card{position:fixed;right:20px;bottom:218px;width:185px;padding:10px}.map-card #minimap{height:95px}.map-foot{font-size:10px;flex-wrap:wrap}.map-foot>span:last-child{display:none}.map-head button,.map-memorial-button{font-size:11px}.map-head>span{display:none}body.walking main{right:20px!important;bottom:48px;width:320px}.chat-panel{right:20px;top:225px;bottom:48px}.chat-open .map-card{display:none}body.chat-open .world-bottom{display:none!important}
}
@media(min-width:761px) and (max-height:680px) and (pointer:fine){.map-card #minimap,.map-card .map-foot,.map-card .map-memorial-button{display:none}.map-card{bottom:203px;padding:0;background:none;border:0;box-shadow:none;width:150px}.map-head button{width:100%;min-height:38px;border-radius:20px;background:#faf8eff0}.controls-hint{max-width:240px;font-size:9px}.chat-panel{top:220px;max-height:calc(100dvh - 250px)}}

/* Direct four-action dock, including the shared teddy offering. */
body.walking .walk-panel #memorialBtn{grid-column:1;grid-row:1}body.walking .walk-panel #plushBtn{grid-column:2;grid-row:1;background:#f0e5d4}body.walking .walk-panel #flowerBtn{grid-column:1;grid-row:2}body.walking .walk-panel #candleBtn{grid-column:2;grid-row:2}.language-options strong .language-flag{display:inline;font-size:27px;font-weight:400;margin:0 7px 0 0}#languageBtn{font-family:'DM Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji';white-space:nowrap}
@media(max-width:360px){html[lang="vi"] .brand-icon{display:none}html[lang="vi"] .brand{font-size:20px}html[lang="vi"] .brand-sub{display:none}}
