/* Estilo "Casual 3D brilhante": céu claro, painéis creme de contorno grosso, botões gordinhos e brilhantes. */
:root {
  --ink: #2b1a4f; --ink2: #5a4a86;
  --cream: #fff8ea; --cream2: #ffeccc; --line: #2b1a4f;
  --gold: #ffc93a; --gold-d: #d98a00; --vio: #9b6bff; --vio-d: #5b2bb5;
  --green: #45d46a; --green-d: #1f9a43; --red: #ff5a6e; --red-d: #c42a45; --blue: #3fa9ff; --blue-d: #1a6ed1;
  --board: #24306e;
  --r: 18px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; color: var(--ink); font-family: 'Fredoka', system-ui, sans-serif; overscroll-behavior: none; }
body { background: #8fd3ff linear-gradient(180deg, #7cc8ff 0%, #bfe6ff 45%, #ffe2b8 100%) fixed; }
body.menu-bg { background: #8fd3ff url(art/casual/menu.jpg) center top / cover fixed; }
#app { max-width: 480px; margin: 0 auto; min-height: 100%; padding: max(12px, env(safe-area-inset-top)) 16px 16px; display: flex; flex-direction: column; }

/* Tipografia de jogo: branco com contorno escuro */
h1, h2, .display { font-family: 'Lilita One', 'Fredoka', sans-serif; font-weight: 400; margin: 0; letter-spacing: .02em; color: #fff;
  -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.mut { color: var(--ink2); font-size: 14px; }
.warn { color: var(--red-d); font-weight: 600; font-size: 14px; margin: 10px 0 0; background: #fff0f2; border: 3px solid var(--red-d); border-radius: 14px; padding: 8px 10px; }
label.lb { display: block; font-family: 'Lilita One'; font-size: 16px; color: var(--ink); margin-top: 6px; }

/* Botões gordinhos */
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
.btn { position: relative; font-family: 'Lilita One'; font-size: 20px; color: #fff; padding: 14px 18px; border-radius: 20px;
  background: linear-gradient(180deg, #b892ff 0%, var(--vio) 45%, var(--vio-d) 100%);
  border: 4px solid var(--line); box-shadow: inset 0 4px 0 #ffffff66, inset 0 -5px 0 #00000033, 0 5px 0 var(--line);
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; transition: transform .08s; }
.btn::after { content: ''; position: absolute; left: 12px; right: 12px; top: 5px; height: 30%; border-radius: 12px; background: #ffffff40; pointer-events: none; }
.btn:active { transform: translateY(4px); box-shadow: inset 0 4px 0 #ffffff66, 0 1px 0 var(--line); }
.btn.gold { background: linear-gradient(180deg, #ffe680 0%, var(--gold) 45%, var(--gold-d) 100%); }
.btn.green { background: linear-gradient(180deg, #8ff0a4 0%, var(--green) 45%, var(--green-d) 100%); }
.btn.ghost { background: linear-gradient(180deg, #8cd0ff 0%, var(--blue) 45%, var(--blue-d) 100%); }
.btn:disabled { filter: grayscale(.7) brightness(.9); cursor: default; }

/* Painel creme */
.hero-card, .slot, .item, .reward, .modal .box, .seg button, .bar-box {
  background: linear-gradient(180deg, #fffdf6, var(--cream2)); border: 4px solid var(--line); border-radius: var(--r); box-shadow: 0 5px 0 var(--line); }

/* Menu */
.logo { text-align: center; margin: 4px 0 0; }
.logo img { width: min(340px, 90%); display: block; margin: 0 auto -6px; filter: drop-shadow(0 6px 0 #0003); }
.logo img + h1 { display: none; }
.logo h1 { font-size: 52px; }
.logo p { margin: 4px 0 0; font-family: 'Lilita One'; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; font-size: 17px; }
.hero-card { display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: center; padding: 8px 12px; margin: 12px 0; }
.hero-card .figure { width: 130px; height: 160px; }
.hero-card h2 { font-size: 30px; }
.xpbar { height: 14px; background: #d9cdb6; border: 3px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 6px; }
.xpbar i { display: block; height: 100%; background: linear-gradient(180deg, #d4bbff, var(--vio)); }
.modes { display: grid; gap: 12px; }
.mode { text-align: left; display: flex; flex-direction: column; gap: 2px; }
.mode small { font-family: 'Fredoka'; font-weight: 600; font-size: 13px; -webkit-text-stroke: 0; text-shadow: 0 1px 0 #0005; opacity: .95; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
#app a { color: var(--vio-d); font-weight: 700; }

/* Personagens */
.figure { position: relative; width: 160px; height: 210px; display: flex; align-items: flex-end; justify-content: center; }
.figure::before { content: ''; position: absolute; left: 10%; right: 10%; bottom: 4%; height: 70%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--aura, transparent), transparent); opacity: .55; filter: blur(6px); }
.figure .art { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 8px 6px #0004); user-select: none; }

/* Criação */
.preview { display: flex; justify-content: center; padding: 6px 0; }
.preview .figure { width: 230px; height: 290px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 4px; }
.seg button { padding: 10px 12px; text-align: left; }
.seg button b { font-family: 'Lilita One'; font-size: 20px; font-weight: 400; }
.seg button.on { background: linear-gradient(180deg, #fff6c2, var(--gold)); }
.pick { display: flex; gap: 12px; margin: 8px 0 14px; flex-wrap: wrap; }
.pick button { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); box-shadow: inset 0 4px 0 #fff6, 0 3px 0 var(--line); }
.pick button.on { outline: 4px solid #fff; outline-offset: 2px; }
input[type=text] { width: 100%; padding: 12px 14px; border-radius: 16px; border: 4px solid var(--line); background: #fff; color: var(--ink); font: 600 18px 'Fredoka'; margin: 6px 0 10px; }

/* Arsenal */
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.slot, .item { padding: 10px 12px; text-align: left; }
.slot b, .item b { display: block; font-size: 15px; }
.dur { height: 10px; background: #d9cdb6; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 6px; }
.dur i { display: block; height: 100%; background: var(--blue); }
.broken { background: linear-gradient(180deg, #fff1f1, #ffc9cf); }
.broken b::after { content: ' · QUEBRADO'; color: var(--red-d); font-size: 12px; }
.inv { display: grid; gap: 10px; margin-bottom: 16px; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.item .acts { display: flex; gap: 6px; }
.item .acts button { padding: 8px 10px; border-radius: 12px; background: var(--gold); border: 3px solid var(--line); font-weight: 700; font-size: 13px; box-shadow: 0 3px 0 var(--line); }

/* Batalha */
.battle { flex: 1; display: flex; flex-direction: column; gap: 8px; margin: 0 -8px; }
.top { display: flex; justify-content: space-between; align-items: center; }
.top h1, .top .display { font-size: 30px; }
.top .btn { padding: 6px 14px; font-size: 16px; border-radius: 14px; }
.arena { position: relative; height: clamp(170px, calc(100dvh - 100vw - 170px), 300px); border-radius: 24px; overflow: hidden; border: 4px solid var(--line); box-shadow: 0 6px 0 var(--line);
  background: #9fd8ff url(art/casual/arena.jpg) center 60% / cover; }
.fighter { position: absolute; bottom: 4px; width: 50%; display: flex; flex-direction: column; align-items: center; }
.fighter.hero { left: 0; } .fighter.foe { right: 0; }
.fighter .figure { width: 160px; height: 200px; }
.bars { position: absolute; top: 8px; left: 8px; right: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; z-index: 2; }
.bar-box { padding: 4px 8px 6px; border-width: 3px; box-shadow: 0 3px 0 var(--line); border-radius: 14px; }
.bar-box .nm { font-family: 'Lilita One'; font-size: 14px; display: flex; justify-content: space-between; gap: 4px; }
.bar-box .hpn { font-family: 'Fredoka'; font-weight: 700; font-size: 12px; }
.bar { height: 14px; background: #3a2d5c; border: 2px solid var(--line); border-radius: 9px; overflow: hidden; margin-top: 3px; }
.bar i { display: block; height: 100%; transition: width .35s; border-radius: 6px; box-shadow: inset 0 3px 0 #ffffff66; }
.bar.hp i { background: linear-gradient(180deg, #8ff0a4, var(--green)); }
.bar.hp.low i { background: linear-gradient(180deg, #ffa3ae, var(--red)); }
.bar.sp { height: 9px; } .bar.sp i { background: linear-gradient(180deg, #fff0a0, var(--gold)); }
.shield-tag { font-size: 11px; font-weight: 700; color: var(--blue-d); }
.vs { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; z-index: 3;
  font-family: 'Lilita One'; font-size: 20px; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
  background: url(art/casual/vs.png) center / contain no-repeat; color: transparent; -webkit-text-stroke: 0; width: 58px; height: 62px; top: 2px; }
.mini { position: absolute; right: 10px; top: 76px; display: grid; grid-template-columns: repeat(7, 7px); gap: 1px; padding: 5px; background: #fffdf6e6; border: 3px solid var(--line); border-radius: 10px; z-index: 2; }
.mini i { width: 7px; height: 7px; border-radius: 2px; }
.float { position: absolute; font-family: 'Lilita One'; font-size: 38px; pointer-events: none; z-index: 5; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.skills button { display: flex; flex-direction: row; align-items: center; gap: 8px; text-align: left; padding: 5px 8px; border-radius: 18px; font-family: 'Lilita One'; font-size: 13px; color: var(--ink);
  background: linear-gradient(180deg, #fffdf6, var(--cream2)); border: 4px solid var(--line); box-shadow: 0 4px 0 var(--line); line-height: 1.1; }
.skills button small { display: block; font-family: 'Fredoka'; font-weight: 600; font-size: 11px; color: var(--ink2); }
.skills button.ready { background: linear-gradient(180deg, #fff6c2, var(--gold)); animation: ready 1.2s ease-in-out infinite; }
@keyframes ready { 50% { transform: translateY(-3px); } }
.ring { --p: 0; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: 'Fredoka'; font-weight: 700; font-size: 12px; color: #fff;
  border: 3px solid var(--line); background: radial-gradient(closest-side, var(--vio-d) 72%, transparent 74% 100%), conic-gradient(var(--gold) calc(var(--p) * 1%), #3a2d5c 0); }
.skills button.ready .ring { background: radial-gradient(circle at 35% 30%, #d9c2ff, var(--vio) 60%, var(--vio-d)); font-size: 20px; }
.turn { text-align: center; font-family: 'Lilita One'; font-size: 17px; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; min-height: 22px; }

/* Moldura do Flow em 9 fatias: borda fina e decorada, o miolo fica todo para as peças.
   Largura: a tela inteira menos 8 px de cada lado, mas encolhe em celular baixo para a batalha caber sem rolar. */
.board { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 6), 1fr); grid-template-rows: repeat(var(--rows, 7), 1fr); gap: 1px; padding: 2px; touch-action: none; flex: none;
  width: var(--bw); height: calc((var(--bw) - 36px) * var(--rows, 7) / var(--cols, 6) + 36px); align-self: center;
  border: 16px solid transparent; border-image: url(art/casual/tabuleiro.png) 96 / 16px stretch;
  background: #1b2457 padding-box; border-radius: 30px; filter: drop-shadow(0 5px 0 #2b1a4f88); overflow: hidden; }
.board.locked { filter: saturate(.8) brightness(.92); }
.cell { position: relative; border-radius: 8px; background: #26326e; }
.cell:nth-child(even) { background: #1f2a60; }
.gem { position: absolute; inset: 1%; will-change: transform; }
.gem-img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 1px #0006); user-select: none; pointer-events: none; }
.gem.sel { filter: brightness(1.25) drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px var(--gold)); }

/* Fim de luta */
.modal { position: fixed; inset: 0; background: #2b1a4f99; display: grid; place-items: center; z-index: 20; padding: 16px; }
.modal .box { padding: 22px 18px 18px; width: min(420px, 100%); text-align: center; }
.modal h2 { font-size: 54px; }
.reward { padding: 10px 12px; margin: 10px 0; text-align: left; box-shadow: 0 3px 0 var(--line); border-width: 3px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--cream); color: var(--ink); border: 4px solid var(--line); box-shadow: 0 4px 0 var(--line);
  padding: 10px 16px; border-radius: 16px; font-weight: 700; font-size: 15px; opacity: 0; pointer-events: none; z-index: 30; max-width: 90vw; text-align: center; }

/* A magia da Mel vem cortada reta na borda da imagem: some suave */
.figure[data-id=lyra] .art { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 14%); mask-image: linear-gradient(to left, transparent 0, #000 14%); }

/* Batalha sem rolagem: ocupa exatamente a tela. O tabuleiro (6x7) pega o máximo de largura que a altura permite
   deixando pelo menos 130 px de arena; a arena fica com o que sobrar. */
body.in-battle #app { padding: 0; height: 100dvh; overflow: hidden; }
.battle { height: 100%; margin: 0; gap: 6px; padding: max(6px, env(safe-area-inset-top)) 4px max(6px, env(safe-area-inset-bottom));
  --bw: min(calc(100vw - 8px), calc((100dvh - 290px) * var(--cols, 6) / var(--rows, 7) + 36px), 476px); }
.arena { flex: 1; min-height: 120px; height: auto; border-radius: 20px; }
.fighter { top: 52px; bottom: 0; }
.fighter .figure { width: 100%; height: 100%; }
.flee { position: absolute; right: 8px; bottom: 8px; z-index: 4; padding: 4px 12px; font-size: 14px; border-radius: 12px; border-width: 3px; box-shadow: inset 0 3px 0 #ffffff66, 0 3px 0 var(--line); }
.flee::after { display: none; }
/* Faixa dourada que divide a arena do tabuleiro: turno à esquerda, poderes à direita */
.hud { flex: none; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 4px 8px; margin: 0 -4px;
  background: linear-gradient(180deg, #fff3b8, var(--gold) 55%, var(--gold-d)); border-block: 4px solid var(--line); box-shadow: 0 4px 0 #2b1a4f55; }
.hud .turn { flex: 1; text-align: left; font-size: 15px; line-height: 1.15; min-height: 0; }
.skills { display: flex; gap: 6px; }
.skills button { flex-direction: column; gap: 1px; width: 62px; padding: 3px 2px 4px; border-radius: 14px; border-width: 3px; box-shadow: 0 3px 0 var(--line); font-size: 10px; text-align: center; line-height: 1.05; }
.skills button span { display: block; max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skills .ring { width: 36px; height: 36px; font-size: 11px; }

/* Efeitos */
.banner { position: fixed; left: 0; right: 0; text-align: center; pointer-events: none; z-index: 16; font-family: 'Lilita One'; font-size: 52px;
  -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink), 0 0 30px #fff8; }
.orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 16;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--c) 45%, transparent 72%); box-shadow: 0 0 18px 6px var(--c); }

.som { position: absolute; z-index: 4; width: 38px; height: 38px; border-radius: 50%; font-size: 17px; line-height: 1;
  background: linear-gradient(180deg, #fffdf6, var(--cream2)); border: 3px solid var(--line); box-shadow: 0 3px 0 var(--line); }
#app > .som { position: fixed; top: max(10px, env(safe-area-inset-top)); right: max(10px, calc(50vw - 230px)); }
.arena .som { left: 8px; bottom: 8px; }

/* Menu sem rolagem: tudo se ajusta à altura da tela */
body.menu-bg #app { height: 100dvh; overflow: hidden; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.logo img { width: min(300px, 80%, 34dvh); }
.logo p { font-size: 15px; }
.hero-card { grid-template-columns: clamp(80px, 13dvh, 120px) 1fr; padding: 4px 12px; margin: 8px 0; }
.hero-card .figure { width: clamp(80px, 13dvh, 120px); height: clamp(96px, 16dvh, 150px); }
.hero-card h2 { font-size: 26px; }
.modes { gap: 8px; }
.mode { padding: 8px 16px; font-size: 18px; }
.mode small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.row2 { gap: 10px; margin-top: 8px; }
.row2 .btn, [data-go=convidar] { padding: 9px 14px; font-size: 18px; }
.modes { grid-template-columns: minmax(0, 1fr); }
.mode { min-width: 0; }

/* ===== Batalha viva (v0.7) ===== */
/* O turno vai para dentro da arena; a faixa dourada fica só com os poderes. */
.arena .turn { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 4; white-space: nowrap; font-size: 16px; }
.hud { justify-content: center; min-height: 60px; }
.skills { gap: 5px; }
.skills button { width: 54px; padding: 3px 1px 3px; }
.skills button span { font-size: 8.5px; max-width: 52px; }
.skills .ring { width: 38px; height: 38px; font-size: 19px; }
.skills button:disabled .ring { filter: grayscale(.4); }
/* Arena: cenário passeia devagar, personagens maiores com sombra no chão */
.arena { background-size: auto 118%; animation: pan 36s ease-in-out infinite alternate; }
@keyframes pan { from { background-position: 30% 62%; } to { background-position: 70% 62%; } }
.fighter { top: 40px; }
.bars { z-index: 3; }
.fighter::after { content: ''; position: absolute; bottom: 3px; left: 22%; right: 22%; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, #0006, transparent); z-index: -1; }
.figure { transform-origin: 50% 100%; }
/* Status visíveis no personagem e na barra */
.bar-box .st { display: flex; gap: 3px; font-size: 13px; line-height: 1; }
.bar-box .st b { font-weight: 400; }
.bar-box .st small { font: 700 9px 'Fredoka'; color: var(--ink); vertical-align: top; }
.fighter.st-atordoado::before { content: '💫'; position: absolute; top: 14%; left: 50%; font-size: 28px; z-index: 3; animation: dizzy 1.1s linear infinite; }
@keyframes dizzy { from { transform: translateX(-50%) rotate(0); } to { transform: translateX(-50%) rotate(360deg); } }
.st-queimadura .art { filter: drop-shadow(0 0 10px #ff6a00) drop-shadow(0 8px 6px #0004); }
.st-veneno .art { filter: drop-shadow(0 0 10px #7be35a) hue-rotate(-12deg) drop-shadow(0 8px 6px #0004); }
.st-forca .art { filter: drop-shadow(0 0 12px #ff3a3a) drop-shadow(0 8px 6px #0004); }
.st-regeneracao .art { filter: drop-shadow(0 0 12px #45d46a) drop-shadow(0 8px 6px #0004); }
.st-fraqueza .art { filter: saturate(.6) brightness(.9) drop-shadow(0 8px 6px #0004); }
/* Tabuleiro: brilho que passa nas gemas */
.gem::after { content: ''; position: absolute; inset: 10%; border-radius: 30%; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 35%, #ffffffcc 50%, transparent 65%) 150% 0 / 250% 100% no-repeat; }
.gem.glint::after { animation: glint .8s ease-out; }
@keyframes glint { 0% { opacity: 1; background-position: 150% 0; } 100% { opacity: 1; background-position: -60% 0; } }
/* Gemas especiais */
.gsp { position: absolute; inset: 0; pointer-events: none; border-radius: 30%; }
.gsp.k1 { background: linear-gradient(180deg, transparent 38%, #fff 47% 53%, transparent 62%); filter: drop-shadow(0 0 4px #fff); animation: pulse 1s ease-in-out infinite; }
.gsp.k2 { background: linear-gradient(90deg, transparent 38%, #fff 47% 53%, transparent 62%); filter: drop-shadow(0 0 4px #fff); animation: pulse 1s ease-in-out infinite; }
.gsp.k3 { inset: -4%; border-radius: 50%; box-shadow: 0 0 0 3px #ff8a3a, 0 0 16px 5px #ffb066; animation: bomb .7s ease-in-out infinite alternate; }
@keyframes bomb { to { transform: scale(1.08); box-shadow: 0 0 0 4px #ffcf3a, 0 0 22px 8px #ff8a3a; } }
@keyframes pulse { 50% { opacity: .45; } }
.prisma { position: absolute; inset: 7%; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center;
  background: conic-gradient(#ff5a6e, #ffc93a, #45d46a, #3fa9ff, #b26bff, #ff5a6e); box-shadow: 0 0 14px 4px #fff8; animation: spin 2.4s linear infinite; }
.prisma span { color: #fff; font-size: 24px; text-shadow: 0 0 6px #fff; animation: spin 2.4s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.beam { position: fixed; z-index: 16; pointer-events: none; border-radius: 10px; background: #fff; box-shadow: 0 0 14px 6px var(--c), 0 0 30px 12px var(--c); }
/* Menu em movimento */
.logo img { animation: float 3.2s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1deg); } }
.hero-card .figure .art { animation: bob 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 50% { transform: translateY(-5px) scale(1.02, .985); } }
.modes .btn.gold { animation: nudge 2.6s ease-in-out infinite; }
@keyframes nudge { 0%, 80%, 100% { transform: scale(1); } 88% { transform: scale(1.04); } }
.arena .turn { max-width: calc(100% - 190px); overflow: hidden; text-overflow: ellipsis; font-size: 15px; bottom: 12px; }
.bars { top: 10px; }
/* Especiais bem visíveis: halo dourado pulsando + risca grossa com setas na direção do raio */
.gem:has(.gsp) { filter: drop-shadow(0 0 6px #ffe14a) drop-shadow(0 0 2px #fff); }
.gsp.k1 { background: linear-gradient(180deg, transparent 36%, #fff 44% 56%, transparent 64%); }
.gsp.k2 { background: linear-gradient(90deg, transparent 36%, #fff 44% 56%, transparent 64%); }
.gsp.k1::before, .gsp.k1::after, .gsp.k2::before, .gsp.k2::after { position: absolute; color: #fff; font: 900 14px/1 'Fredoka'; text-shadow: 0 0 3px #000, 0 0 8px #fff; }
.gsp.k1::before { content: '◀'; left: 0; top: 50%; transform: translateY(-50%); }
.gsp.k1::after { content: '▶'; right: 0; top: 50%; transform: translateY(-50%); }
.gsp.k2::before { content: '▲'; top: 0; left: 50%; transform: translateX(-50%); }
.gsp.k2::after { content: '▼'; bottom: 0; left: 50%; transform: translateX(-50%); }
.gsp.k3::before { content: '💣'; position: absolute; right: -4%; top: -6%; font-size: 15px; filter: drop-shadow(0 1px 1px #000); }

/* ===== v0.8: contorno no estilo do logo, rostos na luta, meio-corpo, final de luta ===== */
/* Logo GEMBLADE VS: letras douradas com contorno roxo. Textos, bordas e sombras seguem isso. */
:root { --line: #4a1f8f; --ink: #4a1f8f; --ink2: #6b4fa8; --deep: #2b0f5c; }
h1, h2, .display { color: #ffd23f; -webkit-text-stroke: 6px var(--line); text-shadow: 0 4px 0 var(--deep); }
.logo p, .turn, .float, .banner { -webkit-text-stroke-color: var(--line); }
.hero-card, .slot, .item, .reward, .modal .box, .seg button, .bar-box, .skills button, #toast {
  box-shadow: inset 0 0 0 2px #ffe08a, 0 5px 0 var(--line); }
.btn { box-shadow: inset 0 4px 0 #ffffff66, inset 0 -5px 0 #00000033, inset 0 0 0 2px #ffe08a88, 0 5px 0 var(--deep); }
.arena, .hud { border-color: var(--line); }
.hud { background: linear-gradient(180deg, #fff3b8, var(--gold) 55%, var(--gold-d)); box-shadow: inset 0 2px 0 #fff8, 0 4px 0 #4a1f8f66; }

/* Meio-corpo simpático */
.figure.bust { overflow: hidden; border-radius: 0 0 50% 50% / 0 0 12% 12%; }
.figure.bust .art { object-position: 50% 0; }
.figure.bust .art.crop { height: 190%; object-fit: cover; object-position: 50% 0; }
.hero-card .figure.bust { height: clamp(110px, 18dvh, 170px); width: clamp(100px, 16dvh, 150px); }
.preview .figure.bust { width: 240px; height: 260px; }

/* Luta só com rostos, em medalhões dourados e roxos */
.duel { position: absolute; inset: 10px 8px 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; z-index: 2; }
.side { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.side .bar-box { width: 100%; }
.figure.face { height: clamp(56px, calc(100% - 92px), 150px); width: auto; aspect-ratio: 1; border-radius: 50%; overflow: hidden; flex: none;
  border: 5px solid #ffc93a; box-shadow: 0 0 0 4px var(--line), 0 7px 0 4px var(--deep), 0 0 26px 4px var(--aura, #fff8);
  background: radial-gradient(circle at 50% 35%, #fff6d8, #ffd27a 60%, #e9a640); }
.side.foe .figure.face { background: radial-gradient(circle at 50% 35%, #ffe3ea, #ff9fb0 60%, #d95a74); }
.figure.face::before { display: none; }
.figure.face .art { width: 100%; height: 100%; object-fit: cover; filter: none; }
.duel .vs { position: static; transform: none; align-self: center; margin-top: -40px; width: 64px; height: 68px; }
.side.st-atordoado::before { content: '💫'; position: absolute; top: 2%; left: 50%; font-size: 28px; z-index: 3; animation: dizzy 1.1s linear infinite; }
.side.st-queimadura .figure.face { box-shadow: 0 0 0 4px var(--line), 0 7px 0 4px var(--deep), 0 0 26px 8px #ff6a00; }
.side.st-veneno .figure.face { box-shadow: 0 0 0 4px var(--line), 0 7px 0 4px var(--deep), 0 0 26px 8px #7be35a; }
.side.st-forca .figure.face { box-shadow: 0 0 0 4px var(--line), 0 7px 0 4px var(--deep), 0 0 26px 8px #ff3a3a; }
.side.st-regeneracao .figure.face { box-shadow: 0 0 0 4px var(--line), 0 7px 0 4px var(--deep), 0 0 26px 8px #45d46a; }
.side.st-fraqueza .figure.face .art { filter: saturate(.5) brightness(.9); }

/* Final da luta */
.ending { position: fixed; inset: 0; z-index: 18; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, #fff6c288, #4a1f8fcc 55%, #2b0f5cee); }
.ending::before { content: ''; position: absolute; inset: -50%; background: repeating-conic-gradient(#ffffff1a 0 10deg, transparent 10deg 20deg); animation: spin 18s linear infinite; }
.ending .stage { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 16px; }
.ending .figure { width: min(300px, 80vw); height: min(380px, 55dvh); }
.ending .figure.down { height: min(300px, 42dvh); }
.ending h2 { font-size: 40px; }
.figure.down .art.fallen { transform: rotate(-78deg) translate(-18%, 8%); filter: grayscale(.55) brightness(.9) drop-shadow(0 8px 6px #0006); }
.figure.down::after { content: '💫'; position: absolute; left: 50%; top: 18%; font-size: 40px; animation: dizzy 1.2s linear infinite; }
/* meio-corpo provisório: mostra a metade de cima da ilustração inteira */
.figure.bust { align-items: flex-start; }
.figure.bust .art.crop { position: absolute; top: 0; left: 0; width: 100%; height: 185%; object-fit: cover; object-position: 50% 0; }

/* ===== v0.9: caminho, fases, mascotes, loja ===== */
.purse { font: 700 15px 'Fredoka'; color: var(--ink); }
.purse.big { font-size: 22px; margin: 6px 0 12px; }
.btn.play { display: flex; flex-direction: column; align-items: center; font-size: 30px; padding: 10px 16px; margin-bottom: 4px; }
.btn.play small, .row2 .mode small { font: 600 12px 'Fredoka'; -webkit-text-stroke: 0; text-shadow: 0 1px 0 #0005; }
.row2 .mode { display: flex; flex-direction: column; align-items: center; padding: 8px 10px; font-size: 18px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.row3 .btn { padding: 9px 6px; font-size: 16px; }
.emoji-art { display: grid; place-items: center; width: 100%; height: 100%; font-size: min(18vw, 90px); line-height: 1; }
.figure.face .emoji-art { font-size: 2.6em; }
.pet-img { display: inline-grid; place-items: center; width: 34px; height: 34px; vertical-align: middle; margin-right: 6px; }
.pet-img img { width: 100%; height: 100%; object-fit: contain; }
.pet-img .emoji-art { font-size: 26px; }

/* Mapa */
.mapa { height: calc(100dvh - max(12px, env(safe-area-inset-top)) - 16px); display: flex; flex-direction: column; gap: 8px; }
.map-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.map-top .btn { padding: 4px 14px; font-size: 22px; }
.wnav { display: flex; align-items: center; gap: 6px; font-family: 'Lilita One'; font-size: 18px; color: #fff; -webkit-text-stroke: 4px var(--line); paint-order: stroke fill; }
.wnav button { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); border: 3px solid var(--line); font: 900 18px 'Fredoka'; color: var(--line); }
.wnav button:disabled { opacity: .35; }
.map-area { position: relative; flex: 1; border-radius: 26px; overflow: hidden; border: 4px solid var(--line); box-shadow: inset 0 0 0 3px #ffe08a, 0 6px 0 var(--deep);
  background: linear-gradient(180deg, color-mix(in srgb, var(--wc) 35%, #bfe6ff), color-mix(in srgb, var(--wc) 60%, #fff3c8)) center / cover; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; }
.trail polyline { fill: none; stroke: #fff8e0; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 18; vector-effect: non-scaling-stroke; filter: drop-shadow(0 3px 0 #4a1f8f88); }
.node { position: absolute; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  font: 400 24px 'Lilita One'; color: #fff; -webkit-text-stroke: 4px var(--line); paint-order: stroke fill;
  background: radial-gradient(circle at 35% 30%, #fff3b0, var(--gold) 55%, var(--gold-d)); border: 4px solid var(--line); box-shadow: inset 0 3px 0 #fff8, 0 5px 0 var(--deep); }
.node.open { animation: nudge 1.6s ease-in-out infinite; }
.node.done { background: radial-gradient(circle at 35% 30%, #d9c2ff, var(--vio) 60%, var(--vio-d)); }
.node.locked { background: radial-gradient(circle at 35% 30%, #e8e3f2, #a99cc7); filter: saturate(.4); }
.node.boss { width: 82px; height: 82px; }
.node .figure.face { position: absolute; inset: 0; height: 100%; border-width: 3px; box-shadow: none; }
.node .lock { position: absolute; right: -8px; bottom: -6px; font-style: normal; font-size: 20px; -webkit-text-stroke: 0; }
.node .chest { position: absolute; right: -14px; top: -14px; font-style: normal; font-size: 24px; -webkit-text-stroke: 0; animation: nudge 1.2s infinite; }
.stars { display: flex; justify-content: center; gap: 1px; }
.stars i { font-style: normal; color: #6b5c8f; -webkit-text-stroke: 2px var(--line); paint-order: stroke fill; }
.stars i.on { color: #ffd23f; }
.node .stars { position: absolute; bottom: -18px; font-size: 16px; }
.node .you { position: absolute; top: -58px; left: 50%; margin-left: -24px; width: 48px; height: 48px; }
.node .you .figure.face { position: static; width: 48px; height: 48px; border-width: 3px; box-shadow: 0 0 0 3px var(--line), 0 4px 0 3px var(--deep); }
.map-foot { display: flex; align-items: center; gap: 8px; }
.map-foot .btn { padding: 8px 12px; font-size: 16px; }
.pet-chip { flex: 1; display: flex; align-items: center; font: 700 14px 'Fredoka'; color: var(--ink); background: var(--cream); border: 3px solid var(--line); border-radius: 16px; padding: 4px 8px; }

/* Preparação da fase */
.modal .box { position: relative; }
.close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--cream); border: 3px solid var(--line); font-weight: 900; color: var(--line); }
.prep { display: flex; align-items: center; gap: 14px; text-align: left; margin: 10px 0; }
.prep .figure.face { height: 90px; }
.stars.big { font-size: 40px; margin: 6px 0; }
.boosters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.boosters button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 16px; background: var(--cream); border: 3px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.boosters button span { font-size: 26px; }
.boosters button small { font: 700 10px/1.1 'Fredoka'; color: var(--ink); }
.boosters button em { position: absolute; top: -8px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--red); color: #fff; font: 700 12px/18px 'Fredoka'; border: 2px solid #fff; font-style: normal; }
.boosters button.on { background: linear-gradient(180deg, #fff6c2, var(--gold)); transform: translateY(-3px); box-shadow: 0 0 0 3px #fff, 0 5px 0 var(--line); }
.boosters button:disabled { opacity: .45; }

/* Mascotes e loja */
.pets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pet-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; text-align: center; border-radius: 18px; background: var(--cream); border: 4px solid var(--line); box-shadow: inset 0 0 0 2px #ffe08a, 0 5px 0 var(--line); }
.pet-card .pet-img { width: 70px; height: 70px; margin: 0; }
.pet-card .pet-img .emoji-art { font-size: 54px; }
.pet-card b { font-family: 'Lilita One'; font-weight: 400; font-size: 18px; }
.pet-card small { font: 600 12px/1.2 'Fredoka'; color: var(--ink2); }
.pet-card em { font: 700 11px 'Fredoka'; color: #fff; background: var(--green-d); border-radius: 10px; padding: 2px 8px; font-style: normal; }
.pet-card.on { background: linear-gradient(180deg, #fff6c2, var(--gold)); }
.pet-card.locked { filter: grayscale(1) brightness(.85); }
.shop { display: grid; gap: 10px; }

/* ===== Contorno da marca: moldura dourada com faixa roxa e gemas nos cantos (a do tabuleiro, do Flow) ===== */
.hero-card, .modal .box, .pet-card, .hero-pick {
  border: 18px solid transparent; border-image: url(art/casual/tabuleiro.png) 96 / 18px stretch;
  background: linear-gradient(180deg, #fffdf6, #ffeccc) padding-box; border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 0 #2b0f5c88); }
.hero-card { padding: 2px 6px; }
.modal .box { padding: 14px 12px 12px; }
/* Botões como as letras do logo: aro dourado, borda roxa por fora, brilho em cima */
.btn { border: 3px solid #ffd36b; box-shadow: 0 0 0 3px #4a1f8f, inset 0 4px 0 #ffffff66, inset 0 -5px 0 #00000033, 0 6px 0 3px #2b0f5c; }
.btn:active { box-shadow: 0 0 0 3px #4a1f8f, inset 0 4px 0 #ffffff66, 0 2px 0 3px #2b0f5c; }
.btn.gold { border-color: #fff3b0; }
.skills button, .boosters button, .item, .slot, .bar-box, .pet-chip, input[type=text] { border-color: #ffd36b; box-shadow: 0 0 0 3px #4a1f8f, 0 5px 0 3px #2b0f5c; }
.arena, .map-area { border: 4px solid #ffd36b; box-shadow: 0 0 0 4px #4a1f8f, 0 7px 0 4px #2b0f5c; }
.swap { float: right; margin: 2px 0 0 6px; padding: 4px 10px; border-radius: 12px; font: 700 13px 'Fredoka'; color: #fff; background: linear-gradient(180deg, #b892ff, var(--vio-d)); border: 2px solid #ffd36b; box-shadow: 0 0 0 2px #4a1f8f, 0 3px 0 2px #2b0f5c; }
/* Escolher herói */
.pick-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.hero-pick { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 4px 8px; text-align: center; }
.hero-pick .figure.bust { width: 130px; height: 150px; }
.hero-pick b { font: 400 22px 'Lilita One'; color: #ffd23f; -webkit-text-stroke: 5px var(--line); paint-order: stroke fill; }
.hero-pick small { font: 600 12px 'Fredoka'; color: var(--ink2); }
.hero-pick em { font: 700 12px 'Fredoka'; font-style: normal; color: var(--ink); }
.hero-pick i { font: 700 11px 'Fredoka'; font-style: normal; color: #fff; background: var(--green-d); border-radius: 10px; padding: 2px 8px; margin-top: 4px; }
.hero-pick.on { background: linear-gradient(180deg, #fff6c2, #ffd36b) padding-box; }
.figure.face img.art { transform: scale(1.2); transform-origin: 50% 22%; }
.reward > b[style] { display: block; }

/* Vida bem visível: anel em volta do rosto, barra com rastro do dano e placar de dano causado */
.hpring { --hp: 100; --hc: #45d46a; padding: 6px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--hc) calc(var(--hp) * 1%), #3a2d5c 0); box-shadow: 0 0 0 3px #4a1f8f, 0 6px 0 3px #2b0f5c; transition: --hp .4s; }
.hpring .figure.face { box-shadow: none; border-width: 3px; }
.side { gap: 6px; }
.figure.face { height: clamp(52px, calc(100% - 112px), 140px); }
.bar.hp { position: relative; height: 16px; }
.bar.hp i { position: relative; z-index: 1; }
.bar.hp .ghost { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: #ffe14a; border-radius: 6px; }
.bar-box .hpn { font-size: 13px; }
.bar-box .dmg { font: 700 10px 'Fredoka'; color: var(--ink2); margin-top: 2px; white-space: nowrap; }
.bar-box .dmg b { color: var(--red-d); }
.hpring { height: clamp(64px, calc(100% - 100px), 152px); width: auto; aspect-ratio: 1; box-sizing: border-box; }
.hpring .figure.face { height: 100%; width: 100%; }
/* Celular baixo: arena curta. Fica o anel, o nome, os números e a barra de vida; o resto sai. */
@media (max-height: 700px) {
  .duel { inset: 6px 6px 30px; }
  .hpring { height: clamp(44px, calc(100% - 44px), 120px); padding: 4px; }
  .bar-box { padding: 2px 6px 3px; }
  .bar-box .dmg, .bar-box .bar.sp, .bar-box .shield-tag { display: none; }
  .bar-box .nm { font-size: 12px; }
  .bar.hp { height: 10px; margin-top: 1px; }
  .duel .vs { width: 44px; height: 48px; margin-top: -20px; }
}
/* Tamanho do anel pela altura real da área da luta (o % não resolvia dentro do flex) */
.duel { container-type: size; }
.hpring { height: clamp(44px, calc(100cqh - 112px), 152px); }
@media (max-height: 700px) { .hpring { height: clamp(40px, calc(100cqh - 46px), 120px); } }
/* Vida fina: anel estreito e barra baixa, para o rosto ocupar a arena */
.hpring { padding: 3px; box-shadow: 0 0 0 2px #4a1f8f, 0 3px 0 2px #2b0f5c; height: clamp(48px, calc(100cqh - 64px), 168px); }
.hpring .figure.face { border-width: 2px; }
.bar-box { padding: 2px 6px 3px; border-width: 2px; border-radius: 10px; box-shadow: 0 2px 0 var(--line); }
.bar-box .nm { font-size: 11px; }
.bar-box .hpn { font-size: 10px; }
.bar.hp { height: 6px; border-width: 1px; margin-top: 2px; }
.bar.hp .ghost { border-radius: 3px; }
.bar-box .bar.sp { height: 4px; border-width: 1px; margin-top: 2px; }
.bar-box .dmg { font-size: 9px; margin-top: 1px; }
@media (max-height: 700px) { .hpring { height: clamp(40px, calc(100cqh - 34px), 130px); padding: 2px; } .bar.hp { height: 5px; } }
/* Rosto grande, barra mínima (26/10, 2ª passada): o medalhão usa a altura toda da arena;
   a vida vira uma faixa fina com nome e números logo abaixo. */
.duel { gap: 0; }
.duel .vs { width: 40px; height: 44px; margin-top: -24px; }
.side { gap: 3px; justify-content: flex-end; }
.hpring { height: min(calc(100cqh - 26px), calc((100cqw - 44px) / 2)); padding: 3px; }
.side .bar-box { width: 92%; padding: 0; border: 0; background: none; box-shadow: none; }
.bar-box .nm { font-size: 10px; line-height: 1; color: #fff; text-shadow: 0 1px 2px #2b0f5c, 0 0 3px #2b0f5c; }
.bar-box .hpn { font-size: 9px; }
.bar.hp { height: 5px; margin-top: 2px; }
.bar-box .dmg, .bar-box .bar.sp, .bar-box .shield-tag { display: none; }
.bar-box .st { position: absolute; top: 0; left: 0; right: 0; justify-content: center; }
@media (max-height: 700px) { .hpring { height: min(calc(100cqh - 24px), calc((100cqw - 44px) / 2)); padding: 2px; } .bar.hp { height: 4px; } }
/* barra em cima do rosto: embaixo ficam o som, o Fugir e o aviso da vez */
.side { justify-content: flex-start; }
.side .bar-box { order: -1; }
.side .hpring { margin-top: auto; margin-bottom: auto; }

/* Tela deitada e baixa (janela do portal no computador, 907x510 e afins): luta em duas colunas,
   arena e poderes à esquerda, tabuleiro à direita com a altura toda; criação e menu encolhem para caber sem rolar. */
@media (min-aspect-ratio: 13/10) and (max-height: 820px) {
  body.in-battle #app { max-width: none; }
  .battle { display: grid; grid-template-columns: minmax(280px, 560px) auto; grid-template-rows: 1fr auto; justify-content: center; column-gap: 12px;
    padding: 8px; --bw: min(calc((100dvh - 16px - 36px) * var(--cols, 6) / var(--rows, 7) + 36px), calc(100vw - 316px)); }
  .battle > .arena { grid-column: 1; grid-row: 1; }
  .battle > .hud { grid-column: 1; grid-row: 2; margin: 0; border-radius: 16px; }
  .battle > .board { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .preview .figure, .preview .figure.bust { height: clamp(90px, 28dvh, 260px); width: clamp(90px, 28dvh, 240px); }
  .preview { padding: 0; }
  #app { padding-top: 6px; padding-bottom: 6px; }
  #app h1, #app h2 { margin: 2px 0 4px; font-size: clamp(26px, 6dvh, 40px); }
  .preview .figure, .preview .figure.bust { height: clamp(70px, 19dvh, 240px); width: clamp(70px, 19dvh, 220px); }
  .seg button { padding: 4px 8px; }
  .logo img { width: min(240px, 60%, 26dvh); }
  .logo p { font-size: 13px; }
  .hero-card { grid-template-columns: clamp(56px, 11dvh, 110px) 1fr; margin: 4px 0; }
  .hero-card .figure.bust { width: clamp(56px, 11dvh, 110px); height: clamp(64px, 15dvh, 150px); }
  .btn.play { padding-top: 6px; padding-bottom: 6px; }
  .btn { margin-top: 0; }
}
@media (min-aspect-ratio: 13/10) and (max-height: 480px) {
  .seg button { padding: 2px 8px; font-size: 13px; }
  .lb { margin: 2px 0; }
  .pick button { width: 30px; height: 30px; }
  .logo img { width: min(200px, 50%, 20dvh); }
  .logo p { display: none; }
  .hero-card { padding: 2px 8px; gap: 6px; font-size: 13px; }
  .hero-card h2, .hero-card h3 { font-size: 22px; }
  .row2 .btn, .row3 .btn { padding-top: 4px; padding-bottom: 4px; }
  .btn.play { padding-top: 2px; padding-bottom: 2px; }
}
/* Criação do herói em tela baixa (celular pequeno ou janela deitada): o retrato encolhe para o botão caber */
@media (max-height: 660px) and (max-aspect-ratio: 13/10) {
  .preview .figure, .preview .figure.bust { height: clamp(64px, 24dvh, 200px); width: clamp(64px, 24dvh, 190px); }
}
@media (min-aspect-ratio: 13/10) and (max-height: 460px) {
  .preview .figure, .preview .figure.bust { height: 15dvh; width: 15dvh; }
  #app h1, #app h2 { font-size: 24px; }
}

/* Cartão do herói: a imagem fica dentro da coluna dela e nunca passa por cima do texto */
.hero-card > .figure, .hero-card > .figure.bust { width: 100%; max-width: 100%; justify-self: stretch; overflow: hidden; }
.hero-card > .figure .art { object-fit: contain; object-position: 50% 100%; }

/* Botão de idioma: pílula dourada no canto, com bandeira, bem à vista */
#app > .idioma { position: fixed; z-index: 5; top: max(10px, env(safe-area-inset-top)); left: max(10px, calc(50vw - 230px));
  width: auto; margin: 0; padding: 8px 18px 8px 12px; font-size: 17px; display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, #fff3b8, var(--gold) 55%, var(--gold-d)); color: #fff; border-radius: 999px; }
#app > .idioma span { font-size: 20px; line-height: 1; -webkit-text-stroke: 0; }
@media (min-aspect-ratio: 13/10) and (max-height: 480px) { #app > .idioma { padding: 3px 10px 3px 8px; font-size: 13px; } }
#app > .idioma.solto { position: static; align-self: center; margin: 0 0 6px; }
/* no menu: dourado, na fileira do Personagem */
.row2 .idioma, .row3 .idioma { position: static; width: auto; margin: 0; padding: 8px 10px; font-size: 16px; display: flex; justify-content: center; align-items: center; gap: 6px;
  background: linear-gradient(180deg, #fff3b8, var(--gold) 55%, var(--gold-d)); color: #fff; }
.row2 .idioma span, .row3 .idioma span { font-size: 20px; -webkit-text-stroke: 0; }
/* criação em janela deitada e baixa: o botão vai para o canto, longe do título */
@media (min-aspect-ratio: 13/10) and (max-height: 620px) { #app > .idioma.solto { position: fixed; top: 10px; left: 10px; margin: 0; } }
