* {
	box-sizing: border-box;
}
:root {
	color-scheme: dark;
	--text: #f5f4f0;
	--muted: #a09f98;
	--line: #272729;
	font: 15px / 1.45 -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", Roboto,
		sans-serif;
	background: #000;
	color: var(--text);
}
body {
	margin: 0;
	overflow: hidden;
}
button,
a {
	color: inherit;
	font: inherit;
}
button {
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
	outline: 2px solid #a4d6be;
	outline-offset: 2px;
}
[hidden] {
	display: none !important;
}
.device {
	height: 100vh;
	height: var(--tg-viewport-height, 100dvh);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	background: #000;
	font-variant-numeric: tabular-nums;
	padding-top: max(
		env(safe-area-inset-top),
		var(--tg-content-safe-area-inset-top, 0px)
	);
	padding-bottom: max(
		env(safe-area-inset-bottom),
		var(--tg-content-safe-area-inset-bottom, 0px)
	);
	padding-left: env(safe-area-inset-left);
	padding-right: env(safe-area-inset-right);
}
.mast,
.slide,
.control {
	width: min(100%, 560px);
	margin-inline: auto;
	padding-inline: clamp(16px, 5vw, 28px);
}
.mast {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding-top: clamp(12px, 3vh, 28px);
}
.mast time {
	font-size: clamp(24px, 4vw, 32px);
	font-weight: 490;
	letter-spacing: -.06em;
	color: #dbdfdb;
}
.aurora {
	position: absolute;
	inset: 0 auto auto 50%;
	transform: translateX(-50%);
	width: min(100%, 800px);
	height: clamp(100px, 24dvh, 196px);
	z-index: -1;
	pointer-events: none;
}
.slide {
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	touch-action: pan-y;
	padding-block: clamp(32px, 8vh, 80px) 12px;
	scrollbar-width: thin;
}
h1,
p {
	margin: 0;
}
h1 {
	font-size: clamp(34px, 7vw, 50px);
	font-weight: 550;
	line-height: 1.04;
	letter-spacing: -.045em;
	text-wrap: balance;
}
.big {
	font-size: clamp(54px, 13vw, 78px);
	font-weight: 570;
	letter-spacing: -.069em;
}
.unit {
	font-size: clamp(17px, 3vw, 24px);
	letter-spacing: -.035em;
	margin-left: 4px;
}
.sub {
	margin-top: 10px;
	color: var(--muted);
	max-width: 43ch;
}
.sub strong {
	color: var(--text);
}
.plot {
	margin-top: 22px;
}
.cal {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	align-items: center;
	gap: 3px 6px;
}
.cal span {
	font-size: 10px;
	color: var(--muted);
	line-height: 1;
}
.row {
	display: grid;
	grid-template-columns: repeat(31, minmax(0, 1fr));
	gap: 2px;
}
.dot {
	aspect-ratio: 1;
	border-radius: 1px;
	background: var(--c);
	transition: opacity .42s ease;
}
.hidden-day {
	visibility: hidden;
}
.dim .dot:not(.selected) {
	opacity: 0.22;
}
.legend {
	display: flex;
	align-items: center;
	gap: 5px 12px;
	flex-wrap: wrap;
	margin-top: 12px;
	font-size: 11px;
	color: var(--muted);
}
.legend span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.sw {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 1px;
	background: var(--c);
}
.tools {
	margin-top: 12px;
}
.seg {
	display: inline-flex;
	position: relative;
	gap: 17px;
}
.seg button {
	padding: 9px 0;
	color: #929292;
	font-size: 12px;
}
.seg button[aria-pressed="true"] {
	color: #e8f4ec;
}
.seg:after {
	content: "";
	position: absolute;
	left: var(--left, 0px);
	width: var(--width, 0px);
	bottom: 4px;
	height: 1.5px;
	background: #a4d6be;
	transition: left .26s ease, width .26s ease;
}
.control {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-block: 4px 8px;
}
.marks,
.arrows {
	display: flex;
	align-items: center;
}
.marks {
	flex-wrap: wrap;
}
.marks button {
	height: 40px;
	padding: 2px;
}
.marks i {
	display: block;
	width: 6px;
	height: 2px;
	background: #474747;
	transition: width .25s;
}
.marks [aria-current="true"] i {
	width: 15px;
	background: #b4d7c6;
}
.arrows button {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
}
.arrows button:disabled {
	opacity: 0.23;
}
.arrows svg {
	width: 24px;
	height: 24px;
}
.lineplot {
	display: block;
	width: 100%;
	height: auto;
}
.lineplot text {
	fill: var(--muted);
	font: 11px system-ui;
}
.dates {
	list-style: none;
	padding: 0;
	margin: 20px 0 0;
}
.dates li,
.val {
	padding: 7px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
}
.average {
	margin-top: 14px;
	font-size: 15px;
	font-weight: 400;
}
.val {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}
.val b {
	display: inline-block;
	min-width: 28px;
	color: var(--c);
}
.band,
.stack {
	display: flex;
	gap: 1px;
	overflow: hidden;
}
.band {
	height: 18px;
	margin-bottom: 12px;
}
.stack {
	height: 9px;
	background: #151515;
}
.stack i,
.band i {
	background: var(--c);
}
.barrow {
	display: grid;
	grid-template-columns: 34px 1fr 32px;
	align-items: center;
	gap: 10px;
	margin: 9px 0;
	font-size: 12px;
}
.barrow > span:last-child {
	text-align: right;
}
.track {
	height: 8px;
	background: #181819;
}
.track i {
	display: block;
	height: 100%;
}
.yearrow {
	margin: 14px 0;
}
.yearrow p {
	display: flex;
	justify-content: space-between;
	margin-bottom: 6px;
}
.yearrow small,
.micro {
	color: var(--muted);
	font-size: 12px;
}
.singleday {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-block: 16px;
	border-block: 1px solid var(--line);
}
.singleday b {
	font-size: 28px;
	color: var(--c);
}
.action {
	display: inline-block;
	margin-top: 16px;
	color: #b4d7c6;
	text-underline-offset: 4px;
}
@media (max-height: 600px) {
	.slide {
		padding-top: 22px;
	}
	.mast {
		padding-top: 8px;
	}
	.plot {
		margin-top: 14px;
	}
	.control {
		padding-block: 0;
	}
	.row .dot {
		max-height: 10px;
		width: 100%;
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

.board-pile,
.board-message {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.board-pile {
	z-index: 2;
	pointer-events: none;
}
.board-message {
	z-index: 3;
	display: grid;
	align-content: safe center;
	justify-items: center;
	overflow-y: auto;
	padding: clamp(20px, 7%, 48px);
	background: linear-gradient(
		180deg,
		#0004 0%,
		#000c 30%,
		#000e 59%,
		#0009 82%,
		#0004
	);
	animation: board-reveal .32s ease-out both;
}
.board-message p {
	max-width: 23ch;
	font-size: clamp(26px, 5.8vw, 40px);
	font-weight: 520;
	line-height: 1.13;
	letter-spacing: -.043em;
	text-wrap: pretty;
}
.board-message strong {
	display: block;
	margin-top: 18px;
	color: #ccf2d6;
	font-weight: 600;
}
@keyframes board-reveal {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
