@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/inter-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(/fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url(/fonts/space-grotesk-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(/fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #0b0b0d; --surface: #141417; --surface2: #1b1b20; --border: rgba(255,255,255,0.10);
  --text: #f4f1ea; --muted: #a9a39a; --accent: #ff7a1a; --accentText: #ffa25c;
  --gain: #2bd47d; --loss: #ff5c5c; --gold: #f2b544; --grid: rgba(255,255,255,0.05);
  --glass: rgba(20,20,24,0.55);
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.screen { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  padding: calc(28px + var(--safe-top)) 24px calc(36px + var(--safe-bottom)); display: flex; flex-direction: column;
  gap: 24px; max-width: 520px; margin: 0 auto; }

/* ---- money wallpaper ---- */
.wall { position: absolute; inset: 0; pointer-events: none; }
.wall svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; }
.line { stroke-dasharray: 900; animation: draw 3.2s ease-out forwards; }
.line2 { stroke-dasharray: 900; animation: draw 4.2s .4s ease-out both; }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
.ticker { position: absolute; left: 0; right: 0; bottom: calc(18px + var(--safe-bottom)); overflow: hidden; opacity: .75; }
.ticker-row { display: flex; gap: 26px; width: max-content; font-family: "Space Grotesk", sans-serif; font-size: 13px;
  font-weight: 700; white-space: nowrap; animation: tick 28s linear infinite; }
.up { color: var(--gain); } .gold { color: var(--gold); }
@keyframes draw { from { stroke-dashoffset: 900 } to { stroke-dashoffset: 0 } }
@keyframes tick { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes pulse { 0%,100% { opacity: .55 } 50% { opacity: 1 } }

/* ---- logo + slogans ---- */
.brand { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 72px; }
.logo { display: flex; align-items: baseline; gap: 8px; font-family: "Space Grotesk", sans-serif; font-weight: 700;
  color: var(--accentText); }
.logo .the { font-size: 15px; letter-spacing: .32em; opacity: .8; }
.logo .beast { font-size: 46px; letter-spacing: .14em; text-shadow: 0 0 28px rgba(255,122,26,.45); }
.slogan { position: relative; display: block; width: 100%; height: 24px; text-align: center; font-size: 15px;
  font-weight: 600; color: var(--muted); }
.slogan span { position: absolute; left: 0; right: 0; top: 0; will-change: transform, opacity; }
.in { animation: sIn 1.1s cubic-bezier(.16,1,.3,1) .18s both; }
.out { animation: sOut .8s cubic-bezier(.4,0,.2,1) both; }
@keyframes sIn { from { opacity: 0; transform: translate3d(0,14px,0) } to { opacity: 1; transform: none } }
@keyframes sOut { from { opacity: 1; transform: none } to { opacity: 0; transform: translate3d(0,-14px,0) } }

/* ---- panels, buttons, fields ---- */
.panel { position: relative; display: flex; flex-direction: column; gap: 14px; }
.panel.spaced { padding-top: 48px; }
.chip { align-self: center; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.note { margin: 0; text-align: center; font-size: 15px; line-height: 1.5; color: var(--muted); }
.note.left { text-align: left; }
h1.center { text-align: center; }
h1 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 26px; font-weight: 700; }
h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.btn { min-height: 54px; border-radius: 16px; border: 0; font-size: 16px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; gap: 10px; padding: 0 18px; }
.btn.primary { background: var(--text); color: var(--bg); }
.btn.glass { min-height: 50px; font-size: 15px; border: 1px solid var(--border); background: var(--glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn.outline { min-height: 50px; font-size: 15px; border: 1.5px solid var(--accent); background: transparent;
  color: var(--accentText); }
.btn.small { min-height: 44px; font-size: 14px; border-radius: 12px; padding: 0 14px; }
.btn.danger { background: transparent; border: 1px solid rgba(255,92,92,.5); color: var(--loss); }
.btn:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; color: var(--muted); font-size: 14px; font-weight: 600; min-height: 44px; }
.divider { display: flex; align-items: center; gap: 12px; padding: 14px 0 4px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea { min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); font-size: 16px; color: var(--text); }
.field textarea { min-height: 90px; resize: vertical; }
.error { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255,92,92,.1); color: #ff9b9b;
  font-size: 14px; line-height: 1.4; }
.ok { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(43,212,125,.1); color: #8ff0bd;
  font-size: 14px; line-height: 1.4; }
.big-check { align-self: center; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(43,212,125,.12); color: var(--gain); }

/* ---- signed-in shell ---- */
.top { display: flex; align-items: center; justify-content: space-between; }
.top .logo .beast { font-size: 26px; }
.top .logo .the { font-size: 11px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px;
  display: flex; flex-direction: column; gap: 12px; }
.live { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gain); box-shadow: 0 0 10px var(--gain); }
.dot.pulse { animation: pulse 2s infinite; }
.req { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--border); }
.req:first-of-type { border-top: 0; }
.req .who { font-weight: 700; }
.req .meta { font-size: 13px; color: var(--muted); line-height: 1.4; word-break: break-word; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .btn { flex: 1; }
.invite { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; padding: 10px 12px;
  border-radius: 12px; background: var(--surface2); color: var(--text); }
.muted { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .line, .line2, .pulse, .ticker-row, .in, .out, .dot.pulse { animation: none !important; }
  .line, .line2 { stroke-dasharray: none; }
}
