body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  margin: 0;
  background: #0c0b10;
  color: #f4f1ff;
}

.wrap {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 16px 48px;
}

.card {
  background: rgba(21,19,33,0.85);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
}

.btn {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #f4f1ff;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(255,79,216,.90), rgba(124,247,255,.45));
  border: 0;
}

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hidden { display: none !important; }

canvas {
  display: block;
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

#btnNo {
  position: relative;
  transition: transform 140ms ease;
}

#confetti {
  border-radius: 16px;
}

/* Final screen fills the viewport */
.final-screen{
  position: relative;
  min-height: 100vh;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

/* Final card grows to fill and reach the bottom */
.final-card{
  position: relative;
  z-index: 2;               /* above background */
  flex: 1;                  /* fill vertical space */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(21,19,33,0.85);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 18px;
  margin-top: 12px;
}

/* Image styling */
.photo-wrap{
  margin-top: 14px;
  flex: 1;                  /* lets image area expand so card feels tall */
  display: flex;
}

.final-photo{
  width: 75%;
  max-width: 450px;
  height: auto;
  border-radius: 16px;
  border: 3px solid rgba(255, 79, 216, 0.4);
  box-shadow: 0 10px 40px rgba(255, 79, 216, 0.25);
  margin: 0 auto;
  display: block;
}

/* Confetti overlays the whole final screen */
.confetti{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;               /* above card (confetti floats over photo) */
  pointer-events: none;     /* buttons still clickable */
}