:root {
  --black: #000000;
  --graphite: #141518;
  --graphite-2: #1c1d21;
  --grey: #6b6d71;
  --grey-2: #9a9ca0;
  --off: #ece8e1;
  --line: rgba(236, 232, 225, 0.14);
  --xp: #6fd0f5;
  --hp: #ef5b4c;
  --shield: #9cc2ff;
  --amber: #ffc46b;
  --sans: "Helvetica Neue", "Neue Haas Grotesk Text", "SF Pro Text", Inter, Roboto, "Segoe UI", Arial, sans-serif;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--black);
  color: var(--off);
  font-family: var(--sans);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}
button:focus { outline: none; }
button:focus-visible { outline: 1px solid var(--off); outline-offset: 3px; }

/* ---------- arena ---------- */
#game {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  background: var(--black);
}

#vignette, #hurt, #fade {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
#vignette {
  background: radial-gradient(ellipse 75% 65% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.7) 100%);
  transition: opacity 1.2s ease;
  opacity: 0.8;
}
body.boss-near #vignette { opacity: 1; background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.88) 100%); }
#hurt {
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 50%, rgba(239, 91, 76, 0.42) 100%);
  opacity: 0;
  will-change: opacity;
}
#fade {
  background: var(--black);
  opacity: 0;
  transition: opacity 0.7s ease;
}
#fade.on { opacity: 0.93; }

/* ---------- HUD ---------- */
#hud {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  padding: calc(var(--sat) + 10px) calc(var(--sar) + 10px) 0 calc(var(--sal) + 16px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  color: var(--grey-2);
  font-size: 12px;
  letter-spacing: 0.04em;
}
#hud.show { opacity: 1; }
#hud .xp {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--sat);
  height: 2px;
  background: rgba(236, 232, 225, 0.06);
}
#hud .xp i {
  display: block;
  height: 100%;
  background: var(--xp);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 0.12s linear;
  box-shadow: 0 0 8px rgba(127, 224, 196, 0.6);
}
.hud-row {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.hud-hp { display: flex; align-items: center; gap: 9px; }
.hud-hp .bar {
  position: relative;
  width: 88px;
  height: 3px;
  background: rgba(236, 232, 225, 0.1);
  overflow: hidden;
}
.hud-hp .bar i {
  position: absolute;
  inset: 0;
  background: var(--hp);
  transform-origin: 0 50%;
  transition: transform 0.15s ease-out;
}
.hud-hp.hit .bar { animation: hpHit 0.35s ease-out; }
.hud-hp.heal .bar i { animation: hpHeal 0.6s ease-out; }
@keyframes hpHit { 0% { background: rgba(255, 255, 255, 0.85); } 100% { background: rgba(236, 232, 225, 0.1); } }
@keyframes hpHeal { 0% { background: #c9f2bd; } 100% { background: var(--hp); } }
#hpText { color: var(--off); }
.hp-num { min-width: 2.2em; }
@media (min-width: 760px) { .hp-num { min-width: 4.2em; } }
.hp-num small { display: none; font-size: 10px; color: var(--grey); margin-left: 1px; letter-spacing: 0.02em; }
@media (min-width: 760px) { .hp-num small { display: inline; } } /* no celular o espaço é do relógio */
/* v22 · eliminações: só onde sobra espaço (desktop), com o mesmo ícone de mira das cartas de ataque */
#hudKills { display: none; align-items: center; gap: 5px; margin-right: 14px; color: var(--grey-2); }
#hudKills svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; }
@media (min-width: 760px) { #hudKills { display: inline-flex; } }
body.in-arena #hudKills { display: none; }

#timer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--off);
  font-size: 14px;
  letter-spacing: 0.08em;
}
/* v21 · pontuação em tempo real: logo abaixo do relógio, pequena e cinza — sem rótulo, sem animação */
#hudScore {
  position: absolute;
  left: 50%;
  top: calc(50% + 12px);
  transform: translateX(-50%);
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--grey-2);
  white-space: nowrap;
}
#hudScore small { font-size: 9.5px; letter-spacing: 0.12em; color: var(--grey); margin-left: 4px; }
body.in-arena #hudScore { display: none; } /* co-op beta: sem pontuação */
.hud-r { display: flex; align-items: center; gap: 2px; }
#lvl { margin-right: 6px; color: var(--off); }

.icon-btn {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--grey-2);
  border-radius: 50%;
}
.icon-btn:active { color: var(--off); background: rgba(236, 232, 225, 0.08); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .ic-off { display: none; }
body.muted .icon-btn .ic-on { display: none; }
body.muted .icon-btn .ic-off { display: block; }
.icon-btn.corner {
  position: absolute;
  right: calc(var(--sar) + 10px);
  bottom: calc(var(--sab) + 10px);
}

/* ---------- boss bar ---------- */
#bossbar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--sab) + 26px);
  width: min(64vw, 340px);
  transform: translate(-50%, 6px);
  display: grid;
  gap: 7px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#bossbar.show { opacity: 1; transform: translate(-50%, 0); }
#bossName { font-size: 11px; letter-spacing: 0.32em; color: var(--grey-2); text-align: center; }
#bossbar .track { height: 2px; background: rgba(236, 232, 225, 0.12); overflow: hidden; }
#bossbar .track i { display: block; height: 100%; background: var(--off); transform-origin: 0 50%; transition: transform 0.1s linear; }
#bossbar.p2 .track i { background: var(--hp); }
/* marcas dos damage gates (70% e 35%) */
#bossbar .track { position: relative; }
#bossbar .track::before, #bossbar .track::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--black); z-index: 1; }
#bossbar .track::before { left: 35%; }
#bossbar .track::after { left: 70%; }
#bossbar.p3 #bossName { color: var(--warn); }
/* teto do capítulo: XP cheia e guardada */
#hud.gated #xpFill { background: var(--grey-2); animation: gatePulse 1.4s ease-in-out infinite alternate; }
@keyframes gatePulse { from { opacity: 0.55; } to { opacity: 1; } }
.dbg-balance {
  position: fixed; left: 6px; top: 58px; z-index: 40; margin: 0; padding: 6px 8px; max-width: calc(100vw - 12px);
  font: 10px/1.45 ui-monospace, Menlo, Consolas, monospace; color: var(--grey-2);
  background: rgba(0, 0, 0, 0.6); pointer-events: none; white-space: pre-wrap;
}

/* ---------- toast / hint ---------- */
#toast {
  position: fixed;
  left: 50%;
  top: calc(var(--sat) + 70px);
  transform: translate(-50%, -4px);
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  width: max-content;
  max-width: 86vw;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
  z-index: 20;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toastA { font-size: 11px; color: var(--grey-2); letter-spacing: 0.06em; }
#toastB { font-size: 15px; color: var(--off); letter-spacing: 0.28em; padding-left: 0.28em; }
#toast.syn #toastB { color: var(--amber); }
#toastC { display: block; }

#hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--sab) + 18vh);
  text-align: center;
  font-size: 13px;
  color: var(--grey-2);
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
#hint.show { opacity: 1; }

/* ---------- screens ---------- */
.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--sat) + 24px) calc(var(--sar) + 22px) calc(var(--sab) + 24px) calc(var(--sal) + 22px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  overflow-y: auto;
  touch-action: pan-y;
}
.screen.show { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
/* v22 · telas de pausa, resultado e oferta entram com o mesmo movimento curto das cartas */
.screen.show > .panel, .screen.show > .over-inner { animation: panelIn 0.28s cubic-bezier(.2, .7, .2, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen.show > .panel, .screen.show > .over-inner, #levelup.show::before, .card.picked { animation: none; } }

.btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 19px 20px;
  border: 1px solid var(--off);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--off);
  position: relative;
  transition: background 0.12s, color 0.12s;
}
.btn::before, .btn::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 1px;
  background: var(--off);
}
.btn::before { left: -8px; }
.btn::after { right: -8px; }
.btn:active, .btn.pressed { background: var(--off); color: var(--black); }
@media (hover: hover) { .btn:hover { background: rgba(236, 232, 225, 0.08); } .btn:hover:active { background: var(--off); } }
.btn.ghost { border-color: var(--line); color: var(--grey-2); margin-top: 12px; }
.btn.ghost::before, .btn.ghost::after { display: none; }
.btn.link {
  border: 0;
  margin-top: 14px;
  padding: 12px;
  width: auto;
  color: var(--grey);
  letter-spacing: 0.06em;
  text-indent: 0;
  font-size: 13px;
}
.btn.link::before, .btn.link::after { display: none; }
.btn.link:active { background: none; color: var(--off); }

/* wordmark */
.wordmark { display: block; width: min(76vw, 340px); height: auto; margin: 0 auto; overflow: visible; }
.wordmark.small { width: min(48vw, 200px); }
.wm-strokes { fill: none; stroke: var(--off); stroke-width: 1.05; stroke-linecap: square; stroke-linejoin: miter; }
.wordmark.small .wm-strokes { stroke-width: 1.15; }

/* ---------- menu ---------- */
/* v17: o menu rola como uma página curta — a PRIMEIRA DOBRA (.menu-fold, altura da tela) tem só o menu, o crédito e
   o botão de som; o texto sobre o jogo (.about) vem logo abaixo, ao rolar. Nada se sobrepõe. */
#menu { background: rgba(0, 0, 0, 0.45); display: block; padding: 0; overscroll-behavior: contain; }
.menu-fold {
  position: relative; display: flex; flex-direction: column; align-items: center;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--sat) + 24px) calc(var(--sar) + 22px) calc(var(--sab) + 54px) calc(var(--sal) + 22px);
}
/* centraliza com margens automáticas: se o conteúdo não couber (telas baixas), rola a partir do topo em vez de
   cortar o começo (flex + align-items: center corta o topo quando há overflow) */
.menu-inner { width: 100%; max-width: 380px; text-align: center; margin: auto 0; }
.menu-inner .wordmark .wm-strokes path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.9s cubic-bezier(.6, 0, .2, 1) forwards; }
.menu-inner .wordmark .wm-strokes path:nth-child(2) { animation-delay: 0.05s; }
.menu-inner .wordmark .wm-strokes path:nth-child(3) { animation-delay: 0.1s; }
.menu-inner .wordmark .wm-strokes path:nth-child(4) { animation-delay: 0.15s; }
.menu-inner .wordmark .wm-strokes path:nth-child(5) { animation-delay: 0.2s; }
.menu-inner .wordmark .wm-strokes path:nth-child(6) { animation-delay: 0.25s; }
.menu-inner .wordmark .wm-strokes path:nth-child(7) { animation-delay: 0.3s; }
.menu-inner .wordmark .wm-strokes path:nth-child(8) { animation-delay: 0.35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.line {
  position: relative;
  width: min(76vw, 340px);
  height: 14px;
  margin: 30px auto 0;
}
.line .rail { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: rgba(236, 232, 225, 0.28); }
.line .st {
  position: absolute;
  top: 3px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(236, 232, 225, 0.5);
  background: var(--black);
  border-radius: 50%;
  transform: translateX(-50%);
}
.line .st:nth-of-type(2) { left: 0%; }
.line .st:nth-of-type(3) { left: 25%; }
.line .st:nth-of-type(4) { left: 50%; }
.line .st:nth-of-type(5) { left: 75%; }
.line .st.last { left: 100%; width: 11px; height: 11px; top: 1px; border-color: var(--off); background: var(--off); box-shadow: 0 0 0 3px var(--black), 0 0 0 4px rgba(236, 232, 225, 0.4); }
.line .runner {
  position: absolute;
  top: 5px;
  left: 0;
  width: 14px;
  height: 3px;
  background: var(--xp);
  box-shadow: 0 0 10px rgba(127, 224, 196, 0.8);
  animation: run 5.5s cubic-bezier(.55, 0, .35, 1) infinite;
}
@keyframes run {
  0% { left: 0; opacity: 0; }
  6% { opacity: 1; }
  22% { left: calc(25% - 7px); }
  30% { left: calc(25% - 7px); }
  46% { left: calc(50% - 7px); }
  54% { left: calc(50% - 7px); }
  70% { left: calc(75% - 7px); }
  78% { left: calc(75% - 7px); }
  94% { left: calc(100% - 14px); opacity: 1; }
  100% { left: calc(100% - 14px); opacity: 0; }
}
.tag { margin-top: 26px; margin-bottom: 46px; font-size: 14px; color: var(--grey-2); letter-spacing: 0.01em; }
.best { margin-top: 30px; display: flex; justify-content: center; align-items: baseline; gap: 12px; font-size: 12px; color: var(--grey); }
.best b { font-weight: 400; color: var(--off); font-size: 15px; letter-spacing: 0.06em; }

/* ---------- level up ---------- */
/* v21 · mesma carta escura e o mesmo marcador lateral de antes; dentro dela, a ordem de leitura: nome · benefício ·
   atual → depois · nível · sinergia. Celular primeiro (uma coluna compacta); a partir de 760 px, cartas lado a lado. */
#levelup { background: rgba(0, 0, 0, 0.72); z-index: 21; }
/* v22 · ao subir de nível, um pulso fino sai da bactéria (centro da câmera) antes das cartas */
#levelup::before { content: ""; position: fixed; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%;
  border: 1px solid rgba(111, 208, 245, 0.55); opacity: 0; pointer-events: none; }
#levelup.show:not(.extreme)::before { animation: luPulse 0.55s ease-out; }
@keyframes luPulse { from { opacity: 0.8; transform: scale(0.15); } to { opacity: 0; transform: scale(1.7); } } /* v21: aviso do jogo (toast) fica atrás do véu, como a arena — nada disputa a leitura das cartas */
.lu-inner { width: 100%; max-width: 440px; }
.lu-head { font-size: 13px; color: var(--grey-2); margin-bottom: 16px; display: flex; align-items: baseline; gap: 10px; }
.lu-head b { color: var(--xp); font-weight: 400; font-size: 26px; letter-spacing: 0.02em; }
#cards { display: grid; gap: 10px; }
#cards.locked { pointer-events: none; }
.card {
  --acc: var(--off);
  display: grid;
  align-content: start;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 13px 16px 13px 18px;
  text-align: left;
  background: rgba(20, 21, 24, 0.94);
  border: 1px solid var(--line);
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  animation: cardIn 0.24s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: var(--d, 0ms);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.card::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: var(--acc); transition: width 0.15s ease; }
@keyframes cardIn { to { opacity: 1; transform: none; } }
@media (hover: hover) { .card:hover { border-color: rgba(236, 232, 225, 0.36); background: rgba(28, 29, 33, 0.96); } .card:hover::before { width: 3px; } }
.card:active { background: var(--off); color: var(--black); }
.card:active .c-desc, .card:active .c-lvl, .card:active .c-lv0, .card:active .c-lvl b, .card:active .c-delta, .card:active .c-delta span,
.card:active .c-syn, .card:active .c-cost, .card:active .c-sci, .card:active .c-free, .card:active .c-dim { color: #333; }
.c-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; min-width: 0; } /* v28: se o nome científico não couber ao lado do nível, o nível desce */
/* v22 · cabeçalho discreto: ícone de linha + categoria, na cor da categoria; o corpo da carta continua escuro */
.c-kind { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--acc); opacity: 0.9; margin-bottom: 1px; }
.c-kind svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.card:active .c-kind { color: #333; }
/* carta escolhida: um toque curto de luz enquanto a tela some (sem atrasar o jogo) */
.card.picked { animation: cardPick 0.24s ease-out forwards; }
@keyframes cardPick { 0% { opacity: 1; transform: scale(0.985); background: rgba(236, 232, 225, 0.12); } 100% { opacity: 1; transform: none; background: rgba(28, 29, 33, 0.96); border-color: var(--acc); } }
.c-name { font-size: 16.5px; font-weight: 500; letter-spacing: 0.01em; min-width: min(100%, min-content); overflow-wrap: break-word; hyphens: manual; } /* v28: nome científico longo quebra entre palavras, nunca no meio */
.c-lvl { font-size: 12.5px; letter-spacing: 0.06em; color: var(--grey); white-space: nowrap; }
.c-lvl b { font-weight: 500; color: var(--acc); }
.c-lv0 { color: var(--grey-2); }
.c-new { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-2); margin-right: 2px; }
.c-max { color: var(--grey-2); letter-spacing: 0.02em; }
.c-desc { font-size: 13px; line-height: 1.35; color: var(--grey-2); }
.c-delta { font-size: 14px; line-height: 1.35; color: var(--grey-2); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.c-arr { color: var(--grey); }
.c-to { color: var(--xp); font-weight: 500; }
/* v28 · ganho do próximo nível (calculado): a linha numérica principal; o "A → B" fica logo abaixo, menor */
.c-gain { font-size: 14.5px; line-height: 1.3; font-weight: 500; color: var(--xp); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.c-gain + .c-delta { font-size: 13px; color: var(--grey); }
.c-gain + .c-delta .c-to { font-weight: 400; color: var(--grey-2); }
.card:active .c-gain { color: #111; }
.c-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; min-height: 8px; }
.c-pips { display: flex; gap: 3px; flex: none; }
.c-pips i { width: 6px; height: 6px; border: 1px solid rgba(236, 232, 225, 0.3); }
.c-pips i.on { background: var(--acc); border-color: var(--acc); }
.c-pips i.new { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.c-pips i.cap { margin-right: 5px; } /* Extremo: depois do máximo normal, os níveis além (até VIII) */
.c-syn { font-size: 11.5px; line-height: 1.35; color: var(--grey); }
.c-syn.on { color: var(--amber); }
.c-cost { font-size: 11.5px; color: var(--grey); }
.c-sci { display: none; font-size: 11.5px; line-height: 1.4; color: var(--grey); font-style: italic; margin-top: 4px; }
/* build atual: uma faixa fina abaixo das cartas (no celular, nomes curtos) */
.lu-build { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line);
  font-size: 11.5px; line-height: 1.3; color: var(--grey-2); }
.lu-build .lb-t { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey); margin-right: 2px; }
.lu-build > span:not(.lb-t) { white-space: nowrap; }
.lu-build i { display: inline-block; width: 2px; height: 8px; background: var(--acc); margin-right: 6px; vertical-align: -0.5px; }
.lu-build b { font-weight: 400; color: var(--off); letter-spacing: 0.04em; }
.lu-build .bl { display: none; }
@media (max-width: 759px) {
  .lu-build { gap: 4px 10px; font-size: 11px; margin-top: 12px; padding-top: 10px; }
  .lu-build i { margin-right: 5px; }
}
.lu-build .mut b { color: var(--amber); }
.lu-build .syn { font-size: 10px; letter-spacing: 0.14em; color: var(--amber); }
@media (min-width: 760px) {
  .lu-inner { max-width: 1000px; }
  #cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
  .card { padding: 18px 20px 18px 22px; gap: 6px; }
  .c-name { font-size: 17px; }
  .c-delta { font-size: 14.5px; }
  .c-gain { font-size: 15px; }
  .c-gain + .c-delta { font-size: 13px; }
  .c-sci { display: block; margin-top: auto; padding-top: 6px; }
  .lu-build { margin-top: 18px; gap: 6px 16px; font-size: 12px; }
  .lu-build .bl { display: inline; }
  .lu-build .bs { display: none; }
}
@media (min-width: 760px) and (max-height: 560px) {
  .card { padding: 12px 16px 12px 18px; gap: 3px; }
  .c-sci { display: none; }
  .lu-build { margin-top: 10px; padding-top: 8px; }
}

/* ---------- pause ---------- */
#pause { background: rgba(0, 0, 0, 0.78); }
.panel { width: 100%; max-width: 340px; text-align: center; }
.panel-title { font-size: 15px; letter-spacing: 0.3em; text-indent: 0.3em; margin-bottom: 22px; }
.panel .build { margin-bottom: 30px; }

.build { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.build span { font-size: 12px; padding: 5px 8px; border: 1px solid var(--line); color: var(--grey-2); }
.build span b { font-weight: 400; color: var(--off); margin-left: 4px; }
.build span.syn { border-color: rgba(255, 196, 107, 0.5); color: var(--amber); }
.build .empty { border: 0; color: var(--grey); }

/* ---------- results ---------- */
#over { background: transparent; align-items: flex-start; }
.over-inner { width: 100%; max-width: 340px; text-align: center; margin: auto 0; }
.run { margin: 14px 0 22px; font-size: 12px; color: var(--grey); }
.stats { text-align: left; border-top: 1px solid var(--line); }
.stats > div { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.stats dt { font-size: 13px; color: var(--grey-2); }
.stats dd { font-size: 15px; color: var(--off); letter-spacing: 0.04em; }
.stats .score dt { color: var(--off); }
.stats .score dd { font-size: 24px; color: var(--off); }
.stats .rec dd { color: var(--grey-2); }
#newRec { display: none; font-style: normal; font-size: 11px; color: var(--black); background: var(--xp); padding: 2px 6px; margin-left: 8px; vertical-align: 1px; }
#newRec.on { display: inline-block; }
.sub { margin: 12px 0 18px; font-size: 12px; color: var(--grey); text-align: left; }
#overBuild { margin-bottom: 26px; justify-content: flex-start; }

/* ---------- tema: última linha de defesa ---------- */
.subtitle { margin: 22px 0 -12px; font-size: 11px; letter-spacing: 0.32em; text-indent: 0.32em; text-transform: uppercase; color: #c6ea6a; opacity: 0.75; }
.tag { line-height: 1.55; }

/* ---------- Adaptação Extrema (escolha em dois passos) ---------- */
/* lista longa no celular: fundo quase opaco e acima do aviso (toast), para nada do jogo vazar por trás do texto */
#levelup.extreme { align-items: flex-start; background: rgba(0, 0, 0, 0.93); z-index: 21; }
#levelup.extreme .lu-inner { margin: auto 0; }
.lu-x { margin-bottom: 16px; }
.lu-x-title { font-size: 13px; letter-spacing: 0.3em; color: var(--amber); }
.lu-x-text { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--grey-2); }
.lu-x-step { margin-top: 14px; font-size: 12px; letter-spacing: 0.16em; color: var(--off); display: grid; gap: 4px; }
.lu-x-up { font-size: 12px; letter-spacing: 0.04em; color: var(--xp); }
.card.xup .c-lvl { white-space: nowrap; }
.c-dim { font-style: normal; color: var(--grey); }
#cards.xsac-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
.xsac {
  --acc: var(--off);
  display: grid; align-content: start; gap: 3px; min-height: 64px; min-width: 0; padding: 10px 10px 10px 12px;
  text-align: left; background: rgba(20, 21, 24, 0.94); border: 1px solid var(--line); position: relative; color: var(--off);
}
.xsac::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: var(--acc); }
.xsac:active { background: var(--off); color: var(--black); }
@media (hover: hover) { .xsac:hover { border-color: rgba(236, 232, 225, 0.4); } }
.xs-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
.xs-name { font-size: 14px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.xs-lvl { font-size: 12px; letter-spacing: 0.06em; color: var(--acc); white-space: nowrap; }
.xs-desc { font-size: 11.5px; line-height: 1.35; color: var(--grey-2); }
.xs-warn { font-size: 11px; line-height: 1.35; color: var(--amber); }
.xsac:active .xs-lvl, .xsac:active .xs-desc, .xsac:active .xs-warn { color: #333; }
.xsac .c-to { color: var(--off); font-weight: 400; } /* sacrifício: o valor que cai não ganha a cor de melhora */
.xsac:active .c-delta span { color: #333; }
.xsac.back { grid-column: 1 / -1; min-height: 46px; align-content: center; text-align: center; border-style: dashed;
  font-size: 12px; letter-spacing: 0.3em; text-indent: 0.3em; color: var(--grey-2); }
.xsac.back::before { display: none; }
#cards.locked .xsac { pointer-events: none; }
.build span.over b { color: var(--amber); }
.build span.xtr { letter-spacing: 0.12em; }
@media (max-width: 340px) { #cards.xsac-grid { grid-template-columns: 1fr; } }
@media (min-width: 760px) { #cards.xsac-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } #levelup.extreme .lu-x { max-width: 640px; } }
/* v17 · seleção pelo TECLADO (desktop): sem o contorno azul padrão do navegador — borda clara, fundo um tom acima
   e o marcador lateral mais largo. Mouse e toque não mostram nada disso. */
.card:focus, .xsac:focus { outline: none; }
.card.kb, .xsac.kb { border-color: rgba(236, 232, 225, 0.72); background: rgba(34, 35, 40, 0.97); box-shadow: 0 0 0 1px rgba(236, 232, 225, 0.22); }
.card.kb::before, .xsac.kb::before { width: 4px; }
.xsac.back.kb { color: var(--off); border-style: solid; }
/* v19 · carta sem custo da Adaptação Extrema (mutação) e adaptações dominadas (VIII alguma vez) */
.card.xmut { border-style: dashed; }
.c-free { font-style: normal; color: var(--amber); letter-spacing: 0.04em; white-space: nowrap; }
.card:active .c-free { color: #333; }
.build span.mut { border-style: dashed; }
.build span.mut b { color: var(--amber); }
.build span.m { border-color: rgba(255, 196, 107, 0.38); }
.xs-m { font-style: normal; font-size: 10px; font-weight: 400; letter-spacing: 0.08em; color: var(--amber); margin-left: 3px; }

/* ---------- resultado: trecho e compartilhar ---------- */
.sub.stage { margin: 10px 0 6px; color: var(--grey-2); letter-spacing: 0.04em; }
.share-msg { min-height: 1.4em; margin-top: 4px; font-size: 12px; color: var(--grey-2); text-align: center; }

/* ---------- links do site (menu) e sem-JS ---------- */
.wm-h1 { margin: 0; font-size: inherit; line-height: 0; }
/* texto real do H1 (o logo SVG é decorativo): técnica padrão "sr-only", lido por leitores de tela */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.menu-links {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px;
  font-size: 12px; letter-spacing: 0.04em;
}
.menu-links a { color: var(--grey-2); text-decoration: none; padding: 6px 2px; border-bottom: 1px solid transparent; }
.menu-links a:hover, .menu-links a:focus-visible { color: var(--off); border-bottom-color: rgba(236, 232, 225, 0.35); outline: none; }
/* SOBRE O JOGO (homepage, logo abaixo da primeira dobra): conteúdo real e visível, discreto — largura controlada,
   tipografia menor que o botão principal, muito respiro, sem cartão nem faixa; um traço curto como no trilho do menu */
.about {
  position: relative; max-width: 460px; margin: 0 auto; text-align: center;
  padding: 64px calc(var(--sar) + 30px) calc(var(--sab) + 96px) calc(var(--sal) + 30px);
}
.about::before { content: ""; display: block; width: 28px; height: 1px; margin: 0 auto 26px; background: rgba(198, 234, 106, 0.55); }
.about-kicker { font-size: 10.5px; letter-spacing: 0.34em; text-indent: 0.34em; text-transform: uppercase; color: var(--grey); }
.about-title { margin: 14px 0 0; font-size: 14px; font-weight: 400; letter-spacing: 0.16em; text-indent: 0.16em; color: var(--off); }
.about-text { margin: 18px auto 0; max-width: 380px; font-size: 12.5px; line-height: 1.75; color: var(--grey-2); letter-spacing: 0.01em; }
.about-text strong { font-weight: 500; color: var(--off); letter-spacing: 0.04em; }
.about-facts { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px;
  font-size: 11px; letter-spacing: 0.05em; color: #c6ea6a; opacity: 0.8; }
.about-facts span { white-space: nowrap; }
.about-facts .sep { color: var(--grey); }
/* v19 · seções editoriais da home (abaixo da dobra): o mesmo bloco discreto do "Sobre o jogo", repetido em poucas
   seções curtas — traço curto, rótulo, título espaçado, texto cinza; links no tom lima do site. Sem imagens, sem JS
   pesado: o top 3 da temporada só é buscado quando a seção aparece (home.js). */
.home-ed .about { padding-bottom: 0; }
.home-ed .about.ed { padding-top: 56px; }
.home-ed .about.ed-last { padding-bottom: calc(var(--sab) + 72px); }
.ed-more { margin-top: 16px; font-size: 12px; letter-spacing: 0.04em; }
.ed-more a, .ed-links a, .ed-foot a { color: #c6ea6a; text-decoration: none; border-bottom: 1px solid rgba(198, 234, 106, 0.3); padding: 4px 0; }
.ed-more a::after { content: " →"; }
.ed-more a:hover, .ed-links a:hover, .ed-foot a:hover, .ed-more a:focus-visible, .ed-links a:focus-visible, .ed-foot a:focus-visible { border-bottom-color: #c6ea6a; outline: none; }
.ed-links { list-style: none; margin: 18px auto 0; padding: 0; max-width: 380px; display: grid; gap: 12px; text-align: left; }
.ed-links li { display: grid; gap: 2px; padding-left: 12px; border-left: 1px solid var(--line); }
.ed-links a { justify-self: start; font-size: 13px; letter-spacing: 0.04em; padding: 2px 0; }
.ed-links span { font-size: 12px; line-height: 1.5; color: var(--grey); }
.ed-top { list-style: none; margin: 18px auto 0; padding: 0; max-width: 340px; display: grid; gap: 6px; }
.ed-top li { display: grid; grid-template-columns: 2.4em 1fr auto; align-items: baseline; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); text-align: left; font-size: 12.5px; }
.ed-top .p { color: var(--grey); }
.ed-top .n { color: var(--off); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-top .s { color: #c6ea6a; letter-spacing: 0.04em; }
.ed-rank { margin-top: 10px; }
.ed-foot { margin-top: 44px; font-size: 11px; letter-spacing: 0.06em; color: var(--grey); display: flex; justify-content: center; align-items: baseline; gap: 10px; }
.ed-foot a { color: var(--grey-2); border-bottom-color: transparent; }
.noscript { position: fixed; inset: auto 0 0 0; z-index: 50; padding: 18px 20px; background: #0b0c10; color: #ece8e1; font: 14px/1.6 system-ui, sans-serif; text-align: center; }
.noscript a { color: #c6ea6a; }

/* ---------- assinatura de autoria (menu) ---------- */
.credit {
  position: absolute; /* no pé da PRIMEIRA dobra (.menu-fold), nunca sobre o texto do jogo */
  left: 0;
  right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  margin: 0 auto;
  max-width: calc(100% - 140px); /* não encosta no botão de som do canto */
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--grey);
  pointer-events: none;
}
.credit a {
  display: inline-block;
  padding: 10px 2px; /* área de toque confortável sem aumentar o texto */
  margin: -10px 0;
  color: var(--grey-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  pointer-events: auto;
}
.credit a:hover, .credit a:focus-visible { color: var(--off); border-bottom-color: rgba(236, 232, 225, 0.35); outline: none; }

/* ---------- fim da linha (continuação) ---------- */
#offer { background: transparent; }
.offer-stats { font-size: 15px; letter-spacing: 0.08em; color: var(--off); margin: -6px 0 10px; }
.offer-sub { font-size: 12px; line-height: 1.5; color: var(--grey); margin-bottom: 28px; }
.btn small { display: block; margin-top: 6px; font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-indent: 0; color: var(--grey-2); }
.btn:active small { color: #333; }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.offer-msg { min-height: 1.5em; margin-top: 16px; font-size: 12px; color: var(--grey-2); }
.sub.note { margin-top: -8px; color: var(--grey-2); line-height: 1.5; }
.ad-mock {
  position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; gap: 12px; padding: 24px;
  background: var(--graphite); text-align: center; font-size: 13px; color: var(--grey-2);
}

/* ---------- ranking global ---------- */
.menu-rank { margin: 14px auto 0; }
.mr-num { color: var(--grey-2); }

.over-links { display: flex; justify-content: center; gap: 6px; }
.over-links .btn.link { margin-left: 0; margin-right: 0; }

.net { margin: 0 0 22px; text-align: left; }
.net-status { display: flex; align-items: baseline; gap: 9px; font-size: 12px; line-height: 1.5; color: var(--grey-2); }
.net-status::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--grey);
  transform: translateY(-1px);
}
.net-status[data-tone="busy"]::before { border-color: var(--grey-2); animation: netBlink 0.9s ease-in-out infinite alternate; }
.net-status[data-tone="ok"]::before { background: var(--off); border-color: var(--off); }
.net-status[data-tone="best"] { color: var(--off); }
.net-status[data-tone="best"]::before { background: var(--xp); border-color: var(--xp); box-shadow: 0 0 8px rgba(127, 224, 196, 0.7); }
.net-status[data-tone="warn"]::before { border-color: var(--amber); }
@keyframes netBlink { to { background: var(--grey-2); } }
#netAction .btn.ghost { margin-top: 14px; }

.name-form { margin-top: 14px; text-align: left; }
.name-label { display: block; font-size: 12px; color: var(--grey-2); margin-bottom: 8px; }
.name-input {
  display: block;
  width: 100%;
  padding: 14px 14px;
  font: inherit;
  font-size: 16px; /* 16px evita zoom automático no iOS */
  letter-spacing: 0.06em;
  color: var(--off);
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-user-select: text;
  user-select: text;
  caret-color: var(--xp);
}
.name-input:focus { border-color: rgba(236, 232, 225, 0.55); }
.name-input[aria-invalid="true"] { border-color: rgba(239, 91, 76, 0.7); }
.name-hint { margin: 8px 0 16px; font-size: 11px; color: var(--grey); line-height: 1.4; }
.name-hint.err { color: var(--hp); }
.name-form .btn { max-width: none; }
.name-form .btn.link { display: block; margin: 6px auto 0; }

#ranking { background: var(--black); align-items: flex-start; z-index: 12; }
.rk-inner { width: 100%; max-width: 400px; margin: auto 0; text-align: center; }
.rk-head { margin-bottom: 18px; }
.rk-head .panel-title { font-weight: 400; margin-bottom: 8px; outline: none; }
.rk-sub { font-size: 12px; color: var(--grey); letter-spacing: 0.06em; }
/* v22 · marcador da temporada vigente */
.rk-cur { font-style: normal; display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid rgba(111, 208, 245, 0.45); color: var(--xp); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; vertical-align: 1px; }
/* v20 · histórico de temporadas no ranking: dois textos discretos, a atual sublinhada */
.rk-seasons { margin-top: 10px; display: flex; justify-content: center; gap: 4px 16px; flex-wrap: wrap; }
.rk-season { padding: 6px 2px; font-size: 12px; letter-spacing: 0.08em; color: var(--grey); border-bottom: 1px solid transparent; }
.rk-season[aria-pressed="true"] { color: var(--off); border-bottom-color: rgba(236, 232, 225, 0.5); }
@media (hover: hover) { .rk-season:hover { color: var(--grey-2); } }

.rk-state { padding: 34px 0 30px; display: grid; gap: 6px; }
.rk-state-a { font-size: 13px; letter-spacing: 0.2em; text-indent: 0.2em; text-transform: uppercase; color: var(--grey-2); }
.rk-state-b { font-size: 12px; color: var(--grey); }
.rk-note { margin-top: 12px; font-size: 12px; color: var(--grey); }

/* a lista é uma linha de metrô: cada posição é uma estação */
.rk-list { position: relative; list-style: none; text-align: left; border-top: 1px solid var(--line); }
.rk-list:empty { display: none; }
.rk-list::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(236, 232, 225, 0.16);
}
.rk-list.solo::before { display: none; }
.rk-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 4px;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--line);
}
.rk-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(236, 232, 225, 0.4);
  background: var(--black);
  box-sizing: border-box;
}
.rk-row.top::before { border-color: var(--off); background: var(--off); }
.rk-row.me { background: linear-gradient(90deg, rgba(127, 224, 196, 0.07), rgba(127, 224, 196, 0) 80%); }
.rk-row.me::before { border-color: var(--xp); background: var(--xp); box-shadow: 0 0 8px rgba(127, 224, 196, 0.7); }
.rk-pos { min-width: 3.1ch; font-size: 12px; color: var(--grey); letter-spacing: 0.04em; }
.rk-row.top .rk-pos { color: var(--off); }
.rk-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.rk-n {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off);
}
.rk-row:not(.top):not(.me) .rk-n { color: #d4d0c9; }
.rk-you-tag { flex: none; font-size: 10px; color: var(--xp); letter-spacing: 0.08em; }
.rk-score { font-size: 15px; color: var(--off); letter-spacing: 0.04em; }
.rk-meta { grid-column: 2 / -1; font-size: 11px; color: var(--grey); letter-spacing: 0.02em; line-height: 1.5; }

.rk-me { margin-top: 26px; text-align: left; }
.rk-label { font-size: 12px; color: var(--grey-2); margin-bottom: 8px; }

.rk-you { margin: 26px 0 6px; font-size: 12px; color: var(--grey); text-align: center; }
.rk-you-line { color: var(--grey-2); }
.rk-you-name { font-weight: 400; color: var(--off); letter-spacing: 0.08em; text-transform: uppercase; margin-left: 4px; }
.rk-you-note { margin-top: 4px; line-height: 1.5; }
.rk-you .btn.ghost { margin-top: 14px; }
.btn.link.rk-small { margin: 2px auto 0; padding: 10px 12px; font-size: 12px; }
.rk-you .name-form { max-width: 300px; margin: 6px auto 0; }
#rkRefresh { margin-top: 18px; }

@media (max-width: 360px) {
  .rk-row { column-gap: 10px; padding-left: 20px; }
  .rk-n { font-size: 13px; letter-spacing: 0.06em; }
  .rk-score { font-size: 14px; }
}

@media (max-height: 700px) {
  .tag { margin-top: 18px; margin-bottom: 32px; }
  .stats > div { padding: 8px 0; }
  .run { margin: 10px 0 14px; }
  .card { padding-top: 9px; padding-bottom: 9px; gap: 3px; }
  .c-kind { line-height: 1; margin-bottom: 0; }
  .c-foot { margin-top: 2px; }
  .lu-x { margin-bottom: 10px; }
  .lu-x-step { margin-top: 8px; }
}

@media (max-height: 660px) {
  /* telas baixas: o crédito entra no fluxo, abaixo do conteúdo, em vez de flutuar sobre ele */
  .menu-fold { padding-bottom: calc(var(--sab) + 18px); }
  .credit { position: static; max-width: none; margin: 18px auto 0; flex: none; }
}
@media (max-height: 600px) {
  .tag { margin-top: 14px; margin-bottom: 22px; }
  .best { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .line .runner { animation: none; left: calc(100% - 14px); }
  .menu-inner .wordmark .wm-strokes path { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; }
  .card { animation-duration: 0.01s; }
  .net-status[data-tone="busy"]::before { animation: none; }
  #hud.gated #xpFill { animation: none; }
}

/* ---------- multiplayer (etapa 1) ---------- */
.btn.mp-entry { margin-top: 12px; letter-spacing: 0.32em; }
.mp-panel { max-width: 340px; }
.mp-sub { margin: -12px 0 18px; font-size: 13px; color: var(--grey-2); }
.mp-msg { min-height: 1.3em; margin: 0 0 12px; font-size: 13px; color: var(--grey-2); }
.mp-msg[data-tone="warn"] { color: var(--amber); }
.mp-code { margin: 18px 0 6px; text-align: left; }
.mp-label { display: block; font-size: 12px; letter-spacing: 0.08em; color: var(--grey-2); margin-bottom: 6px; }
.mp-code-row { display: flex; gap: 8px; align-items: stretch; }
.mp-code-row .btn { margin: 0; flex: 0 0 auto; width: auto; padding: 0 16px; }
.mp-input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 12px; background: transparent; border: 1px solid var(--line); color: var(--off);
  font-size: 20px; letter-spacing: 0.3em; text-transform: uppercase; border-radius: 0; }
.mp-input:focus { outline: none; border-color: var(--off); }
.mp-code-big { margin: -6px 0 18px; font-size: 34px; letter-spacing: 0.32em; text-indent: 0.32em; color: var(--off); }
.mp-list { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--line); text-align: left; }
.mp-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mp-list li.empty { color: var(--grey); font-style: italic; justify-content: center; }
.mp-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--off); }
.mp-n small { margin-left: 8px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-2); }
.mp-s { flex: 0 0 auto; font-size: 11px; letter-spacing: 0.16em; color: var(--grey-2); }
.mp-s[data-tone="on"] { color: #c6ea6a; }
.mp-s[data-tone="off"] { color: var(--amber); }
.mp-hint { min-height: 1.3em; margin: 0 0 6px; font-size: 12.5px; color: var(--grey-2); word-break: break-all; }
.mp-status { min-height: 1.2em; margin: 10px 0 0; font-size: 11.5px; letter-spacing: 0.06em; color: var(--grey); }
.mp-status[data-tone="warn"] { color: var(--amber); }
.mp-count { margin: 4px 0 10px; font-size: 56px; line-height: 1; color: var(--off); }
#mpLobby .btn + .btn { margin-top: 10px; }
.mp-hud { position: fixed; inset: 0 0 auto 0; z-index: 4; pointer-events: none; display: none;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) calc(env(safe-area-inset-right, 0px) + 14px) 0 calc(env(safe-area-inset-left, 0px) + 14px); }
.mp-hud.show { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mp-hud-leave { pointer-events: auto; margin: 0; padding: 8px 2px; font-size: 13px; }
/* selo discreto de beta (só aparece em quem abriu ?multiplayer ou um convite) */
.mp-beta { display: inline-block; margin: 0 0 10px; padding: 2px 9px; font-size: 10px; line-height: 1.5; letter-spacing: 0.26em;
  text-indent: 0.26em; color: var(--amber); border: 1px solid currentColor; border-radius: 999px; opacity: 0.8; }
.mp-beta-tag { margin-left: 6px; font-size: 0.72em; letter-spacing: 0.18em; color: var(--amber); opacity: 0.85; vertical-align: 1px; }
.mp-beta-hud { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 18px); transform: translateX(-50%);
  margin: 0; font-size: 9px; opacity: 0.55; pointer-events: none; }
.mp-hud-msg { margin: 8px 0 0; font-size: 12px; letter-spacing: 0.04em; color: var(--amber); text-align: right; }
.dbg-mp { position: fixed; left: 8px; bottom: 8px; z-index: 50; margin: 0; padding: 8px 10px; max-width: calc(100vw - 16px);
  font: 11px/1.45 ui-monospace, Menlo, monospace; color: #cfe; background: rgba(0,0,0,0.72); pointer-events: none; white-space: pre-wrap; }

/* ---------- multiplayer co-op (v18) ---------- */
.fx-toggle { font-size: 12px; letter-spacing: 0.08em; }
#pause .fx-toggle { margin-top: 6px; }
/* arena: a barra do solo vira a barra da Colônia (sem pausa no online) */
body.in-arena #btnPause { display: none; }
body.in-arena .mp-hud.show { display: block; inset: 0; padding: 0; }
.mp-hud .mp-hud-leave { position: absolute; right: calc(var(--sar) + 14px); top: calc(var(--sat) + 50px); }
.mp-hud .mp-beta-hud { top: calc(var(--sat) + 52px); }
.mp-hud .mp-hud-msg { position: absolute; right: calc(var(--sar) + 14px); top: calc(var(--sat) + 80px); max-width: 60vw; }
.mp-allies { position: absolute; left: calc(var(--sal) + 14px); top: calc(var(--sat) + 52px); list-style: none; display: grid; gap: 5px; pointer-events: none; }
.mp-allies li { display: grid; grid-template-columns: 14px auto; grid-template-rows: auto auto; column-gap: 6px; align-items: center; font-size: 10.5px; color: var(--grey-2); letter-spacing: 0.03em; }
.mp-allies li .mp-ri { grid-row: 1 / span 2; }
.mp-a-n { color: var(--off); max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-a-bar { display: block; width: 64px; height: 2px; background: rgba(236, 232, 225, 0.12); overflow: hidden; }
.mp-a-bar i { display: block; height: 100%; background: #c6ea6a; transform-origin: 0 50%; }
.mp-allies li small { grid-column: 2; font-size: 9.5px; color: var(--grey-2); }
.mp-allies li.down .mp-a-n, .mp-allies li.down small { color: var(--hp); }
.mp-allies li.off { opacity: 0.55; }
.mp-spec { position: absolute; left: 50%; bottom: calc(var(--sab) + 72px); transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; text-align: center;
  pointer-events: auto; cursor: pointer; padding: 10px 16px; background: rgba(8, 10, 14, 0.55); border: 1px solid var(--line); }
.mp-spec b { font-size: 12px; letter-spacing: 0.3em; color: var(--hp); font-weight: 600; }
.mp-spec span { font-size: 12px; color: var(--off); }
.mp-spec small { font-size: 10.5px; color: var(--grey-2); }
.mp-offer { position: absolute; left: 50%; bottom: calc(var(--sab) + 58px); transform: translateX(-50%); width: min(96vw, 580px); pointer-events: auto;
  padding: 8px; background: rgba(8, 10, 14, 0.82); border: 1px solid var(--line); }
.mp-offer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 2px 6px; font-size: 10.5px; letter-spacing: 0.18em; color: var(--off); }
.mp-offer-head small { font-size: 9.5px; letter-spacing: 0.04em; color: var(--grey-2); }
.mp-offer-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mp-card { display: grid; gap: 4px; align-content: start; text-align: left; padding: 8px; min-height: 64px; background: rgba(236, 232, 225, 0.04); border: 1px solid var(--line);
  color: var(--off); font: inherit; cursor: pointer; touch-action: manipulation; }
.mp-card:hover, .mp-card.kb, .mp-card:focus-visible { border-color: #c6ea6a; outline: none; background: rgba(198, 234, 106, 0.08); }
.mp-card-top { display: flex; justify-content: space-between; gap: 4px; align-items: baseline; }
.mp-card-top b { font-size: 11.5px; font-weight: 600; }
.mp-card-top em { font-style: normal; font-size: 10px; color: var(--grey-2); white-space: nowrap; }
.mp-card-d { font-size: 10.5px; line-height: 1.3; color: var(--grey-2); }
.mp-card small { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: #c6ea6a; }
.mp-offer-time { display: block; height: 2px; margin-top: 7px; background: rgba(236, 232, 225, 0.1); overflow: hidden; }
.mp-offer-time i { display: block; height: 100%; background: #c6ea6a; transform-origin: 0 50%; }
/* lobby: funções, troca e skins */
.mp-lobby-panel { max-width: 380px; }
.mp-roles-title { margin: -4px 0 12px; font-size: 11px; letter-spacing: 0.24em; color: #c6ea6a; }
.mp-roles-title.drawing { animation: mpDraw 0.5s ease-in-out infinite alternate; }
@keyframes mpDraw { from { opacity: 0.45; } to { opacity: 1; } }
.mp-list li { gap: 8px; }
.mp-list li canvas.mp-prev { flex: 0 0 auto; width: 40px; height: 40px; }
.mp-mid { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.mp-role { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; letter-spacing: 0.14em; color: var(--off); }
.mp-motto { font-size: 10.5px; color: var(--grey-2); letter-spacing: 0.02em; }
.mp-right { flex: 0 0 auto; display: grid; justify-items: end; gap: 3px; }
.mp-swap-btn { margin: 0; padding: 2px 0; font-size: 10.5px; }
.mp-glyph { font-style: normal; color: var(--grey-2); font-size: 10px; }
.mp-swap { margin: -4px 0 12px; padding: 10px; border: 1px solid #c6ea6a; display: grid; gap: 8px; }
.mp-swap p { font-size: 12px; color: var(--off); }
.mp-swap .btn { margin: 0; }
.mp-skins { margin: 0 0 12px; text-align: left; }
.mp-skin-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.mp-skin { display: grid; justify-items: center; gap: 2px; padding: 4px 0 5px; background: transparent; border: 1px solid var(--line); color: var(--grey-2); font: inherit; cursor: pointer; }
.mp-skin canvas { width: 36px; height: 36px; }
.mp-skin small { font-size: 7.5px; letter-spacing: 0.06em; }
.mp-skin.on { border-color: #c6ea6a; color: var(--off); }
/* ícones de função (forma; a cor só reforça) */
.mp-ri { display: inline-flex; gap: 1px; vertical-align: -2px; }
.mp-ri svg { width: 13px; height: 13px; }
.mp-ri.sm svg { width: 11px; height: 11px; }
.mp-ri-atk { color: #f3c78f; } .mp-ri-def { color: #a8d9c6; } .mp-ri-sup { color: #b9f2a6; } .mp-ri-ctl { color: #cbdb8c; }
/* resultado */
.mp-results { max-width: 560px; }
.mp-res-mode { margin: -10px 0 14px; font-size: 11px; letter-spacing: 0.2em; color: var(--grey-2); }
.mp-res-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin: 0 0 14px; text-align: left; }
.mp-res-team dt { font-size: 10px; letter-spacing: 0.08em; color: var(--grey-2); }
.mp-res-team dd { font-size: 15px; color: var(--off); }
.mp-res-wrap { overflow-x: auto; margin: 0 0 12px; }
.mp-res-table { width: 100%; border-collapse: collapse; font-size: 11px; color: var(--off); }
.mp-res-table th { font-weight: 500; font-size: 9.5px; letter-spacing: 0.06em; color: var(--grey-2); text-align: right; padding: 4px 5px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mp-res-table td { text-align: right; padding: 5px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mp-res-table th:nth-child(2), .mp-res-table td:nth-child(2) { text-align: left; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.mp-res-note { font-size: 11px; color: var(--grey-2); margin: 0 0 14px; }
@media (max-width: 400px) {
  .mp-card { padding: 6px; min-height: 58px; }
  .mp-card-top b { font-size: 10.5px; }
  .mp-card-d { font-size: 9.5px; }
  .mp-offer-head small { display: none; }
}

/* =========================================================
   v23 · EXPERIÊNCIA — mesma identidade, acabamento novo
   ========================================================= */
:root { --lime: #c6ea6a; --navy: rgba(10, 22, 38, 0.5); }

/* ---------- botões: "infecção" direcional ----------
   O preenchimento entra pelo lado onde o cursor entrou, com uma borda levemente irregular, e recua para o lado de
   saída. A camada .inf (criada pelo JS só durante a interação) repete o rótulo em tom escuro, então o texto muda de
   cor exatamente onde o preenchimento passa. Sem mudança de tamanho, sem atraso no clique. */
body.infx .btn:active, body.infx .btn.pressed { background: none; color: inherit; }
body.infx .btn:active small { color: var(--grey-2); }
@media (hover: hover) { body.infx .btn:hover, body.infx .btn:hover:active { background: none; } }
.btn { overflow: visible; }
.btn > .inf {
  position: absolute; inset: -1px; border: 1px solid transparent; box-sizing: border-box;
  padding: inherit; font: inherit; letter-spacing: inherit; text-indent: inherit; text-align: inherit; line-height: inherit;
  display: block; pointer-events: none; z-index: 1;
  background: var(--off); color: var(--black);
  clip-path: polygon(0 0, -6% 0, 0% 25%, -7% 50%, -3% 75%, -6% 100%, 0 100%);
  transition: clip-path 0.36s cubic-bezier(.4, 0, .2, 1);
}
.btn > .inf svg { stroke: currentColor; }
.btn > .inf small { color: #3a3a38; }
.btn.inf-on > .inf { transition-duration: 0.42s; transition-timing-function: cubic-bezier(.3, .6, .2, 1); }
.btn.inf-fast > .inf { transition-duration: 0.12s; }
.btn.inf-snap > .inf { transition: none !important; }
.btn[data-inf="l"] > .inf { clip-path: polygon(0 0, -6% 0, 0% 25%, -7% 50%, -3% 75%, -6% 100%, 0 100%); }
.btn[data-inf="r"] > .inf { clip-path: polygon(100% 0, 106% 0, 100% 25%, 107% 50%, 103% 75%, 106% 100%, 100% 100%); }
.btn[data-inf="t"] > .inf { clip-path: polygon(0 0, 0 -12%, 25% 0%, 50% -16%, 75% -4%, 100% -10%, 100% 0); }
.btn[data-inf="b"] > .inf { clip-path: polygon(0 100%, 0 112%, 25% 100%, 50% 116%, 75% 104%, 100% 110%, 100% 100%); }
.btn.inf-on[data-inf="l"] > .inf { clip-path: polygon(0 0, 104% 0, 108% 25%, 103% 50%, 107% 75%, 104% 100%, 0 100%); }
.btn.inf-on[data-inf="r"] > .inf { clip-path: polygon(100% 0, -4% 0, -8% 25%, -3% 50%, -7% 75%, -4% 100%, 100% 100%); }
.btn.inf-on[data-inf="t"] > .inf { clip-path: polygon(0 0, 0 112%, 25% 124%, 50% 108%, 75% 120%, 100% 110%, 100% 0); }
.btn.inf-on[data-inf="b"] > .inf { clip-path: polygon(0 100%, 0 -12%, 25% -24%, 50% -8%, 75% -20%, 100% -10%, 100% 100%); }
/* secundários: variação discreta — o mesmo avanço direcional, só que translúcido (ghost) ou só o texto + traço (link) */
.btn.ghost > .inf { background: rgba(236, 232, 225, 0.1); color: var(--off); }
.btn.ghost > .inf small { color: var(--grey-2); }
.btn.link > .inf { background: transparent; color: var(--off); }
.btn.link > .inf::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 1px; background: rgba(198, 234, 106, 0.55); }
@media (prefers-reduced-motion: reduce) {
  .btn > .inf, .btn.inf-on > .inf { clip-path: none !important; opacity: 0; transition: opacity 0.12s linear !important; }
  .btn.inf-on > .inf { opacity: 1; }
}

/* ---------- home ---------- */
#menu { background: radial-gradient(ellipse 80% 70% at 50% 42%, var(--navy), rgba(0, 0, 0, 0.42) 70%, rgba(0, 0, 0, 0.62)); transition: opacity 0.45s ease, visibility 0s linear 0.45s; }
#menu.show { transition: opacity 0.35s ease; }
.menu-inner { max-width: 560px; }
.menu-inner .wordmark { width: min(80vw, 390px); }
.menu-inner .line { width: min(80vw, 390px); }
.line .st:nth-of-type(2) { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 0 3px rgba(198, 234, 106, 0.12); }
.line .runner { background: var(--lime); box-shadow: 0 0 10px rgba(198, 234, 106, 0.55); }
.subtitle { opacity: 0.92; margin-top: 24px; }
.tag { max-width: 380px; margin-left: auto; margin-right: auto; }
.btn-play { max-width: 320px; padding-top: 20px; padding-bottom: 20px; }
.btn-play::before, .btn-play::after { background: var(--lime); width: 9px; left: -11px; }
.btn-play::after { left: auto; right: -11px; }
.btn-arrow { position: absolute; right: 22px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; stroke-linejoin: miter; }
.menu-stats { margin-top: 26px; display: flex; justify-content: center; align-items: center; gap: 0 18px; flex-wrap: wrap; }
.menu-stats .best { margin: 0; }
.ms-sep { width: 1px; height: 14px; background: rgba(236, 232, 225, 0.22); }
.menu-stats .menu-rank { margin: 0; padding: 10px 6px; font-size: 12px; color: var(--grey); letter-spacing: 0.04em; }
.mr-num { color: var(--off); margin-left: 8px; letter-spacing: 0.06em; font-size: 15px; }
.mr-num:empty { display: none; }
.menu-links { margin-top: 22px; flex-wrap: nowrap; gap: 0; }
.menu-links a { position: relative; padding: 8px 14px; border-bottom: 0; transition: color 0.2s ease; }
.menu-links a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 11px; margin-top: -5.5px; background: rgba(236, 232, 225, 0.18); }
.menu-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.28s cubic-bezier(.3, .6, .2, 1); }
.menu-links a:hover, .menu-links a:focus-visible { color: var(--off); border-bottom-color: transparent; }
.menu-links a:hover::after, .menu-links a:focus-visible::after { transform: scaleX(1); }
@media (max-width: 520px) {
  .menu-links { flex-wrap: wrap; gap: 2px 0; max-width: 320px; margin-left: auto; margin-right: auto; }
  .menu-links a { padding: 8px 11px; }
  .menu-links a:nth-child(4)::before { display: none; } /* começa a 2ª linha sem traço solto */
}
/* saída do menu para a arena: o conteúdo sobe e some um pouco antes do fundo */
#menu.leaving:not(.show) .menu-inner { opacity: 0; transform: translateY(-8px); transition: opacity 0.3s ease, transform 0.45s cubic-bezier(.4, 0, .2, 1); }
#menu.leaving:not(.show) .credit, #menu.leaving:not(.show) .mute-btn.corner { opacity: 0; transition: opacity 0.25s ease; }
#menu.show .menu-inner { transition: opacity 0.35s ease, transform 0.35s ease; }
@media (prefers-reduced-motion: reduce) { #menu.leaving:not(.show) .menu-inner { transform: none; } }

/* ---------- transições de estado ---------- */
#hud { transition: opacity 0.4s ease; }
body.cine #hud, body.cine #bossbar { opacity: 0.18; transition: opacity 0.25s ease; }
body.cine #toast { opacity: 0; transition: opacity 0.2s ease; }
body.cine #vignette { opacity: 1; }
.screen.show > .panel .pz-view.pz-in { animation: panelIn 0.24s cubic-bezier(.2, .7, .2, 1); }
.pz-view .btn + .btn { margin-top: 10px; }
.pz-view .btn.link { margin-top: 12px; }
.set-list { display: grid; gap: 2px; margin: 0 auto 6px; max-width: 300px; border-top: 1px solid var(--line); }
.set-list .set-row { width: 100%; margin: 0; padding: 14px 4px; text-align: left; border-bottom: 1px solid var(--line); color: var(--grey-2); font-size: 13px; letter-spacing: 0.08em; }
.set-list .set-row[aria-pressed="true"] { color: var(--off); }
.set-note { margin: 12px auto 22px; max-width: 300px; font-size: 11.5px; line-height: 1.55; color: var(--grey); text-align: left; }
@media (prefers-reduced-motion: reduce) { .screen.show > .panel .pz-view.pz-in { animation: none; } }

/* ---------- resultado: valores entram aos poucos ---------- */
#over.show .stats > div, #over.show .run, #over.show #overStage, #over.show #btnAgain { animation: statIn 0.42s cubic-bezier(.2, .7, .2, 1) both; }
#over.show .run { animation-delay: 0.05s; }
#over.show .stats > div:nth-child(1) { animation-delay: 0.1s; }
#over.show .stats > div:nth-child(2) { animation-delay: 0.16s; }
#over.show .stats > div:nth-child(3) { animation-delay: 0.22s; }
#over.show .stats > div:nth-child(4) { animation-delay: 0.28s; }
#over.show .stats > div:nth-child(5) { animation-delay: 0.36s; }
#over.show .stats > div:nth-child(6) { animation-delay: 0.42s; }
#over.show #overStage { animation-delay: 0.48s; }
#over.show #btnAgain { animation-delay: 0.5s; }
@keyframes statIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.stats .score dd { letter-spacing: 0.02em; }
.stats .score { border-left: 2px solid var(--lime); padding-left: 10px; margin-left: -12px; }
@media (prefers-reduced-motion: reduce) { #over.show .stats > div, #over.show .run, #over.show #overStage, #over.show #btnAgain { animation: none; } }

/* ---------- transmissão interceptada (queda do chefe) ---------- */
#taunt {
  position: fixed; left: 50%; bottom: calc(var(--sab) + 13vh); z-index: 19; transform: translate(-50%, 4px);
  display: grid; justify-items: center; gap: 7px; width: max-content; max-width: 88vw; text-align: center;
  pointer-events: none; opacity: 0; transition: opacity 0.5s ease, transform 0.5s ease;
}
#taunt.show { opacity: 1; transform: translate(-50%, 0); }
#taunt .tn-k { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--grey-2); }
#taunt .tn-k i { width: 5px; height: 5px; border: 1px solid var(--hp); border-radius: 50%; animation: netBlink 0.7s ease-in-out infinite alternate; }
#taunt .tn-k b { font-weight: 500; color: var(--off); letter-spacing: 0.22em; }
#taunt .tn-l { font-size: 14px; letter-spacing: 0.03em; color: var(--off); clip-path: inset(0 100% 0 0); transition: clip-path 0.7s cubic-bezier(.3, .6, .2, 1) 0.15s; }
#taunt.show .tn-l { clip-path: inset(0 0 0 0); }
#taunt::before { content: ""; width: 28px; height: 1px; background: rgba(239, 91, 76, 0.6); order: -1; }
@media (prefers-reduced-motion: reduce) { #taunt .tn-l { clip-path: none; transition: none; } #taunt .tn-k i { animation: none; } }

/* ---------- ranking: o mesmo idioma ---------- */
.rk-cur { border-color: rgba(198, 234, 106, 0.45); color: var(--lime); }

/* ---------- v23 · home, mais próxima da referência (mockup) ---------- */
:root { --green: #7ef59a; }
#menu { background: radial-gradient(ellipse 70% 62% at 50% 44%, rgba(14, 12, 30, 0.38), rgba(12, 10, 26, 0.5) 60%, rgba(8, 7, 18, 0.66)); }
.menu-inner { max-width: 640px; }
.menu-inner .wordmark { width: min(84vw, 510px); }
.menu-inner .line { width: min(86vw, 520px); margin-top: 36px; }
.line .st:nth-of-type(2) { border-color: rgba(236, 232, 225, 0.55); background: var(--black); box-shadow: none; }
.line .st:nth-of-type(4) { width: 9px; height: 9px; top: 2px; border-color: var(--green); background: var(--green); box-shadow: 0 0 0 3px rgba(126, 245, 154, 0.14), 0 0 12px rgba(126, 245, 154, 0.7); }
.line .runner { background: var(--green); box-shadow: 0 0 10px rgba(126, 245, 154, 0.55); opacity: 0.7; }
.subtitle { color: var(--green); opacity: 1; font-size: 13px; letter-spacing: 0.36em; text-indent: 0.36em; margin-top: 30px; }
.tag { font-size: 17px; line-height: 1.6; color: #b4b6c4; margin-top: 30px; margin-bottom: 50px; }
.btn-play { max-width: 458px; padding-top: 26px; padding-bottom: 26px; font-size: 15px; letter-spacing: 0.4em; text-indent: 0.4em; }
.btn-play::before, .btn-play::after {
  top: 10px; bottom: 10px; height: auto; width: 12px; left: -14px; margin: 0;
  background: linear-gradient(var(--green), var(--green)) 0 50% / 9px 1px no-repeat,
    linear-gradient(var(--green), var(--green)) 100% 0 / 1px 7px no-repeat,
    linear-gradient(var(--green), var(--green)) 100% 100% / 1px 7px no-repeat;
  filter: drop-shadow(0 0 3px rgba(126, 245, 154, 0.6));
}
.btn-play::after { left: auto; right: -14px; transform: scaleX(-1); }
.btn-arrow { right: 28px; width: 20px; height: 20px; margin-top: -10px; stroke-width: 1.3; }
.menu-stats { position: relative; margin-top: 46px; gap: 0 30px; }
.menu-stats::before { content: ""; position: absolute; left: 50%; top: -24px; width: 5px; height: 5px; margin-left: -2.5px; transform: rotate(45deg); background: rgba(170, 166, 236, 0.55); }
.menu-stats .best { font-size: 16px; gap: 22px; color: #9a9cb0; }
.menu-stats .best b { font-size: 23px; letter-spacing: 0.05em; }
.ms-sep { height: 22px; }
.menu-stats .menu-rank { font-size: 16px; color: #9a9cb0; padding: 8px 4px; }
.mr-num { font-size: 23px; margin-left: 22px; }
.menu-links { margin-top: 38px; font-size: 15px; letter-spacing: 0.02em; }
.menu-links a { color: #c4c6d4; padding: 10px 26px; }
.menu-links a + a::before { height: 20px; margin-top: -10px; background: rgba(236, 232, 225, 0.55); }
.menu-links a::after { left: 22px; right: 22px; bottom: 0; height: 2px; background: var(--green); box-shadow: 0 0 8px rgba(126, 245, 154, 0.5); }
.credit { font-size: 13px; color: #8d8fa3; }
.btn.link > .inf::after { background: rgba(126, 245, 154, 0.6); }
@media (max-width: 760px) {
  .menu-links { flex-wrap: wrap; justify-content: center; max-width: 340px; margin-left: auto; margin-right: auto; font-size: 14px; }
  .menu-links a { padding: 9px 13px; }
  .menu-links a::after { left: 13px; right: 13px; }
  .menu-links a:nth-child(4)::before { display: none; }
}
@media (max-width: 520px) {
  .tag { font-size: 15px; margin-top: 22px; margin-bottom: 36px; }
  .btn-play { padding-top: 22px; padding-bottom: 22px; }
  .menu-stats { margin-top: 38px; gap: 0 20px; }
  .menu-stats .best, .menu-stats .menu-rank { font-size: 14px; }
  .menu-stats .best { gap: 14px; }
  .menu-stats .best b, .mr-num { font-size: 19px; }
  .mr-num { margin-left: 14px; }
  .menu-links { margin-top: 28px; }
}
@media (max-height: 700px) { .tag { margin-top: 18px; margin-bottom: 30px; } .menu-stats { margin-top: 34px; } .menu-links { margin-top: 22px; } .menu-inner .line { margin-top: 26px; } }
@media (max-height: 600px) { .btn-play { padding-top: 18px; padding-bottom: 18px; } .menu-stats { margin-top: 30px; } }
#menu { background: radial-gradient(ellipse 70% 62% at 50% 44%, rgba(18, 13, 40, 0.42), rgba(14, 10, 32, 0.56) 60%, rgba(9, 7, 20, 0.7)); }
.menu-inner .wordmark .wm-strokes { stroke-width: 1.45; }

/* =========================================================
   v24 · RESISTÊNCIA EXTREMA — barra do chefe, Marco de Resistência, barras de vida (canvas)
   ========================================================= */
#bossbar { width: min(70vw, 380px); gap: 6px; }
#bossbar .bb-top { display: flex; justify-content: center; align-items: baseline; gap: 12px; }
.bb-ph { font-size: 9.5px; letter-spacing: 0.24em; color: var(--grey); }
#bossbar.p3 .bb-ph { color: var(--hp); }
#bossbar .track { height: 4px; background: rgba(20, 21, 26, 0.92); box-shadow: 0 0 0 1px rgba(236, 232, 225, 0.14); overflow: hidden; }
#bossbar .track i { position: absolute; inset: 0; }
#bossbar .track .bb-ghost { background: rgba(236, 232, 225, 0.32); transition: transform 0.55s cubic-bezier(.3, .6, .2, 1) 0.28s; }
#bossbar.p2 .track .bb-ghost { background: rgba(239, 91, 76, 0.32); }
#bossbar.bb-flash .track { animation: bbFlash 0.6s ease-out; }
@keyframes bbFlash { 0% { box-shadow: 0 0 0 1px rgba(236, 232, 225, 0.9); } 100% { box-shadow: 0 0 0 1px rgba(236, 232, 225, 0.14); } }
@media (prefers-reduced-motion: reduce) { #bossbar .track .bb-ghost { transition: none; } #bossbar.bb-flash .track { animation: none; } }

.marco {
  position: fixed; z-index: 9; left: calc(var(--sal) + 14px); top: calc(var(--sat) + 50px);
  display: flex; align-items: center; gap: 10px; width: 270px; padding: 7px 10px 7px 7px;
  border: 1px solid var(--line); background: rgba(9, 10, 18, 0.78); color: var(--off); text-align: left;
  pointer-events: auto; touch-action: manipulation; transition: border-color 0.3s ease, opacity 0.3s ease;
  --mk: var(--grey-2);
}
.marco[hidden] { display: none; }
.marco[data-state="ready"] { --mk: var(--lime); border-color: rgba(198, 234, 106, 0.55); }
.marco[data-state="active"] { --mk: #e4f5b0; border-color: rgba(228, 245, 176, 0.5); }
.mk-btn { position: relative; flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--mk); cursor: pointer; outline: none; }
.mk-btn:focus-visible { outline: 1px solid var(--off); outline-offset: 2px; }
.mk-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.mk-ring circle { fill: none; stroke-width: 2; }
.mk-r0 { stroke: rgba(236, 232, 225, 0.12); }
.mk-r1 { stroke: var(--mk); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.25s linear; }
.mk-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; transition: opacity 0.25s ease; }
.marco[data-state="ready"] .mk-ico, .marco[data-state="active"] .mk-ico { opacity: 1; }
.mk-key { position: absolute; right: -4px; bottom: -4px; min-width: 18px; padding: 1px 4px; font: inherit; font-size: 10px; line-height: 14px; text-align: center; border: 1px solid rgba(236, 232, 225, 0.35); background: #090a12; color: var(--grey-2); }
.mk-key:empty { display: none; }
.marco[data-state="ready"] .mk-key { border-color: var(--lime); color: var(--lime); }
.mk-info { min-width: 0; flex: 1; display: grid; gap: 3px; }
.mk-top { display: flex; align-items: baseline; gap: 8px; }
.mk-k { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey); }
.mk-s { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mk); }
.mk-n { font-size: 12px; letter-spacing: 0.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marco[data-state="ready"] .mk-n { color: var(--lime); }
.mk-g { font-size: 10.5px; line-height: 1.3; color: var(--grey-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mk-bar { position: relative; height: 2px; margin-top: 2px; background: rgba(236, 232, 225, 0.12); overflow: hidden; }
.mk-bar i { position: absolute; inset: 0; background: var(--mk); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.25s linear; }
.marco[data-state="ready"] .mk-btn { animation: mkReady 1.6s ease-in-out infinite alternate; }
@keyframes mkReady { from { box-shadow: 0 0 0 0 rgba(198, 234, 106, 0); } to { box-shadow: 0 0 0 4px rgba(198, 234, 106, 0.14); } }
.marco[data-state="active"] .mk-btn { animation: mkAct 0.5s ease-out; }
@keyframes mkAct { from { box-shadow: 0 0 0 0 rgba(228, 245, 176, 0.6); } to { box-shadow: 0 0 0 14px rgba(228, 245, 176, 0); } }
.marco.deny { animation: mkDeny 0.32s ease; }
.marco.deny .mk-g { color: var(--off); }
@keyframes mkDeny { 0%, 100% { transform: none; } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (hover: hover) { .marco[data-state="ready"] .mk-btn:hover { background: rgba(198, 234, 106, 0.1); } }
.mk-btn:active { background: rgba(236, 232, 225, 0.08); }
/* celular: botão próprio, grande, no canto inferior direito (acima da barra do chefe); o texto fica ao lado, compacto */
@media (max-width: 759px), (pointer: coarse) {
  .marco {
    top: auto; left: auto; right: calc(var(--sar) + 12px); bottom: calc(var(--sab) + 78px);
    flex-direction: row-reverse; width: auto; max-width: calc(100vw - 24px - var(--sal) - var(--sar));
    padding: 0; border: 0; background: none; gap: 8px;
  }
  .mk-btn { width: 64px; height: 64px; background: rgba(9, 10, 18, 0.72); }
  .mk-ico { width: 26px; height: 26px; }
  .mk-info { width: min(52vw, 210px); padding: 6px 9px 7px; background: rgba(9, 10, 18, 0.72); border: 1px solid var(--line); text-align: right; justify-items: end; }
  .mk-top { justify-content: flex-end; }
  .mk-bar { width: 100%; }
  .marco[data-state="ready"] .mk-btn { border: 1px solid rgba(198, 234, 106, 0.5); }
}
@media (max-width: 380px) { .mk-info { width: min(48vw, 170px); } .mk-g { font-size: 10px; } }
@media (max-height: 460px) and (orientation: landscape) { .marco { bottom: calc(var(--sab) + 12px); right: calc(var(--sar) + 12px); } .mk-info { display: none; } }
@media (prefers-reduced-motion: reduce) { .marco[data-state="ready"] .mk-btn, .marco[data-state="active"] .mk-btn, .marco.deny { animation: none; } }
body.cine .marco { opacity: 0.18; }
.pz-marco { margin: -14px 0 22px; font-size: 12px; line-height: 1.5; color: var(--grey-2); }
.pz-marco:empty { display: none; }


/* =========================================================
   v25 · IDENTIDADE & ARSENAL
   ========================================================= */
/* camada de "infecção" dos botões: copia o rótulo com as MESMAS classes (nunca por id) e o mesmo arranjo do botão,
   então o texto escuro fica exatamente sobre o claro (corrige "Ranking #1" sobreposto no menu) */
.btn > .inf { display: inherit; align-items: inherit; justify-content: inherit; gap: inherit; flex-wrap: nowrap; white-space: inherit; }
.btn.loading { opacity: 0.7; cursor: progress; }

/* ---------- home: Arsenal e conta ---------- */
.menu-stats .menu-ars { width: auto; max-width: none; margin: 0; padding: 8px 4px; font-size: 16px; color: #9a9cb0; letter-spacing: 0.04em; text-indent: 0; display: inline-flex; align-items: center; gap: 10px; }
.menu-stats .menu-rank { width: auto; max-width: none; text-indent: 0; display: inline-flex; align-items: baseline; }
.ars-mini { display: inline-flex; width: 22px; height: 22px; }
.ars-mini svg { width: 22px; height: 22px; }
.acct-chip {
  position: absolute; top: calc(var(--sat) + 14px); right: calc(var(--sar) + 16px); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: min(46vw, 220px); padding: 6px 12px;
  border: 1px solid rgba(236, 232, 225, 0.16); background: rgba(6, 7, 16, 0.55);
  font-size: 12px; letter-spacing: 0.1em; color: #c4c6d4; text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.acct-chip .ac-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.acct-chip .sk-ico { flex: none; display: inline-flex; }
@media (hover: hover) { .acct-chip:hover { border-color: rgba(236, 232, 225, 0.45); color: var(--off); } }
.acct-chip:active { border-color: var(--off); }
#menu.leaving:not(.show) .acct-chip { opacity: 0; transition: opacity 0.25s ease; }
@media (max-width: 520px) { .menu-stats { gap: 6px 16px; } .menu-stats .menu-ars { font-size: 14px; gap: 8px; } }
@media (max-width: 380px) { .menu-stats .ms-sep:nth-of-type(2) { display: none; } .menu-stats .menu-ars { flex-basis: 100%; justify-content: center; } }

.sk-ico { display: inline-flex; line-height: 0; }
.sk-thumb { display: block; overflow: visible; }

/* ---------- ARSENAL ---------- */
#arsenal, #profile { z-index: 13; align-items: flex-start; background: radial-gradient(ellipse 80% 70% at 50% 30%, #0f0e24, #07070f 70%); --acc: #c6ea6a; }
#auth { z-index: 15; background: rgba(4, 5, 12, 0.94); }
.ar-inner { width: 100%; max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; }
.ar-head, .pf-head { display: grid; grid-template-columns: minmax(64px, 1fr) auto minmax(64px, 1fr); align-items: center; gap: 10px; margin-bottom: 20px; }
.ar-back, .pf-back { width: auto; max-width: none; margin: 0; justify-self: start; padding: 10px 8px; font-size: 13px; letter-spacing: 0.08em; text-indent: 0; }
.ar-ttl { text-align: center; }
.ar-title, .pf-title { font-size: 15px; font-weight: 400; letter-spacing: 0.42em; text-indent: 0.42em; outline: none; }
.ar-sub { font-size: 12px; color: var(--grey-2); margin-top: 6px; letter-spacing: 0.04em; }
.ar-who { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 180px; padding: 6px 10px; border: 1px solid var(--line); font-size: 12px; color: var(--off); letter-spacing: 0.08em; text-transform: uppercase; }
.ar-who span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ar-who .sk-ico { flex: none; }
@media (hover: hover) { .ar-who:hover { border-color: rgba(236, 232, 225, 0.4); } }
.ar-main { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ar-stage {
  position: relative; aspect-ratio: 1 / 1; max-height: min(64vh, 560px); width: 100%; margin: 0 auto;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--acc) 9%, transparent), transparent 62%), #05060d;
}
.ar-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ar-cv.ar-in { animation: arIn 0.42s cubic-bezier(.2, .7, .2, 1); }
@keyframes arIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.ar-modes { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; border: 1px solid var(--line); background: rgba(5, 6, 14, 0.78); }
.ar-mode { min-height: 36px; padding: 8px 14px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-2); white-space: nowrap; }
.ar-mode[aria-pressed="true"] { color: var(--off); background: rgba(236, 232, 225, 0.09); }
@media (hover: hover) { .ar-mode:hover { color: var(--off); } }
.ar-info { text-align: left; min-width: 0; }
.ar-rar { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--acc); }
.ar-name { margin-top: 10px; font-size: clamp(22px, 3vw, 34px); font-weight: 400; letter-spacing: 0.16em; line-height: 1.15; overflow-wrap: anywhere; }
.ar-state { margin-top: 10px; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-2); display: inline-flex; align-items: center; gap: 8px; }
.ar-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; }
.ar-state[data-s="eq"] { color: var(--lime); }
.ar-state[data-s="eq"]::before { background: var(--lime); border-color: var(--lime); }
.ar-state[data-s="ok"] { color: var(--off); }
.ar-req { margin-top: 18px; display: grid; gap: 14px; }
.ar-rq { font-size: 14px; line-height: 1.5; color: #c4c6d4; }
.ar-pg { display: grid; gap: 6px; }
.ar-pv { font-size: 12.5px; color: var(--off); letter-spacing: 0.02em; }
.ar-pk { font-size: 11px; color: var(--grey); line-height: 1.4; }
.ar-guest { font-size: 12.5px; color: var(--grey-2); line-height: 1.5; }
.ar-bar { display: block; height: 3px; background: rgba(236, 232, 225, 0.1); overflow: hidden; }
.ar-bar i { display: block; height: 100%; background: var(--acc); transform-origin: 0 50%; transition: transform 0.5s cubic-bezier(.2, .7, .2, 1); }
.ar-act { margin-top: 20px; }
.ar-act .btn { margin: 0; max-width: 340px; }
.ar-traits { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.ar-traits dt { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }
.ar-traits dd { margin-top: 4px; font-size: 13px; line-height: 1.4; color: #d4d0c9; }
.ar-note { margin-top: 16px; font-size: 11.5px; line-height: 1.5; color: var(--grey); }
.ar-grid { list-style: none; margin-top: 26px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ar-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border: 1px solid var(--line); cursor: pointer; text-align: center; outline: none; transition: border-color 0.2s ease, background-color 0.2s ease; }
.ar-card[aria-selected="true"] { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 7%, transparent); }
.ar-card:focus-visible { outline: 1px solid var(--off); outline-offset: 2px; }
@media (hover: hover) { .ar-card:hover { border-color: rgba(236, 232, 225, 0.38); } .ar-card[aria-selected="true"]:hover { border-color: var(--acc); } }
.ar-card.lock .sk-ico { opacity: 0.38; filter: saturate(0.45); }
.ar-card.eq::after { content: ""; position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.ar-ctx { display: grid; gap: 3px; min-width: 0; }
.ar-ctx b { font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; color: var(--off); overflow-wrap: anywhere; }
.ar-cr, .ar-cs { font-size: 10px; letter-spacing: 0.06em; color: var(--grey); }
.ar-card[aria-selected="true"] .ar-cr { color: var(--acc); }
/* celular: prévia grande no topo, coleção logo abaixo (faixa com rolagem), detalhes depois */
@media (max-width: 760px) {
  .ar-inner { gap: 0; }
  .ar-main { display: contents; }
  .ar-head { order: 1; margin-bottom: 14px; }
  .ar-stage { order: 2; aspect-ratio: auto; height: min(46vh, 340px); max-height: none; }
  .ar-grid { order: 3; display: flex; overflow-x: auto; gap: 8px; margin: 12px 0 0; padding-bottom: 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .ar-card { flex: 0 0 108px; scroll-snap-align: start; padding: 10px 4px 9px; }
  .ar-ctx b { font-size: 9.5px; letter-spacing: 0.05em; overflow-wrap: normal; word-break: keep-all; }
  .ar-info { order: 4; margin-top: 18px; }
  .ar-act .btn { max-width: none; }
  .ar-name { font-size: 24px; }
}
@media (max-width: 420px) {
  .ar-who .ar-who-n { display: none; }
  .ar-who { padding: 6px 8px; }
  .ar-traits { grid-template-columns: 1fr; gap: 10px; }
  .ar-sub { font-size: 11px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .ar-stage { height: 70vh; }
}

/* ---------- PERFIL ---------- */
.pf-inner { width: 100%; max-width: 560px; margin: 0 auto; text-align: left; }
.pf-head .pf-title { grid-column: 2; }
.pf-id { display: flex; align-items: center; gap: 18px; padding: 16px 0 20px; border-bottom: 1px solid var(--line); }
.pf-skin { flex: none; padding: 4px; border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); }
.pf-who { min-width: 0; }
.pf-name { font-size: 20px; letter-spacing: 0.16em; text-transform: uppercase; overflow-wrap: anywhere; }
.pf-eq, .pf-evo { margin-top: 5px; font-size: 12px; color: var(--grey-2); letter-spacing: 0.04em; }
.pf-stats { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pf-stats > div { background: #07070f; padding: 12px 10px; min-width: 0; }
.pf-stats dt { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); line-height: 1.3; }
.pf-stats dd { margin-top: 6px; font-size: 17px; color: var(--off); letter-spacing: 0.03em; overflow-wrap: anywhere; }
.pf-sec { margin-top: 24px; }
.pf-h { font-size: 11px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey-2); margin-bottom: 12px; }
.pf-skins { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-sk { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--line); }
@media (max-width: 400px) { .pf-skins { gap: 6px; } .pf-sk { width: 46px; height: 46px; } }
.pf-sk.lock .sk-ico { opacity: 0.35; filter: saturate(0.4); }
.pf-sk.eq { border-color: var(--lime); }
.pf-ars, .pf-sec > .btn.link { width: auto; max-width: none; margin: 8px 0 0; padding: 10px 2px; font-size: 13px; letter-spacing: 0.06em; text-indent: 0; display: inline-block; }
.pf-ach { list-style: none; }
.pf-ach li { display: grid; gap: 6px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pf-ach b { font-weight: 400; font-size: 13.5px; color: var(--off); }
.pf-ach span.num { font-size: 12px; color: var(--grey-2); }
.pf-ach .ar-bar i { background: var(--lime); }
.pf-all { color: var(--grey-2); font-size: 13px; }
.pf-got { margin-top: 10px; font-size: 12px; color: var(--grey-2); }
.pf-got summary { cursor: pointer; padding: 8px 0; letter-spacing: 0.06em; }
.pf-got p { line-height: 1.6; }
.pf-acc { padding-bottom: 20px; }
.pf-email { font-size: 12.5px; color: var(--grey-2); line-height: 1.5; }
.pf-email b { font-weight: 400; color: var(--off); overflow-wrap: anywhere; }
.pf-acc .btn.ghost { margin: 16px 0 0; max-width: 260px; }
.pf-acc .btn.link { display: block; }
.pf-del .au-form { margin-top: 8px; }
@media (max-width: 480px) { .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-acc .btn.ghost { max-width: none; } }

/* ---------- LOGIN ---------- */
.au-panel { max-width: 380px; }
.au-title { outline: none; }
.au-form { text-align: left; }
.au-lead { font-size: 13.5px; line-height: 1.55; color: #c4c6d4; }
.au-lead b { font-weight: 400; color: var(--off); overflow-wrap: anywhere; }
.au-field { margin: 18px 0 16px; }
.au-label { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-2); }
.au-input {
  display: block; width: 100%; margin-top: 8px; padding: 14px 12px; font: inherit; font-size: 16px; letter-spacing: 0.04em;
  color: var(--off); background: var(--graphite); border: 1px solid var(--line); border-radius: 0; outline: none;
  -webkit-appearance: none; appearance: none; -webkit-user-select: text; user-select: text; caret-color: var(--lime);
}
.au-input:focus { border-color: rgba(236, 232, 225, 0.6); }
.au-input[aria-invalid="true"] { border-color: rgba(239, 91, 76, 0.75); }
.au-code { font-size: 26px; letter-spacing: 0.48em; text-indent: 0.48em; text-align: center; padding: 12px 6px; }
.au-form .btn { max-width: none; }
.au-form .btn.link { display: block; margin: 8px auto 0; }
.au-fine { margin-top: 12px; font-size: 11.5px; line-height: 1.5; color: var(--grey); }
.au-link { display: inline-block; margin-top: 6px; padding: 6px 0; font-size: 12px; color: var(--grey-2); }
.au-msg { min-height: 1.5em; margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--grey-2); text-align: center; }
.au-msg[data-tone="err"] { color: #ff9a8c; }
.au-msg[data-tone="ok"] { color: var(--lime); }

/* ---------- RECOMPENSA ---------- */
.reward { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: calc(var(--sat) + 20px) calc(var(--sar) + 18px) calc(var(--sab) + 20px) calc(var(--sal) + 18px); background: rgba(3, 4, 10, 0.86); --acc: #c6ea6a; }
.reward[hidden] { display: none; }
.rw-card { width: 100%; max-width: 360px; max-height: 100%; overflow-y: auto; text-align: center; padding: 24px 22px 16px; background: #06070f; border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); }
.reward.in .rw-card { animation: rwIn 0.5s cubic-bezier(.2, .7, .2, 1); }
@keyframes rwIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.rw-kick { font-size: 11px; letter-spacing: 0.34em; text-indent: 0.34em; color: var(--acc); }
.rw-cv { display: block; width: 100%; height: min(200px, 30vh); margin: 6px 0 4px; }
.rw-name { font-size: 22px; font-weight: 400; letter-spacing: 0.2em; text-indent: 0.2em; outline: none; overflow-wrap: anywhere; }
.rw-rar, .rw-ach { margin-top: 6px; font-size: 12px; color: var(--grey-2); line-height: 1.5; }
.rw-ach:empty { display: none; }
.rw-act .btn { margin-top: 16px; max-width: none; }
.rw-act .btn.link { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .ar-cv.ar-in, .reward.in .rw-card { animation: none; } .ar-bar i { transition: none; } }

/* ---------- ranking: skin da partida do recorde ---------- */
.rk-row { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.rk-skin { align-self: center; display: inline-flex; width: 26px; height: 26px; }
.rk-skin svg { width: 26px; height: 26px; }
.rk-skin.none { opacity: 0.55; }
.rk-meta { grid-column: 3 / -1; }
@media (max-width: 380px) { .rk-skin, .rk-skin svg { width: 22px; height: 22px; } }
.ed-top .sk-ico { margin-right: 8px; vertical-align: middle; }

.mp-skin.lock { opacity: 0.4; cursor: not-allowed; }
.mp-skin small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; font-size: 8.5px; }
@media (max-width: 380px) { .mp-skin-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.net-note { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--grey); }

/* aviso curto das telas de menu */
.ls-notice { position: fixed; left: 50%; bottom: calc(var(--sab) + 22px); z-index: 45; transform: translate(-50%, 8px); max-width: min(92vw, 420px); padding: 11px 16px; background: #0b0d18; border: 1px solid rgba(236, 232, 225, 0.22); font-size: 12.5px; letter-spacing: 0.04em; color: var(--off); text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.ls-notice.on { opacity: 1; transform: translate(-50%, 0); }

/* v25 · alvos de toque confortáveis no celular (varredura de responsividade) */
@media (max-width: 480px), (pointer: coarse) {
  .menu-stats .menu-rank, .menu-stats .menu-ars { padding-top: 12px; padding-bottom: 12px; }
  .btn.link.rk-small, .rk-you .btn.link { padding-top: 14px; padding-bottom: 14px; }
}
.ar-who { max-width: 100%; min-width: 0; }
/* v25 · o "Entrar"/apelido do canto nunca fica sobre o logotipo (telas estreitas ou baixas) */
@media (max-width: 560px), (max-height: 600px) and (max-width: 900px) { .menu-fold { padding-top: calc(var(--sat) + 68px); } }
@media (max-width: 380px) {
  .ar-head { grid-template-columns: minmax(52px, 1fr) auto minmax(52px, 1fr); gap: 6px; }
  .ar-title { letter-spacing: 0.3em; text-indent: 0.3em; }
  .ar-sub { font-size: 10.5px; }
  .ar-who { padding: 6px 7px; font-size: 11px; letter-spacing: 0.04em; }
  .ar-back { padding-left: 2px; padding-right: 2px; }
}
.marco { cursor: pointer; }
.over-skin { margin-right: 8px; vertical-align: -5px; }

/* ---------- v26 · símbolos das sinergias (mesma grade e traço dos ícones de categoria) ---------- */
.syn-ico { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  flex: none; display: inline-block; vertical-align: -2px; margin-right: 6px; }
.syn-ico.dim { opacity: 0.6; }
.c-syn { display: inline-flex; align-items: center; min-width: 0; }
.c-syn .syn-ico { margin-right: 6px; }
.c-syn.act { color: rgba(255, 196, 107, 0.78); }
.card.kb .c-syn .syn-ico.dim, .card:hover .c-syn .syn-ico.dim { opacity: 0.9; }
.card:active .c-syn .syn-ico { color: #333; }
#toastB .syn-ico { width: 14px; height: 14px; margin-right: 8px; vertical-align: -1px; }
.lu-build .syn .syn-ico, .build span.syn .syn-ico { width: 11px; height: 11px; margin-right: 5px; vertical-align: -1.5px; }
.build span.syn { display: inline-flex; align-items: center; }

/* ---------- v26 · Arsenal: requisitos independentes (nome · estado · valor · barra) ---------- */
.ar-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ar-parts .ar-pg { display: grid; gap: 5px; padding-left: 10px; border-left: 2px solid rgba(236, 232, 225, 0.12); }
.ar-parts .ar-pg[data-s="go"] { border-left-color: var(--acc); }
.ar-parts .ar-pg[data-s="done"] { border-left-color: var(--lime); }
.ar-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; min-width: 0; }
.ar-pl { font-size: 13px; color: #d7d9e4; line-height: 1.35; min-width: 0; }
.ar-ps { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); white-space: nowrap; }
.ar-pg[data-s="go"] .ar-ps { color: var(--acc); }
.ar-pg[data-s="done"] .ar-ps { color: var(--lime); }
.ar-pg[data-s="done"] .ar-ps::before { content: "✓ "; letter-spacing: 0; }
.ar-pg[data-s="goal"] .ar-pv { color: var(--grey-2); }
.ar-parts .ar-pv { font-size: 13.5px; }
.ar-parts .ar-bar { height: 4px; }
@media (max-width: 420px) { .ar-pl { font-size: 12.5px; } .ar-parts .ar-pv { font-size: 13px; } }
.pf-title-badge { margin-top: 4px; font-size: 11.5px; color: var(--grey-2); letter-spacing: 0.04em; }
.pf-title-badge b { font-weight: 500; color: var(--acc, var(--lime)); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px; margin-left: 4px; }

/* ---------- v26 · provocação depois da queda do chefe (dentro da cena: jogo parado, sem caixa) ---------- */
#bossTaunt { background: radial-gradient(ellipse 66% 44% at 50% 50%, rgba(4, 5, 10, 0.64), rgba(4, 5, 10, 0) 74%); position: fixed; inset: 0; z-index: 19; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 0 max(16px, env(safe-area-inset-left)); text-align: center; pointer-events: none; opacity: 0; visibility: hidden; }
#bossTaunt.show { opacity: 1; visibility: visible; transition: opacity 0.35s ease; }
#bossTaunt.out { opacity: 0; visibility: hidden; transition: opacity 0.28s ease, visibility 0s linear 0.28s; }
#bossTaunt .bt-k { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey-2); }
#bossTaunt .bt-k i { width: 5px; height: 5px; border: 1px solid var(--hp); border-radius: 50%; animation: netBlink 0.7s ease-in-out infinite alternate; }
#bossTaunt .bt-n { font-size: 11.5px; letter-spacing: 0.26em; color: #ff8f78; font-weight: 500; }
#bossTaunt .bt-l { max-width: min(760px, 88vw); font-size: clamp(19px, 4.2vw, 31px); line-height: 1.28; font-weight: 300; letter-spacing: 0.01em; color: var(--off);
  text-wrap: balance; opacity: 0; transform: translateY(6px); }
#bossTaunt.show .bt-l { opacity: 1; transform: none; transition: opacity 0.5s ease 0.12s, transform 0.6s cubic-bezier(.2, .7, .2, 1) 0.12s; }
#bossTaunt .bt-s { font-size: 11.5px; letter-spacing: 0.08em; color: var(--grey); }
#bossTaunt .bt-s:empty { display: none; }
#bossTaunt .bt-skip { margin-top: 14px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(236, 232, 225, 0.32); }
#bossTaunt::before { content: ""; width: 28px; height: 1px; background: rgba(239, 91, 76, 0.6); margin-bottom: 4px; }
body.cine-tau #hud, body.cine-tau #bossbar, body.cine-tau .marco, body.cine-tau #toast, body.cine-tau #taunt { opacity: 0 !important; transition: opacity 0.25s ease; }
@media (max-height: 460px) { #bossTaunt { gap: 6px; } #bossTaunt .bt-l { font-size: clamp(17px, 3.6vw, 24px); } #bossTaunt .bt-skip { margin-top: 6px; } }
@media (prefers-reduced-motion: reduce) { #bossTaunt .bt-l, #bossTaunt.show .bt-l { transform: none; transition: opacity 0.3s ease; } #bossTaunt .bt-k i { animation: none; } }

/* ---------- v26 · barra do chefe: nome longo, último recurso e modificadores sem estourar a largura ---------- */
#bossbar .bb-top { flex-wrap: wrap; row-gap: 2px; min-width: 0; }
#bossName { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bossbar.p4 .bb-ph { color: var(--amber); animation: bbLast 1.2s ease-in-out infinite alternate; }
@keyframes bbLast { from { opacity: 0.7; } to { opacity: 1; } }
#bossbar .bb-mods { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 196, 107, 0.75); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bossbar .bb-mods:empty { display: none; }
@media (max-width: 420px) { #bossName { letter-spacing: 0.22em; font-size: 10.5px; } .bb-ph { letter-spacing: 0.16em; } }
@media (prefers-reduced-motion: reduce) { #bossbar.p4 .bb-ph { animation: none; } }

/* ---------- v27 · INTERVENÇÃO FARMACOLÓGICA ----------
   Cartão da intervenção: tipografia sobre a arena, sem caixa (mesma linguagem da transmissão interceptada); a cor do
   antibiótico aparece só no ponto, no fio e na legenda. Indicador de tratamento: pílula discreta abaixo do relógio. */
#phCard {
  position: fixed; left: 50%; top: calc(var(--sat) + max(15vh, 120px)); z-index: 18; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 7px; width: max-content; max-width: min(92vw, 640px); text-align: center;
  pointer-events: none; opacity: 0; visibility: hidden; --abx: #c4ce5c; --abx2: #ecf2a8;
}
#phCard.show { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
#phCard.out { opacity: 0; visibility: hidden; transform: translate(-50%, -8px); transition: opacity 0.55s ease, transform 0.7s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 0.7s; }
#phCard .ph-k { display: inline-flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--grey-2); }
#phCard .ph-k i { width: 6px; height: 6px; border-radius: 50%; background: var(--abx); box-shadow: 0 0 10px var(--abx); }
#phCard.show .ph-k i { animation: phDot 0.9s ease-in-out infinite alternate; }
#phCard .ph-k b { font-weight: 500; letter-spacing: 0.3em; }
#phCard .ph-n { display: inline-flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 0.45em; font-size: clamp(25px, 6.4vw, 48px); line-height: 1.06;
  font-weight: 300; letter-spacing: 0.2em; text-indent: 0.2em; color: var(--off); clip-path: inset(0 50% 0 50%); opacity: 0; }
#phCard.show .ph-n { clip-path: inset(0 0 0 0); opacity: 1; transition: clip-path 0.9s cubic-bezier(.2, .7, .1, 1) 0.1s, opacity 0.4s ease 0.1s, letter-spacing 1.2s cubic-bezier(.2, .7, .1, 1) 0.1s; }
#phCard .ph-n em { font-style: normal; font-size: 0.5em; color: var(--grey); letter-spacing: 0; text-indent: 0; }
#phCard.combo { max-width: min(94vw, 880px); }
#phCard.combo .ph-n { font-size: clamp(20px, 4.4vw, 32px); letter-spacing: 0.14em; line-height: 1.16; row-gap: 0.1em; } /* dois nomes: numa linha no desktop; em telas estreitas, um sobre o outro com o + no meio */
@media (max-width: 760px) { #phCard.combo .ph-n { flex-direction: column; align-items: center; } }
#phCard.combo .ph-n em { font-size: 0.72em; color: var(--abx2); opacity: 0.85; }
#phCard:not(.show) .ph-n { letter-spacing: 0.5em; }
#phCard .ph-rule { width: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--abx) 30%, var(--abx2) 70%, transparent); opacity: 0.9; }
#phCard.show .ph-rule { width: min(220px, 60vw); transition: width 1s cubic-bezier(.2, .7, .1, 1) 0.35s; }
#phCard .ph-l { max-width: min(560px, 88vw); font-size: clamp(13px, 2.7vw, 16.5px); line-height: 1.4; font-style: italic; font-weight: 300; color: #dcd8d0; letter-spacing: 0.01em;
  text-wrap: balance; opacity: 0; transform: translateY(5px); }
#phCard.show .ph-l { opacity: 1; transform: none; transition: opacity 0.6s ease 0.55s, transform 0.7s cubic-bezier(.2, .7, .2, 1) 0.55s; }
#phCard .ph-m { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: 0.16em; color: var(--abx); opacity: 0; }
#phCard.show .ph-m { opacity: 0.92; transition: opacity 0.6s ease 0.85s; }
#phCard .ph-ico { flex: none; }
/* v28 · patrocínio (desligado por padrão): uma linha própria, separada por um fio, identificada como apoio */
#phCard .ph-sp { display: grid; justify-items: center; gap: 2px; margin-top: 6px; padding-top: 7px; border-top: 1px solid rgba(236, 232, 225, 0.12);
  font-size: 10.5px; letter-spacing: 0.14em; color: var(--off); opacity: 0; max-width: min(520px, 88vw); }
#phCard .ph-sp b { font-weight: 500; letter-spacing: 0.24em; color: var(--grey-2); font-size: 9.5px; }
#phCard .ph-sp small { font-size: 10px; letter-spacing: 0.03em; color: var(--grey); }
#phCard.show .ph-sp { opacity: 0.9; transition: opacity 0.6s ease 1s; }
#phCard .ph-sp[hidden] { display: none; }
@keyframes phDot { from { transform: scale(0.75); opacity: 0.6; } to { transform: scale(1.15); opacity: 1; } }
body.ph-on #toast { top: calc(var(--ph-chip-b, calc(var(--sat) + 100px)) + 10px); } /* durante a intervenção o chip ocupa o topo; o aviso fica logo abaixo */
body.ph-card #toast { top: calc(var(--sat) + max(15vh, 120px) + 196px); } /* enquanto o cartão está na tela, um aviso vai para baixo dele */
body.ph-card.ph-combo #toast { top: calc(var(--sat) + max(15vh, 120px) + 214px); }
@media (max-height: 520px) { #phCard { top: calc(var(--sat) + 104px); gap: 4px; } #phCard .ph-n { font-size: clamp(20px, 5vw, 32px); } #phCard.combo .ph-n { font-size: clamp(16px, 3.4vw, 24px); } #phCard .ph-l { font-size: 12.5px; }
  body.ph-card #toast, body.ph-card.ph-combo #toast { top: calc(var(--sat) + 104px + 120px); } }
@media (prefers-reduced-motion: reduce) {
  #phCard .ph-n, #phCard.show .ph-n { clip-path: none; letter-spacing: 0.2em; transition: opacity 0.3s ease; }
  #phCard.show .ph-rule { width: min(220px, 60vw); transition: none; } #phCard .ph-l, #phCard.show .ph-l { transform: none; } #phCard.show .ph-k i { animation: none; }
}

/* v28 · indicador da exposição: linha 1 = símbolo, nome, tempo restante (mm:ss) e anel; linha 2 = processo comprometido e
   efeito em vigor. Fica no topo, centralizado, sem tocar no combate; no celular a 2ª linha pode quebrar (nunca corta). */
#phChip {
  position: absolute; left: 50%; top: calc(var(--sat) + 58px); transform: translate(-50%, -4px);
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 12px 6px; max-width: min(92vw, 640px);
  border: 1px solid rgba(236, 232, 225, 0.1); border-radius: 12px; background: rgba(8, 9, 13, 0.66);
  font-size: 10px; letter-spacing: 0.14em; color: var(--grey-2); pointer-events: none; text-align: center;
  opacity: 0; transition: opacity 0.45s ease, transform 0.45s ease; --abx: #c4ce5c;
}
#phChip.on { opacity: 1; transform: translate(-50%, 0); }
#phChip.on.fade { opacity: 0.6; }
#phChip .pc-l1 { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
#phChip .pc-ico { display: inline-flex; gap: 3px; color: var(--abx); }
#phChip .pc-n { font-weight: 500; letter-spacing: 0.2em; color: var(--off); }
#phChip .pc-tm { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: 0.08em; color: var(--abx); font-size: 11px; font-weight: 500; }
#phChip .pc-l2 { font-size: 10px; letter-spacing: 0.04em; line-height: 1.35; color: var(--grey-2); text-wrap: balance; }
#phChip .pc-ef { color: var(--abx); }
#phChip .pc-ring { width: 14px; height: 14px; transform: rotate(-90deg); flex: none; }
#phChip .pc-ring circle { fill: none; stroke: rgba(236, 232, 225, 0.14); stroke-width: 2.4; }
#phChip .pc-ring .pc-p { stroke: var(--abx); stroke-dasharray: 50.27; stroke-dashoffset: 0; transition: stroke-dashoffset 0.3s linear; }
@media (max-width: 420px) {
  #phChip { top: calc(var(--sat) + 54px); padding: 4px 9px 5px; gap: 1px; }
  #phChip .pc-l1 { gap: 6px; }
  #phChip .pc-n { letter-spacing: 0.12em; font-size: 9.5px; }
  #phChip.combo .pc-n { letter-spacing: 0.06em; font-size: 9px; }
  #phChip .pc-l2 { font-size: 9.5px; }
}
body.cine-tau #phChip, body.cine #phChip { opacity: 0 !important; }

/* barra do chefe antibiótico: nome e preenchimento na cor do tratamento */
#bossbar.bb-abx #bossName { color: var(--abx, var(--off)); }
#bossbar.bb-abx .track i:not(.bb-ghost) { background: var(--abx, var(--off)); }
#bossbar.bb-abx .bb-mods { color: var(--grey-2); }

/* ---------- v27 · ARSENAL: composição única (sem vazios) ----------
   Desktop/tablet: duas colunas — à esquerda a prévia + o seletor colado embaixo; à direita as informações, ocupando as
   duas linhas. A prévia ESTICA até a altura das informações (nunca sobra um vão embaixo dela), com mínimo e teto. */
@media (min-width: 761px) {
  .ar-main { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "stage info" "grid info"; gap: 14px 34px; align-items: stretch; }
  .ar-stage { grid-area: stage; aspect-ratio: auto; height: auto; min-height: clamp(280px, 40vh, 420px); max-height: min(70vh, 640px); }
  .ar-info { grid-area: info; align-self: start; }
  .ar-grid { grid-area: grid; margin-top: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .ar-card { padding: 10px 4px 9px; gap: 6px; }
  .ar-card .sk-ico svg { width: 44px; height: 44px; }
  .ar-ctx b { font-size: 9.5px; letter-spacing: 0.08em; }
  .ar-req { margin-top: 16px; }
  .ar-act { margin-top: 16px; }
  .ar-traits { margin-top: 18px; padding-top: 14px; }
}
@media (min-width: 761px) and (max-width: 1020px) {
  .ar-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 22px; }
  .ar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ar-traits { grid-template-columns: 1fr; gap: 10px; }
  .ar-name { font-size: 26px; }
}
@media (min-width: 761px) and (max-height: 700px) { .ar-stage { min-height: 240px; } .ar-head { margin-bottom: 12px; } }

/* ---------- v27 · EVOLUÇÃO DA COLÔNIA (perfil) ---------- */
.pf-evo-sec .pf-h .pf-hn { letter-spacing: 0.06em; text-transform: none; color: var(--grey); }
.evo-k { margin: 14px 0 8px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.evo-near { list-style: none; }
.evo-near li { display: grid; gap: 5px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.evo-nt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.evo-nt b { font-weight: 400; font-size: 14px; color: var(--off); }
.evo-pc { font-size: 11px; color: var(--lime); letter-spacing: 0.06em; }
.evo-nm { font-size: 11.5px; color: var(--grey-2); line-height: 1.4; }
.evo-near .ar-bar i { background: var(--lime); }
.evo-ins { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.evo-ins .ins { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 8px; background: #07070f; min-width: 0; }
.ins-ico { flex: none; line-height: 0; }
.ins-svg .ins-core { fill: color-mix(in srgb, var(--ia) 7%, #07070f); stroke: rgba(236, 232, 225, 0.12); stroke-width: 1; }
.ins-svg path.off { fill: none; stroke: rgba(236, 232, 225, 0.12); stroke-width: 2.4; stroke-linecap: round; }
.ins-svg path.on { fill: none; stroke: var(--ia); stroke-width: 2.6; stroke-linecap: round; }
.ins-svg .ins-g { fill: none; stroke: var(--ia); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ins-svg[data-l="none"] .ins-g { stroke: rgba(236, 232, 225, 0.32); }
.ins-svg[data-l="full"] .ins-core { fill: color-mix(in srgb, var(--ia) 16%, #07070f); stroke: var(--ia); }
.ins-svg[data-l="full"] { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--ia) 45%, transparent)); }
.ins-tx { display: grid; gap: 2px; min-width: 0; }
.ins-tx b { font-weight: 500; font-size: 11.5px; letter-spacing: 0.08em; color: var(--off); }
.ins-tx small { font-size: 10.5px; color: var(--grey-2); }
.ins-tx .ins-next { color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins[data-s="lock"] .ins-tx b { color: var(--grey-2); }
.ins[data-s="done"] .ins-tx small:first-of-type { color: var(--ia); }
.evo-titles { margin-top: 4px; display: grid; gap: 8px; }
.evo-titles .evo-k { margin-bottom: 0; }
.evo-tchips { display: flex; flex-wrap: wrap; gap: 6px; }
.evo-tchip { padding: 5px 10px; border: 1px solid rgba(255, 196, 107, 0.35); font-size: 11.5px; letter-spacing: 0.1em; color: var(--amber); }
.evo-tnone { font-size: 12px; color: var(--grey); }
.evo-tnext { font-size: 11.5px; color: var(--grey-2); line-height: 1.45; }
@media (max-width: 560px) { .evo-ins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .evo-ins { grid-template-columns: 1fr; } }

/* ---------- v27 · pós-partida: discreto, abaixo do resultado ---------- */
.over-evo { margin: 0 0 22px; padding: 12px 0 0; border-top: 1px solid var(--line); text-align: left; display: grid; gap: 6px; }
.over-evo .oe-k { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey-2); }
.over-evo .oe-k i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.over-evo .oe-l { font-size: 13px; color: var(--off); line-height: 1.45; }
.over-evo .oe-s { font-size: 11.5px; color: var(--grey-2); line-height: 1.45; }
.over-evo .oe-new { display: flex; flex-wrap: wrap; gap: 6px; }
.over-evo .oe-chip { padding: 4px 8px; border: 1px solid rgba(198, 234, 106, 0.4); font-size: 11px; color: var(--lime); letter-spacing: 0.04em; }
.over-evo .oe-next { display: grid; gap: 5px; font-size: 12px; color: var(--grey-2); }
.over-evo .ar-bar i { background: var(--lime); }
#over.show .over-evo { animation: statIn 0.42s cubic-bezier(.2, .7, .2, 1) 0.46s both; }
@media (prefers-reduced-motion: reduce) { #over.show .over-evo { animation: none; } }
@media (min-width: 761px) {
  /* as informações acompanham a altura da coluna da prévia: características e nota descem até alinhar com o seletor */
  .ar-info { align-self: stretch; display: flex; flex-direction: column; }
  .ar-info .ar-traits { margin-top: auto; }
  .ar-info .ar-act + .ar-traits { margin-top: max(18px, auto); }
  .ar-stage { min-height: clamp(260px, 36vh, 400px); }
}
/* telas grandes: o Arsenal ocupa a área útil (mais largo, prévia maior) e fica centralizado na altura */
@media (min-width: 1400px) and (min-height: 820px) {
  #arsenal { align-items: center; }
  .ar-inner { max-width: min(1280px, 90vw); }
  .ar-stage { min-height: clamp(360px, 46vh, 560px); }
  .ar-name { font-size: 40px; }
  .ar-rq, .ar-pl { font-size: 15px; }
  .ar-traits dd { font-size: 14px; }
  .ar-card .sk-ico svg { width: 52px; height: 52px; }
  .ar-ctx b { font-size: 10.5px; }
}
/* tablet em pé: uma coluna — prévia, seletor inteiro (6) e as informações em seguida, sem vão */
@media (min-width: 761px) and (max-width: 1020px) and (orientation: portrait) {
  .ar-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "stage" "grid" "info"; gap: 14px; }
  .ar-stage { min-height: 0; height: min(42vh, 520px); max-height: none; }
  .ar-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ar-info { display: block; margin-top: 8px; }
  .ar-info .ar-traits { margin-top: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- v28.1 · ARSENAL: a altura vem do espaço disponível, não da quantidade de requisitos ----------
   arsenal.js mede a altura natural das informações das seis skins na largura atual (--ar-info-max) e a altura útil da tela
   (--ar-avail). Trocar de skin não muda nenhuma altura. Sem altura fixa universal: cada faixa de tela tem a sua regra. */
#arsenal.ar-measure .ar-info { align-self: start !important; min-height: 0 !important; height: auto !important; }
#arsenal.ar-measure .ar-main { min-height: 0 !important; }
#arsenal.ar-mtraits .ar-traits { min-height: 0 !important; }
/* desktop, notebook e tablet deitado (duas colunas): a área principal ocupa a altura útil (teto de 880 px) ou a maior
   altura de informações, o que for maior; a prévia cresce com ela e as informações se distribuem na coluna da direita */
@media (min-width: 761px) and (orientation: landscape), (min-width: 1021px) {
  .ar-main { min-height: max(var(--ar-info-max, 0px), min(var(--ar-avail, 0px), 880px)); }
  .ar-stage { max-height: none; }
  /* nome e requisitos no alto; ação, características e nota ancoradas embaixo (alinhadas com o fim do seletor). A sobra
     fica entre os dois grupos — o botão de ação não muda de lugar ao trocar de skin */
  .ar-info .ar-act { margin-top: auto; padding-top: 18px; }
  .ar-info .ar-traits { margin-top: 18px; min-height: var(--ar-traits-max, 0px); align-content: start; }
}
/* tablet em pé e celular (uma coluna): as informações ficam embaixo; a reserva evita que a página encolha ao trocar de skin */
@media (max-width: 760px), (min-width: 761px) and (max-width: 1020px) and (orientation: portrait) {
  .ar-info { min-height: var(--ar-info-max, 0px); }
}
/* telas grandes (2K, 4K): a composição alarga junto com a altura, em vez de ficar uma faixa estreita no meio */
@media (min-width: 1900px) and (min-height: 1100px) {
  .ar-inner { max-width: min(1560px, 82vw); }
  .ar-main { min-height: max(var(--ar-info-max, 0px), min(var(--ar-avail, 0px), 1040px)); }
}

/* v29 · ADAPTAÇÕES ESPECIALIZADAS — botões só das habilidades manuais possuídas (Biofilme F, Manipulação R) e da
   RUPTURA (Q) quando a sinergia existe. Desktop: fileira curta no canto inferior esquerdo, com a tecla. Celular: coluna
   compacta à direita, acima do Marco — longe do polegar que move a bactéria e sem cobrir o centro. */
.abil { position: fixed; z-index: 9; left: calc(var(--sal) + 14px); bottom: calc(var(--sab) + 14px); display: flex; align-items: center; gap: 8px; pointer-events: none; }
.abil[hidden] { display: none; }
.ab-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--grey-2); background: rgba(9, 10, 18, 0.72); cursor: pointer; pointer-events: auto; touch-action: manipulation; outline: none; --ab: #e6d37a; }
.ab-btn[hidden] { display: none; }
.ab-btn:focus-visible { outline: 1px solid var(--off); outline-offset: 2px; }
.ab-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ab-ring circle { fill: none; stroke-width: 2; }
.ab-r0 { stroke: rgba(236, 232, 225, 0.12); }
.ab-r1 { stroke: var(--ab); stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0.55; transition: stroke-dashoffset 0.2s linear; }
.ab-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.5; }
.ab-key { position: absolute; right: -4px; bottom: -4px; min-width: 16px; padding: 0 3px; font: inherit; font-size: 9.5px; line-height: 13px; text-align: center; border: 1px solid rgba(236, 232, 225, 0.3); background: #090a12; color: var(--grey-2); }
.ab-btn[data-state="ready"] { color: var(--ab); }
.ab-btn[data-state="ready"] .ab-ico, .ab-btn[data-state="active"] .ab-ico { opacity: 1; }
.ab-btn[data-state="ready"] .ab-r1 { opacity: 1; }
.ab-btn[data-state="ready"] .ab-key { border-color: var(--ab); color: var(--ab); }
.ab-btn[data-state="active"] { color: var(--off); }
.ab-btn[data-ab="pir"] { --ab: var(--amber); }
.ab-btn.noanchor .ab-ico { opacity: 0.28; }
/* v29.1 · mira do Biofilme: o botão fica aceso enquanto a prévia está aberta (tracejado = plano inválido); dica curta e × */
.ab-btn.aiming { color: var(--ab); background: rgba(198, 234, 106, 0.12); box-shadow: 0 0 0 1px rgba(198, 234, 106, 0.55); }
.ab-btn.aiming.aimbad { --ab: #ff6a4a; color: #ff6a4a; background: rgba(255, 106, 74, 0.08); box-shadow: 0 0 0 1px rgba(255, 106, 74, 0.6); }
.ab-btn.aiming .ab-ico { opacity: 1; }
.ab-btn[data-ab="biofilme"] { touch-action: none; }
.ab-aim { display: inline-flex; align-items: center; gap: 6px; pointer-events: auto; font-size: 10.5px; letter-spacing: 0.06em; padding: 3px 4px 3px 8px; border: 1px solid rgba(198, 234, 106, 0.45); background: rgba(9, 10, 18, 0.82); color: var(--grey-2); white-space: nowrap; }
.ab-aim[hidden] { display: none; }
.ab-aim-x { width: 30px; height: 30px; display: grid; place-items: center; font: inherit; font-size: 17px; line-height: 1; color: var(--off); background: transparent; border: 1px solid rgba(236, 232, 225, 0.25); cursor: pointer; touch-action: manipulation; }
.ab-aim-x:focus-visible { outline: 1px solid var(--off); outline-offset: 2px; }
.ab-chip, .ab-msg { font-size: 10.5px; letter-spacing: 0.08em; padding: 4px 8px; border: 1px solid var(--line); background: rgba(9, 10, 18, 0.78); color: var(--grey-2); white-space: nowrap; }
.ab-chip { color: #e6d37a; border-color: rgba(230, 211, 122, 0.4); }
.ab-chip[hidden], .ab-msg[hidden] { display: none; }
@media (hover: hover) { .ab-btn[data-state="ready"]:hover { background: rgba(230, 211, 122, 0.1); } }
.ab-btn:active { background: rgba(236, 232, 225, 0.08); }
body.has-marco .abil { bottom: calc(var(--sab) + 14px); }
@media (min-width: 760px) and (pointer: fine) { body.has-marco .abil { left: calc(var(--sal) + 14px); } }
@media (max-width: 759px), (pointer: coarse) {
  .abil { left: auto; right: calc(var(--sar) + 12px); bottom: calc(var(--sab) + 78px); flex-direction: column-reverse; align-items: flex-end; gap: 10px; }
  body.has-marco .abil { bottom: calc(var(--sab) + 152px); }
  .ab-btn { width: 52px; height: 52px; }
  .ab-ico { width: 22px; height: 22px; }
  .ab-chip, .ab-msg { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }
  .ab-aim { max-width: calc(100vw - 90px); white-space: normal; line-height: 1.35; }
  .ab-aim-x { width: 40px; height: 40px; flex: none; }
}
@media (max-height: 460px) and (orientation: landscape) {
  .abil { bottom: calc(var(--sab) + 12px); right: calc(var(--sar) + 12px); flex-direction: row-reverse; align-items: center; }
  body.has-marco .abil { right: calc(var(--sar) + 88px); bottom: calc(var(--sab) + 12px); }
  .ab-btn { width: 46px; height: 46px; }
}
body.cine .abil { opacity: 0.18; }
.build span.abl { border-color: rgba(230, 211, 122, 0.38); }
.build span.abl b { color: #e6d37a; }

/* v29 · cartão de continuidade no menu (partida salva) — mesmo tom do menu: linha fina, texto pequeno, sem cor nova */
.resume-card { width: min(100%, 360px); margin: 4px auto 14px; padding: 12px 14px 12px; border: 1px solid var(--line); background: rgba(9, 10, 18, 0.62); text-align: left; display: grid; gap: 6px; }
.resume-card[hidden] { display: none; }
.resume-card.ask { border-color: rgba(198, 234, 106, 0.5); }
.rc-t { font-size: 11px; letter-spacing: 0.22em; color: var(--off); }
.rc-s { font-size: 13px; letter-spacing: 0.04em; color: var(--off); }
.rc-n { font-size: 11px; line-height: 1.45; color: var(--grey-2); }
.resume-card.ask .rc-n { color: var(--off); }
.rc-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rc-act[hidden] { display: none; }
.rc-act .btn { flex: 1 1 140px; min-height: 40px; padding: 10px 12px; font-size: 11.5px; letter-spacing: 0.14em; }
.rc-act .btn.link { flex: 0 0 auto; }
.rc-q { flex: 1 1 100%; font-size: 11px; line-height: 1.45; color: var(--off); }
.pz-save { margin: -10px 0 20px; font-size: 11px; line-height: 1.45; color: var(--grey); }
.pz-save:empty { display: none; }
@media (max-width: 380px) { .resume-card { padding: 10px 11px; } .rc-act .btn { flex-basis: 120px; letter-spacing: 0.1em; } }
/* v29: seis links (entrou Ameaças) — cabem numa linha só, sem quebrar "Como jogar" */
@media (min-width: 761px) { .menu-links a { padding-left: 14px; padding-right: 14px; white-space: nowrap; } .menu-links a::after { left: 14px; right: 14px; } }

/* v29 · cartão de primeira aparição de um inimigo — num canto, nunca sobre a bactéria; não bloqueia toque nem clique */
.foe-card { position: fixed; z-index: 8; right: calc(var(--sar) + 14px); top: calc(var(--sat) + 58px); max-width: 270px; padding: 9px 12px 10px; display: grid; gap: 3px;
  border: 1px solid var(--line); border-left: 2px solid rgba(207, 214, 245, 0.55); background: rgba(9, 10, 18, 0.8); pointer-events: none;
  opacity: 0; transform: translateX(8px); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.3, .6, .2, 1); }
.foe-card.show { opacity: 1; transform: none; }
.fc-k { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey); }
.fc-n { font-size: 12.5px; letter-spacing: 0.14em; color: var(--off); }
.fc-w { font-size: 11px; line-height: 1.4; color: var(--grey-2); }
@media (max-width: 759px), (pointer: coarse) { .foe-card { top: auto; right: auto; left: calc(var(--sal) + 12px); bottom: calc(var(--sab) + 78px); max-width: min(62vw, 250px); } }
@media (max-height: 460px) and (orientation: landscape) { .foe-card { bottom: auto; top: calc(var(--sat) + 50px); } }
@media (prefers-reduced-motion: reduce) { .foe-card { transition: opacity 0.2s linear; transform: none; } }
body.cine .foe-card { opacity: 0; }

/* v29 · AMEAÇAS: catálogo com o desenho animado de cada inimigo, identidade, regra do jogo e função real */
.threats { z-index: 40; overflow-y: auto; background: rgba(6, 7, 13, 0.96); }
.th-in { width: min(100% - 32px, 760px); margin: 0 auto; padding: calc(var(--sat) + 36px) 0 calc(var(--sab) + 40px); text-align: left; }
.th-k { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--grey); }
.th-t { margin: 6px 0 8px; font-size: 20px; font-weight: 400; letter-spacing: 0.3em; color: var(--off); }
.th-sub { font-size: 12.5px; line-height: 1.55; color: var(--grey-2); margin-bottom: 22px; max-width: 60ch; }
.th-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.th-row { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--line); background: rgba(12, 13, 22, 0.7); }
.th-cv { width: 72px; height: 72px; align-self: start; }
.th-n { font-size: 12.5px; letter-spacing: 0.16em; color: var(--off); }
.th-seen { margin-left: 8px; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); }
.th-seen[hidden] { display: none; }
.th-w { margin: 3px 0 6px; font-size: 12px; color: var(--grey-2); }
.th-l { margin-top: 4px; font-size: 11.5px; line-height: 1.5; color: var(--grey-2); }
.th-l b { font-weight: 400; color: var(--off); letter-spacing: 0.06em; margin-right: 4px; }
.th-f b { color: var(--amber); }
.th-more { margin: 18px 0 16px; font-size: 11.5px; color: var(--grey); }
.th-more a { color: var(--off); }
.th-back { display: block; margin: 0 auto; }
@media (max-width: 420px) { .th-row { grid-template-columns: 56px 1fr; gap: 10px; padding: 10px; } .th-cv { width: 56px; height: 56px; } }
.threats { display: block; padding: 0; }

/* v29 · TOP 5 no menu inicial — à esquerda, fora do fluxo, só com espaço livre (home.js decide; aqui só a forma) */
.menu-top5 { position: absolute; left: calc(var(--sal) + 28px); top: 50%; transform: translateY(-50%); width: 232px; padding: 14px 16px 12px; z-index: 1;
  border: 1px solid rgba(236, 232, 225, 0.12); background: rgba(6, 7, 16, 0.42); text-align: left; pointer-events: none; }
.menu-top5[hidden] { display: none; }
.mt5-k { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey-2); }
.mt5-s { margin-top: 2px; font-size: 10.5px; letter-spacing: 0.08em; color: var(--grey); }
.mt5-l { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.mt5-l li { display: grid; grid-template-columns: 1.4em 1fr auto; gap: 10px; align-items: baseline; font-size: 12.5px; color: #c4c6d4; }
.mt5-l .r { color: var(--grey); }
.mt5-l .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt5-l .s { color: var(--grey-2); letter-spacing: 0.03em; }
.mt5-l li.first .r, .mt5-l li.first .s { color: #e3c46f; }
.mt5-l li.first .n { color: var(--off); }
.mt5-x { margin-top: 10px; font-size: 11px; color: var(--grey); }
#menu.leaving:not(.show) .menu-top5 { opacity: 0; transition: opacity 0.25s ease; }
.card.espec .c-abl { font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.card.espec .c-abl .c-to { font-weight: 400; color: var(--off); }
