:root {
  --navy: #0b1426;
  --navy2: #121c32;
  --card: #152038;
  --gold: #d4b45a;
  --gold2: #9a7a32;
  --ivory: #f6f1e6;
  --mute: #8b97b0;
  --link: #8bb8ff;
  --ok: #4ade80;
  --danger: #e25c5c;
  --safe: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--navy);
  color: var(--ivory);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
body { padding: env(safe-area-inset-top) 0 var(--safe); }
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--navy); }
h1, h2 { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; color: var(--gold); font-weight: 650; margin: 0 0 8px; letter-spacing: -0.3px; }
h1 { font-size: 1.9rem; }
.wrap { padding: 20px 20px 108px; }
.eyebrow { color: var(--mute); font-size: 13px; font-weight: 500; }
.muted { color: var(--mute); font-size: 14px; line-height: 1.5; }
.card { background: var(--card); border-radius: 20px; padding: 18px; margin: 12px 0; }
.row { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; align-items: baseline; }
.money { font-size: 2.1rem; font-weight: 750; color: var(--ivory); letter-spacing: -0.6px; }
.btn { width: 100%; border: 0; border-radius: 16px; min-height: 56px; font-size: 16px; font-weight: 650; margin: 8px 0; cursor: pointer; }
.btn.primary { background: var(--gold); color: var(--navy); }
.btn.ghost { background: transparent; color: var(--ivory); border: 1px solid #2a3a55; }
.btn.quiet { background: transparent; color: var(--gold); min-height: 44px; font-weight: 650; }
.btn:disabled { opacity: 0.45; }
input, select {
  width: 100%;
  background: var(--navy2);
  color: var(--ivory);
  border: 1px solid #2a3a55;
  border-radius: 14px;
  padding: 14px;
  font-size: 16px;
  margin: 8px 0;
}
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
label { display: block; color: var(--mute); font-size: 13px; margin-top: 10px; }
.chip-row { display: flex; gap: 8px; margin: 8px 0 4px; }
.chip { flex: 1; text-align: center; padding: 10px 12px; border-radius: 999px; background: var(--card); border: 1px solid #2a3a55; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 650; }
.nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: flex-end;
  background: var(--navy2);
  padding: 8px 6px calc(10px + var(--safe));
}
.nav a { flex: 1; text-align: center; color: var(--mute); text-decoration: none; font-size: 11px; padding: 8px 0 4px; }
.nav a.on { color: var(--gold); font-weight: 650; }
.nav .fab {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(160deg, var(--gold), var(--gold2));
  color: var(--ivory); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin: -22px 8px 4px; flex: none; text-decoration: none; font-weight: 700;
}
.code { font-family: ui-monospace, Menlo, monospace; font-size: 1.8rem; letter-spacing: 3px; color: var(--ivory); text-align: center; font-weight: 700; }
.err { color: var(--danger); font-size: 14px; }
.gsi { display: flex; justify-content: center; margin: 10px 0; min-height: 44px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { background: var(--card); border-radius: 16px; padding: 14px; cursor: pointer; }
.item.on { outline: 1px solid var(--gold); }
.range { width: 100%; accent-color: var(--gold); }
.test { display: inline-block; background: var(--navy2); color: var(--gold); border: 1px solid rgba(212,180,90,.4); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.brand { font-family: Georgia, serif; color: var(--gold); font-weight: 650; font-size: 22px; }
.link { color: var(--mute); font-size: 13px; background: none; border: 0; cursor: pointer; padding: 0; }
.splash { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--navy); }
.splash .word { font-family: Georgia, serif; font-size: 44px; font-weight: 650; color: var(--gold); }
.splash .tag { color: var(--gold); letter-spacing: 0.4px; }
.pick-net { border: 1px solid #2a3a55; background: var(--card); border-radius: 16px; padding: 14px; margin: 8px 0; cursor: pointer; }
.pick-net.on { border-color: var(--gold); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.tile {
  background: linear-gradient(160deg, var(--gold), var(--gold2));
  border-radius: 18px; min-height: 88px; padding: 10px;
  color: var(--ivory); font-size: 11px; font-weight: 650; text-decoration: none;
  display: flex; flex-direction: column; justify-content: space-between;
}
.tile.blue { background: linear-gradient(160deg, #2a4a6e, #1c334f); }
.tile .ic { font-size: 18px; }
.hello { font-size: 22px; font-weight: 500; margin: 8px 0 16px; color: var(--ivory); }
.see { color: var(--link); font-size: 14px; cursor: pointer; background: none; border: 0; }
.act { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.act .mark { width: 42px; height: 42px; border-radius: 14px; background: var(--navy2); display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(160deg, var(--gold), var(--gold2)); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.header .mid { display: flex; align-items: center; gap: 6px; }
.promo { display: flex; align-items: center; gap: 12px; }
.promo .mad { width: 56px; height: 56px; border-radius: 16px; background: var(--navy2); display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 700; font-size: 12px; }
