/* TFT Hero — Image + Overlay
   Structure: .tft-hoh > [.tft-hoh__image, .tft-hoh__overlay, .tft-hoh__inner]
   The image layer and the color overlay are separate stacked layers, so the
   overlay opacity never affects the text on top of it. */

.tft-hoh {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	isolation: isolate; /* keeps mix-blend-mode inside the hero */
	background-color: #002868;
	background-repeat: no-repeat;
}

.tft-hoh__image,
.tft-hoh__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.tft-hoh__image {
	z-index: 1;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	will-change: transform;
}

.tft-hoh__overlay {
	z-index: 2;
	background-color: #002868;
	opacity: 0.6;
}

.tft-hoh__inner {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
	padding: 96px 24px;
}

.tft-hoh__grid {
	display: grid;
	gap: 48px;
	align-items: center;
	grid-template-columns: 1fr;
}

.tft-hoh--has-clock.tft-hoh--clock-right .tft-hoh__grid {
	grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
}

/* ------------------------------- Text ------------------------------- */

.tft-hoh__eyebrow {
	display: inline-block;
	margin-bottom: 20px;
	padding: 6px 14px;
	border-radius: 999px;
	background-color: #bf0a30;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.2;
}

.tft-hoh__title {
	margin: 0 0 20px;
	color: #fff;
	font-size: clamp(2.1rem, 4.6vw, 3.6rem);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.tft-hoh__text {
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.0625rem;
	line-height: 1.65;
	max-width: 62ch;
}

.tft-hoh__message[style*="center"] .tft-hoh__text {
	margin-inline: auto;
}

.tft-hoh__text > *:last-child {
	margin-bottom: 0;
}

/* ------------------------------ Buttons ----------------------------- */

.tft-hoh__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

.tft-hoh__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tft-hoh__btn:hover {
	transform: translateY(-1px);
}

.tft-hoh__btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.tft-hoh__btn--primary {
	background-color: #bf0a30;
	color: #fff;
}

.tft-hoh__btn--secondary {
	background-color: transparent;
	border-color: #fff;
	color: #fff;
}

/* ----------------------------- Countdown ---------------------------- */

.tft-hoh__clock {
	padding: 24px;
	border-radius: 8px;
	background-color: rgba(0, 27, 71, 0.55);
	color: #fff;
	backdrop-filter: blur(4px);
	text-align: center;
}

.tft-hoh__clock-label {
	margin: 0 0 16px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.85;
}

.tft-hoh__clock-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.tft-hoh__unit {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tft-hoh__num {
	font-size: clamp(1.4rem, 2.4vw, 2rem);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.tft-hoh__unit-label {
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.8;
}

/* --------------------------- News Scroller -------------------------- */
/* Sits at the bottom of the hero, above the overlay. The content layer gets
   bottom margin equal to the bar height so text never runs under it. */

.tft-hoh {
	--tft-hoh-news-h: 56px;
	--tft-hoh-news-gap: 20px;
}

.tft-hoh--has-news .tft-hoh__inner {
	margin-bottom: var(--tft-hoh-news-h);
}

.tft-hoh--has-news.tft-hoh--news-floating .tft-hoh__inner {
	margin-bottom: calc(var(--tft-hoh-news-h) + var(--tft-hoh-news-gap));
}

.tft-hoh__news {
	--tft-hoh-news-accent: #bf0a30;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	display: flex;
	align-items: stretch;
	height: var(--tft-hoh-news-h);
	background-color: rgba(0, 27, 71, 0.82);
	box-shadow: inset 0 3px 0 var(--tft-hoh-news-accent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
}

.tft-hoh--news-floating .tft-hoh__news {
	left: var(--tft-hoh-news-gap);
	right: var(--tft-hoh-news-gap);
	bottom: var(--tft-hoh-news-gap);
	max-width: 1180px;
	margin-inline: auto;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: inset 0 3px 0 var(--tft-hoh-news-accent), 0 10px 30px rgba(0, 12, 34, 0.35);
}

/* Label */

.tft-hoh__news-label {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 3px 26px 0 22px;
	background-color: #bf0a30;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.2;
	white-space: nowrap;
	clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
	z-index: 2;
}

.tft-hoh__news-dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: currentColor;
}

.tft-hoh__news-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background-color: currentColor;
	animation: tft-hoh-pulse 2s ease-out infinite;
}

@keyframes tft-hoh-pulse {
	0%   { transform: scale(1);   opacity: 0.7; }
	80%  { transform: scale(2.6); opacity: 0; }
	100% { transform: scale(2.6); opacity: 0; }
}

/* Viewport + track */

.tft-hoh__news-viewport {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	padding-top: 3px; /* clears the accent line */
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}

.tft-hoh__news-viewport::-webkit-scrollbar {
	display: none;
}

.tft-hoh__news--fade .tft-hoh__news-viewport {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.tft-hoh__news-track {
	display: flex;
	align-items: center;
	align-self: stretch;
	height: 100%;
	width: max-content;
	will-change: transform;
}

.tft-hoh__news.is-running .tft-hoh__news-viewport {
	overflow: hidden;
}

.tft-hoh__news.is-running .tft-hoh__news-track {
	animation: tft-hoh-marquee var(--tft-hoh-news-duration, 40s) linear infinite;
}

.tft-hoh__news.is-running[data-direction="right"] .tft-hoh__news-track {
	animation-direction: reverse;
}

.tft-hoh__news.is-paused .tft-hoh__news-track,
.tft-hoh__news--pause-hover:hover .tft-hoh__news-track,
.tft-hoh__news:focus-within .tft-hoh__news-track {
	animation-play-state: paused;
}

@keyframes tft-hoh-marquee {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

.tft-hoh__news-group {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tft-hoh__news-item {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.tft-hoh__news-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 6px 4px 6px 28px;
	color: inherit;
	text-decoration: none;
	border-radius: 4px;
}

.tft-hoh__news-link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

.tft-hoh__news-source {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 999px;
	background-color: rgba(246, 244, 239, 0.12);
	color: #f6f4ef;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2;
}

.tft-hoh__news-headline {
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	background-image: linear-gradient(var(--tft-hoh-news-accent), var(--tft-hoh-news-accent));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 2px;
	padding: 2px 0;
	transition: background-size 0.25s ease, color 0.2s ease;
}

a.tft-hoh__news-link:hover .tft-hoh__news-headline,
a.tft-hoh__news-link:focus-visible .tft-hoh__news-headline {
	background-size: 100% 2px;
}

.tft-hoh__news-arrow {
	flex: 0 0 auto;
	opacity: 0.55;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

a.tft-hoh__news-link:hover .tft-hoh__news-arrow,
a.tft-hoh__news-link:focus-visible .tft-hoh__news-arrow {
	opacity: 1;
	transform: translate(2px, -2px);
}

.tft-hoh__news-sep {
	padding-left: 24px;
	color: #bf0a30;
	font-size: 0.8rem;
	line-height: 1;
}

/* Vertical centering guard: many WordPress themes add margins, padding,
   line-height or bullets to ul/li/a inside Elementor widgets, which pushes
   the stories to the top of the bar. These resets keep them centered. */

.tft-hoh .tft-hoh__news ul.tft-hoh__news-group,
.tft-hoh .tft-hoh__news li.tft-hoh__news-item {
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	line-height: 1 !important;
	background: none;
	border: 0;
}

.tft-hoh .tft-hoh__news li.tft-hoh__news-item::before,
.tft-hoh .tft-hoh__news li.tft-hoh__news-item::marker {
	content: none !important;
	display: none !important;
}

.tft-hoh .tft-hoh__news .tft-hoh__news-link {
	margin: 0 !important;
	line-height: 1.3;
	align-self: center;
}

.tft-hoh .tft-hoh__news .tft-hoh__news-headline,
.tft-hoh .tft-hoh__news .tft-hoh__news-source,
.tft-hoh .tft-hoh__news .tft-hoh__news-sep {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	vertical-align: middle;
}

/* Pause / play */

.tft-hoh__news-toggle {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--tft-hoh-news-h);
	margin: 0;
	padding: 3px 0 0;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.75);
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.tft-hoh__news-toggle:hover {
	color: #fff;
	background-color: rgba(255, 255, 255, 0.08);
}

.tft-hoh__news-toggle:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.tft-hoh__news-toggle .tft-hoh__icon-play,
.tft-hoh__news.is-paused .tft-hoh__news-toggle .tft-hoh__icon-pause {
	display: none;
}

.tft-hoh__news.is-paused .tft-hoh__news-toggle .tft-hoh__icon-play {
	display: block;
}

.tft-hoh__news:not(.is-running) .tft-hoh__news-toggle {
	display: none;
}

/* ---------------------------- Responsive ---------------------------- */

@media (max-width: 1024px) {
	.tft-hoh--has-clock.tft-hoh--clock-right .tft-hoh__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.tft-hoh__inner {
		padding: 64px 20px;
	}

	.tft-hoh__actions .tft-hoh__btn {
		flex: 1 1 100%;
	}

	.tft-hoh {
		--tft-hoh-news-gap: 12px;
	}

	.tft-hoh__news-label {
		padding: 3px 18px 0 14px;
	}

	/* on phones the label collapses to the pulsing dot */
	.tft-hoh__news-label-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.tft-hoh__news-link {
		padding-left: 20px;
	}

	.tft-hoh__news-headline {
		font-size: 0.875rem;
	}

	.tft-hoh__news-sep {
		padding-left: 16px;
	}

	/* fixed attachment is unreliable on mobile browsers */
	.tft-hoh__image {
		background-attachment: scroll !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tft-hoh__btn,
	.tft-hoh__news-headline,
	.tft-hoh__news-arrow {
		transition: none;
	}

	.tft-hoh__news-dot::after {
		animation: none;
	}

	.tft-hoh__btn:hover {
		transform: none;
	}
}
