/* Runekin · css/overrides.css — ajustes finais (cauda do style.css original, mantida INTACTA): sobrescrevem regras anteriores por ordem de fonte — carregar por ÚLTIMO.
   Fatia do antigo style.css (linhas 1504–1693); a ORDEM dos <link> em layout.jsx preserva a cascata. */

/* ---- modal close: ✕ chip top-right is the standard ---- */
/* ✕ com 44pt efetivos no palco escalado (--tap = 44px/k, stage.css); no retrato --tap não existe → 38 */
.rg-x { position: absolute; right: 0; top: 0; width: max(38px, var(--tap, 0px)); height: max(38px, var(--tap, 0px)); display: grid; place-items: center; background: var(--ink); color: #fff; font: 400 18px var(--display); z-index: 5; }
.rg-x:active { background: var(--c3); }
.detail-card .rg-x { right: 0; top: 0; width: 44px; height: 44px; font-size: 20px; }
/* folha de baixo (mochila): ✕ no alto à direita do PAPEL visível (a diagonal --e-hdr-up desce até 28%
   da altura na direita), nunca no canto de baixo — que é do indicador de home e do canto arredondado */
.rg-sheet.bottom .rg-x { top: calc(28% + 8px); bottom: auto; right: 16px; }
.rg-sheet .rg-close { display: none; }
/* battle: PARTY button instead of bench chips */
.bt-party { margin-left: 10px; min-height: max(26px, calc(var(--tap, 0px) * .65)); padding: 2px 10px; font-size: 13px; letter-spacing: 1px; --face: #fff; color: var(--ink); --clip: var(--e-chip); }
.bt-party .cnt { background: var(--ink); color: #fff; padding: 0 5px; margin-left: 4px; }
.rg-partymodal .rg-pick-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rg-partymodal .rg-pick { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: #fff; border: 3px solid var(--ink); color: var(--ink); text-align: left; }
.rg-partymodal .rg-pick.active { background: var(--c2); }
.rg-partymodal .rg-pick .rg-unit-art { width: 44px; height: 44px; display: grid; place-items: center; }
.rg-partymodal .rg-pick .rg-unit-art img, .rg-partymodal .rg-pick .rg-unit-art svg { width: 100%; height: 100%; object-fit: contain; }
.rg-partymodal .rg-pick .rg-unit-name { font-size: 18px; line-height: 1; }
.rg-partymodal .rg-pick .rg-unit-hpnum { font: 500 9px var(--mono); color: #777; }
.rg-partymodal .rg-pick .bs-hp { width: 90px; margin-top: 3px; }
.rg-partymodal .rg-pick[disabled] { opacity: .35; }
.rg-partymodal p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
/* toast inside the stage (rotates with it) */
/* toast inside the stage: no alto, no centro — embaixo ficam os CTAs, a equipe e o campo de código
   (cobria tudo isso); contorno c2 pra ler sobre tinta, papel e slab */
.rg-toast { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 8px 16px; font: 400 14px var(--display); letter-spacing: 1px; text-transform: uppercase; z-index: 60; max-width: 60%; text-align: center; pointer-events: none; clip-path: var(--e-chip); border: 3px solid var(--c2); }
.rg-toast.mid { top: 62%; transform: translate(-50%, -50%); }   /* no alto cobriria a laje (explore/ui.js toast) */
/* row 1 of the battle wraps instead of hiding */
.bt-row1 { flex-wrap: wrap; white-space: normal; overflow: visible; row-gap: 2px; }
.bt-sub { row-gap: 2px; }
/* party row wraps (max 6 → 2 rows of 3); cards are drag targets, not scrollers */
.rg-party { flex-wrap: wrap; overflow: visible; row-gap: 14px; align-content: flex-end; padding: 0 0 12px; right: 26px; }   /* 14: as etiquetas EVO/Laço que saem do cartão não encostam na fileira de baixo */
.rg-party .rg-partylbl { align-self: flex-end; }
.rg-pcard { touch-action: none; padding: 4px 8px 4px 4px; }
.rg-pcard .art { width: 32px; height: 32px; }
.rg-pcard .txt b { font-size: 13px; }
.rg-pcard .bs-hp { width: 54px; height: 5px; margin-top: 3px; }
.rg-mapsvg { bottom: 124px; }
.rg-umodal .rg-um-gv .bs-label { padding-right: 44px; }
.rg-pumodal .rg-pick .rg-unit-art, .rg-partymodal .rg-pick .rg-unit-art { flex: none; }
.rg-pumodal .rg-pick, .rg-partymodal .rg-pick { width: auto; min-width: 150px; flex: none; }

/* ---- item chips: icon + count; tap opens the detail modal ---- */
.rg-itemchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rg-ichip { position: relative; width: 36px; height: 36px; display: grid; place-items: center; background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.rg-ichip .rg-ic { width: 20px; height: 20px; }
.rg-ichip b { position: absolute; right: -6px; bottom: -6px; background: var(--ink); color: #fff; font: 400 11px var(--display); padding: 0 4px; line-height: 1.3; }
/* fora de uso agora: chapado e cinza (a opacidade sobre o slab laranja virava pêssego e parecia quebrado) */
.rg-ichip:not(.can) { background: var(--paper-dim); border-color: #8a8a8a; color: #5d5d5d; }
.rg-ichip:not(.can) .rg-ic { filter: grayscale(1); opacity: .7; }
.rg-ichip:not(.can) b { background: #5d5d5d; }
.rg-ichip.big { width: 64px; height: 64px; border-width: 3px; }
.rg-ichip.big .rg-ic { width: 34px; height: 34px; }
.rg-ichip.big b { font-size: 15px; padding: 1px 6px; right: -8px; bottom: -8px; }
.rg-itemchips.battle { position: absolute; left: 26px; right: 84px; top: 96px; gap: 14px; }
.rg-itemchips.battle .rg-ichip.can { background: var(--c2); }
.rg-slabbot .rg-slabbtns { margin-top: 12px; }
.rg-itemmodal { padding: 22px 26px; width: min(100%, 520px); }
.rg-itemmodal .rg-item-head { display: flex; align-items: center; gap: 14px; }
.rg-itemmodal .rg-item-head .ico { width: 56px; height: 56px; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; }
.rg-itemmodal .rg-item-head .ico .rg-ic { width: 30px; height: 30px; }
.rg-itemmodal h2 { margin: 0; font-weight: 400; font-size: 32px; line-height: .95; }
.rg-itemmodal .rg-mono { font: 500 10px var(--mono); letter-spacing: 1px; }
.rg-itemmodal p { margin: 12px 0 0; font-size: 13px; color: var(--ink); }
.rg-itemmodal .rg-btns { display: flex; justify-content: flex-end; margin-top: 16px; min-height: 10px; }

/* ---- map layout: chips top-right, legend bottom-right, bigger trellis ---- */
.rg-mapbtns { top: 16px; right: 26px; display: flex; gap: 6px; }
.rg-mapbtns .bs-btn { min-height: max(28px, calc(var(--tap, 0px) * .8)); padding: 3px 10px; font-size: 12px; }
.rg-legend { top: auto; bottom: 14px; right: 26px; max-width: 220px; gap: 2px; }
.rg-legend .bs-label { font-size: 11px; }
.rg-legend div { font-size: 11px; }
.rg-legend p { font-size: 10px; }
.rg-mapsvg { left: 262px; right: 26px; top: 54px; bottom: 100px; }
.rg-partywrap { position: absolute; left: 250px; right: 250px; bottom: 8px; }
.rg-partywrap .rg-partylbl { display: block; writing-mode: horizontal-tb; transform: none; color: var(--ink); font-size: 11px; letter-spacing: 3px; margin: 0 0 4px; }
.rg-partywrap .rg-party { position: static; padding: 0; }

/* ---- battle stacking: content above art, art above VS; art never eats taps ---- */
.rg-bt .bt-vs { z-index: 0; }
.bt-foeart { z-index: 1; pointer-events: none; right: auto; left: 72%; transform: translateX(-50%); bottom: 36px; }
.bt-me, .bt-sum, .bt-grid, .bt-foe, .bt-ticker, .bt-end { z-index: 2; }
.rg-mapsvg { bottom: 112px; }
/* ---- stage breathing room: 24 px from every edge of the landscape stage ---- */
.rg-slabtxt { top: 24px; }
.rg-slabbot { bottom: 24px; }
.rg-mapbtns { top: 22px; right: 28px; }
.rg-legend { bottom: 24px; right: 28px; }
.rg-mapsvg { top: 60px; bottom: 118px; right: 28px; }
.rg-partywrap { left: 250px; right: 236px; bottom: calc(24px - var(--bgain, 0px)); }
.rg-partywrap .rg-party { padding: 0; }
.rg-bottomrow { bottom: 24px; }
.rg-titlerow { top: 22px; }
.rg-subline { top: 68px; }
.bt-me { top: 16px; }
.bt-grid { bottom: 24px; }
.bt-sum { bottom: 28px; }
.bt-foe { top: 22px; }
.bt-end { bottom: 24px; }
.bt-ticker { bottom: 66px; }
.rg-scene .bs-btn.rg-home { top: 22px; right: 28px; min-height: max(30px, calc(var(--tap, 0px) * .9)); }

/* ---- stage scale + safe area ----
   O palco (844×390 escalado por --rg-k, explore/ui.js) é a viewport MENOS as 4 áreas seguras
   (ilha/notch nas laterais, indicador de home, barra de status no iPad/Android): conteúdo e toques
   ficam dentro, sem conta nenhuma por tela. Os fundos .bg sangram até a borda física (abaixo).
   Insets por lado (iOS reporta L=R; no Android o recorte fica de um lado só) vêm dos tokens
   (--sa-*, tokens.css); --bt/--br/--bb/--bl são os mesmos insets em unidades de referência. */
#screen-rogue {
  --rg-k: 1;
  --stage-t: var(--sa-t); --stage-r: var(--sa-r); --stage-b: var(--sa-b); --stage-l: var(--sa-l);
  --bt: calc(var(--stage-t) / var(--rg-k)); --br: calc(var(--stage-r) / var(--rg-k));
  --bb: calc(var(--stage-b) / var(--rg-k)); --bl: calc(var(--stage-l) / var(--rg-k));
  /* com o indicador de home fora do palco, as margens de baixo de 24–28 ref dobravam a folga: a trilha
     do mapa e a Gravura recuperam até 12 ref (no site, sem inset, --bgain = 0 e nada muda) */
  --bgain: min(var(--bb), 12px);
}
body.rg-land #rogueRoot, body.rg-land #rgLayer {
  position: absolute; top: var(--stage-t); left: var(--stage-l);
  width: calc((100% - var(--stage-l) - var(--stage-r)) / var(--rg-k));
  height: calc((100% - var(--stage-t) - var(--stage-b)) / var(--rg-k));
  transform: scale(var(--rg-k)); transform-origin: top left;
}
/* sonda 0×0: explore/ui.js lê os insets do palco pelo padding (o JS não lê env()) e a observa */
#rgProbe { position: fixed; left: 0; top: 0; width: 0; height: 0; visibility: hidden; pointer-events: none; padding: var(--stage-t) var(--stage-r) var(--stage-b) var(--stage-l); }
#rgLayer { pointer-events: none; z-index: 30; }
#rgLayer > * { pointer-events: auto; }
#rgLayer > #rgGvFx, #rgLayer > .rg-toast { pointer-events: none; }
body:not(.rg-land) #rgLayer { position: fixed; inset: 0; transform: none; width: auto; height: auto; }
body:not(.rg-land) #rgLayer:empty { display: none; }
/* a cena não recorta mais: era o overflow:hidden dela que cortava a sangria na borda do palco
   (faixas pretas de 50–62pt ao lado da ilha). Quem recorta é #screen-rogue, na borda física. */
body.rg-land .rg-scene { overflow: visible; }
/* sangria: borda transparente do tamanho do inset, puxada por margem negativa — o fundo pinta
   sob a borda e o clip-path segue a caixa da borda, então chega à borda física com a geometria
   em unidades de referência. Fundos inteiros: 4 lados; faixa de cima/baixo: o seu lado + laterais;
   o papel da direita: direita + cima + baixo. As duas metades da batalha e a barra branca dividem
   UMA caixa (caixas diferentes = costura preta entre elas). */
body.rg-land .rg-scene .bg { margin: 0; box-sizing: content-box; border: 0 solid transparent; }
body.rg-land .rg-scene .bg:is(.ink, .paper, .c2page, .dim):not(.slab-l),
body.rg-land .rg-bt .bg:is(.bt-l, .bt-r, .bt-bar, .bt-dots) {
  inset: 0; width: auto; height: auto;
  margin: calc(-1 * var(--bt)) calc(-1 * var(--br)) calc(-1 * var(--bb)) calc(-1 * var(--bl));
  border-width: var(--bt) var(--br) var(--bb) var(--bl);
}
body.rg-land .rg-scene .bg.hdr { margin: calc(-1 * var(--bt)) calc(-1 * var(--br)) 0 calc(-1 * var(--bl)); border-width: var(--bt) var(--br) 0 var(--bl); }
body.rg-land .rg-scene .bg.foot { margin: 0 calc(-1 * var(--br)) calc(-1 * var(--bb)) calc(-1 * var(--bl)); border-width: 0 var(--br) var(--bb) var(--bl); }
body.rg-land .rg-scene .bg.paper-r { margin: calc(-1 * var(--bt)) calc(-1 * var(--br)) calc(-1 * var(--bb)) 0; border-width: var(--bt) var(--br) var(--bb) 0; }
/* slabs de canto com diagonal (--e-slab-l / --e-btl-r): uma borda de sangria esticaria os % da
   diagonal (o canto de baixo andava ~15 ref pra dentro na ilha). A forma vai pro ::before, nas
   coordenadas do palco (só esticada na vertical até a borda física), e o ::after pinta a faixa
   do inset do lado de fora. Sem insets (site) fica idêntico ao slab de antes. */
body.rg-land .rg-scene .bg:is(.slab-l, .slab-r) { --slab: var(--c1); background: none; clip-path: none; }
body.rg-land .rg-scene .bg.slab-l.c2 { --slab: var(--c2); }
body.rg-land .rg-scene .bg:is(.slab-l.ink, .slab-r) { --slab: var(--ink); }
body.rg-land .rg-scene .bg:is(.slab-l, .slab-r)::before,
body.rg-land .rg-scene .bg:is(.slab-l, .slab-r)::after { content: ""; position: absolute; top: calc(-1 * var(--bt)); bottom: calc(-1 * var(--bb)); background: var(--slab); }
body.rg-land .rg-scene .bg.slab-l::before { left: 0; right: 0; clip-path: var(--e-slab-l); }
body.rg-land .rg-scene .bg.slab-l::after { right: calc(100% - 1px); width: calc(var(--bl) + 1px); }  /* 1px de sobreposição: sem costura */
body.rg-land .rg-scene .bg.slab-r::before { left: 0; right: 0; clip-path: var(--e-btl-r); }
body.rg-land .rg-scene .bg.slab-r::after { left: calc(100% - 1px); width: calc(var(--br) + 1px); }
/* batalha: a diagonal (56% em cima → 44% embaixo) e a barra branca medidas no PALCO, não na
   caixa sangrada — com recorte de um lado só (Android) o VS continua em cima da barra */
body.rg-land .rg-bt {
  --sx0: calc(var(--bl) + (100% - var(--bl) - var(--br)) * .56);
  --sx1: calc(var(--bl) + (100% - var(--bl) - var(--br)) * .44);
}
body.rg-land .rg-bt .bg.bt-l { clip-path: polygon(0 0, var(--sx0) 0, var(--sx1) 100%, 0 100%); }
body.rg-land .rg-bt .bg.bt-r { clip-path: polygon(var(--sx0) 0, 100% 0, 100% 100%, var(--sx1) 100%); }
body.rg-land .rg-bt .bg.bt-bar { clip-path: polygon(calc(var(--sx0) - 11px) 0, calc(var(--sx0) + 11px) 0, calc(var(--sx1) + 11px) 100%, calc(var(--sx1) - 11px) 100%); }
/* modais: o escurecido e as folhas também chegam à borda física (a caixa do .rg-ov é o palco) */
body.rg-land .rg-ov { box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); }
body.rg-land .rg-ov.rg-evo-ov { box-shadow: 0 0 0 100vmax var(--ink); }
body.rg-land .rg-evo-ov > .rg-sheet.rg-evo { overflow: visible; }
body.rg-land .rg-ov > .rg-sheet.bottom::before { left: calc(-1 * var(--bl)); right: calc(-1 * var(--br)); bottom: calc(-1 * var(--bb)); }
/* app: o aparelho gira sozinho (trava do plugin) — tinta por cima até a viewport assentar; o
   pedido de rotação da web só volta se a trava falhar (body.rg-nolock, explore/ui.js) */
body.rg-turning #rogueRoot, body.rg-turning #rgLayer { visibility: hidden; }
html.is-native body:not(.rg-nolock) .rg-rotate { display: none !important; }
html.is-native .rg-rotate .rg-rotate-lock { display: none; }

/* ---- portrait screens on wide viewports: slabs and footers go full-bleed ---- */
@media (min-width: 560px) {
  .app { max-width: 560px; }
  .screen > .bs-slab.hdr, .screen > .nb-stripe, .home-head, .home-stripe, .sc-head, .home-foot::before,
  .cred-footer::before, .al-foot, .st-foot, .rg-stats > .bs-slab.hdr, .dx-poster {
    left: calc(50% - 50vw); width: 100vw; right: auto; max-width: none; margin-left: 0; margin-right: 0;
  }
  .home-stripe { left: calc(50% - 50vw - 30px); width: calc(100vw + 60px); }
  .nb-stripe { left: calc(50% - 50vw - 30px); width: calc(100vw + 60px); }
  .dx-poster { left: calc(50% - 50vw - 40px); width: calc(100vw + 80px); }
  /* legenda do Caderno = faixa: sangra 100vw, o texto fica na coluna de 560 (padding-top = a
     altura da diagonal de 14vw no x onde a coluna começa) */
  .nb-legend { max-width: none; padding-left: calc(50vw - 280px + var(--gutter-l)); padding-right: calc(50vw - 280px + var(--gutter-r)); padding-top: calc(7vw + 42px); }
  .home-footline { max-width: 560px; }
}
@media (min-width: 560px) { .screen.home { overflow: visible; } }

/* landscape stage headers/footers are measured in reference units: keep the mock ratios there */
.rg-scene .bg.hdr { clip-path: polygon(0 0,100% 0,100% 72%,0 100%); }
.rg-scene .bg.foot { clip-path: polygon(0 40%,100% 0,100% 100%,0 100%); }
.rg-ov > .rg-sheet.bottom { --clip: polygon(0 0,100% 28%,100% 100%,0 100%); }
/* stripes share the same 8° */
.home-stripe, .nb-stripe { transform: rotate(calc(-1 * var(--tilt))); }
/* result / rewards: lines are stickers, not body copy */
.rg-simplev .rg-rewards { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-family: var(--display); text-transform: uppercase; font-size: 24px; line-height: 1; color: var(--ink); overflow: visible; }
.rg-simplev .rg-rewards > div { background: #fff; border: 3px solid var(--ink); padding: 10px 16px; max-width: 560px; }
.rg-simplev .rg-rewards > div:nth-child(odd) { transform: rotate(-1deg); }
.rg-simplev .rg-rewards > div:nth-child(even) { transform: rotate(.8deg); }
.rg-simplev .rg-rewards .rg-ic { width: .9em; height: .9em; vertical-align: -.1em; }
.rg-simplev .rg-titlerow h1 { font-size: 40px; }
.rg-btover .rg-rewards { font-family: var(--display); text-transform: uppercase; font-size: 18px; line-height: 1.5; }

/* ---- battle seam: one geometry for both slabs and the white bar ---- */
.rg-bt .bg.bt-l { width: 100%; clip-path: polygon(0 0, 56% 0, 44% 100%, 0 100%); }
.rg-bt .bg.bt-r { width: 100%; clip-path: polygon(56% 0, 100% 0, 100% 100%, 44% 100%); }
.rg-bt .bg.bt-bar { left: 0; top: 0; width: 100%; height: 100%; transform: none; clip-path: polygon(calc(56% - 11px) 0, calc(56% + 11px) 0, calc(44% + 11px) 100%, calc(44% - 11px) 100%); }
.rg-bt .bt-vs { left: 50%; top: 40%; transform: translateX(-50%) rotate(-8deg); }

/* ---- player side: breathing room, narrower summary, stacked actions ---- */
.bt-me { top: 24px; left: 30px; }
.bt-grid { left: 30px; bottom: var(--gb, 28px); }
.bt-sum { left: calc(30px + var(--cell) * 5 + 22px + 14px); right: calc(56% + 14px); bottom: calc(var(--gb, 28px) + 2px); min-width: 0; }
.bt-sum .title { font-size: 18px; }
.bt-sum .title span { display: block; font-size: 12px; margin-top: 2px; }
.bt-sum .fx { gap: 3px; }
.bt-sum .fx .rg-gv-ichip { font-size: 12px; padding: 1px 6px; }
.bt-actions { grid-template-columns: 1fr; gap: 5px; }
.bt-actions .bs-btn { min-height: max(30px, calc(var(--tap, 0px) * .8)); font-size: 13px; }
.bt-actions .bs-btn.play { grid-column: auto; font-size: 18px; padding: 8px 6px; }
.bt-sum:empty { display: none; }

/* ---- foe side: intent sits above END TURN, log is an ink box ---- */
.bt-foe { top: 24px; right: 30px; }
.bt-intentwrap { position: absolute; right: 30px; bottom: 64px; z-index: 2; text-align: right; }
.bt-intent { margin-top: 0; }
.bt-ticker { right: 30px; bottom: 112px; width: 190px; background: var(--ink); color: #fff; border-right: 0; padding: 6px 10px; clip-path: var(--e-chip); font-size: 11px; max-height: 52px; }
.bt-ticker.open { width: 300px; max-height: 240px; border-right: 0; }
.bt-end { right: 30px; bottom: max(4px, calc(var(--gb, 28px) - 4px)); }
.bt-foeart { left: 66%; bottom: 44px; }

/* ---- disabled controls stay solid and readable ---- */
.bs-btn[disabled] { opacity: 1; --face: var(--paper-dim); color: #8a8a8a; --sh: transparent; }
.bs-btn.line[disabled] { --face: transparent; color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.4); }
.rg-scene .bs-btn.line[disabled] { color: inherit; opacity: .45; }
.bt-actions .bs-btn.play[disabled] { --face: var(--paper-dim); color: #8a8a8a; transform: rotate(-2deg); }
.bt-end .bs-btn[disabled] { --face: var(--paper-dim); color: #8a8a8a; }

/* ---- home footer band: clears the safe area without a yellow strip (altura em home.css) ---- */
body[data-screen="home"] .app { padding-bottom: 0; }
/* foe art: centred in the red panel (horizontally on the panel's axis, vertically between header and controls) */
.bt-foeart { left: 71%; top: 55%; bottom: auto; transform: translate(-50%, -50%); }
/* HP: the lost part reveals the slab behind (no second "bar" to misread) */
.bs-hp, .bs-hp.big, .bs-hp.on-ink, .bt-foe .bs-hp.big { background: transparent; }
.rg-pcard .bs-hp, .rg-ucard .bs-hp, .rg-um-main .bs-hp, .rg-partymodal .bs-hp, .rg-pumodal .bs-hp { background: transparent; }
/* foe side: low HP in ink, never the slab's own --c3 */
.bt-foe .bs-hp.big > i.low, .bs-hp.on-ink > i.low { background: var(--ink); }
/* centring lives in the `translate` property so transform animations (shake) don't displace the art */
.bt-foeart { transform: none; translate: -50% -50%; }

/* ---- intenção do inimigo: logo abaixo da barra/stats do foe, atrás da arte do Runekin ---- */
.bt-foe { z-index: auto; }
.bt-foe > * { position: relative; z-index: 3; }
.bt-foe > .bt-intentwrap { position: relative; z-index: 0; right: auto; bottom: auto; margin-top: 8px; text-align: right; }
/* …em COLUNA encostada à direita: rótulo em cima, um efeito por linha (não briga com a arte na horizontal) */
.bt-intent { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; width: max-content; margin-left: auto; background: none; padding: 0; transform: none; clip-path: none; }
.bt-intent .lbl { background: var(--ink); color: #fff; padding: 3px 8px; font-size: 13px; letter-spacing: 2px; line-height: 1.2; clip-path: var(--e-btn-b); transform: rotate(2deg); margin-bottom: 2px; }
.bt-intent .rg-gv-ichip { font-size: 15px; padding: 2px 8px; border: 2px solid var(--ink); }
.bt-intent .none { background: var(--ink); padding: 3px 8px; }

/* ---- Arena: sair da batalha (✕ à esquerda de END TURN; pede confirmação) ---- */
/* Arena: sair (W.O.) é um ✕ no alto à esquerda, longe de END TURN (era vizinho dele, a ~10pt) */
.bt-row1 .bs-btn.quit { --face: var(--ink); color: #fff; border: 0; min-height: 24px; min-width: 30px; padding: 0 8px; margin: -4px 4px -4px 0; font-size: 14px; letter-spacing: 0; --clip: none; }
.bt-row1 .bs-btn.quit::before, .bt-row1 .bs-btn.quit::after { clip-path: none; }
/* onda 4: o ✕ da Arena (e a pausa do EXPLORE) tinha 24×19pt em cima da arte. Chip maior (30×36 ref) e
   alvo de --tap (44pt) por uma margem invisível no ::after — a linha não cresce (no palco de 390 sobram
   ~3pt entre TEAM e a Gravura); a margem desce sobre a arte do herói (não tocável), nunca sobe pra fora
   do palco; z-index 1 põe o botão (e a margem) acima do .bt-hero */
.bt-row1 .bs-btn.quit { z-index: 1; min-height: 30px; min-width: 36px; padding: 0 9px; margin: -4px 6px -10px 0; font-size: 16px; }
.bt-row1 .bs-btn.quit .rg-ic { width: 15px; height: 15px; }
/* RC: o chip sai do fluxo — com a FÚRIA ×1,25 a fileira quebra e a 2ª linha começava debaixo dele (a
   margem de baixo −10 + z-index 1 cobria a metade de cima do "TURNO 13"). O recuo de 50 é o lugar que o
   chip ocupava (36 + 6 + o vão de 8): o rótulo não anda e as duas linhas começam depois do chip */
.bt-row1.has-quit { position: relative; padding-left: 50px; }
.bt-row1.has-quit > .bs-btn.quit { position: absolute; left: 0; top: -2px; margin: 0; }
.bt-row1 .bs-btn.quit::after { inset: -4px min(-4px, calc((36px - var(--tap, 44px)) / 2)) min(-4px, calc(34px - var(--tap, 44px))) min(-4px, calc((36px - var(--tap, 44px)) / 2)); background: transparent; transform: none; }
/* menu de pausa (EXPLORE): RETOMAR em cima, as saídas numa fileira */
.rg-ov > .rg-sheet.mid.rg-pausemenu { width: min(100%, 520px); }
.rg-pausemenu p { margin: 6px 0 0; font-size: max(12px, calc(11px / var(--rg-k, 1))); color: var(--muted); max-width: 400px; }
.rg-pausemenu .rg-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rg-pausemenu .rg-btns .bs-btn { min-height: max(44px, var(--tap, 0px)); padding: 6px 8px; font-size: 15px; letter-spacing: 1px; white-space: normal; text-align: center; line-height: 1.05; }
.rg-pausemenu .rg-btns [data-m="resume"] { grid-row: 1; grid-column: 1 / -1; font-size: 22px; letter-spacing: 2px; }

/* ---- mapa: composição sem colisões (o palco agora escala nos dois sentidos; o que sobra é a referência 844×390) ----
   · o papel começa DEBAIXO do slab: o canto cortado do papel (--e-paper) e a diagonal do slab
     deixavam uma cunha de tinta preta entre os dois ("divisor preto" no celular) */
.rg-scene .bg.paper-r { left: 176px; }
body.rg-narrow .rg-scene .bg.paper-r { left: 150px; }
/*   · legenda em linha no alto à direita (embaixo dos botões), a equipe ganha a largura toda */
.rg-mapv .rg-legend { top: 66px; bottom: auto; right: 28px; max-width: 420px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 2px 10px; }
.rg-mapv .rg-legend .bs-label { font-size: 10px; letter-spacing: 2px; margin-right: 2px; }
.rg-mapv .rg-legend div { font-size: 10px; }
.rg-mapv .rg-legend p { flex-basis: 100%; }
.rg-mapv .rg-mapsvg { top: 100px; bottom: calc(112px - var(--bgain, 0px)); }
.rg-mapv .rg-partywrap { right: 28px; }
.rg-mapv.rg-party2 .rg-mapsvg { bottom: calc(172px - var(--bgain, 0px)); }
/*   · itens do slab: chips menores, 5 por linha, e o bloco de baixo nunca invade o título */
.rg-mapv .rg-slabbot { max-height: calc(100% - 218px); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.rg-mapv .rg-slabbot .rg-itemchips { gap: 6px 8px; margin-top: 6px; padding-bottom: 6px; }
.rg-mapv .rg-slabbot .rg-ichip { width: 30px; height: 30px; }
.rg-mapv .rg-slabbot .rg-ichip .rg-ic { width: 17px; height: 17px; }
.rg-mapv .rg-slabbot .rg-ichip b { font-size: 10px; right: -5px; bottom: -5px; }
.rg-mapv .rg-slabbot .rg-slabbtns { margin-top: 8px; }
.rg-mapv .rg-slabtxt p { max-height: 3.2em; overflow: hidden; }
/*   · onda 4: dica em até 2 linhas com reticências (o corte seco deixava "…Knoten, um" + um ponto solto) */
.rg-mapv .rg-slabtxt p { max-height: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
/*   · onda 4: a equipe começa no papel livre logo depois da diagonal do slab e os cards ficam 2 ref mais
       juntos — os 4 cabem numa linha no iPhone (o 4º quebrava por poucos px e a trilha encolhia pra 118 ref) */
.rg-mapv .rg-partywrap { left: 222px; }
.rg-mapv .rg-party { gap: 14px 8px; }   /* row-gap 14: o '∞21' do cartão de cima encostava no de baixo */

/* ---- theme-edge.js: durante a amostragem da cor da borda, slabs decorativos (pointer-events:none) contam ---- */
html.edge-sampling * { pointer-events: auto !important; }

/* ============ palco · onda 4 (trilha stage) ============ */
/* batalha · coluna SACOLA/AUTO: começa 8 ref depois da Gravura e não passa de 120 (no SE o AUTO entrava
   na barra branca; no palco limitado pela altura viravam lajes de 150 ref ao lado de células de 32 — e a
   SACOLA sozinha da Arena, uma laje branca de 128–151) */
.bt-sum { left: calc(30px + var(--cell) * 5 + 22px + 8px); max-width: 120px; }
.bt-actions .bs-btn { padding-inline: 4px; letter-spacing: .5px; }
/* PARTY não pula de lado quando a energia muda: a fileira tem a largura da barra de HP, PARTY encosta
   na direita e as pips encolhem quando a energia passa de 7 (eco, botas) em vez de cortar o PARTY */
.bt-me .bt-energy { width: min(310px, 100%); }
.bt-energy .bt-party { margin-left: auto; flex: none; }
.bt-energy .pip { flex: 0 1 12px; width: auto; min-width: 6px; }
/* fim de batalha: o HUD não fica "vivo" atrás do cartão (TURNO 1 · VEZ DO RIVAL, pips cheias, TEAM) */
.rg-bt.over .bt-row1 .tag, .rg-bt.over .bt-energy { visibility: hidden; }
/* CTAs dos modais da batalha com 44pt (só esses: os botões menores de propósito ficam como estão) */
body.rg-land :is(.rg-itemmodal .rg-btns, .rg-swap .rg-swbtns, .rg-btover .rg-btns) .bs-btn { min-height: max(44px, var(--tap, 0px)); }
/* vitória/derrota: as linhas de recompensa viram adesivos (mesma gramática do resultado do nó) */
.rg-btover .rg-rewards { display: flex; flex-direction: column; align-items: flex-start; gap: 8px 10px; padding: 4px 8px 6px 0; font-size: 18px; line-height: 1.1; }
.rg-btover .rg-rewards > div { background: #fff; border: 3px solid var(--ink); padding: 6px 12px; }
.rg-btover .rg-rewards > div:nth-child(odd) { transform: rotate(-1deg); }
.rg-btover .rg-rewards > div:nth-child(even) { transform: rotate(.8deg); }
.rg-btover .rg-rewards .rg-ic { width: .9em; height: .9em; vertical-align: -.1em; }
/* a lista usa a altura que a folha tem (antes um teto de 170px cortava o 4º adesivo ao meio e escondia o
   5º num palco de 412px, com a folha vazia à direita); com 4+ linhas (cards.js gvOverHTML .many) os
   adesivos vão lado a lado e quebram a linha */
.rg-ov > .rg-sheet.mid.rg-btover { display: flex; flex-direction: column; }
.rg-btover > :not(.rg-rewards) { flex: none; }
.rg-btover .rg-rewards { flex: 0 1 auto; min-height: 0; max-height: none; }
.rg-btover .rg-rewards.many { flex-flow: row wrap; align-content: flex-start; column-gap: 10px; }
/* equipe na batalha: HP legível (9px #777 dava 2,4–2,8:1 no cartão ativo) */
:is(.rg-partymodal, .rg-pumodal) .rg-pick .rg-unit-hpnum { font-size: max(10px, calc(10px / var(--rg-k, 1))); color: var(--ink); }
/* larguras dos modais: .rg-ov > .rg-sheet.mid (664) vencia as larguras próprias (confirmação, info,
   escolha de unidade, item, equipe) — a folha ficava meio vazia */
.rg-ov > .rg-sheet.mid:is(.rg-confirm, .rg-info, .rg-pumodal) { width: min(100%, 560px); }
.rg-ov > .rg-sheet.mid.rg-itemmodal { width: min(100%, 480px); }
.rg-ov > .rg-sheet.mid.rg-partymodal { width: fit-content; max-width: 100%; min-width: min(100%, 420px); }
.rg-ov > .rg-sheet.mid.rg-confirm.rg-pausemenu { width: min(100%, 520px); }
/* resultado do nó (tesouro, corda…): o adesivo no centro do papel, maior (era um adesivo pequeno no canto) */
.rg-simplev .rg-rewards { align-items: center; justify-content: center; font-size: 30px; gap: 14px; }
.rg-simplev .rg-rewards > div { padding: 12px 22px; text-align: center; }
.rg-simplev .rg-rewards > div .rg-ic { width: 1.5em; height: 1.5em; vertical-align: -.4em; }
/* confirmação: a consequência vai num parágrafo embaixo do título; sem ✕ (VOLTAR e o fundo já cancelam,
   o voltar do Android ainda aciona o ✕ escondido) */
.rg-confirm > .rg-x { display: none; }
.rg-confirm .rg-confirm-body { margin: 10px 0 0; max-width: 460px; font-size: max(13px, calc(12px / var(--rg-k, 1))); line-height: 1.4; color: var(--ink); }
/* ‹ HOME do canto com 44pt de largura também em coreano (‹ 홈 tinha 36pt) */
.rg-scene .bs-btn.rg-home { min-width: max(44px, var(--tap, 0px)); }
/* fileira de baixo do palco (SAIR, CONTINUAR, PRONTO…): ~40pt de altura em vez de 29–35 */
body.rg-land .rg-bottomrow .bs-btn { min-height: max(36px, calc(var(--tap, 0px) * .9)); }
/* batalha no palco alto (SE, iPad): a folga entre o cabeçalho (até o TEAM, ~176 ref) e a Gravura se
   divide em cima e embaixo — ficava toda entre os dois (130 px de faixa morta no iPad); no palco de
   390 a folga é 0 e nada muda */
.rg-bt { --gslack: max(0px, (var(--rg-h, 390px) - var(--gb, 28px) - var(--cell, 30px) * 5 - 22px - 176px) / 2); }
.rg-bt .bt-grid { bottom: calc(var(--gb, 28px) + var(--gslack)); }
.rg-bt .bt-sum { bottom: calc(var(--gb, 28px) + 2px + var(--gslack)); }
/* fileiras roláveis (quem lidera / espécies da Arena): o esmaecido é um degradê GRUDADO (sticky) na
   borda direita dentro do próprio scroller, da altura dos cards (a caixa abraça os cards) — não pinta
   mais uma faixa de tinta sem pontinhos até os botões — e some no fim da rolagem (.fade vem do scroll,
   pick.js edgeFade). Máscara no scroller não: o Chrome deixa de pré-carregar as artes lazy da borda.
   right: -6px = o padding direito do scroller (o sticky gruda na caixa de conteúdo) */
:is(.rg-pickv .rg-pick-grid, .ar-scene .ar-species) { bottom: auto; align-items: stretch; }
/* RC: o degradê saiu de dentro do scroller. O ::after sticky (margem negativa, flex item) num scroller
   horizontal sob o transform: scale(--rg-k) do palco caía ~W·(1−k) à esquerda no WebKit (no SE, por cima
   do 3º/4º card, e a borda de verdade sem esmaecido). Agora quem tem a posição na cena é o invólucro
   .rg-fadewrap (pick.js / arena/index.js); o scroller vira bloco relativo de largura cheia
   dentro dele, e o degradê é um ::after absoluto do invólucro, ligado pelo edgeFade (.fade no invólucro) */
.rg-fadewrap { position: relative; min-width: 0; }
.rg-fadewrap::after { content: ""; position: absolute; right: 0; top: 6px; bottom: 6px; width: 56px; background: linear-gradient(to right, transparent, var(--ink)); pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 2; }
.rg-fadewrap.fade::after { opacity: 1; }
.rg-pickv .rg-pickwrap { position: absolute; left: 280px; right: 26px; top: 62px; }
.ar-scene .ar-specwrap { position: absolute; left: 280px; right: 26px; top: 176px; }
:is(.rg-pickv .rg-pickwrap, .ar-scene .ar-specwrap) > :is(.rg-pick-grid, .ar-species) { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; }
/* (a Herança quebra em fileiras com a 2ª à vista — bond.css .rg-heir-grid —, sem rolagem lateral) */
/* a fileira de baixo ficou mais alta (~40pt): os serviços do mercador sobem junto (a fileira do portador
   da relíquia não: subir encostava nos cards das relíquias no palco de 390) */
body.rg-land .rg-shopv .rg-svcrow { bottom: calc(32px + max(36px, calc(var(--tap, 0px) * .9))); }
/* TEAM/PARTY: 29pt visíveis, 44pt de alvo pela margem invisível pra CIMA (embaixo é a Gravura, a ~4pt
   no palco de 390 — crescer o botão empurraria a grade). As pips já encolhem, a fileira não precisa
   mais recortar (o recorte cortava a margem) */
.bt-me .bt-energy { overflow: visible; }
.bt-energy .bt-party::after { inset: calc(var(--tap, 44px) * -.35) -4px 0 -4px; background: transparent; transform: none; clip-path: none; }
/* Entalhador: DESFAZER fica na altura antiga (a fileira mais alta encostava na lista "de quem" no palco de 390) */
body.rg-land .rg-tutorv .rg-bottomrow .bs-btn.line { min-height: 36px; }
body.rg-land .rg-tutorv .rg-bottomrow { align-items: flex-end; }

/* ============ UI do balanço do EXPLORE (out/2026) ============ */
/* ---- batalha · Auto: velocidade + "Jogar eu mesmo" no canto (no Auto, ENCERRAR/JOGAR PEÇA ficavam inertes) ---- */
.bt-end .bs-btn.spd { min-width: max(48px, calc(var(--tap, 0px) + 2px)); min-height: max(32px, calc(var(--tap, 0px) + 1px)); gap: 4px; padding: 4px 8px; font-size: 18px; letter-spacing: 0; }
.bt-end.auto .bs-btn { min-height: max(32px, calc(var(--tap, 0px) + 1px)); }
.bt-end .bs-btn.spd .rg-ic { width: 18px; height: 18px; }
.bt-end .bs-btn.play.me { gap: 7px; padding-inline: 14px; }
.bt-end .bs-btn.play.me .rg-ic { width: 13px; height: 13px; }
/* dica de pulo na vez automática (o toque vale no palco inteiro; o selo só avisa) */
.bt-skip { position: absolute; right: 0; bottom: calc(100% + 8px); white-space: nowrap; background: var(--ink); color: #fff; font-size: max(11px, calc(10.5px / var(--rg-k, 1))); letter-spacing: 2px; padding: 2px 8px; pointer-events: none; animation: rgSkip 1.8s ease-in-out infinite; }
@keyframes rgSkip { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
/* dica da 1ª expedição: escurece o palco e aponta para "Jogar eu mesmo" (que fica acima, tocável) */
.rg-coach { position: absolute; inset: 0; z-index: 6; }
.rg-coach > .bg.dim { background: rgba(17,17,17,.5); }  /* .bg: sangra até a borda física como os slabs */
.rg-bt.coach .bt-end { z-index: 7; }
.rg-coach-box { position: absolute; right: 30px; bottom: calc(var(--gb, 28px) + max(32px, var(--tap, 0px)) + 20px); width: min(380px, 54%); background: #fff; color: var(--ink); padding: 14px 16px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--c2); transform: rotate(-1deg); }
.rg-coach-box::after { content: ""; position: absolute; right: 70px; top: 100%; border: 11px solid transparent; border-top: 13px solid var(--ink); border-bottom: 0; }
.rg-coach-box .bs-label { color: var(--c3); font-size: 11px; letter-spacing: 3px; }
.rg-coach-box b { display: block; font-weight: 400; font-size: 28px; line-height: .95; margin-top: 3px; }
.rg-coach-box p { margin: 6px 0 0; font-size: max(12px, calc(11.5px / var(--rg-k, 1))); line-height: 1.35; color: var(--ink); }
.rg-coach-box .rg-btns { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rg-coach-box .rg-btns .bs-btn { min-height: max(40px, var(--tap, 0px)); padding: 6px 12px; font-size: 16px; letter-spacing: 1px; }
.rg-coach-box .rg-btns .bs-btn.line { color: var(--ink); border-color: var(--ink); }
/* ---- intenção honesta: KO anunciado e de onde vem o dano (peças + selo + Garra + Foco) ---- */
.bt-intent .rg-gv-ichip.lethal { border-color: #fff; animation: rgKo .8s ease-in-out infinite alternate; }
.bt-intent .rg-gv-ichip .ko { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 0 5px; background: #fff; color: var(--c3); font-style: normal; letter-spacing: 1px; font-size: 13px; }
.bt-intent .rg-gv-ichip .ko .rg-gv-ic { --ic-b: var(--c3); color: var(--ink); width: 12px; height: 12px; }
@keyframes rgKo { to { transform: rotate(-3deg) scale(1.06); } }
.bt-intent .bt-ipart { display: inline-flex; align-items: center; gap: 3px; margin: -3px 10px 0 0; background: var(--ink); color: #fff; border-right: 4px solid var(--c2); font-size: max(11px, calc(10.5px / var(--rg-k, 1))); letter-spacing: 1px; line-height: 1.25; padding: 1px 7px; white-space: nowrap; }
.bt-ipart b { font-weight: 400; color: var(--c2); }
.bt-ipart .rg-gv-ic { width: 11px; height: 11px; --ic-b: #fff; color: var(--ink); }
/* ---- quem o outro lado ainda tem (treinador, rival 2 → 3, guardião com lacaio, Elite) ---- */
.bt-roster { display: inline-flex; gap: 3px; margin-right: 6px; flex: none; }
.bt-roster i { width: 24px; height: 24px; display: grid; place-items: center; background: #fff; border: 2px solid #fff; }
.bt-roster i img, .bt-roster i svg { width: 100%; height: 100%; object-fit: contain; }
.bt-roster i.on { background: var(--c2); border-color: var(--ink); }
.bt-roster i.sil img, .bt-roster i.sil svg { filter: brightness(0); opacity: .5; }
.bt-roster i.down { background: transparent; border-color: rgba(255,255,255,.5); }
.bt-roster i.down img, .bt-roster i.down svg { filter: grayscale(1); opacity: .45; }
/* ---- "Evolui no Lv N": selo nos cards da equipe, na ficha e no draft ---- */
.rg-evo { display: inline-block; margin-left: 6px; padding: 0 5px; background: var(--c2); color: var(--ink); font: 400 11px/1.45 var(--display); letter-spacing: 1px; vertical-align: 2px; white-space: nowrap; }
.rg-pcard .rg-evo.corner { position: absolute; right: -2px; bottom: -9px;   /* -2 (era -6): com o '∞' do vizinho (left -2) sobra vão no gap de 8 */
  margin: 0; font-size: 10px; border: 2px solid var(--ink); }
.rg-ucard b .rg-evo { font-size: 10px; vertical-align: 3px; }
.rg-um-head .rg-evo { align-self: center; font-size: 13px; margin-left: 2px; }
.rg-draft-card .rg-evoline { margin-top: 6px; font-size: 12px; letter-spacing: 1px; color: var(--c3); }
.rg-draft-card.sel .rg-evoline { color: var(--c2); }
/* ---- mapa: Fôlego que resta e a Fogueira antes do guardião ---- */
.rg-slabtxt .rg-windchip { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; background: #fff; color: var(--ink); border: 2px solid var(--ink); padding: 0 6px 0 4px; font-size: 15px; line-height: 1.5; letter-spacing: 1px; vertical-align: top; }
.rg-windchip .rg-ic { width: 17px; height: 17px; }
/* a Fogueira é fogo de verdade: chama laranja (o descanso do mapa segue com o ícone verde) */
.rg-camp-fire .rg-ic, .rg-node-camp svg, .rg-campico .rg-ic { --ic-b: var(--c1); }
.rg-node-camp circle { fill: var(--c2); stroke: var(--ink); stroke-width: 2.5; }
/* ---- loja: a vaga fixa do Doce ocupa a linha toda e diz que nunca esgota ---- */
.rg-shopv .rg-shopitem.fixed { grid-column: 1 / -1; border-style: dashed; padding-block: 4px; min-height: calc(var(--tap, 44px) + 1px); }
.rg-shopv .rg-shopitem.fixed .ico { width: 36px; height: 36px; }
.rg-shopv .rg-shopitem.fixed .rg-price { font-size: 18px; padding-block: 2px; }
.rg-shopitem .ico.c2 { background: var(--c2); color: var(--ink); }
.rg-fixtag { display: inline-block; margin-left: 8px; vertical-align: 4px; background: var(--c2); color: var(--ink); font-size: 11px; letter-spacing: 1.5px; padding: 1px 6px; line-height: 1.3; }
/* ---- Fôlego: tinta, raios dourados, o carimbo e a equipe de pé (barras enchendo) ---- */
.rg-windv .rg-wind-rays { inset: -45%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,200,64,.15) 0 7deg, transparent 7deg 20deg); animation: rgWindSpin 30s linear infinite; }
@keyframes rgWindSpin { to { transform: rotate(360deg); } }
.rg-wind-head { position: absolute; left: 26px; top: 22px; width: min(500px, 60%); color: #fff; }
.rg-wind-head .bs-label { color: var(--muted-ink); }
.rg-wind-stamp { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; background: var(--c2); color: var(--ink); padding: 6px 20px 4px 14px; border: 4px solid #fff; box-shadow: 7px 7px 0 var(--c3); transform: rotate(-4deg); animation: rgStamp .55s cubic-bezier(.2,1.5,.4,1) both; }
.rg-wind-stamp b { font-weight: 400; font-size: 64px; line-height: .9; white-space: nowrap; }
.rg-wind-stamp .rg-ic { width: 44px; height: 44px; flex: none; }
@keyframes rgStamp { from { transform: rotate(-12deg) scale(2.2); opacity: 0; } to { transform: rotate(-4deg) scale(1); opacity: 1; } }
.rg-wind-head p { margin: 18px 0 0; max-width: 420px; font-size: max(12px, calc(12px / var(--rg-k, 1))); line-height: 1.4; color: #fff; }
.rg-wind-foe { position: absolute; right: 30px; top: 24px; width: 210px; text-align: center; }
.rg-wind-foe .art { width: 170px; height: 170px; margin: 0 auto; display: grid; place-items: center; filter: brightness(.5) saturate(.6) drop-shadow(0 6px 0 rgba(0,0,0,.5)); }
.rg-wind-foe .art img, .rg-wind-foe .art svg { width: 100%; height: 100%; object-fit: contain; transform: scaleX(-1); }
.rg-wind-foe .bs-label { color: #fff; font-size: 13px; letter-spacing: 3px; margin-top: 2px; }
.rg-wind-team .rg-ucard .bs-hp > i { animation: rgWindFill 1.1s .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rgWindFill { from { width: 0; } }
.rg-wind-btns { display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex: none; }
.rg-wind-btns .bs-btn { min-height: max(40px, calc(var(--tap, 0px) + 1px)); }
/* CTAs das telas novas (Fogueira, Fôlego, fuga): 44pt de verdade (o +1 cobre o arredondamento do palco) */
:is(.rg-campv, .rg-fledv) .rg-teamrow-l .rg-cta { min-height: max(40px, calc(var(--tap, 0px) + 1px)); }
.rg-wind-btns .bs-btn.line { color: var(--ink); border-color: var(--ink); font-size: 15px; }
/* ---- "Ele fugiu!": o selvagem sai correndo, a equipe segue ---- */
.rg-fledv .rg-fled-foe { position: absolute; right: 70px; top: 76px; width: 200px; height: 200px; }
.rg-fled-foe .art { width: 100%; height: 100%; display: grid; place-items: center; animation: rgFlee 1.3s .35s cubic-bezier(.55,0,.85,.35) both; }
.rg-fled-foe .art img, .rg-fled-foe .art svg { width: 100%; height: 100%; object-fit: contain; }
@keyframes rgFlee { 0% { transform: none; opacity: 1; } 18% { transform: translateX(-14px) rotate(-6deg); } 100% { transform: translateX(300px) rotate(10deg); opacity: 0; } }
.rg-fled-foe .puff { position: absolute; left: 22%; bottom: 6%; width: 46px; height: 46px; border-radius: 50%; background: #e6dfcf; border: 3px solid var(--ink); opacity: 0; animation: rgPuff .9s .55s ease-out both; }
.rg-fled-foe .puff.p2 { left: 42%; bottom: 0; width: 32px; height: 32px; animation-delay: .7s; }
@keyframes rgPuff { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5) translateY(-10px); } }
.rg-fled-line { position: absolute; left: 26px; top: 92px; max-width: min(470px, 56%); color: var(--ink); }
.rg-fled-line b { display: inline-block; font-weight: 400; font-size: 40px; line-height: .95; background: #fff; border: 3px solid var(--ink); padding: 8px 16px; transform: rotate(-1.5deg); }
.rg-fled-line p { margin: 16px 0 0; font-size: max(12px, calc(12px / var(--rg-k, 1))); line-height: 1.4; }
/* ---- Fogueira: o fogo, o guardião inteiro com a lição de tipos (ou os 3 guardiões da Elite) ---- */
.rg-campv .rg-camp-glow { left: 170px; top: 40px; width: 360px; height: 300px; background: radial-gradient(closest-side, rgba(255,140,40,.42), rgba(255,140,40,0)); }
.rg-camp-fire { position: absolute; left: 270px; top: 100px; width: 128px; height: 128px; filter: drop-shadow(0 0 16px rgba(255,170,60,.75)); transform-origin: 50% 90%; animation: rgFlicker 1.4s ease-in-out infinite alternate; }
.rg-camp-fire .rg-ic { width: 100%; height: 100%; }
@keyframes rgFlicker { from { transform: scale(1) rotate(-1deg); } to { transform: scale(1.05, 1.09) rotate(1.5deg); } }
.rg-camp-foe { position: absolute; right: 26px; top: 22px; display: flex; align-items: center; gap: 10px; color: #fff; }
.rg-camp-foe .art { width: 150px; height: 150px; flex: none; display: grid; place-items: center; filter: drop-shadow(0 6px 0 rgba(0,0,0,.5)); }
.rg-camp-foe .art img, .rg-camp-foe .art svg { width: 100%; height: 100%; object-fit: contain; transform: scaleX(-1); }
.rg-camp-foe .tx { order: -1; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; max-width: 220px; }
.rg-camp-foe .tx .bs-label { color: var(--muted-ink); font-size: 11px; letter-spacing: 3px; }
.rg-camp-foe .tx b { font-weight: 400; font-size: 44px; line-height: .9; }
.rg-camp-foe .tx .ty { color: var(--tc); font-size: 15px; letter-spacing: 2px; margin-bottom: 8px; }
.rg-camp-foe .rg-types { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.rg-camp-keepers { position: absolute; right: 26px; top: 26px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rg-camp-keeper { background: #fff; color: var(--ink); border-left: 8px solid var(--tc); padding: 4px 12px; font-size: 26px; line-height: 1; transform: rotate(-1deg); }
.rg-camp-keeper small { font-size: 13px; color: var(--muted); letter-spacing: 2px; }
.rg-camp-keeper em { font-style: normal; font-size: 13px; letter-spacing: 2px; color: var(--tc); }
.rg-campv .rg-ucard[data-unit] { cursor: pointer; }
/* ---- Elite do Selo: escada compacta, a equipe arrastável e a mochila no alto ---- */
.rg-elitev .rg-keepers { top: 130px; }
.rg-elitev .rg-keeper { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.rg-elitev .rg-keeper .por { margin: 0; width: 52px; height: 52px; flex: none; }
.rg-elitev .rg-keeper .por .rg-ic { width: 30px; height: 30px; }
.rg-elitev .rg-keeper b { font-size: 26px; margin-top: 2px; }
.rg-elitev .rg-keeper.lock .por { font-size: 28px; }
.rg-elitebag { position: absolute; right: 26px; top: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 340px; }
.rg-elitebag .rg-body { margin: 0; font-size: 11px; line-height: 1.35; color: #fff; text-align: right; }
.rg-elitev .rg-elitebag .rg-eliteitems { margin: 0; gap: 10px; }
.rg-elitev .rg-elitebag .rg-eliteitems .rg-ichip { width: max(36px, calc(var(--tap, 0px) + 1px)); height: max(36px, calc(var(--tap, 0px) + 1px)); }
.rg-elitev .rg-elitebag .rg-eliteitems .rg-ichip .rg-ic { width: 22px; height: 22px; }
.rg-elitev .rg-eliteparty { left: 26px; right: 270px; bottom: 20px; }
.rg-elitev .rg-eliteparty .rg-partylbl { color: var(--muted-ink); }
.rg-elitev .rg-bottomrow { left: auto; }
/* velocidade da batalha (1×/2×/3×, pulo): adesivos, faixa e anel seguem a camada (fx.js --fxs) */
@media (prefers-reduced-motion: no-preference) {
  #rgGvFx .rg-gv-float { animation-duration: calc(.9s / var(--fxs, 1)); }
  #rgGvFx .rg-gv-banner { animation-duration: calc(1.3s / var(--fxs, 1)); }
  #rgGvFx .rg-gv-ring { animation-duration: calc(.7s / var(--fxs, 1)); }
}
/* movimento reduzido: o momento fica parado (sem raios girando, carimbo, fuga, chama, KO pulsando) */
@media (prefers-reduced-motion: reduce) {
  .rg-wind-rays, .rg-wind-stamp, .rg-wind-team .rg-ucard .bs-hp > i, .rg-camp-fire, .bt-intent .rg-gv-ichip.lethal, .bt-skip { animation: none !important; }
  .rg-fled-foe .art { animation: none !important; opacity: .4; transform: translateX(40px) rotate(6deg); }
  .rg-fled-foe .puff { animation: none !important; opacity: 1; }
}
/* câmara do nó no cabeçalho: quando a fileira quebra, o selo vai pra direita (à esquerda caía sob a pausa) */
.bt-me .bt-row1 .rg-ch { margin-left: auto; }
/* telas de equipe com CTA ao lado (Fogueira, Fôlego, fuga): cards largos mais enxutos — 3 cabem com o CTA */
:is(.rg-campv, .rg-windv, .rg-fledv) .rg-ucard { padding: 6px 10px 6px 4px; gap: 6px; }
:is(.rg-campv, .rg-windv, .rg-fledv) .rg-ucard .art { width: 50px; height: 50px; }
:is(.rg-campv, .rg-windv, .rg-fledv) .rg-ucard b { font-size: 17px; }
:is(.rg-campv, .rg-windv, .rg-fledv) .rg-ucard .bs-hp { width: 100px; }
/* RC: o Descanso também (arte 64, nome 20 e barra 120: o 3º card — o que ia ser curado — sumia atrás do
   CTA) e, se ainda não couber, os cards ENCOLHEM com reticências no nome em vez de o 3º ser cortado pela
   borda do scroller (nome + HP do 3º sempre à vista) */
.rg-restv .rg-ucard { padding: 6px 10px 6px 4px; gap: 6px; }
.rg-restv .rg-ucard .art { width: 50px; height: 50px; }
.rg-restv .rg-ucard b { font-size: 17px; }
.rg-restv .rg-ucard .bs-hp { width: 100px; }
:is(.rg-restv, .rg-windv, .rg-fledv) .rg-teamrow-l .rg-ucard { flex: 0 1 auto; min-width: 0; }
:is(.rg-restv, .rg-windv, .rg-fledv) .rg-teamrow-l .rg-ucard > div { min-width: 0; }
:is(.rg-restv, .rg-windv, .rg-fledv) .rg-teamrow-l .rg-ucard > .art { flex: none; }
:is(.rg-restv, .rg-windv, .rg-fledv) .rg-teamrow-l .rg-ucard b { overflow: hidden; text-overflow: ellipsis; }
:is(.rg-restv, .rg-windv, .rg-fledv) .rg-teamrow-l .rg-ucard .bs-hp { width: min(100px, 100%); }
/* RC: cor de tipo como TEXTO sobre tinta/branco não passava contraste (Luta 3,5:1, Fantasma 2,5:1 na
   tinta; Gelo 1,7:1 no chip branco). Mesma gramática do papel (explore.css): texto neutro e a cor do
   tipo vira faixa/amostra */
.rg-camp-foe .rg-types i { color: #fff; border-color: var(--tc); box-shadow: inset 5px 0 0 var(--tc); padding-left: 11px; }
.rg-camp-foe .tx .ty { color: #fff; }
.rg-camp-foe .tx .ty::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; background: var(--tc); border: 2px solid #fff; vertical-align: -1px; }
.rg-camp-keeper em { color: var(--muted); }
/* RC: mapa — o texto do slab e o bloco de itens numa coluna só (map.js .rg-slabcol). O bloco de baixo
   supunha um cabeçalho de altura fixa: com "· Trilha curta"/"· Selo II" o rótulo quebrava, a dica
   também, e o ITENS pintava em cima das SINERGIAS. Agora o bloco ocupa só o que sobra embaixo do texto
   (se faltar, o que some é o alto do bloco — o rótulo —, nunca por cima do texto) */
.rg-mapv .rg-slabcol { position: absolute; left: 26px; top: 24px; bottom: 24px; width: 200px; display: flex; flex-direction: column; pointer-events: none; }
.rg-mapv .rg-slabcol > * { pointer-events: auto; }
.rg-mapv .rg-slabcol > .rg-slabtxt { position: static; flex: none; }
.rg-mapv .rg-slabcol > .rg-slabbot { position: static; flex: 1 1 auto; min-height: 0; max-height: none; }
/* alvos do mapa: hexágono aberto com um círculo de toque transparente (map.js R+14, stage.css .rg-node-hit:
   76 de diâmetro no vão de 80 entre nós do mesmo andar, sem encostar no vizinho); chips de item com
   margem invisível (metade do vão); chips de sinergia mais altos */
.rg-mapv .rg-slabbot .rg-ichip::after { content: ""; position: absolute; inset: -3px -4px; }
.rg-trait { position: relative; }
.rg-trait::after { content: ""; position: absolute; inset: -2px; }
.rg-mapv .rg-slabbot .rg-itemchips { margin-top: 4px; padding-bottom: 5px; }
.rg-mapv .rg-slabbot .rg-slabbtns { margin-top: 6px; }
/* o rótulo ITENS e o Pó numa linha só (a linha a mais era o que faltava no Android pequeno com o
   rótulo "· Trilha curta" quebrando) e o slab do mapa com 250 (a diagonal passava pelo 5º chip da
   fileira: o ×1 dele caía no papel) */
.rg-mapv .rg-slabbot { flex-flow: row wrap; align-content: flex-end; align-items: baseline; justify-content: flex-start; column-gap: 8px; }
.rg-mapv .rg-slabbot > :not(.bs-label):not(.rg-items) { flex: 0 0 100%; }
.rg-mapv .rg-slabbot > .rg-items { margin-top: 0; }
/* 4+ na equipe: a fileira quebra em duas (3 por linha, como cabem ao lado do CTA) em vez de rolar
   escondida embaixo dos botões — o 4º cartão (às vezes o do Laço) ficava sob TENTAR DE NOVO */
:is(.rg-campv, .rg-windv, .rg-fledv) .rg-teamrow-l .cards.many { flex-wrap: wrap; align-content: flex-end; overflow: visible; row-gap: 8px; }
:is(.rg-campv, .rg-windv, .rg-fledv) .cards.many .rg-ucard { padding-block: 3px; }
:is(.rg-campv, .rg-windv, .rg-fledv) .cards.many .rg-ucard .art { width: 42px; height: 42px; }
