@font-face {
  font-family: Benzin;
  src: url('/fonts/benzin-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #171514;
  --paper: #fffdf9;
  --red: #ef2b2d;
  --orange: #ff7a1a;
  --muted: #69635e;
  --line: #ded8d1;
  --good: #216342;
  --bad: #b42318;
  --heading: Benzin, 'Arial Black', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--ink); font: 16px/1.55 'Segoe UI', Arial, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
button, label, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, .file-picker input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 4px; }
.hidden { display: none !important; }
.shell { width: min(1060px, calc(100% - 64px)); margin-inline: auto; }
.topbar { display: flex; align-items: center; padding-block: 30px; color: white; }
.brand { display: flex; align-items: center; gap: 28px; }
.brand-logo { display: block; width: 230px; height: auto; }
.brand-title { padding-left: 28px; border-left: 1px solid #ffffff4d; max-width: 270px; font-size: 15px; font-weight: 600; line-height: 1.4; }
main { padding-top: 8px; }
.stage { padding: clamp(28px, 5vw, 64px); background: var(--paper); border-top: 8px solid var(--red); border-radius: 6px; }
.eyebrow { margin: 0 0 20px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; text-wrap: balance; }
h1, h2 { margin: 0; text-transform: uppercase; letter-spacing: -.025em; }
h1 { max-width: 900px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.18; }
h2 { font-size: clamp(25px, 3.6vw, 38px); line-height: 1.25; }
h3 { margin: 0; font-size: 21px; line-height: 1.4; }
.lead { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: 20px; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px; border: 1.5px solid transparent; border-radius: 5px; font-weight: 700; line-height: 1.35; text-align: center; transition: background-color .15s, border-color .15s; }
.primary { background: var(--red); color: white; }
.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
@media (hover: hover) {
  .primary:hover:enabled { background: #cb2023; }
  .secondary:hover:enabled, .file-label:hover { background: #f2ece5; border-color: var(--ink); }
  .option:hover:enabled { border-color: var(--ink); }
}
.primary:disabled, .secondary:disabled { background: #e4dfd9; color: #706a64; cursor: not-allowed; }
.small { color: var(--muted); font-size: 13px; margin: 0; }
.form-grid { display: grid; gap: 24px; margin-top: 32px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-weight: 600; }
.field input { width: 100%; border: 1.5px solid var(--line); border-radius: 5px; padding: 14px; background: white; color: var(--ink); }
.field input:focus { border-color: var(--ink); }
.error { color: var(--bad); font-size: 14px; margin-top: 14px; }
.progress-wrap { margin-bottom: 30px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.progress { height: 4px; background: var(--line); overflow: hidden; }
.progress > div { height: 100%; background: var(--red); transition: width .2s ease; }
.question { font-size: clamp(22px, 3vw, 32px); line-height: 1.4; text-transform: none; text-wrap: pretty; margin-bottom: 28px; }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 5px; background: transparent; text-align: left; color: var(--ink); line-height: 1.5; }
.option.selected { border-color: var(--red); background: #fff0e8; }
.radio { display: grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; border: 1.5px solid #938a81; border-radius: 50%; }
.selected .radio { border-color: var(--red); }
.selected .radio::after { content: ''; width: 10px; height: 10px; background: var(--red); border-radius: 50%; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.result-intro { text-align: center; }
.portrait { display: grid; place-items: center; position: relative; width: min(360px, 100%); aspect-ratio: 4 / 5; margin: 0 auto 30px; overflow: hidden; background: var(--red); border-radius: 4px; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.initials { color: white; font-family: var(--heading); font-size: 72px; }
.result-congratulations { margin: 0 0 8px; font-weight: 700; font-size: 22px; }
.result-prefix { margin: 0; font-size: 18px; }
.jury-name { margin: 14px auto 20px; max-width: 820px; font-size: clamp(28px, 4vw, 44px); line-height: 1.3; overflow-wrap: anywhere; }
.result-copy { max-width: 610px; margin: 0 auto; font-size: 18px; line-height: 1.7; color: var(--muted); }
.upload { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.upload .eyebrow { margin-bottom: 14px; }
.upload-copy { max-width: 760px; margin: 16px 0; color: var(--muted); }
.file-picker { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; }
.file-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.file-label { cursor: pointer; flex-shrink: 0; border-color: var(--ink); }
.file-label svg { flex-shrink: 0; }
.file-picker input:disabled + label { opacity: .5; cursor: wait; }
.file-ok { min-width: 0; margin: 0; color: var(--good); font-size: 14px; overflow-wrap: anywhere; }
.privacy { max-width: 760px; margin: 22px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.submit-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.upload-status { color: var(--muted); font-size: 14px; }
.upload-status.error { color: var(--bad); margin: 0; }
.success-box { margin-top: 40px; padding: 26px; background: #eef5ed; border-left: 4px solid var(--good); }
.success-box h3 { color: var(--good); }
.success-box p { margin: 12px 0 0; }
.restart { margin-top: 26px; }
.selection-guide { padding-block: 42px; color: white; }
.selection-guide h2 { font-size: 22px; text-transform: none; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 28px 0 0; list-style: none; }
.steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; border-top: 1px solid #ffffff38; color: #e1dcd7; font-size: 15px; }
.step-number { color: var(--orange); font-family: var(--heading); font-size: 20px; }
.footer { padding-block: 20px 32px; border-top: 1px solid #ffffff26; color: #aaa39d; font-size: 12px; }
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .topbar { padding-block: 22px; }
  .brand-logo { width: 190px; }
  .brand-title { display: none; }
  .stage { padding: 32px 24px; border-top-width: 6px; }
  h1 { font-size: clamp(19px, calc(8vw - 6px), 36px); }
  .lead { font-size: 18px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .portrait { width: min(300px, 100%); }
  .question { font-size: 23px; }
}
@media (max-width: 420px) {
  .stage { padding: 26px 20px; }
  .eyebrow { font-size: 11px; }
  .actions > *, .submit-row > .primary, .file-label { width: 100%; }
  .quiz-nav { flex-wrap: wrap; }
  .quiz-nav > * { flex: 1 1 auto; padding-inline: 16px; }
  .portrait { width: min(270px, 100%); }
  .result-copy { font-size: 16px; }
  .option { padding: 14px; }
  .selection-guide h2 { font-size: 19px; }
  .steps li { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
