* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #0b1020;
  font-family: 'Cairo', sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  overscroll-behavior: none;
}

#card {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

#poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  pointer-events: none;
}

.shade { position: absolute; left: 0; right: 0; pointer-events: none; }
.shade.top {
  top: 0; height: 34%;
  background: linear-gradient(to bottom, rgba(5,8,18,.82) 0%, rgba(5,8,18,.35) 55%, transparent 100%);
}
.shade.bottom {
  bottom: 0; height: 42%;
  background: linear-gradient(to top, rgba(5,8,18,.9) 0%, rgba(5,8,18,.45) 60%, transparent 100%);
}

.third {
  position: absolute;
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 7vw;
  color: #f5ecd7;
}

.top-third {
  top: 0;
  height: 33.33%;
  justify-content: flex-start;
  padding-top: max(4vh, env(safe-area-inset-top));
}

.basmala {
  font-size: clamp(13px, 3.4vw, 17px);
  font-weight: 600;
  color: #d9c48f;
  letter-spacing: .5px;
  margin-bottom: 1.2vh;
}

#groomName {
  font-size: clamp(34px, 9.5vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0,0,0,.6);
}

.tagline {
  margin-top: .8vh;
  font-size: clamp(14px, 3.8vw, 19px);
  font-weight: 600;
  color: #e8d9b0;
}

.bottom-third {
  bottom: 0;
  height: 33.33%;
  justify-content: flex-end;
  padding-bottom: max(2.5vh, env(safe-area-inset-bottom));
  gap: .9vh;
}

.guest-line {
  font-size: clamp(17px, 4.6vw, 23px);
  font-weight: 700;
  color: #ffffff;
}

.datetime {
  font-size: clamp(13px, 3.5vw, 17px);
  font-weight: 600;
  color: #f0e3c0;
}

.venue {
  font-size: clamp(14px, 3.7vw, 18px);
  font-weight: 400;
  color: #d8cfbc;
}

.actions {
  display: flex;
  gap: 4vw;
  margin-top: .6vh;
}

.action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(217, 196, 143, .14);
  backdrop-filter: blur(6px);
  color: #f5ecd7;
  text-decoration: none;
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 700;
}
.action svg { width: 20px; height: 20px; fill: #d9c48f; }
.action:active { background: rgba(217, 196, 143, .3); }

.order {
  margin-top: 1vh;
  font-size: clamp(12px, 3.2vw, 14px);
  font-weight: 400;
  color: rgba(216, 207, 188, .75);
  text-decoration: none;
}
.order:active { color: #d9c48f; }

.tap-hint {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translateX(-50%);
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(217, 196, 143, .92);
  backdrop-filter: blur(6px);
  color: #14100a;
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 800;
  animation: pulse 1.4s ease-in-out infinite;
  pointer-events: none;
  transition: opacity .5s;
}
.tap-hint.hidden { animation: none; opacity: 0; }

@keyframes pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
