.quizpion-promotion {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(340px, var(--container));
  margin: 8px auto 32px;
  padding: 12px;
  border: 2px solid #ffcf36;
  border-radius: 8px;
  background: #030f29;
  color: #fff;
  text-align: center;
  font-family: system-ui, sans-serif;
}

#quizpion-promotion-label {
  padding: 2px 9px;
  border: 1px solid #ffcf36;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.quizpion-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.quizpion-promotion :is(a, button):focus-visible {
  outline: 2px solid #ffdf64;
  outline-offset: 2px;
  border-radius: 5px;
}

.quizpion-hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.quizpion-logo {
  width: 144px;
  height: 88px;
  object-fit: contain;
}

.quizpion-headline {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.06;
}

.quizpion-headline span {
  color: #ffda49;
}

.quizpion-promotion[lang="en"] .quizpion-headline {
  font-size: 20px;
}

.quizpion-rixi {
  display: block;
  width: min(100%, 184px);
  height: auto;
}

.quizpion-question {
  width: 100%;
  padding: 7px;
  border: 1px solid #66b7f4;
  border-radius: 9px;
  background: #0a254a;
}

.quizpion-question p {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.18;
}

.quizpion-question ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: start;
}

.quizpion-question button {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 2px 6px;
  border: 1px solid #83a7d1;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: start;
}

.quizpion-question button::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.quizpion-question button:hover {
  background: #173d68;
}

.quizpion-content[data-answered] button[data-correct-answer] {
  border-color: #82e4ad;
  background: #164936;
}

.quizpion-content button[aria-pressed="true"]:not([data-correct-answer]) {
  border-color: #ff9c97;
  background: #672b35;
}

.quizpion-content button[aria-pressed="true"]::before {
  background: currentColor;
}

.quizpion-cta {
  width: 100%;
  padding: 8px 4px;
  border-radius: 999px;
  background: linear-gradient(#ffe571, #ffc517);
  color: #07172e;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
}

.quizpion-cta:hover {
  background: #ffdf64;
}

.quizpion-promotion small {
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
}

.quizpion-feedback {
  position: absolute;
}

.quizpion-content[data-answered] .quizpion-logo {
  height: 64px;
}

.quizpion-content[data-answered] .quizpion-rixi {
  width: 128px;
}

.quizpion-content[data-answered] .quizpion-feedback {
  position: static;
  width: 100%;
  padding: 5px 7px;
  border: 1px solid #ffcf36;
  border-radius: 8px;
  background: #0a254a;
  font-size: 11px;
  line-height: 1.25;
}

.quizpion-feedback p {
  margin: 0;
}

.quizpion-equation {
  white-space: nowrap;
}

.quizpion-feedback strong {
  display: block;
  margin-bottom: 2px;
  color: #ffda49;
  font-size: 14px;
}

@media (width < 1608px), (height < 700px) {
  .quizpion-content { gap: 10px; }
}

/* 1120px content, two 224px side gutters, and 40px viewport clearance. */
@media (min-width: 1608px) and (min-height: 700px) {
  .quizpion-promotion {
    position: fixed;
    top: max(50%, calc(var(--header-height) + 308px));
    left: calc(50% - 560px - 224px);
    z-index: 2;
    width: 200px;
    height: 600px;
    margin: 0;
    padding: 8px 7px;
    transform: translateY(-50%);
  }
}
