/* ═══════════════════════════════════════════════
   HANGİ MANİFEST KIZISIN?
   Light & colorful — official site vibe, turned up
   ═══════════════════════════════════════════════ */

:root {
  --bg: #fff8f0;
  --ink: #16121c;
  --ink-soft: #5c5468;
  --white: #ffffff;
  --rainbow: linear-gradient(100deg, #ff7ab8, #ff9f45 20%, #ffd93d 40%, #6ee7a0 60%, #5cc8ff 80%, #c187ff);
  --radius: 26px;
  --shadow-soft: 0 18px 50px rgba(22, 18, 28, 0.10);
  /* resmi site Roc Grotesk (Adobe Fonts, lisanslı) kullanıyor;
     yuvarlak uçlu karakteriyle en yakın ücretsiz ikili: Baloo 2 + Quicksand */
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Quicksand", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* iOS overscroll/çentik alanında beyaz görünmesin — üstte video tonu */
  background: linear-gradient(180deg, #ccd0b0 0%, #f6d3cb 30%, #fff8f0 60%);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Pastel swirl background ─── */
.swirl {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  /* en üstte video tavan tonu — durum çubuğu/çentik bölgesi beyaz görünmez */
  background:
    linear-gradient(180deg, #cdd1b1 0px, #edd2c8 110px, rgba(255, 248, 240, 0) 260px),
    var(--bg);
}

.swirl::after {
  /* soft veil so content always reads */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 50% 42%, rgba(255, 248, 240, 0.55), rgba(255, 248, 240, 0.15));
}

.swirl-blob {
  position: absolute;
  width: 58vmax;
  height: 58vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: swirlDrift 24s ease-in-out infinite alternate;
}

.sb-1 { background: #aef3e0; top: -18%; left: -12%; }
.sb-2 { background: #ffd6ec; top: -10%; right: -18%; animation-delay: -5s; animation-duration: 29s; }
.sb-3 { background: #cdeaff; bottom: -22%; left: -8%; animation-delay: -11s; animation-duration: 26s; }
.sb-4 { background: #e6d9ff; bottom: -18%; right: -14%; animation-delay: -16s; animation-duration: 31s; }
.sb-5 { background: #fff3b8; top: 30%; left: 32%; width: 44vmax; height: 44vmax; opacity: 0.5; animation-delay: -8s; animation-duration: 21s; }

@keyframes swirlDrift {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(7vmax, -5vmax) scale(1.18) rotate(12deg); }
  100% { transform: translate(-6vmax, 6vmax) scale(0.9) rotate(-10deg); }
}

/* floating sparkles */
#sparkle-field { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.sparkle {
  position: absolute;
  opacity: 0;
  animation: twinkle 4.5s ease-in-out infinite;
  user-select: none;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  50%      { opacity: 0.9; transform: scale(1) rotate(45deg); }
}

/* cursor sparkle trail */
.trail {
  position: fixed;
  pointer-events: none;
  z-index: 60;
  font-size: 14px;
  animation: trailFade 0.7s ease-out forwards;
}

@keyframes trailFade {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  to   { opacity: 0; transform: translate(-50%, -120%) scale(0.3) rotate(60deg); }
}

/* ─── Screens ─── */
#app { position: relative; min-height: 100dvh; }

.screen {
  display: none;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) 20px 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.screen.active { display: flex; animation: screenIn 0.55s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* ─── Landing ─── */
#screen-landing {
  padding: 0 0 40px;
  justify-content: flex-start;
}

/* pastel hero — videonun gül/şeftali tonları, alta doğru krem renge erir */
.hero-red {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 18px 110px;
  margin-top: -34px; /* başlık videonun solmuş alt bandına biner */
  position: relative;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(246, 211, 203, 0) 0px,
    #f6d3cb 36px,
    #f0bdbb 40%,
    #eaa9ae 66%,
    #e59ea7 78%,
    rgba(229, 158, 167, 0.55) 89%,
    rgba(229, 158, 167, 0) 100%
  );
}

/* tam ekran genişliğinde video — altta banda eriyen gradient */
.hero-group-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  opacity: 0;
  animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero-video {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 86vh;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(-28px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

.hero-group {
  width: 100%;
  display: block;
  animation: kenburns 9s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08) translateY(-5px); }
}

/* sadece alt kısımda banda karışan gradient geçiş */
.hero-group-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(246, 211, 203, 0) 58%,
    rgba(246, 211, 203, 0.55) 82%,
    #f6d3cb 100%
  );
  pointer-events: none;
}

.hg-spark {
  position: absolute;
  color: #fff;
  z-index: 2;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.9);
  animation: sparkSpin 3s ease-in-out infinite;
  user-select: none;
}

.hg1 { top: 9%; left: 7%; font-size: 26px; }
.hg2 { top: 16%; right: 9%; font-size: 20px; color: #ffd93d; animation-delay: -1.1s; }
.hg3 { bottom: 20%; left: 12%; font-size: 18px; color: #ff5fa8; animation-delay: -2.1s; }
.hg4 { bottom: 12%; right: 14%; font-size: 24px; color: #a259ff; animation-delay: -0.6s; }

.hero-copy {
  width: 100%;
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: -12px;
  position: relative;
  z-index: 6; /* kayan kartlar yaklaşsa bile buton tıklanabilir kalır */
}

/* pastel zemin üzerinde koyu tipografi */
.hero-red .hl-small,
.hero-red .hl-mid {
  color: var(--ink);
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.4);
}

.hero-red .hero-logo {
  filter: drop-shadow(0 10px 26px rgba(140, 80, 85, 0.4));
}

.hero-red .hero-sub { color: #6b4a52; }
.hero-red .hero-sub strong { color: var(--ink); }

/* title — per-letter bounce */
.hero-title {
  font-family: var(--font-display);
  line-height: 0.98;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--ink);
}

.hero-line { display: block; }

.hero-line .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) scale(0.6) rotate(8deg);
  animation: ltrIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s;
}

.hero-line .ltr:hover { transform: translateY(-8px) scale(1.15) rotate(-6deg); }

@keyframes ltrIn {
  to { opacity: 1; transform: none; }
}

.hl-small {
  font-size: clamp(24px, 6vw, 42px);
  font-weight: 700;
  letter-spacing: 0.32em;
}

/* official brush logo instead of text */
.hl-logo { padding: clamp(6px, 1.5vw, 14px) 0; }

.hero-logo {
  display: block;
  width: min(580px, 88vw);
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.6) rotate(-4deg);
  animation: logoIn 0.8s cubic-bezier(0.34, 1.5, 0.64, 1) 0.35s forwards;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 10px 24px rgba(22, 18, 28, 0.16));
}

.hero-logo:hover { transform: scale(1.04) rotate(1.5deg); }

@keyframes logoIn {
  to { opacity: 1; transform: none; }
}

.hl-mid {
  font-size: clamp(30px, 8vw, 60px);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--ink);
}

@keyframes rainbowShift {
  to { background-position: 250% 0; }
}

.hero-sub {
  color: var(--ink-soft);
  font-size: clamp(15px, 4vw, 19px);
  line-height: 1.65;
  font-weight: 600;
}

.hero-sub strong { color: var(--ink); font-weight: 700; }

.fv-link {
  color: #8a3a4e;
  font-weight: 700;
  font-size: 0.86em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.2s;
}

.fv-link:hover { color: var(--ink); }

/* ─── Üye grid'i — 2 sütun × 3 satır, resmi site düzeni ─── */
.member-reel {
  width: 100%;
  max-width: 720px;
  margin: 8px auto 0;
  padding: 0 16px;
}

/* mobil: hero sıkışır */
@media (max-width: 640px) {
  .hero-red { gap: 14px; padding-bottom: 52px; }
  .hero-copy { gap: 15px; margin-top: -14px; }
  .hero-red .hero-logo { width: 80vw; }
  .hero-red .hero-sub { font-size: 14.5px; }
}

.reel-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 14px;
}

.member-cell {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  animation: cardIn 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

@keyframes cardIn {
  to { opacity: 1; transform: none; }
}

/* görsel kartı — dümdüz, eğiksiz, görselin gerçek oranında */
.member-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1024 / 673;
  box-shadow: 0 14px 34px rgba(22, 18, 28, 0.14);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(22, 18, 28, 0.2);
}

.member-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: groove 4s ease-in-out infinite alternate;
}

/* çok hafif nefes — görsel hiç kırpılmadan içeri doğru zoom */
@keyframes groove {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

.member-cell:nth-child(2n) .member-card img { animation-delay: -1.3s; animation-duration: 4.4s; }
.member-cell:nth-child(3n) .member-card img { animation-delay: -2.6s; animation-duration: 3.4s; }

/* kartın altında isim + kısa tanıtım */
.mc-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(15px, 4.2vw, 19px);
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 12px 2px 4px;
}

.mc-desc {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(12.5px, 3.4vw, 14px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 2px;
}

/* ─── Üye detay sayfası ─── */
#screen-member {
  padding: 0 0 48px;
  justify-content: flex-start;
}

.mp-back {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 14px;
  z-index: 30;
}

.mp-inner { width: 100%; }

.mp-hero {
  position: relative;
  width: 100%;
}

.mp-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 82vh;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* altta krem zemine eriyen geçiş */
.mp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0) 84%, rgba(255, 248, 240, 0.55) 94%, #fff8f0 100%);
  pointer-events: none;
}

.mp-body {
  max-width: 640px;
  margin: -26px auto 0;
  padding: 0 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.mp-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 9vw, 48px);
  line-height: 1.1;
  color: var(--ink);
}

.mp-name::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  border-radius: 999px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, var(--m-c1), var(--m-c2));
}

.mp-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.mp-para {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(14.5px, 4vw, 16px);
  line-height: 1.75;
  color: var(--ink-soft);
  text-align: left;
}

.mp-handle {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(100deg, var(--m-c1), var(--m-c2));
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--m-c2) 35%, transparent);
  margin: 4px 0 8px;
}

.mp-gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 700px) {
  .mp-gallery { grid-template-columns: repeat(3, 1fr); }
}

.mp-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  cursor: zoom-in;
  box-shadow: 0 10px 24px rgba(22, 18, 28, 0.12);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
}

.mp-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 36px rgba(22, 18, 28, 0.2);
}

.mp-cta { margin-top: 16px; }

.member-cell { cursor: pointer; }

/* ─── Buttons ─── */
.btn-primary {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 18px 46px;
  border-radius: 999px;
  background: var(--ink);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
  box-shadow:
    0 10px 30px rgba(22, 18, 28, 0.25),
    0 4px 26px rgba(255, 95, 168, 0.5),
    0 -3px 22px rgba(92, 200, 255, 0.45),
    8px 8px 30px rgba(255, 217, 61, 0.4),
    -8px 6px 30px rgba(162, 89, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 16px 40px rgba(22, 18, 28, 0.3),
    0 6px 34px rgba(255, 95, 168, 0.65),
    0 -4px 30px rgba(92, 200, 255, 0.6),
    10px 10px 38px rgba(255, 217, 61, 0.55),
    -10px 8px 38px rgba(162, 89, 255, 0.55);
}

.btn-primary:active { transform: scale(0.96); }

/* buton üzerinden periyodik ışık süpürmesi */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.28) 50%, transparent 68%);
  background-size: 260% 100%;
  animation: btnShine 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btnShine {
  0%, 55% { background-position: 135% 0; }
  100%    { background-position: -135% 0; }
}

.btn-big { font-size: clamp(17px, 4.5vw, 20px); }

/* nefes alan nabız — hover'da durur ki kaldırma efekti çalışsın */
.btn-big:not(:hover):not(:active) {
  animation: ctaPulse 2.4s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.btn-spark { display: inline-block; animation: sparkSpin 2.4s ease-in-out infinite; }

@keyframes sparkSpin {
  0%, 100% { transform: rotate(0) scale(1); }
  50%      { transform: rotate(20deg) scale(1.25); }
}

.btn-ghost {
  background: var(--white);
  border: 2px solid rgba(22, 18, 28, 0.12);
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(22, 18, 28, 0.08);
}

.btn-ghost:hover { transform: translateX(-3px); border-color: var(--ink); }

/* ─── Marquee ─── */
.marquee {
  width: 100vw;
  overflow: hidden;
  background: var(--ink);
  margin-top: 34px;
  transform: rotate(-1.2deg) scale(1.02);
  box-shadow: 0 14px 40px rgba(22, 18, 28, 0.25);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #fff;
  padding: 12px 0;
}

.marquee-track .mq-star { color: transparent; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Quiz ─── */
.quiz-inner {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.quiz-head { display: flex; align-items: center; gap: 14px; }

.progress-wrap { flex: 1; display: flex; align-items: center; gap: 12px; }

.progress-bar {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: rgba(22, 18, 28, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 10%;
  border-radius: 999px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: rainbowShift 4s linear infinite;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  min-width: 48px;
  text-align: right;
}

.q-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 6vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(22, 18, 28, 0.06);
}

.q-card.q-out { animation: qOut 0.28s ease forwards; }
.q-card.q-in  { animation: qIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes qOut {
  to { opacity: 0; transform: translateX(-34px) rotate(-1deg); }
}

@keyframes qIn {
  from { opacity: 0; transform: translateX(34px) rotate(1deg); }
  to   { opacity: 1; transform: none; }
}

.q-emoji {
  font-size: 40px;
  line-height: 1;
  animation: emojiBop 2.6s ease-in-out infinite;
  width: fit-content;
}

@keyframes emojiBop {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50%      { transform: rotate(8deg) scale(1.12); }
}

.q-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 5.4vw, 27px);
  font-weight: 700;
  line-height: 1.3;
}

.answers { display: flex; flex-direction: column; gap: 12px; }

.answer-btn {
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
  font-family: var(--font-body);
  font-size: clamp(14.5px, 3.8vw, 16px);
  font-weight: 600;
  color: var(--ink);
  background: #fdf9ff;
  border: 2px solid rgba(22, 18, 28, 0.1);
  border-radius: 16px;
  padding: 13px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  animation: answerIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: border-color 0.2s, background 0.2s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}

@keyframes answerIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.answer-btn .a-emoji { font-size: 21px; flex-shrink: 0; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }

.answer-btn:hover {
  border-color: var(--ink);
  background: #fff;
  transform: translateX(6px) scale(1.015);
  box-shadow: 0 8px 22px rgba(22, 18, 28, 0.1);
}

.answer-btn:hover .a-emoji { transform: scale(1.35) rotate(-10deg); }

.answer-btn.picked {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: scale(1.02);
}

/* ─── İsim ekranı ─── */
.name-inner {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}

.name-emoji {
  font-size: 58px;
  animation: crystalFloat 2s ease-in-out infinite;
}

.name-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.name-title .nt-hl {
  background: linear-gradient(100deg, #ff5fa8, #a259ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.name-input {
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(28px, 9vw, 42px);
  font-weight: 800;
  text-align: center;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 4px solid rgba(22, 18, 28, 0.15);
  padding: 8px 12px 14px;
  outline: none;
  caret-color: #ff5fa8;
  transition: border-color 0.25s;
}

.name-input::placeholder { color: rgba(22, 18, 28, 0.22); }

.name-input:focus {
  border-image: linear-gradient(90deg, #ff5fa8, #ff9f45, #2fbf71, #3aa9ff, #a259ff) 1;
  border-image-slice: 0 0 1 0;
  border-bottom-width: 4px;
}

/* ─── Loading ─── */
.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}

.crystal {
  font-size: 78px;
  animation: crystalFloat 1.8s ease-in-out infinite;
  filter: drop-shadow(0 14px 30px rgba(162, 89, 255, 0.45));
}

@keyframes crystalFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg) scale(1); }
  50%      { transform: translateY(-18px) rotate(8deg) scale(1.08); }
}

.loading-text {
  font-family: var(--font-display);
  font-size: clamp(19px, 5vw, 25px);
  font-weight: 700;
  min-height: 1.5em;
}

.loading-text.lt-pop {
  animation: ltPop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes ltPop {
  from { opacity: 0; transform: translateY(14px) scale(0.92); }
  to   { opacity: 1; transform: none; }
}

/* final satır: büyür ve gökkuşağı olur */
.loading-text.lt-final {
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 800;
  background: linear-gradient(100deg, #ff5fa8, #ff9f45 25%, #2fbf71 55%, #3aa9ff 80%, #a259ff);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ltPop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), rainbowShift 2s linear infinite, ltPulse 1s ease-in-out 0.5s infinite;
}

@keyframes ltPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.07); }
}

.loading-bar {
  width: min(300px, 72vw);
  height: 10px;
  border-radius: 999px;
  background: rgba(22, 18, 28, 0.08);
  overflow: hidden;
}

.loading-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--rainbow);
  background-size: 300% 100%;
  animation: loadGrow 3.4s cubic-bezier(0.65, 0, 0.35, 1) forwards, rainbowShift 3s linear infinite;
}

@keyframes loadGrow {
  from { width: 0; }
  to   { width: 100%; }
}

/* ─── Result ─── */
.result-inner {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 3vh;
}

.result-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--m-c1), var(--m-c2));
  box-shadow: 0 30px 70px var(--m-glow);
  text-align: center;
  animation: resultPop 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes resultPop {
  from { opacity: 0; transform: scale(0.85) translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* büyük kapak fotoğrafı — alanı tamamen doldurur */
.result-photo-zone {
  position: relative;
  height: clamp(300px, 72vw, 420px);
  overflow: hidden;
}

.result-photo-zone::before {
  /* kişinin arkasında yumuşak ışık halesi */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 52% at 50% 42%, rgba(255, 255, 255, 0.4), transparent 75%);
}

.result-photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 6%;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25));
  animation: photoZoom 7s ease-in-out infinite alternate;
}

@keyframes photoZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.result-photo-zone .spin-star {
  position: absolute;
  font-size: clamp(24px, 6vw, 36px);
  animation: sparkSpin 3s ease-in-out infinite;
  text-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.result-body {
  background: var(--white);
  border-radius: 26px 26px 0 0;
  margin-top: -22px;
  position: relative;
  padding: 30px clamp(20px, 5vw, 34px) 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.match-chip {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: var(--ink);
  padding: 9px 22px;
  border-radius: 999px;
  margin-top: -52px;
  box-shadow: 0 10px 26px rgba(22, 18, 28, 0.3);
  border: 3px solid #fff;
}

.result-callout {
  font-family: var(--font-display);
  font-size: clamp(16px, 4.6vw, 19px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-top: 4px;
  max-width: 34ch;
}

.result-callout b {
  color: var(--m-c2);
  font-weight: 800;
}

.result-name {
  font-family: var(--font-display);
  font-size: clamp(46px, 13vw, 66px);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.result-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.r-badge {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  border: 2px solid rgba(22, 18, 28, 0.1);
  background: #faf7ff;
  color: var(--ink);
}

.result-title-line {
  font-family: var(--font-display);
  font-size: clamp(17px, 5vw, 20px);
  font-weight: 800;
  color: var(--m-c2);
}

.result-desc {
  color: var(--ink-soft);
  font-size: clamp(15px, 4.2vw, 16.5px);
  line-height: 1.7;
  font-weight: 600;
  max-width: 46ch;
}

.trait-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.trait-chip {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 999px;
  border: 2px solid var(--m-c2);
  color: var(--ink);
  background: color-mix(in srgb, var(--m-c1) 22%, #fff);
}

/* stat bars */
.stats {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 2px dashed color-mix(in srgb, var(--m-c2) 28%, transparent);
}

.stat { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }

.stat-label { width: 118px; text-align: left; color: var(--ink-soft); flex-shrink: 0; }

.stat-bar {
  flex: 1;
  height: 10px;
  background: rgba(22, 18, 28, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--m-c1), var(--m-c2));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

.stat-val { width: 34px; text-align: right; color: var(--m-c2); }

/* ranking */
.rank-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(22, 18, 28, 0.06);
}

.rank-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4px;
}

.rank-row { display: flex; align-items: center; gap: 12px; }

.rank-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(150deg, var(--r-c1), var(--r-c2));
  box-shadow: 0 4px 12px rgba(22, 18, 28, 0.12);
}

.rank-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  transform: scale(1.9);
  transform-origin: 50% 12%;
}

.rank-name { font-weight: 700; font-size: 14.5px; width: 76px; flex-shrink: 0; }

.rank-bar { flex: 1; height: 10px; background: rgba(22, 18, 28, 0.07); border-radius: 999px; overflow: hidden; }

.rank-fill { height: 100%; border-radius: 999px; width: 0; transition: width 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s; }

.rank-pct { font-family: var(--font-display); font-size: 13px; font-weight: 700; width: 44px; text-align: right; }

/* share + actions */
.share-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.btn-share {
  flex: 1;
  min-width: 140px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid rgba(22, 18, 28, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 18px rgba(22, 18, 28, 0.06);
}

.btn-share:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(22, 18, 28, 0.12); }

.btn-share.wa:hover { border-color: #25d366; }
.btn-share.tw:hover { border-color: var(--ink); }
.btn-share.cp:hover { border-color: #a259ff; }

.retry-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
  align-self: center;
}

.retry-link:hover { color: var(--ink); }

/* ─── Galeri — zıt yönlü akan üç kolonlu duvar ─── */
.gallery {
  width: 100%;
  padding: 48px 0 6px;
}

.gallery-wall {
  height: clamp(500px, 90vh, 740px);
  overflow: hidden;
  display: flex;
  gap: 12px;
  padding: 0 12px;
  mask-image: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
}

.gallery-wall:hover .g-col { animation-play-state: paused; }

.g-col {
  flex: 1;
  min-width: 0;
  animation: gUp var(--dur, 48s) linear infinite;
}

.g-col.g-down { animation-name: gDown; }

@keyframes gUp   { to { transform: translateY(-50%); } }
@keyframes gDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }

.g-item {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 10px 26px rgba(22, 18, 28, 0.14);
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.g-item:hover {
  transform: scale(1.05) rotate(-1.5deg);
  box-shadow: 0 18px 40px rgba(22, 18, 28, 0.24);
}

.g-item img { width: 100%; display: block; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 6, 16, 0.88);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  z-index: 80;
  cursor: zoom-out;
}

.lightbox.open { display: flex; animation: lbFade 0.25s ease; }

@keyframes lbFade { from { opacity: 0; } }

.lightbox img {
  max-width: 94vw;
  max-height: 86vh;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  animation: lbPop 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes lbPop {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: none; }
}

.lb-close {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: 22px;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  padding: 10px;
}

/* toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(22, 18, 28, 0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 70;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* confetti canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

/* footer */
.site-footer {
  text-align: center;
  padding: 22px 24px calc(26px + env(safe-area-inset-bottom));
  color: var(--ink-soft);
  font-size: clamp(15px, 4.2vw, 17px);
  font-weight: 700;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

.site-footer .fv-link { font-size: 1em; }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  .marquee-track { animation: none; }
  .hero-line .ltr { opacity: 1; transform: none; }
  .member-cell { opacity: 1; transform: none; }
}

@media (max-width: 400px) {
  .stat-label { width: 98px; font-size: 12px; }
  .rank-name { width: 64px; font-size: 13px; }
}

/* ─── Quiz: mobilde tam ekran deneyim ─── */
@media (max-width: 640px) {
  #screen-quiz { padding: 0; }

  .quiz-inner {
    min-height: 100dvh;
    max-width: none;
    gap: 0;
  }

  .quiz-head {
    padding: max(16px, env(safe-area-inset-top)) 16px 12px;
  }

  .q-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 28px 28px 0 0;
    border: none;
    box-shadow: 0 -14px 44px rgba(22, 18, 28, 0.08);
    padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
    gap: 14px;
  }

  .q-emoji { font-size: 34px; }
  .q-text { font-size: 20px; }

  .answers {
    margin-top: 6px;
    gap: 10px;
  }

  .answer-btn { padding: 12px 14px; }
  .answer-btn .a-emoji { font-size: 19px; }
}
