/* Edição web separada: interface local, sem dependências de rede. */
:root{--bg:#111216;--panel:#1c1e25;--line:#2b2e37;--text:#f5f6fa;--muted:#a4a7b4;--accent:#c2ff70;--purple:#a792f6}
body{font-family:system-ui,-apple-system,Roboto,Arial,sans-serif;font-size:14px;-webkit-tap-highlight-color:transparent;overflow-x:hidden}h1,h2,h3,.brand{font-family:inherit}button{min-height:44px}button:active{filter:brightness(.9)}button:hover{transform:none}main{margin:0 auto;padding:0 18px 90px;max-width:860px}h1{font-size:29px;line-height:1.15;letter-spacing:-1px;margin:8px 0 0}h2{font-size:21px;letter-spacing:-.5px;margin:0}h3{font-size:16px}p{line-height:1.5} .lime{color:var(--accent)}.app-header{height:68px;padding:0 13px;display:flex;align-items:center;border-bottom:1px solid #ffffff09;position:relative;background:var(--bg);z-index:4;margin:0}.app-header .brand{font-size:21px;letter-spacing:-1px;gap:9px;white-space:nowrap}.brand img{border-radius:10px}.brand b{color:var(--accent)}.icon-button{background:none;width:42px;min-width:42px;height:44px;padding:0;border-radius:12px;font-size:26px;text-align:center}.header-tools{display:flex;align-items:center;margin-left:auto}.header-tools .icon-button{font-size:28px;width:35px;min-width:35px}.profile{padding:4px;background:none}.profile span{width:32px;height:32px;border-radius:50%;font-size:13px;border:1px solid #8dac61}.eyebrow{color:#a4ad94;font-size:9px;font-weight:700;letter-spacing:1.8px}.greeting{display:flex;align-items:center;justify-content:space-between;padding:22px 0 18px;gap:10px}.greeting h1{font-size:26px}.local-tag{display:inline-block;max-width:100%;font-size:8px;letter-spacing:.6px;font-weight:700;color:#b2bca3;background:#c2ff7010;border:1px solid #c2ff7025;border-radius:6px;padding:6px 8px;white-space:normal;line-height:1.5}.home-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 -2px 21px}.home-shortcuts button{background:transparent;padding:0;text-align:center;display:flex;align-items:center;flex-direction:column;min-width:0}.home-shortcuts button>span{width:60px;height:60px;background:#24262f;border:1px solid #363942;display:grid;place-items:center;border-radius:50%;font-size:29px;color:#b3b5c2}.home-shortcuts .shortcut-avatar{color:#c2ff70;background:radial-gradient(ellipse at top,#465a3d,#202728)}.home-shortcuts b{font-size:10px;font-weight:600;margin-top:8px;white-space:nowrap}.home-shortcuts small{font-size:8px;color:#9a9eac;margin-top:3px}.hero{min-height:240px;border:1px solid #414c40;border-radius:18px;background:radial-gradient(ellipse at 90% 10%,#4d5b44,#242b2c 45%,#1b2025 90%);overflow:hidden}.hero-copy{padding:23px 21px;width:65%;pointer-events:none}.hero h2{font-size:30px;line-height:1.07;margin:13px 0 10px;letter-spacing:-1px;position:relative;z-index:1}.hero em{color:var(--accent);font-style:normal}.hero p{font-size:10px;line-height:1.5;margin:9px 0 14px;color:#d3d5d7;max-width:210px;width:auto}.hero .primary{min-height:40px;padding:10px 14px;gap:17px;font-size:11px;position:relative;z-index:2;border-radius:9px;pointer-events:auto}.hero-note{display:block;font-size:8px;color:#aeb7ac;margin-top:9px;position:relative;z-index:2}#hero-3d{width:60%;right:-9%;top:4%;bottom:0;height:auto;opacity:1;pointer-events:none}.section-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin:27px 0 5px;gap:8px}.section-heading h2{font-size:21px;margin:0}.section-heading .text-button{color:#b5b8c4;padding:4px 0 4px 10px;font-size:10px;min-height:32px}.section-note{font-size:10px;color:#9fa3b2;margin:6px 0 15px;line-height:1.55}.world-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;margin-top:14px}.world-card{background:transparent;border:0;border-radius:0;text-align:left;box-shadow:none!important}.world-card:hover{transform:none;border:0}.world-art{height:125px;border:1px solid #ffffff12;border-radius:13px;overflow:hidden}.world-art svg{width:100%;height:100%;filter:drop-shadow(0 7px 8px #0005)}.world-tag{font-size:7px;top:9px;left:8px;padding:4px 5px;background:#121824aa;border:1px solid #ffffff15}.card-play{opacity:1;width:24px;height:24px;font-size:9px;right:9px;bottom:9px;background:var(--accent)}.card-body{padding:9px 1px 0}.card-body h3{font-size:13px;line-height:1.25;letter-spacing:-.2px;margin:0 0 5px}.card-body p{font-size:9px;margin:0 0 5px;display:none}.card-meta{font-size:8px;display:flex;flex-direction:column;align-items:flex-start;gap:3px}.card-meta b{font-size:9px;color:#a6b298;font-weight:500}.card-meta>span{color:#9ea5bd;letter-spacing:1px}.rail{display:grid;grid-auto-flow:column;grid-auto-columns:141px;overflow-x:auto;gap:12px;padding:2px 0 8px;scroll-snap-type:x proximity}.rail .world-card{scroll-snap-align:start}.rail .world-art{height:130px}.rail .card-meta>span{display:none}.rail-empty{grid-column:1;min-width:calc(100vw - 40px);border:1px dashed #3b4143;border-radius:12px;padding:18px;color:#989fab;font-size:12px;line-height:1.6}.offline-note{border:1px solid #2d3432;background:#19201b;display:flex;align-items:center;border-radius:12px;padding:15px;margin-top:25px}.offline-note>span{font-size:28px;color:var(--accent);margin-right:13px}.offline-note b{font-size:12px}.offline-note p{font-size:10px;margin:5px 0;color:#a8b2a7}footer{padding:28px 0 0;font-size:10px;color:#adb59f;letter-spacing:2px;display:block}footer span{font-size:9px;display:block;margin-top:8px;letter-spacing:0;color:#747b85}.bottom-nav{position:fixed;left:0;right:0;bottom:0;height:70px;background:#111216f5;border-top:1px solid #292c33;display:grid;grid-template-columns:repeat(5,1fr);gap:0;padding:4px 5px 7px;z-index:6;backdrop-filter:blur(16px)}.bottom-nav .nav{padding:3px 2px;min-width:0;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:2px;border-radius:12px;background:none;color:#9a9eac;font-size:10px}.bottom-nav .nav span{font-size:24px;width:auto;line-height:1.2}.bottom-nav .nav.active{color:var(--accent);background:#c2ff7009}.page-heading{padding:25px 0 20px}.page-heading p{margin-bottom:0}.search{max-width:none;width:100%;height:46px;background:#1d1f27;border:1px solid #353844;padding:8px 12px;font-size:25px}.search input{font-size:13px;width:100%;height:36px}.filter-row{margin:17px 0 13px;display:block}.filters{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:7px}.chip{font-size:10px;padding:8px 12px;border-radius:22px;white-space:nowrap;min-height:36px}.catalog-meta{display:flex;justify-content:space-between;font-size:10px;color:#9299a8;margin:17px 0 22px}#world-count{display:inline;font-size:10px;color:#9299a8}.rail-title{font-size:21px;margin-bottom:15px}#highlights>.secondary{width:100%;margin-top:15px}.avatar-tabs{display:flex;justify-content:center;background:#252730;border-radius:25px;width:max-content;max-width:100%;margin:20px auto 0;padding:4px}.avatar-tabs button{background:none;border-radius:22px;padding:9px 15px;font-size:12px}.avatar-tabs button.selected{background:#464b41;color:#d5ff9d}.avatar-tabs small{font-size:8px;display:block;color:#a6a7af}.avatar-display{border:0;border-radius:0;background:radial-gradient(ellipse at 50% 50%,#555d59,#35383e 35%,#1c2028 70%,#111216 100%);min-height:290px;margin:0 -18px;position:relative}#avatar-3d{height:290px;width:100%}.badge{font-size:8px;letter-spacing:1.7px;bottom:16px;color:#a9b5b3}.custom-sheet{position:relative;background:#17191f;border:1px solid #2d3037;border-radius:22px 22px 13px 13px;margin:0 -7px;padding:10px 16px 23px}.sheet-handle{width:38px;height:4px;background:#4a4e58;border-radius:9px;margin:0 auto 19px}.custom-sheet .section-heading{margin-top:0}.custom-sheet h2{font-size:19px}.custom-sheet h3{margin:22px 0 14px;font-size:15px}.skin-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:25px}.skin{min-height:95px;padding:13px 5px 9px;background:#262933;border-radius:11px;border:1px solid #333743;font-size:9px}.swatch{margin-bottom:9px;width:30px;height:34px}.effect-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.effect{padding:12px 7px;font-size:11px}.name-label{font-size:12px}.name-label input{font-size:15px;min-width:0;min-height:46px}#save-profile{width:100%}.empty-feature{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:460px;padding:30px 15px}.empty-icon{color:#b4c8a2;font-size:60px;line-height:1;margin-bottom:28px}.empty-feature h2{font-size:28px;line-height:1.2;margin:23px 0 10px}.empty-feature p{max-width:350px;font-size:13px;margin:7px 0 28px;color:#a4abb9}.profile-identity,.drawer-identity{display:flex;align-items:center;gap:15px;margin:5px 0 24px}.large-avatar{width:64px;height:64px;display:grid;place-items:center;font-size:27px;color:#20261d;background:var(--accent);border:2px solid #737e64;border-radius:50%;flex-shrink:0}.profile-identity h2,.drawer-identity h2{font-size:20px;overflow-wrap:anywhere}.profile-identity p,.drawer-identity p{font-size:11px;color:#9c9fae;margin:5px 0 0}.profile-identity .icon-button{margin-left:auto}.profile-summary{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #30343a;border-radius:14px;background:#1b1e23;padding:18px 5px;margin-bottom:24px}.profile-summary div{text-align:center;display:flex;flex-direction:column}.profile-summary b{font-size:24px;color:var(--accent)}.profile-summary small{font-size:9px;color:#a0a8b5;margin-top:6px}.menu-list{display:grid;gap:0}.menu-list button{display:flex;align-items:center;gap:12px;text-align:left;background:transparent;min-height:54px;border-bottom:1px solid #ffffff08;font-size:14px;font-weight:550;padding:10px 4px}.menu-list button>span{width:25px;font-size:22px;color:#bbc2c8;text-align:center}.menu-list button>b,.menu-list button>small{margin-left:auto;color:#979ca7;font-size:10px;font-weight:400}.menu-list button>b{font-size:24px}.panel{padding:22px;margin-bottom:15px;border-radius:14px}.panel h2{font-size:20px;margin:0 0 12px}.panel p{font-size:13px}.panel h3{margin-top:24px}.panel .secondary{width:100%;font-size:12px}.drawer-overlay{position:fixed;left:0;top:0;right:0;bottom:0;background:#0009;z-index:11;display:flex}.drawer-overlay>#drawer-backdrop{position:absolute;left:0;top:0;width:100%;height:100%;background:transparent;border-radius:0}.drawer{position:relative;width:88%;max-width:380px;background:#15171d;height:100%;overflow:auto;border-right:1px solid #333640;padding:15px 23px 26px;z-index:1;box-shadow:15px 0 50px #0005}.drawer-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.drawer .brand{font-size:20px}.drawer-identity{padding-bottom:20px;border-bottom:1px solid #30333d}.drawer .menu-list button{font-size:14px;min-height:52px}.drawer-foot{font-size:9px;letter-spacing:.4px;line-height:1.8;margin-top:25px;color:#8e99a5}.modal-overlay{position:fixed;left:0;top:0;right:0;bottom:0;z-index:30;display:flex;align-items:center;justify-content:center;background:#05070ccf;padding:23px}.feature-card{background:#20232b;border:1px solid #434953;border-radius:22px;padding:28px 23px;width:100%;max-width:390px;box-shadow:0 20px 90px #0008}.feature-card h2{font-size:27px;margin:20px 0 15px}.feature-card p{font-size:13px;color:#c1c7d1;line-height:1.65}.feature-card .primary{width:100%;margin-top:18px}#toast{bottom:85px;font-size:12px;padding:12px 17px;width:max-content;max-width:88%}.stats{gap:9px;margin:20px 0;grid-template-columns:repeat(3,minmax(0,1fr))}.stat{padding:15px 8px}.stat b{font-size:24px}.stat span{font-size:10px}.achievement-grid{grid-template-columns:1fr;gap:12px}.achievement{padding:18px}.danger{font-size:12px;margin-top:25px}#progress>.eyebrow{margin-top:24px}#progress>h1{font-size:29px;margin:10px 0 20px}#progress>h2{margin:27px 0 18px}
@media(min-width:600px){main{padding-left:28px;padding-right:28px}.app-header{padding:0 max(20px,calc((100% - 820px)/2))}.hero{min-height:300px}.hero h2{font-size:42px}.hero-copy{padding:32px;width:58%}.hero p{font-size:13px;max-width:330px}.hero-note{font-size:10px}.hero .primary{font-size:13px;min-height:44px}#hero-3d{right:0;width:52%}.world-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.world-art{height:145px}.home-shortcuts{max-width:470px;margin-left:auto;margin-right:auto}.avatar-display,#avatar-3d{height:340px}.skin{font-size:12px}.bottom-nav{padding-left:calc((100% - 550px)/2);padding-right:calc((100% - 550px)/2)}.rail-empty{min-width:500px}}
@media(max-width:350px){main{padding-left:13px;padding-right:13px}.app-header .brand{font-size:18px}.app-header .brand img{width:27px;height:27px}.header-tools .icon-button{width:30px;min-width:30px}.home-shortcuts{gap:6px}.hero-copy{padding:22px 17px}.hero h2{font-size:28px}.hero p{font-size:9px}.greeting h1{font-size:23px}.greeting>.local-tag{font-size:7px;max-width:85px}.section-heading h2{font-size:19px}.world-art{height:110px}}
/* Os controles do jogo continuam maiores que as ações de navegação. */
#game button{min-height:44px}#game .touch-controls{display:flex}#game .touch-controls button{width:52px;height:52px}#game #touch-jump{width:82px;height:82px}#game-tip{font-size:11px;line-height:16px;top:66px;max-width:94%;color:#f1f4f8;background:#101727ef}#keyboard-tip{font-size:9px;color:#b7c0cf}.game-title span{font-size:17px}.game-title small{font-size:10px;max-width:none}.game-top{top:10px;left:12px;right:12px}.game-title{padding:8px 12px}.game-stats{top:121px;left:14px}.glass{font-size:12px;padding:10px 13px}.result-card h1{font-size:28px}
@media(max-height:450px){#game-tip{top:61px;font-size:10px;line-height:14px;padding:5px 9px}.game-stats{top:110px}.game-stats>span{font-size:11px;padding:7px 12px}.result-card{padding:10px 20px}.result-card h1{font-size:22px;margin:3px 0}.result-card p{margin:4px 0}.result-card button{min-height:36px;margin-top:6px;padding:8px 12px}#result-icon{font-size:24px}#result-stats{margin:6px 0;font-size:13px}.touch-controls{bottom:18px}}

/* A marca permanece visível no cabeçalho compacto. */
.app-header .brand{display:flex}.app-header .brand img{display:block;flex-shrink:0}.app-header .brand>span:last-child{display:inline}.app-header .brand>span{font-size:20px}.app-header .brand b{font-size:17px}.app-header .brand{gap:7px;letter-spacing:-.8px}.icon-button svg,.bottom-nav .nav svg{width:23px;height:23px;display:block;margin:auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.bottom-nav .nav>span{height:27px;display:flex;align-items:center}.bottom-nav .nav.active svg{stroke-width:2.2}.record-list{margin-top:25px}.record-row{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line);font-size:12px}.record-row b{color:var(--accent);font-size:15px}.record-row span{color:#c1c7d2}.record-row small{font-size:9px;display:block;color:#909aaa;margin-top:4px}

.avatar-wallet{display:flex;justify-content:flex-end;padding-top:15px;margin-bottom:-6px}.currency-disabled{background:#23262d;border:1px solid #3b4048;border-radius:20px;padding:7px 13px;color:#a7acb6;font-size:11px;cursor:default;opacity:.8;min-height:34px}.currency-disabled small{font-size:8px;display:block;margin-top:2px;color:#9399a4}.avatar-wallet+.avatar-tabs{margin-top:0}.menu-list .disabled-menu{color:#959ba6;cursor:default;opacity:.65}.menu-list .disabled-menu:hover{filter:none}.menu-list .disabled-menu:active{transform:none}

/* Recursos sociais indisponíveis: sem navegação nem aparência ativa. */
button.social-unavailable:disabled{cursor:not-allowed!important;color:#969ca7!important;background:#202329!important;border-color:#444a55!important;box-shadow:none!important;filter:grayscale(1);opacity:.72;transform:none!important}
button.social-unavailable:disabled:hover,button.social-unavailable:disabled:active{transform:none!important;filter:grayscale(1);box-shadow:none!important}
.home-shortcuts .social-unavailable .shortcut-icon{color:#818998!important;background:#30353d!important}
.home-shortcuts .social-unavailable small,.menu-list .social-unavailable small{color:#c3c8d0!important;font-weight:700}
.bottom-nav .nav.social-unavailable{position:relative;gap:1px;padding-top:5px;padding-bottom:5px}
.bottom-nav .nav.social-unavailable small{display:block;font-size:8px;line-height:10px;font-weight:700;color:#c3c8d0;letter-spacing:.02em}

.header-tools .icon-button.social-unavailable{width:49px;height:48px;flex-shrink:0;padding:4px}
.header-tools .icon-button.social-unavailable small{display:block;font-size:8px;line-height:10px;font-weight:700;color:#c3c8d0;white-space:nowrap;margin-top:2px}


/* Overrides finais: HUD do jogo responsivo, sem sobreposição em telas estreitas. */
#game{overflow:hidden}
.game-hud{position:absolute;top:10px;left:12px;right:12px;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;z-index:3;pointer-events:none;min-width:0}
.game-hud>.game-top,.game-hud>.game-stats,.game-hud>#game-tip{position:static;inset:auto;transform:none;width:auto;max-width:none;height:auto;min-width:0;box-sizing:border-box}
.game-hud>.game-top{order:1;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:'left title right';align-items:start;gap:8px;pointer-events:none}
.game-hud>.game-top>*{min-width:0}
.game-hud>.game-top>:first-child{grid-area:left}
.game-hud>.game-top>.game-title{grid-area:title}
.game-hud>.game-top>:last-child{grid-area:right;justify-self:end}
.game-hud>.game-top button,.game-hud>.game-top a{pointer-events:auto}
.game-hud>.game-stats{order:3;display:flex;flex-wrap:wrap;gap:8px;pointer-events:none}
.game-hud>#game-tip{order:2;pointer-events:none;text-align:center;padding:7px 10px;color:#f1f4f8;background:#101727ef;font-size:14px;line-height:20px}
.game-hud .game-title{padding:8px 12px;line-height:1.2}
.game-hud .game-title span{font-size:18px}
.game-hud .game-title small{font-size:14px;line-height:20px;max-width:100%;white-space:normal}
.game-hud>.game-stats>span{font-size:14px;line-height:20px;padding:7px 12px;min-width:0}
#keyboard-tip{font-size:14px;line-height:20px}
.overlay{min-width:0;min-height:0;box-sizing:border-box;padding:12px;place-items:center;overflow:hidden}
.result-card{width:min(430px,calc(100% - 24px));max-width:100%;min-width:0;box-sizing:border-box;max-height:calc(100dvh - 24px);overflow-y:auto;padding:20px}
.result-card h1{font-size:24px;line-height:1.2}
body,main{scroll-padding-bottom:90px}
main{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
footer{padding-bottom:calc(30px + 70px + env(safe-area-inset-bottom))}
[id],.section-heading,.page-heading{scroll-margin-bottom:90px}
@media(max-width:500px){
  .game-hud>.game-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:'left right' 'title title';align-items:start}
  .game-hud>.game-top>.game-title{justify-self:stretch;text-align:center}
  .game-hud>.game-top>:last-child{justify-self:end}
  #keyboard-tip,#keyboard-tip br{display:none}
  .game-hud>#game-tip{font-size:14px;line-height:20px}
  .game-hud>.game-stats>span{font-size:14px;line-height:20px}
  .touch-controls{bottom:18px}
}
@media(max-width:500px) and (max-height:650px){
  .game-hud{gap:6px}
  .game-hud .game-title{padding:6px 9px}
  .game-hud .game-title span{font-size:16px}
  .game-hud .game-title small{font-size:14px;line-height:19px}
  .game-hud>#game-tip{padding:5px 8px}
  .game-hud>.game-stats{gap:5px}
  .game-hud>.game-stats>span{padding:5px 9px}
  .touch-controls{bottom:12px}
}
@media(max-height:450px){
  .game-hud{top:6px;gap:5px}
  .game-hud .game-title{padding:5px 9px}
  .game-hud .game-title span{font-size:15px}
  .game-hud .game-title small,#keyboard-tip{font-size:13px;line-height:18px}
  .game-hud>#game-tip,.game-hud>.game-stats>span{font-size:13px;line-height:18px}
  .game-hud>#game-tip{padding:4px 8px}
  .game-hud>.game-stats>span{padding:4px 8px}
  .result-card{max-height:calc(100dvh - 24px);padding:20px}
  .result-card h1{font-size:24px}
  .touch-controls{bottom:10px}
}

/* Estado indisponível também é visualmente inerte quando aria-disabled não bloqueia o aviso. */
.social-unavailable[aria-disabled="true"]{cursor:not-allowed!important;color:#969ca7!important;background:#202329!important;border-color:#444a55!important;box-shadow:none!important;filter:grayscale(1);opacity:.72;transform:none!important}
.social-unavailable[aria-disabled="true"]:not(:disabled){cursor:help!important}
.social-unavailable[aria-disabled="true"]:hover,.social-unavailable[aria-disabled="true"]:active{transform:none!important;filter:grayscale(1);box-shadow:none!important}
.home-shortcuts .social-unavailable[aria-disabled="true"] .shortcut-icon{color:#818998!important;background:#30353d!important}
.bottom-nav .nav.social-unavailable[aria-disabled="true"] small,.menu-list .social-unavailable[aria-disabled="true"] small,.header-tools .icon-button.social-unavailable[aria-disabled="true"] small{color:#c3c8d0!important;font-weight:700}

/* Menu de pausa Nexo Go: compacto, local e separado do HUD. */
#game{position:relative;isolation:isolate}
#game .game-hud{top:10px;left:12px;right:12px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:7px;z-index:3;pointer-events:none}
#game .game-hud>.game-top{order:1;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;grid-template-areas:"toolbar" "title";gap:5px;align-items:stretch;pointer-events:none}
#game .game-hud>.game-top>.game-toolbar{grid-area:toolbar;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;pointer-events:none}
#game .game-hud>.game-top>.game-toolbar>*{pointer-events:auto}
#game .game-hud>.game-top>.game-toolbar .game-mark{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:50%;overflow:hidden;background:#20252b;border:1px solid #ffffff1c}
#game .game-hud>.game-top>.game-toolbar .game-mark img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
#game .game-menu-trigger{position:relative;z-index:9;min-width:44px;height:44px;border-radius:999px;padding:8px 14px;background:#20252b;border:1px solid #ffffff2a;color:#f5f6fa;font-size:12px;font-weight:700;line-height:1;white-space:nowrap}
#game .game-hud>.game-top>.game-title{grid-area:title;justify-self:stretch;text-align:left;padding:5px 10px;line-height:1.2;min-width:0}
#game .game-hud>.game-top>.game-title span{font-size:17px}
#game .game-hud>.game-top>.game-title small{font-size:11px;line-height:16px;max-width:100%;white-space:normal}
#game .game-hud>#game-tip{order:2;font-size:12px;line-height:17px;padding:5px 9px}
#game .game-hud>.game-stats{order:3;display:flex;flex-wrap:wrap;gap:6px;pointer-events:none}
#game .game-hud>.game-stats>span{font-size:12px;line-height:17px;padding:5px 9px}
#game.menu-open .touch-controls{visibility:hidden}

/* O overlay aberto vence o HUD; .hidden sempre permanece realmente oculto. */
#game-overlay.overlay{position:absolute;inset:0;z-index:8;display:block;padding:0;overflow:visible;background:#05070ccf;backdrop-filter:blur(1px)}
#game-overlay.overlay.hidden{display:none!important}
#game-overlay.overlay:not(.hidden){display:block}
#game-overlay.overlay::before{content:"";position:absolute;inset:0;background:#05070c66}
#game-overlay .result-card.game-menu-panel{position:absolute;top:70px;left:12px;width:min(350px,calc(100% - 24px));max-width:none;max-height:calc(100% - 82px);overflow:auto;box-sizing:border-box;margin:0;padding:16px;border:1px solid #c2ff7040;border-radius:20px;background:#171b20f5;box-shadow:0 18px 55px #0009;text-align:left;z-index:1}
#game-overlay .game-menu-heading{position:relative;padding-right:48px}
#game-overlay .menu-kicker{display:block;margin-bottom:6px;color:#c2ff70b8;font-size:9px;font-weight:800;letter-spacing:1.25px;line-height:13px}
#game-overlay #result-icon{margin:0 0 4px;font-size:23px;line-height:1.1}
#game-overlay #result-title{margin:0;font-size:25px;line-height:1.15;letter-spacing:-.5px}
#game-overlay #result-desc{margin:7px 0 12px;color:#c5cad2;font-size:12px;line-height:17px}
#game-overlay #close-game-menu{position:absolute;top:-2px;right:-2px;width:44px;height:44px;min-height:44px;padding:0;border-radius:12px;background:#252a30;border:1px solid #ffffff24;color:#f5f6fa;font-size:20px;line-height:1}
#game-overlay #result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 12px;font-size:11px;line-height:15px}
#game-overlay .game-menu-actions{display:grid;gap:7px}
#game-overlay .game-menu-actions button{width:100%;min-height:44px;margin:0;padding:9px 12px;border-radius:11px;font-size:12px;line-height:16px}
#game-overlay .game-menu-actions .text-button{min-height:44px;color:#bac0ca;background:transparent;border-color:transparent}
#game-overlay .game-menu-foot{margin:12px 0 0;color:#89929d;font-size:9px;line-height:13px}

@media(max-width:500px){
  #game .game-hud>.game-top>.game-title{text-align:center}
  #game-overlay .result-card.game-menu-panel{padding:14px;}
  #game-overlay #result-title{font-size:23px}
  #game-overlay #result-desc{margin:5px 0 9px}
  #game-overlay #result-stats{margin-bottom:9px}
  #game-overlay .game-menu-actions{gap:5px}
}
@media(max-width:500px) and (max-height:650px){
  #game-overlay .result-card.game-menu-panel{top:70px;max-height:calc(100% - 82px);padding:12px 14px}
  #game-overlay #result-icon{font-size:20px}
  #game-overlay #result-title{font-size:21px}
  #game-overlay #result-desc{font-size:11px;line-height:15px;margin:3px 0 7px}
  #game-overlay #result-stats{font-size:10px;line-height:13px;margin-bottom:7px}
  #game-overlay .game-menu-actions button{font-size:11px;line-height:14px}
  #game-overlay .game-menu-foot{margin-top:7px}
}

/* O jogo ocupa o viewport; legibilidade preservada na adaptação do menu. */
#game{position:fixed;inset:0;isolation:isolate}
#game .game-hud>.game-top>.game-toolbar{justify-content:flex-start}
#game .game-menu-trigger{font-size:14px;min-width:102px}
#game .game-hud>.game-top>.game-title small{font-size:14px;line-height:20px}
#game .game-hud>#game-tip{font-size:14px;line-height:20px}
#game .game-hud>.game-stats>span{font-size:14px;line-height:20px}
#game-overlay #result-desc{font-size:14px;line-height:20px}
#game-overlay .game-menu-actions button{font-size:14px;line-height:20px}
#game-overlay .game-menu-foot{font-size:11px;line-height:16px}
#game-overlay #result-stats:empty{display:none}
