:root {
  --page-bg: #f1f1f1;
  --text: #30302f;
  --black: #000;
  --soft-line: #d3d3d3;
  --selected-ring: #c4ccd1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

.quiz-shell {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 28px 80px;
}

.quiz-header {
  display: flex;
  justify-content: center;
  margin: 0 0 30px;
}

.quiz-header img {
  display: block;
  width: min(100%, 500px);
  height: auto;
}

.progress-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.progress-dots {
  display: flex;
  gap: 11px;
  align-items: center;
}

.progress-dots span {
  width: 22px;
  height: 22px;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: transparent;
}

.progress-dots span.is-filled {
  background: var(--black);
}

.progress-dots span.is-half {
  background: linear-gradient(90deg, var(--black) 50%, transparent 50%);
}

.question-screen {
  display: none;
}

.question-screen.is-active {
  display: block;
}

.back-button {
  display: inline-flex;
  align-items: center;
  border: 0;
  margin: 0 0 58px;
  padding: 0;
  background: transparent;
  color: #777;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
}

.question-count {
  margin: 0 0 28px;
  color: var(--text);
  font-size: 27px;
  font-weight: 900;
  line-height: 1.1;
}

h1 {
  margin: 0 0 28px;
  color: var(--text);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0;
}

.helper-copy {
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.28;
}

.answer-list {
  display: grid;
  justify-items: stretch;
  gap: 14px;
  margin-top: 18px;
}

.answer-list--short {
  gap: 14px;
}

.answer-button {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 2px solid #1f1f1f;
  border-radius: 999px;
  padding: 10px 18px 10px 26px;
  background: #f8f8f8;
  color: var(--text);
  box-shadow: 0 4px 0 #d8d8d8;
  font: inherit;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
  transition: background .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.answer-button::after {
  content: "→";
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.answer-button:hover,
.answer-button:focus-visible {
  background: #fff;
  transform: translateY(-1px);
}

.answer-button.is-selected {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
  box-shadow: 0 0 0 7px var(--selected-ring);
  transform: translateY(0);
}

.answer-button.is-selected::after {
  color: #fff;
}

.level-images {
  display: grid;
  gap: 14px;
  margin: 0;
}

.level-choice {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.level-choice img {
  display: block;
  width: 100%;
  height: auto;
}

.level-choice.is-selected {
  box-shadow: 0 0 0 6px var(--selected-ring);
}

.result-screen {
  text-align: left;
}

.result-screen h1 {
  margin-bottom: 18px;
  color: var(--black);
  font-size: 64px;
  line-height: 1;
}

.result-copy {
  margin: 0 0 30px;
  font-size: 20px;
}

.result-button {
  display: inline-flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--black);
  border-radius: 999px;
  padding: 0 30px;
  background: var(--black);
  color: #fff;
  box-shadow: 0 0 0 7px var(--selected-ring);
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 380px) {
  .quiz-shell {
    padding-inline: 22px;
  }

  .answer-button {
    min-height: 64px;
    gap: 12px;
    padding-inline: 16px;
    font-size: 21px;
  }

  .answer-button::after {
    width: 28px;
    height: 28px;
    font-size: 27px;
  }

  h1 {
    font-size: 29px;
  }

  .helper-copy {
    font-size: 24px;
  }
}


.quiz-header img {
  margin: -18px auto -4px;
}
