.storyboard {
	--fg: #fff;
	--ink: #212529;
	--safe-top: env(safe-area-inset-top, 0px);
	--safe-bottom: env(safe-area-inset-bottom, 0px);
	--font: "Bricolage Grotesque", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
	position: fixed;
	inset: 0;
	overflow: hidden;
	font-family: var(--font);
	background: #212529;
	color: var(--fg);
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	-webkit-font-smoothing: antialiased;
}

.storyboard [hidden] {
	display: none !important;
}

.storyboard .stage {
	cursor: var(--cursor, auto);
	position: absolute;
	inset: 0;
}

.storyboard .slide {
	position: absolute;
	inset: 0;
	animation-duration: .65s;
	animation-timing-function: cubic-bezier(.2, .75, .2, 1);
	animation-fill-mode: both;
}

.storyboard .slide.is-current {
	z-index: 2;
}

.storyboard .slide.is-leaving {
	z-index: 1;
}

.storyboard .slide-scroll {
	position: absolute;
	top: var(--top-space, calc(var(--safe-top) + 3.75rem));
	bottom: var(--bottom-space, calc(var(--safe-bottom) + 4.75rem));
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
	--fade-top: 0px;
	--fade-bottom: 0px;
}

.storyboard .slide-scroll.fade-top,
.storyboard .slide-scroll.fade-bottom {
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent);
}

.storyboard .slide-scroll.fade-top {
	--fade-top: 2rem;
}

.storyboard .slide-scroll.fade-bottom {
	--fade-bottom: 2rem;
}

.storyboard .slide-scroll:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: -6px;
}

.storyboard .slide-content {
	flex-shrink: 0;
	margin: auto;
	overflow-wrap: break-word;
	width: 100%;
	max-width: 46rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1rem, 3.5vh, 2.25rem);
	text-align: center;
}

.storyboard .slide-content > * {
	margin: 0;
	min-width: 0;
}

.storyboard h1,
.storyboard h2,
.storyboard h3 {
	font-weight: 800;
	letter-spacing: -.025em;
	text-wrap: balance;
}

.storyboard h1 {
	font-size: clamp(2.5rem, 4.5vw + 1.25rem, 5.25rem);
	line-height: 1;
}

.storyboard h2 {
	font-size: clamp(2.25rem, 3.75vw + 1.25rem, 4.5rem);
	line-height: 1.04;
}

.storyboard h3 {
	font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
	line-height: 1.1;
}

.storyboard h1 em,
.storyboard h2 em,
.storyboard h3 em {
	--tilt: 178deg;
	--mark: color-mix(in srgb, currentColor 24%, transparent);
	font-style: normal;
	padding: 0 .1em;
	margin: 0 -.05em;
	border-radius: .12em;
	background: linear-gradient(var(--tilt), transparent 16%, var(--mark) calc(16% + 1px), var(--mark) 92%, transparent calc(92% + 1px));
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.storyboard h1 em:nth-of-type(2n),
.storyboard h2 em:nth-of-type(2n),
.storyboard h3 em:nth-of-type(2n) {
	--tilt: 181.5deg;
}

.storyboard h1 em:nth-of-type(3n),
.storyboard h2 em:nth-of-type(3n),
.storyboard h3 em:nth-of-type(3n) {
	--tilt: 179deg;
}

.storyboard p,
.storyboard li {
	font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem);
	line-height: 1.4;
	font-weight: 500;
	text-wrap: pretty;
}

.storyboard p {
	max-width: 30ch;
}

.storyboard ul {
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.storyboard a {
	color: inherit;
}

.storyboard .actions a {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .7em 1.4em;
	border-radius: 999px;
	background: var(--fg);
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}

.storyboard .icon {
	display: inline-flex;
	vertical-align: -.125em;
}

.storyboard .icon svg {
	display: block;
	height: 1em;
	width: auto;
	fill: currentColor;
	overflow: visible;
}

.storyboard .icons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .4em;
	font-size: clamp(3.5rem, 7vw + 1.5rem, 6.5rem);
	line-height: 1;
}

.storyboard .controls {
	position: absolute;
	z-index: 5;
	left: 0;
	right: 0;
	bottom: 0;
	max-width: 46rem;
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: calc(var(--safe-bottom) + 1.25rem);
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
	color: var(--fg);
}

.storyboard .control {
	appearance: none;
	border: 0;
	margin: 0;
	font: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	height: 3.5rem;
	min-width: 3.5rem;
	padding: 0;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	cursor: pointer;
	background: color-mix(in srgb, var(--fg) 16%, transparent);
	color: var(--fg);
	transition: background-color .5s, color .5s, box-shadow .5s, transform .15s, opacity .3s;
}

.storyboard .control .icon svg {
	height: 1.05em;
}

.storyboard .control.next {
	padding-inline: 1.5rem 1.25rem;
	background: var(--fg);
	color: var(--ink);
	box-shadow: 0 .6rem 1.5rem -.5rem color-mix(in srgb, var(--ink) 55%, transparent);
}

.storyboard .control:hover:not(:disabled) {
	transform: translateY(-2px);
}

.storyboard .control:active:not(:disabled) {
	transform: translateY(1px);
}

.storyboard .control:disabled {
	opacity: 0;
	pointer-events: none;
}

.storyboard .control:focus-visible,
.storyboard .dot:focus-visible,
.storyboard a:focus-visible {
	outline: 3px solid var(--fg);
	outline-offset: 3px;
}

.storyboard .dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .25rem;
	min-width: 0;
}

.storyboard .dot {
	appearance: none;
	border: 0;
	margin: 0;
	padding: .375rem;
	background: none;
	cursor: pointer;
}

.storyboard .dot::before {
	content: "";
	display: block;
	width: .625rem;
	height: .625rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--fg) 35%, transparent);
	transition: width .35s cubic-bezier(.2, .75, .2, 1), background-color .5s;
}

.storyboard .dot[aria-current="step"]::before {
	width: 1.75rem;
	background: var(--fg);
}

.storyboard .counter {
	display: none;
	font-weight: 700;
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.storyboard .controls.is-compact .dots {
	display: none;
}

.storyboard .controls.is-compact .counter {
	display: block;
}

.storyboard .topbar {
	position: absolute;
	z-index: 5;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: calc(var(--safe-top) + 1rem);
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
	color: var(--fg);
	pointer-events: none;
}

.storyboard .topbar > * {
	pointer-events: auto;
}

.storyboard .deck-title {
	appearance: none;
	border: 0;
	margin: 0;
	padding: .25rem 0;
	background: none;
	color: inherit;
	font-family: inherit;
	cursor: pointer;
	border-radius: .25rem;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: .01em;
	opacity: .75;
	transition: color .5s;
}

.storyboard .tools {
	display: flex;
	gap: .5rem;
	margin-left: auto;
}

.storyboard .sound-note {
	position: absolute;
	z-index: 30;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--fg);
	pointer-events: none;
	opacity: 0;
}

.storyboard .tools .control {
	height: 2.75rem;
	min-width: 2.75rem;
	padding-inline: 1rem;
	font-size: 1rem;
}

.storyboard .slide.is-current.enter-fade { animation-name: storyboard-fade; }
.storyboard .slide.is-current.enter-zoom { animation-name: storyboard-zoom; }
.storyboard .slide.is-current.enter-pop { animation-name: storyboard-pop; }
.storyboard .slide.is-current.enter-slide-left { animation-name: storyboard-from-right; }
.storyboard .slide.is-current.enter-slide-left.is-reverse { animation-name: storyboard-from-left; }
.storyboard .slide.is-current.enter-slide-right { animation-name: storyboard-from-left; }
.storyboard .slide.is-current.enter-slide-right.is-reverse { animation-name: storyboard-from-right; }
.storyboard .slide.is-current.enter-slide-up { animation-name: storyboard-from-bottom; }
.storyboard .slide.is-current.enter-slide-up.is-reverse { animation-name: storyboard-from-top; }
.storyboard .slide.is-current.enter-none { animation: none; }

.storyboard .slide.is-current .slide-content > * {
	animation: storyboard-rise .7s cubic-bezier(.2, .75, .2, 1) both;
	animation-delay: calc(var(--i, 0) * 130ms + 180ms);
}

.storyboard .slide.is-current .slide-content > .icons {
	animation-name: storyboard-wiggle;
	animation-duration: .8s;
}

.storyboard .slide.is-leaving .slide-content {
	animation: storyboard-fade-out .3s ease both;
}

@keyframes storyboard-fade { from { opacity: 0; } }
@keyframes storyboard-fade-out { to { opacity: 0; } }
@keyframes storyboard-zoom { from { opacity: 0; transform: scale(1.12); } }
@keyframes storyboard-pop { from { opacity: 0; transform: scale(.86); } }
@keyframes storyboard-from-right { from { transform: translateX(100%); } }
@keyframes storyboard-from-left { from { transform: translateX(-100%); } }
@keyframes storyboard-from-bottom { from { transform: translateY(100%); } }
@keyframes storyboard-from-top { from { transform: translateY(-100%); } }
@keyframes storyboard-rise { from { opacity: 0; transform: translateY(1.25rem); } }

@keyframes storyboard-wiggle {
	0% { opacity: 0; transform: scale(.5) rotate(-12deg); }
	60% { opacity: 1; transform: scale(1.08) rotate(4deg); }
	100% { transform: none; }
}

@media (max-width: 40rem) {
	.storyboard {
		top: max(env(safe-area-inset-top, 0px), .5rem);
		bottom: max(env(safe-area-inset-bottom, 0px), .5rem);
		border-radius: 1.75rem;
		--safe-top: 0px;
		--safe-bottom: 0px;
	}
	.storyboard .control.next .label {
		display: none;
	}
	.storyboard .control.next {
		padding-inline: 0;
	}
}

@media (max-height: 34rem) {
	.storyboard .topbar {
		padding-top: calc(var(--safe-top) + .5rem);
	}
	.storyboard .tools .control {
		height: 2.25rem;
		min-width: 2.25rem;
		padding-inline: .625rem;
		font-size: .875rem;
	}
	.storyboard .tools .control .label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
	.storyboard .deck-title {
		font-size: .875rem;
	}
	.storyboard .controls {
		padding-bottom: calc(var(--safe-bottom) + .5rem);
	}
	.storyboard .controls .control {
		height: 2.75rem;
		min-width: 2.75rem;
		font-size: 1rem;
	}
	.storyboard .slide-scroll {
		padding-top: .5rem;
		padding-bottom: .5rem;
	}
	.storyboard .slide-content {
		gap: 1rem;
	}
	.storyboard .icons {
		font-size: 3rem;
	}
}

.storyboard.is-og .topbar,
.storyboard.is-og .controls {
	display: none;
}

.storyboard.is-og *,
.storyboard.is-og .slide.is-current,
.storyboard.is-og .slide.is-current .slide-content > * {
	animation: none !important;
	transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.storyboard *,
	.storyboard .slide.is-current,
	.storyboard .slide.is-current .slide-content > * {
		animation: none !important;
		transition: none !important;
	}
}

.storyboard .deck-title:hover {
	opacity: 1;
}

.storyboard .deck-title:focus-visible {
	outline: 3px solid var(--fg);
	outline-offset: 3px;
}

@media (max-width: 40rem) {
	.storyboard .control.next.is-finish {
		padding-inline: 1.25rem 1rem;
	}
	.storyboard .control.next.is-finish .label {
		display: inline;
	}
}
