/* Misafir yükleme sayfası — Liquid Glass.
   Fotoğraf tepede tam genişlikte, bulanık kopyası sayfaya renk veriyor,
   içerik cam panellerde onun üstünde yüzüyor. */

body { background: var(--bg-sunken); }

/* ---------------- Ortam ---------------- */

.ambient {
  position: fixed; inset: -30%;
  z-index: -1;
  background: url("/assets/couple-ambient.jpg") center 28% / cover no-repeat;
  filter: blur(80px) saturate(200%);
  /* Opaklık ölçümle belirlendi: .55'te ikincil metin kontrastı 3.0:1'e
     düşüyordu (AA sınırı 4.5). Cama rengi hâlâ taşıyor ama metni yakmıyor. */
  opacity: .38;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) { .ambient { opacity: .28; } }

.app {
  max-width: 32rem;
  margin-inline: auto;
  padding: 0 16px calc(36px + env(safe-area-inset-bottom));
}

/* ---------------- Kahraman görsel ---------------- */

.hero {
  position: relative;
  /* Kenardan kenara: .app'in 16px yatay dolgusunu iptal ediyor. */
  margin: 0 -16px 22px;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .45);
  isolation: isolate;
}

.hero__img {
  width: 100%;
  /* height:auto şart: <img>'deki height="1333" özniteliği sunum ipucu olarak
     height:1333px'e çevriliyor ve yükseklik auto değilse aspect-ratio hiç
     devreye girmiyordu — görsel tüm ekranı kaplıyordu. */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* Yüzler karenin üst yarısında; kırparken onları merkezde tut. */
  object-position: 50% 26%;
  display: block;
}

@media (min-width: 480px) {
  .hero { margin-inline: 0; border-radius: 32px; }
  .hero__img { aspect-ratio: 3 / 2; object-position: 50% 24%; }
}

/* Yazının okunması için alttan yukarı koyulaşan perde. */
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, .74) 0%,
    rgba(0, 0, 0, .42) 22%,
    rgba(0, 0, 0, .06) 46%,
    transparent 65%
  );
}

.hero__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 22px 22px;
  color: #fff;
}
.hero__kicker {
  display: block;
  font-size: 12px; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 5px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.hero__names {
  font-size: clamp(30px, 8.5vw, 40px);
  font-weight: 700; letter-spacing: -.6px; line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
  text-wrap: balance;
}

/* ---------------- Giriş metni ---------------- */

/* Asıl talimat: ikincil gri yerine tam kontrast. Hem okunurluk hem
   hiyerarşi açısından doğru — misafirin okuması gereken tek cümle bu. */
.lede {
  text-align: center;
  color: var(--label);
  max-width: 23rem;
  margin: 0 auto 22px;
  text-wrap: pretty;
}

/* ---------------- Cam paneller ---------------- */

.panel { overflow: hidden; }
.panel + .panel { margin-top: 20px; }

.panel__ft {
  padding: 8px 18px 0;
  font-size: 13px; line-height: 1.385;
  color: var(--label-2);
}

.row__lbl { flex: none; min-width: 4.5rem; }
.row__tf  { flex: 1; text-align: right; }
@media (min-width: 380px) { .row__tf { text-align: left; } }

/* Cam üstünde ayırıcı daha yumuşak olmalı, yoksa çizgi gibi durur. */
.panel .row + .row::before { background: var(--glass-edge); }

/* ---------------- Seçim ---------------- */

.pick { margin: 24px 0 8px; text-align: center; }
.pick__hint { margin-top: 10px; color: var(--label-2); }

.pick .btn--filled {
  /* Kapsül butona cam dünyasında derinlik: renkli gölge + üst parlama. */
  box-shadow:
    0 10px 28px -8px color-mix(in srgb, var(--blue) 55%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .28);
}
.pick.is-over .btn--filled { background: var(--blue-deep); transform: scale(1.02); }

/* ---------------- Kuyruk ---------------- */

.queue { list-style: none; margin-top: 22px; }
.queue:empty { display: none; }

.qitem {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  position: relative;
  animation: qin .32s cubic-bezier(.32, .72, 0, 1) both;
}
.qitem + .qitem::before {
  content: ""; position: absolute; top: 0; left: 72px; right: 0;
  height: .5px; background: var(--glass-edge);
}

@keyframes qin {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.qitem__th {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: var(--fill-4);
  object-fit: cover;
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--label-3);
}
.qitem__th svg { width: 20px; height: 20px; }
.qitem__th img { width: 100%; height: 100%; object-fit: cover; }

.qitem__main { flex: 1; min-width: 0; }
.qitem__name {
  font-size: 15px; letter-spacing: -.24px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 5px;
}
.qitem__sub { display: flex; align-items: center; gap: 8px; }
.qitem__sub .prog { flex: 1; }

.qitem__pct {
  font-size: 13px; color: var(--label-2);
  font-variant-numeric: tabular-nums;
  min-width: 2.6rem; text-align: right; flex: none;
}

/* Bitti: yüzde yerine onay — iOS'ta tamamlanma böyle anlatılır. */
.qitem__ok {
  width: 22px; height: 22px; flex: none;
  display: none; place-items: center;
  background: var(--green); color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--green) 70%, transparent);
  animation: pop .35s cubic-bezier(.32, 1.5, .5, 1) both;
}
.qitem__ok svg { width: 13px; height: 13px; }
.qitem.is-done .qitem__ok { display: grid; }
.qitem.is-done .qitem__sub { display: none; }
.qitem.is-done .qitem__name { margin-bottom: 0; }

@keyframes pop {
  from { transform: scale(.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.qitem__retry {
  font-size: 15px; color: var(--blue); font-weight: 600;
  padding: 6px 4px; flex: none;
}
.qitem.is-error .qitem__name { color: var(--red); }

/* ---------------- Uyarı ---------------- */

.note {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 18px; padding: 13px 15px;
  border-radius: var(--r-card);
  background: color-mix(in srgb, var(--orange) 16%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 13px; line-height: 1.385;
  color: var(--label);
}
.note__ico { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--orange); }

/* ---------------- Alt ---------------- */

.foot { margin-top: 30px; text-align: center; }
.foot__count { color: var(--label-2); }
.foot__kvkk { margin-top: 8px; color: var(--label-3); }
.foot__kvkk a { color: var(--label-2); text-decoration: underline; text-underline-offset: 2px; }
