/* Site do Towers of Knowledge: mesmo visual do jogo (azul do logo, painéis creme, contorno azul-marinho). Ver DESIGN.md. */
@font-face { font-family: "Lilita One"; src: url(fonts/LilitaOne-Regular.ttf) format("truetype"); font-display: swap; }
:root {
  --ink: #0a1f52; --sky: #0b5fe0; --sky-2: #0847b8; --cream: #fff5d9; --cream-2: #f3e3b6; --gold: #ffc21a; --muted: #5b6687;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --contorno: -1.5px -1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px 1.5px 0 var(--ink), 0 4px 0 var(--ink);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* o fundo fica no body, que ocupa pelo menos a tela toda: assim o degradê não recomeça (faixa clara) abaixo do rodapé */
html { scroll-behavior: smooth; background: var(--sky-2); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  color: #fff; font: 18px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 620px at 50% 0, rgba(120, 200, 255, .5), rgba(120, 200, 255, 0) 60%) no-repeat,
    conic-gradient(from 45deg, rgba(255, 255, 255, .055) 25%, transparent 0 50%, rgba(255, 255, 255, .055) 0 75%, transparent 0) 0 0 / 96px 96px,
    linear-gradient(var(--sky), var(--sky-2)) no-repeat;
  background-color: var(--sky-2);
}
body > main { flex: 1 0 auto; }
a { color: #ffe066; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.painel a:focus-visible, .painel summary:focus-visible, .texto a:focus-visible { outline-color: #1c62dc; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-family: var(--display); font-weight: 400; }
h1, h2 { color: #fff; text-shadow: var(--contorno); padding-bottom: 4px; letter-spacing: .01em; }
h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; }
h3 { font-size: 26px; line-height: 1.1; }
p { margin: 0; }
[id] { scroll-margin-top: 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; z-index: 5; }
.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: 20px; }
.centro { text-align: center; margin-inline: auto; }
.painel { background: linear-gradient(var(--cream), var(--cream-2)); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 rgba(5, 25, 80, .45); padding: 22px 22px 24px; }
.painel a:not(.btn) { color: #0b3a94; font-weight: 700; }

/* botões em pílula (padrão do site de referência mwro.net): borda branca, degradê de 3 tons, degrau colorido e brilho embaixo */
.btn {
  --a: #7fd0fa; --m: #4aa8ea; --b: #1d6fc4; --lip: #14559b; --glow: rgba(11, 58, 104, .3);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 60px; padding: 8px 34px 9px; border: 3px solid #fff; border-radius: 999px; cursor: pointer;
  background: linear-gradient(var(--a), var(--m) 42%, var(--b)) border-box;
  color: #fff; text-decoration: none; font: 400 20px/1.1 var(--display); letter-spacing: .05em; text-transform: uppercase; text-shadow: 0 2px 0 rgba(14, 63, 118, .45);
  box-shadow: 0 5px 0 var(--lip), 0 12px 22px var(--glow); margin-bottom: 5px; transition: transform .12s, box-shadow .12s, filter .15s; touch-action: manipulation;
}
.btn small { font: 700 13px/1.3 system-ui, sans-serif; letter-spacing: 0; text-transform: none; text-shadow: none; margin-top: 2px; }
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--lip), 0 4px 10px var(--glow); }
.btn:disabled { filter: grayscale(.6); opacity: .75; cursor: default; transform: none; }
.btn.principal, .painel .btn.principal { --a: #ffe38a; --m: #ffd75e; --b: #ffa41c; --lip: #e07b12; --glow: rgba(224, 123, 18, .35); color: #6b3b00; text-shadow: 0 1px 0 rgba(255, 255, 255, .65); }
.btn.vidro { background: linear-gradient(rgba(126, 205, 247, .42), rgba(29, 111, 196, .48)) border-box; box-shadow: 0 5px 0 rgba(14, 63, 118, .35); }
.btn.vidro:active { box-shadow: 0 2px 0 rgba(14, 63, 118, .35); }
.btn.mini { min-height: 44px; padding: 4px 20px 5px; font-size: 15px; }

/* topo: logo, links, idioma e botão de baixar */
.topo { display: flex; align-items: center; gap: 8px 20px; padding-top: 14px; padding-bottom: 6px; flex-wrap: wrap; }
.topo .logo { display: block; width: 124px; height: auto; filter: drop-shadow(0 4px 0 rgba(5, 25, 80, .4)); }
.marca { margin-right: auto; }
.menu { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.menu a { color: #fff; font: 400 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; text-shadow: 0 2px 0 rgba(14, 63, 118, .6); min-height: 44px; display: inline-flex; align-items: center; }
.menu a:hover { color: #ffe066; }
.idioma { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .18); color: #fff; font: 400 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .15s; }
.idioma:hover { background: rgba(255, 255, 255, .3); }
.idioma { position: relative; }
.idioma select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; min-height: 40px; padding: 0 18px 0 2px; }
.idioma select option { color: var(--ink); background: #fff; text-transform: none; letter-spacing: 0; font-family: system-ui, sans-serif; }
.idioma::after { content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.idioma:focus-within { outline: 3px solid #fff; outline-offset: 3px; }
.idioma select:focus { outline: none; }
/* chinês: a fonte do título não tem ideogramas, então entra uma fonte do sistema */
:lang(zh) { --display: "Lilita One", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:lang(zh) .btn, :lang(zh) .idioma, :lang(zh) h1, :lang(zh) h2 { letter-spacing: 0; text-transform: none; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) .btn { font-weight: 700; }

/* celulares realistas em CSS: aro de metal, borda preta, barra de status com câmera, botões laterais e reflexo.
   As medidas usam --u (1% da largura do aparelho em pé), para a moldura acompanhar qualquer tamanho. */
.fone { container-type: inline-size; position: relative; --u: 1cqw; filter: drop-shadow(0 14px 18px rgba(3, 14, 50, .45)); }
.fone-corpo {
  position: relative; display: flex; flex-direction: column; padding: calc(var(--u) * 3.4); border-radius: calc(var(--u) * 14); background: #05070d;
  box-shadow: inset 0 0 0 calc(var(--u) * .5) #aab3c8, inset 0 0 0 calc(var(--u) * 1.5) #2b3348, inset 0 0 0 calc(var(--u) * 1.9) #10151f;
}
/* barra de status: hora, câmera no meio, sinal e bateria */
.fone-corpo::before {
  content: "9:41"; flex: none; height: calc(var(--u) * 7); padding-left: calc(var(--u) * 8); border-radius: calc(var(--u) * 10.6) calc(var(--u) * 10.6) 0 0;
  color: #fff; font: 700 calc(var(--u) * 3.3)/calc(var(--u) * 7.4) system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0;
  background:
    radial-gradient(circle at 38% 36%, #4a5f8f 0 12%, #141b2e 34%, #05070d 62%) center 56% / calc(var(--u) * 3.2) calc(var(--u) * 3.2) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 14' fill='%23fff'%3E%3Cpath d='M0 13h2.6v-3H0zM4 13h2.6V7.5H4zM8 13h2.6V4.5H8zM12 13h2.6V1H12z'/%3E%3Cpath d='M24 4.2a6.6 6.6 0 0 0-4.6 1.9l1.2 1.3a4.8 4.8 0 0 1 6.8 0l1.2-1.3A6.6 6.6 0 0 0 24 4.2zm0 3.4c-.9 0-1.7.4-2.3 1L24 11.2l2.3-2.6c-.6-.6-1.4-1-2.3-1z'/%3E%3Crect x='32.6' y='2.6' width='10.8' height='8.8' rx='2.2' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3Crect x='34.2' y='4.2' width='6.2' height='5.6' rx='1'/%3E%3Crect x='44.2' y='5' width='1.6' height='4' rx='.8'/%3E%3C/svg%3E") right calc(var(--u) * 7) center / auto calc(var(--u) * 3.1) no-repeat,
    #000;
}
/* botões de volume e de ligar, na lateral direita */
.fone-corpo::after { content: ""; position: absolute; right: calc(var(--u) * -.9); top: 21%; width: calc(var(--u) * 1); height: 12%; border-radius: 0 calc(var(--u) * 1) calc(var(--u) * 1) 0; background: linear-gradient(90deg, #2b3348, #8f99b0); box-shadow: 0 calc(var(--u) * 30) 0 0 #5b657c; }
.fone img { display: block; width: 100%; height: auto; border-radius: 0 0 calc(var(--u) * 10.6) calc(var(--u) * 10.6); background: var(--sky-2); }
/* reflexo do vidro */
.fone::after { content: ""; position: absolute; inset: 0; border-radius: calc(var(--u) * 14); pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 30%); }
/* deitado: a câmera fica numa faixa preta à esquerda e os botões em cima */
.fone.deitado { --u: .47cqw; }
.fone.deitado .fone-corpo { flex-direction: row; }
.fone.deitado .fone-corpo::before { content: ""; height: auto; width: calc(var(--u) * 7); padding: 0; border-radius: calc(var(--u) * 10.6) 0 0 calc(var(--u) * 10.6); background: radial-gradient(circle at 38% 36%, #4a5f8f 0 12%, #141b2e 34%, #05070d 62%) center / calc(var(--u) * 3.2) calc(var(--u) * 3.2) no-repeat, #000; }
.fone.deitado .fone-corpo::after { right: auto; left: 21%; top: calc(var(--u) * -.9); width: 12%; height: calc(var(--u) * 1); border-radius: calc(var(--u) * 1) calc(var(--u) * 1) 0 0; background: linear-gradient(0deg, #2b3348, #8f99b0); box-shadow: calc(var(--u) * 30) 0 0 0 #5b657c; }
.fone.deitado img { flex: 1; min-width: 0; border-radius: 0 calc(var(--u) * 10.6) calc(var(--u) * 10.6) 0; }

/* capa */
.capa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: clamp(16px, 3vw, 40px); padding-bottom: clamp(56px, 8vw, 104px); }
.capa-texto { display: flex; flex-direction: column; gap: 20px; }
.lead { font-size: 21px; font-weight: 600; max-width: 46ch; text-shadow: 0 1px 0 var(--ink); }
.botoes { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.numeros { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.numeros li { display: flex; align-items: baseline; gap: 7px; padding: 6px 16px 7px; border-radius: 999px; background: rgba(6, 26, 82, .55); border: 2px solid rgba(255, 255, 255, .55); font-weight: 600; font-size: 15px; }
.numeros b { font: 400 23px/1 var(--display); color: #ffe066; font-variant-numeric: tabular-nums; }
.palco { position: relative; padding: 0 0 16% 8%; }
.palco .fone:first-child { width: 46%; margin-left: auto; transform: rotate(3deg); }
.palco .deitado { position: absolute; left: 0; bottom: 0; width: 74%; transform: rotate(-4deg); }

/* seções */
.faixa { padding: clamp(40px, 6vw, 72px) 0; background: rgba(4, 22, 80, .28); }
/* blocos no estilo do rodapé: o chão de um mundo (textura gerada pelo próprio jogo com scripts/grama.js, repete sem emenda) */
.faixa.chao { background: var(--cor) var(--img) center top / 768px 384px repeat; border-block: 3px solid var(--ink); }
.chao-areia { --img: url(img/areia.png); --cor: #ecd08a; }
.chao-neve { --img: url(img/neve.png); --cor: #e8f0fa; }
.chao-recife { --img: url(img/recife.png); --cor: #4fbfbf; }
.chao-grama { --img: url(img/grama.png); --cor: #7cc254; }
/* a chamada final emenda na grama do rodapé: sem borda entre os dois e com a textura alinhada pela base */
.faixa.chao-fim { background-position: center bottom; border-bottom: 0; padding-bottom: 0; }
/* tarja grande, quando leva título e texto */
.tarja:not(p) { padding: clamp(20px, 3vw, 32px); border-radius: 22px; }
/* texto corrido sobre o chão vai numa tarja azul-marinho, como os links do rodapé */
.tarja { background: rgba(6, 26, 82, .86); border: 1.5px solid var(--ink); border-radius: 16px; padding: 12px 18px; }
/* chão claro (areia, neve): título em azul-marinho, sem contorno, e enfeite escuro */
.chao-claro h2 { color: var(--ink); text-shadow: 0 2px 0 rgba(255, 255, 255, .75); }
main .chao-claro h2::after { filter: brightness(0); opacity: .75; }
main > section.wrap { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
main > section.capa { padding-top: clamp(16px, 3vw, 40px); }
main section h2::after { content: ""; display: block; width: 190px; height: 14px; margin-top: 14px; background: radial-gradient(circle, #fff 0 5px, transparent 5.6px) center / 14px 14px no-repeat, radial-gradient(circle, #fff 0 3px, transparent 3.6px) calc(50% - 17px) center / 8px 8px no-repeat, radial-gradient(circle, #fff 0 3px, transparent 3.6px) calc(50% + 17px) center / 8px 8px no-repeat, linear-gradient(90deg, transparent, #fff) left center / calc(50% - 30px) 2px no-repeat, linear-gradient(90deg, #fff, transparent) right center / calc(50% - 30px) 2px no-repeat; filter: drop-shadow(0 2px 0 rgba(10, 31, 82, .7)); }main section h2.centro::after, .chamada h2::after { margin-inline: auto; }
main section p { text-shadow: 0 1px 0 var(--ink); }
.painel p, .painel span { text-shadow: none; }

.passos-sec { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 56px; align-items: center; }
.passos-jogo { list-style: none; counter-reset: passo; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.passos-jogo li { counter-increment: passo; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 16px; max-width: 58ch; text-shadow: 0 1px 0 var(--ink); }
.passos-jogo li::before { content: counter(passo); grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#ffe066, #f59a00); border: 1.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink); color: var(--ink); font: 400 28px/1 var(--display); text-shadow: none; }
.passos-jogo b { font: 400 24px/1.15 var(--display); letter-spacing: .01em; }

.contas { display: flex; flex-direction: column; gap: 24px; }
.contas-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contas-lista li { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; }
.contas-lista strong { font: 400 clamp(28px, 3.6vw, 40px)/1.05 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.contas-nota { max-width: 70ch; }

.pais { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px 48px; align-items: start; }
.pais h2, .dupla h2 { position: sticky; top: 24px; }
.lista { margin: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.lista b { display: block; font: 400 21px/1.2 var(--display); margin-bottom: 2px; }

.mundos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.mundos-texto, .rank-sec > div:first-child { display: flex; flex-direction: column; gap: 16px; max-width: 56ch; }
.mundos-telas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; width: 100%; max-width: 460px; margin-left: auto; }
.mundos-telas .fone:nth-child(2) { margin-top: 44px; }
.rank-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 270px); gap: 56px; align-items: center; }

.versoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 860px; margin: 28px auto 20px; }
.versao { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.versao p { flex: 1; }
.versao .btn { align-self: stretch; }
.versao .preco { display: inline-block; margin-left: 6px; padding: 2px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--gold); font-size: .8em; white-space: nowrap; }
.versao .em-breve { flex: none; align-self: stretch; margin: 0; padding: 12px; border: 1.5px dashed var(--ink); border-radius: 14px; text-align: center; font: 400 17px/1.2 var(--display); }
.nota { font-size: 15px; max-width: 64ch; }

.dupla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px 48px; align-items: start; }
.passos { margin: 0; padding-left: 44px; display: flex; flex-direction: column; gap: 10px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { padding: 0 18px; border-radius: 16px; box-shadow: 0 4px 0 rgba(5, 25, 80, .45); }
.faq summary { cursor: pointer; font: 400 20px/1.2 var(--display); min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--display); color: #b25e00; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; max-width: 62ch; }

.chamada { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }

/* rodapé: a grama da Pradaria (textura gerada pelo próprio jogo, repete sem emenda), com os links numa faixa embaixo */
.rodape { background: #7cc254 url(img/grama.png) center top / 768px 384px repeat; padding-top: clamp(110px, 13vw, 180px); display: flex; align-items: flex-end; border-top: 3px solid var(--ink); }
main:has(.chao-fim) + .rodape { border-top: 0; }
.rodape-txt { display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: space-between; align-items: center; font-size: 15px; }
.rodape-txt { background: rgba(6, 26, 82, .86); border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 16px 16px 0 0; padding-top: 12px; padding-bottom: 12px; width: min(1080px, calc(100% - 24px)); }
.rodape-txt a { min-height: 32px; display: inline-flex; align-items: center; }

/* página do ranking */
.rk { max-width: 720px; display: flex; flex-direction: column; gap: 14px; padding-top: 8px; padding-bottom: 40px; }
.rk h1 { font-size: clamp(36px, 6vw, 48px); }
.rk-abas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rk-periodos { display: flex; gap: 8px; flex-wrap: wrap; }
.aba {
min-height: 48px; padding: 0 12px; border: 3px solid #fff; border-radius: 999px; cursor: pointer; margin-bottom: 5px; touch-action: manipulation;  font: 400 16px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 rgba(14, 63, 118, .45);  background: linear-gradient(#7fd0fa, #4aa8ea 42%, #1d6fc4) border-box; box-shadow: 0 5px 0 #14559b, 0 10px 18px rgba(11, 58, 104, .3); transition: filter .15s;}
.aba.chip { min-height: 44px; padding: 0 20px; font-size: 14px; }
.aba:hover { filter: brightness(1.06); }
.aba[aria-pressed=true] { background: linear-gradient(#ffe38a, #ffd75e 42%, #ffa41c) border-box; color: #6b3b00; text-shadow: 0 1px 0 rgba(255, 255, 255, .65); box-shadow: 0 5px 0 #e07b12, 0 10px 18px rgba(224, 123, 18, .3); }
.rk-painel { padding: 16px 14px 14px; }
.rk-desc { margin: 0 4px 12px; font-size: 16px; }
.rk-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rk-lista li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 50px; padding: 4px 14px 4px 6px; border-radius: 12px; background: rgba(255, 255, 255, .6); }
.rk-lista .pos { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 400 17px/1 var(--display); background: #d5dcef; font-variant-numeric: tabular-nums; }
.rk-lista li:nth-child(1) .pos { background: var(--gold); box-shadow: inset 0 0 0 2px #8a4a00; }
.rk-lista li:nth-child(2) .pos { background: #cfd6e4; box-shadow: inset 0 0 0 2px #6d7690; }
.rk-lista li:nth-child(3) .pos { background: #e8a063; box-shadow: inset 0 0 0 2px #7d4212; }
.rk-lista .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-lista .val { display: inline-flex; align-items: baseline; gap: 6px; font: 400 19px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-lista .val small { font: 700 13px/1 system-ui, sans-serif; color: var(--muted); }
.rk-lista .vazio { display: block; text-align: center; padding: 20px 12px; background: none; min-height: 0; }
.rk-pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.ic { display: inline-block; flex: none; width: 17px; height: 17px; align-self: center; }
.ic.moeda { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3a8, var(--gold) 45%, #f59a00); border: 2px solid #8a4a00; }
.ic.bandeira { background: #ff5a4a; clip-path: polygon(15% 0, 28% 0, 28% 8%, 95% 30%, 28% 55%, 28% 100%, 15% 100%); }
.rk .nota { max-width: none; text-shadow: 0 1px 0 var(--ink); }

/* página de texto (privacidade) */
.texto { width: min(760px, calc(100% - 32px)); margin: 16px auto 56px; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(var(--cream), var(--cream-2)); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 rgba(5, 25, 80, .45); padding: 24px 22px 32px; }
.texto a { color: #0b3a94; font-weight: 700; }
.texto h1 { font-size: clamp(30px, 5vw, 44px); color: var(--ink); text-shadow: none; margin-top: 8px; }
.texto h2 { font-size: 25px; margin-top: 20px; color: var(--ink); text-shadow: none; padding: 0; }
.texto ul, .texto ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 860px) {
  .capa, .pais, .dupla, .mundos, .passos-sec, .rank-sec { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pais h2, .dupla h2 { position: static; }
  .menu { order: 3; width: 100%; justify-content: center; gap: 4px 22px; }
  .botoes .btn { flex: 1 1 100%; }
  .palco { max-width: 460px; margin-inline: auto; width: 100%; }
  .passos-sec .fone, .rank-sec .fone { max-width: 240px; margin-inline: auto; width: 100%; }
  .passos-sec .fone { order: 2; }
  .mundos-telas { margin-inline: auto; }
  .contas-lista, .versoes { grid-template-columns: minmax(0, 1fr); }
  .lista { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .topo .logo { width: 96px; }
  .topo .btn.mini { display: none; }
.btn { font-size: 17px; padding-inline: 20px; letter-spacing: .03em; }  .btn.mini { font-size: 15px; }
  .idioma select { font-size: 16px; }
}
/* celular deitado: telas largas e baixas */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 560px) {
  .capa { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
  .passos-sec { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 28px; }
  .passos-sec .fone { order: 0; }
  .rank-sec { grid-template-columns: minmax(0, 1fr) minmax(0, 200px); gap: 28px; }
  .mundos { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 28px; }
  .contas-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .versoes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu { order: 0; width: auto; }
  .topo .logo { width: 88px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* versão disponível para baixar, logo abaixo dos botões da capa */
.versao-info { margin: 14px 0 0; font-size: 15px; font-weight: 700; opacity: .92; }

/* página de inscrição para testar o jogo (teste.html) */
.tst { width: min(640px, 100%); padding-bottom: clamp(56px, 10vw, 96px); }
.tst h1 { margin-bottom: 8px; }
.tst-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.tst-form label { font-weight: 700; display: block; margin-bottom: 4px; }
.tst-form input[type=email], .tst-form input[type=text] { width: 100%; min-height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 12px; font: 17px system-ui, sans-serif; color: var(--ink); background: #fff; }
.tst-form input:focus-visible { outline: 3px solid #1c62dc; outline-offset: 2px; }
.tst-form .dica { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.tst-form .aceite { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.tst-form .aceite input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.tst-form .isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tst-msg { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.tst-msg.ok { background: #d6f5d6; color: #0d4a14; }
.tst-msg.erro { background: #fde1de; color: #8a1810; }
.tst .nota { color: #fff; text-shadow: 0 1px 0 var(--ink); max-width: none; }

/* jogo ao vivo dentro do celular (demo.js): a captura fica por baixo até o jogo carregar */
.tela { position: relative; overflow: hidden; border-radius: 0 0 calc(var(--u) * 10.6) calc(var(--u) * 10.6); }
.fone.deitado .tela { flex: 1; min-width: 0; border-radius: 0 calc(var(--u) * 10.6) calc(var(--u) * 10.6) 0; }
.tela iframe { position: absolute; left: 0; top: 0; width: 360px; height: 780px; border: 0; transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .6s; background: transparent; }
.fone.deitado .tela iframe { width: 780px; height: 360px; }
.tela iframe.pronto { opacity: 1; }
