.vacay-ocean {
	--vacay-ocean-height: 80vh;
	--vacay-ocean-radius: 3px;
	--vacay-ocean-control-color: #fff;
	--vacay-ocean-placeholder: #010b1a;
	--vacay-sky-top: #3d92bd;
	--vacay-sky-horizon: #bce3e8;
	--vacay-sun-color: #fff4ce;
	--vacay-sun-x: 68%;
	--vacay-sun-y: 25%;
	--vacay-sun-opacity: 0.9;
	isolation: isolate;
	position: relative;
	width: 100%;
	height: var(--vacay-ocean-height);
	min-height: 280px;
	overflow: hidden;
	border-radius: var(--vacay-ocean-radius);
	background: var(--vacay-ocean-placeholder);
	color: var(--vacay-ocean-control-color);
	cursor: grab;
	contain: layout paint;
	touch-action: pan-y;
}

.vacay-ocean:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--vacay-ocean-control-color) 80%, transparent);
	outline-offset: 4px;
}

.vacay-ocean.is-dragging {
	cursor: grabbing;
}

.vacay-ocean__fallback,
.vacay-ocean__sky,
.vacay-ocean__canvas,
.vacay-ocean__vignette {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.vacay-ocean__fallback {
	z-index: 0;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.vacay-ocean__sky {
	z-index: 1;
	overflow: hidden;
	background:
		linear-gradient(
			180deg,
			var(--vacay-sky-top) 0%,
			color-mix(in srgb, var(--vacay-sky-top) 62%, var(--vacay-sky-horizon)) 52%,
			var(--vacay-sky-horizon) 100%
		);
	opacity: 0;
	transition: opacity 1.2s ease, background 5s ease;
}

.vacay-ocean__celestial {
	position: absolute;
	left: var(--vacay-sun-x);
	top: var(--vacay-sun-y);
	width: clamp(44px, 7vw, 92px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--vacay-sun-color);
	box-shadow:
		0 0 22px color-mix(in srgb, var(--vacay-sun-color) 85%, transparent),
		0 0 80px color-mix(in srgb, var(--vacay-sun-color) 50%, transparent);
	opacity: var(--vacay-sun-opacity);
	transform: translate(-50%, -50%);
	transition: left 5s linear, top 5s linear, opacity 3s ease, background 3s ease;
}

.vacay-ocean__canvas {
	z-index: 2;
	display: block;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.vacay-ocean__vignette {
	z-index: 3;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgb(0 0 0 / 8%) 0%, transparent 35%, rgb(0 20 30 / 12%) 100%),
		radial-gradient(ellipse at 50% 48%, transparent 45%, rgb(0 15 25 / 18%) 130%);
	opacity: 0;
	transition: opacity 1.2s ease;
}

.vacay-ocean.is-ready .vacay-ocean__fallback {
	opacity: 0;
}

.vacay-ocean.is-ready .vacay-ocean__sky,
.vacay-ocean.is-ready .vacay-ocean__canvas,
.vacay-ocean.is-ready .vacay-ocean__vignette {
	opacity: 1;
}

.vacay-ocean.is-fallback .vacay-ocean__fallback {
	opacity: 1;
}

.vacay-ocean.is-fallback .vacay-ocean__sky,
.vacay-ocean.is-fallback .vacay-ocean__canvas,
.vacay-ocean.is-fallback .vacay-ocean__vignette {
	display: none;
}

.vacay-ocean__controls {
	position: absolute;
	z-index: 5;
	right: clamp(12px, 2vw, 24px);
	bottom: clamp(12px, 2vw, 24px);
	display: flex;
	align-items: center;
	gap: 8px;
}

.vacay-ocean__button,
.vacay-ocean__wind,
.vacay-ocean__time {
	min-height: 42px;
	border: 1px solid rgb(255 255 255 / 38%);
	border-radius: 999px;
	background: rgb(8 24 32 / 46%);
	box-shadow: 0 10px 30px rgb(0 12 20 / 12%);
	color: var(--vacay-ocean-control-color);
	-webkit-backdrop-filter: blur(14px) saturate(120%);
	backdrop-filter: blur(14px) saturate(120%);
}

.vacay-ocean__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 15px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.vacay-ocean__button:hover {
	border-color: rgb(255 255 255 / 70%);
	background: rgb(8 24 32 / 62%);
	transform: translateY(-1px);
}

.vacay-ocean__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.vacay-ocean__button svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.vacay-ocean__button[hidden] {
	display: none;
}

.vacay-ocean__button--sound {
	width: 44px;
	padding: 0;
}

.vacay-ocean__button--pause,
.vacay-ocean__button--fullscreen {
	width: 44px;
	min-width: 44px;
	height: 44px;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--vacay-ocean-control-color) !important;
}

.vacay-ocean__button--pause:hover,
.vacay-ocean__button--fullscreen:hover {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	opacity: 0.72;
	transform: none;
}

.vacay-ocean__button--pause svg,
.vacay-ocean__button--fullscreen svg {
	width: 24px;
	height: 24px;
}

.vacay-ocean__play-icon {
	display: none;
}

.vacay-ocean__button--pause[aria-pressed="true"] .vacay-ocean__pause-icon {
	display: none;
}

.vacay-ocean__button--pause[aria-pressed="true"] .vacay-ocean__play-icon {
	display: block;
}

.vacay-ocean__sound-off {
	display: none;
}

.vacay-ocean__button--sound[aria-pressed="true"] .vacay-ocean__sound-on {
	display: none;
}

.vacay-ocean__button--sound[aria-pressed="true"] .vacay-ocean__sound-off {
	display: block;
}

.vacay-ocean__wind {
	position: relative;
	display: inline-grid;
	width: 42px;
	min-width: 42px;
	place-items: center;
}

.vacay-ocean__wind::after {
	position: absolute;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	content: "";
	opacity: 0.8;
}

.vacay-ocean__wind-arrow {
	display: block;
	width: 2px;
	height: 20px;
	border-radius: 2px;
	background: linear-gradient(180deg, currentColor 0 45%, transparent 45% 55%, currentColor 55%);
	transform: rotate(var(--vacay-wind-angle, 215deg));
	transition: transform 180ms linear;
}

.vacay-ocean__wind-arrow::before {
	position: absolute;
	top: -1px;
	left: 50%;
	width: 7px;
	height: 7px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	content: "";
	transform: translateX(-50%) rotate(45deg);
	transform-origin: center;
}

.vacay-ocean__time {
	display: inline-flex;
	align-items: center;
	padding: 0 13px;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

.vacay-ocean__hint {
	position: absolute;
	z-index: 5;
	bottom: clamp(64px, 7vw, 82px);
	left: 50%;
	margin: 0;
	padding: 7px 11px;
	border-radius: 999px;
	background: rgb(8 24 32 / 38%);
	color: var(--vacay-ocean-control-color);
	font-size: 12px;
	line-height: 1.2;
	pointer-events: none;
	opacity: 0.88;
	transform: translateX(-50%);
	transition: opacity 500ms ease, transform 500ms ease;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.vacay-ocean.has-interacted .vacay-ocean__hint {
	opacity: 0;
	transform: translate(-50%, 5px);
}

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

.vacay-ocean:fullscreen,
.vacay-ocean.is-faux-fullscreen {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	border-radius: 0;
	cursor: default;
	touch-action: none;
}

.vacay-ocean.is-faux-fullscreen {
	position: fixed;
	inset: 0;
	z-index: 999999;
}

body.vacay-ocean-fullscreen-open {
	overflow: hidden;
}

.vacay-ocean.is-reduced-motion {
	cursor: default;
}

.vacay-ocean.is-reduced-motion .vacay-ocean__fallback {
	opacity: 1;
}

.vacay-ocean.is-reduced-motion .vacay-ocean__sky,
.vacay-ocean.is-reduced-motion .vacay-ocean__canvas,
.vacay-ocean.is-reduced-motion .vacay-ocean__vignette,
.vacay-ocean.is-reduced-motion .vacay-ocean__hint,
.vacay-ocean.is-reduced-motion .vacay-ocean__wind,
.vacay-ocean.is-reduced-motion .vacay-ocean__button--pause {
	display: none;
}

.vacay-ocean:fullscreen .vacay-ocean__controls,
.vacay-ocean.is-faux-fullscreen .vacay-ocean__controls {
	right: max(18px, env(safe-area-inset-right));
	bottom: max(18px, env(safe-area-inset-bottom));
}

@media (max-width: 640px) {
	.vacay-ocean__controls {
		right: 10px;
		bottom: 10px;
	}

	.vacay-ocean__hint {
		bottom: 62px;
		max-width: calc(100% - 32px);
		text-align: center;
		white-space: nowrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vacay-ocean *,
	.vacay-ocean *::before,
	.vacay-ocean *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.vacay-ocean__hint {
		display: none;
	}

	.vacay-ocean__button--pause {
		display: none;
	}
}
