:root {
	--zemin1: #1f0624;
	--zemin2: #4a0d3c;
	--zemin3: #8a1c4f;
	--pembe: #ff4f81;
	--pembe2: #ff7aa2;
	--acik: #ffe3ec;
	--yazi: #fff5f8;
	--soluk: rgba(255, 235, 242, .72);
	--kart: rgba(255, 255, 255, .075);
	--kart-kenar: rgba(255, 255, 255, .14);
	--altin: #ffcf70;
	--r: 18px;
	--g: clamp(10px, 2.2vmin, 22px);
	--ust: calc(2.3em + var(--g) * 1.2 + 6px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--zemin1); }
body {
	font-family: 'Nunito', system-ui, sans-serif;
	color: var(--yazi);
	font-size: clamp(14px, 1.15vmin + 8px, 19px);
	-webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.gizli { display: none !important; }

#sahne {
	position: fixed; inset: 0;
	background:
		radial-gradient(120% 80% at 50% 0%, rgba(255, 79, 129, .35), transparent 60%),
		radial-gradient(90% 70% at 100% 100%, rgba(138, 28, 79, .55), transparent 60%),
		linear-gradient(160deg, var(--zemin1), var(--zemin2) 55%, #2b0830);
	overflow: hidden;
}

/* süzülen kalpler */
#kalpler { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#kalpler i {
	position: absolute; bottom: -40px; font-style: normal;
	color: var(--pembe); opacity: 0;
	animation: suzul linear infinite;
	filter: blur(.3px);
}
@keyframes suzul {
	0% { transform: translateY(0) translateX(0) rotate(0); opacity: 0; }
	10% { opacity: var(--o, .35); }
	50% { transform: translateY(-55vh) translateX(var(--x, 20px)) rotate(12deg); }
	90% { opacity: var(--o, .35); }
	100% { transform: translateY(-112vh) translateX(0) rotate(-8deg); opacity: 0; }
}

/* üst şerit */
#ust {
	position: absolute; top: 0; left: 0; right: 0; z-index: 5;
	display: flex; align-items: center; justify-content: space-between;
	padding: calc(var(--g) * .6) var(--g);
	pointer-events: none;
}
#ust > * { pointer-events: auto; }
#ust::before {
	content: ""; position: absolute; inset: 0 0 -14px; z-index: -1; pointer-events: none;
	background: linear-gradient(rgba(38, 7, 40, .94), rgba(38, 7, 40, .75) 70%, rgba(38, 7, 40, 0));
	opacity: 0; transition: opacity .25s;
}
#ust.dolu::before { opacity: 1; }
.logo {
	background: none; border: 0; padding: 4px 6px;
	font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.15em; letter-spacing: .02em;
	display: flex; align-items: center; gap: 6px; color: var(--acik);
}
.logo-kalp { font-size: 1.1em; }
body.giriste .logo { visibility: hidden; }
.kare-b {
	width: 2.3em; height: 2.3em; border-radius: 12px;
	background: var(--kart); border: 1px solid var(--kart-kenar);
	display: grid; place-items: center; font-size: 1em;
	backdrop-filter: blur(6px);
}
.kare-b:hover { background: rgba(255, 255, 255, .14); }

/* ekranlar */
.ekran {
	position: absolute; inset: 0;
	overflow-y: auto; overflow-x: hidden;
	padding: var(--ust) var(--g) var(--g);
	opacity: 0; visibility: hidden; transform: translateY(14px);
	transition: opacity .35s ease, transform .35s ease, visibility 0s .35s;
	scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
	-webkit-overflow-scrolling: touch;
}
.ekran.aktif { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease; }

.kart {
	background: var(--kart);
	border: 1px solid var(--kart-kenar);
	border-radius: var(--r);
	padding: var(--g);
	backdrop-filter: blur(10px);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}
.kart-baslik {
	margin: 0 0 .7em; font-family: 'Baloo 2', sans-serif; font-weight: 800;
	font-size: 1.2em; color: var(--acik); display: flex; align-items: center; gap: 8px; line-height: 1.2;
}
.alt-yazi { margin: .2em 0 0; color: var(--soluk); }
.ekran-baslik { margin: 0; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.7em; line-height: 1.15; text-align: center; }

/* düğmeler */
.ana-b {
	position: relative; border: 0; border-radius: 999px;
	padding: .85em 1.6em; width: 100%;
	font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.15em; letter-spacing: .04em;
	color: #fff;
	background: linear-gradient(135deg, #ff6b95, #ff3d6e 55%, #e62a5c);
	box-shadow: 0 10px 26px rgba(255, 61, 110, .45), inset 0 2px 0 rgba(255, 255, 255, .35);
	transition: transform .15s ease, box-shadow .15s ease;
	overflow: hidden;
}
.ana-b::after {
	content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
	animation: parilti 3.2s ease-in-out infinite;
}
@keyframes parilti { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.ana-b:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(255, 61, 110, .55), inset 0 2px 0 rgba(255,255,255,.35); }
.ana-b:active { transform: scale(.97); }
.ana-b.kucuk { width: auto; font-size: 1em; padding: .7em 1.3em; }
.ikinci-b {
	border-radius: 999px; padding: .62em 1.1em;
	background: rgba(255, 255, 255, .1); border: 1px solid var(--kart-kenar);
	font-weight: 800; text-decoration: none; color: var(--yazi);
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.ikinci-b:hover { background: rgba(255, 255, 255, .18); }
.yazi-b { background: none; border: 0; color: var(--pembe2); font-weight: 800; padding: .3em 0; }
.yazi-b.kucuk { font-size: .85em; color: var(--soluk); }
.dugme-satir { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: var(--g); }

/* ---------- giriş ---------- */
.giris-ic { max-width: 440px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: var(--g); }
.giris-baslik { text-align: center; }
.giris-baslik h1 {
	margin: 0; font-family: 'Baloo 2', sans-serif; font-weight: 800;
	font-size: 2.6em; line-height: 1; letter-spacing: .01em;
	background: linear-gradient(180deg, #fff, #ffc2d4); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.giris-kalp { width: min(36vw, 21vh, 190px); margin: 0 auto .7em; }
/* giriş kalbi sakin: yalnız yavaş nefes, halka yok */
.giris-kalp svg { animation: nefesKalp 4s ease-in-out infinite; }
@keyframes nefesKalp { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.giris-kalp .kalp-yuzde { top: 42%; font-size: min(9vw, 5.6vh, 48px); }
.harfler { display: inline-block; letter-spacing: .02em; }
.harfler i { font-style: normal; font-size: .6em; vertical-align: .25em; margin: 0 .12em; color: #ffe3ec; opacity: .9; }
.harfler i.soru { font-size: 1em; vertical-align: 0; margin: 0; }
.harfler.degisti { animation: harfPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes harfPop { from { transform: scale(.4); opacity: 0; } }
@keyframes atis { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
.giris-kart label { display: block; font-weight: 800; font-size: .85em; color: var(--soluk); margin: 0 0 .35em .2em; }
.ad {
	width: 100%; padding: .75em 1em; border-radius: 14px;
	background: rgba(255, 255, 255, .92); color: #3a0d35; border: 2px solid transparent;
	font-weight: 800; font-size: 1.05em; outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.ad::placeholder { color: #b48aa0; font-weight: 600; }
.ad:focus { border-color: var(--pembe); box-shadow: 0 0 0 4px rgba(255, 79, 129, .25); }
.ad.hatali { border-color: #ffb020; animation: salla .4s; }
@keyframes salla { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.ayrac { display: flex; align-items: center; gap: 10px; margin: .55em 0 .35em; color: var(--pembe); }
.ayrac::before, .ayrac::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent); }
.ayrac span { animation: atis 1.4s ease-in-out infinite; display: inline-block; }
.ortak-satir { display: flex; gap: 8px; margin-bottom: 8px; animation: gir .3s ease; }
@keyframes gir { from { opacity: 0; transform: translateY(-6px); } }
.ortak-satir .sil {
	flex: none; width: 2.6em; border-radius: 12px; border: 1px solid var(--kart-kenar);
	background: rgba(255, 255, 255, .08); font-size: 1.1em; color: var(--soluk);
}
#b-ekle { margin-bottom: .5em; }
#hata { min-height: 0; color: #ffd27a; font-weight: 800; font-size: .9em; text-align: center; }
#hata:not(:empty) { margin-bottom: .6em; }
.gizlilik { margin: .8em 0 0; font-size: .8em; text-align: center; color: var(--soluk); }

#gecmis { text-align: center; }
.gecmis-ust { display: flex; justify-content: center; align-items: baseline; gap: 10px; color: var(--soluk); font-weight: 800; font-size: .85em; margin-bottom: 6px; }
#gecmis-liste {
	display: flex; flex-wrap: nowrap; gap: 6px; justify-content: safe center; overflow-x: auto; overflow-y: hidden;
	padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
#gecmis-liste::-webkit-scrollbar { display: none; }
#gecmis-liste .cip { flex: none; white-space: nowrap; }
.cip {
	border: 1px solid var(--kart-kenar); background: var(--kart); border-radius: 999px;
	padding: .35em .8em; font-size: .85em; font-weight: 700; color: var(--yazi);
}
.cip b { color: var(--pembe2); margin-left: 4px; }

/* ---------- kalp ---------- */
.kalp-kutu { position: relative; margin: 0 auto; aspect-ratio: 100 / 92; isolation: isolate; }
.kalp-kutu svg { width: 100%; height: 100%; overflow: visible; display: block; }
.kalp-kutu .cizgi { fill: none; stroke-width: 2.4; }
.kalp-kutu .cizgi-isik { fill: none; stroke: rgba(255, 170, 200, .35); stroke-width: 5.5; }
.kalp-kutu .sivi2 { fill: rgba(255, 150, 185, .5); }
.kalp-kutu .kabarcik { fill: rgba(255, 255, 255, .5); animation: kabar 5s ease-in infinite; animation-duration: 5s !important; }
@keyframes kabar {
	0% { transform: translateY(0); opacity: 0; }
	15% { opacity: .85; }
	85% { opacity: .5; }
	100% { transform: translateY(-92px); opacity: 0; }
}
.kalp-kutu .isilti { fill: rgba(255, 255, 255, .16); animation: suz 8s ease-in-out infinite; }
@keyframes suz { 0%, 55% { transform: translateX(0); } 100% { transform: translateX(170px); } }
.kalp-kutu .parlak2 { fill: rgba(255, 255, 255, .55); }
.halkalar { position: absolute; inset: 0; pointer-events: none; z-index: -1; display: none; }
.kalp-kutu.atiyor .halkalar { display: block; }
.halkalar i {
	position: absolute; left: 50%; top: 46%; width: 80%; aspect-ratio: 1; border-radius: 50%;
	border: 2px solid rgba(255, 110, 150, .4); transform: translate(-50%, -50%) scale(.6); opacity: 0;
	animation: halka 4s ease-out infinite;
}
.halkalar i:nth-child(2) { animation-delay: 2s; }
.halkalar i:nth-child(3) { display: none; }
@keyframes halka { 0% { transform: translate(-50%, -50%) scale(.6); opacity: .45; } 100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; } }
.kalp-kutu.vurdu svg { animation: vurdu .7s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes vurdu { 0% { transform: scale(.82); } 45% { transform: scale(1.12); } 75% { transform: scale(.97); } 100% { transform: scale(1); } }
.flas {
	position: absolute; z-index: 14; pointer-events: none; width: 20px; height: 20px; border-radius: 50%;
	transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 120, 160, .5) 40%, transparent 70%);
	animation: flas .8s ease-out forwards;
}
@keyframes flas { to { width: 160vmax; height: 160vmax; opacity: 0; } }
.kalp-kutu .dalga { animation: dalga 5s linear infinite; }
.kalp-kutu .dalga2 { animation: dalga 7.5s linear infinite reverse; }
@keyframes dalga { from { transform: translateX(0); } to { transform: translateX(-100px); } }
.kalp-kutu .parlak { fill: rgba(255, 255, 255, .35); }
.kalp-yuzde {
	position: absolute; left: 0; right: 0; top: 40%; transform: translateY(-50%);
	text-align: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; line-height: 1;
	text-shadow: 0 3px 12px rgba(80, 0, 30, .55);
}
.kalp-yuzde small { font-size: .55em; vertical-align: .35em; margin-right: 2px; }
.kalp-kutu.atiyor svg { animation: atisSakin 1.5s ease-in-out infinite; }
@keyframes atisSakin { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.04); } 28% { transform: scale(1); } 42% { transform: scale(1.02); } 56% { transform: scale(1); } }
.kalp-kutu::before {
	content: ''; position: absolute; inset: 8% 6% 4%; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 79, 129, .55), transparent 65%);
	filter: blur(18px); z-index: -1; opacity: .8;
}

.ciftad {
	text-align: center; font-family: 'Baloo 2', sans-serif; font-weight: 800;
	font-size: 1.45em; line-height: 1.15; word-break: break-word;
}
.ciftad .k { color: var(--pembe); margin: 0 .3em; display: inline-block; animation: atis 1.2s infinite; }

/* ---------- ölçüm ---------- */
.olcum-ic { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--g) * .8); cursor: pointer; }
.olcum-kalp { width: min(54vmin, 320px); margin: 4vmin auto 2vmin; }
.olcum-kalp .kalp-yuzde { font-size: min(13vmin, 80px); }
#olcum-durum { color: var(--acik); font-weight: 800; min-height: 1.4em; text-align: center; animation: nefes 1.6s ease-in-out infinite; }
@keyframes nefes { 50% { opacity: .55; } }
.gec-ipucu { font-size: .78em; color: var(--soluk); opacity: .7; }

/* ---------- liste ---------- */
.liste-ic { max-width: 620px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: calc(var(--g) * .7); }
#liste { display: flex; flex-direction: column; gap: 6px; padding: calc(var(--g) * .7); }
.liste-satir {
	display: grid; grid-template-columns: 2em 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px;
	width: 100%; text-align: left; background: rgba(255, 255, 255, .05); border: 1px solid transparent; border-radius: 14px;
	padding: .6em .8em; transition: background .2s, border-color .2s;
	opacity: 0; transform: translateX(-10px); animation: kay .45s ease forwards;
}
@keyframes kay { to { opacity: 1; transform: none; } }
.liste-satir:hover { background: rgba(255, 255, 255, .11); border-color: var(--kart-kenar); }
.liste-satir .sira { grid-row: 1 / 3; font-family: 'Baloo 2'; font-weight: 800; font-size: 1.3em; color: var(--soluk); text-align: center; }
.liste-satir:first-child .sira { color: var(--altin); }
.liste-satir .ad-y { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste-satir .yz { font-family: 'Baloo 2'; font-weight: 800; font-size: 1.25em; color: var(--pembe2); }
.liste-satir .cubuk { grid-column: 2 / 4; height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-top: 5px; }
.liste-satir .cubuk i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, var(--pembe2), var(--pembe)); transition: width 1s cubic-bezier(.2, .8, .2, 1); }

/* ---------- sonuç ---------- */
.sonuc-ic {
	max-width: 1120px; margin: 0 auto;
	display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--g);
}
.sonuc-sol { display: flex; flex-direction: column; align-items: center; gap: calc(var(--g) * .8); text-align: center; }
.sonuc-kalp { width: min(70vw, 40vh, 330px); margin: calc(var(--g) * .3) 0; }
.sonuc-kalp .kalp-yuzde { font-size: min(17vw, 10vh, 84px); }
.sonuc-kalp::before { inset: -2% -8% -6%; opacity: 1; filter: blur(26px); }
.sonuc-sol .ciftad { font-size: 1.3em; }
#paylasildi { background: rgba(255, 207, 112, .16); border: 1px solid rgba(255, 207, 112, .45); color: var(--altin); font-weight: 800; padding: .35em .9em; border-radius: 999px; font-size: .85em; }
/* sonuç adı: düğme değil, başlık — dolgusuz, iki yanında süs çizgisi */
#bant {
	display: flex; flex-direction: column; align-items: center; line-height: 1.1;
	animation: zipla .6s cubic-bezier(.3, 1.6, .5, 1) both;
}
#bant small { font-size: .6em; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--soluk); margin-bottom: 1px; }
#bant b {
	display: flex; align-items: center; gap: .5em; white-space: nowrap;
	font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.05em;
	color: #fff; color: color-mix(in srgb, var(--bant, #e2557a) 45%, #fff);
	text-shadow: 0 0 18px var(--bant, #e2557a), 0 2px 0 rgba(0, 0, 0, .25);
}
#bant b::before, #bant b::after { content: ''; width: 1.6em; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--bant, #e2557a)); }
#bant b::after { transform: scaleX(-1); }
#bant i { font-style: normal; text-shadow: none; }
#bant em { font-style: normal; }
@keyframes zipla { from { transform: scale(.4); opacity: 0; } }
.paylas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; opacity: .92; }
.paylas-baslik { font-size: .78em; font-weight: 800; color: var(--soluk); }
.paylas-dugmeler { display: flex; gap: 6px; }
.kucuk-b {
	border-radius: 10px; padding: .38em .7em; font-size: .78em; font-weight: 800; white-space: nowrap;
	background: rgba(255, 255, 255, .1); border: 1px solid var(--kart-kenar); color: var(--yazi);
}
.kucuk-b:hover { background: rgba(255, 255, 255, .18); }
.kucuk-b.wp { background: rgba(37, 211, 102, .18); border-color: rgba(37, 211, 102, .45); }
.ana-dugmeler { display: flex; gap: 8px; justify-content: center; width: 100%; }
.ana-dugmeler .ana-b { min-width: 11em; }
.sonuc-sag { display: flex; flex-direction: column; gap: var(--g); min-width: 0; }
.sonuc-sag > * { flex-shrink: 0; } /* kartlar sütun yüksekliğine sıkışıp kesilmesin (Aşk Doktoru yarım kalıyordu); sütun kayar */
.sonuc-sag > .dugme-satir { margin-top: 0; }

.olcut { margin-bottom: .75em; }
.olcut:last-child { margin-bottom: 0; }
.olcut-ust { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 800; }
.olcut-ust .ik { margin-right: 6px; }
.olcut-ust b { font-family: 'Baloo 2'; font-size: 1.1em; color: var(--acik); }
.olcut .cubuk { height: 10px; border-radius: 9px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-top: 4px; }
.olcut .cubuk i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, #ffb3c8, var(--pembe)); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.olcut.enust .cubuk i { background: linear-gradient(90deg, #ffe39a, var(--altin)); }
.olcut .etiket { font-size: .72em; font-weight: 800; padding: .1em .55em; border-radius: 999px; margin-left: 6px; vertical-align: .15em; }
.olcut.enust .etiket { background: rgba(255, 207, 112, .2); color: var(--altin); }
.olcut.enalt .etiket { background: rgba(255, 255, 255, .12); color: var(--soluk); }

.nasil { margin-top: 1em; font-size: .85em; color: var(--soluk); }
.nasil summary { cursor: pointer; font-weight: 800; color: var(--pembe2); }
.nasil ul { padding-left: 1.2em; margin: .6em 0; }
.nasil li { margin-bottom: .3em; }
.nasil p { margin: .4em 0 0; }

.doktor { position: relative; overflow: hidden; }
.doktor::before { content: '❤'; position: absolute; right: -10px; top: -30px; font-size: 9em; color: rgba(255, 79, 129, .07); pointer-events: none; }
.doktor-ikon { display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: rgba(255, 255, 255, .12); font-size: .9em; }
#yorum p { margin: 0 0 .8em; line-height: 1.6; }
#yorum p:last-child { margin-bottom: 0; }
#yorum p.oneri { background: rgba(255, 79, 129, .12); border-left: 3px solid var(--pembe); padding: .6em .8em; border-radius: 0 12px 12px 0; }
#yorum b { color: var(--acik); }
.uyari { margin: 1em 0 0; font-size: .75em; color: var(--soluk); opacity: .8; }

/* geniş ekran: iki sütun */
@media (min-aspect-ratio: 11/10) and (min-width: 700px), (orientation: landscape) and (max-height: 520px) {
	#ekran-sonuc { overflow: hidden; }
	.sonuc-ic { height: 100%; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: stretch; }
	.sonuc-sol { min-height: 0; overflow-y: auto; justify-content: center; scrollbar-width: none; }
	.sonuc-sol::-webkit-scrollbar { display: none; }
	.sonuc-sag { min-height: 0; overflow-y: auto; padding: 0 6px 26px 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
		-webkit-mask-image: linear-gradient(#000 calc(100% - 30px), transparent); mask-image: linear-gradient(#000 calc(100% - 30px), transparent); }
	.sonuc-kalp { width: min(54vh, 36vw, 400px); }
	.sonuc-kalp .kalp-yuzde { font-size: min(13vh, 9vw, 96px); }
}

/* alçak yatay ekran (telefon yatay): giriş iki sütun */
@media (orientation: landscape) and (max-height: 520px) {
	.giris-kart { padding: 12px 14px; }
	.giris-baslik h1 { font-size: 2.1em; }
	.ad { padding: .5em .8em; }
	.ana-b { padding: .6em 1.2em; }
	.gizlilik { margin-top: .5em; }
	.giris-kart label { margin-bottom: .2em; }
	.ayrac { margin: .3em 0 .15em; }
	.ortak-satir { margin-bottom: 6px; }
	#b-ekle { margin-bottom: .25em; padding: .15em 0; }
	.olcum-kalp { width: min(52vh, 300px); }
	.olcum-kalp .kalp-yuzde { font-size: min(13vh, 84px); }
	.ciftad { font-size: 1.2em; }
	.sonuc-kalp { width: min(38vh, 30vw, 210px); margin: 0; }
	.sonuc-kalp .kalp-yuzde { font-size: min(10vh, 48px); }
	#bant { font-size: .88em; }
	.sonuc-sol { gap: 7px; }
	.sonuc-sol .ciftad { font-size: 1.1em; }
	.ana-dugmeler .ana-b { padding: .5em 1em; }
}

/* dar telefon */
@media (max-width: 380px) {
	.giris-baslik h1 { font-size: 2.2em; }
	.ikinci-b { padding: .55em .85em; font-size: .9em; }
}

/* sonuç kartı önizleme */
#modal {
	position: absolute; inset: 0; z-index: 20; background: rgba(20, 2, 18, .82);
	display: grid; place-items: center; padding: var(--g); backdrop-filter: blur(6px);
	animation: gir .25s ease;
}
.modal-ic { position: relative; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
#kart-resim { max-width: min(92vw, 460px); max-height: calc(100vh - 150px); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); display: block; }
.modal-kapat { position: absolute; top: -12px; right: -12px; z-index: 2; background: #3a0d35; }
.modal-not { margin: .7em 0 0; font-size: .8em; color: var(--soluk); text-align: center; }
.modal-ic .dugme-satir { margin-top: .9em; }

#bildirim {
	position: absolute; left: 50%; bottom: 22px; z-index: 30; transform: translate(-50%, 30px);
	background: #fff; color: #3a0d35; font-weight: 800; padding: .6em 1.2em; border-radius: 999px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: .3s; white-space: nowrap;
}
#bildirim.goster { opacity: 1; transform: translate(-50%, 0); }

/* sonuç sonrası konfeti kalpler */
.patla { position: absolute; z-index: 15; pointer-events: none; color: var(--pembe); transform: translate(-50%, -50%); text-shadow: 0 2px 8px rgba(120, 0, 40, .35); will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	#kalpler { display: none; }
}

/* ---------- arka plan ışıkları ---------- */
#bokeh { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#bokeh i {
	position: absolute; border-radius: 50%; width: 46vmax; height: 46vmax; opacity: .5;
	background: radial-gradient(circle, rgba(255, 79, 129, .38), transparent 62%);
	animation: bokeh 22s ease-in-out infinite alternate;
	will-change: transform;
}
#bokeh i:nth-child(1) { left: -12vmax; top: -10vmax; }
#bokeh i:nth-child(2) { right: -16vmax; top: 18vh; width: 54vmax; height: 54vmax; background: radial-gradient(circle, rgba(190, 60, 210, .3), transparent 62%); animation-duration: 28s; }
#bokeh i:nth-child(3) { left: 20vw; bottom: -24vmax; animation-duration: 25s; animation-delay: -8s; }
#bokeh i:nth-child(4) { left: 55vw; top: -20vmax; width: 30vmax; height: 30vmax; background: radial-gradient(circle, rgba(255, 207, 112, .18), transparent 62%); animation-duration: 19s; }
#bokeh i:nth-child(5) { left: -10vmax; bottom: 5vh; width: 34vmax; height: 34vmax; animation-duration: 31s; animation-delay: -14s; }
@keyframes bokeh { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vw, 4vh) scale(1.12); } 100% { transform: translate(-4vw, -3vh) scale(.95); } }

/* ---------- ekran girişleri ---------- */
@keyframes yukari { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes kalpGir { 0% { opacity: 0; transform: scale(.6) rotate(-6deg); } 60% { opacity: 1; transform: scale(1.06) rotate(2deg); } 100% { transform: none; } }
.ekran.aktif .giris-baslik { animation: yukari .6s ease both; }
.ekran.aktif .giris-kart { animation: yukari .6s .1s ease both; }
.ekran.aktif #gecmis { animation: yukari .6s .2s ease both; }
.ekran.aktif .sonuc-kalp { animation: kalpGir .8s cubic-bezier(.3, 1.3, .5, 1) both; }
.ekran.aktif .sonuc-sol .ciftad { animation: yukari .5s ease both; }
.ekran.aktif .paylas, .ekran.aktif .ana-dugmeler { animation: yukari .5s .35s ease both; }
.ekran.aktif .sonuc-sag > * { animation: yukari .6s ease both; }
.ekran.aktif .sonuc-sag > :nth-child(1) { animation-delay: .15s; }
.ekran.aktif .sonuc-sag > :nth-child(2) { animation-delay: .3s; }
.ekran.aktif .sonuc-sag > :nth-child(3) { animation-delay: .45s; }
.ekran.aktif #yorum p { animation: yukari .6s ease both; }
.ekran.aktif #yorum p:nth-child(1) { animation-delay: .5s; }
.ekran.aktif #yorum p:nth-child(2) { animation-delay: .75s; }
.ekran.aktif #yorum p:nth-child(3) { animation-delay: 1s; }
.ekran.aktif .ekran-baslik { animation: yukari .5s ease both; }

/* ölçüm: isimler iki yandan gelip kalpte buluşur */
#olcum-ad .sol, #olcum-ad .sag { display: inline-block; }
.ekran.aktif #olcum-ad .sol { animation: soldan .7s cubic-bezier(.2, .8, .3, 1) both; }
.ekran.aktif #olcum-ad .sag { animation: sagdan .7s cubic-bezier(.2, .8, .3, 1) both; }
.ekran.aktif #olcum-ad .k { animation: kalpGir .6s .45s both; }
@keyframes soldan { from { opacity: 0; transform: translateX(-40vw); } }
@keyframes sagdan { from { opacity: 0; transform: translateX(40vw); } }

/* bant rozetinde ışık süzmesi */


/* ana düğme: nefes alan parıltı */
#b-test { animation: nefesB 2.4s ease-in-out infinite; }
@keyframes nefesB { 50% { box-shadow: 0 10px 34px rgba(255, 61, 110, .7), 0 0 0 6px rgba(255, 79, 129, .14), inset 0 2px 0 rgba(255, 255, 255, .35); } }

@media (prefers-reduced-motion: reduce) {
	#bokeh i, .kalp-kutu .kabarcik, .kalp-kutu .isilti, .halkalar { animation: none !important; display: none; }
}

/* çok alçak yatay ekran (568x320 vb.): sonuç sol sütunu sığsın */
@media (orientation: landscape) and (max-height: 360px) {
	.sonuc-sol { gap: 4px; }
	.sonuc-kalp { width: min(35vh, 130px); }
	.sonuc-kalp .kalp-yuzde { font-size: min(10vh, 34px); }
	.sonuc-sol { gap: 5px; }
	.sonuc-sol .ciftad { font-size: 1em; }
	#bant small { display: none; }
	#bant { font-size: .82em; }
	.paylas-baslik { display: none; }
	.kucuk-b { padding: .35em .6em; font-size: .78em; }
	.ana-dugmeler .ana-b { padding: .42em .9em; font-size: .9em; min-width: 9em; }
	#paylasildi { font-size: .72em; padding: .2em .7em; }
}

/* geniş/alçak ekranda giriş iki sütun: solda kalp + başlık + son testler, sağda form (800x600'de kaydırma olmasın) */
@media (min-aspect-ratio: 11/10) and (max-height: 760px) {
	.giris-ic {
		max-width: 820px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
		grid-template-areas: "baslik form" "gecmis form"; align-content: center; column-gap: calc(var(--g) * 1.6); row-gap: calc(var(--g) * .8);
	}
	.giris-baslik { grid-area: baslik; align-self: end; }
	.giris-kart { grid-area: form; align-self: center; }
	#gecmis { grid-area: gecmis; align-self: start; min-width: 0; }
	.giris-kalp { width: min(46vh, 30vw, 250px); }
	.giris-kalp .kalp-yuzde { font-size: min(11vh, 7vw, 60px); }
}
@media (min-aspect-ratio: 11/10) and (max-height: 360px) {
	.giris-kalp { width: min(42vh, 130px); margin-bottom: .3em; }
	.giris-baslik h1 { font-size: 1.7em; }
	.giris-baslik .alt-yazi { font-size: .82em; }
	.gizlilik { display: none; }
	.ekran { padding-top: calc(var(--ust) - 8px); }
}
@media (min-aspect-ratio: 11/10) and (max-height: 420px) {
	.gizlilik { display: none; }
	.giris-kart label { font-size: .8em; }
}
/* küçük dik telefon (320x568 vb.): giriş kaydırmasız sığsın */
@media (max-aspect-ratio: 11/10) and (max-height: 680px) {
	.giris-ic { gap: calc(var(--g) * .7); }
	.giris-kalp { width: min(30vw, 15vh, 190px); margin-bottom: .35em; }
	.giris-kalp .kalp-yuzde { font-size: min(8vw, 4.2vh, 40px); }
	.giris-baslik h1 { font-size: 2em; }
	.giris-kart { padding: 12px 14px; }
	.ad { padding: .55em .85em; }
	.ayrac { margin: .35em 0 .2em; }
	.ortak-satir { margin-bottom: 6px; }
	.gizlilik { margin-top: .5em; font-size: .74em; }
	.ana-b { padding: .7em 1.3em; }
}

/* sonuç vitrini: isimler + kalp + sonuç adı bir kartta; paylaşma ve Yeni Test kartın dışında, altta */
.sonuc-vitrin {
	position: relative; width: 100%; max-width: 420px;
	display: flex; flex-direction: column; align-items: center; gap: calc(var(--g) * .45);
	padding: calc(var(--g) * .8) var(--g) calc(var(--g) * .9);
	border-radius: 24px;
	background: radial-gradient(120% 90% at 50% 35%, rgba(255, 79, 129, .22), rgba(255, 255, 255, .05) 70%);
	border: 1px solid rgba(255, 190, 210, .28);
	box-shadow: 0 18px 44px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.sonuc-vitrin #bant {
	align-self: stretch; padding-top: calc(var(--g) * .55);
	border-top: 1px dashed rgba(255, 200, 220, .3);
}
.sonuc-eylem { display: flex; flex-direction: column; align-items: center; gap: calc(var(--g) * .6); width: 100%; }
.sonuc-sol { gap: calc(var(--g) * .9); }
.sonuc-vitrin .sonuc-kalp { margin: 0; }
@media (min-aspect-ratio: 11/10) and (min-width: 700px), (orientation: landscape) and (max-height: 520px) {
	.sonuc-kalp { width: min(46vh, 30vw, 340px); }
	.sonuc-kalp .kalp-yuzde { font-size: min(11vh, 8vw, 84px); }
}
@media (orientation: landscape) and (max-height: 520px) {
	.sonuc-vitrin { padding: 6px 10px 8px; gap: 4px; border-radius: 18px; }
	.sonuc-vitrin #bant { padding-top: 4px; }
	.sonuc-kalp { width: min(30vh, 26vw, 170px); }
	.sonuc-kalp .kalp-yuzde { font-size: min(8.5vh, 40px); }
	.sonuc-eylem { gap: 6px; }
	.sonuc-sol { gap: 8px; }
}
@media (orientation: landscape) and (max-height: 360px) {
	.sonuc-kalp { width: min(27vh, 100px); }
	.sonuc-kalp .kalp-yuzde { font-size: min(8vh, 28px); }
	.sonuc-vitrin .ciftad { font-size: .92em; }
	.sonuc-sol { gap: 6px; }
}
.ekran.aktif .sonuc-vitrin { animation: yukari .5s ease both; }

/* sağ sütun kendi içinde kayarken: "devamı" düğmesi (yalnız görünmeyen içerik varken) */
.sonuc-sag-tut { position: relative; min-width: 0; display: flex; flex-direction: column; gap: var(--g); }
.devam-b {
	position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 3;
	border: 1px solid rgba(255, 200, 220, .45); border-radius: 999px; padding: .5em 1.1em;
	background: linear-gradient(135deg, rgba(120, 20, 70, .95), rgba(70, 10, 50, .95));
	color: #fff; font-weight: 800; font-size: .85em; white-space: nowrap;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .4); backdrop-filter: blur(6px);
	animation: devamGel .35s ease both;
}
.devam-b i { font-style: normal; display: inline-block; animation: devamOk 1.6s ease-in-out infinite; }
.devam-b:hover { background: linear-gradient(135deg, rgba(150, 30, 90, .95), rgba(90, 15, 60, .95)); }
@keyframes devamGel { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes devamOk { 50% { transform: translateY(3px); } }
@media (min-aspect-ratio: 11/10) and (min-width: 700px), (orientation: landscape) and (max-height: 520px) {
	.sonuc-ic { grid-template-rows: minmax(0, 1fr); }
	.sonuc-sag-tut { min-height: 0; height: 100%; overflow: hidden; }
	.sonuc-sag { flex: 1; }
}
