/* ownership: product */
/* BeefFi v3 "claro" — linguagem de fintech clara e limpa: fundo cinza muito claro, folha branca arredondada,
   abas em pilula, acoes em circulos, banners em carrossel, aviso flutuante preto e barra inferior flutuante com
   botao preto da acao principal. Carregado depois de styles.css e styles-v2.css: troca as variaveis (claro por
   padrao, escuro por [data-theme='dark']) e redesenha os componentes em cima delas.
   O curral 3D e as cartas continuam escuros de proposito: sao "ilhas" que reaplicam as variaveis escuras. */

/* ── Variaveis ──────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --page: #f3f3f5;
  --surface: #ffffff;
  --tile: #f3f3f5;
  --tile-2: #e8e8ec;
  --line: rgba(19, 19, 22, 0.08);
  --line-2: rgba(19, 19, 22, 0.14);
  --text: #131316;
  --soft: #6e6e77;
  --faint: #a2a2aa;
  --ink: #17171a;
  --on-ink: #ffffff;
  --ink-soft: #8f8f97;
  --lime: #c6f135;
  --on-lime: #1a2400;
  --lime-ink: #bfea33;
  --green: #16a34a;
  --green-2: #12924a;
  --green-deep: #0f7a3d;
  --gold: #e0a100;
  --gold-2: #9a6a00;
  --gold-deep: #7a5400;
  --red: #dc2626;
  --blue: #0284c7;
  --pos-bg: #e4f6e9;
  --warn-bg: #fcf1d2;
  --neg-bg: #fde7e7;
  --info-bg: #e2f2fb;
  --bg: var(--page);
  --bg-2: var(--surface);
  --card: var(--surface);
  --card-2: var(--surface);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: none;
  --float: 0 10px 30px -12px rgba(19, 19, 22, 0.22), 0 2px 6px -2px rgba(19, 19, 22, 0.08);
  --mono: var(--sans);
  --nav-h: 68px;
  --gutter: clamp(18px, 5.4vw, 24px);
}
:root[data-theme='dark'],
.curral-card, .card-stage, .ob-pen, .bn {
  --page: #0a0c12;
  --surface: #12151d;
  --tile: rgba(255, 255, 255, 0.07);
  --tile-2: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f4f7;
  --soft: #9a9ba6;
  --faint: #6c6d78;
  --ink: #f3f4f7;
  --on-ink: #101116;
  --ink-soft: #6c6d78;
  --on-lime: #1a2400;
  --lime-ink: #c6f135;
  --green: #22c55e;
  --green-2: #4ade80;
  --green-deep: #15803d;
  --gold: #f5c542;
  --gold-2: #ffd76a;
  --gold-deep: #a8760c;
  --red: #f87171;
  --blue: #38bdf8;
  --pos-bg: rgba(34, 197, 94, 0.16);
  --warn-bg: rgba(245, 197, 66, 0.16);
  --neg-bg: rgba(248, 113, 113, 0.16);
  --info-bg: rgba(56, 189, 248, 0.16);
  --float: 0 18px 36px -14px rgba(0, 0, 0, 0.8);
}
:root[data-theme='dark'] { color-scheme: dark; }
/* Dentro das ilhas escuras os numeros tecnicos voltam para a fonte monoespacada. */
.curral-card, .card-stage { --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; color: var(--text); }

/* ── Base ───────────────────────────────────────────────────────────────── */
html { background: var(--page); }
body { background: var(--page); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
:focus-visible { outline-color: var(--text); }
.app { background: var(--page); }
@media (min-width: 520px) { .app { border-inline: 1px solid var(--line); background: var(--page); } }
.ico { stroke-width: 1.75; }

.sim-banner { padding: calc(7px + env(safe-area-inset-top)) 12px 0; color: var(--soft); font-weight: 600; letter-spacing: 0.03em; background: none; border: 0; }
.sim-banner i { background: var(--gold); }

/* ── Cabecalho: avatar + saudacao + icones de linha ─────────────────────── */
.hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px var(--gutter) 6px; }
.hd-me { display: flex; align-items: center; gap: 11px; min-width: 0; text-align: left; }
.hd-hello { display: flex; flex-direction: column; min-width: 0; line-height: 1.22; }
.hd-hello small { font-size: 14px; font-weight: 500; color: var(--text); }
.hd-hello b { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-actions { display: flex; align-items: center; gap: 2px; flex: none; margin-right: -8px; }
.hd-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background 0.2s, transform 0.15s var(--ease); }
.hd-btn .ico { width: 22px; height: 22px; stroke-width: 1.7; }
.hd-btn:active { background: var(--tile-2); transform: scale(0.92); }
.hd-dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: #ef3b3b; border: 1.5px solid var(--page); }
.avatar { width: 38px; height: 38px; border-radius: 50%; font-weight: 700; font-size: 14px; color: var(--on-lime); background: radial-gradient(circle at 32% 28%, #e9ff9a, var(--lime) 55%, #8fcf1a); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-2); flex: none; }
.avatar.big { width: 54px; height: 54px; border-radius: 50%; font-size: 18px; }
.who { color: var(--soft); font-weight: 600; }

/* ── Abas em pilula ─────────────────────────────────────────────────────── */
.pilltabs { display: flex; align-items: center; gap: 2px; padding: 22px var(--gutter) 14px; overflow-x: auto; scrollbar-width: none; }
.pilltabs::-webkit-scrollbar { display: none; }
.pilltabs button, .pilltabs a { min-height: 31px; padding: 0 13px; border-radius: 999px; font-size: 15.5px; font-weight: 500; color: var(--soft); white-space: nowrap; transition: background 0.25s var(--ease), color 0.2s; }
.pilltabs .on { color: var(--on-ink); background: var(--ink); font-weight: 600; box-shadow: 0 6px 14px -8px rgba(19, 19, 22, 0.55); }
.tabs { display: flex; gap: 2px; padding: 0; background: none; border: 0; border-radius: 0; }
.tabs button { flex: none; min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--soft); }
.tabs button.on { color: var(--on-ink); background: var(--ink); font-weight: 600; box-shadow: none; }

/* ── Folha branca arredondada com o conteudo ────────────────────────────── */
main.view { gap: 18px; margin-top: 4px; padding: 26px var(--gutter) calc(var(--nav-h) + 54px + env(safe-area-inset-bottom)); background: var(--surface); border-radius: 28px 28px 0 0; min-height: calc(100dvh - 118px); box-shadow: 0 -1px 0 var(--line); }
.hd + .offline-bar + main.view { margin-top: 12px; }
.page-head { align-items: center; }
.title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.subtitle { color: var(--soft); font-size: 14px; font-weight: 500; }
.section, .sec { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; text-transform: none; color: var(--text); margin: 10px 0 -6px; }
.section-row { margin: 10px 0 -6px; }
.section-row .section { margin: 0; }
.link { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.back { color: var(--text); font-weight: 600; }
.label { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--soft); }
.label .ico { color: var(--text); }
.hello { font-weight: 600; }
.num { font-weight: 700; letter-spacing: -0.01em; }
.big { font-weight: 700; letter-spacing: -0.02em; }
.soft b { font-weight: 600; }
.green-text { color: var(--green-2); }
.gold-text { color: var(--gold-2); }
.mono-small { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.empty, .empty-art { border-color: var(--line-2); }
.empty a { color: var(--text); text-decoration: underline; }

/* ── Cartoes ────────────────────────────────────────────────────────────── */
.card { padding: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.card.flat { background: var(--tile); border-color: transparent; }
.card.glass { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--line); }
.card.gold { background: var(--surface); border-color: var(--line); }
.card.hero { background: var(--tile); border-color: transparent; padding: 20px; }
.hero-glow { display: none; }
.tap:active { border-color: var(--line-2); }
.list > .row { padding: 12px 0; font-size: 14px; }
.badge { padding: 5px 10px; font-size: 11.5px; font-weight: 600; color: var(--soft); background: var(--tile); border: 0; }
.badge.green { color: var(--green-2); background: var(--pos-bg); }
.badge.gold { color: var(--gold-2); background: var(--warn-bg); }
.badge.red { color: var(--red); background: var(--neg-bg); }
.delta { font-weight: 700; border-radius: 999px; padding: 5px 10px; }
.delta.up { color: var(--green-2); background: var(--pos-bg); }
.delta.down { color: var(--red); background: var(--neg-bg); }
.delta.sm { border-radius: 999px; }

.bar { height: 7px; background: var(--tile-2); }
.bar i { background: var(--ink); box-shadow: none; }
.bar.gold i { background: var(--lime); box-shadow: none; }
.bar.blue i { background: var(--blue); box-shadow: none; }
.ring-track { stroke: var(--tile-2); }
.ring-value { stroke: var(--ink); }
.ring.tone-gold .ring-value { stroke: #9ecb12; }
.level-ring b { font-weight: 700; color: var(--text); }
.level-name { font-weight: 700; }
.chart-wrap { margin: 0 -18px; }

/* ── Botoes, chips e campos ─────────────────────────────────────────────── */
.btn { min-height: 52px; border-radius: 999px; font-weight: 600; font-size: 15.5px; color: var(--on-ink); background: var(--ink); box-shadow: none; }
.btn:active { transform: scale(0.98); box-shadow: none; }
.btn[disabled] { filter: none; opacity: 0.35; }
.btn.gold { color: var(--on-lime); background: var(--lime); box-shadow: none; }
.btn.gold:active { box-shadow: none; }
.btn.ghost { color: var(--text); background: var(--tile); border: 0; box-shadow: none; }
.btn.small { min-height: 42px; border-radius: 999px; font-size: 14px; }
.btn-link { color: var(--soft); font-weight: 600; }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text); background: var(--tile); white-space: nowrap; flex: none; }
.pill-btn.lime { color: var(--on-lime); background: var(--lime); }
.pill-btn.ink { color: var(--on-ink); background: var(--ink); }

.chips.scroll, .carousel, .medal-row { margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.chip { min-height: 36px; padding: 0 14px; font-size: 13.5px; font-weight: 600; color: var(--text); background: var(--tile); border: 0; }
.chip.on { color: var(--on-ink); background: var(--ink); border: 0; }
.chip.solid { color: #fff; background: rgba(10, 12, 18, 0.72); }
.dot.gold { background: var(--lime); box-shadow: 0 0 8px var(--lime); }

.field { font-size: 13px; font-weight: 500; }
.field input, .field select { min-height: 52px; background: var(--tile); border: 1.5px solid transparent; font-weight: 600; }
.field input:focus, .field select:focus { border-color: var(--text); box-shadow: none; }
.field input.money, input.money { font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
input[type='range']::-webkit-slider-runnable-track { height: 6px; background: var(--tile-2); }
input[type='range']::-moz-range-track { height: 6px; background: var(--tile-2); }
input[type='range']::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -10px; background: var(--ink); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 4px 10px -2px rgba(19, 19, 22, 0.35); }
input[type='range']::-moz-range-thumb { width: 20px; height: 20px; background: var(--ink); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }

/* ── Inicio: saldo, faixa de cartoes, acoes, banners, "Sua conta" ────────── */
.bal { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -2px; }
.bal-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bal-value { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; white-space: nowrap; }
.bal-note { font-size: 12.5px; color: var(--soft); }
.bal > .ico { width: 24px; height: 24px; stroke-width: 2.2; }
.masked { letter-spacing: 0.06em; font-size: 0.78em; vertical-align: 0.08em; }

.strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: -4px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip-card { flex: 0 0 calc(100% - 44px); scroll-snap-align: start; display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 9px 16px; border-radius: 18px; background: var(--tile); transition: transform 0.18s var(--ease); }
.strip-card:active { transform: scale(0.985); }
.strip-ico { width: 36px; height: 36px; display: grid; place-items: center; flex: none; color: var(--text); }
.strip-ico .coin.sm { width: 32px; height: 32px; }
.strip-ico .ico { width: 26px; height: 26px; }
.strip-txt { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.strip-txt small { font-size: 13.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-txt b { font-size: 15.5px; font-weight: 500; }
.strip-card > .ico { width: 18px; height: 18px; stroke-width: 2.2; }

.acts { display: flex; gap: 0; overflow-x: auto; margin: 14px calc(var(--gutter) * -1) 0; padding: 0 10px 6px; scrollbar-width: none; }
.acts::-webkit-scrollbar { display: none; }
.act { flex: 0 0 calc((min(100vw, 480px) - 20px) / 5); display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; line-height: 1.2; text-align: center; color: #4b4b53; }
:root[data-theme='dark'] .act { color: var(--soft); }
.act > span:last-child { max-width: 74px; }
.act-disc { position: relative; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: var(--tile); transition: transform 0.16s var(--ease), background 0.2s; }
.act-disc .ico { width: 23px; height: 23px; stroke-width: 1.8; }
.act:active .act-disc { transform: scale(0.92); background: var(--tile-2); }
.act-new { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 1px 8px 2px; border-radius: 999px; font-size: 11.5px; font-weight: 600; font-style: normal; line-height: 1.3; color: var(--on-lime); background: var(--lime); white-space: nowrap; }
.quick { display: flex; gap: 0; }
.quick a { flex: 1; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--soft); }
.quick span { width: 52px; height: 52px; border-radius: 50%; color: var(--text); background: var(--tile); border: 0; box-shadow: none; }
.quick span.hot { color: var(--lime-ink); background: #17171a; border: 0; box-shadow: none; }
.quick a:active span { transform: scale(0.92); }

.banners { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 8px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.bn { position: relative; flex: 0 0 calc(100% - 108px); min-width: 250px; height: 140px; scroll-snap-align: start; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 14px; border-radius: 18px; overflow: hidden; text-align: left; color: #fff; background: #111318 center / cover no-repeat; isolation: isolate; transition: transform 0.18s var(--ease); }
.bn:active { transform: scale(0.985); }
.bn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 9, 12, 0) 20%, rgba(8, 9, 12, 0.62) 100%), linear-gradient(90deg, rgba(8, 9, 12, 0.5), rgba(8, 9, 12, 0) 62%); }
.bn-title { font-size: 15.5px; font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; max-width: 46%; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.bn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #131316; background: #fff; white-space: nowrap; flex: none; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.6); }
.bn-tag { position: absolute; top: 12px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 4px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(10, 12, 18, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bn-tag i { width: 6px; height: 6px; border-radius: 50%; background: #ef3b3b; animation: blink 1.2s steps(2, jump-none) infinite; }
.bn-curral { background-image: url('/img/banner-curral.webp'); }
.bn-art { position: absolute; inset: 0; z-index: -2; }
.bn-art .card-art { width: 100%; height: 100%; }
.bn-mission { background: radial-gradient(160px 130px at 80% 30%, rgba(198, 241, 53, 0.34), transparent 70%), linear-gradient(135deg, #15171d, #0c0d11); }
.bn-mission .coin { position: absolute; right: 22px; top: 14px; width: 62px; height: 62px; z-index: -1; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55)); }
.bn-mission .coin .coin-spin { animation: wobble 5s ease-in-out infinite; }

.acct { display: flex; flex-direction: column; padding: 4px 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.acct-row { display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acct-row:last-child { border-bottom: 0; }
.acct-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; font-style: normal; color: var(--text); background: var(--tile); }
.acct-ico .ico { width: 20px; height: 20px; }
.acct-ico .coin.sm { width: 40px; height: 40px; }
.acct-ico.brl { color: #fff; background: #17171a; }
.acct-ico.cow { color: #1e5b34; background: #dff5d3; }
.acct-ico.xp { color: #6b4a00; background: #ffe9a6; }
.acct-ico.fire { color: #9a3c05; background: #ffe0c7; }
.acct-ico.fire .ico, .acct-ico.xp .ico { fill: currentColor; stroke: none; }
.acct-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.acct-txt b { font-size: 15px; font-weight: 600; }
.acct-txt small { font-size: 12.5px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-val { font-size: 15px; font-weight: 600; white-space: nowrap; text-align: right; }
.acct-row > .ico { width: 17px; height: 17px; color: var(--faint); stroke-width: 2.2; flex: none; }
.acct-alloc { padding: 16px 0 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.alloc { height: 8px; gap: 3px; background: var(--tile-2); }
.c-brl { background: #17171a; }
:root[data-theme='dark'] .c-brl { background: #f3f4f7; }
.c-bfi { background: var(--lime); }
.c-cow { background: #f5a524; }
.alloc-legend { font-size: 12.5px; }
.alloc-legend b { font-weight: 600; }
.balance-spark small { font-size: 10px; font-weight: 500; }

/* ── Aviso flutuante (snackbar) ─────────────────────────────────────────── */
.snack { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom)); z-index: 31; transform: translateX(-50%); width: min(calc(100% - 28px), 452px); display: flex; align-items: center; gap: 14px; min-height: 70px; padding: 12px 20px 12px 18px; border-radius: 18px; color: #fff; background: #1b1b1e; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.55); animation: snackIn 0.5s var(--ease) both 0.5s; }
.snack.out { animation: snackOut 0.35s ease forwards; }
.snack > .ico { width: 24px; height: 24px; flex: none; stroke-width: 1.7; }
.snack-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.32; }
.snack-txt b { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snack-txt small { font-size: 14px; font-weight: 500; color: #9a9aa2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snack-go { flex: none; padding: 8px 2px; font-size: 14.5px; font-weight: 600; color: #bfea33; text-decoration: underline; text-underline-offset: 3px; }
.snack.still { animation: none; }
:root[data-theme='dark'] .snack { background: #272935; box-shadow: 0 0 0 1px var(--line-2), 0 18px 36px -14px rgba(0, 0, 0, 0.8); }
:root[data-theme='dark'] .acct-ico.brl { color: var(--on-ink); background: var(--ink); }
.snack { touch-action: none; }
@keyframes snackIn { from { opacity: 0; transform: translate(-50%, 26px) scale(0.96); } }
@keyframes snackOut { to { opacity: 0; transform: translate(-50%, 20px) scale(0.97); } }
body.locked .snack, body.immersive .snack { display: none; }

/* ── Barra inferior flutuante: pilula branca + botao preto da acao principal ─ */
.dock { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%); width: min(calc(100% - var(--gutter) * 2), 436px); height: var(--nav-h); display: flex; gap: 10px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.dock-pill { flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center; padding: 0 6px; border-radius: 20px; background: var(--surface); box-shadow: 0 14px 34px -12px rgba(19, 19, 22, 0.28), 0 2px 8px -2px rgba(19, 19, 22, 0.1), 0 0 0 1px var(--line); }
.dock-pill a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 100%; font-size: 11.5px; font-weight: 500; color: var(--faint); transition: color 0.2s; }
.dock-pill a .ico { width: 22px; height: 22px; stroke-width: 1.8; transition: transform 0.2s var(--ease); }
.dock-pill a.on { color: var(--text); font-weight: 700; }
.dock-pill a.on .ico { stroke-width: 2.1; }
.dock-pill a:active .ico { transform: scale(0.86); }
.dock-cta { flex: 0 0 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 20px; font-size: 11.5px; font-weight: 500; color: #d7d7dc; background: #131316; box-shadow: 0 14px 30px -10px rgba(19, 19, 22, 0.55); transition: transform 0.16s var(--ease); }
.dock-cta:active { transform: scale(0.95); }
.dock-ring { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--lime); background: conic-gradient(from 210deg, #c6f135, #6ee7b7, #4f46e5, #c6f135); padding: 2.5px; }
.dock-ring b { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: #131316; }
.dock-ring .ico { width: 13px; height: 13px; stroke-width: 2.6; color: #c6f135; }
.dock-cta.on { color: #fff; font-weight: 700; }
:root[data-theme='dark'] .dock-cta { background: #1d2030; box-shadow: 0 0 0 1px var(--line-2), 0 14px 30px -10px rgba(0, 0, 0, 0.8); }
body.immersive .hd, body.immersive .dock, body.immersive .pilltabs { display: none; }

/* ── Jornada, missoes e blocos da home viva ─────────────────────────────── */
.xp-pill { padding: 6px 11px; font-weight: 600; font-size: 12.5px; color: var(--gold-2); background: var(--warn-bg); border: 0; }
.xp-pill .ico { fill: var(--gold); }
.xp-pill.fire { color: #9a3c05; background: #ffe6d2; border: 0; }
:root[data-theme='dark'] .xp-pill.fire { color: #ffb86b; background: rgba(251, 146, 60, 0.16); }
.next-mission { color: var(--on-lime); background: var(--lime); box-shadow: none; animation: none; border-radius: 18px; }
.next-mission small { font-weight: 600; letter-spacing: 0.02em; text-transform: none; font-size: 12px; }
.next-mission b { font-weight: 700; }
.next-ico { border-radius: 50%; background: rgba(26, 36, 0, 0.12); }
.next-go { font-weight: 700; }
.node-dot { color: var(--soft); background: var(--tile); border: 0; box-shadow: none; }
.node.done .node-dot { color: var(--lime); background: #17171a; box-shadow: none; }
.node.next .node-dot { color: var(--on-lime); background: var(--lime); box-shadow: 0 0 0 5px rgba(198, 241, 53, 0.3); }
.node-text b { font-weight: 600; }
.node.done .node-text b { text-decoration-color: var(--faint); }
.node-xp { font-weight: 600; color: var(--gold-2); }
.path::before { background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
.mini-card { flex-basis: 176px; padding: 14px; border-radius: 18px; background: var(--tile); border: 0; box-shadow: none; }

.ticker { margin: -8px calc(var(--gutter) * -1) 0; border-block: 1px solid var(--line); background: var(--surface); }
.ticker-tag { color: var(--text); background: var(--tile); border-right: 1px solid var(--line); padding-left: var(--gutter); font-weight: 600; }
.ticker-tag small { font-weight: 500; }
.tick small { font-weight: 500; letter-spacing: 0.02em; text-transform: none; font-size: 12px; }
.tick b { font-weight: 600; }
.card.streak { background: var(--surface); border-color: var(--line); }
.streak-fire { border-radius: 50%; background: var(--tile); border: 0; }
.streak-fire.lit { color: #f97316; background: #ffe6d2; border: 0; box-shadow: none; }
.streak-fire b { font-weight: 700; }
.streak-title { font-weight: 700; }
.sd i { border-radius: 50%; background: var(--tile); border: 1px dashed var(--line-2); }
.sd.done i { background: #fb923c; box-shadow: none; }
.sd.today i { outline-color: var(--text); }
.sd small { font-weight: 600; }
.sd.today small { color: var(--text); }
.streak-done { color: var(--green-2); background: var(--pos-bg); border: 0; font-weight: 600; }
.card.cod { background: var(--tile); border-color: transparent; }
.cod-name { font-weight: 700; }
.cod-name small { font-weight: 600; }
.cod-stats small { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12px; }
.cod-stats b { font-weight: 700; }
.medal b { font-weight: 600; }
.medal small { font-weight: 500; }
.medal.locked .medal-disc { color: var(--faint); background: var(--tile); box-shadow: inset 0 0 0 1px var(--line-2); }
.medal-lock { background: var(--surface); border-color: var(--line-2); }
.pod b { font-weight: 600; }
.pod small { font-weight: 500; }
.pod-avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line-2); }
.pod-block i { color: var(--text); }
.pod.you .pod-avatar { outline-color: var(--text); }
.pod.you b { color: var(--text); }
.season-you { background: var(--tile); border: 0; }
.board-row.you { color: var(--text); }
.board-row.you b::after { content: ' · você'; color: var(--soft); font-weight: 500; }
.feed-item { padding: 11px 0; font-size: 14px; }
.entry-ico, .feed-item .entry-ico { border-radius: 50%; color: var(--text); background: var(--tile); }
.entry-ico.in, .entry-ico.green { color: var(--green-2); background: var(--pos-bg); }
.entry-ico.out, .entry-ico.gold { color: var(--gold-2); background: var(--warn-bg); }
.live-dot { background: var(--green); }
.live-pill { color: var(--text); background: var(--tile); border: 0; font-weight: 600; }
.live-pill i { background: var(--green); }
.live-pill.off { background: var(--tile); }
.flash { animation: none; }
.path-more summary { font-weight: 600; }

/* ── Trocar ─────────────────────────────────────────────────────────────── */
.swap { gap: 8px; }
.swap-box { padding: 18px; border-radius: 22px; background: var(--tile); border: 1.5px solid transparent; box-shadow: none; }
.swap-box:focus-within { border-color: var(--text); }
.swap-box.to { background: var(--tile); border-color: transparent; }
.swap-input, .swap-output { font-weight: 700; font-size: 34px; letter-spacing: -0.04em; color: var(--text); }
.swap-input::placeholder { color: var(--faint); }
.swap-output { color: var(--text); }
.token { padding: 6px 13px 6px 7px; font-weight: 600; background: var(--surface); border: 0; box-shadow: 0 0 0 1px var(--line), 0 4px 10px -6px rgba(19, 19, 22, 0.25); }
.token-brl { font-weight: 700; color: var(--on-ink); background: var(--ink); }
.swap-flip { width: 44px; height: 44px; margin: -20px 0; border-radius: 50%; color: var(--text); background: var(--surface); border: 0; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line), 0 8px 16px -8px rgba(19, 19, 22, 0.35); }
.swap-flip:active { color: var(--text); }
.swap-details { padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.route { padding: 14px 12px 12px; background: var(--surface); border: 1px solid var(--line); }
.rt-disc { background: var(--tile); border: 0; }
.rt-at { font-weight: 700; color: var(--text); }
.rt-node small { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12px; }
.rt-node b { font-weight: 600; }
.rt-link i { background: var(--ink); box-shadow: none; }
.route.flow .rt-disc { border: 0; box-shadow: 0 0 0 2px var(--lime); }
.route.flow .rt-node:last-child .rt-disc { box-shadow: 0 0 0 2px var(--ink); }
.xh-line { background: var(--text); opacity: 0.4; }
.xh-dot { background: var(--surface); border-color: var(--ink); box-shadow: none; }
.xh-tip { font-weight: 600; color: var(--on-ink); background: var(--ink); box-shadow: none; }
.card.target { border-color: var(--line); }
.card.target input[type='range']::-webkit-slider-runnable-track { background: linear-gradient(90deg, #f6b4b4, var(--tile-2) 50%, #b5e6c4); }
.card.target input[type='range']::-moz-range-track { background: linear-gradient(90deg, #f6b4b4, var(--tile-2) 50%, #b5e6c4); }
.hist-amt small { font-weight: 500; }

.slide { height: 66px; border-radius: 33px; background: #17171a; border: 0; box-shadow: 0 14px 26px -14px rgba(19, 19, 22, 0.6); }
.slide-fill { border-radius: 33px; background: linear-gradient(90deg, #8fcf1a, var(--lime)); opacity: calc(0.2 + var(--slide) * 0.8); }
.slide-label { font-weight: 600; font-size: 15.5px; color: #fff; background: linear-gradient(100deg, #d6d6dc 30%, #fff 50%, #d6d6dc 70%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.slide-arrows { color: var(--lime); }
.slide-thumb { top: 5px; left: 5px; width: 56px; height: 56px; background: var(--lime); box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.5); }
.slide.busy .slide-thumb, .slide[data-status='confirmed'] .slide-thumb { background: #fff; }
.slide.busy .slide-label { -webkit-text-fill-color: var(--on-lime); }
.slide[aria-disabled='true'] { background: var(--tile); box-shadow: none; }
.slide[aria-disabled='true'] .slide-label { -webkit-text-fill-color: var(--soft); color: var(--soft); }
.slide[aria-disabled='true'] .slide-thumb { filter: grayscale(1); background: var(--tile-2); box-shadow: none; }

/* ── Mercado, boi, carteira, ranking, simulador ─────────────────────────── */
.tag { font-weight: 700; }
.cow-nick { font-weight: 500; color: var(--soft); }
.stats-strip { background: var(--tile); border-color: transparent; }
.animal-hero .title { font-size: 26px; }
.stepper input { background: var(--tile); border: 0; }
.step-btn { border-radius: 50%; width: 54px; color: var(--text); background: var(--tile); border: 0; box-shadow: none; }
.step-btn:active { transform: scale(0.92); }
.invest form { border-top-color: var(--line); }
.row.total { border-radius: 16px; background: var(--tile); font-weight: 600; }
.tl-dot { background: var(--ink); box-shadow: 0 0 0 4px var(--tile); }
.timeline .row::before { background: var(--line-2); }
.asset { padding: 15px; background: var(--surface); border: 0; box-shadow: 0 0 0 1px var(--line); }
.rank .rank-pos { border-radius: 50%; font-weight: 700; background: var(--tile); color: var(--text); }
.you { border-color: var(--line); background: var(--tile); }
.tile { background: var(--tile); border: 0; }
.tile .label { font-size: 11.5px; }
.gauge { background: var(--tile); border: 0; }
.gauge-ico { color: var(--text); }
.gauge b { font-weight: 700; }
.gauge small { font-weight: 500; }
.meter { font-weight: 500; }
.meter b { font-weight: 700; }
.seg { background: var(--tile); border: 0; border-radius: 999px; padding: 3px; }
.seg .seg-btn { border-radius: 999px; font-weight: 600; }
.seg-btn.on { color: var(--on-ink); background: var(--ink); box-shadow: none; }
.rar b { font-weight: 700; }
.rar small { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 11px; }
.rar i { box-shadow: none; }

/* ── Entrada (login): foto no topo, folha branca embaixo ────────────────── */
.auth { min-height: 100dvh; }
.auth::after { background: linear-gradient(180deg, rgba(8, 9, 12, 0.42) 0%, rgba(8, 9, 12, 0.08) 34%, rgba(8, 9, 12, 0.28) 60%, rgba(8, 9, 12, 0.5) 100%); }
.auth-hero .brand { color: #fff; }
.auth-hero .brand em { color: var(--lime); }
.auth-tagline { font-weight: 500; }
.auth-tagline b { color: var(--lime); font-weight: 700; }
.auth-points span { color: #fff; background: rgba(10, 12, 18, 0.5); border: 0; font-weight: 600; }
.auth-points .ico { color: var(--lime); }
.auth-panel { gap: 16px; padding: 24px var(--gutter) calc(26px + env(safe-area-inset-bottom)); background: var(--surface); border-radius: 28px 28px 0 0; }
.auth .tabs { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.auth .card.glass { padding: 0; background: none; border: 0; overflow: visible; }
.auth .soft.tiny { color: var(--soft); text-shadow: none; }
.sim-banner + .auth { margin-top: calc(-22px - env(safe-area-inset-top)); }
.brand { font-weight: 700; color: var(--text); }
.brand em { color: #7fb800; }
:root[data-theme='dark'] .brand em { color: var(--lime); }

/* ── Folhas, recibo, avisos e aviso rapido ──────────────────────────────── */
.sheet-backdrop { background: rgba(19, 19, 22, 0.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet-backdrop.dark { background: rgba(6, 7, 10, 0.9); }
.sheet { padding-inline: var(--gutter); border-radius: 28px 28px 0 0; background: var(--surface); border: 0; box-shadow: 0 -20px 50px -20px rgba(19, 19, 22, 0.3); }
.sheet h2 { font-weight: 700; }
.sheet-title .ico { color: var(--text); }
.icon-btn { border-radius: 50%; color: var(--text); background: var(--tile); border: 0; }
.curral-card .icon-btn, .card-stage .icon-btn { color: #fff; background: rgba(10, 12, 18, 0.72); }
.receipt .list { background: var(--tile); }
.receipt-check { color: var(--on-lime); background: var(--lime); box-shadow: 0 0 0 10px rgba(198, 241, 53, 0.28), 0 0 0 20px rgba(198, 241, 53, 0.14); }
.notice { background: var(--surface); border: 1px solid var(--line); }
.notice.unread { background: var(--tile); border-color: transparent; }
.notice b { font-weight: 600; }
.notice-dot { background: #ef3b3b; box-shadow: none; }
.sheet-tile { min-height: 54px; border-radius: 16px; font-weight: 600; background: var(--tile); border: 0; }
.sheet-tile .ico { color: var(--text); }
.sheet-tile.hot { background: var(--lime); color: var(--on-lime); border: 0; }
.sheet-tile.hot .ico { color: var(--on-lime); }
.toast { top: calc(18px + env(safe-area-inset-top)); border-radius: 16px; font-weight: 600; color: #fff; background: #1b1b1e; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.55); }
.toast.error { background: #c81e1e; }
.toast.xp { color: var(--on-lime); background: var(--lime); }
.skeleton { background: linear-gradient(100deg, var(--tile) 30%, var(--tile-2) 50%, var(--tile) 70%) 0 0 / 220% 100%; }
.splash { background: var(--page); }
.splash b { font-weight: 700; color: var(--text); }
.splash b em { color: #7fb800; }
.splash img { filter: drop-shadow(0 16px 24px rgba(19, 19, 22, 0.25)); }
.bell-count { color: #fff; background: #ef3b3b; border-color: var(--surface); }
.ptr { background: var(--surface); border-color: var(--line); box-shadow: var(--float); }
.ptr.armed { border-color: var(--text); box-shadow: var(--float); }

/* ── Boas-vindas ────────────────────────────────────────────────────────── */
.ob { background: var(--page); }
.ob-body { padding-inline: var(--gutter); border-radius: 28px 28px 0 0; background: var(--surface); border-top: 0; box-shadow: 0 -1px 0 var(--line); }
.ob-body h2 { font-weight: 700; }
.ob-body > p:not(.soft) { color: var(--soft); }
.ob-body > p b { color: var(--text); font-weight: 700; }
.ob-dots i.on { background: var(--ink); }
.ob-dots i.past { background: var(--lime); }
.ob-chip { font-weight: 600; background: var(--surface); border: 0; box-shadow: 0 0 0 1px var(--line), var(--float); }
.ob-chip.at b { font-weight: 700; color: var(--text); }
.ob-arrow { color: var(--text); }
.ob-fractions i { background: var(--tile-2); border: 0; }
.ob-fractions i.on { background: var(--lime); box-shadow: none; }
.ob-cow-ico { color: var(--lime); background: #17171a; box-shadow: 0 18px 30px -12px rgba(19, 19, 22, 0.6); }
.ob-pill { color: var(--text); background: var(--surface); border: 0; box-shadow: 0 0 0 1px var(--line), var(--float); font-weight: 600; }
.ob-pen { border: 0; box-shadow: var(--float); }

/* ── Ilhas escuras: curral 3D e cartas ──────────────────────────────────── */
.curral-card { border: 0; border-radius: 24px; margin: 0; box-shadow: 0 22px 40px -22px rgba(19, 19, 22, 0.55); }
.curral-card .chip { color: #fff; background: rgba(10, 12, 18, 0.72); }
.curral-card .chip.clock, .curral-card .sim-chip { color: var(--gold-2) !important; }
.curral-card .seg-btn { color: var(--soft); }
.curral-card .seg-btn.on { color: #1a2400; background: var(--lime); box-shadow: none; }
.cow-sheet { background: #12151d; border-top: 1px solid var(--line-2); color: var(--text); }
.cow-sheet .badge { color: var(--soft); background: var(--tile); }
.cow-sheet .badge.gold { color: var(--gold-2); background: var(--warn-bg); }
.cow-sheet .badge.green { color: var(--green-2); background: var(--pos-bg); }
.cow-sheet .btn { color: #101116; background: #f3f4f7; }
.cow-sheet .btn.gold { color: var(--on-lime); background: var(--lime); }
.cow-sheet .btn.ghost { color: var(--text); background: var(--tile); }
.cow-sheet .bar i { background: var(--lime); }
.weigh-wrap { background: rgba(0, 0, 0, 0.3); border-color: var(--line); }
.weigh-line { stroke: var(--lime); }
.weigh-dot { fill: var(--lime); stroke: #12151d; }
.chip.buy { color: var(--on-lime); background: var(--lime); border: 0; box-shadow: none; font-weight: 700; }
.chip.buy:active { transform: scale(0.95); box-shadow: none; }
.card-stage .btn { color: #101116; background: #f3f4f7; }
.card-stage .btn.ghost { color: #f3f4f7; background: rgba(255, 255, 255, 0.12); }
.card-stage .btn.gold { color: var(--on-lime); background: var(--lime); }
.card-stage .soft { color: #b9bac4; }
.tc-face { font-family: var(--sans); }

@media (max-width: 350px) {
  .bal-value { font-size: 26px; }
  .act { flex-basis: 70px; }
  .dock-cta { flex-basis: 66px; }
}

/* ─── v3.1 "agressiva": odometro, revelacao, mais banners, curral em palco escuro, atalhos, rewards ─────────────── */
.od { display: inline-block; height: 1.12em; line-height: 1.12; overflow: hidden; vertical-align: bottom; font-variant-numeric: tabular-nums; }
.od-col { display: block; transform: translateY(calc(var(--d) * -1.12em)); transition: transform 1.05s cubic-bezier(0.16, 0.9, 0.22, 1); transition-delay: calc(var(--i) * 55ms); will-change: transform; }
.od-col > i { display: block; height: 1.12em; font-style: normal; }
.od-sep { display: inline-block; line-height: 1.12; vertical-align: bottom; }
.bal-value[data-roll] { display: inline-flex; align-items: flex-end; }

[data-reveal] { opacity: 0; transform: translateY(18px) scale(0.985); transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal].now { transition: none; }

/* entrada da home: cada bloco chega um pouco depois do anterior */
.view:not(.still) > .bal, .view:not(.still) > .strip, .view:not(.still) > .acts, .view:not(.still) > .banners { animation: riseIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.view:not(.still) > .strip { animation-delay: 0.05s; }
.view:not(.still) > .acts { animation-delay: 0.1s; }
.view:not(.still) > .banners { animation-delay: 0.16s; }
.view:not(.still) .act { animation: popIn 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both; animation-delay: calc(0.14s + var(--n, 0) * 45ms); }
.act:nth-child(1) { --n: 0; } .act:nth-child(2) { --n: 1; } .act:nth-child(3) { --n: 2; } .act:nth-child(4) { --n: 3; } .act:nth-child(5) { --n: 4; } .act:nth-child(6) { --n: 5; } .act:nth-child(7) { --n: 6; }
.act-new { animation: newPulse 2.6s ease-in-out 1.2s infinite; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.72); } }
@keyframes newPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(198, 241, 53, 0); } 50% { box-shadow: 0 0 0 5px rgba(198, 241, 53, 0.28); } }
.acct-row { transition: background 0.2s ease, transform 0.2s ease; }
a.acct-row:active { transform: scale(0.985); }
.acct-row:active > .ico { transform: translateX(3px); }
.acct-row > .ico { transition: transform 0.2s ease; }
.bn-btn, .pill-btn { transition: transform 0.18s ease; }
.bn:active .bn-btn, .pill-btn:active { transform: scale(0.94); }
.hd-btn:active { transform: scale(0.88); }
.hd-btn { transition: transform 0.16s ease; }
.hd-dot { animation: newPulse 2.4s ease-in-out infinite; }
.alloc > i { transform-origin: left; animation: growX 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes growX { from { transform: scaleX(0); } }

/* banners de desenho */
.bn-ink { background: radial-gradient(190px 150px at 82% 26%, rgba(198, 241, 53, 0.22), transparent 70%), linear-gradient(135deg, #17191f, #0b0c10); }
.bn-ink.violet { background: radial-gradient(190px 150px at 82% 26%, rgba(150, 108, 255, 0.34), transparent 70%), linear-gradient(135deg, #1a1626, #0c0b12); }
.bn-ink.gold { background: radial-gradient(190px 150px at 82% 26%, rgba(245, 197, 66, 0.3), transparent 70%), linear-gradient(135deg, #1d1a12, #0d0c09); }
.bn-ink .bn-title { max-width: 52%; }
.bn-draw { position: absolute; right: 6px; top: 8px; width: 150px; height: 104px; z-index: -1; opacity: 0.95; }
.bn-draw svg { width: 100%; height: 100%; overflow: visible; }
.bn-draw .ln { fill: none; stroke: #c6f135; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; animation: drawLn 2.4s ease-out both; }
.bn-draw .ln-fill { fill: rgba(198, 241, 53, 0.13); }
.bn-draw .dot { fill: #c6f135; animation: floatY 3s ease-in-out infinite; }
.bn-draw.cards .cd { fill: #221c33; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.5; }
.bn-draw.cards .c2 { fill: #2e2547; stroke: #b79cff; }
.bn-draw.cards .st { fill: #b79cff; opacity: 0.9; }
.bn-draw.cards svg { animation: floatY 4s ease-in-out infinite; }
.bn-draw.season .pd { fill: rgba(245, 197, 66, 0.2); stroke: rgba(245, 197, 66, 0.55); stroke-width: 1.5; }
.bn-draw.season .p1 { fill: rgba(245, 197, 66, 0.5); }
.bn-draw.season .dot { fill: #f5c542; }
.bn-draw.install .ph { fill: #15171d; stroke: rgba(255, 255, 255, 0.4); stroke-width: 2; }
.bn-draw.install .ic { fill: #c6f135; }
@keyframes drawLn { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
button.bn { text-align: left; font: inherit; border: 0; cursor: pointer; }
.rail-dots { display: flex; justify-content: center; gap: 6px; margin: -6px 0 -4px; }
.rail-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--tile-2, #e4e4e8); transition: width 0.3s ease, background 0.3s ease; }
.rail-dots i.on { width: 18px; background: var(--ink); }

/* Sua conta: produtos */
.acct-ico.yield { color: #1e5b34; background: #dff5d3; }
.acct-val .up { color: #1f8a43; }
:root[data-theme='dark'] .acct-val .up { color: #8fe36b; }
.info-i { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 50%; border: 1.6px solid #7a5cff; color: #7a5cff; font: 700 11px/1 inherit; font-style: normal; vertical-align: 1px; background: none; padding: 0; cursor: pointer; }
.acct .acct-alloc { border-bottom: 1px solid var(--line); }

/* Curral 3D em palco escuro */
.stage { position: relative; display: block; height: 320px; border-radius: 26px; overflow: hidden; isolation: isolate; color: #fff; background: #07080b url('/img/banner-curral.webp') center / cover no-repeat; box-shadow: 0 26px 50px -28px rgba(8, 9, 12, 0.75); transition: transform 0.25s ease; }
.stage:active { transform: scale(0.99); }
.stage::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(7, 8, 11, 0.55) 0%, rgba(7, 8, 11, 0) 26%, rgba(7, 8, 11, 0) 52%, rgba(7, 8, 11, 0.9) 100%); }
.stage-view { position: absolute; inset: 0; z-index: 0; }
.stage-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.9s ease; pointer-events: none; }
.stage-view.ready canvas { opacity: 1; }
.stage-top { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stage-top .bn-tag { position: static; }
.stage-clock { padding: 3px 9px 4px; border-radius: 999px; font: 600 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: #dfe3ea; background: rgba(8, 9, 12, 0.55); backdrop-filter: blur(8px); }
.stage-clock:empty { display: none; }
.stage-foot { position: absolute; z-index: 2; left: 18px; right: 16px; bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.stage-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stage-txt b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.stage-txt small { font-size: 13px; color: rgba(255, 255, 255, 0.74); }
.stage .bn-btn { flex: none; min-height: 40px; padding: 0 20px; font-size: 14.5px; }

/* Atalhos */
.shorts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.short { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 14px 13px; border-radius: 20px; background: var(--tile); border: 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: transform 0.18s ease, background 0.18s ease; }
.short:active { transform: scale(0.96); background: var(--tile-2, #e9e9ed); }
.short-ico { width: 38px; height: 38px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: 0 6px 14px -10px rgba(19, 19, 22, 0.5); }
.short-ico .ico { width: 20px; height: 20px; stroke-width: 1.8; }
.short b { font-size: 14.5px; font-weight: 600; }
.short small { font-size: 12.5px; color: var(--soft); line-height: 1.3; }

/* Folha de rewards */
.rw-hero { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 20px; background: var(--tile); }
.rw-hero > div { display: flex; flex-direction: column; gap: 1px; }
.rw-hero small { font-size: 12.5px; color: var(--soft); }
.rw-xp { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.rw-ring { position: relative; display: grid; place-items: center; flex: none; }
.rw-ring > b { position: absolute; font-size: 26px; font-weight: 700; }
.rw-ring .ring-value { stroke: #9ecb12; }
.sheet h2 .ico { width: 22px; height: 22px; vertical-align: -4px; margin-right: 4px; }

/* folha: sobe com mola; alca maior para arrastar */
.sheet { animation: sheetSpring 0.42s cubic-bezier(0.2, 0.9, 0.25, 1.06) both; transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sheet-grip { position: relative; touch-action: none; }
.sheet-grip::before { content: ''; position: absolute; inset: -14px -60px; }
@keyframes sheetSpring { from { transform: translate(-50%, 100%); } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .view > .bal, .view > .strip, .view > .acts, .view > .banners, .act, .act-new, .hd-dot, .alloc > i, .bn-draw .ln, .bn-draw .dot, .bn-draw.cards svg, .sheet { animation: none !important; }
  .od-col { transition: none; }
}
.acct-ico.rw { color: #6b4a00; background: #ffe9a6; }
.sheet .row > .btn.grow { min-width: 0; white-space: nowrap; }
