:root{
  --bg:#070B14;
  --card: rgba(255,255,255,.10);
  --border: rgba(255,255,255,.16);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow:hidden;
}

.app{ position:relative; height:100%; width:100%; }

.bg{ position:absolute; inset:0; overflow:hidden; }

.videoIntro{
  position:absolute; inset:0;
  z-index:10;
  display:block;
}

.introVideo{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  background:#000;
}

.introSkip{
  position:absolute;
  top:14px;
  right:14px;
  z-index:11;
}

.introHint{
  position:absolute;
  bottom:18px;
  left:18px;
  z-index:11;
  font-size:12px;
  color: rgba(255,255,255,.70);
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.18);
  padding:10px 12px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
}


.bgVideo{
  position:absolute; inset:-10%;
  width:120%; height:120%;
  object-fit:cover;
  opacity:0;
  transform: scale(1.05);
  transition: opacity 900ms ease, transform 1400ms ease;
  filter: saturate(1.05) contrast(1.05);
}

.bgVideo.isActive{
  opacity:1;
  transform: scale(1.00);
}

.bgOverlay{
  position:absolute; inset:0;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(135,206,235,.25), rgba(7,11,20,.75)),
    linear-gradient(to bottom, rgba(7,11,20,.25), rgba(7,11,20,.82));
}

.topbar{
  position:absolute; top:14px; left:14px; right:14px;
  display:flex; align-items:center; justify-content:space-between;
  z-index:5;
}

.dots{ display:flex; gap:8px; }
.dot{
  width:8px; height:8px; border-radius:999px;
  background: rgba(255,255,255,.25);
}
.dot.active{ background: rgba(255,255,255,.85); }

.slides, .question, .result{
  position:absolute; inset:0;
  display:grid;
  place-items:center;
  padding: 22px;
  z-index:4;
}

.hidden{ display:none !important; }

.card{
  width:min(680px, 92vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  backdrop-filter: blur(12px);
}

.kicker{
  margin:0 0 8px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size: 12px;
  color: var(--muted);
}

.headline{
  margin: 0 0 10px;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height:1.05;
}

.sub{
  margin:0 0 18px;
  color: var(--muted);
  font-size: clamp(14px, 2.2vw, 18px);
  line-height:1.4;
}

.actions{ display:flex; justify-content:flex-end; gap:12px; }
.actions.row{ justify-content:flex-start; flex-wrap:wrap; }

button{
  border:0; cursor:pointer;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  transition: transform 120ms ease, filter 120ms ease, opacity 120ms ease;
}

button:active{ transform: scale(.98); }
button:hover{ filter: brightness(1.06); }

.primary{ background: rgba(135,206,235,.55); }
.danger{ background: rgba(255, 90, 120, .55); }
.ghost{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
}

.big{ padding: 14px 18px; font-size: 16px; }

.tiny{
  margin: 12px 0 0;
  color: rgba(255,255,255,.70);
  min-height: 18px;
}

.stitchWrap{
  display:flex;
  justify-content:center;
  margin: 2px 0 10px;
}

#stitchImg{
  width: min(220px, 60vw);
  height:auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
  transform: translateY(6px);
  opacity: 0;
  animation: popIn 700ms ease forwards;
}

@keyframes popIn{
  from{ transform: translateY(18px) scale(.96); opacity: 0; }
  to{ transform: translateY(6px) scale(1); opacity: 1; }
}

#confetti{
  position:absolute; inset:0;
  width:100%; height:100%;
  pointer-events:none;
}

.music{
  position:absolute;
  bottom: 16px;
  right: 16px;
  z-index:6;
  width:48px; height:48px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  display:grid; place-items:center;
}
