*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;font-family:Arial,Helvetica,sans-serif;color:#e8eef8;background:#18243a}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;border:0;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid #4d8dff;outline-offset:3px}button:disabled{opacity:.5;cursor:wait}button:hover{filter:brightness(1.12)}#renderCanvas{display:block;width:100%;height:100%;outline:none;touch-action:none}.topbar{position:absolute;top:0;left:0;right:0;height:76px;padding:18px 28px;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(#0b111bbb,transparent);pointer-events:none}.topbar>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none}.brand svg{width:35px;fill:none;stroke:#4d8dff;stroke-width:2}.brand>span{font-size:23px;font-weight:700;letter-spacing:.1em}.brand small{display:block;font-size:7px;letter-spacing:.25em;margin-top:5px}.top-right{display:flex;gap:12px;align-items:center}.top-right button{padding:10px 14px;background:#111a2ace;border:1px solid #9fb6d828;border-radius:7px;font-size:11px}.top-right button:last-child{border-radius:50%;width:34px;height:34px;padding:0}.local-badge{font-size:9px;letter-spacing:.16em}.local-badge i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8193ad;margin-right:8px}.location-panel{position:absolute;top:98px;left:28px;background:#0b111be8;padding:17px 20px;width:266px;border:1px solid #9fb6d822;border-radius:9px}.eyebrow{font-size:9px;letter-spacing:.19em;color:#4d8dff;font-weight:700}.location-panel strong{display:block;font-size:13px;line-height:1.4;margin:8px 0 6px}.location-panel>span:last-child{font-size:10px;color:#b4c2d8}.view-controls{position:absolute;right:28px;top:99px;display:flex;padding:4px;gap:2px;background:#0b111be8;border-radius:8px;border:1px solid #9fb6d822}.view-controls button{background:transparent;color:#b4c2d8;padding:9px 12px;border-radius:5px;font-size:11px}.view-controls button.active{background:#4d8dff;color:#111a2a}.map-panel{position:absolute;bottom:91px;left:28px;width:224px;background:#0b111bee;border:1px solid #9fb6d822;border-radius:8px;overflow:hidden}.map-panel>div{display:flex;justify-content:space-between;padding:11px 12px;font-size:8px;letter-spacing:.12em}.map-panel canvas{display:block;width:100%}.map-panel footer{display:flex;justify-content:space-between;align-items:center;padding:10px 11px;color:#8193ad;font-size:9px}.map-panel button{font-size:9px;color:#4d8dff;background:transparent;padding:0}#destinations{display:none;position:absolute;bottom:91px;left:265px;width:247px;padding:19px;background:#0b111bf2;border:1px solid #9fb6d833;border-radius:9px}#destinations.open{display:block}#placeList{display:grid;gap:4px;margin-top:10px}#placeList button{text-align:left;padding:10px;background:#ffffff06;border-radius:4px;font-size:11px}.bottom-bar{position:absolute;bottom:18px;left:28px;right:28px;display:flex;justify-content:center;gap:24px;pointer-events:none}.key-hints,.footer-buttons{pointer-events:auto;background:#0b111be8;border:1px solid #9fb6d822;border-radius:7px;display:flex;align-items:center;gap:15px;padding:12px 17px;font-size:10px;color:#b4c2d8}kbd{font:700 9px Arial;background:#ffffff13;padding:4px 5px;border-radius:3px;color:#4d8dff;letter-spacing:.03em}.key-hints span{white-space:nowrap}.footer-buttons{gap:8px;padding:6px}.footer-buttons button{font-size:9px;background:transparent;padding:8px;border-radius:4px}#worldLabels{pointer-events:none;position:absolute;inset:0}#worldLabels span{position:absolute;transform:translate(-50%,-50%);white-space:nowrap;background:#111a2ad9;border:1px solid #b4c2d830;padding:7px 11px;border-radius:4px;font-size:9px;letter-spacing:.1em;text-transform:uppercase}#interaction{position:absolute;bottom:130px;left:50%;transform:translateX(-50%);text-align:center;background:#0b111bf2;border:1px solid #4d8dff70;padding:14px 20px;border-radius:7px;min-width:220px}#interaction strong{display:block;font-size:13px;margin-bottom:10px}#interaction span{font-size:10px;line-height:1.8}#toast{position:absolute;left:50%;top:90px;transform:translate(-50%,-10px);background:#111a2af2;padding:12px 22px;border:1px solid #4d8dff66;border-radius:6px;font-size:12px;opacity:0;transition:opacity .18s,transform .18s;pointer-events:none}#toast.visible{opacity:1;transform:translate(-50%,0)}#help{display:none;position:absolute;right:28px;top:155px;width:310px;padding:22px;background:#0b111bf7;border:1px solid #9fb6d833;border-radius:9px}#help.visible{display:block}#help h2{font-size:19px;margin:0 0 16px}#help p{font-size:12px;line-height:1.7;color:#b4c2d8}.intro-wrap{position:absolute;inset:0;background:linear-gradient(90deg,#0b111bc9,transparent 75%);display:flex;align-items:center;padding:90px max(42px,6vw)}.intro-card{position:relative;width:405px;background:#0b111bf5;border:1px solid #9fb6d82b;border-radius:12px;padding:34px}.intro-card h1{font-family:Georgia,serif;font-size:49px;font-weight:400;letter-spacing:-.035em;line-height:1.05;margin:20px 0}.intro-card>p{font-size:13px;line-height:1.7;color:#b4c2d8;margin-bottom:28px}.team-label{font-size:9px;letter-spacing:.16em;color:#8193ad;margin-bottom:10px}.team-options{display:grid;gap:8px}.team-options button{display:flex;align-items:center;gap:12px;text-align:left;background:#9fb6d808;border:1px solid #9fb6d822;border-radius:7px;padding:13px}.team-options button.selected{border-color:#4d8dff;background:#4d8dff0d}.team-options button span{flex:1;font-size:13px}.team-options small{display:block;margin-top:4px;color:#8193ad;font-size:10px}.team-options b{font-size:12px;color:#4d8dff;visibility:hidden}.team-options .selected b{visibility:visible}.team-icon{width:36px;height:27px;display:grid;place-items:center;border-radius:3px}.team-icon.brasil{background:#367749;position:relative}.team-icon.brasil:before{content:'';width:18px;height:16px;background:#d8b546;transform:rotate(45deg)}.team-icon.brasil:after{content:'';position:absolute;width:10px;height:10px;border-radius:50%;background:#254b74}.team-icon.pt{background:#a92d36;color:#fff0df;font-style:normal;font-size:22px}.start{display:flex;justify-content:space-between;align-items:center;width:100%;padding:16px 18px;margin:22px 0 15px;color:#111a2a;background:#4d8dff;border-radius:6px;font-size:13px;font-weight:700}.disclosure{display:block;font-size:10px;color:#6a7c96;line-height:1.6}#closeMenu{position:absolute;top:15px;right:17px;background:transparent;color:#8193ad;font-size:24px}.hidden{display:none!important}#loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;background:#111a2a;z-index:10}#loading strong{font:32px Georgia,serif;color:#b4c2d8}#loading>span:last-child{font-size:11px;color:#8193ad}.loader-mark{width:28px;height:28px;border:2px solid #4d8dff33;border-top-color:#4d8dff;border-radius:50%;animation:spin 1.4s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.mobile-controls{display:none}
@media(max-width:800px){.topbar{height:66px;padding:16px}.brand>span{font-size:18px}.brand svg{width:26px}.brand small{font-size:6px}.local-badge{display:none}.top-right{gap:6px}.top-right button{font-size:9px;padding:9px}.location-panel{left:14px;top:80px;width:190px;padding:13px}.location-panel strong{font-size:11px}.view-controls{top:80px;right:14px;gap:0}.view-controls button{font-size:9px;padding:8px}.map-panel{width:150px;left:14px;bottom:118px}.map-panel canvas{height:115px}.map-panel footer{font-size:8px;padding:8px;gap:3px}.map-panel button{font-size:8px}.bottom-bar{left:14px;right:14px;bottom:13px;justify-content:flex-end}.key-hints{display:none}.footer-buttons{padding:3px}.footer-buttons button{font-size:8px;padding:7px}#destinations{left:173px;bottom:175px;width:202px;padding:12px}#placeList button{font-size:10px;padding:9px}#interaction{bottom:178px;min-width:190px;padding:10px}#interaction strong{font-size:11px}#interaction span{font-size:9px}#help{right:14px;top:148px;width:275px}.intro-wrap{padding:74px 20px 22px;align-items:center}.intro-card{padding:26px;width:360px;max-width:100%;margin:auto}.intro-card h1{font-size:41px;margin:18px 0}.intro-card>p{margin-bottom:18px;font-size:12px}.intro-card .start{margin-top:17px}#toast{top:145px;width:max-content;max-width:90%;font-size:10px}}
@media(max-height:620px){.intro-card{padding:22px;width:480px}.intro-card h1{font-size:34px;margin:10px 0}.intro-card>p{margin:10px 0}.team-options{grid-template-columns:1fr 1fr}.intro-wrap{padding:70px 20px 10px}.team-options small{display:none}.map-panel{bottom:76px;width:160px}.map-panel canvas{height:105px}.location-panel{padding:11px}.footer-buttons{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}.loader-mark{animation:none}}
/* Paleta neutra preto/azul */
:root{--bg:#06090f;--panel:#0b111be8;--line:#9fb6d822;--accent:#4d8dff;--accent-2:#2f6bff;--text:#e8eef8;--muted:#8193ad}
html,body{background:var(--bg);font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif}
.panel-glass,.location-panel,.view-controls,.map-panel,.key-hints,.footer-buttons,#destinations,#help,.intro-card,#interaction,#toast{backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);box-shadow:0 10px 30px #0008}
.topbar{background:linear-gradient(#05080ecc,transparent)}
.brand svg{stroke:var(--accent)}
.view-controls button.active,.start{background:linear-gradient(135deg,#5b9bff,#2f6bff);color:#fff;box-shadow:0 6px 20px #2f6bff55}
.start:hover{filter:brightness(1.1)}
.intro-wrap{background:linear-gradient(90deg,#03060bf0 0%,#05091299 45%,transparent 80%)}
.intro-card{background:linear-gradient(160deg,#0e1626f5,#080d17f5);border:1px solid #4d8dff33}
.intro-card h1{font-family:Inter,"Segoe UI",Arial,sans-serif;font-weight:800;letter-spacing:-.04em;font-size:46px}
.intro-card h1 em{font-style:normal;color:var(--accent)}
.team-options button.selected{border-color:var(--accent);background:#4d8dff14;box-shadow:inset 0 0 0 1px #4d8dff55}
kbd{color:#cfe0ff;background:#4d8dff22;border:1px solid #4d8dff44}
#loading{background:radial-gradient(circle at 50% 40%,#0f1a2e,#05080e 70%)}
#loading strong{font-family:Inter,"Segoe UI",Arial,sans-serif;font-weight:800;color:var(--text);letter-spacing:-.02em}
.loader-mark{border-color:#4d8dff33;border-top-color:var(--accent)}
.local-badge i{background:var(--accent);box-shadow:0 0 8px var(--accent)}
#crosshair{position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;pointer-events:none;opacity:0;transition:opacity .15s}
#crosshair:before,#crosshair:after{content:'';position:absolute;background:#e8eef8cc;box-shadow:0 0 2px #000}
#crosshair:before{left:8px;top:0;width:2px;height:18px}#crosshair:after{top:8px;left:0;height:2px;width:18px}
body.locked #crosshair{opacity:1}
.settings-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);margin-top:10px}
.settings-row input{accent-color:var(--accent);width:120px}

/* Toque: polegar esquerdo anda (joystick flutuante), polegar direito luta;
   o que se usa de vez em quando fica nos ícones do topo. Vale para qualquer
   ponteiro grosso (celular em pé ou deitado, tablet). Margens respeitam o
   entalhe e a barra do iPhone. */
.touch-top,.touch-sheet,.touch-only{display:none}
@media(pointer:coarse){
:root{--sl:env(safe-area-inset-left,0px);--sr:env(safe-area-inset-right,0px);--st:env(safe-area-inset-top,0px);--sb:env(safe-area-inset-bottom,0px)}
.desk-only{display:none}.touch-only{display:block}
.brand,#fps,.bottom-bar,.view-controls,.key-hints,#teamButton,#helpButton,.local-badge:not(.online):not(.reconnecting){display:none!important}
.topbar{height:auto;padding:0;background:none}.top-right{position:fixed;top:calc(10px + var(--st));right:calc(118px + var(--sr))}.top-right button{height:44px;border-radius:22px}
body .location-panel.quiet{opacity:0}
.location-panel{transition:opacity .6s;pointer-events:none;top:calc(10px + var(--st));left:calc(12px + var(--sl));width:auto;max-width:46vw;padding:7px 12px;border-radius:18px}.location-panel .eyebrow,.location-panel>span:last-child{display:none}.location-panel strong{margin:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.local-badge{position:fixed;top:calc(48px + var(--st));left:calc(14px + var(--sl));font-size:9px}
.map-panel{display:none;top:calc(70px + var(--st));bottom:auto;left:calc(12px + var(--sl));width:150px}body.show-map .map-panel{display:block}.map-panel footer{display:none}
.vida{top:auto!important;bottom:calc(10px + var(--sb))!important;left:calc(30px + var(--sl))!important;transform:none!important;padding:4px 8px!important;gap:6px!important;font-size:9px!important;background:#0b111b99!important}.vida b{width:72px!important;height:6px!important}
.touch-top{display:flex;gap:8px;position:fixed;top:calc(10px + var(--st));right:calc(12px + var(--sr));z-index:8;pointer-events:auto}
.touch-top button{position:static;display:grid;place-items:center;transform:none;width:44px;height:44px;border-radius:50%;background:#0b111bd9;border:1px solid #9fb6d846;font-size:19px;padding:0}
#chatLog{top:calc(56px + var(--st))!important;left:calc(12px + var(--sl))!important;bottom:auto!important;width:min(62vw,330px);pointer-events:none}#chatLog.recent,body.chat-history #chatLog{pointer-events:auto}body.chatting #chatLog{top:calc(110px + var(--st))!important}
#chatForm{top:calc(62px + var(--st))!important;left:calc(12px + var(--sl))!important;right:calc(12px + var(--sr))!important}
#toast{top:calc(64px + var(--st))}
.mobile-controls{display:block;position:absolute;inset:0;pointer-events:none}
#moveZone{position:absolute;left:0;bottom:0;width:46%;height:62%;pointer-events:auto;touch-action:none}
.joystick{position:absolute;left:calc(28px + var(--sl));bottom:calc(44px + var(--sb));width:120px;height:120px;border-radius:50%;background:#0b111b80;border:1px solid #9fb6d846;pointer-events:none;opacity:.55;transition:opacity .15s}
.joystick.active{opacity:1;bottom:auto}.joystick i{position:absolute;left:50%;top:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:#4d8dffcc;box-shadow:0 2px 10px #0008}.joystick.run i{background:#9fc0ff}
.mobile-actions{position:absolute;right:calc(16px + var(--sr));bottom:calc(16px + var(--sb));width:250px;height:280px;pointer-events:none}
.mobile-actions button{position:absolute;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;display:grid;place-items:center;align-content:center;border-radius:50%;background:#111a2ae0;border:1px solid #9fb6d846;color:#e8eef8;font-size:20px;line-height:1;padding:0}
.mobile-actions button small{display:block;font-size:9px;letter-spacing:.04em;color:#b4c2d8;margin-top:3px}
.mobile-actions button:active,.mobile-actions button.on{background:#4d8dff;border-color:#9fc0ff;transform:scale(.94)}
.act-punch{right:0;bottom:6px;width:84px;height:84px;font-size:30px!important;background:#4d8dffd9!important;color:#0b111b!important}.act-punch small{color:#0b111b!important}
.act-jump{right:96px;bottom:0;width:60px;height:60px}
.act-kick{right:84px;bottom:76px;width:60px;height:60px}
.act-guard{right:6px;bottom:100px;width:60px;height:60px}
.act-weapon{right:162px;bottom:8px;width:52px;height:52px}
.act-crouch{right:154px;bottom:72px;width:52px;height:52px}
.act-emote,.mobile-actions #chatButton{width:48px;height:48px;font-size:19px}.act-emote{right:72px;bottom:150px}.mobile-actions #chatButton{position:absolute;display:grid;transform:none;left:auto;top:auto;right:10px;bottom:172px;z-index:auto}
.act-context{right:64px;bottom:206px;width:auto!important;height:40px!important;border-radius:20px!important;padding:0 16px!important;font-size:13px!important;font-weight:700;background:#0b111bf0!important;border:1px solid #4d8dff!important;white-space:nowrap}
.act-context[hidden]{display:none}
.touch-sheet{position:fixed;z-index:9;pointer-events:auto;right:calc(12px + var(--sr));top:calc(62px + var(--st));background:#0b111bf5;border:1px solid #9fb6d833;border-radius:14px;padding:10px;box-shadow:0 10px 30px #0008;max-height:calc(100% - 80px);overflow:auto}
.touch-sheet:not([hidden]){display:grid}
#emoteWheel{left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);grid-template-columns:repeat(5,66px);gap:8px}#emoteWheel button{height:68px;border-radius:12px;background:#ffffff0a;font-size:24px;display:grid;place-items:center;align-content:center}#emoteWheel small{font-size:10px;color:#b4c2d8;margin-top:4px}
#touchMenu{gap:4px;min-width:220px}#touchMenu small{display:block;font-size:11px;color:#b4c2d8;margin:3px 0 0 24px}#touchMenu button[hidden]{display:none}#touchMenu button{text-align:left;padding:12px 14px;border-radius:9px;background:#ffffff08;font-size:14px}
#destinations{left:auto;right:calc(12px + var(--sr));top:calc(62px + var(--st));bottom:auto;z-index:9;max-height:calc(100% - 80px);overflow:auto}#placeList button{font-size:14px;padding:12px}
#help{top:calc(62px + var(--st));right:calc(12px + var(--sr));z-index:9;width:min(340px,calc(100% - 24px));max-height:calc(100% - 80px);overflow:auto}
body #somPanel{left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(380px,calc(100% - 24px));max-height:calc(100% - 24px);z-index:9}
}
/* celular em pé: botões um pouco menores e mais baixos */
@media(pointer:coarse) and (orientation:portrait){.mobile-actions{transform:scale(.9);transform-origin:right bottom}#moveZone{height:48%}#emoteWheel{grid-template-columns:repeat(3,72px)}}
body:has(#lobby:not(.hidden)) .mobile-controls{display:none}
@media(max-height:500px){.intro-wrap{overflow-y:auto;align-items:flex-start;padding:12px 16px}.intro-card{padding:18px 22px;width:400px;margin:0}.intro-card h1{font-size:30px;margin:10px 0}.intro-card>p{font-size:11px;margin-bottom:10px}.team-options{grid-template-columns:1fr 1fr}.team-options button{padding:9px}.intro-card .start{margin:12px 0 8px;padding:12px 16px}}

/* Histórico do chat: cada fala aparece, sobe e some sozinha; com o chat aberto
   ou tocando no histórico, todas as anteriores voltam e dá para rolar. */
#chatLog{max-height:38vh;overflow-y:auto;scrollbar-width:none}#chatLog::-webkit-scrollbar{display:none}
#chatLog p{transition:opacity .8s}#chatLog p.old{opacity:0;height:0;padding:0;margin:0;overflow:hidden}
body.chatting #chatLog,body.chat-history #chatLog{opacity:1;background:#06090f66;border-radius:10px;padding:6px}
body.chatting #chatLog p.old,body.chat-history #chatLog p.old{opacity:.85;height:auto;padding:5px 9px}

/* desempenho: desfoque de fundo por cima do jogo 3D custa um redesenho por quadro (pesava no celular e no aviso de desmaio); os painéis já são quase opacos */
.location-panel,.view-controls,.map-panel,.key-hints,.footer-buttons,#destinations,#help,#interaction,#toast,.cv-queue,.cv-side,.cv-meter{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* Barra de teclas (PC): teclas desenhadas como teclas, agrupadas por assunto
   (andar · lutar · falar e interagir · câmera e menus). Fica baixa (uns 52 px)
   para não cobrir o mapa, a vida nem o mini player. "falar" é botão: abre o chat. */
.key-hints{gap:0;padding:6px 4px;align-items:stretch}
.kh-group{display:flex;align-items:flex-end;gap:11px;padding:0 12px;border-left:1px solid #9fb6d81c}
.kh-group:first-child{border-left:0}
.kh{display:flex;flex-direction:column;align-items:center;gap:4px;white-space:nowrap;color:#b4c2d8}
.kh small{font-size:9.5px;line-height:1;letter-spacing:.02em;color:#9fb0c8}
.kh .keys{display:flex;align-items:center;gap:4px;height:22px}.kh .keys b{font-weight:400;color:#6a7c96}
.key-hints kbd{display:inline-grid;place-items:center;box-sizing:border-box;min-width:22px;height:22px;padding:0 5px;font:700 11px/1 Inter,"Segoe UI",Arial,sans-serif;letter-spacing:0;color:#e8eef8;background:linear-gradient(#26344d,#172236);border:1px solid #4d8dff4d;border-bottom:3px solid #0d1626;border-radius:5px}
.key-hints kbd.wide{min-width:40px}.key-hints kbd.space{min-width:64px}
.kh-wasd{flex-direction:row;align-items:center;gap:7px}
.wasd{display:grid;grid-template-columns:repeat(3,19px);grid-template-rows:19px 19px;gap:2px}.wasd kbd{min-width:19px;height:19px;font-size:10px;padding:0}.wasd .w{grid-column:2}
.kh i.mouse{position:relative;display:inline-block;width:14px;height:20px;border:1.5px solid #9fb6d8aa;border-radius:7px;box-sizing:border-box;overflow:hidden}
.kh i.mouse:before{content:'';position:absolute;top:0;width:50%;height:8px;background:#4d8dff;border-bottom:1px solid #0b111b}.kh i.mouse.l:before{left:0}.kh i.mouse.r:before{right:0}
.kh i.mouse:after{content:'';position:absolute;left:50%;top:0;width:1px;height:8px;background:#9fb6d8aa}
button.kh-chat{font:inherit;color:inherit;background:#4d8dff1f;border:1px solid #4d8dff66;border-radius:9px;padding:3px 9px;margin:-3px 0;cursor:pointer}
button.kh-chat:hover{background:#4d8dff33;filter:none}button.kh-chat small{color:#cfe0ff;font-weight:700}
button.kh-chat .ico{width:17px;height:17px;fill:none;stroke:#cfe0ff;stroke-width:2;stroke-linejoin:round}
body.chatting button.kh-chat{background:#4d8dff;border-color:#9fc0ff}
@media(max-width:1240px){.kh-sys{display:none}}
@media(max-width:1000px){.footer-buttons{display:none}}
@media(max-width:900px){.kh-group:nth-child(2){display:none}}
.wasd kbd:nth-child(2){grid-row:2;grid-column:1}.wasd kbd:nth-child(3){grid-row:2;grid-column:2}.wasd kbd:nth-child(4){grid-row:2;grid-column:3}

/* Chat no PC: conversa e campo de digitar ficam à esquerda, logo acima do mapa
   (antes caíam por cima dele). Com o chat aberto aparece a conversa inteira e a
   roda do mouse rola as falas antigas. */
@media not (pointer:coarse){
html body #chatForm{left:28px;bottom:342px;width:400px;max-width:calc(100% - 56px)}
html body #chatLog{left:28px;bottom:342px;width:360px;max-height:min(34vh,calc(100vh - 560px));min-height:0}
html body.chatting #chatLog{bottom:394px;pointer-events:auto;max-height:min(40vh,calc(100vh - 612px))}
html body.caravana #chatForm,html body.caravana #chatLog{bottom:110px}html body.caravana.chatting #chatLog{bottom:162px}
@media(max-height:620px){html body #chatForm,html body #chatLog{bottom:270px}html body.chatting #chatLog{bottom:322px;max-height:calc(100vh - 420px)}}
body.chatting #chatLog{scrollbar-width:thin;scrollbar-color:#4d8dff88 transparent}
body.chatting #chatLog::-webkit-scrollbar{display:block;width:6px}body.chatting #chatLog::-webkit-scrollbar-thumb{background:#4d8dff88;border-radius:3px}
}
#chatLog p{flex-shrink:0}
body.chatting #chatLog{pointer-events:auto;overscroll-behavior:contain;touch-action:pan-y}
body.chatting #chatLog::before{content:'CONVERSA';position:sticky;top:-6px;z-index:1;font-size:9px;font-weight:700;letter-spacing:.18em;color:#4d8dff;padding:4px 4px 6px;background:linear-gradient(#0b111bf2 70%,transparent)}
body.chatting #chatLog:empty::after{content:'Ninguém falou ainda. Diga oi!';font-size:12px;color:#b4c2d8;padding:4px}

/* Aviso de interação (subir, descer, dirigir, porta, banco): pequeno e meio
   transparente, logo abaixo do personagem; informa sem ser o centro da tela. */
html body #interaction{top:auto;bottom:22%;left:50%;transform:translateX(-50%);min-width:0;display:flex;align-items:center;gap:8px;padding:5px 11px;border-radius:999px;background:#0b111b8c;border:1px solid #9fb6d833;box-shadow:none;opacity:.82;white-space:nowrap;pointer-events:none}
html body #interaction strong{display:inline;margin:0;font-size:11px;font-weight:600;color:#cfd9e8}
html body #interaction span{font-size:10.5px;line-height:1.2;color:#b4c2d8}
html body #interaction kbd{font-size:9px;padding:2px 4px}
html body #interaction[hidden]{display:none}
@media(pointer:coarse){html body .act-context{height:30px!important;padding:0 11px!important;font-size:11px!important;font-weight:600;background:#0b111b8c!important;border:1px solid #4d8dff59!important;color:#dfe8f5;opacity:.85;bottom:212px}}
