@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Mono:wght@400;500&display=swap");

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

body {
	background: #06080f;
	font-family: "DM Mono", monospace;
	cursor: default;
}

#ocean {
	position: fixed;
	inset: 0;
	display: block;
}

/* ── OVERLAY ── */
.ui {
	position: fixed;
	inset: 0;
	z-index: 10;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 32px 40px;
	color: #fff;
}

.ui-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.label {
	font-size: 12px;
	letter-spacing: 0.45em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.mood {
	text-align: right;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.mood span {
	display: block;
}
#mood-name {
	font-size: 12px;
	letter-spacing: 0.3em;
	color: rgba(255, 255, 255, 0.9);
}
.mood-time {
	font-family: "Instrument Serif", serif;
	font-size: 26px;
	font-variant-numeric: tabular-nums;
	margin-top: 2px;
	color: #fff;
}

.ui-bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

.caption {
	font-family: "Instrument Serif", serif;
	font-size: clamp(1.1rem, 3vw, 1.9rem);
	letter-spacing: 0.01em;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
	text-align: center;
}
.caption em {
	font-style: italic;
}

/* ── SLIDER ── */
.slider-wrap {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 16px;
	width: min(440px, 80vw);
	padding: 12px 18px;
	background: rgba(10, 16, 28, 0.32);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	backdrop-filter: blur(12px);
}
.slider-end {
	font-size: 9.5px;
	letter-spacing: 0.2em;
	color: rgba(255, 255, 255, 0.6);
	white-space: nowrap;
}

input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	flex: 1;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(
		90deg,
		#3a4a8a 0%,
		#6fa8d4 25%,
		#ffd27f 55%,
		#ff7e54 78%,
		#1a2244 100%
	);
	outline: none;
	cursor: grab;
}
input[type="range"]:active {
	cursor: grabbing;
}
input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid rgba(0, 0, 0, 0.15);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.12);
	cursor: grab;
}
input[type="range"]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid rgba(0, 0, 0, 0.15);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	cursor: grab;
}

@media (max-width: 600px) {
	.ui {
		padding: 22px 22px;
	}
	.label {
		font-size: 10px;
	}
}