:root { color-scheme: dark; --bg: #070a13; --card: #0d1426; --line: #1e2a44; --text: #e6edf7; --muted: #94a3b8;
  --blue: #3b82f6; --green: #22c55e; --amber: #fbbf24; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
body { overflow: hidden; }
.screen { height: 100%; }
.view { display: none; height: 100%; flex-direction: column; align-items: center; text-align: center;
  padding: calc(env(safe-area-inset-top) + 48px) 24px calc(env(safe-area-inset-bottom) + 24px); }
.view.on { display: flex; }
h1 { font-size: 22px; margin: 18px 0 10px; }
.muted { color: var(--muted); margin: 6px 0; max-width: 340px; }
.small { font-size: 13px; }
.badge-icon, .moon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 38px;
  background: radial-gradient(circle at 50% 40%, #12305a, #0b1730); border: 1px solid #1f4a7a; }
.moon { background: radial-gradient(circle at 50% 40%, #3a2c08, #1a1405); border-color: #6b5410; }
.match { margin: 18px 0 8px; padding: 14px 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.match-label { font-size: 11px; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.match-code { font-size: 36px; font-weight: 700; letter-spacing: .08em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.sealed { color: var(--muted); font-size: 12.5px; max-width: 280px; }
.spacer { flex: 1; }
.btn { font: inherit; font-weight: 600; border-radius: 12px; padding: 12px 18px; border: 1px solid var(--line);
  background: transparent; color: var(--text); width: 100%; max-width: 340px; cursor: pointer; }
.btn.primary { background: linear-gradient(#3b82f6, #2563eb); border-color: #3b82f6; margin-top: 18px; }
.btn.secondary { background: var(--card); }
.btn.small { width: auto; padding: 6px 12px; font-size: 13px; margin: 0 0 0 6px; border-radius: 9px; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.tip { margin: 16px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  max-width: 340px; font-size: 13.5px; text-align: left; }
.pcs { margin-top: 18px; width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 8px; }
.pc { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pc.current { border-color: #2c5fa8; }
.pc small { color: var(--muted); }
.view.app { padding: 0; align-items: stretch; text-align: left; }
.strip { display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 4px) 10px 4px;
  background: #08101f; border-bottom: 1px solid #0f2a1f; }
.strip-pc { flex: 1; display: flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; color: #a7f3d0;
  background: transparent; border: 0; padding: 4px 2px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; }
.strip-sealed { color: var(--muted); }
.strip-off { background: transparent; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; padding: 4px 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.banner { display: flex; align-items: center; gap: 4px; padding: 8px 10px; font-size: 13px; background: #0d1a33;
  border-bottom: 1px solid var(--line); }
.banner > span { flex: 1; }
.switcher { padding: 10px 12px 14px; background: #0a1224; border-bottom: 1px solid var(--line); }
.switcher .pcs { margin-top: 8px; max-width: none; }
.switcher-title { font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
iframe { flex: 1; width: 100%; border: 0; background: var(--bg); }
[hidden] { display: none !important; }
