/* fontes de reserva com a largura das reais: o texto não pula quando a fonte do Google chega */
@font-face { font-family: 'Instrument Serif Fb'; src: local('Georgia'), local('Times New Roman'); size-adjust: 75.5%; ascent-override: 131%; descent-override: 41%; line-gap-override: 0%; }
@font-face { font-family: 'Onest Fb'; src: local('Arial'), local('Helvetica'); font-weight: 400 599; size-adjust: 103.4%; ascent-override: 94%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: 'Onest Fb'; src: local('Arial Bold'), local('Helvetica Bold'); font-weight: 600 900; size-adjust: 100%; ascent-override: 97%; descent-override: 30%; line-gap-override: 0%; }
/* Clavex — página de vendas, entrar/cadastrar, termos e privacidade.
   Os tokens abaixo espelham o :root de app.css (mesmos nomes e valores): não é um sistema novo,
   é o mesmo, copiado porque esta página não carrega os 100 KB do app. Mudou lá? Mude aqui. */
:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --ink: #17161C;
  --ink-2: #5A5866;
  --ink-3: #6E6C7A;
  --line: #E7E3DA;
  --lane: #FCFBF8;
  --lane-sharp: #F3F0E9;
  --display: 'Instrument Serif', 'Instrument Serif Fb', Georgia, serif;
  --note: #8C93F0;
  --accent: #4048C9;
  --accent-soft: #ECEBF5;
  --voice: #E0336F;
  --voice-soft: #FDE8EF;
  --green: #0E8A62;
  --hit: #0B9A78;
  --hit-soft: #E2F5EF;
  --off: #C2410C;
  --off-soft: #FCEDE5;
  --radius: 18px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow: 0 0 0 1px rgb(23 22 28 / 0.055), 0 14px 34px -24px rgb(23 22 28 / 0.28);
  --gut: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(64px + env(safe-area-inset-top)); }
/* âncora de parte encosta embaixo do topo; as que caem no meio de uma faixa ganham um respiro */
.us, .shop, .rank-col { scroll-margin-top: 16px; }
html.locked { overflow: hidden; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.55 Onest, 'Onest Fb', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
::selection { background: var(--voice-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
svg.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: var(--gut); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: top 160ms var(--ease-out); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: var(--ink); font-weight: 600; font-size: 0.9375rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: transform 120ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.line { border-color: #D6D1C6; background: var(--surface); }
.btn.ghost { color: var(--ink-2); }
.btn.lg { min-height: 54px; padding: 0 24px; border-radius: 14px; font-size: 1rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: default; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover { background: #2B2A33; }
  .btn.line:hover { border-color: var(--ink-3); }
  .btn.ghost:hover { color: var(--ink); background: rgb(23 22 28 / 0.05); }
}

/* -------------------------------------------------------------- topo */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgb(246 244 239 / 0.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding-top: env(safe-area-inset-top);
  transition: box-shadow 200ms ease;
}
.bar.scrolled { box-shadow: 0 1px 0 var(--line); }
.bar-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.mark { font: 400 1.75rem/1 var(--display); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: 0; margin: 0; }
.mark-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--voice); margin-left: 2px; align-self: flex-end; margin-bottom: 0.32em; }
.mark small { font: 500 0.6875rem/1 Onest, 'Onest Fb', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-left: 10px; align-self: center; }
.bar-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang { position: relative; display: inline-flex; }
.lang select {
  appearance: none; -webkit-appearance: none; height: 40px; padding: 0 28px 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5866' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); cursor: pointer;
}
.t3d.bar-start { display: none; }
@media (max-width: 420px) { .mark small { display: none; } }
@media (min-width: 640px) { .t3d.bar-start { display: inline-flex; } }

/* ----------------------------------------- botão 3D (o mesmo do app) */
.t3d {
  --u: #4048C9; --u2: #2E359C;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 16px; background: var(--u); color: #fff; text-decoration: none; cursor: pointer;
  font: 800 0.9375rem/1 Onest, 'Onest Fb', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 5px 0 var(--u2); transform: translateY(0);
  transition: transform 90ms ease-out, box-shadow 90ms ease-out, filter 160ms ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.t3d:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--u2); }
.t3d:disabled { background: #D9D5CB; color: #5A5866; box-shadow: 0 5px 0 #BDB8AC; cursor: default; }
.t3d.lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.t3d.sm { min-height: 44px; padding: 0 16px; font-size: 0.8125rem; border-radius: 14px; box-shadow: 0 4px 0 var(--u2); }
.t3d.light { background: #fff; color: var(--accent); box-shadow: 0 5px 0 #D6D1C6; }
@media (hover: hover) and (pointer: fine) { .t3d:hover:not(:disabled) { filter: brightness(1.07); } }

.bar-nav { display: none; margin-left: 20px; gap: 2px; }
.bar-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.bar-nav a:hover, .bar-nav a[aria-current] { color: var(--ink); background: rgb(23 22 28 / 0.06); }
@media (min-width: 1120px) { .bar-nav { display: flex; } .mark small { display: none; } }

/* ------------------------------------------------------------- herói */
.hero { display: grid; gap: 28px; padding-top: clamp(16px, 4vw, 48px); padding-bottom: clamp(40px, 7vw, 88px); align-items: center; }
.hero h1 { font: 400 clamp(2.9rem, 9.4vw, 5.4rem)/0.96 var(--display); letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; color: var(--voice); }
.lead { margin: 20px 0 0; font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: var(--ink-2); max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.facts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }


/* cenário: imagem nítida (nunca esticada além do tamanho real); em pé usa a versão -p, com a deitada de reserva */
.stage {
  position: relative; margin: 0; overflow: hidden; border-radius: 28px; isolation: isolate;
  background: #CFD8E6 center / cover no-repeat; box-shadow: var(--shadow); max-width: 1280px;
}
.stage-vila { aspect-ratio: 4 / 4.3; background-image: url(/static/l-vila.webp); background-position: 50% 70%; }
.stage-muralha:not(.lz) { background-image: none; }
.stage-muralha { background-image: url(/static/l-muralha.webp); }
@media (orientation: portrait) {
  .stage-vila { background-image: url(/static/l-vila-p.webp); }
  .stage-muralha { background-image: url(/static/l-muralha-p.webp); }
}
@media (min-width: 960px) { .stage-vila { aspect-ratio: 1 / 1; max-height: 600px; } }
.stage .p { position: absolute; bottom: 0; width: auto; filter: drop-shadow(0 10px 8px rgb(23 22 28 / 0.28)); transform-origin: 50% 100%; }
.p-sol { left: 50%; height: 78%; max-height: 360px; translate: -50% 0; z-index: 2; }
.p-do { left: 4%; height: 62%; max-height: 300px; z-index: 1; }
.p-fa { right: 3%; height: 62%; max-height: 300px; z-index: 1; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.bubble {
  position: absolute; z-index: 3; top: 9%; left: 50%; translate: -10% 0; margin: 0; padding: 10px 16px; border-radius: 16px 16px 16px 4px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 0.9375rem; box-shadow: 0 8px 20px -10px rgb(23 22 28 / 0.4);
  transform-origin: 0 100%; animation: pop 500ms var(--ease-out) 500ms both;
}
@keyframes pop { from { opacity: 0; transform: scale(0.7); } }

/* ----------------------------------------------------------- seções */
.sec-head { max-width: 640px; margin-bottom: clamp(24px, 4vw, 40px); }
.sec-head h2, .part h2, .end h2 { font: 400 clamp(2.3rem, 6.2vw, 3.6rem)/1 var(--display); letter-spacing: -0.02em; }
.sec-head p { margin: 12px 0 0; color: var(--ink-2); font-size: 1.0625rem; }
.plans, .faq { padding-block: clamp(48px, 7vw, 88px); }

.tag { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; }
.c-art { position: relative; min-height: 230px; overflow: hidden; }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.ticks .i { margin-top: 0.15em; color: var(--green); stroke-width: 2.6; }

.cast-mini { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.cast-mini li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; font-weight: 600; font-size: 0.875rem; box-shadow: 0 0 0 1px rgb(23 22 28 / 0.06); }
.cast-mini img { height: 44px; width: auto; }
.map-img { position: absolute; left: 50%; top: 0; translate: -50% 0; width: min(100%, 520px); max-width: none; height: 100%; object-fit: cover; object-position: 50% 30%; }
.map-hero { position: absolute; z-index: 2; right: 12%; bottom: 6px; height: 130px; width: auto; filter: drop-shadow(0 6px 6px rgb(23 22 28 / 0.3)); }


.game { background: #BFE3F6 url(/static/l-ceu.webp) 50% 60% / cover no-repeat; min-height: 250px; }
.game:not(.lz) { background-image: none; }
@media (orientation: portrait) { .game { background-image: url(/static/l-ceu-p.webp); } .game:not(.lz) { background-image: none; } }
.g-hero { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; height: 150px; width: auto; filter: drop-shadow(0 8px 6px rgb(23 22 28 / 0.3)); }
.g-pill { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.92); font-weight: 800; font-size: 0.8125rem; }
.g-note { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--voice); box-shadow: 0 0 0 4px rgb(255 255 255 / 0.7); }
.g-note.n1 { right: 22%; top: 30%; } .g-note.n2 { right: 12%; top: 44%; background: #F5B301; } .g-note.n3 { right: 30%; top: 20%; background: var(--accent); }

.kar { background: #221F2B; border-radius: 24px; margin: 0; min-height: 300px; padding: 14px; display: grid; align-content: start; gap: 12px; }
.kar-top, .kar-bot { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 2; }
.chip { padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.1); color: #DAD7E4; font-weight: 700; font-size: 0.8125rem; }
.chip.on { background: #fff; color: var(--ink); }
.chip.voice { background: var(--voice); color: #fff; }
.kar-lane { position: relative; height: 112px; border-radius: 12px; background: #2B2836; background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgb(255 255 255 / 0.06) 27px 28px); overflow: hidden; }
.kar-lane i { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: 12px; border-radius: 6px; background: var(--note); }
.kar-lane svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kar-ly { margin: 0; font: 400 1.7rem/1.1 var(--display); color: #8F8BA3; }
.kar-ly .on { color: #fff; } .kar-ly .now { color: #FF7FAA; }
.kar-hero { position: absolute; right: 6px; bottom: 0; height: 120px; width: auto; filter: drop-shadow(0 6px 6px rgb(0 0 0 / 0.4)); }


/* loja */
.skins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.skins li { display: grid; gap: 2px; text-align: center; }
.skins b { font-weight: 800; font-size: 1rem; margin-top: 10px; }
.skins li > span { color: var(--ink-2); font-size: 0.875rem; }
.sk { position: relative; aspect-ratio: 1 / 1.08; border-radius: 24px; overflow: hidden; display: grid; place-items: end center; box-shadow: var(--shadow); }
.sk img { height: 88%; width: auto; filter: drop-shadow(0 8px 6px rgb(23 22 28 / 0.3)); transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .skins li:hover .sk img { transform: translateY(-6px) scale(1.03); } }
.sk-sol { background: radial-gradient(circle at 50% 30%, #5B4A8A, #1E1830 75%); }
.sk-fa { background: radial-gradient(circle at 50% 30%, #A9C6F2, #3B4F86 80%); }
.sk-do { background: radial-gradient(circle at 50% 30%, #FFE08A, #F08A24 85%); }
.sk-frames { background: #fff; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 14px; padding: 18px; }
.fr { width: 52px; height: 52px; border-radius: 50%; background: #E9E5DC; }
.fr1 { box-shadow: 0 0 0 4px #fff, 0 0 0 7px #E0336F; }
.fr2 { box-shadow: 0 0 0 4px #fff, 0 0 0 7px #F5B301; }
.fr3 { box-shadow: 0 0 0 4px #fff, 0 0 0 7px #4048C9; }
.sk-frames .pal { height: 56px; width: auto; }
@media (min-width: 820px) { .skins { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.chips { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips li:not(.sep) { padding: 8px 14px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 0.875rem; color: var(--accent); box-shadow: 0 0 0 1px rgb(64 72 201 / 0.18); }
.chips .sep { width: 1px; height: 22px; background: rgb(64 72 201 / 0.3); margin: 0 4px; }
.board { margin: 0; background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.board figcaption { font-weight: 800; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding: 2px 6px 10px; }
.board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 28px 44px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; min-height: 60px; }
.board li.me { background: var(--voice-soft); box-shadow: inset 0 0 0 2px var(--voice); }
.board .pos { font: 400 1.5rem/1 var(--display); text-align: center; color: var(--ink-2); }
.board img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: #E9E5DC; }
.board b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board em { font-style: normal; font-weight: 800; color: var(--accent); font-size: 0.9375rem; }


/* perguntas */
.qa { display: grid; gap: 10px; max-width: 820px; }
.qa details { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 8px 20px; font-weight: 700; cursor: pointer; border-radius: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg.i { transition: transform 220ms var(--ease-out); color: var(--ink-2); }
.qa details[open] summary svg.i { transform: rotate(180deg); }
.qa details p { margin: 0; padding: 0 20px 20px; color: var(--ink-2); max-width: 66ch; }

/* chamada final */
.end { padding: clamp(24px, 5vw, 60px) var(--gut) clamp(40px, 7vw, 88px); }
.end-stage { margin-inline: auto; max-width: 1140px; min-height: 420px; display: grid; align-content: center; justify-items: center; text-align: center; padding: 40px 20px 140px; }
.end-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(246 244 239 / 0.78), rgb(246 244 239 / 0.35)); }
.end-tx { position: relative; z-index: 3; display: grid; justify-items: center; }
.end h2 { max-width: 14ch; }
.end p { color: var(--ink); margin: 14px 0 24px; font-size: 1.0625rem; font-weight: 500; }
.e-prin { left: 3%; height: 120px; max-height: 380px; z-index: 2; }
.e-dra { right: 2%; height: 130px; z-index: 2; }
@media (min-width: 720px) { .end-stage { padding-bottom: 60px; min-height: 460px; } .e-prin { height: 280px; } .e-dra { height: 270px; } }

/* entrada ao rolar (só com JS; sem movimento reduzido) */
html.js.mv .rv { opacity: 0; transform: translateY(18px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
html.js.mv .rv.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ rodapé */
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.mark.small { font-size: 1.375rem; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; margin-left: auto; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-note { flex-basis: 100%; margin: 0; font-size: 0.8125rem; color: var(--ink-2); }
.foot-note:empty { display: none; }

/* ------------------------------------------ entrar / criar conta (folha) */
dialog.auth {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(23 22 28 / 0); color: var(--ink); overflow: hidden;
  transition: background-color 280ms ease;
}
dialog.auth[open] { display: flex; align-items: flex-end; justify-content: center; }
dialog.auth::backdrop { background: transparent; }
dialog.auth.in { background: rgb(23 22 28 / 0.42); }
.sheet {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100dvh - 16px - env(safe-area-inset-top));
  overflow-y: auto; overscroll-behavior: contain; background: var(--bg);
  border-radius: 24px 24px 0 0; box-shadow: 0 -18px 50px -30px rgb(23 22 28 / 0.5);
  padding: 4px 20px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform 300ms var(--ease-drawer);
  will-change: transform;
}
dialog.auth.in .sheet { transform: none; transition-duration: 440ms; }
.grab { height: 26px; display: grid; place-items: center; touch-action: none; cursor: grab; margin: 0 -20px; }
.grab span { width: 38px; height: 5px; border-radius: 3px; background: #D3CEC4; }
.sheet-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 18px; }
.sheet-hero { width: auto; height: 64px; }
.sheet-title h2 { font: 400 2rem/1.02 var(--display); letter-spacing: -0.015em; }
.sheet-title p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.9375rem; }
.x { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); align-self: start; margin: -4px -10px 0 0; transition: transform 120ms var(--ease-out), background-color 150ms ease; }
.x:active { transform: scale(0.94); background: var(--line); }
@media (hover: hover) and (pointer: fine) { .x:hover { background: rgb(23 22 28 / 0.06); color: var(--ink); } }

.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: #ECE8E0; margin-bottom: 20px; }
.tabs button { position: relative; z-index: 1; min-height: 42px; border: 0; background: transparent; border-radius: 10px; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); transition: color 160ms ease; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tab-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: var(--surface); box-shadow: 0 1px 2px rgb(23 22 28 / 0.08), 0 4px 12px -6px rgb(23 22 28 / 0.18); transition: transform 240ms var(--ease-out); }
.tabs.up .tab-ind { transform: translateX(100%); }

.form { display: grid; gap: 14px; }
.form.swapin { animation: formIn 220ms var(--ease-out) both; }
@keyframes formIn { from { opacity: 0; transform: translateY(6px); } }
.field { display: grid; gap: 6px; }
.field > label { font-weight: 600; font-size: 0.8125rem; color: var(--ink-2); }
.field input[type=email], .field input[type=password], .field input[type=text] {
  width: 100%; height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid #DCD7CC; background: var(--surface);
  font-size: 16px; color: var(--ink); transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(64 72 201 / 0.14); }
.field input[readonly] { background: transparent; color: var(--ink-2); }
.field input[aria-invalid="true"] { border-color: var(--off); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgb(194 65 12 / 0.14); }
.pw, .at { position: relative; }
.pw input { padding-right: 92px; }
.show {
  position: absolute; right: 4px; top: 4px; height: 44px; min-width: 76px; padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2);
}
.show:active { background: var(--lane-sharp); }
.at span { position: absolute; left: 14px; top: 0; height: 52px; display: grid; place-items: center; color: var(--ink-3); font-weight: 500; pointer-events: none; }
.at input { padding-left: 32px; }
.msg { margin: 0; font-size: 0.8125rem; color: var(--off); min-height: 0; }
.msg:empty { display: none; }
.msg.hint { color: var(--ink-2); }
.msg.hint.bad { color: var(--off); }
.chk-row { margin-top: 2px; }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.chk input {
  appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 7px;
  border: 1.5px solid #B9B4AA; background: var(--surface); display: grid; place-content: center; cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.chk input::before {
  content: ""; width: 12px; height: 12px; background: #fff;
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 37% 70%);
  transform: scale(0.6); opacity: 0; transition: transform 140ms var(--ease-out), opacity 140ms ease;
}
.chk input:checked { background: var(--ink); border-color: var(--ink); }
.chk input:checked::before { transform: none; opacity: 1; }
.chk input[aria-invalid="true"] { border-color: var(--off); }
.chk a { font-weight: 500; }
.err { margin: 0; padding: 11px 14px; border-radius: 12px; background: var(--off-soft); color: #A8380A; font-size: 0.875rem; line-height: 1.45; }
.err:empty { display: none; }
.err .link { color: #A8380A; }
.submit { width: 100%; margin-top: 4px; }
.swap { margin: 4px 0 0; text-align: center; color: var(--ink-2); font-size: 0.9375rem; }
.link { border: 0; background: none; padding: 6px 2px; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; min-height: 44px; }

@media (min-width: 720px) {
  dialog.auth[open] { align-items: center; padding: 24px; }
  .sheet { border-radius: 24px; padding: 28px 32px 32px; max-height: calc(100dvh - 48px); opacity: 0; transform: translateY(14px) scale(0.97); transition: transform 200ms var(--ease-out), opacity 160ms ease; box-shadow: 0 30px 80px -40px rgb(23 22 28 / 0.55); }
  dialog.auth.in .sheet { opacity: 1; transform: none; transition-duration: 260ms, 200ms; }
  .grab { display: none; }
}

/* app instalado: só o cartão de entrar */
html.solo body { display: flex; flex-direction: column; }
html.solo main, html.solo .foot, html.solo .bar-cta, html.solo .skip { display: none !important; }
html.solo .bar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; position: static; }
html.solo dialog.auth { position: static; display: flex; flex: 1; height: auto; min-height: 0; background: transparent; align-items: flex-start; justify-content: center; padding: 8px 16px 32px; overflow: visible; transition: none; }
html.solo .sheet { opacity: 1; transform: none; transition: none; border-radius: 24px; max-height: none; overflow: visible; background: var(--surface); box-shadow: var(--shadow); padding: 24px 20px 24px; }
html.solo .grab, html.solo .x { display: none; }
@media (min-width: 720px) { html.solo dialog.auth { align-items: center; } html.solo .sheet { padding: 32px; } }

/* ---------------------------------------------- termos e privacidade */
.doc { max-width: 720px; padding-top: 24px; padding-bottom: 96px; }
.doc h1 { font: 400 clamp(2.6rem, 8vw, 3.75rem)/1 var(--display); letter-spacing: -0.02em; }
.doc .ver { color: var(--ink-2); font-size: 0.875rem; margin: 14px 0 0; }
.doc .intro { font-size: 1.125rem; color: var(--ink-2); margin: 24px 0 0; }
.doc nav.toc { margin: 32px 0 8px; padding: 20px 22px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.doc nav.toc p { margin: 0 0 8px; font-weight: 600; font-size: 0.875rem; }
.doc nav.toc ol { margin: 0; padding-left: 1.3em; columns: 2 220px; column-gap: 28px; font-size: 0.9375rem; }
.doc nav.toc li { margin: 3px 0; break-inside: avoid; }
.doc nav.toc a { color: var(--ink-2); text-decoration: none; }
.doc nav.toc a:hover { color: var(--accent); text-decoration: underline; }
.doc h2 { font: 400 1.75rem/1.12 var(--display); letter-spacing: -0.01em; margin: 48px 0 0; scroll-margin-top: 88px; }
.doc h3 { font-size: 1rem; margin: 22px 0 0; }
.doc p, .doc li { color: #3D3B47; }
.doc p { margin: 12px 0 0; max-width: 68ch; }
.doc ul { margin: 12px 0 0; padding-left: 1.2em; max-width: 66ch; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .box { margin: 18px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); color: #2F3592; }
.doc .box p { color: inherit; margin: 0; }
.doc .todo { background: #FFF3C4; color: #6B5300; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.doc-foot { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 0.9375rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet, dialog.auth.in .sheet { transform: none !important; opacity: 0; transition: opacity 200ms ease; }
  dialog.auth.in .sheet { opacity: 1; }
  .tab-ind, .qa summary svg.i, .chk input::before { transition: none; }
  .form.swapin { animation: none; }
  .btn:active { transform: none; }
  .p-sol, .p-do, .p-fa, .g-hero, .e-dra, .bubble { animation: none; }
}
@media (prefers-reduced-transparency: reduce) { .bar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-contrast: more) { .btn.line, .field input[type] { border-color: var(--ink-2); } .facts, .ln-priv, .msg.hint { color: var(--ink-2); } }


/* Comunidade */
.chat { margin: 0; background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.chat figcaption { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding: 2px 6px 10px; }
.chat ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chat li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 14px; background: #F6F4EF; }
.chat li.me { background: var(--voice-soft); box-shadow: inset 0 0 0 2px var(--voice); }
.chat img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: #E9E5DC; }
.chat b { font-weight: 700; font-size: 0.875rem; }
.chat p { margin: 2px 0 0; color: var(--ink); font-size: 0.9375rem; }


/* ============ planos ============ */
.plan-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .plan-grid { grid-template-columns: 1fr 1.08fr; gap: 22px; align-items: stretch; } }
.plan { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(22px, 4vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.plan .tag { align-self: flex-start; }
.plan-img { position: absolute; top: 16px; right: 18px; height: 72px; width: auto; }
.plan-free { background: var(--surface); box-shadow: var(--shadow); }
.plan-pro { background: #17161C; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(245 179 1 / 0.55), 0 24px 48px -28px rgb(23 22 28 / 0.6); }
.plan-pro .tag { background: #F5B301; color: #3A2A00; }
.plan .ticks { margin: 0; }
.plan-pro .ticks li { color: #F2F0F7; }
.plan-pro .ticks .i, .plan-free .ticks .i { color: var(--hit); }
.plan-pro .ticks .i { color: #5EE0B6; }
.price { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font: 400 clamp(2.8rem, 8vw, 3.8rem)/1 var(--display); letter-spacing: -0.02em; }
.price span { font-weight: 600; color: #BDB9CC; }
.save { font-style: normal; font-weight: 800; font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; background: #F5B301; color: #3A2A00; align-self: center; margin-left: 4px; }
.bill, .plan-n { margin: 0; font-size: 0.875rem; color: #BDB9CC; }
.bill { margin-top: 6px; min-height: 1.3em; }
.plan-d { margin: 0; font-weight: 700; }
.plan-free .plan-d { color: var(--ink-2); font-weight: 500; }
.plan-btn { width: 100%; margin-top: auto; }
.plan .ticks { margin-bottom: 8px; }
.per { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 16px; background: rgb(255 255 255 / 0.1); }
.per button { position: relative; z-index: 1; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: #E6E3F0; font: 700 0.875rem/1 inherit; font-family: inherit; cursor: pointer; transition: color 200ms ease; }
.per button[aria-checked="true"] { color: var(--ink); }
.per-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 12px; background: #fff; transform: translateX(calc(var(--k, 2) * 100%)); transition: transform 280ms var(--ease-drawer); }
.price-box.swap .price, .price-box.swap .bill { animation: swapPrice 320ms var(--ease-out) both; }
.plan-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 18px; }
.plan-foot p { margin: 0; font-size: 0.875rem; color: var(--ink-3); }
.cur { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.cur button { min-height: 44px; min-width: 56px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 700; font-size: 0.8125rem; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.cur button[aria-checked="true"] { background: var(--ink); color: #fff; }
.pro-b { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #F5B301; color: #3A2A00; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; vertical-align: 1px; }
.plan-pro::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(100deg, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / 0.07) 50%, rgb(255 255 255 / 0) 100%); transform: translateX(-130%); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .cur button:hover:not([aria-checked="true"]) { background: var(--accent-soft); } }

/* ============ movimento leve ============
   Só transform/opacity/scale/translate. Entradas disparam uma vez ao aparecer (.in);
   as que repetem só rodam enquanto a seção está na tela (.act). Sem JS ou com
   "reduzir movimento": tudo parado e visível. */
.fnotes { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.fnotes span { position: absolute; bottom: 34%; left: var(--x); font-size: 1.5rem; line-height: 1; color: #fff; text-shadow: 0 2px 8px rgb(23 22 28 / 0.35); opacity: 0; }
.stage-vila .p { animation: grow 700ms var(--ease-out) both; }
.kar-wipe { display: none; }
html.mv .kar-wipe { display: block; position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 112%; background: linear-gradient(90deg, #2B2836 88%, transparent); }
html.mv .rv.in .kar-wipe { animation: wipe 1.5s var(--ease-out) 350ms both; }
.g-hero, .e-dra { animation: bob 3s ease-in-out infinite paused; }
.e-dra { animation-duration: 3.4s; }
.e-prin { transform-origin: 50% 100%; }
html.mv .act .g-hero, html.mv .act .e-dra { animation-play-state: running; }
html.mv .act .fnotes span { animation: rise 4.2s ease-out var(--t) infinite; }
html.mv .act .p-sol { animation: grow 700ms var(--ease-out) both, bob 3.6s ease-in-out infinite; }
html.mv .act .p-do { animation: grow 700ms var(--ease-out) both, bob 4.2s ease-in-out -1.2s infinite; }
html.mv .act .p-fa { animation: grow 700ms var(--ease-out) both, bob 3.9s ease-in-out -2.1s infinite; }
html.mv .act .e-prin { animation: wave 3.2s ease-in-out infinite; }
html.mv .rv { transition-delay: calc(var(--i, 0) * 90ms); }
html.mv .act .map-hero { animation: sway 5.2s ease-in-out infinite; }
html.mv .act .kar-hero { animation: floaty 2.8s ease-in-out infinite; }
html.mv .rv.in .g-pill { animation: grow 500ms var(--ease-out) 350ms both; transform-origin: 0 0; }
html.mv .act .g-note { animation: floaty 2.4s ease-in-out infinite; }
html.mv .act .g-note.n2 { animation-delay: -0.8s; } html.mv .act .g-note.n3 { animation-delay: -1.6s; }
html.mv .act .g-hero { animation: bob 3s ease-in-out infinite; }
html.mv .act .kar-ly .now { display: inline-block; animation: pulse 1.3s ease-in-out infinite; }
html.mv .act .sk img, html.mv .act .sk .pal { animation: floaty-t 3.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.8s); }
html.mv .act .fr { animation: pulse 2.2s ease-in-out infinite; }
html.mv .act .fr2 { animation-delay: -0.7s; } html.mv .act .fr3 { animation-delay: -1.4s; }
.board li:nth-child(2) { --n: 1; } .board li:nth-child(3) { --n: 2; } .board li:nth-child(4) { --n: 3; }
.chat li:nth-child(2) { --n: 1; } .chat li:nth-child(3) { --n: 2; }
html.mv .rv.in .board li { animation: slidein 520ms var(--ease-out) calc(250ms + var(--n, 0) * 110ms) both; }
html.mv .rv.in .board li.me { animation: slidein 520ms var(--ease-out) calc(250ms + var(--n, 0) * 110ms) both, bump 700ms var(--ease-out) 1.2s both; }
html.mv .rv.in .chat li { animation: msg 480ms var(--ease-out) calc(300ms + var(--n, 0) * 650ms) both; }
html.mv .act .plan-img { animation: floaty-t 3.2s ease-in-out infinite; }
html.mv .act.plan-pro::after { animation: glow 5s ease-in-out infinite; }

@keyframes grow { from { scale: 0.84; } }
@keyframes eq { 50% { transform: scaleY(1); } }
@keyframes rise { 0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.7); } 18% { opacity: 0.9; } 100% { opacity: 0; transform: translate3d(var(--dx), -140px, 0) scale(1.15); } }
@keyframes dot { from { transform: scale(0); } }
@keyframes pulse { 50% { transform: scale(1.12); } }
@keyframes flame { 50% { transform: scale(1.1) rotate(-3deg); } }
@keyframes floaty { 50% { transform: translateY(-9px); } }
@keyframes floaty-t { 50% { translate: 0 -7px; } }
@keyframes sway { 0%, 100% { transform: translateX(-26px); } 50% { transform: translate(18px, -4px); } }
@keyframes wipe { to { transform: translateX(100%); } }
@keyframes slidein { from { opacity: 0; transform: translateX(26px); } }
@keyframes msg { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
@keyframes bump { 50% { transform: scale(1.035); } }
@keyframes wave { 50% { transform: rotate(4deg); } }
@keyframes swapPrice { from { opacity: 0; transform: translateY(8px); } }
@keyframes glow { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(330%); } }
@media (prefers-reduced-motion: reduce) {
  .stage-vila .p, .g-hero, .e-dra, .e-prin, .fnotes span, .kar-wipe, .plan-pro::after, .price-box .price, .price-box .bill { animation: none !important; }
  .fnotes, .kar-wipe { display: none; }
  .per-ind { transition: none; }
}

/* ------------------------------------- esqueci a senha · nova senha · contato (15/11) */
.foot-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-2); font-size: 0.9375rem; font-weight: 600; }
.foot-btn svg.i { width: 1.1em; height: 1.1em; }
@media (hover: hover) and (pointer: fine) { .foot-btn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.link.forgot { justify-self: end; margin: -4px -2px -8px 0; font-size: 0.875rem; }
.form .note { margin: -4px 0 2px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.form .note.small { margin: 0; font-size: 0.8125rem; text-align: center; }
.form .note.acc:empty { display: none; }
.form .note.acc b { color: var(--ink); font-weight: 600; }
.field select, .field textarea {
  width: 100%; border-radius: 14px; border: 1px solid #DCD7CC; background: var(--surface); font-size: 16px; color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.sel { position: relative; }
.sel select { appearance: none; -webkit-appearance: none; height: 52px; padding: 0 44px 0 14px; cursor: pointer; }
.sel svg.i { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }
.field textarea { display: block; min-height: 132px; padding: 12px 14px; line-height: 1.5; resize: vertical; font: inherit; font-size: 16px; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(64 72 201 / 0.14); }
.field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--off); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.sent > :not(.done) { display: none !important; }
.done { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 6px 0 2px; }
.done h3 { font: 400 1.75rem/1.1 var(--display); letter-spacing: -0.01em; outline: none; }
.done p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; max-width: 34ch; }
.done p b { color: var(--ink); font-weight: 600; word-break: break-all; }
.done .t3d { width: 100%; margin-top: 8px; }
.done .swap { margin-top: 2px; }
.done-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.done-ic svg.i { width: 30px; height: 30px; stroke-width: 1.8; }
.done.bad .done-ic { background: var(--off-soft); color: var(--off); }
.done-hero { height: 112px; width: auto; }
html.mv .form.sent .done:not([hidden]) > * { animation: doneIn 340ms var(--ease-out) both; }
html.mv .form.sent .done:not([hidden]) > :nth-child(2) { animation-delay: 50ms; }
html.mv .form.sent .done:not([hidden]) > :nth-child(3) { animation-delay: 90ms; }
html.mv .form.sent .done:not([hidden]) > :nth-child(n+4) { animation-delay: 130ms; }
html.mv .form.sent .done:not([hidden]) > .done-ic, html.mv .form.sent .done:not([hidden]) > .done-hero { animation: donePop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes doneIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes donePop { from { opacity: 0; transform: scale(0.6); } }
@media (prefers-reduced-motion: reduce) { .form.sent .done > * { animation: none !important; } }

/* =====================================================================
   v8 — a página por partes: cada anúncio cai direto na sua (/#karaoke,
   /#ultrastar, /#treino, /#campanha, /#jogos, /#comunidade).
   ===================================================================== */

/* herói: texto · índice das partes · cenário */
.hero { grid-template-areas: "copy" "parts" "stage"; }
.hero-copy { grid-area: copy; }
.hero .parts { grid-area: parts; }
.hero .stage { grid-area: stage; }
.stage-vila { aspect-ratio: 16 / 11; }
@media (min-width: 640px) { .stage-vila { aspect-ratio: 4 / 3.4; } }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "copy stage" "parts parts"; column-gap: 48px; row-gap: 40px; }
  .stage-vila { aspect-ratio: 1 / 0.9; max-height: 560px; }
}

/* índice: uma porta por parte, na cor dela */
.parts-h { font: 700 1rem/1.3 Onest, 'Onest Fb', sans-serif; color: var(--ink-2); margin: 0 0 12px; }
.parts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.px a {
  --pb: #fff; --pt: var(--ink); --pd: var(--ink-2);
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 148px;
  padding: 14px 14px 14px; border-radius: 20px; background: var(--pb); color: var(--pt); text-decoration: none; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 1px rgb(23 22 28 / 0.05), 0 10px 24px -20px rgb(23 22 28 / 0.5);
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease;
}
.px a:active { transform: scale(0.97); }
.px-tx { position: relative; z-index: 2; display: grid; gap: 3px; }
.px b { font: 400 1.6rem/1 var(--display); letter-spacing: -0.01em; }
.px-tx span { font-size: 0.8125rem; line-height: 1.35; color: var(--pd); font-weight: 500; }
.px img { position: absolute; z-index: 1; top: 10px; left: 12px; height: 62px; width: auto; filter: drop-shadow(0 4px 4px rgb(23 22 28 / 0.22)); }
.px-go { position: absolute; z-index: 2; top: 14px; right: 14px; color: var(--pd); transition: transform 200ms var(--ease-out); }
.px-kar { grid-column: 1 / -1; }
.px-kar a { --pb: #17161C; --pt: #fff; --pd: #CFCBDD; min-height: 128px; padding-right: 128px; }
.px-kar img { top: auto; left: auto; right: 20px; bottom: -6px; height: 128px; }
.px-tre a { --pb: #FFEFDD; --pd: #7A3E05; }
.px-camp a { --pb: #DFF3EA; --pd: #0A5C40; }
.px-jog a { --pb: #DCEFFA; --pd: #0B4F75; }
.px-comm a { --pb: #ECEBF5; --pd: #353BA6; }
.px-comm { grid-column: 1 / -1; }
.px-comm a { min-height: 104px; padding-right: 96px; }
.px-comm img { top: auto; left: auto; right: 18px; bottom: -8px; height: 100px; }
@media (hover: hover) and (pointer: fine) {
  .px a:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgb(23 22 28 / 0.06), 0 18px 30px -20px rgb(23 22 28 / 0.55); }
  .px a:hover .px-go { transform: translateX(3px); }
  .px a:active { transform: scale(0.97); }
}
@media (min-width: 640px) {
  .parts ul { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .px-kar { grid-column: span 6; }
  .px-tre, .px-camp, .px-jog { grid-column: span 2; }
  .px-comm { grid-column: span 6; }
}
@media (min-width: 960px) {
  .parts ul { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); }
  .px-kar, .px-tre, .px-camp, .px-jog, .px-comm { grid-column: auto; }
  .px a, .px-kar a, .px-comm a { min-height: 176px; padding-right: 14px; }
  .px-kar a { padding-right: 132px; }
  .px-comm img { top: 10px; left: 12px; right: auto; bottom: auto; height: 62px; }
}
/* chegada: as portas entram em fila uma vez (CSS puro, sem esperar o JS) */
@media (prefers-reduced-motion: no-preference) {
  html.js .parts li { animation: tileIn 520ms var(--ease-out) both; }
  html.js .parts li:nth-child(2) { animation-delay: 60ms; }
  html.js .parts li:nth-child(3) { animation-delay: 120ms; }
  html.js .parts li:nth-child(4) { animation-delay: 180ms; }
  html.js .parts li:nth-child(5) { animation-delay: 240ms; }
}
@keyframes tileIn { from { opacity: 0; transform: translateY(10px); } }

/* --------------------------------------------------------- partes */
.part { --em: var(--voice); --pl: var(--ink-2); padding-block: clamp(56px, 9vw, 112px); }
.part h2 em { font-style: italic; color: var(--em); }
.part-lead { margin: 16px 0 0; font-size: clamp(1.0625rem, 2vw, 1.1875rem); color: var(--pl); max-width: 52ch; }
.part-note { margin: 18px 0 0; color: var(--pl); font-size: 0.9375rem; max-width: 52ch; }
.part-top { display: grid; gap: 32px; align-items: center; }
.part-tx .ticks { margin-top: 22px; }
@media (min-width: 900px) {
  .part-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .part-top.flip > .part-tx { order: 2; }
}
.part-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: clamp(32px, 5vw, 48px); padding-top: 24px; border-top: 1px solid rgb(23 22 28 / 0.1); }
.free { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; max-width: 60ch; }
.free .i { color: var(--em); }

/* karaokê: a faixa escura, a mais forte da página */
.p-kar { --em: #FF7FAA; --pl: #CFCBDD; background: #17161C; color: #fff; }
.p-kar h2, .p-kar h3 { color: #fff; }
.p-kar .ticks li { color: #F2F0F7; }
.p-kar .ticks .i { color: #5EE0B6; }
.p-kar .part-foot { border-top-color: rgb(255 255 255 / 0.14); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; }
.steps .i { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: rgb(255 255 255 / 0.08); color: #FF9DBF; stroke-width: 1.8; }
.steps b { font-weight: 700; font-size: 1.0625rem; }
.steps span { color: #CFCBDD; font-size: 0.9375rem; line-height: 1.4; }
.kar { position: relative; overflow: hidden; }
.chip.key { font-variant-numeric: tabular-nums; }
.chip.qr { display: inline-flex; align-items: center; gap: 6px; }
.chip.qr .i { width: 1.05em; height: 1.05em; }
.feat3 { display: grid; gap: 28px; margin-top: clamp(40px, 6vw, 64px); }
.fg { padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.14); }
.fg h3 { font: 400 1.75rem/1.05 var(--display); letter-spacing: -0.01em; }
.fg .ticks { margin-top: 14px; }
@media (min-width: 820px) { .feat3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

/* UltraStar: o bloco que os grupos de UltraStar procuram */
.us { display: grid; gap: 28px; align-items: center; margin-top: clamp(40px, 6vw, 64px); padding: clamp(22px, 4vw, 40px); border-radius: 28px; background: #221F2B; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
.us h3 { font: 400 clamp(1.9rem, 4.4vw, 2.6rem)/1.02 var(--display); letter-spacing: -0.015em; max-width: 18ch; }
.us-tx > p { margin: 14px 0 0; color: #CFCBDD; max-width: 54ch; }
.us-file { margin: 0; min-width: 0; border-radius: 18px; background: #0F0E13; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 24px 40px -28px rgb(0 0 0 / 0.8); overflow: hidden; }
.us-file figcaption { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid rgb(255 255 255 / 0.08); font-weight: 700; font-size: 0.875rem; color: #F2F0F7; }
.us-file figcaption .i { color: #FF9DBF; }
.us-mp3 { margin-left: auto; font-weight: 600; color: #A9A5BA; font-size: 0.8125rem; }
.us-file pre { margin: 0; padding: 14px 16px 18px; overflow-x: auto; font: 500 0.8125rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #DAD7E4; tab-size: 2; }
.us-file .k { color: #FF9DBF; }
.us-file .n { color: #8C93F0; }
@media (min-width: 900px) { .us { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; } }

/* treino: a parte séria — papel limpo, sem herói pulando */
.p-tre { --em: #B4580A; background: var(--surface); }
.p-tre .ticks .i { color: #C86A08; }
.plan-card { margin: 0; padding: 18px; border-radius: 24px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); max-width: 520px; width: 100%; justify-self: center; }
.plan-card figcaption { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; }
.plan-card figcaption b { font: 400 1.6rem/1 var(--display); }
.plan-card figcaption > span:not(.st-mini) { font-weight: 700; color: var(--ink-2); font-size: 0.875rem; padding: 3px 9px; border-radius: 999px; background: #FFE6CC; color: #7A3E05; }
.st-mini { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.st-mini img { height: 28px; width: auto; }
.st-mini b { font: 400 1.5rem/1 var(--display); color: #B4580A; }
.plan-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.plan-card li { position: relative; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; border-radius: 14px; background: var(--surface); overflow: hidden; }
.plan-card li > span { font-weight: 600; }
.plan-card li em { font-style: normal; font-weight: 700; font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.plan-card .g { width: 24px; height: 24px; fill: none; stroke: #9A6A3A; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plan-card li.ok > span { color: var(--ink-2); }
.plan-card li.ok .g { stroke: var(--hit); }
.plan-card li.ok em { color: var(--hit); }
.plan-card li.ok em::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan-card li.now { background: #FFF1E2; box-shadow: inset 0 0 0 2px #F28C1E; }
.plan-card li.now .g { stroke: #C86A08; }
.plan-card li.now em { color: #7A3E05; }
.bar-p { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #F28C1E; transform-origin: 0 50%; transform: scaleX(0.45); }
.plan-more { margin: 10px 6px 2px; font-size: 0.875rem; color: var(--ink-2); font-weight: 500; }

/* campanha */
.p-camp { --em: #0A6B4B; --pl: #2F5546; background: #F1FAF6; }
.p-camp .free .i { color: #0A6B4B; }
.p-camp .part-foot { border-top-color: rgb(10 107 75 / 0.16); }
.p-camp .c-art.map { min-height: 340px; border-radius: 28px; background: #DDEFE6; box-shadow: var(--shadow); }
@media (min-width: 900px) { .p-camp .c-art.map { min-height: 460px; } }
.shop { margin-top: clamp(48px, 7vw, 80px); display: grid; gap: 24px; }
.shop-tx h3 { font: 400 clamp(1.9rem, 4.4vw, 2.6rem)/1.02 var(--display); letter-spacing: -0.015em; }
.shop-tx p { margin: 10px 0 0; color: var(--pl); max-width: 52ch; }

/* jogos */
.p-jog { --em: #0B5A86; --pl: #284B60; background: #EEF7FC; }
.p-jog .free .i { color: #0B5A86; }
.p-jog .part-foot { border-top-color: rgb(11 90 134 / 0.16); }
.p-jog .c-art.game { min-height: 300px; border-radius: 28px; box-shadow: var(--shadow); }
.games { list-style: none; margin: clamp(32px, 5vw, 48px) 0 0; padding: 0; display: grid; gap: 10px; }
.games li { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px rgb(11 90 134 / 0.08); }
.games img { width: 64px; height: 64px; object-fit: contain; object-position: 50% 100%; border-radius: 14px; background: #DCEFFA; padding: 4px 4px 0; }
.games b { display: block; font-weight: 700; }
.games span { display: block; color: var(--ink-2); font-size: 0.875rem; line-height: 1.4; margin-top: 2px; }
.free-b { font-style: normal; align-self: start; margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: var(--hit-soft); color: #08715A; font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }
@media (min-width: 640px) { .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1000px) { .games { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* comunidade e rankings */
.p-comm { --em: var(--accent); --pl: #45496E; background: #F1F0F8; }
.p-comm .free .i { color: var(--accent); }
.p-comm .part-foot { border-top-color: rgb(64 72 201 / 0.16); }
.solo-tx { max-width: 680px; }
.comm-grid { display: grid; gap: 20px; margin-top: clamp(28px, 5vw, 44px); align-items: start; }
.rank-col { display: grid; gap: 14px; }
.rank-col .part-note { margin: 0 6px; }
@media (min-width: 860px) { .comm-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* plano Pro: detalhe do pacote de músicas */
.plan-x { margin: 0; font-size: 0.875rem; line-height: 1.5; color: #BDB9CC; }
.plan-x span { color: #fff; font-weight: 700; }

/* treino: ao entrar, a lista se monta e a barra do exercício atual anda */
html.mv .rv.in .plan-card li { animation: slidein 480ms var(--ease-out) calc(200ms + var(--n, 0) * 70ms) both; }
html.mv .rv.in .bar-p { animation: barFill 1.8s var(--ease-out) 900ms both; }
@keyframes barFill { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .parts li, .plan-card li, .bar-p { animation: none !important; }
  .px a, .px-go { transition: none; }
}
