:root {
  --bg: #04140c;
  --bg-deep: #020c07;
  --bg-elev: #0a1f14;
  --bg-card: #0d2418;
  --bg-card-2: #102b1c;
  --border: rgba(212, 175, 55, 0.38);
  --border-soft: rgba(212, 175, 55, 0.22);
  --border-dashed: rgba(212, 175, 55, 0.45);
  --gold: #d4af37;
  --gold-text: #e8c96a;
  --gold-bright: #f0d060;
  --gold-dim: #a88b3a;
  --sprout: #6fbf4a;
  --sprout-bright: #8fd45e;
  --lime: #b8e06a;
  --green-text: #7dcf5a;
  --text: #f3f0e6;
  --muted: #a8b59a;
  --muted-2: #6e7d68;
  --danger: #e85d5d;
  --orange: #e8a045;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: #010805;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--gold-text); text-decoration: none; }
img { display: block; max-width: 100%; }

.phone-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  height: 100dvh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(212,175,55,0.08);
}

.screen { display: none; flex: 1; flex-direction: column; min-height: 0; }
.screen.active { display: flex; }

.scroll-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 14px calc(20px + var(--safe-b));
}

/* ===== DEMO BANNER ===== */
.demo-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 6px;
  flex-shrink: 0;
}
.demo-pill {
  background: linear-gradient(180deg, #f0c84a, #d4a017);
  color: #1a1200;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.demo-banner-text {
  color: var(--gold-text);
  font-size: 0.78rem;
  font-weight: 500;
}

/* ===== HOME ===== */
#screen-home {
  background:
    radial-gradient(ellipse 80% 50% at 50% 18%, rgba(111,191,74,0.08), transparent 60%),
    var(--bg);
}
#screen-home .home-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px 18px calc(14px + var(--safe-b));
  overflow: hidden;
  min-height: 0;
}
.home-top-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}
.home-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  min-height: 0;
}

/* ===== Wealth spring hero animation (match still: $ from cracked egg) ===== */
.wealth-stage {
  /* Invisible bounce bounds — no card/plate behind the floating egg */
  position: relative;
  width: min(100%, 300px);
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  padding: 10px 8px;
}
.wealth-stage .logo-card {
  position: relative;
  z-index: 2;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 6px 12px 6px 8px;
}
.logo-egg {
  transform-origin: 50% 65%;
  will-change: transform;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.logo-egg.shaking {
  animation: egg-shake 1.1s ease-in-out;
}
.logo-egg.fountain-hum {
  animation: egg-hum 1.8s ease-in-out infinite;
}
@keyframes egg-shake {
  0%, 100% { transform: rotate(0deg) translate(0, 0) scale(1); }
  18% { transform: rotate(-4deg) translate(-1px, 0) scale(1.015); }
  36% { transform: rotate(5deg) translate(2px, -1px) scale(1.02); }
  54% { transform: rotate(-3deg) translate(-1px, 0) scale(1.01); }
  72% { transform: rotate(2deg) translate(1px, 0); }
  88% { transform: rotate(-1deg); }
}
@keyframes egg-hum {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(1.2deg) scale(1.012); }
}

/* Crisp richer metallic gold $ — deeper/warmer, sharp edges, no glow smear */
.wealth-dollar {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-weight: 800;
  color: #d4a017; /* warm antique gold body */
  /* metallic: warm highlight + deep bronze rim (no pale wash, no bloom) */
  text-shadow:
    0 -0.5px 0 #f0c84a,
    0 1px 0 #7a5208,
    0.55px 0.55px 0 #5c3d06,
    -0.55px 0 0 #b8860b,
    0.55px 0 0 #b8860b;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke: 0.4px #8b6914;
  paint-order: stroke fill;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  will-change: transform, opacity;
  opacity: 0;
  filter: none;
}
.wealth-dollar.spawn {
  opacity: 1;
  transition: opacity 0.35s ease-out;
}
.wealth-dollar.fade {
  opacity: 0 !important;
  transition: opacity 3s ease-in;
}

@media (prefers-reduced-motion: reduce) {
  .logo-egg.shaking,
  .logo-egg.fountain-hum { animation: none; }
  .wealth-dollar { display: none !important; }
}

.logo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px 22px 14px 14px;
  box-shadow: 0 0 40px rgba(111,191,74,0.06);
}
.logo-card img,
.logo-egg {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.logo-card .brand-name {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: -0.01em;
  position: relative;
}
.logo-card .brand-name::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 6px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}
.logo-card .brand-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
}
.logo-card .brand-dots span {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold-dim);
}

.home-slogan {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.25;
  margin: 6px 0 0;
  max-width: 280px;
}
.home-sub {
  color: var(--gold-text);
  font-size: 0.88rem;
  opacity: 0.85;
  margin: 0;
  max-width: 260px;
  line-height: 1.35;
}

.home-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
  flex-shrink: 0;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--gold-text);
  transition: background 0.15s, transform 0.12s;
  min-height: 78px;
}
.tile:active { transform: scale(0.96); background: var(--bg-card-2); }
.tile svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.tile span { font-size: 0.72rem; font-weight: 600; color: var(--gold-text); }

.cross-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  flex-shrink: 0;
}
.cross-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-elev);
  color: var(--gold-text);
  font-size: 0.88rem;
  font-weight: 600;
}
.cross-link .xicon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
  background: #061810;
}
.cross-link .arrow { margin-left: auto; opacity: 0.7; font-size: 0.85rem; }

.home-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--gold-dim);
  font-size: 0.72rem;
  flex-shrink: 0;
}
.home-footer svg { width: 12px; height: 12px; stroke: var(--gold-dim); fill: none; }

/* ===== APP HEADER (in-app) ===== */
.app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 8px;
  flex-shrink: 0;
}
.app-header .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.app-header .brand img {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 2px;
}
.app-header .brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.app-header .brand-title .n { color: var(--green-text); }
.app-header .brand-title .e { color: var(--gold-bright); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--gold-text);
  background: rgba(0,0,0,0.2);
}
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.icon-btn.active {
  background: rgba(212,175,55,0.15);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.35);
}
.share-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--gold-text);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0,0,0,0.25);
}
.info-btn {
  width: 26px; height: 26px;
  font-size: 0.75rem;
  font-weight: 700;
  font-style: italic;
  font-family: var(--serif);
}

.home-back-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 8px;
  flex-shrink: 0;
}
.btn-home {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--gold-text);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0,0,0,0.2);
}

/* ===== TABS ===== */
.tab-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 14px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  overflow-x: auto;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab {
  flex: 1;
  min-width: max-content;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--gold-dim);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}
.tab.active {
  color: var(--gold-bright);
  background: rgba(111,191,74,0.12);
  border: 1px solid var(--border);
  box-shadow: 0 0 12px rgba(111,191,74,0.12);
}

/* ===== CARDS & COMMON ===== */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.section-head img {
  width: 28px; height: 28px;
  object-fit: contain;
  border-radius: 8px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.section-head h2 .dim { color: var(--muted); font-weight: 500; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.badge-pretend {
  background: linear-gradient(135deg, #5a9e3a, #8fd45e);
  color: #0a1a08;
}
.badge-empty {
  background: rgba(212,175,55,0.2);
  color: var(--gold-bright);
  border: 1px solid var(--border);
}
.badge-ath {
  background: linear-gradient(90deg, #f0c84a, #8fd45e);
  color: #12200a;
  font-weight: 800;
  padding: 4px 12px;
  font-size: 0.72rem;
}
.badge-outline {
  border: 1px dashed var(--border);
  color: var(--gold-text);
  background: transparent;
}

.account-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.account-card .row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.account-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--serif);
}
.account-card .bal-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.account-card .bal-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: -0.02em;
}
.account-card .bal-hint {
  font-size: 0.75rem;
  color: var(--gold-dim);
  margin-top: 2px;
}
.account-card.debt .bal-value { color: var(--orange); }
.account-card.empty {
  text-align: center;
  padding: 18px 14px;
}
.account-card.empty p {
  margin: 8px 0 12px;
  color: var(--gold-text);
  font-size: 0.88rem;
}
.btn-dashed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius-pill);
  color: var(--gold-dim);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(0,0,0,0.15);
}
.btn-dashed:disabled { opacity: 0.85; cursor: default; }

.notice {
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--gold-text);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 12px;
  background: rgba(212,175,55,0.04);
}

/* ===== AMOUNTS / HIDE ===== */
.amt {
  transition: filter 0.2s ease, opacity 0.2s ease;
  display: inline-block;
}
body.hide-amounts .amt {
  filter: blur(7px);
  user-select: none;
  opacity: 0.85;
}
body.hide-amounts .amt-block {
  filter: blur(8px);
  user-select: none;
}

/* ===== OVERALL ===== */
.net-worth-hero {
  background: linear-gradient(160deg, rgba(111,191,74,0.12), rgba(212,175,55,0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  text-align: center;
}
.net-worth-hero .nw-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}
.net-worth-hero .nw-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.net-worth-hero .nw-meta {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--gold-dim);
}
.net-worth-hero .nw-last {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.bd-item {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px;
}
.bd-item .bd-label { font-size: 0.68rem; color: var(--muted); margin-bottom: 2px; }
.bd-item .bd-val { font-size: 0.95rem; font-weight: 700; color: var(--gold-text); }
.bd-item.debt { grid-column: 1 / -1; }
.bd-item.debt .bd-val { color: var(--orange); }
.bd-item.total { grid-column: 1 / -1; border-color: var(--border); background: rgba(111,191,74,0.08); }
.bd-item.total .bd-val { color: var(--lime); font-size: 1.1rem; }

.glance-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}
.glance-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-crypto { background: var(--sprout-bright); box-shadow: 0 0 6px var(--sprout); }
.dot-stocks { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.dot-nest { background: var(--gold); box-shadow: 0 0 6px var(--gold); }

.chart-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}
.chart-card .chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.chart-card svg.chart { width: 100%; height: 110px; display: block; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-text);
  background: transparent;
}
.chip.active {
  background: linear-gradient(90deg, #8fd45e, #e8c84a);
  color: #12200a;
  border-color: transparent;
}
.chip.dashed { border-style: dashed; color: var(--gold-dim); }

.holding-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  margin-bottom: 8px;
  width: 100%;
  text-align: left;
}
.holding-row .h-left { flex: 1; min-width: 0; }
.holding-row .h-ticker {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-bright);
}
.holding-row .h-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 1px;
}
.holding-row .h-amt {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}
.holding-row .h-pct {
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 42px;
  text-align: right;
}
.holding-row .h-pct.crypto { color: var(--sprout-bright); }
.holding-row .h-pct.stock { color: var(--gold-text); }
.holding-row .chev { color: var(--muted-2); font-size: 1rem; }

.discuss {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}
.discuss ul { margin: 0; padding-left: 18px; }
.discuss li { margin-bottom: 8px; }
.discuss .disclaimer {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--gold-dim);
  font-style: italic;
}

.coming-soon {
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  background: rgba(0,0,0,0.2);
}
.coming-soon h3 {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: var(--gold-text);
}
.coming-soon p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-2);
  line-height: 1.35;
}
.coming-soon .tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #12200a;
  background: var(--gold);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ===== BUDGET ===== */
.surplus-box {
  background: rgba(111,191,74,0.1);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.surplus-box .sl { font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.surplus-box .sv { font-size: 1.8rem; font-weight: 800; color: var(--lime); margin: 2px 0; }
.surplus-box .si { font-size: 0.8rem; color: var(--gold-dim); }

.bar-row { margin-bottom: 12px; }
.bar-row .bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.bar-row .bar-meta .lab { color: var(--muted); }
.bar-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 4px; }
.bar-fill.fixed { background: var(--sprout-bright); width: 86%; }
.bar-fill.variable { background: var(--gold); width: 4%; }

.spend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.spend-btn {
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: var(--gold-text);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-elev);
  text-align: left;
}

.tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(212,175,55,0.1);
  font-size: 0.88rem;
}
.tx-row:last-child { border-bottom: none; }

/* ===== MANUAL ===== */
.manual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 0.95rem;
}
.manual-row .mv { font-family: var(--font); font-weight: 700; color: var(--lime); }
.btn-add {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(111,191,74,0.12);
  color: var(--gold-text);
  font-weight: 700;
  font-size: 0.9rem;
}
.hint-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-2);
  margin-top: 12px;
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 40;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal h3 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 800;
}
.modal p {
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}
.modal p strong { color: var(--gold-bright); }
.modal .got-it {
  background: linear-gradient(180deg, #f0c84a, #d4a017);
  color: #1a1200;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
}

.toast {
  position: absolute;
  bottom: calc(24px + var(--safe-b));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--gold-text);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Focus / a11y */
.icon-btn:focus-visible,
.tab:focus-visible,
.tile:focus-visible,
.chip:focus-visible,
.btn-home:focus-visible,
.share-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (min-height: 720px) {
  .home-slogan { font-size: 1.45rem; }
  .logo-card img, .logo-egg { width: 80px; height: 80px; }
}
