:root{
  --bg1:#0b0b12;
  --bg2:#140b1a;
  --card:#0f1220cc;
  --text:#f6f3ff;
  --muted:#cfc7e9;
  --pink:#ff4fa3;
  --pink2:#ff8fd0;
  --blue:#5fd3ff;
  --stroke:#ffffff22;
  --shadow: 0 20px 60px #00000066;
  --radius: 26px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(900px 600px at 20% 10%, #3a1446 0%, transparent 60%),
    radial-gradient(700px 520px at 80% 20%, #103a4a 0%, transparent 60%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}

/* mobile-first centered layout */
.wrap{
  min-height:100%;
  display:grid;
  place-items:center;
  padding:22px 14px;
}

.phone{
  width:min(420px, 92vw);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #121529cc, #0e1020cc);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}

.top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 16px 8px;
}

.pill{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:#0b0d18cc;
}

.tiny{
  font-size:12px;
  color:var(--muted);
}

.hero{
  position:relative;
  padding:10px 16px 0;
}

.hero-img{
  width:100%;
  height:300px;
  border-radius: 22px;
  object-fit: cover;
  object-position: center; /* center-focused */
  border:1px solid var(--stroke);
  box-shadow: 0 18px 40px #00000055;
}

.hero-glow{
  position:absolute;
  inset:auto 24px 8px 24px;
  height:40px;
  filter: blur(18px);
  background: radial-gradient(circle, #ff4fa3aa 0%, transparent 70%);
  pointer-events:none;
}

.content{
  padding:14px 18px 18px;
  text-align:center;
}

h1{
  margin:10px 0 6px;
  font-size: clamp(22px, 3.6vw, 30px);
  line-height:1.15;
}

.accent{
  display:block;
  margin-top:6px;
  background: linear-gradient(90deg, var(--pink), var(--pink2), var(--blue));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  font-weight:800;
}

.sub{
  margin:0 auto 14px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
  line-height:1.5;
}

.buttons{
  display:flex;
  gap:12px;
  justify-content:center;
  align-items:center;
  margin: 12px 0 6px;
  position:relative;
}

.btn{
  border:none;
  cursor:pointer;
  font-weight:800;
  border-radius: 16px;
  padding: 12px 16px;
  min-width: 128px;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
  user-select:none;
}

.btn:active{ transform: translateY(1px) scale(0.99); }

.yes{
  color:#140b1a;
  background: linear-gradient(90deg, var(--pink), var(--pink2));
  box-shadow: 0 12px 28px #ff4fa344;
}

.no{
  color:var(--text);
  background:#0b0d18cc;
  border:1px solid var(--stroke);
}

.ghost{
  color:var(--text);
  background:transparent;
  border:1px solid var(--stroke);
}

.btn:hover{
  filter: brightness(1.06);
  box-shadow: 0 16px 34px #00000055;
  transform: translateY(-1px);
}

.hint{
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 13px;
  color: #ffd3ea;
}

.footer{
  margin-top: 14px;
  display:flex;
  justify-content:center;
  gap:8px;
  opacity:.7;
}
.dot{
  width:7px;height:7px;border-radius:50%;
  border:1px solid var(--stroke);
  background:#ffffff18;
}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  background: #00000088;
  backdrop-filter: blur(8px);
  padding: 18px;
  z-index: 20;
}
.modal.show{ display:grid; }

.modal-card{
  width:min(520px, 92vw);
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, #121529ee, #0e1020ee);
  box-shadow: var(--shadow);
  padding: 16px 16px 18px;
  position:relative;
  text-align:center;
}

.close{
  position:absolute;
  top:10px; right:10px;
  width:38px; height:38px;
  border-radius: 12px;
  border:1px solid var(--stroke);
  background:#0b0d18cc;
  color:var(--text);
  cursor:pointer;
}

.modal-card h2{
  margin: 8px 0 6px;
  font-size: 26px;
}
.modal-card p{
  margin: 0 auto 12px;
  max-width: 44ch;
  color: var(--muted);
  line-height:1.5;
}

.modal-imgs{
  display:flex;
  justify-content:center;
  margin: 10px 0 14px;
}
.mini-img{
  width:min(260px, 70vw);
  border-radius: 20px;
  border:1px solid var(--stroke);
  object-fit: cover;
  object-position: center;
  box-shadow: 0 16px 40px #00000066;
}

.modal-actions{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top: 8px;
}

.copied{
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 13px;
  color:#b7ffda;
}

/* Confetti canvas */
.confetti{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index: 30;
}

/* floating hearts background */
.bg-hearts{
  position:fixed;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  opacity: .35;
  z-index: 0;
}
.heart{
  position:absolute;
  font-size: 18px;
  color: #ff8fd088;
  animation: floatUp linear infinite;
  bottom:-40px;
}
.heart:nth-child(1){ left:10%; animation-duration: 10s; animation-delay: 0s; }
.heart:nth-child(2){ left:25%; animation-duration: 12s; animation-delay: 1s; font-size: 22px; }
.heart:nth-child(3){ left:40%; animation-duration: 9s;  animation-delay: 2s; }
.heart:nth-child(4){ left:55%; animation-duration: 14s; animation-delay: 0.5s; font-size: 24px; }
.heart:nth-child(5){ left:70%; animation-duration: 11s; animation-delay: 1.8s; }
.heart:nth-child(6){ left:82%; animation-duration: 13s; animation-delay: 2.6s; font-size: 20px; }
.heart:nth-child(7){ left:18%; animation-duration: 15s; animation-delay: 3.2s; }
.heart:nth-child(8){ left:33%; animation-duration: 10s; animation-delay: 2.1s; font-size: 26px; }
.heart:nth-child(9){ left:47%; animation-duration: 12s; animation-delay: 3.8s; }
.heart:nth-child(10){ left:63%; animation-duration: 9s; animation-delay: 4.2s; }
.heart:nth-child(11){ left:76%; animation-duration: 16s; animation-delay: 1.2s; font-size: 22px; }
.heart:nth-child(12){ left:90%; animation-duration: 11s; animation-delay: 3.3s; }

@keyframes floatUp{
  from { transform: translateY(0) rotate(0deg); opacity: .0; }
  10%  { opacity: .7; }
  to   { transform: translateY(-110vh) rotate(18deg); opacity: 0; }
}

/* Desktop polish */
@media (min-width: 900px){
  .wrap{ padding: 36px; }
  .phone{ transform: translateY(-6px); }
  .hero-img{ height: 320px; }
}
