/* ==========================================================================
   YEAPP Kids Code — Ön Yüz Stilleri
   Kart (kapak görseli) + tam ekran overlay (fullscreen modal) mimarisi
   ========================================================================== */

.yeapp-kc-card {
	--yeapp-kc-radius: 18px;
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: var(--yeapp-kc-radius);
	overflow: hidden;
	background: #1c1730;
}

.yeapp-kc-card.yeapp-kc-shadow {
	box-shadow: 0 14px 34px rgba(20, 20, 40, 0.20), 0 2px 6px rgba(20, 20, 40, 0.10);
}

.yeapp-kc-cover-btn {
	all: unset;
	box-sizing: border-box;
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	cursor: pointer;
	border-radius: var(--yeapp-kc-radius);
	overflow: hidden;
	-webkit-tap-highlight-color: transparent;
}

.yeapp-kc-cover-btn:focus-visible {
	outline: 3px solid #95c121;
	outline-offset: -3px;
}

.yeapp-kc-cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .45s ease;
}

.yeapp-kc-cover-btn:hover .yeapp-kc-cover-img,
.yeapp-kc-cover-btn:focus-visible .yeapp-kc-cover-img {
	transform: scale(1.06);
}

.yeapp-kc-cover-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 8, 20, 0) 45%, rgba(10, 8, 20, .55) 78%, rgba(10, 8, 20, .85) 100%);
	pointer-events: none;
}

.yeapp-kc-cover-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(20, 16, 36, 0.72);
	backdrop-filter: blur(3px);
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	padding: 5px 11px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.yeapp-kc-play-circle {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	transform: translate(-50%, -50%) scale(1);
	background: rgba(149, 193, 33, 0.92);
	color: #16260a;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
	transition: transform .25s ease, background-color .25s ease;
}

.yeapp-kc-play-circle svg {
	margin-left: 3px;
}

.yeapp-kc-cover-btn:hover .yeapp-kc-play-circle,
.yeapp-kc-cover-btn:focus-visible .yeapp-kc-play-circle {
	transform: translate(-50%, -50%) scale(1.12);
	background: #a8d631;
}

.yeapp-kc-cover-title {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 12px;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
	line-height: 1.3;
}

/* ==========================================================================
   Tam Ekran Overlay (Fullscreen Modal) — JS tarafından tek seferlik
   (singleton) olarak oluşturulur ve tüm oyun kartları tarafından paylaşılır.
   ========================================================================== */

.yeapp-kc-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	flex-direction: column;
	background: #0d0a18;
}

.yeapp-kc-overlay.yeapp-kc-open {
	display: flex;
}

.yeapp-kc-overlay-bar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	background: #17122a;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yeapp-kc-overlay-title {
	color: #f1ecff;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 700;
	font-size: 14.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.yeapp-kc-overlay-close {
	all: unset;
	box-sizing: border-box;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 13px;
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 999px;
	transition: background-color .2s ease;
}

.yeapp-kc-overlay-close:hover,
.yeapp-kc-overlay-close:focus-visible {
	background: rgba(255, 90, 90, 0.85);
}

.yeapp-kc-overlay-body {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
}

.yeapp-kc-overlay-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	background: #0d0a18;
}

.yeapp-kc-overlay-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0d0a18;
	transition: opacity .3s ease;
	pointer-events: none;
}

.yeapp-kc-overlay-loading.yeapp-kc-hidden {
	opacity: 0;
}

.yeapp-kc-spinner {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 4px solid rgba(255, 255, 255, 0.18);
	border-top-color: #95c121;
	animation: yeapp-kc-spin 0.8s linear infinite;
}

@keyframes yeapp-kc-spin {
	to { transform: rotate(360deg); }
}

body.yeapp-kc-noscroll {
	overflow: hidden !important;
}

/* Erişilebilirlik: yalnızca ekran okuyucular için metin */
.yeapp-kc-cover-btn .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 640px) {
	.yeapp-kc-play-circle {
		width: 52px;
		height: 52px;
	}
	.yeapp-kc-cover-title {
		font-size: 13.5px;
	}
}
