:root{font-family:Segoe UI,Arial,sans-serif;color:#304538;background:#f4f0e8;font-synthesis:none;--pine:#304c40;--ink:#293c31;--muted:#7e8272;--line:#deded0;--paper:#faf7ee}*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,input,textarea,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b7814e;outline-offset:4px}button{border:0;background:none}button:hover{filter:brightness(.94)}[hidden]{display:none!important}header{height:94px;flex:none;padding:0 32px;display:flex;align-items:center;gap:30px}.brand{display:flex;align-items:center;gap:13px}.brand img{width:42px;height:42px}.brand>span{font:34px Georgia,serif;letter-spacing:-1.4px}.brand small{display:block;font:8px Segoe UI,sans-serif;letter-spacing:2.2px;margin-top:6px}nav{display:flex;gap:28px;margin-left:auto;align-items:center}.nav{font-size:12px;color:#72796a;padding:10px 0}.nav.active{color:#304c40;border-bottom:1px solid #304c40}.nav span{font-size:10px;margin-left:4px;background:#e6e8dd;padding:3px 6px;border-radius:50%}.live{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:1.7px;margin-left:20px}.live i,.online-dot{width:6px;height:6px;background:#7c9564;border-radius:50%;display:inline-block}main#world{position:relative;flex:1;min-height:0;margin:0 24px;border:1px solid #ded9cc;border-radius:18px;overflow:hidden;background:#d6d4bb}#world>canvas{width:100%;height:100%;display:block;outline:none;touch-action:none}.panel{background:rgba(250,247,238,.95);border:1px solid rgba(225,221,209,.9);box-shadow:0 5px 30px #2535240c;backdrop-filter:blur(12px)}.welcome{position:absolute;z-index:2;left:26px;top:26px;border-radius:13px;width:273px;padding:27px 25px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:#81866f}.welcome h1{font:35px/1.12 Georgia,serif;letter-spacing:-1.1px;margin:16px 0}.welcome p{font-size:12px;color:#7a7e6d;line-height:1.9;margin:0 0 22px}.primary{display:inline-flex;align-items:center;justify-content:space-between;gap:22px;background:var(--pine);color:#fff9e9;padding:13px 18px;border-radius:7px;border:1px solid var(--pine);font-size:12px}.welcome .primary{width:100%}.welcome-foot{display:flex;justify-content:space-between;border-top:1px solid #e4e2d7;margin-top:23px;padding-top:14px;font-size:9px;color:#8c907e}.view-tools{position:absolute;top:22px;right:22px;z-index:2;display:flex;align-items:center;gap:14px;padding:7px;border-radius:9px}.segmented{display:flex;gap:3px}.segmented button{font-size:10px;padding:9px 12px;border-radius:5px;white-space:nowrap}.segmented .selected{background:#e2e6d8}.light-select{border-left:1px solid var(--line);padding-left:12px;display:flex;gap:5px;font-size:13px;align-items:center}.light-select select{max-width:142px;font-size:10px;border:0;background:transparent;color:#58644e;cursor:pointer}#sound{font-size:10px;padding:7px;border-left:1px solid var(--line)}.locations{position:absolute;left:26px;bottom:63px;z-index:2;width:273px;padding:20px 19px 12px;border-radius:12px}.locations>.eyebrow{display:block;margin-bottom:9px}.locations button{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:10px 0;border-bottom:1px solid #e8e5da}.locations button:last-child{border:0}.locations button>span:first-child{border:1px solid #dddccd;display:grid;place-items:center;border-radius:50%;width:32px;height:32px;color:#767d5d;font-size:17px}.locations button>span:nth-child(2){font-size:12px}.locations button small{display:block;font-size:10px;color:#8a8d7a;margin-top:4px}.locations button b{margin-left:auto;font-weight:400;color:#9b9e89}.bottom-hint{position:absolute;left:26px;bottom:22px;display:flex;align-items:center;gap:5px;color:#3f503c;pointer-events:none;font-size:9px;background:#f7f3e2cf;border:1px solid #e8e2cd;padding:8px 11px;border-radius:7px}.bottom-hint i{font-style:normal;margin:0 5px}kbd{display:inline-grid;place-items:center;min-width:18px;height:19px;font:9px Segoe UI,sans-serif;background:#fff9e9c9;border:1px solid #c8cbbb;border-radius:3px}.photo-button{position:absolute;right:22px;bottom:22px;border-radius:7px;padding:11px 14px;font-size:11px}.photo-button span{margin-left:7px}footer{height:76px;flex:none;display:flex;align-items:center;padding:0 34px;gap:24px;font-size:11px}.resident{display:flex;align-items:center;gap:10px;min-width:250px}.avatar{width:34px;height:34px;border:1px solid #dbc5ae;border-radius:50%;background:#e7d6c0;color:#826a50;display:grid;place-items:center;font:19px Georgia}.resident b{display:block;font-size:11px;font-weight:600}.resident small{display:block;font-size:9px;color:#969782;margin-top:4px}.resident button{font-size:15px;color:#90977f}.pocket{margin:auto;color:#737e65;font:italic 13px Georgia,serif}.pocket button{font:10px Segoe UI;border-bottom:1px solid #66785e;margin-left:14px}.chat-toggle{margin-left:auto;display:flex;gap:8px;align-items:center;font-size:10px}.chat-toggle>span:last-child{color:#969b89}.world-label{position:absolute;transform:translate(-50%,-100%);z-index:1;background:#faf7ecee;color:#38523f;padding:7px 12px;border-radius:18px;border:1px solid #d5d9c7;white-space:nowrap;font-size:10px;box-shadow:0 3px 12px #00000009}.world-label::after{content:'';position:absolute;height:14px;width:1px;background:#acb793;bottom:-15px;left:50%}.world-label.near{background:#304c40;color:#fff;border-color:#304c40}.world-label.guest{background:#e9d6b9}.world-label.guest::after{display:none}#interaction{position:absolute;z-index:3;bottom:75px;left:50%;transform:translateX(-50%);border-radius:9px;padding:11px 13px;display:flex;gap:12px;align-items:center;font-size:12px}#interaction button{background:#304c40;color:ivory;padding:8px 13px;border-radius:5px;font-size:11px}#toast{position:absolute;z-index:8;bottom:125px;left:50%;transform:translate(-50%,10px);opacity:0;transition:.25s;background:#304c40;color:#fff6e5;border-radius:7px;padding:12px 20px;font-size:12px;pointer-events:none;max-width:440px;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}#loading{position:absolute;inset:0;z-index:20;background:#f3efdf;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:opacity .5s}#loading img{width:62px;height:62px}#loading h1{font:32px Georgia;letter-spacing:-.5px;margin:25px 0 6px}#loading p{color:#8c8c73;font-size:12px}.drawer{position:absolute;right:24px;top:108px;bottom:90px;width:364px;z-index:12;border-radius:14px;padding:24px;overflow:auto}.drawer-head{display:flex;align-items:flex-start;justify-content:space-between}.drawer h2,dialog h2{font:27px Georgia;margin:9px 0 15px;letter-spacing:-.5px}.close{font-size:25px;color:#899077;line-height:1;padding:0 3px}.muted{color:#838873;font-size:11px;line-height:1.8;margin:0 0 18px}.drawer label{font-size:11px;display:block;color:#69765e}.drawer select,.drawer textarea,.drawer input,dialog input{display:block;width:100%;background:#fffdf7;border:1px solid #dbddcd;padding:11px;border-radius:6px;color:var(--ink);font-size:12px;margin:8px 0 12px}textarea{resize:vertical;min-height:100px}.drawer .primary{font-size:11px;width:100%;justify-content:center}.secondary{border:1px solid #ced4bf;border-radius:6px;padding:11px;font-size:11px;width:100%}.note{border-top:1px solid #dde0d1;margin:16px 0;padding-top:14px;font-size:12px;line-height:1.6}.note small{display:block;color:#8b9179;font-size:9px}.note p{white-space:pre-wrap;margin:7px 0}.note button{font-size:9px;text-decoration:underline;color:#92947e}details{border-top:1px solid #dde0d1;margin-top:20px;padding-top:14px;font-size:10px;color:#8b907c;line-height:1.8}summary{cursor:pointer}details label{margin:10px 0}details input[type=checkbox]{display:inline-block;width:auto;margin:0 7px 0 0}#chat{display:flex;flex-direction:column}#chat-messages{flex:1;overflow:auto;margin:4px -5px 14px;padding:5px;font-size:12px}.chat-line{margin:0 0 12px;padding:11px;background:#eeeee2;border-radius:7px;line-height:1.6}.chat-line b{display:block;font-size:10px;color:#7d876e}.system-message{font:italic 13px Georgia;color:#96967e}#chat-form{display:flex;gap:6px;align-items:center}#chat-form input{margin:0;min-width:0}#chat-form .primary{width:auto;padding:12px}dialog{border:1px solid #e0dccd;background:var(--paper);border-radius:16px;color:var(--ink);padding:34px;width:420px;box-shadow:0 20px 100px #10251555}dialog::backdrop{background:#1c2a2655;backdrop-filter:blur(4px)}dialog>.close{position:absolute;right:18px;top:17px}dialog p{font-size:12px;color:#7f846e;line-height:1.9}dialog .menu-item{display:flex;align-items:center;width:100%;justify-content:space-between;text-align:left;border-top:1px solid #dedfce;padding:16px 0;font-size:13px}dialog .menu-item small{display:block;font-size:10px;color:#94987e;margin-top:5px}dialog .menu-item b{font-size:12px;font-weight:400;color:#8f7653}dialog .dialog-actions{display:flex;gap:8px;margin-top:20px}dialog .dialog-actions button{font-size:11px;padding:12px;border:1px solid #cad0bc;border-radius:6px}.walking .welcome{display:none}.walking .locations{top:90px;bottom:auto;width:220px;padding:17px}.walking .locations button small{display:none}.walking .locations button{padding:9px 0}.walking .locations button>span:nth-child(2){font-size:11px}.walking .locations button>span:first-child{width:27px;height:27px;font-size:14px}.walking .locations .eyebrow{font-size:8px}.walking #labels .world-label{font-size:9px}
@media(max-width:1150px){header{padding:0 24px;gap:20px}.live{display:none}.view-tools{gap:5px;right:16px}.segmented button{padding:8px}.light-select{padding-left:6px}#sound{display:none}.welcome{width:236px;padding:22px}.welcome h1{font-size:31px}.locations{width:236px}.locations .eyebrow{font-size:8px}}@media(max-height:820px){.welcome{padding:20px}.welcome h1{font-size:29px;margin:12px 0}.welcome p{margin-bottom:14px}.welcome-foot{display:none}.locations{padding-top:14px;padding-bottom:8px}.locations button{padding:7px 0}.locations small{display:none}}@media(max-width:850px){header{height:78px;padding:0 17px}.brand>span{font-size:27px}.brand small{font-size:6px;letter-spacing:1px}.brand img{width:33px;height:33px}nav{gap:14px}.nav{font-size:10px}.nav.active{display:none}main#world{margin:0 10px}.welcome{top:75px;left:15px;width:215px}.welcome h1{font-size:28px}.welcome p{font-size:11px}.locations{display:none}.view-tools{left:15px;right:15px;top:15px;justify-content:space-between}.light-select select{max-width:130px}.bottom-hint{left:15px;font-size:8px;gap:3px}.bottom-hint i,.bottom-hint span:nth-last-child(-n+4){display:none}.photo-button{right:15px;bottom:63px}.photo-button span{display:none}footer{padding:0 20px;height:66px;gap:10px}.resident{min-width:120px}.pocket{font-size:11px}.chat-toggle>span:last-child{display:none}.drawer{top:90px;right:20px;bottom:80px;width:min(360px,calc(100vw - 40px))}#interaction{bottom:105px;max-width:90%;width:max-content}.walking .welcome{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-height:820px){.welcome p{display:none}.welcome h1{margin:12px 0 17px}.welcome .primary{padding:11px 15px}}

#coins{font:600 10px Segoe UI,sans-serif;color:#8b6741;margin-right:12px;white-space:nowrap}button:disabled{opacity:.5;cursor:default}@media(max-width:850px){footer{height:92px;flex-wrap:wrap;align-content:center;row-gap:8px}.pocket{display:flex;flex-wrap:wrap;align-items:center;gap:7px;flex:1}.pocket button{margin-left:4px}#coins{margin-right:3px}.chat-toggle{display:none}}
#focus-presets button{background:#eef0e2}#focus-presets button.selected{background:var(--pine);color:#fff}
#focus-custom{width:100px}
#focus-time{font:54px/1 Georgia,serif;letter-spacing:-1px;color:var(--pine);text-align:center;margin:22px 0}
#focus-active .dialog-actions{display:flex;gap:8px}#focus-active .dialog-actions button{flex:1;padding:12px;border:1px solid #cad0bc;border-radius:6px;font-size:11px}
#focus-stats{display:flex;justify-content:space-between;border-top:1px solid #dde0d1;margin-top:18px;padding-top:14px;font-size:10px}
#focus-stats b{display:block;color:var(--pine);font:22px Georgia,serif}
#focus-banner{position:absolute;z-index:3;top:22px;left:50%;transform:translateX(-50%);padding:10px 16px;border-radius:20px;font-size:11px;color:var(--pine);cursor:pointer}
body.focus-mode .locations,body.focus-mode .bottom-hint,body.focus-mode .chat-toggle,body.focus-mode .photo-button{display:none}
.game-steps{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:20px 0}
.game-steps button{display:flex;flex-direction:column;align-items:center;gap:5px;width:72px;padding:12px 6px;border:1px solid #cad0bc;border-radius:8px;font-size:10px}
.game-steps button span{font-size:22px}
.game-steps button.done{background:var(--pine);color:#fff;border-color:var(--pine)}
@keyframes miss-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.game-steps button.miss{animation:miss-shake .25s}
.emotes{display:inline-flex;gap:2px;margin-left:6px}
.emotes button{font-size:15px;padding:4px 6px;border-radius:5px}
.emotes button:hover{background:#eef0e2}
@keyframes float-up{0%{opacity:0;transform:translate(-50%,4px) scale(.7)}20%{opacity:1;transform:translate(-50%,-6px) scale(1.05)}100%{opacity:0;transform:translate(-50%,-46px) scale(1)}}
.world-label.reaction{animation:float-up 1.8s ease-out forwards;pointer-events:none;background:transparent;border:0;box-shadow:none;font-size:26px;padding:0}
.world-label.reaction::after{display:none}

/* Keep the room and residents at the centre of the playable view. */
header{height:78px}main#world{margin:0 16px;border-radius:16px}footer{height:70px}
.panel{background:rgba(250,246,235,.94);box-shadow:0 7px 28px #38291414}
.segmented .selected{background:#c3cdb4;color:#254632}
.walking .locations,.floor-plan .locations{display:none}
.walking .view-tools{background:#faf6ebed}
.world-label{font-size:11px;border-color:#d3c8af;box-shadow:0 3px 14px #33261516}
.touch-pad{display:none;position:absolute;bottom:18px;left:16px;z-index:4;grid-template-columns:repeat(3,44px);gap:5px}
.touch-pad button{width:44px;height:44px;border-radius:12px;border:1px solid #c6c5ad;background:#faf5e7ed;font-size:22px;touch-action:none}
.touch-pad button[data-key=KeyW]{grid-column:2}.touch-pad button[data-key=KeyA]{grid-column:1;grid-row:2}.touch-pad button[data-key=KeyS]{grid-column:2;grid-row:2}.touch-pad button[data-key=KeyD]{grid-column:3;grid-row:2}
@media(pointer:coarse){.walking .touch-pad{display:grid}.walking .bottom-hint{display:none}}
@media(max-width:600px){
 .walking .touch-pad{display:grid}
 header{height:65px;padding:0 12px;gap:10px}.brand>span{font-size:25px}.brand small{font-size:5px}.brand img{width:30px;height:30px}nav{gap:8px}nav .nav{font-size:9px}#review-open{display:none}
 main#world{margin:0 6px;border-radius:12px}.view-tools{top:9px;left:8px;right:8px;flex-wrap:wrap;gap:3px;justify-content:center;padding:5px}
 .segmented button{min-height:40px;font-size:11px;padding:8px 11px}.light-select{border:0;padding:0 8px 3px}.light-select select{font-size:11px;max-width:165px;min-height:26px}
 .welcome{left:12px;top:auto;bottom:14px;width:200px;padding:15px}.welcome h1{font-size:25px;margin:9px 0 12px}.welcome p,.welcome-foot{display:none}.welcome .eyebrow{font-size:8px}.welcome .primary{min-height:44px}
 .bottom-hint{display:none}.photo-button{bottom:14px;right:12px;min-width:44px;min-height:44px}
 footer{height:118px;padding:8px 14px;gap:6px;align-content:center}.resident{min-width:100%;gap:8px}.resident small{font-size:10px}.pocket{font-size:12px;gap:5px}.emotes button{font-size:19px;min-width:38px;min-height:38px}#coins{font-size:11px}#wave{font-size:11px;min-height:32px}
 #interaction{bottom:128px;font-size:11px;padding:9px;width:calc(100% - 24px);gap:8px}#interaction button{min-height:44px}#toast{bottom:185px;width:calc(100% - 28px);font-size:12px}
 #labels .world-label{font-size:10px;padding:5px 8px}.drawer{top:75px;bottom:125px;right:10px;width:calc(100vw - 20px)}#focus-banner{top:106px;font-size:10px;max-width:90%;white-space:nowrap}
 dialog{width:calc(100% - 24px);max-height:80dvh;overflow:auto;padding:27px}
}

/* ===== Gameplay & social pass: a clean HUD, contextual UI, cozy panels ===== */
header{height:62px}main#world{margin:0 14px 14px}
.hud-profile{position:absolute;z-index:5;top:14px;left:14px;display:flex;align-items:center;gap:10px;padding:7px 12px 7px 7px;border-radius:30px;text-align:left}
.hud-profile .avatar{width:34px;height:34px}.hud-profile b{display:block;font-size:12px}.hud-profile small{display:block;font-size:10px;color:#8a8f78;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hud-profile .xp{display:block;height:3px;background:#e4e2d4;border-radius:3px;margin-top:5px;width:120px;overflow:hidden}.hud-profile .xp i{display:block;height:100%;width:0;background:#b7814e;transition:width .6s}
.hud-profile em{font:600 10px Segoe UI;font-style:normal;background:var(--pine);color:#fff9e9;border-radius:10px;padding:3px 7px;margin-left:4px}
.hud-right{position:absolute;z-index:5;top:14px;right:14px;display:flex;gap:6px;align-items:center}
.hud-right .coins{border-radius:20px;padding:9px 13px;font:600 12px Segoe UI;color:#7a5530}
.hud-icon{position:relative;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:15px;color:var(--pine)}
.hud-icon .badge{position:absolute;top:3px;right:3px;width:9px;height:9px;border-radius:50%;background:#c2573f;border:2px solid #faf6eb}
.coins.bump{animation:bump .6s}@keyframes bump{40%{transform:scale(1.15)}}
.menu{position:absolute;z-index:9;top:60px;right:14px;width:290px;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:9px}
.menu .segmented button{flex:1}.menu-row{display:flex;gap:6px;flex-wrap:wrap}.menu-row button{flex:1;font-size:11px;padding:9px;border:1px solid #d9dccb;border-radius:7px;text-align:left}
.menu .light-select{border:0;padding:0}.menu .light-select select{max-width:none;font-size:11px}
.menu .emotes button{flex:0 0 auto;font-size:18px;border:0;padding:4px 7px}
#tooltip{position:absolute;z-index:6;pointer-events:none;transform:translate(14px,14px);background:#304c40;color:#fff7e6;border-radius:14px;padding:5px 10px;font-size:11px;white-space:nowrap;box-shadow:0 4px 14px #00000022}
#tooltip small{opacity:.75;margin-left:6px}
#npc-menu{position:absolute;z-index:7;transform:translate(-50%,-100%);border-radius:14px;padding:8px;display:flex;flex-direction:column;gap:3px;min-width:170px}
#npc-menu .who{font-size:10px;color:#8a8f78;padding:2px 6px 5px;display:flex;justify-content:space-between;gap:10px}
#npc-menu button{text-align:left;font-size:12px;padding:8px 10px;border-radius:8px}#npc-menu button:hover{background:#eef0e2}
#npc-menu button[disabled]{opacity:.45}
#context{position:absolute;z-index:4;left:50%;bottom:18px;transform:translateX(-50%);display:flex;gap:6px}
#context button{background:rgba(250,246,235,.95);border:1px solid #ddd8c6;border-radius:22px;padding:9px 15px;font-size:12px;box-shadow:0 4px 16px #3a2b1618;white-space:nowrap}
#context button.primary-action{background:var(--pine);color:#fff9e9;border-color:var(--pine)}
#context kbd{margin-left:6px;background:transparent;color:inherit;border-color:currentColor;opacity:.6}
#hint{position:absolute;z-index:4;left:50%;top:70px;transform:translateX(-50%);border-radius:18px;padding:8px 14px;font-size:11px;color:#55624d;transition:opacity .6s}
#hint.fade{opacity:0}
#focus-hud,#game-hud{position:absolute;z-index:5;top:14px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;border-radius:26px;padding:6px 8px 6px 16px;font-size:11px;color:#55624d}
#focus-timer{font:22px Georgia,serif;color:var(--pine);min-width:74px}#focus-timer.paused{opacity:.45}
#focus-hud button,#game-hud button{border-radius:18px;padding:7px 11px;font-size:11px}#focus-hud .quiet,#game-hud .quiet{border:1px solid #d6d9c8}
#game-hud b{font:16px Georgia,serif;color:var(--pine)}#game-status{min-width:110px}
#game-extra{display:flex;gap:4px}#game-extra button{border:1px solid #d6d9c8}
body.focusing .hud-profile small,body.playing .hud-profile small{display:none}
#reward{position:absolute;inset:0;z-index:11;display:grid;place-items:center;pointer-events:none}
.reward-card{background:rgba(250,246,235,.97);border:1px solid #e3d9bf;border-radius:18px;padding:26px 36px;text-align:center;box-shadow:0 20px 60px #2a1f1233;animation:pop .5s ease-out}
.reward-card strong{display:block;font:32px Georgia,serif;color:#7a5530;margin:10px 0 6px}.reward-card p{margin:0;font-size:12px;color:#6d7560;line-height:1.8}
@keyframes pop{0%{transform:scale(.85);opacity:0}100%{transform:scale(1);opacity:1}}
#chatbox{position:absolute;z-index:12;right:24px;bottom:24px;width:340px;height:min(470px,calc(100% - 110px));border-radius:16px;display:flex;flex-direction:column;overflow:hidden}
.chat-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #e3e1d3}.chat-head b{display:block;font-size:13px}.chat-head small{font-size:10px;color:#8a8f78}.chat-head .close{margin-left:auto}
#chat-log{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:7px;font-size:12px;line-height:1.5}
.msg{max-width:82%;padding:8px 11px;border-radius:14px;background:#eef0e2;align-self:flex-start;white-space:pre-wrap;word-break:break-word}.msg.me{align-self:flex-end;background:var(--pine);color:#fff9e9}
.msg.sys{align-self:center;background:transparent;color:#9a9c86;font:italic 11px Georgia}
.msg .who{display:block;font-size:9px;opacity:.7;margin-bottom:2px}
.typing{align-self:flex-start;background:#eef0e2;border-radius:14px;padding:9px 12px;display:flex;gap:4px}.typing i{width:6px;height:6px;border-radius:50%;background:#98a086;animation:dot 1s infinite}.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes dot{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
#chat-chips{display:flex;gap:5px;flex-wrap:wrap;padding:0 12px 8px}#chat-chips button{font-size:10px;border:1px solid #d5d9c6;border-radius:12px;padding:5px 9px}
#chat-send,.group-send{display:flex;gap:6px;padding:10px;border-top:1px solid #e3e1d3}#chat-send input,.group-send input{flex:1;min-width:0;border:1px solid #d9dccb;border-radius:18px;padding:9px 12px;font-size:12px;background:#fffdf7;margin:0}#chat-send .primary,.group-send .primary{padding:9px 14px;border-radius:18px;width:auto}
.drawer.wide{width:430px}
.group-list button{display:flex;width:100%;text-align:left;gap:10px;align-items:center;padding:11px 4px;border-bottom:1px solid #e6e4d8}.group-list small{display:block;color:#8a8f78;font-size:10px;margin-top:3px}
.chips{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.chip{font-size:10px;background:#eef0e2;border-radius:12px;padding:4px 9px}.chip.npc{background:#f3e4cf}
.group-log{height:260px;overflow:auto;display:flex;flex-direction:column;gap:6px;border:1px solid #e6e4d8;border-radius:10px;padding:10px;margin:8px 0;font-size:12px}
.invite-card{border:1px dashed #b9a57f;border-radius:10px;padding:7px 9px;margin-top:5px;font-size:11px}.invite-card button{margin-left:6px;background:var(--pine);color:#fff;border-radius:6px;padding:4px 8px;font-size:10px}
.row-actions{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}.row-actions button{border:1px solid #d6d9c8;border-radius:8px;padding:7px 10px;font-size:11px}
.shop-tabs{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:12px}.shop-tabs button{font-size:10px;padding:6px 9px;border-radius:12px;border:1px solid #dcdccc}.shop-tabs button.selected{background:var(--pine);color:#fff}
.shop-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.shop-item{border:1px solid #e0ddd0;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:6px;font-size:12px;text-align:left}
.shop-item .swatch{height:38px;border-radius:8px;border:1px solid #0000000f;display:grid;place-items:center;font-size:20px}.shop-item small{color:#8a8f78;font-size:10px}.shop-item.equipped{border-color:var(--pine);box-shadow:0 0 0 1px var(--pine)}.shop-item.previewing{border-color:#b7814e}
.shop-item .buy{align-self:flex-start;font-size:10px;border-radius:12px;padding:5px 10px;background:#eef0e2}.shop-item .buy.go{background:var(--pine);color:#fff}
.shop-preview{font-size:11px;color:#6d7560;margin-bottom:10px}
.bond{border-top:1px solid #e3e1d3;padding:10px 0;font-size:12px}.bond b{font-weight:600}.bond .meter{height:5px;border-radius:4px;background:#e7e5d9;margin:6px 0;overflow:hidden}.bond .meter i{display:block;height:100%;background:#c98a5a}.bond small{color:#8a8f78}
.challenge{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #ecebe0;font-size:12px}.challenge small{color:#8a8f78}.challenge button{font-size:10px;border-radius:12px;padding:5px 9px;background:var(--pine);color:#fff}
.stat-row{display:flex;gap:8px;margin:10px 0}.stat-row div{flex:1;background:#f1efe4;border-radius:10px;padding:9px;font-size:10px;color:#7d826f}.stat-row b{display:block;font:20px Georgia;color:var(--pine)}
.note-item{border-bottom:1px solid #ecebe0;padding:9px 0;font-size:12px}.note-item small{display:block;color:#9a9c86;font-size:10px;margin-top:3px}
.order-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:14px 0}.order-grid button{border:1px solid #e0ddd0;border-radius:12px;padding:12px;text-align:left;font-size:13px}.order-grid button small{display:block;color:#8a8f78;font-size:10px;margin-top:4px}.order-grid button b{float:right;font-weight:400;color:#8f7653;font-size:11px}
.duration-grid{display:flex;gap:8px;margin:14px 0}.duration-grid button{flex:1;border:1px solid #d9dccb;border-radius:12px;padding:14px 8px;font:20px Georgia;color:var(--pine)}.duration-grid button small{display:block;font:10px Segoe UI;color:#8a8f78;margin-top:4px}
#focus-music{position:absolute;z-index:12;top:66px;left:50%;transform:translateX(-50%);width:320px;border-radius:14px;padding:14px}
#focus-music .segmented{flex-wrap:wrap}
.touch-pad{bottom:70px}
.world-label.bubble{background:#fffdf5;border-color:#e3d8bd;font-size:11px;max-width:220px;white-space:normal;text-align:center;line-height:1.4}
.world-label.zone{background:transparent;border:0;box-shadow:none;font:600 9px Segoe UI;letter-spacing:2px;color:#3f5a47cc;pointer-events:none}.world-label.zone::after{display:none}
@media(max-width:850px){header{height:54px}.hud-profile small,.hud-profile .xp{display:none}.menu{right:8px;top:56px}#chatbox{right:8px;left:8px;width:auto;bottom:8px;height:60%}.drawer.wide{width:calc(100vw - 40px)}}
@media(max-width:600px){.hud-right{gap:3px;right:8px;top:8px}.hud-icon{width:34px;height:34px}.hud-right .coins{padding:8px 10px}.hud-profile{top:8px;left:8px;padding:5px}.hud-profile span:not(.avatar),.hud-profile em{display:none}#focus-hud,#game-hud{top:54px;max-width:calc(100% - 16px);flex-wrap:wrap;justify-content:center}#context{bottom:12px;max-width:calc(100% - 16px);flex-wrap:wrap;justify-content:center}.welcome{bottom:12px}}

/* Focus controls remain visible alongside the music selector. */
#focus-hud{top:74px;left:auto;right:20px;transform:none;width:242px;display:flex;flex-direction:column;gap:8px;padding:18px;border-radius:20px;background:#fffaf0f2;box-shadow:0 12px 32px #263a2520}
#focus-hud #focus-timer{font:42px Georgia,serif;padding:0;font-variant-numeric:tabular-nums}
#focus-hud .focus-actions{display:flex;gap:5px}#focus-pause{background:var(--pine);color:white}
#now-listening{width:100%;border-top:1px solid #dedbc9;padding-top:12px;line-height:1.6}#now-listening small,#now-listening span{display:block}#now-listening small{font-size:9px;letter-spacing:1.2px}#now-listening span{overflow-wrap:anywhere}
#focus-music{position:fixed;top:340px;left:auto;right:34px;transform:none;max-height:calc(100vh - 355px);overflow:auto;width:280px}
@media(max-width:600px){#focus-hud{top:58px;right:8px;width:214px;padding:12px}#focus-music{top:318px;right:12px;max-height:calc(100vh - 330px);width:260px}}

/* Coffee ordering: scoped to this dialog, keeping shared menus unchanged. */
#dialog:has(.coffee-menu){width:620px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;padding:30px;border:1px solid #d7ccb8;border-radius:24px;background:#faf7ee;box-shadow:0 24px 80px #172c3452}
#dialog:has(.coffee-menu)>.close{width:36px;height:36px;right:12px;top:12px;border:1px solid #ddd5c5;border-radius:50%;background:#fffdf7;color:#304c40;display:grid;place-items:center;padding:0;font-size:23px}
.coffee-menu .coffee-menu-heading{height:auto;padding:5px 25px 20px 0;display:flex;align-items:center;gap:16px;border-bottom:1px solid #e3dbc9}
.coffee-menu-mark{flex:0 0 56px;width:56px;height:62px;display:grid;place-items:center;background:#e9edde;border:1px solid #ccd5bc;border-radius:24px 24px 18px 18px;font-size:29px;transform:rotate(-5deg)}
.coffee-menu .eyebrow{font-size:9px;line-height:1.6;letter-spacing:1.5px;color:#657157}
.coffee-menu h2{font:29px/1.12 Georgia,serif;letter-spacing:-.6px;margin:7px 0 9px;color:#304c40}
.coffee-menu-heading p{font-size:12px;line-height:1.55;color:#626956;margin:0}
.coffee-menu-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;font-size:11px;color:#6c715f}
.coffee-balance{display:flex;align-items:center;gap:5px;white-space:nowrap;padding:7px 10px;border-radius:20px;background:#efe4d0;color:#735634;font-size:11px;font-weight:600}
.coffee-menu .order-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:15px 0}
.coffee-menu .coffee-choice{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:start;min-height:116px;padding:15px 12px 32px;border:1px solid #dbd8c8;border-radius:17px;background:#fffdf7;box-shadow:0 3px 0 #e9e3d64d;text-align:left;transition:background .16s,border-color .16s,transform .16s}
.coffee-menu .coffee-choice:hover{background:#f0f2e5;border-color:#9cab89;transform:translateY(-2px);filter:none}
.coffee-menu .coffee-choice:active{transform:translateY(0)}
.coffee-menu .coffee-choice:disabled{opacity:.55;cursor:wait;transform:none}
.coffee-choice-icon{width:38px;height:38px;display:grid;place-items:center;background:#f1e8d8;border-radius:14px;font-size:21px}
.coffee-menu .coffee-choice strong{display:block;font-size:14px;line-height:1.4;font-weight:600;color:#304c40}
.coffee-menu .coffee-choice small{font-size:11px;line-height:1.5;color:#656d58;margin-top:4px}
.coffee-menu .coffee-price{position:absolute;bottom:9px;right:12px;float:none;display:flex;align-items:center;gap:4px;font-size:11px;font-weight:600;color:#304c40;background:#edf0e3;border-radius:12px;padding:4px 8px}
.coffee-menu .coffee-help{display:flex;align-items:center;gap:11px;padding:13px 14px;border:1px dashed #c8b99d;border-radius:14px;background:#f3ecdf;cursor:pointer;margin:0}
.coffee-menu .coffee-help input{appearance:auto;accent-color:#304c40;flex:0 0 18px;width:18px;height:18px;margin:0;padding:0;cursor:pointer}
.coffee-help>span:nth-child(2){flex:1}.coffee-help>span:last-child{font:24px Georgia;color:#ac794a}
.coffee-menu .coffee-help strong{display:block;font-size:12px;font-weight:600}.coffee-menu .coffee-help small{display:block;font-size:11px;color:#656d58;margin-top:4px;line-height:1.4}
.coffee-menu .coffee-menu-foot{font:italic 12px Georgia,serif;color:#817459;text-align:center;margin:17px 0 0}
.coffee-menu .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:480px){#dialog:has(.coffee-menu){padding:23px 18px 18px;max-width:calc(100vw - 20px);border-radius:20px}.coffee-menu .coffee-menu-heading{gap:11px;padding-right:17px}.coffee-menu-mark{flex-basis:40px;width:40px;height:48px;font-size:23px}.coffee-menu h2{font-size:24px}.coffee-menu .eyebrow{font-size:8px;letter-spacing:1px}.coffee-menu-meta{font-size:10px;gap:7px;flex-wrap:wrap}.coffee-balance{font-size:10px}.coffee-menu .order-grid{grid-template-columns:1fr;gap:8px}.coffee-menu .coffee-choice{grid-template-columns:38px minmax(0,1fr);min-height:88px;padding:12px 64px 12px 12px}.coffee-menu .coffee-price{top:13px;bottom:auto;right:10px}.coffee-menu .coffee-choice strong{font-size:13px}.coffee-menu .coffee-choice small{font-size:11px}}
