:root {
	--bs-body-font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--app-surface-color: rgba(255, 255, 255, 0.88);
	--app-border-color: rgba(148, 163, 184, 0.18);
	--app-shadow-color: rgba(15, 23, 42, 0.08);
}

html {
	font-size: 16px;
}

body {
	min-height: 100vh;
	background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 26%), radial-gradient(circle at left center, rgba(124, 58, 237, 0.06), transparent 22%), linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

a,
button,
input,
textarea,
select {
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

	a:hover {
		text-decoration: none;
	}

.page-kicker {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #4f46e5;
}

.owner-pill {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 0.45rem 0.85rem;
	background-color: rgba(15, 23, 42, 0.06);
	color: #0f172a;
	font-size: 0.9rem;
	font-weight: 600;
}

.hero-panel {
	background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 30%), radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.12), transparent 30%), var(--app-surface-color);
	backdrop-filter: blur(10px);
}

.app-navbar {
	background: rgba(15, 23, 42, 0.92);
	backdrop-filter: blur(12px);
}

.card {
	border: 1px solid var(--app-border-color);
	border-radius: 1rem;
	background-color: var(--app-surface-color);
	backdrop-filter: blur(10px);
	box-shadow: 0 0.75rem 1.5rem var(--app-shadow-color);
}

.wheel-viewer-card {
	min-height: 100%;
}

.featured-wheel-card .card-body {
	padding: 1.5rem;
}

.list-group-item-action {
	transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.wheel-stage {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 320px;
	padding: 1rem;
	border: 1px solid var(--app-border-color);
	border-radius: 1.25rem;
	background: radial-gradient(circle at top, rgba(37, 99, 235, 0.08), transparent 38%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.wheel-canvas {
	position: relative;
	z-index: 1;
	display: block;
	width: min(100%, 560px);
	height: auto;
	max-width: 560px;
	aspect-ratio: 1 / 1;
}

.wheel-pointer {
	position: absolute;
	top: 0.2rem;
	left: 50%;
	width: 2.4rem;
	height: 4.25rem;
	transform: translateX(-50%);
	pointer-events: none;
	z-index: 5;
	filter: drop-shadow(0 0.25rem 0.35rem rgba(15, 23, 42, 0.24));
}

	.wheel-pointer::before {
		content: "";
		position: absolute;
		top: 0;
		left: 50%;
		width: 0.55rem;
		height: 1.2rem;
		transform: translateX(-50%);
		border-radius: 999px;
		background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
	}

	.wheel-pointer::after {
		content: "";
		position: absolute;
		top: 0.9rem;
		left: 50%;
		width: 2.2rem;
		height: 3.1rem;
		transform: translateX(-50%);
		background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
		clip-path: polygon(50% 100%, 0 0, 100% 0);
	}

.wheel-center-cap {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(24%, 9rem);
	max-width: 9rem;
	aspect-ratio: 1 / 1;
	transform: translate(-50%, -50%);
	transform-origin: 50% 50%;
	pointer-events: none;
	user-select: none;
	z-index: 2;
	filter: drop-shadow(0 0.5rem 0.9rem rgba(15, 23, 42, 0.18));
}

.wheel-result-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(82%, 21rem);
	transform: translate(-50%, -46%) scale(0.96);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 4;
}

	.wheel-result-overlay.is-visible {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}

.wheel-result-overlay-shell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	padding: 0.9rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 1rem;
	background: rgba(15, 23, 42, 0.74);
	backdrop-filter: blur(12px);
	box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.22);
}

.wheel-result-overlay-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
}

.wheel-result-overlay-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	padding: 0.6rem 0.95rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
	overflow-wrap: anywhere;
}

	.wheel-result-overlay-badge span {
		display: block;
		max-width: 100%;
		overflow-wrap: anywhere;
	}

.recent-spin-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.recent-spin-item {
	padding: 0.9rem 1rem;
	border: 1px solid rgba(148, 163, 184, 0.2);
	border-radius: 0.9rem;
	background: rgba(255, 255, 255, 0.72);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.recent-spin-badge {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 0.45rem 0.8rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 700;
	line-height: 1.2;
	white-space: normal;
	overflow-wrap: anywhere;
}

.segment-swatch {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border-radius: 999px;
	border: 2px solid transparent;
	flex: 0 0 auto;
}

.segment-disabled {
	opacity: 0.56;
}

.segment-list {
	max-height: 24rem;
	overflow: auto;
}

.segment-editor-list {
	max-height: 70vh;
	overflow: auto;
}

.segment-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	width: min(100%, 24rem);
}

.segment-count-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 0.375rem 0.75rem;
	background-color: rgba(37, 99, 235, 0.08);
	color: #1d4ed8;
	font-size: 0.875rem;
	font-weight: 600;
}

code {
	font-size: 0.9em;
}

.table > :not(caption) > * > * {
	vertical-align: middle;
}

body.identity-area main .row {
	row-gap: 1rem;
}

	body.identity-area main .row > [class*="col-"] > section,
	body.identity-area main .row > [class*="col-"] > form,
	body.identity-area main #account,
	body.identity-area main #registerForm,
	body.identity-area main #loginForm,
	body.identity-area main #forgot-password,
	body.identity-area main #reset-password-form,
	body.identity-area main #resend-confirmation-form,
	body.identity-area main .manage-nav {
		padding: 1.4rem;
		border: 1px solid var(--app-border-color);
		border-radius: 1rem;
		background-color: var(--app-surface-color);
		backdrop-filter: blur(10px);
		box-shadow: 0 0.75rem 1.5rem var(--app-shadow-color);
	}

body.identity-area main .manage-nav {
	padding: 0.8rem;
}

body.identity-area main h1,
body.identity-area main h2,
body.identity-area main h3 {
	font-weight: 700;
}

body.identity-area main .nav-pills .nav-link.active,
body.identity-area main .nav-pills .show > .nav-link {
	background-color: #1d4ed8;
}

body.identity-area main .text-danger ul {
	margin-bottom: 0;
	padding-left: 1.25rem;
}

@media (min-width: 768px) {
	.segment-toolbar {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}
}

.site-footer-link {
	color: inherit;
	text-decoration: none;
}

	.site-footer-link:hover {
		color: #0f172a;
	}

.auth-card {
	border-radius: 1.25rem;
}

.auth-divider {
	position: relative;
	margin: 1.5rem 0;
	text-align: center;
}

	.auth-divider::before {
		content: "";
		position: absolute;
		top: 50%;
		left: 0;
		right: 0;
		height: 1px;
		background: rgba(148, 163, 184, 0.3);
	}

	.auth-divider span {
		position: relative;
		display: inline-block;
		padding: 0 0.9rem;
		background: rgba(248, 250, 252, 0.96);
		color: #64748b;
		font-size: 0.82rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

.passkey-panel {
	padding: 1rem;
	border: 1px solid rgba(59, 130, 246, 0.16);
	border-radius: 1rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(239, 246, 255, 0.92) 100%);
}

.passkey-list {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.passkey-list-item {
	padding: 1rem;
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.72);
}

.passkey-list-item-actions {
	width: min(100%, 24rem);
}
