:root {
	--primary-color: #fb3737;
	--secondary-color: #ff0000;
	--accent-color: #000000;
	--success-color: #00ffff;
	--warning-color: #ca8a04;
	--danger-color: #dc2626;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: #f8fafc;
	color: #1a202c;
	line-height: 1.5;
	font-size: 14px;
}

a {
	color: #4f46e5;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container,
.ayba-container {
	max-width: 620px;
	margin: 0 auto;
	position: relative;
	top: -10px;
	background: white;
	min-height: 100vh;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
}

.logo-section {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	min-height: 50px;
}

.logo img,
.logo .custom-logo {
	display: block;
	width: 45px;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
}

.logo a {
	display: block;
	line-height: 0;
}

.site-title {
	font-size: 22px;
	font-weight: 1000;
	color: white;
	white-space: nowrap;
	line-height: 1.1;
	overflow: hidden;
	text-overflow: ellipsis;
}

.menu-toggle {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	cursor: pointer;
	padding: 8px;
	border-radius: 6px;
	flex-shrink: 0;
}

.menu-toggle i {
	font-size: 16px;
}

/* Navigation */
.nav-menu {
	display: flex;
	justify-content: space-between;
	padding: 12px 20px;
	background: white;
	border-bottom: 1px solid #e2e8f0;
	font-size: 12px;
}

.nav-menu.is-open {
	display: flex;
}

.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-decoration: none;
	color: #64748b;
	font-weight: 500;
	padding: 6px 8px;
	border-radius: 6px;
}

.nav-item i {
	font-size: 16px;
}

.nav-item:hover,
.nav-item.active {
	color: var(--primary-color);
	background: #eef2ff;
	font-weight: 600;
}

/* Main */
.main-content {
	padding: 20px;
	background: #f8fafc;
}

.main-title {
	font-size: 24px;
	font-weight: 700;
	color: #1a202c;
	margin-top: -10px;
	margin-bottom: 16px;
	text-align: center;
}

.promo-section {
	background: linear-gradient(135deg, var(--accent-color), var(--success-color));
	padding: 9px 10px;
	border-radius: 10px;
	margin-top: -6px;
	margin-bottom: 14px;
	color: white;
}

.promo-text {
	font-size: 9px;
	line-height: 1.35;
	font-weight: 500;
}

.download-title {
	font-size: 20px;
	font-weight: 700;
	color: #1a202c;
	margin-top: -8px;
	margin-bottom: 16px;
	text-align: center;
}

/* Tabs — each tab is a separate equal block */
.tabs,
.ayba-game-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: -12px;
	margin-bottom: 20px;
	background: transparent;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
}

.tab,
.ayba-tab-block {
	flex: 1 1 calc(50% - 10px);
	min-width: 140px;
	padding: 12px 14px;
	text-align: center;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	border: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #ffffff;
	color: #64748b;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tab.active,
.ayba-tab-block.active {
	background: var(--secondary-color);
	border-color: var(--secondary-color);
	color: white;
}

.tab:not(.active):hover,
.ayba-tab-block:not(.active):hover {
	background: #f8fafc;
	color: #374151;
	border-color: #cbd5e1;
}

@media (max-width: 420px) {
	.tab,
	.ayba-tab-block {
		flex: 1 1 100%;
		min-width: 0;
	}
}

/* Game cards */
.games-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.game-card {
	background: white;
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	gap: 16px;
	position: relative;
	border: 1px solid #e2e8f0;
}

.game-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-color: #cbd5e1;
}

.game-number {
	position: absolute;
	left: -6px;
	top: -6px;
	background: var(--primary-color);
	color: white;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 600;
	z-index: 1;
}

.game-icon {
	width: 50px;
	height: 50px;
	border-radius: 10px;
	flex-shrink: 0;
	overflow: hidden;
	position: relative;
}

.game-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.game-icon-fallback {
	width: 50px;
	height: 50px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 700;
	font-size: 9px;
	text-align: center;
	line-height: 1;
	flex-shrink: 0;
}

.game-info {
	flex: 1;
	min-width: 0;
}

.game-name {
	font-size: 16px;
	font-weight: 600;
	color: #1a202c;
	margin-bottom: 6px;
}

.game-name a,
.game-icon-link {
	color: inherit;
	text-decoration: none;
}

.game-icon-link {
	display: block;
	flex-shrink: 0;
	line-height: 0;
}

.game-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bonus-info,
.withdraw-info {
	font-size: 11px;
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.2;
}

.bonus-info,
.bonus-info i {
	color: var(--secondary-color);
}

.withdraw-info,
.withdraw-info i {
	color: var(--accent-color);
}

.download-btn {
	background: var(--accent-color);
	color: white !important;
	border: none;
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	text-decoration: none !important;
}

.download-btn:hover {
	background: #111827;
	color: white !important;
}

/* Content cards */
.content-card {
	max-width: 100%;
	margin: 24px 0 0;
	padding: 20px;
	background: white;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	color: #1f2937;
}

.section-heading {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.section-subheading {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 16px 0 8px;
}

.content-card p {
	margin-bottom: 12px;
}

.ayba-list {
	list-style: disc;
	padding-left: 1.4rem;
	margin-bottom: 12px;
}

.ayba-list li {
	margin-bottom: 8px;
}

.text-warning {
	color: var(--warning-color);
}

.text-danger {
	color: var(--danger-color);
}

.featured-apps-inline a {
	color: #4f46e5;
	text-decoration: underline;
	font-weight: 500;
	text-underline-offset: 3px;
}

.keyword-cloud {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 15px 10px;
	background: #f8fafc;
	border: 1px dashed #cbd5f5;
	border-radius: 8px;
	-webkit-overflow-scrolling: touch;
}

.query-badge {
	display: inline-block;
	padding: 6px 12px;
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
	color: white;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	flex-shrink: 0;
	box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.single-game-header {
	display: flex;
	gap: 16px;
	align-items: center;
}

.single-game-header .game-icon,
.single-game-header .game-icon-fallback {
	width: 72px;
	height: 72px;
	font-size: 14px;
}

.single-game-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 8px;
	text-align: left;
	color: #1a202c;
}

.single-game-back {
	margin-bottom: 12px;
	font-size: 13px;
}

.single-game-back a {
	color: #64748b;
	text-decoration: none;
}

.single-game-cat {
	margin-top: 6px;
	font-size: 12px;
	color: #64748b;
}

.single-game-actions {
	margin: 18px 0;
}

.download-btn-lg {
	padding: 12px 20px;
	font-size: 15px;
}

.single-game-body h3 {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 18px 0 8px;
}

.single-game-body ol.ayba-list {
	list-style: decimal;
	padding-left: 1.4rem;
	margin-bottom: 12px;
}

.related-games {
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid #e2e8f0;
}

/* Footer + friend links */
.ayba-footer {
	padding: 20px;
	background: #fff;
	border-top: 1px solid #e2e8f0;
	text-align: center;
}

.footer-tagline {
	font-size: 12px;
	color: #475569;
	margin-bottom: 16px;
	line-height: 1.4;
}

.friend-links-section {
	margin: 16px 0;
	text-align: left;
}

.friend-links-title {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 10px;
	text-align: center;
}

.friend-links-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.friend-link {
	display: inline-block;
	padding: 6px 12px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	color: #334155;
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
}

.friend-link:hover {
	background: #eef2ff;
	color: #4f46e5;
	border-color: #c7d2fe;
}

.footer-copy {
	font-size: 12px;
	color: #94a3b8;
	margin-top: 12px;
}

/* Floating buttons — transparent block, right side, vertically centered */
.ayba-float-stack {
	position: fixed;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	pointer-events: none;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none;
	border: none;
	padding: 0;
	margin: 0;
}

.ayba-float-stack.is-closed {
	display: none !important;
}

.ayba-float-close {
	pointer-events: auto;
	width: 22px;
	height: 22px;
	border: none;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.55);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ayba-float-close:hover {
	background: rgba(15, 23, 42, 0.8);
}

.ayba-float-close span {
	display: block;
	margin-top: -1px;
}

.ayba-float-item {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
	line-height: 1;
	overflow: hidden;
	color: #fff;
	flex-shrink: 0;
	background: transparent;
}

.ayba-float-item.ayba-float-has-image {
	background: transparent !important;
	box-shadow: none;
	padding: 0 !important;
}

.ayba-float-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ayba-float-text {
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	line-height: 1;
	padding: 0 4px;
	white-space: nowrap;
}

.ayba-float-circle {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	padding: 0;
}

.ayba-float-circle img {
	border-radius: 50%;
}

.ayba-float-pill {
	min-width: 52px;
	height: 34px;
	padding: 0 14px;
	border-radius: 999px;
}

.ayba-float-pill.ayba-float-has-image {
	width: 56px;
	height: 56px;
	min-width: 56px;
	padding: 0 !important;
	border-radius: 50%;
}

.ayba-float-pill img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ayba-float-square {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	padding: 0;
}

/* Legacy selectors kept hidden if old markup cached */
.seo-score,
#telegram-float {
	display: none !important;
}

.empty-state {
	text-align: center;
	padding: 40px 20px;
	color: #6b7280;
}

.empty-state i {
	font-size: 48px;
	margin-bottom: 15px;
	opacity: 0.5;
}

/* Large screens keep mobile composition centered */
@media (min-width: 621px) {
	body {
		background: #e2e8f0;
	}

	.container,
	.ayba-container {
		max-width: 620px;
	}
}

/* Mobile refinements */
@media (max-width: 620px) {
	.container,
	.ayba-container {
		max-width: 100%;
		box-shadow: none;
		top: 0;
	}

	.header {
		padding: 14px 16px;
	}

	.site-title {
		font-size: 14px;
	}

	.nav-menu {
		padding: 10px 16px;
		font-size: 11px;
	}

	.nav-item {
		padding: 4px 6px;
	}

	.nav-item i {
		font-size: 14px;
	}

	.main-content {
		padding: 16px;
	}

	.main-title {
		font-size: 22px;
	}

	.game-card {
		padding: 14px;
		gap: 14px;
	}

	.game-icon,
	.game-icon-fallback {
		width: 45px;
		height: 45px;
	}

	.game-name {
		font-size: 15px;
	}

	.bonus-info,
	.withdraw-info {
		font-size: 10px;
		gap: 4px;
	}

	.download-btn {
		padding: 8px 14px;
		font-size: 12px;
	}
}

@media (max-width: 380px) {
	.download-btn span,
	.download-btn {
		padding: 8px 10px;
	}

	.game-card {
		gap: 10px;
	}
}

.nav-item:focus,
.download-btn:focus,
.tab:focus,
.menu-toggle:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track {
	background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 3px;
}

/* Hide Archives / Categories / Friend Links / default blog widgets on all pages */
.widget_archive,
.widget_categories,
.widget_calendar,
.widget_tag_cloud,
.widget_meta,
.widget_recent_entries,
.widget_recent_comments,
.wp-block-archives,
.wp-block-categories,
.wp-block-calendar,
.wp-block-latest-posts,
.wp-block-latest-comments,
.wp-block-tag-cloud,
.friend-links-section,
.friend-links-title,
.friend-links-list,
.ayba-widget,
.ayba-widget-title,
.sidebar,
#secondary,
.widget-area {
	display: none !important;
}
