.pttl-quiz {
  --pttl-quiz-red: #e31b23;
  --pttl-quiz-cyan: #58bde8;
  --pttl-quiz-ink: #101318;
  --pttl-quiz-text: #f4f7fb;
  --pttl-quiz-muted: #aeb8c6;
  --pttl-quiz-line: #2a303a;
  --pttl-quiz-panel: #0d1016;
  --pttl-quiz-soft: #171c24;
  width: 100%;
  margin: 28px 0;
  color: var(--pttl-quiz-text);
  font-family: inherit;
}

.pttl-quiz-anchor {
  display: block;
  height: 1px;
  margin-top: -1px;
  scroll-margin-top: 110px;
}

.pttl-quiz *,
.pttl-quiz *::before,
.pttl-quiz *::after {
  box-sizing: border-box;
}

.pttl-quiz__shell {
  overflow: hidden;
  border: 1px solid #252b34;
  background: var(--pttl-quiz-panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.pttl-quiz__header {
  position: relative;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 0 !important;
  height: auto !important;
  gap: 18px !important;
  padding: 12px 24px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(88, 189, 232, 0.22), transparent 34%),
    linear-gradient(135deg, #07090d 0%, #151a22 58%, #0b0d11 100%);
  color: #fff;
}

.pttl-quiz__header::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: 0;
  left: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--pttl-quiz-red), var(--pttl-quiz-cyan), transparent);
  opacity: 0.9;
}

.pttl-quiz__brand {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.pttl-quiz__title {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: clamp(14px, 1.25vw, 24px) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.pttl-quiz__counter {
  flex: 0 0 auto !important;
  align-self: center !important;
  min-width: 74px !important;
  margin: 0 !important;
  padding: 10px 13px !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.pttl-quiz__bar {
  height: 7px;
  background: #242a34;
}

.pttl-quiz__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--pttl-quiz-red), #ff474e);
  transition: width 180ms ease;
}

.pttl-quiz__body {
  padding: 0 30px 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(88, 189, 232, 0.09), transparent 32%),
    linear-gradient(180deg, #0d1016 0%, #111720 100%);
  color: var(--pttl-quiz-text);
}

.pttl-quiz__cover {
  overflow: hidden;
  margin: 0 0 26px;
  height: clamp(170px, 26vw, 360px);
  background: #080a0e;
}

.pttl-quiz__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pttl-quiz__question h3,
.pttl-quiz__result h3 {
  margin: 0 0 16px !important;
  padding-top: 10px !important;
  color: #ffffff !important;
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: none;
}

.pttl-quiz__media {
  overflow: hidden;
  margin: 18px 0 0;
  background: #080a0e;
}

.pttl-quiz__media img,
.pttl-quiz__media video {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.pttl-quiz__media--video {
  position: relative;
  aspect-ratio: 16 / 9;
}

.pttl-quiz__media--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pttl-quiz__answers {
  display: grid;
  gap: 12px;
}

.pttl-quiz__answer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid #2a303a;
  background: #141922;
  color: #f4f7fb;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.pttl-quiz__answer:hover {
  border-color: #4a5565;
  background: #181f2a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.pttl-quiz__answer.is-selected {
  border-color: var(--pttl-quiz-red);
  background: #21161a;
  box-shadow: 0 16px 34px rgba(227, 27, 35, 0.16);
}

.pttl-quiz__answer.is-correct {
  border-color: #159447;
  background: #0f2518;
}

.pttl-quiz__answer.is-wrong {
  border-color: #d02f28;
  background: #2b1416;
}

.pttl-quiz__answer-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #07090d;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.pttl-quiz__answer.is-selected .pttl-quiz__answer-key {
  background: var(--pttl-quiz-red);
}

.pttl-quiz__answer.is-correct .pttl-quiz__answer-key {
  background: #159447;
}

.pttl-quiz__answer.is-wrong .pttl-quiz__answer-key {
  background: #d02f28;
}

.pttl-quiz__answer-text {
  min-width: 0;
  color: #f4f7fb !important;
  font-size: 19px;
  line-height: 1.35;
}

.pttl-quiz__explanation {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 5px solid var(--pttl-quiz-red);
  background: #171c24;
  color: #e8edf4;
  font-size: 18px;
  line-height: 1.6;
}

.pttl-quiz__explanation strong {
  color: #ffffff;
}

.pttl-quiz__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.pttl-quiz__primary,
.pttl-quiz__nav,
.pttl-quiz__share a,
.pttl-quiz__share-story {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #343b48;
  background: #141922;
  color: #f4f7fb;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.pttl-quiz__primary {
  border-color: var(--pttl-quiz-red);
  background: var(--pttl-quiz-red);
  color: #fff;
}

.pttl-quiz__primary:hover {
  border-color: #b90f16;
  background: #b90f16;
  color: #fff;
  transform: translateY(-1px);
}

.pttl-quiz__nav:hover,
.pttl-quiz__share a:hover,
.pttl-quiz__share-story:hover {
  border-color: #4a5565;
  background: #202733;
  color: #fff;
}

.pttl-quiz__primary:disabled,
.pttl-quiz__nav:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

.pttl-quiz__result {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.pttl-quiz__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 134px;
  min-height: 92px;
  margin: 0 0 18px;
  background: linear-gradient(135deg, var(--pttl-quiz-red), #a90d14);
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(227, 27, 35, 0.18);
}

.pttl-quiz__result p {
  color: #e8edf4;
  font-size: 18px;
  line-height: 1.6;
}

.pttl-quiz__random-note {
  margin: 16px auto 0;
  max-width: 620px;
  color: #ffffff !important;
  font-weight: 800;
}

.pttl-quiz__share {
  flex-wrap: wrap;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  padding: 2px 0 8px;
  overflow: visible;
}

.pttl-quiz__share a,
.pttl-quiz__share-story {
  min-height: 44px;
  line-height: 1.1;
}

.pttl-quiz__share-note {
  min-height: 22px;
  margin: -4px 0 18px;
  color: var(--pttl-quiz-muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .pttl-quiz__header {
    align-items: center !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 14px 14px 12px !important;
    text-align: center !important;
  }

  .pttl-quiz__header::after {
    right: 18px;
    left: 18px;
  }

  .pttl-quiz__counter {
    align-self: center;
    flex: 0 0 auto !important;
    min-width: 58px !important;
    padding: 8px 8px !important;
    font-size: 14px !important;
  }

  .pttl-quiz__brand {
    width: 100% !important;
    flex: 0 1 auto !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  .pttl-quiz__title {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 20px !important;
    line-height: 1.16 !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    text-wrap: balance;
  }

  .pttl-quiz__body {
    padding: 0 16px 18px;
  }

  .pttl-quiz__cover {
    height: clamp(150px, 38vw, 240px);
    margin-bottom: 18px;
  }

  .pttl-quiz__answer {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 62px;
    padding: 10px 12px;
  }

  .pttl-quiz__answer-text {
    font-size: 17px;
  }

  .pttl-quiz__actions {
    flex-direction: column-reverse;
  }

  .pttl-quiz__primary,
  .pttl-quiz__nav {
    width: 100%;
  }
}
