/* ============================================================
   PostCar — emotional-loop prototype
   Theme: "Night Post" (July 12, 2026) — after the ChatGPT board
   - Black chrome, dark surfaces, hairlines
   - White type, iOS grays; red = postal, yellow = money/perks, white = you
     (green retired July 15 — red+green+white read as Christmas)
   - Trip experience = simulated lock screen (the honest interface)
   ============================================================ */

:root {
  --bg: #0B0B0C;
  --surface: #151517;
  --surface2: #1D1D20;
  --line: #26262A;
  --ink: #F5F5F5;
  --dim: #98989D;
  --faint: #5A5A5E;
  --red: #E8402F;
  --green: #32D74B;
  --yellow: #FFD60A;
  --radius: 16px;
  --radius-sm: 12px;
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#phone {
  max-width: 430px;
  margin: 0 auto;
  height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 431px) {
  #phone { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

#app { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ---------- shared scaffolding ---------- */

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

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 12px;
  flex-shrink: 0;
}
.wordmark { font-weight: 800; font-size: 21px; letter-spacing: -0.04em; }
.wordmark .dot, .wordmark .car { color: var(--red); }
/* lifetime phone-down odometer — quiet by design */
.odometer { display: flex; align-items: center; gap: 6px; opacity: 0.85; }
.odo-label {
  font-size: 7.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); font-weight: 700; line-height: 1.3; text-align: right;
}
.odo-unit { font-size: 8px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.odo-digits { display: inline-flex; gap: 1.5px; align-items: center; }
.odo-cell {
  width: 10px; height: 13px; overflow: hidden;
  background: #141416; border-radius: 2.5px;
}
.odo-cell.dot { width: auto; background: none; color: var(--faint); font-weight: 800; font-size: 9px; }
.odo-strip { display: block; transition: transform 1.15s cubic-bezier(0.25, 0.7, 0.25, 1); }
.odo-strip b {
  display: block; height: 13px; line-height: 13px; text-align: center;
  font-size: 9px; font-weight: 700; color: #EDEDED;
  font-variant-numeric: tabular-nums;
}
/* rightmost wheels start rolling first, like a real odometer */
.odo-cell:nth-last-child(2) .odo-strip { transition-delay: 0s; }
.odo-cell:nth-last-child(3) .odo-strip { transition-delay: 0.09s; }
.odo-cell:nth-last-child(4) .odo-strip { transition-delay: 0.18s; }
.odo-cell:nth-last-child(5) .odo-strip { transition-delay: 0.27s; }
.odo-cell:nth-last-child(6) .odo-strip { transition-delay: 0.36s; }

.chipstat.simskip { border-style: dashed; color: var(--faint); cursor: pointer; font-family: inherit; }
.chipstat.simskip:active { color: var(--ink); }

.content {
  flex: 1; overflow-y: auto; padding: 0 20px 110px;
  scrollbar-width: none;
}
.content::-webkit-scrollbar { display: none; }

.label {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim); font-weight: 600;
}
.section-label { margin: 28px 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.section-label .count { color: var(--faint); }

h1 { font-size: 27px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
p.body { font-size: 15px; line-height: 1.55; color: var(--dim); }
p.body strong { color: var(--ink); font-weight: 600; }

/* stat chips under the glovebox header */
.chipsrow { display: flex; gap: 8px; padding: 0 20px 4px; flex-shrink: 0; }
.chipstat {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 7px 12px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.chipstat i { width: 7px; height: 7px; border-radius: 50%; }
.chipstat.clean i { background: #EDEDED; }
.chipstat.postage i { background: var(--yellow); }

/* ---------- buttons ---------- */

.btn {
  display: block; width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px; font-weight: 600;
  text-align: center; cursor: pointer;
  font-family: inherit;
}
.btn:active { background: var(--surface2); }
.btn.primary { background: #fff; color: #000; border-color: #fff; }
.btn.primary:active { background: #D8D8D8; }
.btn.post { background: var(--red); color: #fff; border-color: var(--red); }
.btn.post:active { background: #C93325; }
.btn.ghost { background: transparent; }
.btn.small { padding: 10px 14px; font-size: 13px; width: auto; display: inline-block; }
.btn[disabled] { opacity: 0.35; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.backlink {
  background: none; border: none; color: var(--dim); font-size: 14px; font-weight: 600;
  cursor: pointer; padding: 6px 0; font-family: inherit; display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- tab bar ---------- */

.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex;
  background: rgba(11, 11, 12, 0.9);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 8px 10px calc(14px + env(safe-area-inset-bottom));
  z-index: 20;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 6px 0;
  color: var(--faint); font-family: inherit;
}
.tab.active { color: var(--ink); }
.tab svg { width: 22px; height: 22px; }
.tab span { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

.tab-create {
  flex: 0 0 64px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; margin-top: -2px;
}
.tab-create .plus {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 400; line-height: 1;
}

/* ---------- postcard ---------- */

.postcard {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}
.postcard .art { aspect-ratio: 3 / 1.55; display: block; width: 100%; }
.postcard .art svg { width: 100%; height: 100%; display: block; }
.postcard .meta { padding: 13px 15px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.postcard .dest { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.postcard .sub { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.statuschip {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  padding: 5px 9px; border-radius: 6px; white-space: nowrap;
  border: 1px solid var(--line); color: var(--dim); background: var(--surface);
}
.statuschip.moving { color: var(--ink); border-color: var(--dim); }
.statuschip.delivered { color: #fff; background: var(--red); border-color: var(--red); }
.statuschip.waiting { color: var(--dim); }

.cardlist { display: flex; flex-direction: column; gap: 12px; }

/* Apple Pay-style stack */
.stackwrap { position: relative; transition: height 0.38s cubic-bezier(0.3, 1.15, 0.35, 1); }
.stackitem {
  position: absolute; left: 0; right: 0;
  transition: top 0.38s cubic-bezier(0.3, 1.15, 0.35, 1), transform 0.38s cubic-bezier(0.3, 1.15, 0.35, 1);
  transform-origin: top center;
}
.stackitem .postcard { box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.55); }
.stackwrap:not(.open) .stackitem { cursor: pointer; }
.stackbtn {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim); font-weight: 700; padding: 2px 0;
}
.stackbtn:active { color: var(--ink); }

/* journey slider inside the sent card */
.jslider { padding: 2px 15px 15px; }
.jslider .jlabel { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 10px; }
.jslider .track { position: relative; height: 3px; background: var(--line); border-radius: 2px; }
.jslider .track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); border-radius: 2px; }
.jslider .track .jdot {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--surface);
}
.jslider .track .jend {
  position: absolute; right: -1px; top: 50%; transform: translate(0, -50%);
  width: 9px; height: 9px; border-radius: 50%; background: var(--red);
}
.jstats { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--dim); }
.jstats b { color: var(--ink); font-weight: 700; }

/* helped rows */
.helped-row {
  display: flex; gap: 12px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer;
}
.helped-row .thumb { width: 56px; height: 40px; border-radius: 7px; overflow: hidden; flex-shrink: 0; }
.helped-row .thumb svg { width: 100%; height: 100%; display: block; }
.helped-row .info { flex: 1; min-width: 0; }
.helped-row .line1 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.helped-row .line2 { font-size: 12px; color: var(--dim); margin-top: 2px; }

/* ---------- empty states ---------- */

.empty {
  border: 1px dashed var(--faint); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; color: var(--dim); font-size: 13.5px; line-height: 1.55;
  background: var(--surface);
}

/* ---------- notifications ---------- */

.notif {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 10px; cursor: pointer;
}
.notif .txt { flex: 1; font-size: 13.5px; line-height: 1.4; }
.notif .txt b { font-weight: 700; }
.notif .go { color: var(--faint); font-size: 18px; }

/* ---------- create (single screen) ---------- */

.artrow { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.artrow::-webkit-scrollbar { display: none; }
.artopt {
  flex: 0 0 116px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); position: relative; background: var(--surface);
}
.artopt.sel { outline: 2px solid #fff; outline-offset: 2px; }
.artopt svg { width: 100%; aspect-ratio: 3/2; display: block; }
.artopt .nm { display: none; }

/* layered front picker */
.frontgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.artopt.wide { flex: none; }
.artopt.wide .fcap {
  display: block; padding: 9px 11px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.02em; color: var(--dim); border-top: 1px solid var(--line);
}
.artopt.wide.sel .fcap { color: var(--ink); }

.msgopt, .cityopt {
  display: block; width: 100%; text-align: left;
  padding: 15px 16px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); font-size: 15px; cursor: pointer; font-family: inherit;
  position: relative;
}
.msgopt.sel, .cityopt.sel { border-color: #fff; background: #fff; color: #000; font-weight: 600; }
.msgopt.sel::after {
  content: ""; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: #000;
  box-shadow: inset 0 0 0 4.5px #000, inset 0 0 0 8px #fff;
}
.cityopt { display: flex; justify-content: space-between; align-items: center; }
.cityopt .dist { font-size: 12px; color: var(--faint); }

/* free-text message + prompt chips */
.msgarea {
  width: 100%; min-height: 86px; resize: none;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  font-family: inherit; font-size: 15px; line-height: 1.5;
}
.msgarea:focus { outline: none; border-color: var(--dim); }
.msgcount { text-align: right; font-size: 11px; color: var(--faint); margin-top: 6px; }
.promptchips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pchip {
  border: 1px solid var(--line); background: var(--surface); color: var(--dim);
  border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.pchip:active { color: var(--ink); border-color: var(--dim); }

/* recipient delivery-method chips */
.methodrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mchip {
  border: 1px solid var(--line); background: var(--surface); color: var(--dim);
  border-radius: 999px; padding: 8px 13px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.mchip.on { background: #fff; color: #000; border-color: #fff; font-weight: 700; }

/* pinpals + recipient extras */
.pinrow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pinchip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 6px 13px 6px 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.pinchip.on { border-color: #fff; }
.avatar {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #000;
}
.avatar.big { width: 40px; height: 40px; font-size: 17px; }
.userhint { font-size: 12px; color: var(--yellow); margin: 6px 2px 8px; min-height: 15px; }
.printrow {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin-top: 12px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--dim);
  font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; text-align: left;
}
.printrow.on { color: var(--ink); border-color: var(--dim); }
.printrow .pbox {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  border: 1.5px solid var(--faint); display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #000;
}
.printrow.on .pbox { background: var(--yellow); border-color: var(--yellow); }

.freenote { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--yellow); }
.freenote.spend { color: var(--dim); }

.cityselect {
  width: 100%; padding: 15px 16px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  font-size: 15px; font-family: inherit; appearance: none;
}

/* review card */
.review-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface);
}
.review-card .art { aspect-ratio: 3/2; }
.review-card .art svg { width: 100%; height: 100%; display: block; }
.review-card .back { padding: 16px; border-top: 1px solid var(--line); }
.review-card .msg { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.45; }
.review-card .addr { margin-top: 12px; font-size: 11px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.review-card .addr b { color: var(--ink); font-size: 14px; letter-spacing: -0.01em; display: block; margin-top: 2px; text-transform: none; }

/* ---------- journey tracker ---------- */

.tracker { background: #101013; }
.tracker-map { position: relative; flex: 1; min-height: 0; }
.tracker-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.backfab {
  position: absolute; top: 16px; left: 16px; width: 38px; height: 38px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
  font-family: inherit;
  display: flex; align-items: center; justify-content: center; padding-bottom: 2px;
}
.privacy-pill {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  background: rgba(21, 21, 23, 0.9); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; white-space: nowrap;
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--dim);
}
.sheet {
  position: relative; z-index: 5; flex-shrink: 0;
  background: var(--bg); border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--line);
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  max-height: 58%; overflow-y: auto; scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet .handle {
  display: block; width: 40px; height: 4px; border-radius: 2px;
  background: var(--line); margin: 2px auto 16px;
}
.sheet h1 { font-size: 24px; }

/* ---------- trip: simulated lock screen ---------- */

.lockscr {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  background: #000; color: #fff; padding: 54px 24px 30px; position: relative;
}
.lock-glyph { color: #8E8E93; margin-bottom: 10px; }
.lock-clock { font-size: 76px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.lock-date { font-size: 16px; font-weight: 500; color: #C7C7CC; margin-top: 8px; }

.liveact {
  width: 100%; margin-top: 34px;
  background: rgba(28, 28, 30, 0.92); border: 1px solid #2C2C2E;
  border-radius: 18px; padding: 14px 16px;
}
.la-head { display: flex; justify-content: space-between; align-items: center; }
.la-brand { font-weight: 800; font-size: 13px; letter-spacing: -0.02em; }
.la-brand .dot, .la-brand .car { color: var(--red); }
.la-now { font-size: 9.5px; letter-spacing: 0.1em; color: #98989D; font-weight: 700; }
.la-title { font-size: 16px; font-weight: 700; margin-top: 9px; display: flex; align-items: center; gap: 7px; }
.la-title svg { flex-shrink: 0; }
.la-sub { font-size: 13px; color: #98989D; margin-top: 3px; }
.la-bar { height: 4px; border-radius: 2px; background: #2C2C2E; margin-top: 12px; overflow: hidden; }
.la-bar i { display: block; height: 100%; width: 0%; background: var(--red); border-radius: 2px; transition: width 0.3s linear; }
.la-bar.bad i { background: #5A5A5E; }

.lock-foot { margin-top: auto; font-size: 12.5px; color: #5A5A5E; text-align: center; line-height: 1.6; }
.lockscr .btn.ghost { border-color: #2C2C2E; color: #8E8E93; background: transparent; margin-top: 14px; }

.grace-ov {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(4px); padding: 30px; z-index: 10;
}
.grace {
  border: 1px solid var(--red); border-radius: var(--radius);
  padding: 22px; max-width: 300px; background: rgba(232, 64, 47, 0.1); text-align: center;
}
.grace .cd { font-size: 44px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.grace p { font-size: 14px; color: #C7C7CC; margin-top: 6px; line-height: 1.45; }

.driveopt {
  display: block; width: 100%; text-align: left; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); cursor: pointer; font-family: inherit; margin-bottom: 10px;
}
.driveopt .to { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.driveopt .dur { font-size: 12.5px; color: var(--dim); margin-top: 3px; }

/* ---------- clean result ---------- */

.cleanring {
  width: 138px; height: 138px; margin: 26px auto 0; border-radius: 50%;
  border: 2.5px dashed #EDEDED;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  animation: stamp 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.cleanring span { font-size: 13px; letter-spacing: 0.18em; font-weight: 800; color: #EDEDED; }
.cleanring b { font-size: 9.5px; letter-spacing: 0.14em; color: var(--dim); font-weight: 700; }
.cleanring.bad { border-color: var(--faint); }
.cleanring.bad span { color: var(--dim); }
@keyframes stamp {
  0% { transform: scale(1.9); opacity: 0; }
  60% { transform: scale(0.96); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.statstrio { display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-top: 20px; }
.statstrio > div { flex: 1; text-align: center; padding: 14px 6px; }
.statstrio > div + div { border-left: 1px solid var(--line); }
.statstrio b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.statstrio span { display: block; font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-top: 3px; }
.statstrio .green { color: var(--ink); }
.statstrio .yellow { color: var(--yellow); }

.modlabel { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; color: var(--red); margin: 26px 0 10px; }
.handoffmod {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  padding: 14px;
}
.handoffmod .row { display: flex; align-items: center; gap: 12px; }
.handoffmod .thumb { width: 54px; height: 38px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.handoffmod .thumb svg { width: 100%; height: 100%; display: block; }
.handoffmod .arrow { color: var(--faint); flex-shrink: 0; }
.handoffmod .cnum {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.handoffmod .info { flex: 1; min-width: 0; font-size: 13px; color: var(--dim); line-height: 1.45; }
.handoffmod .info b { color: var(--ink); display: block; font-size: 13.5px; }
.handoffmod .note { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }

/* ---------- reveal misc ---------- */

.reveal-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.reveal-line .k { color: var(--dim); }
.reveal-line .v { font-weight: 700; }
.reveal-line .v.red { color: var(--red); }

.event {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; line-height: 1.45; color: var(--dim);
}
.event b { color: var(--ink); font-weight: 600; }
.event .dot { color: var(--red); flex-shrink: 0; margin-top: 1px; }

/* final mile callout */
.fmbox {
  border: 1.5px solid var(--red); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-top: 14px; background: rgba(232, 64, 47, 0.08);
}
.fmbox .fm-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; color: var(--red); }
.fmbox b { display: block; font-size: 16px; font-weight: 800; margin-top: 5px; letter-spacing: -0.01em; }
.fmbox span { display: block; font-size: 12.5px; color: var(--dim); margin-top: 3px; }

/* ---------- map / atlas ---------- */

.mapwrap {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; background: #101013;
}
.mapwrap svg { width: 100%; display: block; }

.segmented {
  display: flex; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 3px; margin: 14px 0;
}
.segmented button {
  flex: 1; padding: 9px 4px; border: none; border-radius: 9px;
  background: transparent; color: var(--dim); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.segmented button.on { background: #fff; color: #000; font-weight: 700; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--dim); cursor: pointer; font-family: inherit;
}
.chip.on { color: #000; background: #fff; border-color: #fff; font-weight: 700; }

/* glovebox → atlas bridge */
.bridge {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 15px; margin-top: 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer;
  font-size: 13.5px; color: var(--dim); line-height: 1.4;
}
.bridge b { color: var(--ink); }
.bridge .go { margin-left: auto; color: var(--faint); font-size: 18px; }
.bridge .bdot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex-shrink: 0;
  animation: bpulse 1.6s ease-out infinite;
}
@keyframes bpulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 64, 47, 0.5); }
  100% { box-shadow: 0 0 0 9px rgba(232, 64, 47, 0); }
}

.routecount {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 6px 11px; color: var(--dim);
}

/* ---------- stats grid ---------- */

.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; background: var(--surface);
}
.stat .n { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .n.yellow { color: var(--yellow); }
.stat .k { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-top: 4px; font-weight: 600; }

/* ---------- profile ---------- */

.streak-hero { text-align: center; padding: 28px 0 8px; position: relative; }
.streak-hero .n { font-size: 74px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); display: inline-block; font-variant-numeric: tabular-nums; position: relative; z-index: 2; }
.streak-hero .n.pop { animation: streakpop 0.55s cubic-bezier(0.2, 1.8, 0.4, 1); }
@keyframes streakpop {
  0% { transform: scale(1); }
  40% { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.confetti {
  position: absolute; left: 50%; top: 42%;
  width: 12px; height: 12px; pointer-events: none;
  z-index: 1; /* postal bits fly UNDER the number */
  animation: cfly 0.9s cubic-bezier(0.15, 0.8, 0.4, 1) forwards;
}
.confetti svg { width: 100%; height: 100%; display: block; }
@keyframes cfly {
  0% { transform: translate(-50%, -50%) rotate(0deg); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)); opacity: 0; }
}
.streak-hero .k { margin-top: 8px; }

.stampgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stampcell {
  aspect-ratio: 1; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px dashed var(--line); color: var(--faint); background: var(--surface);
}
.stampcell.earned { border: 1px solid var(--red); color: var(--ink); }
.stampcell .icon { font-size: 20px; }
.stampcell .t { font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; text-align: center; padding: 0 4px; }

/* ---------- onboarding ---------- */

.onb {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 40px 30px; gap: 18px;
}
.onb .mark { font-size: 36px; font-weight: 800; letter-spacing: -0.04em; }
.onb .mark .dot, .onb .mark .car { color: var(--red); }
.onb .bignum { font-size: 56px; font-weight: 800; color: var(--red); letter-spacing: -0.03em; }
.onb-bottom { padding: 0 30px calc(30px + env(safe-area-inset-bottom)); }

/* ---------- seal ---------- */

.seal {
  width: 150px; height: 180px; margin: 0 auto;
  animation: sealthunk 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
@keyframes sealthunk {
  0% { transform: scale(2.1) rotate(9deg); opacity: 0; }
  55% { transform: scale(0.94) rotate(-6deg); opacity: 1; }
  100% { transform: scale(1) rotate(-4deg); opacity: 1; }
}
.postmark { width: 130px; height: 130px; margin: 0 auto; animation: stamp 0.45s cubic-bezier(0.2,1.6,0.4,1) both; }

.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; } .mt-28 { margin-top: 28px; }
.dim { color: var(--dim); } .faint { color: var(--faint); } .red { color: var(--red); } .green { color: var(--green); }
.small { font-size: 13px; line-height: 1.5; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
