/* Which Pokémon are you? Tokens copied from Pokemon/champions-lab/web/styles.css
   (demandscan DESIGN-STANDARD: two primary colours, two secondary, hairline rules,
   three type sizes, a 4 px grid). Mobile first, one job per screen. */
:root {
  --paper: #F7F5F0; --ink: #1A1A1A; --muted: #5F5F5F; --rule: #D9D6D0; --soft: #F3EEE6; --data: #35506B; --accent: #B0421A;
  --card: #FFFFFF; /* a card surface on paper */
  --small: 13px; --body: 16px; --display: 28px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Helvetica, sans-serif;
  --measure: 70ch;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font: var(--body)/1.45 var(--font); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: var(--display); line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: var(--body); font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
p { margin: 0 0 12px; max-width: var(--measure); }
.small { font-size: var(--small); }
.muted { color: var(--muted); }
.kicker { font-size: var(--small); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }

.wrap { max-width: 520px; margin: 0 auto; padding: 0 20px; }
main { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0 48px; }
footer.foot { border-top: 1px solid var(--rule); padding: 16px 0 32px; color: var(--muted); font-size: var(--small); text-align: center; }
footer.foot p { max-width: none; margin: 0 0 4px; }

.screen { display: none; }
.screen.on { display: block; }

button { font: inherit; color: inherit; background: transparent; border: 1px solid var(--rule); border-radius: 8px; padding: 12px 16px; min-height: 44px; cursor: pointer; }
button:hover { border-color: var(--muted); }
button:focus-visible { outline: 2px solid var(--data); outline-offset: 1px; }
button.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); width: 100%; }
button.primary:hover { background: #333; }
button.link { border: 0; padding: 4px; min-height: 0; color: var(--accent); background: none; }

/* Names screen */
.names-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.names-grid button { min-height: 56px; font-size: var(--body); background: var(--card); }
.names-grid button:active { background: var(--soft); }
.how-it-works { margin-top: 24px; border-top: 1px solid var(--rule); padding-top: 16px; }
.how-it-works summary { cursor: pointer; font-size: var(--small); color: var(--muted); min-height: 44px; display: flex; align-items: center; }
.how-it-works p { margin-top: 12px; margin-bottom: 0; }
.how-it-works a { color: var(--accent); }

/* Quiz screen */
.progress { display: flex; gap: 4px; margin-bottom: 24px; }
.progress .dot { flex: 1; height: 4px; border-radius: 2px; background: var(--rule); }
.progress .dot.done { background: var(--data); }
.progress .dot.current { background: var(--accent); }
.stem { font-size: var(--body); line-height: 1.35; margin-bottom: 20px; font-weight: 600; }
.answers { display: grid; gap: 12px; }
.answers button { text-align: left; background: var(--card); padding: 14px 16px; line-height: 1.4; }
.answers button:active { background: var(--soft); }
.quiz-back { margin-top: 20px; }

/* Result screen */
.result-art { text-align: center; margin-bottom: 8px; }
.result-art img.art { width: 200px; height: 200px; object-fit: contain; image-rendering: -webkit-optimize-contrast; }
.result-art img.ani { width: 96px; height: 96px; object-fit: contain; margin-top: -8px; }
.result-name { text-align: center; margin-bottom: 4px; }
.result-genus { text-align: center; color: var(--muted); font-size: var(--small); margin-bottom: 20px; }
.reasoning p { margin-bottom: 10px; }
.reasoning .linesB { padding-left: 0; list-style: none; margin: 0 0 10px; }
.reasoning .linesB li { margin-bottom: 6px; }
.bars { margin: 20px 0; display: grid; gap: 14px; }
.bar-row { display: grid; gap: 4px; }
.bar-labels { display: flex; justify-content: space-between; font-size: var(--small); color: var(--muted); }
.bar-track { position: relative; height: 6px; background: var(--rule); border-radius: 3px; }
.bar-dot { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--data); transform: translate(-50%, -50%); border: 2px solid var(--paper); }
.result-actions { display: grid; gap: 12px; margin-top: 24px; }
.copy-status { text-align: center; font-size: var(--small); color: var(--muted); min-height: 18px; }

@media (min-width: 560px) {
  .names-grid { grid-template-columns: 1fr 1fr 1fr; }
}
