/* Tema "Arena neon": preto, grafite e verde-limão. Todas as cores do app saem daqui. */
@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1f1f1f;
  --line: #262626;
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --neon: #c6ff00;
  --on-accent: #0a0a0a;
  --ember: var(--neon);      /* nomes antigos apontam para o neon */
  --ember-2: var(--neon);
  --ember-soft: rgba(198,255,0, 0.10);
  --ok: var(--neon);
  --ok-soft: rgba(198,255,0, 0.10);
  --danger: #ff3b5c;
  --radius: 14px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --grad: var(--neon);
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--safe-t) + 12px) 16px 12px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); letter-spacing: 0.08em; font-size: 30px; line-height: 1; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { color: var(--neon); }
.xp-chip {
  display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px;
  border-radius: 8px; background: transparent; border: 1px solid var(--neon); color: var(--neon);
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.xp-chip .lvl { height: 22px; padding: 0 6px; border-radius: 5px; display: grid; place-items: center; background: var(--neon); color: var(--on-accent); font-size: 11px; font-weight: 900; }

main { padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 96px); max-width: 640px; margin: 0 auto; }
.view[hidden] { display: none; }

/* ---------- Dias ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 16px; padding: 2px 16px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 auto; min-width: 56px; padding: 9px 12px; border-radius: 14px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; position: relative;
  scroll-snap-align: start; transition: transform .12s ease;
}
.day:active { transform: scale(0.96); }
.day small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.day.on { background: var(--grad); color: var(--on-accent); border-color: transparent; }
.day.on small { color: rgba(10,10,10,.65); }
.day.today::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.day.done::before { content: "✓"; position: absolute; top: 2px; left: 6px; font-size: 10px; color: var(--ok); }
.day.on.done::before { color: var(--on-accent); }

/* ---------- Hero ---------- */
.hero {
  border-radius: var(--radius); padding: 18px; margin-bottom: 18px; position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.hero::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; background: var(--neon); border-radius: 0 3px 3px 0; }
.hero .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--neon); text-transform: uppercase; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: .95; margin: 6px 0 4px; letter-spacing: .02em; text-transform: uppercase; }
.segs { display: flex; gap: 4px; flex: 1; }
.segs i { flex: 1; height: 10px; background: var(--line); border-radius: 2px; overflow: hidden; position: relative; }
.segs i b { position: absolute; inset: 0 auto 0 0; background: var(--neon); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.hero p { color: var(--muted); font-size: 14px; }
.progress { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.start-btn { margin-top: 14px; height: 50px; }
.clock { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.clock b { margin-left: auto; font-size: 22px; color: var(--text); font-weight: 900; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.total-time { margin-top: 14px; }
.total-time small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.total-time b { font-size: 34px; font-weight: 900; }
.ach-unlock { margin-bottom: 14px; text-align: left; }
.ach-new { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(198,255,0,.22), rgba(198,255,0,.08)); border: 1px solid rgba(198,255,0,.45);
  animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.ach-new:nth-child(2) { animation-delay: .12s; } .ach-new:nth-child(3) { animation-delay: .24s; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
.ach-new .ach-ico { font-size: 30px; }
.ach-new small { display: block; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-2); }
.ach-new b { font-size: 16px; }
.ach-new em { margin-left: auto; font-style: normal; font-weight: 900; color: var(--ember-2); white-space: nowrap; }
.ach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ach { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.ach .ach-ico { font-size: 26px; filter: grayscale(1); opacity: .45; }
.ach.got { border-color: rgba(198,255,0,.45); background: linear-gradient(160deg, rgba(198,255,0,.14), var(--surface) 60%); }
.ach.got .ach-ico { filter: none; opacity: 1; }
.ach b { font-size: 14px; line-height: 1.2; }
.ach small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.ach em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); margin-top: auto; padding-top: 4px; }
.ach.got em { color: var(--ember-2); }
.ach .bar { height: 5px; margin-top: 6px; flex: none; }
.draft-note { margin-top: 10px; font-size: 12px; color: var(--ember-2); }

/* ---------- Card de exercício ---------- */
.ex {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; transition: border-color .2s ease;
}
.ex.complete { border-color: rgba(61,220,132,.4); }
.ex-head { display: flex; gap: 14px; padding: 14px; align-items: stretch; width: 100%; text-align: left; }
.ex-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ex-info h3 { font-size: 16px; font-weight: 800; line-height: 1.25; display: flex; gap: 8px; align-items: flex-start; }
.ex-info h3 .n { color: var(--muted); font-weight: 700; }
.ex-meta { font-size: 13px; color: var(--muted); }
.ex-meta b { color: var(--text); font-weight: 700; }
.ex-meta .ember { color: var(--ember-2); }
.thumb {
  flex: 0 0 104px; height: 88px; border-radius: 12px; overflow: hidden; position: relative; background: #000;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
}
.thumb .play i {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.thumb .play i::after { content: ""; border-left: 11px solid #111; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.check-badge { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: var(--ok); color: var(--on-accent); display: grid; place-items: center; font-size: 13px; font-weight: 900; }

.sets { padding: 0 14px 14px; }
.set-row { display: grid; grid-template-columns: 54px 1fr 1fr 48px; gap: 8px; align-items: center; margin-bottom: 8px; }
.set-row .lbl { font-size: 12px; color: var(--muted); font-weight: 700; }
.set-row .lbl small { display: block; font-weight: 500; font-size: 10px; }
.field { position: relative; }
.field input {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  padding: 0 34px 0 12px; font-size: 16px; font-weight: 700; outline: none; transition: border-color .15s, background .15s;
}
.field input::placeholder { color: #555555; font-weight: 600; }
.field input:focus { border-color: var(--ember); background: #232323; }
.field span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); pointer-events: none; font-weight: 600; }
.tick {
  height: 46px; border-radius: 12px; border: 1.5px solid var(--line); display: grid; place-items: center;
  font-size: 18px; color: var(--muted); transition: transform .12s ease, background .15s, border-color .15s, color .15s;
}
.tick:active { transform: scale(0.92); }
.set-row.done .tick { background: var(--ok); border-color: var(--ok); color: var(--on-accent); }
.set-row.done input { border-color: rgba(61,220,132,.35); }
.set-row.pr .lbl::after { content: "RECORDE"; display: block; color: var(--ember-2); font-size: 9px; font-weight: 900; letter-spacing: .08em; }

.ex-actions { display: flex; gap: 8px; margin-top: 4px; }
.btn {
  height: 44px; padding: 0 16px; border-radius: 12px; font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease, opacity .15s;
}
.btn:active { transform: scale(0.97); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line); }
.btn-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid rgba(61,220,132,.3); }
.btn-ember { background: var(--grad); color: var(--on-accent); }
.btn-danger { background: rgba(255,77,94,.12); color: var(--danger); border: 1px solid rgba(255,77,94,.3); }
.btn-block { width: 100%; height: 54px; font-size: 16px; border-radius: 16px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.grow { flex: 1; }

.finish-wrap { margin-top: 20px; }
.rest-day { text-align: center; padding: 40px 20px; color: var(--muted); }
.rest-day .big { font-size: 56px; }

/* ---------- Cronômetro de descanso ---------- */
.timer {
  position: fixed; left: 50%; transform: translate(-50%, 24px); z-index: 30;
  opacity: 0; visibility: hidden;
  bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
  width: min(calc(100% - 32px), 608px);
  background: #1a1a1a; border: 1px solid rgba(198,255,0,.45); border-radius: 18px;
  padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s, visibility 0s linear .3s;
}
.timer.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.timer.ended { border-color: var(--ok); }
.timer .t-label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.timer .t-time { font-size: 26px; font-weight: 900; line-height: 1; }
.timer.ended .t-time { color: var(--ok); }
.timer .t-main { flex: 1; min-width: 0; }
.timer .t-bar { height: 3px; border-radius: 9px; background: rgba(255,255,255,.08); margin-top: 6px; overflow: hidden; }
.timer .t-bar i { display: block; height: 100%; background: var(--grad); width: 100%; }
.timer button { height: 40px; min-width: 44px; border-radius: 10px; background: var(--surface-2); font-weight: 800; font-size: 13px; }

/* ---------- Navegação inferior ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(12,12,12,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); }
.nav button svg { width: 24px; height: 24px; }
.nav button.on { color: var(--ember-2); }

/* ---------- Modal / folha ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet-bg.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92dvh; overflow-y: auto;
  background: var(--surface); border-radius: 24px 24px 0 0; border-top: 1px solid var(--line);
  padding: 10px 16px calc(var(--safe-b) + 20px); max-width: 640px; margin: 0 auto;
  transform: translateY(105%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
  overscroll-behavior: contain;
}
.sheet.show { transform: translateY(0); }
.grip { width: 40px; height: 5px; border-radius: 9px; background: #333333; margin: 0 auto 14px; }
.sheet h2 { font-size: 22px; font-weight: 900; }
.sheet .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }

.demo { position: relative; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: #000; margin: 14px 0; }
.demo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo img.f1 { animation: frame 2.2s ease-in-out infinite; }
@keyframes frame { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
.demo .tag { position: absolute; left: 10px; bottom: 10px; font-size: 11px; font-weight: 800; background: rgba(0,0,0,.6); padding: 4px 8px; border-radius: 8px; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .demo img.f1 { animation-duration: 4s; } }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.info-grid div { background: var(--surface-2); border-radius: 12px; padding: 10px; text-align: center; }
.info-grid small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.info-grid b { font-size: 17px; }
.tip { background: var(--ember-soft); border: 1px solid rgba(198,255,0,.25); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.tip b { color: var(--ember-2); }
.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--surface-2); border-radius: 14px; padding: 8px 8px 8px 14px; margin-bottom: 14px; }
.stepper .ctrl { display: flex; gap: 6px; align-items: center; }
.stepper .ctrl button { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); font-weight: 900; font-size: 18px; }
.stepper .ctrl b { min-width: 52px; text-align: center; }
.history-mini { font-size: 13px; color: var(--muted); list-style: none; padding: 0; margin: 6px 0 14px; }
.history-mini li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.history-mini li:last-child { border-bottom: 0; }

/* ---------- Resumo / XP ---------- */
.summary { text-align: center; padding: 6px 0 4px; }
.summary .xp-big { font-size: 54px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.05; margin-top: 10px; }
.summary .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.summary .stats div { background: var(--surface-2); border-radius: 12px; padding: 12px 6px; }
.summary .stats b { display: block; font-size: 20px; }
.summary .stats small { color: var(--muted); font-size: 11px; font-weight: 700; }
.pr-list { text-align: left; margin-bottom: 16px; }
.pr-list div { padding: 10px 12px; border-radius: 12px; background: var(--ember-soft); margin-bottom: 6px; font-size: 14px; }

.toast {
  position: fixed; top: calc(var(--safe-t) + 70px); left: 50%; transform: translate(-50%, -20px); z-index: 60;
  background: #232323; border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1); white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Seções genéricas ---------- */
.section-title { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 22px 0 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.page-title { font-size: 26px; font-weight: 900; margin-bottom: 4px; }
.page-sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

.level-card { background: radial-gradient(120% 140% at 0% 0%, rgba(198,255,0,.25), transparent 60%), var(--surface); border-color: rgba(198,255,0,.3); }
.level-row { display: flex; align-items: center; gap: 14px; }
.level-badge { width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: var(--on-accent); display: grid; place-items: center; font-weight: 900; font-size: 22px; flex: 0 0 56px; }
.level-row h3 { font-size: 18px; font-weight: 900; }
.level-row p { color: var(--muted); font-size: 13px; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.kpi small { color: var(--muted); font-size: 12px; font-weight: 700; }
.kpi b { display: block; font-size: 24px; font-weight: 900; margin-top: 2px; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal .h { font-size: 11px; color: var(--muted); font-weight: 700; }
.cal .c { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.cal .c.trained { background: var(--grad); color: var(--on-accent); }
.cal .c.today { outline: 2px solid var(--ember-2); outline-offset: -2px; }
.cal .c.empty { background: none; }

select {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font: inherit; font-size: 16px; font-weight: 700; padding: 0 12px; margin-bottom: 12px;
}
.chart { width: 100%; height: 180px; display: block; }
.chart .grid { stroke: rgba(255,255,255,.07); }
.chart .axis { fill: var(--muted); font-size: 10px; }
.chart .line { fill: none; stroke: var(--ember); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#emberFade); }
.chart .dot { fill: var(--ember-2); }
.empty-note { color: var(--muted); font-size: 14px; text-align: center; padding: 18px 6px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.form-row .field input { padding-right: 36px; }

.hist-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.hist-item:last-child { border-bottom: 0; }
.hist-item b { display: block; }
.hist-item small { color: var(--muted); font-size: 12px; }
.hist-item .xp { color: var(--ember-2); font-weight: 800; font-size: 14px; white-space: nowrap; }

.goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.goals div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.goals small { color: var(--muted); font-size: 12px; font-weight: 700; }
.goals b { display: block; font-size: 15px; margin-top: 2px; }
.meal { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.meal:last-child { border-bottom: 0; }
.meal .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); flex: 0 0 26px; display: grid; place-items: center; font-weight: 900; color: transparent; transition: background .15s, border-color .15s; margin-top: 2px; }
.meal.on .box { background: var(--ok); border-color: var(--ok); color: var(--on-accent); }
.meal .time { font-size: 12px; color: var(--ember-2); font-weight: 800; }
.meal b { display: block; }
.meal p { color: var(--muted); font-size: 14px; }
.meal.on p, .meal.on b { opacity: .55; }
.notes li { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.notes { padding-left: 18px; margin: 0; }

.list-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 700; }
.list-btn:last-child { border-bottom: 0; }
.list-btn small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.steps { padding-left: 20px; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.steps li { margin-bottom: 6px; }
.soon { display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; background: var(--ember-soft); color: var(--ember-2); vertical-align: middle; margin-left: 6px; }
.fine { color: var(--muted); font-size: 12px; }
.ad-slot { display: none; }

@media (hover: hover) {
  .btn:hover { opacity: .92; }
  .day:hover { border-color: #333333; }
}

/* ---------- Arena neon: tipografia de placar ---------- */
.page-title, .sheet h2, .ex-info h3, .level-row h3, .kpi b, .t-time, .xp-big, .total-time b,
.summary .stats b, .clock b, .level-badge, .ach b, .ach-new b, .rest-day h2 {
  font-family: var(--display); font-weight: 400; letter-spacing: .03em;
}
.page-title { font-size: 40px; line-height: 1; text-transform: uppercase; }
.sheet h2 { font-size: 32px; line-height: 1; text-transform: uppercase; }
.ex-info h3 { font-size: 22px; line-height: 1; text-transform: uppercase; align-items: center; }
.ex-info h3 .n { font-size: 22px; color: var(--neon); }
.ex .xp-tag { color: var(--neon); font-weight: 800; white-space: nowrap; }
.kpi b { font-size: 34px; line-height: 1.05; }
.level-row h3 { font-size: 26px; text-transform: uppercase; }
.level-badge { font-size: 30px; border-radius: 10px; }
.t-time { font-size: 34px; }
.xp-big { font-size: 72px; line-height: 1; color: var(--neon); }
.total-time b { font-size: 46px; line-height: 1; }
.summary .stats b { font-size: 30px; line-height: 1.05; }
.clock b { font-size: 30px; }
.ach b { font-size: 18px; line-height: 1.05; }
.ach-new b { font-size: 21px; }
.section-title { color: var(--neon); }
.day { border-radius: 10px; font-weight: 800; }
.btn-ember { letter-spacing: .1em; text-transform: uppercase; font-weight: 900; }
.btn-block { border-radius: 12px; }
.tick { border-radius: 10px; }
.set-row.done .tick { box-shadow: 0 0 0 3px rgba(198,255,0,.15); }
.nav button.on { color: var(--neon); }
.nav button.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--neon); }
.nav button { position: relative; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.thumb { border-radius: 10px; }
.ex.complete { border-color: rgba(198,255,0,.45); }
.check-badge { border-radius: 6px; }
.timer { border-color: var(--neon); }
.timer .t-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Entrada (splash) ---------- */
.splash { position: fixed; inset: 0; z-index: 100; background: #0a0a0a; display: grid; place-items: center; }
.sp-stage { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sp-logo { width: 116px; height: 116px; }
.sp-logo svg { width: 100%; height: 100%; overflow: visible; }
.sp-anvil, .sp-bolt { fill: var(--neon); }
.sp-bolt, .sp-anvil { transform-box: fill-box; transform-origin: 50% 100%; }
.sp-sparks { stroke: var(--neon); stroke-width: 3.2; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.sp-word { display: flex; overflow: hidden; font-family: var(--display); font-size: 64px; line-height: 1; letter-spacing: .1em; color: var(--text); padding-left: .1em; }
.sp-word span { display: inline-block; }
.sp-tag { font-size: 11px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--neon); }

/* ---------- Faíscas e XP flutuante ---------- */
.spark { position: fixed; z-index: 120; width: 10px; height: 2.5px; border-radius: 2px; pointer-events: none; }
.float-xp {
  position: fixed; z-index: 70; pointer-events: none; font-family: var(--display); font-size: 24px; letter-spacing: .04em;
  color: var(--neon); text-shadow: 0 2px 12px rgba(0,0,0,.8); white-space: nowrap;
}

/* ---------- Série concluída: varredura neon na linha ---------- */
.set-row { position: relative; }
.set-row.just-done::after {
  content: ""; position: absolute; inset: -3px -6px; border-radius: 12px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(198,255,0,.16), transparent);
  animation: sweep .6s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes sweep { from { transform: translateX(-60%); opacity: 1; } to { transform: translateX(60%); opacity: 0; } }
.ex.celebrate { animation: cardGlow .9s cubic-bezier(.16,1,.3,1); }
@keyframes cardGlow { 0% { box-shadow: 0 0 0 0 rgba(198,255,0,.5); } 100% { box-shadow: 0 0 0 14px rgba(198,255,0,0); } }

/* ---------- Vídeo da demonstração ---------- */
.demo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Interruptor ---------- */
.switch { width: 46px; height: 28px; border-radius: 99px; background: var(--line); position: relative; flex: 0 0 46px; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #777; transition: transform .25s cubic-bezier(.16,1,.3,1), background .2s; }
.switch.on { background: rgba(198,255,0,.25); }
.switch.on i { transform: translateX(18px); background: var(--neon); }

/* ---------- Toques: resposta imediata ---------- */
.tick, .btn, .day, .thumb, .meal, .list-btn, .nav button { transition: transform .16s cubic-bezier(.16,1,.3,1); }
.thumb:active, .meal:active, .list-btn:active { transform: scale(.97); }
.nav button:active svg { transform: scale(.88); }
.nav button svg { transition: transform .16s cubic-bezier(.16,1,.3,1); }
.view { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .set-row.just-done::after, .ex.celebrate { animation: none; }
}

/* ---------- Trocar exercício ---------- */
.swap-tag { display: inline-block; align-self: flex-start; margin: 2px 0 2px; padding: 3px 8px; border-radius: 6px; background: rgba(198,255,0,.1); color: var(--neon); font-size: 11px; font-weight: 800; line-height: 1.3; }
.swap-btn { flex: 0 0 auto; padding: 0 14px; }
.swap-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.swap-opt { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .2s; }
.swap-opt.on { border-color: var(--neon); }
.swap-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; text-align: left; }
.swap-row img { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; flex: 0 0 72px; background: #000; }
.swap-row b { display: block; font-size: 15px; line-height: 1.25; }
.swap-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.swap-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 22px; transition: border-color .2s, background .2s; }
.swap-opt.on .swap-radio { border-color: var(--neon); background: radial-gradient(circle, var(--neon) 45%, transparent 50%); }
.swap-choose { display: grid; grid-template-columns: 1fr 1fr 48px; gap: 8px; padding: 0 8px 8px; animation: swapIn .3s cubic-bezier(.16,1,.3,1); }
.swap-choose .btn { height: 44px; font-size: 13px; padding: 0 8px; }
@keyframes swapIn { from { opacity: 0; transform: translateY(-6px); } }
