/* Report-a-Smoker · design tokens and screen styles (from the design canvas) */
:root {
  --bg: #0b0f14;
  --deep: #05080b;
  --bar: #080b0f;
  --panel: #121a24;
  --line: #22303f;
  --red: #e5202b;
  --dred: #7a0c12;
  --notice: #b3121b;
  --amber: #f5b400;
  --txt: #e8edf2;
  --muted: #8a99a8;
  --green: #3ddc84;
  --blue: #3b82f6;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --font: Oswald, 'Arial Narrow', Impact, sans-serif;
  --mono: 'Share Tech Mono', Consolas, 'Courier New', monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body {
  background: #000;
  color: var(--txt);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.7; }
h1, h2 { margin: 0; font-weight: 700; }

.mono { font-family: var(--mono); letter-spacing: 1px; }
.muted { color: var(--muted); }
.light { color: var(--txt); }
.dim { opacity: 0.8; }
.amber { color: var(--amber); }
.red { color: var(--red); }
.center { text-align: center; }
.right { text-align: right; }
.spacer { flex-grow: 1; min-height: 6px; }

/* ---- Motion ---------------------------------------------------------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.1; } }
@keyframes scan { 0% { transform: translateY(-6px); } 100% { transform: translateY(120px); } }

.pulse { animation: pulse 2s infinite; }
.blink { animation: blink 1.2s infinite; }
.fast.pulse { animation-duration: 1.2s; }
.fast.blink { animation-duration: 0.8s; }

@media (prefers-reduced-motion: reduce) {
  .pulse, .blink, .sweep, .blip, .map-scan { animation: none !important; }
}

/* ---- App frame ------------------------------------------------------- */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
}

@media (min-width: 481px) {
  .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

.hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(14px + var(--sat)) 16px 10px;
  border-bottom: 2px solid var(--red);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.hdr svg { flex-shrink: 0; }
.hdr-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.hdr-title { font-size: 19px; font-weight: 700; letter-spacing: 2px; white-space: nowrap; }
.hdr-sub { font-size: 8.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-mode { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--red); white-space: nowrap; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; }
.dot.white { background: #fff; }

.strip {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 16px;
  background: var(--deep);
  color: var(--amber);
  font-size: 9px;
  white-space: nowrap;
}

.installbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--amber);
  color: #000;
  font-size: 10px;
}
.installbar span { flex-grow: 1; }
.installbar button { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; padding: 6px 10px; border: 1px solid #000; }
.installbar #installDismiss { border: 0; padding: 6px; }

.screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 12px;
  flex-grow: 1;
}
.screen-bare { padding: 0; gap: 0; }
.stack { display: contents; }

.tabbar {
  display: flex;
  border-top: 1px solid var(--line);
  background: var(--bar);
  padding: 0 8px calc(10px + var(--sab));
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  min-height: 48px;
  border-top: 2px solid transparent;
  color: var(--muted);
  font-size: 9px;
}
.tab.active { border-top-color: var(--red); color: var(--red); }

/* ---- Shared blocks --------------------------------------------------- */
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.h1 { font-size: 24px; letter-spacing: 2px; }
.h2 { font-size: 14px; letter-spacing: 2px; }
.caption { font-size: 9px; color: var(--muted); }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  background: var(--red);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 24px rgba(229, 32, 43, 0.35);
  transition: transform 0.08s ease;
}
.cta:active { transform: scale(0.985); }
.cta.amber { background: var(--amber); color: #000; }
.cta.black { background: #000; border-color: #fff; box-shadow: none; }

.motto { text-align: center; font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.motto.pink { color: #ffd6d8; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--panel); border: 2px solid var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.avatar.green { width: 40px; height: 40px; border-width: 1px; border-color: var(--green); }

/* ---- Scan ------------------------------------------------------------ */
.alert-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--red); color: #fff;
}
.alert-banner svg { flex-shrink: 0; }
.alert-text { display: flex; flex-direction: column; line-height: 1.1; }
.alert-title { font-size: 17px; font-weight: 700; letter-spacing: 2px; }
.alert-sub { font-size: 9px; opacity: 0.9; }

.radar-wrap { display: flex; justify-content: center; }
.radar { width: min(240px, 68vw); height: auto; display: block; }
.radar circle, .radar path { stroke-width: 1; }
.radar .sweep { transform-origin: 120px 120px; animation: sweep 3.2s linear infinite; }
.radar-label { fill: var(--muted); font-family: var(--mono); font-size: 9px; }
.radar-label.small { font-size: 8px; }
.radar-you { fill: #9ec5ff; font-family: var(--mono); font-size: 9px; }
.radar-dist { fill: var(--red); font-family: var(--mono); font-size: 9px; }
.radar .blip { animation: pulse 1.4s infinite; }

.gps-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 7px 10px; background: var(--deep); border: 1px solid var(--line);
  font-size: 9px; text-align: left;
}
.gps-lock { display: flex; align-items: center; gap: 6px; color: var(--green); }

.blip-list { display: flex; flex-direction: column; gap: 6px; }
.blip-card {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; min-height: 44px;
  background: var(--panel); border: 1px solid var(--line);
}
.blip-card.hot { border-color: var(--red); }
.blip-card svg { flex-shrink: 0; }
.blip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); flex-shrink: 0; }
.blip-dot.pulse { animation-duration: 1.2s; }
.blip-text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.blip-title { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; }
.blip-sub { font-size: 9px; color: var(--muted); }

/* ---- Report ---------------------------------------------------------- */
.locbox { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); }
.map {
  position: relative; height: 92px; overflow: hidden;
  background-color: #0e1620;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
}
.map-road-h { position: absolute; left: 0; right: 0; top: 30px; height: 14px; background: #1a2532; }
.map-road-v { position: absolute; top: 0; bottom: 0; left: 42%; width: 14px; background: #1a2532; }
.map-ring { position: absolute; left: calc(42% + 24px); top: 24px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--green); opacity: 0.6; }
.map-pin { position: absolute; left: calc(42% + 34px); top: 28px; line-height: 0; }
.map-scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--green); opacity: 0.5; animation: scan 2.4s linear infinite; }
.loc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); }
.loc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loc-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--green); }
.ghost-amber { font-size: 9px; color: var(--amber); padding: 6px 8px; border: 1px solid var(--amber); white-space: nowrap; }

.evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ev {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: linear-gradient(160deg, #2a3340 0%, #141b24 55%, #0a0e13 100%);
  border: 1px solid var(--line);
}
.ev-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ev-art.blurred { filter: blur(1.2px); }
.ev-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-box { position: absolute; left: 30%; top: 14%; width: 40%; height: 46%; border: 1.5px solid var(--red); box-shadow: 0 0 8px rgba(229, 32, 43, 0.6); }
.ev-box.wide { left: 34%; top: 12%; width: 32%; height: 56%; }
.ev-tag { position: absolute; left: 6px; top: 6px; font-size: 8px; color: var(--amber); }
.ev-time { position: absolute; right: 6px; bottom: 6px; font-size: 8px; color: #fff; }
.ev-label { position: absolute; left: 6px; bottom: 22px; font-size: 8px; color: var(--red); background: rgba(0, 0, 0, 0.6); padding: 1px 4px; }
.notice-photo .ev-label { bottom: 5px; }
.ev-label.white { color: #fff; }

.dashed-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border: 1px dashed var(--muted);
  font-size: 13px; font-weight: 700; letter-spacing: 2px; cursor: pointer;
}
.dashed-btn.disabled { opacity: 0.4; pointer-events: none; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 14px;
  border: 1px solid var(--line); color: var(--muted);
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
}
.chip.on { border-color: var(--red); background: var(--red); color: #fff; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); }
.toggle-text { display: flex; flex-direction: column; gap: 2px; }
.toggle-title { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; }
.switch { width: 44px; height: 24px; border-radius: 12px; background: var(--line); position: relative; flex-shrink: 0; transition: background 0.15s; }
.switch .knob { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.switch.on { background: var(--red); }
.switch.on .knob { left: 23px; }

/* ---- Validated ------------------------------------------------------- */
.hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0 4px; text-align: center; }
.hero-ring { position: relative; width: 104px; height: 104px; display: flex; align-items: center; justify-content: center; }
.ring { position: absolute; border-radius: 50%; border: 2px solid var(--green); }
.ring.outer { inset: 0; opacity: 0.4; animation-duration: 1.6s; }
.ring.inner { inset: 10px; border-width: 1px; opacity: 0.6; }
.ring.white { inset: 0; border-color: #fff; opacity: 0.35; }
.hero-title { font-size: 28px; font-weight: 700; letter-spacing: 3px; color: var(--green); }
.hero-title.muted { color: var(--muted); }
.hero-title.amber { color: var(--amber); }

.points-box { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; background: var(--panel); border: 1px solid var(--amber); }
.points-big { font-size: 56px; font-weight: 700; letter-spacing: 2px; line-height: 1; color: var(--amber); }
.points-label { font-size: 14px; font-weight: 700; letter-spacing: 3px; color: var(--amber); }
.points-box .caption { margin-top: 6px; }

.progress-block { display: flex; flex-direction: column; gap: 6px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.progress { height: 8px; background: var(--deep); border: 1px solid var(--line); }
.progress-fill { height: 100%; background: var(--amber); }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; background: var(--panel); border: 1px solid var(--line); }
.stat.red { border-color: var(--red); }
.stat.red .stat-num { color: var(--red); }
.stat-num { font-size: 26px; font-weight: 700; line-height: 1; }

.corrob { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--deep); border: 1px solid var(--line); }
.corrob-row { display: flex; justify-content: center; gap: 18px; }
.corrob-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* ---- Rankings -------------------------------------------------------- */
.seg { display: flex; border: 1px solid var(--line); }
.seg-item { flex: 1; text-align: center; padding: 12px 10px; min-height: 44px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 2px; }
.seg-item.on { background: var(--red); color: #fff; }

.podium { display: flex; align-items: flex-end; gap: 6px; padding-top: 6px; }
.pod { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; flex: 1; }
.pod-block { width: 100%; display: flex; flex-direction: column; align-items: center; padding-top: 8px; color: #000; }
.pod-rank { font-size: 28px; font-weight: 700; line-height: 1; }
.pod-pts { font-size: 9px; }

.rank-list { display: flex; flex-direction: column; gap: 5px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 44px; background: var(--panel); border: 1px solid var(--line); }
.rank-row.me { background: var(--red); border-color: var(--red); color: #fff; }
.rank-row.me .caption { color: #fff; }
.rank-num { width: 30px; font-size: 18px; font-weight: 700; }
.rank-text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.rank-name { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; }
.rank-pts { font-size: 13px; }
.ellipsis { text-align: center; font-size: 10px; color: var(--muted); letter-spacing: 3px; }

.tier-legend { display: flex; justify-content: space-between; gap: 6px; padding: 8px 10px; background: var(--deep); border: 1px solid var(--line); font-size: 9px; color: var(--muted); flex-wrap: wrap; }
.tier-legend span { display: flex; align-items: center; gap: 6px; }

/* ---- Wallet ---------------------------------------------------------- */
.payout-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--dred) 0%, #2a0507 100%);
  border: 1px solid var(--red);
}
.payout-watermark { position: absolute; right: -18px; top: -18px; opacity: 0.18; line-height: 0; }
.payout-status { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 10px; letter-spacing: 2px; }
.payout-amount { font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: 1px; color: #fff; }
.payout-note { font-size: 10px; color: #f5c6c9; }
.payout-ref { font-size: 9px; color: #f5c6c9; opacity: 0.8; margin-top: 6px; }

.receipt { display: flex; flex-direction: column; padding: 4px 12px; background: var(--panel); border: 1px solid var(--line); }
.receipt-line { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 11px; color: var(--muted); }
.receipt-line:last-child { border-bottom: 0; }
.receipt-line.total { font-size: 13px; color: var(--txt); }

.balance { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; background: var(--deep); border: 1px solid var(--amber); }
.balance-big { font-size: 28px; font-weight: 700; line-height: 1; color: var(--amber); margin-top: 2px; }
.balance-life { font-size: 14px; color: var(--txt); margin-top: 2px; }

/* ---- Notice (the smoker's phone) ------------------------------------ */
body.bare .app { background: var(--notice); }
.notice { display: flex; flex-direction: column; min-height: 100dvh; background: var(--notice); }
.hazard { height: 14px; flex-shrink: 0; background: repeating-linear-gradient(135deg, #000 0 14px, var(--amber) 14px 28px); }
.hazard:first-child { margin-top: var(--sat); }
.hazard:last-child { margin-bottom: var(--sab); }
.notice-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 22px 16px; flex-grow: 1; color: #fff; text-align: center; }
.notice-flag { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 3px; }
.notice-emblem { position: relative; width: 112px; height: 112px; display: flex; align-items: center; justify-content: center; }
.notice-title { font-size: 34px; font-weight: 700; letter-spacing: 4px; line-height: 1; }
.notice-sub { font-size: 10px; line-height: 1.6; color: #ffd6d8; }

.notice-evidence { display: flex; gap: 10px; width: 100%; }
.notice-photo { position: relative; flex: 1; aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid #fff; background: linear-gradient(160deg, #2a3340 0%, #141b24 55%, #0a0e13 100%); }
.notice-facts { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; background: #000; text-align: left; }
.notice-offense { font-size: 16px; font-weight: 700; letter-spacing: 1.5px; }

.cease { width: 100%; padding: 14px 12px; background: #000; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cease-title { font-size: 26px; font-weight: 700; letter-spacing: 3px; color: var(--amber); line-height: 1; }

.penalty-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.penalty { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; gap: 2px; }
.penalty.light-card { background: #fff; color: #000; }
.penalty.dark-card { background: #000; color: #fff; }
.penalty-label { font-size: 9px; letter-spacing: 2px; }
.dark-card .penalty-label, .dark-card .penalty-foot { color: var(--muted); }
.light-card .penalty-foot { color: #555; }
.penalty-big { font-size: 38px; font-weight: 700; line-height: 1; }
.penalty-foot { font-size: 8px; }

/* ---- Additions: identity, gates, forms ------------------------------ */
.h1.red { color: var(--red); }
.alert-banner.idle { background: var(--panel); color: var(--muted); border: 1px solid var(--line); animation: none; }
.alert-banner.clear { background: #0f2a1c; color: var(--green); border: 1px solid #1f5c3a; animation: none; }
.alert-banner.smoker { background: var(--dred); color: #fff; border: 1px solid var(--red); animation: none; }
.radar.offline { opacity: 0.45; }
.radar.offline .sweep { animation: none; }
.blip-empty { padding: 12px 10px; text-align: center; font-size: 9px; color: var(--muted); border: 1px dashed var(--line); }

.consent-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--panel); border: 1px solid var(--amber); }
.consent-title { font-size: 16px; font-weight: 700; letter-spacing: 2px; color: var(--amber); }
.cta.small { min-height: 46px; font-size: 15px; letter-spacing: 2px; margin-top: 4px; }
.cta.outline { background: transparent; color: var(--txt); border: 2px solid var(--line); box-shadow: none; }

.form { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 9px; color: var(--muted); }
.field input { width: 100%; min-height: 46px; padding: 10px 12px; background: var(--deep); border: 1px solid var(--line); color: var(--txt); font: inherit; font-size: 16px; letter-spacing: 1px; outline: none; }
.field input:focus { border-color: var(--amber); }
.field input::placeholder { color: #4b5866; }
.code-input { text-align: center; font-size: 28px !important; letter-spacing: 10px !important; font-family: var(--mono) !important; }
.form-error { font-size: 10px; color: var(--red); padding: 8px 10px; border: 1px solid rgba(229, 32, 43, 0.5); background: rgba(229, 32, 43, 0.08); }
.form-error:empty { display: none; }
.link-btn { display: block; background: none; border: 0; color: var(--muted); font-size: 9px; letter-spacing: 2px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; margin: 0 auto; }
.ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); color: var(--txt); font-size: 9px; letter-spacing: 1.5px; background: transparent; }
.ghost:hover { border-color: var(--amber); color: var(--amber); }

.devbox { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px dashed var(--amber); background: rgba(245, 180, 0, 0.06); }
.devlink { color: var(--amber); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.devcode { font-size: 18px; letter-spacing: 4px; color: var(--txt); }

.radio-chip { cursor: pointer; }
.chip:focus-visible, .switch:focus-visible, .cta:focus-visible, .tab:focus-visible, .ghost:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.rung { display: flex; flex-direction: column; gap: 3px; padding: 8px 6px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--line); min-width: 0; }
.rung.done { border-top-color: var(--green); }
.rung.current { border-top-color: var(--amber); background: #1a1f16; }
.rung-num { font-size: 9px; color: var(--muted); }
.rung.done .rung-num { color: var(--green); }
.rung.current .rung-num { color: var(--amber); }
.rung-name { font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.rung .caption { font-size: 7.5px; letter-spacing: 0.5px; }

.panel { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); }
.panel.action { border-color: var(--amber); }
.panel.locked { opacity: 0.6; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--muted); }
.kv .light, .kv .red, .kv .amber { text-align: right; }
.wallet-amt { font-size: 18px; font-weight: 700; }

.empty-box { display: flex; flex-direction: column; gap: 6px; padding: 18px 12px; text-align: center; border: 1px dashed var(--line); }
.rank-row.unranked { background: var(--panel); border: 1px dashed var(--red); color: var(--txt); }

.gate { display: flex; flex-direction: column; min-height: 100dvh; background: var(--bg); }
.gate-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 22px 16px; flex-grow: 1; text-align: center; }
.gate-flag { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 3px; color: var(--red); }
.gate-emblem { padding: 8px 0; }
.gate-title { font-size: 40px; font-weight: 700; letter-spacing: 4px; line-height: 1; margin: 0; color: var(--txt); text-wrap: balance; }
.gate-sub { font-size: 10px; line-height: 1.6; color: var(--muted); }
.gate-note { font-size: 10px; line-height: 1.6; color: var(--amber); border: 1px solid var(--amber); padding: 10px; }
.gate-choices { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; }

.hero.compact { padding: 4px 0 0; }
.hero-ring.small { width: 72px; height: 72px; }
.penalty-big .unit { font-size: 14px; letter-spacing: 2px; margin-left: 4px; vertical-align: super; }

.loc-title.muted { color: var(--muted); }
