:root {
  --bg: #F7F4EC;
  --surface: #FFFFFF;
  --surface-2: #F0ECE0;
  --text: #17160F;
  --muted: #6E695A;
  --line: #E7E1D0;
  --yellow: #FFD000;
  --yellow-soft: #FFF2B3;
  --yellow-ink: #17160F;
  --dark: #17160F;
  --dark-text: #F7F4EC;
  --dark-muted: #A9A493;
  --red: #E0533B;
  --red-soft: #FBE4DE;
  --shadow: 0 1px 2px rgba(23, 22, 15, .04), 0 8px 24px rgba(23, 22, 15, .05);
  --r-lg: 26px;
  --r-md: 18px;
  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11110E; --surface: #1B1A16; --surface-2: #24231D; --text: #F4F0E4; --muted: #A39E8E;
    --line: #2C2A23; --yellow-soft: #3A3315; --dark: #24221A; --dark-text: #F4F0E4; --dark-muted: #A39E8E;
    --red-soft: #3A1E18; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11110E; --surface: #1B1A16; --surface-2: #24231D; --text: #F4F0E4; --muted: #A39E8E;
  --line: #2C2A23; --yellow-soft: #3A3315; --dark: #24221A; --dark-text: #F4F0E4; --dark-muted: #A39E8E;
  --red-soft: #3A1E18; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100dvh; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.fill { fill: currentColor; stroke: none; }

.app { max-width: 460px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 16px calc(120px + env(safe-area-inset-bottom)); }
.app.no-tabs { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.hidden { display: none !important; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; margin: 0; line-height: 1.1; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }

/* Marca: "odeio" riscado em cima, "academia" embaixo */
.wm { font-family: var(--display); font-weight: 800; letter-spacing: -0.045em; line-height: .92; display: inline-block; text-align: center; }
.strike { position: relative; display: inline-block; }
.strike i { position: absolute; left: -.08em; right: -.08em; top: 54%; height: .13em; background: currentColor; border-radius: .1em; box-shadow: 0 0 0 .045em var(--strike-gap, var(--yellow)); transform: rotate(-7deg); transform-origin: left center; }
/* O risco começa escondido e só é desenhado quando o JS adiciona .go (depois da fonte carregar). */
.wm.anim .strike i { transform: rotate(-7deg) scaleX(0); }
.wm.anim.go .strike i { animation: strike .6s cubic-bezier(.65, 0, .25, 1) both; }
@keyframes strike { from { transform: rotate(-7deg) scaleX(0); } to { transform: rotate(-7deg) scaleX(1); } }

#splash { position: fixed; inset: 0; z-index: 100; background: #FFD000; color: #17160F; display: grid; place-items: center; transition: opacity .35s ease, visibility .35s; }
#splash .wm { font-size: clamp(54px, 17vw, 84px); --strike-gap: #FFD000; }
#splash.out { opacity: 0; visibility: hidden; }

/* Boas-vindas: continuação da splash, tela toda amarela */
body.yellow { background: #FFD000; }
.yellow-screen { position: fixed; inset: 0; background: #FFD000; color: #17160F; display: grid; place-items: center; }
.yellow-mid { position: relative; text-align: center; }
.yellow-mid .wm { font-size: clamp(54px, 17vw, 84px); --strike-gap: #FFD000; }
.tagline { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; margin-top: 22px; font-size: 17px; font-weight: 600; color: rgba(23, 22, 15, .7); animation: fade .5s .2s ease both; }
.yellow-foot { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 460px; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); animation: up .45s .25s ease both; }
.yellow-foot .btn-dark { background: #17160F; color: #FFD000; }
.yellow-foot .btn-ghost { border-color: rgba(23, 22, 15, .25); color: #17160F; }

/* Abertura */
.welcome { min-height: calc(100dvh - 48px); display: flex; flex-direction: column; }
.welcome-mid { flex: 1; display: grid; place-content: center; text-align: center; gap: 18px; }
.mark { width: 112px; height: 112px; border-radius: 30px; background: var(--yellow); color: var(--yellow-ink); display: grid; place-items: center; margin: 0 auto; --strike-gap: var(--yellow); }
.mark .wm { font-size: 23px; }
.talk { flex: 1; display: grid; place-content: center; gap: 22px; padding: 20px 4px; }
.talk .say { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.05; letter-spacing: -0.035em; }
.talk .say em { font-style: normal; background: var(--yellow); color: var(--yellow-ink); padding: 0 6px; border-radius: 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.build-list { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.build-list .li { opacity: 0; transform: translateY(8px); animation: up .35s ease forwards; }
/* Barra que enche em 3 s com uma bolinha correndo na ponta */
.loadbar { position: relative; height: 12px; border-radius: 99px; background: var(--surface-2); margin: 4px 6px 0; }
.loadbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: var(--yellow); animation: load 3s cubic-bezier(.45, .05, .35, 1) forwards; }
.loadbar i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px var(--bg); animation: bob .5s ease-in-out infinite alternate; }
@keyframes load { to { width: 100%; } }
@keyframes bob { from { transform: scale(1); } to { transform: scale(.82); } }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 4px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; }
img.avatar { object-fit: cover; display: block; flex: none; }
.avatar.lg { width: 76px; height: 76px; font-size: 30px; flex: none; }

/* Meu treino */
.chip.day.has::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; }
.chip.day { position: relative; }
.ex { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.ex-top { display: flex; align-items: center; gap: 4px; }
.ex-top .field { margin-left: 6px; margin-right: 2px; }
.ex-n { width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.ex-grid label { font-size: 11px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.field.sm { padding: 10px 12px; border-radius: 12px; font-size: 16px; min-width: 0; }
.mini-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.mini-btn svg.i { width: 18px; height: 18px; }
.wk-now { background: var(--yellow); color: var(--yellow-ink); border-radius: var(--r-lg); padding: 18px; margin-top: 14px; }
.runner .check .tiny { display: block; }
.runner.on-dark { background: rgba(255, 255, 255, .06); border-radius: var(--r-lg); padding: 18px; }
.runner.on-dark .pill { background: rgba(255, 255, 255, .08); }
.runner.on-dark .check { border-color: rgba(255, 255, 255, .1); color: #F7F4EC; }
.runner.on-dark .box { border-color: rgba(255, 255, 255, .25); }
.runner.on-dark .eyebrow, .runner.on-dark .muted { color: #A9A493; }
.runner.on-dark .wk-now .eyebrow { color: rgba(23, 22, 15, .6); }

/* Tá pago */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph span { position: absolute; left: 6px; bottom: 6px; background: rgba(23, 22, 15, .7); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }

.icon-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 8px 0; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.dark { background: var(--dark); color: var(--dark-text); border-color: transparent; }
.card.dark .muted { color: var(--dark-muted); }
.card.yellow { background: var(--yellow); color: var(--yellow-ink); border-color: transparent; }
.card.yellow .muted { color: rgba(23, 22, 15, .65); }
.card.soft { background: var(--yellow-soft); border-color: transparent; box-shadow: none; }
.card.danger { background: var(--red-soft); border-color: transparent; box-shadow: none; }

.why { position: relative; overflow: hidden; }
.why .pin { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.why blockquote { margin: 10px 0 0; font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.why .edit { position: absolute; top: 14px; right: 14px; color: var(--dark-muted); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.why::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; border: 18px solid var(--yellow); opacity: .14; }

/* Mission */
.mission-min { font-size: 64px; font-weight: 800; line-height: .9; }
.mission-min small { font-size: 22px; font-weight: 700; margin-left: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--surface-2); }
.card.dark .pill { background: rgba(255, 255, 255, .08); }
.card.yellow .pill { background: rgba(23, 22, 15, .1); }
.pill.y { background: var(--yellow); color: var(--yellow-ink); }
.dots { display: flex; gap: 6px; }
.dots span { width: 26px; height: 8px; border-radius: 99px; background: var(--line); }
.card.dark .dots span { background: rgba(255, 255, 255, .14); }
.dots span.on { background: var(--yellow); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 16px; width: 100%; transition: transform .12s ease, opacity .12s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn-y { background: var(--yellow); color: var(--yellow-ink); }
.btn-dark { background: var(--dark); color: var(--yellow); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); }
.card.dark .btn-ghost { border-color: rgba(255, 255, 255, .18); color: var(--dark-text); }
.btn-text { height: auto; padding: 10px; font-weight: 700; color: var(--muted); }
.btn-sm { height: 40px; font-size: 14px; padding: 0 16px; width: auto; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; }
.chip.on { background: var(--dark); color: var(--yellow); border-color: var(--dark); }
:root[data-theme="dark"] .chip.on { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.on { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); } }
.day { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; font-size: 13px; }

/* Option list (full-width pills) */
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px 12px 16px; min-height: 56px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; transition: background .15s, border-color .15s; }
.opt .emo, .li .emo { font-size: 22px; line-height: 1; width: 28px; text-align: center; flex: none; }
.opt .tick { width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.opt .tick.radio { border-radius: 50%; }
.opt .tick svg.i { width: 16px; height: 16px; stroke-width: 3; }
.opt.on { background: var(--dark); color: var(--dark-text); border-color: var(--dark); }
.opt.on .tick { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.card.dark .opt { background: transparent; color: var(--dark-text); border-color: rgba(255, 255, 255, .18); }
.card.dark .opt .tick { border-color: rgba(255, 255, 255, .25); }
.card.dark .opt.on { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
.card.dark .opt.on .tick { background: var(--yellow-ink); border-color: var(--yellow-ink); color: var(--yellow); }
:root[data-theme="dark"] .opt.on { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
:root[data-theme="dark"] .opt.on .tick { background: var(--yellow-ink); border-color: var(--yellow-ink); color: var(--yellow); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .opt.on { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
  :root:not([data-theme="light"]) .opt.on .tick { background: var(--yellow-ink); border-color: var(--yellow-ink); color: var(--yellow); }
}

/* Forms */
label.lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
/* 16px é o mínimo pro iPhone não dar zoom sozinho ao tocar no campo */
.field, textarea.field { font-size: 16px; width: 100%; padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.field { min-height: 110px; resize: vertical; line-height: 1.45; }
.field:focus { border-color: var(--text); box-shadow: 0 0 0 4px var(--yellow-soft); }
.add-row { display: flex; gap: 8px; }
.add-row .field { flex: 1; }
.add-btn { width: 52px; height: 52px; border-radius: 16px; background: var(--dark); color: var(--yellow); display: grid; place-items: center; flex: none; }
input[type=range] { width: 100%; accent-color: var(--text); }
input[type=time].field { font-family: var(--display); font-size: 22px; font-weight: 700; }

.list { display: flex; flex-direction: column; gap: 8px; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.li .tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.li .del { color: var(--muted); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }

/* Checklist */
.check { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; font-weight: 600; }
.check:last-child { border-bottom: 0; }
.box { width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; transition: all .15s; }
.check.on .box { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.check.on span.t { color: var(--muted); text-decoration: line-through; }

/* Week strip */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.wd b { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); font-size: 13px; }
.wd.plan b { box-shadow: inset 0 0 0 2px var(--line); background: transparent; }
.wd.done b { background: var(--yellow); color: var(--yellow-ink); }
.wd.miss b { background: var(--red-soft); color: var(--red); }
.wd.today { color: var(--text); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.stat .num { font-size: 26px; font-weight: 800; display: block; }
.stat span.l { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Tool tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; box-shadow: var(--shadow); }
.tile .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--yellow-soft); display: grid; place-items: center; }
.tile.wide { grid-column: span 2; min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; }
.tile.dark { background: var(--dark); color: var(--dark-text); border-color: transparent; }
.tile.dark .ic { background: var(--yellow); color: var(--yellow-ink); }
.tile.dark .muted { color: var(--dark-muted); }

/* Tab bar */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); width: min(428px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px; display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: 0 10px 30px rgba(23, 22, 15, .12); z-index: 20; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--muted); }
.tab.on { background: var(--yellow); color: var(--yellow-ink); }

/* Session (timer) */
.session { min-height: 100dvh; background: #17160F; color: #F7F4EC; display: flex; flex-direction: column; padding: calc(20px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom)); max-width: 460px; margin: 0 auto; }
.ring-wrap { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 18px auto; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { stroke: rgba(255, 255, 255, .1); }
.ring-fg { stroke: #FFD000; transition: stroke-dashoffset 1s linear; }
.ring-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-mid .num { font-size: 60px; font-weight: 800; line-height: 1; }
.session .muted { color: #A9A493; }
.session .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .08); color: inherit; box-shadow: none; }

/* Sheet */
.scrim { position: fixed; inset: 0; background: rgba(17, 17, 14, .5); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.sheet { background: var(--bg); width: 100%; max-width: 460px; border-radius: 30px 30px 0 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2, .8, .2, 1); max-height: 92dvh; overflow: auto; }
.grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 16px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale button { aspect-ratio: 1; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); font-family: var(--display); font-size: 22px; font-weight: 800; }
.scale button.on { background: var(--dark); color: var(--yellow); border-color: var(--dark); }
.scale-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 6px; }

/* Onboarding */
.progress { height: 6px; background: var(--line); border-radius: 9px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--text); border-radius: 9px; transition: width .3s ease; }
.onb { min-height: calc(100dvh - 48px); display: flex; flex-direction: column; }
.onb-body { flex: 1; padding: 22px 0; }
.onb-foot { display: flex; gap: 10px; position: sticky; bottom: 0; padding: 12px 0 calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.onb-foot .btn-ghost { width: 64px; flex: none; padding: 0; }
.hero-mark { width: 84px; height: 84px; border-radius: 26px; background: var(--yellow); display: grid; place-items: center; margin-bottom: 26px; }
.hero-mark svg.i { width: 40px; height: 40px; color: var(--yellow-ink); }
.big-quote { font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.big-quote em { font-style: normal; background: var(--yellow); color: var(--yellow-ink); padding: 0 6px; border-radius: 8px; }

/* Ladder */
.ladder { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.rung { flex: 1; border-radius: 10px 10px 6px 6px; background: var(--surface-2); position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; font-size: 11px; font-weight: 800; color: var(--muted); }
.rung.done { background: var(--text); color: var(--bg); }
.rung.now { background: var(--yellow); color: var(--yellow-ink); }

/* Heatmap */
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: var(--surface-2); }
.heat i.plan { box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; }
.heat i.miss { background: var(--red-soft); }
.heat i.l1 { background: #FFE680; } .heat i.l2 { background: #FFD000; } .heat i.l3 { background: #E0A800; }
.heat i.fut { background: transparent; }

/* Badges */
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hex { width: 56px; height: 62px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--yellow); color: var(--yellow-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; }
.badge.locked .hex { background: var(--surface-2); color: var(--muted); }
.badge.locked { opacity: .7; }
.badge b { font-size: 12px; line-height: 1.2; }
.badge span { font-size: 11px; color: var(--muted); line-height: 1.25; }

/* Compare bars */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.bar-pair { flex: 1; display: flex; gap: 3px; align-items: flex-end; height: 100%; }
.bar-pair i { flex: 1; border-radius: 6px 6px 3px 3px; }
.bar-pair i.p { background: var(--line); }
.bar-pair i.a { background: var(--yellow); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); font-weight: 600; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Calculator */
.meter { height: 14px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--yellow); border-radius: 99px; transition: width .2s; }
.slider-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.slider-row input { grid-column: span 2; }

/* Library */
details.lib { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
details.lib summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 800; }
details.lib summary::-webkit-details-marker { display: none; }
details.lib[open] summary svg { transform: rotate(90deg); }
details.lib p { margin-top: 10px; color: var(--muted); }
details.lib p b { color: var(--text); }

/* Reward */
.reward-hero { text-align: center; padding: 26px 0 8px; }
.reward-hero .hex { width: 96px; height: 106px; margin: 0 auto 18px; font-size: 34px; }
.reward-hero .hex svg.i { width: 40px; height: 40px; stroke-width: 2.6; }
.timer-big { font-size: 44px; font-weight: 800; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }

.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--dark); color: var(--dark-text); padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; z-index: 60; animation: up .25s ease; max-width: calc(100% - 32px); text-align: center; }

.fade-in { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast { animation-name: toastup; }
@keyframes toastup { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .build-list .li { opacity: 1; transform: none; }
  /* o traço da marca é pequeno e faz parte da identidade: continua mesmo com movimento reduzido */
  .wm.anim.go .strike i { animation: strike .6s cubic-bezier(.65, 0, .25, 1) both !important; }
  /* o carregamento é a única pista de que algo está acontecendo: também continua */
  .loadbar i { animation: load 3s cubic-bezier(.45, .05, .35, 1) forwards !important; }
  .loadbar i::after { animation: bob .5s ease-in-out infinite alternate !important; }
  .build-list .li { opacity: 0; transform: translateY(8px); animation-name: up !important; animation-duration: .35s !important; animation-fill-mode: forwards !important; }
}

/* Nada de arrastar pro lado nem zoom com toque duplo */
html, body { overflow-x: clip; touch-action: manipulation; }

/* Entrevista e telas de "Tô sem vontade": ocupam exatamente a altura do celular.
   A página não rola; só o miolo rola, e sem barra, quando o conteúdo passa da tela. */
.fixed-screen { height: 100dvh; padding-bottom: 0; display: flex; flex-direction: column; overflow: hidden; }
.fixed-screen > .onb, .fixed-screen > .welcome { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fixed-screen .onb-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fixed-screen .onb-body::-webkit-scrollbar { display: none; }
.fixed-screen .onb-foot { position: static; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.fixed-screen > .welcome { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.fixed-screen .talk { min-height: 0; overflow-y: auto; scrollbar-width: none; }
.fixed-screen .talk::-webkit-scrollbar { display: none; }
