:root {
  --bg: #090a0f; --surface: #12141c; --surface-border: #1e2230;
  --text-main: #f8fafc; --text-muted: #8492a6; --accent: #22c55e;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
[data-theme="light"] {
  --bg: #f8fafc; --surface: #ffffff; --surface-border: #e2e8f0;
  --text-main: #090d16; --text-muted: #64748b; --accent: #16a34a;
}
[data-theme="terminal"] {
  --bg: #030a04; --surface: #061408; --surface-border: #0e3013;
  --text-main: #22c55e; --text-muted: #15803d; --accent: #4ade80;
  --font-body: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: space-between; padding: 1.5rem; text-align: center;
}
button { font-family: inherit; }
header, footer { display: flex; justify-content: space-between; align-items: center; max-width: 900px; margin: 0 auto; width: 100%; font-size: 0.8rem; }
footer { color: var(--text-muted); flex-wrap: wrap; gap: 0.75rem; }
.footer-links { display: inline-flex; align-items: center; gap: 0.65rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--text-main); text-decoration: underline; text-underline-offset: 3px; }
.footer-sep { opacity: 0.4; }
.status-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.85rem; border-radius: 9999px; background: var(--surface); border: 1px solid var(--surface-border); }
.status-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.theme-btn, .btn-secondary { background: var(--surface); border: 1px solid var(--surface-border); color: var(--text-muted); padding: 0.4rem 0.85rem; border-radius: 8px; cursor: pointer; }
main { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; max-width: 900px; margin: 0 auto; padding: 2rem 0; }
.question { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; color: var(--text-muted); }
.answer { font-size: clamp(6.5rem, 24vw, 16rem); font-weight: 900; line-height: 0.85; margin: 0.5rem 0 1rem; }
.subtitle { color: var(--text-muted); max-width: 500px; margin-bottom: 2rem; }
.action-group { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.5rem; }
.btn-primary { background: var(--text-main); color: var(--bg); border: none; font-weight: 600; padding: 0.75rem 1.6rem; border-radius: 9999px; cursor: pointer; }
.scanner-log { font-family: ui-monospace, monospace; font-size: 0.75rem; color: var(--accent); min-height: 1.5rem; }
.diagnostic-panel { width: 100%; max-width: 580px; background: var(--surface); border: 1px solid var(--surface-border); border-radius: 12px; padding: 1.25rem; text-align: left; display: none; margin-top: 1rem; }
.diagnostic-panel.visible { display: block; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.82rem; margin-top: 0.75rem; }
.checklist li span { color: var(--accent); font-weight: bold; margin-right: 0.5rem; }
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--surface); border: 1px solid var(--surface-border); padding: 0.75rem 1.25rem; border-radius: 9999px; font-size: 0.82rem; opacity: 0; transition: all 0.25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
