/* ===== Defaults (fallback) ===== */
:root {
  --qo-bg: #ffffff;
  --qo-text: #0f172a;
  --qo-subtle: #6b7280;
  --qo-muted: #94a3b8;

  --qo-accent-1: #ff7a1a;
  --qo-accent-2: #ff5a00;
  --qo-accent-press: #e04e00;

  --qo-ghost-bg: #fff8f3;
  --qo-ghost-ring: #ffd7c0;

  --qo-backdrop: rgba(17,24,39,.50);
  --qo-ring: rgba(37,99,235,.55);
}

/* ===== Paletas ===== */
/* SUNSET (laranjas quentes) */
.qo--sunset{
  --qo-bg: #ffffff;
  --qo-text: #0f172a;
  --qo-subtle: #6b7280;
  --qo-muted: #94a3b8;

  --qo-accent-1: #ff7a1a;
  --qo-accent-2: #ff5a00;
  --qo-accent-press: #e04e00;

  --qo-ghost-bg: #fff8f3;
  --qo-ghost-ring: #ffd7c0;

  --qo-backdrop: rgba(17,24,39,.50);
  --qo-ring: rgba(37,99,235,.55);
}

/* MINT (verdes frescos) */
.qo--mint{
  --qo-bg: #f7fffb;
  --qo-text: #0f2d23;
  --qo-subtle: #3c6e59;
  --qo-muted: #7aa89a;

  --qo-accent-1: #2fd19a;
  --qo-accent-2: #19b883;
  --qo-accent-press: #14956b;

  --qo-ghost-bg: #e9fff5;
  --qo-ghost-ring: #c8f7e3;

  --qo-backdrop: rgba(6, 31, 24, .50);
  --qo-ring: rgba(16,185,129,.45);
}

/* ROYAL (azul/violeta premium) */
.qo--royal{
  --qo-bg: #f8f9ff;
  --qo-text: #1f2547;
  --qo-subtle: #4b5581;
  --qo-muted: #7b84b3;

  --qo-accent-1: #6370ff;
  --qo-accent-2: #4a57d6;
  --qo-accent-press: #3b46b2;

  --qo-ghost-bg: #eef0ff;
  --qo-ghost-ring: #d5dafd;

  --qo-backdrop: rgba(15, 18, 46, .50);
  --qo-ring: rgba(99,102,241,.45);
}

/* SLATE (neutro minimalista) */
.qo--slate{
  --qo-bg: #ffffff;
  --qo-text: #111827;
  --qo-subtle: #6b7280;
  --qo-muted: #9ca3af;

  --qo-accent-1: #6b7280;
  --qo-accent-2: #4b5563;
  --qo-accent-press: #3f4550;

  --qo-ghost-bg: #f3f4f6;
  --qo-ghost-ring: #e5e7eb;

  --qo-backdrop: rgba(17,24,39,.50);
  --qo-ring: rgba(59,130,246,.45);
}

/* ===== Base: trava a página ===== */
.qo-lock { overflow: hidden; }

/* ===== Overlay ===== */
.qo{
  position: fixed; inset: 0; z-index: 2147483647;
  display: grid; place-items: center;
}
.qo__backdrop{
  position: absolute; inset: 0;
  background: var(--qo-backdrop);
  backdrop-filter: blur(6px) saturate(1.1);
}

/* ===== Card ===== */
.qo__card {
  position: relative;
  width: min(92vw, 560px);
  background: var(--qo-bg);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.12), 0 2px 10px rgba(0,0,0,.06);
  padding: 26px 24px 20px;
  text-align: center;
  transform: translateZ(0);
  overflow: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* ===== Barra de progresso ===== */
.qo__bar {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  overflow: hidden;
}
.qo__bar__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg,var(--qo-accent-1),var(--qo-accent-2));
  transition: width .35s ease;
}

/* ===== Header ===== */
.qo__progress {
  font-size: 12px;
  color: var(--qo-subtle);
  margin-top: 8px;
  margin-bottom: 4px;
}
.qo__title {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--qo-text);
  margin: 4px 0 16px;
  letter-spacing: .2px;
}

/* ===== Opções ===== */
.qo__options {
  display: grid;
  gap: 12px;
  text-align: left;
  word-wrap: break-word;
}

.qo__btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  letter-spacing: .2px;
  color: #fff;
  background: linear-gradient(180deg, var(--qo-accent-1), var(--qo-accent-2));
  box-shadow: 0 6px 0 var(--qo-accent-press), 0 8px 18px rgba(0,0,0,.12);
  transition: transform .04s ease, filter .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
  white-space: normal; /* Permite a quebra das palavras longas */
}

.qo__btn:hover {
  filter: brightness(.98);
}

.qo__btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 0 var(--qo-accent-press), 0 6px 12px rgba(0,0,0,.12);
}

.qo__btn--ghost {
  background: var(--qo-ghost-bg);
  color: var(--qo-accent-2);
  box-shadow: inset 0 0 0 2px var(--qo-ghost-ring);
}

.qo__btn--ghost:hover {
  filter: none;
  background: color-mix(in srgb, var(--qo-ghost-bg) 92%, #000 8%);
}

.qo__btn--ghost:active {
  transform: translateY(1px);
}

/* ===== Rodapé ===== */
.qo__footer {
  margin-top: 14px;
  font-size: 12px;
  color: var(--qo-muted);
}

/* ===== Loading ===== */
.qo__loading {
  padding: 22px 0 10px;
  text-align: center;
}
.qo__dots {
  display: inline-flex;
  gap: 10px;
  margin: 4px 0 10px;
}
.qo__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--qo-accent-2);
  opacity: .85;
  animation: qo-blink 1s infinite;
}
.qo__dots i:nth-child(2) {
  animation-delay: .15s;
}
.qo__dots i:nth-child(3) {
  animation-delay: .3s;
}
@keyframes qo-blink {
  0%,80%,100%{opacity:.25}
  40%{opacity:1}
}
.qo__loadingText {
  color: var(--qo-accent-2);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.35;
}

/* ===== Foco acessível para <a> e <button> ===== */
.qo .qo__btn:focus {
  outline: none;
}
.qo .qo__btn:focus-visible {
  box-shadow:
    0 0 0 3px var(--qo-ring),
    inset 0 0 0 2px rgba(255,255,255,.85),
    0 6px 0 var(--qo-accent-press),
    0 8px 18px rgba(37,99,235,.12);
  border-radius: 14px;
}

/* ===== Pequenas telas ===== */
@media (max-width: 380px) {
  .qo__card {
    padding: 22px 16px 18px;
    width: min(94vw, 560px);
  }
  .qo__title {
    font-size: 20px;
  }
  .qo__btn {
    padding: 12px 14px;
  }
}

/* === ROSA (pink) === */
.qo--pink .qo__bar__fill {
  background: linear-gradient(90deg, #ff2d7a, #ff8bb0);
}
.qo--pink .qo__btn {
  background: #ff2d7a;
  border-color: #ff2d7a;
  color: #fff;
}
.qo--pink .qo__btn:hover {
  filter: brightness(0.94);
}
.qo--pink .qo__btn--ghost {
  background: #ffe7f0;
  border-color: transparent;
  color: #b21652;
}
.qo--pink .qo__title, .qo--pink .qo__progress {
  color: #3a0a21;
}
.qo--pink .qo__backdrop {
  background: rgba(255, 45, 122, .25);
}
.qo--pink .qo__dots i {
  background: #ff2d7a;
}

/* === ROXO (purple) === */
.qo--purple .qo__bar__fill {
  background: linear-gradient(90deg, #7e3ff2, #b78cff);
}
.qo--purple .qo__btn {
  background: #7e3ff2;
  border-color: #7e3ff2;
  color: #fff;
}
.qo--purple .qo__btn:hover {
  filter: brightness(0.94);
}
.qo--purple .qo__btn--ghost {
  background: #efe7ff;
  border-color: transparent;
  color: #4a21a8;
}
.qo--purple .qo__title, .qo--purple .qo__progress {
  color: #2a1263;
}
.qo--purple .qo__backdrop {
  background: rgba(126, 63, 242, .25);
}
.qo--purple .qo__dots i {
  background: #7e3ff2;
}

/* === BORDÔ (bordo) === */
.qo--bordo .qo__bar__fill {
  background: linear-gradient(90deg, #6b0f1a, #b91337);
}
.qo--bordo .qo__btn {
  background: #b91337;
  border-color: #b91337;
  color: #fff;
}
.qo--bordo .qo__btn:hover {
  filter: brightness(0.94);
}
.qo--bordo .qo__btn--ghost {
  background: #fde4e8;
  border-color: transparent;
  color: #6b0f1a;
}
.qo--bordo .qo__title, .qo--bordo .qo__progress {
  color: #3f0a12;
}
.qo--bordo .qo__backdrop {
  background: rgba(185, 19, 55, .22);
}
.qo--bordo .qo__dots i {
  background: #b91337;
}

/* === VERMELHO PAIXÃO (passion) === */
.qo--passion .qo__bar__fill {
  background: linear-gradient(90deg, #ff003d, #ff6b81);
}
.qo--passion .qo__btn {
  background: #ff003d;
  border-color: #ff003d;
  color: #fff;
}
.qo--passion .qo__btn:hover {
  filter: brightness(0.94);
}
.qo--passion .qo__btn--ghost {
  background: #ffe3e8;
  border-color: transparent;
  color: #9c0a24;
}
.qo--passion .qo__title, .qo--passion .qo__progress {
  color: #680614;
}
.qo--passion .qo__backdrop {
  background: rgba(255, 0, 61, .22);
}
.qo--passion .qo__dots i {
  background: #ff003d;
}
/* ---------------- ROLETINHA ---------------- */
.qo__wheelWrap {
  margin: 18px auto 12px;
  width: 260px;
  height: 260px;
  position: relative;
}

.qo__wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  background: #ccc; /* sobrescrito via JS com conic-gradient */
}

.qo__wheel::before {
  content: "";
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.9);
}

/* ponteiro preto apontando pra baixo */
.qo__wheelPointer {
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 18px solid #111;
}

/* textos nas fatias, na borda */
.qo__wheelLabel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 50%;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  white-space: nowrap;
  pointer-events: none;
}
/* Adicione isso no final do seu arquivo overlay.css */

/* ---------------- ROLETA MAIOR ---------------- */
.qo__wheelWrap {
  margin: 18px auto 12px;
  width: 340px;
  height: 340px;
  position: relative;
}

.qo__wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: visible; /* IMPORTANTE: visible para os textos aparecerem */
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  background: #ccc;
}

.qo__wheel::before {
  content: "";
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.9);
}

/* Ponteiro maior */
.qo__wheelPointer {
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 22px solid #111;
}

/* Textos nas fatias - BASE */
.qo__wheelLabel {
  position: absolute;
  left: 50%;
  top: 50%;
  white-space: normal;
  word-break: break-word;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  pointer-events: none;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7), 0 0 8px rgba(0,0,0,0.3);
  max-width: 85px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Posições individuais para cada fatia (6 fatias) - CORRIGIDO */
/* Fatia 0: topo (0°) - centro em 30° */
.qo__wheelLabel[data-wheel-index="0"] {
  transform: translate(-50%, -50%) translate(52.5px, -90.93px) rotate(-60deg);
}
/* Fatia 1: direita-superior (60°) - centro em 90° */
.qo__wheelLabel[data-wheel-index="1"] {
  transform: translate(-50%, -50%) translate(105px, 0px) rotate(0deg);
}
/* Fatia 2: direita-inferior (120°) - centro em 150° */
.qo__wheelLabel[data-wheel-index="2"] {
  transform: translate(-50%, -50%) translate(52.5px, 90.93px) rotate(60deg);
}
/* Fatia 3: baixo (180°) - centro em 210° */
.qo__wheelLabel[data-wheel-index="3"] {
  transform: translate(-50%, -50%) translate(-52.5px, 90.93px) rotate(120deg);
}
/* Fatia 4: esquerda-inferior (240°) - centro em 270° */
.qo__wheelLabel[data-wheel-index="4"] {
  transform: translate(-50%, -50%) translate(-105px, 0px) rotate(180deg);
}
/* Fatia 5: esquerda-superior (300°) - centro em 330° */
.qo__wheelLabel[data-wheel-index="5"] {
  transform: translate(-50%, -50%) translate(-52.5px, -90.93px) rotate(240deg);
}

/* Ajustar em telas pequenas */
@media (max-width: 480px) {
  .qo__wheelWrap {
    width: 300px;
    height: 300px;
  }
  
  .qo__wheelLabel {
    font-size: 14px;
    max-width: 80px;
  }
  
  /* Posições ajustadas para roleta menor */
  .qo__wheelLabel[data-wheel-index="0"] {
    transform: translate(-50%, -50%) translate(46px, -79.67px) rotate(-60deg);
  }
  .qo__wheelLabel[data-wheel-index="1"] {
    transform: translate(-50%, -50%) translate(92px, 0px) rotate(0deg);
  }
  .qo__wheelLabel[data-wheel-index="2"] {
    transform: translate(-50%, -50%) translate(46px, 79.67px) rotate(60deg);
  }
  .qo__wheelLabel[data-wheel-index="3"] {
    transform: translate(-50%, -50%) translate(-46px, 79.67px) rotate(120deg);
  }
  .qo__wheelLabel[data-wheel-index="4"] {
    transform: translate(-50%, -50%) translate(-92px, 0px) rotate(180deg);
  }
  .qo__wheelLabel[data-wheel-index="5"] {
    transform: translate(-50%, -50%) translate(-46px, -79.67px) rotate(240deg);
  }
  
  .qo__wheelPointer {
    top: -16px;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 20px solid #111;
  }
}
/* ============================================
   QUIZ VISUAL - FONTE MAIOR NOS LABELS
   ============================================ */

.qo__step--visual {
  overflow: visible !important;
}

.qo__step--visual .qo__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

.qo__visualOption {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.qo__visualOption:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: var(--qo-accent-1);
}

.qo__visualOption:active {
  transform: scale(0.98);
}

.qo__visualImageWrap {
  position: relative;
  width: 100%;
  padding-bottom: 120%;
  overflow: hidden;
  background: #f8f9fa;
}

.qo__visualImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.qo__visualLabel {
  padding: 12px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #fff;
  background: #2d3748;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.qo__visualOption:focus {
  outline: none;
  border-color: var(--qo-accent-1);
  box-shadow: 0 0 0 3px var(--qo-ring), 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Mobile: FONTE MAIOR */
@media (max-width: 640px) {
  .qo__step--visual .qo__options {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-left: -4px;
    margin-right: -4px;
    margin-top: 12px;
  }
  
  .qo__visualOption {
    border-radius: 6px;
  }
  
  .qo__visualImageWrap {
    padding-bottom: 110%;
  }
  
  .qo__visualLabel {
    padding: 9px 6px;
    font-size: 10.5px;
    min-height: 36px;
    font-weight: 800;
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .qo__step--visual .qo__options {
    max-width: 100%;
  }
}

/* Temas */
.qo--sunset .qo__visualLabel {
  background: linear-gradient(180deg, var(--qo-accent-1), var(--qo-accent-2));
}

.qo--mint .qo__visualLabel {
  background: linear-gradient(180deg, var(--qo-accent-1), var(--qo-accent-2));
}

.qo--royal .qo__visualLabel {
  background: linear-gradient(180deg, var(--qo-accent-1), var(--qo-accent-2));
}

.qo--pink .qo__visualLabel {
  background: linear-gradient(180deg, #ff2d7a, #ff1565);
}

.qo--purple .qo__visualLabel {
  background: linear-gradient(180deg, #7e3ff2, #6930d6);
}

.qo--bordo .qo__visualLabel {
  background: linear-gradient(180deg, #b91337, #9a0f2e);
}

.qo--passion .qo__visualLabel {
  background: linear-gradient(180deg, #ff003d, #e0002e);
}

.qo--slate .qo__visualLabel {
  background: linear-gradient(180deg, #64748b, #475569);
}

/* ============================================================
   PALETAS NOVAS v3.0
   ============================================================ */

/* === MYSTIC (roxo escuro + dourado) === */
.qo--mystic {
  --qo-bg: #1a0a2e;
  --qo-text: #e8d5ff;
  --qo-subtle: #9b7fc7;
  --qo-muted: #6b5499;
  --qo-accent-1: #c084fc;
  --qo-accent-2: #9333ea;
  --qo-accent-press: #7e22ce;
  --qo-ghost-bg: rgba(192,132,252,0.1);
  --qo-ghost-ring: rgba(192,132,252,0.3);
  --qo-backdrop: rgba(10,5,30,0.75);
  --qo-ring: rgba(147,51,234,0.55);
}
.qo--mystic .qo__card { background: #1a0a2e; }
.qo--mystic .qo__btn--ghost { color: #c084fc; }
.qo--mystic .qo__bar__fill { background: linear-gradient(90deg,#c084fc,#9333ea); }
.qo--mystic .qo__dots i { background: #c084fc; }
.qo--mystic .qo__visualLabel { background: linear-gradient(180deg,#c084fc,#7e22ce); }

/* === ROMANCE (vermelho profundo + rosa) === */
.qo--romance {
  --qo-bg: #2d0010;
  --qo-text: #ffb3c1;
  --qo-subtle: #ff6b8a;
  --qo-muted: #cc4466;
  --qo-accent-1: #ff6b8a;
  --qo-accent-2: #e91e63;
  --qo-accent-press: #c2185b;
  --qo-ghost-bg: rgba(255,107,138,0.1);
  --qo-ghost-ring: rgba(255,107,138,0.3);
  --qo-backdrop: rgba(20,0,8,0.75);
  --qo-ring: rgba(233,30,99,0.55);
}
.qo--romance .qo__card { background: linear-gradient(160deg,#1a0008,#3d0015,#2d0010); }
.qo--romance .qo__btn--ghost { color: #ff6b8a; }
.qo--romance .qo__bar__fill { background: linear-gradient(90deg,#ff6b8a,#e91e63); }
.qo--romance .qo__dots i { background: #ff6b8a; }
.qo--romance .qo__visualLabel { background: linear-gradient(180deg,#ff6b8a,#c2185b); }

/* ============================================================
   HOLD — Toque e Segure  v3.0
   ============================================================ */

/* Ocultar progress text em modos sem perguntas */
.qo[data-entry-mode="hold"] .qo__progress,
.qo[data-entry-mode="scratch"] .qo__progress,
.qo[data-entry-mode="countdown"] .qo__progress { display: none; }

.qo__step--hold { text-align: center; padding: 4px 0; }

.qo__holdSubtitle {
  font-size: 14px;
  color: var(--qo-subtle);
  font-style: italic;
  margin-bottom: 18px;
}

/* --- Visuals (CSS puro) --- */
.qo__holdVisual {
  width: 120px;
  height: 100px;
  margin: 0 auto 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ENVELOPE */
.qo__holdEnvelope {
  position: relative;
  width: 100px;
  height: 70px;
  perspective: 400px;
}
.qo__holdEnvelopeBody {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,#fff5ee,#ffe8d6);
  border: 2px solid var(--qo-accent-1);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.qo__holdEnvelopeBottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 30px solid rgba(0,0,0,.07);
  pointer-events: none;
}
.qo__holdEnvelopeFlap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-top: 35px solid var(--qo-accent-1);
  transform-origin: top center;
  transition: transform .55s cubic-bezier(.34,1.3,.64,1);
  z-index: 2;
}
.qo__holdEnvelopeSeal {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-55%);
  font-size: 22px;
  z-index: 3;
  transition: opacity .35s ease, transform .35s ease;
}
.qo__holdEnvelopeLetter {
  position: absolute;
  left: 12px; right: 12px;
  top: 8px;
  height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 2px;
  transition: height .45s ease .25s, top .45s ease .25s;
  z-index: 1;
}
.qo__holdVisual--revealed .qo__holdEnvelopeFlap {
  transform: rotateX(-165deg);
}
.qo__holdVisual--revealed .qo__holdEnvelopeSeal {
  opacity: 0;
  transform: translate(-50%,-70%) scale(.5);
}
.qo__holdVisual--revealed .qo__holdEnvelopeLetter {
  height: 36px;
  top: -18px;
}

/* HEART */
.qo__holdHeart {
  font-size: 70px;
  display: block;
  position: relative;
  animation: qo-holdHeartPulse 1.6s ease infinite;
  transition: filter .4s ease, transform .4s ease;
}
.qo__holdHeart::after {
  content: '🔒';
  position: absolute;
  font-size: 22px;
  bottom: -2px;
  right: -6px;
  transition: opacity .3s ease, transform .3s ease;
}
.qo__holdVisual--revealed .qo__holdHeart {
  animation: none;
  filter: drop-shadow(0 0 16px rgba(255,80,120,.85));
  transform: scale(1.18);
}
.qo__holdVisual--revealed .qo__holdHeart::after {
  content: '✨';
  opacity: 0;
  transform: scale(0);
}
@keyframes qo-holdHeartPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* BOX */
.qo__holdBox {
  position: relative;
  width: 80px;
  height: 72px;
}
.qo__holdBoxBody {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(180deg,var(--qo-accent-1),var(--qo-accent-2));
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.qo__holdBoxLid {
  position: absolute;
  top: 0; left: -5px; right: -5px;
  height: 24px;
  background: var(--qo-accent-press);
  border-radius: 4px 4px 0 0;
  transform-origin: top center;
  transition: transform .55s cubic-bezier(.34,1.2,.64,1);
  z-index: 2;
  box-shadow: 0 -2px 6px rgba(0,0,0,.12);
}
.qo__holdBoxRibbon {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  background: rgba(255,255,255,.8);
  z-index: 3;
}
.qo__holdBoxBow {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  z-index: 4;
}
.qo__holdVisual--revealed .qo__holdBoxLid {
  transform: rotateX(-135deg);
}

/* CHEST */
.qo__holdChest {
  position: relative;
  width: 90px;
  height: 68px;
}
.qo__holdChestBottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 38px;
  background: linear-gradient(180deg,#8b5e3c,#5c3a1e);
  border: 2px solid #3d2512;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.qo__holdChestTop {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 32px;
  background: linear-gradient(180deg,#a0724a,#7a4e2d);
  border: 2px solid #3d2512;
  border-radius: 8px 8px 0 0;
  transform-origin: top center;
  transition: transform .55s cubic-bezier(.34,1.2,.64,1);
  z-index: 2;
}
.qo__holdChestTop::before {
  content: '';
  position: absolute;
  top: 5px; left: 6px; right: 6px;
  height: 4px;
  background: linear-gradient(90deg,#d4a76a,#f0c988,#d4a76a);
  border-radius: 2px;
}
.qo__holdChestStripe {
  position: absolute;
  bottom: 10px; left: 6px; right: 6px;
  height: 4px;
  background: linear-gradient(90deg,#d4a76a,#f0c988,#d4a76a);
  border-radius: 2px;
}
.qo__holdChestLock {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 18px;
  z-index: 3;
  transition: opacity .3s ease;
}
.qo__holdVisual--revealed .qo__holdChestTop {
  transform: rotateX(-135deg);
}
.qo__holdVisual--revealed .qo__holdChestLock {
  opacity: 0;
}

/* ---- Crystal Ball ---- */
.qo__holdCrystal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.qo__holdCrystalBall {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%,
    rgba(255,255,255,0.88) 0%,
    rgba(210,155,255,0.65) 18%,
    rgba(130,70,215,0.78) 48%,
    rgba(55,15,140,0.95) 80%,
    rgba(25,5,70,1) 100%
  );
  box-shadow:
    0 0 24px rgba(160,100,240,0.5),
    inset 0 -6px 12px rgba(80,30,180,0.5),
    inset 0 4px 8px rgba(255,255,255,0.25);
  overflow: hidden;
  transition: box-shadow .15s ease;
  flex-shrink: 0;
}
/* Mist animation */
.qo__holdCrystalMist {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 65%,
    rgba(200,130,255,0.65) 0%,
    rgba(140,70,210,0.3) 42%,
    transparent 68%
  );
  animation: qo-crystalMistFloat 2.4s ease-in-out infinite;
  transition: opacity .45s ease;
}
@keyframes qo-crystalMistFloat {
  0%,100% { transform: scale(0.82) translateY(9px); opacity: .7; }
  50%     { transform: scale(1.08) translateY(-7px); opacity: 1; }
}
/* Glass sheen highlight */
.qo__holdCrystalSheen {
  position: absolute;
  top: 9%; left: 14%;
  width: 28%; height: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.78) 0%, transparent 100%);
  pointer-events: none;
}
/* Star revealed inside ball */
.qo__holdCrystalReveal {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: none; /* shown via JS */
  align-items: center;
  justify-content: center;
  font-size: 30px;
  opacity: 0;
  background: radial-gradient(circle, rgba(230,190,255,0.35), transparent 70%);
  transition: opacity .5s ease;
}
/* Shadow base under ball */
.qo__holdCrystalBase {
  width: 44px;
  height: 10px;
  background: radial-gradient(ellipse, rgba(100,55,180,0.45), transparent 70%);
  border-radius: 50%;
  filter: blur(4px);
}
/* Pressing: JS drives box-shadow via style, but also animate mist faster */
.qo__holdVisual--crystal.qo__holdVisual--pressing .qo__holdCrystalMist {
  animation-duration: 1.2s;
}
/* Revealed state */
.qo__holdVisual--crystal.qo__holdVisual--revealed .qo__holdCrystalMist {
  animation: none;
  opacity: 0;
}
.qo__holdVisual--crystal.qo__holdVisual--revealed .qo__holdCrystalBall {
  box-shadow:
    0 0 50px rgba(210,160,255,0.9),
    0 0 90px rgba(180,100,255,0.45),
    inset 0 -6px 12px rgba(80,30,180,0.4),
    inset 0 4px 8px rgba(255,255,255,0.4);
  animation: qo-crystalPulseReveal 1.3s ease-in-out infinite;
}
@keyframes qo-crystalPulseReveal {
  0%,100% { filter: brightness(1) saturate(1); }
  50%     { filter: brightness(1.22) saturate(1.25); }
}

/* --- Ring de progresso --- */
.qo__holdRing {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.qo__holdRingBg,
.qo__holdRingProgress {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.qo__holdRingBg circle {
  fill: none;
  stroke: rgba(0,0,0,.1);
  stroke-width: 5;
}
.qo__holdRingProgress {
  transform: rotate(-90deg);
}
.qo__holdRingCircle {
  fill: none;
  stroke: var(--qo-accent-1);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset .05s linear;
}
.qo__holdRingIcon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 32px;
  transition: transform .12s ease;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.qo__holdRing.pressing .qo__holdRingIcon {
  transform: translate(-50%,-50%) scale(.82);
}
.qo__holdInstruction {
  font-size: 15px;
  font-weight: 700;
  color: var(--qo-accent-1);
  margin-bottom: 4px;
}
.qo__holdTimer {
  font-size: 12px;
  color: var(--qo-subtle);
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .qo__holdRing { width: 92px; height: 92px; }
  .qo__holdRingIcon { font-size: 28px; }
}
@media (max-width: 380px) {
  .qo__holdVisual { width: 100px; height: 88px; }
  .qo__holdRing { width: 84px; height: 84px; }
  .qo__holdRingIcon { font-size: 24px; }
  .qo__holdInstruction { font-size: 14px; }
}

/* ============================================================
   SCRATCH — Raspadinha  v3.0
   ============================================================ */

.qo__step--scratch { text-align: center; }

.qo__scratchWrap {
  position: relative;
  width: 280px;
  height: 160px;
  margin: 8px auto 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.qo__scratchPrize {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--qo-accent-1);
  background: var(--qo-ghost-bg);
  padding: 12px;
  text-align: center;
  line-height: 1.3;
}
.qo__scratchCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: none;
  border-radius: 12px;
}
.qo__scratchHint {
  font-size: 14px;
  color: var(--qo-accent-1);
  font-weight: 700;
  margin-bottom: 4px;
}
.qo__scratchSubtext {
  font-size: 12px;
  color: var(--qo-subtle);
}

@media (max-width: 480px) {
  .qo__scratchWrap { width: 260px; height: 148px; }
}
@media (max-width: 380px) {
  .qo__scratchWrap { width: 230px; height: 132px; }
  .qo__scratchHint { font-size: 13px; }
}

/* ============================================================
   COUNTDOWN — Contagem Regressiva  v3.0
   ============================================================ */

.qo__step--countdown { text-align: center; }

.qo__countdownDisplay {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qo__countdownNum {
  font-size: 80px;
  font-weight: 900;
  color: var(--qo-accent-1);
  display: inline-block;
  line-height: 1;
  animation: qo-numPulse .8s ease forwards;
}
@keyframes qo-numPulse {
  0%   { transform: scale(0); opacity: 0; }
  40%  { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.qo__countdownReveal {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
/* Prevent CSS display:flex from overriding [hidden] attribute */
.qo__countdownReveal[hidden] { display: none !important; }
.qo__countdownRevealText {
  font-size: 26px;
  font-weight: 800;
  color: var(--qo-accent-1);
  animation: qo-revealIn .6s ease forwards;
  line-height: 1.2;
}
@keyframes qo-revealIn {
  0%   { transform: scale(.5); opacity: 0; }
  100% { transform: scale(1);  opacity: 1; }
}
.qo__countdownSubtext {
  font-size: 13px;
  color: var(--qo-subtle);
  margin-top: 6px;
}

@media (max-width: 480px) {
  .qo__countdownNum { font-size: 68px; }
  .qo__countdownRevealText { font-size: 22px; }
}
@media (max-width: 380px) {
  .qo__countdownNum { font-size: 56px; }
  .qo__countdownRevealText { font-size: 19px; }
  .qo__countdownDisplay { min-height: 96px; }
}