/* Site de divulgação do Battle Doctor: mesmas cores do app (src/constants/theme.ts). Uma família só
   (Saira), usando o eixo de largura: letreiro bem condensado, texto corrido na largura normal. */
:root {
  color-scheme: dark;
  --bg: #060b18;
  --deep: #03060f;
  --panel: #0d1320;
  --panel2: #141c2e;
  --line: rgba(255, 255, 255, .09);
  --text: #f4f7fb;
  --muted: #a3afc4;
  --green: #20e048;
  --green-deep: #18be3b;
  --cyan: #31c8ff;
  --gold: #ffd166;
  --platinum: #c7d5e8;
  --violet: #a855f7;
  --red: #ff4d6d;
  --out: cubic-bezier(.33, 1, .68, 1);
  --spring: linear(0, .25 8%, .67 20%, .98 32%, 1.08 40%, 1.1 46%, 1.05 58%, 1 72%, .99 84%, 1);
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 Saira, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; touch-action: manipulation; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 30; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

h2 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  font-weight: 800;
  font-stretch: 68%;
  line-height: 1;
  letter-spacing: -.005em;
  margin: 0 0 .45em;
  text-wrap: balance;
  max-width: 17ch;
}
section p { max-width: 62ch; }

/* Céu: pontinhos desenhados uma vez no canvas; as que piscam e a estrela cadente são só opacidade/transform. */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky canvas { width: 100%; height: 100%; display: block; }
.tw { position: absolute; border-radius: 50%; background: #fff; animation: tw var(--d) ease-in-out var(--o) infinite; }
.spark { position: absolute; width: var(--s); height: var(--s); animation: tw var(--d) ease-in-out var(--o) infinite;
  background: conic-gradient(from 0deg, transparent 0 0); }
.spark::before, .spark::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 2px; transform: translate(-50%, -50%); box-shadow: 0 0 6px rgba(255, 255, 255, .8); }
.spark::before { width: 1.5px; height: 100%; }
.spark::after { width: 100%; height: 1.5px; }
@keyframes tw { 0%, 100% { opacity: .08; } 50% { opacity: .6; } }
.shooting { position: absolute; top: 12%; left: 62%; width: 130px; height: 1.5px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, #fff, transparent); transform: rotate(-24deg); animation: shoot 10s linear 4s infinite; }
@keyframes shoot {
  0% { opacity: 0; transform: rotate(-24deg) translateX(0); }
  1% { opacity: .9; }
  7% { opacity: 0; transform: rotate(-24deg) translateX(-460px); }
  100% { opacity: 0; transform: rotate(-24deg) translateX(-460px); }
}

/* Barra de vidro: o conteúdo passa por baixo. */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(6, 11, 24, .62);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid var(--line);
}
.bar-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 80%; font-size: 1.15rem; text-decoration: none; white-space: nowrap; }
.bar nav { display: flex; gap: clamp(12px, 2.2vw, 28px); }
.bar nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; transition: color .15s; }
.bar nav a:hover { color: var(--text); }
@media (max-width: 760px) { .bar nav { display: none; } }
@media (prefers-reduced-transparency: reduce) { .bar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Letreiro: mesma receita do app (face em dois tons, contorno, profundidade 3D, neon por trás). */
.logo { margin: 0; line-height: .86; font-size: clamp(5.2rem, 13.5vw, 11rem); transform: skewX(-8deg); transform-origin: left bottom; isolation: isolate; }
.w {
  position: relative; display: block; width: max-content;
  font-weight: 900; font-stretch: 58%; letter-spacing: .012em; line-height: 1;
  color: transparent;
}
/* O texto do próprio elemento só reserva o espaço; as duas camadas abaixo são o que aparece. */
.w::before, .w::after { content: attr(data-t); position: absolute; left: 0; top: 0; }
.w::after {
  background: linear-gradient(180deg, var(--top) 0 53%, var(--base) 53% 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.w::before {
  -webkit-text-fill-color: var(--depth);
  -webkit-text-stroke: var(--stroke, .022em) var(--outline);
  paint-order: stroke fill;
  text-shadow: 0 .012em 0 var(--depth), 0 .024em 0 var(--depth), 0 .036em 0 var(--depth), 0 .048em 0 var(--outline), 0 0 .13em var(--glow);
}
.w-battle { --top: #fff; --base: #c9d3e3; --depth: #5b6478; --outline: #000; --glow: rgba(255, 255, 255, .3); }
.w-doctor { --top: #ffd66b; --base: #ffa41b; --depth: #0b7a26; --outline: var(--green); --glow: rgba(255, 159, 28, .75); margin-top: -.03em; }

/* Hero */
.hero {
  min-height: calc(100svh - 62px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center; gap: clamp(24px, 5vw, 80px);
  max-width: 1280px; margin: 0 auto;
  padding: clamp(20px, 4vh, 48px) var(--gutter);
}
.emblem { width: clamp(76px, 8vw, 112px); height: auto; display: block; margin-bottom: 18px; overflow: hidden; border-radius: 27%; filter: drop-shadow(0 0 16px rgba(32, 224, 72, .45)); }
.emblem-box { fill: #07140c; stroke: var(--green); stroke-width: 2; }
.clash { fill: none; stroke: var(--gold); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.4; margin: 22px 0 16px; max-width: 34ch; }
.soon { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--gold); font-weight: 600; }
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* O único momento coreografado da página: as espadas se cruzam e o letreiro carimba. */
@media (prefers-reduced-motion: no-preference) {
  .sword-l { animation: sl .38s var(--out) .15s backwards; }
  .sword-r { animation: sr .38s var(--out) .15s backwards; }
  .clash { animation: clash .5s var(--out) .5s; }
  .rod { animation: rod .5s var(--spring) .5s backwards; transform-box: fill-box; transform-origin: center; }
  .logo .w { animation: stamp .42s var(--spring) .55s backwards; transform-origin: 20% 60%; }
  .logo .w-doctor { animation-delay: .66s; }
  .lede, .soon { animation: fade .5s ease .95s backwards; }
  .game { animation: fade .5s ease .95s backwards; }
}
@keyframes sl { from { transform: translateX(-90px); } }
@keyframes sr { from { transform: translateX(90px); } }
@keyframes clash { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes rod { from { opacity: 0; transform: scale(.5); } }
@keyframes stamp { from { opacity: 0; transform: scale(1.35); } }
@keyframes fade { from { opacity: 0; } }

/* Partida de demonstração */
.game {
  position: relative; display: flex; flex-direction: column;
  min-height: 600px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(20, 28, 46, .92), rgba(9, 14, 26, .94));
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 34px;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .9), 0 0 60px -30px var(--green);
  overflow: hidden;
  scroll-margin-top: 76px;
}
.game::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: var(--flash, transparent); }
.game.flash::after { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .22; } 100% { opacity: 0; } }
.game-top { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .15); transition: background-color .2s; }
.dots i.now { background: var(--text); }
.dots i.ok { background: var(--green); }
.dots i.no { background: var(--red); }
.score { margin-left: auto; color: var(--muted); font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.score b { color: var(--gold); font-weight: 800; font-size: 1.15rem; display: inline-block; }
.mute { background: none; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: .8rem; font-weight: 600; color: var(--muted); transition: color .15s, border-color .15s; }
.mute:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.timer { position: relative; height: 8px; margin: 12px 0 0; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.timer i { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(1); border-radius: 8px; }
.game-body { flex: 1; display: flex; flex-direction: column; padding-top: 14px; min-width: 0; }

.idle { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 16px; text-align: center; }
.idle-note { margin: 0 auto; color: var(--muted); font-size: .95rem; max-width: 30ch; }
.jogar {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 26px 16px 20px;
  border: 0; border-radius: 22px;
  background: linear-gradient(180deg, #21d145 0 50%, var(--green-deep) 50% 100%);
  box-shadow: 0 7px 0 #0b7a26, 0 16px 40px -8px rgba(32, 224, 72, .55);
  transition: transform .1s ease-out, box-shadow .1s ease-out;
  isolation: isolate;
}
.jogar:hover { filter: brightness(1.06); }
.jogar:active { transform: translateY(5px) scale(.985); box-shadow: 0 2px 0 #0b7a26, 0 8px 24px -8px rgba(32, 224, 72, .5); }
.jogar small { color: #04210b; font-weight: 700; font-size: .92rem; }
.w-jogar { font-size: 4.4rem; transform: skewX(-8deg); --top: #fff; --base: #dcf7e3; --depth: #064f18; --outline: #03310e; --glow: transparent; }

.origin { margin: 0 0 8px; font-size: .88rem; font-weight: 700; color: var(--green); }
.area { color: var(--muted); font-weight: 500; }
.q { font-size: clamp(1.3rem, 2.2vw, 1.5rem); font-weight: 700; line-height: 1.22; margin: 0 0 14px; font-stretch: 92%; text-wrap: pretty; }
.ans { display: grid; gap: 9px; }
.a {
  display: block; width: 100%; text-align: left;
  padding: 13px 16px; min-height: 52px;
  background: var(--panel2);
  border: 1.5px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  font-weight: 600; line-height: 1.25;
  transition: transform .1s ease-out, background-color .15s, border-color .15s, opacity .2s;
}
.a:hover:not(:disabled) { border-color: rgba(255, 255, 255, .34); }
.a:active:not(:disabled) { transform: scale(.97); }
.a:disabled { cursor: default; color: var(--text); }
.a.dim { opacity: .42; }
.a.right { background: rgba(32, 224, 72, .2); border-color: var(--green); }
.a.wrong { background: rgba(255, 77, 109, .18); border-color: var(--red); }
.after { margin-top: 12px; }
.verdict { margin: 0 0 3px; font-weight: 800; font-stretch: 85%; font-size: 1.1rem; }
.verdict.ok { color: var(--green); }
.verdict.no { color: var(--red); }
.verdict em { font-style: normal; color: var(--gold); margin-left: 6px; }
.x { margin: 0 0 12px; color: var(--muted); font-size: .98rem; line-height: 1.4; }
.next {
  width: 100%; padding: 13px; border-radius: 16px; border: 0;
  background: var(--text); color: var(--bg); font-weight: 800;
  transition: transform .1s ease-out, background-color .15s;
}
.next:hover { background: #fff; }
.next:active { transform: scale(.97); }
.float { position: absolute; right: 22px; top: 44px; color: var(--gold); font-weight: 900; font-size: 1.6rem; pointer-events: none; }

.result { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.stars { display: flex; gap: 8px; margin-bottom: 8px; }
.star { width: 46px; height: 46px; fill: rgba(255, 255, 255, .1); }
.star.on { fill: var(--gold); filter: drop-shadow(0 0 8px rgba(255, 209, 102, .7)); }
.res-n { font-size: 6rem; font-weight: 900; font-stretch: 60%; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.res-l { font-weight: 700; margin: 0 0 4px; }
.res-s { color: var(--muted); margin: 0 0 14px; font-size: .98rem; }
.res-note { color: var(--muted); font-size: .92rem; line-height: 1.4; margin: 0 0 18px; max-width: 34ch; }

/* Jogo ou estudo: conversa que se repete (as bolhas ficam sempre no layout; só a opacidade muda) */
.duo { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.duo-copy h2 span { color: var(--green); }
.duo-copy p { color: var(--muted); }
.chat { width: min(100%, 420px); margin: 0 auto; padding: 16px 16px 18px; border-radius: 28px; background: rgba(13, 19, 32, .72); border: 1px solid var(--line); }
.chat-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .95rem; color: var(--muted); }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.chat-list li { position: relative; display: flex; }
.chat-list .me { justify-content: flex-end; }
.bub { max-width: 82%; padding: 8px 13px; border-radius: 18px; font-size: 1rem; line-height: 1.3; }
.them .bub { background: var(--panel2); border-bottom-left-radius: 6px; }
.me .bub { background: var(--green-deep); color: #03130a; font-weight: 600; border-bottom-right-radius: 6px; }
.chat-list .loop { justify-content: center; margin-top: 8px; font-size: .85rem; font-weight: 700; color: var(--green); }
.chat-live li { opacity: 0; transform: translateY(6px); transition: opacity .25s var(--out), transform .3s var(--out); }
.chat-live li.on { opacity: 1; transform: none; }
.chat-live.fade li { opacity: 0; transition-duration: .5s; }
/* "digitando…": balão pequeno no lugar da bolha que vai chegar */
.chat-list li.typing { opacity: 1; transform: none; }
.chat-list li.typing .bub { opacity: 0; }
.chat-list li.typing::after {
  content: "•••"; position: absolute; top: 0; left: 0; padding: 4px 12px; border-radius: 18px 18px 18px 6px;
  background: var(--panel2); color: var(--muted); letter-spacing: 2px; font-size: .95rem; line-height: 1.3;
  animation: typing .9s ease-in-out infinite;
}
.chat-list .me.typing::after { left: auto; right: 0; border-radius: 18px 18px 6px 18px; background: var(--green-deep); color: #03130a; }
@keyframes typing { 50% { opacity: .45; } }

/* Categorias */
.tracks, .wheel-sec, .climb, .deck, .plans, .duo { max-width: 1280px; margin: 0 auto; padding: clamp(64px, 11vh, 130px) var(--gutter) 0; }
.tracks-total { margin: 0; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; color: var(--muted); }
.tracks-total b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.growing { color: var(--green); font-weight: 700; white-space: nowrap; }
.growing i { font-style: normal; }
@media (prefers-reduced-motion: no-preference) {
  .growing i { animation: grow-dot 1.6s ease-in-out infinite; }
  .growing i:nth-child(2) { animation-delay: .2s; }
  .growing i:nth-child(3) { animation-delay: .4s; }
}
@keyframes grow-dot { 0%, 60%, 100% { opacity: 1; } 30% { opacity: .2; } }
.track-n small { display: block; margin-top: 4px; font-size: .95rem; font-weight: 700; font-stretch: 100%; color: var(--muted); letter-spacing: .02em; }
.track-list { list-style: none; margin: 32px 0 0; padding: 0; }
.track-list li { display: grid; grid-template-columns: minmax(180px, 3.2fr) 7fr; gap: 8px clamp(16px, 4vw, 56px); align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.track-n { font-size: clamp(3.6rem, 8vw, 6.6rem); font-weight: 900; font-stretch: 58%; line-height: .95; color: var(--c); font-variant-numeric: tabular-nums; }
.track-list h3 { margin: 0 0 4px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; font-stretch: 85%; }
.track-list p { margin: 0; color: var(--muted); }
.tracks-foot { margin: 8px 0 0; padding-top: 22px; border-top: 1px solid var(--line); max-width: none; }

/* Roleta */
.wheel-sec { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.wheel-wrap { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; }
.wheel { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 0 44px -6px rgba(32, 224, 72, .55); will-change: transform; }
.wheel text { font-weight: 800; font-size: 15px; font-stretch: 80%; text-anchor: end; dominant-baseline: central; }
.pointer { position: absolute; z-index: 2; left: 50%; top: -6px; width: 0; height: 0; margin-left: -15px; border: 15px solid transparent; border-top: 28px solid var(--gold); border-bottom: 0; filter: drop-shadow(0 2px 3px #000); }
.hub {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; margin: -15% 0 0 -15%;
  border-radius: 50%; background: var(--deep); border: 3px solid var(--green);
  box-shadow: 0 0 26px -2px rgba(32, 224, 72, .7);
  display: grid; place-items: center; padding: 0; isolation: isolate;
  transition: transform .1s ease-out, opacity .2s;
}
.hub:active:not(:disabled) { transform: scale(.94); }
.hub:hover:not(:disabled) { background: #08121f; }
.hub:disabled { cursor: default; opacity: .75; }
.w-spin { font-size: clamp(1.7rem, 4.4vw, 2.6rem); transform: skewX(-8deg); --top: #fff; --base: #ddf7e3; --depth: #064f18; --outline: #000; --glow: rgba(32, 224, 72, .9); --stroke: .03em; }
.wheel-copy p { color: var(--muted); }
.wheel-result { color: var(--text) !important; font-weight: 800; font-stretch: 80%; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.15; min-height: 2.4em; margin: 18px 0 0; }

/* Títulos em escada */
.climb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 90px); align-items: end; }
.climb-copy > p { color: var(--muted); }
.rules { margin: 26px 0 0; }
.rules div { padding: 14px 0; border-top: 1px solid var(--line); }
.rules dt { font-weight: 800; font-stretch: 85%; font-size: 1.2rem; }
.rules dd { margin: 2px 0 0; color: var(--muted); max-width: 54ch; }
.stairs { list-style: none; margin: 0; padding: 0; }
.stairs li {
  --hue: color-mix(in srgb, var(--green) calc(var(--i) * 8.33%), #24324c);
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-left: calc((11 - var(--i)) * 0px + var(--i) * clamp(0px, 1.65vw, 22px));
  padding: 9px 14px;
  border-left: 3px solid var(--hue);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--hue) 16%, transparent), transparent 75%);
}
.stairs span { font-weight: 700; font-stretch: 85%; }
.stairs small { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .85rem; }
.stairs li:first-child { background: linear-gradient(90deg, rgba(255, 209, 102, .22), transparent 80%); border-left-color: var(--gold); }
.stairs li:first-child span { color: var(--gold); font-size: 1.3rem; font-weight: 900; }
.stairs li:last-child small { color: var(--green); font-weight: 700; }

/* Erros e Anki */
.deck { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 6vw, 90px); align-items: center; }
.deck-copy p { color: var(--muted); }
.anki { position: relative; width: min(100%, 400px); margin: 12px auto 22px; }
.card-front, .card-back { border-radius: 20px; border: 1px solid rgba(255, 255, 255, .13); background: var(--panel2); }
.card-back { position: absolute; inset: 0; }
.c2 { transform: rotate(4deg) translate(10px, 6px); background: #101829; }
.c3 { transform: rotate(8deg) translate(18px, 14px); background: #0c1321; }
.card-front { position: relative; padding: 20px 22px; transform: rotate(-1.5deg); box-shadow: 0 20px 50px -20px #000; }
.card-src { margin: 0 0 8px; font-size: .85rem; font-weight: 700; color: var(--green); }
.card-q { margin: 0 0 10px; font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.card-a { margin: 0 0 4px; color: var(--green); }
.card-x { margin: 0 0 16px; color: var(--muted); }
.card-btn { display: inline-block; margin: 0; padding: 8px 14px; border-radius: 12px; background: rgba(49, 200, 255, .14); color: var(--cyan); font-weight: 700; font-size: .95rem; }

/* Planos */
.plans-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 26px; }
.plans-head h2 { margin: 0; max-width: 20ch; }
.toggle { display: inline-flex; padding: 4px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.toggle button { border: 0; background: none; padding: 9px 16px; border-radius: 12px; font-weight: 700; color: var(--muted); transition: background-color .15s, color .15s; }
.toggle button:hover { color: var(--text); }
.toggle button[aria-checked="true"] { background: var(--text); color: var(--bg); }
.toggle small { font-weight: 700; font-size: .78rem; color: inherit; opacity: .8; margin-left: 2px; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 26px; background: rgba(13, 19, 32, .72); }
.plan { --c: var(--muted); padding: 24px 22px 26px; border-left: 1px solid var(--line); min-width: 0; }
.plan:first-child { border-left: 0; }
.plan h3 { margin: 0 0 8px; color: var(--c); font-size: 1.7rem; font-weight: 900; font-stretch: 70%; }
.plan:first-child h3 { color: var(--text); }
.price { margin: 0; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.price b { color: var(--text); font-size: 1.85rem; font-weight: 800; font-stretch: 80%; }
.price-note { margin: 2px 0 16px; color: var(--text); font-weight: 600; font-size: .95rem; line-height: 1.3; min-height: 2.6em; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { padding: 8px 0 8px 22px; position: relative; font-size: .98rem; line-height: 1.32; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 11px; height: 6px; border-left: 2px solid var(--c); border-bottom: 2px solid var(--c); transform: rotate(-45deg); }
.plan-top { position: relative; margin: -1px; border-radius: 26px; border: 1px solid var(--violet); background: rgba(168, 85, 247, .1); box-shadow: 0 0 44px -16px var(--violet); }
.plans-legal { margin: 16px 0 0; color: var(--muted); font-size: .9rem; max-width: 86ch; }

/* Rodapé */
.foot { max-width: 1280px; margin: clamp(64px, 11vh, 120px) auto 0; padding: 30px var(--gutter) max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-main { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.foot-soon { margin: 0; font-weight: 800; font-stretch: 80%; font-size: 1.35rem; flex: 1 1 260px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--muted); font-weight: 600; text-decoration: none; padding: 4px 0; transition: color .15s; }
.foot nav a:hover { color: var(--green); }
.foot-legal { color: var(--muted); font-size: .85rem; margin: 18px 0 0; max-width: 90ch; }

@media (max-width: 1040px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 22px; gap: 26px; }
  .hero-copy { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .emblem { grid-row: 1; margin: 0; width: clamp(68px, 19vw, 104px); }
  .logo { font-size: clamp(3.7rem, 17vw, 7rem); }
  .lede, .soon { grid-column: 1 / -1; max-width: none; }
  .game { min-height: 570px; border-radius: 28px; }
  .wheel-sec, .climb, .deck, .duo { grid-template-columns: minmax(0, 1fr); }
  .track-list li { grid-template-columns: minmax(0, 1fr); }
  .wheel-copy { order: -1; }
}
@media (max-width: 560px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .plan { border-left: 0; }
  .plan:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .plan-top { margin: 0; }
  .price-note { min-height: 0; }
  .plans-head { align-items: start; flex-direction: column; }
  .stairs li { margin-left: calc(var(--i) * 6px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tw, .spark, .shooting { animation: none; }
  .tw, .spark { opacity: .5; }
  .shooting { display: none; }
  .wheel { will-change: auto; }
}
@media (prefers-contrast: more) {
  :root { --muted: #d5dceb; --line: rgba(255, 255, 255, .35); }
}
