*{
	box-sizing: border-box;
}
body{
	margin:0px;
	background-image:radial-gradient(grey, #2c2c2c);
	display: flex; 
	justify-content: center;
	height: 100vh;
	user-select: none;
	-webkit-user-select: none; /* Safari */
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}
#tahta{
	margin: auto;
	width:90vh;
	height:90vh;
	background: url(../img/zemin.png) no-repeat;
    background-size: 100% 100%;
	padding:5%;
}
#mesaj{
	display:none;
	position:absolute;
	z-index:55;
	left:0;
	right:0;
	top:0;
	bottom:0;
	overflow:hidden;
	background:radial-gradient(circle at 50% 42%, rgba(70,70,70,0.92), rgba(15,15,15,0.95));
	border-radius:14px;
	color:#fff;
	font-family:Tahoma, Arial, sans-serif;
	font-weight:bold;
	text-align:center;
}
/* çark: seçilen dilim okun altına gelene kadar döner */
#cark-alan{
	position:absolute;
	left:50%;
	top:7%;
	width:84%;
	aspect-ratio:1;
	transform:translateX(-50%);
	cursor:pointer;
}
#cark, #cark-isik{
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	border-radius:50%;
}
#cark{
	background:#eee url(../img/cark.jpg?v=1) no-repeat center;
	background-size:100% 100%;
	box-shadow:0 0 0 0.35em #ffd800, 0 0 2em rgba(0,0,0,0.8);
}
#cark-isik{
	background:conic-gradient(from -20deg, rgba(0,0,0,0) 0deg 40deg, rgba(0,0,0,0.62) 40deg 360deg);
	opacity:0;
	transition:opacity .5s;
}
#cark-gobek{
	position:absolute;
	left:50%;
	top:50%;
	width:6%;
	height:6%;
	transform:translate(-50%,-50%);
	border-radius:50%;
	background:radial-gradient(circle at 35% 30%, #fff6b0, #ffd800 45%, #a67c00);
	box-shadow:0 0 0.4em rgba(0,0,0,0.7);
}
#cark-ok{
	position:absolute;
	left:50%;
	top:-4.5%;
	width:9%;
	height:11%;
	transform:translateX(-50%);
	background:linear-gradient(#fff3a0, #ffd800 40%, #c89b00);
	clip-path:polygon(0 0, 100% 0, 50% 100%);
	filter:drop-shadow(0 0.15em 0.2em rgba(0,0,0,0.8));
}
#mesaj.sonuc #cark-isik{
	opacity:1;
}
#mesaj.sonuc #cark-ok{
	animation:ok-vur .5s ease-out;
}
@keyframes ok-vur{
	0%{transform:translateX(-50%) translateY(0);}
	35%{transform:translateX(-50%) translateY(18%);}
	100%{transform:translateX(-50%) translateY(0);}
}
/* sonuç kartı: çark durunca alttan gelir, çarkın alt yarısını örter */
#sonuc{
	position:absolute;
	left:7%;
	right:7%;
	bottom:4%;
	padding:1em 0.8em 1.1em 0.8em;
	background:linear-gradient(rgba(58,58,58,0.97), rgba(24,24,24,0.97));
	border:0.15em solid #ffd800;
	border-radius:1em;
	box-shadow:0 0.4em 1.6em rgba(0,0,0,0.75);
	opacity:0;
	transform:translateY(25%);
	pointer-events:none;
	transition:opacity .45s, transform .45s;
}
#mesaj.sonuc #sonuc{
	opacity:1;
	transform:none;
	pointer-events:auto;
}
#sonuc-baslik{
	font-size:1.05em;
	letter-spacing:0.12em;
	text-transform:uppercase;
	color:#ddd;
}
#sonuc-seviye{
	margin:0.1em 0 0.25em 0;
	font-size:2.9em;
	line-height:1.15;
	color:#ffd800;
	text-shadow:0 0.06em 0 #7a5c00, 0 0.12em 0.3em rgba(0,0,0,0.8);
}
#mesaj.sonuc #sonuc-seviye{
	animation:seviye-gel .6s cubic-bezier(.2,1.6,.4,1) .15s both;
}
@keyframes seviye-gel{
	0%{transform:scale(0.4);opacity:0;}
	100%{transform:scale(1);opacity:1;}
}
#sonuc-baslik.rekor{
	color:#7dff8a;
}
#sonuc-ek{
	margin:-0.2em 0 0.5em 0;
	font-size:0.95em;
	color:#ffe98a;
}
#sonuc-ek:empty{
	display:none;
}
#sonuc-detay{
	margin:-0.3em 0 0.8em 0;
	font-size:0.85em;
	font-weight:normal;
	color:#ccc;
}
/* rekor gönderme kutusu */
#sonuc-gonder{
	margin:0 0 0.7em 0;
	padding:0.55em 0.7em 0.7em 0.7em;
	background:linear-gradient(rgba(255,216,0,0.22), rgba(255,216,0,0.08));
	border:0.15em solid #ffd800;
	border-radius:0.9em;
	box-shadow:0 0 1em rgba(255,216,0,0.3);
}
#gonder-baslik{
	display:flex;
	align-items:center;
	justify-content:center;
	gap:0.4em;
	margin-bottom:0.45em;
	font-size:1.05em;
	color:#ffd800;
}
#gonder-baslik i, #sonuc-tablo i{
	flex:none;
	display:inline-block;
	width:1.25em;
	height:1.25em;
	background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd800' d='M7 3h10v2h3v3a4 4 0 0 1-3.5 3.97A5 5 0 0 1 13 14.9V18h3v2H8v-2h3v-3.1a5 5 0 0 1-3.5-2.93A4 4 0 0 1 4 8V5h3zM6 7v1a2 2 0 0 0 1 1.73V7zm12 0h-1v2.73A2 2 0 0 0 18 8z'/%3E%3C/svg%3E") no-repeat center;
	background-size:contain;
}
#gonder-satir{
	display:flex;
	gap:0.5em;
}
#rekor-isim{
	box-sizing:border-box;
	flex:1 1 auto;
	min-width:0;
	width:6em;
	padding:0.55em 0.8em;
	background:#fff;
	border:0.15em solid #ffd800;
	border-radius:2em;
	font:bold 1.15em Tahoma, Arial, sans-serif;
	color:#222;
	text-align:center;
}
#rekor-isim:focus{
	outline:none;
	box-shadow:0 0 0 0.2em rgba(255,216,0,0.45);
}
#rekor-gonder-btn{
	flex:none;
	padding:0.55em 1.3em;
	background:linear-gradient(#8be896, #2f9e4c);
	border-radius:2em;
	box-shadow:0 0.2em 0 #1d6b33;
	font-size:1.15em;
	color:#fff;
	text-shadow:0 0.06em 0.1em rgba(0,0,0,0.5);
	text-transform:uppercase;
	letter-spacing:0.04em;
	white-space:nowrap;
	cursor:pointer;
	animation:gonder-vurgu 1.6s ease-in-out infinite;
}
#rekor-gonder-btn:active{
	transform:translateY(0.12em);
	box-shadow:0 0.06em 0 #1d6b33;
}
@keyframes gonder-vurgu{
	0%, 100%{filter:brightness(1);}
	50%{filter:brightness(1.18);}
}
#sonuc-tablo{
	display:none;
	margin:0 0 0.8em 0;
	padding:0.5em 1.2em;
	border:0.15em solid #ffd800;
	border-radius:2em;
	color:#ffd800;
	cursor:pointer;
}
#sonuc-tablo i{
	margin-right:0.35em;
	vertical-align:-0.25em;
}
#sonuc-not{
	margin:-0.2em 0 0.7em 0;
	font-size:0.9em;
	font-weight:normal;
	color:#ffe98a;
}
#sonuc-not:empty{
	display:none;
}
#sonuc-not u{
	color:#fff;
	cursor:pointer;
}
#sonuc-bilgi{
	display:flex;
	justify-content:center;
	gap:1em;
	margin-bottom:0.9em;
}
#sonuc-bilgi div{
	min-width:8.5em;
	padding:0.45em 0.6em;
	background:rgba(255,255,255,0.09);
	border-radius:0.6em;
	font-size:0.9em;
	font-weight:normal;
	color:#ccc;
}
#sonuc-bilgi b{
	display:block;
	font-size:1.9em;
	line-height:1.1;
	color:#fff;
}
#sonuc-yeni{
	display:inline-block;
	padding:0.55em 1.8em;
	background:linear-gradient(#ffe45c, #ffc400);
	border-radius:2em;
	box-shadow:0 0.2em 0 #a67c00;
	color:#3a2c00;
	font-size:1.15em;
	cursor:pointer;
}
#sonuc-yeni:active{
	transform:translateY(0.15em);
	box-shadow:0 0.05em 0 #a67c00;
}
#mesaj-kapat{
	position:absolute;
	right:0.5em;
	top:0.5em;
	width:1.7em;
	height:1.7em;
	line-height:1.6em;
	font-size:1.5em;
	font-weight:normal;
	background:rgba(0,0,0,0.45);
	border:1px solid rgba(255,255,255,0.6);
	border-radius:50%;
	cursor:pointer;
}
@media (prefers-reduced-motion: reduce){
	#button-rekor, #rekor-gonder-btn{animation:none;}
	#sonuc, #cark-isik{transition:none;}
	#mesaj.sonuc #sonuc-seviye, #mesaj.sonuc #cark-ok{animation:none;}
}

#oyun{
	width:100%;
	height:100%;
	border:0px solid #888;
	overflow:hidden;
	touch-action:none;
}
#surukle-tas{
	position:fixed;
	z-index:50;
	pointer-events:none;
	background: url(../img/tas.png) no-repeat;
	background-size: 100% 100%;
	border-radius: 50%;
	box-shadow: 0px 0px 10px 2px white;
}
#oyun div{
	margin:1.14%;
	width:12%;
	height:12%;
	border:0px solid #000;
	float:left;
	background-repeat: no-repeat;
    background-size: 100% 100%;
	border-radius: 50%;
}
#dis{
	margin:auto;
	position:relative;
}
#modul{
	display:block;
	width:330px;
	max-width:95vw;
	margin:10px auto;
}
#dugmeler{
	display:flex;
	justify-content:space-between;
	gap:6px;
}
.dugme{
	box-sizing:border-box;
	flex:none;
	width:40px;
	height:40px;
	border:3px solid #dcdcdc;
	border-radius:9px;
	background-repeat:no-repeat;
	background-position:center;
	background-size:66%;
	cursor:pointer;
}
.dugme:active, #button-rekor:active{
	transform:translateY(1px);
}
.dugme.pasif{
	opacity:0.4;
	cursor:default;
}
#button-yeni{
	border:0;
	background-image:url(../img/button-yeni.png);
	background-size:100% 100%;
}
#button-soru{
	border:0;
	background-image:url(../img/button-soru.png);
	background-size:100% 100%;
}
/* rekor tablosu düğmesi: diğerlerinden geniş, altın renkli, yazılı */
#button-rekor{
	box-sizing:border-box;
	flex:1 1 auto;
	display:flex;
	align-items:center;
	justify-content:center;
	gap:5px;
	height:40px;
	padding:0 6px;
	border:3px solid #fff3a0;
	border-radius:9px;
	background:linear-gradient(#ffe45c, #ffb800);
	box-shadow:0 0 10px 1px rgba(255,216,0,0.55);
	font:bold 14px Tahoma, Arial, sans-serif;
	color:#3a2c00;
	white-space:nowrap;
	cursor:pointer;
	animation:rekor-isilti 2.6s ease-in-out infinite;
}
#button-rekor i{
	flex:none;
	width:20px;
	height:20px;
	background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233a2c00' d='M7 3h10v2h3v3a4 4 0 0 1-3.5 3.97A5 5 0 0 1 13 14.9V18h3v2H8v-2h3v-3.1a5 5 0 0 1-3.5-2.93A4 4 0 0 1 4 8V5h3zM6 7v1a2 2 0 0 0 1 1.73V7zm12 0h-1v2.73A2 2 0 0 0 18 8z'/%3E%3C/svg%3E") no-repeat center;
	background-size:contain;
}
/* dar ekran: rekor düğmesi sığsın */
@media (max-width:350px){
	#button-rekor{
		gap:3px;
		padding:0 2px;
		font-size:12px;
	}
	#button-rekor i{
		width:15px;
		height:15px;
	}
}
@keyframes rekor-isilti{
	0%, 100%{box-shadow:0 0 6px 0 rgba(255,216,0,0.35);}
	50%{box-shadow:0 0 14px 3px rgba(255,216,0,0.8);}
}
#button-geri{

	background-color:#f08a24;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M10 4 3 10l7 6v-4h4a3.5 3.5 0 0 1 0 7h-3v3h3a6.5 6.5 0 0 0 0-13h-4z'/%3E%3C/svg%3E");
}
#button-ipucu{
	background-color:#35a853;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2a7 7 0 0 0-4 12.74V17h8v-2.26A7 7 0 0 0 12 2zM9 18.5h6V20a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}
/* ücretsiz ipucu bitince: ödüllü reklam rozeti (2026-10-15) */
#button-ipucu{position:relative;}
#button-ipucu.reklamli::after{
	content:"";
	position:absolute;
	right:-7px;
	top:-7px;
	width:17px;
	height:17px;
	border-radius:50%;
	background:#ffd800 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233a2c00' d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center/70%;
	box-shadow:0 1px 3px rgba(0,0,0,0.6);
}
#button-ses{
	background-color:#3d3d3d;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3 9v6h4l5 4V5L7 9z'/%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' d='M15.5 8.5a5 5 0 0 1 0 7M18 6a8.5 8.5 0 0 1 0 12'/%3E%3C/svg%3E");
}
#button-ses.kapali{
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3 9v6h4l5 4V5L7 9z'/%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' d='M16 9l5 6M21 9l-5 6'/%3E%3C/svg%3E");
}
#bilgi{
	display:flex;
	justify-content:space-around;
	margin-top:7px;
	padding:4px 4px;
	background:#3d3d3d;
	border:2px solid #dcdcdc;
	border-radius:9px;
	font-family:Tahoma, Arial, sans-serif;
	font-size:13px;
	line-height:17px;
	font-weight:bold;
	color:#fff;
	white-space:nowrap;
}
#bilgi b{
	color:#ffcc00;
}
/* kısa ve geniş ekran (yatay telefon): düğmeler ve göstergeler tek satır */
@media (max-height:480px) and (min-width:560px){
	#dugmeler{
		gap:10px;
	}
	#modul{
		display:flex;
		justify-content:center;
		align-items:center;
		gap:14px;
		width:auto;
	}
	#bilgi{
		margin-top:0;
		gap:12px;
		padding:4px 10px;
	}
}
/* küçük yatay telefon (568x320 vb.): tek satır 648 px tutuyordu, sayfa yatay taşıyordu → düğmeler ve göstergeler sıkışır */
@media (max-height:480px) and (min-width:560px) and (max-width:719px){
	#modul{
		gap:8px;
		max-width:calc(100vw - 16px);
	}
	#dugmeler{
		gap:4px;
	}
	.dugme{
		width:34px;
		height:34px;
	}
	#button-rekor{
		height:34px;
		gap:3px;
		padding:0 5px;
		font-size:12px;
	}
	#button-rekor i{
		width:15px;
		height:15px;
	}
	#bilgi{
		gap:4px;
		padding:3px 6px;
		font-size:12px;
	}
}
/* yuva durumları */
#oyun div.secili{
	box-shadow:0 0 10px 2px #fff;
}
#oyun div.hedef{
	box-shadow:0 0 0 2px rgba(160,255,170,0.85), 0 0 13px 4px rgba(150,255,160,0.9);
}
#oyun div.ipucu{
	animation:ipucu-yan .7s ease-in-out infinite alternate;
}
@keyframes ipucu-yan{
	0%{box-shadow:0 0 0 3px rgba(255,216,0,0.35), 0 0 6px 2px rgba(255,216,0,0.3);}
	100%{box-shadow:0 0 0 4px rgba(255,216,0,1), 0 0 16px 6px rgba(255,216,0,0.9);}
}
#oyun div.imlec{
	outline:2px dashed #fff;
	outline-offset:2px;
}
.ucan-tas{
	position:fixed;
	z-index:40;
	pointer-events:none;
	background: url(../img/tas.png) no-repeat;
	background-size: 100% 100%;
	border-radius: 50%;
}
/* yeni oyun onayı */
#onay{
	display:none;
	position:absolute;
	z-index:58;
	left:0;
	right:0;
	top:0;
	bottom:0;
	align-items:center;
	justify-content:center;
	background:rgba(15,15,15,0.72);
	border-radius:14px;
}
#onay-kutu{
	width:min(86%, 320px);
	padding:20px 16px 18px 16px;
	background:linear-gradient(#3e3e3e, #1c1c1c);
	border:2px solid #ffd800;
	border-radius:14px;
	box-shadow:0 6px 24px rgba(0,0,0,0.75);
	font-family:Tahoma, Arial, sans-serif;
	font-weight:bold;
	font-size:18px;
	color:#fff;
	text-align:center;
}
#onay-metin{
	margin-bottom:16px;
	line-height:1.4;
}
#onay-metin small{
	font-size:13px;
	font-weight:normal;
	color:#ccc;
}
.onay-dugme{
	display:inline-block;
	min-width:96px;
	margin:0 6px;
	padding:10px 0;
	background:#666;
	border-radius:22px;
	box-shadow:0 3px 0 #333;
	font-size:16px;
	cursor:pointer;
}
.onay-dugme.evet{
	background:linear-gradient(#ffe45c, #ffc400);
	box-shadow:0 3px 0 #a67c00;
	color:#3a2c00;
}
#bildirim{
	position:absolute;
	z-index:45;
	left:50%;
	bottom:10px;
	max-width:92%;
	transform:translate(-50%, 0);
	padding:8px 14px;
	background:rgba(20,20,20,0.92);
	border:1px solid #ffd800;
	border-radius:18px;
	font-family:Tahoma, Arial, sans-serif;
	font-size:14px;
	font-weight:bold;
	color:#fff;
	width:max-content; /* dar ekranda uzun metin satıra kırılır (nowrap 320 px'te sayfayı yatay taşırıyordu) */
	box-sizing:border-box;
	text-align:center;
	opacity:0;
	pointer-events:none;
	transition:opacity .3s;
}
#bildirim.acik{
	opacity:1;
}
/* yardım: sonuç ekranıyla aynı görünüm; kaydırma yok, çark kalan yüksekliğe sığar */
#yardim{
	display:none;
	position:absolute;
	z-index:60;
	left:0;
	right:0;
	top:0;
	bottom:0;
	overflow:hidden;
	background:radial-gradient(circle at 50% 42%, rgba(70,70,70,0.97), rgba(15,15,15,0.98));
	border-radius:14px;
	color:#eee;
	font-family:Tahoma, Arial, sans-serif;
	font-size:14px;
	line-height:1.35;
}
#yardim-ic{
	position:absolute;
	left:0;
	right:0;
	top:0;
	bottom:0;
	display:flex;
	flex-direction:column;
	padding:1em 1.2em 1.1em 1.2em;
}
#yardim-baslik{
	flex:none;
	margin:0 2.4em 0.5em 2.4em;
	font-size:1.6em;
	font-weight:bold;
	line-height:1.2;
	text-align:center;
	color:#ffd800;
	text-shadow:0 0.06em 0 #7a5c00, 0 0.12em 0.3em rgba(0,0,0,0.8);
}
#yardim-liste{
	flex:none;
	margin:0;
	padding:0.6em 0.8em 0.6em 2em;
	background:rgba(255,255,255,0.08);
	border:0.12em solid rgba(255,216,0,0.55);
	border-radius:0.8em;
}
#yardim-liste li{
	margin:0.18em 0;
}
#yardim-liste li::marker{
	color:#ffd800;
}
#yardim b{
	color:#ffd800;
}
@media (hover:none){
	#yardim-liste li.klavye{display:none;}
}
#yardim-alt{
	flex:none;
	margin:0.7em 0 0.5em 0;
	font-weight:bold;
	letter-spacing:0.06em;
	text-transform:uppercase;
	text-align:center;
	color:#ddd;
}
#yardim-cark-alan{
	flex:1 1 0;
	min-height:0;
	display:flex;
	align-items:center;
	justify-content:center;
	container-type:size;
}
#yardim-cark{
	width:100%;
	height:100%;
	background:url(../img/cark.jpg?v=1) no-repeat center;
	background-size:contain;
}
@supports (width:1cqw){
	#yardim-cark{
		width:min(100cqw, 100cqh);
		height:min(100cqw, 100cqh);
		box-sizing:border-box;
		border:0.3em solid #ffd800;
		border-radius:50%;
		background-color:#eee;
		background-size:cover;
		box-shadow:0 0 1.2em rgba(0,0,0,0.8);
	}
}
#kapat{
	position:absolute;
	right:0.5em;
	top:0.5em;
	width:1.7em;
	height:1.7em;
	line-height:1.6em;
	font-size:1.5em;
	text-align:center;
	color:#fff;
	background:rgba(0,0,0,0.45);
	border:1px solid rgba(255,255,255,0.6);
	border-radius:50%;
	cursor:pointer;
}
/* ortak rekor tablosu (servisin #score-table'ı) bu katmana basılır; tablo kapalıyken katman tıklamaları engellemez */
#rekor-div{
	position:fixed;
	z-index:90;
	left:0;
	top:0;
	width:100%;
	height:100%;
	pointer-events:none;
}
#rekor-div #score-table{
	pointer-events:auto;
}
/* yatay ekranda kapatma düğmesi son dönem düğmesinin üstüne binmesin */
@media (min-aspect-ratio: 1/1){
	#rekor-div #score-buttonlar{
		padding-right:8vh;
	}
}
#score-liste li.benim{
	box-shadow:inset 0 0 0 2px #2f9e4c;
}
#start{
	z-index:99;
	position:absolute;
	left:0px;
	top:0px;
	margin:0px;
	right:0px;
	width: 100%;
	height: 100%;
	background-color:#333;
	text-align:center;
	font-size:22px;
	font-weight:bold;
	color:#fff;
    display: flex;
    justify-content: center;
    height: 100vh;
}
#intro{
	margin:auto;
}
