/* ── App layout ─────────────────────────────────────────────── */
html, body {
	margin: 0;
	padding: 0;
	background: #f9f9f9;
}

.app {
	font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 14px;
	color: #1a1a1a;
	background: #f9f9f9;
	min-height: 100vh;
}

.app-content {
	padding: 1.5rem 2rem;
}

.update-banner {
	position: sticky;
	top: 0;
	z-index: 1300;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.85rem;
	padding: 0.7rem 1rem;
	background: linear-gradient(90deg, #143625, #1e4d36);
	color: #f4fff7;
	border-bottom: 1px solid rgba(126, 196, 156, 0.35);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.update-banner__body {
	display: grid;
	gap: 0.2rem;
	min-width: 0;
}

.update-banner__title {
	font-size: 0.86rem;
	font-weight: 800;
	letter-spacing: 0.25px;
	text-transform: uppercase;
}

.update-banner__text {
	font-size: 0.83rem;
	color: rgba(244, 255, 247, 0.92);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.update-banner__actions {
	display: flex;
	gap: 0.55rem;
	flex-shrink: 0;
}

.update-banner__btn {
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: #f4fff7;
	color: #183a29;
	padding: 0.38rem 0.7rem;
	border-radius: 8px;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
}

.update-banner__btn--ghost {
	background: transparent;
	color: #f4fff7;
}

.update-banner__btn:hover {
	filter: brightness(0.95);
}

/* ── Header ─────────────────────────────────────────────────── */
.app-header {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: #1a3a2a;
	padding: calc(0.3rem + env(safe-area-inset-top)) 1.25rem 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	position: relative;
	z-index: 10;
}

.app-header__top-row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	width: 100%;
	min-height: 52px;
}

.app-header__brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	justify-content: center;
	padding: 0.5rem 0;
}

.app-header__logo {
	height: 36px;
	width: 36px;
	object-fit: contain;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.2);
}

.app-header__title {
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
	color: #ffffff;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: center;
}

.app-header__actions {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	justify-self: end;
}

.app-header__auth-btn {
	background: #1a5a3d;
	color: #ffffff;
	border: 1px solid rgba(216, 244, 227, 0.35);
	border-radius: 999px;
	padding: 0.33rem 0.7rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.app-header__auth-btn:hover {
	background: #22764f;
	transform: translateY(-1px);
}

/* ── Navigation ─────────────────────────────────────────────── */
.app-nav {
	display: flex;
	gap: 0.25rem;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
}

.app-nav__item {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: none;
	border: none;
	color: #a8c5b0;
	font-family: 'Barlow', sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.9rem 1rem;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: color 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.app-nav__item:hover {
	color: #ffffff;
}

.app-nav__item--active {
	color: #ffffff;
	border-bottom-color: #4caf72;
}

.app-nav__item--featured {
	color: #ffd68a;
	border-bottom-color: rgba(255, 200, 92, 0.45);
}

.app-nav__item--featured:hover,
.app-nav__item--featured.app-nav__item--active {
	color: #fff4cf;
	border-bottom-color: #ffc85c;
}

.app-nav__tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.15rem 0.42rem;
	border-radius: 999px;
	background: #ffc85c;
	color: #1f291f;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.45px;
	text-transform: uppercase;
	line-height: 1;
}

.admin-panel {
	display: grid;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid #dbe6df;
	border-radius: 12px;
	background: #ffffff;
	max-width: 780px;
	margin-inline: auto;
}

.admin-panel__label {
	font-weight: 700;
	font-size: 0.9rem;
	color: #123a2a;
}

.admin-panel__auth-controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.7rem;
	align-items: center;
}

.admin-panel__input,
.admin-panel__textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.8rem;
	border: 1px solid #c9d9cf;
	border-radius: 8px;
	font-size: 0.95rem;
	font-family: Barlow, sans-serif;
}

.admin-panel__textarea {
	min-height: 110px;
	resize: vertical;
}

.admin-panel__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	justify-self: start;
	padding: 0.6rem 1rem;
	border: 0;
	border-radius: 8px;
	background: #1a5a3d;
	color: #ffffff;
	font-weight: 700;
	cursor: pointer;
}

.admin-panel__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.admin-panel__section {
	display: grid;
	gap: 0.7rem;
	padding: 0.85rem;
	border: 1px solid #e0ebe4;
	border-radius: 10px;
	background: #f9fcfa;
}

.admin-panel__section-title {
	margin: 0;
	font-size: 1rem;
	color: #103223;
}

.admin-panel__error {
	margin: 0;
	color: #b42318;
	font-weight: 600;
	word-break: break-word;
}

.admin-panel__status {
	margin: 0;
	color: #0c3f2b;
	font-weight: 600;
	word-break: break-word;
}

.admin-panel__loader {
	width: 0.95rem;
	height: 0.95rem;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #ffffff;
	animation: admin-loader-spin 0.8s linear infinite;
}

@keyframes admin-loader-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ── Bottom navigation (mobile) ────────────────────────────────── */
.app-bottom-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1200;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.15rem;
	height: 64px;
	padding: 0 0.4rem env(safe-area-inset-bottom);
	background: #163424;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
}

.app-bottom-nav__item {
	flex: 1 1 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	border: 0;
	background: transparent;
	color: #a8c5b0;
	padding: 0.4rem 0.2rem 0.3rem;
	cursor: pointer;
	min-width: 0;
}

.app-bottom-nav__item svg {
	width: 20px;
	height: 20px;
}

.app-bottom-nav__label {
	font-size: 0.64rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.app-bottom-nav__item--active {
	color: #ffffff;
}

.app-bottom-nav__item--active .app-bottom-nav__label {
	color: #4caf72;
}

.app-bottom-nav__chevron {
	width: 12px;
	height: 12px;
	margin-bottom: -0.1rem;
	transition: transform 0.15s ease;
}

.app-bottom-nav__chevron--open {
	transform: rotate(180deg);
}

.app-bottom-nav__group {
	position: relative;
	flex: 1 1 0;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.app-bottom-nav__center {
	flex: 0 0 auto;
	display: flex;
	justify-content: center;
	width: 72px;
}

.app-bottom-nav__center-btn {
	width: 60px;
	height: 60px;
	border-radius: 999px;
	border: 3px solid #163424;
	background: linear-gradient(145deg, #2f6b49, #1a3a2a);
	color: #d8f4e3;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transform: translateY(-22px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease, background 0.15s ease;
}

.app-bottom-nav__center-btn svg {
	width: 28px;
	height: 28px;
}

.app-bottom-nav__center-btn:hover,
.app-bottom-nav__center-btn--active {
	transform: translateY(-24px);
	background: linear-gradient(145deg, #4caf72, #1e4d36);
	color: #ffffff;
}

.app-bottom-nav__submenu {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 172px;
	padding: 0.4rem;
	background: #1e4d36;
	border: 1px solid rgba(173, 206, 188, 0.2);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	z-index: 1210;
}

.app-bottom-nav__submenu-item {
	border: 0;
	background: transparent;
	color: #d8f4e3;
	text-align: left;
	padding: 0.55rem 0.7rem;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.app-bottom-nav__submenu-item:hover {
	background: rgba(115, 166, 142, 0.2);
}

.app-bottom-nav__submenu-item--active {
	background: rgba(76, 175, 114, 0.25);
	color: #ffffff;
}

.app-bottom-nav__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	border: 0;
	padding: 0;
	margin: 0;
	z-index: 1190;
	cursor: pointer;
}

.app-chat-fab {
	position: fixed;
	right: 1rem;
	bottom: calc(215px + env(safe-area-inset-bottom));
	z-index: 1200;
	width: 52px;
	height: 52px;
	padding: 0;
	border-radius: 999px;
	border: 0;
	background: #ffc85c;
	color: #1f291f;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	cursor: grab;
	touch-action: none;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
	transition: background 0.15s ease;
}

.app-chat-fab__icon {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	pointer-events: none;
}

.app-chat-fab--active {
	background: #4caf72;
	color: #ffffff;
}

.app-chat-fab--dragging {
	cursor: grabbing;
	transition: none;
}

@media (min-width: 1025px) {
	.app-bottom-nav,
	.app-bottom-nav__backdrop,
	.app-chat-fab {
		display: none;
	}
}

@media (max-width: 1024px) {
	.app-header {
		padding: calc(0.35rem + env(safe-area-inset-top)) 0.85rem 0;
	}

	.app-header__top-row {
		min-height: 50px;
	}

	.app-nav--desktop {
		display: none;
	}

	.app-header__brand {
		padding: 0;
	}

	.app-header__title {
		font-size: 1rem;
	}

	.app-header__auth-btn {
		padding: 0.3rem 0.6rem;
		font-size: 0.66rem;
	}

	.app-header__auth-btn {
		max-width: 60vw;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.app-content {
		padding: 1rem 1rem calc(88px + env(safe-area-inset-bottom));
	}

	.update-banner {
		padding: 0.65rem 0.85rem;
	}
}

@media (max-width: 700px) {
	.update-banner {
		flex-direction: column;
		align-items: flex-start;
	}

	.update-banner__text {
		white-space: normal;
	}

	.admin-panel {
		padding: 0.9rem;
	}

	.admin-panel__auth-controls {
		grid-template-columns: 1fr;
	}

	.admin-panel__btn {
		justify-self: stretch;
		width: 100%;
	}
}

/* ── Dashboard full-page video background ───────────────────── */
.dashboard-page {
	position: relative;
	min-height: calc(100vh - 90px);
	max-width: none;
	display: flex;
	flex-direction: column;
}

.dashboard-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.dashboard-bg__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.dashboard-bg__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 100%),
		radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
}

/* ── Dashboard Hero title ───────────────────────────────────── */
.dashboard-hero {
	position: relative;
	z-index: 1;
	padding: 0 0 1.5rem;
}

.dashboard-hero__banner {
	position: relative;
	width: 100%;
	height: 280px;
	background-size: cover;
	background-position: center 35%;
	overflow: hidden;
	border-radius: 10px;
	margin-bottom: 0;
}

.dashboard-hero__banner-vignette {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.62) 100%),
		rgba(0,0,0,0.28);
	box-shadow: inset 0 0 80px rgba(0,0,0,0.45);
}

.dashboard-hero__banner-content {
	position: absolute;
	bottom: 1.6rem;
	left: 2rem;
	color: #fff;
}

.dashboard-hero__title {
	margin: 0 0 0.3rem;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 2.6rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-shadow: 0 2px 10px rgba(0,0,0,0.7);
	line-height: 1.1;
	color: #fff;
}

.dashboard-hero__sub {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	opacity: 0.82;
	text-shadow: 0 1px 4px rgba(0,0,0,0.6);
	color: #fff;
}

@media (max-width: 600px) {
	.dashboard-hero__banner {
		height: 180px;
	}
	.dashboard-hero__title {
		font-size: 1.5rem;
	}
}

/* ── Dashboard ──────────────────────────────────────────────── */
.dashboard-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	margin-bottom: 1rem;
}

.dashboard-schedule-row {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1rem;
}

.dashboard-schedule-widget {
	padding: 1rem;
	border-radius: 12px;
	background: rgba(10, 28, 18, 0.74);
	border: 1px solid rgba(100, 180, 130, 0.24);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.dashboard-schedule-widget__title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 0.85rem;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #7de0a8;
}

.dashboard-schedule-banner__pill {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: rgba(73, 181, 127, 0.24);
	border: 1px solid rgba(73, 181, 127, 0.45);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.38px;
	text-transform: uppercase;
	color: #d4f7e4;
}

.dashboard-schedule-banner__pill--umpiring {
	background: rgba(73, 154, 215, 0.22);
	border-color: rgba(73, 154, 215, 0.45);
	color: #d5edff;
}

.dashboard-schedule-banner__line {
	margin: 0;
	font-size: 0.87rem;
	color: #d1ebdd;
}

.dashboard-schedule-banner__line--strong {
	color: #ffffff;
	font-weight: 700;
}

.dashboard-schedule-banner__list {
	margin-top: 0.9rem;
	display: grid;
	gap: 0.6rem;
}

.dashboard-schedule-banner__event {
	padding: 0.78rem;
	border-radius: 10px;
	border: 1px solid rgba(120, 194, 148, 0.24);
	background: rgba(255, 255, 255, 0.04);
	display: grid;
	gap: 0.32rem;
}

.dashboard-schedule-banner__event-head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.dashboard-schedule-banner__today {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
	background: rgba(255, 200, 92, 0.22);
	border: 1px solid rgba(255, 200, 92, 0.5);
	color: #ffe9bf;
	font-size: 0.67rem;
	font-weight: 800;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.dashboard-results__list {
	display: grid;
	gap: 0.9rem;
	margin-top: 1rem;
}

.dashboard-results__row {
	display: grid;
	gap: 0.3rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid rgba(120, 194, 148, 0.16);
	perspective: 600px;
}

.dashboard-results__row:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.dashboard-results__meta {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	transform-origin: center;
	transform: rotateX(-90deg);
	opacity: 0;
}

.dashboard-results__meta--animate {
	/* Same visibility-gated, staggered reveal strategy as the leaderboard bars
	   and the record donut (BAR_ANIMATION_DURATION_MS / _ROW_STAGGER_MS in
	   DashboardPage.tsx), applied here as a flip instead of a fill/arc-draw. */
	animation: dashboard-results-flip-reveal 3s ease forwards;
}

@keyframes dashboard-results-flip-reveal {
	from {
		transform: rotateX(-90deg);
		opacity: 0;
	}
	to {
		transform: rotateX(0deg);
		opacity: 1;
	}
}

.dashboard-results__opponent {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #fff;
	font-weight: 700;
	font-size: 0.92rem;
}

.dashboard-results__date {
	flex-shrink: 0;
	color: #9fc4b0;
	font-size: 0.78rem;
}

.dashboard-results__detail {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #9fc4b0;
	font-size: 0.8rem;
	text-decoration: none;
}

a.dashboard-results__detail:hover,
a.dashboard-results__detail:focus-visible {
	color: #d4f7e4;
	text-decoration: underline;
}

.dashboard-team-record__donut {
	position: relative;
	width: 128px;
	height: 128px;
	margin: 0.25rem auto 0.85rem;
}

.dashboard-team-record__donut-ring {
	display: block;
}

.dashboard-team-record__donut-track {
	stroke: rgba(255, 255, 255, 0.1);
}

.dashboard-team-record__donut-center {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.1rem;
	text-align: center;
}

.dashboard-team-record__win-rate {
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.85rem;
	line-height: 1.1;
	color: #ffffff;
}

.dashboard-team-record__win-rate-label {
	font-size: 0.72rem;
	color: #9fc4b0;
}

.dashboard-team-record__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 0.9rem;
	margin-bottom: 0.5rem;
	font-size: 0.8rem;
	color: #c8e8d4;
}

.dashboard-team-record__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.dashboard-team-record__legend-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	flex-shrink: 0;
}

.dashboard-team-record__legend-dot--win {
	background: #2f8f62;
}

.dashboard-team-record__legend-dot--loss {
	background: #c44d3f;
}

.dashboard-team-record__legend-dot--tie {
	background: #7a5bb6;
}

.dashboard-team-record__legend-dot--no-result {
	background: #667788;
}

.dashboard-team-record__fixtures {
	text-align: center;
}

.dashboard-team-record__form {
	margin-top: 0.65rem;
	padding-top: 0.6rem;
	border-top: 1px solid rgba(120, 194, 148, 0.18);
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.dashboard-team-record__form-label {
	font-size: 0.78rem;
	color: #9fc4b0;
}

.dashboard-team-record__form-tokens {
	display: flex;
	gap: 0.35rem;
	flex: 1 1 auto;
	min-width: 0;
}

.dashboard-team-record__form-token {
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dashboard-team-record__form-token-short {
	display: none;
}

@media (max-width: 600px) {
	.dashboard-team-record__form-tokens {
		flex-wrap: wrap;
	}

	.dashboard-team-record__form-token {
		flex: 0 0 auto;
	}

	.dashboard-team-record__form-token-full {
		display: none;
	}

	.dashboard-team-record__form-token-short {
		display: inline;
	}
}

.availability-control {
	margin-top: 0.3rem;
	padding-top: 0.55rem;
	border-top: 1px solid rgba(120, 194, 148, 0.18);
	display: grid;
	gap: 0.4rem;
}

.availability-control__counts {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	font-size: 0.72rem;
	color: #9fc4b0;
	border: 0;
	background: none;
	padding: 0;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
}

.availability-control__counts:disabled {
	cursor: default;
}

.availability-control__toggle {
	margin-left: auto;
	color: #7de0a8;
	font-weight: 700;
	text-decoration: underline;
}

.availability-control__roster {
	display: grid;
	gap: 0.2rem;
	padding: 0.5rem 0.6rem;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}

.availability-control__roster-row {
	margin: 0;
	font-size: 0.76rem;
	color: #d1ebdd;
}

.availability-control__roster-label {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	font-size: 0.68rem;
}

.availability-control__roster-label--available {
	color: #7de0a8;
}

.availability-control__roster-label--maybe {
	color: #ffc85c;
}

.availability-control__roster-label--unavailable {
	color: #ff9a9a;
}

.availability-control__actions {
	display: flex;
	gap: 0.4rem;
}

.availability-control__btn {
	flex: 1 1 0;
	border: 1px solid rgba(120, 194, 148, 0.3);
	background: rgba(255, 255, 255, 0.04);
	color: #d1ebdd;
	padding: 0.35rem 0.4rem;
	border-radius: 8px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	cursor: pointer;
}

.availability-control__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.availability-control__btn--active.availability-control__btn--available {
	background: rgba(76, 175, 114, 0.28);
	border-color: #4caf72;
	color: #ffffff;
}

.availability-control__btn--active.availability-control__btn--maybe {
	background: rgba(255, 200, 92, 0.24);
	border-color: #ffc85c;
	color: #ffffff;
}

.availability-control__btn--active.availability-control__btn--unavailable {
	background: rgba(215, 80, 80, 0.24);
	border-color: #d75050;
	color: #ffffff;
}

.signin-panel__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1300;
	padding: 1rem;
}

.signin-panel {
	width: min(360px, 100%);
	background: #163424;
	border: 1px solid rgba(173, 206, 188, 0.2);
	border-radius: 12px;
	padding: 1rem;
	display: grid;
	gap: 0.65rem;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.signin-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.signin-panel__header h3 {
	margin: 0;
	font-size: 0.95rem;
	color: #ffffff;
}

.signin-panel__close {
	border: 0;
	background: none;
	color: #b9d3c6;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.signin-panel__input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.7rem;
	border: 1px solid #3f5f4f;
	border-radius: 8px;
	background: #0f2419;
	color: #ffffff;
	font-size: 0.88rem;
}

.signin-panel__submit {
	border: 0;
	background: #1a5a3d;
	color: #ffffff;
	padding: 0.55rem 0.8rem;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
}

.signin-panel__submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.signin-panel__sent {
	margin: 0;
	color: #d1ebdd;
	font-size: 0.88rem;
}

.signin-panel__sent a {
	color: #ffffff;
	font-weight: 700;
}

.signin-panel__error {
	margin: 0;
	color: #ff9a9a;
	font-size: 0.82rem;
}

.dashboard-card {
	background: rgba(10, 28, 18, 0.72);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(100, 180, 130, 0.2);
	border-radius: 12px;
	padding: 1rem;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.dashboard-card__title {
	margin: 0 0 0.75rem;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #7de0a8;
}

.dashboard-card__empty {
	padding: 0.65rem;
	color: #98bda8;
	font-size: 0.88rem;
	background: rgba(255,255,255,0.06);
	border: 1px dashed rgba(100,180,130,0.3);
	border-radius: 8px;
}

.dashboard-bars {
	display: grid;
	gap: 0.65rem;
}

.dashboard-bars__row {
	display: grid;
	gap: 0.35rem;
}

.dashboard-bars__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.7rem;
	font-size: 0.85rem;
}

.dashboard-bars__name-group {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.dashboard-bars__name {
	color: #c8e8d4;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-decoration: none;
}

.dashboard-bars__name:hover,
.dashboard-bars__name:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.dashboard-bars__matches {
	color: #98bda8;
	font-size: 0.72rem;
	font-weight: 500;
}

.dashboard-bars__value {
	color: #fff;
	font-weight: 700;
	flex-shrink: 0;
}

.dashboard-bars__track {
	background: rgba(255,255,255,0.12);
	border-radius: 999px;
	height: 10px;
	overflow: hidden;
}

.dashboard-bars__fill {
	height: 100%;
	min-width: 2px;
	border-radius: 999px;
	transform-origin: left center;
	transform: scaleX(0);
}

.dashboard-bars__fill--animate {
	/* Duration kept in sync with BAR_ANIMATION_DURATION_MS in DashboardPage.tsx,
	   which drives the paired number count-up (CSS can't animate text content).
	   Only applied once IntersectionObserver confirms the row is on screen, so
	   the reveal doesn't burn itself out below the fold before anyone scrolls to it. */
	animation: dashboard-bar-reveal 3s ease forwards;
}

@keyframes dashboard-bar-reveal {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

.dashboard-bars__fill--wickets {
	background: linear-gradient(90deg, #2f8f62, #49b57f);
}

.dashboard-bars__fill--strike-rate {
	background: linear-gradient(90deg, #2f6ea6, #499ad7);
}

.dashboard-bars__fill--runs {
	background: linear-gradient(90deg, #9c5e19, #d7882f);
}

.dashboard-bars__fill--economy {
	background: linear-gradient(90deg, #6f4ea2, #9071c0);
}

@media (max-width: 1100px) {
	.dashboard-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.dashboard-grid {
		grid-template-columns: 1fr;
	}

	.dashboard-schedule-row {
		grid-template-columns: 1fr;
	}
}

.dashboard-footer {
	position: relative;
	z-index: 1;
	margin-top: auto;
	padding: 1rem 0.9rem 0.75rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	border-radius: 10px;
	background: rgba(10, 28, 18, 0.68);
	border: 1px solid rgba(100, 180, 130, 0.2);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.dashboard-footer__item {
	font-size: 0.82rem;
	font-weight: 600;
	color: #c8e8d4;
	letter-spacing: 0.2px;
}

@media (max-width: 700px) {
	.dashboard-footer {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ── Page ───────────────────────────────────────────────────── */
.page {
	max-width: 100%;
}

.page__header {
	margin-bottom: 1.25rem;
}

.page__title {
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.6rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #1a3a2a;
	margin: 0 0 0.25rem;
}

.page__description {
	color: #555;
	margin: 0;
	font-size: 0.875rem;
}

.team-stats-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem;
	margin-bottom: 1rem;
}

.team-stats-summary__card,
.team-stats-insight {
	background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
	border: 1px solid #d7e7dd;
	border-radius: 10px;
	padding: 1rem;
	box-shadow: 0 6px 18px rgba(26, 58, 42, 0.08);
}

.team-stats-summary__label,
.team-stats-insight__title {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.45px;
	color: #5f7768;
}

.team-stats-summary__value,
.team-stats-insight__value {
	display: block;
	margin-bottom: 0.25rem;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.45rem;
	line-height: 1.2;
	color: #1a3a2a;
	word-break: break-word;
}

.team-stats-summary__value--form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	font-family: 'Barlow', sans-serif;
	font-size: 1rem;
	font-weight: 700;
}

.team-stats-summary__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.team-stats-summary__pill {
	display: inline-flex;
	align-items: center;
	padding: 0.32rem 0.65rem;
	border-radius: 999px;
	background: #1a3a2a;
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.35px;
	text-transform: uppercase;
	white-space: nowrap;
}

.team-stats-summary__card--record {
	background: linear-gradient(180deg, #f7fbf8 0%, #edf7f1 100%);
}

.team-stats-record-table-wrap {
	margin-bottom: 0.45rem;
	border: 1px solid #d4e5db;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
}

.team-stats-record-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.team-stats-record-table th,
.team-stats-record-table td {
	width: 25%;
	text-align: center;
	padding: 0.7rem 0.35rem;
	border-right: 1px solid #e1ede5;
}

.team-stats-record-table th:last-child,
.team-stats-record-table td:last-child {
	border-right: 0;
}

.team-stats-record-table th {
	background: #1a3a2a;
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.team-stats-record-table td {
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.2rem;
	color: #1a3a2a;
	background: #ffffff;
}

.team-stats-summary__meta,
.team-stats-insight__meta {
	margin: 0;
	font-size: 0.82rem;
	color: #5e6f65;
	line-height: 1.4;
}

.team-stats-form,
.team-stats-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	padding: 0.34rem 0.6rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.35px;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
}

.team-stats-form--win,
.team-stats-badge--win {
	background: #2f8f62;
}

.team-stats-form--loss,
.team-stats-badge--loss {
	background: #c44d3f;
}

.team-stats-form--tie,
.team-stats-badge--tie {
	background: #7a5bb6;
}

.team-stats-form--no-result,
.team-stats-badge--no-result {
	background: #667788;
}

.team-stats-form--upcoming,
.team-stats-badge--upcoming {
	background: #a68b3f;
}

.team-stats-insights {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem;
	margin-bottom: 1rem;
}

.team-stats-insight {
	min-height: 134px;
}

.team-performance-panel {
	margin-bottom: 1rem;
}

.team-performance-panel__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 0.8rem;
}

.team-performance-panel__tab {
	border: 1px solid #cfe1d8;
	background: #ffffff;
	color: #1a3a2a;
	padding: 0.65rem 0.95rem;
	border-radius: 999px;
	font-size: 0.84rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.team-performance-panel__tab:hover,
.team-performance-panel__tab--active {
	background: #1a3a2a;
	border-color: #1a3a2a;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(26, 58, 42, 0.14);
}

.team-performance-chart {
	background: linear-gradient(180deg, #ffffff 0%, #f5faf7 100%);
	border: 1px solid #d7e7dd;
	border-radius: 12px;
	padding: 1rem;
	box-shadow: 0 6px 18px rgba(26, 58, 42, 0.08);
}

.team-performance-chart__head {
	margin-bottom: 0.9rem;
}

.team-performance-chart__title {
	margin: 0 0 0.3rem;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.1rem;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #1a3a2a;
}

.team-performance-chart__description {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: #5c6f64;
}

.team-performance-chart__empty {
	padding: 0.85rem;
	border-radius: 8px;
	background: #f3f8f5;
	color: #5a6d63;
	font-size: 0.85rem;
}

.team-performance-chart__rows {
	display: grid;
	gap: 0.9rem;
}

.team-performance-chart__row {
	display: grid;
	gap: 0.45rem;
}

.team-performance-chart__meta {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
}

.team-performance-chart__name {
	font-size: 0.92rem;
	font-weight: 700;
	color: #173525;
}

.team-performance-chart__record {
	font-size: 0.76rem;
	font-weight: 600;
	color: #62816f;
	text-transform: uppercase;
	letter-spacing: 0.35px;
}

.team-performance-chart__summary {
	display: grid;
	justify-items: end;
	font-size: 0.76rem;
	font-weight: 600;
	color: #4e6959;
	white-space: nowrap;
}

.team-performance-chart__bar-track,
.team-performance-chart__stack {
	display: flex;
	overflow: hidden;
	border-radius: 999px;
	height: 10px;
	background: #e3eee7;
}

.team-performance-chart__bar-fill {
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #f0ad2d, #ffd16b);
}

.team-performance-chart__stack {
	height: 8px;
	background: #edf4f0;
}

.team-performance-chart__segment--win {
	background: #2f8f62;
}

.team-performance-chart__segment--loss {
	background: #c44d3f;
}

.team-performance-chart__segment--tie {
	background: #7a5bb6;
}

.team-performance-chart__segment--no-result {
	background: #667788;
}

.team-stats-controls {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.team-stats-controls__search {
	max-width: 560px;
}

.team-stats-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.team-stats-filter {
	border: 1px solid #cfe1d8;
	background: #fff;
	color: #1a3a2a;
	padding: 0.55rem 0.8rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.team-stats-filter:hover,
.team-stats-filter--active {
	background: #1a3a2a;
	border-color: #1a3a2a;
	color: #fff;
}

.team-stats-tournament-filter {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.team-stats-tournament-filter__label {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #4e6959;
}

.team-stats-tournament-select {
	max-width: 360px;
	width: 100%;
	padding: 0.55rem 0.75rem;
	border-radius: 8px;
	border: 1px solid #c7dacf;
	background: #fff;
	color: #1a3a2a;
	font-size: 0.88rem;
	font-weight: 600;
	outline: none;
	cursor: pointer;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.team-stats-tournament-select:focus {
	border-color: #72a68d;
	box-shadow: 0 0 0 3px rgba(114, 166, 141, 0.2);
}

.team-stats-tournament-ribbon {
	display: inline-block;
	max-width: 220px;
	padding: 0.3rem 0.6rem;
	border-radius: 6px;
	background: #fff3d9;
	border: 1px solid #f0ad2d;
	color: #8a5a09;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: middle;
}

.team-stats-matchid-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2rem;
	padding: 0.3rem 0.65rem;
	border-radius: 6px;
	background: #eaf3ee;
	border: 1px solid #9cc4ac;
	color: #1a3a2a;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	vertical-align: middle;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.team-stats-matchid-link:hover,
.team-stats-matchid-link:focus-visible {
	background: #1a3a2a;
	border-color: #1a3a2a;
	color: #fff;
}

.team-stats-matchid-link--static {
	background: #f4f7f5;
	border-color: #d7e7dd;
	color: #5e6f65;
	cursor: default;
}

.team-stats-message {
	min-width: 320px;
	white-space: normal;
	line-height: 1.45;
}

.team-stats-empty {
	text-align: center;
	color: #5a6d63;
	padding: 1rem 0.75rem;
}

@media (max-width: 1100px) {
	.team-stats-summary,
	.team-stats-insights {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.team-stats-summary,
	.team-stats-insights {
		grid-template-columns: 1fr;
	}

	.team-stats-summary__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.team-performance-chart__meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.team-performance-chart__summary {
		justify-items: start;
		white-space: normal;
	}
}

/* ── Batting Summary Form Banner ───────────────────────────── */
.batting-form-banner {
	margin: 0 0 1rem;
	border-radius: 10px;
	padding: 0.95rem;
	background: linear-gradient(135deg, #1a3a2a 0%, #27573f 100%);
	border: 1px solid rgba(69, 143, 101, 0.35);
	box-shadow: 0 8px 20px rgba(10, 36, 25, 0.2);
	color: #ffffff;
}

.batting-form-banner--state {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-size: 0.9rem;
}

.batting-form-banner--error {
	background: #fff0ee;
	color: #9c2f23;
	border-color: #f1b5af;
}

.batting-form-banner__head {
	margin-bottom: 0.85rem;
}

.batting-form-banner__title {
	margin: 0;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.2rem;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.batting-form-banner__sub {
	margin: 0.25rem 0 0;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.82);
}

.batting-form-banner__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.6rem;
}

.batting-form-banner__card {
	border-radius: 8px;
	padding: 0.65rem 0.7rem;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	min-height: 88px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.2rem;
}

.batting-form-banner__metric {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.35px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.74);
}

.batting-form-banner__player {
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.batting-form-banner__value {
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.15;
	color: #d7f7e5;
}

.batting-form-banner__empty {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1024px) {
	.batting-form-banner__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.batting-form-banner__grid {
		grid-template-columns: 1fr;
	}
}

/* ── States ─────────────────────────────────────────────────── */
.page__state {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1.5rem;
	color: #555;
	font-size: 0.9rem;
}

.page__state--error {
	color: #c0392b;
	background: #fff0ee;
	border-radius: 6px;
	border: 1px solid #f5c6c2;
}

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
	width: 18px;
	height: 18px;
	border: 2px solid #ccc;
	border-top-color: #1a3a2a;
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
	flex-shrink: 0;
}

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

/* ── Table ──────────────────────────────────────────────────── */
.table-wrapper {
	overflow-x: auto;
	border-radius: 8px;
	border: 1px solid #dde3e0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 600px;
}

.data-table th {
	background: #1a3a2a;
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 10px 14px;
	text-align: left;
	white-space: nowrap;
}

.sortable-th {
	cursor: pointer;
	user-select: none;
}

.sortable-th:hover {
	background: #254d38;
}

.sortable-th.sort-active {
	background: #2e6b4a;
}

.sort-arrow {
	opacity: 0.6;
	font-size: 0.75em;
}

.sortable-th.sort-active .sort-arrow {
	opacity: 1;
}

.data-table td {
	padding: 9px 14px;
	font-size: 0.875rem;
	color: #222;
	vertical-align: middle;
	white-space: nowrap;
}

.row-even {
	background: #ffffff;
}

.row-odd {
	background: #f3f8f5;
}

.data-table tbody tr:hover {
	background: #e6f4ec;
}

.batting-points-cell {
	font-weight: 700;
	color: #1a3a2a;
}

.dcl-profile-btn {
	display: inline-block;
	padding: 5px 12px;
	background: #1a3a2a;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	border-radius: 4px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s;
}

.dcl-profile-btn:hover {
	background: #2e6b4a;
}

/* ── Batting History Player List ────────────────────────────── */
.player-list-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 0.7rem;
}

.player-search-wrap {
	margin: 0 0 0.9rem;
	display: grid;
	gap: 0.45rem;
}

.player-search-input {
	box-sizing: border-box;
	max-width: 420px;
	width: 100%;
	padding: 0.62rem 0.75rem;
	border-radius: 8px;
	border: 1px solid #c7dacf;
	background: #fff;
	color: #1a3a2a;
	font-size: 0.92rem;
	outline: none;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.player-search-input:focus {
	border-color: #72a68d;
	box-shadow: 0 0 0 3px rgba(114, 166, 141, 0.2);
}

.player-search-meta {
	font-size: 0.82rem;
	color: #5a6d63;
}

.opponent-search-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.9rem;
	margin-bottom: 1rem;
}

.opponent-search-wrap {
	position: relative;
	flex: 1 1 320px;
	max-width: 420px;
}

.opponent-tournament-filter {
	display: grid;
	gap: 0.3rem;
	flex: 0 0 auto;
}

.opponent-tournament-filter__label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.35px;
	color: #5f7768;
}

.opponent-tournament-filter__select {
	box-sizing: border-box;
	min-width: 220px;
	padding: 0.6rem 0.75rem;
	border-radius: 8px;
	border: 1px solid #c7dacf;
	background: #fff;
	color: #1a3a2a;
	font-size: 0.9rem;
	outline: none;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.opponent-tournament-filter__select:focus {
	border-color: #72a68d;
	box-shadow: 0 0 0 3px rgba(114, 166, 141, 0.2);
}

@media (max-width: 600px) {
	.opponent-search-row {
		flex-direction: column;
		align-items: stretch;
	}

	.opponent-search-wrap {
		/* In a column-direction flex container, flex-basis sizes height instead
		   of width — reset it here so the search box doesn't stretch to 320px tall. */
		flex: 0 0 auto;
		max-width: none;
	}

	.opponent-tournament-filter__select {
		min-width: 0;
		width: 100%;
	}
}

.opponent-search-dropdown {
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 0;
	right: 0;
	z-index: 20;
	max-height: 260px;
	overflow-y: auto;
	background: #ffffff;
	border: 1px solid #c7dacf;
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(26, 58, 42, 0.14);
}

.opponent-search-dropdown__item {
	box-sizing: border-box;
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.6rem 0.75rem;
	border: none;
	border-bottom: 1px solid #eef4f0;
	background: transparent;
	color: #1a3a2a;
	font-size: 0.9rem;
	cursor: pointer;
}

.opponent-search-dropdown__item:last-child {
	border-bottom: none;
}

.opponent-search-dropdown__item:hover {
	background: #f4faf6;
}

.opponent-search-dropdown__item--muted {
	color: #5a6d63;
	cursor: default;
}

.opponent-search-dropdown__item--muted:hover {
	background: transparent;
}

.opponent-leaderboards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
	margin-bottom: 1rem;
}

.opponent-leaderboard-card {
	/* Grid items default to min-width: auto, so without this the track refuses to
	   shrink below the card's min-content width (a long player name), overflowing
	   the page on narrow screens instead of respecting the 1fr track. */
	min-width: 0;
	background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
	border: 1px solid #d7e7dd;
	border-radius: 10px;
	padding: 1rem;
	box-shadow: 0 6px 18px rgba(26, 58, 42, 0.08);
}

.opponent-leaderboard-card__title {
	margin: 0 0 0.75rem;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1rem;
	letter-spacing: 0.4px;
	color: #1a3a2a;
}

.opponent-leaderboard-card__empty {
	padding: 0.65rem;
	color: #5a6d63;
	font-size: 0.88rem;
	background: #f4faf6;
	border: 1px dashed #c7dacf;
	border-radius: 8px;
}

.opponent-leaderboard-rows {
	display: grid;
	gap: 0.6rem;
	/* Every level below is a grid/flex item that would otherwise refuse to shrink
	   past its content's natural width (min-width: auto is the default) — setting
	   min-width: 0 down the chain is what lets a long player name actually truncate
	   instead of forcing the whole card wider than its column. */
	min-width: 0;
}

.opponent-leaderboard-row {
	display: grid;
	gap: 0.3rem;
	min-width: 0;
}

.opponent-leaderboard-row__meta {
	display: flex;
	justify-content: space-between;
	gap: 0.7rem;
	font-size: 0.85rem;
	min-width: 0;
}

.opponent-leaderboard-row__name {
	/* Flex items default to min-width: auto, which lets long content (e.g. a very
	   long player name) push past its container instead of truncating — min-width: 0
	   is required for text-overflow: ellipsis to actually take effect here. */
	min-width: 0;
	color: #33473c;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.opponent-leaderboard-row__value {
	color: #1a3a2a;
	font-weight: 700;
	flex-shrink: 0;
}

.opponent-leaderboard-row__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 0.7rem;
	font-size: 0.74rem;
	color: #5a6d63;
}

.opponent-leaderboard-row__stat-label {
	font-weight: 700;
	color: #7c8f83;
}

.opponent-leaderboard-row__track {
	min-width: 0;
	background: #e6efe9;
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
}

.opponent-leaderboard-row__fill {
	height: 100%;
	min-width: 2px;
	border-radius: 999px;
}

.opponent-leaderboard-row__fill--runs {
	background: linear-gradient(90deg, #9c5e19, #d7882f);
}

.opponent-leaderboard-row__fill--wickets {
	background: linear-gradient(90deg, #2f8f62, #49b57f);
}

@media (max-width: 700px) {
	.opponent-leaderboards {
		grid-template-columns: 1fr;
	}
}

.opponent-stat-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.6rem;
	margin-top: 0.4rem;
}

.opponent-stat-pair__item {
	background: #f4faf6;
	border: 1px solid #e1ede5;
	border-radius: 8px;
	padding: 0.5rem 0.6rem;
	min-width: 0;
}

.opponent-stat-pair__item-label {
	display: block;
	margin-bottom: 0.2rem;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: #5f7768;
}

.opponent-stat-pair__item-value {
	display: block;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.1rem;
	line-height: 1.2;
	color: #1a3a2a;
}

.opponent-stat-pair__item-sub {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.72rem;
	color: #5a6d63;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.opponent-expand-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border-radius: 6px;
	border: 1px solid #c7dacf;
	background: #ffffff;
	color: #1a3a2a;
	font-size: 0.65rem;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.opponent-expand-btn:hover {
	background: #f4faf6;
}

.opponent-expand-btn--open {
	transform: rotate(90deg);
}

.data-table td.opponent-phase-row {
	background: #f4faf6;
	padding: 0.9rem 1rem 1.15rem;
	white-space: normal;
}

.opponent-phase-breakdown {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
}

.opponent-phase-breakdown__empty {
	color: #5a6d63;
	font-size: 0.85rem;
}

.opponent-phase-panel {
	min-width: 0;
	background: #ffffff;
	border: 1px solid #d7e7dd;
	border-radius: 8px;
	padding: 0.75rem 0.9rem;
}

.opponent-phase-panel__title {
	margin: 0 0 0.5rem;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 0.92rem;
	font-weight: 400;
	color: #1a3a2a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.opponent-phase-panel__empty {
	color: #5a6d63;
	font-size: 0.82rem;
}

.opponent-phase-panel__rows {
	display: grid;
}

.opponent-phase-panel__row {
	display: flex;
	justify-content: space-between;
	gap: 0.6rem;
	padding: 0.4rem 0;
	border-top: 1px solid #eef4f0;
	font-size: 0.85rem;
	min-width: 0;
}

.opponent-phase-panel__row:first-child {
	border-top: none;
	padding-top: 0;
}

.opponent-phase-panel__phase {
	color: #5a6d63;
}

.opponent-phase-panel__score {
	font-weight: 700;
	color: #1a3a2a;
	flex-shrink: 0;
}

@media (max-width: 480px) {
	.opponent-phase-breakdown {
		grid-template-columns: 1fr;
	}
}

.opponent-phase-aggregate {
	display: grid;
	gap: 0.05rem;
	margin-top: 0.4rem;
}

.opponent-phase-aggregate__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 0.6rem;
	align-items: center;
	min-width: 0;
	padding: 0.32rem 0;
	border-top: 1px solid #eef4f0;
	font-size: 0.85rem;
}

.opponent-phase-aggregate__row:first-child {
	border-top: none;
}

.opponent-phase-aggregate__row--head {
	padding-top: 0;
	padding-bottom: 0.3rem;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: #5f7768;
}

.opponent-phase-aggregate__phase {
	color: #33473c;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.opponent-phase-aggregate__value {
	font-weight: 700;
	color: #1a3a2a;
	text-align: right;
	min-width: 3.4rem;
}

.opponent-phase-aggregate__row--head .opponent-phase-aggregate__value {
	font-weight: 700;
	color: #5f7768;
}

.player-chip {
	border: 1px solid #cfe1d8;
	background: #ffffff;
	color: #1a3a2a;
	padding: 0.7rem 0.9rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.player-chip:hover {
	transform: translateY(-1px);
	border-color: #7fab93;
	box-shadow: 0 2px 8px rgba(26, 58, 42, 0.12);
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(8, 18, 13, 0.45);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1.5rem;
	z-index: 999;
}

.modal-card {
	width: min(1200px, 100%);
	max-height: 86vh;
	overflow: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
	padding: 1rem;
}

.modal-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.9rem;
}

.modal-card__title {
	margin: 0;
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #1a3a2a;
}

.modal-card__close {
	border: 1px solid #c6d8cf;
	background: #f2f7f4;
	color: #1a3a2a;
	border-radius: 6px;
	padding: 0.45rem 0.75rem;
	font-weight: 600;
	cursor: pointer;
}

.modal-card__close:hover {
	background: #e6f0eb;
}

/* ── Recent Performance Card ────────────────────────────────── */
.recent-perf-card {
	background: linear-gradient(135deg, #1a3a2a 0%, #2e6b4a 100%);
	border-radius: 10px;
	padding: 1rem 1.2rem;
	margin-bottom: 1rem;
}

.recent-perf-card__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem 0.8rem;
	margin-bottom: 0.85rem;
}

.recent-perf-card__player {
	font-family: 'Racing Sans One', sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #fff;
}

.recent-perf-card__label {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: rgba(255,255,255,0.65);
}

.recent-perf-stats {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.5rem;
}

.recent-perf-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 7px;
	padding: 0.6rem 0.4rem;
	min-width: 0;
	grid-column: span 2;
}

.recent-perf-stat__val {
	font-size: 1.3rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}

.recent-perf-stat__lbl {
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: rgba(255,255,255,0.7);
	margin-top: 0.25rem;
	text-align: center;
	white-space: nowrap;
}

.recent-perf-stat--points {
	align-items: center;
	padding: 0.6rem 0.4rem;
	text-align: center;
	grid-column: span 3;
}

.recent-perf-stat--points .recent-perf-stat__lbl {
	text-align: center;
	white-space: nowrap;
}

@media (max-width: 1024px) {
	.recent-perf-stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.recent-perf-stat {
		grid-column: span 2;
	}

	.recent-perf-stat--points {
		grid-column: span 2;
	}
}

@media (max-width: 600px) {
	.recent-perf-stats {
		grid-template-columns: 1fr;
	}

	.recent-perf-stat,
	.recent-perf-stat--points {
		grid-column: span 1;
	}
}

@media (max-width: 360px) {
	.recent-perf-stats {
		grid-template-columns: 1fr;
	}
}

/* ── Chat ───────────────────────────────────────────────────── */
.chat-panel {
	display: grid;
	gap: 0.9rem;
	max-width: 780px;
	margin-inline: auto;
}

.chat-panel__messages {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	min-height: 320px;
	max-height: 60vh;
	overflow-y: auto;
	padding: 1rem;
	border: 1px solid #dbe6df;
	border-radius: 12px;
	background: #ffffff;
}

.chat-panel__empty {
	color: #555;
	font-size: 0.9rem;
	display: grid;
	gap: 0.9rem;
}

.chat-panel__intro {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
}

.chat-panel__intro-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid #d8ecdf;
}

.chat-panel__intro-bubble {
	background: #f2f6f3;
	border-radius: 12px;
	border-bottom-left-radius: 3px;
	padding: 0.75rem 1rem;
	color: #123a2a;
	font-size: 0.92rem;
	line-height: 1.55;
}

.chat-panel__intro-bubble strong {
	color: #1a5a3d;
}

.chat-panel__suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.chat-panel__suggestion {
	padding: 0.5rem 0.8rem;
	border: 1px solid #c9d9cf;
	border-radius: 999px;
	background: #f9fcfa;
	color: #123a2a;
	font-size: 0.85rem;
	font-family: Barlow, sans-serif;
	cursor: pointer;
}

.chat-panel__suggestion:hover {
	background: #eef6f1;
}

.chat-bubble-row {
	display: flex;
	gap: 0.5rem;
	align-items: flex-end;
	max-width: 85%;
}

.chat-bubble-row--user {
	align-self: flex-end;
}

.chat-bubble-row--assistant {
	align-self: flex-start;
}

.chat-avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.chat-bubble {
	min-width: 0;
	padding: 0.65rem 0.9rem;
	border-radius: 12px;
	font-size: 0.92rem;
	line-height: 1.4;
	white-space: pre-wrap;
	word-break: break-word;
}

.chat-bubble--user {
	background: #1a5a3d;
	color: #ffffff;
	border-bottom-right-radius: 3px;
}

.chat-bubble--assistant {
	background: #f2f6f3;
	color: #123a2a;
	border-bottom-left-radius: 3px;
}

.chat-panel__composer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.7rem;
	align-items: center;
}

/* ── Help page ──────────────────────────────────────────────── */
.help-page {
	position: relative;
	min-height: calc(100vh - 90px);
	max-width: none;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	padding-bottom: 1.5rem;
}

.help-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	background: radial-gradient(ellipse at 30% 15%, #0f2a1f 0%, #060f0b 55%, #030705 100%);
}

.help-bg__aurora {
	position: absolute;
	inset: -30%;
	background: conic-gradient(from 0deg at 50% 50%,
		rgba(47, 143, 98, 0.35),
		rgba(77, 216, 255, 0.22),
		rgba(163, 91, 255, 0.22),
		rgba(255, 107, 203, 0.16),
		rgba(47, 143, 98, 0.35));
	filter: blur(60px);
	animation: help-aurora-shift 26s linear infinite;
	opacity: 0.55;
}

.help-bg__stars {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.7) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 70% 60%, rgba(255,255,255,0.55) 50%, transparent 51%),
		radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.6) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 85% 20%, rgba(255,255,255,0.5) 50%, transparent 51%),
		radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.65) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 10% 70%, rgba(255,255,255,0.5) 50%, transparent 51%),
		radial-gradient(1px 1px at 92% 82%, rgba(255,255,255,0.6) 50%, transparent 51%);
	background-size: 100% 100%;
	animation: help-stars-twinkle 4.5s ease-in-out infinite;
}

.help-bg__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(125, 224, 168, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(125, 224, 168, 0.06) 1px, transparent 1px);
	background-size: 42px 42px;
	mask-image: radial-gradient(ellipse at 50% 20%, rgba(0,0,0,0.9) 0%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 20%, rgba(0,0,0,0.9) 0%, transparent 70%);
}

.help-bg__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(50px);
	animation: help-orb-float 12s ease-in-out infinite;
}

.help-bg__orb--a {
	top: 8%;
	left: 8%;
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, rgba(77, 216, 255, 0.35) 0%, transparent 70%);
	animation-duration: 14s;
}

.help-bg__orb--b {
	top: 45%;
	right: 6%;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(163, 91, 255, 0.3) 0%, transparent 70%);
	animation-duration: 18s;
	animation-delay: -4s;
}

.help-bg__orb--c {
	bottom: 4%;
	left: 30%;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(125, 224, 168, 0.35) 0%, transparent 70%);
	animation-duration: 16s;
	animation-delay: -8s;
}

.help-bg__scanline {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(125, 224, 168, 0.8), rgba(77, 216, 255, 0.8), transparent);
	box-shadow: 0 0 16px rgba(125, 224, 168, 0.6);
	animation: help-scanline-move 7s ease-in-out infinite;
}

@keyframes help-aurora-shift {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes help-stars-twinkle {
	0%, 100% { opacity: 0.55; }
	50% { opacity: 0.95; }
}

@keyframes help-orb-float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(24px, -30px) scale(1.08); }
}

@keyframes help-scanline-move {
	0% { top: -5%; opacity: 0; }
	12% { opacity: 1; }
	88% { opacity: 1; }
	100% { top: 105%; opacity: 0; }
}

.help-hero {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 2.5rem 1rem 1rem;
}

.help-hero__eyebrow {
	display: inline-block;
	margin-bottom: 0.85rem;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	border: 1px solid rgba(125, 224, 168, 0.4);
	background: rgba(125, 224, 168, 0.08);
	color: #a8f0c6;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}

.help-hero__title {
	margin: 0 0 0.75rem;
	font-family: 'Orbitron', 'Racing Sans One', sans-serif;
	font-weight: 900;
	font-size: 3rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	line-height: 1.1;
	background: linear-gradient(90deg, #7de0a8, #4dd8ff, #a35bff, #7de0a8);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: help-title-shimmer 6s linear infinite;
	filter: drop-shadow(0 0 18px rgba(125, 224, 168, 0.35));
}

@keyframes help-title-shimmer {
	to { background-position: 200% center; }
}

.help-hero__sub {
	max-width: 520px;
	margin: 0 auto;
	color: #cfe9db;
	font-size: 0.98rem;
	line-height: 1.5;
	opacity: 0.9;
}

.help-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.help-reveal--visible {
	opacity: 1;
	transform: translateY(0);
}

.help-section {
	position: relative;
	z-index: 1;
	padding: 0 1rem;
}

.help-card {
	max-width: 760px;
	margin: 0 auto;
	padding: 1.5rem 1.6rem;
	border-radius: 16px;
	background: rgba(10, 28, 18, 0.72);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(100, 180, 130, 0.22);
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
	position: relative;
	overflow: hidden;
}

.help-card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(135deg, rgba(125, 224, 168, 0.55), rgba(77, 216, 255, 0.15) 40%, transparent 70%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.help-card__title {
	margin: 0 0 0.85rem;
	font-family: 'Orbitron', sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #7de0a8;
	text-shadow: 0 0 14px rgba(125, 224, 168, 0.35);
}

.help-card__text {
	margin: 0;
	color: #d1ebdd;
	font-size: 0.95rem;
	line-height: 1.65;
}

.help-highlight {
	color: #a8f0c6;
	text-shadow: 0 0 10px rgba(125, 224, 168, 0.4);
}

.help-topics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.help-topic {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	padding: 0.9rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(120, 194, 148, 0.16);
}

.help-topic__index {
	flex-shrink: 0;
	font-family: 'Orbitron', sans-serif;
	font-size: 1.3rem;
	font-weight: 700;
	color: rgba(125, 224, 168, 0.4);
	line-height: 1;
}

.help-topic__title {
	display: block;
	margin-bottom: 0.3rem;
	color: #fff;
	font-size: 0.92rem;
	font-weight: 700;
}

.help-topic__text {
	margin: 0;
	color: #a9c9b8;
	font-size: 0.84rem;
	line-height: 1.5;
}

.help-contact-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.9rem;
}

.help-contact-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	padding: 1.1rem 0.75rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(120, 194, 148, 0.2);
	color: #d1ebdd;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.help-contact-tile:hover,
.help-contact-tile:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(125, 224, 168, 0.6);
	background: rgba(125, 224, 168, 0.08);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 22px rgba(125, 224, 168, 0.25);
}

.help-contact-tile__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(77, 216, 255, 0.18), rgba(125, 224, 168, 0.08));
	border: 1px solid rgba(125, 224, 168, 0.35);
	color: #a8f0c6;
}

.help-contact-tile__icon svg {
	width: 20px;
	height: 20px;
}

.help-contact-tile__label {
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	color: #9fc4b0;
}

.help-contact-tile__value {
	font-size: 0.82rem;
	font-weight: 600;
	color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.help-footer {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2rem;
	padding: 1rem 1rem 0.5rem;
	text-align: center;
}

.help-footer__brand {
	font-family: 'Orbitron', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 3px;
	color: #7de0a8;
	text-shadow: 0 0 12px rgba(125, 224, 168, 0.4);
}

.help-footer__tagline {
	font-size: 0.76rem;
	color: #7f9c8b;
}

@media (max-width: 700px) {
	.help-hero {
		padding: 1.6rem 0.5rem 0.5rem;
	}

	.help-hero__title {
		font-size: 2.1rem;
	}

	.help-hero__sub {
		font-size: 0.88rem;
	}

	.help-card {
		padding: 1.2rem 1.1rem;
	}

	.help-topics {
		grid-template-columns: 1fr;
	}

	.help-contact-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 420px) {
	.help-hero__title {
		font-size: 1.7rem;
	}

	.help-contact-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.help-bg__aurora,
	.help-bg__stars,
	.help-bg__orb,
	.help-bg__scanline,
	.help-hero__title {
		animation: none;
	}

	.help-reveal {
		transition: none;
	}
}

