:root {
  --navy: #1a1f71;
  --navy-deep: #111653;
  --amber: #ffb400;
  --page: #f8faff;
  --answer: #f3f6fc;
  --border: #d9dee8;
  --muted: #626b7c;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(26, 31, 113, 0.12);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--page); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--navy-deep);
  background:
    radial-gradient(circle at 50% -15%, rgba(255, 180, 0, 0.08), transparent 34rem),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.site-header {
  display: flex;
  justify-content: center;
  padding: 30px 24px 18px;
}
.brand { display: inline-flex; align-items: center; min-height: 56px; }
.brand img { display: block; width: 188px; height: auto; max-height: 56px; }
.quiz-shell { width: min(100% - 36px, 720px); margin: 0 auto; padding: 10px 0 54px; }
.progress-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.step-count { color: var(--navy); font-size: 13px; font-weight: 750; letter-spacing: .04em; }
.minute-note { color: var(--muted); font-size: 13px; }
.progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: #e4e7ef; }
.progress-fill { width: var(--progress); height: 100%; border-radius: inherit; background: var(--amber); transition: width .35s ease; }
.screen { padding-top: clamp(42px, 7vh, 74px); animation: enter .35s ease both; }
.eyebrow { margin: 0 0 12px; color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 650px; margin: 0; color: var(--navy); font-size: clamp(34px, 6vw, 54px); line-height: 1.06; letter-spacing: -.04em; }
.screen h1[tabindex="-1"]:focus { outline: none; }
.lead { max-width: 590px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.country-identity { display: flex; align-items: center; gap: 22px; margin-top: 32px; }
.flag {
  display: grid;
  width: 98px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(17, 22, 83, .10);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(26, 31, 113, .10);
  font-size: 58px;
  line-height: 1;
}
.country-name { color: var(--navy); font-size: 23px; font-weight: 800; }
.country-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 7px; color: var(--muted); font-size: 13px; }
.country-meta strong { color: #333b51; font-weight: 700; }
.actions { display: grid; gap: 12px; margin-top: 36px; }
.primary, .secondary, .answer, .back-button {
  width: 100%;
  min-height: 58px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.primary { border: 1px solid var(--navy); color: var(--white); background: var(--navy); font-weight: 780; box-shadow: 0 10px 24px rgba(26, 31, 113, .18); }
.primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.secondary { border: 1px solid var(--border); color: var(--navy); background: transparent; font-weight: 720; }
.secondary:hover { border-color: var(--navy); background: rgba(255,255,255,.65); }
.answer-list { display: grid; gap: 13px; margin-top: 34px; }
.answer {
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 12px 19px;
  border: 1px solid var(--border);
  color: #232947;
  background: var(--answer);
  text-align: left;
  font-weight: 680;
}
.answer-index { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--navy); background: var(--white); font-size: 13px; font-weight: 800; }
.answer-arrow { color: var(--navy); font-size: 21px; opacity: .55; }
.answer:hover, .answer:focus-visible { border-color: var(--navy); background: var(--white); box-shadow: var(--shadow); transform: translateY(-1px); }
.back-button { width: auto; min-height: 42px; margin-top: 24px; padding: 0 2px; border: 0; color: var(--muted); background: transparent; font-size: 14px; font-weight: 700; }
.back-button:hover { color: var(--navy); }
.selector-box { margin-top: 30px; }
.selector-box label { display: block; margin-bottom: 9px; color: var(--navy); font-size: 14px; font-weight: 760; }
.selector-box select { width: 100%; min-height: 58px; padding: 0 48px 0 16px; border: 1px solid var(--border); border-radius: 12px; color: #202641; background: var(--white); }
.selector-box select:focus { outline: 3px solid rgba(255, 180, 0, .28); border-color: var(--navy); }
.result-icon { display: grid; width: 72px; height: 72px; margin-bottom: 24px; place-items: center; border-radius: 50%; color: var(--navy); background: #fff2cc; font-size: 34px; }
.loading-mark { width: 38px; height: 38px; margin: 15vh auto; border: 3px solid #e2e5ee; border-top-color: var(--amber); border-radius: 50%; animation: spin .8s linear infinite; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(255,180,0,.45); outline-offset: 3px; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .site-header { justify-content: flex-start; padding: 22px 20px 10px; }
  .brand img { width: 158px; }
  .quiz-shell { width: min(100% - 32px, 720px); padding-bottom: 36px; }
  .screen { padding-top: 34px; }
  h1 { font-size: clamp(32px, 10vw, 42px); }
  .lead { font-size: 16px; }
  .country-identity { gap: 16px; }
  .flag { width: 86px; height: 64px; font-size: 50px; }
  .country-name { font-size: 20px; }
  .answer { min-height: 66px; padding: 10px 14px; grid-template-columns: 34px 1fr 16px; }
  .minute-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
