/* Arkadaşlık Uyum Testi — açık, tatlı görünüm. --a / --b sonuç seviyesine göre JS ile değişir. */
:root {
  --zemin: #f6f0ff; --kart: #ffffff; --cizgi: #e4dbf3; --yazi: #251c33; --soluk: #74688a;
  --vurgu: #8b46d9; --a: #8b46d9; --b: #ff8fb8; --r: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh; color: var(--yazi);
  background: radial-gradient(ellipse at 50% -20%, #ffe0ee, 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; }
.gizli { display: none !important; }
.soluk { color: var(--soluk); font-weight: 500; }

.ust { display: flex; justify-content: center; margin-bottom: 14px; }
.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, #davet, #hazir { text-align: center; padding-top: 6px; }
.giris-emoji { display: flex; justify-content: center; gap: 12px; font-size: 44px; margin: 14px 0 6px; }
.giris-emoji span { animation: zipla 2.4s ease-in-out infinite; }
.giris-emoji span:nth-child(2) { animation-delay: .25s; } .giris-emoji span:nth-child(3) { animation-delay: .5s; }
@keyframes zipla { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } }
h1 { font-size: clamp(32px, 9.4vw, 44px); line-height: 1.04; margin: 6px 0 10px; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--vurgu); }
.alt { color: var(--soluk); margin: 0 auto 18px; max-width: 400px; }
.not { font-size: 13px; color: var(--soluk); margin-top: 12px; }
.not a { color: var(--vurgu); font-weight: 700; }

.ad-form { display: grid; gap: 8px; text-align: left; background: #fff; border: 1px solid var(--cizgi); border-radius: 22px; padding: 16px; }
.ad-form label { font-weight: 800; font-size: 14px; }
.ad-form input { width: 100%; padding: 14px 14px; border: 2px solid var(--cizgi); border-radius: 14px; font-size: 18px; font-weight: 700; background: #fbf9ff; outline: none; }
.ad-form input:focus { border-color: var(--vurgu); }
.ad-form .dugme { margin-top: 6px; }

.davet-kutu, .hazir-kutu { background: #fff; border: 2px dashed var(--vurgu); border-radius: 24px; padding: 18px 16px 4px; margin-bottom: 14px; }
.davet-emoji { font-size: 56px; line-height: 1; }
.davet-kutu h1 { font-size: clamp(28px, 8.4vw, 38px); }
.hazir-kutu h2 { margin: 8px 0 8px; font-size: 28px; }

.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; }

/* sorular */
.ilerleme { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; color: var(--soluk); }
.cubuk { flex: 1; height: 8px; border-radius: 8px; background: #ebe2f7; overflow: hidden; }
.cubuk i { display: block; height: 100%; width: 0; background: var(--vurgu); border-radius: 8px; transition: width .3s; }
.cift { display: inline-block; margin: 16px 0 0; padding: 5px 12px; border-radius: 99px; background: #fff3c4; color: #8a6200; font-weight: 800; font-size: 13px; }
h2 { font-size: clamp(25px, 7.4vw, 32px); line-height: 1.12; margin: 16px 0 16px; letter-spacing: -0.01em; }
.secenekler { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.secenek {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 128px;
  padding: 14px 8px; background: #fff; border: 2px solid var(--cizgi); border-radius: 18px;
  font-weight: 800; font-size: 15px; line-height: 1.2; text-align: center;
  transition: transform .1s, border-color .15s; animation: gel .3s both;
}
.secenek i { font-style: normal; font-size: 46px; line-height: 1; }
.secenek:hover { border-color: var(--vurgu); }
.secenek.secili { border-color: var(--vurgu); background: #f3eaff; transform: scale(.97); }
@keyframes gel { from { opacity: 0; transform: translateY(8px); } }
.secenek:nth-child(2) { animation-delay: .05s; } .secenek:nth-child(3) { animation-delay: .1s; } .secenek:nth-child(4) { animation-delay: .15s; }
.geri { margin-top: 14px; background: none; border: 0; color: var(--soluk); font-weight: 700; padding: 8px 0; }

/* sonuç kartı: ekran görüntüsüne uygun, 4:5'e yakın */
.sonuc-kart {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  border-radius: 28px; padding: 26px 22px 22px; min-height: min(118vw, 600px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--b), var(--a));
  box-shadow: 0 20px 40px -20px var(--a); animation: belir .5s both;
}
.sonuc-kart::before, .sonuc-kart::after { content: ""; position: absolute; border-radius: 50%; background: #ffffff22; }
.sonuc-kart::before { width: 260px; height: 260px; top: -90px; right: -80px; }
.sonuc-kart::after { width: 180px; height: 180px; bottom: -70px; left: -60px; }
@keyframes belir { from { opacity: 0; transform: scale(.94); } }
.kart-ust { position: relative; font-size: 16px; font-weight: 800; background: #ffffff2e; padding: 7px 16px; border-radius: 99px; max-width: 100%; overflow-wrap: anywhere; }
.kart-yuzde { position: relative; display: flex; align-items: flex-start; justify-content: center; margin: 14px 0 0; line-height: .9; text-shadow: 0 4px 16px #0002; }
.kart-yuzde span { font-size: 48px; font-weight: 900; margin-top: 14px; opacity: .9; }
.kart-yuzde b { font-size: clamp(110px, 34vw, 150px); font-weight: 900; letter-spacing: -0.04em; }
.kart-unvan { position: relative; font-size: clamp(28px, 8.6vw, 38px); font-weight: 900; line-height: 1.05; margin-top: 10px; text-shadow: 0 2px 10px #0002; }
.kart-yazi { position: relative; font-size: 17px; line-height: 1.45; margin: 12px 0 14px; max-width: 400px; font-weight: 600; }
.kart-dogru { position: relative; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.kart-dogru span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: #ffffff38; }
.kart-dogru span.evet { background: #fff; }
.kart-alt { position: relative; margin-top: 20px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; opacity: .95; }
.kart-alt b { font-size: 19px; letter-spacing: .02em; }

.cevaplar { margin-top: 16px; background: #fff; border: 1px solid var(--cizgi); border-radius: 18px; padding: 12px 16px; }
.cevaplar summary { font-weight: 800; cursor: pointer; }
.cevaplar ol { margin: 10px 0 2px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.cevaplar li b { display: block; }
.cevaplar li span { color: var(--soluk); }

/* öneri */
.oneri { margin-top: 22px; background: #fff; border: 1px solid var(--cizgi); border-radius: 22px; padding: 18px 16px; }
.oneri h3 { margin: 0 0 4px; font-size: 20px; }
.oneri-alt { margin: 0 0 14px; color: var(--soluk); font-size: 15px; }
.urunler { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.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: 4 / 5; object-fit: cover; display: block; background: #f3eef8; }
.urun .ad { font-size: 14px; font-weight: 800; padding: 10px 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: 10px 4px; white-space: nowrap; border-radius: 12px; background: #f27a1a; color: #fff; font-weight: 800; font-size: 14px; text-align: center; }
.urun .kim { font-size: 12px; font-weight: 800; color: var(--vurgu); padding: 8px 10px 0; }

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

#bildirim { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px); opacity: 0; transition: .25s; background: var(--yazi); color: #fff; padding: 10px 16px; border-radius: 99px; font-weight: 700; z-index: 9; pointer-events: none; }
#bildirim.acik { opacity: 1; transform: translate(-50%, 0); }
