/* MM2026 — design tokens */
:root {
	--color-bg: #08080a;
	--color-subpage-content: #101014;
	--color-surface: #1c1c21;
	--color-surface-2: #25252c;
	--color-text: #ffffff;
	--color-text-muted: #b8b8c0;
	--color-lime: #6fc529;
	--color-orange: #ff7900;
	--color-blue: #3d9fff;
	--font: "Montserrat", system-ui, sans-serif;
	--container: 1200px;
	--header-container: 1480px;
	--schedule-table-max: 720px;
	--radius-lg: 20px;
	--radius-pill: 999px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

.container {
	width: min(100% - 2rem, var(--container));
	margin-inline: auto;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Header */
.site-header-wrap {
	position: sticky;
	top: 0;
	z-index: 100;
	padding-top: 20px;
}

.site-header {
	position: relative;
	background: rgba(8, 8, 10, 0.85);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* WordPress admin toolbar (sisselogitud kasutaja) */
body.admin-bar .site-header-wrap {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header-wrap {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}

/* Avalehel läbipaistev päis video/taustapildi kohal */
body.home .site-header-wrap,
body.front-page .site-header-wrap {
	position: absolute;
	left: 0;
	right: 0;
}

body.home .site-header,
body.front-page .site-header {
	background: transparent;
	backdrop-filter: none;
	border-bottom: none;
}

body.home .site-main,
body.front-page .site-main {
	margin-top: 0;
	overflow: visible;
}

.site-header__inner.container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: 1rem;
	width: min(100% - 1.5rem, var(--header-container));
}

.site-nav {
	flex-shrink: 0;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	flex-shrink: 0;
	line-height: 0;
}

.site-brand__slash {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-brand img {
	display: block;
	height: clamp(28px, 4vw, 34px);
	width: auto;
	max-width: none;
}

.site-brand__mm,
.site-brand__coolbet {
	transition: opacity 0.2s;
}

.site-brand__mm:hover,
.site-brand__coolbet:hover {
	opacity: 0.85;
}

@media (max-width: 768px) {
	.site-brand img {
		height: 26px;
	}

	.site-brand__coolbet img {
		max-width: 140px;
	}
}

.site-nav__list {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 400;
	color: #fff;
	text-transform: uppercase;
	transition: color 0.2s;
}

.site-nav__list a:hover {
	color: var(--color-lime);
}

.site-nav-toggle {
	display: none;
	background: none;
	border: none;
	padding: 0.5rem;
	cursor: pointer;
}

.site-nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	margin: 5px 0;
	background: var(--color-text);
}

/* Hero */
.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: visible;
}

.hero__media {
	order: 1;
}

.hero__panel {
	order: 2;
}

.hero > .promo {
	order: 3;
}

/* Video / taustapildi riba (päise all) */
.hero__media {
	position: relative;
	height: clamp(320px, 48vw, 800px);
	overflow: hidden;
}

/* Rohkem õhku päise ja video vahel (läbipaistev header) */
body.home .hero__media,
body.front-page .hero__media {
	margin-top: clamp(7.75rem, 16vw, 9.25rem);
}

.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center top;
	background-color: #111;
}

.hero__video {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
}

.hero__video-scale {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw;
	min-width: 177.78vh;
	min-height: 100%;
	transform: translate(-50%, -50%);
}

.hero__video-iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.hero__media-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.hero__sound-toggle {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.hero__sound-toggle:hover,
.hero__sound-toggle:focus-visible {
	background: rgba(0, 0, 0, 0.75);
	outline: 2px solid rgba(255, 255, 255, 0.6);
	outline-offset: 2px;
}

.hero__sound-toggle:active {
	transform: scale(0.96);
}

.hero__sound-toggle-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero__sound-toggle-icon--on {
	display: none;
}

.hero__sound-toggle.is-unmuted .hero__sound-toggle-icon--off {
	display: none;
}

.hero__sound-toggle.is-unmuted .hero__sound-toggle-icon--on {
	display: flex;
}

@media (prefers-reduced-motion: reduce) {
	.hero__video {
		display: none;
	}
}

/* Must tekstiplokk + mõmmi */
.hero__panel {
	position: relative;
	z-index: 3;
	background: var(--color-bg);
	overflow: visible;
}

.hero__inner {
	position: relative;
	overflow: visible;
	padding-block: 2.5rem 1rem;
	padding-right: clamp(200px, 30%, 340px);
}

.hero__content {
	max-width: 720px;
	padding-bottom: 1.5rem;
}

.hero__ball {
	display: block;
	width: 48px;
	height: 48px;
	margin-bottom: 1.25rem;
}

.hero__title {
	margin: 0 0 1.25rem;
	font-family: "Montserrat", var(--font);
	font-size: 35px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--color-text);
}

.hero__dates {
	color: var(--color-lime);
}

.hero__text {
	margin: 0;
	max-width: 680px;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 24px;
	font-weight: 300;
	line-height: 1.4;
	color: var(--color-text);
}

.hero__mascot {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 4;
	width: clamp(220px, 26vw, 340px);
	margin: 0;
	transform: none;
	pointer-events: none;
	line-height: 0;
}

.hero__mascot::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 8%;
	width: 90%;
	height: 70%;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(60, 60, 70, 0.55) 0%, transparent 72%);
	z-index: 0;
}

.hero__mascot img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	object-position: bottom right;
}

/* Promo / registration */
.promo {
	position: relative;
	z-index: 4;
	padding-block: 4.5rem 4rem;
}

.subpage--schedule + .promo,
.subpage--stats + .promo,
.subpage--loos + .promo {
	padding-top: 2rem;
}

.promo-box {
	background: #1c1e22;
	border-radius: 16px;
	padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
	text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	overflow: visible;
}

.promo-box__text {
	margin: 0 0 2rem;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 24px;
	font-weight: 300;
	line-height: 1.4;
	color: var(--color-text);
}

.promo-box__line {
	display: block;
}

.promo-box__text strong {
	color: var(--color-orange);
	font-weight: 700;
}

.register-form {
	max-width: 480px;
	margin: 0 auto;
}

.register-form__row {
	margin-bottom: 0;
}

.register-form__row--team {
	margin-bottom: 0;
}

/* Custom team dropdown */
.team-dropdown {
	position: relative;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
}

.team-dropdown__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0.65rem 0.65rem 0.65rem 1.5rem;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 300;
	color: var(--color-text);
	background: transparent;
	border: 1px solid var(--color-orange);
	border-radius: var(--radius-pill);
	cursor: pointer;
	text-align: left;
	gap: 0.75rem;
	transition: box-shadow 0.2s;
}

.team-dropdown__trigger:hover,
.team-dropdown.is-open .team-dropdown__trigger {
	box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.4);
}

.team-dropdown__trigger:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.45);
}

.team-dropdown__label {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
	gap: 0.55rem;
}

.team-dropdown__name {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.team-dropdown__label.is-placeholder .team-dropdown__name {
	opacity: 0.95;
}

.team-dropdown__flag {
	flex-shrink: 0;
	width: 24px;
	height: 18px;
	object-fit: cover;
	border-radius: 2px;
}

.team-dropdown__flag[hidden] {
	display: none;
}

.team-dropdown__chevron {
	flex-shrink: 0;
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--color-orange);
	transition: transform 0.2s;
}

.team-dropdown.is-open .team-dropdown__chevron {
	transform: rotate(180deg);
}

.team-dropdown__chevron::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 44%;
	width: 9px;
	height: 9px;
	border-right: 2px solid #000;
	border-bottom: 2px solid #000;
	transform: translate(-50%, -35%) rotate(45deg);
}

.team-dropdown__list {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 20;
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	max-height: 280px;
	overflow-y: auto;
	background: #121316;
	border: 1px solid var(--color-orange);
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
	scrollbar-width: thin;
	scrollbar-color: rgba(245, 166, 35, 0.5) transparent;
}

.team-dropdown__list[hidden] {
	display: none !important;
}

.team-dropdown__list::-webkit-scrollbar {
	width: 6px;
}

.team-dropdown__list::-webkit-scrollbar-thumb {
	background: rgba(245, 166, 35, 0.45);
	border-radius: 3px;
}

.team-dropdown__option {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.65rem 1.25rem;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 300;
	color: var(--color-text);
	cursor: pointer;
	text-align: left;
	transition: background 0.15s;
}

.team-dropdown__option:hover,
.team-dropdown__option.is-focused {
	background: rgba(255, 255, 255, 0.06);
}

.team-dropdown__option.is-selected {
	background: rgba(245, 166, 35, 0.12);
}

/* Reg flow steps */
.reg-step[hidden] {
	display: none !important;
}

.promo-box.is-step-form {
	width: 100%;
	max-width: 100%;
	text-align: left;
}

.promo-box.is-step-confirm,
.promo-box.is-step-success {
	text-align: center;
}

/* Kinnitamine */
.reg-confirm__text {
	margin: 0 0 2rem;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 24px;
	font-weight: 300;
	line-height: 1.4;
	color: var(--color-text);
}

.reg-confirm__team {
	color: var(--color-orange);
	font-weight: 700;
}

.reg-confirm__actions {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.reg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	padding: 0.85rem 2.5rem;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 400;
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition: opacity 0.2s, background 0.2s;
}

.reg-btn--ghost {
	color: var(--color-text);
	background: transparent;
	border: 1px solid var(--color-orange);
}

.reg-btn--ghost:hover {
	background: rgba(245, 166, 35, 0.08);
}

.reg-btn--primary {
	color: #000;
	background: var(--color-orange);
	border: none;
	font-weight: 700;
	min-width: 180px;
}

.reg-btn--primary:hover {
	opacity: 0.9;
}

.reg-btn--primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Registreerimise vorm */
.reg-form__title {
	margin: 0 0 1.75rem;
	font-family: "Montserrat", var(--font);
	font-size: 35px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--color-text);
}

.reg-form__inputs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.reg-form__field input {
	width: 100%;
	padding: 0.85rem 1.25rem;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 300;
	color: #1a1a1a;
	background: #fff;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
}

.reg-form__field input::placeholder {
	color: #888;
}

.reg-form__field input:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.5);
}

.reg-form__field input.is-invalid,
.reg-check.is-invalid {
	border-color: #e53935;
}

.reg-form__field input.is-invalid {
	border: 1px solid #ff3b3b;
	box-shadow: 0 0 0 1px rgba(255, 59, 59, 0.35);
	color: #ff3b3b;
	caret-color: #ff3b3b;
}

.reg-form__field input.is-invalid::placeholder {
	color: #ff6b6b;
}

.reg-form__field input.is-invalid:-webkit-autofill,
.reg-form__field input.is-invalid:-webkit-autofill:hover,
.reg-form__field input.is-invalid:-webkit-autofill:focus {
	-webkit-text-fill-color: #ff3b3b;
	box-shadow: 0 0 0 1000px #fff inset;
}

.reg-form__footer {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	align-items: center;
}

.reg-form__footer-cell {
	min-width: 0;
}

.reg-form__footer .reg-check {
	white-space: nowrap;
}

.reg-form__footer .reg-form__terms {
	align-self: center;
	white-space: nowrap;
}

.reg-form__submit {
	align-self: center;
}

.reg-form__submit .reg-btn--primary {
	width: 100%;
	min-width: 0;
}

.reg-check {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 300;
	color: var(--color-text);
	cursor: pointer;
}

.reg-check input {
	width: 18px;
	height: 18px;
	accent-color: var(--color-orange);
	flex-shrink: 0;
}

.reg-check.is-invalid span {
	color: #ff3b3b;
	font-weight: 500;
}

.reg-form__terms {
	display: block;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 300;
	color: var(--color-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.reg-form__terms:hover {
	color: var(--color-lime);
}

/* Edu teade */
.reg-success__icon {
	display: block;
	margin: 0 auto 1.25rem;
	width: 64px;
	height: 64px;
}

.reg-success__title {
	margin: 0 0 0.5rem;
	font-family: "Montserrat", var(--font);
	font-size: 35px;
	font-weight: 700;
	color: #46baeb;
}

.reg-success__text {
	margin: 0;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 24px;
	font-weight: 300;
	color: var(--color-text);
}

.reg-success__share-hint {
	margin: 1.25rem 0 0;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 300;
	color: var(--color-text-muted);
}

.reg-success__share {
	margin-top: 1.25rem;
	text-align: center;
}

.reg-btn--facebook {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: min(100%, 280px);
	padding: 0.85rem 1.75rem;
	font-family: "Montserrat", var(--font);
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: #1877f2;
	border: none;
	border-radius: var(--radius-pill);
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.reg-btn--facebook:hover,
.reg-btn--facebook:focus-visible {
	background: #166fe5;
	color: #fff;
	outline: 2px solid rgba(24, 119, 242, 0.45);
	outline-offset: 2px;
}

.reg-btn--facebook:active {
	transform: scale(0.98);
}

.register-form__message {
	min-height: 1.5rem;
	margin: 1rem 0 0;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	color: #ff3b3b;
}

.register-form__message.is-error {
	color: #ff3b3b;
}

.register-form__message[hidden] {
	display: none !important;
}

.hp-field {
	position: absolute;
	left: -9999px;
	opacity: 0;
}

/* Team gallery */
.team-gallery {
	padding-block: 2rem 4rem;
}

.team-gallery__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1rem;
}

.team-card {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 3 / 5;
	cursor: pointer;
	background: var(--color-surface-2);
	transition: transform 0.2s, box-shadow 0.2s;
	text-align: left;
}

.team-card:hover,
.team-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(111, 197, 41, 0.15);
	outline: 2px solid var(--color-lime);
}

.team-card__image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: var(--color-surface-2);
}

.team-card__shade {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.28);
	pointer-events: none;
	transition: background 0.2s;
}

.team-card:hover .team-card__shade,
.team-card:focus-visible .team-card__shade {
	background: rgba(0, 0, 0, 0.38);
}

.team-card__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.team-card__play-icon {
	filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
}

.team-card__tag {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	z-index: 2;
	margin: 0;
	font-family: "Montserrat", var(--font);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-text);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
	pointer-events: none;
}

.team-card__hash {
	color: var(--color-blue);
}

/* Video modal (team cards) */
.video-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.video-modal[hidden] {
	display: none;
}

.video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
}

.video-modal__dialog {
	position: relative;
	width: min(100%, 960px);
	z-index: 1;
}

.video-modal__close {
	position: absolute;
	top: -2.5rem;
	right: 0;
	width: 2.5rem;
	height: 2.5rem;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.video-modal__close:hover {
	background: rgba(255, 255, 255, 0.28);
}

.video-modal__frame-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.video-modal__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

body.is-video-modal-open {
	overflow: hidden;
}

/* Subpages */
.subpage {
	padding: 3rem 0 5rem;
}

.subpage--schedule,
.subpage--stats,
.subpage--loos {
	padding: 0;
}

.subpage--schedule .subpage__title-area,
.subpage--stats .subpage__title-area,
.subpage--loos .subpage__title-area {
	padding: 3rem 0 2rem;
}

.subpage--stats .subpage__title-area {
	padding-top: 2.5rem;
}

.subpage__body {
	background: var(--color-subpage-content);
	padding: 2.5rem 0 5rem;
}

.subpage__header {
	margin-bottom: 2rem;
}

.subpage__header h1 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.subpage__intro {
	max-width: 720px;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 1.125rem;
	font-weight: 300;
	line-height: 1.5;
	color: var(--color-text-muted);
}

.subpage__intro > :first-child {
	margin-top: 0;
}

.subpage__intro > :last-child {
	margin-bottom: 0;
}

.subpage--loos + .promo {
	padding-top: 0;
}

.subpage__lead {
	margin: 0;
	color: var(--color-text-muted);
	max-width: 560px;
}

.subpage__header--schedule h1,
.subpage__header--stats h1 {
	font-family: "Montserrat", var(--font);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 600;
}

/* Ajakava API */
.subpage--schedule .schedule-api {
	width: 100%;
	max-width: var(--schedule-table-max);
}

.schedule-api__notice,
.schedule-api__error,
.schedule-api__empty {
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 300;
	margin: 0 0 1.5rem;
}

.schedule-api__notice {
	color: var(--color-orange);
}

.schedule-api__error {
	color: #ff3b3b;
}

.schedule-api__tz {
	margin: 0 0 1.25rem;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 16px;
	font-weight: 300;
	color: var(--color-text-muted);
}

.schedule-api__debug {
	background: #121316;
	padding: 1rem;
	border-radius: 8px;
	font-size: 12px;
	overflow: auto;
	margin-bottom: 1.5rem;
}

.schedule-table__head {
	display: grid;
	grid-template-columns: 1fr 5rem;
	column-gap: 1.5rem;
	padding-bottom: 0.75rem;
	margin-bottom: 0.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.schedule-table__col {
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: var(--color-text);
}

.schedule-table__col--score {
	text-align: right;
}

.schedule-day__date {
	margin: 1.75rem 0 0.75rem;
	font-family: "Montserrat", var(--font);
	font-size: 28px;
	font-weight: 700;
	color: var(--color-orange);
}

.schedule-day:first-of-type .schedule-day__date {
	margin-top: 0;
}

.schedule-row {
	display: grid;
	grid-template-columns: 1fr 5rem;
	column-gap: 1.5rem;
	align-items: center;
	padding: 0.85rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 300;
	color: var(--color-text);
}

.schedule-row__match {
	display: flex;
	align-items: baseline;
	gap: 1.25rem;
	min-width: 0;
}

.schedule-row__time {
	font-weight: 600;
	flex-shrink: 0;
	min-width: 3.5rem;
}

.schedule-row__teams {
	min-width: 0;
}

.schedule-row__sep {
	opacity: 0.7;
}

.schedule-row__score {
	text-align: right;
	font-weight: 600;
}

@media (max-width: 768px) {
	.schedule-row {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}

	.schedule-row__match {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}

	.schedule-row__score {
		text-align: left;
	}
}

.schedule-placeholder,
.page-article__body {
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	padding: 2rem;
	color: var(--color-text-muted);
}

/* Statistika TOP 10 */
.stats-page__notice {
	margin: 0 0 1.5rem;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 300;
	color: var(--color-orange);
}

.stats-page__error {
	margin: 0;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 18px;
	color: #ff3b3b;
}

.stats-boards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
}

.stats-board__title {
	margin: 0 0 1rem;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--color-text);
}

.stats-board__title-accent {
	color: var(--color-orange);
	margin-left: 0.35em;
}

.stats-board__head {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 0.35rem;
	padding: 0.65rem 1.25rem;
	border-radius: 19px;
	background: linear-gradient(90deg, #00c8f0 0%, var(--color-lime) 100%);
}

.stats-board__head-label {
	font-family: "Montserrat", var(--font);
	font-size: clamp(1.1rem, 2.5vw, 1.5rem);
	font-weight: 700;
	color: #0a0a0c;
}

.stats-board__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.stats-board__row,
.stats-board__empty {
	display: grid;
	grid-template-columns: 40px 1fr auto;
	gap: 1rem;
	align-items: center;
	padding: 0.9rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: clamp(1rem, 2vw, 1.35rem);
	font-weight: 300;
}

.stats-board__empty {
	grid-template-columns: 1fr;
	color: var(--color-text-muted);
}

.stats-board__flag {
	width: 40px;
	height: 28px;
	object-fit: cover;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.stats-board__flag--placeholder {
	background: var(--color-surface-2);
}

.stats-board__name {
	min-width: 0;
}

.stats-board__value {
	font-weight: 600;
	text-align: right;
	min-width: 2.5rem;
}

@media (max-width: 900px) {
	.stats-boards {
		grid-template-columns: 1fr;
	}
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.stats-card {
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	text-align: center;
}

.stats-card__label {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-text-muted);
	margin-bottom: 0.5rem;
}

.stats-card__value {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--color-lime);
}

.page-content {
	padding: 3rem 0;
}

.page-article__header h1 {
	margin-top: 0;
}

.site-footer {
	padding: 2rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	color: var(--color-text-muted);
	font-size: 0.85rem;
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	text-align: center;
}

.site-footer__social-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--color-text-muted);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.site-footer__social-link:hover {
	color: var(--color-text);
	border-color: rgba(245, 166, 35, 0.55);
	background: rgba(245, 166, 35, 0.08);
}

.site-footer__social-icon {
	display: block;
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.25rem;
}

.site-footer__links a {
	color: var(--color-text-muted);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	transition: color 0.2s;
}

.site-footer__links a:hover {
	color: var(--color-text);
}

.site-footer__copy {
	margin: 0;
}

/* Küpsiste nõusolek */
.cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	padding: 1rem 0;
	background: rgba(12, 12, 14, 0.96);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.cookie-banner[hidden] {
	display: none;
}

.cookie-banner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.cookie-banner__text {
	margin: 0;
	flex: 1 1 280px;
	font-family: "Roboto Flex", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.45;
	color: var(--color-text-muted);
}

.cookie-banner__link {
	color: var(--color-text);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.cookie-banner__link:hover {
	color: var(--color-lime);
}

.cookie-banner__accept {
	flex-shrink: 0;
	padding: 0.65rem 1.75rem;
	border: none;
	border-radius: var(--radius-pill);
	background: var(--color-lime);
	color: #0a0a0c;
	font-family: "Montserrat", var(--font);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.2s, transform 0.15s;
}

.cookie-banner__accept:hover {
	filter: brightness(1.08);
}

.cookie-banner__accept:focus-visible {
	outline: 2px solid var(--color-lime);
	outline-offset: 3px;
}

body.has-cookie-banner {
	padding-bottom: 5.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
	.hero__inner {
		padding-right: 0;
	}

	.hero__title {
		font-size: clamp(26px, 4vw, 35px);
	}

	.hero__text {
		font-size: clamp(18px, 2.5vw, 24px);
	}

	.hero__mascot {
		position: relative;
		right: auto;
		bottom: auto;
		width: min(300px, 72%);
		margin: 0 auto;
		transform: none;
	}

	.hero__mascot img {
		width: 100%;
	}

	.team-gallery__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.site-nav {
		display: none;
	}

	.site-nav.is-open {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--color-bg);
		padding: 1rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.site-nav.is-open .site-nav__list {
		flex-direction: column;
		gap: 1rem;
	}

	.site-nav-toggle {
		display: block;
	}

	.team-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.promo-box__text {
		font-size: clamp(18px, 4.5vw, 24px);
	}

	.reg-form__title {
		font-size: clamp(24px, 5vw, 35px);
	}

	.reg-form__inputs {
		grid-template-columns: 1fr;
	}

	.reg-form__footer {
		grid-template-columns: 1fr;
	}

	.reg-form__footer .reg-check {
		white-space: normal;
	}

	.reg-confirm__text,
	.reg-success__text {
		font-size: clamp(18px, 4vw, 24px);
	}

	.team-dropdown__trigger,
	.team-dropdown__option {
		font-size: 16px;
	}

	.hero__media {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
	}

	.hero > .promo {
		order: 2;
		padding-block: 2rem;
	}

	.hero__panel {
		order: 3;
	}

	.hero__video-scale {
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		min-width: 0;
		min-height: 0;
		transform: none;
	}

	body.home .hero__media,
	body.front-page .hero__media {
		margin-top: 7rem;
	}

	.hero__mascot {
		display: none;
	}

	.hero__title {
		font-size: 24px;
	}

	.hero__text {
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.team-gallery__grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 0.75rem;
		padding-bottom: 0.5rem;
		-webkit-overflow-scrolling: touch;
	}

	.team-card {
		flex: 0 0 70%;
		scroll-snap-align: start;
	}
}
