.mascot-widget {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 40;
	width: 132px;
	pointer-events: none;
}

.mascot-widget__toggle,
.mascot-widget__choice,
.mascot-widget__state {
	font: inherit;
}

.mascot-widget__toggle {
	display: block;
	width: 112px;
	height: 112px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	pointer-events: auto;
}

.mascot-widget__sprite {
	display: block;
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	background-size: 400% 200%;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .24));
}

.mascot-widget__panel {
	position: absolute;
	right: 0;
	bottom: 124px;
	width: 270px;
	padding: 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--surface-strong);
	box-shadow: var(--shadow);
	color: var(--text);
	pointer-events: auto;
}

.mascot-widget__section + .mascot-widget__section {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.mascot-widget__label {
	display: block;
	margin-bottom: 8px;
	color: var(--text-soft);
	font-size: 12px;
	font-weight: 700;
}

.mascot-widget__choices,
.mascot-widget__states {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.mascot-widget__choice,
.mascot-widget__state {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	padding: 7px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	color: var(--text-soft);
	font-size: 12px;
	text-align: left;
	cursor: pointer;
}

.mascot-widget__choice:hover,
.mascot-widget__state:hover,
.mascot-widget__choice:focus-visible,
.mascot-widget__state:focus-visible,
.mascot-widget__choice.is-active,
.mascot-widget__state.is-active {
	border-color: var(--accent-strong);
	background: var(--accent-soft);
	color: var(--text);
}

.mascot-widget__choice-sprite,
.mascot-widget__state-sprite {
	display: block;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	background-image: url('/uploads/mascots/whiteley-lightly-sprite.png');
	background-repeat: no-repeat;
	background-size: 400% 200%;
}

.mascot-widget__state-sprite {
	flex-basis: 34px;
	width: 34px;
	height: 34px;
}

.mascot-widget__toggle:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 4px;
}

@media (max-width: 640px) {
	.mascot-widget {
		right: 12px;
		bottom: 12px;
		width: 96px;
	}

	.mascot-widget__toggle {
		width: 84px;
		height: 84px;
	}

	.mascot-widget__panel {
		right: -4px;
		bottom: 96px;
		width: min(270px, calc(100vw - 24px));
	}
}
