/* Neuro-Wallet Pro — Gamification SaaS motion layer (emil-design-eng) */

:root {
  --wallet-emil-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-lp-play,
.btn-primary,
.btn-today-primary,
.btn-confirm-alloc,
.bnav-btn,
.wgh-pill {
  transition:
    transform 140ms var(--wallet-emil-ease-out),
    box-shadow 200ms var(--wallet-emil-ease-out),
    filter 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn-lp-play:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
  }
  .today-outcome-card:hover {
    transform: translateY(-2px);
  }
  .wgh-pill:hover {
    transform: translateY(-1px);
  }
}

.btn-lp-play:active,
.btn-primary:active,
.btn-today-primary:active,
.btn-confirm-alloc:active,
.bnav-btn:active:not(.active) {
  transform: scale(0.97);
}

.boot-progress-fill {
  transition: width 480ms var(--wallet-emil-ease-out);
}

#boot-screen .boot-logo,
#landing-page .lp-brain-wrap {
  animation: walletGameMount 280ms var(--wallet-emil-ease-out) both;
}

@keyframes walletGameMount {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Neuro-Wallet Pro — redesign pass (calmer surfaces, states, data typography) */

body.wallet-gamify {
  --green: #1AB894;
  --green-dim: color-mix(in srgb, #1AB894 14%, transparent);
  --teal: #1AB894;
  --teal-dim: color-mix(in srgb, #1AB894 12%, transparent);
  --gold: #C9A227;
  --gold-dim: color-mix(in srgb, #C9A227 16%, transparent);
  --wg-quest: linear-gradient(135deg, #6E5DB8 0%, #1AB894 55%, #C9A227 100%);
}

[data-brand="wallet"] {
  --green: #1AB894;
  --green-dim: color-mix(in srgb, #1AB894 14%, transparent);
  --teal: #1AB894;
  --teal-dim: color-mix(in srgb, #1AB894 12%, transparent);
  --bg-void: #0E0B16;
  --bg-neural: #16131F;
  --bg-synapse: #221D30;
  --shadow-neon-green: 0 8px 28px color-mix(in srgb, #1AB894 18%, transparent);
  --shadow-neon-teal: 0 8px 28px color-mix(in srgb, #1AB894 16%, transparent);
}

/* ── Typography: financial data ── */
.alloc-amount,
.wtd-amount,
.income-num,
.qs-val,
.ns-total,
.outcome-stat-value,
.today-outcome-value,
.wgh-pill-value,
.nudge-stat-val,
#month-income-display,
.prev-amount,
.slider-amount {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.lp-title,
.screen-title,
.today-title,
.boot-title {
  text-wrap: balance;
  letter-spacing: 0.06em;
}

.lp-tagline,
.today-sub,
.lp-sub {
  text-wrap: pretty;
}

/* ── Focus & interaction ── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid color-mix(in srgb, #6E5DB8 75%, transparent);
  outline-offset: 3px;
}
.btn-lp-play:focus-visible,
.btn-primary:focus-visible,
.btn-today-primary:focus-visible,
.btn-confirm-alloc:focus-visible,
.bnav-btn:focus-visible {
  outline-offset: 2px;
}

.btn-lp-play:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(61, 217, 168, 0.35);
}
.btn-lp-play:active,
.btn-primary:active,
.btn-today-primary:active,
.btn-confirm-alloc:active {
  transform: scale(0.97);
}

.btn-lp-premium:hover {
  background: rgba(255, 204, 102, 0.16);
  border-color: rgba(255, 204, 102, 0.55);
}

.btn-sso:hover {
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
.btn-sso:active { transform: translateY(0) scale(0.99); }

/* ── Glass cards (inner edge + tinted shadow) ── */
.today-hero-card,
.neuro-score-card,
.brain-card,
.xp-card,
.today-outcome-card,
.modal-box,
.lp-proof {
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
body.wallet-gamify .today-hero-card {
  box-shadow:
    0 18px 44px rgba(15, 10, 31, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.today-hero-card {
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.today-outcome-card:hover {
  border-color: rgba(0, 212, 170, 0.35);
  transform: translateY(-2px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

/* ── Bottom nav polish ── */
.bnav-btn {
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.bnav-btn.active {
  color: var(--green);
}
.bnav-btn:active:not(.active) {
  transform: scale(0.94);
}

/* ── HUD: calmer, less arcade neon ── */
.wallet-gamify-hud {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.wgh-pill {
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.wgh-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ── Empty states ── */
.history-empty,
.gr-dash-sub {
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.55;
}

/* ── Boot screen ── */
#boot-screen {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(0, 212, 170, 0.08), transparent 55%),
    var(--bg-void);
}

/* ── Landing: softer proof numbers ── */
#lp-proof-text {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .lp-ring,
  .lp-brain-icon,
  .lp-proof-dot,
  .boot-progress-fill,
  .today-outcome-card {
    animation: none !important;
    transition: none !important;
  }
}

/* Dashboard screen tiers — hero always visible; secondary uses journey-hidden in guided mode */
#screen-dashboard [data-content-tier="hero"] {
  display: block;
}

#screen-dashboard [data-content-tier="hero"] .today-hero-card {
  border: 1px solid rgba(61, 217, 168, 0.22);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#screen-dashboard [data-content-tier="hero"] .btn-today-primary {
  font-variant-numeric: tabular-nums;
}

#screen-dashboard .today-view-switch {
  margin-top: 4px;
  opacity: 0.92;
}
