/* Caridle — HUD "Painel de instrumentos" (direção A, escolhida pelo Lucas em 28/11; proposta em docs/hud-proposta.md):
   a tela é o painel do carro à noite. Plástico preto, luz âmbar (a única cor de destaque: ponteiro, LEDs, Oferta,
   aba ativa), costura tracejada do couro. O piloto desce para o painel de baixo (conta-giros = XP, placa Mercosul = nick,
   odômetros = moedas, luzes-espia = buffs, teclas do console = janelas); em cima fica a faixa de para-sol (pista, online,
   BETA, Grande Achado). Sem raio grande, anel preto de 2 px e sombra dura de 3 px. Pixelify só em títulos, botões e números. */

/* Pixelify Sans (SIL OFL 1.1), hospedada aqui: assets/fonts/OFL.txt */
@font-face {
  font-family: "Pixelify Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(assets/fonts/PixelifySans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Dígitos legíveis (Lucas, 28/11: na Pixelify o 5 parece S ou $): só 0-9, numa fonte comum do sistema, antes da Pixelify */
@font-face { font-family: "Caridle Digits"; font-weight: 400 900; font-display: swap; unicode-range: U+0030-0039;
  src: local("Segoe UI Semibold"), local("SegoeUI-Semibold"), local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("DejaVu Sans Bold"), local("Segoe UI"), local("Arial"), local("Roboto"), local("DejaVu Sans"); }
/* G e C maiúsculos legíveis (Lucas, 02/12: na Pixelify o G de "Garagem" parece B; o C de "Customização" parece O): só essas
   duas letras, numa fonte comum do sistema, antes da Pixelify */
@font-face { font-family: "Caridle G"; font-weight: 400 900; font-display: swap; unicode-range: U+0043, U+0047;
  src: local("Segoe UI Bold"), local("SegoeUI-Bold"), local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("DejaVu Sans Bold"), local("Segoe UI"), local("Arial"); }
:root {
  --pixel: "Caridle Digits", "Caridle G", "Pixelify Sans", ui-monospace, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ui: 1;
  --ink: #ecebe6; --ink2: #a4a2ac; --line: #000;
  /* painel: plástico preto em faixas duras, borda e costura */ --dash: #111114; --dash2: #18181d; --edge: #2c2c33; --stitch: #46464f;
  /* luz âmbar: o único destaque do HUD */ --amber: #ffb000; --amber2: #ff7a00; --amber-dim: #3a2a10; --lcd: #140e04; --lcd-ink: #ffc766; --led: #ff3b30;
  /* molduras (classe .plate) */ --w-dark: #0c0c0e; --w-mid: #18181d; --w-warm: #1d1d23; --w-light: #34343c;
  /* painéis de conteúdo (classe .panel) */ --p-dark: #2c2c33; --p-mid: #141418; --p-warm: #18181d; --p-light: #0a0a0c;
  /* teclas (botões): plástico escuro */ --b-light: #4a4a54; --b-shadow: #101013; --b-base: #26262d; --b-clear: #2c2c34; --b-hi: #3a3a44; --b-line: #000;
  /* selo do ícone */ --brass: var(--amber); --brass-line: #000;
  --sea: #3a2418; --gold: #ffd23a; --gold2: #ff8a1e; --cash: #7cf09a; --neon: #3ae8ff; --neon2: var(--amber);
  --hazard: repeating-linear-gradient(45deg, var(--amber) 0 8px, #111 8px 16px);
  --hp: #4ed06a; --xp: #b07aff; --red: #ff5a4a;
  --compact: #3a72d8; --stanced: #9a4ae0; --sport: #e8402a; --classic: #b8783a; --stunt: #f0b820; --dirt: #5a9a2a;
  --common: #b8b0d0; --uncommon: #5ad06a; --rare: #5aaaff; --epic: #c070ff; --mythic: #ffc23a; --legendary: #ff3d8b; --event: #ff4a5a; --event2: #3ad86a; --champion: #e8f4ff; --champion2: #6fe3ff; /* cores trocadas a pedido do Lucas (28/11): Unicorn dourado, Grail rosa (o topo) */
  --outline: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000;
  --outline2: 2px 0 0 var(--line), -2px 0 0 var(--line), 0 2px 0 var(--line), 0 -2px 0 var(--line);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; color: var(--ink); font: 13px/1.45 var(--sans); -webkit-tap-highlight-color: transparent; }
body { background: var(--dash); } /* plástico do painel */
button, select, input { font: inherit; color: inherit; }
h2, h3, .btn, .cap-name, .cap-lv, .money b, #eventBar, #zoomBox b, .tag, .grade, #mhead b, .tab, .bar-txt { font-family: var(--pixel); }
/* a Pixelify Sans tem uma ligadura "fi" que desenha um "A" ("Oficina" virava "OAcina"): ligaduras desligadas no jogo todo */
*, *::before, *::after { font-variant-ligatures: none !important; } /* !important: o atalho font: das regras (ex.: .tab) volta a ligadura para o padrão */
canvas, img { image-rendering: pixelated; image-rendering: crisp-edges; }
canvas.ico { width: 16px; height: 16px; vertical-align: -3px; }
b, .num, .bar-txt, .cnt, time, .money, #mCash, .lbl { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
small, .hint { font-size: 10.5px; color: var(--ink2); }

/* ---------- painéis: anéis por dentro 2/4/6 (linha, luz, média) + sombras duras 4 e 6, faixas duras ---------- */
.plate, .panel { border-radius: 3px; padding: 13px 15px 15px; position: relative; }
.plate { color: #e4e6ec;
  background: linear-gradient(#ffffff10 0 2px, transparent 2px), linear-gradient(var(--w-dark) 0 10px, var(--w-mid) 10px calc(100% - 16px), var(--w-warm) calc(100% - 16px) calc(100% - 8px), var(--w-mid) calc(100% - 8px));
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--w-light), inset 0 0 0 6px var(--w-mid), 0 4px 0 var(--line), 0 6px 0 #0006; }
.panel { color: var(--ink);
  background: linear-gradient(var(--p-dark) 0 10px, var(--p-mid) 10px calc(100% - 16px), var(--p-warm) calc(100% - 16px) calc(100% - 8px), var(--p-mid) calc(100% - 8px));
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--p-light), inset 0 0 0 6px var(--p-dark), 0 4px 0 var(--line), 0 6px 0 #0006; }
.card h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; text-shadow: var(--outline2); display: flex; align-items: center; gap: 6px; min-height: 18px; }
.slot { border-radius: 4px; background: #0e0a1c; color: #f4efff; box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px #06040c; padding: 2px 8px; }

/* ---------- botões: chanfro de 5 faixas duras, 4 anéis por dentro, sombra dura de 3 px ---------- */
.btn, #bottom button, .chip, #rail button {
  border: 0; border-radius: 3px; color: #fff; cursor: pointer; min-height: 40px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative; top: 0;
  background: linear-gradient(var(--b-light) 0 4px, var(--b-shadow) 4px 8px, var(--b-base) 8px calc(100% - 9px), var(--b-clear) calc(100% - 9px) calc(100% - 5px), var(--b-hi) calc(100% - 5px));
  box-shadow: inset 0 0 0 2px var(--b-line), inset 0 0 0 3px var(--b-hi), 0 3px 0 var(--line);
  text-shadow: 1px 0 0 var(--b-line), -1px 0 0 var(--b-line), 0 1px 0 var(--b-line), 0 -1px 0 var(--b-line);
  transition: filter 80ms, top 60ms, box-shadow 60ms;
}
.btn:hover, #bottom button:hover, #rail button:hover { filter: brightness(1.12); }
.btn:active, #bottom button:active, .chip:active, #rail button:active { top: 3px; box-shadow: inset 0 0 0 2px var(--b-line), inset 0 0 0 3px var(--b-hi); }
.btn.gold { --b-light: #ffe08a; --b-shadow: #b06a00; --b-base: #ffa000; --b-clear: #ffb000; --b-hi: #ffc640; --b-line: #000; color: #1a0e00; text-shadow: none; }
.btn:disabled { filter: grayscale(.8) brightness(.8); cursor: default; top: 0; }
.btn.sq { min-width: 40px; padding: 0; }
.btn.c32 { width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; }
/* aviso: LED vermelho aceso no canto da tecla, piscando em 2 passos */
.notice::after { content: ""; position: absolute; top: 5px; right: 5px; width: 10px; height: 5px; background: var(--led); box-shadow: 0 0 0 2px var(--line), 0 0 6px var(--led); animation: ping 1.4s steps(2) infinite; z-index: 2; }
@keyframes ping { 50% { opacity: .35; } }

/* ---------- grade: faixa de para-sol em cima; Automações | pista | rádio no meio; o painel embaixo ---------- */
/* (Lucas, 28/11: "deixa uma coluna só pro chat, a gente tira a automação, passa pra ponta esquerda") */
#game { height: 100dvh; display: grid; padding: 0; gap: 0; overflow: hidden; position: relative;
  --lw: calc(296px * var(--ui)); --rw: calc(340px * var(--ui));
  grid-template-columns: var(--lw) minmax(0, 1fr) var(--rw); grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "strip strip strip" "lcol center right" "left left left"; }
/* recolher: as Automações para a esquerda e o chat para a direita viram faixas finas (Lucas, 02/12) */
#game.lshut { --lw: calc(58px * var(--ui)); }
#game.rcol { --rw: calc(54px * var(--ui)); }
#strip { grid-area: strip; } #left { grid-area: left; } #lcol { grid-area: lcol; } #right, #rail { grid-area: right; }
#center { grid-area: center; min-height: 0; min-width: 0; display: flex; }
#strip, #left, #lcol, #right, #rail { zoom: var(--ui); }
#right, #lcol { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: hidden; padding: 12px 12px 12px 17px;
  background: var(--dash2); box-shadow: inset 3px 0 0 #000, inset 5px 0 0 var(--edge); }
#lcol { padding: 12px 17px 12px 12px; box-shadow: inset -3px 0 0 #000, inset -5px 0 0 var(--edge); }
.card { flex: none; animation: slide .2s steps(4) both; }
.card.grow { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#game.rcol #right { display: none; }
#rail { display: none; flex-direction: column; gap: 8px; align-items: center; padding: 12px 0; background: var(--dash2); box-shadow: inset 3px 0 0 #000; }
#game.rcol #rail { display: flex; }
#rail button { width: 44px; height: 44px; padding: 0; }
#mhead, #bottom { display: none; }
.card h3 .collapse { margin-left: auto; min-height: 24px; min-width: 24px; height: 24px; padding: 0; font-size: 12px; text-transform: none; }
/* rótulo de seção: pixel miúdo, cinza, com um fio até a borda */
.card h3 { margin: 0 0 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--ink2); text-shadow: none; display: flex; align-items: center; gap: 8px; min-height: 18px; }
#right .card > h3::after, #lcol .card > h3::after, #fieldBox > h3::after { content: ""; flex: 1; height: 2px; background: var(--edge); }
#right .card > h3 .collapse, #lcol .card > h3 .collapse { order: 2; margin-left: 0; }
#right > .panel, #lcol > .panel { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Pit Stop e itens: seção própria embaixo das Automações, separada por título com fio */
#quickBox { flex: none; margin-top: auto; padding-top: 12px !important; border-top: 2px dashed var(--stitch); }
.quick { display: flex; flex-direction: column; gap: 10px; }
.quick #pitBtn { position: static; width: 100%; justify-content: flex-start; }
.quick #pitBtn small { margin-left: auto; }
.quick #shortcuts { position: static; transform: none; flex-direction: row; justify-content: space-between; align-items: stretch; gap: 8px; }
.quick #shortcuts .btn { flex: 1; width: auto; height: 56px; }
.quick #shortcuts .btn b { left: auto; right: -4px; bottom: -6px; }
/* coluna das Automações recolhida: só o botão de abrir e as teclas do Pit Stop e dos itens, empilhadas */
#game.lshut #lcol { padding: 12px 8px; }
#game.lshut #autoBox { flex: none; } #game.lshut #autoBox h3 { justify-content: center; }
#game.lshut #autoBox h3 > :not(.collapse), #game.lshut #autoBox h3::after { display: none; }
#game.lshut #quickBox h3 { display: none; }
#game.lshut #quickBox { border-top: 0; }
#game.lshut .quick #pitBtn { width: 42px; height: 42px; min-height: 42px; padding: 0; justify-content: center; }
#game.lshut .quick #pitBtn > :not(canvas) { display: none; }
#game.lshut .quick #shortcuts { flex-direction: column; } #game.lshut .quick #shortcuts .btn { flex: none; width: 42px; height: 42px; }
#game.lshut .quick #shortcuts .btn canvas { width: 32px; height: 32px; }
/* chat: botão de recolher para a direita, no canto das abas */
#chatBox { position: relative; }
#chatFold { position: absolute; right: 0; top: 0; width: 28px; min-width: 28px; height: 38px; min-height: 38px; padding: 0; font-size: 14px; z-index: 1; }
#chatBox .tabs { margin-right: 32px; }
/* janela da Nina (customização do Pit Stop) */
.custom { display: flex; flex-direction: column; gap: 12px; }
.cz-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cz-card { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; align-items: center; padding: 12px;
  background: linear-gradient(#34343c 0 4px, var(--b-base) 4px calc(100% - 6px), #121216 calc(100% - 6px)); box-shadow: inset 0 0 0 2px #000, 0 3px 0 #000; }
.cz-card canvas, .cz-card .gar-ico { grid-row: span 2; } .cz-card b { font: 700 14px var(--pixel); color: var(--amber); } .cz-card small { color: var(--ink2); }
.cz-card:hover { filter: brightness(1.15); } .cz-card:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.cz-h { margin: 4px 0 0; font: 700 12px var(--pixel); text-transform: uppercase; letter-spacing: 1px; color: var(--ink2); }
html.mobile .cz-menu { grid-template-columns: 1fr; }
/* coleção de auras: a travada mostra a aura animada, mas em cinza, mais fraca e com um cadeado pequeno (CSS, sem emoji) */
.au-tile .au-art { position: relative; }
.paura.au-locked { filter: grayscale(.35) brightness(.85); opacity: .75; } /* cor de cada aura continua visível (senão "todas iguais"), só mais fraca */
.au-tile.locked .au-art::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 8px; height: 6px; background: #8a8a94; box-shadow: 0 0 0 1px #000; border-radius: 1px; }
.au-tile.locked .au-art::before { content: ""; position: absolute; right: 3px; bottom: 7px; width: 4px; height: 4px; border: 1px solid #8a8a94; border-bottom: 0; border-radius: 3px 3px 0 0; }
.bag-link { cursor: pointer; } .bag-link:hover { background: #ffffff08; }
.bag-sel { height: 30px; max-width: 140px; } .bag-act { display: flex; gap: 6px; align-items: center; } /* Montar e Carimbar (client/bag.js) */
/* versão do jogo: rodapé discreto da coluna das Automações; clicar copia */
.vertag { all: unset; box-sizing: border-box; cursor: pointer; flex: none; align-self: flex-start; margin-top: 8px; padding: 2px 4px; font: 11px/1.2 var(--sans); color: #6a6a74; font-variant-numeric: tabular-nums; }
.vertag:hover, .vertag:focus-visible { color: var(--amber); outline: none; text-decoration: underline; }
#game.lshut .vertag { display: none; }
.vertag-set { font-variant-numeric: tabular-nums; }
/* balão de mensagens novas quando o jogador subiu na lista (client/ui/sticky.js) */
.newmsgs { position: absolute; left: 50%; transform: translateX(-50%); z-index: 3; border: 0; cursor: pointer; padding: 6px 12px; white-space: nowrap;
  font: 700 11.5px/1 var(--pixel); color: #1a0e00; background: var(--amber); box-shadow: 0 0 0 2px #000, 0 3px 0 #000; }
.newmsgs:hover { filter: brightness(1.1); } .newmsgs:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.chatwin { position: relative; } /* no rádio, sem caixa dentro de caixa */

/* ---------- faixa de para-sol: logo, a pista num visor âmbar, online, BETA, elo, e o Grande Achado ---------- */
#strip { display: flex; align-items: center; gap: 14px; padding: 0 14px; height: 46px; position: relative; min-width: 0;
  background: linear-gradient(#0a0a0c 0 calc(100% - 3px), var(--edge) calc(100% - 3px)); }
.strip-logo { flex: none; display: block; line-height: 0; }
.strip-logo .wm { height: 18px; }
#eventBar { display: flex; align-items: center; min-width: 0; }
#eventTxt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hud { font: 700 11.5px/1.2 var(--pixel); color: var(--amber); padding: 7px 10px; border-radius: 0; background: var(--lcd); box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px var(--amber-dim); white-space: nowrap; }
#eventBar.on { animation: pulse 1.6s steps(2) infinite; }

/* ---------- o painel: plástico preto, costura tracejada, instrumentos lado a lado ---------- */
#left { display: flex; gap: 16px; align-items: stretch; height: 200px; padding: 18px 14px 12px; position: relative; min-width: 0;
  background: linear-gradient(#26262c 0 4px, #000 4px 6px, var(--dash) 6px); }
#left::before { content: ""; position: absolute; left: 10px; right: 10px; top: 11px; border-top: 2px dashed var(--stitch); pointer-events: none; } /* costura */
#left > .card { animation: none; }
#driver { flex: none; }
.pc { display: flex; gap: 16px; height: 100%; }
/* botões de volante: retrato e os 6 atalhos do piloto, 2 × 4 teclas de 40 */
.pc-rail { display: grid; grid-template-columns: repeat(2, 40px); grid-auto-rows: 40px; gap: 4px; align-content: center; flex: none; }
.sq54 { width: 40px; height: 40px; min-height: 40px; min-width: 40px; padding: 0; }
.sq54.portrait { display: grid; place-items: center; border-radius: 3px; background: linear-gradient(var(--p-dark) 0 5px, var(--p-mid) 5px); box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px var(--amber-dim); }
.sq54 canvas.ico { width: 32px; height: 32px; }
/* conta-giros: o XP é o arco (--xp de 0 a 1, main.js renderCaptain), o nível no meio, o XP escrito embaixo */
.pc-gauge { --xp: 0; position: relative; flex: none; width: 160px; }
.pc-gauge::before, .pc-gauge::after { content: ""; position: absolute; left: 5px; top: 0; width: 150px; height: 150px; border-radius: 50%; pointer-events: none; }
.pc-gauge::before { background: conic-gradient(from 225deg, var(--amber) 0 calc(var(--xp) * 270deg), #2a2a31 0 270deg, transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px)); mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px)); }
.pc-gauge::after { background: repeating-conic-gradient(from 224deg, #8a8a94 0 2deg, transparent 2deg 27deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 22px), #000 calc(100% - 21px), #000 calc(100% - 15px), transparent calc(100% - 14px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 22px), #000 calc(100% - 21px), #000 calc(100% - 15px), transparent calc(100% - 14px));
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 50%, 0 80%); }
/* ponteiro: a barra de XP vira a agulha (a largura do <i>, que o JS mexe, fica escondida) */
.pc-gauge .bar.xp { position: absolute; left: 80px; top: 73px; width: 54px; height: 4px; border-radius: 0; background: var(--amber2); box-shadow: 0 0 0 1px #000; overflow: visible;
  transform-origin: 0 50%; transform: rotate(calc(135deg + var(--xp) * 270deg)); transition: transform .35s steps(6); }
.pc-gauge .bar.xp i { display: none; }
.pc-gauge .cap-lv { position: absolute; left: 50%; top: 75px; transform: translate(-50%, -50%); z-index: 1; min-width: 62px; padding: 6px 6px 5px; text-align: center; font: 700 20px/1 var(--pixel); color: var(--ink); background: var(--dash); box-shadow: 0 0 0 2px var(--stitch); white-space: nowrap; }
.pc-gauge .bar-txt { position: absolute; inset: auto 0 0 0; display: block; text-align: center; font-size: 11.5px; color: var(--amber); text-shadow: none; line-height: 1; }
.pc-gauge .vip-badge { position: absolute; top: 102px; left: 50%; transform: translateX(-50%); margin: 0; z-index: 1; }
/* placa Mercosul com o nick; o selo da beta colado como adesivo */
.pc-data { width: 214px; flex: none; min-width: 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.pc-name { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 16px 10px 5px; border-radius: 4px;
  background: linear-gradient(#1f4fb0 0 13px, #f4f4f0 13px); box-shadow: 0 0 0 2px #000, 0 3px 0 2px #000; }
.pc-name::before { content: "CARIDLE"; position: absolute; left: 8px; top: 2px; font: 700 8px/9px var(--pixel); letter-spacing: 2px; color: #fff; }
.pc-name .cap-name { font-weight: 700; font-size: 18px; letter-spacing: 1px; color: #111; text-shadow: none; }
.pc-name .tester-badge { position: absolute; right: -6px; top: -9px; margin: 0; transform: rotate(4deg); }
.pc-info { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--ink2); }
#pcZone { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank { font-family: var(--pixel); font-size: 11px; color: var(--ink); border-radius: 0; background: var(--b-base); box-shadow: inset 0 0 0 2px #000; padding: 2px 7px; flex: none; }
/* buffs (VIP e boosts); sem nenhum, só a linha de status (a dica longa fica na Ajuda) */
.pc-buffs { min-height: 0; flex: 1; overflow: hidden; font-size: 11.5px; color: var(--ink2); line-height: 1.3; }
.pc-buffs > div:not(.buffs-list) > div + div { display: none; }
.pc-buffs .buffs-list { display: flex; flex-direction: column; gap: 5px; }
.pc-buffs .vip-card { padding: 4px 6px; } .pc-buffs .vip-card .vip-perks { font-size: 11px; line-height: 1.2; }
.pc-buffs .boost-chips { display: flex; flex-wrap: nowrap; gap: 4px; overflow: hidden; }
.pc-buffs .boost-chip.more { font: 700 12px/1 var(--pixel); color: var(--amber); padding: 0 8px; }
.pc-buffs .boost-chip { flex: none; } .pc-buffs .boost-chip b { white-space: nowrap; font-size: 10.5px; }
/* odômetros: Dinheiro, Nitro, Cromo (em breve) e Indicação, em janelas pretas com o tambor no meio */
.money { display: grid; grid-template-columns: auto; gap: 6px; align-content: center; flex: none; }
.money .slot { display: flex; align-items: center; gap: 7px; height: 34px; width: 128px; padding: 0 9px 0 7px; min-width: 112px; border-radius: 0;
  background: linear-gradient(#000 0 46%, #0f0f12 46% 54%, #000 54%); box-shadow: inset 0 0 0 2px var(--edge); }
.money .slot b { color: #f4f4f0; font-size: 17px; letter-spacing: 1px; margin-left: auto; display: inline-block; }
.money .slot:first-child b { color: var(--cash); }
.money .slot.off { color: #4a4a52; justify-content: center; }
.money .slot.cromo-soon { opacity: .5; }
.money .slot.cromo-soon b, html.mobile .mmoney .coin.cromo-soon b { color: #8a8a94; }
.money .slot.ref { cursor: pointer; } .money .slot.ref b { color: #b4a8ff; } /* indicação: Nitro ganho; abre Convidar amigos */
.money .slot.ref:hover, .money .slot.ref:focus-visible { box-shadow: inset 0 0 0 2px var(--amber); outline: none; }
.slot { border-radius: 3px; background: #0a0a0c; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px #050506; padding: 2px 8px; }
.invite .ref-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 180px; overflow: auto; }
.invite .ref-list li { display: flex; gap: 8px; align-items: center; padding: 3px 6px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.invite .ref-list li b { flex: 1; } .invite .ref-list .st-rewarded { color: var(--cash); } .invite .ref-list .st-pending { color: var(--gold); } .invite .ref-list .st-rejected { color: #8a8a94; } /* Cromo em breve: saldo apagado até a moeda abrir */

/* barras (XP e fôlego) */
.bar { height: 8px; background: var(--line); border-radius: 0; position: relative; overflow: hidden; box-shadow: inset 0 0 0 2px var(--line); }
.bar.big { height: 14px; }
.bar i { position: absolute; inset: 2px auto 2px 2px; width: 0; display: block; transition: width .35s steps(6); max-width: calc(100% - 4px); }
.bar-txt { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; color: #fff; text-shadow: var(--outline); line-height: 1; }
.bar.xp i { background: linear-gradient(#ffd060 0 30%, var(--amber) 30% 75%, #b07000 75%); }
.bar.hp i { background: linear-gradient(#a8f0a8 0 30%, var(--hp) 30% 75%, #2a9a44 75%); }
.bar.hp.low i { background: linear-gradient(#ffb0a0 0 30%, var(--red) 30% 75%, #a02a1a 75%); }

/* na pista e garagem (janelas e gaveta) */
.field { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: center; }
.field .nm { font-family: var(--pixel); font-weight: 700; font-size: 15px; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; margin: 2px 0; }
.tag { font-size: 11px; padding: 1px 6px; border-radius: 2px; background: var(--w-dark); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); line-height: 1.4; }
.tag.stage { background: var(--amber); color: #1a0e00; }
.tag.serial { background: #000; color: var(--gold); box-shadow: inset 0 0 0 2px #ff8a1e; }
.tag.serial, .card-full .tag.serial { font-variant-numeric: tabular-nums; }
.sold { color: #ff6a8a !important; font-weight: 700; }
.tag.blackPlate { background: #06040c; color: #e4ecff; box-shadow: inset 0 0 0 2px #c8d4ee; }
.tag.c-Compact { background: var(--compact); } .tag.c-Stanced { background: var(--stanced); } .tag.c-Sport { background: var(--sport); }
.tag.c-Classic { background: var(--classic); } .tag.c-Stunt { background: var(--stunt); color: #1a1200; } .tag.c-Dirt { background: var(--dirt); }
.field .bar { margin-top: 2px; }
.lbl { font-size: 11px; color: var(--ink2); display: flex; justify-content: space-between; margin-top: 3px; }

/* Equipe no painel: os 3 em cartões do mesmo tamanho (Lucas, 28/11: os 2 de fora ficavam espremidos e cortados).
   Cada cartão: a arte, o nome inteiro (até 2 linhas), tier, Nv e nota, o fôlego e o XP. */
#fieldBox { flex: 1 1 0; min-width: 420px; display: flex; flex-direction: column; min-height: 0; }
#fieldBox > h3 { margin-bottom: 6px; }
#field { flex: 1; min-height: 0; overflow: hidden; }
#left .teamlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; height: 100%; }
#left .teamcard { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 6px; align-items: center; row-gap: 2px; align-content: start;
  padding: 20px 8px 6px; border-radius: 0; background: #0a0a0c; box-shadow: inset 0 0 0 2px #2a2a31; overflow: hidden; font-size: 11px; }
#left .teamcard.teamnow { box-shadow: inset 0 0 0 2px var(--tc); }
#left .teamcard > canvas { grid-row: 2; width: 32px; height: 32px; }
#left .teamcard .nm { grid-column: 1 / -1; font: 700 12px/1.15 var(--pixel); overflow-wrap: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#left .teamcard .tags { grid-row: 2; grid-column: 2; margin: 0; gap: 3px; }
#left .teamcard .tags .tag, #left .teamcard .tags .badge { font-size: 9.5px; padding: 1px 4px; }
#left .teamcard .lbl, #left .teamcard .bar { grid-column: 1 / -1; }
#left .teamcard .lbl { margin-top: 2px; font-size: 10px; }
#left .teamcard .bar { height: 7px; }
#left .teamcard .tn-badge { top: 4px; left: 8px; right: auto; }
#left .teamcard.down { opacity: .8; }
#field > div:not(.teamlist) { color: var(--ink2); font-size: 12px; }
/* Na garagem: tecla que abre direto a janela Garagem (Lucas, 28/11), com quantos carros estão fora da equipe */
#garageBox { flex: none; width: 84px; position: relative; display: flex; }
.fold { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 6px 4px; text-align: center;
  background: linear-gradient(#34343c 0 4px, var(--b-base) 4px calc(100% - 6px), #121216 calc(100% - 6px)); box-shadow: inset 0 0 0 2px #000, 0 3px 0 #000; position: relative; top: 0; }
.fold:hover { filter: brightness(1.15); } .fold:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.fold:active { top: 3px; box-shadow: inset 0 0 0 2px #000; }
.fold canvas.ico { width: 32px; height: 32px; }
.fold h3 { margin: 0; font-size: 10px; letter-spacing: .5px; color: var(--ink); justify-content: center; text-transform: none; line-height: 1.2; }
.sect { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink2); margin: 6px 0 2px; }

/* ---------- console: as 13 janelas em teclas de 2 fileiras; aviso = LED vermelho na tecla ---------- */
#top { flex: none; display: grid; grid-template-columns: repeat(7, 72px); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; position: relative; }
#top button { min-width: 0; border: 0; border-radius: 3px; cursor: pointer; position: relative; top: 0; padding: 6px 3px 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font: 700 10px/1.15 var(--pixel); color: var(--ink); text-shadow: none;
  background: linear-gradient(#34343c 0 4px, var(--b-base) 4px calc(100% - 6px), #121216 calc(100% - 6px));
  box-shadow: inset 0 0 0 2px #000, 0 3px 0 #000; transition: filter 80ms, top 60ms, box-shadow 60ms; }
#top button:hover { filter: brightness(1.2); }
#top button:active { top: 3px; box-shadow: inset 0 0 0 2px #000; }
#top button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
/* ícone do atlas (16 px) em 2× */
.seal { width: 16px; height: 16px; display: grid; place-items: center; flex: none; }
#top .seal { transform: scale(2); margin: 8px 0 7px; }
.lbl-top { max-width: 100%; text-align: center; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
@media (max-width: 1700px) { #top { grid-template-columns: repeat(7, 64px); } #top button { font-size: 9.5px; } }
@media (max-width: 1500px) { #left { gap: 12px; } }
/* telas estreitas: o painel inteiro encolhe junto, na mesma proporção (o console nunca corta) */
@media (max-width: 1600px) { .pc-data { width: 196px; } }
@media (max-width: 1450px) { #left { zoom: calc(var(--ui) * .82); } #fieldBox { min-width: 380px; } }
@media (max-width: 1250px) { #left { zoom: calc(var(--ui) * .74); } }
@media (max-width: 1100px) { #left { zoom: calc(var(--ui) * .64); } }

/* ---------- pista: sem moldura; o que flutua nela são teclas e visores do painel ---------- */
#mapwrap { position: relative; overflow: hidden; flex: 1; min-width: 0; min-height: 0; padding: 0; border-radius: 0; background: #000; box-shadow: none; }
#view { display: block; width: 100%; height: 100%; background: var(--sea); border-radius: 0; box-shadow: none; }
#shortcuts { position: absolute; right: 14px; top: 66px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; } /* abaixo do Ir ao Pit Stop (Lucas, 28/11) */
html.in-pit #shortcuts { right: auto; left: 14px; } /* no box, o painel do Pit Stop ocupa o canto direito */
#shortcuts .btn { width: 52px; height: 52px; padding: 0; }
#shortcuts .btn canvas { width: 32px; height: 32px; }
#shortcuts .btn b { position: absolute; left: -6px; bottom: -6px; font-size: 11px; background: #000; color: var(--amber); padding: 1px 4px; border-radius: 0; text-shadow: none; }
#zoomBox { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px; }
#zoomBox .btn { width: 38px; height: 38px; min-height: 38px; min-width: 38px; font-size: 20px; }
#zoomBox b { color: #fff; text-shadow: var(--outline); min-width: 22px; text-align: center; }
#evPvp { position: absolute; left: 14px; bottom: 14px; z-index: 3; margin: 0; padding: 6px 12px 6px 8px; gap: 8px; font: 700 13px/1 var(--pixel); color: var(--amber);
  background: var(--lcd); border-radius: 0; box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px var(--amber-dim), 0 3px 0 #000a; }
#evPvp .pr { font-size: 12px; }
html.mobile #evPvp { left: 8px; bottom: 58px; padding: 5px 9px 5px 6px; font-size: 11.5px; } html.mobile #evPvp .pr { display: inline; }
#maplog.sr-only { left: auto; bottom: auto; right: auto; }
#maplog { position: absolute; left: 14px; bottom: 14px; right: calc(50% + 220px); display: flex; flex-direction: column; align-items: flex-start; gap: 3px; pointer-events: none; }
.logchip { max-width: 100%; padding: 2px 8px; border-radius: 0; background: #0a0a0cd0; border-left: 3px solid var(--amber); color: #fff; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: slide .18s steps(3) both; }
.logchip.gold { color: var(--gold); } .logchip.bad { color: #ffb0a0; }
#rest { position: absolute; inset: 0; display: grid; place-items: center; background: #0a0a0cc8; color: #fff; text-align: center; padding: 20px; font-size: 15px; text-shadow: var(--outline); }

/* ---------- automações: banco de interruptores de balancim; ligado = metade acesa em âmbar ---------- */
#autoBox h3 { height: 28px; margin-bottom: 4px; }
#autoBox.shut h3 { margin-bottom: 0; }
#autoBox { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; } /* tela baixa: as automações rolam dentro da coluna delas */
#autoBox > #auto { min-height: 0; overflow: auto; }
.auto { display: flex; flex-direction: column; }
.tg, .line { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 3px 0; font-size: 12.5px; }
.tg { cursor: pointer; }
.line { justify-content: space-between; }
.line.sub { padding-left: 54px; font-size: 11.5px; color: var(--ink2); }
.switch { appearance: none; width: 40px; height: 22px; margin: 0; flex: none; cursor: pointer; position: relative; border-radius: 0;
  background: #000; box-shadow: inset 0 0 0 2px #000, 0 0 0 1px var(--edge); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 0;
  background: linear-gradient(#4a4a54 0 4px, #2c2c34 4px calc(100% - 4px), #18181d calc(100% - 4px)); transition: left 80ms steps(2); }
.switch:checked::after { left: 20px; background: linear-gradient(#ffd880 0 4px, var(--amber) 4px calc(100% - 4px), #b07000 calc(100% - 4px)); box-shadow: 0 0 6px #ffb00088; }
.switch:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
input[type=range] { width: 100px; accent-color: var(--b-base); }
.num { width: 60px; height: 24px; border: 0; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--line); background: var(--p-light); padding: 0 6px; text-align: right; font-size: 12px; }
select { height: 24px; border: 0; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--line); background: var(--p-light); padding: 0 4px; max-width: 150px; font-size: 12px; }
.auto .hint { margin-top: 2px; }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 8px; }
.items .slot { display: flex; align-items: center; gap: 4px; font-size: 11.5px; height: 26px; }
.items .slot b { margin-left: auto; color: var(--gold); }

/* ---------- rádio (histórico e chat): abas = teclas de memória numeradas, mensagens num visor âmbar ---------- */
.tabs { display: flex; gap: 4px; height: 30px; margin-bottom: 6px; }
.tab { flex: 1; border: 0; border-radius: 2px; font-size: 11.5px; font-weight: 700; color: var(--ink2); text-shadow: none; cursor: pointer;
  background: linear-gradient(#34343c 0 3px, var(--b-base) 3px calc(100% - 4px), #121216 calc(100% - 4px)); box-shadow: inset 0 0 0 2px var(--line), 0 2px 0 #000; }
.tab.on { color: #1a0e00; background: linear-gradient(#ffd880 0 3px, var(--amber) 3px calc(100% - 4px), #b07000 calc(100% - 4px)); }
.tab:disabled { opacity: .6; cursor: default; }
#chatBox .tabs { counter-reset: preset; height: 38px; }
#chatBox .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; padding: 0 2px; font-size: 10px; line-height: 1; overflow: hidden; }
#chatBox .tab::before { counter-increment: preset; content: counter(preset); font-size: 13px; color: var(--ink); }
#chatBox .tab.on::before { color: #1a0e00; }
.msgs { flex: 1; min-height: 60px; overflow: auto; border-radius: 0; background: var(--p-light); box-shadow: inset 0 0 0 2px var(--line); padding: 7px 9px;
  display: flex; flex-direction: column-reverse; gap: 3px; font-size: 12px; }
#chatBox .msgs { background: var(--lcd); color: var(--lcd-ink); box-shadow: inset 0 0 0 2px #000, inset 0 0 0 4px #2a2010; }
#chat .gold { color: var(--gold); font-weight: 700; } #chat .bad { color: #ff8a7a; } #chat time { color: #8a6a30; font-size: 10.5px; margin-right: 4px; }
.chat-in { display: flex; gap: 4px; height: 32px; margin-top: 6px; }
.chat-in input { flex: 1; min-width: 0; border: 0; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--line); background: var(--p-light); padding: 0 8px; font-size: 12px; }
.chat-in .send { width: 40px; min-width: 40px; min-height: 32px; height: 32px; padding: 0; font-size: 10px; }

/* ---------- linhas genéricas (janelas) ---------- */
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; font-size: 13px; }
.row + .row { border-top: 2px dashed var(--p-dark); }
.row small { display: block; }

/* ---------- modal único ---------- */
/* moldura das janelas: bezel preto com a costura em cima; o título num visor âmbar; o ✕ é uma tecla */
#win { position: fixed; inset: 0; background: #000000c8; display: grid; place-items: center; z-index: 30; padding: 12px; }
.window { width: min(760px, 100%); max-height: 90dvh; display: flex; flex-direction: column; animation: slide .18s steps(4) both; }
.window.plate { padding-top: 20px; }
.window.plate::before { content: ""; position: absolute; left: 10px; right: 10px; top: 9px; border-top: 2px dashed var(--stitch); pointer-events: none; }
.win-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 2px 12px; min-height: 36px; position: relative; }
.win-head h2 { margin: 0; min-width: 0; font-size: 16px; color: var(--amber); text-shadow: none; padding: 7px 12px 6px; background: var(--lcd); box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px var(--amber-dim); }
#winClose { width: 36px; height: 36px; min-height: 36px; min-width: 36px; font-size: 16px; }
.win-body { overflow: auto; flex: 1; }
.win-body p { margin: 0 0 8px; }
.shop .row canvas { width: 32px; height: 32px; }
.shop .buy { display: flex; gap: 6px; } .shop .buy .btn { min-width: 52px; font-size: 13px; }
.soon { text-align: center; padding: 20px 10px; color: var(--ink2); } .soon canvas { width: 64px; height: 64px; }
.starters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.starters .btn { height: auto; padding: 10px 2px 14px; flex-direction: column; } .starters small { font-size: 10.5px; color: #e8ecf4; font-family: var(--sans); }
.sum { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; } .sum .slot { padding: 6px 10px; } .sum .slot b { display: block; font-size: 20px; color: var(--gold); font-family: var(--pixel); }
/* "Enquanto você estava fora": rótulo e ganho (âmbar) em cima; antes (apagado) → depois (grande) embaixo */
.offsum .slot { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; }
.off-lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--ink2); }
.off-gain { font: 700 13px/1 var(--pixel); font-style: normal; color: #1a0e00; background: var(--amber); padding: 3px 6px; white-space: nowrap; }
.off-ft { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; font: 700 13px/1.2 var(--pixel); color: var(--ink2); }
.off-ft i { font-style: normal; color: var(--ink2); }
.offsum .slot b, .off-ft b { display: inline; font: 700 20px/1.1 var(--pixel); color: var(--gold); }
.off-team { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 10px; }
.off-car { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 4px 8px; background: var(--p-light); box-shadow: inset 0 0 0 2px var(--line); }
.off-car .nm { font: 700 13px var(--pixel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.off-car .off-ft b { font-size: 15px; }
html.mobile .offsum .slot b, html.mobile .off-ft b { font-size: 17px; }
html.mobile .off-car { grid-template-columns: 32px minmax(0, 1fr) auto; } html.mobile .off-car .off-ft { grid-column: 2 / -1; grid-row: 2; }
.menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .menu .btn { height: 72px; flex-direction: column; font-size: 12px; } .menu .btn canvas { width: 32px; height: 32px; }

.grade { font-weight: 700; padding: 0 4px; border-radius: 3px; background: #0a0614; font-variant-numeric: tabular-nums; }
.grade.top { color: #ffd84a; } .grade.hi { color: #7cf09a; } .grade.mid { color: #8ec8ff; } .grade.low { color: #c8c0b0; }
.cls { font-weight: 700; } .cls.Compact { color: #7ab0f0; } .cls.Stanced { color: #c094ff; } .cls.Sport { color: #ff7a5a; }
.cls.Classic { color: #e0a870; } .cls.Stunt { color: var(--gold); } .cls.Dirt { color: #9ad060; }
.rar.common { color: var(--common); } .rar.uncommon { color: var(--uncommon); } .rar.rare { color: var(--rare); } .rar.legendary { color: var(--legendary); } .rar.epic { color: var(--epic); } .rar.mythic { color: var(--mythic); }
.gbadge { color: #e4ecff; font-weight: 700; }

/* ---------- movimento (tudo some com prefers-reduced-motion) ---------- */
@keyframes slide { from { transform: translateY(12px); opacity: 0; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes pulse { 0%, 100% { box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px var(--amber-dim); } 50% { box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px var(--amber), 0 0 8px #ffb00088; } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(320%) skewX(-20deg); } }
.pop { animation: pop .3s steps(5); }
/* Black Plate e tiers altos nas listas (Lucas, 03/12: "esse brilho passando nas placas está travando"): acabamento parado,
   sem animação: um véu diagonal fixo e um filete dourado. A varredura de luz só roda com o mouse em cima (ou foco). */
.gleam::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 55%, #ffffff14 55% 62%, transparent 62%); box-shadow: inset 0 0 0 1px #e8c06066; }
.gleam:hover::after, .gleam:focus-within::after { inset: 0 auto 0 0; width: 30%; box-shadow: none;
  background: linear-gradient(90deg, transparent, #c8d4ee60 45%, #ffffffa0 50%, #c8d4ee60 55%, transparent); animation: shine 2.6s steps(16) infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- gaveta (celular), arrastável ---------- */
#drawer { position: fixed; inset: 0; z-index: 25; background: #00000099; display: flex; align-items: flex-end; }
#drawer .sheet { width: 100%; height: var(--drawer-h, 46dvh); max-height: 92dvh; overflow: auto; animation: slide .18s steps(4) both; touch-action: pan-y; border-radius: 4px 4px 0 0; }
.handle { all: unset; display: block; width: 72px; height: 10px; margin: 0 auto 10px; background: repeating-linear-gradient(90deg, var(--w-light) 0 6px, #000 6px 8px); border-radius: 0; box-shadow: inset 0 0 0 2px var(--line); cursor: ns-resize; touch-action: none; }
#drawerBody .card { margin-bottom: 16px; }
#toast { position: fixed; left: 50%; top: 58px; transform: translateX(-50%); z-index: 40; padding: 8px 14px; border-radius: 0; background: var(--lcd); color: var(--lcd-ink); box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px var(--amber), 0 3px 0 #000a; max-width: 90vw; animation: slide .18s steps(4) both; }

/* ---------- celular: decidido por classe no <html> (toque + até 1024 px, ou até 720 px) ---------- */
/* em cima a faixa de para-sol; a pista; o painel compacto e o console de 5 teclas embaixo, na zona do polegar */
html.mobile #game { grid-template-columns: 100%; grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "strip" "center" "mhead" "bottom"; gap: 0; padding: 0; }
html.mobile #left, html.mobile #lcol, html.mobile #right, html.mobile #top, html.mobile #rail { display: none; }
html.mobile #strip { height: 40px; padding: 0 8px; gap: 8px; }
html.mobile #eventBar { font-size: 10.5px; padding: 6px 7px; flex: 1; }
html.mobile #mhead { grid-area: mhead; display: flex; align-items: center; gap: 10px; padding: 14px 10px 8px; position: relative;
  background: linear-gradient(#26262c 0 4px, #000 4px 6px, var(--dash) 6px); }
html.mobile #mhead::before { content: ""; position: absolute; left: 8px; right: 8px; top: 9px; border-top: 2px dashed var(--stitch); pointer-events: none; }
html.mobile .mcap { flex: 1; min-width: 0; } html.mobile .mcap b { color: var(--ink); font-size: 14px; } html.mobile .mcap .bar { height: 8px; margin-top: 4px; }
html.mobile .mmoney { display: flex; gap: 5px; font-size: 14px; }
html.mobile .mmoney .coin { display: flex; align-items: center; gap: 4px; height: 28px; padding: 0 6px; background: linear-gradient(#000 0 46%, #0f0f12 46% 54%, #000 54%); box-shadow: inset 0 0 0 2px var(--edge); }
html.mobile .mmoney b { color: #f4f4f0; display: inline-block; } html.mobile .mmoney .coin:first-child b { color: var(--cash); }
html.mobile .chip { min-height: 40px; min-width: 40px; padding: 0 6px; font-size: 13px; }
html.mobile #mapwrap { border-radius: 0; padding: 0; box-shadow: none; background: var(--sea); }
html.mobile #view { border-radius: 0; box-shadow: none; }
/* Grande Achado: no celular a faixa não tem espaço; o chip flutua no topo da pista (40 = altura da faixa) */
html.mobile #potChip { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); z-index: 5; }
html.mobile #shortcuts { right: 8px; top: 132px; } /* abaixo do Ir ao Pit Stop, como no computador */
html.mobile #zoomBox { right: 8px; bottom: 58px; }
html.mobile #zoomBox .btn { width: 40px; height: 40px; min-height: 40px; min-width: 40px; }
html.mobile #maplog { left: 8px; bottom: 58px; right: 110px; }
html.mobile #bottom { grid-area: bottom; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; border-radius: 0; padding: 6px 6px 8px; background: var(--dash); }
html.mobile #bottom button { height: 56px; flex-direction: column; gap: 3px; font-size: 10px; padding: 0 2px; color: var(--ink); text-shadow: none;
  background: linear-gradient(#34343c 0 4px, var(--b-base) 4px calc(100% - 6px), #121216 calc(100% - 6px)); box-shadow: inset 0 0 0 2px #000, 0 3px 0 #000; }
html.mobile #bottom button canvas.ico { width: 32px; height: 32px; }
html.mobile #shortcuts .btn { width: 46px; height: 46px; }
html.mobile #win { padding: 0; place-items: end center; }
html.mobile .window { max-height: 88dvh; width: 100%; border-radius: 4px 4px 0 0; }

/* ---------- vista 3/4 (192×120): 1× e 2× em escala inteira; abaixo de 1× reduz com suavização ---------- */
canvas.hero { display: block; aspect-ratio: 192 / 120; height: auto; max-width: 100%; }
canvas.hero.down, canvas.hero.hx { image-rendering: auto; }
.hero.h1, .hero.h-card, .hero.h-garage, .hero.h-line { width: 192px; }
.hero.h-big { width: 384px; } .hero.h-pair { width: 384px; } .hero.h-mini { width: 96px; }
.hero.sil { filter: drop-shadow(1px 0 0 #6a4ab0) drop-shadow(-1px 0 0 #6a4ab0) drop-shadow(0 1px 0 #6a4ab0) drop-shadow(0 -1px 0 #6a4ab0); }

/* janelas largas para o Garage Book, a ficha e a garagem (grade: 5 cartões de 192 + vãos de 10) */
.window[data-kind="book"], .window[data-kind="entry"], .window[data-kind="garage"] { width: min(1120px, 100%); }

/* filtros: fichas de 30 px com anel de 2 px e faixa dura em cima */
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.fchip { border: 0; cursor: pointer; height: 30px; padding: 0 10px; border-radius: 6px; font: 700 11.5px/1 var(--pixel); color: #fff; text-shadow: var(--outline);
  background: linear-gradient(var(--w-light) 0 2px, var(--w-mid) 2px); box-shadow: inset 0 0 0 2px var(--line); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.fchip b { color: var(--gold); font-family: var(--pixel); }
.fchip:hover { filter: brightness(1.15); }
.fchip.on { background: linear-gradient(#ffe0a0 0 2px, #ff6a1e 2px); }
.fchip.on b { color: #fff; }
.fchip.r-common { color: var(--common); } .fchip.r-uncommon { color: var(--uncommon); } .fchip.r-rare { color: var(--rare); }
.fchip.r-epic { color: var(--epic); } .fchip.r-legendary { color: var(--legendary); } .fchip.r-mythic { color: var(--mythic); }
.fchip.on[class*=" r-"] { color: #fff; }
.frow { display: flex; align-items: center; gap: 10px; }
.flbl { width: 52px; flex: none; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink2); }
.bookhead, .ghead { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px dashed var(--p-dark); }
.bookhead .tot b { font-family: var(--pixel); font-size: 18px; color: var(--gold); }
.empty { text-align: center; color: var(--ink2); padding: 30px 0; }

/* selos */
.badge { font: 700 10.5px/1 var(--sans); letter-spacing: .3px; /* fonte normal: na pixel o G de Grail parecia B (Lucas) */ padding: 3px 6px; border-radius: 4px; background: #0a0614; box-shadow: inset 0 0 0 2px currentColor; white-space: nowrap; }
.badge.r-common { color: var(--common); } .badge.r-uncommon { color: var(--uncommon); } .badge.r-rare { color: var(--rare); }
.badge.r-epic { color: var(--epic); } .badge.r-mythic { color: var(--mythic); } .badge.r-legendary { color: #fff; background: var(--legendary); }
.badge.bp { color: #e4ecff; background: #06040c; box-shadow: inset 0 0 0 2px #c8d4ee; }
.tag.stage.s0 { background: #4a3e6a; } .tag.stage.s1 { background: #ff8a1e; color: #1a0a00; } .tag.stage.s2 { background: #ff3d8b; }

/* ---------- Garage Book: cartões de 192 + anéis de 2/4 ---------- */
.book { display: grid; grid-template-columns: repeat(auto-fill, minmax(204px, 1fr)); gap: 10px; }
.bcard { all: unset; box-sizing: border-box; cursor: pointer; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 8px 6px; border-radius: 6px;
  background: linear-gradient(var(--p-dark) 0 4px, #1a1236 4px 60%, #24184a 60% 62%, #1a1236 62%); box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--p-dark), 0 3px 0 var(--line); }
.bcard:hover:not(:disabled) { filter: brightness(1.12); }
.bcard:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bcard:disabled { cursor: default; }
.bc-top { display: flex; align-items: center; gap: 4px; padding: 0 2px; }
.bc-top .no { font: 700 11px/1 var(--pixel); color: var(--ink2); margin-right: auto; font-variant-numeric: tabular-nums; }
.bc-art { position: relative; display: grid; place-items: center; }
.bcard .nm { font-family: var(--pixel); font-weight: 700; font-size: 14px; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-sub { display: flex; gap: 4px; align-items: center; padding: 0 2px; min-height: 20px; }
.bc-sub .cnt { margin-left: auto; font-size: 10.5px; color: var(--ink2); white-space: nowrap; }
.bc-lim { font-size: 10.5px; color: var(--gold); padding: 2px 4px; border-radius: 3px; background: #0a0614; font-variant-numeric: tabular-nums; }
/* tiragem do cartão: normal à esquerda e a Black Plate num chip dourado à direita, numa linha só (a altura não muda) */
.bc-lim[data-lim] { display: flex; align-items: center; gap: 6px; height: 20px; overflow: hidden; white-space: nowrap; }
.bc-lim .bc-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .bc-lim .bc-n.free { color: #6a6a74; }
.bc-bp { flex: none; font: 700 10px/1 var(--pixel); color: #1a0e00; background: linear-gradient(#ffe08a, #e0a020); padding: 3px 5px; border-radius: 2px; box-shadow: 0 0 0 1px #000; }
.bc-bp.sold { color: #6a5020; background: #3a2c10; }
.bc-lim.free { color: #6a5e90; }
.bcard.unseen { background: #0c0818; box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px #1a1230; }
.bcard.unseen .nm { color: #5a4e80; }
.bcard.out .hero { filter: grayscale(.6) brightness(.75); }
.stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); font: 700 15px/1 var(--pixel); color: #ff6a8a; text-transform: uppercase; letter-spacing: 2px;
  padding: 5px 10px; border-radius: 4px; background: #1a0010d0; box-shadow: inset 0 0 0 2px #ff6a8a, 0 0 0 2px var(--line); }

/* ---------- ficha do modelo ---------- */
.entrywrap { display: flex; flex-direction: column; gap: 10px; }
.ent-arts { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.ent-art { margin: 0; position: relative; overflow: hidden; padding: 10px; border-radius: 6px; text-align: center;
  background: linear-gradient(#1a1236 0 70%, #2a1d4c 70% 72%, #1e1540 72%); box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--p-dark); }
.ent-art figcaption { font: 700 12px/1 var(--pixel); color: var(--ink2); margin-top: 6px; }
.ent-art.gleam figcaption { color: #e4ecff; }
.ent-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; }
.ent-desc { text-align: center; margin: 0 !important; }
.ent-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ent-box { border-radius: 6px; padding: 10px 12px 12px; background: var(--p-light); box-shadow: inset 0 0 0 2px var(--p-dark); }
.ent-box h3 { margin: 0 0 8px; font: 700 12px/1.2 var(--pixel); text-transform: uppercase; letter-spacing: 1px; color: #fff; text-shadow: var(--outline2); }
.stat { display: grid; grid-template-columns: 82px 34px 1fr; gap: 8px; align-items: center; min-height: 22px; font-size: 12px; }
.stat b { text-align: right; }
.bar.st { height: 10px; } .bar.st i { background: linear-gradient(#a8f4ff 0 30%, var(--neon) 30% 75%, #1a8aa8 75%); }
.bar.lim { height: 10px; margin: 2px 0 6px; } .bar.lim i { background: linear-gradient(#ffe8a0 0 30%, var(--gold) 30% 75%, #c07a10 75%); }
.bar.lim.bp i { background: linear-gradient(#ffffff 0 30%, #c8d4ee 30% 75%, #7a86a8 75%); }
.bar.lim.full i { background: linear-gradient(#ffb0c0 0 30%, #ff6a8a 30% 75%, #a02a4a 75%); }
.kv { display: flex; justify-content: space-between; gap: 8px; min-height: 22px; align-items: center; font-size: 12px; }
.kv span { color: var(--ink2); }
.tir p { font-size: 12px; }
.prepline { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pstage { all: unset; box-sizing: border-box; cursor: pointer; flex: 0 1 216px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 6px;
  background: #1a1236; box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--p-dark); text-align: center; font-size: 12px; }
.pstage:hover:not(:disabled) { filter: brightness(1.15); }
.pstage:disabled { cursor: default; }
.pstage.cur { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--gold2); }
.pstage.unseen { background: #0c0818; color: #5a4e80; }
.pstage b { font-family: var(--pixel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.arrow { display: flex; flex-direction: column; align-items: center; color: var(--gold2); font-size: 16px; flex: none; }
.arrow small { font-size: 10px; }

/* ---------- garagem: cartões com a vista 3/4 em 1× ---------- */
.glist { display: grid; grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); gap: 10px; }
.card-full { display: grid; grid-template-columns: 192px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 6px; position: relative; overflow: hidden;
  background: var(--p-light); box-shadow: inset 0 0 0 2px var(--p-dark); }
.card-full.inteam { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--neon2); }
.cf-art { position: relative; }
.cf-art .lead { position: absolute; left: 4px; top: 4px; font: 700 10px/1 var(--pixel); padding: 3px 5px; border-radius: 3px; background: var(--gold); color: #1a1200; }
.cf-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cf-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .cf-name b { font-family: var(--pixel); font-size: 15px; }
.card-full .acts { display: flex; flex-direction: column; gap: 6px; } .card-full .acts .btn { min-height: 32px; font-size: 11px; }
.card-full .meta { font-size: 11.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }

/* celular: 2 cartões por linha no Book, ficha em coluna, garagem com as ações embaixo da arte */
html.mobile .book { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html.mobile .hero.h-card, html.mobile .hero.h-line, html.mobile .hero.h-pair { width: 100%; image-rendering: auto; }
html.mobile .hero.h-big { width: 100%; max-width: 384px; image-rendering: auto; }
html.mobile .ent-arts.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
html.mobile .ent-art { padding: 6px; }
html.mobile .ent-cols { grid-template-columns: 1fr; }
html.mobile .prepline { gap: 2px; } html.mobile .pstage { flex: 1 1 0; padding: 4px; font-size: 10.5px; } html.mobile .arrow small { display: none; }
html.mobile .frow { align-items: flex-start; } html.mobile .flbl { width: 44px; padding-top: 8px; }
html.mobile .glist { grid-template-columns: 1fr; }
html.mobile .card-full { grid-template-columns: 144px minmax(0, 1fr); }
html.mobile .hero.h-garage { width: 144px; image-rendering: auto; }
html.mobile .card-full .acts { grid-column: 1 / -1; flex-direction: row; } html.mobile .card-full .acts .btn { flex: 1; }
html.mobile .bcard .nm { font-size: 12.5px; }
html.mobile .frow .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; padding-bottom: 2px; }
html.mobile .frow { align-items: center; } html.mobile .flbl { padding-top: 0; }
html.mobile .bc-sub { flex-wrap: wrap; } html.mobile .bc-sub .cnt { display: none; }
html.mobile .bc-lim { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Barra de rolagem do jogo (em vez da do navegador): trilho fundo e escuro, alça violeta em pixel com
   chanfro claro em cima e sombra embaixo, como os botões; acende em rosa ao passar o mouse e ao arrastar.
   Atenção: no Chrome, scrollbar-width/scrollbar-color num elemento desligam estas regras; use só "none" para esconder. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track {
  background: var(--p-light);
  box-shadow: inset 2px 0 0 var(--line), inset -1px 0 0 var(--w-mid), inset 0 2px 0 var(--line), inset 0 -1px 0 var(--w-mid);
}
::-webkit-scrollbar-thumb {
  background: var(--b-base);
  border: 2px solid var(--line); border-radius: 0;
  box-shadow: inset 2px 2px 0 var(--b-hi), inset -2px -2px 0 var(--b-shadow);
  min-height: 28px;
}
::-webkit-scrollbar-thumb:hover { background: var(--b-clear); }
::-webkit-scrollbar-thumb:active { background: var(--neon2); box-shadow: inset 2px 2px 0 #ff8ac0, inset -2px -2px 0 #8a1048; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: var(--p-light); }
/* Firefox não tem as regras acima: pelo menos as cores do jogo */
@supports not selector(::-webkit-scrollbar) { * { scrollbar-color: var(--b-base) var(--p-light); } }

/* Tier no Garage Book e na ficha: moldura na cor do tier (forte nos tiers altos). A aura é de partículas (client/aura.js). */
.t-common { --tier: var(--common); --aura: 0; } .t-uncommon { --tier: var(--uncommon); --aura: .35; } .t-rare { --tier: var(--rare); --aura: .5; }
.t-epic { --tier: var(--epic); --aura: .65; } .t-mythic { --tier: var(--mythic); --aura: .75; } .t-legendary { --tier: var(--legendary); --aura: 1; }
.bcard[class*=" t-"], .ent-art[class*=" t-"] {
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px color-mix(in srgb, var(--tier) calc(var(--aura) * 70% + 15%), var(--p-dark)), 0 3px 0 var(--line); }
.bcard.unseen[class*=" t-"] { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px color-mix(in srgb, var(--tier) 25%, #1a1230), 0 3px 0 var(--line); }
.bc-art { position: relative; isolation: isolate; }
.bc-art > .hero { position: relative; z-index: 1; }
.aura { position: absolute; left: 0; top: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.aura.back { z-index: 0; }
/* Aura do piloto (client/aura.js attachPilotAura): o efeito tem 2× o capacete e sobra para cima, atrás dele */
.paura { position: relative; display: inline-flex; line-height: 0; }
.paura > canvas.aura.paura-fx { left: -50%; top: -75%; width: 200%; height: 200%; }
.paura > :not(canvas) { position: relative; z-index: 1; }
.bc-art { align-self: center; } html.mobile .bc-art { align-self: stretch; }

/* ---------- login ---------- */
.login { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto; }
.login label { display: flex; flex-direction: column; gap: 4px; font: 700 12px/1 var(--pixel); color: var(--ink2); }
.field { font: 14px var(--sans); color: var(--ink); background: var(--p-light); border: 0; border-radius: 4px; padding: 9px 10px; box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px #0a0614; }
.field:focus { outline: 2px solid var(--neon); outline-offset: 1px; }
.login-msg { margin: 0; font-size: 12.5px; color: var(--ink2); min-height: 18px; }
.login-msg.err { color: #ff8a8a; } .login-msg.ok { color: var(--cash); }
.login-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.login-btns .btn { padding: 8px 14px; }
.bc-mine { font: 700 11px/1 var(--pixel); color: #1a0a00; background: var(--gold); padding: 3px 5px; border-radius: 3px; box-shadow: inset 0 -2px 0 #b86a00; }
.bc-mine.bp { color: #e4ecff; background: #14121c; box-shadow: inset 0 0 0 2px #c8d4ee; }
.bcard .bc-mine { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: flex-start; max-width: 100%; }
.bc-mine.none, .bc-lim.none { visibility: hidden; }

.btn.google { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; }
.btn.google .g { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 3px; background: #fff; color: #4a3cb0; font: 700 14px/1 var(--sans); }
/* provedores (login e contas conectadas): letra na cor da marca, sem logo de terceiros */
.login-oauth { display: flex; flex-direction: column; gap: 6px; }
.gsi-box { display: flex; justify-content: center; min-height: 44px; } /* botão oficial do Google (iframe dele) */
.login-note { margin: -2px 0 0; font-size: 11.5px; color: var(--ink2); }
.pv { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 3px; font: 700 13px/1 var(--sans); background: #fff; color: #4a3cb0; }
.pv-discord { background: #5865f2; color: #fff; }
.pv-twitch { background: #9146ff; color: #fff; }
.pv-kick { background: #53fc18; color: #0b0b0b; }
.pv-email { background: var(--p-light); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.linkrow { padding: 6px 0; }
.linkname { display: flex; align-items: center; gap: 10px; min-width: 0; }
.linkname small { color: var(--ink2); overflow-wrap: anywhere; }
.linkrow .btn { flex: none; }
.linkrow.on .pv { box-shadow: 0 0 0 2px var(--cash); }
.login-or { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 12px; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 2px; background: var(--p-dark); }

/* ---------- Donos do pedaço ---------- */
.bosses { display: flex; flex-direction: column; gap: 12px; }
.boss-head { margin: 0; color: var(--ink2); }
.boss-inv { display: inline-block; margin-left: 4px; font: 700 12px/1 var(--pixel); color: var(--gold); background: #0a0614; padding: 4px 6px; border-radius: 3px; }
.boss-last { margin: 0; padding: 8px 10px; border-radius: 4px; background: #0a0614; color: var(--gold); }
.boss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.boss-card { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 6px; background: #1a1236;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px color-mix(in srgb, var(--tier) 70%, var(--p-dark)), 0 3px 0 var(--line); }
.boss-card.locked { filter: saturate(.4); }
.boss-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--pixel); }
.boss-card .nm { font: 700 15px/1.2 var(--pixel); } .boss-card .nm small { font: 12px var(--sans); color: var(--ink2); }
.boss-mystic { color: var(--ink2); }
.boss-btns { display: flex; gap: 6px; flex-wrap: wrap; } .boss-btns .btn { padding: 7px 10px; }
.boss-note { margin: 0; font-size: 12px; color: #6a5e90; }

/* ---------- Black Plate: selo em forma de placa (preto, borda cromada em degraus, letra de pixel branca) ---------- */
.bp-plate { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font: 700 10.5px/1 var(--pixel); letter-spacing: 1px; color: #fff; white-space: nowrap;
  background: #0c0b10; padding: 4px 7px 3px; border-radius: 3px; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px #2a2834, 0 0 0 1px #f4f6fa, 0 0 0 2px #8a90a0, 0 0 0 3px #3a3e4a, 0 2px 0 3px #0a0614; text-shadow: 1px 1px 0 #000; }
.bp-plate::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #d8a028; box-shadow: inset -1px -1px 0 #7a5410; } /* parafuso dourado */
.bp-plate.big { font-size: 13px; padding: 6px 10px 5px; }
.nm .bp-plate { margin-left: 6px; vertical-align: 1px; }
.bcard .bp-plate { margin: 0 2px; }
/* moldura cromada: filete prateado por fora da cor do tier */
.bcard.bp[class*=" t-"], .ent-art.bp[class*=" t-"] {
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px color-mix(in srgb, var(--tier) calc(var(--aura) * 70% + 15%), var(--p-dark)), inset 0 0 0 5px #c8ccd8, inset 0 0 0 6px #5a5e6a, 0 3px 0 var(--line), 0 0 0 2px #e4e8f0; }
.ent-art.bp figcaption { display: flex; justify-content: center; }
/* a rolagem não "persegue" elementos quando o conteúdo é redesenhado */
.win-body, #drawer .sheet { overflow-anchor: none; }

/* Seletor de idioma (Ajustes, ícone de idioma no trilho e tela de login) */
.langs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.langs .btn { min-width: 86px; }
.login .langs, .langwin .langs { justify-content: flex-start; }
.langrow { flex-wrap: wrap; padding: 4px 0; }
.langrow .langs { flex-wrap: nowrap; }
html.mobile .langrow > div:first-child { flex: 1 1 100%; }
html.mobile .langrow .langs { flex: 1 1 100%; justify-content: flex-start; }
html.mobile .langs .btn { min-width: 0; flex: 1 1 0; }

/* ---------- tipos por mapa e vantagens ---------- */
.matchup { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; }
.matchup > span { display: inline-flex; align-items: center; gap: 4px; }
.matchup small { color: var(--ink2); }
.zone-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; margin: 8px 0 12px; font-size: 12.5px; }
.zone-list > div { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.typechart { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 6px; background: #0a0614; }
.typechart h4 { margin: 0 0 4px; font: 700 13px/1 var(--pixel); color: var(--gold); }
.tc-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.tc-arrow { font: 700 13px/1 var(--pixel); color: var(--gold); }
.tc-win { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; } .tc-win small { color: var(--ink2); }

/* ---------- Swap Meet ---------- */
.mkt { display: flex; flex-direction: column; gap: 10px; }
.mkt-tabs { display: flex; gap: 6px; flex-wrap: wrap; } .mkt-tabs .btn { padding: 7px 12px; }
.mkt-rules { margin: 0; font-size: 12px; color: var(--ink2); }
.mkt-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mkt-filters select { min-width: 0; }
.field.sm { width: 92px; padding: 6px 8px; font-size: 13px; }
.mkt-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.mkt-list { display: flex; flex-direction: column; gap: 6px; }
.mkt-row { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; background: #1a1236; box-shadow: inset 0 0 0 2px var(--line); }
.mkt-row > canvas, .mkt-row > img { justify-self: center; }
.mkt-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .mkt-info b { font-family: var(--pixel); }
.mkt-tags { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.mkt-price { text-align: right; } .mkt-price b { font: 700 15px/1 var(--pixel); color: var(--cash); display: block; } .mkt-price small { color: var(--ink2); }
.mkt-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mkt-why { color: #ff8a8a; grid-column: span 2; }
.mkt-h { margin: 6px 0 2px; font: 700 13px/1 var(--pixel); color: var(--gold); }
.mkt-hist { display: flex; flex-direction: column; gap: 4px; }
html.mobile .mkt-row { grid-template-columns: 64px 1fr; } html.mobile .mkt-price, html.mobile .mkt-act { grid-column: 1 / -1; justify-content: flex-end; text-align: right; }
html.mobile .mkt-why { grid-column: 1 / -1; }
.mkt-noicon { display: grid; place-items: center; width: 32px; height: 32px; justify-self: center; border-radius: 4px; background: var(--b-base); color: #fff; font: 700 15px/1 var(--pixel); box-shadow: inset 0 2px 0 var(--b-hi), inset 0 -2px 0 var(--b-shadow), 0 0 0 2px var(--line); }

/* ---------- VIP: selo azul (o dourado é do BETA) e card nos buffs ---------- */
.vip-badge { display: inline-flex; align-items: center; font: 700 10px/1 var(--pixel); letter-spacing: 1px; color: #fff; background: #2f7dff;
  padding: 3px 5px; border-radius: 3px; box-shadow: inset 0 -2px 0 #1747a6, 0 0 0 2px var(--line); margin: 0 6px; align-self: center; }
/* selo Beta Tester (shared/beta.js): roxo com letra dourada, as cores das Gears Beta; o título vem ao lado, em itálico de fonte normal */
.tester-badge { display: inline-flex; align-items: center; gap: 5px; font: 700 10px/1 var(--pixel); letter-spacing: 1px; color: #ffd23a; background: #5b2aa8;
  padding: 3px 5px; border-radius: 3px; box-shadow: inset 0 -2px 0 #3a1a70, 0 0 0 2px var(--line); margin: 0 6px 0 0; align-self: center; white-space: nowrap; }
.tester-badge i { font: italic 600 11px/1 var(--sans); letter-spacing: 0; color: #fff2a0; }
.cmsg .ctester { font-size: 8px; padding: 2px 3px; margin: 0 4px 0 0; vertical-align: 1px; }
.tag.beta { background: #5b2aa8; color: #ffd23a; }
.vip-card { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px; font: inherit; color: inherit; text-align: left; cursor: pointer;
  background: rgba(47, 125, 255, .14); border: 2px solid #2f7dff; border-radius: 4px; }
.vip-card .vip-badge { margin: 0; }
.vip-card .vip-perks { flex: 1; font-size: 12px; }
.vip-card b { font-size: 12px; white-space: nowrap; }

.portrait .gear-vip { display: block; width: 32px; height: 32px; background: url('assets/gear-vip.png') 0 0 / auto 32px no-repeat; image-rendering: pixelated; }
/* Offer manual: botão no alto do mapa, centralizado; a Black Plate em destaque */
/* Fazer Oferta: luz de alerta âmbar que sobe do pé da pista, com a listra de perigo à esquerda e os segundos num visor preto */
#offerBtn { position: absolute; top: auto; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 0 0 0 34px; min-height: 46px; z-index: 4; white-space: nowrap;
  border-radius: 0; font-size: 13px; box-shadow: 0 -3px 0 #000, inset 0 0 0 2px #000; overflow: hidden; }
#offerBtn::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22px; background: var(--hazard); box-shadow: inset -2px 0 0 #000; }
#offerBtn:active { top: auto; transform: translate(-50%, 2px); }
#offerBtn canvas { width: 20px; height: 20px; }
#offerBtn small { align-self: stretch; display: grid; place-items: center; min-width: 52px; margin-left: 6px; padding: 0 10px; font-size: 15px; color: var(--amber); background: #000; }
#offerBtn > :last-child:not(small) { margin-right: 14px; }
#offerBtn.bp { box-shadow: 0 0 0 3px #fff, 0 0 18px 4px #ffd84a; animation: offerPulse .9s ease-in-out infinite alternate; }
#offerBtn .bp-tag { color: #1a0a00; font-size: 11px; }
#offerBtn.mystic { box-shadow: 0 0 0 3px var(--legendary), 0 0 18px 4px var(--legendary); animation: offerPulse .9s ease-in-out infinite alternate; } /* Mística: uma Offer só */
#offerBtn .mystic-tag { font-size: 11px; color: var(--legendary); text-shadow: var(--outline); }
html.mobile #offerBtn.mystic { flex-wrap: wrap; justify-content: center; row-gap: 2px; white-space: normal; width: max-content; max-width: calc(100% - 24px); padding: 4px 12px; }
html.mobile #offerBtn.mystic .mystic-tag { flex-basis: 100%; text-align: center; }
@keyframes offerPulse { from { filter: brightness(1); } to { filter: brightness(1.25); } }
@media (prefers-reduced-motion: reduce) { #offerBtn.bp { animation: none; } }
.portrait.vip { box-shadow: inset 0 0 0 2px #2f7dff; }
.vip-autos { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding-top: 6px; border-top: 2px solid var(--line); }
.vip-auto .vip-badge { margin: 0 0 0 auto; font-size: 8px; padding: 2px 3px; }
.vip-auto.locked { opacity: .6; }
/* ---------- BETA e Feedback ---------- */
.beta-badge { display: inline-flex; align-items: center; font: 700 10px/1 var(--pixel); letter-spacing: 1px; color: #1a0a00; background: var(--gold);
  padding: 3px 5px; border-radius: 3px; box-shadow: inset 0 -2px 0 #b86a00, 0 0 0 2px var(--line); margin: 0 6px; align-self: center; }
#eventBar .beta-badge { margin-left: 8px; }
/* Feedback: janela estreita (a 760 sobrava uma faixa vazia), tudo na largura toda; celular em folha de tela cheia */
.window[data-kind="feedback"] { width: min(600px, 100%); }
.fb { display: flex; flex-direction: column; gap: 10px; }
.fb-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; gap: 3px; border-radius: 6px; background: var(--line); }
.fb-seg { all: unset; box-sizing: border-box; text-align: center; cursor: pointer; padding: 9px 6px; border-radius: 4px; font: 700 13px/1.1 var(--pixel); color: var(--ink2); }
.fb-seg:hover { color: #fff; background: #ffffff12; }
.fb-seg.on { color: #1a1200; background: var(--gold); }
.fb-seg:focus-visible { outline: 2px solid var(--neon); outline-offset: 1px; }
.fb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fb-grid > * { min-width: 0; }
.fb-text { width: 100%; min-height: 180px; box-sizing: border-box; resize: vertical; font: 14px/1.4 var(--sans); }
.fb-foot { display: flex; align-items: center; gap: 10px; }
.fb-count { margin-right: auto; color: var(--ink2); font-variant-numeric: tabular-nums; }
.fb-help, .fb-info { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--ink2); }
html.mobile #win .window[data-kind="feedback"] { height: 100dvh; max-height: 100dvh; border-radius: 0; }
html.mobile .window[data-kind="feedback"] .win-body, html.mobile .window[data-kind="feedback"] .fb { display: flex; flex-direction: column; flex: 1; min-height: 0; }
html.mobile .window[data-kind="feedback"] .fb-text { flex: 1; resize: none; }
html.mobile .fb-grid { grid-template-columns: 1fr; }
.fb-entry { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 8px; border-radius: 6px; background: #0a0614; font-size: 12.5px; }
.fb-entry .btn { margin-left: auto; }
.beta-notice p { margin: 0 0 10px; }
/* ---------- chat (client/social.js): mensagens, denúncia, emojis ---------- */
.chat-in { position: relative; }
.chat-in input:disabled { opacity: .7; }
.cmsg { position: relative; padding-right: 18px; overflow-wrap: anywhere; line-height: 1.35; }
.cmsg time { color: var(--ink2); font-size: 10.5px; margin-right: 4px; }
.cmsg .cnick { color: var(--neon); font-weight: 700; } .cmsg .cnick::after { content: ":"; }
.cmsg.mine .cnick { color: var(--gold); }
/* destaque VIP na linha: nick azul VIP e faixa à esquerda */
.cmsg.vip { box-shadow: inset 2px 0 0 #2f7dff; padding-left: 4px; }
.cmsg.vip .cnick { color: #6fa8ff; }
/* selo VIP no chat (o mesmo do cartão do piloto, menor e colado ao nick) */
.cmsg .cvip { font-size: 8px; padding: 2px 3px; margin: 0 4px 0 0; vertical-align: 1px; }
.cmsg .crep { position: absolute; right: 0; top: 0; width: 16px; height: 16px; padding: 0; border: 0; background: none; color: var(--ink2); font-size: 11px; cursor: pointer; opacity: .35; }
.cmsg:hover .crep, .cmsg .crep:focus-visible { opacity: 1; color: #ff8a7a; }
.mobile .cmsg .crep { opacity: .7; width: 24px; height: 22px; top: -3px; }
.cempty { text-align: center; color: var(--ink2); padding: 12px 4px; } .cempty small { display: block; margin-top: 4px; }
.emojis { position: absolute; bottom: 38px; left: 0; display: grid; grid-template-columns: repeat(6, 32px); gap: 4px; padding: 10px; z-index: 5; border-radius: 6px; background: var(--w-dark); box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); }
/* emojis VIP (client/assets/emojis.png, tools/emojis.mjs) */
.emo { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin: 0 1px; background-image: url('assets/emojis.png'); background-repeat: no-repeat; image-rendering: pixelated; }
.emo.big { width: 32px; height: 32px; vertical-align: middle; margin: 0; }
.emojis .emojis-vip { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; margin-top: 4px; padding-top: 6px; border-top: 2px solid var(--line); font-size: 11px; color: var(--ink2); }
.emojis .emojis-vip .vip-badge { margin: 0; font-size: 8px; padding: 2px 3px; }
.emojis button.vipemo.locked .emo { filter: grayscale(1); opacity: .45; }
.emojis button { width: 32px; height: 32px; border: 0; border-radius: 4px; background: none; font-size: 18px; cursor: pointer; } .emojis button:hover { background: var(--w-light); }
.tab.notice { position: relative; }
.chatwin { display: flex; flex-direction: column; height: min(62dvh, 520px); }
.window[data-kind="chat"] { width: min(460px, 100%); }
.nickbox { display: flex; gap: 4px; } .nickin { width: 150px; height: 28px; border: 0; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--line); background: var(--p-light); color: var(--ink); padding: 0 8px; font-size: 12px; }

/* ---------- rankings ---------- */
.rankswrap { display: flex; flex-direction: column; gap: 8px; }
.rk-me { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px; background: #0a0614; box-shadow: inset 0 0 0 2px var(--gold2); font-size: 13px; }
.rk-me b { font: 700 18px/1 var(--pixel); color: var(--gold); } .rk-me .v { margin-left: auto; font-size: 13px; color: var(--ink); }
.rk-me.none { box-shadow: inset 0 0 0 2px var(--p-dark); color: var(--ink2); }
.rk-table { border-radius: 6px; background: var(--p-light); box-shadow: inset 0 0 0 2px var(--line); padding: 4px 6px; }
.rk-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.rk-table th { text-align: left; font: 700 11px/1 var(--pixel); color: var(--ink2); padding: 6px 6px; position: sticky; top: 0; background: var(--p-light); }
.rk-table td { padding: 5px 6px; border-top: 2px dashed var(--p-dark); }
.rk-table .v { text-align: right; } .rk-table .pos { width: 48px; font-family: var(--pixel); color: var(--ink2); }
.rk-table .nk { overflow-wrap: anywhere; }
.rk-table tr.p1 .pos, .rk-table tr.p1 .nk { color: #ffd84a; font-weight: 700; } .rk-table tr.p2 .pos, .rk-table tr.p2 .nk { color: #d8e0f0; font-weight: 700; } .rk-table tr.p3 .pos, .rk-table tr.p3 .nk { color: #e0a870; font-weight: 700; }
.rk-table tr.me td { background: #ff8a1e33; } .rk-table tr.me .nk::after { content: " ★"; color: var(--gold); }
.rk-at { margin: 0; text-align: right; }
/* gaveta do chat (celular): mais alta, e a lista ocupa o que sobra com a caixa de digitar sempre à vista */
#drawer .sheet:has(.chatwin) { height: var(--drawer-h, 72dvh); display: flex; flex-direction: column; overflow: hidden; }
#drawer .sheet:has(.chatwin) #drawerBody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#drawer .chatwin { flex: 1; min-height: 0; height: auto; }

/* ---------- Garage Book: busca e filtros (28/11) ---------- */
.booktop { display: flex; align-items: center; gap: 10px; } .booktop .btn { margin-left: auto; padding: 6px 10px; }
.booksearchrow { display: flex; gap: 6px; align-items: center; }
.searchbox { position: relative; flex: 1; max-width: 420px; }
.gmore { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0 4px; padding: 10px; color: var(--ink2); background: var(--p-light); box-shadow: inset 0 0 0 2px var(--line); }
.gsort { flex-wrap: wrap; } .gsearchbox { margin-left: auto; flex: 0 1 300px; min-width: 200px; } .gsearch { width: 100%; padding-right: 34px; }
html.mobile .gsearchbox { flex: 1 1 100%; margin-left: 0; }
.booksearch { width: 100%; box-sizing: border-box; padding-right: 36px; }
.bookx { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; min-height: 0; padding: 0; }
.bookfilters { display: flex; flex-direction: column; gap: 6px; }
/* chip sem seleção: fundo escuro, texto claro (contraste AA) e a cor do tier/classe na borda de baixo */
.fchip[class*=" r-"]:not(.on), .fchip[class*=" c-"]:not(.on) { color: #f4efff; background: #1a1236; }
.fchip.r-common:not(.on) { box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 var(--common); }
.fchip.r-uncommon:not(.on) { box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 var(--uncommon); }
.fchip.r-rare:not(.on) { box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 var(--rare); }
.fchip.r-epic:not(.on) { box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 var(--epic); }
.fchip.r-mythic:not(.on) { box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 var(--mythic); }
.fchip.r-legendary:not(.on) { box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 var(--legendary); }
.fchip.c-Compact:not(.on) { box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 var(--compact); }
.fchip.c-Stanced:not(.on) { box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 var(--stanced); }
.fchip.c-Sport:not(.on) { box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 var(--sport); }
.fchip.c-Classic:not(.on) { box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 var(--classic); }
.fchip.c-Stunt:not(.on) { box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 var(--stunt); }
.fchip.c-Dirt:not(.on) { box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 var(--dirt); }
.fchip:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
/* celular: só busca e região à vista; o resto abre no botão "Filtros (n)" */
.bookftoggle { white-space: nowrap; padding: 8px 10px; }
html.mobile .bookwrap:not(.fopen) .bookfilters { display: none; }
html.mobile .searchbox { max-width: none; }
/* celular: a janela não passa da largura da tela (os chips rolam de lado dentro da linha) */
html.mobile #win .window { max-width: 100vw; box-sizing: border-box; }
html.mobile .win-body, html.mobile .bookwrap, html.mobile .bookhead, html.mobile .frow, html.mobile .bookfilters { min-width: 0; max-width: 100%; }
html.mobile .frow .chips { flex: 1; }

/* ---------- dropdown do jogo (client/ui/dropdown.js) no lugar do <select> nativo ---------- */
.dd-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; margin: 0 !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden; }
.dd-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; max-width: 220px; padding: 0 8px 0 10px; border: 0; border-radius: 6px; cursor: pointer;
  font: 700 12px/1 var(--sans); color: var(--ink); text-align: left; background: linear-gradient(var(--w-light) 0 2px, var(--w-mid) 2px);
  box-shadow: inset 0 0 0 2px var(--line), 0 2px 0 var(--line); }
.dd-btn:hover { filter: brightness(1.15); }
.dd-btn:focus-visible, .dd-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.dd-btn[aria-expanded="true"] { background: linear-gradient(#ffe0a0 0 2px, #ff6a1e 2px); color: #fff; }
.dd-btn:disabled { opacity: .5; cursor: default; filter: none; }
.dd-btn.placeholder .dd-face { color: var(--ink2); font-weight: 400; }
.dd-face { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; } .dd-face span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* seta em pixel: dois degraus de quadradinhos */
.dd-arrow { flex: none; width: 8px; height: 5px; margin-left: auto; background:
  linear-gradient(currentColor 0 0) 0 0 / 8px 1px no-repeat, linear-gradient(currentColor 0 0) 1px 1px / 6px 1px no-repeat,
  linear-gradient(currentColor 0 0) 2px 2px / 4px 1px no-repeat, linear-gradient(currentColor 0 0) 3px 3px / 2px 2px no-repeat; }
.dd-btn[aria-expanded="true"] .dd-arrow { transform: scaleY(-1); }
.dd-dot { flex: none; width: 8px; height: 8px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.dd-list { position: fixed; z-index: 200; overflow: auto; padding: 4px; border-radius: 6px; background: var(--p-mid); outline: none;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--p-dark), 4px 4px 0 var(--line); max-width: min(360px, 96vw); }
.dd-opt { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 10px; border-radius: 4px; cursor: pointer; font: 600 12.5px/1.2 var(--sans); color: var(--ink); white-space: nowrap; }
.dd-opt.active { background: var(--b-base); box-shadow: inset 0 2px 0 var(--b-hi); }
.dd-opt[aria-selected="true"] { color: var(--gold); } .dd-opt[aria-selected="true"]::after { content: ""; width: 6px; height: 6px; margin-left: auto; background: var(--gold); box-shadow: 0 0 0 1px var(--line); }
.dd-opt[aria-disabled="true"] { opacity: .45; cursor: default; }
.dd-group { padding: 8px 10px 4px; font: 700 10.5px/1 var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--ink2); }
/* celular: folha embaixo da tela, itens de 44 px */
.dd-backdrop { position: fixed; inset: 0; z-index: 199; background: #0a0614a0; }
.dd-list.sheet { left: 0; right: 0; bottom: 0; top: auto; max-width: none; max-height: 70dvh; border-radius: 10px 10px 0 0; padding: 0 8px 12px;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--p-dark), 0 -4px 0 var(--line); animation: slide .18s steps(4) both; }
.dd-list.sheet .dd-opt { min-height: 44px; font-size: 14px; }
.dd-sheethead { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 2px 8px; background: var(--p-mid); font: 700 13px/1 var(--pixel); color: var(--gold); }
.dd-x { min-height: 36px; min-width: 36px; }
/* ---------- recompensa diária, código e convite (docs/retencao.md) ---------- */
.daily-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.daily-card { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 6px; min-height: 64px; border-radius: 4px; background: #0e0a1c; box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px #06040c; }
.daily-card b { font: 700 13px/1 var(--pixel); }
.daily-card small { line-height: 1.3; }
.daily-card.big { grid-column: span 2; box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--gold2); }
.daily-card.today { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--gold); }
.daily-card.done { opacity: .55; }
.daily-card .tag { position: absolute; top: 4px; right: 4px; }
.coderow { flex-wrap: wrap; }
.codeform { display: flex; gap: 4px; }
.codein { width: 132px; height: 30px; padding: 0 8px; border: 0; border-radius: 4px; background: #0e0a1c; color: var(--ink); font: 700 13px/1 var(--pixel); letter-spacing: 1px; text-transform: uppercase; box-shadow: inset 0 0 0 2px var(--line), inset 0 2px 0 2px #06040c; }
#codeMsg { flex-basis: 100%; margin: 0; min-height: 0; }
#codeMsg:empty { display: none; }
.invlink { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
@media (max-width: 420px) { .daily-grid { grid-template-columns: repeat(2, 1fr); } }
/* brilho por tier (a Black Plate continua com o brilho padrão, o mais forte) */
.gleam.sh-soft::after { box-shadow: inset 0 0 0 1px #b45aff55; }
.gleam.sh-mythic::after { box-shadow: inset 0 0 0 1px #ffc23a88; }
.gleam.sh-legendary::after { box-shadow: inset 0 0 0 1px #ff3d8b88; }
/* escolha do primeiro veículo: margem interna como os outros painéis; descrição centralizada, até 3 linhas */
.starters .btn { padding: 12px 14px 14px; gap: 4px; min-width: 0; }
.starters .btn b { text-align: center; }
.starters small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-align: center; line-height: 1.35; max-width: 100%; overflow-wrap: anywhere; }
html.mobile .starters .btn { padding: 10px 9px 12px; }
html.mobile .starters small { font-size: 10px; }

/* ---------- piloto: capacete, número e bandeira (client/pilot.js, shared/pilot.js) ---------- */
.helmet-ico, .flag-ico { display: inline-flex; line-height: 0; } .helmet-ico svg, .flag-ico svg { image-rendering: pixelated; }
.flag-ico svg { box-shadow: 0 1px 0 #0008; }
button.sq54.portrait { border: 0; padding: 0; cursor: pointer; position: relative; color: inherit; }
button.sq54.portrait:focus-visible { outline: 2px solid var(--neon); outline-offset: 1px; }
.portrait .por-flag { position: absolute; right: 3px; bottom: 4px; line-height: 0; }
.cap-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpilot { display: inline-flex; vertical-align: middle; margin-right: 4px; line-height: 0; }
.pchip { display: inline-flex; align-items: center; gap: 2px; margin-right: 4px; vertical-align: -3px; }
.pchip .pnum { font: 700 10px/1 var(--pixel); color: var(--gold); margin-right: 1px; }
.window[data-kind="setup"], .window[data-kind="pilot"] { width: min(860px, 100%); }
/* tela do piloto: prévia à esquerda, campos à direita; grade do jogo: 10 entre itens, 16 entre blocos */
.setup { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "card fields" "foot foot"; gap: 16px; font-size: 13px; }
.setup-card { grid-area: card; align-self: start; position: sticky; top: 0; display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 6px;
  background: linear-gradient(var(--p-dark) 0 6px, var(--p-warm) 6px); box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--p-light); }
.sc-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.sc-hero .helmet-ico svg { filter: drop-shadow(0 4px 0 #0008); }
.sc-id { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.sc-nick { font: 700 20px/1.15 var(--sans); color: var(--neon); text-shadow: 0 2px 0 #0a2a4a; overflow-wrap: anywhere; }
.sc-tag { display: flex; align-items: center; gap: 10px; } .sc-num { font: 700 18px/1 var(--pixel); color: var(--gold); text-shadow: var(--outline); }
.sc-flag { color: var(--ink2); font-size: 11px; min-height: 13px; }
.sc-samples { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 2px dashed var(--p-dark); }
.sc-samples > small { color: var(--ink2); font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; }
.sc-line, .sc-rank { padding: 6px 10px; border-radius: 4px; background: var(--p-light); box-shadow: inset 0 0 0 2px var(--line); font-size: 12px; }
.sc-line { padding-right: 10px; }
.sc-rank { display: flex; align-items: center; gap: 6px; } .sc-rank > b { color: var(--gold); font-family: var(--pixel); }
.setup-fields { grid-area: fields; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.setup-intro { margin: 0; }
.setup-sec { display: flex; flex-direction: column; gap: 10px; }
.setup-sec + .setup-sec { padding-top: 16px; border-top: 2px dashed var(--p-dark); }
.setup-sec h4 { margin: 0; font: 800 11px/1 var(--sans); color: var(--gold); letter-spacing: 1px; text-transform: uppercase; display: flex; align-items: baseline; gap: 6px; }
.setup-flagname { font: 400 12px/1 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; }
.setup-hint { color: var(--ink2); font-size: 11px; }
.setup .nickin { width: 200px; } .setup .numin { width: 56px; text-align: center; -moz-appearance: textfield; }
.setup .numin::-webkit-inner-spin-button, .setup .numin::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.setup .setup-search { width: 100%; }
.setup-layer { display: flex; gap: 6px; }
.setup-swatches { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 6px; } /* 32 cores = 2 linhas de 16 (com a faixa, Ø entra na frente) */
.sw { aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 4px; cursor: pointer; background: var(--sw);
  box-shadow: inset 0 0 0 2px var(--line), inset 2px 2px 0 2px #ffffff40, inset -2px -2px 0 2px #0000004a; }
.setup-layer .nostripe { margin-left: auto; }
.sw.on { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Gear VIP na tela do piloto */
.setup-gear { display: flex; gap: 8px; }
.gbtn { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; cursor: pointer; background: var(--p-light); box-shadow: inset 0 0 0 2px var(--line); }
.gbtn.on { outline: 2px solid #2f7dff; outline-offset: 2px; }
.gbtn.locked { filter: grayscale(1); opacity: .5; }
.sw:focus-visible, .fbtn:focus-visible { outline: 2px solid var(--neon); outline-offset: 1px; }
.setup-flags { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px; max-height: 172px; overflow-y: auto; padding: 6px;
  border-radius: 4px; background: var(--p-light); box-shadow: inset 0 0 0 2px var(--line); }
.fbtn { display: grid; place-items: center; height: 28px; min-width: 0; padding: 0; border: 0; border-radius: 4px; cursor: pointer; background: var(--p-mid); }
.fbtn[hidden] { display: none; }
.fbtn.on { background: var(--gold); box-shadow: 0 0 0 2px var(--gold2); }
.fnone { font: 700 14px/1 var(--pixel); color: var(--ink2); }
.setup-empty { margin: 0; color: var(--ink2); font-size: 12px; }
.setup-err { margin: 0; color: var(--red); font-size: 12px; }
.setup-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 2px solid var(--p-dark); }
.setup-foot small { color: var(--ink2); font-size: 11px; }
.setup-go { min-width: 160px; }
/* celular: uma coluna; a prévia vira uma faixa compacta presa no topo */
html.mobile .setup { grid-template-columns: minmax(0, 1fr); grid-template-areas: "card" "fields" "foot"; gap: 10px; }
html.mobile .setup-card { position: sticky; top: -10px; z-index: 2; padding: 10px; gap: 0; }
html.mobile .sc-hero { flex-direction: row; text-align: left; } html.mobile .sc-hero .helmet-ico svg { width: 48px; height: 48px; }
html.mobile .sc-id { align-items: flex-start; gap: 4px; } html.mobile .sc-nick { font-size: 16px; } html.mobile .sc-num { font-size: 14px; }
html.mobile .sc-samples, html.mobile .sc-flag { display: none; }
html.mobile .setup .nickin:not(.numin):not(.setup-search) { width: 100%; flex: 1; }
html.mobile .setup-swatches { grid-template-columns: repeat(8, minmax(0, 1fr)); } html.mobile .sw { aspect-ratio: auto; height: 26px; }
html.mobile .setup-flags { max-height: 150px; }
html.mobile .setup-foot { position: sticky; bottom: -10px; background: var(--p-mid); padding-bottom: 6px; }
/* ---------- abas do chat: Mundo, Dúvidas, Anúncios, Guilda (client/social.js) ---------- */
.ctabs { gap: 2px; } .ctabs .tab { min-width: 0; padding: 0 1px; font-size: 9.5px; letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-sub { margin-bottom: 6px; } .chat-sub.chips { gap: 4px; } .chat-sub .fchip { position: relative; }
.cpin { display: flex; flex-direction: column; gap: 4px; padding: 7px 9px; border-radius: 4px; background: #2a1d4c; box-shadow: inset 0 0 0 2px var(--gold2); font-size: 11.5px; line-height: 1.35; }
.cpin b { color: var(--gold); font-size: 12px; } .cpin .btn { align-self: flex-start; min-height: 26px; height: 26px; font-size: 11px; padding: 0 10px; }
.chat-ro { align-items: center; justify-content: center; font-size: 11.5px; color: var(--ink2); border-radius: 4px; background: var(--p-light); box-shadow: inset 0 0 0 2px var(--line); }
.cmsg.hl { background: #ffd23a1a; border-radius: 3px; box-shadow: inset 2px 0 0 var(--gold); padding-left: 5px; }
.cmsg.staff { background: #3ae8ff14; border-radius: 3px; box-shadow: inset 2px 0 0 var(--neon); padding: 3px 18px 3px 6px; }
.cmsg .cmod { background: #3ae8ff; color: #06202a; } .cmsg .cstaff { background: var(--neon2); color: #fff; }
.cempty.cguild { margin: auto 0; } .cempty.cguild b { display: block; font-family: var(--pixel); color: var(--gold); font-size: 14px; margin-bottom: 4px; }
#drawer .chatwin .ctabs .tab { font-size: 11px; }
.cmsg .cmod, .cmsg .cstaff { font-size: 8px; padding: 2px 3px; margin: 0 4px 0 0; vertical-align: 1px; }

/* ---------- Pit Stop (docs/pitstop.md): botão no palco e painel do box ---------- */
#pitBtn { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; gap: 6px; padding: 0 12px; min-height: 38px; }
#pitBtn canvas { width: 20px; height: 20px; }
#pitBtn small { font-size: 11px; opacity: .8; min-width: 28px; }
#pitPanel { position: absolute; top: 14px; right: 14px; width: min(320px, calc(100% - 28px)); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; color: #fff; background: #0a0a0ce8; border-radius: 0; box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px var(--amber), 0 3px 0 #000a; }
#pitPanel .pit-head { display: flex; align-items: center; gap: 8px; font-family: var(--pixel); }
#pitPanel .pit-head b { flex: 1; min-width: 0; color: var(--neon); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pitPanel .pit-head .tag { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #2a6a3a; color: #d8ffd8; }
#pitPanel .pit-say { margin: 0; font-size: 13px; line-height: 1.35; }
#pitPanel .pit-say b { color: var(--gold); }
#pitPanel .pit-status { font: 700 13px var(--pixel); color: #ffd84a; }
#pitPanel .pit-status.ok { color: #7cf09a; }
#pitPanel small { font-size: 12px; opacity: .8; }
#pitPanel .btn { align-self: stretch; }
html.mobile #pitBtn { top: 88px; right: 8px; min-height: 36px; padding: 0 10px; } /* abaixo do chip do Grande Achado */
html.mobile #pitPanel { top: 8px; right: 8px; left: 8px; width: auto; padding: 8px 10px; }
.fb-grid .dd-btn { max-width: none; width: 100%; min-height: 36px; justify-content: space-between; }
.fb .fb-help, .fb .fb-info { margin: 0; }
.fb-foot + .fb-help { margin-top: -2px; }

/* ---------- Grande Achado: pote no meio do topo do mapa (client/jackpot.js) ---------- */
#potChip { margin-left: auto; flex: none; z-index: 3; cursor: pointer; border: 0; display: flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 6px 8px 6px 12px; color: var(--amber); box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px var(--amber-dim); }
#potChip .pot-l { color: var(--amber); }
#potChip .pot-v { color: var(--cash); font-family: var(--sans); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
#potChip .pot-a { color: var(--ink2); font-family: var(--sans); font-weight: 600; font-size: 12px; text-shadow: none; }
#potChip .pot-q { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 0; background: var(--amber); color: var(--line); text-shadow: none; font-size: 13px; margin-left: 2px; }
#potChip:hover { filter: brightness(1.12); }
#potChip { animation: potGlow 2.4s ease-in-out infinite; } /* destaque (Lucas, 02/12): brilho sutil; o texto não pisca */
@keyframes potGlow { 0%, 100% { box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px var(--amber-dim), 0 0 0 0 #ffb00000; } 50% { box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px var(--amber), 0 0 12px 2px #ffb00066; } }
#potChip:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
#potChip.up { animation: potUp 1.1s steps(10); }
#potChip.up .pot-v { animation: pop .3s steps(5); }
#potChip.won { animation: pulse 1.6s steps(8) infinite; }
@keyframes potUp { 0%, 100% { box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px var(--amber-dim); } 35% { box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px var(--amber), 0 0 0 3px #ffb00088; } }
html.mobile #potChip { font-size: 11.5px; padding: 5px 7px 5px 10px; gap: 4px; margin: 0; box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px var(--amber-dim), 0 3px 0 #000a; }
html.mobile #potChip .pot-v { font-size: 13px; }
html.mobile #potChip .pot-a { font-size: 11px; }
.tag.ga { background: var(--gold); color: var(--line); }
.ga-help p { margin: 0 0 10px; line-height: 1.5; }
.ga-now { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; background: #120a24; box-shadow: inset 0 0 0 2px var(--gold); }
.ga-now span { color: var(--ink2); } .ga-now b { font: 700 20px var(--pixel); color: var(--cash); }
.ga-help a { color: var(--neon); }

/* logo CARIDLE em pixel (site/wordmark.svg): no título da tela de login e, no computador, à esquerda da barra de cima */
.wm { display: block; width: auto; image-rendering: pixelated; }
.win-head .title-logo { height: 27px; } /* tela de login: a logo no lugar do título */

/* ---------- tela de entrada (antes do login): sem o jogo por trás ---------- */
html.gate #strip, html.gate #lcol, html.gate #left, html.gate #right, html.gate #top, html.gate #rail, html.gate #bottom, html.gate #mhead,
html.gate #shortcuts, html.gate #zoomBox, html.gate #maplog, html.gate #eventBar, html.gate #rest { visibility: hidden; }
html.gate #mapwrap { position: fixed; inset: 0; z-index: 0; margin: 0; border-radius: 0; box-shadow: none; filter: blur(3px) brightness(.5) saturate(1.15); }
html.gate #win { background: radial-gradient(ellipse at 50% 40%, #120c2299 0, #120c22e6 70%); }
html.gate .window[data-kind="login"] { width: min(420px, 100%); }
.login { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 360px; margin: 0 auto; }
.login > * { width: 100%; box-sizing: border-box; }
.login .field { width: 100%; box-sizing: border-box; }
.login-logo { width: auto; height: 34px; align-self: center; margin: 4px 0 6px; }
.login .login-logo { width: auto; }
.login-oauth { gap: 8px; }
.login-oauth > .btn, .gsi-box { width: 100%; min-height: 44px; box-sizing: border-box; }
.login-oauth > .btn { justify-content: center; font-size: 14px; }
.login-enter { width: 100%; min-height: 44px; font-size: 15px; }
.login-links { display: flex; justify-content: space-between; gap: 10px; }
.linkbtn { all: unset; cursor: pointer; font-size: 13px; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: #fff; } .linkbtn:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 2px; }
.linkbtn:disabled { opacity: .5; cursor: default; }
.login-note { margin: 4px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--ink2); text-align: center; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; gap: 3px; border-radius: 6px; background: var(--line); }
.seg-b { all: unset; box-sizing: border-box; text-align: center; cursor: pointer; padding: 7px 6px; border-radius: 4px; font: 700 12px/1.1 var(--pixel); color: var(--ink2); }
.seg-b:hover { color: #fff; background: #ffffff12; }
.seg-b.on { color: #1a1200; background: var(--gold); }
.seg-b:focus-visible { outline: 2px solid var(--neon); outline-offset: 1px; }
html.mobile.gate #win .window[data-kind="login"] { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
html.mobile.gate .window[data-kind="login"] .win-body { display: flex; align-items: center; }
html.gate .window[data-kind="login"] .win-head { justify-content: center; }

/* ---------- Nitro: compra por Pix na própria tela (client/nitro.js) ---------- */
.shop-nitro { border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.nitro { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.nitro-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nitro-bal { font-family: var(--pixel); font-size: 18px; color: var(--neon); text-shadow: var(--outline2); }
.nitro-test { font-size: 12px; font-weight: 700; color: var(--line); background: var(--gold); padding: 2px 8px; }
.nitro-what, .nitro-by { margin: 0; font-size: 13px; color: var(--ink2); }
.nitro-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.nitro-method { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.nitro-method > span { font-weight: 700; }
/* carregando do pacote clicado: um pneu girando (client/nitro.js, busy) */
.nitro-pack.busy { outline: 2px solid var(--gold); }
.nitro-wait-pack { display: inline-flex; align-items: center; gap: 6px; }
.nitro-tire { width: 14px; height: 14px; border-radius: 50%; border: 3px dashed var(--ink2, #ccc); box-sizing: border-box; animation: nitroTire .8s linear infinite; }
@keyframes nitroTire { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nitro-tire { animation-duration: 3s; } }
.nitro-pack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; cursor: pointer; text-align: left;
  color: var(--ink); background: var(--p-mid); border: 2px solid var(--line); box-shadow: inset 0 0 0 2px var(--p-dark); font: inherit; }
.nitro-pack:hover, .nitro-pack:focus-visible { box-shadow: inset 0 0 0 2px var(--neon); outline: none; }
.nitro-pack b { font-family: var(--pixel); font-size: 17px; color: var(--neon); }
.nitro-price { font-family: var(--pixel); font-size: 15px; color: var(--gold); }
.nitro-pack small { color: var(--ink2); font-size: 11px; }
.nitro-hist h4, .nitro-title { margin: 6px 0; font-family: var(--pixel); font-size: 15px; }
.nitro-hist .row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.nitro-hist .row > span:first-child { flex: 1; }
.nitro-st { font-size: 12px; color: var(--ink2); }
.nitro-st.st-credited { color: var(--cash); }
.nitro-st.st-refunded, .nitro-st.st-refund_pending { color: var(--red); }
.nitro-charge { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.nitro-charge p { margin: 0; font-size: 13px; }
.nitro-qr { width: 220px; height: 220px; image-rendering: pixelated; background: #fff; padding: 8px; border: 2px solid var(--line); }
.nitro-noqr { padding: 12px; border: 2px dashed var(--ink2); }
.nitro-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.nitro-code { width: 100%; box-sizing: border-box; resize: none; font: 12px ui-monospace, monospace; word-break: break-all;
  color: var(--ink); background: var(--p-light); border: 2px solid var(--line); padding: 6px; }
.nitro-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.nitro-wait { color: var(--ink2); }
.nitro-ok { font-family: var(--pixel); font-size: 17px; color: var(--cash); }

.ga-now { display: grid; gap: 4px; }
.ga-now div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ga-now b { font-size: 16px; } .ga-now b.brl { color: var(--gold); }
.ga-now .tot { border-top: 2px solid #2a1d4c; padding-top: 6px; margin-top: 2px; } .ga-now .tot b { font-size: 20px; }

/* metas do prêmio (client/jackpot.js, goalsTrack): marcos, a atual em destaque, barra até a próxima */
.ga-goals { margin: 0 0 14px; padding: 12px 14px; border-radius: 6px; background: #120a24; box-shadow: inset 0 0 0 2px #4a3818; text-align: left; }
.ga-goals h4 { margin: 0 0 6px; font: 700 14px/1.2 var(--pixel); color: var(--gold); }
.ga-goals .gl-now { margin: 0 0 6px; font-size: 13px; }
.gl-bar { height: 12px; border-radius: 3px; background: #2a1d4c; box-shadow: inset 0 0 0 2px #0a0614; overflow: hidden; }
.gl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff8a1e, #ffd23a); box-shadow: inset 0 -2px 0 #0003; }
.ga-goals .gl-left { margin: 6px 0 10px; font-size: 13px; font-weight: 700; }
.gl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gl-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 4px; background: #1a1236; font-size: 13px; opacity: .7; }
.gl-list li.on { opacity: 1; }
.gl-list li.on .gl-at::before { content: "✓ "; color: #7cf09a; }
.gl-list li.now { box-shadow: inset 0 0 0 2px #ffd23a; background: #2a1d10; }
.gl-list li.next { opacity: 1; box-shadow: inset 0 0 0 2px #4a3cb0; }
.gl-list .gl-v { margin-left: auto; color: #7cf09a; font-family: var(--sans); font-weight: 700; font-variant-numeric: tabular-nums; }
.gl-list .gl-tag { font: 700 10px/1 var(--pixel); color: #0a0614; background: #ffd23a; padding: 3px 5px; border-radius: 3px; }
.ga-goals .gl-who { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; opacity: .85; }
/* prêmios do jogo da beta na trilha de metas (client/jackpot.js betaPrizes) */
.gl-list li { flex-wrap: wrap; }
.gl-list .gl-row { display: flex; align-items: center; gap: 8px; flex: 1 1 100%; }
.gl-prizes { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 6px; margin-top: 2px; border-top: 1px dashed #3a2c66; font-size: 12px; }
.gl-prizes > span { display: inline-flex; align-items: center; gap: 4px; }
.gl-prizes canvas { width: 20px; height: 20px; image-rendering: pixelated; }
.gl-prizes .gl-gear svg { width: 22px; height: 22px; image-rendering: pixelated; }
.gl-prizes b { font: 700 12px/1 var(--sans); font-variant-numeric: tabular-nums; color: #e8e0ff; }
.gl-prizes .gl-title { font: italic 700 12px/1 var(--sans); color: #ffd23a; }
.gl-prizes .gl-name { font-weight: 700; color: #c7a6ff; }
.gl-car { width: 64px; height: 40px; background: #2a1d4c; border-radius: 3px; }
.gl-car.art { background: none; }
.gl-car:not(.art) { display: none !important; } /* sem arte no atlas ainda: só o nome */
.gl-prizes .gl-car canvas { width: 64px; height: 40px; image-rendering: auto; }
.gl-prizes .gl-got { margin-left: auto; font: 700 11px/1 var(--sans); color: #7cf09a; }
.ga-goals .gl-beta { margin: 0 0 8px; padding: 8px 10px; border-radius: 4px; background: #241446; box-shadow: inset 0 0 0 2px #5b2aa8; font-size: 12.5px; line-height: 1.45; }
.ga-goals .gl-beta b { color: #ffd23a; }
.nitro-adult { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; border: 2px solid var(--gold); background: var(--p-light); }
.nitro-adult p { margin: 0; font-weight: 700; }
.nitro-adult small { color: var(--ink2); }
.nitro-adult-chk { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.nitro-pack:disabled { opacity: .45; cursor: not-allowed; box-shadow: inset 0 0 0 2px var(--p-dark); }

/* Garage Book: barra compacta (28/11) — busca, Região, Status e Ordem em dropdowns, e "Filtros (n)" com Tier e Classe */
.bookbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bookbar .searchbox { flex: 1 1 240px; max-width: none; }
.fsel { display: inline-flex; align-items: center; gap: 6px; }
.fsel .flbl { width: auto; }
.fsel .dd-btn { min-height: 32px; max-width: 240px; }
.bookftoggle { min-height: 32px; }
html:not(.mobile) .bookwrap:not(.fopen) .bookfilters { display: none; }
.bookfilters { padding: 8px 10px; border-radius: 6px; background: #0a061455; }
.bookactive { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bookactive[hidden] { display: none; }
.achip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px; border-radius: 13px; font: 700 11px/1 var(--pixel); color: #fff; background: #4a3cb0; box-shadow: inset 0 0 0 2px var(--line); }
.achip span { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #0a061488; font: 700 12px/1 var(--sans); }
.achip:hover { filter: brightness(1.15); } .achip:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.achip.r-common { background: #5a5470; } .achip.r-uncommon { background: #2e7a3a; } .achip.r-rare { background: #2a5ea8; }
.achip.r-epic { background: #7a3aa8; } .achip.r-mythic { background: #9a6a10; } .achip.r-legendary { background: #b0245e; }
.bookactive .linkbtn { margin-left: 4px; font-size: 12px; }
html.mobile .fsels { display: grid; grid-template-columns: 1fr; gap: 6px; }
html.mobile .fsel { display: grid; grid-template-columns: 64px 1fr; } html.mobile .fsel .dd-btn { max-width: none; width: 100%; }
.bc-lim.bp { color: #c8d4ee; } /* linha da Black Plate nos tiers de tiragem livre */

.tir-dead { margin: 6px 0 0; font-size: 11.5px; color: var(--ink2); } /* números desmanchados, na ficha */
html.mobile .bc-lim { white-space: normal; text-overflow: clip; line-height: 1.3; } /* "Black Plate: 0 de 30 já encontradas" quebra em 2 linhas em vez de cortar */

/* ---------- Pit Stop andável (docs/pitstop.md §7): sala, botões e D-pad do celular ---------- */
#pitPanel .pit-acts { display: flex; gap: 6px; }
#pitPanel .pit-acts .btn { flex: 1; }
#pitPad { position: absolute; right: 10px; bottom: 60px; display: grid; grid-template: 'a u b' 44px 'l c r' 44px 'd v e' 44px / 44px 44px 44px; gap: 2px; touch-action: none; user-select: none; }
#pitPad[hidden] { display: none; }
#pitPad .btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; font-size: 16px; opacity: .85; }
#pitPad [data-d="ArrowUp"] { grid-area: u; } #pitPad [data-d="ArrowLeft"] { grid-area: l; }
#pitPad [data-d="ArrowRight"] { grid-area: r; } #pitPad [data-d="ArrowDown"] { grid-area: v; }
html.in-pit #offerBtn, html.in-pit #potChip { display: none !important; }

/* ---------- Mapa visual (28/11): trilha das regiões e miniatura do mapa com os pontos de racha ---------- */
.worldmap { display: flex; flex-direction: column; gap: 12px; }
.mroute { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; position: relative; }
.mnode { all: unset; cursor: pointer; box-sizing: border-box; display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 6px; background: #1a1236; box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 #0a0614; }
.mnode .mn-i { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #2a1f55; font: 700 12px/1 var(--pixel); color: #fff; }
.mnode b { font: 700 12px/1.2 var(--pixel); color: #fff; } .mnode small { font-size: 11px; color: var(--ink2); }
.mnode:hover { filter: brightness(1.15); } .mnode:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mnode.sel { background: #3a2a78; box-shadow: inset 0 0 0 2px var(--gold), inset 0 -3px 0 #0a0614; }
.mnode.here .mn-i { background: var(--gold); color: #1a1200; }
.mnode.locked { opacity: .55; } .mnode.locked .mn-i { background: #14101e; }
.mnode.redline .mn-i { background: #b0245e; }
.mpanel h3 { margin: 0 0 8px; } .mpanel h3 small { font: 12px var(--sans); color: var(--ink2); text-transform: none; letter-spacing: 0; }
.mthumb { position: relative; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--line); margin-bottom: 8px; }
.mthumb canvas { display: block; width: 100%; height: auto; }
.mpin { all: unset; position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.mpin:disabled { cursor: default; }
.mpin .mp-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ff6a1e; color: #fff; font: 700 11px/1 var(--pixel);
  box-shadow: 0 0 0 3px #0a0614, 0 0 0 5px #fff6; }
.mpin.here .mp-dot { background: var(--gold); color: #1a1200; animation: pinpulse 1.2s steps(6) infinite; }
.mpin.locked .mp-dot { background: #4a4458; }
.mpin .mp-lbl { display: flex; flex-direction: column; align-items: center; padding: 3px 6px; border-radius: 4px; background: #0a0614d8; font: 700 11px/1.15 var(--pixel); color: #fff; white-space: nowrap; }
.mpin .mp-lbl small { font: 10px var(--sans); color: var(--ink2); }
.mpin:not(:disabled):hover .mp-dot { filter: brightness(1.2); }
.mpin:focus-visible .mp-dot { outline: 2px solid var(--gold); outline-offset: 2px; }
@keyframes pinpulse { 50% { box-shadow: 0 0 0 3px #0a0614, 0 0 0 8px #ffd23a55; } }
@media (prefers-reduced-motion: reduce) { .mpin.here .mp-dot { animation: none; } }
html.mobile .mroute { grid-template-columns: repeat(2, 1fr); }
html.mobile .mpin .mp-lbl { font-size: 10px; } html.mobile .mpin .mp-lbl small { display: none; }
.window[data-kind="map"] { width: min(900px, 100%); }

/* Termos novos: tela de aceite */
.window[data-kind="terms"] { width: min(560px, 100%); }
.terms { display: flex; flex-direction: column; gap: 10px; }
.terms ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.4; }
.terms-links a { color: var(--gold); } .terms-note { font-size: 12px; color: var(--ink2); margin: 0; }
.login-terms { margin: 2px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--ink2); text-align: center; } .login-terms a { color: var(--ink); }

/* Refino (docs/refino.md): selo +N, caixa dos 5 atributos (os Pneus ficam fixos) */
.tag.refine { background: #0e3a3a; color: #7ff5e6; box-shadow: inset 0 0 0 2px #2ad6c8; font-variant-numeric: tabular-nums; }
.refine { display: flex; flex-direction: column; gap: 10px; }
.refine .rf-head { display: flex; gap: 12px; align-items: center; }
.refine .rf-head small { display: block; opacity: .85; }
.refine .rf-name { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag.refine { display: inline-block; width: auto; flex: none; }
.refine .rf-explain, .refine .rf-note { margin: 0; font-size: 13px; line-height: 1.45; }
.refine .rf-note { opacity: .8; }
.refine .rf-table { display: flex; flex-direction: column; gap: 4px; }
.refine .rf-row { display: grid; grid-template-columns: minmax(84px, 1.2fr) minmax(70px, 1fr) 52px minmax(96px, 1.3fr) 64px; gap: 8px; align-items: center;
  padding: 6px 8px; border-radius: 6px; background: var(--w-dark); box-shadow: inset 0 0 0 2px var(--line); font-size: 13px; }
.refine .rf-row.hd { background: none; box-shadow: none; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; opacity: .7; padding: 0 8px; }
.refine .rf-row.on { box-shadow: inset 0 0 0 2px #2ad6c8; }
.refine .rf-row.fixed { opacity: .6; }
.refine .rf-base small { font-weight: normal; opacity: .75; }
.refine .rf-lv { color: #7ff5e6; font-variant-numeric: tabular-nums; }
.refine .rf-cost { font-variant-numeric: tabular-nums; }
.refine .rf-cost.short { color: #ff8a8a; }
.refine .rf-row .btn { min-width: 0; padding-left: 6px; padding-right: 6px; }
.refine .rf-foot { display: flex; justify-content: flex-end; }
@media (max-width: 520px) {
  .refine .rf-row { grid-template-columns: 1fr 1fr 40px; row-gap: 4px; }
  .refine .rf-row.hd { display: none; }
  .refine .rf-row .rf-cost { grid-column: 1 / 3; font-size: 12px; }
  .refine .rf-row .btn, .refine .rf-row > span:last-child { grid-column: 3; grid-row: 1 / 3; align-self: stretch; }
}

/* aura nos cartões da Garagem: a caixa tem o tamanho da arte, para a aura casar com o carro */
.g-art { position: relative; isolation: isolate; display: inline-block; line-height: 0; }
.g-art > .hero { position: relative; z-index: 1; }

/* ---------- polimento (Lucas, 28/11: "botões se encostando", "tá mt junto"): linhas com respiro e botões alinhados ---------- */
.row { padding: 10px 2px; gap: 16px; }
.row > div:first-child { min-width: 0; }
.row small { margin-top: 2px; line-height: 1.35; }
.row > .btn, .row > button.btn { flex: none; min-width: 116px; justify-content: center; text-align: center; }
.row .btn + .btn { margin-left: 6px; }
.settings { display: flex; flex-direction: column; gap: 14px; }
.setsec { padding: 4px 12px 6px; border-radius: 6px; background: #0a061440; box-shadow: inset 0 0 0 2px var(--p-dark); }
.setsec h4 { margin: 8px 0 2px; font: 700 11px/1 var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.setsec .row:first-of-type { border-top: 0; }
.setsec .langs { gap: 6px; }
.pv svg { display: block; }
.pv-google { background: #fff; } .pv-kick { background: #53fc18; } .pv-twitch { background: #9146ff; }
.pv-email { background: #4a3cb0; box-shadow: none; }
.tag.ok { color: var(--cash); }
html.mobile .row { flex-wrap: wrap; row-gap: 8px; }
html.mobile .row > .btn { min-width: 0; }
html.mobile .row > :last-child:not(:first-child) { margin-left: auto; } /* no celular, o controle que quebra de linha fica à direita, alinhado */

/* servidor do Discord (Ajustes → Ajuda): azul da marca, Clyde branco (docs/discord.md 5.1) */
.btn.discord-btn { background: #5865f2; border-color: #4752c4; color: #fff; gap: 6px; text-decoration: none; }
.menu a.btn { text-decoration: none; }

/* faixa de atualização no ar */
#updbar { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100vw - 24px); box-sizing: border-box; padding: 10px 14px; border-radius: 8px; background: #2a1f55; color: #fff; font-size: 13.5px;
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 3px var(--line), 0 6px 0 #0006; }
#updbar b { font: 700 13px/1.2 var(--pixel); color: var(--gold); }
#updbar span { font-variant-numeric: tabular-nums; }
html.mobile #updbar { width: calc(100vw - 24px); }

/* nick do VIP com as cores passando (Lucas, 28/11); parado com "Reduzir efeitos" e com movimento reduzido */
.vipnick { background: linear-gradient(90deg, #ffd23a, #ff9a1e, #ff3d8b, #b48cff, #3ae8ff, #5ad06a, #ffd23a) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent !important; -webkit-text-fill-color: transparent; text-shadow: none !important; filter: drop-shadow(1px 1px 0 #0a0614); animation: vipnick 4s linear infinite; }
@keyframes vipnick { to { background-position: 300% 0; } }
html.fxlow .vipnick { animation: none; }
@media (prefers-reduced-motion: reduce) { .vipnick { animation: none; } }
/* Som nos Ajustes (client/main.js soundRows, docs/sons.md) */
.settings .vol { display: flex; align-items: center; gap: 6px; }
.settings .vol input[type=range] { width: 120px; }
.settings .vol-n { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }

/* barra fixa do box andável: teclas, pilotos na sala e número da sala */
#pitBar { position: absolute; left: 20px; top: 58px; display: flex; align-items: center; gap: 6px; font: 600 12px/1 system-ui, sans-serif; color: #e8e4f4; pointer-events: none; }
#pitBar[hidden] { display: none; }
#pitBar .keys { display: inline-flex; gap: 2px; }
#pitBar kbd { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 3px; background: #2a2440; color: #fff; font: 700 10px/1 var(--pixel); box-shadow: inset 0 -2px 0 #120a24, 0 0 0 1px #6a5a9a; }
#pitBar i { font-style: normal; opacity: .5; }
#pitBar b { color: var(--neon); font-family: var(--pixel); font-weight: 400; }
html.mobile #pitBar { top: auto; bottom: 10px; left: 10px; right: 140px; flex-wrap: wrap; font-size: 11px; }
html.mobile.in-pit #maplog { display: none; }

/* modal de confirmação do jogo (client/ui/modal.js), no lugar do confirm()/prompt() do navegador */
.gmodal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: #05080fcc; animation: fadein .12s; }
.gm-box { width: min(440px, 100%); box-sizing: border-box; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.gm-title { margin: 0; font: 700 15px/1.2 var(--pixel); color: var(--gold); }
.gm-text { margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-line; }
.gm-quote { margin: 0; padding: 8px 10px; border-left: 3px solid var(--p-light); border-radius: 0 4px 4px 0; background: #0a0614; color: var(--ink2); font-size: 13px; overflow-wrap: anywhere; }
.gm-input { width: 100%; box-sizing: border-box; }
.gm-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gm-choice { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 10px; border-radius: 6px; text-align: center; font: 700 12px/1.2 var(--pixel); color: var(--ink2); background: #1a1236; box-shadow: inset 0 0 0 2px var(--line); }
.gm-choice.on { color: #1a1200; background: var(--gold); }
.gm-choice:focus-visible { outline: 2px solid var(--neon); outline-offset: 1px; }
.gm-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.gm-btns .btn { min-width: 110px; }
@keyframes fadein { from { opacity: 0; } }
.nitro-bal, .nitro-pack b { display: inline-flex; align-items: center; gap: 6px; } /* com o símbolo do Nitro (garrafa) */

/* Mochila (client/bag.js) */
.bag { display: flex; flex-direction: column; gap: 10px; }
.bag-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.bag-head p { margin: 0; font-size: 13px; flex: 1 1 320px; }
.bag-row { gap: 10px; align-items: center; justify-content: flex-start; padding: 6px 4px; text-align: left; }
.bag-row.none { opacity: .55; }
.bag-row canvas { flex: none; }
.bag-info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.bag-name { display: flex; gap: 8px; align-items: baseline; }
.bag-qty { font: 700 12px/1 var(--pixel); color: var(--gold); }
.bag-for { color: var(--ink); font-size: 12px; }
.bag-src { color: var(--ink2); font-size: 11.5px; }
.bag .bag-row .btn { flex: none; min-width: 96px; }
.bag-note { font-size: 12px; }
@media (max-width: 600px) { .bag-row { flex-wrap: wrap; } .bag-info { flex-basis: calc(100% - 52px); } .bag .bag-row .btn { flex: 1 1 100%; } }
html.mobile .bag .bag-row { flex-wrap: wrap; } html.mobile .bag .bag-row .btn { flex: 1 1 100%; min-height: 36px; }
/* Equipe na coluna esquerda: quem corre agora em destaque, os outros em linhas compactas */
.teamlist { display: flex; flex-direction: column; gap: 6px; }
.teamnow { --tc: var(--common); position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 8px; align-items: center; padding: 26px 8px 8px; border-radius: 6px; background: #0a061455; box-shadow: inset 0 0 0 2px var(--tc); }
.teamnow.t-uncommon { --tc: var(--uncommon); } .teamnow.t-rare { --tc: var(--rare); } .teamnow.t-epic { --tc: var(--epic); } .teamnow.t-mythic { --tc: var(--mythic); } .teamnow.t-legendary { --tc: var(--legendary); }
.teamnow .nm { font-family: var(--pixel); font-weight: 700; font-size: 15px; }
.teamnow .tags { display: flex; flex-wrap: wrap; gap: 3px; margin: 3px 0; }
.teamnow .bar { margin-top: 2px; }
.tn-badge { position: absolute; top: 6px; right: 8px; padding: 2px 6px; border-radius: 3px; font: 700 10px/1.2 var(--pixel); color: #0a1a0c; background: var(--cash); box-shadow: 0 0 0 2px var(--line); }
.tn-badge.broken { position: static; color: #fff; background: #c8302a; margin-left: 4px; vertical-align: 1px; }
.teamnow .tn-badge.broken { position: absolute; margin: 0; }
.teamrow { display: grid; grid-template-columns: 40px 1fr; gap: 6px; align-items: center; padding: 4px 2px; border-top: 2px dashed var(--p-dark); font-size: 12px; }
.teamrow .nm { font-weight: 600; } .teamrow .sub { font-size: 10.5px; color: var(--ink2); }
.teamrow.down { opacity: .75; }

/* pilotos online agora (client/online.js): no HUD da pista, ao lado do ponto e do BETA (computador e celular) */
.online-now { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--ink2); }
.online-now[hidden] { display: none; }
.online-now::before { content: ""; width: 7px; height: 7px; background: #2ecc71; box-shadow: 0 0 0 2px #000; } /* LED verde aceso, parado */
@keyframes livedot { 50% { opacity: .35; } }
#eventBar .online-now { margin-left: 10px; font-size: 12px; }
html.mobile #eventBar .online-now { margin-left: 8px; font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .online-now::before { animation: none; } }

/* gráfico aranha (client/ui/radar.js) */
/* .radar: margem dos lados e em cima/embaixo para os rótulos (HTML) que saem das pontas */
.radar { display: block; width: 100%; max-width: 360px; margin: 0 auto; padding: 22px 64px 26px; box-sizing: border-box; }
.rd-box { position: relative; }
.rd-svg { display: block; width: 100%; height: auto; overflow: visible; }
.rd-lab { position: absolute; display: flex; align-items: center; gap: 4px; white-space: nowrap; pointer-events: none; line-height: 1.1; }
.rd-lab.left { transform: translate(-100%, -50%); flex-direction: row-reverse; text-align: right; }
.rd-lab.right { transform: translate(0, -50%); }
.rd-lab.top { transform: translate(-50%, -100%); }
.rd-lab.bot { transform: translate(-50%, 0); }
.rd-txt { display: flex; flex-direction: column; }
.rd-lab .rd-lbl { font: 700 11px var(--sans); color: var(--ink2); }
.rd-lab .rd-val { font: 700 11.5px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.rd-grid { fill: none; stroke: #ffffff1c; stroke-width: 1; } .rd-grid.out { stroke: #ffffff38; }
.rd-axis { stroke: #ffffff1c; stroke-width: 1; }
.rd-base { fill: color-mix(in srgb, var(--rc) 35%, transparent); stroke: var(--rc); stroke-width: 2; stroke-linejoin: round; }
.rd-extra { fill: #ffd23a33; stroke: #ffd23a; stroke-width: 2; stroke-dasharray: 4 2; }
.rd-prev { fill: #ffffff14; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 3 3; }
.rd-dot { fill: var(--rc); stroke: #0a0614; stroke-width: 1; } .rd-dot.up { fill: #ffd23a; }
.rf-radar { margin: 4px 0 8px; } .ent-radar { margin: 0 0 6px; }

/* ícones dos atributos (client/moneyicons.js st_*) no gráfico, no Refinar e na ficha */
.rd-ico { image-rendering: pixelated; }
.st-ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; image-rendering: pixelated; }
.rf-stat { display: inline-flex; align-items: center; }
.ent-box .stat .ico { vertical-align: -3px; }

/* card do piloto (Lucas, 28/11): o nível nunca some; o nick encolhe com "…" antes dele e o selo VIP vem depois do nível */
.pc-name { justify-content: flex-start; min-width: 0; }
.pc-name .cap-name { flex: 0 1 auto; margin-right: auto; }
.pc-name .cap-lv, .pc-name .vip-badge { flex: none; white-space: nowrap; }
.pc-name .vip-badge { margin: 0 0 0 2px; font-size: 9px; padding: 2px 4px; }
#mCapLv { white-space: nowrap; }
html.mobile .mcap .vip-badge { margin: 0 0 0 4px; font-size: 8px; padding: 2px 3px; vertical-align: 2px; }

/* "?" com a explicação (helpTip em client/main.js): círculo dourado como o do Grande Achado; o balão abre para a esquerda */
.vip-auto-row { display: flex; align-items: center; gap: 6px; } .vip-auto-row .vip-auto { flex: 1; min-width: 0; }
.qtip-wrap { position: relative; flex: none; display: inline-flex; }
.qtip { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--gold); color: #0a0614; font: 700 13px/1 var(--pixel); cursor: help; box-shadow: 0 0 0 2px var(--line); }
.qtip:hover { background: #ffe07a; } .qtip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.qtip-pop { position: fixed; z-index: 1000; box-sizing: border-box; width: max-content; padding: 8px 10px; border-radius: 6px; pointer-events: none;
  background: #120c22; box-shadow: inset 0 0 0 2px var(--gold2, #a8700c), 0 6px 0 #0008; color: var(--ink); font: 400 12px/1.4 var(--sans); text-align: left;
  display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.qtip-pop[hidden] { display: none; }
.qtip-pop span + span { color: var(--ink2); padding-top: 6px; border-top: 1px dashed var(--p-dark); }
.qtip-pop::before { content: ''; position: absolute; left: calc(var(--ax, 50%) - 6px); top: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--gold2, #a8700c); }
.qtip-pop.up::before { top: auto; bottom: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--gold2, #a8700c); }
/* a linha da chave quebra o texto para o selo VIP e o "?" caberem sempre */
.vip-auto > span:not(.vip-badge) { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.vip-auto > .vip-badge, .vip-auto > input, .vip-auto > .sw { flex: none; }

/* Tier de evento (Natal 2026, Lucas 27/11): vermelho e verde, com faixa listrada como bengala de Natal */
.fchip.r-event { color: var(--event); } .fchip.r-event:not(.on) { box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 var(--event2); }
.badge.r-event { color: #fff; background: repeating-linear-gradient(135deg, #d8283a 0 4px, #b01e2a 4px 8px); box-shadow: inset 0 -2px 0 var(--event2); }
.achip.r-event { background: #b01e2a; }
/* Tier Champion (Lucas, 28/11): platina e ciano; a moldura é uma borda dupla, uma de cada cor */
.fchip.r-champion { color: var(--champion); } .fchip.r-champion:not(.on) { box-shadow: inset 0 0 0 2px var(--line), inset 0 -3px 0 var(--champion2); }
.badge.r-champion { color: #0a2a3a; background: linear-gradient(135deg, var(--champion), var(--champion2)); box-shadow: inset 0 0 0 1px var(--champion2), inset 0 0 0 2px var(--champion); }
.achip.r-champion { background: #2a8aa8; }
/* Selo do campeão do Grande Achado (client/jackpot.js champBadge): as cores da temporada vêm de --ca e --cb (CHAMPION_SEASONS) */
.champ-badge { --ca: #e8f4ff; --cb: #6fe3ff; display: inline-flex; align-items: center; gap: 3px; font: 700 10px/1 var(--pixel); letter-spacing: 1px; color: #0a2a3a; white-space: nowrap;
  background: linear-gradient(135deg, var(--ca), var(--cb)); padding: 3px 5px; border-radius: 3px; margin: 0 6px 0 0; align-self: center; box-shadow: inset 0 0 0 1px var(--cb), inset 0 0 0 2px var(--ca), 0 0 0 2px var(--line); }
.cmsg .champ-badge { font-size: 8px; padding: 2px 3px; margin: 0 4px 0 0; vertical-align: 1px; }
.champ-badge.champ-podium { color: #1a1a22; background: linear-gradient(135deg, #f1f3f8, #b9c2d6); box-shadow: inset 0 0 0 1px #b9c2d6, inset 0 0 0 2px #f1f3f8, 0 0 0 2px var(--line); } /* Pódio (2º e 3º): prata, sem as cores da temporada */
.pf-title.pf-champ { color: var(--champion2); }
/* Cartão "O que o campeão leva": moldura dupla platina e ciano */
.champ-card { --ca: #e8f4ff; --cb: #6fe3ff; margin: 0 0 12px; padding: 12px 14px; border-radius: 6px; background: #0e1626; text-align: left;
  box-shadow: inset 0 0 0 2px var(--cb), inset 0 0 0 4px #0e1626, inset 0 0 0 6px var(--ca); }
.champ-card h4 { margin: 0 0 8px; font: 700 14px/1.2 var(--pixel); color: var(--ca); }
.champ-card .cc-car { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 6px 0 16px; text-align: center; } /* o carro em destaque no topo, o texto embaixo (Lucas, 28/11) */
.champ-card .cc-art { position: relative; isolation: isolate; display: grid; place-items: center; width: 192px; max-width: 100%; } /* 192 px: o tamanho do carro nos cartões do jogo e da landing (1:1 com a arte do atlas) */
.champ-card .cc-art:not(.art) { display: none; } /* sem arte no atlas ainda: só o nome */
.champ-card .cc-art canvas.hero { display: block; width: 100%; height: auto; aspect-ratio: auto; image-rendering: pixelated; position: relative; z-index: 1; }
.champ-card .cc-art .aura { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; image-rendering: pixelated; pointer-events: none; }
.champ-card .cc-name { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.champ-card .cc-name b { font: 700 16px/1.2 var(--pixel); color: #fff; } .champ-card .cc-name small { color: var(--cb); font-size: 12.5px; }
.champ-card .cc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 5px 0; border-top: 1px solid #ffffff1f; font-size: 13px; }
.champ-card .cc-k { color: var(--ink2); } .champ-card .cc-v { color: var(--ca); font-weight: 700; text-align: right; }
.champ-card .cc-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; opacity: .85; }
.ev-tag { display: inline-block; margin-left: 4px; padding: 0 4px; font-size: 10px; color: #1a1a1a; background: #ffd23a; border-radius: 2px; }
/* faixa do evento no topo do jogo */
.ev-banner { position: absolute; z-index: 6; top: 92px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; color: #fff; font-size: 13px; line-height: 1.35;
  background: repeating-linear-gradient(135deg, #a8182c 0 10px, #8a1424 10px 20px); border: 2px solid #ffd23a; box-shadow: 0 3px 0 #1a6a32; }
.ev-banner b { color: #ffd23a; } .ev-banner .ev-x { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; font-size: 16px; }
.ev-banner .ev-snow { width: 16px; height: 16px; image-rendering: pixelated; }
.ev-banner .ev-snow { flex: none; display: inline-flex; }
@media (max-width: 760px) { .ev-banner { top: 44px; font-size: 12px; padding: 5px 8px; } }
/* elo do PvP na barra da pista (#eventBar): ícone, divisão e PR; clicar abre o PvP */
#eventBar { display: flex; align-items: center; }
.ev-pvp { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 2px 8px 2px 4px; border: 0; border-radius: 4px; cursor: pointer;
  background: #0a0614; box-shadow: inset 0 0 0 1px #ffffff2a; color: #fff; font: 700 11px/1 var(--pixel); text-shadow: var(--outline); }
.ev-pvp:hover { box-shadow: inset 0 0 0 1px var(--gold); } .ev-pvp:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ev-pvp .pr { font: 700 11px/1 var(--sans); color: var(--ink2); font-variant-numeric: tabular-nums; }
html.mobile .ev-pvp { margin-left: 6px; padding: 2px 5px 2px 3px; } html.mobile .ev-pvp .pr { display: none; }

/* Placar do trimestre do Grande Achado (client/jackpot.js, prizeBox): a temporada, a linha do piloto e os 10 do topo (Lucas, 02/12/2026) */
.ga-placar { margin: 0 0 14px; padding: 12px 14px; border-radius: 6px; background: #120a24; box-shadow: inset 0 0 0 2px #4a3818; text-align: left; }
.ga-placar h4 { margin: 0 0 6px; font: 700 14px/1.2 var(--pixel); color: var(--gold); }
.ga-placar h4 + .gr-top, .ga-placar h4:not(:first-child) { margin-top: 12px; }
.ga-placar .gr-status { margin: 0 0 8px; font-size: 13px; }
.ga-placar .gr-mine { margin: 0 0 6px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ga-placar .gr-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; opacity: .85; }
.gr-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; counter-reset: gr; }
.gr-top li { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 4px; background: #1a1236; font-size: 13px; counter-increment: gr; }
.gr-top li::before { content: counter(gr) "."; min-width: 22px; opacity: .7; font-variant-numeric: tabular-nums; }
.gr-top li:first-child { box-shadow: inset 0 0 0 2px #ffd23a; }
.gr-top .gr-nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-top b { margin-left: auto; color: #7cf09a; font-variant-numeric: tabular-nums; }
.gr-top .gr-g { opacity: .7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gr-top li.no { opacity: .72; } /* ainda sem os mínimos (30 partidas, 21 dias e Nv 150) */

/* pódio dos Ranks (client/social.js): 2º, 1º e 3º lado a lado, degraus prata, ouro e bronze, como o da landing */
.rk-podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 10px; margin: 4px 0 2px; }
.rk-pod { display: flex; flex-direction: column; min-width: 0; }
.rk-pod-card { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 8px 8px; border-radius: 6px 6px 0 0; text-align: center; min-width: 0;
  background: linear-gradient(#251b44, #1a1230); box-shadow: inset 0 0 0 2px var(--pc, #5a4a8a); cursor: pointer; }
.rk-pod-card:hover { filter: brightness(1.12); } .rk-pod-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rk-pod.p1 { --pc: #ffd23a; } .rk-pod.p2 { --pc: #c8d0e0; } .rk-pod.p3 { --pc: #e09858; }
.rk-pod.p1 .rk-pod-card { box-shadow: inset 0 0 0 2px var(--pc), 0 0 18px #ffd23a33; }
.rk-pod.me .rk-pod-card { background: linear-gradient(#33245c, #1a1230); }
.rk-pod-av { min-height: 40px; display: grid; place-items: center; } .rk-pod-av .gtag { font-size: 14px; padding: 4px 8px; }
.rk-pod-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 700; }
.rk-pod-v { font: 700 14px/1.1 var(--sans); color: var(--gold); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: center; }
.rk-pod-v small { color: var(--ink2); font-size: 11px; font-weight: 400; }
.rk-step { display: grid; place-items: center; border-radius: 0 0 4px 4px; box-shadow: inset 0 0 0 2px var(--line), inset 0 4px 0 #ffffff55, inset 0 -5px 0 #0004; }
.rk-step b { font: 700 26px/1 var(--pixel); color: #1a1200; text-shadow: 2px 2px 0 #ffffff66; }
.rk-pod.p1 .rk-step { height: 58px; background: linear-gradient(#ffe68a, #e0a828); }
.rk-pod.p2 .rk-step { height: 40px; background: linear-gradient(#f4f6fa, #a8b0c4); }
.rk-pod.p3 .rk-step { height: 28px; background: linear-gradient(#f0b888, #b06a30); }
html.mobile .rk-podium { gap: 5px; } html.mobile .rk-pod-card { padding: 8px 4px 6px; } html.mobile .rk-pod-name { font-size: 11px; }
html.mobile .rk-pod-v { font-size: 12px; } html.mobile .rk-step b { font-size: 20px; }

/* faixa de conquista rara (client/announce.js): no topo, por cima da cena, sem travar o jogo */
#annBar { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 900; width: min(560px, calc(100vw - 16px)); pointer-events: none; }
.ann-card { --ac: var(--legendary, #ff3d8b); pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 6px 34px 6px 8px; border-radius: 8px; position: relative;
  background: linear-gradient(90deg, #2a0f2a, #150c24 70%); box-shadow: inset 0 0 0 2px var(--ac), 0 6px 0 #0008, 0 0 18px color-mix(in srgb, var(--ac) 40%, transparent);
  transform: translateY(-16px); opacity: 0; transition: transform .25s steps(5), opacity .25s steps(5); }
.ann-card.in { transform: none; opacity: 1; } .ann-card.out { transform: translateY(-16px); opacity: 0; }
.ann-card.t-mythic { --ac: var(--mythic, #ffc23a); background: linear-gradient(90deg, #2a1e08, #150c24 70%); }
.ann-card.t-plate { --ac: #e8c060; background: linear-gradient(90deg, #1a1a20, #150c24 70%); }
.ann-card.ga { --ac: var(--gold); }
.ann-art { position: relative; isolation: isolate; flex: none; width: 96px; } .ann-art canvas.hero { position: relative; z-index: 1; display: block; width: 96px; height: auto; image-rendering: pixelated; }
.ann-txt { min-width: 0; } .ann-txt b { font: 700 13px/1.3 var(--sans); color: #fff; text-shadow: var(--outline); }
.ann-x { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border: 0; border-radius: 4px; background: #0008; color: #fff; font: 700 14px/1 var(--sans); cursor: pointer; }
html.mobile #annBar { top: 56px; } html.mobile .ann-art { width: 72px; } html.mobile .ann-art canvas.hero { width: 72px; } html.mobile .ann-txt b { font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .ann-card { transition: none; } }
/* linha de sistema no chat Global */
.cmsg.sys { background: linear-gradient(90deg, #ff3d8b26, transparent); box-shadow: inset 2px 0 0 var(--legendary, #ff3d8b); font-weight: 700; }
.cmsg.sys.t-mythic { background: linear-gradient(90deg, #ffc23a22, transparent); box-shadow: inset 2px 0 0 var(--mythic, #ffc23a); }
.cmsg.sys.t-plate { background: linear-gradient(90deg, #e8c06022, transparent); box-shadow: inset 2px 0 0 #e8c060; }

/* idade mínima 18: caixa nos Termos novos e a janela de confirmação */
.terms-age { display: flex; align-items: center; gap: 8px; margin: 8px 0; padding: 8px 10px; border-radius: 6px; background: #120c22; box-shadow: inset 0 0 0 2px var(--gold2, #a8700c); font-weight: 700; cursor: pointer; }
.terms-age input { width: 18px; height: 18px; flex: none; }
.age18-acts { display: flex; gap: 8px; flex-wrap: wrap; } .age18-acts .btn { flex: 1 1 120px; }

/* Roupa do piloto (shared/outfits.js): o boneco de corpo inteiro na loja, no editor do piloto e no perfil */
.pilot-figure { display: block; image-rendering: pixelated; }
.sc-outfit { display: flex; justify-content: center; padding: 4px 0; }
.setup-outfit .obtn { width: auto; height: auto; padding: 4px; }
.setup-card .sc-body { display: grid; place-items: center; min-width: 96px; }
.pf-body { display: grid; place-items: end center; align-self: end; }
.portrait .bust { display: block; width: min(44px, 100%); height: min(44px, 100%); } /* cabe na tecla de 40 do HUD novo (claude/hud-identidade) e na de 54 de hoje */

/* Criar conta e código do e-mail (client/signup.js) */
.signup-form { display: flex; flex-direction: column; gap: 10px; }
.code-field { font: 700 24px/1 var(--sans); letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.signup .terms-age span a { color: var(--gold); }
.signup .terms-age { flex-direction: row; align-items: flex-start; text-align: left; font: 400 12.5px/1.4 var(--sans); color: var(--ink); }
.signup .terms-age input { margin-top: 1px; }
