:root {
  --r: 28px;
  --blur: blur(28px) saturate(180%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --good: #5ef0b4;
  --bad: #ff7a9c;
}

/* Escuro (padrão): preto de verdade, vidro grafite, sem cor no fundo */
:root, [data-theme=dark] {
  color-scheme: dark;
  --bg: #000;
  --text: #f5f5f7;
  --ink: 245, 245, 247;              /* traços, trilhos e grades: rgba(var(--ink), a) */
  --muted: rgba(235, 235, 245, .58);
  --edge: rgba(255, 255, 255, .2);
  --edge-soft: rgba(255, 255, 255, .08);
  --well: rgba(255, 255, 255, .06);  /* campos e trilhos "afundados" */
  --well-strong: rgba(255, 255, 255, .1);
  --glass-top: rgba(255, 255, 255, .1);
  --glass-bottom: rgba(255, 255, 255, .035);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  --accent: #0a84ff;
  --them: #64d2ff;
  --blob-1: #2c2c34; --blob-2: #1d2433; --blob-3: #26262c; --blob-alpha: .9;
  --brand-1: #3a3a44; --brand-2: #1c1c21; --brand-3: #55555f;
  --primary-bg: linear-gradient(180deg, #fff, #e6e6ea);
  --primary-fg: #000;
  --primary-glow: rgba(255, 255, 255, .12);
  --toast: rgba(40, 40, 46, .75);
}

/* Claro: vidro branco, manchas em tom pastel */
[data-theme=light] {
  color-scheme: light;
  --bg: #f1eef9;
  --text: #17122b;
  --ink: 23, 18, 43;
  --muted: rgba(23, 18, 43, .56);
  --edge: rgba(23, 18, 43, .18);
  --edge-soft: rgba(23, 18, 43, .08);
  --well: rgba(23, 18, 43, .06);
  --well-strong: rgba(23, 18, 43, .1);
  --glass-top: rgba(255, 255, 255, .72);
  --glass-bottom: rgba(255, 255, 255, .38);
  --glass-shadow: 0 10px 40px rgba(60, 40, 120, .13);
  --accent: #6b4dff;
  --them: #e0409a;
  --blob-1: #b7a0ff; --blob-2: #ffb1d0; --blob-3: #93e6dc; --blob-alpha: .8;
  --brand-1: #7b52ff; --brand-2: #ff5fa2; --brand-3: #14c4b4;
  --primary-bg: linear-gradient(180deg, #2a2148, #17122b);
  --primary-fg: #fff;
  --primary-glow: rgba(90, 60, 200, .3);
  --toast: rgba(255, 255, 255, .85);
}

/* Verde: noite de esmeralda e lima */
[data-theme=green] {
  color-scheme: dark;
  --bg: #04110b;
  --text: #fff;
  --ink: 255, 255, 255;
  --muted: rgba(225, 255, 235, .62);
  --edge: rgba(200, 255, 220, .26);
  --edge-soft: rgba(200, 255, 220, .10);
  --well: rgba(0, 0, 0, .25);
  --well-strong: rgba(0, 0, 0, .33);
  --glass-top: rgba(220, 255, 230, .15);
  --glass-bottom: rgba(220, 255, 230, .04);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, .3);
  --accent: #9ef0a8;
  --them: #ffcf5c;
  --blob-1: #0f8a4f; --blob-2: #86d13b; --blob-3: #0a6b70; --blob-alpha: .7;
  --brand-1: #0f9a55; --brand-2: #8fd93f; --brand-3: #0fa3a3;
  --primary-bg: linear-gradient(180deg, rgba(240,255,244,.96), rgba(205,245,218,.9));
  --primary-fg: #08261a;
  --primary-glow: rgba(60, 210, 120, .4);
  --toast: rgba(8, 40, 24, .65);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 var(--font);
  transition: background-color .4s, color .4s;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: 30px; margin: 4px 4px 18px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- fundo: manchas de cor que o vidro refrata ---------- */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: -1; }
.bg i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--blob-alpha); transition: background .6s;
  animation: drift 28s ease-in-out infinite alternate;
}
.bg i:nth-child(1) { width: 60vmax; height: 60vmax; left: -20vmax; top: -18vmax; background: var(--blob-1); }
.bg i:nth-child(2) { width: 50vmax; height: 50vmax; right: -18vmax; top: 20vh; background: var(--blob-2); animation-delay: -9s; }
.bg i:nth-child(3) { width: 55vmax; height: 55vmax; left: 10vw; bottom: -30vmax; background: var(--blob-3); animation-delay: -17s; }
@keyframes drift {
  to { transform: translate(6vmax, -5vmax) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { .bg i { animation: none; } }

/* ---------- vidro ---------- */
.glass {
  position: relative;
  background: linear-gradient(160deg, var(--glass-top), var(--glass-bottom) 60%);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--edge-soft);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),      /* brilho na borda de cima */
    inset 0 -1px 0 rgba(255,255,255,.06),
    var(--glass-shadow);
}
.glass::before { /* reflexo especular */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  /* sem mix-blend-mode: com o blur do vidro, o Chrome às vezes deixava cards inteiros sem pintar */
  background: radial-gradient(120% 60% at 20% 0%, rgba(255,255,255,.09), transparent 50%);
}

/* ---------- layout ---------- */
#app { max-width: 480px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); }
.view { animation: rise .45s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.card { border-radius: var(--r); padding: 20px; margin-bottom: 14px; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }

/* ---------- botões ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--text);
  border-radius: 999px; padding: 14px 22px;
  transition: transform .18s cubic-bezier(.3,1.6,.5,1), filter .2s, opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; }
.btn.primary {
  width: 100%;
  background: var(--primary-bg);
  color: var(--primary-fg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 8px 30px var(--primary-glow);
}
.btn.big { padding: 18px; font-size: 17px; margin: 6px 0 16px; }
.btn.leafy { display: flex; align-items: center; justify-content: center; gap: 9px; }
.btn.leafy::before {
  content: ""; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url(mark-mono.svg) center / contain no-repeat; mask: url(mark-mono.svg) center / contain no-repeat;
}
/* ---------- ícones (sprite no index.php) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.btn svg.i { margin-right: 2px; } .btn.icon svg.i { margin: 0; }
.btn.icon { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; }
.btn.icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back { display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; color: var(--accent); font: inherit; font-size: 17px; padding: 6px 4px 6px 0; cursor: pointer; margin-bottom: 6px; }

/* ---------- segmented control ---------- */
.seg {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--well); border-radius: 999px; padding: 3px; margin-bottom: 16px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
}
.seg button {
  position: relative; z-index: 1; background: none; border: 0; color: var(--muted);
  font: inherit; font-weight: 600; font-size: 15px; padding: 9px; cursor: pointer; transition: color .25s;
}
.seg button.on { color: var(--text); }
.seg .thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 2)); border-radius: 999px;
  background: var(--glass-top); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 10px rgba(0,0,0,.15);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .35s cubic-bezier(.3,1.3,.5,1);
}

/* ---------- campos ---------- */
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin: 0 4px 6px; }
input:not([type=range]):not([type=file]), .field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--text);
  background: var(--well); border: 1px solid var(--edge-soft); border-radius: 16px;
  padding: 13px 16px; outline: none; transition: border-color .2s, background .2s;
}
input:focus { border-color: var(--edge); background: var(--well-strong); }
input::placeholder { color: rgba(var(--ink), .35); }
.err { color: var(--bad); min-height: 1.2em; margin: 2px 4px 10px; font-size: 14px; }

/* chute: velocímetro */
.dial { position: relative; max-width: 320px; margin: 4px auto 14px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; --dc: #ffd166; }
.dial.drag { cursor: grabbing; }
.dial-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dial-seg { fill: none; stroke-width: 16; stroke-linecap: round; opacity: .16; transition: opacity .18s, filter .18s; }
.dial-seg.on { opacity: 1; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--dc) 55%, transparent)); }
.dial-tick { stroke: rgba(var(--ink), .22); stroke-width: 1.5; stroke-linecap: round; } .dial-tick.big { stroke: rgba(var(--ink), .45); stroke-width: 2.2; }
.dial-lbl { fill: var(--muted); font-size: 11px; font-weight: 700; text-anchor: middle; }
.dial-needle { transform-origin: 130px 130px; transform: rotate(0deg); transition: transform .12s ease-out; }
.dial.drag .dial-needle { transition: none; }
.dial-needle line { stroke: var(--text); stroke-width: 4.5; stroke-linecap: round; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.dial-hub { fill: var(--dc); stroke: var(--text); stroke-width: 3; transition: fill .18s; }
.dial-read { margin-top: 2px; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.dial-read output { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; transition: color .18s; margin-bottom: 2px; }
.dial-read span { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.dial-input { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; }
.dial:focus-within .dial-hub { stroke: var(--good); }
input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; background: rgba(var(--ink), .16); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; }

/* ---------- auth ---------- */
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 4px 12px; font-size: 13px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.check input[type=checkbox] { all: revert; width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: #1f9d55; }
.check a, .ins a, .set-body a { color: var(--accent); }
.center-link { display: block; margin: 14px auto 0; }
#f-forgot h3, #f-reset h3 { margin-bottom: 6px; }
.brand { text-align: center; margin: 9vh 0 28px; }
.brand h1 { font-size: 44px; margin-top: 14px; }
.brand p { margin: 6px 0 0; }
.logo { width: 132px; height: 132px; margin: 0 auto; }
.logo svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 8px 24px var(--primary-glow)); }

/* ---------- home ---------- */
.top { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.who { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.who strong { font-size: 20px; letter-spacing: -.02em; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; cursor: pointer; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 20px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.35), 0 6px 20px rgba(0,0,0,.3);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero { display: flex; align-items: center; gap: 18px; padding: 22px; overflow: hidden; }
.hero::after { /* marca d'água */
  content: ""; position: absolute; right: -34px; bottom: -44px; width: 170px; height: 170px;
  background: var(--text); -webkit-mask: url(mark-mono.svg) center / contain no-repeat; mask: url(mark-mono.svg) center / contain no-repeat;
  opacity: .09; transform: rotate(-6deg); pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .txt { flex: 1; min-width: 0; }
.hero .lbl { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hero .big-lvl { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin: 2px 0; }
.progress { height: 8px; border-radius: 99px; background: var(--well); overflow: hidden; margin-top: 12px; }
.progress b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-1), var(--good)); transition: width .6s; }

.ring { position: relative; width: 108px; height: 108px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .track { stroke: rgba(var(--ink), .12); }
.ring .val { transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 8px currentColor); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.ring.lg { width: 200px; height: 200px; margin: 10px auto 18px; }
.ring.lg .num { font-size: 60px; }
.ring.lg circle { stroke-width: 14; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { border-radius: 22px; padding: 14px 12px; text-align: center; }
.stat b { display: block; font-size: 24px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 12px; }


.list-card h3 { margin-bottom: 6px; }
#list { list-style: none; margin: 0; padding: 0; }
#list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--edge-soft); }
#list li:first-child { border-top: 0; }
#list li.month { display: block; padding: 18px 2px 6px; border-top: 0; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
#list li.month:first-child { padding-top: 6px; }
#list li.month + li { border-top: 0; }
.list-more { width: 100%; margin-top: 10px; padding: 12px; font-size: 15px; }
#list .pill {
  min-width: 48px; height: 36px; border-radius: 12px; display: grid; place-items: center; padding: 0 8px;
  font-weight: 700; font-variant-numeric: tabular-nums; color: #140b2b;
}
#list .pill.sober { background: rgba(var(--ink), .1); color: var(--muted); font-size: 12px; font-weight: 600; }
#list .meta { flex: 1; min-width: 0; }
#list .meta div { font-weight: 600; font-size: 15px; }
#list .meta small { color: var(--muted); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#list .del { background: none; border: 0; color: rgba(var(--ink), .35); font-size: 20px; cursor: pointer; padding: 4px 6px; }
#list .del:hover { color: var(--bad); }
.empty { color: var(--muted); padding: 10px 0 2px; font-size: 15px; }

/* ---------- tema ---------- */
.theme-card h3 { margin-bottom: 12px; }
.theme-card .seg { margin-bottom: 0; }
.theme-card .seg button { display: flex; align-items: center; justify-content: center; gap: 7px; }
.theme-card svg.i { width: 17px; height: 17px; opacity: .55; transition: opacity .2s, color .2s; }
.theme-card .on svg.i { opacity: 1; }
.theme-card .on .sw-dark { color: #b9b4ff; } .theme-card .on .sw-light { color: #ffc94d; }
.sw-mark { width: 17px; height: 17px; flex: none; background: currentColor; opacity: .55; transition: opacity .2s, color .2s;
  -webkit-mask: url(mark-mono.svg) center / contain no-repeat; mask: url(mark-mono.svg) center / contain no-repeat; }
.theme-card .on .sw-mark { opacity: 1; color: #5ef0b4; }
[data-theme=light] .res-lvl { filter: brightness(.72) saturate(1.4); }
[data-theme=light] .ring .val { filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 50%, transparent)); }
[data-theme=light] .pad.wait, [data-theme=light] .pad.early { color: var(--text); }

/* ---------- banner "Sua brisa em números" ---------- */
.ins-card {
  --pc: #1f9d55;
  position: relative; overflow: hidden; isolation: isolate; cursor: pointer;
  min-height: 156px; margin-bottom: 14px; border-radius: 22px; color: #fff;
  display: flex; align-items: stretch;
  background: linear-gradient(100deg, #0a0a0c 0%, #0a0a0c 42%, #17171b 100%);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.ins-card:active { transform: scale(.985); }
.bn-text { position: relative; z-index: 2; flex: 1; padding: 20px 0 18px 20px; max-width: 62%; display: flex; flex-direction: column; justify-content: center; }
.bn-text h3 { font-size: 22px; line-height: 1.12; font-weight: 700; letter-spacing: -.025em; margin: 0 0 6px; }
.bn-text p { margin: 0 0 14px; font-size: 13px; line-height: 1.35; color: rgba(255,255,255,.66); }
.bn-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px;
  background: #fff; color: #0a0a0c; font-size: 13px; font-weight: 700; }
.bn-cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bn-art { position: absolute; z-index: 1; right: -34px; top: 50%; width: 190px; height: 190px; transform: translateY(-46%) rotate(-8deg); }
.bn-art svg { position: relative; width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 24px rgba(0,0,0,.55)); }
.bn-spot { position: absolute; inset: -30%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--pc) 70%, transparent), color-mix(in srgb, var(--pc) 18%, transparent) 40%, transparent 68%); }
.ins-card::after { /* esfumaça a arte pra dentro do preto, como foto de banner */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #0a0a0c 30%, rgba(10,10,12,.55) 52%, transparent 75%); }
.bn-text { z-index: 3; }

/* ---------- calendário da brisa ---------- */
.cal-card { --cs: 12px; --cg: 3px; }
.cal-wrap { display: flex; gap: 6px; margin-top: 12px; }
.cal-scroll { flex: 1; min-width: 0; overflow-x: auto; padding: 0 0 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cal-scroll::-webkit-scrollbar { display: none; }
#cal { width: max-content; }
.cal-months { display: grid; gap: var(--cg); height: 16px; font-size: 10px; color: var(--muted); }
.cal-months span { white-space: nowrap; }
.cal-wd { display: grid; grid-template-rows: repeat(7, var(--cs)); gap: var(--cg); width: 22px; padding-top: 16px; font-size: 9px; color: var(--muted); flex: none; }
.cal-wd span { line-height: var(--cs); }
.cal-grid { display: grid; grid-template-rows: repeat(7, var(--cs)); grid-auto-flow: column; grid-auto-columns: var(--cs); gap: var(--cg); }
.cal-grid i { border-radius: 3px; background: rgba(var(--ink), .07); cursor: pointer; transition: transform .15s; }
.cal-grid i.s { box-shadow: inset 0 0 0 1.5px rgba(var(--ink), .3); background: transparent; }
.cal-grid i.b { box-shadow: 0 0 6px -1px color-mix(in srgb, currentColor 0%, transparent); }
.cal-grid i.sel { outline: 2px solid var(--text); outline-offset: 1px; transform: scale(1.15); }
.cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.cal-foot #cal-pick { min-width: 0; }
.cal-legend { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.cal-legend small { font-size: 10px; color: var(--muted); margin: 0 3px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; }
.cal-legend i:nth-of-type(1) { background: #5ef0b4; } .cal-legend i:nth-of-type(2) { background: #d2ee63; }
.cal-legend i:nth-of-type(3) { background: #ffc94d; } .cal-legend i:nth-of-type(4) { background: #ff8350; }
.cal-legend i:nth-of-type(5) { background: #f25c9e; }
.vb { margin-top: 4px; }
.vb .gb-bar { height: 96px; }
.ins-tile.rec em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 4px; opacity: .8; }

/* ---------- galera ---------- */
#soc-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 16px max(24px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.soc-btn { position: relative; }
.top .btn.icon + .btn.icon { margin-left: 0; }
.soc-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.soc-card { cursor: pointer; }
.soc-card h3 { margin-bottom: 4px; }
.s-cta { display: block; text-align: center; margin-top: 4px; }
.s-av { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.s-av img { width: 100%; height: 100%; object-fit: cover; }
.s-av.sm { width: 30px; height: 30px; font-size: 13px; }
.s-pill { min-width: 42px; height: 30px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #140b2b; flex: none; font-variant-numeric: tabular-nums; }
.s-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.s-pod { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 18px; background: var(--well); position: relative; min-width: 0; }
.s-pod.me { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--good) 70%, transparent); }
.s-pod > span:nth-child(2) { position: absolute; top: 6px; right: 8px; font-size: 18px; }
.s-pod b { font-size: 22px; letter-spacing: -.03em; margin-top: 4px; } .s-pod small { color: var(--muted); font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-last { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--edge-soft); font-size: 14px; }
.s-last > span:not(.s-av):not(.s-pill) { flex: 1; min-width: 0; }
.s-add { display: flex; gap: 8px; } .s-add input { flex: 1; min-width: 0; } .s-add .btn { width: auto; padding: 0 16px; flex: none; }
.s-myname { color: var(--text); }
.s-list, .s-rank, .s-feed { list-style: none; margin: 0; padding: 0; }
.s-list li, .s-rank li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--edge-soft); }
.s-list li:first-child, .s-rank li:first-child { border-top: 0; padding-top: 0; }
.s-list li > span:not(.s-av):not(.s-pill), .s-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.s-list small, .s-nm small { font-size: 12px; }
.btn.sm { padding: 8px 12px; font-size: 13px; width: auto; flex: none; }
.s-rank li.me .s-nm b { color: var(--good); }
.s-pos { width: 26px; text-align: center; font-weight: 800; color: var(--muted); font-size: 15px; flex: none; font-variant-numeric: tabular-nums; }
.s-feed li { padding: 12px; border-radius: 20px; background: var(--well); margin-bottom: 10px; }
.s-fh { display: flex; align-items: center; gap: 10px; }
.s-fh > span:not(.s-av):not(.s-pill) { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.s-fh small { display: block; font-size: 12px; }
.s-rx { display: flex; gap: 6px; margin-top: 10px; }
.s-rx button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 36px; border-radius: 12px; border: 1px solid var(--edge-soft);
  background: transparent; color: var(--text); font: inherit; font-size: 17px; cursor: pointer; transition: transform .15s cubic-bezier(.3,1.6,.5,1), background .2s; }
.s-rx button i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.s-rx button.on { background: color-mix(in srgb, var(--good) 22%, transparent); border-color: color-mix(in srgb, var(--good) 60%, transparent); transform: scale(1.04); }
.s-rx button:active { transform: scale(.92); }
.s-rx button:disabled { cursor: default; opacity: .85; }
.switch-row { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; }
.switch-row > span { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 15px; } .switch-row small { font-size: 12.5px; line-height: 1.35; }
.switch-row input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.switch { width: 50px; height: 30px; border-radius: 99px; background: rgba(var(--ink), .18); position: relative; flex: none; transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.switch-row input:checked + .switch { background: var(--good); }
.switch-row input:checked + .switch::after { transform: translateX(20px); }

/* ---------- barra de abas ---------- */
body.has-tabbar #app { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
body.has-tabbar .top .btn.icon { display: none; }
.tabbar { position: fixed; z-index: 15; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 456px); height: 66px; border-radius: 26px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 0 6px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--bg) 55%, rgba(255,255,255,.12)), color-mix(in srgb, var(--bg) 70%, transparent)); }
.tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 10.5px; font-weight: 600; cursor: pointer; padding: 6px 0; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.on { color: var(--text); }
.tabbar .tb-main { width: 54px; height: 54px; margin: 0 auto; border-radius: 20px; padding: 0; justify-content: center; color: var(--primary-fg);
  background: var(--primary-bg); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 8px 24px var(--primary-glow); }
.tabbar .tb-main svg { width: 28px; height: 28px; stroke-width: 2.6; }
.tb-badge { position: absolute; top: 0; left: 50%; margin-left: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: #ff3b30; color: #fff;
  font-style: normal; font-size: 10px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }

/* ---------- feed ---------- */
.feed-top { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 4px 14px; }
.feed-top h2 { margin: 0; }
.composer { padding: 14px; }
.cp-row { display: flex; gap: 10px; align-items: flex-start; }
.cp-row .s-av { margin-top: 2px; }
.cp-row textarea { flex: 1; resize: none; min-height: 44px; font: inherit; font-size: 16px; color: var(--text); background: transparent; border: 0; outline: none; padding: 10px 2px; }
.cp-row textarea::placeholder { color: rgba(var(--ink), .45); }
.cp-photo, .cp-brisa { position: relative; margin: 8px 0 0 50px; }
.cp-photo img { max-width: 100%; max-height: 260px; border-radius: 16px; display: block; }
.cp-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.cp-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--edge-soft); }
.cp-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--well); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.cp-count { margin-left: auto; font-size: 12px; }
.cp-actions .btn.sm { margin-left: auto; padding: 9px 18px; }
.cp-count:not(:empty) + .btn.sm { margin-left: 0; }
.bc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; margin: 10px 0 0;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 26%, transparent), color-mix(in srgb, var(--c) 6%, transparent)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.bc-ring { position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.bc-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.bc-ring circle { fill: none; stroke: rgba(var(--ink), .15); stroke-width: 3.4; }
.bc-ring .v { stroke: var(--c); stroke-linecap: round; }
.bc-ring b { font-size: 18px; letter-spacing: -.03em; }
.bc > span { display: flex; flex-direction: column; } .bc > span b { font-size: 17px; } .bc small { color: var(--muted); font-size: 12px; }
.post { padding: 14px; }
.post-h { display: flex; align-items: center; gap: 10px; }
.post-h > span:not(.s-av) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; } .post-h small { font-size: 12px; }
.post-menu { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; padding: 0 6px; }
.post-body { margin: 10px 2px 0; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.post-photo { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 18px; margin-top: 10px; background: var(--well); }
.post .s-rx { margin-top: 12px; }
.post-c { margin-top: 10px; font-size: 14px; }
.post-c ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.post-c li { line-height: 1.4; overflow-wrap: anywhere; } .post-c li small { font-size: 11px; margin-left: 2px; }
.c-del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 4px; }
.c-form { display: flex; gap: 8px; margin-top: 10px; }
.c-form input { flex: 1; min-width: 0; padding: 9px 14px !important; font-size: 14px !important; border-radius: 99px !important; }
.c-form button { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; background: var(--primary-bg); color: var(--primary-fg); font-size: 18px; font-weight: 800; cursor: pointer; }
.feed-auto { padding: 12px 14px; border-radius: 22px; background: var(--well); margin-bottom: 14px; }
.feed-empty { text-align: center; } .feed-empty b { font-size: 17px; }
#share-result { margin-bottom: 0; }

/* ---------- configurações ---------- */
.set-panel { top: auto; max-height: calc(100% - 40px); }
.set-body { padding: 8px 16px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; }
.set-profile { display: flex; align-items: center; gap: 14px; }
.set-profile .who { flex: 1; min-width: 0; }
.set-profile .who strong { font-size: 18px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-profile .who small { font-size: 13px; }
.set-profile .btn { padding: 10px 14px; font-size: 14px; flex: none; }
.avatar.big { width: 56px; height: 56px; cursor: default; color: #fff; }
.avatar.big img { width: 100%; height: 100%; object-fit: cover; }
.btn.danger { width: 100%; color: var(--bad); margin-top: 4px; }
.set-foot { margin: 16px 0 0; opacity: .7; }

/* ---------- plano / paywall ---------- */
.plus-chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .02em;
  color: #08261a; background: linear-gradient(120deg, #5ef0b4, #c6f36b); }
.btn.full { width: 100%; }
.set-plan .btn.primary { margin-top: 6px; }
.set-plan .link { margin-top: 2px; }
.set-data .btn { margin-top: 8px; display: block; text-align: center; text-decoration: none; }
.set-body .card h3 { margin-bottom: 12px; }
.field em { font-style: normal; font-size: 12px; } .field em.ok { color: var(--good); } .field em.warn { color: #ffc94d; }
.email-nudge { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; cursor: pointer; color: var(--text); font: inherit; font-size: 14px;
  padding: 12px 16px; border-radius: 18px; margin-bottom: 14px; }
.email-nudge span { flex: 1; }
.email-nudge svg.i { width: 20px; height: 20px; color: var(--good); } .email-nudge svg.i:last-child { color: var(--muted); }
.cal-card.locked .cal-wrap, .cal-card.locked .cal-foot { filter: blur(5px) saturate(1.2); opacity: .55; pointer-events: none; }
.cal-card { position: relative; }
.cal-lock { position: absolute; inset: 52px 16px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 20px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.cal-lock b { font-size: 18px; } .cal-lock small { color: var(--muted); }
.sheet.modal .pw-panel { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); left: 16px; right: 16px; max-width: 420px; border-radius: 30px; display: block; max-height: calc(100% - 32px); overflow-y: auto; }
.pw-panel { text-align: center; padding: 26px 22px 18px !important; }
.pw-art { width: 96px; height: 96px; margin: 0 auto 6px; filter: drop-shadow(0 10px 24px var(--primary-glow)); }
.pw-art svg { width: 100%; height: 100%; }
.pw-panel h2 { font-size: 30px; margin: 0; } .pw-panel h2 span { color: var(--good); }
.pw-panel > p { margin: 6px 0 14px; }
.pw-list { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; display: grid; gap: 8px; }
.pw-list li svg.i { width: 20px; height: 20px; color: var(--good); margin-top: 1px; }
.pw-list li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--well); font-size: 14px; line-height: 1.35; }
.pw-price { margin-bottom: 4px; } .pw-price b { font-size: 34px; letter-spacing: -.03em; } .pw-price span { color: var(--muted); font-size: 14px; }

/* ---------- planos e convite ---------- */
.pw-plans { display: grid; gap: 8px; margin: 4px 0 6px; text-align: left; }
.pw-plan { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; cursor: pointer; font: inherit; color: var(--text);
  background: var(--well); border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.pw-plan.on { border-color: var(--good); background: color-mix(in srgb, var(--good) 12%, var(--well)); }
.pw-pl { flex: 1; display: flex; flex-direction: column; text-align: left; } .pw-pl b { font-size: 16px; } .pw-pl small { color: var(--muted); font-size: 12.5px; }
.pw-pr { text-align: right; display: flex; flex-direction: column; } .pw-pr b { font-size: 18px; letter-spacing: -.02em; } .pw-pr small { color: var(--muted); font-size: 12px; }
.pw-best { position: absolute; top: -9px; left: 14px; padding: 2px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 800; color: #08261a; background: linear-gradient(120deg, #5ef0b4, #c6f36b); }
.pw-fine { margin: 2px 0 12px; }
.bn-blur { filter: blur(5px); user-select: none; font-weight: 700; color: #fff; }
.bn-taste { position: absolute; z-index: 4; top: 12px; right: 12px; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #08261a; background: linear-gradient(120deg, #5ef0b4, #c6f36b); }
.invite-btn { margin-top: 10px; }
.invite-card { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; border: 0; font: inherit; color: #08261a;
  padding: 14px 16px; border-radius: 22px; margin-bottom: 14px; background: linear-gradient(120deg, #5ef0b4, #c6f36b); }
.invite-card > svg.i { width: 28px; height: 28px; stroke-width: 1.8; } .invite-card > svg.i:last-child { width: 22px; height: 22px; opacity: .7; } .invite-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.invite-card small { font-size: 12.5px; opacity: .8; line-height: 1.3; }
.invite-hello svg.i { width: 22px; height: 22px; color: var(--good); }
.invite-hello { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 20px; margin-bottom: 14px; font-size: 14px; }

/* ---------- modo casal ---------- */
#couple h3 { margin-bottom: 4px; }
#couple p { margin: 6px 0 14px; }
.center { text-align: center; }
.link { background: none; border: 0; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; padding: 4px 0; }
.pair-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair-btns .btn { padding: 13px 10px; font-size: 15px; }
.code { text-align: center; font-size: 44px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; margin: 8px 0 2px; }
.code-input { text-align: center; font-size: 30px !important; letter-spacing: .2em; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.duo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; margin: 14px 0 10px; }
.vs { align-self: center; color: var(--muted); font-size: 20px; }
.duo-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.duo-col strong { font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duo-col small { color: var(--muted); font-size: 13px; }
.duo-av {
  position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); box-shadow: 0 0 0 2px rgba(255,255,255,.3);
}
.duo-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ring.sm { width: 92px; height: 92px; margin: 6px 0 2px; }
.ring.sm .num { font-size: 28px; }
.ring.sm.empty { display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 9px rgba(var(--ink), .12); }
.ring.sm.empty .num { color: var(--muted); }

/* ---------- detalhes (sheet) ---------- */
body.noscroll { overflow: hidden; }
.top .btn.icon + .btn.icon { margin-left: -4px; }
.sheet { position: fixed; inset: 0; z-index: 20; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .3s; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; top: max(28px, env(safe-area-inset-top));
  max-width: 520px; margin: 0 auto; border-radius: 30px 30px 0 0; overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 82%, transparent), color-mix(in srgb, var(--bg) 92%, transparent));
  -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 -10px 50px rgba(0,0,0,.35);
  transform: translateY(100%); transition: transform .38s cubic-bezier(.2,.9,.25,1);
}
.sheet.open .sheet-bg { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet-grab { width: 38px; height: 5px; border-radius: 99px; background: rgba(var(--ink), .3); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 6px 20px; flex: none; }
.sheet-head h2 { margin: 0; font-size: 24px; }
#ins-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 16px max(24px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.ins h3 { margin-bottom: 12px; }
.ins h4 { font-size: 14px; color: var(--muted); font-weight: 600; margin: 16px 0 8px; }
.ins p { margin: 10px 0 0; }
.ins-empty { margin: 0 !important; }
.ins-call { font-size: 15px; line-height: 1.4; }
.ins-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ins-tile { background: var(--well); border-radius: 16px; padding: 12px 8px; text-align: center; min-width: 0; }
.ins-tile b { display: block; font-size: 22px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ins-tile small { color: var(--muted); font-size: 12px; line-height: 1.2; display: block; margin-top: 2px; }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.hbar-l { color: var(--muted); }
.hbar-t { height: 10px; border-radius: 99px; background: var(--well); overflow: hidden; }
.hbar-t i { display: block; height: 100%; border-radius: 99px; }
.hbar-v { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 24px; text-align: right; white-space: nowrap; }
.ins-cmp { display: grid; gap: 0; font-size: 14px; }
.ins-cmp-h, .ins-cmp-r { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; align-items: baseline; padding: 9px 0; }
.ins-cmp-h { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding-top: 0; }
.ins-cmp-r { border-top: 1px solid var(--edge-soft); }
.ins-cmp-r > span { color: var(--muted); }
.ins-cmp-r b { font-variant-numeric: tabular-nums; font-weight: 600; }
.ins-cmp .d { display: block; font-size: 12px; font-weight: 600; margin-top: 2px; }
.ins-cmp .d.up { color: var(--bad); } .ins-cmp .d.down { color: var(--good); }
.gb-head { display: flex; justify-content: space-between; margin: 18px 2px 6px; font-size: 12px; color: var(--muted); }
.gb-head .gb-mid { text-align: right; }
.gb { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; }
.gb-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.gb-col b { font-size: 16px; font-variant-numeric: tabular-nums; }
.gb-bar { width: 100%; height: 110px; display: flex; align-items: flex-end; border-radius: 12px; background: var(--well); overflow: hidden; }
.gb-bar i { width: 100%; border-radius: 8px 8px 4px 4px; transition: height .8s cubic-bezier(.2,.8,.2,1); }
.gb-col small { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.2; white-space: nowrap; }
.gb-col.hit b, .gb-col.hit small { color: var(--text); font-weight: 700; }
.ins-top { list-style: none; margin: 0; padding: 0; }
.ins-top li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--edge-soft); }
.ins-top li:first-child { border-top: 0; padding-top: 0; }
.ins-top .pill { min-width: 44px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #140b2b; flex: none; }
.ins-top div { min-width: 0; }
.ins-top b { display: block; font-size: 15px; }
.ins-top small { color: var(--muted); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- enquadrar foto ---------- */
.sheet.modal .crop-panel {
  top: auto; bottom: max(16px, env(safe-area-inset-bottom)); left: 16px; right: 16px; border-radius: 30px;
  padding: 22px 20px 20px; text-align: center; display: block; max-width: 420px;
}
.crop-panel h2 { margin: 0 0 4px; font-size: 22px; }
.crop-panel p { margin: 0 0 16px; }
.crop-stage {
  position: relative; width: min(100%, 300px); aspect-ratio: 1 / 1; margin: 0 auto; overflow: hidden;
  border-radius: 24px; background: #000; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; left: 50%; top: 50%; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.crop-stage::after { /* escurece fora do círculo */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.85);
}
.crop-zoom { display: flex; align-items: center; gap: 12px; margin: 18px 6px 18px; color: var(--muted); font-size: 20px; }
.crop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.crop-actions .btn { width: 100%; padding: 14px; }

/* ---------- teste ---------- */
.steps { display: flex; gap: 6px; margin: 6px 0 22px; }
.steps i { flex: 1; height: 5px; border-radius: 99px; background: rgba(var(--ink), .15); transition: background .3s; }
.steps i.on { background: var(--text); }
.steps i.done { background: rgba(var(--ink), .5); }
.stage-title { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 4px 6px; }
.stage-h { font-size: 28px; margin: 0 4px 8px; }
.stage-p { color: var(--muted); margin: 0 4px 20px; }

.pad {
  width: 100%; aspect-ratio: 1 / 1; max-height: 58vh; border-radius: 40px; margin: 0 auto 16px;
  display: grid; place-items: center; text-align: center; font-size: 22px; font-weight: 600;
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: background .08s, transform .15s;
}
.pad:active { transform: scale(.985); }
.pad.wait { background: linear-gradient(160deg, rgba(255,90,130,.30), rgba(255,90,130,.12)); }
.pad.go { background: linear-gradient(160deg, rgba(60,240,160,.85), rgba(40,200,140,.7)); color: #06291a; transition: none; }
.pad.early { background: linear-gradient(160deg, rgba(255,190,60,.4), rgba(255,160,40,.2)); }
.pad small { display: block; font-size: 15px; font-weight: 500; opacity: .75; margin-top: 6px; }
.pad .tt-goal { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.03em; }

.problem { text-align: center; font-size: 56px; font-weight: 700; letter-spacing: -.03em; margin: 24px 0 8px; font-variant-numeric: tabular-nums; }
.answer { text-align: center; font-size: 40px; font-weight: 600; min-height: 56px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.answer.wrong { color: var(--bad); animation: shake .3s; }
.answer.right { color: var(--good); }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.keys button {
  height: 64px; border-radius: 22px; border: 1px solid var(--edge-soft); color: var(--text);
  font: inherit; font-size: 26px; font-weight: 500; cursor: pointer;
  background: linear-gradient(160deg, var(--glass-top), var(--glass-bottom)); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25); transition: background .1s, transform .1s;
}
.keys button:active { background: rgba(var(--ink), .2); transform: scale(.95); }
.keys .ghost { visibility: hidden; }
.counter { text-align: center; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

/* Genius */
.genius-status { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: -.02em; min-height: 30px; margin: 4px 0 16px; }
.genius { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 360px; margin: 0 auto 14px; touch-action: manipulation; }
.gpad {
  aspect-ratio: 1 / 1; border-radius: 32px; border: 1px solid var(--edge-soft); cursor: pointer;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), var(--glass-shadow);
  filter: brightness(.5) saturate(.85); transition: transform .12s, box-shadow .12s, filter .12s;
  user-select: none; -webkit-user-select: none;
}
.gpad.green  { --c: #34c759; background: linear-gradient(160deg, #5be27c, #1fa647); }
.gpad.red    { --c: #ff3b30; background: linear-gradient(160deg, #ff6b61, #d9261c); }
.gpad.yellow { --c: #ffcc00; background: linear-gradient(160deg, #ffdc4d, #e0a800); }
.gpad.blue   { --c: #0a84ff; background: linear-gradient(160deg, #4aa6ff, #0466d1); }
.gpad.lit { transform: scale(1.04); filter: brightness(1.2) saturate(1.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 40px var(--c), 0 0 12px var(--c); }
.genius.watch .gpad { pointer-events: none; }
[data-theme=light] .gpad:not(.lit) { filter: brightness(.8) saturate(.55); }
.genius.good .gpad { box-shadow: 0 0 0 3px var(--good); }
.genius.bad { animation: shake .35s; }
.genius.bad .gpad { box-shadow: 0 0 0 3px var(--bad); }

/* ---------- resultado ---------- */
.res-lvl { text-align: center; font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.res-sub { text-align: center; color: var(--muted); margin: 4px 0 20px; }
.metric { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--edge-soft); }
.metric:first-child { border-top: 0; }
.metric > span { color: var(--muted); }
.metric b { font-variant-numeric: tabular-nums; }
.metric .d { font-size: 13px; margin-left: 8px; font-weight: 600; }
.up { color: var(--bad); } .down { color: var(--good); }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  padding: 12px 20px; border-radius: 999px; font-size: 15px; z-index: 10; animation: rise .3s;
  background: var(--toast); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); width: max-content;
}
.toast svg.i { width: 18px; height: 18px; color: var(--good); }
.safety { margin: -6px 12px 0; text-wrap: balance; }
.safety svg.i { width: 15px; height: 15px; margin-right: 5px; vertical-align: -.2em; }
.legal-note { margin-top: 10px; }
.cal-lock svg.i { width: 22px; height: 22px; }
.bn-text p svg.i { width: 14px; height: 14px; margin-right: 4px; vertical-align: -.15em; }
.s-week { list-style: none; margin: 10px 0 0; padding: 0; }
.s-week li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--edge-soft); font-size: 14px; }
.s-week li:first-child { border-top: 0; padding-top: 2px; }
.s-week li > span:not(.s-av):not(.s-pill) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.s-week small { color: var(--muted); font-size: 12px; }
.soc-card .row .muted { display: inline-flex; align-items: center; gap: 2px; }
.s-rx svg.i { width: 18px; height: 18px; }
.c-form button, .del { display: grid; place-items: center; }
.ins h3 + small svg.i, .row small svg.i { width: 16px; height: 16px; }

@media (min-width: 700px) {
  #app { padding-top: 40px; }
}

/* ---------- insight da IA ---------- */
.ai-card { margin-top: 18px; text-align: left; position: relative; overflow: hidden; }
.ai-card::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 140%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, #c59bff 26%, transparent), transparent); }
.ai-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; position: relative; }
.ai-h svg.i { width: 18px; height: 18px; color: #c59bff; }
.ai-body { position: relative; min-height: 22px; }
.ai-body p { margin: 0; font-size: 15.5px; line-height: 1.45; }
.ai-card.locked .ai-body p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.ai-load { display: inline-flex; gap: 5px; padding: 6px 0; }
.ai-load i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .3; animation: aiDot 1.1s infinite ease-in-out; }
.ai-load i:nth-child(2) { animation-delay: .15s; } .ai-load i:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 40% { opacity: 1; transform: translateY(-3px); } }
.ai-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ai-list li { padding: 12px 14px; border-radius: 18px; background: var(--well); }
.ai-list p { margin: 0 0 4px; font-size: 14.5px; line-height: 1.45; }
.ins h3 svg.i { width: 18px; height: 18px; color: #c59bff; vertical-align: -.15em; margin-right: 4px; }

/* ---------- jogo da memória ---------- */
.mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; max-width: 360px; margin: 0 auto 14px; touch-action: manipulation; perspective: 900px; }
.mem-card { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d;
  transition: transform .32s cubic-bezier(.3,.9,.3,1.2); -webkit-tap-highlight-color: transparent; }
.mem-card.up { transform: rotateY(180deg); cursor: default; }
.mem-back, .mem-front { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mem-back { background: linear-gradient(150deg, color-mix(in srgb, var(--good) 38%, var(--well)), var(--well)); border: 1px solid var(--edge-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px -8px rgba(0,0,0,.5); }
.mem-back::after { content: ""; width: 42%; height: 42%; background: rgba(var(--ink), .22);
  -webkit-mask: url(mark-mono.svg) center / contain no-repeat; mask: url(mark-mono.svg) center / contain no-repeat; }
.mem-front { transform: rotateY(180deg); background: color-mix(in srgb, var(--c) 16%, var(--well)); border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent); color: var(--c); }
.mem-front svg.i { width: 46%; height: 46%; stroke-width: 2.2; }
.mem-card.done .mem-front { background: color-mix(in srgb, var(--c) 30%, var(--well)); box-shadow: 0 0 22px -4px var(--c); animation: memPop .35s; }
@keyframes memPop { 50% { transform: rotateY(180deg) scale(1.08); } }
.mem.bad .mem-card.up:not(.done) .mem-front { border-color: var(--bad); }
.ai-ask { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ai-ask:disabled { opacity: .6; cursor: default; }
.ai-list:empty { display: none; }

/* ---------- postar o calendário ---------- */
.cal-post { display: inline-flex; align-items: center; gap: 6px; }
.cal-post svg.i { width: 16px; height: 16px; }
.cal-subline { display: block; margin: -4px 0 10px; }
.sheet.modal .post-panel { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); left: 16px; right: 16px; max-width: 400px; border-radius: 30px; padding: 16px !important;
  display: flex; flex-direction: column; gap: 14px; max-height: calc(100% - 32px); }
.post-frame { flex: 1; min-height: 0; display: grid; place-items: center; }
.post-frame img { display: block; max-width: 100%; max-height: min(70vh, 640px); aspect-ratio: 9 / 16; border-radius: 20px; background: #04110b; box-shadow: 0 18px 50px -12px rgba(0,0,0,.6); object-fit: contain; }
.post-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.post-actions .btn { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font-size: 16px; padding-left: 12px; padding-right: 12px; }

/* ---------- admin vendo como outra pessoa ---------- */
.imp-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: #ffc94d; color: #2a1d00; font-size: 14px; }
.imp-bar span { flex: 1; } .imp-bar svg.i { width: 18px; height: 18px; }
.imp-bar button { border: 0; border-radius: 99px; padding: 7px 12px; background: #2a1d00; color: #ffc94d; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.admin-link { display: block; text-align: center; text-decoration: none; margin-bottom: 8px; }

/* ---------- onboarding ---------- */
.onb { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); opacity: 0; transition: opacity .3s; padding: max(16px, env(safe-area-inset-top)) 0 max(20px, env(safe-area-inset-bottom)); }
.onb::before { content: ""; position: absolute; inset: -20%; pointer-events: none; opacity: var(--blob-alpha);
  background: radial-gradient(40% 35% at 20% 15%, var(--blob-1), transparent 70%), radial-gradient(40% 35% at 85% 60%, var(--blob-2), transparent 70%),
              radial-gradient(45% 40% at 30% 100%, var(--blob-3), transparent 70%); filter: blur(30px); }
.onb.open { opacity: 1; }
.onb-skip { position: relative; z-index: 1; align-self: flex-end; margin-right: 16px; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 8px 10px; cursor: pointer; }
.onb-track { position: relative; z-index: 1; flex: 1; display: flex; transition: transform .45s cubic-bezier(.2,.9,.25,1); touch-action: pan-y; }
.onb-step { flex: 0 0 100%; max-width: 100%; padding: 0 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-height: 100%; overflow-y: auto; }
.onb-step > * { width: 100%; max-width: 420px; }
.onb-step h2 { font-size: 32px; letter-spacing: -.03em; margin: 8px auto 10px; }
.onb-step p { font-size: 17px; line-height: 1.45; color: var(--muted); margin: 0 auto 10px; } .onb-step p b { color: var(--text); }
.onb-art { width: 150px !important; height: 150px; margin-bottom: 8px; filter: drop-shadow(0 16px 30px var(--primary-glow)); animation: onbFloat 4s ease-in-out infinite; }
.onb-art.small { width: 104px !important; height: 104px; }
.onb-art svg { width: 100%; height: 100%; }
@keyframes onbFloat { 50% { transform: translateY(-8px) rotate(-3deg); } }
.onb-how { list-style: none; padding: 0; margin: 6px auto 18px; display: grid; gap: 10px; text-align: left; width: 100%; }
.onb-how li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; background: var(--well); }
.onb-how li > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; background: var(--primary-bg); color: var(--primary-fg); }
.onb-how b { display: block; font-size: 16px; } .onb-how small { color: var(--muted); font-size: 14px; }
.onb-tests { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .onb-tests svg.i { width: 15px; height: 15px; color: var(--good); margin-left: 4px; }
.onb-tests svg.i:first-child { margin-left: 0; }
.onb-levels { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.onb-levels span { padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 700; color: #08261a; background: var(--c); }
.onb-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 10px; }
.onb-themes button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 8px 14px; border-radius: 22px; cursor: pointer; font: inherit; font-weight: 700; color: var(--text);
  background: var(--well); border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.onb-themes button.on { border-color: var(--good); transform: translateY(-3px); }
.onb-themes button svg.i { width: 18px; height: 18px; color: var(--muted); } .onb-themes button.on svg.i { color: var(--good); }
.pv { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; display: block; }
.pv b, .pv s { position: absolute; left: 12%; right: 12%; border-radius: 8px; }
.pv b { top: 14%; height: 34%; } .pv s { top: 56%; height: 14%; border-radius: 99px; }
.pv-green { background: radial-gradient(80% 60% at 20% 10%, #0f8a4f, transparent), radial-gradient(70% 60% at 90% 80%, #86d13b80, transparent), #04110b; }
.pv-green b { background: rgba(255,255,255,.14); } .pv-green s { background: #dff7e7; }
.pv-dark { background: radial-gradient(80% 60% at 20% 10%, #2c2c34, transparent), #000; }
.pv-dark b { background: rgba(255,255,255,.1); } .pv-dark s { background: #f5f5f7; }
.pv-light { background: radial-gradient(80% 60% at 20% 10%, #b7a0ff, transparent), radial-gradient(70% 60% at 90% 80%, #ffb1d0, transparent), #f1eef9; }
.pv-light b { background: rgba(255,255,255,.7); } .pv-light s { background: #17122b; }
.onb-safe { font-size: 14px !important; margin-top: 14px !important; text-wrap: balance; }
.onb-safe svg.i { width: 16px; height: 16px; margin-right: 5px; vertical-align: -.2em; }
.onb-foot { position: relative; z-index: 1; padding: 0 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.onb-foot .btn { width: 100%; max-width: 420px; margin: 0; }
.onb-dots { display: flex; gap: 8px; } .onb-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(var(--ink), .25); transition: width .3s, background .3s; }
.onb-dots i.on { width: 24px; background: var(--good); }

/* ---------- indique e ganhe ---------- */
.ref-card { border-radius: 24px; padding: 16px; margin-bottom: 14px; color: #08261a; background: linear-gradient(120deg, #5ef0b4, #c6f36b); }
.ref-top { display: flex; gap: 12px; align-items: flex-start; }
.ref-top svg.i { width: 28px; height: 28px; stroke-width: 1.8; flex: none; }
.ref-top b { font-size: 18px; display: block; } .ref-top small { font-size: 12.5px; opacity: .8; line-height: 1.35; }
.ref-bal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 12px; }
.ref-bal > div { background: rgba(255,255,255,.4); border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; }
.ref-bal small { font-size: 11.5px; font-weight: 700; opacity: .7; } .ref-bal b { font-size: 17px; letter-spacing: -.02em; }
.ref-acts { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; }
.ref-acts .btn { white-space: nowrap; margin: 0; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; }
.ref-share { background: #08261a; color: #c6f36b; box-shadow: none; }
.ref-go { background: rgba(255,255,255,.65); color: #08261a; box-shadow: none; } .ref-go:disabled { opacity: .5; cursor: default; }
.ref-note { margin: 10px 0 0; font-size: 13px; line-height: 1.35; }
.ref-form h3 { margin-bottom: 2px; } .ref-form select { width: 100%; }
.ref-form-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; } .ref-form-acts .btn { margin: 0; }
.ref-amt { color: var(--good); }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.ref-share { transition: background .25s, color .25s; }
.ref-share.done { background: #fff; color: #0f8a4f; }
#s-copy.done { color: var(--good); text-decoration: none; }
#s-copy svg.i { width: 14px; height: 14px; vertical-align: -.15em; }
.legal-note a { color: var(--text); text-underline-offset: 2px; }
.ai-head { display: block; font-size: 15px; margin-bottom: 2px; }

/* ---------- sensação de jogo ---------- */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.res-lvl.reveal { opacity: 0; transform: scale(.7); transition: opacity .35s, transform .45s cubic-bezier(.3,1.6,.5,1); }
.res-lvl.reveal.in { opacity: 1; transform: none; }
.ring.lg .num { font-variant-numeric: tabular-nums; }
.wins { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 14px; }
.win { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; font-weight: 800; font-size: 14px; color: #08261a;
  background: linear-gradient(120deg, #5ef0b4, #c6f36b); opacity: 0; transform: translateY(10px) scale(.8); animation: winIn .5s cubic-bezier(.3,1.6,.5,1) forwards; }
.win svg.i { width: 16px; height: 16px; }
@keyframes winIn { to { opacity: 1; transform: none; } }
.pad.hit { animation: padHit .25s ease-out; }
@keyframes padHit { 0% { transform: scale(.97); } 60% { transform: scale(1.02); } 100% { transform: none; } }
.ms-pop { display: inline-block; font-size: 44px; font-weight: 900; letter-spacing: -.03em; animation: msPop .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes msPop { from { transform: scale(.5); opacity: 0; } }
.genius-status.pulse { animation: statusPulse .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes statusPulse { 40% { transform: scale(1.18); color: var(--good); } }
.mem-card:active:not(.up) { transform: scale(.94); }
.btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .win, .res-lvl.reveal, .ms-pop, .pad.hit, .genius-status.pulse { animation: none !important; transition: none !important; opacity: 1; transform: none; } }
.calib-hint { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; cursor: pointer; color: var(--text); font: inherit; font-size: 14px;
  padding: 12px 16px; border-radius: 18px; margin: -4px 0 14px; }
.calib-hint span { flex: 1; } .calib-hint svg.i { width: 20px; height: 20px; color: var(--good); } .calib-hint svg.i:last-child { color: var(--muted); }
.res-note { max-width: 340px; margin: 8px auto 0; text-align: center; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ---------- bateria: atenção dividida ---------- */
.da { display: flex; flex-direction: column; gap: 12px; touch-action: none; user-select: none; -webkit-user-select: none; }
.da-top { display: flex; align-items: center; justify-content: space-between; }
.da-goal { font-size: 18px; font-weight: 700; } .da-goal b { font-size: 30px; color: var(--good); margin-left: 6px; }
.da-clock { border: 1.5px solid var(--edge); background: var(--well); color: var(--text); font: inherit; font-weight: 800; font-size: 17px; padding: 10px 18px; border-radius: 99px; cursor: pointer; }
.da-clock.done { background: var(--good); color: #08261a; border-color: transparent; }
.da-field { position: relative; height: min(48vh, 420px); border-radius: 28px; background: var(--well); border: 1px solid var(--edge-soft); overflow: hidden; touch-action: none; }
.da-dot { position: absolute; left: 0; top: 0; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c59bff 55%, #8f6bff);
  box-shadow: 0 0 0 6px rgba(197,155,255,.18); transition: box-shadow .15s; will-change: transform; }
.da-dot.on { box-shadow: 0 0 0 8px rgba(94,240,180,.5), 0 0 30px rgba(94,240,180,.6); }
.da-hint { position: absolute; inset: auto 0 14px; text-align: center; font-size: 14px; color: var(--muted); pointer-events: none; }
.da-c { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; font-style: normal; font-size: 34px; font-weight: 900; color: var(--text); opacity: 0; transition: opacity .08s; }
.da-c.on { opacity: 1; }
.da-c[data-c="0"] { left: 8px; top: 8px; } .da-c[data-c="1"] { right: 8px; top: 8px; } .da-c[data-c="2"] { left: 8px; bottom: 8px; } .da-c[data-c="3"] { right: 8px; bottom: 8px; }
.da-hit { position: relative; margin: 0; }
.pop-text { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); font-weight: 900; color: var(--good); pointer-events: none; animation: popUp .9s ease-out forwards; }
@keyframes popUp { to { transform: translate(-50%, -34px); opacity: 0; } }

/* ---------- bateria: parar a tempo ---------- */
.ss { display: flex; flex-direction: column; align-items: center; gap: 14px; user-select: none; -webkit-user-select: none; }
.ss-arrow { width: 170px; height: 170px; border-radius: 40px; display: grid; place-items: center; background: var(--well); border: 2px solid transparent; transition: background .06s; }
.ss-arrow svg.i { width: 120px; height: 120px; stroke-width: 3; color: var(--text); }
.ss-arrow.show { background: color-mix(in srgb, var(--good) 22%, var(--well)); }
.ss-arrow.stop { background: rgba(255,80,110,.32); border-color: #ff5c7a; } .ss-arrow.stop svg.i { color: #ff5c7a; }
.ss-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: 6px; }
.ss-btn { height: 120px; border-radius: 28px; border: 0; background: var(--well); color: var(--text); cursor: pointer; display: grid; place-items: center; touch-action: manipulation; }
.ss-btn svg.i { width: 54px; height: 54px; stroke-width: 2.6; } .ss-btn.hit { background: color-mix(in srgb, var(--good) 30%, var(--well)); transform: scale(.97); }

/* ---------- bateria: equilíbrio ---------- */
.pad.bal { background: linear-gradient(160deg, rgba(185,180,255,.25), rgba(185,180,255,.08)); cursor: default; }
#mode-hint.warn { color: #ffc94d; }

/* ---------- olhinhos que mostram a nota ---------- */
.eyes { display: flex; gap: 6%; justify-content: center; --white: #f3fff6; --amp: 2; --wander: 7s; --blink: 4s; --pupil: 1; }
.eye { flex: 1 1 0; min-width: 0; height: auto; display: block; overflow: visible; }
.eye-white { fill: var(--white); transition: fill .3s; }
.eye-look { animation: eyeWander var(--wander) ease-in-out infinite; animation-delay: calc(var(--i) * -0.15s); }
.eye-pupil { transform-box: fill-box; transform-origin: center; transform: scale(var(--pupil)); }
.eye-blink { transform-box: view-box; transform-origin: 50% 0; transform: scaleY(0); animation: eyeBlink var(--blink) ease-in-out infinite; }
.eyes.heavy .eye-blink { animation-name: eyeBlinkHeavy; }
@keyframes eyeWander {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(calc(var(--amp) * 1px), calc(var(--amp) * -0.25px)); }
  45% { transform: translate(calc(var(--amp) * 0.2px), calc(var(--amp) * 0.45px)); }
  70% { transform: translate(calc(var(--amp) * -1px), calc(var(--amp) * -0.1px)); }
}
@keyframes eyeBlink { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
@keyframes eyeBlinkHeavy { 0%, 80%, 100% { transform: scaleY(0); } 86%, 90% { transform: scaleY(1); } }
.res-eyes { width: 132px; margin: -6px auto 4px; }
.lvl-row { display: flex; align-items: center; gap: 10px; }
.hero-eyes { width: 58px; flex: none; }
@media (prefers-reduced-motion: reduce) { .eye-look, .eye-blink { animation: none !important; } }

.onb-demo { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 22px; background: var(--well); text-align: left; }
.onb-demo .eyes { width: 96px; flex: none; }
.onb-demo b { display: block; font-size: 20px; transition: color .3s; } .onb-demo small { color: var(--muted); font-size: 13px; line-height: 1.35; }
/* computador: o onboarding vira um cartão centralizado em vez de tela cheia esticada */
@media (min-width: 700px) {
  .onb { padding: 40px 0; align-items: center; justify-content: center; }
  .onb-skip { position: absolute; top: 24px; right: 32px; }
  .onb-track { flex: 0 1 auto; width: 100%; max-height: 640px; }
  .onb-foot { margin-top: 24px; width: 100%; }
}
.debug-card h3 { display: flex; align-items: center; gap: 8px; }
.dbg-group { margin-top: 12px; } .dbg-group small { color: var(--muted); font-size: 12px; display: block; margin-bottom: 6px; }
.dbg-btns { display: flex; flex-wrap: wrap; gap: 6px; } .dbg-btns .btn { margin: 0; }
.dbg-raw { margin: 0; font: 12px/1.45 ui-monospace, monospace; white-space: pre-wrap; word-break: break-word; color: var(--text); }
.da-goal small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: -2px; }
.da-clock { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; padding: 9px 14px; }
.da-clock svg.i { width: 17px; height: 17px; }
kbd { font: 700 11px ui-monospace, monospace; padding: 2px 6px; border-radius: 6px; background: rgba(var(--ink), .14); margin-left: 6px; vertical-align: 2px; }
.ss-tip { margin: 0; font-size: 14px; color: var(--muted); text-align: center; } .ss-tip b { color: #ff5c7a; }

/* ---------- joguinhos: cara de jogo (placar, barra de tempo, 3-2-1) ---------- */
.stage-p .hl { color: var(--good); font-size: 1.25em; } .stage-p .red, .chip .red { color: #ff5c7a; }
.game-hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: var(--well); font-weight: 700; font-size: 15px; }
.chip b { font-size: 22px; color: var(--good); line-height: 1; }
.hud-score { font-weight: 900; font-size: 18px; color: var(--good); font-variant-numeric: tabular-nums; min-height: 22px; }
.hud-score.bump { animation: hudBump .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes hudBump { 40% { transform: scale(1.35); } }
.game-bar { width: 100%; height: 6px; border-radius: 99px; background: rgba(var(--ink), .1); overflow: hidden; }
.game-bar i { display: block; height: 100%; background: linear-gradient(90deg, #5ef0b4, #c6f36b); transform-origin: left; transition: transform .2s linear; }
.cd { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 30; pointer-events: none; font-size: 64px; white-space: nowrap; font-weight: 900; color: #fff;
  text-shadow: 0 6px 40px rgba(0,0,0,.5); }
.cd.go { animation: cdIn .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes cdIn { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 60% { opacity: 1; } to { transform: translate(-50%, -50%) scale(1); } }
.ss-msg { min-height: 30px; font-size: 22px; font-weight: 900; opacity: 0; }
.ss-msg.good { color: var(--good); } .ss-msg.bad { color: #ff5c7a; }
.ss-msg.pop { animation: msgPop .7s ease-out forwards; }
@keyframes msgPop { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; transform: scale(1.1); } 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.pop-text.bad { color: #ff5c7a; }
.da-field { height: min(46vh, 400px); }
.res-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.res-actions .btn { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.res-actions svg.i { width: 18px; height: 18px; }
