* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg, #000000);
  color: #111827;
  opacity: 0;
  transition: opacity 0.22s ease;
}
body.ready { opacity: 1; }
body.leaving { opacity: 0; }

/* Animated blurred background image with mouse parallax */
.bg-wrap {
  position: fixed;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(12px) saturate(1.18) brightness(0.72);
  will-change: transform, filter;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.12) 25%, rgba(0, 0, 0, 0.62) 100%);
}

.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.stage {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 24px 56px;
}

@media (max-width: 540px) {
  .stage { padding: 20px 18px 20px 44px; }
}

/* Minimal step dots above sticker */
.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  margin-left: -32px;
}
.step-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.3s ease, background 0.3s ease;
}
.step-dot.done { background: rgba(255, 255, 255, 0.85); }
.step-dot.active {
  background: #ffffff;
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

/* Frosted Glass Question Sticker Card */
.sticker {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: rgba(14, 14, 22, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  padding: 32px 30px 28px 62px;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 42px var(--accent-glow, rgba(255, 255, 255, 0.12)),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  text-align: center;
  animation: popIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sticker::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}

.card-decor {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.sticker > *:not(.avatar):not(.card-decor) {
  position: relative;
  z-index: 1;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Overlapping left circular glass badge */
.avatar {
  position: absolute;
  left: -44px;
  top: 50%;
  transform: translateY(-50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(16, 16, 26, 0.68);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 2px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 0 26px var(--accent-glow, rgba(255, 255, 255, 0.25)),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  user-select: none;
  z-index: 2;
  animation: avatarBob 3.2s ease-in-out infinite alternate;
}

.avatar svg,
.avatar img.pixel-icon,
.avatar canvas.pixel-icon {
  width: 58px;
  height: 58px;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.avatar img.pixel-icon.round-cover,
.avatar canvas.pixel-icon.round-cover {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.anim-pulse { animation: pxPulse 1.3s steps(4, end) infinite; }
.anim-float { animation: pxFloat 2.4s ease-in-out infinite alternate; }
.anim-wiggle { animation: pxWiggle 2.2s ease-in-out infinite; }
.anim-bounce { animation: pxBounce 1.8s ease-in-out infinite; }
.anim-steam { animation: pxSteam 2.2s ease-in-out infinite alternate; }

@keyframes pxPulse {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.12); }
  65% { transform: scale(0.98); }
}
@keyframes pxFloat {
  0% { transform: translateY(2px) rotate(-3deg); }
  100% { transform: translateY(-3px) rotate(3deg); }
}
@keyframes pxWiggle {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.06); }
}
@keyframes pxBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.08); }
}
@keyframes pxSteam {
  0% { transform: translateY(2px) scale(0.98); }
  100% { transform: translateY(-3px) scale(1.05); }
}

@keyframes avatarBob {
  0% { transform: translateY(-50%) scale(1); }
  100% { transform: translateY(-53%) scale(1.04); }
}

.q-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 8px;
}

.q-title {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.pill-actions {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px;
  border-radius: 15px;
  position: relative;
}

.pill-btn {
  flex: 1;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 11px;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pill-btn:active { transform: scale(0.96); }

.pill-yes {
  background: var(--accent, #ee5a46);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--accent-glow, rgba(238, 90, 70, 0.45));
}
.pill-yes:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 24px var(--accent-glow, rgba(238, 90, 70, 0.6));
}

.pill-no {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}
.pill-no:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.q-feedback {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  min-height: 18px;
  transition: color 0.2s ease;
}
.q-feedback.warn {
  color: #fda4af;
}
