* {
      box-sizing: border-box;
}

body {
    margin: 0;
    height: 100vh;
    background:
    radial-gradient(circle at center, #222 0%, #050505 70%);
    font-family: system-ui, sans-serif;
    color: white;
    overflow: hidden;
}

.launcher {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 420px;
}

.card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    height: 520px;
    border-radius: 28px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    transform-style: preserve-3d;
    transition:
        transform 0.6s cubic-bezier(.22,.61,.36,1),
        opacity 0.6s ease;
    box-shadow:
        0 60px 120px rgba(0,0,0,0.65),
        0 0 60px rgba(0,150,255,0.18);
}

.card.no-anim {
    transition: none !important;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
    to top,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0)
    );
}

.card.completed::before {
  content: "✓";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 200, 120, 0.9);
  color: black;
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 16px rgba(0, 200, 120, 0.6);
}

.title {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 6px 16px rgba(0,0,0,1);
    z-index: 2;
}

.hint {
    position: absolute;
    bottom: 24px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
    letter-spacing: 0.08em;
}

.dots {
  position: absolute;
  bottom: 70px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  pointer-events: auto;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    opacity 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background: white;
  transform: scale(1.6);
  opacity: 1;
}

.dot:not(.active) {
  opacity: 0.5;
}

.bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.2) saturate(0.8);
  transform: scale(1.1);
  transition: opacity 0.8s ease;
  z-index: -1;
  opacity: 0;
}

.bg.active {
  opacity: 1;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.75)
  );
}

.progress {
  position: absolute;
  top: 32px;
  right: 40px;
  font-size: 0.95rem;
  opacity: 0.7;
  letter-spacing: 0.08em;
}

/* White flash overlay */
.whiteout {
  position: fixed;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 999;
}

.whiteout.active {
  opacity: 1;
}

/* Card launch animation */
.card.launching {
  transition:
    transform 0.5s cubic-bezier(.16,.84,.44,1),
    opacity 0.6s ease,
    filter 0.2s ease;
  transform:
    translate(-50%, -50%)
    translateZ(600px)
    scale(10);
  opacity: 0;
    filter: blur(5px);
}