:root {
  --paper: #F4EFE6; --ink: #14110F; --muted: #6B655C;
  --green: #2E8B57; --yellow: #D99A00; --red: #C8372D;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: min(100% - 2rem, 34rem); margin: 0 auto; padding: 1.5rem 0 3rem; flex: 1; }
header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; }
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: inherit; text-decoration: none; }
.num { color: var(--muted); font-variant-numeric: tabular-nums; }
h1 { font-size: clamp(2.5rem, 10vw, 4.5rem); line-height: 0.95; letter-spacing: -0.04em; margin: 0 0 1rem; font-weight: 800; }
.lede { font-size: 1.25rem; line-height: 1.4; color: var(--muted); margin: 0 0 2.5rem; max-width: 24ch; }
.btn { display: inline-block; font: inherit; font-weight: 700; font-size: 1.125rem; padding: 0.9rem 1.5rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink); cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: transparent; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: 0.45; cursor: default; }
.row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.sil { margin: 0 0 1.5rem; text-align: center; }
.sil img { width: min(60vw, 16rem); height: min(60vw, 16rem); object-fit: contain; color: var(--ink); }
.sil figcaption { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 0.5rem; }
.q { color: var(--muted); margin: 0 0 0.25rem; }
.guess { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.guess output { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.guess small { color: var(--muted); font-size: 1rem; }
input[type=range] { width: 100%; margin: 0 0 1.5rem; accent-color: var(--ink); }
input[type=range][disabled] { opacity: 0.5; }
.verdict { font-size: 1.375rem; font-weight: 700; line-height: 1.3; margin: 0 0 1rem; }
.verdict.green { color: var(--green); } .verdict.yellow { color: var(--yellow); } .verdict.red { color: var(--red); }
#scale { width: 100%; height: auto; display: block; }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 0.75rem; }
form { display: grid; gap: 0.75rem; }
input[type=email] { font: inherit; font-size: 1.125rem; padding: 0.8rem 1rem; border: 2px solid var(--ink); border-radius: 0.75rem; background: #fff; color: var(--ink); width: 100%; }
input[type=email]::placeholder { color: var(--muted); }
.consent { color: var(--muted); font-size: 0.95rem; line-height: 1.4; margin: 0; }
.consent a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--red); font-weight: 600; }
footer { padding: 1rem; text-align: center; color: var(--muted); font-size: 0.9rem; }
footer a { color: inherit; }
.legal h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal p, .legal li { line-height: 1.5; }
canvas.offscreen { position: absolute; left: -99999px; top: 0; }
