/* Layout: palco escuro com luz de show; a nota é o "placar" do jogo. */
:root {
  color-scheme: dark;
  --bg: #0d0a1f; --bg2: #151030; --card: #1a1438; --line: #2e2656; --text: #f5f2ff; --muted: #a9a2cc;
  --pink: #ff2e88; --orange: #ff7a1a; --yellow: #ffd43b; --cyan: #3ee6d6;
  --good: #34d399; --warn: #fbbf24; --bad: #f87171;
  --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --r: 18px;
  --grad: linear-gradient(90deg, var(--pink), var(--orange) 55%, var(--yellow));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: 22px; } h3 { font-size: 17px; }
a { color: var(--yellow); }
[hidden] { display: none !important; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); } .small { font-size: 13px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font: 700 11px var(--f-body); color: var(--orange); margin: 0 0 10px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* topo */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(13, 10, 31, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 16px var(--f-display); white-space: nowrap; }
.logo b { background: var(--grad); color: #1a0b12; font-size: 11px; padding: 3px 7px; border-radius: 6px; margin-left: 2px; vertical-align: 2px; }
.hud { display: flex; align-items: center; gap: 8px; }
.credits { font: 700 12px var(--f-mono); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); white-space: nowrap; }
.credits.zero { border-color: var(--pink); color: var(--pink); }
.credits.pro { border-color: var(--yellow); color: var(--yellow); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; color: #1a0b12; font: 800 15px var(--f-body); padding: 12px 20px; border-radius: 14px; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(255, 46, 136, .6); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(255, 122, 26, .7); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { width: 100%; padding: 16px 20px; font-size: 17px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--orange); box-shadow: none; }
.btn-go { font-family: var(--f-display); font-weight: 700; letter-spacing: .01em; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 6px 0; }

/* hero */
.hero { padding-block: 48px 20px; background: radial-gradient(700px 320px at 15% -10%, rgba(255, 46, 136, .28), transparent 70%), radial-gradient(600px 300px at 95% 0%, rgba(255, 122, 26, .18), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); font-weight: 900; }
.lead { font-size: 17px; color: #ddd7f5; max-width: 60ch; }
.hero-cta { display: grid; gap: 8px; max-width: 480px; justify-items: start; margin-top: 22px; }
.hero-levels { display: grid; gap: 6px; }
.lvl { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-size: 14px; }
.lvl span { font: 700 11px var(--f-mono); color: var(--muted); text-transform: uppercase; }
.lvl b { font-family: var(--f-display); font-weight: 700; font-size: 14px; }
.lvl i { font: 700 12px var(--f-mono); font-style: normal; color: var(--muted); }
.lvl.l5 { border-color: var(--yellow); background: linear-gradient(90deg, rgba(255, 212, 59, .16), transparent); margin-right: 0; }
.lvl.l4 { margin-right: 6%; } .lvl.l3 { margin-right: 12%; } .lvl.l2 { margin-right: 18%; } .lvl.l1 { margin-right: 24%; opacity: .75; }

/* cards e formulário */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-block: 22px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.step { font: 700 12px var(--f-mono); color: var(--muted); }
label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 14px; }
input, select, textarea { width: 100%; margin-top: 6px; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px 14px; font: 15px var(--f-body); }
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pink); border-color: transparent; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { display: block; font: 500 12px var(--f-mono); color: var(--muted); margin-top: 4px; text-align: right; }
.upload { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; align-items: start; }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 16px; display: flex; gap: 14px; align-items: center; cursor: pointer; font-weight: 400; transition: .2s; margin: 0; }
.drop:hover, .drop.over { border-color: var(--pink); background: rgba(255, 46, 136, .06); }
.drop.has { border-style: solid; border-color: var(--good); }
.drop-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--grad); color: #1a0b12; flex: none; }
.drop small { color: var(--muted); }
.err { color: var(--bad); font-size: 14px; min-height: 1em; margin: 6px 0; }
.lock-note { display: flex; gap: 8px; align-items: flex-start; justify-content: center; font-size: 12.5px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.lock-note svg { flex: none; margin-top: 3px; color: var(--good); }
.trans-note { display: block; font-weight: 500; font-size: 13.5px; margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .45); }
#demoBar { background: rgba(62, 230, 214, .08); border: 1px solid rgba(62, 230, 214, .4); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* carregando */
.loading { text-align: center; }
.eq { display: flex; gap: 6px; justify-content: center; align-items: flex-end; height: 56px; margin-bottom: 14px; }
.eq i { width: 9px; border-radius: 5px; background: var(--grad); animation: eq 1s ease-in-out infinite; height: 20%; }
.eq i:nth-child(2) { animation-delay: .1s } .eq i:nth-child(3) { animation-delay: .25s } .eq i:nth-child(4) { animation-delay: .05s } .eq i:nth-child(5) { animation-delay: .3s } .eq i:nth-child(6) { animation-delay: .15s } .eq i:nth-child(7) { animation-delay: .35s }
@keyframes eq { 50% { height: 100%; } }
.pbar { height: 12px; background: var(--bg2); border-radius: 999px; overflow: hidden; margin: 16px auto 8px; max-width: 520px; }
#pfill { height: 100%; width: 0; background: var(--grad); transition: width .3s; }

/* modais */
.modal { position: fixed; inset: 0; background: rgba(5, 3, 14, .78); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal-box { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; width: 100%; max-width: 460px; max-height: 92vh; overflow: auto; }
.modal-box h3 { font-size: 21px; padding-right: 24px; }
.x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg2); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.tab { background: none; border: 0; color: var(--muted); font: 700 14px var(--f-body); padding: 9px; border-radius: 9px; cursor: pointer; }
.tab.on { background: var(--card); color: var(--text); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.check input { width: auto; margin-top: 3px; flex: none; }
.pay { text-align: center; display: grid; gap: 12px; }
.price b { font: 900 44px var(--f-display); } .price span { color: var(--muted); }
.perks { list-style: none; padding: 0; margin: 0; text-align: left; display: grid; gap: 8px; }
.perks li { padding-left: 26px; position: relative; font-size: 14.5px; }
.perks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--grad); }

/* resultados: placar */
.board { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; background: radial-gradient(500px 220px at 0% 0%, rgba(255, 46, 136, .18), transparent 70%), var(--card); }
.gauge { width: 240px; height: 240px; position: relative; margin: 0 auto; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 900 68px var(--f-display); font-variant-numeric: tabular-nums; }
.gauge .num small { display: block; font: 700 12px var(--f-mono); color: var(--muted); margin-top: -6px; }
.level-tag { display: inline-flex; gap: 8px; align-items: center; font: 700 12px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; margin-bottom: 10px; }
.level-name { font: 900 clamp(26px, 4vw, 38px) var(--f-display); margin: 0 0 6px; }
.xp { margin: 14px 0 6px; height: 14px; border-radius: 999px; background: var(--bg2); overflow: hidden; border: 1px solid var(--line); }
.xp > div { height: 100%; background: var(--grad); width: 0; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.xp-label { font: 600 12.5px var(--f-mono); color: var(--muted); }
.split { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag { font: 600 12.5px var(--f-mono); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; background: var(--bg2); }
.tag b { color: var(--yellow); }

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge { border: 1px solid var(--line); background: var(--bg2); border-radius: 14px; padding: 14px 12px; text-align: center; min-width: 0; }
.badge .ic { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: #241c4a; color: var(--muted); font: 900 18px var(--f-display); }
.badge b { display: block; font: 700 13px var(--f-display); margin-bottom: 4px; }
.badge span { font-size: 12px; color: var(--muted); display: block; line-height: 1.4; }
.badge.on { border-color: rgba(255, 212, 59, .6); background: linear-gradient(180deg, rgba(255, 212, 59, .12), var(--bg2)); }
.badge.on .ic { background: var(--grad); color: #1a0b12; box-shadow: 0 0 24px rgba(255, 122, 26, .45); }
.badge.off { opacity: .6; }
.ach-count { font: 700 13px var(--f-mono); color: var(--yellow); }

.bars .row { display: grid; grid-template-columns: 240px 1fr 44px; gap: 12px; align-items: center; margin: 9px 0; font-size: 14px; }
.bars .track { height: 10px; background: var(--bg2); border-radius: 999px; overflow: hidden; }
.bars .fill { height: 100%; border-radius: 999px; }
.bars .val { text-align: right; font: 700 14px var(--f-mono); }
.bars .grp { color: var(--muted); font-size: 11px; font-family: var(--f-mono); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cols > .card { margin-block: 0; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 12px 10px 36px; position: relative; border-radius: 12px; background: var(--bg2); margin-bottom: 8px; font-size: 14.5px; }
.list li::before { position: absolute; left: 13px; top: 9px; font: 900 15px var(--f-display); }
.list.good li::before { content: "+"; color: var(--good); }
.list.bad li::before { content: "!"; color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; font-size: 14px; }
.chip b { color: var(--orange); font-family: var(--f-mono); }
.chip.on { border-color: var(--pink); background: rgba(255, 46, 136, .12); }
.chip.off { opacity: .5; }
.chorus { border-left: 3px solid var(--pink); padding: 8px 14px; font-style: italic; color: #e9e4ff; background: var(--bg2); border-radius: 0 12px 12px 0; }
.quote { font: 700 18px var(--f-display); margin: 8px 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.kpi .k { font: 700 11px var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi .v { font: 900 24px var(--f-display); font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--muted); }
.chart-wrap { overflow-x: auto; }
.chart { display: grid; grid-template-columns: repeat(8, minmax(52px, 1fr)); gap: 4px; }
.chart div { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; text-align: center; padding: 6px 2px; font: 700 14px var(--f-mono); }
.chart .t { font-size: 10px; color: var(--muted); display: block; font-weight: 500; }
.energy { width: 100%; height: 90px; display: block; }
.hit { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.hit h4 { margin: 0 0 4px; font-size: 15px; }
.hit .sim { float: right; font: 900 16px var(--f-display); color: var(--orange); }
.hit p { margin: 4px 0; font-size: 14px; }
.ok { color: var(--good); } .no { color: var(--bad); }
.action { display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin-bottom: 12px; }
.action .n { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #1a0b12; display: grid; place-items: center; font: 900 14px var(--f-display); }
.cta { background: linear-gradient(135deg, rgba(255, 46, 136, .25), rgba(255, 122, 26, .15)); border-color: var(--pink); }
.actions-bar { display: flex; gap: 12px; flex-wrap: wrap; }
.actions-bar .btn { flex: 1; min-width: 220px; }
.upsell { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-color: var(--yellow); }

/* painel */
.panel-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font: 700 11px var(--f-mono); color: var(--muted); text-transform: uppercase; }
td.n { font: 700 14px var(--f-mono); font-variant-numeric: tabular-nums; }

/* cookies e rodapé */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bg2); border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); font-size: 13.5px; }
.cookie p { margin: 0; max-width: 70ch; }
.cookie div { display: flex; gap: 8px; }
.foot { border-top: 1px solid var(--line); padding-block: 30px 60px; margin-top: 40px; font-size: 14px; }
.seals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.seal { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--bg2); min-width: 0; }
.seal b { display: block; font: 700 13px var(--f-display); margin-bottom: 6px; }
.seal span { font-size: 12.5px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 20px 0 8px; align-items: center; }
.foot-links a { color: var(--text); font-size: 13.5px; }
.foot-links .linkbtn { font-size: 13.5px; }

/* confete */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; }

@media (max-width: 820px) {
  .hero-in, .board, .cols, .grid2, .upload { grid-template-columns: 1fr; }
  .seals { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .bars .row { grid-template-columns: 1fr 44px; }
  .bars .track { grid-column: 1 / -1; grid-row: 2; }
  .stats { grid-template-columns: 1fr; }
  .lvl { margin-right: 0 !important; }
}
@media (max-width: 480px) {
  .seals { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .logo span { font-size: 13px; }
  .gauge { width: 200px; height: 200px; } .gauge .num { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* relatórios salvos */
.opt { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.mono { font-family: var(--f-mono); letter-spacing: .02em; }
.pdf-box { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(120deg, rgba(255, 46, 136, .14), rgba(255, 122, 26, .08) 60%, transparent), var(--card); }
.pdf-box > div:first-child { flex: 1 1 280px; min-width: 0; }
.songs { display: grid; gap: 12px; }
.song { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.song-score { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 800 20px var(--f-display); border: 3px solid var(--c); color: var(--text); }
.song-info { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.song-info b { font-size: 16px; overflow-wrap: anywhere; }
.song-info span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.song-info .song-lvl { font: 700 11px var(--f-mono); text-transform: uppercase; margin-top: 2px; }
.song-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 330px; }
@media (max-width: 720px) {
  .song { grid-template-columns: 48px 1fr; }
  .song-score { width: 48px; height: 48px; font-size: 17px; }
  .song-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
}

/* planos */
.plans { margin-block: 40px 22px; text-align: center; }
.plans h2 { font: 800 clamp(22px, 3.2vw, 30px)/1.2 var(--f-display); margin: 6px auto 24px; max-width: 680px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 860px; margin: 0 auto; text-align: left; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; min-width: 0; }
.plan-pro { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(120deg, var(--pink), var(--orange), var(--yellow)) border-box; box-shadow: 0 18px 60px -20px rgba(255, 46, 136, .45); }
.plan-flag { position: absolute; top: -13px; right: 20px; font: 700 11px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: #1a0b12; background: var(--yellow); padding: 5px 10px; border-radius: 999px; }
.plan-name { font: 700 13px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.plan-price { margin: 6px 0 14px; } .plan-price b { font: 900 40px var(--f-display); } .plan-price span { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; flex: 1; }
.plan li { padding-left: 26px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--yellow); font-weight: 800; }
.plan .btn { width: 100%; text-align: center; justify-content: center; }
.plans-note { margin-top: 16px; }
@media (max-width: 720px) { .plan-grid { grid-template-columns: 1fr; } }

/* notificações */
.toast { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; gap: 12px; align-items: center; width: min(360px, calc(100vw - 32px)); padding: 12px 36px 12px 12px; background: rgba(26, 20, 56, .97); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .35s; }
.toast.in { opacity: 1; transform: none; }
.toast-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--bg2); }
.toast-ic.top { background: linear-gradient(135deg, rgba(255, 46, 136, .35), rgba(255, 212, 59, .35)); }
.toast-ic.good { background: rgba(52, 211, 153, .18); } .toast-ic.bad { background: rgba(248, 113, 113, .16); }
.toast-body p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.toast-body .muted { font-size: 12px; white-space: nowrap; }
.toast-n { font-family: var(--f-display); color: var(--yellow); }
.toast-body a { display: inline-block; margin-top: 4px; font: 700 12.5px var(--f-body); color: var(--orange); }
.toast-x { position: absolute; top: 4px; right: 6px; background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; padding: 4px 6px; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

.cancel-line { margin: 14px 0 0; text-align: right; } .cancel-line .linkbtn { font-size: 12px; opacity: .7; }

/* velocímetro do topo */
.speedo { position: relative; max-width: 440px; width: 100%; justify-self: center; padding: 18px 26px 16px; border-radius: 26px; background: radial-gradient(120% 90% at 50% 100%, rgba(255, 46, 136, .16), transparent 60%), var(--card); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(255, 46, 136, .5); }
.speedo > svg { display: block; width: 100%; height: auto; overflow: visible; }
.sg-track { stroke: var(--bg2); }
.sg-zones path { opacity: .9; }
.sg-ticks line { stroke: var(--muted); stroke-width: 2; opacity: .6; }
.sg-ticks text { fill: var(--muted); font: 700 11px var(--f-mono); text-anchor: middle; }
.sg-knob { fill: #fff; filter: drop-shadow(0 0 8px rgba(255, 212, 59, .9)); }
.sg-knob-in { fill: var(--pink); }
.speedo-center { position: absolute; left: 0; right: 0; top: 30%; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.speedo-face { position: relative; width: 64px; height: 64px; display: grid; place-items: center; font-size: 46px; line-height: 1; }
.speedo-face.pop span { animation: facePop .35s ease-out; }
@keyframes facePop { 0% { transform: scale(.6); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
.rocket { position: absolute; inset: -6px; width: 76px; height: 76px; opacity: 0; transform: translateY(18px) scale(.6); transition: opacity .25s, transform .35s cubic-bezier(.2, 1.6, .4, 1); filter: drop-shadow(0 6px 14px rgba(255, 46, 136, .55)); }
.rocket-flame { transform-origin: 32px 46px; animation: flame .18s ease-in-out infinite alternate; }
@keyframes flame { from { transform: scaleY(.75); } to { transform: scaleY(1.15); } }
.speedo.launch .speedo-face span { opacity: 0; }
.speedo.launch .rocket { opacity: 1; transform: none; animation: rocketBob 1.1s ease-in-out .35s infinite; }
@keyframes rocketBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.speedo-num { display: flex; align-items: baseline; gap: 2px; margin-top: 2px; }
.speedo-num b { font: 900 clamp(40px, 6vw, 54px)/1 var(--f-display); font-variant-numeric: tabular-nums; transition: color .3s; }
.speedo-num small { font: 700 13px var(--f-mono); color: var(--muted); }
.speedo-lvl { font: 700 12px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; transition: color .3s; }
.speedo-levels { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 10px; }
.speedo-levels span { font: 700 9.5px var(--f-mono); text-transform: uppercase; color: var(--muted); padding: 4px 7px; border-radius: 999px; border: 1px solid var(--line); transition: .25s; }
.speedo-levels span.on { color: #1a0b12; background: var(--grad); border-color: transparent; transform: scale(1.06); }
.speedo.launch::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 2px rgba(255, 212, 59, .55), 0 0 60px rgba(255, 212, 59, .25); animation: glowIn .4s ease-out; }
@keyframes glowIn { from { opacity: 0; } }

/* selo de análises grátis */
.gift { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 18px; padding: 9px 16px 9px 10px; border-radius: 999px; text-decoration: none; color: var(--text); font-size: 15px; background: linear-gradient(90deg, rgba(255, 46, 136, .22), rgba(255, 212, 59, .18)); border: 1.5px solid rgba(255, 212, 59, .7); animation: giftPulse 1.6s ease-in-out infinite; }
.gift b { color: var(--yellow); }
.gift-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); font-size: 17px; animation: giftWiggle 1.6s ease-in-out infinite; }
.gift.calm { animation: none; border-color: var(--line); } .gift.calm .gift-ic { animation: none; }
@keyframes giftPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 212, 59, .55); transform: scale(1); } 50% { box-shadow: 0 0 0 10px rgba(255, 212, 59, 0); transform: scale(1.04); } }
@keyframes giftWiggle { 0%, 100% { rotate: 0deg; } 20% { rotate: -14deg; } 40% { rotate: 12deg; } 60% { rotate: 0deg; } }
@media (prefers-reduced-motion: reduce) { .gift, .gift-ic, .rocket-flame, .speedo.launch .rocket { animation: none !important; } }

/* afinador */
.tuner-top { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.tuner-top label { flex: 1 1 260px; margin: 0; }
.tuner-strings { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; justify-content: center; }
.ts { min-width: 54px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: 800 18px var(--f-display); cursor: pointer; display: grid; justify-items: center; line-height: 1.1; transition: .15s; }
.ts small { font: 700 10px var(--f-mono); color: var(--muted); }
.ts.auto { font: 700 13px var(--f-mono); align-content: center; }
.ts.lock { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(255, 46, 136, .35); }
.ts.hit { background: linear-gradient(135deg, rgba(255, 46, 136, .3), rgba(255, 212, 59, .25)); }
.tuner-dial { position: relative; max-width: 380px; margin: 0 auto; }
.tuner-dial svg { display: block; width: 100%; height: auto; }
.td-track { fill: none; stroke: var(--bg2); stroke-width: 16; stroke-linecap: round; }
.td-ok { fill: none; stroke: #34d399; stroke-width: 16; }
.td-tick { stroke: var(--muted); stroke-width: 2; }
.tuner-dial text { fill: var(--muted); font: 700 10px var(--f-mono); text-anchor: middle; }
.td-needle { stroke: var(--orange); stroke-width: 4; stroke-linecap: round; }
.tuner.ok .td-hub { stroke: none; }
.td-hub { fill: var(--orange); }
#tnNeedle { transition: transform .12s linear; }
.tuner-read { text-align: center; margin-top: -6px; }
.tuner-read b { display: block; font: 900 46px/1 var(--f-display); }
.tuner-read span { font: 600 12px var(--f-mono); color: var(--muted); }
.tuner-status { text-align: center; font-weight: 700; margin: 10px 0 0; }
.tuner.ok .td-needle, .tuner.ok .td-hub { stroke: #34d399; fill: #34d399; }
.tuner.ok .tuner-read b, .tuner.ok .tuner-status { color: #34d399; }
.tuner-lock { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 16px; border-radius: 14px; background: var(--bg2); border: 1px dashed var(--line); }
.tuner-lock > div:nth-child(2) { flex: 1 1 220px; }
.tuner-lock-ic { font-size: 34px; filter: grayscale(.3); }

/* botões de ação principais: fortes, letra branca, pulsando */
.btn-hot { position: relative; overflow: hidden; isolation: isolate; color: #fff; font: 900 17px/1.2 var(--f-display); letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 2px 6px rgba(80, 0, 30, .55); background: linear-gradient(100deg, #ff1f7a 0%, #ff3d5a 45%, #ff6a1a 100%); border: 2px solid rgba(255, 212, 59, .85); box-shadow: 0 12px 34px -8px rgba(255, 46, 136, .75), inset 0 1px 0 rgba(255, 255, 255, .35); animation: hotPulse 1.8s ease-in-out infinite; }
.btn-lg.btn-hot { padding: 18px 22px; font-size: clamp(15px, 2.2vw, 18px); }
.btn-sm.btn-hot { font-size: 12.5px; border-width: 1.5px; }
.btn-hot::after { content: ""; position: absolute; inset: -2px; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); animation: hotShine 2.8s ease-in-out infinite; }
.btn-hot:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 44px -8px rgba(255, 46, 136, .9), 0 0 0 4px rgba(255, 212, 59, .25); }
@keyframes hotPulse { 0%, 100% { box-shadow: 0 12px 34px -8px rgba(255, 46, 136, .75), 0 0 0 0 rgba(255, 212, 59, .55); } 50% { box-shadow: 0 12px 44px -4px rgba(255, 46, 136, 1), 0 0 0 10px rgba(255, 212, 59, 0); filter: brightness(1.12); } }
@keyframes hotShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .btn-hot, .btn-hot::after { animation: none; } }
.btn-hot { text-align: center; }
.hero-cta .btn-hot { width: auto; max-width: 100%; padding-inline: 30px; white-space: nowrap; }
@media (max-width: 520px) { .hero-cta { justify-items: stretch; } .hero-cta .btn-hot { width: 100%; white-space: normal; padding-inline: 16px; } }

/* afinador gamificado */
.tuner { position: relative; }
.tn-hud { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 46, 136, .14), rgba(255, 212, 59, .08)); border: 1px solid var(--line); }
.tn-lvl { display: flex; gap: 12px; align-items: center; flex: 1 1 240px; }
.tn-lvl > div { flex: 1; min-width: 0; }
.tn-lvl b { font: 800 15px var(--f-display); }
.tn-lvl small { font: 600 11px var(--f-mono); color: var(--muted); }
.tn-lvl-n { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #1a0b12; font: 900 13px var(--f-display); box-shadow: 0 0 18px rgba(255, 46, 136, .45); }
.tn-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tn-chips span { font: 700 12px var(--f-mono); padding: 6px 10px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); white-space: nowrap; }
.tn-bar { height: 8px; border-radius: 999px; background: var(--bg2); overflow: hidden; margin: 5px 0 3px; }
.tn-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .35s ease; }
.tn-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 212, 59, .1); border: 1px dashed rgba(255, 212, 59, .55); font-size: 13px; font-weight: 700; }
.tn-mission { margin-top: 14px; }
.tn-mission-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.tn-mission-top span { font: 700 14px var(--f-mono); color: var(--yellow); }
.ts { position: relative; isolation: isolate; }
.ts::before { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 14px; background: conic-gradient(#34d399 calc(var(--p, 0) * 1%), transparent 0); transition: background .1s; }
.ts::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 12px; background: var(--bg2); }
.ts.done { color: #062b1e; border-color: #34d399; animation: tsDone .45s ease-out; }
.ts.done::after { background: #34d399; }
.ts.done small { color: #0b3d2b; }
@keyframes tsDone { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }
.tn-pop { position: absolute; left: 50%; top: 34%; transform: translate(-50%, 0); font: 900 20px var(--f-display); color: var(--yellow); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); white-space: nowrap; opacity: 0; pointer-events: none; }
.tn-pop.go { animation: tnPop 1.4s ease-out; }
@keyframes tnPop { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -34px) scale(1); } }
.tn-prec { display: flex; align-items: center; gap: 10px; max-width: 380px; margin: 10px auto 0; font: 700 11px var(--f-mono); color: var(--muted); text-transform: uppercase; }
.tn-prec .tn-bar { flex: 1; margin: 0; }
.tn-prec b { min-width: 42px; text-align: right; color: var(--text); font-size: 13px; }
.tuner.ok .tn-prec i { background: #34d399; }
.tn-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.tn-badge { display: inline-flex; align-items: center; gap: 6px; font: 700 11px var(--f-mono); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); opacity: .55; filter: grayscale(1); }
.tn-badge i { font-style: normal; font-size: 14px; }
.tn-badge.on { opacity: 1; filter: none; color: var(--text); border-color: rgba(255, 212, 59, .7); background: rgba(255, 212, 59, .1); }
.tn-win { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 16px; border-radius: 16px; background: rgba(10, 6, 24, .86); backdrop-filter: blur(4px); }
.tn-win[hidden] { display: none; }
.tn-win-in { text-align: center; max-width: 360px; animation: facePop .4s ease-out; }
.tn-win h3 { font: 900 26px var(--f-display); margin: 6px 0; }
.tn-win p { margin: 4px 0; }
.tn-stars { font-size: 40px; color: var(--yellow); letter-spacing: 4px; text-shadow: 0 0 20px rgba(255, 212, 59, .6); }
.tn-stars span { color: var(--line); text-shadow: none; }
.tn-rec { color: var(--yellow); }
.tn-confetti { position: absolute; inset: 0; z-index: 4; pointer-events: none; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .ts.done, .tn-pop.go, .tn-win-in { animation: none !important; } .tn-pop.go { opacity: 1; } }
.ts { background: transparent; }
.ts.hit:not(.done)::after { background: linear-gradient(135deg, #3a1840, #3a2a20); }

/* hero: termômetro entre o selo de presente e os botões */
.hero-in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero-copy { max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.hero-copy .lead { max-width: 640px; }
.hero-copy .speedo { margin: 0 0 6px; }
.hero-cta { justify-items: center; margin-top: 16px; }
@media (max-width: 520px) { .hero-cta { justify-items: stretch; width: 100%; } .hero-copy .speedo { padding: 14px 14px 12px; } }

/* app instalável */
.install-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; gap: 10px; padding: 10px 40px 10px 10px; border-radius: 16px; background: var(--card); border: 1px solid rgba(255, 212, 59, .5); box-shadow: 0 18px 50px -10px rgba(0, 0, 0, .7); animation: facePop .35s ease-out; }
.install-bar[hidden] { display: none; }
.install-bar img { border-radius: 10px; flex: none; }
.install-bar div { flex: 1; min-width: 0; display: grid; font-size: 13px; }
.install-bar div span { color: var(--muted); font-size: 12px; }
.install-bar .btn { flex: none; }
.install-bar .x { top: 50%; transform: translateY(-50%); right: 8px; }
.install-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.install-head img { border-radius: 14px; }
.install-head h3 { padding-right: 0; margin: 0; }
.steps { padding-left: 20px; line-height: 1.6; }
.steps li { margin: 8px 0; }
.ios-share { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 5px; font-size: 13px; vertical-align: -4px; }
@media (max-width: 420px) { .install-btn { padding-inline: 10px; font-size: 12px; } }
.is-app .top { padding-top: env(safe-area-inset-top); }
.install-btn { white-space: nowrap; }
.install-sh { display: none; }
@media (max-width: 520px) {
  .install-lbl { display: none; } .install-sh { display: inline; }
  /* no celular o termômetro aparece logo na primeira tela: o texto longo vai para baixo dos botões */
  .hero { padding-top: 26px; }
  .hero-copy .eyebrow { order: 1; } .hero-copy h1 { order: 2; } .hero-copy .gift { order: 3; margin: 12px 0 12px; } .hero-copy .speedo { order: 4; } .hero-copy .hero-cta { order: 5; } .hero-copy .lead { order: 6; margin-top: 18px; font-size: 15px; }
}

/* celular: cabeçalho cabe na tela e a página não rola para os lados */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
.top-in { min-width: 0; }
.logo { min-width: 0; flex: 0 1 auto; }
.hud { flex: 0 0 auto; min-width: 0; }
@media (max-width: 560px) {
  .top-in { height: 58px; gap: 8px; }
  .logo { gap: 7px; } .logo img { width: 30px; height: 30px; }
  .hud { gap: 6px; }
  .hud .btn-sm { padding: 8px 11px; font-size: 13px; border-radius: 11px; }
  #hudCredits { display: none !important; }
  input, select, textarea { font-size: 16px; } /* evita o zoom automático do iPhone ao tocar num campo */
}
@media (max-width: 400px) {
  .logo span { font-size: 0; } .logo span b { font-size: 11px; margin-left: 0; }
  .hud .btn-sm { padding: 8px 9px; font-size: 12.5px; }
}
