:root{
  --pqs-green:var(--pqs-accent, #91F88D);
  --pqs-red:#ff3b30;
  --pqs-black:#000;
  --pqs-white:#fff;
}

/* Hide any theme page title above the Swipe Quiz whenever it is present.
   This is important because the quiz may be embedded on the homepage or other pages. */
body.pqs-swipe-present .entry-title,
body.pqs-swipe-present h1.entry-title,
body.pqs-swipe-present h1.page-title,
body.pqs-swipe-present .page-title,
body.pqs-swipe-present .page-header{
  display:none !important;
}

/* Root wrapper */
.pqs-wrap{
  position: relative;
}

/* Minimal top meta (no big title) */
.pqs-top{
  max-width: 560px;
  margin: 0 auto 10px;
  padding: 0 12px;
}
.pqs-wrap.pqs-fullbleed .pqs-top{
  max-width: none;
  margin: 10px 0 8px;
}
.pqs-meta{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  font-weight: 900;
}
.pqs-metaRight{
  display:flex;
  align-items:baseline;
  gap:10px;
}
.pqs-progress{ font-size: 18px; }
.pqs-points{ font-size: 18px; opacity:.8; }
.pqs-skipped{
  font-size: 14px;
  font-weight: 900;
  opacity: .85;
  padding: 6px 10px;
  border: 2px solid var(--pqs-black);
  border-radius: 999px;
  background: var(--pqs-white);
}

/* Persistent note shown when there are skipped questions */
.pqs-skipNote{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 900;
  opacity: .8;
}

/* Banner */
.pqs-banner{
  max-width: 560px;
  margin: 0 auto 10px;
  padding: 10px 12px;
  border: 2px solid var(--pqs-black);
  border-radius: 14px;
  font-weight: 800;
  background: var(--pqs-white);
}

/* Start overlay: gameplay must be user-initiated so the timer never starts on load */
.pqs-start{
  position: absolute;
  inset: 0;
  display:flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 20;
}
.pqs-start.is-leaving{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}
.pqs-startInner{
  border: 2px solid var(--pqs-black);
  border-radius: 18px;
  background: var(--pqs-white);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 18px 14px;
  width: min(520px, 100%);
}
.pqs-startMeta{
  font-weight: 900;
  opacity: .75;
  margin-bottom: 12px;
  font-size: 14px;
}
.pqs-startBtn{
  display:block;
  width: 100%;
  border: 2px solid var(--pqs-black);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--pqs-black);
  color: var(--pqs-white);
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
}

/* Ready screen (addictive pre‑start ritual)
   - No question/answers visible
   - Thumb‑first CTA
*/
.pqs-is-ready .pqs-meta,
.pqs-is-ready .pqs-skipNote,
.pqs-is-ready .pqs-banner{display:none !important;}

.pqs-ready{
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 12px;
}
.pqs-readyInner{
  border: 2px solid var(--pqs-black);
  border-radius: 18px;
  background: var(--pqs-white);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  padding: 18px 14px;
  text-align: center;
}
.pqs-readyKicker{
  font-weight: 900;
  font-size: 14px;
  opacity: .78;
  margin-bottom: 10px;
}
.pqs-readyMeta{
  font-weight: 900;
  font-size: 13px;
  opacity: .72;
  line-height: 1.35;
  margin-bottom: 14px;
}
.pqs-readyBtn{
  display:block;
  width: 100%;
  border: 2px solid var(--pqs-black);
  border-radius: 14px;
  padding: 14px 14px;
  background: var(--pqs-green);
  color: var(--pqs-black);
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
}
.pqs-readyBtn:active{transform: translateY(1px)}

@media (max-width: 860px){
  .pqs-ready{max-width:none;padding:12px}
  .pqs-readyInner{border-radius:16px}
}


/* Desktop embed: make the ready/start cards feel "hero" sized.
   (Mobile stays compact; fullscreen takeover still happens on Start.) */
@media (min-width: 900px){
  .pqs-wrap.pqs-embed .pqs-ready,
  .pqs-wrap.pqs-embed .pqs-banner{
    max-width: 920px;
  }
  .pqs-wrap.pqs-embed .pqs-readyInner{
    padding: 28px 26px;
    border-radius: 22px;
  }
  .pqs-wrap.pqs-embed .pqs-readyKicker{ font-size: 16px; }
  .pqs-wrap.pqs-embed .pqs-readyMeta{ font-size: 15px; }
  .pqs-wrap.pqs-embed .pqs-readyBtn{
    padding: 18px 18px;
    font-size: 18px;
    border-radius: 16px;
  }
  .pqs-wrap.pqs-embed .pqs-startInner{
    width: min(760px, 100%);
    padding: 26px 22px;
    border-radius: 22px;
  }
  .pqs-wrap.pqs-embed .pqs-startMeta{ font-size: 16px; }
  .pqs-wrap.pqs-embed .pqs-startBtn{ padding: 16px 18px; font-size: 18px; border-radius: 16px; }
}
.pqs-startBtn:disabled{
  opacity:.5;
  cursor:not-allowed;
}

/* Stage container */
.pqs-stage{
  max-width: 560px;
  margin: 0 auto;
  min-height: 0;
}

/* Prevent iOS Safari from auto-inflating text sizes inside the quiz */
.pqs-wrap{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Full-bleed-in-page: edge-to-edge section, but keep site header/footer */
.pqs-wrap.pqs-fullbleed{
  background: var(--pqs-white);
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}
.pqs-wrap.pqs-fullbleed .pqs-stage{
  max-width: none;
  margin: 0;
  display:flex;
  min-height: 0;
  /* Keep the gameplay area stable; do not force a viewport-height takeover */
  min-height: 0;
}
.pqs-wrap.pqs-fullbleed .pqs-start{
  display:none !important;
}
.pqs-wrap.pqs-fullbleed .pqs-banner{
  max-width: none;
  margin: 0 0 10px;
}

/* Keep full-bleed in-page on desktop too */

/* Card: fixed layout, no internal scrolling */
.pqs-card{
  background: var(--pqs-white);
  border: 2px solid var(--pqs-black);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  overflow: hidden;
  width: 100%;
  display:flex;
  flex-direction:column;
  min-height: 0; /* allow flex children to scroll when needed */
  /* Allow both vertical scrolling and horizontal swipe gestures (skip). */
  touch-action: pan-x pan-y;
}

/* Start placeholder (no content revealed until user presses Play) */
.pqs-card--placeholder{
  opacity: .55;
}
.pqs-skel{
  background: rgba(0,0,0,.10);
  border-radius: 10px;
  animation: pqsPulse 1.1s ease-in-out infinite;
}
@keyframes pqsPulse{
  0%,100%{ opacity: .55; }
  50%{ opacity: .25; }
}

/* Constrain card height to viewport when fullbleed */
.pqs-wrap.pqs-fullbleed .pqs-card{
  flex: 1 1 auto;
  min-height: 100svh;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

/* Fullscreen takeover (during play).
   Only activates when JS adds .pqs-takeover and body.pqs-playing. */
body.pqs-playing{ overflow:hidden !important; }
body.pqs-playing .pqs-wrap.pqs-takeover{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  margin: 0;
  transform: none;
  z-index: 9999;
  background: var(--pqs-white);
  /* Allow vertical scrolling inside the takeover (iOS needs this on the fixed root). */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.pqs-playing .pqs-wrap.pqs-takeover .pqs-top,
body.pqs-playing .pqs-wrap.pqs-takeover .pqs-banner,
body.pqs-playing .pqs-wrap.pqs-takeover .pqs-skipNote{
  display:none !important;
}
body.pqs-playing .pqs-wrap.pqs-takeover .pqs-card{ min-height: 100%; }

/* Mobile: no explicit Next button (auto-advances after answer) */
.pqs-wrap.pqs-fullbleed .pqs-next{
  display: none;
}

/* Header */
.pqs-cardHeader{
  padding: 12px 14px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap: wrap;
}
/* Single left-aligned meta row */
.pqs-metaRow{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  width:100%;
}

.pqs-metaRow .pqs-timer{
  margin-left:0;
}

.pqs-metaRow .pqs-skipHint{
  display:inline-flex;
}

.pqs-timer{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  border: 2px solid var(--pqs-black);
  border-radius: 999px;
  background: var(--pqs-green);
  color: var(--pqs-black);
  font-weight: 900;
  font-size: 16px;
}

.pqs-timerWrap{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
/* The skip hint is inline with the countdown so users learn the gesture.
   We only show it at <=5s, so it doesn't clutter. */
.pqs-skipHint{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  border:2px solid var(--pqs-black);
  background: var(--pqs-green);
  color: var(--pqs-black);
  white-space:nowrap;
}
.pqs-timer.is-urgent{
  transform: scale(1.05);
  background: #ff3b30; /* iOS-style red */
}
.pqs-q{
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .85;
}
.pqs-progressBar{
  flex: 1 1 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.25);
  overflow:hidden;
}
.pqs-progressBar > div{
  height:100%;
  width:0%;
  background: var(--pqs-green);
}

/* Archive pill (if used by JS) */
.pqs-pill{
  margin: 0 14px 10px;
  display:inline-flex;
  align-items:center;
  border:2px solid var(--pqs-black);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .03em;
  width: fit-content;
  background: var(--pqs-white);
}
.pqs-pill.is-archive{ background: var(--pqs-green); }

/* Prompt */
.pqs-prompt{
  padding: 0 14px 12px;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
  /* Keep every question layout consistent (avoid pushing answers off screen) */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* In full-screen mobile mode, allow the prompt area to scroll if needed.
   This prevents any “spilling” or hidden header issues on small screens. */
@media (max-width: 860px){
  /* Mobile “app mode”: the prompt should NEVER get clipped.
     We remove clamping and allow internal scrolling on small screens.
     (Do not rely on character limits — line breaks vary by device.) */
  .pqs-wrap.pqs-fullbleed .pqs-prompt{
    -webkit-line-clamp: unset;
    display:block;
    overflow:auto;
    -webkit-overflow-scrolling: touch;
    max-height: 30svh;
    padding-bottom: 14px;
  }
  .pqs-wrap.pqs-fullbleed .pqs-answers{
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

/* Media frame: SAME SIZE for image/audio/? (16:9) */
.pqs-media{
  /* Match the exact visual width of the answer options (which live inside a 14px padded column). */
  width: calc(100% - 28px);
  margin: 0 auto 12px;
  /* Slightly taller media makes image questions feel more rewarding on mobile */
  aspect-ratio: auto;
  height: clamp(170px, 30svh, 300px);
  border: 2px solid var(--pqs-black);
  border-radius: 16px;
  overflow:hidden;
  background: var(--pqs-green);
  display:flex;
  align-items:center;
  justify-content:center;
}

/* In full-bleed mobile mode, the media frame must never steal so much height
   that the answers get clipped. Cap it relative to the viewport. */
.pqs-wrap.pqs-fullbleed .pqs-media{
  /* Make images feel more "full screen" on mobile without hiding answers. */
  height: clamp(190px, 34svh, 340px);
  max-height: none;
}
@media (max-height: 740px){
  .pqs-wrap.pqs-fullbleed .pqs-media{ height: clamp(160px, 28svh, 260px); }
}
@media (max-height: 700px){
  .pqs-wrap.pqs-fullbleed .pqs-media{ height: clamp(150px, 26svh, 240px); }
  .pqs-prompt{ font-size: 18px; }
}
.pqs-image{
  width:100%;
  height:100%;
  object-fit: cover;
  /* Bias the crop upward so heads/top-of-frame don't get chopped on mobile. */
  object-position: 50% 20%;
  display:block;
}

/* Big blocks fill media frame */
.pqs-bigBlock{
  width:100%;
  height:100%;
  background: var(--pqs-green);
  color: var(--pqs-black);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  border:0;
  padding: 0;
}
.pqs-bigIcon{
  width: 64px;
  height: 64px;
  fill: var(--pqs-black);
}
.pqs-bigHint{
  font-size: 14px;
  font-weight: 900;
  opacity: .9;
  padding: 0 10px;
}
.pqs-bigMark{
  font-size: 76px;
  font-weight: 900;
  line-height: 1;
}

/* Answers */
.pqs-answers{
  padding: 0 14px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

/* Full-bleed mode: keep the last option clear of the iPhone home indicator */
.pqs-wrap.pqs-fullbleed .pqs-answers{
  /* iOS Safari can visually clip the last item inside fixed fullscreen views.
     Give extra bottom room beyond the safe-area so the final option is always reachable. */
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom));
}
.pqs-choice{
  width:100%;
  border:2px solid var(--pqs-black);
  border-radius: 14px;
  background: var(--pqs-white);
  color: var(--pqs-black);
  padding: 14px 14px;
  font-weight: 900;
  font-size: 18px;
  cursor:pointer;
  touch-action: pan-x pan-y;
  /* Enforce consistent button heights visually, even if text is long */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.pqs-choice:disabled{ cursor:not-allowed; opacity:.75; }
.pqs-choice.is-correct{
  background: var(--pqs-green);
  border-color: var(--pqs-green);
}
.pqs-choice.is-wrong{
  background: var(--pqs-red);
  border-color: var(--pqs-red);
  color: var(--pqs-white);
}
.pqs-choice.is-faded{ opacity:.55; }

/* On smaller phones, make options extra thumb-friendly */
@media (max-width: 520px){
  .pqs-choice{
    padding: 16px 14px;
    font-size: 18px;
  }
}

/* Short iPhones (Safari) can run out of vertical space.
   Keep buttons comfortably tappable, but slightly tighter so all 4 options
   are more likely to fit without requiring scroll. */
@media (max-height: 740px){
  .pqs-answers{ gap: 8px; }
  .pqs-choice{
    padding: 13px 14px;
    font-size: 17px;
  }
}

@media (max-height: 700px){
  .pqs-answers{ gap: 7px; }
  .pqs-choice{
    padding: 12px 12px;
    font-size: 16px;
  }
}

/* Bottom */
.pqs-bottom{
  padding: 0 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.pqs-feedback{
  font-weight: 900;
  font-size: 14px;
}
.pqs-next{
  border:2px solid var(--pqs-black);
  border-radius: 14px;
  padding: 10px 14px;
  background: var(--pqs-black);
  color: var(--pqs-white);
  font-weight: 900;
  cursor:pointer;
}
.pqs-next:disabled{ opacity:.5; cursor:not-allowed; }

/* Desktop: click-to-next feel */
@media (min-width: 900px){
  .pqs-next{ width: 100%; }
  .pqs-bottom{ flex-direction:column; align-items:stretch; }
}

/* End-of-quiz skipped prompt: make it as bold/obvious as the main quiz */
.pqs-end{
  padding: 22px 14px 18px;
  text-align: center;
}
.pqs-end__title{
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  margin: 6px 0 10px;
}
.pqs-end__sub{
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0.9;
  margin: 0 auto 16px;
  max-width: 28ch;
}
.pqs-end__cta{
  display:flex;
  flex-direction:column;
  gap: 10px;
  padding: 0 14px;
}

/* Dopamine: end card */
.pqs-endCard{
  max-width: 560px;
  margin: 0 auto;
  border: 2px solid var(--pqs-black);
  border-radius: 18px;
  background: var(--pqs-white);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 18px 14px;
}

/* Mobile: end screen should feel full-screen, not cramped */
@media (max-width: 860px){
  .pqs-wrap.pqs-fullbleed .pqs-endCard{
    max-width: none;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 22px 16px;
  }
  .pqs-endTitle{ font-size: 32px; }
}
.pqs-endKicker{
  font-weight: 900;
  opacity: .7;
  margin-bottom: 6px;
}
.pqs-endTitle{
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 8px;
}
.pqs-dopa{
  display:flex;
  gap: 12px;
  align-items:center;
  border: 2px solid rgba(0,0,0,.12);
  border-radius: 16px;
  padding: 12px 12px;
  background: rgba(145,248,141,.22);
  margin: 6px 0 12px;
}
.pqs-dopaEmoji{
  font-size: 34px;
  line-height: 1;
  width: 44px;
  text-align:center;
}
.pqs-dopaTitle{
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
}
.pqs-dopaSub{
  margin-top: 4px;
  font-weight: 900;
  opacity: .85;
  line-height: 1.15;
}
.pqs-streak{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--pqs-green);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  margin: 2px 0 10px;
  line-height: 1;
}
.pqs-endHype{
  font-weight: 900;
  margin: 10px 0 14px;
}
.pqs-endFeedback{
  font-weight: 900;
  opacity: .85;
  margin: 6px 0 0;
}
.pqs-endCtas{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.pqs-endFine{
  margin-top: 12px;
  font-weight: 900;
  opacity: .7;
}
.pqs-big{
  animation: pqsPop 420ms ease;
}
.pqs-big.is-done{
  animation: pqsPop 420ms ease, pqsGlow 360ms ease;
}
@keyframes pqsGlow{
  0%{ box-shadow: 0 0 0 rgba(0,0,0,0); }
  50%{ box-shadow: 0 0 0 4px rgba(145,248,141,.45); }
  100%{ box-shadow: 0 0 0 rgba(0,0,0,0); }
}
.pqs-big.is-done{
  animation: pqsPop 420ms ease, pqsRing 520ms ease;
}
@keyframes pqsPop{
  0%{ transform: scale(.92); }
  60%{ transform: scale(1.04); }
  100%{ transform: scale(1); }
}
@keyframes pqsRing{
  0%{ box-shadow: 0 0 0 0 rgba(145,248,141,0); }
  35%{ box-shadow: 0 0 0 6px rgba(145,248,141,.35); }
  100%{ box-shadow: 0 0 0 0 rgba(145,248,141,0); }
}
@media (min-width: 700px){
  .pqs-end__title{ font-size: 32px; }
  .pqs-end__sub{ font-size: 18px; max-width: 44ch; }
  .pqs-end__cta{ flex-direction: row; justify-content:center; }
  .pqs-end__cta .pqs-btn{ min-width: 240px; }
}

@media (max-height: 700px){
  .pqs-answers{ gap: 8px; }
  .pqs-choice{ padding: 12px 14px; font-size: 17px; }
}
@media (max-height: 640px){
  .pqs-answers{ gap: 7px; }
  .pqs-choice{ padding: 11px 14px; font-size: 16px; }
}

/* Buttons (used in end screens) */
.pqs-btn{
  width: 100%;
  border: 2px solid var(--pqs-black);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--pqs-white);
  color: var(--pqs-black);
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
}
.pqs-btn--primary{
  background: var(--pqs-black);
  color: var(--pqs-white);
}
@media (min-width: 700px){
  .pqs-btn{ width: auto; min-width: 240px; }
}

/* Final score styles */
.pqs-big{
  font-size: 46px;
  font-weight: 900;
  margin: 10px 0 10px;
  letter-spacing: -0.02em;
}
.pqs-stats{
  border: 2px solid var(--pqs-black);
  border-radius: 16px;
  padding: 14px;
  margin: 14px auto 14px;
  max-width: 520px;
  font-weight: 800;
  display: grid;
  gap: 8px;
  text-align: left;
}
.pqs-share{
  margin: 12px auto 10px;
  max-width: 520px;
}
.pqs-shareGrid{
  display:grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin: 0 auto 12px;
}
.pqs-box{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  border: 2px solid var(--pqs-black);
  background: var(--pqs-white);
}
.pqs-box.is-right{ background: var(--pqs-green); border-color: var(--pqs-green); }
.pqs-box.is-skipped{ background: #ffcc00; border-color: #ffcc00; } /* amber */
.pqs-box.is-wrong{ background: var(--pqs-red); border-color: var(--pqs-red); }

.pqs-actions{
  margin-top: 14px;
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}
.pqs-actionBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid var(--pqs-black);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 900;
  text-decoration:none;
  color: var(--pqs-black);
  background: var(--pqs-white);
}
.pqs-actionBtn.is-primary{
  background: var(--pqs-black);
  color: var(--pqs-white);
}

/* Sponsored / Presented by banner (Bespoke only) */
.pqs-brand{ margin: 10px 14px 0; }
.pqs-brandInner{
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background-size: cover;
  background-position: center;
  background-color: #fff;
  overflow: hidden;
}
.pqs-brandBadge{
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pqs-accent, #91F88D);
  color: #000;
  white-space: nowrap;
}
.pqs-brandLogo{ height: 28px; width: auto; display:block; }
.pqs-brandLink{ display:inline-flex; align-items:center; }
.pqs-brandName{ font-weight: 800; font-size: 0.95rem; color:#000; text-decoration:none; }

.pqs-btn--cta{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  text-decoration:none;
  background: var(--pqs-accent, #91F88D);
  color:#000;
  border: 1px solid rgba(0,0,0,0.18);
  margin-top:10px;
}

/* Logged-out register CTA (results screen) */
.pqs-register{
  margin-top: 12px;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.pqs-register__title{
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1.15;
}
.pqs-register__btn{
  width: 100%;
  font-family: 'PQFranklin', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-shadow: 0 0 0 0 rgba(145,248,141,0.85);
  animation: pqsGlow 1.6s ease-in-out infinite;
}
.pqs-register__sub{
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  opacity: .78;
}
@keyframes pqsGlow{
  0%{ box-shadow: 0 0 0 0 rgba(145,248,141,0.55); }
  45%{ box-shadow: 0 0 0 10px rgba(145,248,141,0.22); }
  100%{ box-shadow: 0 0 0 0 rgba(145,248,141,0); }
}

/* --- Home/quiz page header blocks (green/black/white only) --- */
.pqs-homeHeader{
  width: 100%;
  padding: 18px 14px 10px;
  box-sizing: border-box;
  display: none !important;
}
.pqs-dateHeader{
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #000;
  margin: 6px 0 10px;
}
.pqs-authBox{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 3px solid #000;
  border-radius: 14px;
  background: #fff;
  position: relative;
}
.pqs-authHello{
  font-weight: 800;
  color:#000;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.pqs-authLink{
  font-weight: 800;
  color:#000;
  text-decoration: none;
}

.pqs-authClose{
  border:0;
  background: transparent;
  color:#000;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 10px;
  cursor:pointer;
  opacity:.65;
}
.pqs-authClose:active{ transform: scale(.98); }

/* Keep gameplay clean: hide the auth box once the user starts playing.
   They can still save progress from the menu / end screen. */
.pqs-wrap.pqs-is-playing .pqs-authBox{ display:none; }
.pqs-doneText{
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 4px;
}
.pqs-doneNext{
  font-weight: 800;
  font-size: 14px;
}
.pqs-count{
  font-variant-numeric: tabular-nums;
}
@media (max-width: 480px){
  .pqs-dateHeader{ font-size: 20px; }
}

/* -------------------------------
   Embedded mode (homepage hub)
   -------------------------------
   When the Swipe Quiz is embedded inside the homepage hub, the homepage
   owns the framing (date line, status, sign-in, side quest CTA). The swipe
   quiz should render as a pure game component.

   The shortcode sets: .pqs-wrap.pqs-embed and data-pqs-embed="1".
*/
.pqs-wrap.pqs-embed .pqs-homeHeader{ display:none !important; }
/* End screen contains its own CTAs; the homepage hub handles "no replay" + locking */

/* Share toast */
.pqs-toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  background: var(--pqs-black);
  color: var(--pqs-white);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  border: 2px solid var(--pqs-black);
}
.pqs-toast.is-show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition: opacity 160ms ease, transform 160ms ease;
}
/* Hide archive/today banners in embedded mode */
.pqs-wrap.pqs-embed [data-pqs-banner]{ display:none !important; }

/* PQ override: remove green/black done strip */
/* Review answers */
.pqs-review{margin-top:12px;padding-top:12px;border-top:1px solid #e8e8e8;text-align:left;}
.pqs-reviewHead{font-weight:800;margin-bottom:10px;}
.pqs-reviewItem{padding:10px 0;border-top:1px solid #f1f1f1;}
.pqs-reviewItem:first-child{border-top:0;}
.pqs-reviewQ{font-size:14px;line-height:1.3;margin-bottom:6px;}
.pqs-reviewA{font-size:13px;line-height:1.35;}
.pqs-reviewA.is-correct{opacity:1;}
.pqs-reviewA.is-wrong{opacity:1;}

/* EMBED SAFETY: keep embedded quiz within container (no mobile horizontal overflow) */
.pqs-wrap.pqs-embed{width:100% !important; max-width:100% !important; margin-left:0 !important; transform:none !important;}
.pqs-wrap.pqs-embed, .pqs-wrap.pqs-embed *{box-sizing:border-box;}
.pqs-wrap.pqs-embed{overflow:hidden;}

/* =======================================================
   MOBILE RESULTS: FORCE EDGE-TO-EDGE (even if pqs-fullbleed class is missing)
   - Only affects the results/end screen elements
   - Mobile only
   ======================================================= */
@media (max-width: 860px){
  .pqs-wrap .pqs-end{ padding-left: 0 !important; padding-right: 0 !important; }
  .pqs-wrap .pqs-endCard,
  .pqs-wrap .pqs-results{
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
  }
  /* Ensure long hype line never clips/crops */
  .pqs-wrap .pqs-endHype{ white-space: normal !important; overflow-wrap: anywhere !important; }
}
