/* ===== 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);
  --qo-card-border: rgba(255,255,255,.82);
  --qo-card-glow: rgba(255,122,26,.18);
  --qo-wheel-center: #ffffff;
}

/* ===== 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);
  --qo-card-border: rgba(255,255,255,.82);
  --qo-card-glow: rgba(255,122,26,.18);
  --qo-wheel-center: #ffffff;
}

/* 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);
  --qo-card-border: rgba(255,255,255,.82);
  --qo-card-glow: rgba(47,209,154,.18);
  --qo-wheel-center: #ffffff;
}

/* 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);
  --qo-card-border: rgba(255,255,255,.82);
  --qo-card-glow: rgba(99,112,255,.18);
  --qo-wheel-center: #ffffff;
}

/* 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);
  --qo-card-border: rgba(255,255,255,.82);
  --qo-card-glow: rgba(107,114,128,.14);
  --qo-wheel-center: #ffffff;
}

/* ANGEL (branco/dourado celestial) */
.qo--angel{
  --qo-bg: #fffdf7;
  --qo-text: #34270d;
  --qo-subtle: #8a6b21;
  --qo-muted: #ad9555;
  --qo-accent-1: #f8d77a;
  --qo-accent-2: #c8942f;
  --qo-accent-press: #9f7221;
  --qo-ghost-bg: #fff7dd;
  --qo-ghost-ring: #f4d88b;
  --qo-backdrop: rgba(42,34,16,.46);
  --qo-ring: rgba(248,215,122,.58);
  --qo-card-border: rgba(255,243,196,.95);
  --qo-card-glow: rgba(248,215,122,.3);
  --qo-wheel-center: #fffaf0;
}

/* OCEAN (azul profundo do mar) */
.qo--ocean{
  --qo-bg: #061b2d;
  --qo-text: #d9f6ff;
  --qo-subtle: #8ac7dc;
  --qo-muted: #5c93a8;
  --qo-accent-1: #27d4ff;
  --qo-accent-2: #0877c9;
  --qo-accent-press: #075b9b;
  --qo-ghost-bg: rgba(39,212,255,.12);
  --qo-ghost-ring: rgba(39,212,255,.32);
  --qo-backdrop: rgba(2,14,25,.72);
  --qo-ring: rgba(39,212,255,.55);
  --qo-card-border: rgba(109,213,255,.22);
  --qo-card-glow: rgba(39,212,255,.2);
  --qo-wheel-center: #08263d;
}

/* FOREST (verde escuro terroso) */
.qo--forest{
  --qo-bg: #102016;
  --qo-text: #e5f5dc;
  --qo-subtle: #a7c795;
  --qo-muted: #78936c;
  --qo-accent-1: #9bcf53;
  --qo-accent-2: #3f7b3b;
  --qo-accent-press: #2f5e2e;
  --qo-ghost-bg: rgba(155,207,83,.13);
  --qo-ghost-ring: rgba(155,207,83,.33);
  --qo-backdrop: rgba(5,18,10,.72);
  --qo-ring: rgba(155,207,83,.55);
  --qo-card-border: rgba(173,205,130,.22);
  --qo-card-glow: rgba(155,207,83,.18);
  --qo-wheel-center: #172819;
}

/* NEON (dark com acentos neon) */
.qo--neon{
  --qo-bg: #080a12;
  --qo-text: #f4fbff;
  --qo-subtle: #a9b7ff;
  --qo-muted: #7680b8;
  --qo-accent-1: #00f5ff;
  --qo-accent-2: #ff2bd6;
  --qo-accent-press: #a916a8;
  --qo-ghost-bg: rgba(0,245,255,.1);
  --qo-ghost-ring: rgba(255,43,214,.34);
  --qo-backdrop: rgba(0,0,0,.78);
  --qo-ring: rgba(0,245,255,.62);
  --qo-card-border: rgba(0,245,255,.26);
  --qo-card-glow: rgba(255,43,214,.26);
  --qo-wheel-center: #090d18;
}

/* AURORA (roxo/teal aurora boreal) */
.qo--aurora{
  --qo-bg: #11132b;
  --qo-text: #effcff;
  --qo-subtle: #a8d8d5;
  --qo-muted: #8f8ec4;
  --qo-accent-1: #35f2c5;
  --qo-accent-2: #8b5cf6;
  --qo-accent-press: #6538c5;
  --qo-ghost-bg: rgba(53,242,197,.12);
  --qo-ghost-ring: rgba(139,92,246,.34);
  --qo-backdrop: rgba(8,7,28,.72);
  --qo-ring: rgba(53,242,197,.56);
  --qo-card-border: rgba(53,242,197,.22);
  --qo-card-glow: rgba(139,92,246,.24);
  --qo-wheel-center: #151840;
}

/* ===== Base: trava a página ===== */
.qo-lock { overflow: hidden; }

/* ===== Overlay ===== */
.qo{
  position: fixed; inset: 0; z-index: 2147483647;
  display: grid; place-items: center;
  pointer-events: none;
}
.qo.qo--open{
  pointer-events: auto;
}
.qo:not(.qo--open) .qo__backdrop,
.qo:not(.qo--open) .qo__card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
}
.qo.qo--open .qo__backdrop,
.qo.qo--open .qo__card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.qo__translateCache {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: .01;
  pointer-events: none;
}
.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:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.34), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--qo-bg) 96%, #fff 4%), var(--qo-bg));
  border: 1px solid var(--qo-card-border);
  border-radius: 18px;
  box-shadow:
    0 28px 70px rgba(0,0,0,.22),
    0 12px 30px var(--qo-card-glow),
    inset 0 1px 0 rgba(255,255,255,.55);
  padding: 28px 24px 22px;
  text-align: center;
  transform: translateY(10px) scale(.985);
  animation: qo-cardIn .42s cubic-bezier(.2,.78,.22,1) forwards;
  overflow: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
@keyframes qo-cardIn {
  to { transform: translateY(0) scale(1); }
}

/* ===== 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 12px 24px rgba(0,0,0,.16);
  transition: transform .18s 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);
  transform: translateY(-1px);
}

.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: 28px 0 14px;
  text-align: center;
}
.qo__dots {
  display: inline-flex;
  gap: 10px;
  margin: 4px 0 14px;
}
.qo__dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg,var(--qo-accent-1),var(--qo-accent-2));
  opacity: .85;
  animation: qo-loaderPulse 1.1s ease-in-out infinite;
  box-shadow: 0 0 18px var(--qo-card-glow);
}
.qo__dots i:nth-child(2) {
  animation-delay: .14s;
}
.qo__dots i:nth-child(3) {
  animation-delay: .28s;
}
@keyframes qo-loaderPulse {
  0%,100%{opacity:.28; transform: translateY(0) scale(.86)}
  45%{opacity:1; transform: translateY(-7px) scale(1)}
}
.qo__loadingText {
  color: var(--qo-accent-2);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.35;
}

.qo__final .qo__title {
  font-size: 25px;
  margin-bottom: 18px;
}
.qo__finalCta {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  box-shadow:
    0 8px 0 var(--qo-accent-press),
    0 18px 34px var(--qo-card-glow),
    0 0 0 1px rgba(255,255,255,.18) inset;
  animation: qo-ctaGlow 2.1s ease-in-out infinite;
}
@keyframes qo-ctaGlow {
  0%,100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

/* ===== 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-card-border: rgba(255,255,255,.82);
  --qo-card-glow: rgba(255,45,122,.20);
  --qo-wheel-center: #ffffff;
}
.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-card-border: rgba(255,255,255,.82);
  --qo-card-glow: rgba(126,63,242,.20);
  --qo-wheel-center: #ffffff;
}
.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-card-border: rgba(255,255,255,.82);
  --qo-card-glow: rgba(185,19,55,.18);
  --qo-wheel-center: #ffffff;
}
.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-card-border: rgba(255,255,255,.82);
  --qo-card-glow: rgba(255,0,61,.18);
  --qo-wheel-center: #ffffff;
}
.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;
}
/* ---------------- ROLETA PREMIUM ---------------- */
.qo__wheelWrap {
  margin: 20px auto 16px;
  width: min(340px, 78vw);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.2));
}

.qo__wheelWrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.82), transparent 58%),
    conic-gradient(from 160deg, var(--qo-accent-1), var(--qo-accent-2), var(--qo-accent-1));
  opacity: .28;
  filter: blur(12px);
}

.qo__wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: visible;
  border: 10px solid color-mix(in srgb, var(--qo-bg) 78%, #fff 22%);
  box-shadow:
    0 18px 38px rgba(0,0,0,.24),
    inset 0 0 0 2px rgba(255,255,255,.45),
    inset 0 0 26px rgba(0,0,0,.22);
  background: #ccc;
  transition: filter .3s ease;
}

.qo__wheel::before {
  content: "";
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(255,255,255,.72), transparent 30%),
    var(--qo-wheel-center);
  box-shadow:
    0 0 0 7px rgba(255,255,255,.48),
    0 8px 18px rgba(0,0,0,.2);
  z-index: 2;
}

.qo__wheel::after {
  content: "";
  position: absolute;
  inset: 43%;
  border-radius: 50%;
  background: linear-gradient(180deg,var(--qo-accent-1),var(--qo-accent-2));
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  z-index: 3;
}

.qo__wheelPointer {
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-top: 28px solid var(--qo-accent-press);
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.25));
  z-index: 5;
}

.qo__wheelLabel {
  position: absolute;
  left: 50%;
  top: 50%;
  white-space: normal;
  word-break: break-word;
  font-size: clamp(11px, 3vw, 15px);
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  pointer-events: none;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0,0,0,.58), 0 0 10px rgba(0,0,0,.22);
  max-width: 88px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.qo__wheelResult {
  display: grid;
  gap: 4px;
  margin: 12px auto 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--qo-ghost-bg);
  box-shadow: inset 0 0 0 1px var(--qo-ghost-ring);
  text-align: center;
}

.qo__wheelResultLabel {
  font-size: 11px;
  font-weight: 800;
  color: var(--qo-subtle);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.qo__wheelPrize {
  font-size: 18px;
  font-weight: 900;
  color: var(--qo-accent-2);
}

/* Posições individuais para cada fatia (6 fatias) - CORRIGIDO */
/* Fatia 0: topo (0°) - centro em 30° */
/* Fatia 1: direita-superior (60°) - centro em 90° */
/* Fatia 2: direita-inferior (120°) - centro em 150° */
/* Fatia 3: baixo (180°) - centro em 210° */
/* Fatia 4: esquerda-inferior (240°) - centro em 270° */
/* Fatia 5: esquerda-superior (300°) - centro em 330° */

/* Ajustar em telas pequenas */
@media (max-width: 480px) {
  .qo__wheelWrap {
    width: min(300px, 82vw);
  }

  .qo__wheel {
    border-width: 8px;
  }
  
  .qo__wheelLabel {
    max-width: 76px;
  }
  
  /* Posições ajustadas para roleta menor */
  
  .qo__wheelPointer {
    top: -9px;
  }
}
/* ============================================
   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-card-border: rgba(192,132,252,.25);
  --qo-card-glow: rgba(147,51,234,.22);
  --qo-wheel-center: #0f0520;
}
.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-card-border: rgba(255,107,138,.22);
  --qo-card-glow: rgba(233,30,99,.20);
  --qo-wheel-center: #1a0008;
}
.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__step[hidden],
.qo__countdownReveal[hidden],
.qo__tapComplete[hidden],
.qo__giftReveal[hidden],
.qo__triviaWrong[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; }
}

/* =====================================================
   NOVOS TEMAS v4.1.0
   ===================================================== */

/* SECRET (dark seduction / misterio premium) */
.qo--secret {
  --qo-bg: #090507;
  --qo-text: #fff4e8;
  --qo-subtle: #c8a47c;
  --qo-muted: #8c6f58;
  --qo-accent-1: #d4a650;
  --qo-accent-2: #7a1024;
  --qo-accent-press: #520817;
  --qo-ghost-bg: rgba(212,166,80,.12);
  --qo-ghost-ring: rgba(212,166,80,.32);
  --qo-backdrop: rgba(5,3,5,.78);
  --qo-ring: rgba(212,166,80,.55);
  --qo-card-border: rgba(212,166,80,.26);
  --qo-card-glow: rgba(122,16,36,.28);
  --qo-wheel-center: #13080b;
}
.qo--secret .qo__card { background: linear-gradient(160deg, #0b0608, #1a0a10, #090507); }
.qo--secret .qo__btn--ghost { color: #d4a650; border-color: rgba(212,166,80,.32); }
.qo--secret .qo__bar__fill { background: linear-gradient(90deg, #d4a650, #7a1024); }
.qo--secret .qo__dots i { background: #d4a650; }
.qo--secret .qo__visualLabel { background: rgba(212,166,80,.15); color: #d4a650; }

/* LUXURY (dourado editorial / high-ticket) */
.qo--luxury {
  --qo-bg: #111111;
  --qo-text: #fff8ea;
  --qo-subtle: #d7c39a;
  --qo-muted: #9f8e6d;
  --qo-accent-1: #f5d98b;
  --qo-accent-2: #b88935;
  --qo-accent-press: #7c5a1e;
  --qo-ghost-bg: rgba(245,217,139,.11);
  --qo-ghost-ring: rgba(245,217,139,.32);
  --qo-backdrop: rgba(0,0,0,.72);
  --qo-ring: rgba(245,217,139,.55);
  --qo-card-border: rgba(245,217,139,.28);
  --qo-card-glow: rgba(184,137,53,.22);
  --qo-wheel-center: #19140c;
}
.qo--luxury .qo__card { background: linear-gradient(145deg, #111111, #1b1812, #090909); }
.qo--luxury .qo__btn--ghost { color: #f5d98b; border-color: rgba(245,217,139,.32); }
.qo--luxury .qo__bar__fill { background: linear-gradient(90deg, #f5d98b, #b88935); }
.qo--luxury .qo__dots i { background: #f5d98b; }
.qo--luxury .qo__visualLabel { background: rgba(245,217,139,.14); color: #f5d98b; }

/* CANDY (beleza / moda jovem / skincare) */
.qo--candy {
  --qo-bg: #fff7fb;
  --qo-text: #3c1730;
  --qo-subtle: #925377;
  --qo-muted: #bd86a8;
  --qo-accent-1: #ff8ccf;
  --qo-accent-2: #b86cff;
  --qo-accent-press: #8d42d6;
  --qo-ghost-bg: #fff0f8;
  --qo-ghost-ring: #f7c7e6;
  --qo-backdrop: rgba(78,22,58,.42);
  --qo-ring: rgba(255,140,207,.52);
  --qo-card-border: rgba(255,255,255,.9);
  --qo-card-glow: rgba(255,140,207,.24);
  --qo-wheel-center: #fff7fb;
}
.qo--candy .qo__card { background: linear-gradient(145deg, #fffafd, #ffeaf6, #f6e7ff); }
.qo--candy .qo__bar__fill { background: linear-gradient(90deg, #ff8ccf, #b86cff); }
.qo--candy .qo__dots i { background: #ff8ccf; }

/* ARCADE (games / entretenimento / retrô neon) */
.qo--arcade {
  --qo-bg: #0b0820;
  --qo-text: #f7fbff;
  --qo-subtle: #9fb4ff;
  --qo-muted: #7770b6;
  --qo-accent-1: #00d9ff;
  --qo-accent-2: #ff3df2;
  --qo-accent-press: #b71bad;
  --qo-ghost-bg: rgba(0,217,255,.11);
  --qo-ghost-ring: rgba(255,61,242,.32);
  --qo-backdrop: rgba(5,4,18,.78);
  --qo-ring: rgba(0,217,255,.58);
  --qo-card-border: rgba(0,217,255,.26);
  --qo-card-glow: rgba(255,61,242,.26);
  --qo-wheel-center: #100b2f;
}
.qo--arcade .qo__card { background: linear-gradient(160deg, #050412, #110b33, #080615); }
.qo--arcade .qo__btn--ghost { color: #00d9ff; border-color: rgba(0,217,255,.32); }
.qo--arcade .qo__bar__fill { background: linear-gradient(90deg, #00d9ff, #ff3df2); }
.qo--arcade .qo__dots i { background: #00d9ff; }
.qo--arcade .qo__visualLabel { background: rgba(0,217,255,.12); color: #00d9ff; }

/* ZEN (wellness / espiritualidade / calma) */
.qo--zen {
  --qo-bg: #f7fbf2;
  --qo-text: #193126;
  --qo-subtle: #597866;
  --qo-muted: #8da695;
  --qo-accent-1: #78c6a3;
  --qo-accent-2: #2f8f72;
  --qo-accent-press: #236b56;
  --qo-ghost-bg: #edf8f1;
  --qo-ghost-ring: #c8ead5;
  --qo-backdrop: rgba(17,49,37,.48);
  --qo-ring: rgba(120,198,163,.5);
  --qo-card-border: rgba(255,255,255,.86);
  --qo-card-glow: rgba(120,198,163,.18);
  --qo-wheel-center: #fbfff8;
}
.qo--zen .qo__card { background: linear-gradient(145deg, #ffffff, #f1faf4, #fff8ea); }
.qo--zen .qo__bar__fill { background: linear-gradient(90deg, #78c6a3, #2f8f72); }
.qo--zen .qo__dots i { background: #78c6a3; }

/* =====================================================
   MODO FLIP v4.1.0
   ===================================================== */
.qo__step--flip { perspective: 900px; }
.qo__flipWrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0 16px;
}
.qo__flipCard {
  width: 180px;
  height: 240px;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: none;
  -webkit-tap-highlight-color: transparent;
}
.qo__flipCard.flipped .qo__flipCardInner {
  transform: rotateY(180deg);
}
.qo__flipCardInner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.qo__flipCardFront,
.qo__flipCardBack {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.qo__flipCardFront {
  background: var(--qo-card-border, rgba(255,255,255,.18));
  border: 2px solid var(--qo-card-border, rgba(255,255,255,.22));
  color: var(--qo-text);
}
.qo__flipCardBack {
  background: var(--qo-accent-1);
  color: #fff;
  transform: rotateY(180deg);
}
.qo__flipEmoji { font-size: 56px; line-height: 1; }
.qo__flipFrontHint { font-size: 13px; color: var(--qo-subtle); text-align: center; padding: 0 12px; }
.qo__flipPrize { font-size: 22px; font-weight: 800; text-align: center; padding: 0 12px; }
[data-entry-mode="flip"] .qo__progress { display: none; }

/* =====================================================
   MODO GIFT v4.1.0
   ===================================================== */
.qo__step--gift {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.qo__giftBox {
  position: relative;
  width: 140px;
  cursor: pointer;
  user-select: none;
}
.qo__giftBow {
  font-size: 48px;
  line-height: 1;
  text-align: center;
  margin-bottom: -8px;
  position: relative;
  z-index: 2;
  transition: transform .4s ease, opacity .4s ease;
}
.qo__giftBox.opened .qo__giftBow {
  transform: translateY(-40px) scale(1.3);
  opacity: 0;
}
.qo__giftLid {
  height: 36px;
  background: var(--qo-accent-1);
  border-radius: 8px 8px 0 0;
  position: relative;
  z-index: 1;
  transform-origin: top center;
  transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .5s ease;
}
.qo__giftBox.opened .qo__giftLid {
  transform: translateY(-50px) rotateX(-90deg);
  opacity: 0;
}
.qo__giftRibbon {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 18px;
  transform: translateX(-50%);
  background: var(--qo-accent-2);
  border-radius: 4px;
}
.qo__giftBody {
  height: 90px;
  background: var(--qo-accent-1);
  border-radius: 0 0 10px 10px;
  position: relative;
  overflow: hidden;
}
.qo__giftRibbonV {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 18px;
  transform: translateX(-50%);
  background: var(--qo-accent-2);
}
.qo__giftReveal {
  font-size: 20px;
  font-weight: 800;
  color: var(--qo-accent-1);
  text-align: center;
  animation: qo-revealIn .5s ease forwards;
  padding: 0 8px;
}
.qo__giftBtn { margin-top: 4px; }
[data-entry-mode="gift"] .qo__progress { display: none; }

/* =====================================================
   MODO TAP v4.1.0
   ===================================================== */
.qo__step--tap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.qo__tapArea {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--qo-ghost-bg, rgba(var(--qo-accent-1-rgb, 0,0,0),.1));
  border: 3px solid var(--qo-ring);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s ease;
  user-select: none;
}
.qo__tapArea:active { transform: scale(.94); }
.qo__tapLabel {
  font-size: 22px;
  font-weight: 800;
  color: var(--qo-accent-1);
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.qo__tapRipple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--qo-accent-1);
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}
.qo__tapRipple.rippling {
  animation: qo-tapRipple .5s ease-out forwards;
}
@keyframes qo-tapRipple {
  0%   { transform: scale(0); opacity: .35; }
  100% { transform: scale(2); opacity: 0;   }
}
.qo__tapProgress {
  width: 100%;
  max-width: 200px;
  height: 8px;
  background: var(--qo-ghost-bg, rgba(0,0,0,.08));
  border-radius: 99px;
  overflow: hidden;
}
.qo__tapProgressFill {
  height: 100%;
  width: 0%;
  background: var(--qo-accent-1);
  border-radius: inherit;
  transition: width .15s ease;
}
.qo__tapCounter {
  font-size: 14px;
  color: var(--qo-subtle);
}
.qo__tapComplete {
  font-size: 20px;
  font-weight: 800;
  color: var(--qo-accent-1);
  animation: qo-revealIn .5s ease forwards;
}
[data-entry-mode="tap"] .qo__progress { display: none; }

/* =====================================================
   MODO TRIVIA v4.1.0
   ===================================================== */
.qo__step--trivia .qo__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.qo__triviaOption {
  width: 100%;
  transition: background .2s, color .2s, transform .1s;
}
.qo__triviaOption--correct {
  background: #22c55e !important;
  border-color: #16a34a !important;
  color: #fff !important;
}
.qo__triviaOption--wrong {
  animation: qo-triviaShake .5s ease;
  background: #ef4444 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}
@keyframes qo-triviaShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-6px); }
  80%      { transform: translateX(6px); }
}
.qo__triviaWrong {
  font-size: 13px;
  color: #ef4444;
  text-align: center;
  margin-top: 4px;
  font-weight: 600;
}
