/* NEXT DRAWS / LNAC NEXT DRAWS / LNAC NEXT EXTRA DRAWS */
.games-section {
	padding: 60px 0;
}

.games-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.games-loading {
	grid-column: 1 / -1;
	text-align: center;
	padding: 2rem;
	color: #888;
	font-size: 1rem;
}

.game-card {
	border-radius: var(--border-radius);
	padding: 0;
	color: var(--white);
	position: relative;
	box-shadow: var(--shadow);
	transition: var(--transition);
	display: flex;
	flex-direction: row;
	overflow: hidden;
	text-align: left;
	min-height: 140px;
}

.game-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
}

.badge-hoy {
	position: absolute;
	top: 12px;
	right: -32px;
	background-color: #ff3b30;
	color: white;
	padding: 4px 36px;
	font-size: 0.7rem;
	font-weight: 800;
	transform: rotate(45deg);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	z-index: 2;
	letter-spacing: 1px;
}

.card-logo-area {
	flex-shrink: 0;
	width: 130px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(255, 255, 255, 0.12);
}

.game-logo-img {
	width: 100%;
	height: auto;
	max-height: 90px;
	object-fit: contain;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.card-info-area {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 16px 18px;
	gap: 8px;
}

.card-info-top {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.game-name {
	font-size: 1rem;
	font-weight: 800;
	margin-bottom: 0;
	text-transform: uppercase;
	line-height: 1.2;
}

.game-date {
	font-size: 0.72rem;
	opacity: 0.85;
	margin-bottom: 0;
	line-height: 1.3;
}

.countdown {
	background: transparent;
	padding: 0;
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 4px;
	opacity: 0.85;
	margin-top: 2px;
}

.countdown-icon img {
	height: 0.75rem;
	width: auto;
	filter: brightness(0) invert(1);
	opacity: 1;
	display: block;
}

.card-info-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.jackpot-amount {
	font-size: 1.6rem;
	font-weight: 800;
	margin-bottom: 0;
	line-height: 1;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.btn-jugar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, 0.18);
	border: 2px solid rgba(255, 255, 255, 0.65);
	border-radius: 50px;
	padding: 8px 28px;
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--white);
	cursor: pointer;
	transition: var(--transition);
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 1px;
	flex-shrink: 0;
	backdrop-filter: blur(4px);
}

.btn-jugar:hover {
	background-color: rgba(255, 255, 255, 0.35);
	border-color: #fff;
	transform: scale(1.04);
}

/* LNAC EXTRA DRAW CARDS */
.extra-draws-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.extra-draws-grid > .game-card:last-child:nth-child(odd) {
	grid-column: 1 / -1;
	justify-self: center;
	width: calc(50% - 10px);
}

.extra-card-emoji {
	font-size: 3.5rem;
	line-height: 1;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.card-info-top--split {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
}

.card-info-top-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.extra-card-decimo {
	flex-shrink: 0;
	width: 110px;
	border-radius: 5px;
	overflow: hidden;
}

.extra-card-decimo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.card-mobile-icon {
	display: none;
	font-size: 1.1em;
	margin-right: 5px;
	vertical-align: middle;
}

.card-mobile-icon--img {
	height: 1.1em;
	width: auto;
	object-fit: contain;
	filter: brightness(0) invert(1);
	opacity: 0.9;
	vertical-align: baseline;
}

.card-bg-icon {
	display: none;
}

@media (max-width: 768px) {
	.games-grid {
		grid-template-columns: 1fr;
	}

	.extra-draws-grid {
		grid-template-columns: 1fr;
	}

	.extra-draws-grid > .game-card:last-child:nth-child(odd) {
		grid-column: auto;
		justify-self: auto;
		width: auto;
	}

	.card-info-top--split {
		flex-direction: column;
		gap: 12px;
	}

	.extra-card-decimo {
		width: 100%;
	}

	#lnac-games-grid .card-logo-area,
	#lnac-extra-games-grid .card-logo-area {
		display: none;
	}

	#lnac-games-grid .card-mobile-icon {
		display: inline;
	}

	#lnac-extra-games-grid .card-info-area {
		position: relative;
		overflow: hidden;
	}

	#lnac-extra-games-grid .card-info-top,
	#lnac-extra-games-grid .card-info-bottom {
		position: relative;
		z-index: 1;
	}

	#lnac-extra-games-grid .card-bg-icon {
		display: block;
		position: absolute;
		right: 8px;
		top: 40px;
		transform: translateY(-50%);
		font-size: 3rem;
		opacity: 0.2;
		pointer-events: none;
		z-index: 0;
		line-height: 1;
	}

	.game-logo-img {
		max-height: 70px;
	}

	.card-info-area {
		padding: 12px 14px;
	}

	.jackpot-amount {
		font-size: 1.3rem;
		white-space: normal;
		line-height: 1.2;
	}

	.btn-jugar {
		padding: 7px 18px;
		font-size: 0.78rem;
		width: 100%;
		justify-content: center;
	}

	.card-info-bottom {
		flex-wrap: wrap;
	}

	#lnac-games-grid .card-info-bottom,
	#lnac-extra-games-grid .card-info-bottom {
		flex-wrap: nowrap;
		align-items: center;
	}

	#lnac-games-grid .jackpot-amount,
	#lnac-extra-games-grid .jackpot-amount {
		font-size: 1.25rem;
		white-space: nowrap;
	}

	#lnac-games-grid .btn-jugar,
	#lnac-extra-games-grid .btn-jugar {
		width: auto;
		flex-shrink: 0;
		padding: 6px 12px;
		font-size: 0.8rem;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.games-grid {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 1025px) {
	.games-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
