:root {
	/* Replicate the wand cursor art used on qhtlf.danpol.co.uk */
	--wand-cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><g fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M28 28 L8 8'/><path d='M7 7 l-4 -4'/></g><g fill='%23ffffff'><circle cx='6' cy='6' r='2'/></g><g stroke='%2300e6ff' stroke-width='2' stroke-linecap='round'><path d='M10 10 l-3 -3'/><path d='M12 8 l-2 -2'/></g></svg>") 6 6, auto;
	--wand-cursor-pointer: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><g fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M28 28 L8 8'/><path d='M7 7 l-4 -4'/></g><g fill='%23ffffff'><circle cx='6' cy='6' r='2'/></g><g stroke='%2300e6ff' stroke-width='2' stroke-linecap='round'><path d='M10 10 l-3 -3'/><path d='M12 8 l-2 -2'/></g></svg>") 6 6, pointer;
}

html,
body {
	cursor: var(--wand-cursor);
}

a,
button,
.button,
[role="button"],
input[type="submit"],
input[type="button"],
label,
summary {
	cursor: var(--wand-cursor-pointer);
}

.cursor-spark,
.cursor-puff {
	position: fixed;
	pointer-events: none;
	z-index: 6000;
}

.cursor-spark {
	width: 14px;
	height: 14px;
	margin-left: -7px;
	margin-top: -7px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 230, 255, 0.9), rgba(0, 230, 255, 0));
	box-shadow: 0 0 10px rgba(0, 230, 255, 0.8);
	transform: scale(0.65);
	transition: transform 120ms ease, opacity 120ms ease;
}

.cursor-spark.is-active {
	transform: scale(1);
	opacity: 1;
}

.cursor-puff {
	width: 24px;
	height: 24px;
	margin-left: -12px;
	margin-top: -12px;
	border: 2px solid rgba(255, 255, 255, 0.75);
	border-radius: 50%;
	opacity: 0;
}

.cursor-puff.is-visible {
	animation: puffFade 450ms ease-out forwards;
}

@keyframes puffFade {
	0% {
		transform: scale(0.3);
		opacity: 0.9;
	}
	100% {
		transform: scale(1.75);
		opacity: 0;
	}
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
[contenteditable="true"] {
	cursor: text;
}

html.modal-open,
body.modal-open {
	overflow: hidden;
}

.modal-overlay {
	position: fixed;
	inset: 0;
	background: radial-gradient(circle at 30% 20%, rgba(0, 230, 255, 0.25), rgba(0, 0, 0, 0.9));
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 3vw, 2.5rem);
	z-index: 5000;
}

.modal-board {
	position: relative;
	width: min(520px, 100%);
	background: rgba(5, 20, 35, 0.95);
	border-radius: 28px;
	box-shadow: 0 25px 65px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(0, 230, 255, 0.25);
	padding: clamp(2rem, 4vw, 3rem);
	color: #f1f6ff;
	font-family: "Montserrat", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	line-height: 1.6;
}

.modal-board button.close-trigger {
	position: absolute;
	top: 0.65rem;
	right: 0.75rem;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: var(--wand-cursor-pointer);
}

.frame-inner h1 {
	margin: 0 0 0.35rem;
	font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.frame-inner h2,
.frame-inner h3 {
	margin: 1rem 0 0.35rem;
	font-size: clamp(1.1rem, 2.6vw, 1.35rem);
}

.frame-inner p {
	margin: 0.35rem 0;
}

.frame-inner ol {
	padding-left: 1.25rem;
	margin: 0.5rem 0 0;
}

.frame-inner a {
	color: #00e6ff;
}

.modal-fallback {
	max-width: 640px;
	margin: 4rem auto;
	padding: 2rem;
	border-radius: 24px;
	background: rgba(4, 18, 31, 0.9);
	color: #f1f6ff;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.modal-fallback h1,
.modal-fallback h2 {
	margin-top: 0;
}

.modal-fallback ol {
	padding-left: 1.25rem;
}
