/* Mock-only prototype styling. Colors mirror the design-system tokens by value:
   teal primary, navy typography, gray-50/100 backgrounds, dark-green positive. */
:root {
  --primary: #00a19b;
  --primary-soft: #e0f4f3;
  --ink: #0f2b4d;
  --muted: #6c757d;
  --bg: #f7f8fa;
  --bg-2: #eef0f3;
  --card: #ffffff;
  --positive: #1e7b4f;
  --positive-soft: #e3f3ea;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 43, 77, 0.08), 0 8px 24px rgba(15, 43, 77, 0.06);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: #dfe3e8; }
header.bar {
  background: var(--card);
  padding: 20px 32px;
  border-bottom: 1px solid #d9dee5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header.bar h1 { margin: 0; font-size: 20px; }
header.bar p { margin: 0; color: var(--muted); font-size: 14px; }
.controls { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.controls button {
  border: 1px solid #c8cfd8;
  background: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}
.controls button[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
main { padding: 32px; display: grid; gap: 48px; }
section.board { display: grid; gap: 12px; }
section.board > h2 { margin: 0; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.frames { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.frame {
  background: var(--bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.frame.desktop { width: 1024px; min-height: 640px; }
.frame.mobile { width: 375px; min-height: 760px; }
.frame .label { position: absolute; top: 8px; right: 12px; font-size: 11px; color: var(--muted); }
.app { display: flex; min-height: inherit; }
.nav { width: 200px; background: var(--card); border-right: 1px solid #e3e7ec; padding: 24px 12px; display: grid; gap: 4px; align-content: start; }
.nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav .dot { width: 16px; height: 16px; border-radius: 50%; background: #c8cfd8; display: inline-block; }
.nav a.active .dot { background: var(--primary); }
.page { flex: 1; padding: 32px; display: grid; gap: 20px; align-content: start; }
.mobile .page { padding: 16px; }
.page-header { display: flex; gap: 16px; align-items: center; }
.page-header .illus { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; color: #fff; font-weight: 700; }
.page-header h1 { margin: 0; font-size: 28px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.balance { display: flex; gap: 16px; align-items: center; max-width: 420px; }
.coin-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--positive-soft); display: grid; place-items: center; }
.coin { width: 28px; height: 28px; border-radius: 50%; background: #f0c081; border: 3px solid #d9a45c; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #7a4d10; }
.pretitle { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.display { font-size: 40px; line-height: 1; margin: 0; font-weight: 600; }
.sub { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.history h2 { margin: 0 0 12px; font-size: 20px; }
.history .head { display: grid; grid-template-columns: 1fr 160px 120px; background: var(--bg); color: var(--ink); border-radius: 4px; padding: 10px 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.mobile .history .head { display: none; }
.row { display: grid; grid-template-columns: 1fr 160px 120px; padding: 14px 12px; border-bottom: 1px solid #eef0f3; align-items: center; font-size: 15px; }
.mobile .row { grid-template-columns: 1fr 90px; }
.row .reason { font-weight: 600; }
.row .date { color: var(--muted); font-size: 14px; }
.mobile .row .date.col { display: none; }
.row .mdate { display: none; color: var(--muted); font-size: 13px; }
.mobile .row .mdate { display: block; }
.row .coins { text-align: right; color: var(--positive); font-weight: 600; white-space: nowrap; }
.pager { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; }
.pager button { border: 1px solid #c8cfd8; background: #fff; border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.pager button:disabled { opacity: 0.4; cursor: default; }
.empty { text-align: center; padding: 40px 20px; display: grid; gap: 8px; justify-items: center; }
.empty h3 { margin: 12px 0 0; font-size: 22px; }
.empty p { margin: 0; color: var(--muted); max-width: 420px; }
.hidden { display: none !important; }
/* Wallet feed */
.greeting { font-size: 24px; margin: 0; }
.feed { display: grid; gap: 12px; }
.notif { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.mobile .notif { flex-direction: column; align-items: stretch; }
.notif .left { display: flex; gap: 14px; align-items: center; }
.notif .icon { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; flex: none; }
.notif .title { font-weight: 600; margin: 0 0 2px; }
.notif .body { margin: 0; color: var(--muted); font-size: 14px; }
.notif .actions { display: flex; gap: 8px; align-items: center; }
.btn { background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn.link { background: transparent; color: var(--ink); font-weight: 500; }
.btn.block { width: 100%; }
.dismiss { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }
.accounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mobile .accounts { grid-template-columns: 1fr; }
.acct .pretitle { margin-bottom: 8px; }
.acct .amt { font-size: 24px; font-weight: 600; margin: 0; }
/* Celebration */
.scrim { position: absolute; inset: 0; background: rgba(15, 43, 77, 0.55); display: flex; }
.desktop .scrim { justify-content: flex-end; }
.sheet { background: var(--bg); width: 100%; display: flex; flex-direction: column; }
.desktop .sheet { width: 480px; box-shadow: -8px 0 32px rgba(0,0,0,0.2); }
.sheet .top { display: flex; justify-content: flex-end; padding: 16px; }
.sheet .content { flex: 1; display: grid; justify-items: center; align-content: center; text-align: center; padding: 0 32px; gap: 8px; }
.sheet .party { width: 200px; height: 140px; border-radius: 16px; background: linear-gradient(135deg, #e0f4f3, #fdf1dc); display: grid; place-items: center; }
.sheet .party .coin { width: 72px; height: 72px; font-size: 26px; border-width: 6px; }
.sheet .big { font-size: 56px; line-height: 1; margin: 16px 0 0; color: var(--primary); font-weight: 700; }
.sheet h2 { margin: 12px 0 0; font-size: 26px; }
.sheet p { color: var(--muted); margin: 0; }
.sheet .foot { padding: 24px; display: grid; gap: 8px; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; width: 8px; height: 14px; border-radius: 2px; opacity: 0.9; animation: fall 3.2s ease-in infinite; }
@keyframes fall { 0% { transform: translateY(-40px) rotate(0deg); } 100% { transform: translateY(820px) rotate(720deg); } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }
