* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #0b0806; overflow: hidden; }
body { display: flex; justify-content: center; align-items: center; font-family: "Alegreya Sans", sans-serif; color: #f6ead0;
  -webkit-tap-highlight-color: transparent; user-select: none; }
button { font-family: inherit; color: inherit; cursor: pointer; }

/* a tela do jogo: proporção de celular, centralizada no computador */
.tela {
  position: relative; width: min(100vw, calc(100vh * 0.4615)); height: min(100vh, calc(100vw / 0.4615));
  overflow: hidden; display: flex; flex-direction: column;
  background:
    url(img/mesa_cel.jpg) center/cover no-repeat, #1d120a;
  container-type: size; --u: 1cqw;
}
.tela::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px 20px rgba(0,0,0,.75); z-index: 1; }

/* barras dos jogadores */
.barra { display: flex; align-items: center; gap: calc(2.4 * var(--u)); padding: 1cqh calc(3 * var(--u)); z-index: 2; flex-shrink: 0; }
#barra-0 { padding-top: 1.6cqh; }
.avatar { width: calc(11 * var(--u)); height: calc(11 * var(--u)); border-radius: 50%; flex: none; margin: calc(-1 * var(--u)) 0;
  background: url(img/avatar_gelo.png) center/contain no-repeat; filter: drop-shadow(0 2px 4px rgba(0,0,0,.8)); }
.avatar.fogo { background-image: url(img/avatar_fogo.png); }
.avatar.energia { background-image: url(img/avatar_energia.png); }
.barra.vez .avatar { filter: drop-shadow(0 0 6px #ffb020) drop-shadow(0 0 3px #ffd36b); }
.barra .nome { font-family: Cinzel, serif; font-weight: 800; font-size: calc(3.6 * var(--u)); }
.barra .sub { font-size: calc(2.6 * var(--u)); opacity: .75; }
.estrelas { margin-left: auto; display: flex; gap: calc(.6 * var(--u)); }
.estrelas img { width: calc(6 * var(--u)); height: calc(6 * var(--u)); transition: filter .4s, opacity .4s, transform .4s; }
.estrelas .on { filter: drop-shadow(0 0 4px rgba(255,170,60,.7)); transform: scale(1.08); }
.estrelas .off { filter: grayscale(1) brightness(.45); opacity: .55; }

/* cartas */
.carta { position: relative; border-radius: calc(1.6 * var(--u)); box-shadow: 0 .6cqh 1.4cqh rgba(0,0,0,.6); cursor: pointer; }
.carta img { width: 100%; display: block; border-radius: calc(1.6 * var(--u)); }
.banco { display: flex; justify-content: center; gap: calc(6 * var(--u)); z-index: 2; flex-shrink: 0; align-items: flex-start; }
.banco .carta, .banco .vazio { width: calc(17 * var(--u)); }
.ativo { display: flex; justify-content: center; z-index: 2; flex-shrink: 0; align-items: flex-start; }
.ativo .carta, .ativo .vazio { width: calc(26 * var(--u)); }
#banco-1 { margin-top: 1cqh; }
#ativo-1 { margin-top: 1.8cqh; }
#banco-0 { margin-top: 2cqh; }
.vazio { aspect-ratio: 2/3; border: 2px dashed rgba(255,255,255,.10); border-radius: calc(1.6 * var(--u)); }

.vida { position: absolute; left: 6%; right: 6%; bottom: -1.6cqh; height: 1.5cqh; border-radius: 1cqh;
  background: rgba(0,0,0,.75); border: 1px solid rgba(255,255,255,.35); overflow: hidden; }
.vida i { display: block; height: 100%; background: linear-gradient(#7dff8a, #2fae3e); transition: width .5s; }
.vida.meia i { background: linear-gradient(#ffe066, #d49a12); }
.vida.baixa i { background: linear-gradient(#ff7a5c, #c62a12); }
.vida b { position: absolute; inset: 0; font-size: 1.2cqh; line-height: 1.5cqh; text-align: center; font-weight: 700;
  text-shadow: 0 0 3px #000, 0 0 2px #000; }
.banco .vida { height: 1.1cqh; bottom: -1.3cqh; }
.banco .vida b { font-size: .9cqh; line-height: 1.1cqh; }

/* energias ligadas: fileira de ícones grandes na base da carta (estilo TCG Pocket) */
/* energias: coluna colada na borda direita da carta, na parte de baixo, fora da arte */
.orbes { position: absolute; right: 0; bottom: 4%; transform: translateX(calc(100% - .6 * var(--u))); z-index: 4; display: flex; flex-direction: column-reverse; align-items: center;
  gap: calc(.5 * var(--u)); padding: calc(.5 * var(--u)) calc(.8 * var(--u)); border-radius: 99px;
  background: rgba(10,6,3,.82); border: 1px solid rgba(216,165,74,.7); box-shadow: 0 2px 6px rgba(0,0,0,.8); }
.orbes span { width: calc(5.6 * var(--u)); height: calc(5.6 * var(--u)); border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 2px solid #fff; box-shadow: 0 0 6px rgba(0,0,0,.9); }
.orbes .o-fogo { background: radial-gradient(circle at 35% 30%, #ffd27a, #d2410e 60%, #6b1300); }
.orbes .o-gelo { background: radial-gradient(circle at 35% 30%, #e7fbff, #49b6e6 60%, #0f4a7a); }
.orbes .o-energia { background: radial-gradient(circle at 35% 30%, #f3dcff, #a24be6 60%, #3d0f6b); }
.orbes img { width: 74%; }
.banco .orbes span { width: calc(3.8 * var(--u)); height: calc(3.8 * var(--u)); border-width: 1.5px; }
.orbes .mais { width: auto !important; height: auto !important; border: 0; box-shadow: none; padding: 0 calc(.4 * var(--u));
  font-size: calc(3 * var(--u)); font-weight: 800; color: #ffd36b; }
.banco .orbes .mais { font-size: calc(2.2 * var(--u)); }

/* equipamento: a carta inteira atrás da criatura, aparecendo pela esquerda */
.carta.tem-equip { isolation: isolate; }
.equip { position: absolute; z-index: -1; width: 52%; left: -34%; top: 9%; transform: rotate(-9deg); transform-origin: 100% 50%;
  border-radius: calc(1 * var(--u)); box-shadow: 0 0 0 2px #e2b25a, 0 .6cqh 1.6cqh rgba(0,0,0,.85); cursor: zoom-in; transition: left .15s, transform .15s; }
.equip img { width: 100%; display: block; border-radius: calc(1 * var(--u)); }
.equip:hover { left: -40%; transform: rotate(-12deg); }
.ativo .equip { width: 60%; left: -40%; }
.ativo .equip:hover { left: -48%; }
.selo { position: absolute; top: -1.4cqh; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap;
  font-size: 1.1cqh; padding: .15cqh calc(1.4 * var(--u)); border-radius: 1cqh; font-weight: 700; border: 1px solid; }
.selo.queimado { background: #8a1d06; border-color: #ffb27a; }
.selo.paralisado { background: #4a4a4a; border-color: #dcdcdc; }
.selo.outro { background: #13405c; border-color: #8fe3ff; }
.status { position: absolute; top: calc(-2.2 * var(--u)); left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: calc(.6 * var(--u)); align-items: center; }
.status img { width: calc(7 * var(--u)); height: calc(7 * var(--u)); filter: drop-shadow(0 2px 3px rgba(0,0,0,.9)); animation: surge .35s ease-out; }
.banco .status img { width: calc(5 * var(--u)); height: calc(5 * var(--u)); }
.status .guarda { font-weight: 800; font-size: calc(2.6 * var(--u)); color: #e8f7ff; background: rgba(19,64,92,.92); border: 1px solid #8fe3ff; border-radius: 99px; padding: 0 calc(1 * var(--u)); }
.st-queimado img { filter: sepia(.4) saturate(1.6) hue-rotate(-12deg) brightness(.95); }
.st-paralisado img { filter: grayscale(.85) brightness(.8); }
.muralha { box-shadow: 0 0 0 2px #8fe3ff, 0 0 18px 4px #49b6e6; }

.carta.alvo { box-shadow: 0 0 0 3px #4fe36b, 0 0 20px 4px #4fe36b; animation: pulsa 1s infinite alternate; }
@keyframes pulsa { to { box-shadow: 0 0 0 3px #4fe36b, 0 0 8px 1px #4fe36b; } }

/* faixa do meio */
.meio { display: flex; align-items: center; justify-content: space-between; padding: 0 calc(3 * var(--u)); height: 7cqh; z-index: 2; margin-top: .8cqh; }
.ambiente { display: flex; align-items: center; gap: calc(1.6 * var(--u)); font-size: calc(2.6 * var(--u)); width: 34%; line-height: 1.15; }
.ambiente img { width: calc(9 * var(--u)); border-radius: calc(1 * var(--u)); box-shadow: 0 0 6px #000; cursor: pointer; }
.ambiente small { opacity: .7; }
.turno { font-family: Cinzel, serif; font-weight: 800; font-size: calc(4.2 * var(--u)); color: #ffd36b; text-align: center; flex: 1;
  text-shadow: 0 0 10px rgba(255,170,0,.6); }
.btn { font-family: Cinzel, serif; font-weight: 800; font-size: calc(3 * var(--u)); padding: 1.1cqh calc(3 * var(--u)); border-radius: calc(2 * var(--u));
  color: #fff4da; border: 0; border-radius: 0; background: url(img/btn_placa.png) center/100% 100% no-repeat;
  min-width: calc(30 * var(--u)); padding: 1.6cqh calc(5 * var(--u)); text-shadow: 0 1px 3px #000, 0 0 6px rgba(0,0,0,.8);
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.7)); }
.btn:not(:disabled):hover { filter: drop-shadow(0 0 8px rgba(255,190,80,.8)) brightness(1.08); }
.btn:disabled, .energia:disabled { opacity: .35; filter: grayscale(.6); cursor: default; }

/* botões flutuantes */
.energia { position: absolute; right: calc(3 * var(--u)); bottom: 24cqh; width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%; z-index: 4;
  background: url(img/btn_aro.png) center/100% 100% no-repeat,
    radial-gradient(closest-side, #ffe2a0, #e2531a 50%, #6b1300 76%, transparent 78%) center/100% 100% no-repeat;
  border: 0; box-shadow: none; filter: drop-shadow(0 0 10px rgba(255,120,30,.8)); display: grid; place-items: center; }
.energia img { width: 60%; }
.energia small { position: absolute; bottom: -2.4cqh; font-size: calc(2.3 * var(--u)); font-weight: 700; white-space: nowrap; }
.energia .prox { position: absolute; left: -38%; top: -14%; width: 52%; height: 52%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, #3a2a18, #120b05 90%); border: 2px solid #b98a3e; box-shadow: 0 2px 6px rgba(0,0,0,.8); pointer-events: none; }
.energia .prox img { width: 70%; opacity: .9; }
.energia .prox i { position: absolute; top: -1.9cqh; font-style: normal; font-size: calc(2 * var(--u)); font-weight: 700; color: #e9d7ae; text-shadow: 0 1px 2px #000; }
.energia .prox.oculto { display: none; }
.energia.ligando { animation: brilha .7s infinite alternate; }
@keyframes brilha { to { filter: drop-shadow(0 0 22px rgba(255,170,60,1)); transform: scale(1.08); } }
.icone-log { position: absolute; left: calc(3 * var(--u)); bottom: 24cqh; width: calc(10 * var(--u)); height: calc(10 * var(--u)); border-radius: 50%; z-index: 4;
  background: url(img/btn_log.png) center/contain no-repeat; border: 0; font-size: 0 !important; color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.8)); }

/* mão em leque */
.mao { position: relative; height: 14cqh; margin-top: auto; z-index: 3; flex-shrink: 0; }
.mao .carta { position: absolute; width: calc(18 * var(--u)); bottom: 1.3cqh; left: 50%; transform-origin: 50% 120%;
  transition: transform .25s, bottom .25s; }
.mao .carta.arrastando { opacity: .25; }
.fantasma { position: fixed; z-index: 9999; pointer-events: none; translate: -50% -50%; rotate: -4deg; border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0,0,0,.75), 0 0 0 2px #ffd36b; }
.carta.alvo-arraste { box-shadow: 0 0 0 3px #4fe36b, 0 0 20px 4px #4fe36b; animation: pulsa 1s infinite alternate; }
.previa { display: none; }
.mao .carta.jogavel { box-shadow: 0 0 0 2px #ffd36b, 0 0 14px #ffb020; }
.mao .carta.entra { animation: entra .45s ease-out; }
@keyframes entra { from { opacity: 0; translate: calc(40 * var(--u)) -10cqh; } }
.mao-op { display: flex; justify-content: center; margin-top: -1cqh; min-height: calc(7 * var(--u)); z-index: 2; }
.mao-op span { width: calc(6.4 * var(--u)); height: calc(9.6 * var(--u)); margin: 0 calc(-1.6 * var(--u)); border-radius: calc(.6 * var(--u));
  background: url(img/verso.jpg) center/cover; box-shadow: 0 2px 5px rgba(0,0,0,.8); }

/* animações de combate */
.investida-cima { animation: investeCima .45s ease-in-out; }
.investida-baixo { animation: investeBaixo .45s ease-in-out; }
@keyframes investeCima { 50% { transform: translateY(-6cqh) scale(1.06); } }
@keyframes investeBaixo { 50% { transform: translateY(6cqh) scale(1.06); } }
.treme { animation: treme .4s; }
@keyframes treme { 20%, 60% { transform: translateX(-1.6cqw); } 40%, 80% { transform: translateX(calc(1.6 * var(--u))); } }
.desfaz { animation: desfaz .6s forwards; }
@keyframes desfaz { to { opacity: 0; transform: scale(.6) rotate(8deg); filter: brightness(2) blur(2px); } }
.dano-flutuante { position: absolute; top: 25%; left: 50%; transform: translateX(-50%); font-family: Cinzel, serif;
  font-size: calc(7 * var(--u)); font-weight: 800; color: #ff5a3a; text-shadow: 0 0 6px #000, 0 0 2px #000; pointer-events: none; z-index: 6;
  animation: sobe 1.2s ease-out forwards; }
.dano-flutuante.cura { color: #7dff8a; }
@keyframes sobe { from { opacity: 1; margin-top: 0; } to { opacity: 0; margin-top: -6cqh; } }

/* dica de alvo e aviso rápido */
.dica { position: absolute; top: 45%; left: calc(4 * var(--u)); right: calc(4 * var(--u)); z-index: 7; text-align: center; padding: 1.2cqh calc(3 * var(--u));
  background: rgba(20,60,25,.92); border: 2px solid #4fe36b; border-radius: calc(2 * var(--u)); font-weight: 700; font-size: calc(3.2 * var(--u)); }
.dica button { margin-left: calc(2 * var(--u)); padding: .3cqh calc(2 * var(--u)); border-radius: calc(1 * var(--u)); border: 1px solid #ccc; background: #333; font-size: calc(2.8 * var(--u)); }
.toast { position: absolute; top: 11cqh; left: calc(6 * var(--u)); right: calc(6 * var(--u)); z-index: 6; text-align: center; font-size: calc(2.9 * var(--u));
  padding: .8cqh calc(2 * var(--u)); border-radius: calc(2 * var(--u)); background: rgba(0,0,0,.72); border: 1px solid rgba(255,211,107,.4);
  opacity: 0; transition: opacity .3s; pointer-events: none; }
.toast.mostra { opacity: 1; }

/* carta aberta */
.modal { position: absolute; inset: 0; z-index: 10; background: rgba(5,3,2,.84); backdrop-filter: blur(3px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqh; }
.modal .grande { width: calc(74 * var(--u)); cursor: default; }
.acoes { width: calc(82 * var(--u)); display: flex; flex-direction: column; gap: 1.2cqh; }
.acao { display: flex; align-items: center; gap: calc(2.4 * var(--u)); padding: 1.4cqh calc(3 * var(--u)); border-radius: calc(2.4 * var(--u)); text-align: left;
  background: linear-gradient(#6e4419, #3d220a); border: 2px solid #e2b25a; font-weight: 700; font-size: calc(3.4 * var(--u)); }
.acao .custo { display: flex; gap: .6cqw; }
.acao .custo span { width: calc(5 * var(--u)); height: calc(5 * var(--u)); border-radius: 50%; border: 1px solid #fff; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffd27a, #d2410e 60%, #6b1300); }
.acao .custo img { width: 70%; }
.acao .dano { margin-left: auto; font-family: Cinzel, serif; font-size: calc(4.6 * var(--u)); }
.acao:disabled { opacity: .4; filter: grayscale(.6); cursor: default; }
.acao.cinza { background: linear-gradient(#3b3b3b, #1c1c1c); border-color: #9a9a9a; }
.acao .motivo { font-size: calc(2.4 * var(--u)); font-weight: 500; opacity: .8; margin-left: auto; }
.fechar { position: absolute; top: 2cqh; right: calc(4 * var(--u)); font-size: calc(6 * var(--u)); opacity: .8; background: none; border: 0; }

/* histórico */
.painel-log { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; z-index: 9; display: flex; flex-direction: column;
  background: rgba(14,9,5,.97); border-top: 2px solid #d8a54a; border-radius: calc(3 * var(--u)) calc(3 * var(--u)) 0 0; }
.painel-topo { position: relative; font-family: Cinzel, serif; font-weight: 800; font-size: calc(4 * var(--u)); padding: 1.4cqh calc(4 * var(--u)); }
.painel-topo .fechar { top: .4cqh; }
#log { flex: 1; overflow-y: auto; padding: 0 calc(4 * var(--u)) 2cqh; font-size: calc(3 * var(--u)); line-height: 1.35; }
#log div { margin-bottom: .5cqh; }
#log .ia { color: #9fd3ff; } #log .eu { color: #ffe3a3; } #log .sis { color: #c9c9c9; font-style: italic; }

/* fim de jogo / moeda */
.aviso { position: absolute; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center; text-align: center;
  background: rgba(0,0,0,.75); font-family: Cinzel, serif; font-size: calc(8 * var(--u)); color: #ffd36b; text-shadow: 0 0 14px rgba(255,170,0,.7); }
.aviso small { display: block; font-size: calc(4 * var(--u)); color: #f6ead0; margin-top: 1cqh; }
.aviso .btn { margin-top: 3cqh; font-size: calc(4 * var(--u)); }
.moeda-palco { perspective: 900px; margin: 0 auto 2cqh; width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.moeda { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: gira 1.5s cubic-bezier(.2,.7,.3,1) forwards; }
.moeda.coroa { animation-name: gira-coroa; }
.moeda i { position: absolute; inset: 0; backface-visibility: hidden; background: url(img/moeda_cara.png) center/contain no-repeat;
  filter: drop-shadow(0 0 12px rgba(230,230,255,.45)); }
.moeda i + i { transform: rotateY(180deg); background-image: url(img/moeda_coroa.png); }
.aviso-texto { opacity: 0; animation: aparece .4s 1.3s forwards; }
@keyframes aparece { to { opacity: 1; } }
/* mesma lista de funções em todos os quadros: senão o navegador não gira de verdade (só troca de face no fim) */
@keyframes gira { from { transform: translateY(-20cqh) rotateY(0deg) scale(.5); } 60% { transform: translateY(0) rotateY(1440deg) scale(1.1); } to { transform: translateY(0) rotateY(1800deg) scale(1); } }
@keyframes gira-coroa { from { transform: translateY(-20cqh) rotateY(0deg) scale(.5); } 60% { transform: translateY(0) rotateY(1620deg) scale(1.1); } to { transform: translateY(0) rotateY(1980deg) scale(1); } }
.oculto { display: none !important; }

/* tela inicial */
.inicio { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3cqh; background: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,.35), rgba(0,0,0,.85)), url(img/mesa_cel.jpg) center/cover; }
.logo img { width: calc(72 * var(--u)); display: block; filter: drop-shadow(0 6px 14px rgba(0,0,0,.9)); }
.logo h1 { font-family: Cinzel, serif; font-weight: 800; font-size: calc(14 * var(--u)); color: #ffd36b; text-shadow: 0 0 18px rgba(255,170,0,.6), 0 3px 0 #5a3508; margin: 0; }
.escolha-titulo { font-family: Cinzel, serif; font-size: calc(4.4 * var(--u)); color: #f6ead0; text-shadow: 0 2px 4px #000; }
.baralhos { display: flex; gap: calc(3 * var(--u)); }
.baralho { display: flex; flex-direction: column; align-items: center; gap: .6cqh; background: none; border: 0; padding: 0; opacity: .55; transition: opacity .2s, transform .2s; }
.baralho img { width: calc(28 * var(--u)); border-radius: calc(1.6 * var(--u)); box-shadow: 0 6px 14px rgba(0,0,0,.8); }
.baralho b { font-family: Cinzel, serif; font-size: calc(3 * var(--u)); text-align: center; color: #ffd36b; }
.baralho small { font-size: calc(2.8 * var(--u)); color: #f6ead0; opacity: .8; }
.baralho.sel { opacity: 1; transform: scale(1.06); }
.baralho.sel img { box-shadow: 0 0 0 3px #ffd36b, 0 0 22px 4px rgba(255,190,80,.7); }
#btn-jogar { font-size: calc(5 * var(--u)); min-width: calc(48 * var(--u)); }

/* fim de jogo ilustrado */
.fim { display: flex; flex-direction: column; align-items: center; gap: 2cqh; }
.fim-avatar { width: calc(34 * var(--u)) !important; height: calc(34 * var(--u)) !important; margin: 0 !important; animation: surge .6s ease-out; }
.fim.ganhou .fim-avatar { filter: drop-shadow(0 0 24px rgba(255,190,80,.9)); }
.fim.perdeu .fim-avatar { filter: grayscale(.4) drop-shadow(0 0 18px rgba(200,40,40,.8)); }
.fim-titulo { font-size: calc(11 * var(--u)); line-height: 1; }
.fim.perdeu .fim-titulo { color: #e05a4a; text-shadow: 0 0 14px rgba(200,30,30,.7); }
.fim-placar { display: flex; flex-direction: column; gap: 1cqh; }
.fim-placar > div { display: flex; align-items: center; gap: calc(2 * var(--u)); }
.fim-placar span { font-size: calc(3.4 * var(--u)); color: #f6ead0; width: calc(10 * var(--u)); text-align: right; }
.fim-placar .estrelas img { width: calc(7 * var(--u)); height: calc(7 * var(--u)); }
@keyframes surge { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.energia.gelo { background: url(img/btn_aro.png) center/100% 100% no-repeat,
    radial-gradient(closest-side, #e7fbff, #49b6e6 50%, #0f4a7a 76%, transparent 78%) center/100% 100% no-repeat;
  filter: drop-shadow(0 0 10px rgba(80,180,255,.8)); }
.energia.roxo { background: url(img/btn_aro.png) center/100% 100% no-repeat,
    radial-gradient(closest-side, #f3dcff, #a24be6 50%, #3d0f6b 76%, transparent 78%) center/100% 100% no-repeat;
  filter: drop-shadow(0 0 10px rgba(170,90,255,.8)); }

/* ===== computador / tela deitada ===== */
@media (min-aspect-ratio: 1/1) {
  .tela { width: 100vw; height: min(100vh, calc(100vw * 9 / 16)); display: block; --u: .5cqh;
    background:
      url(img/mesa_pc.jpg) center/cover no-repeat, #1d120a; }
  .tela::before { content: ""; position: absolute; left: 17cqw; right: 17cqw; top: 2cqh; bottom: 21cqh; border-radius: 3cqh; z-index: 1;
    border: 2px solid rgba(216,165,74,.18); background: rgba(0,0,0,.18) linear-gradient(transparent calc(50% - 1px), rgba(216,165,74,.22) 50%, transparent calc(50% + 1px)); }
  .barra { position: absolute; left: 1.6cqw; width: 14cqw; flex-wrap: wrap; gap: .8cqw; padding: 1.4cqh 1cqw; border-radius: 1.6cqh;
    background: rgba(20,12,6,.75); border: 1px solid rgba(216,165,74,.35); }
  #barra-1 { top: 3cqh; } #barra-0 { top: 50cqh; padding-top: 1.4cqh; }
  .barra .avatar { width: 8cqh; height: 8cqh; margin: -.6cqh 0; }
  .barra .nome { font-size: 2.2cqh; } .barra .sub { font-size: 1.5cqh; }
  .estrelas { margin-left: 0; width: 100%; justify-content: space-between; }
  .estrelas img { width: 4.4cqh; height: 4.4cqh; }
  .mao-op { position: absolute; top: -3cqh; left: 50%; transform: translateX(-50%); margin: 0; }
  .mao-op span { width: 7cqh; height: 10.5cqh; margin: 0 -1.4cqh; }
  .ativo, .banco { position: absolute; margin: 0 !important; }
  #ativo-1 { left: 34cqw; top: 5cqh; } #ativo-0 { left: 34cqw; top: 43cqh; }
  #banco-1 { left: 49cqw; top: 7cqh; } #banco-0 { left: 49cqw; top: 50cqh; }
  .ativo .carta, .ativo .vazio { width: calc(31cqh * 2 / 3); }
  .banco { gap: 3.4cqw; }
  .banco .carta, .banco .vazio { width: calc(21cqh * 2 / 3); }
  .meio { position: absolute; right: 1.6cqw; top: 3cqh; bottom: 4cqh; width: 14cqw; height: auto; margin: 0; padding: 0;
    flex-direction: column; justify-content: flex-start; gap: 3cqh; }
  .ambiente { width: 100%; flex-direction: column; text-align: center; font-size: 1.6cqh; }
  .ambiente img { width: 9cqw; }
  .turno { flex: none; font-size: 3cqh; margin-top: 6cqh; }
  #btn-fim { font-size: 2cqh; padding: 1.4cqh 2cqw; margin-top: auto; }
  .energia { right: calc(1.6cqw + 7cqw - 5cqh); bottom: 15cqh; width: 10cqh; height: 10cqh; }
  .energia small { bottom: -2.6cqh; font-size: 1.5cqh; }
  .energia .prox i { top: -2.2cqh; font-size: 1.4cqh; }
  .icone-log { left: 1.6cqw; bottom: 3cqh; width: 6cqh; height: 6cqh; font-size: 2.8cqh; }
  .mao { position: absolute; left: 0; right: 0; bottom: 0; height: 0; margin: 0; }
  .mao .carta { width: calc(20cqh * 2 / 3); bottom: 2.4cqh; transition: transform .25s, bottom .2s, scale .2s; }
  .mao .carta:hover { bottom: 3cqh; scale: 1.3; z-index: 50 !important; }
  .modal { flex-direction: row; gap: 4cqw; }
  .modal .grande { width: calc(80cqh * 2 / 3); }
  .acoes { width: 30cqw; }
  .acao { font-size: 2.2cqh; padding: 1.6cqh 1.4cqw; }
  .acao .custo span { width: 3.4cqh; height: 3.4cqh; }
  .acao .dano { font-size: 3cqh; }
  .fechar { font-size: 4cqh; }
  .painel-log { left: auto; right: 0; top: 0; bottom: 0; width: 28cqw; height: auto; border-radius: 0; border-top: 0; border-left: 2px solid #d8a54a; }
  .painel-topo { font-size: 2.4cqh; } #log { font-size: 1.8cqh; }
  .dica { top: 37cqh; left: 30cqw; right: 30cqw; font-size: 2cqh; }
  .toast { top: 1.4cqh; left: 30cqw; right: 30cqw; font-size: 1.8cqh; }
  .aviso { font-size: 7cqh; } .aviso small { font-size: 2.6cqh; } .aviso .btn { font-size: 2.6cqh; }
  .moeda-palco { width: 26cqh; height: 26cqh; }
  .ativo .orbes span { width: 4.2cqh; height: 4.2cqh; }
  .banco .orbes span { width: 2.9cqh; height: 2.9cqh; }
  .orbes .mais { font-size: 2.4cqh; } .banco .orbes .mais { font-size: 1.8cqh; }
  .dano-flutuante { font-size: 5cqh; }
  .status { top: -1.6cqh; } .ativo .status img { width: 4.6cqh; height: 4.6cqh; } .banco .status img { width: 3.2cqh; height: 3.2cqh; } .status .guarda { font-size: 1.6cqh; }
  .inicio { background: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,.3), rgba(0,0,0,.85)), url(img/mesa_pc.jpg) center/cover; gap: 2.4cqh; }
  .logo img { width: 44cqh; } .logo h1 { font-size: 10cqh; }
  .escolha-titulo { font-size: 3cqh; }
  .baralhos { gap: 4cqh; }
  .baralho img { width: 22cqh; } .baralho b { font-size: 2.4cqh; } .baralho small { font-size: 1.8cqh; }
  #btn-jogar { font-size: 3.4cqh; min-width: 30cqh; }
  .fim-avatar { width: 24cqh !important; height: 24cqh !important; }
  .fim-titulo { font-size: 8cqh; }
  .fim-placar span { font-size: 2.4cqh; width: 7cqh; }
  .fim-placar .estrelas img { width: 5cqh; height: 5cqh; }
}

/* ===== menu, pacotes, coleção e baralho (07/11) ===== */
.inicio { justify-content: flex-start; }
.tela-menu { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 2.4cqh;
  padding: 3cqh calc(4 * var(--u)) 2cqh; }
#tela-menu { justify-content: center; gap: 4cqh; }
.menu { display: flex; flex-direction: column; gap: 1.6cqh; width: calc(70 * var(--u)); }
.menu-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; --h: calc(17 * var(--u)); height: var(--h); box-sizing: border-box;
  /* a faixa da arte fica um pouco abaixo do meio (enfeite em cima): empurra o texto ~5% pra baixo */
  padding: calc(var(--h) * .1) calc(9 * var(--u)) 0;
  background: url(img/btn_placa.png) center/100% 100% no-repeat; border: 0; filter: drop-shadow(0 4px 8px rgba(0,0,0,.8)); transition: transform .15s, filter .15s; }
.menu-item b { font-family: Cinzel, serif; font-weight: 800; font-size: calc(4 * var(--u)); line-height: 1.05; color: #ffd36b; text-shadow: 0 2px 0 #3a1f04; }
.menu-item small { font-size: calc(2.8 * var(--u)); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; color: #f6ead0; opacity: .9; min-height: 1em; }
.menu-item:hover { transform: scale(1.03); filter: drop-shadow(0 0 10px rgba(255,190,80,.7)); }
.topo-menu { display: flex; align-items: center; gap: calc(3 * var(--u)); width: 100%; flex: none; }
.topo-menu h2 { font-family: Cinzel, serif; font-size: calc(5.4 * var(--u)); color: #ffd36b; text-shadow: 0 2px 4px #000; flex: 1; }
.voltar { width: calc(10 * var(--u)); height: calc(10 * var(--u)); border-radius: 50%; border: 2px solid #d8a54a; background: rgba(20,12,6,.85);
  font-size: calc(6 * var(--u)); line-height: 1; color: #ffd36b; flex: none; }
.conta { font-family: Cinzel, serif; font-weight: 800; font-size: calc(5 * var(--u)); color: #e05a4a; }
.conta.ok { color: #7fe07a; }
.info-menu { font-size: calc(3.4 * var(--u)); color: #f6ead0; text-align: center; flex: none; }
.vazio-msg { font-size: calc(3.6 * var(--u)); text-align: center; margin-top: 4cqh; }
.baralhos { flex-wrap: wrap; justify-content: center; row-gap: 2cqh; }
.baralho:disabled { opacity: .25; cursor: default; }

/* pacotes */
.pacotes { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(4 * var(--u)); margin-top: 2cqh; }
.pacote, .abre-pacote { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1cqh; border: 0; background: none; padding: 0; }
.pacote-capa { width: calc(36 * var(--u)); aspect-ratio: 2 / 3.3; border-radius: calc(2 * var(--u)) calc(2 * var(--u)) calc(1 * var(--u)) calc(1 * var(--u));
  background: center 30% / cover no-repeat; box-shadow: 0 8px 18px rgba(0,0,0,.85), inset 0 0 0 3px rgba(255,211,107,.85), inset 0 0 40px rgba(0,0,0,.6);
  position: relative; overflow: hidden; }
.pacote-capa::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9%; background: repeating-linear-gradient(90deg, #d8a54a 0 6px, #8a5a14 6px 9px); opacity: .95; }
.pacote-capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.25) 45%, transparent 60%); background-size: 250% 100%; animation: brilho 3.5s infinite; }
.p-fogo .pacote-capa { box-shadow: 0 8px 18px rgba(0,0,0,.85), inset 0 0 0 3px #ffb347, 0 0 22px rgba(255,90,20,.45); }
.p-gelo .pacote-capa { box-shadow: 0 8px 18px rgba(0,0,0,.85), inset 0 0 0 3px #9fe3ff, 0 0 22px rgba(80,180,255,.45); }
.p-energia .pacote-capa { box-shadow: 0 8px 18px rgba(0,0,0,.85), inset 0 0 0 3px #d9a6ff, 0 0 22px rgba(170,90,255,.5); }
.pacote b, .abre-pacote b { font-family: Cinzel, serif; font-size: calc(3.4 * var(--u)); color: #ffd36b; text-shadow: 0 2px 4px #000; }
.pacote:not(:disabled):hover { transform: translateY(-1cqh); transition: transform .2s; }
.pacote:disabled { opacity: .35; filter: grayscale(.7); cursor: default; }
@keyframes brilho { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* abertura do pacote e detalhes */
.abertura { position: absolute; inset: 0; z-index: 40; background: rgba(5,3,2,.97); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqh; cursor: pointer; }
.abre-pacote { animation: treme-pacote .9s ease-in-out infinite; }
.abre-pacote .pacote-capa { width: calc(56 * var(--u)); }
.abre-pacote.rasga { animation: rasga .45s ease-in forwards; }
@keyframes treme-pacote { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
@keyframes rasga { to { transform: scale(1.25); opacity: 0; filter: brightness(3); } }
.abre-dica { font-size: calc(3.2 * var(--u)); color: #f6ead0; opacity: .75; }
.revela { width: calc(70 * var(--u)); border-radius: calc(3 * var(--u)); animation: vira .5s ease-out; }
.revela img { width: 100%; display: block; border-radius: calc(3 * var(--u)); }
@keyframes vira { from { transform: perspective(900px) rotateY(90deg) scale(.8); } to { transform: perspective(900px) rotateY(0) scale(1); } }
.revela-rotulo { display: flex; gap: calc(2 * var(--u)); min-height: 4cqh; align-items: center; }
.rar, .nova { font-family: Cinzel, serif; font-weight: 800; font-size: calc(3.6 * var(--u)); padding: .4cqh calc(2.4 * var(--u)); border-radius: 99px; }
.nova { background: #c0392b; color: #fff; }
.rar.r-fullart { background: linear-gradient(90deg, #6a2bd1, #c64be6); color: #fff; }
.rar.r-platina { background: linear-gradient(90deg, #8e9aa8, #eef3f8, #8e9aa8); color: #222; }
.rar.r-crystal { background: linear-gradient(90deg, #4fb6e8, #d8f6ff, #4fb6e8); color: #08304a; }
.rar.r-gold { background: linear-gradient(90deg, #a8740c, #ffe28a, #a8740c); color: #3a2400; }
.revela.r-fullart { box-shadow: 0 0 30px 6px rgba(190,90,255,.7); }
.revela.r-platina { box-shadow: 0 0 30px 6px rgba(230,240,255,.7); }
.revela.r-crystal { box-shadow: 0 0 34px 8px rgba(120,220,255,.8); }
.revela.r-gold { box-shadow: 0 0 40px 10px rgba(255,200,60,.9); animation: vira .5s ease-out, pulsa-ouro 1.6s .5s infinite; }
@keyframes pulsa-ouro { 50% { box-shadow: 0 0 60px 18px rgba(255,210,80,1); } }
.resumo-titulo { font-family: Cinzel, serif; font-size: calc(5 * var(--u)); color: #ffd36b; }
.resumo-grade { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(2.4 * var(--u)); max-width: calc(92 * var(--u)); }
.resumo-grade .mini { width: calc(28 * var(--u)); }

/* grade de cartas (coleção e montagem) */
.rolagem { flex: 1; min-height: 0; width: 100%; overflow-y: auto; padding: 0 calc(1 * var(--u)) 2cqh; }
.rolagem h3 { font-family: Cinzel, serif; font-size: calc(4 * var(--u)); color: #ffd36b; margin: 1.6cqh 0 1cqh; border-bottom: 1px solid rgba(216,165,74,.4); }
.grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(2 * var(--u)); }
.mini { position: relative; border: 0; padding: 0; background: none; border-radius: calc(1.4 * var(--u)); }
.mini img { width: 100%; display: block; border-radius: calc(1.4 * var(--u)); box-shadow: 0 3px 8px rgba(0,0,0,.8); }
.mini.falta img { filter: grayscale(.85) brightness(.3); box-shadow: 0 3px 8px rgba(0,0,0,.8) !important; }
.mini.r-fullart img { box-shadow: 0 0 10px 2px rgba(190,90,255,.8); }
.mini.r-platina img { box-shadow: 0 0 10px 2px rgba(230,240,255,.8); }
.mini.r-crystal img { box-shadow: 0 0 10px 3px rgba(120,220,255,.9); }
.mini.r-gold img { box-shadow: 0 0 12px 3px rgba(255,200,60,1); }
.mini .qtd { position: absolute; right: 4%; bottom: 3%; font-size: calc(2.8 * var(--u)); font-weight: 700; background: rgba(10,6,3,.85);
  border: 1px solid #d8a54a; border-radius: 99px; padding: 0 calc(1.2 * var(--u)); color: #ffd36b; }
.mini .nova { position: absolute; left: 50%; top: -1.4cqh; transform: translateX(-50%); font-size: calc(2.6 * var(--u)); }
.monta { opacity: .6; } .monta.no-baralho { opacity: 1; } .monta.no-baralho img { outline: 3px solid #7fe07a; }
.mais-menos { position: absolute; left: 0; right: 0; top: 38%; display: flex; justify-content: space-between; padding: 0 4%; }
.mais-menos button { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; border: 2px solid #d8a54a; background: rgba(10,6,3,.88);
  color: #ffd36b; font-size: calc(5 * var(--u)); line-height: 1; font-weight: 800; }
.mais-menos button:disabled { opacity: .25; cursor: default; }
.barra-acoes { display: flex; gap: calc(4 * var(--u)); flex: none; }
.btn.cinza { filter: grayscale(1) brightness(.85); }

@media (min-aspect-ratio: 1/1) {
  .menu { width: 56cqh; gap: 1.2cqh; }
  .grade { grid-template-columns: repeat(8, 1fr); }
  .pacote-capa { width: 28cqh; }
  .abre-pacote .pacote-capa { width: 34cqh; }
  .revela { width: 40cqh; }
  .resumo-grade { max-width: 92cqw; } .resumo-grade .mini { width: 21cqh; }
  .rolagem { max-width: 150cqh; }
}
.pacote-logo { position: absolute; left: 50%; bottom: 6%; width: 74%; transform: translateX(-50%); filter: drop-shadow(0 3px 6px rgba(0,0,0,.95)); z-index: 1; }
.p-guerreiros .pacote-capa { box-shadow: 0 8px 18px rgba(0,0,0,.85), inset 0 0 0 3px #ffb347, 0 0 24px rgba(255,120,30,.5); }
.p-misterios .pacote-capa { box-shadow: 0 8px 18px rgba(0,0,0,.85), inset 0 0 0 3px #d9a6ff, 0 0 24px rgba(170,90,255,.55); }
.pacote small { font-size: calc(2.8 * var(--u)); color: #f6ead0; opacity: .8; margin-top: -.6cqh; }
.mini.escolhe { cursor: pointer; transition: transform .15s; }
.mini.escolhe:not(:disabled):hover { transform: translateY(-.8cqh); }
.mini.usada img { outline: 4px solid #7fe07a; outline-offset: 2px; }
.mini .usando { position: absolute; left: 50%; top: -1.6cqh; transform: translateX(-50%); font-family: Cinzel, serif; font-weight: 800;
  font-size: calc(2.6 * var(--u)); background: #2f8a2a; color: #fff; padding: .2cqh calc(1.6 * var(--u)); border-radius: 99px; white-space: nowrap; }
.mini .troca-arte { position: absolute; left: 4%; top: 3%; font-size: calc(2.4 * var(--u)); font-weight: 700; background: rgba(60,20,90,.9);
  border: 1px solid #d9a6ff; border-radius: 99px; padding: 0 calc(1.2 * var(--u)); color: #f3dcff; }
.monta { cursor: pointer; }

/* abertura estilo Pocket (07/11): pacote rasga e revela a pilha de cartas já viradas */
.mesa-abertura { position: relative; width: calc(66 * var(--u)); aspect-ratio: 2 / 3; }
.pilha, .carta-pilha { position: absolute; inset: 0; }
.carta-pilha { border-radius: calc(3 * var(--u)); overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.85); transition: transform .38s ease-in, opacity .38s ease-in; }
.carta-pilha img { width: 100%; height: 100%; display: block; }
.carta-pilha.sai { transform: translateX(-130%) rotate(-18deg); opacity: 0; }
.carta-pilha .holo { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.carta-pilha.especial.na-frente .holo { opacity: 1; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.55) 42%, rgba(255,255,255,.1) 50%, transparent 62%) 0 0 / 260% 100%;
  animation: holo 1.8s ease-in-out infinite; }
.carta-pilha.r-gold.na-frente .holo { background-image: linear-gradient(115deg, transparent 25%, rgba(255,230,140,.7) 42%, rgba(255,255,255,.2) 50%, transparent 62%); }
.carta-pilha.r-crystal.na-frente .holo { background-image: linear-gradient(115deg, transparent 22%, rgba(160,240,255,.65) 40%, rgba(255,160,255,.35) 48%, transparent 62%); }
@keyframes holo { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.carta-pilha.na-frente.r-fullart { box-shadow: 0 0 34px 8px rgba(190,90,255,.75); }
.carta-pilha.na-frente.r-platina { box-shadow: 0 0 34px 8px rgba(230,240,255,.75); }
.carta-pilha.na-frente.r-crystal { box-shadow: 0 0 38px 10px rgba(120,220,255,.85); }
.carta-pilha.na-frente.r-gold { box-shadow: 0 0 44px 12px rgba(255,200,60,.95); animation: pulsa-ouro2 1.6s infinite; }
@keyframes pulsa-ouro2 { 50% { box-shadow: 0 0 64px 20px rgba(255,215,90,1); } }
.mesa-abertura .abre-pacote { position: absolute; inset: -4% -3%; z-index: 20; animation: treme-pacote 1.2s ease-in-out infinite; }
.mesa-abertura .abre-pacote .pacote-capa { width: 100%; height: 100%; aspect-ratio: auto; }
.pacote-capa.sem-tira::before { display: none; }
.abre-pacote .tira { position: absolute; left: 0; right: 0; top: 0; height: 9%; border-radius: calc(2 * var(--u)) calc(2 * var(--u)) 0 0;
  background: repeating-linear-gradient(90deg, #d8a54a 0 6px, #8a5a14 6px 9px); box-shadow: 0 2px 6px rgba(0,0,0,.6); }
.abre-pacote.rasga { animation: desce-pacote 1.1s ease-in forwards; }
.abre-pacote.rasga .tira { animation: voa-tira .55s ease-out forwards; }
@keyframes voa-tira { to { transform: translate(40%, -260%) rotate(18deg); opacity: 0; } }
@keyframes desce-pacote { 0%, 40% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(115%); opacity: 0; } }
@media (min-aspect-ratio: 1/1) { .mesa-abertura { width: 40cqh; } }

/* pacote desenhado (GPT, 07/11): imagem com transparência; rasgo em zigue-zague */
.pacote-img { position: relative; width: calc(38 * var(--u)); aspect-ratio: 520 / 847; }
.pacote-img > img.pacote-arte, .pacote-corpo, .pacote-tira { position: absolute; inset: 0; width: 100%; height: 100%; }
.pacote-corpo img.pacote-arte, .pacote-tira img.pacote-arte { position: absolute; inset: 0; width: 100%; height: 100%; }
.pacote-img .pacote-logo { position: absolute; left: 50%; bottom: 11%; width: 72%; transform: translateX(-50%); filter: drop-shadow(0 3px 6px rgba(0,0,0,.95)); }
.p-guerreiros .pacote-img { filter: drop-shadow(0 10px 16px rgba(0,0,0,.85)) drop-shadow(0 0 14px rgba(255,120,30,.45)); }
.p-misterios .pacote-img { filter: drop-shadow(0 10px 16px rgba(0,0,0,.85)) drop-shadow(0 0 14px rgba(170,90,255,.5)); }
.mesa-abertura .abre-pacote { position: absolute; inset: auto; left: -5%; top: -9.7%; width: 110%; z-index: 20; }
.mesa-abertura .abre-pacote .pacote-img { width: 100%; }
.abre-pacote.rasga .pacote-tira { animation: voa-tira2 .6s ease-out forwards; }
@keyframes voa-tira2 { 0% { transform: none; } 30% { transform: translate(2%, -4%) rotate(2deg); } 100% { transform: translate(35%, -60%) rotate(22deg); opacity: 0; } }
.abre-pacote.rasga { animation: desce-pacote2 1.1s ease-in forwards; }
@keyframes desce-pacote2 { 0%, 45% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(110%); opacity: 0; } }
@media (min-aspect-ratio: 1/1) { .pacote-img { width: 30cqh; } }

/* God Pack */
.abertura.god { background: radial-gradient(circle at 50% 45%, rgba(255,200,60,.45), rgba(120,60,0,.25) 40%, rgba(5,3,2,.95) 75%), #070402; overflow: hidden; }
.abertura.god::before { content: ""; position: absolute; inset: -50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255,215,90,.18) 0 6deg, transparent 6deg 18deg); animation: raios 12s linear infinite; }
@keyframes raios { to { transform: rotate(360deg); } }
.god-aviso { position: absolute; top: 4cqh; left: 0; right: 0; text-align: center; z-index: 30; font-family: Cinzel, serif; font-weight: 800;
  font-size: calc(11 * var(--u)); color: #ffe28a; text-shadow: 0 0 20px rgba(255,190,40,1), 0 4px 0 #6a3d00; animation: god-surge .8s ease-out; }
@keyframes god-surge { from { transform: scale(3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===== Meus baralhos + editor estilo Pocket (07/11) ===== */
.meus-baralhos { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(3 * var(--u)); padding-top: 1cqh; }
.caixa-baralho { display: flex; flex-direction: column; align-items: center; gap: .4cqh; border: 0; background: none; padding: 0; position: relative; }
.caixa-capa { width: 100%; aspect-ratio: 3 / 4; border-radius: calc(1.6 * var(--u)); overflow: hidden; position: relative;
  background: linear-gradient(160deg, #3a2410, #120a04); box-shadow: 0 6px 14px rgba(0,0,0,.85), inset 0 0 0 3px #8a5a14;
  display: grid; place-items: center; }
.caixa-capa img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.caixa-capa::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px #d8a54a, inset 0 -40px 30px -20px rgba(0,0,0,.7); }
.caixa-baralho.pronto .caixa-capa::after { box-shadow: inset 0 0 0 3px #7fe07a, inset 0 -40px 30px -20px rgba(0,0,0,.7); }
.caixa-capa span { font-size: calc(14 * var(--u)); color: #d8a54a; font-weight: 800; line-height: 1; }
.caixa-baralho.novo .caixa-capa { background: rgba(20,12,6,.6); box-shadow: inset 0 0 0 2px dashed #8a5a14; border: 2px dashed #8a5a14; }
.caixa-energia { position: absolute; top: 4%; right: 6%; width: 22%; filter: drop-shadow(0 2px 3px #000); }
.caixa-baralho b { font-family: Cinzel, serif; font-size: calc(3.2 * var(--u)); color: #ffd36b; text-align: center; line-height: 1.1; }
.caixa-baralho small { font-size: calc(2.8 * var(--u)); color: #f6ead0; opacity: .85; }
.caixa-baralho.pronto small { color: #7fe07a; opacity: 1; }

.tela-menu.editor { gap: 1.2cqh; padding-top: 2cqh; }
.ed-nome { flex: 1; min-width: 0; font-family: Cinzel, serif; font-weight: 800; font-size: calc(4.6 * var(--u)); color: #ffd36b;
  background: rgba(20,12,6,.7); border: 1px solid #8a5a14; border-radius: calc(1.4 * var(--u)); padding: .5cqh calc(2 * var(--u)); outline: none; }
.ed-nome:focus { border-color: #ffd36b; }
.ed-energia { display: flex; align-items: center; gap: calc(1.6 * var(--u)); flex: none; width: 100%; }
.ed-energia > span { font-family: Cinzel, serif; font-size: calc(3.2 * var(--u)); color: #f6ead0; margin-right: auto; }
.en-op { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; border: 2px solid #5a3a12; background: rgba(20,12,6,.8);
  display: grid; place-items: center; padding: 0; opacity: .55; }
.en-op img { width: 76%; } .en-op small { font-size: calc(2.4 * var(--u)); color: #f6ead0; font-weight: 700; }
.en-op.sel { opacity: 1; border-color: #ffd36b; box-shadow: 0 0 10px rgba(255,190,80,.8); }
.ed-espacos { display: grid; grid-template-columns: repeat(10, 1fr); gap: calc(.8 * var(--u)); width: 100%; flex: none;
  background: rgba(10,6,3,.55); border: 1px solid rgba(216,165,74,.35); border-radius: calc(1.6 * var(--u)); padding: calc(1.2 * var(--u)); }
.espaco { aspect-ratio: 2 / 3; border-radius: calc(.8 * var(--u)); border: 1.5px dashed rgba(216,165,74,.35); background: rgba(0,0,0,.25); padding: 0; position: relative; overflow: hidden; }
.espaco.cheio { border: 0; box-shadow: 0 2px 4px rgba(0,0,0,.8); cursor: pointer; }
.espaco img { width: 100%; height: 100%; object-fit: cover; display: block; }
.espaco.cheio:hover img { filter: brightness(.6); }
.selo-capa { position: absolute; top: 2%; left: 4%; font-style: normal; font-size: calc(2.4 * var(--u)); color: #ffd36b; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.ed-aviso { font-size: calc(2.8 * var(--u)); opacity: .85; margin: 0; }
.ed-barra { display: flex; align-items: center; gap: calc(1.2 * var(--u)); width: 100%; flex: none; flex-wrap: wrap; }
.ed-filtros { display: flex; gap: calc(1 * var(--u)); flex: 1; flex-wrap: wrap; }
.chip { height: calc(7.5 * var(--u)); min-width: calc(7.5 * var(--u)); padding: 0 calc(2 * var(--u)); border-radius: 99px; border: 1px solid #8a5a14;
  background: rgba(20,12,6,.8); color: #f6ead0; font-weight: 700; font-size: calc(2.8 * var(--u)); display: inline-flex; align-items: center; justify-content: center; }
.chip img { width: calc(5 * var(--u)); }
.chip.sel { border-color: #ffd36b; background: #5a3a12; color: #ffd36b; }
.acao-chip { background: #3a2410; color: #ffd36b; }
.ed-colecao { padding-top: .6cqh; }
.ed-grade { grid-template-columns: repeat(5, 1fr); gap: calc(1.6 * var(--u)); }
.ed-carta { cursor: pointer; }
.ed-carta.esgotada img { filter: grayscale(.8) brightness(.45); }
.ed-carta.usada-no img { outline: 2px solid #7fe07a; outline-offset: 1px; }
.ed-carta .info { position: absolute; top: 3%; right: 4%; width: calc(5.5 * var(--u)); height: calc(5.5 * var(--u)); border-radius: 50%;
  border: 1.5px solid #ffd36b; background: rgba(10,6,3,.85); color: #ffd36b; font-family: Georgia, serif; font-style: italic; font-weight: 700;
  font-size: calc(3 * var(--u)); line-height: 1; padding: 0; display: grid; place-items: center; }
#ed-excluir.confirma { filter: none; background: #8a1f14; color: #fff; }
.abertura .barra-acoes { justify-content: center; }

@media (max-aspect-ratio: 1/1) {
  .ed-espacos { grid-template-columns: repeat(10, 1fr); }
}
@media (min-aspect-ratio: 1/1) {
  .meus-baralhos { grid-template-columns: repeat(5, 1fr); max-width: 150cqh; margin: 0 auto; }
  .tela-menu.editor { max-width: 170cqh; margin: 0 auto; left: 0; right: 0; }
  .ed-espacos { grid-template-columns: repeat(15, 1fr); }
  .ed-grade { grid-template-columns: repeat(10, 1fr); }
}
.ed-aviso.pisca { animation: pisca-aviso .6s; color: #ffb38a; } @keyframes pisca-aviso { 0%,100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.orbes .o-terra { background: radial-gradient(circle at 35% 30%, #e6ffd0, #4caf3a 60%, #1d4a12); }
.avatar.terra { background-image: url(img/avatar_terra.png); }
.energia.verde { background: url(img/btn_aro.png) center/100% 100% no-repeat,
    radial-gradient(closest-side, #e6ffd0, #4caf3a 50%, #1d4a12 76%, transparent 78%) center/100% 100% no-repeat;
  filter: drop-shadow(0 0 10px rgba(110,220,80,.8)); }
/* ampulhetas */
.amp-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: calc(2 * var(--u)); flex: none; }
.amp-qtd { display: inline-flex; align-items: center; gap: calc(1 * var(--u)); font-family: Cinzel, serif; font-weight: 800; font-size: calc(4.4 * var(--u)); color: #ffd36b; }
.amp-qtd img, .fim-amp img { width: calc(8 * var(--u)); filter: drop-shadow(0 2px 4px #000); }
.amp-dica { font-size: calc(3 * var(--u)); color: #f6ead0; opacity: .85; width: 100%; text-align: center; }
.amp-barra .chip:disabled { opacity: .4; }
.fim-amp { display: inline-flex; align-items: center; gap: calc(1.5 * var(--u)); font-family: Cinzel, serif; font-weight: 800; font-size: calc(4.4 * var(--u)); color: #ffd36b; animation: surge .6s ease-out; }
@media (min-aspect-ratio: 1/1) { .amp-qtd img, .fim-amp img { width: 5cqh; } }

/* sagrado (07/11) */
.orbes .o-sagrado { background: radial-gradient(circle at 35% 30%, #fffbe6, #f2c94c 60%, #8a5a00); }
.avatar.sagrado { background-image: url(img/avatar_sagrado.png); }
.energia.dourado { background: url(img/btn_aro.png) center/100% 100% no-repeat,
    radial-gradient(closest-side, #fffbe6, #f2c94c 50%, #8a5a00 76%, transparent 78%) center/100% 100% no-repeat;
  filter: drop-shadow(0 0 10px rgba(255,210,90,.85)); }

/* físico + fusão (08/11) */
.orbes .o-fisico { background: radial-gradient(circle at 35% 30%, #f2f2f2, #9aa3ad 60%, #3a3f46); }
.energia.aco { background: url(img/btn_aro.png) center/100% 100% no-repeat,
    radial-gradient(closest-side, #f2f2f2, #9aa3ad 50%, #3a3f46 76%, transparent 78%) center/100% 100% no-repeat;
  filter: drop-shadow(0 0 10px rgba(200,210,225,.75)); }
.barra .extra { height: calc(11 * var(--u)); aspect-ratio: 2 / 3; border-radius: calc(.8 * var(--u)); flex: none; cursor: pointer;
  box-shadow: 0 0 0 2px #ffd36b, 0 0 10px rgba(255,200,80,.7); margin: calc(-1 * var(--u)) 0; }
@media (min-aspect-ratio: 1/1) { .barra .extra { height: 8cqh; } }
.espaco.extra-slot { border: 2px solid rgba(255,211,107,.8); box-shadow: 0 0 8px rgba(255,200,80,.5); display: grid; place-items: center; color: #ffd36b; }
.espaco.extra-slot small { font-size: calc(2.4 * var(--u)); font-weight: 700; }

/* morte (08/11) */
.orbes .o-morte { background: radial-gradient(circle at 35% 30%, #f4f1ea, #8f8a80 60%, #1c1a18); }
.avatar.morte { background-image: url(img/avatar_morte.png); }
.energia.osso { background: url(img/btn_aro.png) center/100% 100% no-repeat,
    radial-gradient(closest-side, #f4f1ea, #8f8a80 50%, #1c1a18 76%, transparent 78%) center/100% 100% no-repeat;
  filter: drop-shadow(0 0 10px rgba(200,220,235,.7)); }

/* Set Base (08/11): baralho de físico, 3 pacotes e a janela de escolher carta */
.avatar.fisico { background-image: url(img/avatar_fisico.png); }
.p-orshabaal .pacote-img { filter: drop-shadow(0 10px 16px rgba(0,0,0,.85)) drop-shadow(0 0 14px rgba(255,90,20,.5)); }
.p-oberon .pacote-img { filter: drop-shadow(0 10px 16px rgba(0,0,0,.85)) drop-shadow(0 0 14px rgba(255,210,90,.5)); }
.p-medusa .pacote-img { filter: drop-shadow(0 10px 16px rgba(0,0,0,.85)) drop-shadow(0 0 14px rgba(90,220,120,.45)); }
.escolha { display: flex; flex-direction: column; align-items: center; gap: 2cqh; max-width: 94cqw; }
.escolha-titulo { font-size: calc(4.4 * var(--u)); }
.escolha-grade { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4cqh; max-height: 62cqh; overflow-y: auto; padding: .5cqh; }
.escolha-carta { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 6px; transition: transform .15s; }
.escolha-carta:hover { transform: translateY(-.8cqh); }
.escolha-carta img { width: calc(20 * var(--u)); display: block; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.8); }
@media (orientation: landscape) { .escolha-titulo { font-size: 3.4cqh; } .escolha-carta img { width: 17cqh; } }

/* Vocação (08/11): botão do poder na barra e escolha antes da partida */
.barra .voc { margin-left: calc(1.5 * var(--u)); padding: calc(.8 * var(--u)) calc(2 * var(--u)); border-radius: 99px; border: 1px solid #e2b25a;
  background: linear-gradient(#5a3a12, #2a1a08); color: #ffe2a0; font-family: Cinzel, serif; font-size: calc(2.6 * var(--u)); cursor: pointer;
  box-shadow: 0 0 8px rgba(255,190,80,.45); flex: none; }
.barra .voc.usada { opacity: .35; box-shadow: none; filter: grayscale(.8); }
.vocacoes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8cqh 1cqw; max-width: 94cqw; }
.voc-titulo { color: #ffd36b; font-family: Cinzel, serif; font-size: calc(3 * var(--u)); margin-right: .5cqw; }
.voc-op { padding: .7cqh 1.6cqw; border-radius: 99px; border: 1px solid #6b5432; background: rgba(20,14,8,.8); color: #f6ead0;
  font-family: Cinzel, serif; font-size: calc(2.8 * var(--u)); cursor: pointer; }
.voc-op.sel { border-color: #ffd36b; color: #ffd36b; box-shadow: 0 0 10px rgba(255,200,90,.55); }
.voc-desc { width: 100%; text-align: center; margin: 0; color: #f6ead0; font-size: calc(2.6 * var(--u)); opacity: .9; }
@media (orientation: landscape) { .voc-titulo, .voc-op { font-size: 1.9cqh; } .voc-desc { font-size: 1.7cqh; } .barra .voc { font-size: 1.8cqh; } }
/* com a escolha de vocação, os baralhos da tela "Jogar" ficam um pouco menores pra tudo caber */
#tela-jogar { gap: 1.4cqh; overflow: hidden; } /* 22/11: quem rola é a .jogar-rolagem; o Play fica fora dela */
.jogar-rolagem { flex: 1; min-height: 0; width: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; align-items: center; gap: 1.4cqh; padding-bottom: 1cqh; }
.jogar-rolagem > * { flex-shrink: 0; }
#tela-jogar .baralho img { width: calc(19 * var(--u)); }
/* o botão Play fica sempre visível no rodapé; a lista rola por trás */
#tela-jogar #btn-jogar { position: static; flex: none; z-index: 3; margin-top: 0; filter: drop-shadow(0 -0.6cqh 1.2cqh rgba(0,0,0,.9)); }
@media (orientation: landscape) { #tela-jogar #btn-jogar { position: static; margin-top: 1cqh; filter: none; } #tela-jogar .baralho img { width: 17cqh; } #tela-jogar .baralho b { font-size: 2cqh; } #tela-jogar .baralho small { font-size: 1.5cqh; } }

/* ===== Tela inicial, conta, Premium e tutorial (09/11) — arte do GPT em img/ui_*.png ===== */
.inicio { background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,.15), rgba(0,0,0,.75)), url(img/ui_keyart.jpg) center/cover no-repeat, #120c08; }
@media (orientation: landscape) { .inicio { background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,.1), rgba(0,0,0,.7)), url(img/ui_keyart.jpg) center 22%/cover no-repeat, #120c08; } }
.topo-home { position: absolute; top: 1.6cqh; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 calc(3 * var(--u)); z-index: 2; }
.chip-premium, .chip-conta { display: flex; align-items: center; gap: calc(1.4 * var(--u)); padding: .5cqh calc(2.4 * var(--u)) .5cqh .5cqh; border-radius: 99px;
  border: 1px solid #e2b25a; background: linear-gradient(rgba(60,30,10,.85), rgba(20,10,5,.9)); color: #ffe2a0; font-family: Cinzel, serif;
  font-size: calc(3 * var(--u)); cursor: pointer; box-shadow: 0 0 12px rgba(0,0,0,.6); }
.chip-premium img, .chip-conta img { width: calc(8 * var(--u)); height: calc(8 * var(--u)); object-fit: contain; }
.menu-item.primario { background-image: url(img/ui_btn_primario.png); }
.menu-item.secundario { background-image: url(img/ui_btn_secundario.png); --h: calc(17 * var(--u)); }
.menu-item.secundario b { color: #e8f1ff; text-shadow: 0 2px 0 #0b1830; font-size: calc(3.5 * var(--u)); }
.menu-item.curto { width: 70%; align-self: center; --h: calc(13 * var(--u)); }
.menu-par { display: flex; gap: calc(2 * var(--u)); } .menu-par .menu-item { flex: 1; min-width: 0; padding-left: calc(6 * var(--u)); padding-right: calc(6 * var(--u)); }
.menu-item b { letter-spacing: .03em; }
.btn { background-image: url(img/ui_btn_primario.png); }
.btn.cinza { background-image: url(img/ui_btn_secundario.png); }
.relogio-pacote { margin: -1cqh 0 0; font-family: Cinzel, serif; color: #ffd36b; font-size: calc(3.4 * var(--u)); font-variant-numeric: tabular-nums; text-shadow: 0 2px 4px #000; }

/* painel (conta / Premium) */
.painel-ui { --w: min(88cqw, calc(86 * var(--u))); width: var(--w); box-sizing: border-box; flex: 1; min-height: 0; overflow-y: auto;
  /* a moldura vai no border-image (fatias na escala da largura): o conteúdo fica sempre dentro dela, mesmo rolando */
  border-style: solid; border-color: transparent; border-width: calc(var(--w) * 130 / 640) calc(var(--w) * 64 / 640) calc(var(--w) * 130 / 640);
  border-image: url(img/ui_painel.png) 130 64 130 fill / 1 / 0 stretch; padding: calc(var(--w) * .01) calc(var(--w) * .05) calc(var(--w) * .02);
  display: flex; flex-direction: column; gap: 1.4cqh; color: #f6ead0; }
.painel-ui label { display: flex; flex-direction: column; gap: .5cqh; font-size: calc(2.9 * var(--u)); color: #e8d7b5; }
.painel-ui input { font: inherit; font-size: calc(3.3 * var(--u)); padding: 1cqh calc(2 * var(--u)); border-radius: 8px; border: 1px solid #8a6a3c;
  background: rgba(10,6,3,.75); color: #fff4da; outline: none; }
.painel-ui input:focus { border-color: #ffd36b; box-shadow: 0 0 8px rgba(255,200,90,.5); }
.botao-ui { font-family: Cinzel, serif; font-weight: 800; font-size: calc(3.6 * var(--u)); color: #fff4da; border: 0; cursor: pointer; padding: 1.6cqh calc(4 * var(--u));
  background: url(img/ui_btn_primario.png) center/100% 100% no-repeat; filter: drop-shadow(0 4px 8px rgba(0,0,0,.8)); }
.botao-ui.secundario { background-image: url(img/ui_btn_secundario.png); color: #e8f1ff; }
.botao-ui:disabled { opacity: .4; cursor: default; }
.botao-ui:not(:disabled):hover { filter: drop-shadow(0 0 10px rgba(255,190,80,.7)); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: calc(2 * var(--u)); padding: 1.3cqh; border-radius: 10px; border: 0;
  background: #fff; color: #222; font-weight: 700; font-size: calc(3.3 * var(--u)); cursor: pointer; }
.btn-google .g { font-weight: 800; color: #4285f4; font-size: calc(4 * var(--u)); }
.ou { display: flex; align-items: center; gap: 2cqw; color: #b9a27a; font-size: calc(2.8 * var(--u)); }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: #6b5432; }
.link-ui { background: none; border: 0; color: #ffd36b; text-decoration: underline; cursor: pointer; font-size: calc(3 * var(--u)); }
.erro-form { margin: 0; min-height: 1em; color: #ff8a7a; font-size: calc(2.8 * var(--u)); }
.texto-ui { margin: 0; font-size: calc(3.1 * var(--u)); line-height: 1.35; }
.mini-ui { margin: 0; font-size: calc(2.6 * var(--u)); opacity: .75; text-align: center; }
.aviso-proto { margin: .5cqh 0 0; font-size: calc(2.5 * var(--u)); color: #ffcf7a; text-align: center; opacity: .85; }
.perfil-topo { display: flex; align-items: center; gap: calc(3 * var(--u)); }
.perfil-topo img { width: calc(22 * var(--u)); } .perfil-topo b { font-family: Cinzel, serif; font-size: calc(4.4 * var(--u)); color: #ffd36b; display: block; }
.perfil-topo small { opacity: .75; font-size: calc(2.8 * var(--u)); }
.avatares-ui { display: flex; flex-wrap: wrap; gap: calc(1.6 * var(--u)); justify-content: center; }
.avatares-ui .av { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; opacity: .55; transition: .15s; }
.avatares-ui .av img { width: calc(15 * var(--u)); display: block; } .avatares-ui .av.sel { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 0 8px #ffd36b); }
.premium-selo { width: calc(26 * var(--u)); align-self: center; filter: drop-shadow(0 0 16px rgba(255,210,120,.7)); }
.premium-preco { margin: 0; text-align: center; font-family: Cinzel, serif; font-size: calc(9 * var(--u)); color: #ffd36b; }
.premium-preco small { font-size: calc(3.4 * var(--u)); color: #f6ead0; }
.premium-lista { margin: 0; padding-left: 1.2em; font-size: calc(3.4 * var(--u)); line-height: 1.6; }
@media (orientation: landscape) {
  .painel-ui { --w: 60cqh; }
  .painel-ui label, .ou, .link-ui, .texto-ui { font-size: 1.9cqh; } .painel-ui input, .btn-google { font-size: 2.1cqh; }
  .botao-ui { font-size: 2.3cqh; } .mini-ui, .aviso-proto, .erro-form { font-size: 1.6cqh; }
  .chip-premium, .chip-conta { font-size: 1.9cqh; } .chip-premium img, .chip-conta img { width: 5cqh; height: 5cqh; }
  .relogio-pacote { font-size: 2.2cqh; } .premium-preco { font-size: 6cqh; } .premium-preco small, .premium-lista { font-size: 2.2cqh; }
  .avatares-ui .av img { width: 9cqh; } .perfil-topo img { width: 13cqh; } .perfil-topo b { font-size: 2.8cqh; } .perfil-topo small { font-size: 1.7cqh; }
  .menu-item.secundario b { font-size: 2.1cqh; } .menu-item.secundario { --h: 9cqh; } .menu-item.curto { --h: 7cqh; }
}

/* tutorial: a caixa tem a proporção do painel (640x952) e tudo dentro é medido pela largura dela,
   então o texto fica sempre dentro da moldura (laterais ~9%, topo ~17%, base ~16% da largura) */
.tutorial { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.78); }
.tut-caixa { position: relative; container-type: inline-size; --w: min(94cqw, 64cqh); width: var(--w); aspect-ratio: 640 / 952; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3cqw;
  padding: calc(var(--w) * .18) calc(var(--w) * .115) calc(var(--w) * .17); background: url(img/ui_painel.png) center/100% 100% no-repeat; color: #f6ead0; text-align: center; }
.tut-img { width: 100%; max-height: 54cqw; max-width: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.8)); border-radius: 8px; }
.tut-texto { width: 100%; min-width: 0; overflow-wrap: break-word; }
.tut-texto h3 { margin: 0 0 1.5cqw; font-family: Cinzel, serif; color: #ffd36b; font-size: 6.6cqw; line-height: 1.15; text-wrap: balance; }
.tut-texto p { margin: 0; font-size: 5.2cqw; line-height: 1.35; text-wrap: pretty; } .tut-texto b { color: #ffd36b; }
.tut-texto .tut-passo { opacity: .6; font-size: 3.8cqw; margin-bottom: 1cqw; }
.tut-botoes { display: flex; gap: 3cqw; width: 100%; justify-content: center; }
.tut-botoes .botao-ui { flex: 1 1 0; min-width: 0; max-width: 34cqw; font-size: 5cqw; padding: 2.8cqw 2cqw; }
.tut-fechar { position: absolute; top: 10.5%; right: 9.5%; background: none; border: 0; color: #ffd36b; font-size: 6cqw; cursor: pointer; }

/* avatar por vocação na batalha */
.avatar.voc-knight { background-image: url(img/avatar_knight.png); } .avatar.voc-paladin { background-image: url(img/avatar_paladin.png); }
.avatar.voc-sorcerer { background-image: url(img/avatar_sorcerer.png); } .avatar.voc-druid { background-image: url(img/avatar_druid.png); }
.avatar.voc-monk { background-image: url(img/avatar_monk.png); }
.voc-op { display: inline-flex; align-items: center; gap: .6cqw; padding-left: .4cqw; }
.voc-op img { width: calc(6 * var(--u)); height: calc(6 * var(--u)); }
@media (orientation: landscape) { .voc-op img { width: 3.6cqh; height: 3.6cqh; } }
/* avatares novos (09/11): força recarregar */
.avatar.voc-knight { background-image: url(img/avatar_knight.png?v=2); } .avatar.voc-paladin { background-image: url(img/avatar_paladin.png?v=2); } .avatar.voc-druid { background-image: url(img/avatar_druid.png?v=2); }
.avatar.voc-monk { background-image: url(img/avatar_monk.png?v=2); }

/* prévia grande da carta ao passar o mouse (computador) */
@media (min-aspect-ratio: 1/1) and (hover: hover) and (pointer: fine) {
  .previa { display: block; position: absolute; left: 1.2cqw; top: 50%; height: 68cqh; translate: 0 -50%; border-radius: 2.2cqh; z-index: 8;
    pointer-events: none; opacity: 0; transition: opacity .12s; box-shadow: 0 1.4cqh 4cqh rgba(0,0,0,.85); }
  .previa.mostra { opacity: 1; }
}

/* aviso de login obrigatório (jogar / abrir pacotes) */
.aviso-login { font-size: calc(3 * var(--u)); margin: 0 0 1.4em; padding: .7em 1em; border-radius: .6em; text-align: center; font-weight: 700; color: #1b1206;
  background: linear-gradient(#ffd36b, #e2a93c); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
@media (min-aspect-ratio: 1/1) { .aviso-login { font-size: 1.9cqh; } }

/* login: senha com olho, lembrar, formulário */
.form-conta { display: contents; }
.senha-caixa { position: relative; display: block; }
.senha-caixa input { width: 100%; padding-right: 3em !important; }
.olho { position: absolute; right: .35em; top: 50%; translate: 0 -50%; background: none; border: 0; padding: .3em; color: #d8b778; cursor: pointer; display: grid; place-items: center; }
.olho:hover { color: #ffd36b; }
.olho svg { width: 1.3em; height: 1.3em; }
.painel-ui label.lembrar { display: flex; flex-direction: row; align-items: center; gap: .6em; cursor: pointer; }
.lembrar input { width: 1.1em !important; height: 1.1em; padding: 0 !important; margin: 0; accent-color: #e2a93c; transform: scale(1.25); }

/* tutorial: pular */
.tut-pular { background: none; border: 0; color: #d8c49a; font-family: inherit; font-size: 4cqw; text-decoration: underline; cursor: pointer; opacity: .85; margin-top: -1cqw; }
.tut-pular:hover { color: #ffd36b; opacity: 1; }
.ic-share { display: inline-block; font-weight: 700; color: #ffd36b; }

/* coleção: progresso por raridade e etiqueta da versão */
.col-progresso { display: flex; flex-wrap: wrap; gap: calc(1.4 * var(--u)); margin: .6cqh 0 .4cqh; }
.chip-rar { position: relative; flex: 1 1 calc(30 * var(--u)); min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .2cqh;
  padding: .7cqh calc(2 * var(--u)) 1.3cqh; border-radius: calc(1.6 * var(--u)); border: 1px solid rgba(216,165,74,.35); background: rgba(20,12,6,.75); color: #f2e4c8; cursor: pointer; overflow: hidden; text-align: left; }
.chip-rar b { font-family: Cinzel, serif; font-size: calc(2.8 * var(--u)); }
.chip-rar span { font-size: calc(2.6 * var(--u)); opacity: .85; font-variant-numeric: tabular-nums; }
.chip-rar i { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--p); background: #e2b25a; }
.chip-rar.c-fullart i { background: #b46cff; } .chip-rar.c-platina i { background: #dfe8f2; } .chip-rar.c-crystal i { background: #6fd0ff; } .chip-rar.c-gold i { background: #ffcc3c; }
.chip-rar.sel { border-color: #ffd36b; box-shadow: 0 0 10px rgba(255,200,90,.45); background: rgba(60,38,14,.9); }
.chip-rar.completo b::after { content: " ✓"; color: #7be08a; }
.rolagem h3 small { font-family: "Alegreya Sans", sans-serif; font-size: .7em; color: #c9b48c; font-weight: 500; margin-left: .4em; }
.mini .tag-rar { position: absolute; left: 4%; top: 3%; font-size: calc(2 * var(--u)); font-weight: 700; padding: .1em .45em; border-radius: 99px; color: #120c08; background: #ccc; }
.mini .t-fullart { background: #c58bff; } .mini .t-platina { background: #e6eef6; } .mini .t-crystal { background: #8fdcff; } .mini .t-gold { background: #ffd04a; }
.mini.falta .tag-rar { opacity: .75; }

/* zoom da coleção */
#colecao-grade .grade { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.zoom-col { margin-left: auto; display: flex; gap: calc(1.2 * var(--u)); }
.zoom-col button { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; border: 1px solid rgba(216,165,74,.6); background: rgba(20,12,6,.8);
  color: #ffd36b; font-size: calc(5 * var(--u)); line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.zoom-col button:disabled { opacity: .35; cursor: default; }
#colecao-grade { touch-action: pan-y; }

/* carta em tela cheia */
.det-carta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 1.2cqh; padding: 1.4cqh calc(3 * var(--u)) 1.6cqh; cursor: default; }
.det-topo { width: 100%; display: flex; align-items: center; justify-content: center; position: relative; min-height: 5cqh; }
.det-fechar { position: absolute; right: 0; top: 50%; translate: 0 -50%; background: none; border: 0; color: #ffd36b; font-size: calc(6 * var(--u)); cursor: pointer; }
.det-palco { flex: 1; min-height: 0; width: 100%; position: relative; align-self: stretch; } /* sem container query: em alguns celulares o palco "size" media 0 e a carta sumia */
.det-grande { position: absolute; top: 50%; left: 50%; translate: -50% -50%; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: calc(2.4 * var(--u)); box-shadow: 0 1.4cqh 4cqh rgba(0,0,0,.85); }
.det-grande.falta { filter: grayscale(.85) brightness(.35); }
.det-info { color: #e8d7b5; font-size: calc(3.2 * var(--u)); }
.det-versoes { display: flex; gap: calc(1.6 * var(--u)); justify-content: center; flex-wrap: wrap; }
.det-v { position: relative; width: calc(15 * var(--u)); padding: 0; border: 2px solid transparent; border-radius: calc(1.4 * var(--u)); background: none; cursor: pointer; }
.det-v img { width: 100%; display: block; border-radius: calc(1.2 * var(--u)); }
.det-v.falta img { filter: grayscale(.85) brightness(.35); }
.det-v span { display: block; text-align: center; font-size: calc(2.3 * var(--u)); color: #e8d7b5; margin-top: .3cqh; }
.det-v.sel { border-color: #ffd36b; box-shadow: 0 0 12px rgba(255,200,90,.7); }
@media (min-aspect-ratio: 1/1) {
  .det-carta { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "topo topo" "palco versoes" "info versoes" "barra versoes"; column-gap: 3cqh; row-gap: 1.2cqh; padding: 1.4cqh 4cqw 2cqh; }
  .det-topo { grid-area: topo; } .det-palco { grid-area: palco; } .det-info { grid-area: info; text-align: center; }
  .det-carta .barra-acoes { grid-area: barra; } .det-versoes { grid-area: versoes; flex-direction: column; flex-wrap: nowrap; justify-content: center; overflow-y: auto; }
  .det-info { font-size: 2cqh; } .det-v { width: 9cqh; } .det-v span { font-size: 1.5cqh; }
  .zoom-col button { width: 5cqh; height: 5cqh; font-size: 3cqh; }
}

/* mão: imagem não pode ser arrastada pelo navegador (no PC isso cancelava o arrastar do jogo) */
.mao .carta img, .energia img { -webkit-user-drag: none; user-select: none; pointer-events: none; }

/* jogada da IA (item, NPC, ambiente, equipamento) aparece grande no meio */
.jogada-ia { display: flex; flex-direction: column; align-items: center; gap: 1.6cqh; }
.jogada-ia img { width: calc(46 * var(--u)); max-height: 56cqh; object-fit: contain; border-radius: calc(2 * var(--u)); box-shadow: 0 1cqh 4cqh rgba(0,0,0,.9); animation: entraIA .35s ease-out; }
@keyframes entraIA { from { transform: scale(.6) translateY(-6cqh); opacity: 0; } }
@media (min-aspect-ratio: 1/1) { .jogada-ia img { width: auto; height: 52cqh; } }
.fim-motivo { font-size: calc(3.4 * var(--u)); color: #e8d7b5; margin-top: -.6cqh; }
@media (min-aspect-ratio: 1/1) { .fim-motivo { font-size: 2.2cqh; } }
.jogada-ia .aviso-texto { opacity: 1; animation: none; font-size: calc(6 * var(--u)); }
@media (min-aspect-ratio: 1/1) { .jogada-ia .aviso-texto { font-size: 3.4cqh; } }
.jogada-ia.voc-ia img { width: calc(34 * var(--u)); border-radius: 50%; }
@media (min-aspect-ratio: 1/1) { .jogada-ia.voc-ia img { width: auto; height: 30cqh; } }
.jogada-ia .aviso-texto small { display: block; max-width: calc(80 * var(--u)); margin: .6cqh auto 0; }
/* carta que a IA acabou de mexer: brilho por um instante */
.carta.ia-mexeu { animation: iaMexeu 1.1s ease-out; }
@keyframes iaMexeu { 0%, 60% { box-shadow: 0 0 0 3px #ff6b5a, 0 0 22px 6px rgba(255,90,70,.85); } 100% { box-shadow: none; } }
/* tokens: quanto cada um vale, sempre à vista */
.amp-qtd > span { display: flex; flex-direction: column; line-height: 1; }
.amp-qtd small { font-family: "Alegreya Sans", sans-serif; font-weight: 700; font-size: calc(2.6 * var(--u)); color: #f6ead0; margin-top: .3cqh; }
.amp-explica { width: 100%; text-align: center; font-size: calc(2.9 * var(--u)); color: #e8d7b5; line-height: 1.3; }
.amp-explica b { color: #ffd36b; }
.fim-amp small { display: block; width: 100%; font-size: .55em; opacity: .85; margin-top: .4cqh; }
.fim-amp { flex-wrap: wrap; justify-content: center; }
@media (min-aspect-ratio: 1/1) { .amp-qtd small { font-size: 1.5cqh; } .amp-explica { font-size: 1.7cqh; } }
.pacote-aviso { display: inline-block; padding: .6cqh calc(3 * var(--u)); border-radius: 99px; background: rgba(120,20,10,.85); border: 1px solid #ffb36b; color: #fff3dc; font-weight: 700; }

/* ---------- progressão (11/11): Desafios Solo e Missões ---------- */
#menu-missoes.alerta b::after { content: " •"; color: #ff6b4a; }
.desafios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4cqh calc(2.4 * var(--u)); width: 100%; overflow-y: auto; padding: 1.6cqh calc(2 * var(--u)) 2cqh; /* 23/11: topo com folga pro selo Boosted não ser cortado */ box-sizing: border-box; flex: 1; min-height: 0; align-content: start; }
.desafio { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5cqh; background: rgba(20,12,6,.7); border: 1px solid #6b5432; border-radius: calc(2 * var(--u)); padding: 1cqh calc(1.4 * var(--u)); cursor: pointer; }
.desafio > img:first-child, .desafio > .selo-boost + img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: calc(1.2 * var(--u)); box-shadow: 0 4px 10px rgba(0,0,0,.7); }
.desafio b { font-family: Cinzel, serif; font-size: calc(3 * var(--u)); color: #ffd36b; text-align: center; line-height: 1.1; }
.desafio .elem { position: absolute; top: 1.4cqh; right: calc(2 * var(--u)); width: calc(6 * var(--u)); filter: drop-shadow(0 1px 2px #000); }
.desafio.completo { border-color: #ffd36b; box-shadow: 0 0 12px rgba(255,200,90,.4); }
.pips { display: flex; gap: calc(1 * var(--u)); }
.pips i { width: calc(3.2 * var(--u)); height: calc(3.2 * var(--u)); border-radius: 50%; border: 1px solid #d8a54a; background: rgba(0,0,0,.5); }
.pips i.on { background: radial-gradient(circle at 35% 35%, #fff2b8, #e3a92f 60%, #8a5a14); }
.dica-silver { opacity: .75; font-size: .85em; }
.desafio-det { display: flex; flex-direction: column; gap: 2cqh; width: 100%; padding: 0 calc(3 * var(--u)); box-sizing: border-box; overflow-y: auto; }
.desafio-topo { display: flex; gap: calc(3 * var(--u)); align-items: center; }
.desafio-capa { width: calc(30 * var(--u)); border-radius: calc(1.6 * var(--u)); box-shadow: 0 6px 16px rgba(0,0,0,.8); }
.desafio-vitrine { display: flex; flex-direction: column; gap: .8cqh; min-width: 0; }
.desafio-vitrine span { color: #e8d7b5; font-size: calc(3 * var(--u)); }
.desafio-vitrine div { display: flex; flex-wrap: wrap; gap: calc(1 * var(--u)); }
.desafio-vitrine img { width: calc(11 * var(--u)); border-radius: calc(.8 * var(--u)); }
.niveis-desafio { display: flex; flex-direction: column; gap: 1cqh; }
.nivel-desafio { display: flex; align-items: center; gap: calc(2 * var(--u)); text-align: left; padding: 1.1cqh calc(3 * var(--u)); border-radius: calc(2 * var(--u));
  border: 1px solid #8a5a14; background: linear-gradient(90deg, rgba(60,36,10,.9), rgba(20,12,6,.85)); color: #f6ead0; cursor: pointer; }
.nivel-desafio.n4 { border-color: #c0392b; background: linear-gradient(90deg, rgba(90,20,14,.92), rgba(20,8,6,.85)); }
.nivel-desafio.feito { opacity: .7; }
.nivel-desafio.travado { opacity: .4; cursor: default; filter: grayscale(.8); }
.nivel-nome { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.nivel-nome b { font-family: Cinzel, serif; font-size: calc(4 * var(--u)); color: #ffd36b; }
.nivel-nome small { font-size: calc(2.8 * var(--u)); opacity: .85; }
.premio { display: inline-flex; align-items: center; gap: calc(.8 * var(--u)); font-family: Cinzel, serif; font-weight: 800; font-size: calc(3.6 * var(--u)); color: #fff; white-space: nowrap; }
.premio img { width: calc(6 * var(--u)); }
.premio.feito { color: #7fe07a; }
.jogar-desafio b { color: #ffd36b; font-family: Cinzel, serif; }
.jogar-desafio img { width: calc(4.4 * var(--u)); vertical-align: middle; }
.jogar-desafio small { opacity: .8; }
.fim-dia { display: block; color: #e8d7b5; font-size: calc(2.8 * var(--u)); margin: .6cqh 0; }
.missoes { width: 100%; overflow-y: auto; flex: 1; min-height: 0; padding: 0 calc(3 * var(--u)) 2cqh; box-sizing: border-box; display: flex; flex-direction: column; gap: 2cqh; }
.mis-grupo { display: flex; flex-direction: column; gap: .8cqh; }
.mis-grupo h3 { font-family: Cinzel, serif; color: #ffd36b; font-size: calc(4.2 * var(--u)); margin: 0; display: flex; align-items: baseline; gap: calc(2 * var(--u)); }
.mis-grupo h3 small { font-family: system-ui, sans-serif; font-size: calc(2.6 * var(--u)); color: #e8d7b5; opacity: .75; font-weight: 400; }
.missao { display: flex; align-items: center; gap: calc(2.4 * var(--u)); padding: .9cqh calc(2.4 * var(--u)); border-radius: calc(1.6 * var(--u)); background: rgba(20,12,6,.75); border: 1px solid #5a4428; }
.missao.pronta { border-color: #ffd36b; box-shadow: 0 0 10px rgba(255,200,90,.45); }
.missao.feita { opacity: .55; }
.mis-fotos { display: flex; gap: calc(.6 * var(--u)); flex: none; }
.mis-fotos img { width: calc(8 * var(--u)); border-radius: calc(.6 * var(--u)); }
.mis-fotos img.falta { filter: grayscale(1) brightness(.35); }
.mis-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3cqh; color: #f6ead0; }
.mis-txt b { font-size: calc(3.2 * var(--u)); }
.mis-txt small { font-size: calc(2.6 * var(--u)); opacity: .8; }
.barra-mis { height: .8cqh; border-radius: 99px; background: rgba(0,0,0,.6); overflow: hidden; }
.barra-mis i { display: block; height: 100%; background: linear-gradient(90deg, #8a5a14, #ffd36b); }
.mis-pegar { padding: .6cqh calc(3 * var(--u)); font-size: calc(3.4 * var(--u)); }
@media (orientation: landscape) {
  .desafios { grid-template-columns: repeat(6, 19cqh); justify-content: center; width: 96cqw; gap: 1.6cqh 1.6cqh; }
  #desafios-info, .jogar-desafio { font-size: 2.1cqh; } .desafio { padding: .8cqh .8cqh; }
  .desafio b { font-size: 1.9cqh; } .desafio .elem { width: 3.4cqh; } .pips i { width: 1.9cqh; height: 1.9cqh; }
  .desafio-det { flex-direction: row; width: 92cqw; align-items: flex-start; gap: 4cqw; }
  .desafio-topo { flex-direction: column; align-items: flex-start; width: 36cqh; flex: none; }
  .desafio-capa { width: 30cqh; } .desafio-vitrine span { font-size: 1.8cqh; } .desafio-vitrine img { width: 6.6cqh; }
  .niveis-desafio { flex: 1; } .nivel-nome b { font-size: 2.6cqh; } .nivel-nome small { font-size: 1.8cqh; } .premio { font-size: 2.4cqh; } .premio img { width: 3.6cqh; }
  .missoes { width: 80cqw; } .mis-grupo h3 { font-size: 2.8cqh; } .mis-grupo h3 small { font-size: 1.6cqh; }
  .mis-txt b { font-size: 2cqh; } .mis-txt small { font-size: 1.6cqh; } .mis-fotos img { width: 5cqh; } .mis-pegar { font-size: 2cqh; }
  .jogar-desafio img { width: 2.6cqh; } .fim-dia { font-size: 1.8cqh; }
}
/* baralhos iniciais com usos (11/11) */
.baralho.esgotado img { filter: grayscale(1) brightness(.45); }
#btn-jogar:disabled { filter: grayscale(1) brightness(.6); cursor: default; }
#jogar-dica .chip { display: inline-flex; vertical-align: middle; margin-left: calc(1 * var(--u)); height: auto; padding: .4cqh calc(2 * var(--u)); color: #ffd36b; background: rgba(40,24,8,.9); font-size: inherit; }
/* animações da mesa (11/11, animacao.js) */
.orbe-voando { position: fixed; z-index: 60; pointer-events: none; filter: drop-shadow(0 0 10px rgba(255,255,255,.9)); }
.carta.chegou { animation: chegou 1.2s ease-out; }
@keyframes chegou { 0%, 55% { box-shadow: 0 0 0 0 rgba(255,210,110,0); } 70% { box-shadow: 0 0 0 4px rgba(255,210,110,.9), 0 0 24px 6px rgba(255,190,80,.8); } 100% { box-shadow: 0 0 0 0 rgba(255,210,110,0); } }

.fim.empate .fim-titulo { color: #d8c9a0; text-shadow: 0 0 14px rgba(200,180,120,.6); }

/* ---------- amigos e partida online (11/11) ---------- */
.icone-desistir { display: none; bottom: calc(24cqh + 12 * var(--u)); font-size: calc(4.6 * var(--u)); color: #ffd36b; }
.icone-desistir.confirma { width: auto; padding: 0 calc(2.4 * var(--u)); border-radius: 99px; font-size: calc(3.2 * var(--u)); background: #6a1a10; }
body.modo-online .icone-desistir { display: grid; place-items: center; }
.menu-item.tem-novo small { color: #ffd36b; font-weight: 700; }
.amigos { display: flex; flex-direction: column; gap: calc(2.4 * var(--u)); padding: 1cqh calc(2 * var(--u)) 3cqh; color: #f6ead0; }
.amigos-codigo { display: flex; align-items: center; justify-content: center; gap: calc(2.4 * var(--u)); flex-wrap: wrap;
  background: rgba(40,24,8,.75); border: 1px solid #8a5a14; border-radius: calc(3 * var(--u)); padding: 1.4cqh calc(3 * var(--u)); }
.amigos-codigo small { width: 100%; text-align: center; color: #d8c49a; font-size: calc(3 * var(--u)); }
.amigos-codigo b { font-family: Cinzel, serif; font-size: calc(7 * var(--u)); letter-spacing: .18em; color: #ffd36b; user-select: all; }
.amigos-add { display: flex; gap: calc(2 * var(--u)); }
.amigos-add input { flex: 1; min-width: 0; height: calc(10 * var(--u)); border-radius: calc(2 * var(--u)); border: 1px solid #8a5a14; background: #1a1008; color: #ffd36b;
  font-size: calc(4.4 * var(--u)); text-transform: uppercase; letter-spacing: .15em; text-align: center; }
.amigos-tit { margin: 1cqh 0 0; font-family: Cinzel, serif; font-size: calc(4 * var(--u)); color: #ffd36b; }
.amigo { display: flex; align-items: center; gap: calc(2 * var(--u)); background: rgba(20,12,6,.7); border: 1px solid rgba(138,90,20,.6); border-radius: calc(2.4 * var(--u)); padding: .8cqh calc(2 * var(--u)); }
.amigo span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(3.8 * var(--u)); }
.amigo .avatar { width: calc(9 * var(--u)); height: calc(9 * var(--u)); flex: none; }
.amigo.pendente { opacity: .75; }
.amigo .chip.confirma { background: #6a1a10; color: #fff; }
.amigo-convite { background: linear-gradient(#5a3a10, #3a2408); border: 2px solid #ffd36b; border-radius: calc(3 * var(--u)); padding: 1.4cqh calc(3 * var(--u)); text-align: center; font-size: calc(3.8 * var(--u)); }
.amigo-botoes { display: flex; gap: calc(2 * var(--u)); justify-content: center; flex-wrap: wrap; margin-top: 1cqh; }
.amigo-espera { display: flex; flex-direction: column; align-items: center; gap: 1.4cqh; text-align: center; padding-top: 4cqh; font-size: calc(4 * var(--u)); }
.amigo-espera small { color: #d8c49a; font-size: calc(3 * var(--u)); }
.girando { width: calc(12 * var(--u)); height: calc(12 * var(--u)); border-radius: 50%; border: 3px solid rgba(255,211,107,.25); border-top-color: #ffd36b; animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.amigos-alerta { color: #ffd36b; }
.amigos-nota { font-size: calc(2.8 * var(--u)); color: #c8b48a; }
.online-decks .baralho { opacity: 1; cursor: pointer; }
.online-decks .baralho img { width: 100%; border-radius: calc(1.4 * var(--u)); }
.online-decks .baralho b { font-size: calc(3 * var(--u)); color: #f6ead0; }
.online-decks .baralho small { font-size: calc(2.5 * var(--u)); color: #c8b48a; }
.online-decks .baralho.esgotado { opacity: .4; }
.banner-convite { position: absolute; left: 50%; top: 1.4cqh; translate: -50% 0; z-index: 60; width: min(92%, 90cqh); display: flex; align-items: center; gap: calc(2 * var(--u)); flex-wrap: wrap; justify-content: center;
  background: linear-gradient(#5a3a10, #2a1a06); border: 2px solid #ffd36b; border-radius: calc(3 * var(--u)); padding: 1cqh calc(3 * var(--u)); color: #f6ead0; font-size: calc(3.6 * var(--u)); box-shadow: 0 1cqh 3cqh rgba(0,0,0,.7); }
@media (min-aspect-ratio: 1/1) {
  .amigos { max-width: 90cqh; margin: 0 auto; width: 100%; }
  .icone-desistir { bottom: 10cqh; }
}

.acao.equipado { align-items: center; }
.acao.equipado .acao-equip { width: calc(9 * var(--u)); border-radius: calc(.8 * var(--u)); flex: none; }
.acao.equipado span { display: flex; flex-direction: column; gap: .3cqh; min-width: 0; }
.acao.equipado small { font-size: calc(2.8 * var(--u)); opacity: .85; font-weight: 400; }

/* 11/11 (feedback): HP em cima da carta e maior, como a barrinha de vida em cima do bicho no Tibia; status vão para baixo */
.vida { bottom: auto; top: -2.5cqh; height: 2.2cqh; border-radius: 1.2cqh; border-width: 1.5px; z-index: 5; }
.vida b { font-size: 1.75cqh; line-height: 2.2cqh; font-weight: 800; letter-spacing: .02em; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 1px 1px #000; }
.banco .vida { top: -1.95cqh; bottom: auto; height: 1.7cqh; }
.banco .vida b { font-size: 1.3cqh; line-height: 1.7cqh; }
.status { top: auto; bottom: calc(-2.6 * var(--u)); }
@media (min-aspect-ratio: 1/1) { .status { top: auto; bottom: -1.8cqh; } }
@media (max-aspect-ratio: 1/1) { #ativo-0 { margin-top: 1.6cqh; } }

.mao .carta, .energia { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* zona de Raid (12/11): o boss esperando, visível para os dois jogadores */
.barra .raid-zona { position: relative; flex: none; cursor: pointer; margin: calc(-1 * var(--u)) 0; }
.barra .raid-zona img { height: calc(11 * var(--u)); aspect-ratio: 2 / 3; border-radius: calc(.8 * var(--u)); display: block;
  box-shadow: 0 0 0 2px #d2422e, 0 0 12px rgba(220,60,40,.85); animation: raid-pulsa 1.6s ease-in-out infinite; }
.barra .raid-zona b { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); white-space: nowrap;
  background: #8b1e1e; color: #fff; font-size: calc(1.7 * var(--u)); padding: 0 calc(.6 * var(--u)); border-radius: 4px; }
@media (min-aspect-ratio: 1/1) { .barra .raid-zona img { height: 8cqh; } .barra .raid-zona b { font-size: 1.4cqh; } }
@keyframes raid-pulsa { 50% { box-shadow: 0 0 0 2px #ff6a4d, 0 0 20px rgba(255,80,50,1); } }
.jogada-ia.raid-aviso .aviso-texto small { max-width: 34ch; display: block; margin: .4em auto 0; }

/* ===== 13/11: blessings no lugar das caveiras de pontuação ===== */
.estrelas .bless { display: inline-block; position: relative; line-height: 0; transition: filter .4s, opacity .4s, transform .4s; }
.estrelas .bless.off:not(.fb) { filter: drop-shadow(0 1px 2px #000); opacity: .95; } /* a arte apagada já vem cinza */
.estrelas .bless.parte { animation: bless-parte 1.3s ease-out; }
.estrelas .bless.parte::after { content: ""; position: absolute; inset: -40%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,240,190,.95), rgba(255,170,60,.5) 45%, transparent 70%); animation: bless-clarao 1.1s ease-out forwards; }
@keyframes bless-parte {
  0% { transform: scale(1.35); filter: brightness(2.2) drop-shadow(0 0 8px #ffd36b); opacity: 1; }
  18% { transform: scale(1.25) rotate(-9deg); }
  32% { transform: scale(1.2) rotate(8deg); }
  46% { transform: scale(1.1) rotate(-5deg); filter: brightness(1.4); }
  70% { transform: scale(.82); filter: grayscale(1) brightness(.6); }
  100% { transform: scale(1); }
}
@keyframes bless-clarao { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
/* celular: o nome nunca quebra (a raid saiu da barra) */
.barra .nome-bloco { min-width: 0; flex: 0 1 auto; }
.barra .nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-aspect-ratio: 1/1) { .barra .nome-bloco { flex: 1 1 auto; } }

/* ===== 13/11: "You are dead" (caixa de morte no estilo do Tibia, texto nosso) ===== */
.fim.morto { gap: 0; }
.tibia-janela { width: min(92cqw, calc(86 * var(--u))); background: #3c3c3c; text-align: left; font-family: Verdana, Tahoma, sans-serif;
  border: 2px solid; border-color: #7a7a7a #161616 #161616 #7a7a7a; box-shadow: 0 0 0 1px #000, 0 10px 40px rgba(0,0,0,.9); animation: surge .5s ease-out; }
.tibia-titulo { background: #262626; border-bottom: 1px solid #111; color: #d8d8d8; text-align: center; font-size: calc(3.4 * var(--u)); padding: .6em 0; letter-spacing: .02em; }
.tibia-corpo { padding: calc(3.4 * var(--u)) calc(4 * var(--u)) calc(2 * var(--u)); color: #dedede; display: flex; flex-direction: column; gap: calc(2.4 * var(--u)); }
.tibia-corpo .fim-motivo { color: #ff6a5a; font-weight: 700; font-size: calc(3.4 * var(--u)); }
.tibia-texto { font-size: calc(3 * var(--u)); line-height: 1.45; color: #cfcfcf; }
.tibia-corpo .fim-placar { align-self: center; }
.tibia-corpo .fim-placar span { color: #cfcfcf; font-family: Verdana, Tahoma, sans-serif; }
.tibia-botoes { display: flex; justify-content: flex-end; padding: calc(1.6 * var(--u)) calc(3 * var(--u)) calc(2.4 * var(--u)); border-top: 1px solid #555; }
.aviso .tibia-btn { margin: 0; min-width: 7em; font-family: Verdana, Tahoma, sans-serif; font-size: calc(3 * var(--u)); color: #e8e8e8; background: #555;
  border: 2px solid; border-color: #888 #222 #222 #888; border-radius: 0; padding: .45em 1.2em; box-shadow: none; text-shadow: none; filter: none; }
.aviso .tibia-btn:active { border-color: #222 #888 #888 #222; }
@media (min-aspect-ratio: 1/1) {
  .tibia-janela { width: 64cqh; } .tibia-titulo { font-size: 2.2cqh; } .tibia-corpo { padding: 2.4cqh 3cqh 1.4cqh; gap: 1.8cqh; }
  .tibia-corpo .fim-motivo { font-size: 2.4cqh; } .tibia-texto { font-size: 2cqh; } .aviso .tibia-btn { font-size: 2cqh; }
  .tibia-botoes { padding: 1.2cqh 2cqh 1.6cqh; }
}

/* ===== 13/11: RAID na mesa ===== */
/* zona própria ao lado do Ativo de quem fez o ritual: boss deitado (tamanho de carta do banco) + 3 velas */
.raid-zona { position: absolute; z-index: 3; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: calc(1.2 * var(--u)); }
.raid-carta { position: relative; width: calc(25.5 * var(--u)); aspect-ratio: 3 / 2; }
.raid-carta img { position: absolute; width: 66.667%; left: 16.667%; top: -25%; transform: rotate(-90deg); border-radius: calc(1.4 * var(--u));
  box-shadow: 0 0 0 2px #d2422e, 0 0 14px rgba(220,60,40,.85); animation: raid-pulsa 1.8s ease-in-out infinite; }
#raid-1 .raid-carta img { transform: rotate(90deg); }
.raid-velas { display: flex; gap: calc(3 * var(--u)); padding-top: calc(2.4 * var(--u)); }
.vela { position: relative; display: block; width: calc(2.2 * var(--u)); height: calc(5 * var(--u)); border-radius: 2px 2px 1px 1px;
  background: linear-gradient(90deg, #8f7f5c, #efe2c0 40%, #b7a47b); box-shadow: 0 2px 4px rgba(0,0,0,.8); }
.vela::before { content: ""; position: absolute; left: 50%; top: -12%; width: 1px; height: 18%; background: #2a1c10; }
.vela b { position: absolute; left: 50%; bottom: 100%; width: calc(2.2 * var(--u)); height: calc(3.6 * var(--u)); margin-left: calc(-1.1 * var(--u));
  border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; background: radial-gradient(ellipse at 50% 72%, #fffbe0 0 22%, #ffc23a 45%, #ff6a12 75%, transparent 78%);
  opacity: 0; transform: scale(.2); transform-origin: 50% 100%; transition: opacity .5s, transform .5s; }
.vela.acesa b { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 6px #ffa424) drop-shadow(0 0 14px rgba(255,120,20,.7)); animation: chama .7s ease-in-out infinite alternate; }
@keyframes chama { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1.08, 1.16) rotate(3deg); } }
/* celular: ao lado do Ativo, no espaço livre da esquerda */
#raid-0 { left: 3cqw; top: 51cqh; } #raid-1 { left: 3cqw; top: 23cqh; }
/* broadcast do servidor: texto vermelho no meio da tela, sem escurecer a mesa */
.broadcast { position: absolute; left: 4cqw; right: 4cqw; top: 40cqh; z-index: 70; pointer-events: none; text-align: center; opacity: 0;
  font-family: Verdana, Tahoma, sans-serif; font-weight: 700; font-size: calc(4 * var(--u)); line-height: 1.3; color: #f53b2b;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 6px #000; }
.broadcast.mostra { animation: broadcast 4.2s ease-out forwards; }
@keyframes broadcast { 0% { opacity: 0; transform: translateY(6px); } 7% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }
/* chegada do boss: a mesa treme de leve */
.tela.treme-raid { animation: treme-raid .85s ease-in-out; }
@keyframes treme-raid { 0%, 100% { translate: 0 0; } 15% { translate: -5px 2px; } 30% { translate: 5px -3px; } 45% { translate: -4px 3px; } 60% { translate: 3px -2px; } 75% { translate: -2px 1px; } }
/* meia-mesa com o cenário do boss: surge como névoa no ritual e some quando o boss cai */
.cenario-raid { position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none; opacity: 0; background: center/cover no-repeat; }
#cenario-1 { top: 0; height: 46cqh; -webkit-mask-image: radial-gradient(ellipse 34cqw 9cqh at 50% 100%, rgba(0,0,0,.25), #000); mask-image: radial-gradient(ellipse 34cqw 9cqh at 50% 100%, rgba(0,0,0,.25), #000); }
#cenario-0 { top: 46cqh; bottom: 0; -webkit-mask-image: radial-gradient(ellipse 34cqw 9cqh at 50% 0%, rgba(0,0,0,.25), #000); mask-image: radial-gradient(ellipse 34cqw 9cqh at 50% 0%, rgba(0,0,0,.25), #000); }
.cenario-raid.ativo { animation: nevoa-surge 2.8s ease-out forwards; }
.cenario-raid.some { animation: nevoa-some 2.2s ease-in forwards; }
@keyframes nevoa-surge { 0% { opacity: 0; filter: blur(22px) brightness(1.8) saturate(.3); transform: scale(1.06); } 45% { opacity: .55; filter: blur(8px) brightness(1.3) saturate(.6); } 100% { opacity: .9; filter: none; transform: none; } }
@keyframes nevoa-some { 0% { opacity: .9; filter: none; } 100% { opacity: 0; filter: blur(20px) brightness(1.6) saturate(.2); transform: scale(1.05); } }
@media (min-aspect-ratio: 1/1) {
  .raid-carta { width: 21cqh; } .raid-carta img { border-radius: 1cqh; }
  #raid-0 { left: 19cqw; top: 52cqh; } #raid-1 { left: 19cqw; top: 8cqh; }
  .raid-velas { gap: 2.4cqh; padding-top: 2.4cqh; }
  .vela { width: 1.5cqh; height: 3.6cqh; } .vela b { width: 1.6cqh; height: 2.6cqh; margin-left: -.8cqh; }
  .broadcast { top: 38cqh; left: 20cqw; right: 20cqw; font-size: 2.8cqh; }
  #cenario-1 { left: 17cqw; right: 17cqw; top: 2cqh; height: 38.5cqh; border-radius: 3cqh 3cqh 0 0;
    -webkit-mask-image: radial-gradient(ellipse 24cqh 15cqh at 50% 100%, rgba(0,0,0,.3), #000); mask-image: radial-gradient(ellipse 24cqh 15cqh at 50% 100%, rgba(0,0,0,.3), #000); }
  #cenario-0 { left: 17cqw; right: 17cqw; top: 40.5cqh; bottom: 21cqh; border-radius: 0 0 3cqh 3cqh;
    -webkit-mask-image: radial-gradient(ellipse 24cqh 15cqh at 50% 0%, rgba(0,0,0,.3), #000); mask-image: radial-gradient(ellipse 24cqh 15cqh at 50% 0%, rgba(0,0,0,.3), #000); }
}

/* ===== 13/11: bônus de vocação nas magias ===== */
.mao .carta.voc-bonus img { box-shadow: 0 0 0 2px #7fc4ff, 0 0 14px 3px rgba(120,190,255,.85); }
.mao .carta.voc-bonus::after { content: "Vocation bonus"; position: absolute; left: 50%; top: -1.2em; transform: translateX(-50%); white-space: nowrap;
  font-size: calc(2.2 * var(--u)); font-weight: 700; color: #0e1a2a; background: linear-gradient(#cfe9ff, #7fc4ff); border-radius: 99px; padding: .1em .6em;
  box-shadow: 0 1px 4px rgba(0,0,0,.8); pointer-events: none; }
.acao .bonus-voc { display: block; font-size: .78em; color: #9fd3ff; font-weight: 700; }
.info-voc { text-align: center; padding: .5em .8em; border: 1px solid rgba(127,196,255,.6); border-radius: .6em; background: rgba(20,40,70,.6); color: #cfe9ff; font-weight: 700; }
@media (min-aspect-ratio: 1/1) { .mao .carta.voc-bonus::after { font-size: 1.4cqh; } .info-voc { font-size: 1.9cqh; } }

/* 13/11: filtro por tipo na coleção */
.col-filtros { display: flex; flex-wrap: wrap; gap: calc(1 * var(--u)); margin: 1.2cqh 0 .4cqh; }
.col-filtros .chip img { height: 1.4em; vertical-align: middle; }

/* 13/11: carta do pacote ampliada (por cima da abertura) e selo "New!" já na revelação */
.zoom-carta { position: absolute; inset: 0; z-index: 60; background: rgba(5,3,2,.96); display: flex; flex-direction: column; align-items: center; gap: 1.2cqh; padding: 1.4cqh calc(3 * var(--u)) 2cqh; cursor: zoom-out; animation: zoom-entra .18s ease-out; }
@keyframes zoom-entra { from { opacity: 0; transform: scale(.94); } }
.carta-pilha.na-frente { cursor: zoom-in; }
.resumo-grade .mini.escolhe { cursor: zoom-in; }
.nova-carta { position: absolute; left: 4%; top: 10%; rotate: -8deg; z-index: 2; opacity: 0; box-shadow: 0 0 14px rgba(255,80,60,.9); pointer-events: none; }
.carta-pilha.na-frente .nova-carta { animation: nova-pula .5s .1s ease-out forwards; }
@keyframes nova-pula { 0% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }

/* ---------- 14/11: blessing perdida vira compensação ---------- */
.bless-ef { display: inline-flex; align-items: center; margin-left: .25em; padding: 0 .4em; border-radius: 99px; font-size: .72em; font-weight: 800;
  white-space: nowrap; line-height: 1.5; border: 1px solid; vertical-align: middle; }
.bless-ef.escudo { color: #bfe6ff; border-color: #6fb6e8; background: rgba(20,50,80,.85); }
.bless-ef.fogo { color: #ffd7a0; border-color: #ff9a3c; background: rgba(90,30,8,.85); }
.bless-ef.abraco { color: #fff2a8; border-color: #e7c64a; background: rgba(70,55,10,.85); }
.aviso .bless-escolha { max-width: min(94cqw, calc(170 * var(--u))); font-family: "Alegreya Sans", sans-serif; font-size: calc(3 * var(--u)); text-shadow: none; color: #f6ead0; }
.aviso .bless-sub { margin: 0; text-align: center; color: #e8d7b5; font-size: calc(2.8 * var(--u)); }
.aviso .bless-ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(30 * var(--u)), 1fr)); gap: calc(1.6 * var(--u)); width: 100%; }
.aviso .bless-op { display: flex; flex-direction: column; align-items: center; gap: .6cqh; padding: 1.4cqh calc(1.6 * var(--u)); border-radius: calc(2 * var(--u)); cursor: pointer;
  background: rgba(30,18,8,.94); border: 2px solid #8a6a3a; color: #f6ead0; font-family: inherit; font-size: inherit; text-align: center; text-transform: none; }
.aviso .bless-op:hover:not([disabled]) { border-color: #ffd36b; box-shadow: 0 0 12px rgba(255,200,90,.45); transform: translateY(-.4cqh); }
.aviso .bless-op img { width: calc(12 * var(--u)); height: calc(12 * var(--u)); object-fit: contain; }
.aviso .bless-op b { font-family: Cinzel, serif; color: #ffd36b; font-size: calc(3.2 * var(--u)); line-height: 1.1; }
.aviso .bless-op small { display: block; margin: 0; font-size: calc(2.5 * var(--u)); line-height: 1.25; color: #f6ead0; opacity: .92; }
.aviso .bless-op.nao { opacity: .45; cursor: not-allowed; }
.aviso-bless { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.9); z-index: 60; pointer-events: none; opacity: 0;
  display: flex; align-items: center; gap: .8em; max-width: min(88%, 560px); padding: .8em 1.1em; border-radius: 14px;
  background: rgba(18,10,4,.94); border: 2px solid #ffd36b; box-shadow: 0 0 24px rgba(255,200,90,.45); color: #f6ead0; }
.aviso-bless.mostra { animation: avisoBless 4.2s ease forwards; }
.aviso-bless img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.aviso-bless small { display: block; opacity: .8; font-size: .85em; }
.aviso-bless b { display: block; font-family: Cinzel, serif; color: #ffd36b; font-size: 1.25em; line-height: 1.1; }
.aviso-bless span { display: block; font-size: .92em; line-height: 1.25; margin-top: .2em; }
@keyframes avisoBless { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.85); } 8%, 85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
.aviso-bless.fixo { opacity: 1; animation: none; transform: translate(-50%, -50%); pointer-events: auto; padding-right: 2.6em; }
.aviso-bless-x { position: absolute; top: .35em; right: .45em; width: 1.8em; height: 1.8em; border-radius: 50%; border: 1px solid #ffd36b;
  background: rgba(60,30,10,.95); color: #ffd36b; font-size: 1em; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.aviso-bless-x:hover { background: #6a1a10; color: #fff; }

/* Avatar de perfil 15/11/2026: boneco GBA de corpo inteiro no pedestal (nunca cortado em círculo) */
img.av-perfil { object-fit: contain !important; object-position: center bottom; border-radius: 0 !important; border: 0 !important; background: none !important; aspect-ratio: 200 / 252; height: auto !important; }
.amigo img.av-amigo { width: calc(9 * var(--u)); flex: none; }
.chip-conta img.av-perfil { width: calc(6.2 * var(--u)); margin: -1cqh 0; }
.roupas-ui { max-height: 46cqh; overflow-y: auto; padding: .6cqh; }
.avatares-ui .av { border-radius: calc(1.6 * var(--u)); }
.avatares-ui.roupas-ui .av img { width: calc(15 * var(--u)); }
.avatares-ui.peds-ui .av { display: flex; flex-direction: column; align-items: center; color: #f6ead0; font-size: calc(2.4 * var(--u)); }
.avatares-ui.peds-ui .av img { width: calc(12 * var(--u)); }
.avatares-ui.peds-ui { gap: calc(1 * var(--u)); flex-wrap: nowrap; }

/* ===== 16/11: nada pode ficar cortado ===== */
/* toda tela de menu rola quando o conteúdo não cabe (antes: overflow escondido cortava o fim) */
.tela-menu { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(216,165,74,.6) transparent; }
/* centro "seguro": centraliza quando cabe, e quando não cabe começa do topo (justify-content:center cortava o logo) */
#tela-menu { justify-content: flex-start; }
#tela-menu > .logo { margin-top: auto; flex-shrink: 0; }
#tela-menu > .menu { margin-bottom: auto; flex-shrink: 0; }
/* pacotes: 3 por linha no celular, todos aparecem */
.pacotes:has(> :nth-child(3)) { gap: calc(2.4 * var(--u)); }
.pacotes:has(> :nth-child(3)) .pacote-capa { width: calc(28 * var(--u)); }
.pacotes:has(> :nth-child(3)) .pacote { width: calc(28 * var(--u)); text-align: center; }
.pacotes:has(> :nth-child(3)) .pacote b { font-size: calc(2.9 * var(--u)); }
.pacotes:has(> :nth-child(3)) .pacote small { font-size: calc(2.4 * var(--u)); }
.tela-menu > .pacotes { flex-shrink: 0; padding-bottom: 2cqh; }
@media (min-aspect-ratio: 1/1) {
  /* PC: menu em grade (2 principais lado a lado, secundários 3 por linha) para caber sem rolar */
  .menu { width: 90cqh; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2cqh 1.2cqh; }
  .menu-par { display: contents; }
  .menu > .menu-item.primario { grid-column: span 3; --h: 10cqh; padding-left: 5cqh; padding-right: 5cqh; }
  .menu .menu-item.secundario, .menu .menu-item.curto { grid-column: span 2; width: auto; align-self: stretch; --h: 8.6cqh; padding-left: 3.6cqh; padding-right: 3.6cqh; }
  .menu .menu-item.secundario small { font-size: 1.45cqh; }
  .menu > #menu-instalar { grid-column: 2 / span 4; }
  .pacotes:has(> :nth-child(3)) .pacote-capa, .pacotes:has(> :nth-child(3)) .pacote { width: 26cqh; }
  .pacotes:has(> :nth-child(3)) .pacote b { font-size: 2.2cqh; } .pacotes:has(> :nth-child(3)) .pacote small { font-size: 1.7cqh; }
}
/* listas que rolam: leve esmaecido no fim avisa que tem mais embaixo (em vez de parecer cortado) */
.desafios, .missoes, .rolagem, .roupas-ui { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3.5cqh), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 3.5cqh), transparent); }
@media (min-aspect-ratio: 1/1) {
  .missoes { max-width: 110cqh; margin: 0 auto; }
}
/* celular: as cartas das pontas do leque (giradas) passavam 4px da borda de baixo */
/* o tabuleiro em pé passava 15-24px da altura da tela: espaços menores para caber */
@media (max-aspect-ratio: 1/1) { .mao { height: 13cqh; } .mao .carta { bottom: 1.5cqh; width: calc(16.4 * var(--u)); } #banco-1 { margin-top: .5cqh; } #ativo-1 { margin-top: 1.2cqh; } #banco-0 { margin-top: 1.2cqh; } }

/* 18/11 (Bruno): aviso grande só fecha com toque — botão Continue aparece junto com o texto */
.aviso .aviso-ok { display: block; margin: 2.4cqh auto 0; opacity: 0; animation: aparece .3s .4s forwards; }
.aviso .moeda-palco ~ .aviso-ok, .aviso div:has(> .moeda-palco) > .aviso-ok { animation-delay: 1.3s; }
.aviso:has(.aviso-ok) { cursor: pointer; }
/* 18/11 (Bruno): carta tremia no hover — ela subia/crescia, saía de baixo do mouse e voltava em loop.
   Mão: área de toque estendida para baixo (cobre o espaço que a carta deixa ao subir).
   Equipamento: a caixa fica parada e só a imagem desliza. */
.mao .carta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -45%; }
.equip { transition: none; box-shadow: none; }
.equip:hover { left: -34%; transform: rotate(-9deg); }
.ativo .equip:hover { left: -40%; }
.equip img { transition: transform .15s; box-shadow: 0 0 0 2px #e2b25a, 0 .6cqh 1.6cqh rgba(0,0,0,.85); }
.equip:hover img { transform: translateX(-14%) rotate(-3deg); }
/* 18/11: carta do pacote se arrasta para o lado (o navegador não rola a tela durante o arrasto) */
.carta-pilha.na-frente { cursor: grab; touch-action: none; }
.carta-pilha.na-frente:active { cursor: grabbing; }
.carta-pilha img { -webkit-user-drag: none; user-select: none; pointer-events: none; } /* sem o "arrastar imagem" do navegador, que cancelava o gesto */
/* 18/11: carta da mão recriada sob o mouse já nasce crescida, sem animar (senão tremia a cada render) */
@media (min-aspect-ratio: 1/1) {
  .mao .carta.ja-hover { bottom: 3cqh; scale: 1.3; z-index: 50 !important; transition: none; }
}
/* 18/11: roupa travada (quest ainda não feita / Store em breve) */
.avatares-ui .av { position: relative; }
.avatares-ui .av.travada { opacity: .3; filter: grayscale(.85); cursor: help; }
.avatares-ui .av .cadeado { position: absolute; right: 4%; bottom: 4%; font-style: normal; font-size: calc(3.2 * var(--u)); line-height: 1; filter: drop-shadow(0 0 2px #000); }
.roupa-dica { min-height: 2.6em; color: #ffd36b; }
/* 18/11 (2): a posição no leque vem de --pos; crescer no hover = scale() depois dela (no próprio lugar) */
.mao .carta { transform: var(--pos); }
@media (min-aspect-ratio: 1/1) {
  .mao .carta:hover, .mao .carta.ja-hover { scale: none; transform: var(--pos) scale(1.3); }
}
/* 18/11 (Bruno): números da barra de HP cortados (o texto passava da altura da barra e o overflow:hidden cortava).
   Agora só o preenchimento é recortado; o número fica centralizado e nunca é cortado; barra do banco um pouco mais alta. */
.vida { overflow: visible; }
.vida i { border-radius: inherit; }
.vida b { display: flex; align-items: center; justify-content: center; line-height: 1; white-space: nowrap; }
.banco .vida { top: -2.15cqh; height: 1.9cqh; }
.banco .vida b { font-size: 1.4cqh; line-height: 1; }
/* 18/11 (Bruno): aviso "Your Turn" no começo do meu turno */
.seu-turno { position: absolute; left: 50%; top: 44%; z-index: 30; pointer-events: none; white-space: nowrap;
  transform: translate(-50%, -50%); padding: 1.6cqh 10cqw; opacity: 0;
  font-family: Cinzel, serif; font-weight: 800; font-size: 7cqh; letter-spacing: .06em; color: #ffd36b;
  text-shadow: 0 0 14px #000, 0 0 4px #000, 0 2px 2px #000;
  background: linear-gradient(90deg, transparent, rgba(12,7,2,.88) 22%, rgba(12,7,2,.88) 78%, transparent); }
.seu-turno.mostra { animation: seuTurno 1.8s ease forwards; }
@keyframes seuTurno { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.85); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  78% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.04); } }
/* 18/11 (Bruno): baralho à mostra (a carta comprada sai dele) */
.deck-pilha { position: absolute; z-index: 4; left: 3%; bottom: 23cqh; width: calc(11 * var(--u)); aspect-ratio: 2 / 3; pointer-events: auto; }
.deck-pilha i { position: absolute; inset: 0; border-radius: calc(.9 * var(--u)); background: url(img/verso.jpg) center/cover;
  box-shadow: 0 2px 6px rgba(0,0,0,.85); }
.deck-pilha i:nth-child(1) { transform: translate(5px, 5px); filter: brightness(.6); }
.deck-pilha i:nth-child(2) { transform: translate(2.5px, 2.5px); filter: brightness(.8); }
.deck-pilha b { position: absolute; right: -.6em; bottom: -.6em; min-width: 1.9em; padding: .12em .4em; border-radius: 1em; text-align: center;
  background: #1b1206; color: #ffd36b; border: 1px solid #d8a54a; font: 700 calc(3 * var(--u))/1.2 "Alegreya Sans", sans-serif; }
.deck-pilha.vazio i { opacity: .25; }
@media (min-aspect-ratio: 1/1) {
  .deck-pilha { left: calc(1.6cqw + 9cqh); bottom: 2.6cqh; width: 9.5cqh; }
  .deck-pilha b { font-size: 1.8cqh; }
}
/* 18/11 (Bruno): tela de recompensa resgatada + Claim all */
.mis-todas { display: block; margin: 0 auto 1.6cqh; }
.premios-tela { position: absolute; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; background: rgba(5,3,2,.78); animation: zoom-entra .18s ease-out; }
.premios-caixa { width: min(92%, calc(120 * var(--u))); max-height: 86%; overflow-y: auto; padding: 2.4cqh calc(4 * var(--u)); text-align: center;
  background: linear-gradient(#2a1a0c, #160d05); border: 2px solid #d8a54a; border-radius: calc(3 * var(--u)); box-shadow: 0 0 40px rgba(255,190,80,.35); color: #f6ead0; }
.premios-caixa h3 { margin: 0 0 1.6cqh; font-family: Cinzel, serif; color: #ffd36b; font-size: calc(5 * var(--u)); }
.premio-nome { margin: 0 0 1cqh; font-size: calc(3.4 * var(--u)); }
.premio-grande { display: inline-flex; align-items: center; gap: calc(1.5 * var(--u)); margin-bottom: 2cqh; font-family: Cinzel, serif; font-weight: 800; font-size: calc(6 * var(--u)); color: #ffd36b; animation: surge .6s ease-out; }
.premio-grande img { width: calc(10 * var(--u)); filter: drop-shadow(0 2px 4px #000); }
.premios-lista { display: flex; flex-direction: column; gap: .8cqh; margin-bottom: 1.4cqh; text-align: left; }
.premio-linha { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .6cqh calc(1.6 * var(--u)); border-radius: calc(1.5 * var(--u)); background: rgba(255,255,255,.05); font-size: calc(3.2 * var(--u)); }
.premio-linha b, .premio-total b { display: inline-flex; align-items: center; gap: .3em; color: #ffd36b; white-space: nowrap; }
.premio-linha img, .premio-total img { width: 1.4em; }
.premio-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2cqh; padding-top: 1cqh; border-top: 1px solid rgba(216,165,74,.5);
  font-family: Cinzel, serif; font-weight: 800; font-size: calc(4 * var(--u)); color: #ffd36b; }
@media (min-aspect-ratio: 1/1) {
  .premios-caixa { width: min(70cqw, 70cqh); }
  .premios-caixa h3 { font-size: 4cqh; } .premio-nome { font-size: 2.4cqh; } .premio-grande { font-size: 5cqh; } .premio-grande img { width: 7cqh; }
  .premio-linha { font-size: 2.2cqh; } .premio-total { font-size: 2.8cqh; }
}
.premios-caixa { overflow: visible; max-height: none; }
.premios-lista { max-height: 46cqh; overflow-y: auto; padding-right: .4em; }
.premio-grande { display: flex; justify-content: center; }
.premios-caixa > .btn { display: block; margin: 0 auto; }
/* 18/11: com 4 no banco, no celular (em pé) o deck e o botão de energia cobriam a 1ª e a 4ª criatura do banco:
   sobem para as laterais livres ao lado da minha criatura ativa */
@media (max-aspect-ratio: 1/1) {
  .deck-pilha { bottom: 41cqh; left: 4%; }
  .energia { bottom: 41cqh; }
}
@media (max-aspect-ratio: 1/1) { .icone-log { bottom: 34cqh; left: calc(4% + 1px); } }
/* 18/11 (Bruno): efeito (poison, burn...) com animação própria, depois do dano */
.status-anim { position: absolute; left: 50%; top: 40%; z-index: 60; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: .3em;
  transform: translate(-50%, -50%); animation: statusPop 1s ease forwards; }
.status-anim img { width: 46%; min-width: 34px; filter: drop-shadow(0 0 10px var(--cor)) drop-shadow(0 2px 3px #000); }
.status-anim b { font-family: Cinzel, serif; font-weight: 800; font-size: 1.6cqh; letter-spacing: .05em; color: var(--cor); text-transform: uppercase;
  text-shadow: 0 0 6px #000, 0 0 3px #000, 0 1px 1px #000; white-space: nowrap; }
@keyframes statusPop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.4); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  45% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1); } }
/* 18/11 (Bruno): blessings do oponente valendo, escritas abaixo do painel dele */
.bless-op-txt { position: absolute; z-index: 6; pointer-events: none; padding: .6em .8em; border-radius: .7em; border: 1px solid rgba(255,211,107,.55);
  background: rgba(14,8,3,.88); color: #f6ead0; font-size: 1.5cqh; line-height: 1.3; box-shadow: 0 4px 14px rgba(0,0,0,.6); }
.bless-op-txt h4 { margin: 0 0 .3em; font-family: Cinzel, serif; font-size: 1.15em; color: #ffd36b; }
.bless-op-txt ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .25em; }
.bless-op-txt li span { margin-right: .3em; } .bless-op-txt li b { color: #ffd36b; margin-right: .35em; }
@media (max-aspect-ratio: 1/1) { .bless-op-txt { font-size: 1.35cqh; } }
/* 18/11 (Bruno): Last Stand — escolher 1 de 4 cartas viradas */
.ls-escolha { display: flex; flex-direction: column; align-items: center; gap: 1.4cqh; }
.ls-titulo { font-family: Cinzel, serif; font-weight: 800; font-size: 6cqh; color: #ff6a4a; text-shadow: 0 0 18px rgba(255,80,40,.7), 0 2px 3px #000; letter-spacing: .08em; }
.ls-sub { margin: 0; color: #f6ead0; font-size: 2.4cqh; }
.ls-cartas { display: flex; gap: 2.2cqw; justify-content: center; perspective: 1200px; }
.ls-carta { padding: 0; border: 0; background: none; cursor: pointer; width: 22cqh; aspect-ratio: 5 / 7; transition: transform .2s; }
.ls-carta:not(:disabled):hover { transform: translateY(-1.2cqh) scale(1.04); }
.ls-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.7,.3,1); }
.ls-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 1.4cqh; backface-visibility: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.8); }
.ls-frente { transform: rotateY(180deg); }
.ls-carta.vira .ls-in { transform: rotateY(180deg); }
.ls-carta.escolhida .ls-in img { box-shadow: 0 0 0 3px #ffd36b, 0 0 34px 10px rgba(255,200,90,.8); }
.ls-carta.outra { opacity: .45; transform: scale(.92); }
.ls-carta:disabled { cursor: default; }
.ls-nome { margin: 0; min-height: 4.6em; max-width: 70cqw; text-align: center; color: #f6ead0; font-size: 2.2cqh; }
.ls-nome b { display: block; font-family: Cinzel, serif; color: #ffd36b; font-size: 1.4em; }
.ls-nome small { display: block; font-size: 1em; opacity: .9; }
@media (max-aspect-ratio: 1/1) { .ls-carta { width: 20cqw; } .ls-cartas { gap: 2cqw; } .ls-titulo { font-size: 5cqh; } }
/* 18/11 (Bruno): roupas travadas estavam quase invisíveis (opacidade .3 + cinza no fundo escuro) */
.avatares-ui .av.travada { opacity: .62; filter: grayscale(.5) brightness(.95); }
.avatares-ui .av.travada:hover { opacity: .85; }
/* abas do perfil e da Store */
.abas-perfil { display: flex; gap: .6em; justify-content: center; margin-bottom: 1.2cqh; }
.abas-perfil button { padding: .45em 1.1em; border-radius: 99px; border: 1px solid rgba(216,165,74,.6); background: rgba(20,12,6,.7); color: #f6ead0; font: 700 calc(3 * var(--u)) Cinzel, serif; cursor: pointer; }
.abas-perfil button.sel { background: linear-gradient(#e6b65a, #a8741e); color: #1b1206; border-color: #ffd36b; }
/* aba Achievements: quests das roupas */
.conq-resumo { text-align: center; margin: 0 0 1cqh; }
.conq-lista { display: flex; flex-direction: column; gap: .8cqh; max-height: 54cqh; overflow-y: auto; padding-right: .4em; }
.conq { display: flex; align-items: center; gap: .8em; padding: .5em .7em; border-radius: .8em; background: rgba(255,255,255,.04); border: 1px solid rgba(216,165,74,.25); }
.conq img { width: calc(11 * var(--u)); flex: none; filter: grayscale(.4) brightness(.9); }
.conq.feita { border-color: rgba(127,220,120,.6); } .conq.feita img { filter: none; }
.conq div { flex: 1; min-width: 0; } .conq b { display: block; color: #ffd36b; font-family: Cinzel, serif; }
.conq small { display: block; color: #f6ead0; opacity: .9; font-size: .9em; }
.conq-barra { display: block; height: .5em; margin-top: .35em; border-radius: 1em; background: rgba(0,0,0,.5); overflow: hidden; }
.conq-barra i { display: block; height: 100%; background: linear-gradient(90deg, #d8a54a, #ffd36b); }
.conq-st { font-size: 1.3em; } .conq.feita .conq-st { color: #7fdc78; }
/* botão Store embaixo do Premium */
.chips-esq { display: flex; flex-direction: column; align-items: flex-start; gap: 1cqh; }
/* tela da Store */
.store { width: min(96%, calc(170 * var(--u))); max-height: 82cqh; overflow-y: auto; margin: 0 auto; padding: 0 .4em 1cqh; color: #f6ead0; }
.store-grupo h3 { margin: 1.4cqh 0 .8cqh; font-family: Cinzel, serif; color: #ffd36b; font-size: calc(3.6 * var(--u)); }
.store-itens { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(26 * var(--u)), 1fr)); gap: calc(1.6 * var(--u)); }
.store-item { display: flex; flex-direction: column; align-items: center; gap: .3em; padding: .7em .5em; border-radius: .9em; border: 1px solid rgba(216,165,74,.45);
  background: linear-gradient(rgba(42,26,12,.9), rgba(22,13,5,.9)); color: #f6ead0; cursor: pointer; font-size: calc(2.8 * var(--u)); transition: transform .15s; }
.store-item:hover { transform: translateY(-.5cqh); border-color: #ffd36b; }
.store-item img { width: 80%; max-width: calc(22 * var(--u)); }
.store-item b { font-family: Cinzel, serif; color: #ffd36b; text-align: center; }
.store-item span { display: inline-flex; align-items: center; gap: .3em; font-weight: 800; }
.store-item .rc { width: 1.4em; max-width: none; } .store-item .rc.grande { width: 50%; }
.store-cartas { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(2 * var(--u)); }
.store-carta.estilos { grid-column: 1 / -1; } /* 26/11: carta com estilos extras ocupa a linha toda, 4 por linha como as outras */
.store-carta > b { display: block; text-align: center; font-family: Cinzel, serif; color: #ffd36b; margin-bottom: .4em; }
.store-par { display: grid; grid-template-columns: 1fr; gap: .6em; } .store-carta.estilos .store-par { grid-template-columns: repeat(4, 1fr); gap: calc(2 * var(--u)); } .store-par .store-item img { width: 100%; max-width: none; border-radius: .5em; }
.store-item.ouro { border-color: #ffd36b; box-shadow: 0 0 14px rgba(255,200,80,.35); }
#store-aviso.pisca { animation: aparece .3s; color: #ffd36b; }
@media (min-aspect-ratio: 1/1) {
  .abas-perfil button { font-size: 1.8cqh; } .conq img { width: 6.5cqh; } .conq { font-size: 1.7cqh; }
  .store { width: min(92cqw, 150cqh); } .store-grupo h3 { font-size: 2.6cqh; }
  .store-itens { grid-template-columns: repeat(auto-fill, minmax(16cqh, 1fr)); } .store-item { font-size: 1.7cqh; } .store-item img { max-width: 13cqh; }
  .store-cartas { grid-template-columns: repeat(auto-fill, minmax(36cqh, 1fr)); }
}
.store-itens { justify-content: center; } .store-grupo h3 { text-align: center; }
@media (min-aspect-ratio: 1/1) { .store-itens { grid-template-columns: repeat(auto-fill, 16cqh); } .store-cartas { grid-template-columns: repeat(auto-fill, 36cqh); justify-content: center; } }
.store { background: rgba(12,7,3,.72); border: 1px solid rgba(216,165,74,.4); border-radius: 2cqh; padding: 1.6cqh 1.4em; }
/* 18/11 (Bruno): dano real no botão de ataque (riscado = dano impresso na carta) */
.acao .dano s { font-size: .6em; opacity: .6; margin-right: .3em; font-weight: 600; }
.acao .dano.mais { color: #7dff8a; text-shadow: 0 0 6px rgba(80,255,120,.5); }
.acao .dano.menos { color: #ff8a6a; }
/* 18/11 (Bruno): cartas exclusivas em 2 colunas bem espaçadas (uma dupla de bichos por linha) e nome sempre numa linha só */
.store-cartas { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: calc(8 * var(--u)); row-gap: 3cqh; justify-content: center; }
.store-carta > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: calc(3.6 * var(--u)); }
@media (min-aspect-ratio: 1/1) {
  .store-cartas { grid-template-columns: repeat(4, 20cqh) !important; column-gap: 4cqh; }
  .store-carta.estilos .store-par { column-gap: 4cqh; }
  .store-carta > b { font-size: 2.2cqh; }
}
/* 26/11: coluna mais estreita -> nome em até 2 linhas, sem cortar com "..." (Grand Master Oberon, Melting the Ice of Formorgar) */
.store-carta > b { white-space: normal; line-height: 1.15; min-height: 2.3em; display: flex; align-items: flex-end; justify-content: center; }
.store-carta.estilos > b { min-height: 0; }
/* 26/11: sem a Gold cada carta tem 1 imagem: 4 por linha no PC, 2 no celular; carta com estilos (Orshabaal) ocupa a linha com os 4 lado a lado */
@media (max-aspect-ratio: 1/1) { .store-cartas { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .store-carta.estilos .store-par { grid-template-columns: repeat(2, 1fr); } }
/* 18/11 (Bruno, opção A): outfit grande saindo do painel de cada jogador */
.barra { overflow: visible; }
.out-barra { position: absolute; right: -24%; bottom: 4%; height: 145%; z-index: 9; pointer-events: none;
  filter: drop-shadow(0 0 16px rgba(255,200,90,.5)) drop-shadow(0 6px 10px #000); }
.out-barra-nome { position: absolute; right: -23%; bottom: -13%; z-index: 9; pointer-events: none; white-space: nowrap;
  font: 800 1.7cqh Cinzel, serif; color: #ffd36b; text-shadow: 0 0 6px #000, 0 2px 2px #000; }
@media (max-aspect-ratio: 1/1) { .out-barra { right: auto; left: 64%; height: 130%; bottom: 0; } .out-barra-nome { display: none; } }
/* 18/11 (Bruno, opção C): tela de duelo VS */
.vs-tela { position: absolute; inset: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; cursor: pointer;
  background: radial-gradient(ellipse at 25% 55%, rgba(255,190,70,.35), transparent 55%), radial-gradient(ellipse at 75% 45%, rgba(90,220,120,.3), transparent 55%), rgba(6,3,1,.9);
  animation: aparece .35s ease forwards; opacity: 0; }
.vs-tela.sai { animation: none; opacity: 0; transition: opacity .35s; }
.vs-lado { display: flex; flex-direction: column; align-items: center; gap: 1cqh; }
.vs-lado img { height: 60cqh; filter: drop-shadow(0 0 30px rgba(255,200,90,.6)) drop-shadow(0 12px 16px #000); }
.vs-lado.eu img { animation: vsEntraE .55s cubic-bezier(.2,.8,.2,1); }
.vs-lado.op img { transform: scaleX(-1); filter: drop-shadow(0 0 30px rgba(90,230,120,.6)) drop-shadow(0 12px 16px #000); animation: vsEntraD .55s cubic-bezier(.2,.8,.2,1); }
@keyframes vsEntraE { from { translate: -40cqw 0; } } @keyframes vsEntraD { from { translate: 40cqw 0; } }
.vs-nome { font: 800 4.4cqh Cinzel, serif; color: #ffd36b; text-shadow: 0 0 10px #000, 0 3px 3px #000; }
.vs-sub { font: 700 2.2cqh "Alegreya Sans", sans-serif; color: #f6ead0; opacity: .9; text-align: center; }
.vs-meio { font: 900 14cqh Cinzel, serif; color: #ff6a4a; text-shadow: 0 0 30px rgba(255,90,40,.9), 0 6px 6px #000; padding: 0 4cqw; animation: vsMeio .6s .3s both; }
@keyframes vsMeio { from { scale: 2.4; opacity: 0; } }
@media (max-aspect-ratio: 1/1) { .vs-tela { grid-template-columns: 1fr; grid-auto-rows: auto; align-content: center; gap: 1cqh; } .vs-lado img { height: 26cqh; } .vs-meio { font-size: 8cqh; } .vs-lado.op { order: 0; } .vs-meio { order: 1; } .vs-lado.eu { order: 2; } /* 22/11: em pé, o oponente em cima e eu embaixo (como no tabuleiro) */ }
@media (max-aspect-ratio: 1/1) { .vs-meio { justify-self: center; text-align: center; padding: 0; } .vs-lado { justify-self: center; } }
@media (max-aspect-ratio: 1/1) {
  .out-barra, .out-barra-nome { display: none; }
  .barra .avatar { background-image: var(--out) !important; background-size: 150% auto !important; background-position: center 40% !important; background-repeat: no-repeat !important; }
}
/* 18/11 (Bruno): condições ativas (blessings valendo) na linha de baixo, ao lado da vocação */
.linha-voc { display: flex; align-items: center; flex-wrap: wrap; gap: .4em; }
.linha-voc .voc { margin-left: 0; }
.linha-voc .bless-ef { margin-left: 0; font-size: .85em; padding: .1em .55em; }
@media (min-aspect-ratio: 1/1) { .linha-voc .bless-ef { font-size: 1.6cqh; } }
/* 18/11 (Bruno): o outfit cobria as blessings do painel em telas 16:9 -> fica do lado de fora, à direita do painel; caixa de blessings do oponente por cima */
.out-box { position: absolute; left: 97%; bottom: 0; height: 128%; aspect-ratio: 200 / 252; z-index: 9; pointer-events: none; }
.out-box .out-barra { position: static; display: block; height: 100%; width: 100%; }
.out-box .out-barra-nome { left: 50%; right: auto; translate: -50% 0; bottom: -10%; }
@media (max-aspect-ratio: 1/1) { .out-box { display: none; } }
.bless-op-txt { z-index: 10; }
/* 18/11: no celular em pé a caixa cobria a carta ativa do oponente; os chips no painel já mostram as blessings valendo */
@media (max-aspect-ratio: 1/1) { .bless-op-txt { display: none !important; } }
/* 18/11 (Bruno): zoom da Store (carta ou outfit ampliado ao clicar) */
.store-zoom { position: absolute; inset: 0; z-index: 60; background: rgba(5,3,2,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqh; padding: 2cqh; cursor: zoom-out; animation: zoom-entra .18s ease-out; }
.store-zoom > img { max-height: 66cqh; max-width: 88cqw; object-fit: contain; border-radius: 1.4cqh; box-shadow: 0 0 40px rgba(255,200,90,.35); cursor: default; }
.store-zoom.roupa > img { height: 56cqh; width: auto; image-rendering: auto; filter: drop-shadow(0 0 24px rgba(255,200,90,.45)); box-shadow: none; }
.store-zoom-nome { font: 800 3.4cqh Cinzel, serif; color: #ffd36b; text-shadow: 0 2px 3px #000; text-align: center; }
.store-zoom-sub { font: 700 2cqh "Alegreya Sans", sans-serif; color: #f6ead0; opacity: .85; }
.store-zoom-comprar { cursor: pointer; }
.store-zoom-comprar img.rc { height: 1.2em; width: auto; max-width: none; box-shadow: none; border-radius: 0; vertical-align: -.2em; margin-right: .15em; }
.store-zoom-aviso { min-height: 1.2em; color: #ffd36b; font-weight: 700; }
.store-zoom small { opacity: .6; color: #f6ead0; }
.store-zoom .det-fechar { position: absolute; top: 1.6cqh; right: 2cqh; translate: none; }


/* 20/11 (Bruno): mais fontes de Silver — Daily Reward, Boosted Challenge, conquistas e NPC */
.login-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(1 * var(--u)); }
.login-dia { display: flex; flex-direction: column; align-items: center; gap: .3cqh; padding: .7cqh 0; border-radius: calc(1.4 * var(--u)); background: rgba(20,12,6,.75); border: 1px solid #5a4428; color: #f6ead0; }
.login-dia small { font-size: calc(2.4 * var(--u)); opacity: .8; }
.login-dia img { width: calc(5 * var(--u)); }
.login-dia b { font-family: Cinzel, serif; font-size: calc(3 * var(--u)); }
.login-dia.pego { opacity: .45; }
.login-dia.agora { border-color: #ffd36b; box-shadow: 0 0 calc(1.6 * var(--u)) rgba(255,211,107,.55); }
.login-nota { display: block; text-align: center; color: #f6ead0; opacity: .8; font-size: calc(2.8 * var(--u)); }
.desafio.boosted { border-color: #ffd36b; box-shadow: 0 0 calc(1.6 * var(--u)) rgba(255,211,107,.5); }
.selo-boost { position: absolute; top: -.6cqh; left: 50%; transform: translateX(-50%); z-index: 2; padding: .1cqh calc(1.4 * var(--u)); border-radius: 99px; background: #ffd36b; color: #2a1a08; font-family: Cinzel, serif; font-weight: 800; font-size: calc(2.4 * var(--u)); white-space: nowrap; }
.dica-boost { display: block; margin-top: .4cqh; color: #ffd36b; font-size: .85em; }
.premio.boost { color: #ffd36b; }
.premio.boost small { font-family: "Alegreya Sans", sans-serif; font-weight: 700; font-size: .6em; opacity: .85; }
.barra-silver { display: flex; align-items: center; justify-content: space-between; gap: calc(2 * var(--u)); margin: 0 0 .8cqh; padding: .8cqh calc(2.4 * var(--u)); border-radius: calc(1.6 * var(--u)); background: rgba(20,12,6,.8); border: 1px solid #6b5432; color: #f6ead0; font-size: calc(3 * var(--u)); flex: none; }
.barra-silver img { width: calc(4 * var(--u)); vertical-align: middle; }
.barra-silver .btn { flex: none; display: inline-flex; align-items: center; gap: calc(.8 * var(--u)); }
.npc-lista { display: flex; flex-direction: column; gap: .6cqh; max-height: 46cqh; overflow-y: auto; margin: 1cqh 0 1.6cqh; text-align: left; }
.npc-linha { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: calc(2 * var(--u)); color: #f6ead0; }
.npc-linha img { width: calc(9 * var(--u)); border-radius: calc(.8 * var(--u)); }
.npc-linha small { font-family: Cinzel, serif; font-weight: 800; }
.npc-acoes { display: flex; gap: calc(2 * var(--u)); justify-content: center; align-items: center; }
.npc-acoes .btn img { width: calc(4 * var(--u)); vertical-align: middle; }
@media (min-aspect-ratio: 1/1) {
  .login-dia small { font-size: 1.5cqh; } .login-dia img { width: 3cqh; } .login-dia b { font-size: 2cqh; } .login-nota { font-size: 1.8cqh; }
  .selo-boost { font-size: 1.5cqh; } .barra-silver { font-size: 2cqh; } .barra-silver img, .npc-acoes .btn img { width: 2.6cqh; }
  .npc-linha img { width: 5cqh; }
}

/* 22/11: cópias que o jogador tem, embaixo da carta no montador */
.ed-arte { position: relative; }
.ed-tenho { display: block; margin-top: .4cqh; text-align: center; color: #e8d7b5; font-size: calc(2.6 * var(--u)); font-weight: 700; white-space: nowrap; text-shadow: 0 1px 2px #000; }
@media (min-aspect-ratio: 1/1) { .ed-tenho { font-size: 1.4cqh; } }

.det-info.det-erro { color: #ff8a6b; font-weight: 700; } /* 22/11: aviso do Add to deck */

/* 22/11: espaços além dos 30 no montador */
.espaco.sobra { border-color: #ff6a4a; box-shadow: 0 0 8px rgba(255,90,60,.6); }
/* 22/11: com Remove + Add + capa + Done, os botões quebram em 2 linhas no celular */
.det-carta .barra-acoes { flex-wrap: wrap; justify-content: center; row-gap: 1cqh; }

/* 23/11: botão de som (home e mesa) — alto-falante dourado; riscado quando mudo */
.btn-som { display: grid; place-items: center; padding: 0; border-radius: 50%; border: 2px solid #c9a24a; cursor: pointer;
  background: radial-gradient(circle at 50% 35%, #6a4614, #2a1a06); color: #ffd36b; filter: drop-shadow(0 2px 4px rgba(0,0,0,.8)); }
.btn-som svg { width: 60%; height: 60%; }
.btn-som .x { display: none; }
.btn-som.mudo { color: #9c8458; border-color: #7a6334; }
.btn-som.mudo .onda { display: none; }
.btn-som.mudo .x { display: inline; }
.chips-esq .btn-som { width: 5.4cqh; height: 5.4cqh; }
#btn-som-mesa { position: absolute; z-index: 4; left: calc(3.5 * var(--u)); bottom: calc(24cqh + 24 * var(--u)); width: calc(9 * var(--u)); height: calc(9 * var(--u)); }
@media (min-aspect-ratio: 1/1) { #btn-som-mesa { left: 1.6cqw; bottom: 17cqh; width: 6cqh; height: 6cqh; } } /* acima do log e do Surrender */
@media (max-aspect-ratio: 1/1) { #btn-som-mesa { left: calc(4% + 1px + 12 * var(--u)); bottom: 34cqh; width: calc(10 * var(--u)); height: calc(10 * var(--u)); } } /* ao lado do log (em cima fica atrás do deck) */

/* 24/11 (Bruno): botão do perfil + Premium/Store/som com arte do GPT. Posições MEDIDAS na arte (nicho/painel de couro)
   e no desenho visível do boneco (centro a 58% da altura) e das moedas (centro 50,7% x 48,3%) — nada no olho. */
#btn-conta.placa-perfil { --pw: calc(52 * var(--u)); position: relative; display: block; flex: none; align-self: flex-start; width: var(--pw);
  aspect-ratio: 760 / 185; height: auto; padding: 0; border: 0; border-radius: 0; box-shadow: none;
  background: url(img/ui_perfil_placa.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 .4cqh .8cqh rgba(0,0,0,.7)); font-size: calc(var(--pw) * .058); }
#btn-conta.placa-perfil:hover { filter: drop-shadow(0 .4cqh .8cqh rgba(0,0,0,.7)) brightness(1.1); }
/* nicho: centro (17,7%, 54,1%), altura 12,9% da largura -> boneco com 80% da altura do nicho */
#btn-conta.placa-perfil img.av-perfil { position: absolute; width: calc(var(--pw) * .102); height: auto; margin: 0;
  left: calc(var(--pw) * (.177 - .051)); top: calc(var(--pw) * (.1317 - .58 * .1288)); filter: drop-shadow(0 2px 2px rgba(0,0,0,.85)); }
/* painel de couro: x 27,4%–90,7%, y 24,9%–80% */
#btn-conta .placa-txt { position: absolute; left: 27.4%; right: 9.3%; top: 24.9%; bottom: 20%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.05; }
#btn-conta #conta-nome { max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Cinzel, serif; font-weight: 800;
  letter-spacing: .04em; color: #ffe2a0; text-shadow: 0 2px 0 #1a0604, 0 0 6px rgba(0,0,0,.8); }
#btn-conta #conta-sub { font-family: "Alegreya Sans", sans-serif; font-size: .62em; color: #d8b673; text-shadow: 0 1px 2px #000; white-space: nowrap; }
@media (orientation: landscape) { #btn-conta.placa-perfil { --pw: 40cqh; } }

/* Premium/Store: placa 420x149. nicho centro (22,5%, 53%) = (0,225cw ; 0,188cw), 0,205cw de altura; painel x 34,8%–88,1%, y 24,2%–78,5% */
.chips-esq #btn-premium, .chips-esq #btn-store { --cw: calc(27 * var(--u)); position: relative; display: block; flex: none; width: var(--cw);
  aspect-ratio: 420 / 149; height: auto; padding: 0; border: 0; border-radius: 0; box-shadow: none;
  background: url(img/ui_chip_placa.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 .4cqh .8cqh rgba(0,0,0,.7)); font-size: calc(var(--cw) * .085); }
.chips-esq #btn-premium:hover, .chips-esq #btn-store:hover { filter: drop-shadow(0 .4cqh .8cqh rgba(0,0,0,.7)) brightness(1.1); }
.chips-esq #btn-premium img, .chips-esq #btn-store img { position: absolute; width: calc(var(--cw) * .208); height: calc(var(--cw) * .208); object-fit: contain; transform: none;
  left: calc(var(--cw) * (.225 - .507 * .208)); top: calc(var(--cw) * (.188 - .483 * .208)); filter: drop-shadow(0 1px 2px rgba(0,0,0,.8)); }
.chips-esq #btn-premium span, .chips-esq #btn-store span { position: absolute; left: 34.8%; right: 11.9%; top: 24.2%; bottom: 21.5%; transform: none;
  display: flex; align-items: center; justify-content: center; font-family: Cinzel, serif; font-weight: 800; letter-spacing: .04em;
  color: #ffe2a0; text-shadow: 0 2px 0 #1a0604, 0 0 6px rgba(0,0,0,.8); white-space: nowrap; }
/* som: medalhão 170x180. disco centro (49,7%, 53,1%) = (0,497sw ; 0,562sw), diâmetro 0,653sw */
.chips-esq #btn-som-home { --sw: calc(10 * var(--u)); position: relative; display: block; width: var(--sw); height: auto; aspect-ratio: 170 / 180;
  padding: 0; border: 0; border-radius: 0; background: url(img/ui_chip_redondo.webp) center / 100% 100% no-repeat; color: #ffd36b;
  filter: drop-shadow(0 .4cqh .8cqh rgba(0,0,0,.7)); }
.chips-esq #btn-som-home svg { position: absolute; width: calc(var(--sw) * .36); height: calc(var(--sw) * .36); transform: none;
  left: calc(var(--sw) * (.497 - .18)); top: calc(var(--sw) * (.562 - .18)); }
.chips-esq #btn-som-home.mudo { color: #c9a868; }
@media (orientation: landscape) { .chips-esq #btn-premium, .chips-esq #btn-store { --cw: 23cqh; } .chips-esq #btn-som-home { --sw: 8.5cqh; } }

/* 24/11 (Bruno): telas no estilo do menu novo, peças do GPT em 9-slice (cantos fixos, meio estica):
   ui_titulo.webp 725x99 (pontas 92px), ui_aba.webp 333x84 (ponta = meia altura), ui_painel.webp 711x234 (cantos 70px),
   voltar = medalhão do som (ui_chip_redondo, disco centrado em 49,7% x 53,1%) */
.voltar { --vw: calc(11 * var(--u)); width: var(--vw); height: calc(var(--vw) * 180 / 170); border: 0; border-radius: 0; padding: calc(var(--vw) * .066) 0 0;
  background: url(img/ui_chip_redondo.webp) center / 100% 100% no-repeat; color: #ffd36b; font-family: Cinzel, serif; font-weight: 800;
  font-size: calc(var(--vw) * .5); line-height: 1; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 .4cqh .8cqh rgba(0,0,0,.7)); }
.voltar:hover { filter: drop-shadow(0 .4cqh .8cqh rgba(0,0,0,.7)) brightness(1.15); }
.topo-menu h2 { --th: calc(10 * var(--u)); flex: none; height: var(--th); display: flex; align-items: center; margin: 0;
  padding: 0 calc(var(--th) * 1.05); border-style: solid; border-image: url(img/ui_titulo.webp) 49 92 49 92 fill / 50% calc(var(--th) * .93) stretch;
  font-size: calc(var(--th) * .42); color: #ffe2a0; text-shadow: 0 2px 0 #1a0604, 0 0 6px rgba(0,0,0,.8); white-space: nowrap; }
.chip { border-style: solid; border-color: transparent; border-image: url(img/ui_aba.webp) 42 45 42 45 fill / 50% 1.35em stretch; background: none;
  padding: 0 1.4em; color: #f1e0bb; filter: brightness(.82); }
.chip:hover { filter: brightness(1); }
.chip.sel { background: none; color: #ffe2a0; filter: brightness(1.25) drop-shadow(0 0 .6cqh rgba(255,200,90,.55)); text-shadow: 0 1px 2px #000; }
.acao-chip { background: none; color: #ffe2a0; filter: brightness(1.12); }
.missao, .amigo, .amigos-codigo, .store-item { border-style: solid; border-color: transparent; border-image: url(img/ui_painel.webp) 70 fill / calc(4.2 * var(--u)) stretch;
  border-radius: 0; background: none; padding-left: calc(3.6 * var(--u)); padding-right: calc(3.6 * var(--u)); }
.missao.pronta, .store-item.ouro { box-shadow: none; filter: drop-shadow(0 0 .8cqh rgba(255,200,90,.6)); }
.store-item:hover { border-color: transparent; filter: brightness(1.12); }
@media (orientation: landscape) { .voltar { --vw: 7cqh; } .topo-menu h2 { --th: 6.4cqh; } }

/* 24/11: botão de energia bloqueado continua legível e diz o motivo (o ícone fica apagado, o texto não) */
#btn-energia:disabled { opacity: 1; filter: none; }
#btn-energia:disabled > img { opacity: .35; filter: grayscale(.6); }
#btn-energia small.motivo-en { color: #ffcf7a; text-shadow: 0 1px 2px #000; }

/* 24/11 (Bruno, "faz"): o que faltava no estilo novo — som da partida, painel da Store, caixinhas de raridade da Collection */
#btn-som-mesa { height: auto !important; aspect-ratio: 170 / 180; border: 0; border-radius: 0; padding: 0; background: url(img/ui_chip_redondo.webp) center / 100% 100% no-repeat; color: #ffd36b; }
#btn-som-mesa svg { position: absolute; width: 36%; height: auto; aspect-ratio: 1; left: 31.7%; top: 36.1%; transform: none; } /* centro do disco (49,7% ; 53,1%); o svg tem 34% da altura */
#btn-som-mesa.mudo { color: #c9a868; }
.store { border-style: solid; border-color: transparent; border-image: url(img/ui_painel.webp) 70 fill / calc(6 * var(--u)) stretch; border-radius: 0; background: none;
  padding: 2.4cqh calc(4.4 * var(--u)); }
.chip-rar { border-style: solid; border-color: transparent; border-image: url(img/ui_painel.webp) 70 fill / calc(3.4 * var(--u)) stretch; border-radius: 0; background: none;
  padding-left: calc(2.8 * var(--u)); padding-right: calc(2.8 * var(--u)); filter: brightness(.85); }
.chip-rar i { left: calc(2.4 * var(--u)); bottom: calc(1.2 * var(--u)); width: calc(var(--p) * .86); max-width: calc(100% - 4.8 * var(--u)); border-radius: 2px; }
.chip-rar:hover { filter: brightness(1); }
.chip-rar.sel { background: none; box-shadow: none; filter: brightness(1.2) drop-shadow(0 0 .8cqh rgba(255,200,90,.55)); }

/* 24/11: mensagem de loot no meio da mesa, verde com contorno preto como a do Tibia (fx.js mostrarLoot) */
.msg-loot { position: absolute; left: 50%; top: 31%; transform: translate(-50%, -50%); z-index: 70; /* acima do aviso de blessing (z 60), que fica no meio */ pointer-events: none; max-width: 90%; text-align: center;
  font-family: Verdana, Tahoma, sans-serif; font-weight: 700; font-size: calc(3.6 * var(--u)); color: #00f000; white-space: nowrap;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 4px #000; }
.msg-loot.dele { color: #9fd3ff; }
@media (orientation: landscape) { .msg-loot { font-size: 2.6cqh; } }

/* 24/11: fala do NPC como no Tibia (azul-claro, contorno preto) — fx.js npcEmDestaque e jogada do NPC da IA */
.fala-npc { text-align: center; white-space: nowrap; font: 700 calc(3.4 * var(--u)) Verdana, Tahoma, sans-serif; color: #5ff7f7; margin-bottom: .8cqh;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 4px #000; }
body > .fala-npc { font-size: 22px; }
@media (orientation: landscape) { .fala-npc { font-size: 2.6cqh; } }

/* 24/11: clima do Environment em jogo — bordas da mesa brilham na cor do lugar (fx.js atualizarClima), o centro fica limpo */
#clima-amb { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(var(--cor-amb), .22) 82%, rgba(var(--cor-amb), .42) 100%);
  animation: clima-pulsa 4.5s ease-in-out infinite; }
@keyframes clima-pulsa { 50% { opacity: .65; } }

/* 25/11 número de dano no estilo do Tibia: Verdana com contorno preto, cor do elemento (Bruno aprovou o mockup 2) */
.dano-flutuante { font-family: Verdana, Tahoma, sans-serif; font-weight: 700; letter-spacing: .02em; color: #ff2b2b;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 2px 0 0 #000, -2px 0 0 #000; }
.dano-flutuante.t-fogo { color: #ff9a1f; } .dano-flutuante.t-gelo { color: #5fe6ff; } .dano-flutuante.t-energia { color: #c35cff; }
.dano-flutuante.t-terra { color: #3ee23e; } .dano-flutuante.t-morte { color: #e0302a; } .dano-flutuante.t-sagrado { color: #ffff5a; }
.dano-flutuante.t-fisico { color: #ff2b2b; } .dano-flutuante.t-neutro { color: #f0f0f0; } .dano-flutuante.cura { color: #4dff4d; }

/* 25/11 tela de fim (Bruno): título na placa do menu (ui_titulo), raios atrás do avatar na vitória, resumo da partida no painel 9-slice */
.fim { gap: 1.6cqh; }
.fim-titulo { --th: calc(15 * var(--u)); height: var(--th); display: flex; align-items: center; padding: 0 calc(var(--th) * 1.05); border-style: solid;
  border-image: url(img/ui_titulo.webp) 49 92 49 92 fill / 50% calc(var(--th) * .93) stretch; font-size: calc(var(--th) * .5);
  animation: fim-placa .7s cubic-bezier(.2,1.4,.4,1) both; }
.fim-titulo span { transform: translateY(-4%); }
@keyframes fim-placa { from { transform: translateY(-40%) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.fim.ganhou .fim-avatar { position: relative; }
.fim.ganhou .fim-avatar::before { content: ""; position: absolute; inset: -45%; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,210,110,.32) 0 8deg, transparent 8deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 68%); mask-image: radial-gradient(circle, #000 25%, transparent 68%);
  animation: fim-raios 14s linear infinite; }
@keyframes fim-raios { to { transform: rotate(360deg); } }
.fim-resumo { --rw: min(80cqw, calc(74 * var(--u))); width: var(--rw); box-sizing: border-box; border-style: solid; border-color: transparent;
  border-image: url(img/ui_painel.webp) 70 fill / calc(4.6 * var(--u)) stretch; padding: calc(3.4 * var(--u)) calc(5 * var(--u));
  display: grid; gap: .5cqh; font-family: "Alegreya Sans", Verdana, sans-serif; text-shadow: 0 1px 2px #000; }
.fim-resumo:empty { display: none; }
.fr-cab, .fr-linha { display: grid; grid-template-columns: 1fr calc(14 * var(--u)) calc(14 * var(--u)); align-items: center; gap: calc(1.5 * var(--u)); }
.fr-cab b { font-family: Cinzel, serif; font-size: calc(3 * var(--u)); color: #ffe2a0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-linha { opacity: .25; transition: opacity .25s; } .fr-linha.viva { opacity: 1; }
.fr-linha span { font-size: calc(3.2 * var(--u)); color: #e8d7b5; text-align: left; }
.fr-linha b { font-family: Verdana, Tahoma, sans-serif; font-size: calc(3.8 * var(--u)); color: #f6ead0; text-align: center; font-variant-numeric: tabular-nums; }
.fr-linha b.lider { color: #ffd36b; text-shadow: 0 0 8px rgba(255,190,80,.7), 0 1px 2px #000; }
.fr-rodape { font-size: calc(2.8 * var(--u)); color: #bfa77c; text-align: center; margin-top: .4cqh; }
.fim .btn { font-size: calc(4.4 * var(--u)); padding: 1.8cqh calc(9 * var(--u)); }
.tibia-corpo .fim-resumo { align-self: center; }
@media (min-aspect-ratio: 1/1) {
  .fim-titulo { --th: 10cqh; } .fim-resumo { --rw: min(46cqw, 62cqh); border-image-width: 3.4cqh; padding: 2.6cqh 4cqh; }
  .fr-cab, .fr-linha { grid-template-columns: 1fr 11cqh 11cqh; } .fr-cab b { font-size: 2cqh; } .fr-linha span { font-size: 2.1cqh; } .fr-linha b { font-size: 2.5cqh; }
  .fr-rodape { font-size: 1.8cqh; } .fim .btn { font-size: 2.8cqh; padding: 1.6cqh 6cqh; }
}
@media (prefers-reduced-motion: reduce) { .fim.ganhou .fim-avatar::before { animation: none; } }
.fim:has(.fim-resumo:not(:empty)) .fim-avatar { width: calc(28 * var(--u)) !important; height: calc(28 * var(--u)) !important; }
@media (min-aspect-ratio: 1/1) { .fim:has(.fim-resumo:not(:empty)) .fim-avatar { width: 19cqh !important; height: 19cqh !important; } .fim { gap: 1.2cqh; } }

/* 25/11 moeda: giro no eixo X com espessura (3 discos de borda), sombra na mesa e brilho ao cair (fx.js animarMoeda) */
.moeda-palco { position: relative; }
.moeda-palco.js .moeda { animation: none; }
.moeda-palco.js .moeda i { transform: translateZ(3px); }
.moeda-palco.js .moeda i + i { transform: rotateX(180deg) translateZ(3px); }
.moeda-voo { position: absolute; inset: 0; transform-style: preserve-3d; }
.moeda b { display: none; }
.moeda-palco.js .moeda b { display: block; position: absolute; inset: 1%; border-radius: 50%; background: radial-gradient(circle, #a87a25 55%, #5a3c0e); }
.moeda-palco.js .moeda b:nth-of-type(1) { transform: translateZ(-2px); } .moeda-palco.js .moeda b:nth-of-type(2) { transform: translateZ(0); }
.moeda-palco.js .moeda b:nth-of-type(3) { transform: translateZ(2px); }
.moeda-sombra { position: absolute; left: 50%; bottom: -9%; width: 80%; height: 14%; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0,0,0,.75), transparent 70%); opacity: 0; }
.moeda-palco:not(.js) .moeda-sombra { display: none; }
.moeda-brilho { position: absolute; inset: -25%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,230,150,.55) 0 30%, rgba(255,200,90,.25) 45%, transparent 65%); }
.moeda-palco.js ~ .aviso-texto { animation-delay: 1.5s; }
.aviso div:has(> .moeda-palco.js) > .aviso-ok { animation-delay: 1.6s; }

/* 25/11 faixa de turno na placa do menu (ui_titulo), desliza da esquerda; no turno do oponente a placa fica fria */
.seu-turno { --th: 13cqh; height: var(--th); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 calc(var(--th) * 1.15); box-sizing: border-box; background: none; border-style: solid;
  border-image: url(img/ui_titulo.webp) 49 92 49 92 fill / 50% calc(var(--th) * .93) stretch;
  font-size: calc(var(--th) * .4); line-height: 1; color: #ffe2a0; text-shadow: 0 2px 0 #1a0604, 0 0 6px rgba(0,0,0,.8); }
.seu-turno span { transform: translateY(-3%); }
.seu-turno small { display: block; font-size: .36em; letter-spacing: .14em; text-transform: uppercase; color: #e8d7b5; margin-top: .25em; }
.seu-turno.dele { filter: saturate(.25) brightness(.85) hue-rotate(180deg); color: #e3ecff; }
.seu-turno.mostra { animation: faixaTurno 1.9s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes faixaTurno {
  0% { opacity: 0; transform: translate(-150%, -50%) skewX(-8deg); }
  18% { opacity: 1; transform: translate(-50%, -50%) skewX(0); }
  24% { transform: translate(-50%, -50%) scale(1.04); } 30% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -50%); }
  100% { opacity: 0; transform: translate(40%, -50%) skewX(6deg); } }
@media (min-aspect-ratio: 1/1) { .seu-turno { --th: 11cqh; } }
@media (prefers-reduced-motion: reduce) { .seu-turno.mostra { animation-duration: .01s; animation-delay: 0s; } }
.moeda-brilho { z-index: 0; } .moeda-voo { z-index: 1; } .moeda-sombra { z-index: 0; } /* brilho atrás da moeda, não por cima */
.seu-turno { --th: calc(14 * var(--u)); } @media (min-aspect-ratio: 1/1) { .seu-turno { --th: 11cqh; } } /* celular em pé: pela largura (13cqh estourava a tela) */
/* 25/11 (Bruno: "os textos estão saindo da faixa"): a faixa vermelha da ui_titulo vai de 30% a 74% da altura (medido);
   duas linhas não cabiam. Agora uma linha só, centrada no meio da faixa (52%), com o nº do turno pequeno ao lado */
.seu-turno { flex-direction: row; align-items: center; gap: .45em; padding-top: calc(var(--th) * .04); font-size: calc(var(--th) * .36); }
.seu-turno span { transform: none; }
.seu-turno small { display: inline; font-size: .5em; margin: 0; padding-left: .7em; border-left: 1px solid rgba(255,226,160,.45); line-height: 1.2; }

/* 25/11 online: aviso de conexão caída (some sozinho quando volta) */
.rede-caiu { position: absolute; left: 50%; top: 1.2cqh; transform: translateX(-50%); z-index: 40; pointer-events: none; white-space: nowrap;
  padding: .8cqh 2.4cqh; border-radius: 99px; background: rgba(60,10,8,.92); border: 1px solid #e05a4a; color: #ffd9d2;
  font: 700 1.9cqh "Alegreya Sans", Verdana, sans-serif; box-shadow: 0 0 14px rgba(0,0,0,.7); animation: redePulsa 1.4s ease-in-out infinite; }
@keyframes redePulsa { 50% { border-color: #ffb0a0; box-shadow: 0 0 18px rgba(224,90,74,.55); } }
@media (max-aspect-ratio: 1/1) { .rede-caiu { font-size: calc(3 * var(--u)); top: 7cqh; white-space: normal; text-align: center; width: 84%; } }

/* 25/11 dicas da primeira partida (dicas.js): balão de pergaminho com seta apontando o próximo passo */
.dica-novato { position: fixed; z-index: 58; max-width: min(78vw, 340px); box-sizing: border-box; display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; border-radius: 10px; background: linear-gradient(#f4e2b8, #e3c88f); color: #2a1a0a; border: 2px solid #8a5a20;
  font: 500 15px/1.3 "Alegreya Sans", Verdana, sans-serif; box-shadow: 0 6px 18px rgba(0,0,0,.65); pointer-events: auto; }
.dica-novato b { color: #7a1408; }
.dica-novato::after { content: ""; position: absolute; left: var(--seta, 50%); bottom: -10px; transform: translateX(-50%);
  border: 10px solid transparent; border-bottom: 0; border-top-color: #8a5a20; }
.dica-novato.embaixo::after { bottom: auto; top: -10px; border-bottom: 10px solid #8a5a20; border-top: 0; }
.dica-novato .dn-ok { flex: none; border: 0; background: rgba(0,0,0,.12); color: #5a3a14; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: 13px; line-height: 1; }
.dica-novato.viva { animation: dicaEntra .45s cubic-bezier(.2,1.4,.4,1) both, dicaBalanca 2.4s ease-in-out .5s infinite; }
@keyframes dicaEntra { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes dicaBalanca { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .dica-novato.viva { animation: none; } }

/* 25/11 leitura no celular: carta aberta maior (era 74% da largura; o texto de efeito ficava com ~9 px), efeito escrito no botão do ataque */
@media (max-aspect-ratio: 1/1) {
  .modal { overflow-y: auto; }
  .modal .grande { width: min(92cqw, calc(64cqh * 2 / 3)); }
}
.acao .atk-nome { display: flex; flex-direction: column; gap: .3cqh; min-width: 0; }
.acao .atk-ef { font-size: calc(2.9 * var(--u)); font-weight: 500; line-height: 1.25; opacity: .88; }
@media (min-aspect-ratio: 1/1) { .acao .atk-ef { font-size: 1.7cqh; } }
/* toque longo: carta grande no meio da tela enquanto o dedo segura */
.carta-longa { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; pointer-events: none; background: rgba(5,3,2,.72); opacity: 0; visibility: hidden; transition: opacity .12s, visibility 0s .12s; }
.carta-longa.mostra { opacity: 1; visibility: visible; transition: opacity .12s; }
.carta-longa img { width: min(94vw, calc(86vh * 2 / 3)); max-width: none; border-radius: 3%; box-shadow: 0 10px 40px #000; }
.carta-longa.mostra img { animation: longaCresce .18s cubic-bezier(.2,1.2,.4,1); }
@keyframes longaCresce { from { transform: scale(.7); } to { transform: none; } }

/* 25/11 (Bruno, mockup A): montador no PC — baralho em mini-cartas à esquerda, coleção à direita */
@media (min-aspect-ratio: 1/1) and (min-height: 560px), (min-aspect-ratio: 1/1) and (hover: hover) and (pointer: fine) { /* PC com mouse sempre (Windows com escala 150-175% dá menos de 560 px de altura); celular deitado segue o layout antigo */
  #tela-editor.tela-menu.editor { max-width: none; width: 96%; left: 2%; right: auto; margin: 0; overflow: hidden;
    display: grid; grid-template-columns: 56cqh 1fr; grid-template-rows: auto auto 1fr auto auto;
    grid-template-areas: "topo barra" "energia colecao" "deck colecao" "aviso colecao" "acoes colecao";
    column-gap: 2.4cqh; row-gap: 1.2cqh; padding: 2cqh 0; box-sizing: border-box; align-items: start; }
  #tela-editor .topo-menu { grid-area: topo; width: auto; }
  #tela-editor .ed-energia { grid-area: energia; gap: .8cqh; }
  /* as cartas se medem pela caixa do baralho (container): 6 fileiras (30 + Extra) sempre cabem, sem rolar nem sobrepor */
  #tela-editor .ed-espacos { grid-area: deck; align-self: stretch; min-height: 0; container-type: size; grid-template-columns: repeat(6, max-content);
    gap: 6px; padding: 1cqh; justify-content: center; align-content: safe center; overflow-y: auto; scrollbar-width: thin; }
  #tela-editor .espaco { width: min(calc((100cqh - 30px) / 6 * 2 / 3), calc((100cqw - 30px) / 6)); height: auto; aspect-ratio: 2 / 3; border-radius: 6px; }
  #tela-editor .espaco.extra-slot small { font-size: 13px; }
  #tela-editor .selo-capa { font-size: 13px; }
  #tela-editor .ed-aviso { grid-area: aviso; text-align: center; font-size: 1.8cqh; }
  #tela-editor .barra-acoes { grid-area: acoes; justify-content: center; margin: 0; position: static; }
  #tela-editor .ed-barra { grid-area: barra; align-self: center; }
  #tela-editor .ed-colecao { grid-area: colecao; align-self: stretch; min-height: 0; height: auto; overflow-y: auto;
    background: rgba(10,6,3,.55); border: 1px solid rgba(216,165,74,.35); border-radius: 1.4cqh; padding: 1.4cqh; }
  #tela-editor .ed-filtros { gap: .7cqh; }
  #tela-editor .chip { height: 4.6cqh; min-width: 4.6cqh; font-size: 1.8cqh; padding: 0 1.3cqh; }
  #tela-editor .chip img { width: 3cqh; }
  #tela-editor .en-op { width: 5cqh; height: 5cqh; }
  #tela-editor .ed-energia > span { font-size: 2cqh; }
  #tela-editor .ed-nome { font-size: 2.8cqh; }
  #tela-editor .conta { font-size: 3cqh; }
  #tela-editor .ed-grade { grid-template-columns: repeat(7, 1fr); gap: 1.4cqh; }
  #tela-editor .ed-tenho { font-size: 1.5cqh; }
}


/* 25/11 (Bruno): na vitória de desafio o Play Again ficava abaixo da tela. A tela de fim rola se não couber e o botão fica sempre preso embaixo */
#aviso .fim { max-height: 100%; overflow-y: auto; overflow-x: hidden; box-sizing: border-box; scrollbar-width: none; overscroll-behavior: contain; }
#aviso .fim > .btn, #aviso .fim .tibia-botoes { position: sticky; bottom: .6cqh; flex: none; z-index: 3; }
#aviso .fim > * { flex-shrink: 0; }

/* 25/11 ✦ Suggest no montador (sugestoes.js): no PC cobre a coleção; no celular sobe por baixo como uma folha */
#ed-sugerir { background: linear-gradient(180deg, #6a4210, #3a2410); color: #ffd36b; border-color: #ffd36b; box-shadow: 0 0 8px rgba(255,190,80,.55); }
#ed-sugerir.sel { box-shadow: 0 0 14px rgba(255,190,80,.95); }
.ed-sug { position: absolute; left: 2%; right: 2%; bottom: 1cqh; height: 62%; z-index: 6; display: flex; flex-direction: column; gap: 1cqh; overflow: hidden;
  --cols: 1; --iw: 13cqw; --t1: 4.6cqw; --t2: 3.6cqw; --t3: 3cqw; --bx: 7cqw;
  background: linear-gradient(180deg, rgba(34,20,9,.97), rgba(16,9,4,.97)); border: 2px solid #d8a54a; border-radius: 1.4cqh;
  box-shadow: 0 0 0 1px #000, 0 10px 40px rgba(0,0,0,.9), inset 0 0 30px rgba(255,190,80,.08); }
.ed-sug .sg-topo { display: flex; align-items: center; gap: 1.4cqh; padding: 1.4cqh 1.8cqh 0; }
.ed-sug .sg-topo b { font-family: Cinzel, serif; font-weight: 800; color: #ffd36b; font-size: var(--t1); white-space: nowrap; }
.ed-sug .sg-topo small { color: #e8d7b5; opacity: .85; font-size: var(--t3); flex: 1; }
.ed-sug .sg-x { width: var(--bx); height: var(--bx); flex: none; border-radius: 50%; border: 1px solid #8a5a14; background: #2a170a; color: #ffd36b; font-size: var(--t2); display: grid; place-items: center; padding: 0; }
.ed-sug .sg-corpo { overflow-y: auto; padding: 0 1.8cqh 1.6cqh; display: flex; flex-direction: column; gap: 1.2cqh; scrollbar-width: thin; scrollbar-color: rgba(216,165,74,.6) transparent; overscroll-behavior: contain; }
.ed-sug h4 { font-family: Cinzel, serif; color: #d8a54a; font-size: var(--t2); margin: .4cqh 0 0; display: flex; align-items: center; gap: 1cqh; }
.ed-sug h4::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(216,165,74,.6), transparent); }
.ed-sug .sg-grade { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 1.2cqh; }
.ed-sug .sg-item { display: flex; gap: 1.2cqh; align-items: center; background: rgba(0,0,0,.35); border: 1px solid rgba(216,165,74,.35); border-radius: 1cqh; padding: .9cqh; }
.ed-sug .sg-item img { width: var(--iw); aspect-ratio: 2 / 3; border-radius: .6cqh; box-shadow: 0 2px 6px #000; flex: none; object-fit: cover; cursor: zoom-in; }
.ed-sug .sg-item > div { display: flex; flex-direction: column; gap: .5cqh; min-width: 0; flex: 1; }
.ed-sug .sg-item b { font-family: Cinzel, serif; color: #f6ead0; font-size: var(--t2); line-height: 1.1; }
.ed-sug .sg-item p { margin: 0; color: #e8d7b5; font-size: var(--t3); line-height: 1.25; }
.ed-sug .sg-item .btn { align-self: flex-start; font-size: var(--t3); padding: .5cqh 1.6cqh; margin-top: .3cqh; }
.ed-sug .sg-item .tem { font-size: calc(var(--t3) * .9); color: #d8a54a; }
.ed-sug .sg-vazio { color: #e8d7b5; font-size: var(--t2); text-align: center; margin: 4cqh 2cqh; }
@media (min-aspect-ratio: 1/1) { .ed-sug { --cols: 2; --iw: 14cqh; --t1: 4cqh; --t2: 3.1cqh; --t3: 2.6cqh; --bx: 6.5cqh; height: 72%; } } /* celular deitado */
@media (min-aspect-ratio: 1/1) and (min-height: 560px), (min-aspect-ratio: 1/1) and (hover: hover) and (pointer: fine) {
  #tela-editor .ed-sug { position: relative; left: auto; right: auto; bottom: auto; height: auto; grid-area: colecao; align-self: stretch; min-height: 0;
    --cols: 2; --iw: 11cqh; --t1: 2.6cqh; --t2: 1.9cqh; --t3: 1.55cqh; --bx: 3.6cqh; }
}

/* ---------- 25/11 Arena (arena.js) ---------- */
/* botão em destaque (estilo Svargrond, GPT 25/11): arte 1200x383 com "ARENA" desenhado; o subtítulo vai na faixa vazia,
   medida na arte: centro x 57,2% y 67,4%, largura 45% */
.menu > #menu-arena { order: -1; position: relative; background: url(img/arena_botao.webp) center/100% 100% no-repeat; border: 0; box-shadow: none;
  aspect-ratio: 1200 / 383; height: auto; min-height: 0; padding: 0; width: 100%; filter: drop-shadow(0 0 14px rgba(143,211,255,.45)) drop-shadow(0 6px 10px rgba(0,0,0,.8));
  animation: ar-pulsa 2.6s ease-in-out infinite; }
#menu-arena b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* "ARENA" já está na arte; fica só para leitor de tela */
#menu-arena small { position: absolute; left: 57.2%; top: 67.4%; transform: translate(-50%, -50%); width: 45%; text-align: center; margin: 0; white-space: nowrap; overflow: visible; text-overflow: clip;
  font-family: Cinzel, serif; font-weight: 800; letter-spacing: .04em; color: #e8f6ff; text-shadow: 0 1px 3px #000, 0 0 8px rgba(0,0,0,.9); font-size: 2.6cqw; opacity: 1; }
@media (max-aspect-ratio: 1/1) { #tela-menu:has(#menu-arena) .logo img { width: calc(58 * var(--u)); } }
@keyframes ar-pulsa { 50% { filter: drop-shadow(0 0 24px rgba(143,211,255,.6)) drop-shadow(0 6px 10px rgba(0,0,0,.8)); } }
@media (prefers-reduced-motion: reduce) { .menu > #menu-arena { animation: none; } }
@media (min-aspect-ratio: 1/1) {
  .menu > #menu-arena { grid-column: 1 / -1; justify-self: center; width: 46cqh; }
  #tela-menu:has(#menu-arena) .logo img { width: 35cqh; } /* abre espaço para o botão da Arena: todos os botões do menu cabem sem rolar (conferido em 11 tamanhos) */
  .menu #menu-instalar { grid-column: 2 / span 4; } /* agora fica dentro do par do Feed (display: contents) */
  #menu-arena small { font-size: 1.6cqh; }
}
.inicio:has(#tela-arena:not(.oculto)) { background: radial-gradient(ellipse at 50% 55%, rgba(0,0,0,.35), rgba(0,0,0,.25) 60%, rgba(0,0,0,.55)), url(img/arena_fundo.webp) center/cover no-repeat, #0a0604; }
.arena-corpo { display: flex; flex-direction: column; gap: 1.6cqh; padding: 1cqh calc(3 * var(--u)) 4cqh; color: #f6ead0; max-width: 150cqh; margin: 0 auto; }
.ar-msg { text-align: center; margin-top: 6cqh; }
.ar-el { width: calc(4 * var(--u)); height: calc(4 * var(--u)); vertical-align: middle; }
.ar-hero { display: flex; flex-direction: column; gap: 1.4cqh; padding: 1.8cqh calc(3.4 * var(--u)); border-radius: calc(3 * var(--u)); border: 2px solid #d8a54a;
  background: radial-gradient(ellipse at 20% 0%, rgba(255,190,80,.18), transparent 60%), linear-gradient(#2e1d0c, #160d05); box-shadow: 0 1cqh 3cqh rgba(0,0,0,.7); }
.ar-hero h3, .ar-fim h3 { font-family: Cinzel, serif; font-weight: 800; color: #ffd36b; font-size: calc(5.6 * var(--u)); text-align: center; margin: 0; text-shadow: 0 2px 6px #000; }
.ar-hero p { margin: .6cqh 0 0; font-size: calc(3.2 * var(--u)); line-height: 1.35; color: #e8d7b5; }
.ar-premios { display: grid; grid-template-columns: 1fr 1fr; gap: .8cqh; }
.ar-premios div { display: flex; flex-direction: column; align-items: center; gap: .2cqh; padding: .9cqh .6cqh; border-radius: calc(2 * var(--u)); background: rgba(10,6,3,.6); border: 1px solid #5a4428; text-align: center; }
.ar-premios b { font-family: Cinzel, serif; color: #ffd36b; font-size: calc(3.2 * var(--u)); }
.ar-premios span { font-size: calc(2.8 * var(--u)); color: #e8d7b5; display: flex; align-items: center; gap: .5cqh; }
.ar-premios span img { width: calc(4 * var(--u)); }
.ar-premios .top { border-color: #ffd36b; box-shadow: inset 0 0 12px rgba(255,190,80,.35); }
.ar-premios .on { border-color: #7fe07a; box-shadow: 0 0 10px rgba(127,224,122,.5); }
.ar-entradas { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(2 * var(--u)); }
.ar-entrada { display: flex; flex-direction: column; align-items: center; gap: .4cqh; padding: 1.4cqh .6cqh; border-radius: calc(2.4 * var(--u)); cursor: pointer;
  border: 2px solid #d8a54a; background: linear-gradient(#6a4210, #3a2410); color: #ffd36b; box-shadow: 0 0 10px rgba(255,190,80,.45); }
.ar-entrada b { font-family: Cinzel, serif; font-weight: 800; font-size: calc(3.4 * var(--u)); display: flex; align-items: center; gap: .6cqh; }
.ar-entrada b img { width: calc(5 * var(--u)); }
.ar-entrada small { font-size: calc(2.5 * var(--u)); color: #f6ead0; opacity: .85; }
.ar-entrada:disabled, .ar-entrada.soon { filter: grayscale(.8) brightness(.7); box-shadow: none; cursor: default; }
.ar-aviso { text-align: center; font-size: calc(2.8 * var(--u)); color: #e8d7b5; margin: 0; min-height: 1.3em; }
.ar-draft-topo { display: flex; align-items: baseline; gap: calc(2 * var(--u)); flex-wrap: wrap; justify-content: center; text-align: center; }
.ar-pick { font-family: Cinzel, serif; font-weight: 800; color: #ffd36b; font-size: calc(6 * var(--u)); }
.ar-pick small { font-size: .55em; opacity: .75; }
.ar-draft-topo b { font-family: Cinzel, serif; font-size: calc(4 * var(--u)); color: #f6ead0; }
.ar-draft-topo > small { flex-basis: 100%; font-size: calc(2.6 * var(--u)); opacity: .8; }
.ar-opcoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(2.4 * var(--u)); width: min(100%, 92cqh); margin: 1cqh auto 0; }
.ar-op { position: relative; cursor: pointer; border-radius: calc(2 * var(--u)); transition: transform .15s, box-shadow .15s; }
.ar-op img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; border-radius: calc(2 * var(--u)); box-shadow: 0 .6cqh 1.6cqh rgba(0,0,0,.8); }
.ar-op.sel { transform: translateY(-1cqh) scale(1.03); }
.ar-op.sel img { box-shadow: 0 0 0 3px #ffd36b, 0 0 22px rgba(255,200,90,.9); }
.ar-ja { position: absolute; left: 50%; top: -1.2cqh; transform: translateX(-50%); white-space: nowrap; padding: .2cqh 1cqh; border-radius: 99px; background: #1c1108; border: 1px solid #ffd36b; color: #ffd36b; font-size: calc(2.4 * var(--u)); }
.ar-lupa { position: absolute; right: .6cqh; bottom: .6cqh; width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; border: 1px solid #ffd36b; background: rgba(20,12,6,.88); font-size: calc(3.6 * var(--u)); display: grid; place-items: center; padding: 0; cursor: pointer; }
.ar-confirma { display: flex; justify-content: center; }
.ar-confirma .btn { min-width: min(70%, 60cqh); }
.ar-confirma .btn:disabled { filter: grayscale(.7) brightness(.75); }
.ar-deck-topo { display: flex; justify-content: space-between; align-items: center; gap: 1cqh; flex-wrap: wrap; font-size: calc(2.8 * var(--u)); color: #e8d7b5; border-top: 1px solid rgba(216,165,74,.35); padding-top: 1.2cqh; }
.ar-deck-topo b { font-family: Cinzel, serif; color: #ffd36b; font-size: calc(3.4 * var(--u)); }
.ar-deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(13 * var(--u)), 1fr)); gap: .8cqh; }
.ar-mini { position: relative; padding: 0; border: 0; background: none; cursor: pointer; }
.ar-mini img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: .6cqh; box-shadow: 0 1px 4px #000; display: block; }
.ar-mini span { position: absolute; right: 2px; top: 2px; padding: 0 .5cqh; border-radius: .5cqh; background: rgba(10,6,3,.9); border: 1px solid #ffd36b; color: #ffd36b; font-size: calc(2.4 * var(--u)); font-weight: 700; }
.ar-vazio { grid-column: 1 / -1; text-align: center; opacity: .7; font-size: calc(2.8 * var(--u)); }
.ar-placar { display: flex; justify-content: center; gap: calc(6 * var(--u)); flex-wrap: wrap; }
.ar-vit, .ar-der { display: flex; align-items: center; gap: calc(1.2 * var(--u)); flex-wrap: wrap; justify-content: center; }
.ar-vit small, .ar-der small { flex-basis: 100%; text-align: center; font-size: calc(2.6 * var(--u)); opacity: .85; }
.ar-vit i { width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: #1c1108; border: 2px solid #6a4a1a; }
.ar-vit i.on { background: radial-gradient(circle at 35% 30%, #fff3b0, #ffd36b 40%, #b07818); border-color: #ffd36b; box-shadow: 0 0 10px rgba(255,200,90,.8); }
.ar-der i { width: calc(6 * var(--u)); height: calc(6 * var(--u)); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: calc(3.6 * var(--u)); color: #4a2a1a; border-radius: calc(1.4 * var(--u)); background: #1c1108; border: 2px solid #4a2a1a; }
.ar-der i.on { color: #ff6a4a; border-color: #ff6a4a; box-shadow: 0 0 8px rgba(255,90,60,.6); }
.ar-proximo { display: flex; align-items: center; gap: calc(3 * var(--u)); padding: 1.2cqh calc(3 * var(--u)); border-radius: calc(3 * var(--u)); background: linear-gradient(90deg, rgba(60,14,8,.85), rgba(20,10,5,.85)); border: 2px solid #a8412a; }
.ar-proximo > img { width: calc(20 * var(--u)); aspect-ratio: 2 / 3; object-fit: cover; border-radius: calc(1.4 * var(--u)); box-shadow: 0 2px 8px #000; }
.ar-proximo div { display: flex; flex-direction: column; gap: .4cqh; }
.ar-proximo small { font-size: calc(2.6 * var(--u)); opacity: .8; }
.ar-proximo b { font-family: Cinzel, serif; font-size: calc(4.4 * var(--u)); color: #ffb08a; }
.ar-proximo span { font-size: calc(2.9 * var(--u)); display: flex; align-items: center; gap: .6cqh; }
.ar-acoes { justify-content: center; }
.ar-acoes .btn.confirma { background: #6a1a10; }
.ar-fim { display: flex; flex-direction: column; gap: 1.6cqh; align-items: stretch; }
.ar-ganhos { display: flex; justify-content: center; gap: calc(4 * var(--u)); flex-wrap: wrap; }
.ar-fa-tit { text-align: center; margin: 0; display: flex; flex-direction: column; } .ar-fa-tit b { font-family: Cinzel, serif; color: #ffd36b; font-size: calc(4.2 * var(--u)); } .ar-fa-tit small { font-size: calc(2.8 * var(--u)); opacity: .85; }
.ar-fa-ganha { display: flex; flex-direction: column; align-items: center; gap: 1cqh; } .ar-fa-ganha img { width: min(45%, 30cqh); border-radius: calc(2 * var(--u)); box-shadow: 0 0 0 2px #ffd36b, 0 0 24px rgba(255,200,90,.7); }
.ar-fa-ganha small { font-size: calc(3 * var(--u)); color: #ffd36b; }
.fim-arena { display: flex; flex-direction: column; align-items: center; gap: .6cqh; }
.fim-arena small { font-size: calc(3 * var(--u)); color: #f6ead0; }
.ar-pips { display: flex; gap: calc(1 * var(--u)); }
.ar-pips i { width: calc(4.4 * var(--u)); height: calc(4.4 * var(--u)); border-radius: 50%; background: #1c1108; border: 2px solid #6a4a1a; }
.ar-pips i.on { background: radial-gradient(circle at 35% 30%, #fff3b0, #ffd36b 40%, #b07818); border-color: #ffd36b; }
@media (min-aspect-ratio: 1/1) {
  .arena-corpo { --u: .62cqh; }
  .ar-hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; }
  .ar-hero h3 { text-align: left; }
  .ar-opcoes { width: min(100%, 78cqh); }
  .ar-deck { grid-template-columns: repeat(auto-fill, minmax(8.5cqh, 1fr)); }
}

/* 25/11 Arena: pele Svargrond (peças do GPT: arena_painel 1100x538, arena_placa 900x203, runas do placar). Bordas medidas na arte:
   painel topo 66 (com os pingentes de gelo) · baixo 37 · lados 24 (cantos de ferro ~64); placa topo 49 · baixo 38 · losangos dos lados ~120 */
.ar-hero, .ar-proximo, .ar-fim { background: none; box-shadow: none; border-style: solid; border-color: transparent;
  border-image: url(img/arena_painel.webp) 88 64 100 64 fill / calc(6.6 * var(--u)) calc(5 * var(--u)) calc(7.5 * var(--u)) calc(5 * var(--u)) stretch; /* losangos medidos: o de cima desce até 85 px, o de baixo sobe até 98 px */
  border-width: calc(6.6 * var(--u)) calc(5 * var(--u)) calc(7.5 * var(--u)) calc(5 * var(--u)); border-radius: 0; filter: drop-shadow(0 1cqh 2cqh rgba(0,0,0,.75)); }
.ar-hero { padding: 1cqh calc(1.4 * var(--u)); }
.ar-proximo { padding: .6cqh calc(1.4 * var(--u)); }
.ar-fim { padding: 1.4cqh calc(2 * var(--u)) .6cqh; }
.ar-hero h3, .ar-fim h3, .ar-pick { color: #fff; text-shadow: 0 0 12px rgba(143,211,255,.6), 0 2px 6px #000; }
.ar-proximo b { color: #bfe6ff; }
.ar-premios div, .ar-entrada { background: none; box-shadow: none; border-style: solid; border-color: transparent; border-radius: 0;
  border-image: url(img/arena_placa.webp) 50 120 40 120 fill / calc(2.2 * var(--u)) calc(5 * var(--u)) calc(1.7 * var(--u)) calc(5 * var(--u)) stretch;
  border-width: calc(2.2 * var(--u)) calc(5 * var(--u)) calc(1.7 * var(--u)) calc(5 * var(--u)); padding: .2cqh 0; }
.ar-premios .top { filter: drop-shadow(0 0 8px rgba(255,211,107,.7)); }
.ar-premios .on { filter: drop-shadow(0 0 10px rgba(143,211,255,.95)); }
.ar-entrada { color: #ffd36b; } .ar-entrada small { color: #dff1ff; }
.ar-entrada:not(:disabled):not(.soon) { filter: drop-shadow(0 0 10px rgba(143,211,255,.7)); }
.ar-entrada:not(:disabled):not(.soon):hover { filter: drop-shadow(0 0 16px rgba(143,211,255,1)); transform: translateY(-2px); }
.ar-vit i, .ar-pips i { background: url(img/arena_vit_off.webp) center/contain no-repeat; border: 0; border-radius: 0; box-shadow: none; }
.ar-vit i.on, .ar-pips i.on { background: url(img/arena_vit_on.webp) center/contain no-repeat; border: 0; box-shadow: none; filter: drop-shadow(0 0 6px rgba(143,211,255,.9)); }
.ar-der i { background: url(img/arena_der_off.webp) center/contain no-repeat; border: 0; border-radius: 0; color: transparent; filter: grayscale(.75) brightness(.5); }
.ar-der i.on { background: url(img/arena_der_on.webp) center/contain no-repeat; color: transparent; border: 0; box-shadow: none; filter: drop-shadow(0 0 6px rgba(255,80,50,.8)); }
.ar-vit i, .ar-der i { width: calc(8 * var(--u)); height: calc(8 * var(--u)); }
.ar-deck-topo { border-top-color: rgba(143,211,255,.4); }
.ar-op.sel img { box-shadow: 0 0 0 3px #8fd3ff, 0 0 24px rgba(143,211,255,.95); }
.ar-ja, .ar-lupa { border-color: #8fd3ff; }
@media (max-aspect-ratio: 1/1) { .ar-entradas { grid-template-columns: 1fr; gap: 1cqh; width: 86%; margin: 0 auto; } .ar-entrada { flex-direction: row; justify-content: center; gap: calc(3 * var(--u)); padding: .6cqh 0; } }

/* ---------- 25/11 chances dos pacotes (chances.js) ---------- */
.btn-chances { align-self: center; margin-top: 1cqh; }
.det-fonte { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6cqh calc(2 * var(--u)); color: #e8d7b5; font-size: calc(2.8 * var(--u)); text-align: center; max-width: 100%; }
.det-fonte > b { font-family: Cinzel, serif; color: #ffd36b; }
.det-fonte > span { flex-basis: 100%; opacity: .85; }
.det-pac { display: inline-flex; align-items: center; gap: calc(1.4 * var(--u)); padding: .4cqh calc(2 * var(--u)) .4cqh .4cqh; border-radius: 99px; border: 1px solid #d8a54a;
  background: rgba(20,12,6,.85); color: #f6ead0; font-size: inherit; cursor: pointer; }
.det-pac img { height: calc(7 * var(--u)); width: auto; }
.det-pac em { font-style: normal; color: #ffd36b; font-weight: 700; }
@media (min-aspect-ratio: 1/1) {
  .det-carta { grid-template-rows: auto minmax(0, 1fr) auto auto auto; grid-template-areas: "topo topo" "palco versoes" "info versoes" "fonte versoes" "barra versoes"; }
  .det-fonte { grid-area: fonte; font-size: 1.7cqh; justify-self: center; }
  .det-pac img { height: 4cqh; }
}
.ch-modal .soc-caixa { width: min(94cqw, 130cqh); max-height: 92cqh; gap: 1cqh; }
.ch-topo { display: flex; align-items: center; justify-content: space-between; }
.ch-x { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; border: 1px solid #8a5a14; background: #2a170a; color: #ffd36b; font-size: calc(4 * var(--u)); padding: 0; cursor: pointer; }
.ch-abas { display: flex; gap: calc(1.6 * var(--u)); justify-content: center; flex-wrap: wrap; }
.ch-aba { display: flex; align-items: center; gap: calc(1.4 * var(--u)); padding: .5cqh calc(2.4 * var(--u)) .5cqh .5cqh; border-radius: 99px; border: 1px solid #5a4428; background: rgba(10,6,3,.6);
  color: #e8d7b5; font-family: Cinzel, serif; font-weight: 700; font-size: calc(2.8 * var(--u)); cursor: pointer; }
.ch-aba img { height: calc(9 * var(--u)); width: auto; }
.ch-aba.sel { border-color: #ffd36b; color: #ffd36b; box-shadow: 0 0 10px rgba(255,200,90,.6); }
.ch-corpo { overflow-y: auto; display: flex; flex-direction: column; gap: 1.2cqh; min-height: 0; padding-right: .4cqh; }
.ch-tab { width: 100%; border-collapse: collapse; font-size: calc(2.8 * var(--u)); font-variant-numeric: tabular-nums; }
.ch-tab th { font-family: Cinzel, serif; color: #ffd36b; font-weight: 700; padding: .5cqh; border-bottom: 1px solid #5a4428; }
.ch-tab td { text-align: center; padding: .5cqh; border-bottom: 1px solid rgba(90,68,40,.4); color: #f6ead0; }
.ch-tab td:first-child, .ch-tab th:first-child { text-align: left; }
.ch-rar { font-family: Cinzel, serif; font-weight: 800; }
.ch-rar.r-normal { color: #e8d7b5; } .ch-rar.r-fullart { color: #8fd3ff; } .ch-rar.r-platina { color: #dfe8f2; } .ch-rar.r-crystal { color: #c89bff; } .ch-rar.r-gold { color: #ffd36b; }
.ch-raro { margin: 0; font-size: calc(2.7 * var(--u)); color: #e8d7b5; text-align: center; }
.ch-raro b { color: #ffd36b; margin-right: .6cqh; }
.ch-busca input { width: 100%; box-sizing: border-box; }
.ch-lista h4 { display: flex; align-items: baseline; gap: 1cqh; margin: 1cqh 0 .6cqh; font-size: calc(3.4 * var(--u)); }
.ch-lista h4 small { font-size: .7em; color: #c8b48a; font-weight: 400; }
.ch-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(52 * var(--u))), 1fr)); gap: .8cqh; }
.ch-carta { display: flex; gap: calc(2 * var(--u)); align-items: center; padding: .6cqh; border-radius: calc(1.4 * var(--u)); background: rgba(10,6,3,.55); border: 1px solid rgba(90,68,40,.6); }
.ch-carta img { width: calc(12 * var(--u)); aspect-ratio: 2 / 3; object-fit: cover; border-radius: .5cqh; flex: none; }
.ch-carta div { display: flex; flex-direction: column; gap: .2cqh; min-width: 0; }
.ch-carta b { font-family: Cinzel, serif; font-size: calc(2.9 * var(--u)); color: #f6ead0; }
.ch-carta em { font-style: normal; color: #ffd36b; font-weight: 700; font-size: calc(2.9 * var(--u)); font-variant-numeric: tabular-nums; }
.ch-carta small { color: #c8b48a; font-size: calc(2.4 * var(--u)); font-variant-numeric: tabular-nums; }
.ch-tem { color: #7fe07a; font-size: calc(2.4 * var(--u)); }
.ch-vazio, .ch-nota { text-align: center; color: #c8b48a; font-size: calc(2.6 * var(--u)); margin: .6cqh 0; }
@media (min-aspect-ratio: 1/1) {
  .ch-modal .soc-caixa { --u: .55cqh; }
  .ch-grade { grid-template-columns: repeat(auto-fill, minmax(34cqh, 1fr)); }
}
.ch-busca input { background: rgba(10,6,3,.85); border: 1px solid #8a5a14; border-radius: calc(1.6 * var(--u)); color: #f6ead0; padding: .8cqh calc(2.4 * var(--u)); font-size: calc(2.9 * var(--u)); outline: none; }
.ch-busca input:focus { border-color: #ffd36b; box-shadow: 0 0 8px rgba(255,200,90,.5); }
.ch-busca input::placeholder { color: #a8946c; }

/* ---------- 26/11 maestria de cartas (maestria.js): aura do GPT atrás da carta + faíscas + brilho que passa ---------- */
.me-fogo { --mc: rgba(255,120,40,.95); } .me-gelo { --mc: rgba(110,210,255,.95); } .me-energia { --mc: rgba(190,110,255,.95); }
.me-terra { --mc: rgba(120,230,90,.95); } .me-sagrado { --mc: rgba(255,215,100,.95); } .me-morte { --mc: rgba(110,240,160,.95); }
.me-fisico { --mc: rgba(210,225,240,.95); } .me-neutro { --mc: rgba(235,40,90,.95); } /* sem elemento: carmesim real (vinho + dourado) */
.ag { position: absolute; left: -25.3%; top: -25.3%; width: 150.6%; height: 150.6%; z-index: 0; pointer-events: none; }
.ag img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; box-shadow: none !important; outline: none !important; border-radius: 0 !important; filter: none !important; }
.ag .a1 { animation: ag-respira 3s ease-in-out infinite alternate; }
.ag .a2 { transform: scaleX(-1); animation: ag-troca var(--tr, 2s) ease-in-out infinite alternate; }
.ag.n1 { --tr: 3s; } .ag.n2 { --tr: 2s; } .ag.n3 { --tr: .9s; }
@keyframes ag-respira { from { transform: scale(.985); opacity: .75; } to { transform: scale(1.03); opacity: 1; } }
@keyframes ag-troca { from { opacity: 0; } to { opacity: .75; } }
.tem-ag > img, .tem-ag > .ed-arte-img { position: relative; z-index: 1; }
.ag-faiscas { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.ag-faiscas i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border-radius: 50%;
  background: radial-gradient(circle, #fff 0 20%, var(--mc) 45%, transparent 70%); filter: drop-shadow(0 0 5px var(--mc));
  opacity: 0; animation: ag-sobe var(--dur) linear infinite; animation-delay: var(--d); }
@keyframes ag-sobe { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: 1; } 70% { opacity: .8; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); } }
/* brilho que passa (opção B) na cor do elemento */
.m-n1:not(.voc-bonus)::after, .m-n2:not(.voc-bonus)::after, .m-n3:not(.voc-bonus)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 40%, var(--mc) 50%, transparent 60%); background-size: 300% 100%; opacity: .55; animation: m-brilho 3.2s linear infinite; }
.m-n1::after { animation-duration: 5s; opacity: .35; } .m-n3::after { opacity: .7; }
.me-neutro .ag-faiscas i:nth-child(3n) { --mc: rgba(255,210,120,.95); }
@keyframes m-brilho { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .ag img, .ag-faiscas i, .m-n1::after, .m-n2::after, .m-n3::after { animation: none !important; } .ag-faiscas { display: none; } }
/* ícone: a aura em volta de uma cartinha escura */
.ic-m { display: inline-block; position: relative; width: 1.4em; height: 2.1em; flex: none; vertical-align: middle; background: var(--img) center / 150.6% 150.6% no-repeat; }
.ic-m::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(160deg, #3a2a18, #120c06); border: 1px solid rgba(255,220,150,.35); }
.ic-m.ic-vazio { background: none; } .ic-m.ic-vazio::after { opacity: .5; }
.det-maestria { display: flex; align-items: center; gap: calc(2.4 * var(--u)); color: #e8d7b5; font-size: calc(2.8 * var(--u)); max-width: min(100%, calc(80 * var(--u))); margin: 0 auto; }
.det-maestria > .ic-m { font-size: 1.6em; }
.det-maestria > div { display: flex; flex-direction: column; gap: .3cqh; flex: 1; min-width: 0; text-align: left; }
.det-maestria b { font-family: Cinzel, serif; color: #f6ead0; }
.det-maestria[class*="m-n"] b { color: var(--mc); }
.det-maestria span { opacity: .85; }
.m-barra { display: block; height: .9cqh; min-height: 5px; border-radius: 99px; background: rgba(0,0,0,.55); border: 1px solid #5a4428; overflow: hidden; }
.m-barra > i { display: block; height: 100%; background: linear-gradient(90deg, #b8692f, #ffd36b); }
.det-maestria[class*="m-n"] .m-barra > i { background: linear-gradient(90deg, rgba(0,0,0,.2), var(--mc)); }
.col-maestria { display: flex; align-items: center; gap: calc(2.4 * var(--u)); margin: .2cqh auto .6cqh; padding: .4cqh calc(2.4 * var(--u)); border-radius: 99px; border: 1px solid #5a4428;
  background: rgba(10,6,3,.6); color: #f6ead0; font-size: calc(2.8 * var(--u)); font-variant-numeric: tabular-nums; cursor: pointer; }
.col-maestria b { font-family: Cinzel, serif; color: #ffd36b; }
.col-maestria span { display: inline-flex; align-items: center; gap: .3em; font-weight: 700; }
.col-maestria .ic-m { font-size: .8em; }
.col-maestria small { color: #c8b48a; text-decoration: underline; font-size: .85em; }
.m-explica { display: flex; justify-content: center; gap: calc(6 * var(--u)); margin: 1.4cqh 0; }
.m-explica > div { display: flex; flex-direction: column; align-items: center; gap: .5cqh; }
.m-explica .ic-m { font-size: calc(6 * var(--u)); }
.m-explica b { font-family: Cinzel, serif; color: #ffd36b; }
.m-explica span { color: #c8b48a; font-size: .9em; }
.m-modal .soc-caixa { text-align: center; max-width: min(92cqw, 80cqh); }
.fim-maestria { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4cqh calc(2 * var(--u)); margin: .6cqh 0; font-size: calc(3 * var(--u)); color: #f6ead0; }
.fim-maestria > b { flex-basis: 100%; font-family: Cinzel, serif; color: #ffd36b; animation: m-brilha 1.4s ease-in-out infinite alternate; }
.fim-maestria > span { display: inline-flex; align-items: center; gap: .45em; padding: .2em .8em .2em .4em; border-radius: 99px; background: rgba(10,6,3,.7); border: 1px solid var(--mc, #5a4428); font-weight: 700; }
.fim-maestria .ic-m { font-size: .8em; }
@keyframes m-brilha { from { text-shadow: 0 0 2px rgba(255,200,80,.3); } to { text-shadow: 0 0 12px rgba(255,200,80,.95); } }
@media (min-aspect-ratio: 1/1) {
  .det-maestria { grid-area: maestria; font-size: 1.7cqh; justify-self: center; max-width: 60cqh; }
  .det-carta { grid-template-rows: auto minmax(0, 1fr) auto auto auto auto; grid-template-areas: "topo topo" "palco versoes" "info versoes" "maestria versoes" "fonte versoes" "barra versoes"; }
  .col-maestria, .fim-maestria { font-size: 1.8cqh; }
  .m-explica .ic-m { font-size: 4cqh; }
}

/* ---------- 26/11 replay (replay.js) ---------- */
.replay-barra { position: absolute; top: .8cqh; left: 30%; z-index: 60; display: flex; align-items: center; gap: calc(1.4 * var(--u));
  padding: .5cqh calc(1.6 * var(--u)) .5cqh calc(2.4 * var(--u)); border-radius: 99px; background: rgba(14,8,4,.88); border: 1px solid #8a5a14;
  box-shadow: 0 4px 14px rgba(0,0,0,.6); color: #f6ead0; font-size: calc(2.8 * var(--u)); width: max-content; max-width: 96%; }
.rp-rotulo { display: flex; align-items: center; gap: calc(1 * var(--u)); font-family: Cinzel, serif; font-weight: 800; color: #ffd36b; letter-spacing: .08em; }
.rp-rotulo i { width: calc(2 * var(--u)); height: calc(2 * var(--u)); border-radius: 50%; background: #ff4a4a; box-shadow: 0 0 6px #ff4a4a; animation: rp-pisca 1.2s infinite; }
.replay-barra.pausado .rp-rotulo i { animation: none; background: #9a8a6a; box-shadow: none; }
@keyframes rp-pisca { 50% { opacity: .25; } }
.rp-bt { min-width: calc(7 * var(--u)); height: calc(7 * var(--u)); padding: 0 calc(1.4 * var(--u)); border-radius: 99px; border: 1px solid #5a4428; background: #2a170a;
  color: #f6ead0; font-weight: 700; font-size: calc(2.7 * var(--u)); cursor: pointer; }
.rp-bt.sel { border-color: #ffd36b; color: #ffd36b; box-shadow: 0 0 8px rgba(255,200,90,.5); }
.rp-sair { color: #ffb0a0; }
.rp-prog { width: calc(16 * var(--u)); height: calc(1.2 * var(--u)); border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.rp-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d8a54a, #ffd36b); transition: width .4s; }
body.modo-replay #btn-fim, body.modo-replay #status-turno { visibility: hidden; }
.rp-fim-botoes { display: flex; gap: 1.2cqh; justify-content: center; flex-wrap: wrap; }
.fim .btn-replay { margin-top: 1cqh; }
.rp-modal .soc-caixa { width: min(94cqw, 110cqh); max-height: 92cqh; gap: 1cqh; }
.rp-ajuda { margin: 0; color: #c8b48a; font-size: calc(2.6 * var(--u)); text-align: center; }
.rp-lista { overflow-y: auto; display: flex; flex-direction: column; gap: .8cqh; min-height: 0; }
.rp-item { display: flex; align-items: center; gap: calc(2 * var(--u)); padding: .8cqh calc(2 * var(--u)); border-radius: calc(1.4 * var(--u));
  background: rgba(10,6,3,.55); border: 1px solid rgba(90,68,40,.6); border-left: 4px solid #8a7a5a; }
.rp-item.ganhou { border-left-color: #7fe07a; } .rp-item.perdeu { border-left-color: #e0605a; }
.rp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2cqh; }
.rp-txt b { font-family: Cinzel, serif; font-size: calc(3 * var(--u)); color: #f6ead0; }
.rp-item.ganhou .rp-txt b { color: #9ff09a; } .rp-item.perdeu .rp-txt b { color: #ff9a8a; }
.rp-txt b span { color: #e8d7b5; font-weight: 600; }
.rp-txt small { color: #c8b48a; font-size: calc(2.4 * var(--u)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-fixo { width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; border: 1px solid #5a4428; background: transparent; color: #6a5a3a; font-size: calc(3.6 * var(--u)); padding: 0; cursor: pointer; flex: none; }
.rp-fixo.sel { color: #ffd36b; border-color: #ffd36b; text-shadow: 0 0 6px rgba(255,200,90,.8); }
@media (min-aspect-ratio: 1/1) {
  .replay-barra { --u: .45cqh; }
  .rp-modal .soc-caixa { --u: .55cqh; }
}

/* ---------- 26/11 maestria vira "chakra" (Bruno: lembra o do Naruto): bolhas + chamas subindo na cor do elemento, só na mesa ---------- */
.ck { position: absolute; inset: 0; pointer-events: none; }
.ck i { position: absolute; left: var(--x); top: var(--y); }
/* brilho que envolve a carta e "ferve" para cima */
.ck-brilho { position: absolute; z-index: 0; inset: -2% -3%; border-radius: 12%; background: var(--mc); filter: blur(9px); opacity: .22; transform-origin: 50% 100%;
  animation: ck-ferve 1.1s ease-in-out infinite alternate; }
.ck.n2 .ck-brilho { opacity: .45; inset: -4% -5%; filter: blur(11px); } .ck.n1 { opacity: .8; } .ck.n3 .ck-brilho { opacity: .85; inset: -8% -10%; filter: blur(16px); animation-duration: .6s; }
@keyframes ck-ferve { from { transform: scale(1, 1); } to { transform: scale(1.03, 1.07); } }
/* bolhas */
.ck-b { width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 35% 35%, #fff 0 14%, var(--mc) 40%, transparent 72%); filter: drop-shadow(0 0 6px var(--mc));
  opacity: 0; animation: ck-bolha var(--dur) ease-out infinite; animation-delay: var(--d); }
@keyframes ck-bolha { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 18% { opacity: .95; transform: translate(0, -4px) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.25); } }
/* línguas de chakra (E): chama alongada subindo colada na carta */
.ck-l { width: var(--w); height: calc(var(--w) * 2.6); margin: calc(var(--w) * -2) 0 0 calc(var(--w) / -2); border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%;
  background: radial-gradient(ellipse at 50% 75%, #fff 0 10%, var(--mc) 40%, transparent 75%); filter: blur(1px) drop-shadow(0 0 6px var(--mc));
  opacity: 0; transform-origin: 50% 100%; animation: ck-lingua var(--dur) ease-in infinite; animation-delay: var(--d); }
@keyframes ck-lingua { 0% { opacity: 0; transform: translateY(0) rotate(var(--r)) scale(.5, .3); } 30% { opacity: .8; transform: translateY(-3px) rotate(var(--r)) scale(1, 1); }
  100% { opacity: 0; transform: translateY(var(--dy)) rotate(var(--r)) scale(.3, 1.3); } }
@media (prefers-reduced-motion: reduce) { .ck i, .ck-brilho { animation: none !important; } .ck i { display: none; } }
.ck.leve i:nth-child(2n) { display: none; } /* celular fraco: metade das partículas */

/* ---------- 26/11 replay: barrinha arrastável + ⟲; fim da partida com os 2 botões na mesma linha ---------- */
.replay-barra { flex-direction: column; align-items: stretch; gap: .5cqh; border-radius: calc(3 * var(--u)); padding: .6cqh calc(2 * var(--u)); }
.rp-linha { display: flex; align-items: center; gap: calc(1.4 * var(--u)); }
.rp-linha .rp-sair { margin-left: auto; }
.rp-prog { position: relative; flex: 1; width: auto; height: calc(1.6 * var(--u)); overflow: visible; cursor: pointer; touch-action: none; }
.rp-prog::before { content: ""; position: absolute; inset: calc(-2.6 * var(--u)) 0; } /* área de toque maior */
.rp-prog i { border-radius: 99px; transition: none; }
.rp-pino { position: absolute; top: 50%; left: 0; width: calc(4.2 * var(--u)); height: calc(4.2 * var(--u)); margin: calc(-2.1 * var(--u)) 0 0 calc(-2.1 * var(--u));
  border-radius: 50%; background: #ffd36b; border: 2px solid #2a170a; box-shadow: 0 0 8px rgba(255,200,90,.8); pointer-events: none; }
.replay-barra.arrastando .rp-pino { transform: scale(1.3); }
.rp-turno { min-width: calc(13 * var(--u)); text-align: right; color: #e8d7b5; font-size: calc(2.5 * var(--u)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-capa { position: absolute; inset: 0; z-index: 55; background: rgba(8,5,2,.82); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.rp-capa span { font-family: Cinzel, serif; font-weight: 800; color: #ffd36b; font-size: calc(4.4 * var(--u)); text-shadow: 0 0 12px rgba(255,190,80,.7); animation: rp-pisca 1s infinite; }
#aviso .fim > .fim-botoes { position: sticky; bottom: .6cqh; flex: none; z-index: 3; display: flex; gap: calc(2 * var(--u)); justify-content: center; align-items: center; flex-wrap: wrap; max-width: 96%; }
#aviso .fim > .fim-botoes .btn { position: static; padding: 1.6cqh calc(5 * var(--u)); font-size: calc(4 * var(--u)); white-space: nowrap; }
#aviso .fim > .fim-botoes .btn-replay { padding-left: calc(4 * var(--u)); padding-right: calc(4 * var(--u)); }
@media (min-aspect-ratio: 1/1) { #aviso .fim > .fim-botoes .btn { font-size: 2.6cqh; padding: 1.5cqh 4cqh; } }
/* barra do replay compacta (cabe no vão do meio do celular sem cobrir a vida da ativa) */
.replay-barra { gap: .3cqh; padding: .4cqh calc(1.6 * var(--u)); }
.replay-barra .rp-bt { min-width: calc(5.6 * var(--u)); height: calc(5.6 * var(--u)); font-size: calc(2.4 * var(--u)); padding: 0 calc(1 * var(--u)); }
.replay-barra .rp-rotulo { font-size: calc(2.6 * var(--u)); }
.replay-barra .rp-linha + .rp-linha { height: calc(3.6 * var(--u)); }
.rp-pino { width: calc(3.4 * var(--u)); height: calc(3.4 * var(--u)); margin: calc(-1.7 * var(--u)) 0 0 calc(-1.7 * var(--u)); }
.rp-prog { height: calc(1.2 * var(--u)); }
#aviso .fim > .fim-botoes .btn { margin: 0; transform: none; }
.tibia-botoes { gap: calc(2 * var(--u)); align-items: center; }
.tibia-botoes .btn-replay { margin-top: 0; }
/* 26/11: os dois botões dividem a largura; texto comprido ("Back to the Arena") quebra centralizado em vez de vazar */
#aviso .tibia-botoes .btn { flex: 1 1 0; min-width: 0; padding: .55em .6em; font-size: calc(3.6 * var(--u)); white-space: normal; text-align: center; line-height: 1.15; }
@media (min-aspect-ratio: 1/1) { #aviso .tibia-botoes .btn { font-size: 2.2cqh; } }
/* 26/11: Silver só o necessário para o próximo pacote */
.amp-prox:not([disabled]) { border-color: #ffd36b; color: #ffd36b; box-shadow: 0 0 10px rgba(255,200,90,.55); font-weight: 800; }

/* 26/11 (Bruno): carta aberta no celular passava da tela (ataques + recuo + equipamento) e o ✕ sumia.
   Agora a carta encolhe para caber o que tem embaixo e o ✕ fica sempre visível por cima. */
#modal .fechar { z-index: 5; width: calc(10 * var(--u)); height: calc(10 * var(--u)); display: grid; place-items: center; padding: 0; opacity: 1;
  border-radius: 50%; background: rgba(20,12,6,.9); border: 2px solid #d8a54a; color: #ffd36b; font-size: calc(5 * var(--u)); box-shadow: 0 2px 8px rgba(0,0,0,.7); }
@media (max-aspect-ratio: 1/1) {
  #modal { justify-content: flex-start; padding: 7cqh 0 2cqh; box-sizing: border-box; gap: 1.4cqh; }
  #modal .fechar { position: absolute; top: 1.2cqh; right: calc(3 * var(--u)); }
  #modal .grande { flex: 1 1 auto; min-height: 24cqh; width: auto; max-width: 92cqw; display: flex; justify-content: center; box-shadow: none; }
  #modal .grande img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
  #modal .acoes { flex: none; gap: 1cqh; }
  #modal .acao { padding: 1.1cqh calc(3 * var(--u)); }
}
