:root {
	--sl-bg: #111312;
	--sl-panel: #1a1d1b;
	--sl-panel-2: #232720;
	--sl-text: #f7f4e8;
	--sl-muted: #b6b3a7;
	--sl-line: rgba(247, 244, 232, 0.14);
	--sl-accent: #e5ff4f;
	--sl-accent-2: #38d9a9;
	--sl-danger: #ff6b6b;
	--sl-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

* {
	box-sizing: border-box;
}

html {
	background: var(--sl-bg);
	min-height: 100%;
	transition: background 0.12s ease;
}

body {
	margin: 0;
	min-height: 100%;
	background: radial-gradient(circle at top left, rgba(56, 217, 169, 0.12), transparent 34%), var(--sl-bg);
	color: var(--sl-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0;
	transition: background 0.12s ease;
}

html.sl-button-test-active,
body.sl-button-test-active {
	background: var(--sl-accent-2);
}

button,
input {
	font: inherit;
}

.site {
	min-height: 100vh;
	transition: background 0.12s ease;
}

.sl-app {
	min-height: 100vh;
	padding: 18px 14px 36px;
	transition: background 0.12s ease;
}

body.sl-button-test-active .site,
.sl-app.sl-button-test-active {
	background: var(--sl-accent-2);
}

.sl-focus-catcher {
	position: fixed;
	left: -200vw;
	top: 0;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.sl-shell {
	width: min(100%, 860px);
	margin: 0 auto;
}

.sl-hero {
	display: grid;
	gap: 22px;
	padding: 18px 0 24px;
}

.sl-brand {
	display: flex;
	align-items: center;
	gap: 13px;
}

.sl-brand__logo,
.sl-brand__mark {
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	border-radius: 8px;
	object-fit: cover;
}

.sl-brand__mark {
	display: grid;
	place-items: center;
	background: var(--sl-accent);
	color: #111312;
	font-weight: 900;
}

.sl-brand__mark .sl-step-icon {
	width: 40px;
	height: 40px;
}

.sl-brand__eyebrow,
.sl-result__label {
	margin: 0 0 4px;
	color: var(--sl-accent-2);
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	margin: 0;
	font-size: 2rem;
	line-height: 1;
}

.sl-hero__copy h2 {
	margin-bottom: 8px;
	font-size: 1.25rem;
}

.sl-hero__copy p,
.sl-location p {
	color: var(--sl-muted);
	line-height: 1.55;
}

.sl-primary-action,
.sl-secondary-action,
.sl-map-link,
.sl-login button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	width: 100%;
	border: 0;
	border-radius: 8px;
	padding: 0 18px;
	background: var(--sl-accent);
	color: #111312;
	font-weight: 900;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 10px 0 rgba(0, 0, 0, 0.28);
}

.sl-secondary-action {
	background: #2d332b;
	color: var(--sl-text);
	box-shadow: none;
}

.sl-section {
	padding: 22px 0;
	border-top: 1px solid var(--sl-line);
}

.sl-section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.sl-section__head h2 {
	margin: 0;
	font-size: 1.05rem;
}

.sl-section__head span {
	color: var(--sl-muted);
	font-size: 0.9rem;
	text-align: right;
}

.sl-board-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.sl-can-switch {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: min(100%, 230px);
	border: 1px solid var(--sl-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
	overflow: hidden;
}

.sl-can-switch button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border: 0;
	background: transparent;
	color: var(--sl-muted);
	font-weight: 900;
	cursor: pointer;
}

.sl-can-switch button.is-active {
	background: var(--sl-accent);
	color: #111312;
}

.sl-can-icons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	line-height: 0;
	vertical-align: middle;
}

.sl-can-icon {
	display: block;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
}

.sl-alltime-toggle,
.sl-results-filter__check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--sl-muted);
	font-weight: 800;
	white-space: nowrap;
}

.sl-table-wrap {
	border: 1px solid var(--sl-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
	overflow: visible;
}

.sl-ranking-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.sl-ranking-table th,
.sl-ranking-table td {
	padding: 9px 8px;
	border-bottom: 1px solid var(--sl-line);
	text-align: left;
	vertical-align: middle;
	overflow-wrap: anywhere;
}

.sl-ranking-table th {
	color: var(--sl-muted);
	font-size: 0.72rem;
	font-weight: 900;
	text-transform: uppercase;
}

.sl-ranking-table th:first-child,
.sl-ranking-table td:first-child {
	width: 42px;
	color: rgba(247, 244, 232, 0.42);
	font-weight: 950;
	text-align: center;
}

.sl-ranking-table .sl-col-team {
	width: 24%;
}

.sl-ranking-table .sl-col-time {
	width: 72px;
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sl-ranking-table .sl-col-info {
	width: 34px;
	text-align: center;
}

.sl-ranking-table.has-no-team .sl-col-team {
	display: none;
}

.sl-ranking-table tr:last-child td {
	border-bottom: 0;
}

.sl-ranking-table tr.is-historical {
	background: rgba(56, 217, 169, 0.08);
}

.sl-ranking-table tr.is-empty-slot td,
.sl-ranking-table tr.is-muted-rank td {
	color: rgba(247, 244, 232, 0.42);
}

.sl-ranking-table tr.is-rank-1,
.sl-ranking-table tr.is-rank-2,
.sl-ranking-table tr.is-rank-3 {
	background: rgba(229, 255, 79, 0.055);
}

.sl-ranking-table tr.is-rank-1 {
	background: linear-gradient(90deg, rgba(229, 255, 79, 0.18), rgba(229, 255, 79, 0.055));
}

.sl-ranking-table tr.is-rank-1 td:first-child,
.sl-ranking-table tr.is-rank-2 td:first-child,
.sl-ranking-table tr.is-rank-3 td:first-child {
	color: var(--sl-accent);
	font-size: 1.05rem;
}

.sl-ranking-table tr.is-rank-1 td:first-child {
	font-size: 1.18rem;
	text-shadow: 0 0 12px rgba(229, 255, 79, 0.34);
}

.sl-ranking-table tr.is-muted-rank small {
	color: rgba(247, 244, 232, 0.42);
}

.sl-name-cell {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.sl-trophy-icon {
	display: inline-block;
	width: 22px;
	height: 22px;
	vertical-align: -5px;
}

.sl-ranking-table small {
	display: block;
	margin-top: 2px;
	color: var(--sl-accent-2);
	font-size: 0.7rem;
	font-weight: 800;
}

.sl-info-symbol,
.sl-info-button {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #2d332b;
	color: var(--sl-accent);
	font-size: 0.76rem;
	font-weight: 950;
}

.sl-info-button {
	position: relative;
	border: 0;
	cursor: help;
}

.sl-tooltip {
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	z-index: 8;
	display: none;
	width: max-content;
	max-width: 190px;
	padding: 8px 10px;
	border: 1px solid var(--sl-line);
	border-radius: 8px;
	background: #101210;
	color: var(--sl-text);
	box-shadow: var(--sl-shadow);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.25;
	text-align: left;
	white-space: nowrap;
}

.sl-tooltip::after {
	content: "";
	position: absolute;
	right: 8px;
	top: 100%;
	border: 6px solid transparent;
	border-top-color: #101210;
}

.sl-info-button.is-open .sl-tooltip {
	display: block;
}

@media (max-width: 430px) {
	.sl-table-wrap {
		overflow: hidden;
	}

	.sl-ranking-table {
		font-size: 0.82rem;
	}

	.sl-ranking-table th,
	.sl-ranking-table td {
		padding: 8px 5px;
	}

	.sl-ranking-table th:first-child,
	.sl-ranking-table td:first-child {
		width: 30px;
		padding-left: 3px;
		padding-right: 3px;
	}

	.sl-ranking-table .sl-col-team {
		width: 18%;
	}

	.sl-ranking-table .sl-col-time {
		width: 58px;
	}

	.sl-ranking-table .sl-col-info {
		width: 32px;
		padding-right: 6px;
	}

	.sl-ranking-table th {
		font-size: 0.62rem;
	}

	.sl-name-cell {
		gap: 3px;
	}

	.sl-info-symbol,
	.sl-info-button {
		width: 20px;
		height: 20px;
		font-size: 0.68rem;
	}

	.sl-tooltip {
		right: -3px;
		max-width: min(180px, calc(100vw - 32px));
		white-space: normal;
	}
}

@media (max-width: 360px) {
	.sl-ranking-table.has-no-team th:first-child,
	.sl-ranking-table.has-no-team td:first-child {
		width: 28px;
	}

	.sl-ranking-table.has-no-team .sl-col-time {
		width: 54px;
	}

	.sl-ranking-table.has-no-team .sl-col-info {
		width: 30px;
	}

	.sl-ranking-table:not(.has-no-team) {
		display: block;
	}

	.sl-ranking-table:not(.has-no-team) thead,
	.sl-ranking-table:not(.has-no-team) tbody,
	.sl-ranking-table:not(.has-no-team) tr,
	.sl-ranking-table:not(.has-no-team) th,
	.sl-ranking-table:not(.has-no-team) td {
		display: block;
	}

	.sl-ranking-table:not(.has-no-team) thead {
		display: none;
	}

	.sl-ranking-table:not(.has-no-team) tr {
		position: relative;
		display: grid;
		grid-template-columns: 30px minmax(0, 1fr) 58px 30px;
		align-items: center;
		border-bottom: 1px solid var(--sl-line);
	}

	.sl-ranking-table:not(.has-no-team) tr:last-child {
		border-bottom: 0;
	}

	.sl-ranking-table:not(.has-no-team) td {
		border-bottom: 0;
	}

	.sl-ranking-table:not(.has-no-team) .sl-col-team {
		grid-column: 2 / -1;
		width: auto;
		padding-top: 0;
		color: var(--sl-muted);
		font-size: 0.72rem;
	}
}

.sl-empty {
	color: var(--sl-muted);
	line-height: 1.45;
	text-align: center;
}

.sl-section__footer {
	margin-top: 12px;
}

.sl-map iframe {
	width: 100%;
	max-width: 100%;
	border: 0;
	border-radius: 8px;
}

.sl-map-link {
	margin-top: 12px;
}

.sl-overlay,
.sl-timer-view {
	position: fixed;
	inset: 0;
	z-index: 20;
	background: rgba(17, 19, 18, 0.96);
	padding: 18px;
}

.sl-panel {
	position: relative;
	width: min(100%, 520px);
	margin: 6vh auto 0;
	padding: 22px;
	border: 1px solid var(--sl-line);
	border-radius: 8px;
	background: var(--sl-panel);
	box-shadow: var(--sl-shadow);
}

.sl-close {
	position: absolute;
	right: 12px;
	top: 12px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--sl-line);
	border-radius: 50%;
	background: #2b2f2a;
	color: var(--sl-text);
	font-size: 1.4rem;
	cursor: pointer;
}

.sl-close--timer {
	z-index: 4;
}

.sl-attempt-form {
	display: grid;
	gap: 16px;
}

.sl-attempt-form h2,
.sl-result h2 {
	margin: 0;
	font-size: 1.65rem;
}

.sl-attempt-form label,
.sl-login label {
	display: grid;
	gap: 7px;
	color: var(--sl-muted);
	font-weight: 700;
}

.sl-attempt-form label small {
	color: var(--sl-accent-2);
	font-size: 0.76rem;
	font-weight: 900;
	text-transform: uppercase;
}

.sl-attempt-form input,
.sl-login input[type="text"],
.sl-login input[type="password"] {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--sl-line);
	border-radius: 8px;
	padding: 0 12px;
	background: #101210;
	color: var(--sl-text);
}

.sl-attempt-form fieldset {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
}

.sl-attempt-form legend {
	grid-column: 1 / -1;
	margin-bottom: 8px;
	color: var(--sl-muted);
	font-weight: 700;
}

.sl-attempt-form fieldset label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 12px;
	border: 1px solid var(--sl-line);
	border-radius: 8px;
	background: var(--sl-panel-2);
	color: var(--sl-text);
}

.sl-attempt-form fieldset input,
.sl-results-filter__cans input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sl-attempt-form fieldset label:has(input:checked),
.sl-results-filter__cans label:has(input:checked) {
	border-color: var(--sl-accent);
	background: rgba(229, 255, 79, 0.12);
}

.sl-timer-view {
	display: grid;
	place-items: center;
	overflow: hidden;
}

.sl-timer-view.is-running .sl-close--timer,
.sl-timer-view.is-running .sl-state,
.sl-timer-view.is-running .sl-timer-steps {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

.sl-progress {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 0%;
	overflow: hidden;
	background:
		radial-gradient(circle at 20% 82%, rgba(255, 255, 255, 0.38) 0 3px, transparent 4px),
		radial-gradient(circle at 62% 58%, rgba(255, 255, 255, 0.24) 0 2px, transparent 3px),
		radial-gradient(circle at 78% 74%, rgba(255, 255, 255, 0.28) 0 3px, transparent 4px),
		linear-gradient(180deg, #ffd55c 0%, #f5a623 42%, #b96813 100%);
	box-shadow: inset 0 14px 30px rgba(255, 243, 173, 0.2), inset 0 -16px 28px rgba(80, 38, 0, 0.22);
	transition: height 0.08s linear;
}

.sl-progress::before {
	position: absolute;
	left: -4%;
	right: -4%;
	top: -18px;
	height: 38px;
	border-radius: 0 0 50% 50%;
	background:
		radial-gradient(circle at 8% 45%, #fff8d8 0 12px, transparent 13px),
		radial-gradient(circle at 21% 58%, #fff8d8 0 16px, transparent 17px),
		radial-gradient(circle at 37% 42%, #fff8d8 0 13px, transparent 14px),
		radial-gradient(circle at 54% 60%, #fff8d8 0 17px, transparent 18px),
		radial-gradient(circle at 72% 43%, #fff8d8 0 13px, transparent 14px),
		radial-gradient(circle at 90% 56%, #fff8d8 0 15px, transparent 16px),
		linear-gradient(#fff8d8, #f4e8b6);
	content: "";
}

.sl-progress::after {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 31% 35%, rgba(255, 255, 255, 0.28) 0 4px, transparent 5px),
		radial-gradient(circle at 47% 70%, rgba(255, 255, 255, 0.22) 0 3px, transparent 4px),
		radial-gradient(circle at 86% 31%, rgba(255, 255, 255, 0.2) 0 5px, transparent 6px);
	content: "";
	opacity: 0.9;
}

.sl-marker-layer {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.sl-timer-view:not(.is-running) .sl-marker-layer {
	opacity: 0.5;
}

.sl-marker {
	position: absolute;
	left: 0;
	right: 0;
	border-top: 1px solid rgba(247, 244, 232, 0.38);
}

.sl-marker span {
	position: absolute;
	right: 10px;
	top: -16px;
	max-width: min(46vw, 260px);
	padding: 2px 6px;
	border-radius: 999px;
	background: rgba(17, 19, 18, 0.5);
	color: var(--sl-text);
	font-size: clamp(0.58rem, 1.8vw, 0.72rem);
	font-weight: 900;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sl-timer-content {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 16px;
	justify-items: center;
	width: min(96vw, 900px);
	text-align: center;
}

.sl-state {
	margin: 0;
	color: #fff8d8;
	font-weight: 900;
	text-shadow: 0 3px 0 rgba(0, 0, 0, 0.44), 0 0 18px rgba(17, 19, 18, 0.76);
	text-transform: uppercase;
}

.sl-time {
	min-width: min(96vw, 900px);
	font-size: clamp(6rem, 26vw, 15rem);
	line-height: 0.84;
	font-weight: 950;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	text-shadow:
		0 8px 0 rgba(0, 0, 0, 0.42),
		0 0 24px rgba(17, 19, 18, 0.72),
		0 0 2px #111312;
}

.sl-time__number,
.sl-time__unit {
	display: inline-block;
	vertical-align: baseline;
}

.sl-time__unit {
	margin-left: 0.08em;
	font-size: 0.24em;
	line-height: 1;
}

.sl-timer-steps {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	width: max-content;
	max-width: 92vw;
	margin: 10px auto 0;
	padding: 18px;
	border: 1px solid rgba(255, 248, 216, 0.28);
	border-radius: 18px;
	background: rgba(17, 19, 18, 0.34);
	backdrop-filter: blur(18px) saturate(1.12);
	-webkit-backdrop-filter: blur(18px) saturate(1.12);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 248, 216, 0.12);
	list-style: none;
}

.sl-timer-steps::before {
	position: absolute;
	left: 46px;
	top: 42px;
	bottom: 42px;
	width: 4px;
	border-radius: 999px;
	background: rgba(255, 248, 216, 0.78);
	box-shadow: 0 0 0 1px rgba(17, 19, 18, 0.24);
	content: "";
}

.sl-timer-steps li {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 62px minmax(150px, max-content);
	align-items: center;
	gap: 14px;
	min-height: 50px;
	justify-self: stretch;
	color: #fff8d8;
	font-size: clamp(1.35rem, 5.6vw, 1.9rem);
	font-weight: 900;
	text-align: left;
	opacity: 1;
}

.sl-step-icon-wrap {
	position: relative;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border: 2px solid rgba(17, 19, 18, 0.22);
	border-radius: 50%;
	background: #fff8d8;
	box-shadow: 0 8px 0 rgba(0, 0, 0, 0.24), inset 0 -8px 18px rgba(229, 255, 79, 0.26);
}

.sl-step-icon {
	display: block;
	width: 34px;
	height: 34px;
}

.sl-step-label {
	display: block;
	text-align: left;
}

.sl-result dl {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px 14px;
	margin: 18px 0 22px;
}

.sl-result {
	width: min(100%, 760px);
	text-align: center;
}

.sl-result h2 {
	margin: 4px -10px 12px;
	font-size: clamp(7rem, 28vw, 15rem);
	line-height: 0.82;
	font-weight: 950;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sl-result dt {
	color: var(--sl-muted);
	text-align: left;
}

.sl-result dd {
	margin: 0;
	font-weight: 800;
	text-align: right;
}

.sl-actions {
	display: grid;
	gap: 10px;
}

.sl-effect {
	min-height: 32px;
	font-size: 1.6rem;
}

.sl-confetti {
	position: fixed;
	top: -12px;
	width: 8px;
	height: 14px;
	z-index: 50;
	animation: sl-fall 900ms ease-in forwards;
}

@keyframes sl-fall {
	to {
		transform: translateY(110vh) rotate(540deg);
		opacity: 0;
	}
}

.sl-login {
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding: 18px;
}

.sl-login__form {
	display: grid;
	gap: 16px;
	width: min(100%, 420px);
	padding: 24px;
	border: 1px solid var(--sl-line);
	border-radius: 8px;
	background: var(--sl-panel);
}

.sl-login__form h1 {
	font-size: 1.7rem;
}

.sl-login__remember {
	display: flex;
	align-items: center;
}

.sl-login__error {
	margin: 0;
	color: var(--sl-danger);
	font-weight: 800;
}

.sl-login a {
	color: var(--sl-accent);
	text-align: center;
}

.sl-results-head {
	display: grid;
	gap: 8px;
	padding: 18px 0;
}

.sl-results-head h1 {
	margin: 0;
	font-size: 1.8rem;
}

.sl-results-head p {
	margin: 0;
	color: var(--sl-muted);
}

.sl-back-link {
	color: var(--sl-accent);
	font-weight: 900;
	text-decoration: none;
}

.sl-results-filter {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-bottom: 14px;
}

.sl-results-filter label,
.sl-results-filter__cans legend {
	display: grid;
	gap: 7px;
	color: var(--sl-muted);
	font-weight: 800;
}

.sl-results-filter__cans {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
}

.sl-results-filter__cans legend {
	grid-column: 1 / -1;
	margin-bottom: 0;
}

.sl-results-filter__cans label {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 1px solid var(--sl-line);
	border-radius: 8px;
	padding: 0 12px;
	background: var(--sl-panel-2);
	color: var(--sl-text);
	cursor: pointer;
}

[hidden] {
	display: none !important;
}

@media (min-width: 720px) {
	.sl-app {
		padding: 32px 24px 56px;
	}

	.sl-hero {
		grid-template-columns: 1fr auto;
		align-items: end;
	}

	.sl-brand,
	.sl-hero__copy {
		grid-column: 1;
	}

	.sl-primary-action {
		width: auto;
		min-width: 240px;
	}

	.sl-actions {
		grid-template-columns: 1fr 1fr;
	}

	.sl-results-filter {
		grid-template-columns: 180px auto 160px;
		align-items: end;
	}
}
