.k53-qf {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
}

.k53-qf__frame {
  background: #000;
  color: #fff;
  border-radius: 34px;
  overflow: hidden;
  padding-bottom: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

.k53-qf__hero,
.k53-qf__hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.k53-qf__hero-fallback {
  padding: 28px 18px 20px;
  text-align: center;
  background: radial-gradient(circle at center, #f08a00 0%, #7b1d00 38%, #000 78%);
}

.k53-qf__hero-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  color: #ffd12a;
  text-transform: uppercase;
}

.k53-qf__hero-subtitle {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.k53-qf__timerbar {
  margin: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, #007ca4 14%, #0b9bc6 50%, #007ca4 86%, rgba(0,0,0,0) 100%);
  text-align: center;
  padding: 2px 14px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.k53-qf__timer {
  display: inline-block;
  min-width: 110px;
  font-size: 32px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  color: #f0f5f8;
  transition: transform .18s ease, color .18s ease, text-shadow .18s ease;
}

.k53-qf__timer.is-pulse {
  transform: scale(1.06);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255,255,255,.28);
}

.k53-qf__screen {
  padding: 10px 14px 0;
}

.k53-qf__screen--start,
.k53-qf__screen--result {
  text-align: center;
  min-height: auto;
}

.k53-qf__start-title {
  margin: 8px 0 10px;
  color: #fff;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 900;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}


.k53-qf__score-message {
  margin: 10px 0 18px;
  color: #f7e335;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.k53-qf__result-text {
  margin: 10px 0 14px;
  color: #fff;
  font-size: 34px;
  line-height: .95;
  font-weight: 900;
  font-style: italic;
}

.k53-qf__start-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  cursor: pointer;
  text-transform: uppercase;
}

.k53-qf__start-button:hover,
.k53-qf__start-button:focus,
.k53-qf__start-button:active,
.k53-qf__start-button--image:hover,
.k53-qf__start-button--image:focus,
.k53-qf__start-button--image:active {
  background: transparent !important;
  box-shadow: none !important;
}

.k53-qf__start-button--image img {
  display: block;
  max-width: 72%;
  height: auto;
  margin: 0 auto;
  transition: transform .18s ease, filter .18s ease;
}

.k53-qf__start-button--image,
.k53-qf__start-button--image:hover,
.k53-qf__start-button--image:focus,
.k53-qf__start-button--image:active {
  background: transparent !important;
  box-shadow: none !important;
}

.k53-qf__start-button--image:hover img,
.k53-qf__start-button--image:focus img {
  transform: scale(1.02);
  filter: drop-shadow(0 0 10px rgba(140,255,0,.55)) drop-shadow(0 0 18px rgba(255,214,0,.35));
}

.k53-qf__card {
  background: #f4f4f4;
  border-radius: 34px;
  padding: 18px 16px 22px;
  color: #2f4862;
  overflow: hidden;
}

.k53-qf__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  max-height: 320px;
  margin-bottom: 20px;
}

.k53-qf__image {
  display: block;
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.k53-qf__question {
  color: #557aad;
  font-size: 13px;
  line-height: 1.18;
  font-weight: 800;
  margin: 0 0 22px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  max-width: 100%;
}

.k53-qf__answers {
  display: grid;
  gap: 12px;
}

.k53-qf__answer {
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color .16s ease, transform .16s ease;
  border-radius: 14px;
}

.k53-qf__answer:hover {
  background: #e7e7e7;
}

.k53-qf__answer-toggle {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #60778d;
  position: relative;
  transition: background-color .2s ease;
}

.k53-qf__answer-toggle::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

.k53-qf__answer-text {
  min-width: 0;
  display: block;
  color: #2f4862;
  font-size: 11px;
  line-height: 1.24;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.k53-qf__answer.is-correct .k53-qf__answer-toggle {
  background: #31a24c;
}

.k53-qf__answer.is-wrong .k53-qf__answer-toggle {
  background: #cb2f2f;
}

.k53-qf__answer.is-correct .k53-qf__answer-text,
.k53-qf__answer.is-wrong .k53-qf__answer-text {
  font-weight: 700;
}

.k53-qf__answer.is-disabled {
  cursor: default;
  opacity: .95;
}

.k53-qf__feedback {
  display: none;
}

.k53-qf__score-message {
  color: #cfd6da;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
  margin: 2px 0 10px;
}

.k53-qf__score {
  color: #ffb300;
  font-size: 58px;
  line-height: .92;
  font-weight: 900;
  margin: 4px 0 18px;
}

.k53-qf__link-button,
.k53-qf__full-link {
  display: block;
  width: 100%;
  background: transparent !important;
  border: 0;
  padding: 0;
  text-decoration: underline;
  font-weight: 900;
  font-style: italic;
  cursor: pointer;
  text-align: center;
}

.k53-qf__link-button {
  color: #ffe400;
  font-size: 16px;
  line-height: 1.05;
  margin: 6px auto 18px;
}

.k53-qf__link-button:hover,
.k53-qf__link-button:focus {
  color: #ffffff;
  background: transparent !important;
}

.k53-qf__full-link {
  color: #00d8e8;
  line-height: 1.08;
  white-space: normal;
  text-decoration: underline;
}

.k53-qf__full-link:hover,
.k53-qf__full-link:focus {
  color: #6cf3ff;
}

@media (min-width: 768px) {
  .k53-qf {
    max-width: 470px;
  }

  .k53-qf__frame {
    border-radius: 36px;
    padding-bottom: 18px;
  }

  .k53-qf__timerbar {
    padding: 2px 14px;
    min-height: 64px;
  }

  .k53-qf__timer {
    font-size: 36px;
  }

  .k53-qf__screen {
    padding: 14px 18px 0;
  }

  .k53-qf__start-title {
    font-size: 22px;
    margin: 8px 0 10px;
  }

  .k53-qf__start-button--image img {
    max-width: 66%;
  }

  .k53-qf__card {
    padding: 20px 18px 24px;
  }

  .k53-qf__image-wrap {
    min-height: 240px;
    max-height: 340px;
  }

  .k53-qf__image {
    max-height: 320px;
  }

  .k53-qf__question {
    font-size: 14px;
  }

  .k53-qf__answer-text {
    font-size: 12px;
  }

  .k53-qf__score-message {
  color: #cfd6da;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
  margin: 2px 0 10px;
}

.k53-qf__score {
    font-size: 64px;
  }

  .k53-qf__link-button {
    font-size: 22px;
  }

  .k53-qf__full-link {
    white-space: normal;
  }
}
