* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: visible;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.desktop-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, #2d1d76 0%, transparent 45%),
    radial-gradient(circle at 90% 30%, #31116f 0%, transparent 40%),
    linear-gradient(180deg, #140d33 0%, #1b1245 40%, #0a0520 100%);
  z-index: -1;
}

.bg-quiz {
  background:
    radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.15), transparent 30%),
    radial-gradient(circle at 80% 25%, rgba(192, 38, 211, 0.2), transparent 45%),
    linear-gradient(160deg, #12034a, #1a0672 45%, #04053b 100%);
}

/*
 * Display ads use a fixed height per slot (no data-ad-format), so AdSense picks a
 * creative that fits and the page never shifts when an ad fills (CLS).
 */
.ad-slot,
.qp-display {
  display: block;
  width: 100%;
  overflow: visible;
  background: transparent;
  border: none;
  text-align: center;
}

.qp-display ins.adsbygoogle {
  display: inline-block;
  width: 100%;
}

.qp-ad-banner {
  height: 100px;
}

.qp-ad-banner ins.adsbygoogle {
  height: 100px;
}

.qp-ad-rect {
  height: 250px;
}

.qp-ad-rect ins.adsbygoogle {
  height: 250px;
}

.qp-fb-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ad-slot iframe,
.qp-display iframe,
ins.adsbygoogle iframe {
  max-width: none !important;
}

.ad-slot img,
.qp-display img,
ins.adsbygoogle img {
  max-width: none !important;
}

.ad-slot.is-empty,
.qp-display.is-empty {
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Intro: banner iframes must not overlap taps on answers (stacking + clip). */
#introQuestionPhase .ad-slot,
#introQuestionPhase .qp-display {
  position: relative;
  z-index: 0;
  overflow: visible;
  max-width: 100%;
  border-radius: 12px;
}

#introQuestionPhase article.rounded-2xl,
#introQuestionPhase #optionsWrap {
  position: relative;
  z-index: 2;
}

#introQuestionPhase #optionsWrap .option-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.qp-ad-open *,
body.qp-paused * {
  animation-play-state: paused !important;
}



.contest-card {
  border-radius: 14px;
  background: #f8f8fb;
  color: #111827;
  padding: 10px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.contest-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contest-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, #c4b5fd 0%, #8b5cf6 45%, #4f46e5 100%);
  padding: 8px;
  display: grid;
  place-content: center;
  flex: 0 0 auto;
}

.contest-icon-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.contest-headline-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.contest-headline {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
  margin: 0;
  flex: 1;
  min-width: 0;
  white-space: normal;
}

.contest-topic-tag {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.contest-prize-row {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.contest-prize-amount {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.contest-prize-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quiz-question-text {
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  margin: 0;
  background: #fef08a;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.35);
}

.quiz-play-title {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.contest-prize-coin {
  font-size: 1.05rem;
}

.contest-subtle {
  margin-top: 2px;
  font-size: 0.72rem;
  color: #6b7280;
}

.contest-bottom {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.contest-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #374151;
}

.contest-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.contest-live .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #9ca3af;
}

.contest-live.is-live .dot {
  background: #22c55e;
}

.contest-live.is-closed .dot {
  background: #ef4444;
}

.contest-entry {
  font-weight: 700;
  color: #111827;
}

.contest-play {
  border: 1px solid rgba(124, 58, 237, 0.65);
  background: #ffffff;
  color: #6d28d9;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 36px;
  min-width: 96px;
  cursor: pointer;
}

.contest-play:hover {
  background: rgba(124, 58, 237, 0.08);
}

.contest-play:active {
  transform: translateY(1px);
}

.option-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: #ffffff;
  color: #0b1020;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  padding: 14px 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(17, 24, 39, 0.08);
  cursor: pointer;
}

.option-btn:active {
  transform: translateY(1px);
}

.option-btn.correct {
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #ffffff;
}

.option-btn.wrong {
  background: linear-gradient(90deg, #ef4444, #f97316);
  color: #ffffff;
}

.modal-shell {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-content: center;
  padding: 18px;
  z-index: 80;
}

.modal-card {
  position: relative;
  width: min(360px, 95vw);
  border-radius: 16px;
  background: #fff;
  color: #111827;
  padding: 20px 18px 18px;
  text-align: center;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #6b7280;
}

/* Mobile-only AdSense display popup (101 domain) */
.quiz-ad-popup {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

.quiz-ad-popup.is-open {
  display: flex !important;
  pointer-events: auto;
}

.quiz-ad-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.quiz-ad-popup__card {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  pointer-events: auto;
}

.quiz-ad-popup__header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.quiz-ad-popup__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.quiz-ad-popup__close {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.quiz-ad-popup__close:active {
  background: #000000;
}

.quiz-ad-popup__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  padding: 12px;
  overflow: hidden;
}

/* Never show the ad popup on desktop / tablet landscape */
@media (min-width: 768px) {
  .quiz-ad-popup,
  .quiz-ad-popup.is-open {
    display: none !important;
  }
}

.purple-cta {
  border: none;
  width: 100%;
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #4f1dff, #9333ea);
  cursor: pointer;
}

.modal-primary {
  border: none;
  width: 100%;
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  background: linear-gradient(90deg, #4f1dff, #9333ea);
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(147, 51, 234, 0.22);
}

.modal-primary:active {
  transform: translateY(1px);
}

.modal-secondary {
  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 800;
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(17, 24, 39, 0.12);
  cursor: pointer;
}

.modal-secondary:hover {
  background: rgba(17, 24, 39, 0.03);
}

.tab-active {
  border-bottom: 3px solid #fff;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 70;
}

.app-drawer {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  width: min(84vw, 320px);
  height: 100%;
  padding: 18px 14px;
  background: linear-gradient(180deg, #15107a 0%, #0e0a58 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.24s ease;
  z-index: 75;
}

.app-drawer.open {
  transform: translateX(0);
}

.drawer-link {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.drawer-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Intro: claim-coins modal (non-dismissible overlay; only Claim advances) */
.intro-claim-shell {
  z-index: 90;
}

.intro-claim-card {
  position: relative;
  width: min(340px, 92vw);
  border-radius: 20px;
  background: #fff;
  color: #111827;
  padding: 22px 20px 20px;
  text-align: center;
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.38);
}

.intro-claim-icon {
  font-size: 2.75rem;
  line-height: 1;
  margin-bottom: 8px;
}

.intro-claim-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
  color: #6d28d9;
  letter-spacing: -0.02em;
}

.intro-claim-sub {
  margin: 10px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4b5563;
  line-height: 1.45;
}

.intro-claim-btn {
  margin-top: 18px;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(92deg, #6d28d9, #9333ea);
  box-shadow: 0 12px 26px rgba(109, 40, 217, 0.35);
}

.intro-claim-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.intro-claim-hint {
  margin: 12px 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1.4;
}

/* Intro: final “Not Bad!” style result */
.intro-final-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 0 28px 28px 20px;
  padding: 1.25rem 1rem 1.25rem 1.25rem;
  margin-bottom: 1rem;
  margin-left: 2px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  overflow: visible;
}

.intro-final-accent {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 5px;
  background: linear-gradient(180deg, #fde047, #facc15);
  border-radius: 0 3px 3px 0;
}

.intro-final-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: #6d28d9;
  margin: 0 0 1rem 0.35rem;
  letter-spacing: -0.02em;
}

.intro-final-coin-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f3f4f6;
  border-radius: 16px;
  padding: 14px 16px;
  margin-left: 4px;
}

.intro-final-coin-badge {
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
}

.intro-final-coin-badge-num {
  font-size: 0.95rem;
  font-weight: 900;
  color: #111827;
}

.intro-final-coin-badge-lbl {
  font-size: 0.62rem;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.intro-final-coin-text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.35;
}

.intro-final-coin-highlight {
  color: #ea580c;
  font-weight: 900;
}

.intro-final-foot {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 14px 4px 0;
  line-height: 1.45;
}

.intro-final-cta {
  display: block;
  width: 100%;
  margin-top: 1rem;
  border: none;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(92deg, #6d28d9 0%, #9333ea 55%, #a855f7 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(109, 40, 217, 0.4);
  letter-spacing: 0.02em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 3;
}

.intro-final-cta:active {
  transform: translateY(1px);
}

.intro-trust-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0 0.25rem;
}

.intro-trust-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
}

.intro-trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 0 2px rgba(253, 224, 71, 0.35);
}

.intro-made-in {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  margin: 1rem 0 0;
}

@media (max-width: 420px) {
  .option-btn {
    font-size: 1.25rem;
  }
}

/* ——— Mobile-first QuizPlay shell ——— */
.qp-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 215, 110, 0.08), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(124, 58, 237, 0.18), transparent 36%),
    linear-gradient(180deg, #0b0b14 0%, #080812 50%, #05050c 100%);
}

.qp-stage,
.qp-app {
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  overflow: visible;
  background: #0b0b16;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
}

.hidden {
  display: none !important;
}

.qp-intro,
.qp-play,
.qp-start {
  padding: 12px 16px 32px;
}

.qp-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.qp-widget {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, rgba(36, 24, 68, 0.96), rgba(16, 12, 32, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.qp-widget-play {
  border-color: rgba(167, 139, 250, 0.35);
}

.qp-widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.qp-widget-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.qp-widget-sub {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 600;
}

.qp-progress-pill {
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #1e1135;
  background: #fde68a;
  white-space: nowrap;
}

.qp-question {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
}

.qp-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.qp-option {
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 10px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.qp-option span {
  display: block;
  line-height: 1.3;
}

.qp-option:hover {
  border-color: rgba(196, 181, 253, 0.7);
  background: rgba(124, 58, 237, 0.28);
}

.qp-option:active {
  transform: scale(0.97);
}

.qp-option.is-correct,
.option-btn.correct {
  background: #16a34a;
  border-color: #4ade80;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
  transform: scale(1.02);
}

.qp-option.is-wrong,
.option-btn.wrong {
  background: #dc2626;
  border-color: #f87171;
  color: #fff;
}

.qp-option.is-locked {
  pointer-events: none;
}

.qp-option.is-locked:not(.is-correct):not(.is-wrong) {
  opacity: 0.45;
}

.qp-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.qp-enter {
  animation: qpEnter 0.28s ease;
}

.qp-pop {
  animation: qpPop 0.35s ease;
}

.qp-fun,
.qp-howto,
.qp-win,
.qp-benefits,
.qp-steps {
  margin-top: 14px;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.qp-fun-tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  background: #7c3aed;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qp-fun p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

.qp-section-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
}

.qp-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.qp-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 8px;
}

.qp-steps li span {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #7c3aed;
  display: grid;
  place-content: center;
  font-size: 11px;
  font-weight: 800;
}

.qp-benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.qp-benefit-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(245, 215, 110, 0.25);
  border-radius: 14px;
  padding: 12px;
  background: rgba(12, 10, 24, 0.6);
}

.qp-cta-pill {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  padding: 16px 18px;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4);
  touch-action: manipulation;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.qp-cta-pill:active,
.qp-join-primary:active,
.qp-join-guest:active,
.qp-play-chip:active,
.qp-earn-btn:active {
  transform: scale(0.98);
}

.qp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 16px 0;
  overflow: visible;
  background: rgba(13, 6, 119, 0.94);
  backdrop-filter: blur(12px);
}

.qp-quiz-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  color: #111827;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.16s ease;
}

.qp-quiz-row:active {
  transform: scale(0.99);
}

.qp-play-chip {
  flex: none;
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  min-height: 36px;
  background: #6d28d9;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.qp-play-chip:hover {
  background: #5b21b6;
}

@keyframes qpEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes qpPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .qp-enter,
  .qp-pop,
  .qp-option,
  .qp-cta-pill,
  .qp-quiz-row {
    animation: none;
    transition: none;
  }
}

.qp-display {
  width: 100%;
  margin: 10px 0;
  background: transparent;
}

.qp-header .qp-display {
  margin: 0 0 8px;
}

.qp-home > .qp-display {
  padding: 0 16px;
  margin: 10px 0 4px;
  width: auto;
}

.qp-congrats {
  text-align: center;
  padding: 18px 12px 8px;
}

.qp-congrats-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 999px;
  display: grid;
  place-content: center;
  color: #4ade80;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.25), rgba(74, 222, 128, 0.05));
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.25);
}

.qp-congrats-check svg {
  width: 36px;
  height: 36px;
}

.qp-congrats-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 900;
  background: linear-gradient(90deg, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.qp-congrats-sub,
.qp-congrats-copy {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  line-height: 1.45;
}

.qp-coin-badge {
  width: 140px;
  height: 140px;
  margin: 18px auto;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fde047, #f59e0b 70%);
  color: #3b1d08;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.qp-coin-badge strong {
  font-size: 2rem;
  line-height: 1;
}

.qp-coin-badge span:last-child {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.qp-coin-badge-sm {
  width: 100%;
  height: auto;
  border-radius: 16px;
  padding: 12px;
  margin: 0;
}

.qp-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.qp-result-stat {
  border-radius: 16px;
  background: #fff;
  color: #111827;
  padding: 12px;
  text-align: left;
}

.qp-result-stat p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.qp-result-stat strong {
  font-size: 1.8rem;
}

.qp-cta-pill {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  padding: 16px 18px;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4);
  touch-action: manipulation;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.qp-cta-hint {
  text-align: center;
  margin: 10px 0 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.qp-hero {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
}

.qp-hero-kicker,
.qp-hashtag {
  color: #fde68a;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.qp-hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.4rem;
  margin: 8px 0;
}

.qp-hero-sub {
  color: rgba(255, 255, 255, 0.7);
}

.qp-hero-svg {
  width: min(420px, 100%);
  height: auto;
}

.qp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 16px 0;
  overflow: visible;
  background: rgba(13, 6, 119, 0.94);
  backdrop-filter: blur(12px);
}

.qp-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qp-logo {
  flex: 1;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
}

.qp-logo span {
  color: #fbbf24;
}

.qp-icon-btn,
.qp-back {
  border: none;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-content: center;
  text-decoration: none;
}

.qp-back {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 30;
}

.qp-coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.qp-earn-mini {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: #fde047;
  color: #3b1d08;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.qp-tabs {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-bottom: 12px;
  border: none;
}

.qp-tabs .tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  opacity: 1;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  border-radius: 999px;
}

.qp-tabs .tab-active {
  opacity: 1;
  border-bottom: none;
  background: #fff;
  color: #4c1d95;
}

.qp-contest-list {
  display: grid;
  gap: 8px;
  padding: 8px 16px 24px;
}

.qp-quiz-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 18px;
  background: #fff;
  color: #111827;
  text-align: left;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.16s ease;
  cursor: pointer;
}

.qp-quiz-row:active {
  transform: scale(0.985);
}

.qp-quiz-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-content: center;
  font-size: 1.3rem;
  background: #ede9fe;
  flex: none;
}

.qp-quiz-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qp-quiz-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}

.qp-quiz-meta {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.qp-play-chip {
  flex: none;
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  min-height: 36px;
  background: #6d28d9;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.qp-play-chip:hover {
  background: #5b21b6;
}

.qp-start-page {
  background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 38%, #f3e8ff 38%, #f3e8ff 100%);
}

.qp-start {
  padding-top: 56px;
}

.qp-start-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.qp-join-card {
  background: #fff;
  color: #111827;
  border-radius: 24px;
  padding: 22px 16px 18px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(76, 29, 149, 0.18);
}

.qp-join-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 20px;
  display: grid;
  place-content: center;
  font-size: 2rem;
  background: #ede9fe;
}

.qp-join-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c3aed;
}

.qp-join-title,
.qp-join-prize {
  margin: 6px 0 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.qp-join-meta,
.qp-join-copy {
  margin: 8px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4b5563;
  line-height: 1.45;
}

.qp-timer-low {
  border-color: #f87171;
  color: #fecaca;
  animation: qpPop 0.8s ease infinite;
}

.qp-join-primary,
.qp-join-guest {
  width: 100%;
  margin-top: 12px;
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.qp-join-primary {
  background: #5b21b6;
  color: #fff;
}

.qp-join-guest {
  background: #fbbf24;
  color: #111827;
}

.qp-join-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.qp-ghost-btn {
  border: 1px solid rgba(91, 33, 182, 0.25);
  background: #fff;
  color: #5b21b6;
  border-radius: 999px;
  padding: 10px;
  font-weight: 800;
  cursor: pointer;
}

.qp-info-panel {
  margin-top: 12px;
  background: #fff;
  color: #111827;
  border-radius: 16px;
  padding: 14px;
}

.qp-info-panel h3 {
  margin: 0 0 8px;
  font-weight: 800;
}

.qp-info-panel ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.qp-play {
  padding-top: 52px;
}

.qp-play-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.qp-play-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.qp-play-emoji {
  font-size: 1.6rem;
}

.qp-play-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.qp-play-sub {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.qp-timer {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 4px solid #a855f7;
  display: grid;
  place-content: center;
  font-weight: 900;
}

.qp-progress-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.qp-progress-text,
.qp-score {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.qp-progress-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.qp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #f472b6);
}

.qp-more-head {
  margin: 8px 0 10px;
}

.qp-more-head p {
  margin: 0;
  font-weight: 800;
}

.qp-more-head span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.qp-wrong-card {
  width: min(360px, 92vw);
  border-radius: 28px;
  padding: 22px 18px 16px;
  text-align: center;
  background: linear-gradient(180deg, #1b1433, #120d24);
  color: #fff;
  border: 1px solid rgba(245, 215, 110, 0.25);
}

.qp-wrong-card h3 {
  margin: 8px 0 0;
  font-size: 1.7rem;
  font-weight: 900;
}

.qp-wrong-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.qp-wrong-strong {
  font-size: 1.15rem;
  color: #fff !important;
  font-weight: 900 !important;
}

.qp-claim-ad {
  position: relative;
  width: 100%;
  margin-top: 16px;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
}

.qp-claim-ad .qp-ad-chip {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(12deg);
  background: #facc15;
  color: #111827;
  font-size: 11px;
  font-weight: 900;
  border-radius: 8px;
  padding: 4px 7px;
}

.qp-close-round {
  display: block;
  margin: 12px auto 0;
  width: 120px;
  border-radius: 999px;
  border: 1px solid #fbbf24;
  background: transparent;
  color: #fff;
  padding: 10px;
  font-weight: 800;
  cursor: pointer;
}

.qp-wrong-terms {
  margin-top: 12px !important;
  font-size: 11px !important;
}

.qp-wrong-terms a {
  color: #fbbf24;
}

.qp-mascot {
  font-size: 4rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .qp-shell {
    grid-template-columns: 1fr;
  }
  .qp-hero {
    display: none;
  }
  .qp-stage,
  .qp-app {
    max-width: 420px;
  }
}

@media (min-width: 901px) {
  .qp-hero {
    display: flex;
  }
}
