:root { color-scheme: light dark; --accent: #0b6e4f; --ok: #2e7d32; --warn: #e65100; --bad: #c62828; }
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: grid; min-height: 100vh; place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); }
main { width: 100%; max-width: 420px; text-align: center; }
h1 { font-size: 1.6rem; margin: 0 0 4px; }
.brand { margin: 0 0 8px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.sub { opacity: .75; margin: 0 0 24px; }
.btn { display: block; width: 100%; padding: 16px; margin: 10px 0; border-radius: 14px; border: 0;
  background: var(--accent); color: #fff; font-size: 1.1rem; font-weight: 600; text-decoration: none;
  cursor: pointer; text-align: center; }
.btn.secondary { background: transparent; color: inherit; border: 1px solid currentColor; font-weight: 400; }
.btn.store { font-size: 1rem; font-weight: 500; }
.status { margin: 8px 0 20px; }
.dot { width: 132px; height: 132px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent); }
.status.hearing .dot { background: var(--ok); animation: pulse 1.2s ease-in-out infinite alternate; }
.status.weak .dot { background: var(--warn); }
.status.none .dot { background: var(--bad); }
.status-text { font-size: 1.5rem; font-weight: 600; margin: 0; }
.status.hearing .status-text { color: var(--ok); }
.status.weak .status-text { color: var(--warn); }
.status.none .status-text { color: var(--bad); }
.line { margin: 6px 0 0; opacity: .8; }
.announce { text-align: left; padding: 16px; border-radius: 14px; margin: 0 0 16px;
  background: #fff3e0; color: #4e2600; }
.announce-title { margin: 0 0 4px; font-size: .9rem; }
.announce-text { margin: 0; font-size: 1.3rem; font-weight: 600; }
.error { color: var(--bad); font-weight: 600; }
.hint { opacity: .85; }
.note { font-size: .9rem; opacity: .75; margin-top: 20px; }
[hidden] { display: none !important; }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .status.hearing .dot { animation: none; } }
@media (prefers-color-scheme: dark) { .announce { background: #4e3420; color: #ffe0c2; } }
.code { font: 700 2rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em;
  margin: 16px 0 4px; user-select: all; }
.state { font-weight: 600; margin: 4px 0 0; }
.state.active { color: var(--ok); }
.state.upcoming { color: var(--warn); }
.state.expired, .state.revoked { color: var(--bad); }
.steps { text-align: left; margin: 20px 0; padding-left: 1.3em; }
.steps li { margin: 6px 0; }
.links a { color: var(--accent); }
.links.small { font-size: .85rem; opacity: .85; }
