/* ليالي (Layali): warm night, navy #101B33, gold #D4AF37, cream text, slow drifting stars. */
:root {
  --bg: #101B33; --bg2: #18264a; --gold: #D4AF37; --cream: #F6EEDC; --soft: #c9c2b0; --rose: #C04081;
  --font: "Noto Naskh Arabic", "Geeza Pro", "Tahoma", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 30%, var(--bg2), var(--bg) 70%);
  color: var(--cream); font-family: var(--font); overflow: hidden; touch-action: manipulation;
  display: flex; flex-direction: column; min-height: 100dvh;
}
.stars {
  position: fixed; inset: -50%; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, #fff8, transparent), radial-gradient(1px 1px at 30% 70%, #fff9, transparent),
    radial-gradient(1.5px 1.5px at 55% 40%, #f3e5ab, transparent), radial-gradient(1px 1px at 75% 15%, #fff7, transparent),
    radial-gradient(2px 2px at 85% 60%, #f3e5abaa, transparent), radial-gradient(1px 1px at 20% 90%, #fff8, transparent);
  background-size: 320px 320px; animation: drift 120s linear infinite;
}
@keyframes drift { to { transform: translate(160px, 80px); } }
main { flex: 1; display: grid; place-items: center; padding: 24px 20px 8px; position: relative; z-index: 1; }
.card {
  width: min(92vw, 440px); text-align: center; padding: 28px 22px; border-radius: 22px;
  background: #0b1430cc; border: 1px solid #d4af3755; box-shadow: 0 10px 40px #0008;
  animation: rise .5s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.center { display: grid; gap: 14px; justify-items: center; }
.mark { width: 92px; height: 92px; }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.brand { margin: 0; font-size: 2rem; color: var(--gold); font-weight: 700; }
h1, .question { font-size: clamp(1.6rem, 7vw, 2.3rem); line-height: 1.5; margin: 6px 0 18px; color: var(--gold); }
p.lead { font-size: clamp(1.15rem, 5vw, 1.4rem); line-height: 1.8; margin: 0 0 22px; }
button, .button {
  font: inherit; font-size: 1.2rem; font-weight: 700; border: 0; border-radius: 999px; padding: 14px 30px; cursor: pointer;
  background: var(--gold); color: var(--bg); text-decoration: none; display: inline-block;
}
button.ghost { background: transparent; color: var(--cream); border: 1px solid #f6eedc66; }
.yes { font-size: 1.45rem; padding: 16px 38px; animation: pulse 1.6s ease-in-out infinite; position: relative; z-index: 3; }
.no { position: fixed; z-index: 2; background: #f6eedc; color: var(--bg); padding: 12px 26px;
      transition: transform .15s ease-out, left .15s ease-out, top .15s ease-out; }
.caption { min-height: 1.6em; color: var(--soft); margin-top: 14px; font-size: 1.05rem; }
.step { min-height: 46vh; display: grid; place-items: center; gap: 18px; cursor: pointer; user-select: none; }
.line { font-size: clamp(1.4rem, 6.5vw, 2rem); line-height: 1.8; max-width: 440px; text-align: center; min-height: 3.6em; }
.photo {
  width: min(78vw, 340px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: #fff;
  padding: 10px 10px 34px; box-shadow: 0 12px 30px #000a; transform: rotate(-3deg); animation: tilt .6s ease-out;
}
@keyframes tilt { from { opacity: 0; transform: rotate(-12deg) scale(.85); } }
.hint { color: var(--soft); font-size: .95rem; opacity: .8; }
.dots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #f6eedc33; }
.dots i.on { background: var(--gold); }
.ribbon {
  position: fixed; top: 0; inset-inline: 0; z-index: 4; text-align: center; padding: 10px; font-weight: 700;
  background: var(--gold); color: var(--bg);
}
canvas#confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 5; }
footer { text-align: center; padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); position: relative; z-index: 1; }
footer a { color: var(--soft); text-decoration: none; font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { *, .stars { animation: none !important; transition: none !important; } }
