/* FULL DISCLOSURE: one-shotted by Opus 5.5. */

:root {
	--bg: #14161c;
	--panel: #1e222c;
	--ink: #eef1f6;
	--muted: #9aa3b5;
	--slop: #9be15d;
	--warn: #ffd23f;
	--danger: #ff5c5c;
	--link: #7cc7ff;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	height: 100%;
	overflow: hidden;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	-webkit-user-select: none;
	user-select: none;
}

canvas {
	display: block;
	position: fixed;
	inset: 0;
	touch-action: none;
}

a {
	color: var(--link);
}

[hidden] {
	display: none !important;
}

.overlay {
	position: fixed;
	inset: 0 0 var(--footer-h, 40px) 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 24px 16px;
	overflow-y: auto;
	background: rgba(10, 11, 15, 0.72);
	backdrop-filter: blur(2px);
	z-index: 10;
}

.panel {
	width: 100%;
	max-width: 640px;
	margin: auto;
	padding: 24px 28px;
	background: var(--panel);
	border: 2px solid #2d3342;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	text-align: center;
}

.panel.small {
	max-width: 480px;
}

h1 {
	margin: 0 0 6px;
	font-size: clamp(28px, 7vw, 48px);
	line-height: 1.05;
	letter-spacing: -1px;
}

h1 .slop {
	color: var(--slop);
	text-shadow: 0 0 18px rgba(155, 225, 93, 0.45);
}

h2 {
	margin: 18px 0 10px;
	font-size: 20px;
}

.tagline {
	margin: 0 0 16px;
	color: var(--muted);
}

.disclosure {
	padding: 12px 16px;
	background: repeating-linear-gradient(-45deg, #2a2410, #2a2410 12px, #241f0e 12px, #241f0e 24px);
	border: 2px dashed var(--warn);
	border-radius: 10px;
	color: var(--warn);
	text-align: left;
}

.disclosure strong {
	display: block;
	text-align: center;
	letter-spacing: 1px;
}

.disclosure p {
	margin: 6px 0;
	color: var(--ink);
	font-size: 17px;
	font-weight: 700;
	text-align: center;
}

.disclosure ul {
	margin: 8px 0 0;
	padding-left: 4px;
	list-style: none;
	color: #e9dfb8;
	font-size: 14px;
}

.disclosure li {
	margin: 3px 0;
}

.choices {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

button {
	font: inherit;
	cursor: pointer;
	color: #10130c;
	background: var(--slop);
	border: 0;
	border-radius: 10px;
	padding: 10px 18px;
	font-weight: 700;
	transition: transform 0.08s ease, filter 0.08s ease;
}

button:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
}

button:active {
	transform: translateY(1px);
}

button.secondary {
	color: var(--ink);
	background: #333a4a;
}

.choice {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 130px;
	padding: 14px 22px;
	color: var(--ink);
	background: #262b37;
	border: 2px solid #3a4254;
	font-size: 16px;
}

.choice span {
	font-size: 64px;
	line-height: 1.1;
}

.choice:hover {
	border-color: var(--slop);
}

.howto {
	margin: 18px 0 6px;
	text-align: left;
	color: var(--muted);
	font-size: 14px;
}

.howto summary {
	cursor: pointer;
	color: var(--ink);
	text-align: center;
}

.howto ul {
	padding-left: 20px;
}

.howto li {
	margin: 5px 0;
}

kbd {
	padding: 1px 5px;
	border: 1px solid #4a5266;
	border-bottom-width: 2px;
	border-radius: 4px;
	background: #2a303c;
	font-size: 12px;
}

.graveyard {
	margin: 14px 0 4px;
	color: var(--muted);
}

.link-button {
	padding: 2px 6px;
	color: var(--muted);
	background: none;
	font-weight: 400;
	font-size: 13px;
	text-decoration: underline;
}

.link-button.armed {
	color: var(--danger);
}

.shill {
	margin: 16px 0 0;
	font-weight: 700;
}

.dot {
	margin: 0 6px;
	color: var(--muted);
}

blockquote {
	margin: 10px 0 16px;
	padding: 12px 16px;
	background: #171a21;
	border-left: 4px solid var(--muted);
	border-radius: 6px;
	font-style: italic;
	text-align: left;
}

.stats {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
	margin: 0 auto 12px;
	max-width: 320px;
	text-align: left;
}

.stats dt {
	color: var(--muted);
}

.stats dd {
	margin: 0;
	font-weight: 700;
}

.fine {
	color: var(--muted);
	font-size: 13px;
}

.buttons {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 12px;
}

#disclosure-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
	background: #0b0c10;
	border-top: 2px solid var(--warn);
	color: var(--warn);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

#toasts {
	position: fixed;
	top: 124px;
	left: 50%;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: min(560px, calc(100% - 32px));
	transform: translateX(-50%);
	pointer-events: none;
}

.toast {
	padding: 7px 14px;
	background: rgba(20, 22, 28, 0.88);
	border: 1px solid #3a4254;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	animation: toast-in 0.25s ease-out;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast.level {
	border-color: #4fc3f7;
}

.toast.event {
	border-color: var(--warn);
	color: var(--warn);
}

.toast.boss {
	border-color: var(--danger);
	color: #ffd0d0;
	font-size: 16px;
}

.toast.out {
	opacity: 0;
	transform: translateY(-8px);
}

@keyframes toast-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.96);
	}
}

@media (max-width: 600px) {
	#toasts {
		top: 150px;
	}

	.toast {
		font-size: 12px;
	}

	#disclosure-bar {
		font-size: 11px;
	}

	.panel {
		padding: 18px 16px;
	}
}
