/* Recreio v2 — tema "Caderno": papel, grafite, marca-texto. */
:root {
  --ink: #2A2A2E;
  --paper: #FDF8EE;
  --grid: #D9E5F1;
  --red: #E4572E;
  --blue: #2667C9;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; color: var(--ink);
  font-family: "Patrick Hand", cursive;
  overflow: hidden; overscroll-behavior: none; user-select: none; }
body { background: var(--paper); }

/* papel quadriculado nas telas de menu */
.paper {
  background: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hidden { display: none !important; }
.screen { position: fixed; inset: 0; }
/* transição suave só nas telas de MENU (paper) — nunca no #gameScreen */
.screen.paper { animation: screenin 0.2s ease; }
@keyframes screenin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* telas de menu ROLAM quando o conteúdo é maior que a tela (safe center = centraliza
   se couber, senão alinha no topo e deixa rolar até o fim) */
.center { display: flex; flex-direction: column; align-items: center; justify-content: safe center;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) calc(env(safe-area-inset-right, 0px) + 20px)
           calc(env(safe-area-inset-bottom, 0px) + 48px) calc(env(safe-area-inset-left, 0px) + 20px);
  gap: 10px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.logo { font-family: "Caveat", cursive; font-size: 64px; font-weight: 700; color: var(--ink);
  transform: rotate(-2deg); line-height: 1;
  text-shadow: 3px 3px 0 rgba(228, 87, 46, 0.25); }
.tag { color: #6b6455; font-size: 17px; text-align: center; max-width: 320px; }
.hint { color: #7a7466; text-align: center; font-size: 14px; max-width: 320px; white-space: pre-line; }
/* estado "aguardando participantes" — destacado e amigável */
.hint.waiting { color: var(--red); font-weight: 700; font-size: 16px;
  border: 2px dashed var(--red); border-radius: 10px; padding: 8px 12px; background: #FFF3EE;
  animation: waitpulse 1.6s ease-in-out infinite; }
@keyframes waitpulse { 0%,100% { opacity: 0.85; } 50% { opacity: 1; } }

/* inputs e botões: "desenhados" — contorno grafite + sombra dura */
.field { width: 100%; max-width: 330px; padding: 12px 16px; border-radius: 10px;
  border: 2.5px solid var(--ink); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 18px; box-shadow: 4px 4px 0 rgba(42, 42, 46, 0.18); }
.field:focus { outline: none; border-color: var(--blue); }
.field::placeholder { color: #a49c8a; }

.btn { width: 100%; max-width: 330px; padding: 13px; border-radius: 10px;
  border: 2.5px solid var(--ink); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 19px; cursor: pointer;
  box-shadow: 4px 4px 0 rgba(42, 42, 46, 0.25); transition: transform 0.08s, box-shadow 0.08s; }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
.btn-primary { background: #FFD23F; border-width: 3px; font-weight: 700;
  box-shadow: 5px 5px 0 rgba(42, 42, 46, 0.4); }
/* botão "ver vídeo e continuar" (revive por anúncio recompensado) */
.btn-revive { background: #7ED957; border-width: 3px; font-weight: 700; color: #14330a;
  box-shadow: 5px 5px 0 rgba(42, 42, 46, 0.4); animation: revivePulse 1.1s ease-in-out infinite; }
@keyframes revivePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) { .btn-revive { animation: none; } }
.row { display: flex; gap: 10px; width: 100%; max-width: 330px; }
.row .btn { flex: 1; }
.linkbtn { background: none; border: none; color: var(--blue); font-family: inherit; font-size: 16px;
  cursor: pointer; padding: 6px; text-decoration: underline; }
.emailbox { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; }
#signupBox, #loginBox { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; }
.error { color: var(--red); font-size: 15px; text-align: center; min-height: 20px; max-width: 330px; }
.btn-google { background: #fff; color: #2A2A2E; border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 330px; }
.btn-google .g-ico { font-weight: 800; font-size: 20px; font-family: Arial, sans-serif;
  background: conic-gradient(from -45deg, #EA4335 0 25%, #FBBC05 0 50%, #34A853 0 75%, #4285F4 0);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Apple: preto com a maçã, do jeito que as Human Interface Guidelines pedem
   (o botão tem que ser tão visível quanto o do outro login, senão a revisão
   reclama). A maçã vai como SVG inline em background pra não depender de fonte
   nem de arquivo (o glifo da maca so existe em fonte de aparelho Apple). */
.btn-apple { background: #000; color: #fff; border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 330px; }
.btn-apple .a-ico { width: 18px; height: 20px; flex: 0 0 18px; background: #fff;
  -webkit-mask: var(--apple-logo) center/contain no-repeat; mask: var(--apple-logo) center/contain no-repeat; }
.btn-apple.working .a-ico { -webkit-mask: none; mask: none; background: none; position: relative; }
.btn-apple.working .a-ico::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
  border: 3px solid #555; border-top-color: #fff; border-radius: 50%;
  animation: auth-spin .8s linear infinite;
}
:root { --apple-logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23000' d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-36.8-2.8-77 21.3-91.7 21.3-15.5 0-51.1-20.3-79.1-20.3C61.2 141.2 12 184.5 12 271.5c0 25.7 4.7 52.2 14.1 79.5 12.5 35.9 61.6 122.5 112.8 121 26.8-.6 45.7-19 80.6-19 33.8 0 51.3 18.4 80.6 18.4 51.6-.8 96-79.5 108-115.5-69.1-32.6-89.4-86.8-89.4-87.2zm-51.9-159.4c25-30.4 22.7-58.1 22-68.1-22.1 1.3-47.7 15-62.3 32.9-16.1 19.2-25.6 43-23.6 69.7 23.9 1.8 45.7-10.5 63.9-34.5z'/%3E%3C/svg%3E"); }
.or-sep { color: #a49c8a; font-size: 13px; margin: 2px 0; text-align: center; width: 100%; max-width: 330px; }
/* ✉️ email é SECUNDÁRIO: link discreto que revela os campos */
.auth-email-toggle { color: #8a8272; font-size: 15px; margin-top: 10px; }
#emailArea { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; margin-top: 8px; }
.signup-pending { display: flex; flex-direction: column; gap: 6px; align-items: center; width: 100%; max-width: 330px;
  margin-top: 6px; padding: 12px; border: 2px dashed #178A3F; border-radius: 14px; background: #F2FBF4; }
/* quando o banner do AdMob está na tela, reserva espaço embaixo (senão cobre os botões) */
body.has-ad-banner .center { padding-bottom: 68px; }
/* A folga dos overlays existia pra faixa do AdMob (removida em 15/09/2026 - ver
   USE_BANNER em js/ads.js). Fica aqui, inofensiva: a classe has-ad-banner so
   entra no body quando a faixa aparece, e hoje ela nunca aparece. */
body.has-ad-banner .overlay { padding-bottom: 68px; }
/* portão de bloqueio web (quem abre pelo navegador quando o admin bloqueia) */
#webGate { position: fixed; inset: 0; z-index: 999; background: var(--paper); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; padding: 28px; text-align: center; }
#webGate h1 { font-family: "Caveat", cursive; font-size: 52px; margin: 0; color: var(--ink); }
#webGate p { font-size: 18px; color: #5c5850; max-width: 30ch; margin: 0; }
#webGate .wg-badge { font-size: 64px; }
/* conquistas + moedas */
.ach-coinbar { font-family: "Patrick Hand", cursive; font-size: 20px; font-weight: 700; color: #B8860B;
  background: #FFF3C4; border: 2px solid #B8860B; border-radius: 999px; padding: 6px 16px; margin: 8px 0; display: inline-block; }
.ach-list { width: 100%; display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow-y: auto; margin-bottom: 8px; }
.ach-card { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 12px;
  background: #fff; padding: 8px 12px; box-shadow: 2px 2px 0 rgba(42,42,46,0.12); text-align: left; }
.ach-gic { font-size: 26px; width: 42px; height: 42px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); border-radius: 11px; background: #FFFDF6; }
.ach-card .finfo { flex: 1; min-width: 0; }
.ach-card .finfo b { display: block; }
.ach-card small { color: #8a8272; font-size: 13px; }
.ach-badges { font-size: 17px; margin-top: 2px; letter-spacing: 1px; }
.ach-none { color: #cfc9bb; }
/* toast de conquista desbloqueada */
.ach-toast { position: fixed; left: 50%; top: 70px; transform: translate(-50%, -140%); z-index: 200;
  display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid #B8860B; border-radius: 16px;
  padding: 10px 16px; box-shadow: 4px 4px 0 rgba(184,134,11,0.35); font-family: "Patrick Hand", cursive;
  max-width: 92vw; transition: transform .38s cubic-bezier(.2,1.3,.4,1), opacity .38s; opacity: 0; }
.ach-toast.in { transform: translate(-50%, 0); opacity: 1; }
.ach-toast .ach-ic { font-size: 30px; }
.ach-toast .finfo b { font-size: 15px; } .ach-toast .finfo small { display: block; color: #8a8272; font-size: 13px; }
.ach-toast .ach-coin { font-weight: 700; color: #B8860B; white-space: nowrap; }

/* lobby */
.lobby-top { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lobby-head { font-size: 22px; }
.lobby-head b { color: var(--blue); }
.row-mini { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.lvl { font-size: 15px; color: #6b6455; }
.mini-btn { border: 2px solid var(--ink); background: #fff; border-radius: 8px; padding: 8px 14px;
  font-family: inherit; font-size: 15px; cursor: pointer; box-shadow: 2px 2px 0 rgba(42, 42, 46, 0.2); }

.avatar-wrap { position: relative; width: 110px; height: 110px; display: flex; align-items: center; justify-content: center; }
.avatar-halo { position: absolute; inset: 12px; border-radius: 50%; opacity: 0.5; filter: blur(2px); }
.avatar-preview { position: relative; width: 150px; height: 150px; object-fit: contain;
  animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* 🎨 personalização recolhível do lobby */
.lobby-custom-toggle { width: 100%; max-width: 350px; background: #fff; border: 2px dashed var(--ink);
  border-radius: 12px; padding: 10px 14px; font-family: inherit; font-size: 16px; font-weight: 700;
  color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.lobby-custom-toggle .lct-caret { transition: transform 0.15s; display: inline-block; }
.lobby-custom-toggle.open .lct-caret { transform: rotate(180deg); }
.lobby-custom { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 9px; margin-top: 4px; }
.color-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 330px; }
.color-dot { width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 rgba(42, 42, 46, 0.18); transition: transform 0.1s; }
.color-dot.sel { transform: scale(1.2); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }

.player-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 350px; min-height: 40px; }
.player-chip { padding: 5px 14px; border-radius: 999px; border: 2.5px solid; background: #fff;
  font-size: 16px; box-shadow: 2px 2px 0 rgba(42, 42, 46, 0.15); }
/* contador da sala como selo (hierarquia: "quantos já chegaram" salta aos olhos) */
.roster-tag { display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; }
.roster-count { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px;
  padding: 0 8px; border-radius: 999px; border: 2.5px solid var(--blue); background: #EEF4FF; color: var(--blue);
  font-family: "Patrick Hand", cursive; font-size: 19px; line-height: 1; }
/* 🎉 amigo acabou de chegar: pop no chip (chama atenção sem ser pesado) */
.player-chip.arrived { animation: chipPop .55s cubic-bezier(.18,.9,.32,1.4); }
@keyframes chipPop {
  0% { transform: scale(.4); opacity: 0; }
  55% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

/* ✨ painel de espera com vida: mascote a lápis "rabiscando" + dica rotativa */
.lobby-wait { width: 100%; max-width: 350px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 2.5px dashed var(--blue); border-radius: 14px; background: #F4F8FF; padding: 12px 14px 14px; text-align: center; }
.lw-doodle { position: relative; width: 150px; height: 46px; margin: 0 auto 2px; }
.lw-pencil { position: absolute; left: 4px; bottom: 8px; font-size: 30px; transform-origin: 50% 90%;
  animation: lwPencil 1.9s ease-in-out infinite; }
.lw-scribble { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, var(--blue) 0 45%, rgba(38,103,201,0) 45% 100%);
  background-size: 220% 100%; animation: lwScribble 1.9s linear infinite; }
@keyframes lwPencil {
  0% { transform: translateX(0) rotate(-9deg); }
  50% { transform: translateX(104px) rotate(7deg); }
  100% { transform: translateX(0) rotate(-9deg); }
}
@keyframes lwScribble { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.lw-title { font-size: 18px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: baseline; }
.lw-dots { display: inline-flex; margin-left: 1px; }
.lw-dots i { width: 4px; height: 4px; margin-left: 3px; border-radius: 50%; background: var(--ink);
  display: inline-block; animation: lwDot 1.4s ease-in-out infinite; }
.lw-dots i:nth-child(2) { animation-delay: .2s; }
.lw-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes lwDot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.lw-tip { font-size: 14.5px; color: #4a6a9c; line-height: 1.3; min-height: 38px; transition: opacity .18s ease; }
@media (prefers-reduced-motion: reduce) {
  .lw-pencil, .lw-scribble, .lw-dots i, .player-chip.arrived { animation: none; }
}

.game-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 350px; margin: 6px 0; }
.game-card { padding: 14px 10px; border-radius: 12px; background: #fff; border: 2.5px solid var(--ink);
  text-align: center; font-size: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 4px 4px 0 rgba(42, 42, 46, 0.18); transition: transform 0.08s; }
.game-card:active { transform: translate(2px, 2px); }
.game-card.sel { background: #FFF3C4; border-color: var(--red); box-shadow: 4px 4px 0 rgba(228, 87, 46, 0.35); }
.game-card small { font-size: 13px; color: #8a8272; }

/* jogo */
/* 100dvh = altura VISÍVEL (desconta a barra do navegador no celular) — senão o
   conteúdo de baixo dos jogos (mão, botões, teclado) fica escondido atrás dela */
#board { display: block; width: 100vw; height: 100vh; height: 100dvh; touch-action: none; }
#gameScreen { height: 100vh; height: 100dvh; }
.hud { position: fixed; top: calc(env(safe-area-inset-top, 8px) + 6px); left: 12px; right: 12px;
  display: flex; gap: 8px; align-items: center; font-size: 18px; pointer-events: none; }
.hud-item { background: #fff; padding: 4px 12px; border-radius: 10px; border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(42, 42, 46, 0.15); }
.hud-item.timer { font-family: "Caveat", cursive; font-weight: 700; font-size: 24px; }
/* ✕ SAIR — sempre por cima do canvas e com hitbox grande (o jogo não "come" o toque) */
.leave-btn { position: fixed; top: calc(env(safe-area-inset-top, 8px) + 6px); left: 12px; z-index: 50;
  background: #fff; border: 2px solid var(--red); color: var(--red); border-radius: 10px;
  padding: 7px 14px; font-family: "Patrick Hand", cursive; font-size: 16px; font-weight: 700;
  cursor: pointer; pointer-events: auto; touch-action: manipulation;
  box-shadow: 3px 3px 0 rgba(228,87,46,0.3); }
.leave-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(228,87,46,0.3); }
/* botão de reportar bug — vai pro RODAPÉ (canto inf. direito), no espaço vazio,
   pra não cobrir nomes/contadores do topo. Some quando não está em jogo. */
.bug-btn { position: fixed; bottom: calc(env(safe-area-inset-bottom, 8px) + 12px); right: 12px; z-index: 50;
  background: #fff; border: 2px solid #8a8272; color: #6b6455; border-radius: 10px;
  padding: 6px 11px; font-family: "Patrick Hand", cursive; font-size: 13px; font-weight: 700; opacity: 0.9;
  cursor: pointer; pointer-events: auto; touch-action: manipulation;
  box-shadow: 3px 3px 0 rgba(42,42,46,0.15); }
.bug-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(42,42,46,0.15); }
/* o HUD começa depois do botão sair, pra não sobrepor */
.hud { padding-left: 74px; }
.eff { color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: 1px; }

.kill-feed { position: fixed; top: calc(env(safe-area-inset-top, 8px) + 52px); right: 12px;
  display: flex; flex-direction: column; gap: 5px; align-items: flex-end; pointer-events: none; }
.feed-item { background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 2px 10px;
  font-size: 14px; box-shadow: 2px 2px 0 rgba(42, 42, 46, 0.15);
  animation: feedin 0.2s ease; transition: opacity 0.5s; }
.feed-item.fade { opacity: 0; }
@keyframes feedin { from { transform: translateX(12px); opacity: 0; } to { transform: none; opacity: 1; } }

.game-label { position: fixed; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); left: 0; right: 0;
  text-align: center; font-size: 18px; color: var(--ink); pointer-events: none;
  text-shadow: 0 0 6px var(--paper), 0 0 6px var(--paper); }

.stamina-wrap { position: fixed; left: 18px; bottom: calc(env(safe-area-inset-bottom, 0px) + 46px); width: 130px; pointer-events: none; }
.stamina-label { font-size: 13px; color: #8a8272; margin-bottom: 2px; }
.stamina-bar { height: 12px; border-radius: 7px; background: #fff; border: 2px solid var(--ink); overflow: hidden; }
.stamina-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #7ED957, #FFD23F, #E4572E); transition: width 0.08s linear; }

.jump-btn { position: fixed; right: 5vw; bottom: calc(env(safe-area-inset-bottom, 0px) + 8vh);
  width: clamp(76px, 20vw, 112px); height: clamp(76px, 20vw, 112px); border-radius: 50%;
  border: 3px solid var(--ink); background: #fff; color: var(--ink);
  font-family: "Caveat", cursive; font-size: 24px; font-weight: 700; cursor: pointer;
  box-shadow: 5px 5px 0 rgba(42, 42, 46, 0.25); touch-action: none; user-select: none;
  padding: 12px; /* hitbox maior que o visual */ }
.jump-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 transparent; }

.hit-btn { position: fixed; right: calc(5vw + clamp(76px, 20vw, 112px) + 14px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8vh);
  width: clamp(64px, 16vw, 92px); height: clamp(64px, 16vw, 92px); border-radius: 50%;
  border: 3px solid var(--red); background: #fff; color: var(--red);
  font-family: "Caveat", cursive; font-size: 20px; font-weight: 700; cursor: pointer;
  box-shadow: 5px 5px 0 rgba(228, 87, 46, 0.3); touch-action: none; user-select: none;
  opacity: 0.45; transition: opacity 0.15s, transform 0.1s; padding: 10px; }
.hit-btn.ready { opacity: 1; animation: hitpulse 0.7s ease-in-out infinite; }
.hit-btn.cd { opacity: 0.4; animation: none; }
.hit-btn .ammo { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px;
  border-radius: 50%; background: var(--blue); color: #fff; border: 2px solid #fff;
  font-family: "Caveat", cursive; font-size: 15px; font-weight: 700; line-height: 20px; text-align: center; }
.hit-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 transparent; }
@keyframes hitpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* botão AGACHAR (só na corda) — fica do lado esquerdo, dois polegares */
.crouch-btn { position: fixed; left: 5vw; bottom: calc(env(safe-area-inset-bottom, 0px) + 8vh);
  width: clamp(76px, 20vw, 112px); height: clamp(76px, 20vw, 112px); border-radius: 50%;
  border: 3px solid var(--blue); background: #fff; color: var(--blue);
  font-family: "Caveat", cursive; font-size: 22px; font-weight: 700; cursor: pointer;
  box-shadow: 5px 5px 0 rgba(38, 103, 201, 0.3); touch-action: none; user-select: none;
  padding: 12px; }
.crouch-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 transparent; background: #EAF2FB; }

/* barra de topo do Hub (cara de app): perfil + amigos */
.hub-topbar { width: 100%; max-width: 420px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.profile-chip { display: flex; align-items: center; gap: 8px; background: #fff; border: 2.5px solid var(--ink);
  border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; box-shadow: 2px 2px 0 rgba(42,42,46,0.18);
  font-family: inherit; }
.avatar-mini { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block;
  background: #FFF3C4 center/cover no-repeat; position: relative; flex: none; }
.profile-name { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.profile-name b { font-size: 16px; } .profile-name small { font-size: 13px; color: #8a8272; }
.friends-dot { background: #29c25a; color: #fff; border-radius: 999px; padding: 0 6px; font-size: 12px; font-weight: 700; }
/* 🔥 HORA FELIZ: card piscando dourado + selo 2x */
.hub-card.hub-happy { animation: happyPulse 1.1s ease-in-out infinite; }
@keyframes happyPulse {
  0%, 100% { box-shadow: 3px 3px 0 rgba(42,42,46,0.18); border-color: var(--ink); }
  50% { box-shadow: 0 0 16px 3px rgba(228,167,46,0.95); border-color: #E4A72E; }
}
.hub-happy-badge { position: absolute; top: 6px; right: 6px; background: #E4A72E; color: #fff;
  font-size: 12px; font-weight: 700; border-radius: 8px; padding: 1px 7px; border: 1.5px solid #B8860B;
  box-shadow: 0 0 8px rgba(228,167,46,0.8); z-index: 2; }
/* 🎈 jogo SECRETO: cara dourada especial (destaca do resto) */
.hub-card.hub-secret { background: linear-gradient(140deg, #FFF7E0, #FDEFC2); border-color: #E4A72E; }
.hub-card.hub-secret .hub-ico { animation: happyPulse 1.6s ease-in-out infinite; }

.skin-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 30px; pointer-events: none; }
.avatar-mini .skin-badge { top: -12px; font-size: 20px; }
/* emblema pequenininho no canto da bolinha do hub (não tampa o boneco) */
.skin-badge.mini { top: auto; bottom: -6px; left: auto; right: -8px; transform: none; font-size: 15px; }
.avatar-mini canvas { border-radius: 50%; }

/* perfil */
.profile-card, .friends-card { max-width: 360px; max-height: 90vh; overflow-y: auto; }
.skin-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 330px; }
.skin-opt { width: 44px; height: 44px; border-radius: 10px; border: 2.5px solid var(--ink); background: #fff;
  font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 rgba(42,42,46,0.15); }
.skin-opt.sel { background: #FFF3C4; border-color: var(--red); transform: scale(1.08); }
/* personagens bloqueados: mostram o requisito (moedas/vitórias/vídeo) */
.skin-opt { position: relative; flex-direction: column; gap: 0; }
.skin-opt .skin-e { font-size: 24px; line-height: 1; }
.skin-opt.locked { opacity: 0.85; border-style: dashed; background: #f4f1ea; }
.skin-opt.locked .skin-e { filter: grayscale(1); opacity: 0.55; }
.skin-opt .skin-lock { font-size: 9px; font-weight: 700; color: #8a6d1a; line-height: 1.1; margin-top: 1px; white-space: nowrap; }
.skin-coins { font-size: 13px; color: #6b6455; text-align: center; max-width: 330px; margin: 0 auto 4px; }
.skin-coins b { color: #B8860B; }
/* seletor de AVATAR (boneco desenhado) */
.avatar-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 340px; }
.avatar-opt { position: relative; width: 66px; border-radius: 10px; border: 2.5px solid var(--ink); background: #fff;
  display: flex; flex-direction: column; align-items: center; padding: 4px 2px 5px; cursor: pointer; touch-action: manipulation; }
.avatar-opt.sel { background: #FFF3C4; border-color: var(--red); transform: scale(1.05); }
.avatar-opt.locked { opacity: 0.92; border-style: dashed; background: #f4f1ea; }
.avatar-thumb { width: 56px; height: 62px; }
.avatar-opt.locked .avatar-thumb { filter: grayscale(1); opacity: 0.6; }
.avatar-nm { font-size: 10px; font-weight: 700; color: var(--ink); line-height: 1.05; margin-top: 1px; text-align: center; }
.avatar-lock { position: absolute; top: 2px; right: 3px; font-size: 9px; font-weight: 700; color: #8a6d1a;
  background: #fff8e6; border: 1px solid #e7ddc8; border-radius: 5px; padding: 0 3px; }
/* botão fechar do lembrete de anúncios */
.nudge-x { border: none; background: rgba(0,0,0,0.06); color: #8a8272; width: 24px; height: 24px; border-radius: 50%;
  font-size: 13px; cursor: pointer; flex: 0 0 auto; line-height: 1; }
.nudge-x:hover { background: rgba(0,0,0,0.12); }
/* criar sala: escolher o jogo + nome opcional */
.rooms-create { display: flex; flex-direction: column; gap: 9px; width: 100%; max-width: 360px; padding: 14px 16px 16px; align-items: stretch; }
.rooms-create .field { width: 100%; }
.rooms-create label { text-align: left; font-size: 14px; color: #6b6455; }
select.field { -webkit-appearance: menulist; appearance: menulist; font-family: inherit; font-size: 16px; background: #fff; }
/* modal de escolher jogo (chamar amigo) */
/* respiro embaixo (safe-area): o botão "cancelar/fechar" não fica colado na barra
   de gestos do sistema — antes, tocar nele às vezes acionava o VOLTAR e saía do app */
.pickgame-ov { display: flex; align-items: center; justify-content: center; z-index: 300;
  padding: 18px 12px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
.pickgame-card { max-width: 340px; width: 92%; max-height: 82vh; overflow-y: auto; text-align: center; padding: 16px; }
.pickgame-card > .linkbtn:last-child { margin-top: 4px; padding: 12px; min-height: 44px; }   /* alvo maior, longe da borda */
/* modais próprios (appAlert/appPrompt) no lugar de alert()/prompt() do navegador */
.app-modal { gap: 12px; }
.app-modal-msg { font-size: 15px; color: var(--ink); white-space: pre-line; line-height: 1.35; margin: 2px 0; text-align: center; }
.app-modal .field { width: 100%; }
.app-modal-row { display: flex; gap: 8px; width: 100%; }
.app-modal-row .btn { flex: 1; margin: 0; }
/* escudo do streak no chip 🔥 */
.streak-shield { margin-left: 3px; font-size: 0.9em; }
.pickgame-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 10px; }
.pg-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 2px solid var(--ink);
  border-radius: 10px; background: #fff; cursor: pointer; font-family: inherit; }
.pg-item .pg-ic { font-size: 24px; }
.pg-item small { font-size: 13px; line-height: 1.15; }
/* toast de convite / pedido de amizade (com botões) */
.invite-toast { position: fixed; left: 50%; top: 70px; transform: translate(-50%, -140%); z-index: 260; display: flex; align-items: center;
  gap: 10px; background: #fff; border: 3px solid var(--blue); border-radius: 16px; padding: 10px 14px;
  box-shadow: 4px 4px 0 rgba(38,103,201,0.35); font-family: "Patrick Hand", cursive; max-width: 92vw;
  transition: transform .38s cubic-bezier(.2,1.3,.4,1), opacity .38s; opacity: 0; }
.invite-toast.in { transform: translate(-50%, 0); opacity: 1; }
/* convite PISCANTE: chama o olho mesmo no meio de um jogo (pedido do dono) */
.invite-toast.in.pulse { animation: invPulse 1.1s ease-in-out 4; }
@keyframes invPulse {
  0%, 100% { box-shadow: 4px 4px 0 rgba(38,103,201,0.35); border-color: var(--blue); }
  50% { box-shadow: 0 0 0 6px rgba(228,167,46,0.45), 4px 4px 0 rgba(38,103,201,0.35); border-color: #E4A72E; transform: translate(-50%, 0) scale(1.05); }
}
.invite-toast .ach-ic { font-size: 28px; }
.invite-toast .finfo b { font-size: 15px; } .invite-toast .finfo small { display: block; color: #8a8272; font-size: 13px; }
.inv-go { background: var(--blue); color: #fff; border: none; border-radius: 10px; padding: 8px 12px; font-family: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.inv-x { background: rgba(0,0,0,0.06); color: #8a8272; border: none; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; }
/* 🤖→🎮 "quer jogar de verdade?" NO MEIO da rodada com o robô: cartãozinho leve no
   topo, sem piscar e sem pausar o jogo — dois botões escritos (bora / seguir) */
.botcall-toast { top: 10px; border-color: #178A3F; box-shadow: 3px 3px 0 rgba(23,138,63,0.3);
  padding: 8px 12px; gap: 8px; }
.botcall-toast .ach-ic { font-size: 24px; }
.botcall-toast .finfo b { font-size: 14px; }
.botcall-toast .finfo small { font-size: 12px; }
.botcall-toast .bc-yes { background: #178A3F; padding: 7px 11px; font-size: 14px; }
.botcall-toast .bc-no { width: auto; height: auto; border-radius: 10px; padding: 7px 10px;
  font-family: inherit; font-size: 12.5px; white-space: nowrap; }
/* 🎉 "seu amigo ENTROU na sala": mesmo cartão leve do botcall, em tom de festa
   (dourado) — volta pra sala em 1 toque, sem pausar o que estiver rolando */
.joined-toast { border-color: #E4A72E; box-shadow: 3px 3px 0 rgba(228,167,46,0.35); }
.joined-toast .bc-yes { background: #E4A72E; color: #3b2f14; }
/* 🤖 lobby de entrada: quem está jogando sozinho com o robô (dá pra chamar) */
.ge-bot-head { font-family: "Patrick Hand", cursive; font-size: 13px; color: #8a8272; margin: 2px 0 4px; }
.ge-bot-row { cursor: default; }
.ge-bot-call { background: var(--blue); color: #fff; border: none; border-radius: 10px; padding: 7px 11px;
  font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.ge-bot-call:disabled { opacity: .7; cursor: default; }
.invite-pick { cursor: pointer; user-select: none; }
.invite-pick .inv-cb { width: 20px; height: 20px; accent-color: var(--blue); flex-shrink: 0; margin-right: 4px; cursor: pointer; }
.friend-item .fpick { width: 20px; height: 20px; accent-color: var(--blue); flex-shrink: 0; cursor: pointer; }
/* botão de convite com ícone + duas linhas (WhatsApp / app) — explícito */
.inv-way { display: flex; align-items: center; gap: 10px; text-align: left; padding: 11px 14px; }
.inv-way .iw-ico { font-size: 26px; line-height: 1; flex-shrink: 0; }
.inv-way .iw-txt { display: flex; flex-direction: column; }
.inv-way .iw-txt b { font-size: 16px; line-height: 1.15; }
.inv-way .iw-txt small { font-size: 13px; opacity: .85; line-height: 1.2; font-weight: 400; }
/* botão +amigo no chip do jogador */
.player-chip { display: inline-flex; align-items: center; gap: 6px; }
.chip-addf { background: var(--blue); color: #fff; border: none; border-radius: 8px; padding: 2px 6px; font-size: 11px; font-family: inherit; cursor: pointer; }
.chip-addf.added { background: #178A3F; cursor: default; }
.chip-addf:disabled { opacity: .95; }
/* 🤝 fim de partida: adicionar quem jogou com você */
.over-friends-t { font-size: 13px; color: #8a8272; margin: 4px 0 5px; text-align: center; }
.over-friends-row { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.over-friend-chip { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1.5px solid var(--blue); color: #333; border-radius: 999px; padding: 3px 11px 3px 4px; font-family: inherit; font-size: 12.5px; cursor: pointer; }
.over-friend-chip .off-av { width: 18px; height: 24px; flex: none; }
.over-friend-chip .off-nm { font-weight: 700; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.over-friend-chip .off-plus { color: var(--blue); font-weight: 700; }
.over-friend-chip.added { border-color: #178A3F; color: #178A3F; cursor: default; }
.over-friend-chip.added .off-plus { color: #178A3F; }
.friend-item .fcall { background: var(--blue); color: #fff; border: none; border-radius: 8px; padding: 6px 10px; font-family: inherit; cursor: pointer; }
.prof-stats { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: #6b6455; }
.prof-stats b { color: var(--blue); font-family: "Caveat", cursive; font-size: 20px; }
.prof-code { font-size: 14px; color: #6b6455; display: flex; align-items: center; gap: 8px; }
.prof-code b { font-family: "Caveat", cursive; font-size: 22px; color: var(--red); letter-spacing: 2px;
  background: #FFF3C4; border: 2px solid var(--ink); border-radius: 8px; padding: 1px 8px; }

/* lista de amigos */
.friends-list { width: 100%; display: flex; flex-direction: column; gap: 8px; max-height: 44vh; overflow-y: auto; }
.friend-item { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 10px;
  background: #fff; padding: 8px 12px; box-shadow: 2px 2px 0 rgba(42,42,46,0.12); }
.friend-item .fstatus { width: 10px; height: 10px; border-radius: 50%; background: #cfc9bb; flex: none; }
.friend-item.online .fstatus { background: #29c25a; box-shadow: 0 0 0 3px rgba(41,194,90,0.2); }
.friend-item .finfo { flex: 1; min-width: 0; }
.friend-item .finfo b { font-size: 16px; } .friend-item .finfo small { display: block; font-size: 13px; color: #8a8272; }
.friend-item .fjoin { border: 2px solid var(--ink); background: #FFD23F; border-radius: 8px; padding: 6px 12px;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 2px 2px 0 rgba(42,42,46,0.2); }
.friend-item .fjoin:disabled { background: #eee; color: #aaa; box-shadow: none; }
.friend-item .fdel { border: none; background: none; color: #b6afa2; font-size: 18px; cursor: pointer; }

/* HUB "jogando agora" */
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 420px; margin: 8px 0 14px; }
@media (min-width: 500px) { .hub-grid { grid-template-columns: repeat(3, 1fr); max-width: 580px; } }
.hub-card { position: relative; border: 2.5px solid var(--ink); border-radius: 16px; background: #fff;
  padding: 15px 12px 12px; text-align: center; cursor: pointer; box-shadow: 3px 3px 0 rgba(42,42,46,0.18);
  font-family: "Patrick Hand", cursive; font-size: 18px; line-height: 1.05; min-height: 118px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  border-top-width: 6px; transition: transform .1s, box-shadow .1s; }
.hub-card::after { content: ""; position: absolute; inset: 0; border-radius: 13px 13px 14px 14px; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, transparent 55%, var(--tint, transparent) 130%); opacity: .5; }
.hub-card.k-solo { border-top-color: #E4A72E; --tint: #FFE9B0; }
.hub-card.k-versus { border-top-color: #D6336C; --tint: #FBD0DF; }
.hub-card.k-party { border-top-color: #178A3F; --tint: #BFEBCB; }
/* ícone num bloco arredondado colorido pelo tipo — o destaque visual do card */
.hub-ico { font-size: 30px; line-height: 1; width: 54px; height: 54px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; border: 2.5px solid var(--ink);
  background: #FFFDF6; box-shadow: 2px 2px 0 rgba(42,42,46,0.14); position: relative; z-index: 1; }
.hub-card.k-solo .hub-ico { background: #FFF1CE; border-color: #E4A72E; }
.hub-card.k-versus .hub-ico { background: #FCE0EA; border-color: #D6336C; }
.hub-card.k-party .hub-ico { background: #E1F5E7; border-color: #178A3F; }
.hub-name { font-weight: 700; position: relative; z-index: 1; }
.hub-card:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(42,42,46,0.18); }
@media (hover: hover) { .hub-card:hover, .btn:hover, .mini-btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 rgba(42,42,46,0.28); } }
.hub-card small { display: block; font-size: 13px; color: #7a746a; margin-top: 3px; font-weight: 400; }
.hub-live { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; font-size: 13.5px; color: #178A3F; font-weight: 700; position: relative; z-index: 1; }

/* ⭐ estrela de favoritar no canto do card (alvo grande, não abre o jogo) */
.hub-fav { position: absolute; top: 2px; right: 2px; width: 40px; height: 40px; z-index: 3;
  display: flex; align-items: center; justify-content: center; padding: 0;
  border: none; background: transparent; cursor: pointer; font-size: 20px; line-height: 1;
  color: #b9b1a1; -webkit-tap-highlight-color: transparent; transition: transform .1s; }
.hub-fav.on { color: #E4A72E; }
.hub-fav:active { transform: scale(.85); }

/* ⭐ Favoritos / ⏰ Recentes: fileiras compactas com rolagem horizontal */
.hub-strip { width: 100%; max-width: 420px; margin: 0 0 8px; }
.hub-strip-title { font-family: "Patrick Hand", cursive; font-weight: 700; font-size: 16px; color: var(--ink); margin: 0 0 5px 2px; }
.hub-strip-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hub-strip-row::-webkit-scrollbar { display: none; }
.hub-mini { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 76px;
  border: 2px solid var(--ink); border-radius: 13px; background: #fff; cursor: pointer;
  padding: 8px 4px 7px; box-shadow: 2px 2px 0 rgba(42,42,46,0.16); font-family: "Patrick Hand", cursive;
  transition: transform .1s, box-shadow .1s; }
.hub-mini:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(42,42,46,0.16); }
.hub-mini-ico { font-size: 24px; line-height: 1; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--ink); background: #FFFDF6; }
.hub-mini-name { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.05; text-align: center;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* barra de filtro por tipo */
.hub-filter { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 420px; margin: 2px 0 4px; }
.hf-btn { font-family: "Patrick Hand", cursive; font-size: 14px; font-weight: 700; padding: 6px 13px; white-space: nowrap;
  border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: 2px 2px 0 rgba(42,42,46,0.15); transition: transform .08s, background .1s; }
.hf-btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 rgba(42,42,46,0.15); }
.hf-btn.sel { background: var(--ink); color: #fff; }
.hf-btn.sel[data-f="party"] { background: #178A3F; border-color: #178A3F; }
.hf-btn.sel[data-f="versus"] { background: #D6336C; border-color: #D6336C; }
.hf-btn.sel[data-f="solo"] { background: #E4A72E; border-color: #E4A72E; }
.hf-btn.sel[data-f="live"] { background: #178A3F; border-color: #178A3F; }
/* 🟢 Ao vivo: quando há sala aberta com gente, o chip pulsa verde pra chamar atenção */
.hf-btn.has-live { border-color: #16A34A; color: #0F7A34; animation: livePulse 1.5s ease-in-out infinite; }
@keyframes livePulse {
  0%, 100% { box-shadow: 2px 2px 0 rgba(42,42,46,0.15), 0 0 0 0 rgba(22,163,74,0.45); }
  50%      { box-shadow: 2px 2px 0 rgba(42,42,46,0.15), 0 0 0 6px rgba(22,163,74,0); }
}
/* ── entrada de jogo: 3 caminhos grandes (online / amigos / robô) ── */
.ge-ask { font-family: "Patrick Hand", cursive; font-size: 15px; color: var(--ink); opacity: .65; margin: 2px 0 2px; }
.ge-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 14px; margin: 3px 0;
  font-family: "Patrick Hand", cursive; border: 2px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink);
  cursor: pointer; box-shadow: 3px 3px 0 rgba(42,42,46,0.15); transition: transform .08s; }
.ge-opt:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(42,42,46,0.15); }
.ge-opt .ge-ico { font-size: 30px; line-height: 1; }
.ge-opt .ge-txt { display: flex; flex-direction: column; }
.ge-opt .ge-txt b { font-size: 19px; line-height: 1.15; }
.ge-opt .ge-txt small { font-size: 13px; opacity: .7; line-height: 1.2; }
.ge-opt.ge-primary { background: #FFF3C8; border-color: #B8860B; }
.ge-opt.ge-green { background: #E5F7E9; border-color: #178A3F; }

/* AÇÃO PRINCIPAL: botão grande "JOGAR AGORA" — impossível não ver */
.ge-play { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 15px 18px; margin: 8px 0; border: 3px solid #178A3F; border-radius: 16px;
  background: #23A94E; color: #fff; cursor: pointer; box-shadow: 4px 4px 0 rgba(23,138,63,.35);
  font-family: inherit; transition: transform .05s; }
.ge-play:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(23,138,63,.35); }
.ge-play .ge-play-ico { font-size: 26px; line-height: 1; background: rgba(255,255,255,.22); width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.ge-play .ge-play-txt { display: flex; flex-direction: column; }
.ge-play .ge-play-txt b { font-size: 22px; line-height: 1.1; letter-spacing: .5px; }
.ge-play .ge-play-txt small { font-size: 13px; opacity: .95; line-height: 1.2; }
.ge-rooms-wrap { width: 100%; margin: 2px 0 6px; }
.ge-rooms-wrap[hidden] { display: none; }

/* ── overlay de entrada: salas em destaque ── */
#gameEntryOverlay .paper-card.ge-card { max-width: 392px; }
.ge-live { display: flex; align-items: center; gap: 7px; font-family: "Patrick Hand", cursive; font-size: 14.5px;
  font-weight: 700; color: #178A3F; background: #E5F7E9; border: 2px solid #178A3F; border-radius: 999px; padding: 4px 14px; }
.ge-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #29c25a; animation: livepulse 1.6s infinite; }
.ge-live.off { color: #8a8272; background: #f2efe6; border-color: #b6afa2; }
.ge-live.off .dot { background: #cfc9bb; animation: none; }
.ge-rooms-head { margin-top: 2px; }
.ge-rooms-head b { font-size: 16.5px; }
.ge-live-tag { font-family: "Patrick Hand", cursive; font-size: 11.5px; font-weight: 700; color: #178A3F;
  border: 1.5px dashed #178A3F; border-radius: 999px; padding: 1px 8px; opacity: .85; }
.ge-rooms { max-height: 34vh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px; }
button.room-item { font: inherit; color: var(--ink); width: 100%; text-align: left; min-height: 56px; }
button.room-item:focus-visible { outline: 3px solid #2B6CB0; outline-offset: 2px; }
.room-item.joining { opacity: .75; pointer-events: none; }
.room-item.joining .room-code { background: #FFF3C8; border-color: #B8860B; color: #B8860B; }
.room-item .room-code { min-width: 74px; text-align: center; }
.ge-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.ge-opt.ge-sm { flex-direction: column; text-align: center; gap: 4px; padding: 10px 6px; margin: 0; min-height: 84px; justify-content: center; }
.ge-opt.ge-sm .ge-txt { align-items: center; }
.ge-opt.ge-sm .ge-txt b { font-size: 16px; }
.ge-opt.ge-sm .ge-txt small { font-size: 12px; }
.ge-opt.ge-blue { background: #E7F1FF; border-color: #2B6CB0; }
.ge-opt.ge-slim { padding: 7px 14px; min-height: 48px; }
.ge-opt.ge-slim .ge-ico { font-size: 24px; }
.ge-opt.ge-slim .ge-txt b { font-size: 16px; }
.ge-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  border: 2.5px dashed #b6afa2; border-radius: 12px; background: rgba(255,255,255,.55); padding: 10px 12px; }
/* lista vazia: NADA de scroll (o max-height cortava o conteúdo e ficava feio) */
.ge-rooms.empty { max-height: none; overflow: visible; }
.ge-empty .ge-empty-ico { font-size: 42px; line-height: 1; animation: geFloat 2.2s ease-in-out infinite; }
.ge-empty b { font-size: 17px; }
.ge-empty small { color: #8a8272; font-size: 13.5px; }
.ge-empty .ge-empty-btn { margin-top: 6px; min-height: 46px; font-size: 17px; }
@keyframes geFloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
.hub-rooms { opacity: .8; }

/* 🏆 botão-troféu do pódio (lobby entrada + espera) — compacto; abre o pódio completo */
.ge-rank { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; border: 2px solid #E7C24B; border-radius: 12px;
  background: linear-gradient(180deg, #FFF9E6, #FFF3C8); padding: 9px 12px; margin: 2px 0 4px;
  min-height: 46px; box-shadow: 0 1px 0 rgba(0,0,0,.05); color: var(--ink); font: inherit; }
.ge-rank:focus-visible { outline: 3px solid #2B6CB0; outline-offset: 2px; }
.ge-rank:active { transform: translateY(1px); }
.ge-rank-ico { font-size: 20px; line-height: 1; }
.ge-rank-txt { font-weight: 700; font-size: 14.5px; color: #7a5c00; flex: 1 1 auto; }
.ge-rank-pos { font-weight: 700; font-size: 13px; color: #9a7a12; background: #fff;
  border: 1.5px solid #E7C24B; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.ge-rank-go { font-size: 20px; color: #c9a83a; line-height: 1; }

.hub-search { position: relative; width: 100%; max-width: 420px; margin: 0 0 8px; display: flex; align-items: center; }
.hub-search-ico { position: absolute; left: 12px; font-size: 16px; pointer-events: none; opacity: .6; }
.hub-search input { width: 100%; padding: 10px 34px 10px 36px; margin: 0; }
.hub-search-x { position: absolute; right: 8px; width: 24px; height: 24px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.08); color: #8a8272; cursor: pointer; font-size: 12px; }
.hub-sort { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: center; width: 100%; max-width: 420px; margin: 0 0 8px; }
.hub-sort .hs-lbl { font-family: "Patrick Hand", cursive; font-size: 12px; color: var(--ink); opacity: .6; margin-right: 2px; }
.hs-btn { font-family: "Patrick Hand", cursive; font-size: 12.5px; font-weight: 700; padding: 3px 11px; white-space: nowrap;
  border-radius: 999px; border: 1.5px dashed var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  opacity: .7; transition: transform .08s, background .1s, opacity .1s; }
.hs-btn:active { transform: translate(1px,1px); }
.hs-btn.sel { background: var(--ink); color: #fff; border-style: solid; opacity: 1; }
.hub-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #29c25a; box-shadow: 0 0 0 0 rgba(41,194,90,0.6); animation: livepulse 1.6s infinite; }
.hub-live.zero { color: #b6afa2; }
.hub-live.zero .dot { background: #cfc9bb; animation: none; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(41,194,90,0.5); } 70% { box-shadow: 0 0 0 7px rgba(41,194,90,0); } 100% { box-shadow: 0 0 0 0 rgba(41,194,90,0); } }

/* painel do admin + chips */
.admin-panel { width: 100%; max-width: 350px; border: 2.5px dashed var(--ink); border-radius: 12px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,0.6); }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.board-size { width: 100%; max-width: 350px; border: 2.5px solid var(--ink); border-radius: 12px;
  background: #FFF9E8; padding: 10px 12px; display: flex; flex-direction: column; align-items: center;
  gap: 6px; box-shadow: 3px 3px 0 rgba(42,42,46,0.15); }
.board-size .tag { font-size: 16px; font-weight: 700; }
.board-size .chip { padding: 7px 14px; font-size: 16px; }
.chip { border: 2px solid var(--ink); background: #fff; border-radius: 999px; padding: 8px 14px;
  font-family: inherit; font-size: 15px; cursor: pointer; box-shadow: 2px 2px 0 rgba(42,42,46,0.2); }
.chip.sel { background: #FFD23F; }
.chip.wide { align-self: center; }
.mini-btn.premium { background: #FFF3C4; border-color: var(--red); color: var(--red); }

/* CTA chamativo de "remover anúncios" (Recreio+) — dourado brilhante que puxa o olho.
   ⚠️ ele mora dentro de flex-coluna (.center): sem o flex:none, a tela cheia ENCOLHIA
   o botão e o overflow cortava o texto ao meio. Altura é do conteúdo, nada escondido. */
/* X de fechar no canto do cartão (perfil etc.) */
.card-x { position: absolute; top: 8px; right: 10px; z-index: 3; width: 36px; height: 36px;
  border: 2px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink);
  font-size: 18px; font-family: inherit; cursor: pointer; box-shadow: 2px 2px 0 rgba(42,42,46,.2);
  display: flex; align-items: center; justify-content: center; line-height: 1; }
.card-x:active { transform: translate(1px,1px); box-shadow: none; }
.profile-card { position: relative; }
/* badge da skin no perfil: ao LADO do boneco (não na cara) */
.profile-card .avatar-wrap > .skin-badge { top: auto; bottom: 4px; left: auto; right: -4px; transform: none; font-size: 24px; }

.premium-cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; box-sizing: border-box; flex: none; min-height: 58px; overflow: visible;
  border: 2.5px solid #B8860B; border-radius: 14px;
  /* o "brilho que passa" agora é o próprio fundo deslizando — dispensa overflow:hidden */
  background: linear-gradient(105deg, #FFE27A 0%, #FFC93C 30%, #FFF3C0 50%, #FFC93C 70%, #F5A623 100%);
  background-size: 250% 100%;
  color: #5c4300; font-family: inherit; font-weight: 800; font-size: 16px;
  padding: 12px 16px; cursor: pointer; text-align: center; line-height: 1.3;
  box-shadow: 3px 3px 0 rgba(184,134,11,0.45), 0 0 0 rgba(255,210,63,0.6);
  position: relative;
  animation: premiumPulse 2.4s ease-in-out infinite, premiumShine 3.2s ease-in-out infinite;
}
.premium-cta small { display: block; font-weight: 700; font-size: 13px; color: #6b4e00; margin-top: 2px; line-height: 1.3; }
@keyframes premiumPulse {
  0%,100% { box-shadow: 3px 3px 0 rgba(184,134,11,0.45), 0 0 0 0 rgba(245,166,35,0.55); }
  50%     { box-shadow: 3px 3px 0 rgba(184,134,11,0.45), 0 0 0 7px rgba(245,166,35,0); }
}
@keyframes premiumShine { 0% { background-position: 100% 0; } 55%,100% { background-position: 0% 0; } }
.premium-cta:active { transform: translate(1px,1px); }
@media (prefers-reduced-motion: reduce) { .premium-cta { animation: none; background-size: 100% 100%; } }
/* banner no topo do hub (embaixo dos Amigos) */
.hub-premium { max-width: 440px; margin: 6px auto 2px; }

/* salas */
/* ⚠️ Os cards da tela de Salas NÃO podem herdar o comportamento de overlay do
   .paper-card (max-height: 100dvh + overflow-y: auto + margin: auto). Aquilo foi
   feito pra UM card centralizado sozinho; aqui são TRÊS empilhados num flex
   column. Cada um virava sua própria caixa de rolagem e, como a soma passa da
   tela, todos encolhiam (flex-shrink padrão) e CORTAVAM o conteúdo — o botão
   "Criar sala" simplesmente sumia e a mensagem de lista vazia saía pela metade.
   Regra por TELA (e não por classe) de propósito: os dois cards usam classes
   diferentes (.rooms-create e .rooms-card), e qualquer card novo aqui herda a
   correção sem precisar lembrar dela. Altura pelo conteúdo, sem encolher, e quem
   rola é a tela (.center). */
#roomsScreen .paper-card { max-height: none; overflow: visible; margin: 0 auto; flex: 0 0 auto; }
.rooms-card { width: 100%; max-width: 360px; gap: 8px; padding: 16px 18px; transform: none; }
.rooms-card b { font-size: 18px; }
.rooms-card .row { max-width: none; }
.rooms-head { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; }
/* o título quebrava em duas linhas e empurrava o ↻: um pouco menor cabe em uma */
.rooms-head b { font-size: 16px; line-height: 1.25; }
.rooms-head .mini-btn { flex: 0 0 auto; }
/* sem scroll interno: a tela inteira rola de uma vez (nada de scroll aninhado que trava no celular) */
/* a lista pode ficar longa: ela rola por dentro, o resto do card não */
.rooms-list { width: 100%; display: flex; flex-direction: column; gap: 8px;
  max-height: 46vh; overflow-y: auto; }
.rooms-empty { color: #8a8272; text-align: center; padding: 10px; font-size: 15px; }
.room-item { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 2px solid var(--ink); border-radius: 10px; background: #fff; padding: 8px 12px; cursor: pointer;
  box-shadow: 2px 2px 0 rgba(42,42,46,0.15); transition: transform .08s; }
.room-item:active { transform: translate(2px,2px); }
.room-item small { display: block; color: #8a8272; font-size: 13px; }
.room-code { font-family: "Patrick Hand", cursive; font-weight: 700; font-size: 14px; color: #178A3F;
  letter-spacing: .5px; background: #E5F7E9; border: 2px solid #178A3F; border-radius: 8px; padding: 4px 10px; white-space: nowrap; }
.room-ico { font-size: 26px; width: 42px; height: 42px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); border-radius: 11px; background: #FFFDF6; box-shadow: 2px 2px 0 rgba(42,42,46,0.12); }
.room-item .finfo { flex: 1; min-width: 0; text-align: left; }
.room-item .finfo b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ação principal + entrar por código da tela de salas */
.rooms-big { width: 100%; max-width: 360px; font-size: 20px; padding: 15px; margin: 6px 0 4px; }
.rooms-join { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; max-width: 360px; margin-bottom: 8px; flex: 0 0 auto; }
.rooms-join .field { flex: 1; max-width: none; margin: 0; }
.rooms-join .btn { flex: 0 0 auto; }
/* criar sala: público x privado (segmentado) */
.vis-toggle { display: flex; gap: 8px; width: 100%; }
.vis-opt { flex: 1; padding: 10px 6px; border: 2.5px solid var(--ink); border-radius: 10px; background: #fff;
  font-family: inherit; font-size: 15px; font-weight: 700; color: #8a8272; cursor: pointer;
  box-shadow: 2px 2px 0 rgba(42,42,46,0.15); transition: transform .08s, background .1s; }
.vis-opt:active { transform: translate(2px,2px); }
.vis-opt.sel { background: #FFF3C4; border-color: var(--red); color: var(--ink); box-shadow: 3px 3px 0 rgba(228,87,46,0.3); }
.vis-hint { font-size: 13px; color: #8a8272; text-align: left; margin: 0; min-height: 18px; line-height: 1.25; }
/* código da sala no lobby (copiar com feedback) */
.room-code-bar { display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 2px 0 0; }
.rcb-label { font-size: 13px; color: #8a8272; text-align: center; }
.room-code-chip { display: inline-flex; align-items: center; gap: 10px; border: 2.5px dashed var(--blue);
  background: #EEF4FF; border-radius: 12px; padding: 6px 12px 6px 16px; cursor: pointer; font-family: inherit;
  box-shadow: 2px 2px 0 rgba(38,103,201,0.18); transition: transform .08s; }
.room-code-chip:active { transform: translate(2px,2px); }
.room-code-chip b { font-family: "Patrick Hand", cursive; font-size: 26px; letter-spacing: 4px; color: var(--blue); line-height: 1; }
.rcb-copy { font-size: 13px; font-weight: 700; color: var(--blue); background: #fff; border: 2px solid var(--blue);
  border-radius: 8px; padding: 3px 9px; white-space: nowrap; }
.rcb-pass { font-size: 13px; color: var(--red); font-weight: 700; }
/* CTA de compartilhar destacado (verde WhatsApp) — o jeito mais fácil de chamar */
.rcb-whats { margin-top: 5px; min-height: 44px; padding: 10px 20px; border-radius: 12px; cursor: pointer;
  border: 2.5px solid var(--ink); background: #25D366; color: #0b3d1e; font-family: inherit; font-size: 16px;
  font-weight: 700; box-shadow: 3px 3px 0 rgba(42,42,46,0.28); transition: transform .08s; }
.rcb-whats:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(42,42,46,0.28); }
/* vaga vazia (cadeira livre) no roster */
.player-chip.vaga { border-style: dashed; border-color: #c9bfa8; color: #a49c8a; background: #faf7ef;
  font-size: 13px; box-shadow: none; }

/* contadores + busca da lista de salas (quando o app bomba, a lista se organiza) */
.rooms-meta { width: 100%; text-align: left; font-size: 13.5px; font-weight: 700; color: #178A3F; }
.rooms-toolbar { display: flex; align-items: center; gap: 6px; width: 100%; position: relative; }
.rooms-toolbar .field { flex: 1; max-width: none; font-size: 15px; padding: 9px 34px 9px 34px; box-shadow: none; }
.rooms-search-ico { position: absolute; left: 10px; font-size: 15px; pointer-events: none; opacity: .7; }
.rooms-search-x { position: absolute; right: 8px; border: none; background: #efe9da; color: #6b6455;
  border-radius: 50%; width: 24px; height: 24px; font-size: 13px; cursor: pointer; line-height: 1; }
.rooms-more { width: 100%; border: 2px dashed #b6afa2; border-radius: 10px; background: #faf7ef;
  color: #6b6455; font-family: inherit; font-size: 14.5px; font-weight: 700; padding: 9px 8px; cursor: pointer;
  transition: transform .08s, background .1s; }
.rooms-more:active { transform: translate(2px,2px); background: #f2ecdd; }

/* ⏳ convidados que ainda não aceitaram (todos na espera veem) + "iniciar sem eles" */
.invite-wait { width: 100%; max-width: 350px; display: flex; flex-direction: column; gap: 6px;
  border: 2px dashed #B8860B; border-radius: 12px; background: #FFF9E8; padding: 10px 12px; }
.invite-wait-list { display: flex; flex-direction: column; gap: 4px; }
.inv-wait-item { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: #8a6d00; text-align: left; }
.inv-wait-item b { color: var(--ink); }
.iw-txt { flex: 1; min-width: 0; }
.iw-elapsed { color: #b08a00; font-weight: 700; white-space: nowrap; }
/* "chamar de novo" por convidado que demora — atalho à mão, sem esperar */
.iw-recall { flex: none; min-height: 34px; padding: 5px 10px; border-radius: 9px; cursor: pointer;
  border: 2px solid #B8860B; background: #fff; color: #8a6d00; font-family: inherit; font-size: 13px;
  font-weight: 700; white-space: nowrap; transition: transform .08s; }
.iw-recall:active { transform: translate(1px,1px); }
.iw-recall:disabled { opacity: .5; cursor: default; }
.iw-hour { display: inline-block; animation: iwswing 1.6s ease-in-out infinite; transform-origin: 50% 20%; }
@keyframes iwswing { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
.invite-wait .btn { max-width: none; font-size: 16px; padding: 10px; margin-top: 2px; background: #FFF3C4; }
@media (prefers-reduced-motion: reduce) { .iw-hour { animation: none; } }

/* mapas */
.map-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 350px; }
.map-card { padding: 10px 6px; border-radius: 12px; border: 2.5px solid var(--ink); text-align: center;
  cursor: pointer; display: flex; flex-direction: column; gap: 1px; font-size: 16px;
  box-shadow: 3px 3px 0 rgba(42,42,46,0.18); transition: transform .08s; }
.map-card small { font-size: 11px; opacity: .7; }
.map-card.sel { border-color: var(--red); box-shadow: 3px 3px 0 rgba(228,87,46,0.4); transform: scale(1.05); }

/* ranking / PÓDIO */
.rank-card { width: min(560px, 94vw); }
.rank-card h2 { margin: 0 0 2px; font-family: "Caveat", cursive; font-size: 34px; }
.rank-note { font-size: 13px; color: #7a7466; margin: 0 0 10px; line-height: 1.25; }
.rank-me { display: none; margin: 0 0 10px; padding: 8px 12px; border-radius: 12px;
  background: #FFF3D6; border: 1.5px solid var(--red); color: var(--ink); font-size: 15px; font-weight: 700; text-align: center; }
.rank-me b { color: var(--red); }

/* chips de escopo (Geral + um por jogo): rolam pro lado no toque */
.rank-chips { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; touch-action: pan-x; overscroll-behavior-x: contain;
  width: 100%; max-width: 100%; padding: 4px 2px 10px; margin-bottom: 6px; align-items: center;
  /* flex-shrink:0 + min-height: dentro do .paper-card (flex column) a linha NÃO pode encolher,
     senão o overflow-y:hidden corta os chips (bug reportado). */
  flex: 0 0 auto; min-height: 44px;
  border-bottom: 1.5px dashed #c9bfa8; scrollbar-width: thin; scroll-snap-type: x proximity; }
.rank-chip { flex: 0 0 auto; scroll-snap-align: start; border: 1.5px solid #c9bfa8; background: #FFF9E8;
  border-radius: 999px; padding: 7px 13px; font-family: inherit; font-size: 13px; cursor: pointer;
  white-space: nowrap; touch-action: manipulation; }
.rank-chip.sel { background: var(--red); color: #fff; border-color: var(--red); }

/* segmentados PÚBLICO (Todos/Amigos) e PERÍODO (Semana/Sempre) */
.rank-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.rank-seg-group { display: inline-flex; border: 1.5px solid #c9bfa8; border-radius: 999px;
  overflow: hidden; background: #FFF9E8; }
.rank-seg { border: 0; background: transparent; color: var(--ink); font-family: inherit;
  font-size: 13px; padding: 6px 12px; cursor: pointer; white-space: nowrap;
  touch-action: manipulation; }
.rank-seg + .rank-seg { border-left: 1.5px solid #c9bfa8; }
.rank-seg.sel { background: var(--red); color: #fff; }

/* 💡 dica de controle na 1ª vez — pílula centralizada sobre o canvas, some sozinha.
   Fica no centro pra não colar no ✕ sair (topo-esq.) nem na barra do Android. */
.ctrl-hint { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%);
  z-index: 60; max-width: min(86vw, 420px); box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(42, 42, 46, 0.86); color: #fff; border-radius: 14px;
  padding: 14px 16px; text-align: center; font-family: "Patrick Hand", cursive;
  font-size: 16px; line-height: 1.3; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
  pointer-events: auto; animation: ctrl-hint-in .18s ease-out; }
@keyframes ctrl-hint-in { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.ctrl-hint-ok { border: 0; background: #fff; color: var(--ink); border-radius: 999px;
  padding: 6px 18px; font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; touch-action: manipulation; }

/* PÓDIO — 3 degraus, 1º no meio e mais alto */
.rank-podium { width: 100%; margin: 4px 0 8px; }
.pod-row { display: flex; justify-content: center; align-items: flex-end; gap: 8px; }
.pod { flex: 1 1 0; max-width: 33%; display: flex; flex-direction: column; align-items: center; position: relative; }
.pod-crown { font-size: 22px; line-height: 1; margin-bottom: -2px; animation: pod-bob 2.2s ease-in-out infinite; }
@keyframes pod-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.pod-av { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 22px; border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(42,42,46,0.2); }
.pod-1 .pod-av { width: 58px; height: 58px; font-size: 27px; border-width: 3px; }
.pod-name { font-size: 14px; font-weight: 700; margin-top: 3px; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.pod-score { font-family: "Caveat", cursive; font-size: 26px; line-height: 1; margin-top: 1px; }
.pod-1 .pod-score { font-size: 32px; }
.pod-games { font-size: 11px; color: #7a7466; }
.pod-step { margin-top: 6px; width: 100%; border: 2.5px solid var(--ink); border-bottom: none;
  border-radius: 10px 10px 0 0; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 6px; box-shadow: inset 0 -3px 0 rgba(42,42,46,0.08); }
.pod-medal { font-size: 24px; }
.pod-1 .pod-step { height: 74px; background: linear-gradient(#FFE79A, #F7CE5B); }
.pod-2 .pod-step { height: 54px; background: linear-gradient(#EDEFF2, #C9CBD0); }
.pod-3 .pod-step { height: 40px; background: linear-gradient(#F0CBA0, #D8A165); }
.pod.me .pod-av { outline: 3px solid var(--blue); outline-offset: 2px; }
.pod.me .pod-name::after { content: " (você)"; color: var(--blue); font-size: 11px; }

/* LISTA (4º em diante) */
.rank-list { width: 100%; max-height: 40vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px;
  margin-top: 2px; }
.rk-row { display: flex; align-items: center; gap: 9px; border-bottom: 1.5px dashed #c9bfa8;
  padding: 5px 4px; font-size: 16px; }
.rk-pos { min-width: 30px; text-align: right; color: #7a7466; font-weight: 700; }
.rk-av { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 700; font-size: 15px; border: 2px solid var(--ink); }
.rk-nick { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-you { color: var(--blue); }
.rk-games { flex: 0 0 auto; font-size: 12px; color: #7a7466; }
.rk-score { flex: 0 0 auto; font-family: "Caveat", cursive; font-size: 22px; min-width: 40px; text-align: right; }
.rk-row.me { background: #FFF3D6; border-radius: 8px; border-bottom-color: transparent;
  outline: 2px solid var(--blue); }
.rank-empty { text-align: center; color: #7a7466; padding: 24px 8px; font-size: 16px; }

/* 💬 chat rápido em jogo (emoji + frases prontas) */
/* (02/08) o 💬 vivia EM CIMA do campo (era no canto inferior esquerdo; trocar
   pro direito não resolveu — o campo ocupa os dois). A ÚNICA faixa que os jogos
   comprovadamente não usam é a do topo, do botão "✕ sair": a release do HUD
   garantiu que os 70 jogos desenham abaixo de safe-area-top + 50, e o
   tools/hud-check confirmou que o canto superior DIREITO está livre em todos.
   Então o 💬 virou o espelho do "sair", na mesma faixa reservada. */
.emote-btn { position: fixed; right: 12px; top: calc(env(safe-area-inset-top, 8px) + 6px); z-index: 240;
  width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff;
  font-size: 19px; cursor: pointer; box-shadow: 3px 3px 0 rgba(42,42,46,0.25);
  opacity: 0.62; transition: opacity .15s ease; }
.emote-btn:active, .emote-btn:focus-visible { opacity: 1; }
.emote-btn.open { opacity: 1; }
.emote-btn:active { transform: translate(2px,2px); box-shadow: 0 0 0 transparent; }
.emote-palette { position: fixed; right: 10px; top: calc(env(safe-area-inset-top, 8px) + 54px); z-index: 241;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; padding: 8px;
  box-shadow: 4px 4px 0 rgba(42,42,46,0.25); display: flex; flex-direction: column; gap: 6px; max-width: 240px; }
.emote-palette .em-row { display: flex; gap: 4px; }
.emote-palette .em-e { font-size: 24px; padding: 4px 7px; border: none; background: none; cursor: pointer; border-radius: 8px; }
.emote-palette .em-e:active { background: #FFF3C4; }
.emote-palette .em-f { font-family: "Patrick Hand", cursive; font-size: 14px; padding: 5px 9px; border: 1.5px solid #c9bfa8;
  background: #FFF9E8; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.emote-palette .em-f:active { background: #FFD23F; }
/* 👋 pedir amizade: é AÇÃO, não papo — separado das frases e com cara de botão */
.emote-palette .em-row-act { border-top: 1.5px dashed #c9bfa8; padding-top: 6px; margin-top: 2px; }
.emote-palette .em-friend { flex: 1; font-family: "Patrick Hand", cursive; font-size: 15px; font-weight: 700;
  padding: 7px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--blue); color: #fff;
  cursor: pointer; white-space: nowrap; box-shadow: 2px 2px 0 rgba(42,42,46,0.25); }
.emote-palette .em-friend:active { transform: translate(2px,2px); box-shadow: 0 0 0 transparent; }
.invite-toast.friend-ask .ach-ic { animation: friendWave 1.4s ease-in-out infinite; }
@keyframes friendWave { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
.emote-bubble { position: fixed; z-index: 239; left: 50%; transform: translateX(-50%);
  background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; padding: 6px 12px;
  box-shadow: 3px 3px 0 rgba(42,42,46,0.25); font-family: "Patrick Hand", cursive; text-align: center;
  animation: emoteUp 2.6s ease-out forwards; pointer-events: none; max-width: 80vw; }
.emote-bubble small { display: block; font-size: 11px; color: #8a8272; line-height: 1; }
.emote-bubble .em-v { font-size: 26px; line-height: 1.2; }
.emote-bubble .em-v.txt { font-size: 17px; font-weight: 700; }
@keyframes emoteUp {
  0% { opacity: 0; top: 30%; } 10% { opacity: 1; top: 26%; }
  75% { opacity: 1; top: 22%; } 100% { opacity: 0; top: 18%; }
}

/* toast de erro */
.err-toast { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 9999;
  background: #fff; border: 2.5px solid var(--red); color: var(--red); border-radius: 10px;
  padding: 8px 14px; font-size: 14px; max-width: 90vw; box-shadow: 4px 4px 0 rgba(0,0,0,0.2); }

/* anúncios */
.ad-banner { width: 100%; max-width: 350px; min-height: 56px; border: 2px dashed #b9b1a0;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #b9b1a0; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.ad-card { align-items: center; gap: 14px; position: relative; overflow: visible; }
/* X do anúncio: SEMPRE visível e por cima de tudo, dedo grande (≥44px) alcança fácil */
.ad-close { position: absolute; top: -16px; right: -16px; width: 48px; height: 48px; z-index: 10;
  border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 22px; font-weight: 800; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 rgba(42,42,46,0.3); }
.ad-close:active { transform: translate(1px,1px); box-shadow: none; }
.ad-slot { width: 260px; height: 200px; border: 2px dashed #b9b1a0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: #b9b1a0;
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }

/* fim de rodada */
/* pódio/ranking abre POR CIMA de outros overlays (ex.: o de entrada do jogo),
   senão ficava atrás e não dava pra ver. Ao fechar, volta pro lobby por baixo. */
#rankOverlay { z-index: 450; }
.overlay { position: fixed; inset: 0; background: rgba(42, 42, 46, 0.35); display: flex;
  align-items: center; justify-content: center; backdrop-filter: blur(2px);
  padding: calc(env(safe-area-inset-top, 0px) + 16px) calc(env(safe-area-inset-right, 0px) + 16px)
           calc(env(safe-area-inset-bottom, 0px) + 16px) calc(env(safe-area-inset-left, 0px) + 16px);
  overflow-y: auto; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.paper-card { background: var(--paper); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 8px 8px 0 rgba(42, 42, 46, 0.3); padding: 22px 26px; max-width: 340px; width: 100%;
  max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto;
  display: flex; flex-direction: column; align-items: center; gap: 9px; transform: rotate(-1deg);
  animation: cardpop 0.28s cubic-bezier(0.2, 2, 0.4, 1); }
@keyframes cardpop { from { transform: rotate(-1deg) scale(0.85); opacity: 0; } to { transform: rotate(-1deg) scale(1); opacity: 1; } }
.over-card h2 { font-family: "Caveat", cursive; font-size: 38px; text-align: center; line-height: 1; }
.over-xp { font-family: "Caveat", cursive; font-size: 34px; font-weight: 700; color: var(--red); }
.over-level { font-size: 16px; color: #6b6455; }
.over-bonus { font-size: 15px; color: #B8860B; font-weight: 700; min-height: 18px; }
.over-next { font-size: 16px; color: #2e7d32; font-weight: 700; margin: 4px 0 2px;
  font-family: "Caveat", cursive; animation: nextPulse 1s ease-in-out infinite; }
@keyframes nextPulse { 0%,100% { opacity: 1 } 50% { opacity: .55 } }

/* ── FX: confete + pop ── */
.confetti-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 10000; overflow: hidden; }
.confetti-piece { position: absolute; top: -14px; display: block; border-radius: 2px;
  animation: confall linear forwards; }
@keyframes confall {
  0%   { transform: translate(0, -14px) rotate(0deg); opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(var(--drift, 0px), 104vh) rotate(var(--spin, 540deg)); opacity: 0; }
}
.fx-pop { animation: fxpop 0.35s cubic-bezier(0.2, 2.2, 0.4, 1); }
@keyframes fxpop { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }

/* ── HUB: chips de tipo + badge NOVO + streak ── */
.hub-kind { position: absolute; top: -9px; right: 8px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.5px; padding: 1px 8px; border-radius: 999px; border: 2px solid var(--ink);
  background: #EAF2FB; color: var(--blue); text-transform: uppercase; }
.hub-kind.k-solo { background: #FFF3C4; color: #B8860B; }
.hub-kind.k-versus { background: #FDE4EC; color: #D6336C; }
.hub-kind.k-party { background: #E5F7E9; color: #178A3F; }
.hub-badge-new { position: absolute; top: -10px; left: 8px; font-size: 11px; font-weight: 700;
  background: var(--red); color: #fff; border: 2px solid var(--ink); border-radius: 999px;
  padding: 1px 8px; transform: rotate(-4deg); animation: newpulse 1.4s ease-in-out infinite; }
@keyframes newpulse { 0%,100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.1); } }
.streak-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700;
  color: #B8860B; background: #FFF3C4; border: 2px solid var(--ink); border-radius: 999px;
  padding: 2px 12px; box-shadow: 2px 2px 0 rgba(42,42,46,0.18); }

/* ── painel de ADMIN (engrenagem no Hub, só pro dono) ── */
.admin-toggle-row { display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 12px; font-size: 18px; }
.switch { position: relative; width: 58px; height: 30px; border: 2.5px solid var(--ink);
  border-radius: 999px; background: #ddd; cursor: pointer; transition: background 0.15s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 3px; width: 21px; height: 21px;
  border-radius: 50%; background: #fff; border: 2px solid var(--ink); transition: left 0.15s; }
.switch.on { background: #7ED957; }
.switch.on::after { left: 29px; }
.admin-note { font-size: 13px; color: #8a8272; text-align: center; }
.admin-card { max-width: 440px; max-height: 88vh; overflow-y: auto; }
.admin-metrics { width: 100%; border-top: 2px dashed #c9bfa8; padding-top: 10px; margin-top: 4px;
  display: flex; flex-direction: column; gap: 8px; }
.metric-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }
.metric-kpi { border: 2px solid var(--ink); border-radius: 10px; background: #fff; padding: 9px 8px;
  text-align: center; box-shadow: 2px 2px 0 rgba(42,42,46,0.12); min-width: 0; }
.metric-kpi b { font-family: "Caveat", cursive; font-size: 27px; color: var(--blue); display: block;
  line-height: 1; overflow: hidden; text-overflow: ellipsis; }
.metric-kpi span { font-size: 13px; color: #6b6455; display: block; margin-top: 3px; line-height: 1.2; }
.metric-table { width: 100%; display: flex; flex-direction: column; gap: 3px; }
.metric-row { display: grid; grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr 0.9fr; gap: 5px;
  align-items: center; font-size: 13px; padding: 4px 7px; border-radius: 6px; }
.metric-row.r4 { grid-template-columns: 1.4fr 0.9fr 0.9fr 0.9fr; }
.metric-row.head { color: #6b6455; font-weight: 700; border-bottom: 1.5px solid #d8cfbb; }
.metric-row:nth-child(even):not(.head) { background: rgba(0,0,0,0.03); }
.metric-row b { font-weight: 700; }
.metric-row > b, .metric-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-row > span:not(:first-child) { text-align: right; }
.metric-row .bar { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: var(--red);
  opacity: 0.5; overflow: visible; }
/* linha informativa / estado-vazio: ocupa a largura TODA (não some espremida na 1ª coluna) */
.metric-note { width: 100%; font-size: 13px; color: #6b6455; padding: 6px 7px; line-height: 1.4;
  text-align: left; }
.metric-note.big { font-size: 14px; color: var(--ink); padding: 4px 7px 6px; }
.metric-note b { color: var(--blue); }
/* mini-stats derivados sob o gráfico de DAU */
.adm-mini { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 2px 0; font-size: 13px; color: #6b6455; }
.adm-mini b { font-family: "Caveat", cursive; font-size: 20px; color: var(--blue); margin-right: 2px; }
.adm-sortbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -2px 0 2px; }
.adm-sortbar .chip { padding: 5px 12px; font-size: 13px; }

/* ── abas (fichário) + panes + gráficos do admin ── */
/* wrapper NÃO-rolante: segura a altura (senão as abas cortam) e ancora a seta › */
.adm-tabs-wrap { position: relative; width: 100%; flex: 0 0 auto; min-height: 46px; }
.adm-tabs { display: flex; gap: 6px; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 2px 26px 6px 0; margin-top: 2px; border-bottom: 2px dashed #c9bfa8; scrollbar-width: none;
  min-height: 44px; align-items: flex-end; }
/* seta "tem mais abas pro lado →" — some quando rola até o fim (.at-end no wrap) */
.adm-tabs-more { position: absolute; right: 0; top: 15px; pointer-events: none;
  font: 800 24px/1 Caveat, cursive; color: var(--ink);
  padding: 6px 3px 6px 22px; background: linear-gradient(90deg, rgba(253,248,238,0), #FDF8EE 55%);
  animation: admNudge 1s ease-in-out infinite; transition: opacity .25s ease; }
.adm-tabs-wrap.at-end .adm-tabs-more { opacity: 0; }
@keyframes admNudge { 50% { transform: translateX(4px); } }
.adm-help { font-size: 13px; color: #8a8272; font-style: italic; margin-top: 2px; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab { flex: 0 0 auto; border: 2px solid var(--ink); border-bottom-width: 2px; background: #fff;
  border-radius: 10px 10px 4px 4px; padding: 6px 11px; font-family: inherit; font-size: 14px;
  color: var(--ink); cursor: pointer; white-space: nowrap; box-shadow: 1.5px 1.5px 0 rgba(42,42,46,0.12); }
.adm-tab.sel { background: #FFD23F; font-weight: 700; box-shadow: 1.5px 1.5px 0 rgba(42,42,46,0.22); }
.adm-periodbar { display: flex; align-items: center; gap: 8px; width: 100%; flex-wrap: wrap; margin: 6px 0 2px; flex: 0 0 auto; }
.adm-periodbar .chip-row { justify-content: flex-start; }
.adm-pane { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.adm-chart-box { width: 100%; border: 2px solid var(--ink); border-radius: 12px; background: #fff;
  padding: 8px 8px 4px; box-shadow: 2px 2px 0 rgba(42,42,46,0.12); }
.adm-chart-title { font-size: 13px; color: #8a8272; font-weight: 700; margin: 0 0 4px 2px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-chart { display: block; width: 100%; height: 180px; }
.adm-legend { font-weight: 400; color: #8a8272; display: inline-flex; align-items: center; gap: 3px; }
.adm-legend i { display: inline-block; width: 11px; height: 4px; border-radius: 2px; vertical-align: middle; }

/* ── álbum de figurinhas ── */
.album-card { max-width: 380px; }
.album-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: 100%;
  max-height: 46vh; overflow-y: auto; padding: 4px 2px; }
.fig { position: relative; aspect-ratio: 3 / 4; border: 2.5px solid var(--ink); border-radius: 8px;
  background: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px;
  box-shadow: 2px 2px 0 rgba(42,42,46,0.15); }
.fig.r1 { border-color: var(--blue); background: #EAF2FB; }
.fig.r2 { border-color: #E4A72E; background: #FFF3C4; box-shadow: 0 0 10px rgba(228,167,46,0.55); }
.fig.locked { border-color: #cfc9bb; background: #f4efe4; color: #cfc9bb; font-size: 20px;
  box-shadow: none; filter: grayscale(1); }
.fig .n { position: absolute; bottom: -7px; right: -6px; min-width: 20px; height: 20px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
  line-height: 20px; text-align: center; padding: 0 4px; }

/* ── Recreio+ (oferta de remover anúncios) ── */
.upsell-ov { z-index: 400; }
.upsell-card { max-width: 320px; text-align: center; border-color: #B8860B; }
.upsell-ico { font-size: 44px; line-height: 1; }
.upsell-card h3 { font-family: "Caveat", cursive; font-size: 28px; margin: 4px 0 0; }
.upsell-card p { font-size: 15px; color: #6b6455; margin: 0 0 8px; }
.upsell-buy { width: 100%; background: #FFF3C4; border-color: #B8860B; color: #8a6d00; font-weight: 700; }
.upsell-note { display: block; color: #7a7466; font-size: 13px; }
.btn-reward { background: #FFF3C4; border-color: #B8860B; color: #8a6d00; }
#hubNick.prem::after { content: " 💛"; }

/* 🎈 festa do JOGO SURPRESA desbloqueado */
.balloon-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 1200; overflow: hidden; }
.balloon-piece { position: fixed; bottom: -12vh; will-change: transform, opacity;
  animation-name: balloonUp; animation-timing-function: ease-in; animation-iteration-count: 1; }
@keyframes balloonUp {
  0% { transform: translateY(0) translateX(0) rotate(-4deg); opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(-118vh) translateX(var(--sway, 0px)) rotate(4deg); opacity: 0; }
}
.secret-party { animation: cardpop 0.28s cubic-bezier(0.2, 2, 0.4, 1); border-color: #B8860B;
  box-shadow: 8px 8px 0 rgba(184,134,11,0.35), 0 0 0 4px rgba(255,210,63,0.25); }
.secret-banner { background: linear-gradient(135deg, #FFE27A, #FFC93C, #F5A623); color: #6b4e00;
  font-weight: 800; font-size: 15px; letter-spacing: 0.3px; border: 2px solid #B8860B; border-radius: 999px;
  padding: 7px 14px; margin: -4px 0 6px; box-shadow: 2px 2px 0 rgba(184,134,11,0.35);
  animation: secretBannerPulse 1.1s ease-in-out infinite; }
@keyframes secretBannerPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.secret-emoji { font-size: 68px; line-height: 1; animation: secretBounce 1.2s ease-in-out infinite; }
@keyframes secretBounce { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) {
  .balloon-piece, .secret-banner, .secret-emoji { animation: none; }
}

/* ── 🎨 ESTÚDIO DE AVATAR ─────────────────────────────────────────────────── */
.btn-studio { max-width: 330px; margin: 8px auto 2px; background: #FFF3C4; border-color: var(--ink);
  font-weight: 700; box-shadow: 3px 3px 0 rgba(42, 42, 46, 0.16); }
.studio-ov { display: flex; align-items: center; justify-content: center; z-index: 320; }
.studio-card { position: relative; max-width: 360px; width: 94%; max-height: 90vh; overflow-y: auto;
  text-align: center; padding: 16px 14px; }
.studio-preview { position: relative; width: 100%; max-width: 240px; margin: 6px auto 10px; aspect-ratio: 11 / 12;
  background: repeating-linear-gradient(180deg, #FFFDF6 0 22px, #F3EEDF 22px 23px);
  border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: inset 0 0 0 3px #fff; }
.studio-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.studio-flip { position: absolute; right: 6px; bottom: 6px; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--ink); background: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.studio-rows { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.studio-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.studio-lab { flex: 0 0 88px; text-align: left; font-size: 14px; color: #6b6455; font-weight: 700; }
.studio-ctrl { flex: 1; display: flex; align-items: center; gap: 6px; }
.studio-arrow { flex: 0 0 38px; height: 38px; border: 2px solid var(--ink); background: #fff; border-radius: 8px;
  font-size: 15px; cursor: pointer; line-height: 1; padding: 0; }
.studio-arrow:active { transform: translateY(1px); }
.studio-optname { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); border-radius: 8px; background: #FFFDF6; font-size: 14px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; }
.studio-optname.locked { color: #a08b3a; background: #FDF6DD; }
/* ações da peça selecionada (compra pra sempre / vídeo do dia / meta da exclusiva) */
.studio-act { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.studio-act:empty { display: none; }
.studio-buy, .studio-vid { margin: 0; height: 34px; min-height: 0; padding: 0 12px; font-size: 13px; font-weight: 700; border-radius: 8px; }
.studio-buy { background: #FFF3C4; border: 2px solid #E4A72E; color: #7a5b12; }
.studio-vid { background: #EAF6ED; border: 2px solid #178A3F; color: #0f6b30; }
.studio-meta { flex: 1 0 100%; text-align: right; font-size: 12px; color: #a08b3a; font-weight: 700; }
.studio-acts { display: flex; gap: 8px; margin-top: 4px; }
.studio-acts .btn { margin: 0; }
.studio-tip { margin: 2px auto 6px; font-size: 13px; }

/* 🌐 interruptor de idioma (bandeiras) — auth (topo) e perfil (inline) */
.lang-toggle-wrap { display: flex; justify-content: center; }
#authLang.lang-toggle-wrap { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 26px); right: 14px; z-index: 5; }
.lang-toggle { display: inline-flex; gap: 4px; background: #fff; border: 2px solid #e6dcc2;
  border-radius: 999px; padding: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.lang-flag { width: 40px; height: 36px; border: 0; border-radius: 999px; background: transparent;
  font-size: 18px; line-height: 1; cursor: pointer; opacity: .45; filter: grayscale(.4);
  transition: opacity .15s, transform .1s, background .15s; }
.lang-flag.sel { opacity: 1; filter: none; background: #FFF3C4; }
.lang-flag:active { transform: scale(.92); }
.prof-lang { margin: 0 0 6px; }

/* ── login Google em andamento: anel girando no lugar do "G" + status em tom
   neutro (é progresso, não erro) com pontinho pulsando ─────────────────── */
.btn-google.working .g-ico { background: none; color: transparent; -webkit-text-fill-color: transparent; position: relative; }
.btn-google.working .g-ico::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border: 3px solid #cfd8e3; border-top-color: var(--ink); border-radius: 50%;
  animation: auth-spin .8s linear infinite;
}
#authError.working { color: #5c5850; }
#authError.working::after { content: "●"; margin-left: 6px; animation: auth-blink 1s ease-in-out infinite; }
@keyframes auth-spin  { to { transform: rotate(360deg); } }
@keyframes auth-blink { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .btn-google.working .g-ico::after, #authError.working::after { animation: none; }
}

/* 🔥 EM ALTA: mesmo selo do NOVO, em laranja (o NOVO é vermelho, o SECRETO dourado) */
.hub-badge-hot { background: #FF8C1A; }

/* 🎁 "Convide amigos" na home: mesmo molde do .btn, em dourado (o azul é a sala) */
.btn-invite { background: #FFE9A8; border-color: var(--ink); margin: 2px auto 10px; max-width: 330px; }
.btn-invite:active { background: #FFD966; }

/* 🎁 push "convide amigos": o botão dourado pisca por uns segundos ao abrir pelo toque */
.btn-invite.pulse { animation: invitepulse 1s ease-in-out 6; }
@keyframes invitepulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(228,167,46,.35); } }
@media (prefers-reduced-motion: reduce) { .btn-invite.pulse { animation: none; } }

/* ── 🚩 Denúncia e bloqueio (diretriz 1.2 da App Store) ───────────────────── */
/* O "⋯" fica discreto ao lado do "+ amigo": precisa existir e ser alcançável,
   não chamar atenção num jogo infantil. */
.chip-mod {
  border: none; background: transparent; color: #8a8272; cursor: pointer;
  font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 8px; flex: none;
  min-width: 32px; min-height: 32px;          /* alvo de toque confortável */
}
.chip-mod:active { background: #00000012; }
.mod-card, .blk-card { display: flex; flex-direction: column; gap: 8px; align-items: stretch; max-width: 330px; text-align: center; }
.mod-card .btn, .blk-card .btn { width: 100%; }
.mod-note { color: #8a8272; font-size: 12px; margin-top: 2px; }
.blk-list { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; }
.blk-row { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; background: #fff; }
.blk-row small { color: #8a8272; margin-left: 4px; }
.blk-row .btn { width: auto; padding: 6px 10px; font-size: 14px; }

/* 🚩 durante a partida: fica embaixo do "sair", mesmo canto, sem competir com os
   controles do jogo (que vivem na parte de baixo da tela). */
.seg-btn {
  position: absolute; top: 58px; right: 10px; z-index: 6;
  border: 2px solid var(--ink); background: #fff; border-radius: 12px;
  font-size: 18px; line-height: 1; padding: 6px 9px; cursor: pointer;
  min-width: 40px; min-height: 40px; box-shadow: 0 2px 0 var(--ink);
}
.seg-btn:active { transform: translateY(2px); box-shadow: none; }
.friend-item .fseg {
  border: none; background: transparent; color: #8a8272; cursor: pointer;
  font-size: 18px; line-height: 1; padding: 2px 4px; border-radius: 8px;
  min-width: 30px; min-height: 30px; flex: none;
}
.friend-item .fseg:active { background: #00000012; }

/* 🌐 "Salas": mesma linguagem visual do "Ao vivo" (que já pulsa com .has-live),
   mas leva pra lista de salas em vez de filtrar os jogos. */
.hf-btn.hf-rooms.has-live { border-color: #178A3F; }

/* 🎮 cabeçalho de jogo na lista de salas: separa visualmente sem virar mais uma
   linha clicável (o toque é sempre na SALA, nunca no título). */
.room-group { display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 2px 2px; border-top: 2px dashed #d8cfbb; margin-top: 4px; }
.room-group:first-child { border-top: none; margin-top: 0; }
/* o ícone no cabeçalho é menor que o de 42px das linhas antigas: aqui ele rotula
   o grupo, não é o alvo do toque */
.room-group .room-ico { font-size: 20px; width: 26px; height: 26px; border: none; background: none; box-shadow: none; }
.room-group b { font-size: 15px; flex: 1; text-align: left; }
.room-group-n { font-size: 12px; color: #178A3F; font-weight: 700; white-space: nowrap; }
/* sala lotada: visível mas claramente em segundo plano */
.room-item.full { opacity: .55; }
.room-item.full .room-code { color: #8a8272; }
