/* =====================================================================
   BATALHA PARTY — estilo da interface (client-ui)
   Resolução de design fixa 1280x720, escalada via transform em #stage.
   Paleta: roxo #6a3fd6/#3b1d7a, amarelo #ffd23f, laranja #ff8a1e,
   ciano #35d0ff, verde #58d35a, rosa #ff5fa0. Contornos grossos,
   cantos arredondados e sombras duras (estilo cartoon).
   ===================================================================== */
:root {
  --purple: #6a3fd6;
  --purple-dark: #3b1d7a;
  --purple-deep: #24104d;
  --yellow: #ffd23f;
  --orange: #ff8a1e;
  --cyan: #35d0ff;
  --green: #58d35a;
  --pink: #ff5fa0;
  --red: #ff3b3b;
  --blue: #2f7cf6;
  --ink: #16102b;
  --panel: rgba(20, 12, 48, 0.82);
  --panel-light: rgba(255, 255, 255, 0.10);
  --font: "Arial Rounded MT Bold", "Nunito", "Segoe UI", "Trebuchet MS", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  background: #1a1030; overflow: hidden;
  font-family: var(--font); font-weight: 800; color: #fff;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
input, textarea, select, button { font-family: var(--font); font-weight: 800; }
input, textarea { -webkit-user-select: text; user-select: text; }
img.ico { display: inline-block; vertical-align: middle; }
canvas { display: block; }
a { color: var(--cyan); }

/* ---------- palco escalado ---------- */
#stage {
  position: fixed; left: 0; top: 0; width: var(--stage-w, 1280px); height: 720px;   /* rodada 33: largura acompanha a tela */
  transform-origin: 0 0; overflow: hidden;
}
#bg { position: absolute; left: 0; top: 0; width: 100%; height: 720px; }
#screens, #overlays, #modals, #toasts { position: absolute; inset: 0; }
#overlays, #modals, #toasts { pointer-events: none; }
#overlays > *, #modals > *, #toasts > * { pointer-events: auto; }
.screen { position: absolute; inset: 0; display: none; isolation: isolate; }   /* rodada 39: cada tela é um contexto de empilhamento — nenhum z-index de dentro dela passa por cima de #modals/#toasts */
.screen.active { display: block; }

/* durante a partida o palco fica transparente (só modais/toasts) */
body.in-game #bg, body.in-game #screens, body.in-game #overlays { display: none; }
body.in-game #stage { pointer-events: none; }
#game-root { position: fixed; inset: 0; display: none; background: #000; }
body.in-game #game-root { display: block; }

/* aviso de rotação (retrato) */
#rotate-hint {
  position: fixed; left: 50%; top: 10px; transform: translateX(-50%);
  background: var(--yellow); color: #3a2400; border: 3px solid var(--ink);
  border-radius: 14px; padding: 8px 16px; font-size: 15px; z-index: 50;
  box-shadow: 0 4px 0 var(--ink); display: none; align-items: center; gap: 10px;
}
#rotate-hint.visible { display: flex; }
#rotate-hint button { border: 2px solid var(--ink); background: #fff; border-radius: 8px; padding: 2px 8px; cursor: pointer; }

/* ---------- tipografia utilitária ---------- */
.stroke { -webkit-text-stroke: 1px #000; paint-order: stroke fill; }
.stroke2 { -webkit-text-stroke: 2px #000; paint-order: stroke fill; }
.logo {
  font-size: 64px; line-height: 1; letter-spacing: 1px; text-transform: uppercase;
  color: var(--yellow); -webkit-text-stroke: 3px #c24d00; paint-order: stroke fill;
  text-shadow: 0 6px 0 #7a2a00, 0 8px 0 rgba(0,0,0,.35); transform: rotate(-3deg);
}
.logo small { display: block; font-size: 26px; color: #fff; -webkit-text-stroke: 2px #6a3fd6; text-shadow: 0 3px 0 #24104d; letter-spacing: 6px; }
.title { font-size: 30px; color: #fff; -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; text-shadow: 0 3px 0 rgba(0,0,0,.6); }
.muted { color: #cfc7ea; font-weight: 700; }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; }
.wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.c-yellow { color: var(--yellow); } .c-green { color: var(--green); } .c-cyan { color: var(--cyan); } .c-red { color: #ff6b6b; } .c-pink { color: var(--pink); } .c-orange { color: var(--orange); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 22px; height: 48px; border: 3px solid var(--ink); border-radius: 14px;
  background: var(--yellow); color: #3a2400; font: inherit; font-size: 20px; font-weight: 900;
  cursor: pointer; white-space: nowrap; position: relative;
  box-shadow: 0 5px 0 var(--ink), inset 0 -6px 0 rgba(0,0,0,.18), inset 0 3px 0 rgba(255,255,255,.45);
  transition: transform .05s, box-shadow .05s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink), inset 0 -6px 0 rgba(0,0,0,.18), inset 0 3px 0 rgba(255,255,255,.45); }
.btn:disabled { filter: grayscale(.8); opacity: .65; cursor: not-allowed; }
.btn-green { background: var(--green); color: #0b3a10; }
.btn-cyan { background: var(--cyan); color: #052a3d; }
.btn-orange { background: var(--orange); color: #3d1600; }
.btn-pink { background: var(--pink); color: #fff; text-shadow: 0 2px 0 #9c1a4f; }
.btn-purple { background: var(--purple); color: #fff; text-shadow: 0 2px 0 #2b1160; }
.btn-red { background: var(--red); color: #fff; text-shadow: 0 2px 0 #7a0c0c; }
.btn-blue { background: var(--blue); color: #fff; text-shadow: 0 2px 0 #123c85; }
.btn-gray { background: #b9bccb; color: #24243a; }
.btn-dark { background: #3b3555; color: #fff; }
.btn-sm { height: 36px; font-size: 16px; padding: 0 14px; border-radius: 10px; box-shadow: 0 3px 0 var(--ink), inset 0 -4px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.45); }
.btn-sm:active { box-shadow: 0 1px 0 var(--ink); transform: translateY(2px); }
.btn-xs { height: 28px; font-size: 13px; padding: 0 10px; border-radius: 8px; border-width: 2px; box-shadow: 0 2px 0 var(--ink); }
.btn-lg { height: 60px; font-size: 26px; padding: 0 34px; border-radius: 18px; }
.btn-icon { width: 48px; padding: 0; }
.btn-plus { width: 26px; height: 26px; padding: 0; border-radius: 8px; border-width: 2px; font-size: 22px; line-height: 1; box-shadow: 0 2px 0 var(--ink); }
.btn.active { outline: 3px solid #fff; }
.btn-block { width: 100%; }
.btn-trap {
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  border-radius: 6px; height: 58px; width: 210px; font-size: 28px; color: #fff;
  background: linear-gradient(#6fe0ff, #17a9e6); border: 0;
  box-shadow: none; -webkit-text-stroke: 1px #0a5a80; text-shadow: 0 3px 0 #0a5a80;
}
.btn-trap::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--ink); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); pointer-events: none; }

/* botão redondo das colunas do lobby */
.round-btn {
  width: 96px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; position: relative; background: none; border: 0; padding: 0; color: #fff;
}
.round-btn .circle {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #a887ff, #6a3fd6 60%, #3b1d7a);
  border: 3px solid #fff; box-shadow: 0 4px 0 var(--ink), 0 0 0 3px var(--ink);
}
.round-btn:active .circle { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink), 0 0 0 3px var(--ink); }
.round-btn .lbl { font-size: 12px; line-height: 1.1; text-align: center; -webkit-text-stroke: .8px #000; paint-order: stroke fill; text-shadow: 0 2px 0 rgba(0,0,0,.6); }

/* ícone de evento (linha central) */
.event-btn { width: 96px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; position: relative; background: none; border: 0; padding: 0; color: #fff; }
.event-btn .iconbox { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(0,0,0,.28); border: 2px solid rgba(255,255,255,.55); }
.event-btn:active .iconbox { transform: scale(.94); }
.event-btn .lbl { font-size: 11px; line-height: 1.1; text-align: center; -webkit-text-stroke: .7px #000; paint-order: stroke fill; text-shadow: 0 2px 0 rgba(0,0,0,.7); max-width: 96px; }

/* bolinha vermelha de notificação */
.dot {
  position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--red);
  border: 2px solid #fff; box-shadow: 0 0 0 1px #000; top: -2px; right: 10px; display: none;
}
.dot.on { display: block; }
.dot.count { width: auto; min-width: 18px; height: 18px; padding: 0 4px; font-size: 11px; line-height: 14px; text-align: center; border-radius: 9px; }
.balloon {
  position: absolute; top: -12px; right: -6px; background: var(--red); color: #fff; font-size: 11px;
  padding: 2px 6px; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 0 0 1px #000; transform: rotate(8deg);
}

/* ---------- pílulas / contadores ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px;
  background: rgba(10, 6, 30, 0.75); border: 2px solid rgba(255,255,255,.55); border-radius: 18px;
  font-size: 17px; color: #fff; text-shadow: 0 2px 0 #000; white-space: nowrap;
}
.pill.dark { background: #1b1238; border-color: #5a44a8; }
.pill .val { min-width: 40px; }
.pill .btn-plus { margin-left: 2px; }
.pill.yellow { background: var(--yellow); color: #3a2400; text-shadow: none; border-color: var(--ink); }

/* barra de XP estilo barra de vida */
.xpbar {
  position: relative; height: 24px; border: 2px solid #000; border-radius: 8px; background: #23153f; overflow: hidden;
}
.xpbar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#8bf585, #3fbf42); width: 0%; transition: width .4s; }
.xpbar .txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.bar { position: relative; height: 18px; border: 2px solid #000; border-radius: 7px; background: #23153f; overflow: hidden; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(#ffe57a, #ffb400); }
.bar.green .fill { background: linear-gradient(#8bf585, #3fbf42); }
.bar.cyan .fill { background: linear-gradient(#8fe9ff, #12b3e8); }
.bar.red .fill { background: linear-gradient(#ff9a9a, #e02020); }
.bar.pink .fill { background: linear-gradient(#ffa6cd, #ff3d8c); }
.bar .txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; text-shadow: 0 1px 0 #000, 0 0 3px #000; }

/* ---------- painéis e cards ---------- */
.panel {
  background: var(--panel); border: 3px solid rgba(255,255,255,.85); border-radius: 18px;
  box-shadow: 0 6px 0 rgba(0,0,0,.45); padding: 14px;
}
.panel.light { background: rgba(255,255,255,.92); color: #22183f; }
.panel-title { font-size: 20px; margin-bottom: 8px; -webkit-text-stroke: .8px #000; paint-order: stroke fill; }
.card {
  position: relative; background: #2a1c55; border: 4px solid #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 0 rgba(0,0,0,.5), 0 0 0 2px #000; cursor: pointer;
}
.card .band {
  position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.82); color: #fff;
  padding: 6px 8px; font-size: 20px; text-align: center; -webkit-text-stroke: .6px #000; paint-order: stroke fill;
}
.card .band .sub { display: block; font-size: 13px; color: var(--yellow); }
.card .tag { position: absolute; top: 8px; right: 8px; }
.card:active { transform: scale(.98); }

/* card de item (herói / equipamento / arma) */
.item-card {
  position: relative; width: 122px; height: 150px; background: linear-gradient(#3a2a6e, #22163f);
  border: 3px solid #d9d4f0; border-radius: 14px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; box-shadow: 0 4px 0 rgba(0,0,0,.5);
}
.item-card.selected { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow), 0 4px 0 rgba(0,0,0,.5); }
.item-card .pic { width: 100%; height: 96px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.18), transparent 70%); }
.item-card .nm { font-size: 13px; text-align: center; padding: 2px 4px; line-height: 1.1; -webkit-text-stroke: .5px #000; paint-order: stroke fill; }
.item-card .price {
  margin-top: auto; margin-bottom: 6px; background: var(--yellow); color: #3a2400; border: 2px solid var(--ink);
  border-radius: 10px; padding: 1px 8px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px;
}
.item-card .price.using { background: var(--green); color: #0b3a10; }
.item-card .price.owned { background: var(--cyan); color: #052a3d; }
.item-card .lock { position: absolute; top: 6px; left: 6px; }
.item-card .lvl { position: absolute; top: 4px; right: 6px; background: rgba(0,0,0,.6); border-radius: 8px; padding: 1px 6px; font-size: 11px; }
.item-card .qty { position: absolute; top: 4px; right: 6px; background: var(--orange); color: #3d1600; border: 2px solid var(--ink); border-radius: 8px; padding: 0 6px; font-size: 12px; }
.item-card .rarity { position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.item-card:active { transform: scale(.97); }

/* ---------- barra superior e inferior ---------- */
.topbar {
  position: absolute; left: 0; top: 0; right: 0; height: 80px;
  background: linear-gradient(#7a4de6, #3b1d7a); border-bottom: 4px solid var(--ink);
  box-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.topbar.slim { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.backbtn {
  width: 50px; height: 44px; border-radius: 12px; border: 3px solid var(--ink); background: var(--orange);
  color: #fff; font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 0 var(--ink); text-shadow: 0 2px 0 #7a2a00; padding-bottom: 4px;
}
.backbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
/* barra inferior (rodada 6): 6 abas com separadores verticais, pílula translúcida na aba ativa, balões "Novo" no canto */
.bottombar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
  background: linear-gradient(#6a3fd6, #4a28a8 55%, #2d1560); border-top: 4px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.18), 0 -4px 12px rgba(0,0,0,.35);
  display: flex; align-items: stretch; justify-content: space-around; padding: 0 8px; z-index: 2;
}
.bottombar .tab {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: #fff; cursor: pointer; position: relative; border: 0; background: none; padding: 4px 4px 2px; margin: 0;
  transition: transform .12s ease, filter .12s ease;
}
/* separador: linha de 2px com gradiente roxo-claro → transparente entre as abas */
.bottombar .tab + .tab::before {
  content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #d9c9ff 0%, rgba(217,201,255,.55) 45%, rgba(217,201,255,0) 100%); pointer-events: none;
}
.bottombar .tab .tabico {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
}
.bottombar .tab .tabico img { width: 34px; height: 34px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); }
.bottombar .tab .tablbl {
  font-size: 15px; font-weight: 800; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  -webkit-text-stroke: .7px #000; paint-order: stroke fill; text-shadow: 0 2px 0 rgba(0,0,0,.6);
  transition: color .15s ease, text-shadow .15s ease;
}
.bottombar .tab:hover { transform: translateY(-3px); filter: brightness(1.08); }
.bottombar .tab:hover .tabico { background: rgba(255,255,255,.12); }
.bottombar .tab:active { transform: translateY(-1px) scale(.97); }
.bottombar .tab.current .tabico { background: rgba(255,255,255,.24); box-shadow: 0 0 0 2px rgba(255,255,255,.35), 0 0 16px rgba(255,255,255,.35); }
.bottombar .tab.current .tablbl { color: var(--yellow); text-shadow: 0 2px 0 rgba(0,0,0,.6), 0 0 10px rgba(255,210,63,.65); }
/* balão "Novo" no canto superior direito da aba, sem cobrir o ícone */
.bottombar .tab .balloon { top: 4px; right: 6px; left: auto; transform: rotate(8deg); z-index: 1; }
@media (max-width: 900px) {
  /* o #stage (1280 lógicos) já é escalado a ~0.54 em 844px: 11px viravam ~6px reais; 14px lógicos ≈ 7,5px reais e as 6 abas seguem em 1 linha */
  .bottombar { padding: 0 4px; }
  .bottombar .tab .tablbl { font-size: 14px; }
  .bottombar .tab .tabico { width: 40px; height: 40px; }
  .bottombar .tab .balloon { font-size: 10px; padding: 1px 5px; }
}

/* abas genéricas (Depositar/Sacar, Herói/Equipamento/Buff) */
.tabs { display: flex; gap: 8px; }
.tabs .t {
  padding: 0 20px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 3px solid var(--ink); border-radius: 12px 12px 0 0; background: #4a3a80; color: #d8d0f5; font-size: 18px; cursor: pointer;
}
.tabs .t.active { background: var(--yellow); color: #3a2400; }
.tabs.colored .t { border-radius: 14px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.5); height: 50px; font-size: 22px; padding: 0 28px; box-shadow: 0 4px 0 var(--ink); }
.tabs.colored .t.pink { background: var(--pink); } .tabs.colored .t.green { background: var(--green); } .tabs.colored .t.red { background: var(--red); }
.tabs.colored .t.active { outline: 3px solid #fff; transform: translateY(-4px); }
.tabs.colored .t:not(.active) { filter: saturate(.55) brightness(.8); }

/* ---------- formulários ---------- */
.input, select.input, textarea.input {
  width: 100%; height: 46px; border: 3px solid var(--ink); border-radius: 12px; padding: 0 12px;
  background: #fff; color: #22183f; font-size: 18px; outline: none; box-shadow: inset 0 3px 0 rgba(0,0,0,.12);
}
textarea.input { height: auto; padding: 8px 12px; resize: none; }
.input:focus { border-color: var(--cyan); }
.input.sm { height: 36px; font-size: 15px; border-radius: 9px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 14px; color: #ffe9a3; text-shadow: 0 1px 0 #000; }
.input-icon { position: relative; }
.input-icon img { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
.input-icon .input { padding-left: 44px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 16px; }
.switch { width: 54px; height: 28px; border-radius: 14px; background: #666; border: 3px solid var(--ink); position: relative; transition: background .2s; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch.on { background: var(--green); } .switch.on::after { left: 28px; }

/* ---------- lista ---------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.list-item {
  display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.10); border: 2px solid rgba(255,255,255,.35);
  border-radius: 12px; padding: 8px 12px; min-height: 52px;
}
.list-item.done { opacity: .55; }
.list-item .info { flex: 1; min-width: 0; }
.list-item .info .t1 { font-size: 17px; }
.list-item .info .t2 { font-size: 13px; color: #cfc7ea; }
.scroll { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #8a6cf0 transparent; }
.scroll::-webkit-scrollbar { width: 8px; } .scroll::-webkit-scrollbar-thumb { background: #8a6cf0; border-radius: 4px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.18); text-align: left; }
table.tbl th { color: var(--yellow); font-size: 13px; text-transform: uppercase; }
.status { padding: 2px 8px; border-radius: 8px; font-size: 12px; border: 2px solid var(--ink); display: inline-block; }
.status.pending { background: var(--yellow); color: #3a2400; }
.status.approved, .status.paid { background: var(--green); color: #0b3a10; }
.status.rejected, .status.expired { background: var(--red); color: #fff; }

/* ---------- modal / toast ---------- */
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 2, 20, 0.62); display: flex; align-items: center; justify-content: center; }
.modal {
  min-width: 380px; max-width: 900px; max-height: 660px; overflow: auto; background: linear-gradient(#3b2a78, #22163f);
  border: 4px solid #fff; border-radius: 22px; box-shadow: 0 0 0 3px #000, 0 12px 0 rgba(0,0,0,.5); padding: 18px 22px 20px;
  position: relative; animation: pop .18s ease-out;
}
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .mtitle { font-size: 26px; text-align: center; margin-bottom: 12px; color: var(--yellow); -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 3px 0 #000; }
.modal .mclose { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; background: var(--red); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 0 0 2px #000; line-height: 1; }
.modal .mbody { font-size: 17px; line-height: 1.35; }
.modal .mactions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
/* toasts logo abaixo da barra superior: não cobrem o título dos modais centrais (ex.: Recompensa diária) */
#toasts { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 84px; }
/* durante a partida ficam colados ao topo, longe da contagem regressiva central do HUD */
body.in-game #toasts { padding-top: 8px; }
/* loja/inventário: toasts embaixo para não cobrir as abas de categoria */
body[data-ui-screen="shop"] #toasts, body[data-ui-screen="inventory"] #toasts { padding-top: 0; padding-bottom: 60px; justify-content: flex-end; }
.toast {
  background: #fff; color: #22183f; border: 3px solid var(--ink); border-radius: 14px; padding: 8px 18px; font-size: 18px;
  box-shadow: 0 4px 0 var(--ink); animation: toastin .2s ease-out; max-width: 700px; text-align: center;
}
.toast.error { background: #ff6b6b; color: #fff; text-shadow: 0 1px 0 #7a0c0c; }
.toast.success { background: var(--green); color: #0b3a10; }
.toast.info { background: var(--cyan); color: #052a3d; }
@keyframes toastin { from { transform: translateY(-20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- LOGIN (rodada 7: camada própria de viewport inteira; rodada 25: visual "estilo jogo" igual à primeira versão —
   deserto ao pôr do sol (fundo 'sunset'), emblema da splash em cima do card, card roxo escuro arredondado com campos brancos
   de contorno grosso, botão verde 3D, 2 heróis grandes ao lado do card (nos cantos de baixo no celular em pé)) ---------- */
/* enquanto a tela de entrada está aberta o palco fica transparente e clicável através (toasts/modais continuam por cima) */
body.login-open #stage { pointer-events: none; }
.login-layer {
  position: fixed; inset: 0; overflow: hidden; background: #ff8c3a; color: #fff; font-family: var(--font);
  --lg-ink: #0d0824; --lg-yellow: #ffd23f; --lg-cyan: #35d0ff; --lg-violet: #7a5cf0;
}
.login-layer .lbg, .login-layer .lheroes { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-layer .lheroes { pointer-events: none; z-index: 0; }
.login-layer .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.login-layer .hidden { display: none !important; }

/* composição: coluna central (emblema em cima, card embaixo) */
.login-layer .lwrap { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 14px 16px 42px; overflow-y: auto; overflow-x: hidden; }
.login-layer .lcol { display: flex; flex-direction: column; align-items: center; width: min(470px, 100%); }
.login-layer .lbrand { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: center; margin-bottom: -36px; pointer-events: none; }
.login-layer .llogo { width: 100%; max-width: 520px; height: clamp(118px, 24vh, 178px); filter: drop-shadow(0 10px 10px rgba(80,30,0,.35)); }
.login-layer .ltitle {
  margin: 0 0 6px; font-size: clamp(40px, 6vw, 72px); line-height: .95; letter-spacing: 1px; text-transform: uppercase; transform: rotate(-3deg);
  color: var(--yellow); -webkit-text-stroke: 3px #c24d00; paint-order: stroke fill; text-shadow: 0 6px 0 #7a2a00, 0 10px 0 rgba(0,0,0,.35);
}
.login-layer .ltitle small { display: block; font-size: .42em; color: #fff; -webkit-text-stroke: 2px #6a3fd6; text-shadow: 0 3px 0 #24104d; letter-spacing: .3em; }

/* card: moldura escura grossa, miolo roxo com brilho em cima e sombra 3D embaixo */
.login-layer .lcard {
  position: relative; z-index: 1; width: 100%; padding: 4px; border-radius: 28px; background: var(--lg-ink);
  box-shadow: 0 10px 0 rgba(70,25,0,.38), 0 22px 40px rgba(70,25,0,.35);
}
.login-layer .lcard-in {
  position: relative; padding: 54px 26px 22px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(56,38,106,.97) 0%, rgba(32,20,66,.97) 55%, rgba(22,13,50,.98) 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.2), inset 0 0 0 2px rgba(255,255,255,.07), inset 0 -26px 40px rgba(0,0,0,.25);
}

/* abas em pílula (ENTRAR / CRIAR CONTA) */
.login-layer .ltabs {
  display: flex; padding: 4px; margin: 0 0 16px; border-radius: 999px; background: var(--lg-ink);
  box-shadow: inset 0 3px 6px rgba(0,0,0,.6), 0 2px 0 rgba(255,255,255,.08);
}
.login-layer .ltabs button {
  flex: 1; height: 40px; border: 0; border-radius: 999px; background: transparent; color: #cfc7ea; font: inherit; font-size: 15px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .3px; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s;
}
.login-layer .ltabs button:hover { color: #fff; }
.login-layer .ltabs button.on {
  background: linear-gradient(180deg, #ffe066, #ffb020); color: #3a1a00; text-shadow: 0 1px 0 rgba(255,255,255,.35);
  box-shadow: 0 3px 0 #a85c00, inset 0 2px 0 rgba(255,255,255,.55);
}
.login-layer .ltabs button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }

/* campos: brancos com contorno grosso e ícone roxo (e-mail e convite lado a lado no cadastro) */
.login-layer .lf { margin-bottom: 11px; }
.login-layer .lrow { display: flex; gap: 10px; }
.login-layer .lrow > .lf { flex: 1; min-width: 0; }
.login-layer .lf label { display: block; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: #fff; font-weight: 900; margin: 0 0 5px 4px; text-shadow: 0 2px 0 var(--lg-ink); }
.login-layer .lin { position: relative; }
.login-layer .lico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--lg-violet); pointer-events: none; transition: color .15s; }
.login-layer .lico svg { width: 20px; height: 20px; display: block; }
.login-layer .lin input {
  width: 100%; height: 48px; padding: 0 12px 0 44px; border-radius: 14px; font: inherit; font-size: 17px; font-weight: 800; color: #1c1538; outline: none;
  background: #fff; border: 3px solid var(--lg-ink); box-shadow: inset 0 3px 0 rgba(0,0,0,.08), 0 3px 0 rgba(0,0,0,.28);
  transition: border-color .15s, box-shadow .15s;
}
.login-layer .lin input::placeholder { color: #a39fc4; font-weight: 800; }
.login-layer .lin input:focus { border-color: var(--lg-cyan); box-shadow: 0 0 0 3px rgba(53,208,255,.4), 0 3px 0 rgba(0,0,0,.28), inset 0 3px 0 rgba(0,0,0,.06); }
.login-layer .lin:focus-within .lico { color: #1b9fd0; }
.login-layer .lin input:-webkit-autofill { -webkit-text-fill-color: #1c1538; -webkit-box-shadow: 0 0 0 100px #fff inset; transition: background-color 9999s; }
.login-layer .lf.err .lin input { border-color: #ff4d4d; box-shadow: 0 0 0 3px rgba(255,80,80,.35), 0 3px 0 rgba(0,0,0,.28); }
.login-layer .lf.err .lico { color: #ff4d4d; }
.login-layer .ferr { min-height: 0; margin: 4px 0 0 4px; font-size: 13px; font-weight: 800; color: #ffb0b0; text-shadow: 0 1px 0 #000; }
.login-layer .ferr:empty { display: none; }
.login-layer .leye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 9px; padding: 0;
  background: transparent; color: var(--lg-violet); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.login-layer .leye svg { width: 22px; height: 22px; }
.login-layer .leye:hover, .login-layer .leye[aria-pressed="true"] { color: #1b9fd0; background: rgba(53,208,255,.14); }
.login-layer .leye:focus-visible { outline: 2px solid var(--lg-cyan); }
.login-layer .lin input[type="password"], .login-layer .lin input#lg-pass { padding-right: 46px; }
.login-layer .lerr { display: none; margin: -2px 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,60,60,.2); border: 2px solid rgba(255,90,90,.6); color: #ffd0d0; font-size: 14px; font-weight: 800; }
.login-layer .lerr.on { display: block; }

/* rodada 30: seletor TELEFONE | E-MAIL do cadastro (rótulo à esquerda, pílulas à direita) e prefixo +55 no celular */
.login-layer .lmethod { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.login-layer .lmlabel { font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: #fff; font-weight: 900; margin-left: 4px; text-shadow: 0 2px 0 var(--lg-ink); white-space: nowrap; }
.login-layer .lmopts { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--lg-ink); box-shadow: inset 0 2px 5px rgba(0,0,0,.6); }
.login-layer .lmopts button { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: transparent; color: #cfc7ea; font: inherit; font-size: 13.5px; font-weight: 900; cursor: pointer; transition: background .15s, color .15s; }
.login-layer .lmopts button svg { width: 17px; height: 17px; flex: none; }
.login-layer .lmopts button:hover { color: #fff; }
.login-layer .lmopts button.on { background: linear-gradient(180deg, #5fe3ff, #1b9fd0); color: #062638; box-shadow: 0 2px 0 #0b5c80, inset 0 1px 0 rgba(255,255,255,.55); }
.login-layer .lmopts button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.login-layer .lin-phone .lpre { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); padding: 3px 7px; border-radius: 8px; background: #ece9fb; color: #3b2a8a; font-size: 15px; font-weight: 900; pointer-events: none; }
.login-layer .lin-phone input { padding-left: 92px; letter-spacing: .3px; }

/* botão principal: verde 3D (como na primeira versão) com brilho passando e estado de carregamento */
.login-layer .lbtn {
  position: relative; overflow: hidden; width: 100%; height: 54px; margin-top: 4px; border-radius: 16px; border: 3px solid var(--lg-ink); cursor: pointer;
  font: inherit; font-size: 22px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; color: #fff;
  -webkit-text-stroke: 1px #0d4a14; paint-order: stroke fill; text-shadow: 0 2px 0 #0d4a14;
  background: linear-gradient(180deg, #86f281 0%, #45d94a 48%, #27b331 100%);
  box-shadow: 0 6px 0 #0d4a14, 0 10px 18px rgba(0,0,0,.3), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -4px 0 rgba(0,0,0,.12);
  transition: transform .06s, box-shadow .06s, filter .15s;
}
.login-layer .lbtn::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 30%; left: -40%; transform: skewX(-22deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.5), rgba(255,255,255,0));
  animation: lg-shine 3.2s ease-in-out infinite;
}
@keyframes lg-shine { 0%, 55% { left: -40%; } 100% { left: 130%; } }
.login-layer .lbtn:hover { filter: brightness(1.07); }
.login-layer .lbtn:active { transform: translateY(5px); box-shadow: 0 1px 0 #0d4a14, inset 0 2px 0 rgba(255,255,255,.55); }
.login-layer .lbtn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.login-layer .lbtn:disabled { cursor: progress; filter: saturate(.7) brightness(.9); }
.login-layer .lbtn .lspin { display: none; width: 20px; height: 20px; margin-right: 10px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: lg-spin .8s linear infinite; vertical-align: -4px; }
.login-layer .lbtn.loading .lspin { display: inline-block; }
.login-layer .lbtn.loading::before { animation: none; display: none; }
.login-layer .lbtn-sm { height: 44px; font-size: 18px; width: auto; min-width: 140px; padding: 0 26px; margin: 0; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
.login-layer .lrow2 { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; margin-top: 12px; flex-wrap: wrap; }
.login-layer .llink { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 13.5px; font-weight: 900; color: var(--lg-yellow); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-shadow: 0 2px 0 var(--lg-ink); }
.login-layer .llink:hover { color: #fff; }
.login-layer .llink:focus-visible { outline: 2px solid var(--lg-cyan); border-radius: 4px; }

/* rodapé */
.login-layer .lfoot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 0 #000, 0 0 6px rgba(0,0,0,.6); background: linear-gradient(180deg, rgba(40,10,0,0), rgba(40,10,0,.55));
}
.login-layer .lfoot .llink { font-size: 12px; }
.login-layer .lfoot .sep { opacity: .6; }
.login-layer .lfoot .lver { font-family: Consolas, "Courier New", monospace; font-weight: 700; color: #ffe9b0; }

/* botão Tela cheia (celular) — mesmo desenho do lobby */
.login-layer .fsbtn {
  position: absolute; right: 12px; top: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px 0 8px; border-radius: 17px; border: 2px solid var(--ink); background: var(--cyan); color: #052a3d;
  font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; box-shadow: 0 3px 0 var(--ink);
}
.login-layer .fsbtn[hidden] { display: none; }
.login-layer .fsbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* modal da camada (Esqueci a senha / Comunidade) */
.login-layer .lmodal-back { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; background: rgba(40,12,0,.6); padding: 16px; }
.login-layer .lmodal {
  position: relative; width: min(460px, 100%); padding: 20px 22px 18px; border-radius: 20px; border: 4px solid var(--lg-ink);
  background: linear-gradient(180deg, #3a2a6e, #1c1240); box-shadow: 0 10px 0 rgba(0,0,0,.3), 0 18px 40px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.18);
  animation: pop .18s ease-out;
}
.login-layer .lmtitle { font-size: 24px; color: var(--yellow); text-align: center; margin: 0 26px 10px; -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 3px 0 #000; }
.login-layer .lmbody { font-size: 16px; font-weight: 700; line-height: 1.4; color: #efe9ff; }
.login-layer .lmbody p { margin: 0 0 10px; }
.login-layer .lmhint { color: #ffe0a8; font-size: 14px; }
.login-layer .lmhint a { color: var(--cyan); }
.login-layer .lmact { display: flex; justify-content: center; margin-top: 8px; }
.login-layer .lmclose { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--red); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 0 0 2px #000; }

/* pouca altura no desktop: card mais compacto */
@media (max-height: 680px) and (min-width: 701px) and (orientation: landscape) {
  .login-layer .llogo { height: clamp(96px, 18vh, 140px); }
  .login-layer .lbrand { margin-bottom: -28px; }
  .login-layer .lcard-in { padding: 42px 22px 16px; }
  .login-layer .lin input { height: 44px; }
  .login-layer .lf { margin-bottom: 8px; }
  .login-layer .lbtn { height: 48px; font-size: 20px; }
}
/* celular em pé: emblema menor em cima, card de largura total, heróis nos cantos de baixo (atrás do card) */
@media (orientation: portrait), (max-width: 700px) {
  .login-layer .lwrap { align-items: flex-start; padding: max(52px, 7vh) 14px 70px; }
  .login-layer .lcol { width: min(470px, 100%); }
  .login-layer .llogo { height: clamp(96px, 26vw, 140px); }
  .login-layer .lbrand { margin-bottom: -28px; }
  .login-layer .lcard-in { padding: 42px 16px 16px; }
  .login-layer .lrow { flex-direction: column; gap: 0; }
  /* rodada 30: seletor Telefone | E-mail ocupa a largura toda embaixo do rótulo */
  .login-layer .lmethod { flex-direction: column; align-items: stretch; gap: 6px; }
  .login-layer .lmopts button { flex: 1; justify-content: center; height: 36px; font-size: 14px; }
  .login-layer .ltabs button { font-size: 14px; }
  .login-layer .lfoot { font-size: 11px; gap: 8px; }
}
/* celular deitado: pouca altura → tudo compacto (rótulos só para leitores de tela) */
@media (max-height: 480px) and (orientation: landscape) {
  .login-layer .lwrap { padding: 6px 4vw 26px; align-items: center; }
  .login-layer .lcol { width: min(440px, 60vw); }
  .login-layer .llogo { height: clamp(70px, 20vh, 92px); }
  .login-layer .lbrand { margin-bottom: -20px; }
  .login-layer .lcard { padding: 3px; border-radius: 20px; }
  .login-layer .lcard-in { padding: 28px 14px 10px; border-radius: 17px; }
  .login-layer .ltabs { margin-bottom: 8px; padding: 3px; }
  .login-layer .ltabs button { height: 30px; font-size: 13px; }
  .login-layer .lf { margin-bottom: 6px; }
  .login-layer .lrow { gap: 8px; }
  .login-layer .lf label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
  .login-layer .lin input { height: 38px; font-size: 15px; border-radius: 11px; border-width: 2.5px; }
  .login-layer .lico { left: 11px; }
  .login-layer .ferr { font-size: 11px; margin-top: 2px; }
  .login-layer .lerr { margin: 0 0 6px; padding: 5px 10px; font-size: 12px; }
  .login-layer .lbtn { height: 40px; font-size: 17px; margin-top: 2px; border-radius: 12px; box-shadow: 0 4px 0 #0d4a14, 0 8px 14px rgba(0,0,0,.3), inset 0 2px 0 rgba(255,255,255,.55); }
  .login-layer .lrow2 { margin-top: 6px; }
  .login-layer .llink { font-size: 12px; }
  .login-layer .lfoot .sep:last-of-type { display: none; }
  .login-layer .lfoot { padding: 4px 8px; font-size: 10px; }
  .login-layer .lfoot .lnote { display: none; }
  .login-layer .fsbtn { top: 6px; right: auto; left: 8px; height: 30px; font-size: 13px; }
}

/* ---------- LOBBY ---------- */
.lobby .avatar-frame {
  position: absolute; left: 14px; top: 8px; width: 64px; height: 64px; border: 3px solid var(--yellow); border-radius: 12px;
  background: #22163f; overflow: hidden; box-shadow: 0 0 0 2px #000; cursor: pointer;
}
.lobby .avatar-frame img { width: 100%; height: 100%; }
.lobby .lvl-badge { position: absolute; left: 60px; top: 50px; background: var(--orange); color: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 0 6px; font-size: 12px; text-shadow: 0 1px 0 #000; z-index: 2; }
.lobby .xpwrap { position: absolute; left: 90px; top: 9px; width: 180px; }
.lobby .idline { position: absolute; left: 106px; top: 40px; display: flex; align-items: center; gap: 8px; font-size: 15px; text-shadow: 0 2px 0 #000; }
.lobby .gearbtn { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: #4a2ea8; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 0 #000; }
.lobby .gearbtn:active { transform: rotate(30deg); }
.lobby .topright { position: absolute; left: 290px; right: 14px; top: 0; height: 76px; display: flex; align-items: center; gap: 10px; }
.lobby .flagbtn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.55); border-radius: 12px; padding: 4px 10px; cursor: pointer; font-size: 16px; }
.lobby .eventsrow { position: absolute; left: 0; right: 0; top: 80px; display: flex; justify-content: center; gap: 6px; }
.lobby .leftcol { position: absolute; left: 12px; top: 165px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.lobby .rightcol { position: absolute; right: 12px; top: 165px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
/* rodada 8: cards de modo em paralelogramo (skewX(-9deg) no contêiner; conteúdo desinclinado com skewX(9deg)),
   borda branca grossa + contorno escuro fino, sombra projetada dura, posicionados nas diagonais do palco 1280x720:
   esquerda: Equipe (cima, mais para dentro) / Solo (baixo, mais para fora); direita: Conquista (cima) / Infinito (baixo) */
/* a tela do lobby é um contexto de empilhamento próprio: os z-index dos cards/herói não passam por cima de #modals/#toasts */
.screen.lobby { isolation: isolate; }
.lobby .modecards { position: absolute; inset: 0; pointer-events: none; }
/* pedido do usuário (2026-09-29): cards menores (270x158, antes 340x200) e mais afastados do herói e das colunas de ícones;
   posições simétricas: Equipe/Conquista a 165px das bordas, Solo/Infinito a 135px */
.lobby .mode-card {
  position: absolute; width: 270px; height: 158px; pointer-events: auto; cursor: pointer; z-index: 3;
  transform: skewX(-9deg); transform-origin: 50% 50%; will-change: transform;
  border: 4px solid #fff; border-radius: 5px; overflow: hidden; background: #2a1c55;
  box-shadow: 0 0 0 2px #0b0618, 10px 10px 0 rgba(6,2,20,.55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lobby .mode-card.team { left: 165px; top: 178px; background: #e0b52a; }
.lobby .mode-card.solo { left: 135px; top: 372px; background: #3fb841; }
.lobby .mode-card.conquest { left: calc(845px + var(--stage-x, 0px)); top: 178px; background: #e07a1a; }
.lobby .mode-card.infinite { left: calc(875px + var(--stage-x, 0px)); top: 372px; background: #6f3ad6; }
.lobby .mode-card .pic { position: absolute; inset: 0; transform: skewX(9deg) scale(1.12); transform-origin: 50% 50%; }
.lobby .mode-card .pic canvas { display: block; width: 100%; height: 100%; }
/* faixa preta inclinada na base (acompanha o paralelogramo); o texto é desinclinado */
.lobby .mode-card .band {
  position: absolute; left: -12px; right: -12px; bottom: 0; height: 46px; z-index: 1;
  background: linear-gradient(rgba(14,8,30,.9), rgba(6,2,16,.94)); border-top: 3px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
}
.lobby .mode-card .band .txt {
  transform: skewX(9deg); text-align: center; padding: 0 20px; white-space: nowrap; line-height: 1;
  font-size: 18px; font-weight: 900; color: #fff; -webkit-text-stroke: .6px #000; paint-order: stroke fill; text-shadow: 0 2px 0 #000;
}
.lobby .mode-card .band .nm { display: block; }
.lobby .mode-card .band .sub { display: block; margin-top: 4px; font-size: 11px; font-weight: 800; color: var(--yellow); -webkit-text-stroke: .4px #000; min-height: 11px; }
.lobby .mode-card .band .sub.modeline { color: #fff2b3; }
.lobby .mode-card .band .sub:empty { display: none; }
.lobby .mode-card .tag { position: absolute; top: 6px; right: 12px; z-index: 2; height: 24px; font-size: 13px; transform: skewX(9deg); transform-origin: 50% 50%; box-shadow: 0 3px 0 var(--ink); }
.lobby .mode-card:hover { transform: skewX(-9deg) translateY(-5px); box-shadow: 0 0 0 2px #0b0618, 12px 14px 0 rgba(6,2,20,.5), 0 0 22px rgba(255,255,255,.6); }
.lobby .mode-card:active { transform: skewX(-9deg) translateY(-1px) scale(.985); }
.lobby .mode-card.locked:hover { transform: skewX(-9deg); box-shadow: 0 0 0 2px #0b0618, 10px 10px 0 rgba(6,2,20,.55); }
/* herói central (rodada 8): ≈330px sobre a plataforma iluminada do fundo (rodada 41: sem nome/nível e sem a dica em cima) */
.lobby .herostage { position: absolute; left: calc(460px + var(--stage-x2, 0px)); top: 176px; width: 360px; height: 420px; z-index: 2; pointer-events: none; }
.lobby .herostage canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; cursor: pointer; pointer-events: auto; touch-action: manipulation; }
.lobby .shopbtn { position: absolute; left: calc(535px + var(--stage-x2, 0px)); top: 578px; z-index: 3; }
.lobby .shopbtn .dot { top: -6px; right: 20px; }
.lobby .seasonline { font-size: 13px; color: var(--yellow); }

/* ---------- LOJA / ARSENAL ---------- */
.shop .heroview { position: absolute; left: 24px; top: 84px; width: 380px; height: 470px; display: flex; flex-direction: column; align-items: center; }
.shop .heroview .nm { font-size: 28px; -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 3px 0 rgba(0,0,0,.6); }
.shop .heroview .rar { font-size: 14px; padding: 2px 10px; border-radius: 10px; border: 2px solid var(--ink); color: #111; }
.shop .attrs { position: absolute; left: 420px; top: 90px; width: 300px; }
.shop .attrs .arow { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; margin-bottom: 8px; }
.shop .attrs .arow .lbl { flex: 1; font-size: 14px; text-shadow: 0 1px 0 #000; }
.shop .attrs .arow .bar { flex-basis: 100%; order: 3; }
.shop .attrs .arow .num { text-align: right; font-size: 14px; color: var(--yellow); }
.shop .grid { position: absolute; left: 740px; top: 84px; width: calc(520px + var(--stage-x, 0px)); height: 545px; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; padding: 6px; }
.shop .grid.wide { left: 420px; width: calc(840px + var(--stage-x, 0px)); }
.shop .actions { position: absolute; left: 24px; top: 570px; width: 690px; display: flex; gap: 12px; align-items: center; }
.shop .bottomtabs { position: absolute; right: 24px; bottom: 14px; }
.shop .desc { font-size: 13px; color: #e6e0ff; text-align: center; padding: 0 20px; text-shadow: 0 1px 0 #000; }
.shop .slots { display: flex; gap: 10px; margin-top: 8px; }
.shop .slot { width: 78px; height: 92px; background: rgba(0,0,0,.45); border: 2px dashed rgba(255,255,255,.6); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; }
.shop .slot.filled { border-style: solid; border-color: var(--green); }

/* ---------- CARTEIRA ---------- */
.wallet .methods { position: absolute; left: 24px; top: 150px; width: 210px; display: flex; flex-direction: column; gap: 12px; }
.wallet .method { display: flex; align-items: center; gap: 10px; height: 64px; border: 3px solid var(--ink); border-radius: 14px; padding: 0 12px; font-size: 20px; cursor: pointer; background: #e8dcc0; color: #3a2b10; box-shadow: 0 4px 0 var(--ink); }
.wallet .method.selected { background: var(--green); color: #0b3a10; outline: 3px solid #fff; }
.wallet .packs { position: absolute; left: 250px; top: 150px; width: calc(1010px + var(--stage-x, 0px));   /* rodada 33 */ display: flex; flex-wrap: wrap; gap: 12px; }
.pack {
  position: relative; width: 132px; height: 166px; background: linear-gradient(#e9e9f2, #bfbfd0); border: 3px solid var(--ink);
  border-radius: 14px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; align-items: center; box-shadow: 0 4px 0 var(--ink);
}
.pack .top { width: 100%; background: linear-gradient(#ff5a5a, #d31b1b); color: #fff; text-align: center; font-size: 18px; padding: 4px 0; border-bottom: 3px solid var(--ink); text-shadow: 0 2px 0 #7a0c0c; display: flex; align-items: center; justify-content: center; gap: 4px; }
.pack .art { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; width: 100%; }
.pack .art img { position: absolute; }
.pack .pricepill { margin-bottom: 8px; background: var(--yellow); color: #3a2400; border: 2px solid var(--ink); border-radius: 12px; padding: 2px 12px; font-size: 15px; }
.pack.selected { outline: 4px solid var(--yellow); }
/* rodada 33: os pacotes crescem para preencher a linha quando o palco fica mais largo */
.wallet .packs .pack { flex: 1 1 132px; max-width: 210px; }
.wallet .depform { position: absolute; left: 250px; top: 380px; width: calc(1010px + var(--stage-x, 0px)); display: flex; align-items: center; gap: 16px; }
.wallet .depform .input-icon { width: 260px; }
.wallet .ratetext { font-size: 15px; color: #fff; text-shadow: 0 1px 0 #000; }
.wallet .wdform { position: absolute; left: 250px; top: 150px; width: calc(700px + var(--stage-x, 0px)); }
.wallet .wdinfo { position: absolute; left: calc(980px + var(--stage-x, 0px)); top: 150px; width: 280px; }
.wallet .histbox { position: absolute; left: 24px; top: 150px; width: calc(1236px + var(--stage-x, 0px)); height: 540px; }
/* aba Transações: depósitos e saques lado a lado (o .histbox é posicionado de forma absoluta, por isso o wrapper próprio) */
.wallet .txwrap { position: absolute; left: 24px; top: 150px; width: calc(1236px + var(--stage-x, 0px)); height: 540px; display: flex; gap: 16px; align-items: stretch; }
.wallet .txwrap .txbox { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; }
.wallet .txwrap .txbox .scroll { flex: 1 1 auto; min-height: 0; }
.wallet .txwrap .tbl { font-size: 13px; }
.wallet .kv { display: flex; justify-content: space-between; font-size: 16px; padding: 4px 0; border-bottom: 1px dashed rgba(255,255,255,.25); }
.wallet .kv b { color: var(--yellow); }

/* ---------- telas genéricas com painel central ---------- */
.page { position: absolute; left: 24px; right: 24px; top: 80px; bottom: 20px; }
.page.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.page .panel.fill { height: 100%; display: flex; flex-direction: column; }
.page .panel.fill .scroll { flex: 1; }

/* caixa surpresa */
.luckybox-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.luckybox-stage .boximg { transition: transform .2s; }
.luckybox-stage .boximg.shake { animation: shake .6s ease-in-out infinite; }
@keyframes shake { 0%,100% { transform: rotate(-6deg) translateY(0); } 25% { transform: rotate(6deg) translateY(-8px); } 50% { transform: rotate(-6deg) translateY(0); } 75% { transform: rotate(6deg) translateY(-8px); } }
.luckybox-stage .boximg.open { animation: openbox .5s ease-out forwards; }
@keyframes openbox { 0% { transform: scale(1); } 40% { transform: scale(1.25) rotate(-8deg); } 100% { transform: scale(1.1); } }
.reward-pop { display: flex; align-items: center; gap: 10px; font-size: 32px; color: var(--yellow); -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 4px 0 #000; animation: pop .3s ease-out; }

/* vídeo */
.video-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.video-screen { width: 560px; height: 300px; background: #0b0820; border: 4px solid #fff; border-radius: 16px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; box-shadow: 0 0 0 3px #000; }
.video-screen .adtxt { font-size: 28px; color: var(--cyan); -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-align: center; }
.video-screen .adbar { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: #222; }
.video-screen .adbar .fill { height: 100%; width: 0; background: var(--green); transition: width .1s linear; }

/* vip */
.viptier { width: 232px; background: linear-gradient(#3b2a78, #22163f); border: 3px solid #fff; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 0 5px 0 rgba(0,0,0,.5); }
.viptier.current { border-color: var(--yellow); box-shadow: 0 0 20px rgba(255,210,63,.6); }
.viptier .vname { font-size: 24px; color: var(--yellow); -webkit-text-stroke: 1px #000; paint-order: stroke fill; }
.viptier .vline { font-size: 13px; color: #e6e0ff; width: 100%; display: flex; justify-content: space-between; }

/* ranking */
.rank-row { display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.25); }
.rank-row.me { background: rgba(255,210,63,.18); border-color: var(--yellow); }
.rank-row .pos { width: 40px; text-align: center; font-size: 20px; color: var(--yellow); -webkit-text-stroke: .8px #000; paint-order: stroke fill; }
.rank-row .pos.top1 { color: #ffd700; } .rank-row .pos.top2 { color: #d0d8e0; } .rank-row .pos.top3 { color: #e0a060; }
.rank-row .nm { flex: 1; font-size: 17px; }
.rank-row .val { font-size: 18px; display: flex; align-items: center; gap: 6px; }
.rankbig { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rankbig .rname { font-size: 36px; -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; text-shadow: 0 4px 0 #000; }
.ranklist { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ranklist .r { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.08); width: 96px; }
.ranklist .r.cur { background: rgba(255,210,63,.25); outline: 2px solid var(--yellow); }

/* chat */
.chatbox { display: flex; flex-direction: column; height: 100%; }
.chatbox .msgs { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 6px; }
.chatmsg { background: rgba(255,255,255,.10); border-radius: 12px; padding: 6px 10px; font-size: 15px; font-weight: 700; max-width: 90%; align-self: flex-start; }
.chatmsg.me { align-self: flex-end; background: rgba(53,208,255,.28); }
.chatmsg .who { color: var(--yellow); font-weight: 900; margin-right: 6px; }
.chatmsg .when { color: #b9b1d6; font-size: 11px; margin-left: 6px; }
.chatbox .send { display: flex; gap: 8px; margin-top: 8px; }

/* guia */
.guide .gsec { margin-bottom: 14px; }
.guide .gsec h3 { margin: 0 0 6px; color: var(--yellow); font-size: 20px; -webkit-text-stroke: .6px #000; paint-order: stroke fill; }
.guide .gsec p, .guide .gsec li { font-size: 15px; font-weight: 700; line-height: 1.4; color: #efeaff; }
.guide .gsec ul { margin: 0; padding-left: 20px; }
.key { display: inline-block; background: #fff; color: #22183f; border: 2px solid var(--ink); border-radius: 6px; padding: 0 6px; font-size: 13px; box-shadow: 0 2px 0 var(--ink); margin: 0 2px; }

/* eventos */
.event-hero { display: flex; gap: 20px; align-items: center; }
.event-hero .big { width: 140px; height: 140px; border-radius: 24px; background: rgba(255,255,255,.12); border: 3px solid #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 0 rgba(0,0,0,.5); }
.event-hero .etitle { font-size: 32px; color: var(--yellow); -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 4px 0 #000; }
.event-hero .edesc { font-size: 15px; font-weight: 700; color: #efeaff; max-width: 700px; line-height: 1.4; }
.event-tabs { display: flex; gap: 8px; }
.event-tabs .t { padding: 6px 14px; border-radius: 12px; border: 3px solid var(--ink); background: #4a3a80; cursor: pointer; font-size: 15px; box-shadow: 0 3px 0 var(--ink); }
.event-tabs .t.active { background: var(--orange); }

/* matchmaking overlay */
.mm-backdrop { position: absolute; inset: 0; background: rgba(5,2,20,.72); display: flex; align-items: center; justify-content: center; }
.mm-box { width: 560px; text-align: center; }
.mm-box .mode { font-size: 30px; color: var(--yellow); -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 3px 0 #000; }
.mm-box .spin { width: 80px; height: 80px; margin: 14px auto; border-radius: 50%; border: 8px solid rgba(255,255,255,.25); border-top-color: var(--cyan); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mm-box .cnt { font-size: 24px; }
.mm-box .players { display: flex; gap: 6px; justify-content: center; margin: 10px 0; flex-wrap: wrap; }
.mm-box .players .p { width: 40px; height: 40px; border-radius: 10px; border: 2px solid #fff; background: rgba(255,255,255,.12); }
.mm-box .players .p.on { background: var(--green); }

/* resultados (fallback) */
.results-title { font-size: 48px; text-align: center; -webkit-text-stroke: 2px #000; paint-order: stroke fill; text-shadow: 0 5px 0 #000; }
.results-title.win { color: var(--yellow); } .results-title.lose { color: #ff6b6b; } .results-title.draw { color: var(--cyan); }

/* tarefas */
.taskgroup { margin-bottom: 10px; }
.taskgroup h4 { margin: 4px 0; color: var(--cyan); font-size: 16px; }

/* histórico de partidas */
.match-row .res { width: 90px; text-align: center; border-radius: 8px; border: 2px solid var(--ink); padding: 2px 0; font-size: 13px; }
.match-row .res.win { background: var(--green); color: #0b3a10; } .match-row .res.lose { background: var(--red); } .match-row .res.draw { background: #b9bccb; color: #222; }

/* referral */
.reflink { display: flex; gap: 8px; align-items: center; }
.reflink .input { flex: 1; }
.stat-tiles { display: flex; gap: 12px; }
.stat-tile { flex: 1; background: rgba(255,255,255,.10); border: 2px solid rgba(255,255,255,.4); border-radius: 14px; padding: 10px; text-align: center; }
.stat-tile .v { font-size: 28px; color: var(--yellow); -webkit-text-stroke: .8px #000; paint-order: stroke fill; }
.stat-tile .k { font-size: 13px; color: #cfc7ea; }

/* settings */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.flag-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.flag-opt { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px; border: 2px solid rgba(255,255,255,.5); cursor: pointer; background: rgba(255,255,255,.08); }
.flag-opt.on { background: var(--yellow); color: #3a2400; border-color: var(--ink); }

/* correio */
.mail-row.unread .t1::before { content: "●"; color: var(--red); margin-right: 6px; }
.attach { display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.35); border-radius: 8px; padding: 2px 8px; font-size: 13px; margin-right: 4px; }

/* download modal */
.dl-box { text-align: center; }

/* ---------- ADMIN ---------- */
body.admin { overflow: auto; background: #1a1030; font-weight: 700; }
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 16px; }
.admin-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(#7a4de6, #3b1d7a); border: 3px solid var(--ink); border-radius: 14px; margin-bottom: 14px; }
.admin-top h1 { margin: 0; font-size: 22px; color: var(--yellow); -webkit-text-stroke: .8px #000; paint-order: stroke fill; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-tabs .t { padding: 8px 14px; border: 3px solid var(--ink); border-radius: 12px; background: #4a3a80; cursor: pointer; font-size: 15px; box-shadow: 0 3px 0 var(--ink); position: relative; }
.admin-tabs .t.active { background: var(--yellow); color: #3a2400; }
.admin-tabs .t .cnt { background: var(--red); color: #fff; border-radius: 8px; padding: 0 6px; font-size: 12px; margin-left: 6px; }
.admin-panel { background: var(--panel); border: 3px solid rgba(255,255,255,.6); border-radius: 14px; padding: 14px; }
.admin-login { max-width: 400px; margin: 80px auto; }
.admin-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-stats .stat-tile { min-width: 150px; }
.admin-panel table.tbl td, .admin-panel table.tbl th { vertical-align: middle; }
.admin-panel .input.inline { width: auto; display: inline-block; height: 34px; font-size: 14px; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; max-width: 800px; }
.admin-form .full { grid-column: 1 / -1; }

/* Sacar: limites (mínimo/máximo/diário), conversão e prévia do valor líquido */
.wallet .wd-limits { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(0,0,0,.28); border: 2px solid rgba(255,255,255,.18); display: flex; flex-direction: column; gap: 4px; }
.wallet .wd-limit-line { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #fff; text-shadow: 0 1px 0 #000; }
.wallet .wd-limit-line .ico { flex: none; }
.wallet .wd-preview { margin-top: 8px; font-size: 20px; font-weight: 800; color: #7CFF9B; text-shadow: 0 2px 0 #000; text-align: right; }
.wallet .wd-preview.bad { color: #ff7a7a; }

/* ---------- LOJA (rodada 4) / INVENTÁRIO: painel Equip + herói no pedestal + categorias ---------- */
.shop .topbar .shopnav { height: 38px; font-size: 16px; padding: 0 12px; margin-right: 6px; }
.shop .topbar .shopnav.active { background: var(--yellow); color: #3a2400; opacity: 1; filter: none; outline: 3px solid #fff; }
.shop .shop-left { position: absolute; left: 14px; top: 78px; width: 214px; height: 630px; }
.shop .shop-center { position: absolute; left: 236px; top: 78px; width: 330px; height: 630px; display: flex; align-items: flex-start; justify-content: center; }
.shop .shop-right { position: absolute; left: 578px; top: 78px; width: calc(688px + var(--stage-x, 0px));   /* rodada 33: estica até a borda direita */ height: 630px; display: flex; flex-direction: column; gap: 8px; }
.equip-panel {
  height: 100%; background: var(--panel); border: 3px solid rgba(255,255,255,.75); border-radius: 18px;
  padding: 8px; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 6px 0 rgba(0,0,0,.45);
}
.equip-panel .ptitle { font-size: 20px; text-align: center; color: var(--yellow); -webkit-text-stroke: .8px #000; paint-order: stroke fill; text-shadow: 0 2px 0 #000; margin-bottom: 2px; }
.equip-panel .eslot {
  display: flex; align-items: center; gap: 8px; height: 68px; padding: 4px 6px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 2px solid transparent; position: relative;
}
.equip-panel .eslot:hover { background: rgba(255,255,255,.12); }
.equip-panel .eslot.filled { border-color: rgba(88,211,90,.55); }
.equip-panel .ebox {
  width: 54px; height: 54px; flex: none; border-radius: 12px; background: rgba(0,0,0,.45);
  border: 2px dashed rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center;
}
.equip-panel .eslot.filled .ebox { border-style: solid; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.2), rgba(0,0,0,.5) 75%); }
.equip-panel .ebox .ico.dim { opacity: .45; }
.equip-panel .einfo { min-width: 0; flex: 1; }
.equip-panel .el { font-size: 12px; color: #cfc7ea; text-transform: uppercase; letter-spacing: .5px; }
.equip-panel .ev { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 #000; }
.equip-panel .eslot:not(.filled) .ev { color: #8f86b3; }
.equip-panel .echk { position: absolute; right: 6px; top: 4px; font-size: 12px; color: var(--green); text-shadow: 0 1px 0 #000; }
.hero-pedestal { display: flex; flex-direction: column; align-items: center; width: 330px; }
.hero-pedestal .hname { font-size: 30px; -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 3px 0 rgba(0,0,0,.6); margin-top: 4px; }
.hero-pedestal .rar { font-size: 13px; padding: 2px 10px; border-radius: 10px; border: 2px solid var(--ink); color: #111; }
.hero-pedestal canvas { margin-top: -18px; }
/* rodada 39: testar herói — card selecionado, selo "Testando", botões e dica embaixo do pedestal */
.hero-pedestal .hsub { display: flex; gap: 6px; align-items: center; justify-content: center; }
.hero-pedestal .try-tag { font-size: 13px; padding: 2px 10px; border-radius: 10px; border: 2px solid var(--ink); background: #ffd23f; color: #3a2400; animation: tryPulse 1.2s ease-in-out infinite; }
@keyframes tryPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.hero-pedestal canvas.stage-canvas { cursor: pointer; }
.hero-pedestal .stage-actions { display: flex; gap: 8px; justify-content: center; margin-top: -24px; position: relative; }
.hero-pedestal .stage-actions .btn { height: 44px; font-size: 17px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }
.hero-pedestal .stage-hint { margin-top: 6px; font-size: 13px; color: #d9d0ff; text-shadow: 0 1px 0 #000; opacity: .85; text-align: center; }
.item-card.picked { outline: 3px solid #ffd23f; outline-offset: 2px; box-shadow: 0 0 16px rgba(255,210,63,.75), 0 4px 0 rgba(0,0,0,.5); }
.item-card.equipped.picked { box-shadow: 0 0 0 2px var(--green), 0 0 16px rgba(255,210,63,.75), 0 4px 0 rgba(0,0,0,.5); }
.shop .cat-tabs { flex: none; gap: 6px; }
.shop .tabs.colored.cat-tabs .t { height: 44px; font-size: 18px; padding: 0 16px; flex: 1; }
.shop .tabs.colored .t.orange { background: var(--orange); } .shop .tabs.colored .t.cyan { background: #17a9e6; } .shop .tabs.colored .t.purple { background: var(--purple); }
.shop .subfilters { display: flex; gap: 6px; flex-wrap: wrap; flex: none; padding: 0 2px; }
.shop .grid.cards { position: static; left: auto; top: auto; width: auto; height: auto; flex: 1; min-height: 0; padding: 6px 4px; gap: 9px;
  background: rgba(0,0,0,.28); border: 2px solid rgba(255,255,255,.25); border-radius: 14px; }
.item-card.equipped { border-color: var(--green); box-shadow: 0 0 0 2px var(--green), 0 4px 0 rgba(0,0,0,.5); }
.item-card .price.rented { background: #17a9e6; color: #fff; text-shadow: 0 1px 0 #0a5a80; font-size: 11px; padding: 1px 6px; }
.stars .on { color: var(--yellow); text-shadow: 0 1px 0 #000, 0 0 6px rgba(255,210,63,.7); }
.stars .off { color: rgba(255,255,255,.28); }
/* popup de detalhes do item */
.detail-modal .mbody { padding-top: 6px; }
.detail { display: flex; gap: 22px; align-items: flex-start; }
.detail .dleft { width: 190px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.detail .dicon { width: 176px; height: 176px; border-radius: 22px; border: 4px solid #fff; background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.22), rgba(0,0,0,.45) 75%); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 0 rgba(0,0,0,.45); }
.detail .rar { font-size: 13px; padding: 2px 12px; border-radius: 10px; border: 2px solid var(--ink); color: #111; }
.detail .dright { flex: 1; min-width: 0; }
.detail .dname { font-size: 30px; -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 3px 0 rgba(0,0,0,.6); }
.detail .dsub { font-size: 14px; color: #cfc7ea; margin-bottom: 8px; }
.detail .dattrs { display: flex; flex-direction: column; gap: 5px; }
.detail .arow { display: flex; align-items: center; gap: 8px; }
.detail .arow .lbl { width: 150px; flex: none; font-size: 15px; text-shadow: 0 1px 0 #000; }
.detail .arow .bar { flex: 1; }
.detail .arow .num { width: 64px; text-align: right; font-size: 15px; color: var(--yellow); flex: none; }
.detail .arow .num.c-green { color: var(--green); flex: 1; text-align: left; }
.detail .ddesc { margin-top: 8px; font-size: 13px; color: #e6e0ff; font-weight: 700; }
.detail-modal .mactions { flex-wrap: wrap; }
.detail-modal .mactions .btn { height: 46px; font-size: 18px; padding: 0 16px; }
/* inventário */
.inventory .inv-list { flex: 1; min-height: 0; background: rgba(0,0,0,.28); border: 2px solid rgba(255,255,255,.25); border-radius: 14px; padding: 8px; }
.inventory .inv-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inv-row { cursor: pointer; padding: 6px 10px; }
.inv-row.eq { border-color: var(--green); background: rgba(88,211,90,.12); }
.inv-row .ipic { position: relative; width: 56px; height: 56px; flex: none; border-radius: 12px; border: 2px solid #fff; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; }
.inv-row .ipic .qty { position: absolute; right: -6px; bottom: -6px; background: var(--orange); color: #3d1600; border: 2px solid var(--ink); border-radius: 8px; padding: 0 5px; font-size: 11px; }
.inv-row .t1 .stars { margin-left: 4px; }
.inv-row .eqbadge, .inv-row .rentbadge { margin-left: 8px; font-size: 11px; padding: 1px 7px; border-radius: 8px; border: 2px solid var(--ink); vertical-align: middle; }
.inv-row .eqbadge { background: var(--green); color: #0b3a10; }
.inv-row .rentbadge { background: #17a9e6; color: #fff; text-shadow: 0 1px 0 #0a5a80; }
.inv-row .ibtns { display: flex; gap: 6px; flex: none; }
/* toast com botão de ação */
.toast.withbtn { display: flex; align-items: center; gap: 12px; }
/* rodada 11: selo "N tickets/dia" nos cards de arma, badge no inventário e bloco de renda no popup */
.item-card .tk { position: absolute; top: 4px; right: 4px; display: inline-flex; align-items: center; gap: 2px; background: rgba(0,0,0,.62); color: var(--yellow); border: 1px solid rgba(255,210,63,.55); border-radius: 8px; padding: 1px 5px; font-size: 10px; line-height: 14px; white-space: nowrap; text-shadow: 0 1px 0 #000; }
.item-card .tk .ico { width: 12px; height: 12px; }
.inv-row .tkbadge { margin-left: 8px; font-size: 11px; padding: 1px 7px; border-radius: 8px; border: 2px solid var(--ink); vertical-align: middle; background: var(--yellow); color: #3a2400; display: inline-flex; align-items: center; gap: 3px; }
.detail .decon { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,.28); gap: 4px; }
.detail .decon .arow .lbl { width: 150px; }
.detail .decon .arow .num.c-green { font-size: 14px; }

/* ---------- rodada 5: Comunidade (modal chat global + grupo), chat desativado, conquista 4x4 ---------- */
.comm-modal .mbody { padding-top: 4px; }
.comm-cards { display: flex; gap: 18px; justify-content: center; align-items: stretch; }
.comm-card {
  position: relative; width: 330px; min-height: 250px; padding: 18px 16px 14px; border-radius: 20px; cursor: pointer;
  background: linear-gradient(#4a3390, #2a1c55); border: 4px solid #fff; box-shadow: 0 0 0 2px #000, 0 6px 0 rgba(0,0,0,.5);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; transition: transform .12s;
}
.comm-card:hover { transform: translateY(-2px); }
.comm-card:active { transform: scale(.98); }
.comm-card.whatsapp { background: linear-gradient(#1f8f4a, #0e5a2c); }
.comm-card.telegram { background: linear-gradient(#2b8ed6, #17557f); }
.comm-card.off { background: linear-gradient(#4a4a5c, #2a2a36); cursor: not-allowed; filter: saturate(.55); }
.comm-card.off .cicon { opacity: .55; }
.comm-card .cicon {
  width: 104px; height: 104px; border-radius: 26px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); border: 3px solid rgba(255,255,255,.7); box-shadow: inset 0 0 0 3px rgba(0,0,0,.35);
}
.comm-card .ctitle { font-size: 24px; color: var(--yellow); -webkit-text-stroke: .8px #000; paint-order: stroke fill; text-shadow: 0 3px 0 #000; }
.comm-card .cdesc { font-size: 14px; font-weight: 700; color: #efeaff; line-height: 1.35; min-height: 38px; }
.comm-card .cfoot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.comm-card .cfoot .btn { pointer-events: none; max-width: 290px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-card .cbadge {
  position: absolute; top: -12px; right: -10px; background: var(--yellow); color: #3a2400; font-size: 13px; padding: 3px 10px;
  border-radius: 10px; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); transform: rotate(6deg); z-index: 1;
}
.comm-card .cbadge.red { background: var(--red); color: #fff; text-shadow: 0 1px 0 #000; }
/* chat global desativado: aviso fixo acima das mensagens + campo desabilitado */
.chat-notice {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 6px; border-radius: 12px; font-size: 15px;
  background: rgba(255,59,59,.22); border: 2px solid var(--red); color: #ffd9d9; text-shadow: 0 1px 0 #000;
}
.chat-notice[hidden] { display: none; }
.chatbox.disabled .send .input { opacity: .55; }
.chatbox.disabled .send .btn { opacity: .5; cursor: not-allowed; }
/* card e confirmação do modo conquista (4x4) */
.modal .mode-desc { font-size: 15px; color: #cfc7ea; margin: -2px 0 10px; }
.mm-box .fmt { font-size: 20px; color: var(--cyan); -webkit-text-stroke: .6px #000; paint-order: stroke fill; text-shadow: 0 2px 0 #000; margin-top: 2px; }

/* ---------- rodada 6: bloqueio de modos, tela cheia no lobby, anúncios (window.ADS), controles no celular ---------- */
/* cards de modo bloqueados: closed → escurecido + selo vermelho "Fechado"; admin → selo amarelo "Somente admin" */
.lobby .mode-card .modebadge {
  position: absolute; top: 8px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 10px; border: 2px solid var(--ink); font-size: 12px; box-shadow: 0 3px 0 var(--ink);
  transform: skewX(9deg) rotate(-6deg); transform-origin: 50% 50%; text-shadow: none;
}
.lobby .mode-card .modebadge[hidden] { display: none; }
.lobby .mode-card .modebadge.red { background: var(--red); color: #fff; text-shadow: 0 1px 0 #7a0c0c; }
.lobby .mode-card .modebadge.yellow { background: var(--yellow); color: #3a2400; }
.lobby .mode-card.locked { cursor: not-allowed; }
.lobby .mode-card.locked .pic canvas { filter: grayscale(.75) brightness(.42); }
.lobby .mode-card.locked .band { background: rgba(0,0,0,.92); }
.lobby .mode-card.locked .band .txt { color: #cfc7ea; }
.lobby .mode-card.locked .tag { opacity: .55; }
.lobby .mode-card.locked::after { content: ""; position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(135deg, rgba(0,0,0,.18) 0 14px, rgba(0,0,0,0) 14px 28px); pointer-events: none; }
/* botão "Tela cheia" do lobby (celular, sem tela cheia) — canto superior direito, abaixo da barra */
.lobby .fsbtn {
  position: absolute; right: 12px; top: 88px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px 0 8px; border-radius: 16px; border: 2px solid var(--ink); background: var(--cyan); color: #052a3d;
  font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; box-shadow: 0 3px 0 var(--ink);
}
.lobby .fsbtn[hidden] { display: none; }
.lobby .fsbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.fsico { position: relative; width: 16px; height: 16px; display: inline-block; }
.fsico::before, .fsico::after { content: ""; position: absolute; width: 5px; height: 5px; border: 2.5px solid currentColor; }
.fsico::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.fsico::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }

/* modal de anúncio (fora do palco: tela cheia real, funciona também durante a partida) */
.ads-modal {
  position: fixed; inset: 0; z-index: 9000; background: rgba(3,2,12,.94); display: flex; align-items: center; justify-content: center;
  padding: 10px; font-family: var(--font); font-weight: 800; color: #fff; animation: pop .18s ease-out;
}
.ads-box {
  width: min(820px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(#3b2a78, #22163f); border: 4px solid #fff; border-radius: 22px; padding: 10px 14px 12px;
  box-shadow: 0 0 0 3px #000, 0 12px 0 rgba(0,0,0,.5);
}
.ads-head { display: flex; align-items: center; gap: 10px; flex: none; }
.ads-title { display: inline-flex; align-items: center; gap: 6px; font-size: 22px; color: var(--yellow); -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 3px 0 #000; }
.ads-hint { font-size: 13px; color: #cfc7ea; margin-left: auto; text-align: right; }
.ads-close { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 3px solid #fff; background: var(--red); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 0 0 2px #000; font-weight: 900; }
.ads-screen {
  position: relative; flex: 1 1 auto; min-height: 120px; aspect-ratio: 16 / 9; max-height: min(58vh, 460px); width: 100%;
  background: #05030f; border: 3px solid #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 2px #000;
  display: flex; align-items: center; justify-content: center;
}
.ads-frame, .ads-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.ads-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 10px; width: 100%; height: 100%; }
.ads-sim { background: radial-gradient(circle at 50% 35%, #3b2a78, #12082a 70%); }
.ads-bigicon { animation: adsFloat 2.2s ease-in-out infinite; }
@keyframes adsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ads-txt { font-size: 22px; color: var(--cyan); -webkit-text-stroke: .8px #000; paint-order: stroke fill; }
.ads-sub { font-size: 14px; color: #cfc7ea; }
.ads-simbars { display: flex; gap: 6px; align-items: flex-end; height: 26px; margin-top: 4px; }
.ads-simbars i { display: block; width: 8px; height: 10px; border-radius: 3px; background: var(--yellow); animation: adsBars 1s ease-in-out infinite; }
.ads-simbars i:nth-child(2) { animation-delay: .15s; } .ads-simbars i:nth-child(3) { animation-delay: .3s; } .ads-simbars i:nth-child(4) { animation-delay: .45s; } .ads-simbars i:nth-child(5) { animation-delay: .6s; }
@keyframes adsBars { 0%, 100% { height: 8px; } 50% { height: 26px; } }
.ads-foot { flex: none; display: flex; flex-direction: column; gap: 8px; }
.ads-bar { height: 14px; border: 2px solid #000; border-radius: 7px; background: #23153f; overflow: hidden; }
.ads-fill { height: 100%; width: 0; background: linear-gradient(#8bf585, #3fbf42); transition: width .2s linear; }
.ads-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ads-count { font-size: 18px; color: var(--yellow); text-shadow: 0 2px 0 #000; }
/* confirmação de fechar antes do fim: dentro do modal (o UI.confirm do palco ficaria atrás do .ads-modal) */
.ads-confirm { position: absolute; inset: 0; z-index: 2; background: rgba(3,2,12,.72); display: flex; align-items: center; justify-content: center; padding: 16px; animation: pop .15s ease-out; }
.ads-confirm-box { width: min(440px, 100%); background: linear-gradient(#3b2a78, #22163f); border: 4px solid #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 0 0 3px #000, 0 10px 0 rgba(0,0,0,.5); text-align: center; }
.ads-confirm-txt { font-size: 18px; line-height: 1.25; margin-bottom: 14px; -webkit-text-stroke: .6px #000; paint-order: stroke fill; }
.ads-confirm-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ads-modal.ready .ads-count { color: var(--green); }
.ads-modal.ready .ads-receive { animation: adsPulse 1s ease-in-out infinite; }
@keyframes adsPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (max-height: 460px) {
  .ads-box { padding: 6px 10px 8px; gap: 5px; border-width: 3px; }
  .ads-title { font-size: 17px; } .ads-hint { font-size: 11px; } .ads-screen { max-height: 52vh; min-height: 90px; }
  .ads-txt { font-size: 16px; } .ads-count { font-size: 15px; } .ads-modal .btn { height: 38px; font-size: 16px; padding: 0 14px; }
  .ads-bar { height: 10px; }
}

/* configurações → seção Controles (destacada no celular) */
.ctrl-section { margin-top: 16px; padding: 12px 14px 14px; border-radius: 16px; background: rgba(0,0,0,.28); border: 2px solid rgba(255,255,255,.25); }
.ctrl-section.mobile { border-color: var(--yellow); box-shadow: 0 0 16px rgba(255,210,63,.35); background: rgba(255,210,63,.08); }
.ctrl-section .ctrl-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 20px; color: var(--yellow); -webkit-text-stroke: .8px #000; paint-order: stroke fill; }
.ctrl-section .ctrl-title .small { -webkit-text-stroke: 0; margin-left: 4px; }
.ctrl-section .size-opt { min-width: 44px; justify-content: center; font-size: 18px; }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 8px; background: #23153f; border: 2px solid var(--ink); outline: none; margin: 8px 0 0; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.slider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); cursor: pointer; }

/* editor de posição dos botões (overlay fixo, fora do palco) */
.ctrl-editor { position: fixed; inset: 0; z-index: 8500; background: #0b0f1a; font-family: var(--font); font-weight: 800; color: #fff; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
.ctrl-editor .ctrl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.ctrl-editor .ctrl-canvas:active { cursor: grabbing; }
.ctrl-top { position: absolute; left: 0; right: 0; top: 0; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(rgba(5,2,20,.85), rgba(5,2,20,0)); pointer-events: none; }
.ctrl-top > * { pointer-events: auto; }
.ctrl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ctrl-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ctrl-actions .btn { height: 38px; font-size: 16px; padding: 0 14px; }
.ctrl-htitle { display: inline-flex; align-items: center; gap: 6px; font-size: 22px; color: var(--yellow); -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 3px 0 #000; }
.ctrl-hint { font-size: 13px; color: #e6e0ff; text-shadow: 0 1px 0 #000; }
.ctrl-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ctrl-group { display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.35); border-radius: 12px; padding: 4px 8px; }
.ctrl-lbl { font-size: 13px; color: #cfc7ea; margin-right: 4px; white-space: nowrap; }
.ctrl-pill { height: 30px; min-width: 34px; padding: 0 10px; border-radius: 10px; border: 2px solid var(--ink); background: #4a3a80; color: #fff; font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; box-shadow: 0 2px 0 var(--ink); white-space: nowrap; }
.ctrl-pill.on { background: var(--yellow); color: #3a2400; }
.ctrl-pill:active { transform: translateY(2px); box-shadow: none; }
.ctrl-op input[type=range] { width: 120px; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 4px; background: #23153f; border: 2px solid var(--ink); outline: none; }
.ctrl-op input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); cursor: pointer; }
@media (max-height: 460px) {
  .ctrl-top { padding: 4px 8px; gap: 3px; } .ctrl-htitle { font-size: 16px; } .ctrl-hint { font-size: 11px; }
  .ctrl-pill { height: 26px; font-size: 12px; padding: 0 8px; } .ctrl-lbl { font-size: 11px; } .ctrl-op input[type=range] { width: 90px; }
  .ctrl-actions { gap: 6px; } .ctrl-actions .btn { height: 30px; font-size: 13px; padding: 0 10px; border-width: 2px; }
}

/* rodada 12 (docs/ROUND12-MODOS.md §4): pílula de custo por moeda configurada no painel; "Grátis" em verde; animação ao mudar */
.lobby .mode-card .tag.isfree { background: var(--green); color: #0b2e0c; }
.lobby .mode-card .tag .free { font-weight: 900; letter-spacing: .02em; }
.lobby .mode-card .tag.bump { animation: tagbump .45s ease-out; }
@keyframes tagbump { 0% { transform: skewX(9deg) scale(1); } 40% { transform: skewX(9deg) scale(1.22); } 100% { transform: skewX(9deg) scale(1); } }
.modal .entry-cost { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; font-weight: 800; }
.modal .entry-balance { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; font-size: 15px; color: var(--yellow); }
.modal .entry-balance.short { color: #ff6b6b; }
.modal .entry-map { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 6px; font-size: 16px; color: #cfe9ff; }
.modal .entry-map b { color: var(--cyan); }

/* ---------- rodada 14: seleção de mapa (tela 'mapselect') ---------- */
.screen.mapselect { isolation: isolate; }
.mapselect .ms-bg { position: absolute; left: 0; top: 0; width: 100%; height: 720px; }
.mapselect .ms-back { position: absolute; left: 22px; top: 18px; z-index: 3; height: 50px; font-size: 20px; padding: 0 18px 0 12px; }
.mapselect .ms-title {
  position: absolute; left: 0; right: 0; top: 22px; text-align: center; font-size: 52px; line-height: 1; text-transform: uppercase; letter-spacing: 1px;
  color: #fff; -webkit-text-stroke: 2px #1a0a3a; paint-order: stroke fill; text-shadow: 0 6px 0 #1a0a3a, 0 0 26px rgba(160,110,255,.55); pointer-events: none;
}
.mapselect .ms-modeline { position: absolute; left: 0; right: 0; top: 86px; text-align: center; font-size: 18px; color: #d9c9ff; text-shadow: 0 2px 0 #000; pointer-events: none; }
.mapselect .ms-cards {
  position: absolute; left: 0; right: 0; top: 130px; height: 470px; display: flex; align-items: center; justify-content: center; gap: 34px; padding: 10px 40px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mapselect .ms-cards::-webkit-scrollbar { display: none; }
.mapselect .ms-cards.many, .mapselect .ms-cards.mobile { justify-content: flex-start; }
/* rodada 33: centraliza quando sobra espaço (palco mais largo) e continua rolando do começo quando não cabe */
.mapselect .ms-cards.many > :first-child, .mapselect .ms-cards.mobile > :first-child { margin-left: auto; }
.mapselect .ms-cards.many > :last-child, .mapselect .ms-cards.mobile > :last-child { margin-right: auto; }
.mapselect .ms-cards.mobile { gap: 28px; padding: 10px 60px; }
.mapselect .ms-card {
  position: relative; flex: 0 0 auto; width: 356px; height: 400px; border: 7px solid #120a22; border-radius: 26px; overflow: hidden; cursor: pointer;
  background: #1c1236; box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 14px 0 rgba(6,2,20,.55), 0 20px 40px rgba(0,0,0,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.mapselect .ms-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 0 0 3px #fff, 0 20px 0 rgba(6,2,20,.5), 0 0 30px rgba(255,255,255,.45); }
.mapselect .ms-card:active { transform: translateY(-2px) scale(.99); }
.mapselect .ms-card .pic { position: absolute; left: 0; top: 0; right: 0; height: 290px; }
.mapselect .ms-card .pic canvas { display: block; width: 100%; height: 100%; }
.mapselect .ms-card .band { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; padding: 10px 14px 0; background: linear-gradient(rgba(14,8,30,.96), rgba(6,2,16,.98)); border-top: 3px solid rgba(255,255,255,.55); text-align: center; }
.mapselect .ms-card .band .nm { display: block; font-size: 26px; line-height: 1.05; color: var(--yellow); -webkit-text-stroke: .8px #000; paint-order: stroke fill; text-shadow: 0 3px 0 #000; }
.mapselect .ms-card .band .ds { display: block; margin-top: 4px; font-size: 13px; line-height: 1.2; color: #d9c9ff; font-weight: 700; }
.mapselect .ms-card .band .nm.small { font-size: 18px; color: #fff2b3; }
.mapselect .ms-card .playing {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 8px; border-radius: 15px;
  background: rgba(6,2,16,.85); border: 2px solid rgba(255,255,255,.7); color: #fff; font-size: 14px; text-shadow: 0 1px 0 #000; box-shadow: 0 3px 0 rgba(0,0,0,.5);
}
.mapselect .ms-history { position: absolute; right: 24px; bottom: 20px; z-index: 3; height: 50px; font-size: 19px; padding: 0 18px 0 12px; }
@media (max-width: 900px) {
  .mapselect .ms-title { font-size: 46px; }
  .mapselect .ms-card { width: 380px; height: 420px; }
  .mapselect .ms-card .pic { height: 306px; }
  .mapselect .ms-card .playing { top: 12px; }
}

/* ---------- rodada 14: tela cheia "Pareando partida" (camada própria fora do palco) ---------- */
body.mm-open #screens, body.mm-open #bg { visibility: hidden; }
.mm-layer { position: fixed; inset: 0; overflow: hidden; background: #6fb6ea; color: #fff; font-family: var(--font); font-weight: 800; -webkit-user-select: none; user-select: none; }
.mm-layer .mm-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mm-layer .mm-top { position: absolute; left: 0; right: 0; top: clamp(10px, 4vh, 40px); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; padding: 0 12px; }
.mm-layer .mm-title {
  display: inline-flex; align-items: baseline; gap: 4px; font-size: clamp(30px, 6.5vw, 74px); line-height: 1; letter-spacing: 1px; text-transform: uppercase;
  color: #2f7cf6; -webkit-text-stroke: 2px #fff; paint-order: stroke fill; text-shadow: 0 4px 0 #0f3a80, 0 8px 0 rgba(0,0,0,.35), 0 0 24px rgba(255,255,255,.55);
}
.mm-layer .mm-title.searching .txt { animation: mmPulse 1.6s ease-in-out infinite; }
.mm-layer .mm-title .dots i { display: inline-block; width: .22em; height: .22em; margin-left: .12em; border-radius: 50%; background: #2f7cf6; box-shadow: 0 0 0 .06em #fff, 0 .12em 0 #0f3a80; animation: mmDot 1.2s ease-in-out infinite; }
.mm-layer .mm-title .dots i:nth-child(2) { animation-delay: .2s; }
.mm-layer .mm-title .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes mmDot { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-.35em); opacity: 1; } }
@keyframes mmPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.mm-layer .mm-title.found {
  color: #fff; -webkit-text-stroke: 2.5px #d81b1b; text-shadow: 0 0 0 #fff, 0 5px 0 #7a0c0c, 0 9px 0 rgba(0,0,0,.35), 0 0 28px rgba(255,255,255,.8), 0 0 40px rgba(53,208,255,.6);
  animation: mmBounce .9s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes mmBounce { 0% { transform: scale(.2) translateY(-40px); opacity: 0; } 55% { transform: scale(1.18) translateY(6px); opacity: 1; } 75% { transform: scale(.96) translateY(-3px); } 100% { transform: scale(1) translateY(0); } }
.mm-layer .mm-sub { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(14px, 2vw, 22px); color: #fff; text-shadow: 0 2px 0 #0f3a80, 0 0 10px rgba(0,0,0,.5); background: rgba(10,30,70,.42); border-radius: 999px; padding: 4px 16px; border: 1px solid rgba(255,255,255,.35); }
.mm-layer .mm-sub .sep { opacity: .6; }
.mm-layer .mm-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(12px, 3vw, 36px) max(10px, env(safe-area-inset-bottom)); background: linear-gradient(rgba(5,10,30,0), rgba(5,10,30,.78)); }
.mm-layer .mm-info { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.mm-layer .mm-info .it { display: inline-flex; align-items: center; gap: 6px; font-size: clamp(13px, 1.7vw, 18px); text-shadow: 0 2px 0 #000; }
.mm-layer .mm-info .k { color: #bfe9ff; font-size: .8em; text-transform: uppercase; letter-spacing: .5px; }
.mm-layer .mm-info b { color: var(--yellow); display: inline-flex; align-items: center; gap: 4px; }
.mm-layer .mm-cancel { height: clamp(36px, 6vh, 48px); font-size: clamp(15px, 2vw, 20px); padding: 0 18px; flex: none; }
.mm-layer .mm-cancel[hidden] { display: none; }
.mm-layer.found .mm-canvas { animation: mmFlash .6s ease-out; }
.mm-layer { transition: opacity .24s ease; }
.mm-layer.closing { opacity: 0; pointer-events: none; }
@keyframes mmFlash { 0% { filter: brightness(1.8); } 100% { filter: brightness(1); } }
@media (max-height: 460px) {
  .mm-layer .mm-top { top: 6px; gap: 2px; }
  .mm-layer .mm-sub { padding: 2px 10px; }
  .mm-layer .mm-foot { padding: 6px 10px 8px; }
}

/* ---------- rodada 14: configurações → câmera ---------- */
.settings .cam-field .cam-preview { margin-top: 4px; min-height: 16px; }
.settings .cam-opt { min-width: 120px; }

/* ---------- rodada 14: carteira com PIX pelo gateway ---------- */
.wallet .gwbadge { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; padding: 3px 10px 3px 6px; border-radius: 999px; background: rgba(88,211,90,.18); border: 2px solid var(--green); color: #baffb8; font-size: 13px; text-shadow: 0 1px 0 #000; }
.wallet .gwbadge.inline { align-self: center; margin-left: 4px; }
.wallet .custpanel { position: absolute; left: 250px; top: 330px; width: calc(1010px + var(--stage-x, 0px)); padding: 8px 14px 10px; }
.wallet .custpanel .panel-title { display: flex; align-items: center; gap: 6px; font-size: 17px; margin-bottom: 2px; }
.wallet .custgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; }
.wallet .custgrid .field label { font-size: 13px; }
.wallet .depform.withcust { top: 470px; }
.modal .custgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.modal .custgrid .field label { font-size: 13px; }
.pixmodal .pixbox { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }
.pixmodal .pixqr { width: 250px; height: 250px; border-radius: 16px; background: #fff; border: 4px solid var(--ink); box-shadow: 0 6px 0 rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pixmodal .pixqr img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.pixmodal .pixqr .noqr { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #22183f; font-size: 14px; text-align: center; padding: 10px; }
.pixmodal .pixqr .paidmark { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #0b3a10; font-size: 24px; animation: pop .35s ease-out; }
.pixmodal .pixbox.paid .pixqr { background: var(--green); }
.pixmodal .pixinfo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pixmodal .pixinfo .kv { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; padding: 3px 0; border-bottom: 1px dashed rgba(255,255,255,.25); }
.pixmodal .pixinfo .kv b { color: var(--yellow); display: inline-flex; align-items: center; gap: 4px; text-align: right; }
.pixmodal .pixcode { font-family: Consolas, "Courier New", monospace; font-size: 12px; font-weight: 700; line-height: 1.25; color: #efeaff; background: rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.3); border-radius: 10px; padding: 8px 10px; max-height: 64px; overflow: hidden; word-break: break-all; cursor: pointer; -webkit-user-select: text; user-select: text; }
.pixmodal .pixcode:hover { border-color: var(--cyan); }
.pixmodal .pixstatus { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 8px 12px; border-radius: 12px; font-size: 17px; border: 2px solid rgba(255,255,255,.3); background: rgba(0,0,0,.3); }
.pixmodal .pixstatus.waiting { color: #ffe9a3; }
.pixmodal .pixstatus .spin { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); border-top-color: var(--yellow); animation: spin 1s linear infinite; }
.pixmodal .pixstatus.ok { color: #baffb8; border-color: var(--green); background: rgba(88,211,90,.18); animation: pixOk .6s cubic-bezier(.2,1.4,.4,1); }
.pixmodal .pixstatus.ok .okmark { display: inline-flex; animation: pixMark .7s cubic-bezier(.2,1.6,.4,1); }
.pixmodal .pixstatus.bad { color: #ffb0b0; border-color: var(--red); background: rgba(255,59,59,.18); }
@keyframes pixOk { 0% { transform: scale(.9); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes pixMark { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }

/* ---------- rodada 15: bolhas ao clicar (camada fixa acima de tudo, nunca recebe eventos) ---------- */
#clickfx { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 99999; display: block; }

/* ---------- rodada 15: tickets por arma ---------- */
/* contador do topo: ícone pequeno da arma equipada + atuais/máximo; vermelho com 0 */
.pill.tkpill { position: relative; }
.pill.tkpill .wpn { width: 28px; height: 26px; border-radius: 7px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.6); display: inline-flex; align-items: center; justify-content: center; margin-left: -2px; }
.pill.tkpill .wpn img { width: 26px; height: 26px; }
.pill.tkpill .val { min-width: 34px; }
.pill.tkpill .val .mx { font-size: 12px; color: #d9c9ff; margin-left: 1px; }
.pill.tkpill.zero { border-color: var(--red); box-shadow: 0 0 10px rgba(255,59,59,.55); }
.pill.tkpill.zero .val { color: #ff8a8a; }
/* faixa pequena de aviso no lobby (arma equipada sem tickets): dentro da barra superior, logo abaixo do contador */
.lobby .tkwarn {
  position: absolute; right: 14px; top: 56px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; max-width: 700px; height: 22px;
  padding: 0 4px 0 10px; border-radius: 11px; background: rgba(120,10,10,.85); border: 2px solid var(--red); color: #ffd9d9;
  font-size: 12px; line-height: 1; white-space: nowrap; text-shadow: 0 1px 0 #000; box-shadow: 0 2px 0 rgba(0,0,0,.45); animation: pop .2s ease-out;
}
.lobby .tkwarn[hidden] { display: none; }
.lobby .tkwarn .btn { height: 18px; font-size: 11px; padding: 0 8px; border-width: 2px; box-shadow: 0 1px 0 var(--ink); }
/* inventário: selo atuais/máximo na arma (vermelho com 0) */
.inv-row .tkbadge.zero { background: var(--red); color: #fff; text-shadow: 0 1px 0 #7a0c0c; }
.inv-row .tkbadge .mx { opacity: .75; font-size: 10px; }
/* popup da arma: bloco de tickets com próximo reset */
.detail .dtickets { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.28); border: 2px solid rgba(255,210,63,.45); display: flex; flex-direction: column; gap: 4px; }
.detail .dtickets .tkrow { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.detail .dtickets .tkrow .n { color: var(--yellow); font-size: 22px; -webkit-text-stroke: .6px #000; paint-order: stroke fill; }
.detail .dtickets .tkrow .n .mx { font-size: 14px; color: #d9c9ff; }
.detail .dtickets.zero { border-color: var(--red); }
.detail .dtickets.zero .tkrow .n { color: #ff8a8a; }
.detail .dtickets .tkreset { font-size: 13px; color: #cfe9ff; }
.detail .dtickets .tkbar { height: 10px; }
/* modal de confirmação de entrada: custo por arma e aviso de arma sem tickets */
.modal .entry-cost .wpnico { width: 22px; height: 22px; vertical-align: middle; }
.modal .entry-warn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 6px 12px; border-radius: 10px; background: rgba(255,59,59,.22); border: 2px solid var(--red); color: #ffd9d9; font-size: 15px; }
.modal .tk-weapon-note { font-size: 13px; color: #cfe9ff; margin-top: -6px; }
.modal .nowpn-body { text-align: center; font-size: 17px; line-height: 1.35; }
.modal .nowpn-body .big { display: flex; justify-content: center; margin-bottom: 6px; }

/* rodada 18: URL de promoção — rede multinível (texto dinâmico, tiles Convidados/Rede/Ganhos, "Sua rede" e últimas comissões) */
.referral .ref-intro { line-height: 1.45; }
.referral .ref-intro .ico { vertical-align: middle; }
.referral .stat-tiles { flex-wrap: wrap; }
.referral .stat-tile { min-width: 120px; }
.ref-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 18px; }
.ref-block { min-width: 0; }
.ref-netlist { display: flex; flex-direction: column; gap: 6px; }
.ref-net { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.10); border: 2px solid rgba(255,255,255,.35); border-radius: 12px; padding: 6px 12px; }
.ref-net .ref-net-count { flex: 1; }
.ref-lvl { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: #3a2400; border: 2px solid var(--ink); font-size: 15px; flex: none; }
.ref-net-pct { font-size: 18px; }
.ref-comm .info .t1 { font-size: 15px; }
.ref-comm .info .t1 .ico { vertical-align: middle; }
.ref-comm-val { white-space: nowrap; font-size: 16px; display: inline-flex; align-items: center; gap: 2px; }
@media (max-width: 900px) { .ref-blocks { grid-template-columns: 1fr; } }

/* rodada 18 (adendo): tela Equipe — abas "Minha equipe" (rede de indicação: depósitos, compras e comissões) e "Clã" */
.team .tm-tabs { margin-bottom: 10px; }
.team .tm-tabs .t .ico { vertical-align: middle; margin-right: 4px; }
.team .ref-intro { line-height: 1.45; margin-bottom: 10px; }
.team .ref-intro .ico { vertical-align: middle; }
.team .stat-tiles { flex-wrap: wrap; margin-bottom: 14px; }
.team .stat-tile { min-width: 120px; }
.team .stat-tile .v .ico { vertical-align: middle; }
.team .stat-tile .tm-tile-sub { font-size: 14px; color: #cfc7ea; -webkit-text-stroke: 0; margin-left: 4px; }
.tm-row .info .t1 .tm-lvl { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--yellow); color: #3a2400; font-size: 12px; border: 2px solid var(--ink); vertical-align: middle; -webkit-text-stroke: 0; }
.tm-row .info .t2 .ico { vertical-align: middle; }
.tm-comm { text-align: right; white-space: nowrap; flex: none; }
.tm-comm-val { font-size: 17px; display: inline-flex; align-items: center; gap: 2px; }
.tm-comm-split { font-size: 12px; }
.tm-comm-split .ico { vertical-align: middle; }
.tm-empty { text-align: center; padding: 24px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
@media (max-width: 640px) { .tm-comm { white-space: normal; text-align: right; max-width: 40%; } }

/* splash de entrada no lobby (UI.splash, js/ui/splash.js; pedido do usuário em 2026-09-30, igual à foto): camada fixa de viewport
   inteira acima do palco e da tela de login, bloqueia cliques; tudo é desenhado no canvas. Some com fade (.out). */
.splash-layer { position: fixed; inset: 0; z-index: 8700; background: #2ab5e7; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; cursor: default; opacity: 1; transition: opacity .42s ease; }
.splash-layer.out { opacity: 0; pointer-events: none; }
.splash-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
body.splash-open #rotate-hint { display: none; }

/* efeito de resgate (UI.rewardFx, js/ui/reward-fx.js; rodada 27): ícones voando até o saldo, por cima de tudo, sem bloquear cliques */
#rfx { position: fixed; inset: 0; z-index: 9500; pointer-events: none; overflow: hidden; }
#rfx .rfx-ico { position: absolute; left: 0; top: 0; will-change: transform, opacity; filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)); }
#rfx .rfx-ico img, #rfx .rfx-ico .ico { width: 100% !important; height: 100% !important; display: block; }
#rfx .rfx-flash { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: radial-gradient(circle, var(--rfx-c, #fff6c0) 0%, rgba(255,255,255,0) 65%); animation: rfx-flash .55s ease-out forwards; }
#rfx .rfx-flash.big { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
@keyframes rfx-flash { 0% { transform: scale(.2); opacity: .95; } 100% { transform: scale(1.25); opacity: 0; } }
#rfx .rfx-plus { position: absolute; transform: translate(0, -50%); font-weight: 900; white-space: nowrap; -webkit-text-stroke: 1.5px #2a1600; paint-order: stroke fill; text-shadow: 0 2px 0 #000; animation: rfx-plus 1.2s ease-out forwards; }
@keyframes rfx-plus { 0% { opacity: 0; transform: translate(0, -20%) scale(.7); } 15% { opacity: 1; transform: translate(0, -50%) scale(1.1); } 100% { opacity: 0; transform: translate(0, -170%) scale(1); } }
#rfx .rfx-ghost { position: absolute; transition: opacity .25s; filter: drop-shadow(0 0 10px rgba(255,220,90,.75)); }
#rfx .rfx-ghost.out { opacity: 0; }
#rfx .rfx-chip { position: absolute; right: 14px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border-radius: 20px; background: rgba(10,6,30,.9); border: 2px solid rgba(255,255,255,.7); color: #fff; font-size: 19px; text-shadow: 0 2px 0 #000; transform-origin: 100% 0; opacity: 0; transition: opacity .25s; }
#rfx .rfx-chip.on { opacity: 1; }

/* rodada 37: foto de perfil (js/ui/avatar-picker.js) — foto redonda no lobby, seletor e recorte */
.ico.portrait.photo { object-fit: cover; border-radius: 12px; background: #1b1238; }
.lobby .avatar-frame { cursor: pointer; }
.lobby .avatar-frame .ico.portrait.photo { border-radius: 9px; }
.lobby .avatar-frame:hover { filter: brightness(1.1); }
.st-avatar { display: flex; align-items: center; gap: 12px; }
.st-avatar .btn { display: inline-flex; align-items: center; gap: 8px; }
.avatar-picker .ap-choose { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.avatar-picker .ap-current { width: 120px; height: 120px; border-radius: 22px; border: 4px solid var(--yellow); box-shadow: 0 4px 0 var(--ink), 0 0 18px rgba(255,210,63,.45); overflow: hidden; background: #1b1238; }
.avatar-picker .ap-current .ico { width: 100% !important; height: 100% !important; display: block; border-radius: 0; }
.avatar-picker .ap-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.avatar-picker .ap-buttons .btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.avatar-picker .ap-sub { font-size: 15px; color: #d9c9ff; text-shadow: 0 2px 0 #000; }
.avatar-picker .ap-heroes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-height: 230px; overflow-y: auto; padding: 4px; }
.avatar-picker .ap-hero { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 78px; padding: 6px 2px 4px; border-radius: 12px; border: 2px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.avatar-picker .ap-hero:hover { border-color: #fff; }
.avatar-picker .ap-hero.on { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.avatar-picker .ap-crop { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.avatar-picker .ap-frame { position: relative; width: 240px; height: 240px; border-radius: 24px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 4px 0 var(--ink); touch-action: none; }
.avatar-picker .ap-canvas { width: 240px; height: 240px; display: block; cursor: grab; touch-action: none; }
.avatar-picker .ap-canvas:active { cursor: grabbing; }
.avatar-picker .ap-ring { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); border-radius: 20px; }
.avatar-picker .ap-zoom { display: flex; align-items: center; gap: 10px; width: 260px; }
.avatar-picker .ap-range { flex: 1; accent-color: var(--yellow); }
.avatar-picker .ap-actions { gap: 12px; justify-content: center; }

/* indicador de carregamento (UI.loading, js/ui/loading.js): caixinha no centro do palco, sem bloquear cliques */
#loading { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 9000; pointer-events: none; opacity: 1; transition: opacity .18s ease; }
#loading.out { opacity: 0; }
#loading .lbox {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transform-origin: 50% 50%;
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 30px 18px; min-width: 190px;
  border-radius: 18px; background: rgba(10, 6, 32, .88); border: 3px solid rgba(255,255,255,.35);
  box-shadow: 0 8px 0 rgba(0,0,0,.35), 0 0 26px rgba(0,0,0,.55);
}
#loading .lspin { width: 54px; height: 54px; border-radius: 50%; border: 6px solid rgba(255,255,255,.16); border-top-color: var(--yellow); border-right-color: var(--yellow); animation: lspin .8s linear infinite; }
#loading .ltxt { font-size: 20px; font-weight: 900; color: #fff; -webkit-text-stroke: .6px #000; paint-order: stroke fill; text-shadow: 0 2px 0 #000; white-space: nowrap; }
#loading .ldots::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: ldots 1.2s steps(4, end) infinite; }
@keyframes lspin { to { transform: rotate(360deg); } }
@keyframes ldots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* ---------- Rodada 19: popup "Recompensas Online" (overlay 'online', idêntico à foto de referência) ---------- */
/* Medidas tiradas da foto .tmp/run/ref-online-reward.png relativas ao centro do círculo (200,210 no .ol-wrap; D = 400). */
.overlay.online .ol-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: saturate(.7); backdrop-filter: saturate(.7); display: flex; align-items: center; justify-content: center; }
.ol-wrap { position: relative; width: 812px; height: 420px; }
/* X: dois traços brancos arredondados (37x9) com sombra suave, centro em (28, 32) do wrap */
.ol-close { position: absolute; left: 0; top: 4px; width: 56px; height: 56px; z-index: 3; border: 0; background: none; padding: 0; cursor: pointer; font-size: 0; color: transparent; transition: transform .12s; }
.ol-close::before, .ol-close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 37px; height: 9px; margin: -4.5px 0 0 -18.5px; border-radius: 4px; background: #ededed; box-shadow: 0 1px 3px rgba(0,0,0,.5); transform: rotate(45deg); }
.ol-close::after { transform: rotate(-45deg); }
.ol-close:hover { transform: scale(1.1); }
.ol-close:active { transform: scale(.95); }
/* faixa roxa em seta (515x360, sem halo): topo levemente inclinado como na foto, rampas 0,92/0,80 px/px, ponta arredondada
   (r 40) 26 px abaixo do centro do círculo; violeta quase chapado, um pouco mais rosado embaixo */
.ol-glow { position: absolute; left: 290px; top: 34px; width: 515px; height: 360px; pointer-events: none; }
.ol-banner {
  position: absolute; inset: 0; pointer-events: auto; background: linear-gradient(178deg, #8511ea 0%, #9320ec 45%, #9e2bee 100%);
  clip-path: polygon(0 3.33%, 11.65% 3.19%, 23.3% 2.78%, 38.83% 1.81%, 46.6% 1.06%, 54.37% .39%, 62.14% 0, 65.7% 0, 67.99% 1.44%, 97.81% 47.96%, 98.49% 49.19%, 99.05% 50.55%, 99.46% 52%, 99.73% 53.53%, 99.85% 55.09%, 99.81% 56.66%, 99.61% 58.21%, 99.26% 59.7%, 98.77% 61.11%, 98.15% 62.41%, 75.84% 97.71%, 75.07% 100%, 0 100%);
}
/* coluna: título / cronômetro / botão centrados a 251 px da borda esquerda da faixa; topo do conteúdo a 86 px */
.ol-body { position: absolute; left: 110px; right: 123px; top: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 84px; gap: 0; text-align: center; }
.ol-title { position: relative; left: 11px; height: 35px; line-height: 35px; font-family: Roboto, Arial, "Segoe UI", sans-serif; font-size: 28px; font-weight: 500; color: #ea9445; -webkit-text-stroke: 6px #fff; paint-order: stroke fill; text-shadow: 0 0 5px #fff, 0 0 10px rgba(255,255,255,.7), 0 0 16px rgba(255,255,255,.4); white-space: nowrap; }
.ol-timer { margin-top: 48px; height: 48px; line-height: 48px; font-family: Roboto, Arial, "Segoe UI", sans-serif; font-size: 40.5px; font-weight: 400; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.ol-tomorrow { margin-top: 48px; height: 48px; line-height: 48px; font-family: Roboto, Arial, "Segoe UI", sans-serif; font-size: 26px; font-weight: 700; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.6); }
/* botão Receber: 266x92 cinza-escuro com contorno preto, face mais clara em cima, degrau no meio e bisel de 10 px; texto claro */
.ol-claim {
  margin-top: 28px; width: 266px; height: 92px; border: 2px solid #27222a; border-radius: 17px; padding: 0; cursor: pointer; font: inherit; font-family: Roboto, Arial, "Segoe UI", sans-serif; font-size: 35.5px; font-weight: 400; line-height: 88px;
  color: #ececec; -webkit-text-stroke: 3px #202020; paint-order: stroke fill; text-shadow: 0 1px 1px rgba(0,0,0,.5);
  background: linear-gradient(#707070 0, #6b6b6b 6px, #696969 40px, #616161 46px, #5f5f5f 56px, #616160 78px, #464545 78px, #403f40 88px);
  box-shadow: 0 5px 12px rgba(0,0,0,.45); transition: transform .06s, box-shadow .06s;
}
.ol-claim:active { transform: translateY(3px); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.ol-claim.ready { background: linear-gradient(#5cf07f 0, #3fd463 76px, #1a8c38 78px, #0f6b2a 88px); color: #fff; -webkit-text-stroke: 1.2px #0b5a20; text-shadow: 0 2px 0 #0b5a20; border-color: #0b4a1c; box-shadow: 0 5px 12px rgba(0,0,0,.4), 0 0 18px rgba(80,255,120,.6); animation: olpulse 1.2s ease-in-out infinite; }
.ol-claim.ready:active { transform: translateY(3px); box-shadow: 0 2px 6px rgba(0,0,0,.4), 0 0 18px rgba(80,255,120,.6); animation: none; }
.ol-claim:disabled { cursor: wait; filter: brightness(.92); }
@keyframes olpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
/* círculo: anel ouro-fosco de 13 px com brilho metálico de 4 pontas (conic), contorno escuro suave, filete interno escuro e
   sombra larga que escurece a faixa junto ao anel (como na foto) */
.ol-circle {
  position: absolute; left: 0; top: 10px; width: 400px; height: 400px; border-radius: 50%; border: 13px solid transparent; z-index: 2; overflow: hidden;
  background: conic-gradient(#a2a35d 0deg, #c6b450 45deg, #a2a35d 90deg, #c6b450 135deg, #a2a35d 180deg, #c6b450 225deg, #a2a35d 270deg, #c6b450 315deg, #a2a35d 360deg) border-box;
  box-shadow: 0 0 0 1.5px rgba(40,36,44,.5), 30px 8px 60px rgba(0,0,0,.32), 10px 3px 22px rgba(0,0,0,.15);
}
.ol-circle::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(45,45,35,.5); pointer-events: none; }
.ol-burst { position: absolute; left: 0; top: 0; width: 374px; height: 374px; }
.ol-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
/* texto do círculo: Roboto 43 px negrito (tamanho da foto), entrelinha 63 px, contorno preto de ~3 px visíveis */
.ol-msg { max-width: 372px; padding-top: 4px; font-family: Roboto, Arial, "Segoe UI", sans-serif; font-size: 43px; font-weight: 700; line-height: 63px; color: #fff; -webkit-text-stroke: 6.5px #000; paint-order: stroke fill; text-shadow: 0 2px 2px rgba(0,0,0,.45); text-align: center; }
.ol-reward { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ol-reward .ico { filter: drop-shadow(0 4px 0 rgba(0,0,0,.45)); }
.ol-val { font-family: Roboto, Arial, "Segoe UI", sans-serif; font-size: 46px; font-weight: 700; color: var(--yellow); -webkit-text-stroke: 6px #000; paint-order: stroke fill; text-shadow: 0 2px 2px rgba(0,0,0,.45); line-height: 1.1; }
.ol-extra, .ol-sub { font-family: Roboto, Arial, "Segoe UI", sans-serif; font-size: 20px; font-weight: 700; color: #fff; -webkit-text-stroke: 3px #000; paint-order: stroke fill; text-shadow: 0 1px 1px rgba(0,0,0,.45); }
.ol-extra .ico { vertical-align: middle; }
