/* Takı Eşleşmesi — pembe/lila görünüm, kaydırmalı kart destesi. */
:root {
  --zemin: #fdf0f7; --kart: #ffffff; --cizgi: #f1d6e6; --yazi: #2b1830; --soluk: #7a5f78;
  --vurgu: #e84d8a; --vurgu-acik: #ffe3ef; --mor: #8a5cf6; --r: 18px;
  --evet: #e84d8a; --hayir: #6b7280;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh; color: var(--yazi); overflow-x: hidden;
  background: radial-gradient(ellipse at 50% -20%, #f6d3ff, var(--zemin) 55%) fixed var(--zemin);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.sar { max-width: 520px; margin: 0 auto; padding: 14px 16px 28px; position: relative; }
.gizli { display: none !important; }
.soluk { color: var(--soluk); font-weight: 500; }
#konfeti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

.ust { display: flex; justify-content: center; margin-bottom: 10px; }
.hap { text-decoration: none; font-size: 13px; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--cizgi); color: var(--soluk); }
.hap b { color: var(--yazi); }

.giris { text-align: center; padding-top: 8px; }
h1 { font-size: clamp(34px, 10vw, 46px); line-height: 1.05; margin: 8px 0 10px; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--vurgu); }
h2 { font-size: 26px; line-height: 1.2; margin: 8px 0; }
h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; }
.alt { color: var(--soluk); margin: 0 auto 14px; max-width: 430px; }
.not { font-size: 13px; color: var(--soluk); margin: 12px 0 0; }
.not.orta { text-align: center; margin-top: 10px; font-weight: 700; }
.buyuk-emoji { font-size: 56px; line-height: 1; animation: zipla 2.2s ease-in-out infinite; }
@keyframes zipla { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } }

.ornek-kartlar { position: relative; height: 210px; margin: 8px 0 6px; }
.ornek-kartlar img {
  position: absolute; left: 50%; top: 10px; width: 150px; height: 180px; object-fit: cover; border-radius: 18px;
  border: 4px solid #fff; box-shadow: 0 14px 30px -16px #6a2a5a88; background: #f6eaf1;
}
.ornek-kartlar img:nth-child(1) { transform: translateX(-118%) rotate(-12deg); }
.ornek-kartlar img:nth-child(2) { transform: translateX(-50%) translateY(-6px); z-index: 2; animation: sallan 3s ease-in-out infinite; }
.ornek-kartlar img:nth-child(3) { transform: translateX(18%) rotate(12deg); }
@keyframes sallan { 0%, 100% { transform: translateX(-50%) translateY(-6px) rotate(0); } 30% { transform: translateX(-38%) translateY(-6px) rotate(7deg); } 60% { transform: translateX(-62%) translateY(-6px) rotate(-7deg); } }

.etiket { display: block; text-align: left; font-weight: 800; font-size: 15px; margin: 6px 0 6px; }
input {
  width: 100%; padding: 13px 14px; border: 2px solid var(--cizgi); border-radius: 14px; font-size: 17px; font-weight: 700;
  background: #fff8fb; outline: none; display: block;
}
input:focus { border-color: var(--vurgu); }

.hata { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff0e6; color: #8f3b00; font-weight: 700; font-size: 14px; }
.gizlilik { font-size: 13px; color: var(--soluk); background: #fff; border: 1px dashed var(--cizgi); border-radius: 14px; padding: 10px 12px; margin: 14px 0 0; }
.gizlilik code { background: var(--vurgu-acik); padding: 0 4px; border-radius: 4px; }

.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 16px 18px; border: 0; border-radius: var(--r); background: var(--vurgu); color: #fff;
  font-weight: 800; font-size: 17px; text-decoration: none; text-align: center; line-height: 1.2;
  box-shadow: 0 6px 18px -8px var(--vurgu);
}
.dugme:active { transform: scale(.98); }
.dugme.ikincil { background: #fff; color: var(--yazi); border: 1px solid var(--cizgi); box-shadow: none; }
.dugme.wa { background: #1faa59; box-shadow: 0 6px 18px -8px #1faa59; }
.dugmeler { display: grid; gap: 10px; margin-top: 16px; }
.link-kutu { width: 100%; padding: 10px 12px; border: 1px solid var(--cizgi); border-radius: 12px; font-size: 13px; color: var(--soluk); background: #fff; font-weight: 400; }
.geri { background: none; border: 0; color: var(--soluk); font-weight: 700; padding: 8px 0; }

#hazir, #bozuk, #davet { text-align: center; padding-top: 6px; }
.davet-kutu { background: #fff; border: 2px dashed var(--vurgu); border-radius: 24px; padding: 18px 16px 16px; }
.davet-kutu .alt { margin-bottom: 10px; }

/* ---------- oyun ---------- */
#oyun { user-select: none; -webkit-user-select: none; }
.ilerleme { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; color: var(--soluk); margin: 4px 0 12px; }
.cubuk { flex: 1; height: 8px; border-radius: 99px; background: #fff; border: 1px solid var(--cizgi); overflow: hidden; }
.cubuk i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mor), var(--vurgu)); transition: width .3s ease; }
.deste { position: relative; width: min(100%, 380px); margin: 0 auto; aspect-ratio: 4 / 5.3; }
.kart {
  position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--cizgi); box-shadow: 0 18px 40px -22px #6a2a5a99; touch-action: pan-y; will-change: transform;
}
.ust-kart { z-index: 2; cursor: grab; }
.ust-kart:active { cursor: grabbing; }
.alt-kart { transform: scale(.94) translateY(14px); opacity: .85; transition: transform .3s ease, opacity .3s ease; }
.alt-kart.yuksel { transform: none; opacity: 1; }
.kart-foto { position: relative; flex: 1; min-height: 0; background: #f6eaf1; }
.kart-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.damga {
  position: absolute; top: 20px; padding: 8px 14px; border-radius: 12px; font-weight: 900; font-size: 20px; letter-spacing: .04em;
  background: #fffe; opacity: 0; pointer-events: none; border: 3px solid;
}
.evet-d { left: 16px; color: var(--evet); border-color: var(--evet); transform: rotate(-12deg); }
.hayir-d { right: 16px; color: #4b5563; border-color: #4b5563; transform: rotate(12deg); }
.kart.evet-goster .evet-d, .kart.hayir-goster .hayir-d { opacity: 1 !important; }
.kart-bilgi { padding: 12px 16px 14px; display: grid; gap: 2px; }
.kart-ad { font-weight: 800; font-size: 18px; line-height: 1.25; }
.kart-alt { font-size: 13px; color: var(--soluk); }
.ipucu-yazi { text-align: center; color: var(--soluk); font-size: 13px; font-weight: 700; margin: 12px 0 4px; }
.secim-dugmeler { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 6px; }
.yuvarlak {
  width: 74px; height: 74px; border-radius: 50%; border: 0; font-size: 30px; display: grid; place-items: center;
  background: #fff; box-shadow: 0 10px 24px -12px #6a2a5a99; transition: transform .12s ease;
}
.yuvarlak:active { transform: scale(.9); }
.yuvarlak.hayir { border: 2px solid #d9d4dc; }
.yuvarlak.evet { border: 2px solid #f7b5cf; }
.geri-al { background: none; border: 0; color: var(--soluk); font-weight: 800; font-size: 14px; padding: 10px 4px; }
.geri-al:disabled { opacity: .35; cursor: default; }

/* ---------- tarz ---------- */
#tarz, #sonuc { padding-top: 4px; }
.tarz-kutu { text-align: center; background: linear-gradient(160deg, #fff, #ffeef6); border: 2px solid var(--vurgu); border-radius: 24px; padding: 18px 16px 6px; }
.ust-yazi { margin: 0; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mor); }
.tarz-kutu h2 { font-size: clamp(28px, 8vw, 34px); }
.liste-alan { margin-top: 16px; background: #fff; border: 1px solid var(--cizgi); border-radius: 22px; padding: 16px 14px; }
.paylas-kutu { margin-top: 16px; background: #fff; border: 2px dashed var(--vurgu); border-radius: 22px; padding: 16px 14px; }
.paylas-kutu .alt { margin: 0 0 6px; }
.paylas-kutu .dugme { margin-top: 12px; }

.urunler { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.urunler.tek { grid-template-columns: 1fr; }
.urun { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--cizgi); border-radius: 16px; overflow: hidden; background: #fff; }
.urun img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f6eaf1; }
.urun .ad { font-size: 14px; font-weight: 800; padding: 9px 10px 2px; line-height: 1.25; }
.urun .renk { font-size: 12px; color: var(--soluk); padding: 0 10px; }
.urun .git { margin: auto 8px 8px; margin-top: 10px; padding: 11px 4px; white-space: nowrap; border-radius: 12px; background: #f27a1a; color: #fff; font-weight: 800; font-size: 14px; text-align: center; }
.bos { color: var(--soluk); font-weight: 700; margin: 4px 0 0; font-size: 14px; }

/* ---------- sonuç ---------- */
.hikaye-kart {
  text-align: center; color: #fff; border-radius: 28px; padding: 26px 18px 18px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 20% 10%, #ff9ccc, transparent 45%), radial-gradient(circle at 90% 90%, #b18cff, transparent 50%), linear-gradient(160deg, #e84d8a, #8a5cf6);
  box-shadow: 0 20px 40px -22px #6a2a5acc;
}
.hikaye-kart p { margin: 0; }
.hk-isimler { font-weight: 800; font-size: 19px; overflow-wrap: anywhere; }
.hk-yuzde { font-size: clamp(76px, 25vw, 110px); font-weight: 900; line-height: 1; margin: 6px 0 4px !important; letter-spacing: -0.03em; text-shadow: 0 6px 20px #5a1a4a55; }
.hk-satir { font-size: 21px; font-weight: 800; line-height: 1.25; }
.hk-fotolar { display: flex; justify-content: center; gap: 8px; margin: 18px 0 10px; }
.hk-fotolar img { width: 30%; max-width: 120px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 3px solid #fff; background: #fff; }
.hk-fotolar img:nth-child(1) { transform: rotate(-5deg); }
.hk-fotolar img:nth-child(3) { transform: rotate(5deg); }
.hk-alt { font-size: 14px; font-weight: 700; opacity: .95; }
.hk-site { margin-top: 14px !important; font-size: 13px; font-weight: 800; opacity: .85; letter-spacing: .03em; }

.iki-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.liste-alan.kucuk { padding: 12px 10px; }
.liste-alan.kucuk h3 { font-size: 15px; overflow-wrap: anywhere; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini.tek { grid-template-columns: 1fr 1fr; }
.mini-urun { display: block; text-decoration: none; }
.mini-urun img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; background: #f6eaf1; border: 1px solid var(--cizgi); }
.mini-urun .ad { display: block; font-size: 11px; line-height: 1.2; font-weight: 700; color: var(--soluk); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini .bos { grid-column: 1 / -1; }

.imza { text-align: center; font-size: 12px; color: var(--soluk); margin-top: 26px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
