.delta-quiz {
  box-sizing: border-box;
  width: min(60vw, 840px);
  max-width: calc(100% - 24px);
  max-height: calc(100dvh - min(12vh, 100px) - 16px);
  margin: min(12vh, 100px) auto auto;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #141414;
  box-shadow: 0 6px 32px rgb(0 0 0 / 28%);
  font: inherit;
}
.delta-quiz::backdrop { background: rgb(0 0 0 / 67%); }
.delta-quiz *, .delta-quiz *::before, .delta-quiz *::after { box-sizing: border-box; }
.delta-quiz__panel {
  min-height: min(450px, 70dvh);
  display: grid;
  align-content: center;
  position: relative;
  padding: 56px 5% 38px;
  background: #fff;
  box-shadow: 0 0 15px 1px rgb(201 201 201 / 40%);
  border-radius: 8px;
  line-height: 1.5;
}
.delta-quiz__cover { text-align: center; }
.delta-quiz__cover h2 {
  max-width: 660px;
  margin: 0 auto 24px;
  color: #111;
  font-family: inherit;
  font-size: clamp(21px, 3.2vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  text-wrap: balance;
}
.delta-quiz h2:focus { outline: none; }
.delta-quiz h2:focus-visible { text-decoration: underline dotted #777 1px; text-underline-offset: 4px; }
.delta-quiz button, .delta-quiz summary, .delta-quiz label, .delta-quiz input { cursor: pointer; }
.delta-quiz button { font-family: inherit; }
.delta-quiz__close {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  padding: 6px 12px;
  min-height: 32px;
  border-radius: 0 0 0 3px;
  border: 0;
  background: #222;
  color: #fff;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.delta-quiz .delta-quiz__button {
  width: fit-content;
  padding: 14px 36px;
  border: 0;
  border-radius: 8px;
  background: #3f5d9c;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
}
.delta-quiz__button:hover, .delta-quiz__button:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #3f5d9c;
}
.delta-quiz__counter {
  position: absolute;
  top: 14px;
  left: 5%;
  color: #424242;
  font-size: 15px;
}
.delta-quiz__form { display: grid; justify-items: start; gap: 10px; }
.delta-quiz__form h2 { margin: 0; color: #111; font-size: 18px; line-height: 1.45; }
.delta-quiz__form p, .delta-quiz__cover p { margin: 0; line-height: 1.5; }
.delta-quiz__form fieldset { display: grid; gap: 5px; width: 100%; margin: 3px 0; padding: 0; border: 0; }
.delta-quiz__choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d5d5d5;
  background: #f7f7f7;
  color: #1c1c1c;
  font-size: 15px;
  line-height: 1.45;
}
.delta-quiz__choice input { flex: 0 0 17px; width: 17px; height: 17px; margin: 3px 0 0; accent-color: #3f5d9c; }
.delta-quiz__choice:has(:checked) { background: #dde6f7; border-color: #3f5d9c; }
.delta-quiz__choice:hover { border-color: #3f5d9c; }
.delta-quiz :is(button, input, summary):focus-visible { outline: 2px solid #315086; outline-offset: 2px; }
.delta-quiz__error { color: #953027; }
.delta-quiz__error:empty { display: none; }
.delta-quiz__form .delta-quiz__button { justify-self: center; margin-top: 6px; }
.delta-quiz__cover .delta-quiz__score { color: #3f5d9c; font-size: 38px; font-weight: 700; }
.delta-quiz__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.delta-quiz__exit, .delta-quiz__review summary { color: #355184; text-decoration: underline; text-underline-offset: .15em; }
.delta-quiz__exit { border: 0; background: transparent; padding: 8px; font-size: 16px; }
.delta-quiz__review { margin: 15px auto 0; text-align: left; }
.delta-quiz__review summary { width: fit-content; margin: auto; }
.delta-quiz__review ol { margin: 12px auto; padding-left: 1.6em; }
.delta-quiz__review li { margin-bottom: 12px; }
@media (max-width: 780px) {
  .delta-quiz { width: min(94vw, 600px); padding: 10px; }
}
@media (max-width: 480px), (max-height: 540px) {
  .delta-quiz { margin-top: 16px; max-height: calc(100dvh - 32px); }
  .delta-quiz__panel { padding: 47px 12px 24px; }
}
