/* Fatpike design tokens (from the demo): olive body, cream spots, orange fins. */
:root {
  --bg: #f4f2e6; --surface: #fffdf4; --surface-2: #ebe8d6; --line: #d9d5bf;
  --ink: #1d2416; --ink-2: #5c6450; --ink-3: #8a9079;
  --olive: #3d5a2a; --spot: #efe2a2; --fin: #e2622a; --fin-ink: #fff7ee;
  --r-common: #7d8a86; --r-uncommon: #4f9a58; --r-rare: #3a78cf; --r-epic: #8b58d4; --r-legend: #d39b14;
  --good: #3f8a46; --warn: #c98a12; --bad: #c2452f;
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, Menlo, monospace;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a10; --surface: #1a2417; --surface-2: #22301e; --line: #2e3d29;
    --ink: #eef0e0; --ink-2: #a9b298; --ink-3: #7a846b;
    --olive: #9cc06a; --fin: #f07a3e; --fin-ink: #1a0f06;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
/* Components set display: grid/flex, which would otherwise override the hidden attribute. */
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--f-body); }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
a { color: var(--fin); font-weight: 600; }

.app { max-width: 430px; margin: 0 auto; padding: 12px var(--gut-r) 96px var(--gut-l); display: grid; gap: 14px; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -.04em; }
.logo b { color: var(--fin); }
.logo-big { font-size: 44px; }
.eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); margin: 0 0 4px; }
.muted { color: var(--ink-2); margin: 6px 0 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--bg); border-radius: 14px; padding: 10px; text-align: center; }
.stat b { display: block; font-family: var(--f-display); font-size: 24px; font-weight: 800; }
.stat small { color: var(--ink-3); }

.auth { display: grid; gap: 10px; padding-top: 10vh; }
.form { display: grid; gap: 8px; margin-top: 8px; }
.form label { font-weight: 700; font-size: 13px; }
.form input[type=email], .form input[type=password], .form input[type=text] {
  min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit;
}

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px;
  border: 0; border-radius: 14px; font: 700 15px var(--f-body); background: var(--ink); color: var(--bg); cursor: pointer; }
.btn-fin { background: var(--fin); color: var(--fin-ink); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 8px; }
:focus-visible { outline: 2px solid var(--fin); outline-offset: 2px; }

.flash { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; }
.flash-alert { background: var(--bad); color: #fff; }
