/* Pentaura · o site do jogo. Tema Safira do Concordy (base, painel, ouro) com a cor de cada aura.
   Leve no celular: só transform/opacity nas animações, nada de filtro pesado em tela cheia,
   e "reduzir movimento" desliga tudo que se mexe. */

@font-face { font-family: 'Cinzel'; src: url('/fontes/cinzel.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/fontes/sora.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --base: #060a20;
  --base-2: #0a1030;
  --painel: rgba(10, 18, 56, .72);
  --painel-forte: rgba(12, 20, 60, .9);
  --borda: rgba(120, 162, 255, .18);
  --borda-ouro: rgba(255, 212, 120, .42);
  --txt: #eef2ff;
  --sub: #aab6e6;
  --apagado: #7d89b8;
  --acento: #3f7dff;
  --ok: #3ddc84;
  --ruim: #ff5a5f;
  --ouro: linear-gradient(135deg, #fff3c4 0%, #ffd975 28%, #f3b53a 58%, #c98912 82%, #f7cd63 100%);
  --ouro-1: #ffd975;
  --fogo: #ff7a2e; --terra: #f2b04a; --natureza: #6be36b; --gelo: #5fe3ff; --raio: #b57cff;
  --cor: var(--fogo); /* a cor da aura em destaque: o site.js troca */
  --f-ui: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-titulo: 'Cinzel', 'Times New Roman', serif;
  --r1: 10px; --r2: 16px; --r3: 22px; --r4: 30px;
  --margem: clamp(16px, 4vw, 48px);
  --largura: 1200px;
  --topo: 64px;
  --curva: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--base); color: var(--txt); font: 400 16px/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ouro-1); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ouro-1); color: #1a1205; border-radius: var(--r1); font-weight: 700; }
.pular:focus { top: 12px; }

/* ── botões ─────────────────────────────────────────────────────────────── */
.bt {
  --a: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--a); padding: 0 22px; border-radius: 14px; border: 1px solid var(--borda);
  font-weight: 700; letter-spacing: .02em; text-decoration: none; cursor: pointer; user-select: none;
  background: var(--painel); color: var(--txt);
  transition: transform .16s var(--curva), box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.bt svg { width: 20px; height: 20px; flex: none; }
.bt:hover { border-color: rgba(160, 190, 255, .45); }
.bt:active { transform: scale(.96); transition-duration: .08s; }
.bt-ouro {
  background: var(--ouro); color: #2a1a02; border: 0; text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  box-shadow: 0 10px 30px -10px rgba(243, 181, 58, .75), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(120, 70, 0, .35);
}
.bt-ouro:hover { box-shadow: 0 14px 38px -10px rgba(243, 181, 58, .95), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(120, 70, 0, .35); }
.bt-vidro { background: rgba(255, 255, 255, .07); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bt-grande { --a: 64px; padding: 0 34px; font-size: 1.12rem; border-radius: 18px; }
.bt-grande svg { width: 24px; height: 24px; }
.bt[aria-disabled="true"] { opacity: .55; cursor: default; }
.bt[aria-disabled="true"]:active { transform: none; }
/* o único elemento que pulsa no site: o JOGAR da abertura */
.bt-pulsa { position: relative; isolation: isolate; }
.bt-pulsa::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  box-shadow: 0 0 0 0 rgba(255, 217, 117, .55); animation: pulsar 2.4s var(--curva) infinite;
}
@keyframes pulsar { 0% { box-shadow: 0 0 0 0 rgba(255, 217, 117, .55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(255, 217, 117, 0); } }

/* ── topo ───────────────────────────────────────────────────────────────── */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--topo);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--margem);
  padding-top: env(safe-area-inset-top);
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.topo.rolado { background: rgba(6, 10, 32, .82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-color: var(--borda); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.2rem/1 var(--f-titulo); letter-spacing: .12em; }
.logo-marca { width: 32px; height: 32px; color: var(--ouro-1); }
.logo span { background: var(--ouro); -webkit-background-clip: text; background-clip: text; color: transparent; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--sub); font-size: .92rem; font-weight: 600; transition: color .2s, background-color .2s; }
.menu a:hover { color: var(--txt); background: rgba(255, 255, 255, .06); }
.bt-topo { --a: 40px; padding: 0 18px; border-radius: 12px; }

/* ── abertura ───────────────────────────────────────────────────────────── */
.abertura { position: relative; min-height: 100svh; display: grid; align-items: end; padding: calc(var(--topo) + 24px) var(--margem) clamp(56px, 10vh, 110px); isolation: isolate; overflow: hidden; }
.abertura-fundo, .abertura-fundo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.abertura-fundo img { object-fit: cover; object-position: 50% 30%; animation: aproximar 18s ease-out both; }
@keyframes aproximar { from { transform: scale(1.08); } to { transform: scale(1); } }
.abertura::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 34% at 50% 62%, rgba(6, 10, 32, .62), rgba(6, 10, 32, 0) 100%),
    radial-gradient(120% 70% at 50% 110%, rgba(6, 10, 32, .98) 25%, rgba(6, 10, 32, 0) 70%),
    linear-gradient(180deg, rgba(6, 10, 32, .55) 0%, rgba(6, 10, 32, 0) 22%, rgba(6, 10, 32, .1) 50%, rgba(6, 10, 32, .92) 100%);
}
.abertura-conteudo { width: 100%; max-width: var(--largura); margin: 0 auto; display: grid; justify-items: center; text-align: center; gap: 18px; }
.selo {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 99px;
  background: rgba(6, 10, 32, .55); border: 1px solid var(--borda); color: var(--sub); font-size: .85rem; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ponto-vivo { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: vivo 1.8s ease-out infinite; display: inline-block; }
@keyframes vivo { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); } 100% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } }
.titulo-jogo {
  font: 900 clamp(3.2rem, 13vw, 8.6rem)/.92 var(--f-titulo); letter-spacing: .06em;
  background: linear-gradient(100deg, #c98912 0%, #ffd975 22%, #fff7da 32%, #ffd975 42%, #f3b53a 70%, #c98912 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgba(40, 20, 0, .55)) drop-shadow(0 18px 40px rgba(0, 0, 0, .6));
  animation: brilho-ouro 6s ease-in-out infinite;
}
@keyframes brilho-ouro { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.lema { font-size: clamp(1.02rem, 2.4vw, 1.3rem); color: var(--txt); max-width: 34em; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.lema strong { color: var(--ouro-1); }
.abertura-acoes { display: grid; gap: 12px; justify-items: center; margin-top: 8px; }
.baixar-rapido { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.plataformas { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: var(--sub); font-size: .85rem; }
.plataformas li { display: flex; align-items: center; gap: 18px; }
.plataformas li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--apagado); margin-left: -12px; margin-right: -6px; }
.rolar { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.rolar span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ouro-1); animation: rolar 1.8s ease-in-out infinite; }
@keyframes rolar { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* ── seções ─────────────────────────────────────────────────────────────── */
.secao { position: relative; padding: clamp(64px, 8vw, 112px) var(--margem); }
.secao > * { max-width: var(--largura); margin-left: auto; margin-right: auto; }
.secao-topo { text-align: center; display: grid; gap: 12px; margin-bottom: clamp(32px, 5vw, 56px); }
.sobretitulo { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ouro-1); font-weight: 700; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; }
.secao h2 { font: 800 clamp(2rem, 5.4vw, 3.4rem)/1.05 var(--f-titulo); letter-spacing: .02em; }
.secao-lema { color: var(--sub); max-width: 40em; margin: 0 auto; }
.revelar { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--curva), transform .7s var(--curva); }
.revelar.visto { opacity: 1; transform: none; }

/* ── heróis ─────────────────────────────────────────────────────────────── */
.herois { background: radial-gradient(60% 50% at 30% 40%, color-mix(in srgb, var(--cor) 16%, transparent), transparent 70%), linear-gradient(180deg, var(--base) 0%, var(--base-2) 100%); transition: background-color .6s ease; }
.palco { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 4vw, 56px); }
.palco-arte { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.palco-arte::before {
  content: ''; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--cor) 55%, transparent) 0%, color-mix(in srgb, var(--cor) 18%, transparent) 42%, transparent 70%);
  transition: background .6s ease;
}
.aura { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; max-width: none; pointer-events: none; }
.palco-heroi { position: relative; width: 86%; margin: 7% auto 0; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); transition: opacity .35s ease, transform .5s var(--curva); }
.palco-heroi.trocando { opacity: 0; transform: translateY(14px) scale(.97); }
.palco-chao { position: absolute; left: 18%; right: 18%; bottom: 6%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--cor) 60%, transparent), transparent); opacity: .8; }
.palco-ficha { display: grid; gap: 12px; align-content: center; }
.ficha-elemento { color: var(--cor); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .82rem; }
.ficha-nome { font: 900 clamp(2.6rem, 7vw, 4.6rem)/1 var(--f-titulo); }
.ficha-titulo { color: var(--sub); font-size: 1.1rem; font-weight: 600; margin-top: -4px; }
.ficha-desc { font-size: 1.05rem; max-width: 30em; }
.ficha-barras { display: grid; gap: 10px; margin: 6px 0 2px; max-width: 420px; }
.barra { display: grid; grid-template-columns: 96px 1fr 76px; align-items: center; gap: 12px; font-size: .88rem; }
.barra dt { color: var(--sub); text-align: left; }
.barra dd { margin: 0; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.barra dd i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--cor) 60%, #fff 0%), var(--cor)); transform-origin: left; transition: transform .7s var(--curva); }
.barra b { text-align: right; font-variant-numeric: tabular-nums; }
.ficha-poderes { display: flex; flex-wrap: wrap; gap: 10px; }
.poder { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; background: var(--painel); border: 1px solid var(--borda); }
.poder img { width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--cor) 22%, transparent); padding: 4px; }
.poder b { display: block; font-size: .92rem; }
.poder small { color: var(--sub); font-size: .76rem; }
.poder-especial { border-color: color-mix(in srgb, var(--cor) 60%, transparent); }
.ficha-inata { color: var(--sub); font-size: .92rem; border-left: 3px solid var(--cor); padding-left: 12px; }

.seletor { display: flex; justify-content: center; gap: clamp(8px, 2vw, 18px); margin-top: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.seletor button {
  --c: var(--fogo);
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 10px 8px; min-width: 92px;
  border-radius: var(--r3); border: 1px solid var(--borda); background: var(--painel); cursor: pointer;
  transition: transform .16s var(--curva), border-color .25s ease, background-color .25s ease;
}
.seletor button:active { transform: scale(.96); }
.seletor button img { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); }
.seletor button span { font-weight: 700; font-size: .86rem; }
.seletor button small { color: var(--apagado); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.seletor button[aria-selected="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--painel-forte)); box-shadow: 0 0 0 1px var(--c), 0 10px 30px -12px var(--c); }
.seletor button[aria-selected="true"] small { color: var(--c); }
.seletor .barra-tempo { position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; }
.seletor button[aria-selected="true"] .barra-tempo.rodando { animation: encher var(--dur, 7s) linear forwards; }
@keyframes encher { to { transform: scaleX(1); } }

/* ── modos ──────────────────────────────────────────────────────────────── */
.modos { background: var(--base-2); }
.modos-trilho { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.modo { position: relative; grid-column: span 2; min-height: 340px; border-radius: var(--r3); overflow: hidden; isolation: isolate; border: 1px solid var(--borda); display: flex; align-items: flex-end; transition: transform .35s var(--curva), border-color .3s ease; }
.modo:nth-child(4), .modo:nth-child(5) { grid-column: span 3; }
.modo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--curva); }
.modo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 10, 32, 0) 20%, rgba(6, 10, 32, .78) 58%, rgba(6, 10, 32, .97) 100%); }
.modo:hover { transform: translateY(-4px); border-color: var(--borda-ouro); }
.modo:hover img { transform: scale(1.05); }
.modo-texto { padding: 22px; display: grid; gap: 8px; }
.modo h3 { font: 800 1.7rem/1 var(--f-titulo); }
.modo p { color: var(--sub); font-size: .94rem; }
.etiqueta { justify-self: start; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: rgba(107, 227, 107, .16); color: #9ff09f; border: 1px solid rgba(107, 227, 107, .35); }
.etiqueta-ouro { background: rgba(255, 217, 117, .14); color: var(--ouro-1); border-color: var(--borda-ouro); }
.etiqueta-pvp { background: rgba(255, 90, 95, .14); color: #ff9a9d; border-color: rgba(255, 90, 95, .38); }
.modo-coliseu img { filter: sepia(.35) saturate(1.3) hue-rotate(-12deg); }

/* ── mundos ─────────────────────────────────────────────────────────────── */
.mundos { background: linear-gradient(180deg, var(--base-2), var(--base)); }
.mundos-grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mundo { position: relative; border-radius: var(--r3); overflow: hidden; background: var(--painel); border: 1px solid var(--borda); padding-bottom: 16px; }
.mundo-mapa { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; opacity: .9; }
.mundo-chefe { width: 58%; margin: -26% auto 0; position: relative; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .6)); transition: transform .5s var(--curva); }
.mundo:hover .mundo-chefe { transform: translateY(-6px) scale(1.04); }
.mundo div { text-align: center; padding: 0 12px; }
.mundo h3 { font: 800 1.1rem/1.2 var(--f-titulo); }
.mundo p { color: var(--sub); font-size: .86rem; }

/* ── ranking ────────────────────────────────────────────────────────────── */
.ranking { background: radial-gradient(70% 60% at 50% 0%, rgba(63, 125, 255, .12), transparent 70%), var(--base); }
.ranking-caixa { max-width: 860px; border-radius: var(--r4); background: var(--painel); border: 1px solid var(--borda); padding: clamp(14px, 3vw, 28px); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.abas { display: flex; flex-wrap: wrap; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 14px; scroll-snap-type: x proximity; }
.abas::-webkit-scrollbar { display: none; }
.abas button { flex: none; scroll-snap-align: start; padding: 8px 14px; border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, .05); color: var(--sub); font-weight: 700; font-size: .86rem; cursor: pointer; transition: color .2s, background-color .2s, border-color .2s; }
.abas button[aria-selected="true"] { color: #2a1a02; background: var(--ouro); }
.ranking-lista { display: grid; gap: 6px; min-height: 320px; align-content: start; }
.linha { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); animation: entrar .45s var(--curva) both; }
.linha:nth-child(-n+3) { background: rgba(255, 217, 117, .07); }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } }
.linha .pos { font: 800 1.05rem/1 var(--f-titulo); text-align: center; color: var(--apagado); font-variant-numeric: tabular-nums; }
.linha:nth-child(1) .pos { color: #ffd975; font-size: 1.3rem; }
.linha:nth-child(2) .pos { color: #dfe6f5; font-size: 1.2rem; }
.linha:nth-child(3) .pos { color: #e3a46a; font-size: 1.15rem; }
.linha img { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.linha .nome { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha .nome small { display: block; color: var(--apagado); font-weight: 500; font-size: .76rem; }
.linha .valor { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ouro-1); text-align: right; }
.linha .valor small { display: block; color: var(--apagado); font-weight: 500; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.ranking-vazio { display: grid; place-items: center; min-height: 300px; color: var(--sub); text-align: center; padding: 0 12px; }
.ranking-nota { margin-top: 12px; color: var(--apagado); font-size: .8rem; text-align: right; }

/* ── convite ────────────────────────────────────────────────────────────── */
.convite { background: var(--base); }
.convite-caixa {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  padding: clamp(24px, 5vw, 56px); border-radius: var(--r4); border: 1px solid var(--borda-ouro);
  background: radial-gradient(80% 120% at 0% 0%, rgba(243, 181, 58, .16), transparent 60%), radial-gradient(80% 120% at 100% 100%, rgba(63, 125, 255, .18), transparent 60%), var(--painel-forte);
}
.convite-texto { display: grid; gap: 14px; }
.convite-texto .sobretitulo { justify-content: flex-start; }
.convite-texto p:not(.sobretitulo) { color: var(--sub); }
.entrar-sala { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.entrar-sala input {
  flex: 1 1 180px; min-height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--borda); background: rgba(0, 0, 0, .3);
  font: 800 1.3rem/1 var(--f-titulo); letter-spacing: .3em; text-transform: uppercase; color: var(--ouro-1);
}
.entrar-sala input::placeholder { color: rgba(170, 182, 230, .45); letter-spacing: .2em; }
.entrar-sala input:focus { outline: none; border-color: var(--ouro-1); box-shadow: 0 0 0 3px rgba(255, 217, 117, .2); }
.entrar-sala .bt { min-height: 52px; }
.compartilhar { display: grid; gap: 14px; justify-items: center; text-align: center; }
.compartilhar > p { color: var(--sub); font-weight: 600; }
.redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rede { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; border: 0; color: #fff; cursor: pointer; text-decoration: none; transition: transform .16s var(--curva), box-shadow .2s; }
.rede svg { width: 24px; height: 24px; }
.rede:hover { transform: translateY(-2px); }
.rede:active { transform: scale(.94); }
.rede-whatsapp { background: #25d366; } .rede-telegram { background: #26a5e4; } .rede-x { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.rede-facebook { background: #0866ff; } .rede-mais { background: var(--acento); } .rede-copiar { background: rgba(255, 255, 255, .12); }

/* ── baixar ─────────────────────────────────────────────────────────────── */
.baixar { background: linear-gradient(180deg, var(--base), var(--base-2)); }
.baixar-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plataforma { display: grid; gap: 12px; justify-items: start; align-content: start; padding: 28px; border-radius: var(--r3); background: var(--painel); border: 1px solid var(--borda); }
.plataforma > svg { width: 40px; height: 40px; color: var(--sub); }
.plataforma h3 { font: 800 1.5rem/1 var(--f-titulo); }
.plataforma p { color: var(--sub); }
.plataforma .bt { margin-top: 6px; }
.plataforma-destaque { border-color: var(--borda-ouro); background: radial-gradient(90% 90% at 0% 0%, rgba(243, 181, 58, .14), transparent 70%), var(--painel); }
.plataforma-destaque > svg { color: var(--ouro-1); }
.versao { color: var(--apagado); font-size: .78rem; }

/* ── rodapé ─────────────────────────────────────────────────────────────── */
.rodape { padding: 56px var(--margem) calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--borda); background: #04071a; display: grid; gap: 28px; justify-items: center; text-align: center; }
.rodape-concordy { display: grid; gap: 16px; justify-items: center; max-width: 560px; }
.concordy-marca { display: flex; align-items: center; gap: 14px; }
.concordy-marca img:first-child { width: 72px; height: 72px; }
.concordy-marca img:last-child { width: 180px; height: auto; }
.rodape-concordy p { color: var(--sub); font-size: .92rem; }
.rodape-concordy a:not(.concordy-marca) { color: var(--ouro-1); }
.rodape-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.rodape-links a { color: var(--sub); text-decoration: none; font-weight: 600; font-size: .9rem; }
.rodape-links a:hover { color: var(--txt); }
.rodape-fim { color: var(--apagado); font-size: .8rem; }

/* ── barra do celular e aviso ───────────────────────────────────────────── */
.barra-jogar { display: none; }
.aviso { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 70; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 14px; background: var(--painel-forte); border: 1px solid var(--borda-ouro); font-weight: 600; transition: opacity .3s var(--curva), transform .3s var(--curva); max-width: calc(100vw - 32px); }
.aviso.mostra { opacity: 1; transform: translate(-50%, 0); }

/* ── telas menores ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .menu { display: none; }
  .bt-topo { margin-left: auto; }
  .mundos-grade { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --topo: 56px; }
  .palco { grid-template-columns: 1fr; text-align: center; }
  .palco-ficha { justify-items: center; }
  .ficha-barras { width: 100%; }
  .ficha-poderes { justify-content: center; }
  .ficha-inata { border-left: 0; padding-left: 0; }
  .palco-arte { max-width: 380px; }
  .seletor { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--margem)); margin-right: calc(-1 * var(--margem)); padding: 4px var(--margem); scroll-snap-type: x mandatory; }
  .seletor::-webkit-scrollbar { display: none; }
  .seletor button { flex: none; scroll-snap-align: center; min-width: 84px; }
  /* os modos viram um carrossel de deslizar, como no lobby do jogo */
  .modos-trilho { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--margem)); padding: 4px var(--margem) 12px; scrollbar-width: none; }
  .modos-trilho::-webkit-scrollbar { display: none; }
  .modo { flex: 0 0 82%; min-height: 380px; scroll-snap-align: center; }
  .convite-caixa { grid-template-columns: 1fr; }
  .abas { flex-wrap: nowrap; } /* no celular, as categorias deslizam numa linha só */
  .baixar-grade { grid-template-columns: 1fr; }
  .linha { grid-template-columns: 32px 38px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; }
  .linha img { width: 38px; height: 38px; }
  .barra-jogar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(6, 10, 32, 0), rgba(6, 10, 32, .92) 40%); transform: translateY(110%); transition: transform .35s var(--curva);
  }
  .barra-jogar.mostra { transform: none; }
  .barra-jogar .bt { width: 100%; --a: 54px; }
  .rodape { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .baixar-rapido .bt { flex: 1 1 0; }
  .barra { grid-template-columns: 84px 1fr 70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .revelar { opacity: 1; transform: none; }
}
