*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	height: 100%;
	overflow: hidden;
	background: #0b0d12;
	color: #c9cbd3;
	font: 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
}

#roll {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

#hud {
	position: fixed;
	top: 18px;
	left: 22px;
	pointer-events: none;
}

#hud h1 {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #e8e9ee;
}

#info {
	opacity: 0.7;
	white-space: pre;
}

#play {
	position: fixed;
	right: 22px;
	top: 18px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.06);
	color: #e8e9ee;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background 0.2s, border-color 0.2s;
}

#play:hover,
#play:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.5);
	outline: none;
}

#play svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

#play .icon-pause,
body.playing #play .icon-play {
	display: none;
}

body.playing #play .icon-pause {
	display: block;
}

/* Before first play: big centered button. */
body:not(.started) #play {
	top: 50%;
	right: 50%;
	transform: translate(50%, -50%);
	width: 88px;
	height: 88px;
}

body:not(.started) #play svg {
	width: 34px;
	height: 34px;
}

#feedback {
	position: fixed;
	right: 22px;
	top: 80px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

body:not(.started) #feedback {
	display: none;
}

.rate {
	display: flex;
	gap: 8px;
}

#good,
#bad {
	font: inherit;
	color: #ffd166;
	background: rgba(255, 209, 102, 0.08);
	border: 1px solid rgba(255, 209, 102, 0.35);
	border-radius: 999px;
	padding: 6px 14px;
	cursor: pointer;
}

#good:hover,
#good:focus-visible {
	background: rgba(255, 209, 102, 0.18);
	outline: none;
}

#bad {
	color: #ef8f86;
	background: rgba(239, 143, 134, 0.08);
	border-color: rgba(239, 143, 134, 0.35);
}

#bad:hover,
#bad:focus-visible {
	background: rgba(239, 143, 134, 0.18);
	outline: none;
}

#note {
	font: inherit;
	width: 340px;
	color: #e8e9ee;
	background: rgba(11, 13, 18, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 6px;
	padding: 6px 10px;
}

#toast {
	font-size: 12px;
	opacity: 0;
	transition: opacity 0.3s;
	color: #c9cbd3;
}

#toast.show {
	opacity: 0.85;
}
