*{
	box-sizing:border-box;
	user-select: none;
}
body{
	overflow:hidden;
 	background-image: url('../img/back.png'),radial-gradient(#221717,#221717);
	background-repeat: no-repeat;
	background-position: center;
	background-size:100% auto;
	margin:0px;
	width:100vw;
	height:100vh;
}
.disk{
	display:none;
	position:absolute;
	top:0;
	left:0;
	height:20px;
	width:100px;
	z-index:99;
	transition: all 0s;
	border-radius:2.5vh;
	background-repeat: no-repeat;
	background-position: center;
	background-size:100% auto ;
}
#disk-1{
	background-image:url("../img/hanoi-back.png"), linear-gradient(to right, #e02429,#ff5054,#e02429);
	border:2px solid #800001;	
}
#disk-2{
	background-image:url("../img/hanoi-back.png"), linear-gradient(to right, #3fa2c6,#68c5e7,#3fa2c6);
	border:2px solid #095777;	
}
#disk-3{
	background-image:url("../img/hanoi-back.png"), linear-gradient(to right, #c73fa6,#e767c7,#c73fa6);
	border:2px solid #77095b;	
}
#disk-4{
	background-image:url("../img/hanoi-back.png"), linear-gradient(to right, #c7963f,#e7b967,#c7963f);
	border:2px solid #775109;	
}
#disk-5{
	background-image:url("../img/hanoi-back.png"), linear-gradient(to right, #63c73f,#88e767,#63c73f);
	border:2px solid #247709;	
}
#disk-6{
	background-image:url("../img/hanoi-back.png"), linear-gradient(to right, #828282,#a6a6a6,#828282);
	border:2px solid #404040;		
}
#disk-7{
	background-image:url("../img/hanoi-back.png"), linear-gradient(to right, #de2794,#fc50b5,#de2794);
	border:2px solid #80004a;	
}
#disk-8{
	background-image:url("../img/hanoi-back.png"), linear-gradient(to right, #1c52e9,#4d7bff,#1c52e9);
	border:2px solid #001f80;	
}
#game-border{
	border:0px solid #666;
	position: absolute;
	width:80vw;
	height:50vh;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align:center;
	touch-action:none;
	-webkit-tap-highlight-color: transparent;
}
.area{
	display:inline-block;
	width:30%;
	height:90%;
	background-repeat: no-repeat;
	background-position: bottom;
	background-size:100% auto ;
	border-radius:14px;
	transition: background-color 0.15s;
}
/* taşınan/seçilen disk için kule vurguları */
.area.legal{
	background-color: rgba(120, 230, 120, 0.10);
}
.area.hover-ok{
	background-color: rgba(120, 230, 120, 0.28);
}
.area.hover-no, .area.flash-no{
	background-color: rgba(240, 70, 70, 0.30);
}
/* ipucu: hedef kule yanıp söner */
.area.hint{
	animation: ipucu 0.7s ease-in-out 3;
	background-color: rgba(255, 220, 90, 0.22);
}
@keyframes ipucu{
	50%{ background-color: rgba(255, 220, 90, 0.45); }
}
.disk.secili{
	box-shadow: 0 0 0 2px #fff, 0 0 14px 4px rgba(255, 236, 140, 0.85);
}
#board{
	display:block;
	background-image:url("../img/bottom.png");
	background-repeat: no-repeat;
	background-position: bottom;
	background-size:100% auto ;
	border:0px solid #f00;
}
.tower{
	display:inline-block;
	width:18%;
	height:99%;
	background-image:url("../img/stick.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size:100% 100%;
	pointer-events: none;
}

#hamle-div{
	background-color: rgba(0, 0, 0, 0.6);;
	position:absolute;
	bottom:0px;
	width:100%;
	height:10vh;
	font-size:5vh;
	line-height:10vh;
	font-family: 'Bebas Neue', cursive;
	color:#ddd;
	display:flex;
	justify-content:space-around;
	align-items:center;
	white-space:nowrap;
	overflow:hidden;
}
#hamle-div > span{
	padding:0 0.3em;
}
#hamle-div > span > span{
	color:#fff;
}
#rekor{
	color:#ffd54a !important;
}
/* ses aç/kapat simgesi (alt çubukta) */
#ses{
	cursor:pointer;
	color:#ddd;
	line-height:0;
	/* parmakla rahat basılsın */
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-width:44px;
	min-height:min(44px, 10vh); /* 2026-11-07: alt çubuk 10vh; kısa yatay ekranda 44px simgeyi kesiyordu */
}
#ses svg{
	width:1.3em;
	height:1.3em;
}
#ses.kapali{
	color:#777;
}
#menu{
	top:0px;
	width:100%;
	height:10vh;
	padding:5px;
	font-family: 'Bebas Neue', cursive;
	color:#ddd;
}
#button-new{
	background-image:url("../img/button-new-bos.png");
	cursor:pointer;
}
#button-back{
	background-image:url("../img/button-back-bos.png");
	cursor:pointer;
}
#button-solve{
	background-image:url("../img/button-solve-bos.png");
	cursor:pointer;
}
#button-disc{
	background-image:url("../img/button-disc-bos.png");
	cursor:pointer;
}
#button-hint{
	background-image:url("../img/button-hint.png");
	cursor:pointer;
}
#button-speed{
	background-image:url("../img/button-speed.png?v=2");
	cursor:pointer;
}
/* buton yazıları: zemin resimleri yazısız, yazı metin (eski resimlerdeki yazıya benzer yazı tipi) */
.button-text{
	font-family: 'Russo One', sans-serif;
	color: rgba(0, 0, 0, 0.72);
	vertical-align: top;
	white-space: nowrap;
}
/* o an kullanılamayan buton */
.button.pasif{
	opacity:0.4;
	filter:grayscale(0.6);
	cursor:default;
}
/* Disk butonundaki aşağı ok */
.ok-asagi{
	display:inline-block;
	width:0.32em;
	height:0.32em;
	margin-left:0.35em;
	border-right:0.12em solid currentColor;
	border-bottom:0.12em solid currentColor;
	transform: translateY(-0.2em) rotate(45deg);
}
.button{
	background-repeat: no-repeat;
	background-position: center;
	background-size:contain;
	display:inline-block;
}
#discC{
}
#disc-sec{
	position:absolute;
	display:none;
	width:15%;
	z-index:100000;
	/* açılır menü, altındaki butonların ve kulelerin üstünde koyu bir panel olarak görünsün */
	background-color: rgba(24, 16, 16, 0.94);
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
	padding: 3px 0;
}
#disc-sec div{
	cursor:pointer;
	background-repeat: no-repeat;
	background-position: center;
	background-size:contain;
	margin:auto;
}
#disc-sec-3{
	background-image:url("../img/disc-sec-bos-3.png");
}
#disc-sec-4{
	background-image:url("../img/disc-sec-bos-4.png");
}
#disc-sec-5{
	background-image:url("../img/disc-sec-bos-5.png");
}
#disc-sec-6{
	background-image:url("../img/disc-sec-bos-6.png");
}
#disc-sec-7{
	background-image:url("../img/disc-sec-bos-7.png");
}
#disc-sec-8{
	background-image:url("../img/disc-sec-bos-8.png");
}
#message{
	position: absolute;
	display:none;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color:#452005;
	border:2px solid #7a3607;
	border-radius:0.5vw;
	background: URL("../img/message-back.png");
	background-size: 100% auto;
	background-repeat: no-repeat;
	background-position: center;
	text-align:center;
	z-index:99;
}
#message-title{
	font-family: 'Bebas Neue', cursive;
	font-weight:bold;
	white-space:nowrap;
}
#message-title .yildiz{
	color:#e8a800;
	text-shadow: 0 0 2px #7a3607;
	letter-spacing:0.1em;
	font-size:1.3em;
	vertical-align:middle;
}
#message-title .bos{
	color:rgba(69, 32, 5, 0.25);
	text-shadow:none;
}
#message-title .yeni-rekor{
	color:#c62828;
	margin-left:0.4em;
}
#message-title .not{
	color:rgba(69, 32, 5, 0.6);
	margin-left:0.4em;
}
#message-message{
	margin:auto;
	width:90%;
	font-family: 'Bebas Neue', cursive;
	font-weight:bold;
}
#message .close{
	font-family: 'Bebas Neue', cursive;
	position: absolute;
	background: URL("../img/message-close.png");
	background-size: 100%;
	background-repeat: no-repeat;
	background-position: center;
	cursor:pointer;
}
#message .ok{
	font-family: 'Bebas Neue', cursive;
	font-weight:bold;
	position: absolute;
	background: #e0fe06;
	cursor:pointer;
	border:2px solid #7a3607;
	border-radius:0.5vw;
}
#message .cancel{
	font-family: 'Bebas Neue', cursive;
	font-weight:bold;
	position: absolute;
	background: #ff7007;
	cursor:pointer;
	border:2px solid #7a3607;
	border-radius:0.5vw;
}

/* Portrait */
@media (max-aspect-ratio: 1/1) {
	#message{
		--u: min(1vw, 5.2px);
		width:calc(var(--u) * 86);
		height:calc(var(--u) * 50);
		background-size: 100% 100%;
	}
	#message-title{
		width:auto;
		height:calc(var(--u) * 5);
		line-height:calc(var(--u) * 5);
		font-size:calc(var(--u) * 5);
		margin:calc(var(--u) * 3) auto;
	}
	#message-message{
		font-size:calc(var(--u) * 5.2);
		line-height:calc(var(--u) * 6.4);
	}
	#message .close{
		width:calc(var(--u) * 9);
		height:calc(var(--u) * 9);
		top:calc(var(--u) * 2);
		right:calc(var(--u) * 2);
	}
	#message .ok{
		width:calc(var(--u) * 28);
		height:calc(var(--u) * 12);
		line-height:calc(var(--u) * 12);
		font-size:calc(var(--u) * 6);
		bottom:calc(var(--u) * 4);
		left:calc(var(--u) * 10);
	}
	#message .cancel{
		width:calc(var(--u) * 28);
		height:calc(var(--u) * 12);
		line-height:calc(var(--u) * 12);
		font-size:calc(var(--u) * 6);
		bottom:calc(var(--u) * 4);
		right:calc(var(--u) * 10);
	}
}
/* Landscape */
@media (min-aspect-ratio: 1/1) {
	#message{
		width:30vw;
		height:14.4vw;
	}
	#message-title{
		width:auto;
		height:2vw;
		line-height:2vw;
		font-size:2vw;
		margin:0.5vw auto 1vw auto;
	}
	#message-message{
		font-size:2vw;
		line-height:2.7vw;
	}
	#message .close{
		width:2.5vw;
		height:2.5vw;
		top:0.5vw;
		right:0.5vw;
	}
	#message .ok{
		width:7vw;
		height:3.5vw;
		line-height:3.5vw;
		font-size:2vw;
		bottom:1vw;
		left:4.5vw;
	}
	#message .cancel{
		width:7vw;
		height:3.5vw;
		line-height:3.5vw;
		font-size:2vw;
		bottom:1vw;
		right:4.5vw;
	}
}