/**
 * Pecking Order — presentation.
 *
 * One warm dusk palette, shared with the canvas so the DOM chrome and the
 * yard itself read as one thing: dark earth, straw, egg-white type, a red
 * comb for danger and gold for reward. Every screen is positioned over the
 * canvas rather than replacing it, and the ones that fully cover it are
 * opaque, because the canvas keeps whatever it last drew.
 */

:root {
	--ink: #f4ecdd;
	--ink-dim: #b3a58c;
	--bg: #14110c;
	--panel: rgba(34, 27, 18, 0.96);
	--line: rgba(200, 170, 120, 0.18);

	--straw: #e0c890;
	--gold: #e0a83e;
	--red: #d9463d;
	--green: #7fb069;
	--blue: #6aa7e8;
	--violet: #c98ae0;

	--safe-t: env(safe-area-inset-top, 0px);
	--safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	overflow: hidden;
	background: var(--bg);
	color: var(--ink);
	font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	overscroll-behavior: none;
	touch-action: none;
}

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

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.015em; }

/* --------------------------------------------------------------- buttons */

.btn {
	appearance: none;
	border: 1px solid rgba(224, 200, 144, 0.3);
	background: linear-gradient(180deg, #4a3a22, #2e2415);
	color: var(--ink);
	font: inherit;
	font-weight: 600;
	padding: 12px 20px;
	min-height: 46px;
	border-radius: 11px;
	cursor: pointer;
	transition: transform 0.08s ease, filter 0.15s ease, border-color 0.15s ease;
}

.btn:hover:not(:disabled) { filter: brightness(1.16); border-color: rgba(224, 200, 144, 0.5); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--straw); outline-offset: 2px; }
.btn:disabled { opacity: 0.4; cursor: default; }

.btn--lg { font-size: 17px; padding: 15px 30px; min-height: 54px; }
.btn--small { font-size: 13px; padding: 9px 14px; min-height: 40px; }

.btn--ghost {
	background: rgba(255, 240, 210, 0.04);
	border-color: rgba(224, 200, 144, 0.2);
	color: var(--ink-dim);
}

.iconbtn {
	appearance: none;
	border: 1px solid rgba(224, 200, 144, 0.24);
	background: rgba(20, 15, 8, 0.6);
	color: var(--ink);
	width: 44px;
	height: 44px;
	border-radius: 11px;
	font-size: 13px;
	cursor: pointer;
}

/* --------------------------------------------------------------- screens */

.screen {
	position: fixed;
	z-index: 10;
	display: flex;
	flex-direction: column;
}

.screen[hidden] { display: none; }

/*
 * Full-cover screens are opaque on purpose: the canvas underneath still holds
 * the last frame of the previous run, and a translucent menu over a frozen
 * death screen looks like a bug. The title is the exception — it sits over
 * the idle yard, so it is only a gradient.
 */
.screen--menu {
	inset: 0;
	background:
		radial-gradient(1100px 620px at 50% -10%, #3a2e1a 0%, transparent 70%),
		linear-gradient(180deg, #1a150e, #0e0b07);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
}

.screen--title {
	inset: 0;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: linear-gradient(180deg, rgba(20, 17, 12, 0.55), rgba(20, 17, 12, 0.88) 60%, rgba(20, 17, 12, 0.96));
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
}

.title__inner {
	padding: calc(22px + var(--safe-t)) 22px calc(28px + var(--safe-b));
	max-width: 620px;
	width: 100%;
}

.title__hero { display: flex; flex-direction: column; align-items: center; }

.title__bird {
	width: 120px;
	height: 120px;
	margin-bottom: 4px;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
	animation: perch 3.2s ease-in-out infinite;
}

@keyframes perch {
	50% { transform: translateY(-4px) rotate(-2deg); }
}

.screen--title h1 {
	font-size: clamp(42px, 12vw, 72px);
	line-height: 1;
	letter-spacing: -0.035em;
	background: linear-gradient(180deg, #fff7e6, #d9b46a);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lede { color: var(--ink-dim); margin: 12px auto 20px; max-width: 38ch; }
.best { color: var(--green); font-size: 13px; margin: 20px 0 2px; min-height: 1em; }
.capital { color: var(--gold); font-size: 13px; margin: 0; font-variant-numeric: tabular-nums; }
/*
 * Controls, as a short list rather than a grey sentence. A playtester never
 * found the flap because it was the third clause of a line nobody reads, so
 * each one now gets its own row and the verb is the loudest part of it.
 */
.controls {
	list-style: none;
	margin: 18px auto 0;
	padding: 12px 16px;
	max-width: 340px;
	display: grid;
	gap: 7px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(20, 15, 8, 0.4);
	text-align: left;
	font-size: 13px;
}

.controls li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.controls b { color: var(--straw); min-width: 6.5em; font-weight: 650; }
.controls span { color: var(--ink-dim); }
.controls em { font-style: normal; color: rgba(179, 165, 140, 0.6); font-size: 12px; }

/*
 * The in-run flap prompt.
 *
 * Taken out of the HUD's flex column and pinned near the bottom: in the
 * column it competed with the trick row for the free space and landed dead
 * centre, on top of the player it was trying to teach.
 */
.hint {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(58px + var(--safe-b));
	margin: 0;
	white-space: nowrap;
	max-width: calc(100% - 24px);
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(20, 15, 8, 0.85);
	border: 1px solid rgba(224, 168, 62, 0.55);
	color: var(--straw);
	font-size: 13px;
	font-weight: 600;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
	animation: hintpulse 1.9s ease-in-out infinite;
}

.hint[hidden] { display: none; }

@keyframes hintpulse {
	50% {
		border-color: rgba(255, 220, 150, 0.95);
		box-shadow: 0 0 0 4px rgba(224, 168, 62, 0.12);
	}
}

.stack { display: flex; flex-direction: column; gap: 10px; }
.stack--wide { max-width: 360px; margin: 14px auto 0; }

/* ----------------------------------------------------------------- modes */

.modes {
	display: grid;
	gap: 8px;
	margin: 0 auto;
	max-width: 560px;
	text-align: left;
}

@media (min-width: 640px) {
	.modes { grid-template-columns: 1fr 1fr; }
	.modes .mode:first-child { grid-column: span 2; }
}

.mode {
	appearance: none;
	display: flex;
	align-items: center;
	gap: 12px;
	font: inherit;
	color: var(--ink);
	background: linear-gradient(180deg, rgba(74, 58, 34, 0.7), rgba(40, 31, 18, 0.85));
	border: 1px solid var(--line);
	border-radius: 13px;
	padding: 11px 14px;
	cursor: pointer;
	text-align: left;
	transition: transform 0.08s ease, filter 0.15s ease, border-color 0.15s ease;
}

.mode:hover { filter: brightness(1.14); border-color: rgba(224, 200, 144, 0.5); }
.mode:active { transform: translateY(1px); }
.mode:focus-visible { outline: 2px solid var(--straw); outline-offset: 2px; }

.mode--main {
	background: linear-gradient(180deg, rgba(224, 168, 62, 0.28), rgba(60, 42, 18, 0.9));
	border-color: rgba(224, 168, 62, 0.5);
}

.mode__icon { flex: 0 0 auto; width: 34px; height: 34px; }
.mode__icon img, .mode__icon canvas { width: 100%; height: 100%; display: block; }
.mode strong { display: block; font-size: 15px; }
.mode span { display: block; font-size: 12px; color: var(--ink-dim); margin-top: 1px; }
.mode em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Bottom sheets: moult, nest egg, pause, end. */
.screen--sheet {
	left: 0;
	right: 0;
	bottom: 0;
	top: auto;
	max-height: 88vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 22px 18px calc(22px + var(--safe-b));
	background: var(--panel);
	backdrop-filter: blur(14px);
	border-top: 1px solid var(--line);
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
	animation: rise 0.18s ease-out;
}

@keyframes rise { from { transform: translateY(18px); opacity: 0; } }

.screen--sheet h2 { font-size: 20px; }
.sub { color: var(--ink-dim); margin: 4px 0 16px; font-size: 14px; }

@media (min-width: 720px) {
	.screen--sheet {
		left: 50%;
		right: auto;
		transform: translateX(-50%);
		width: 680px;
	}
}

/* ------------------------------------------------------------------- hud */

.hud {
	position: fixed;
	inset: 0;
	z-index: 5;
	pointer-events: none;
	padding: calc(10px + var(--safe-t)) 12px calc(10px + var(--safe-b));
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.hud[hidden] { display: none; }
.hud button { pointer-events: auto; }

.hud__top { display: flex; align-items: flex-start; gap: 12px; }

.hp { flex: 1 1 0; max-width: 260px; }

.hp__bar {
	height: 12px;
	border-radius: 7px;
	background: rgba(20, 15, 8, 0.7);
	border: 1px solid rgba(224, 200, 144, 0.22);
	overflow: hidden;
}

.hp__fill {
	display: block;
	height: 100%;
	width: 100%;
	background: linear-gradient(90deg, #5e9e4d, #9ad483);
	transition: width 0.14s linear, background 0.3s ease;
}

.hp__fill.is-low { background: linear-gradient(90deg, #d9463d, #ff8a7d); }

.hp__text {
	display: block;
	font-size: 11px;
	color: var(--ink-dim);
	margin-top: 3px;
	font-variant-numeric: tabular-nums;
}

.hud__mid { flex: 0 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }

.timer {
	font-size: 24px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.timer.is-boss { color: var(--red); }

.objective {
	font-size: 12px;
	font-weight: 600;
	color: var(--gold);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
	font-variant-numeric: tabular-nums;
}

.objective[hidden] { display: none; }

.hud__right { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.revenue {
	font-size: 13px;
	color: var(--gold);
	font-variant-numeric: tabular-nums;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hud__xp { display: flex; align-items: center; gap: 8px; }

.level { font-size: 11px; color: var(--ink-dim); min-width: 42px; }

.xp__bar {
	flex: 1;
	height: 5px;
	border-radius: 3px;
	background: rgba(20, 15, 8, 0.7);
	overflow: hidden;
}

.xp__fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--blue), #a8cbff);
	transition: width 0.1s linear;
}

/* The pecking-order meter. Sits under the xp bar, reads as a title. */
.rank { display: flex; align-items: center; gap: 8px; }

.rank__name {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--straw);
	min-width: 42px;
	white-space: nowrap;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
	transition: color 0.3s ease;
}

.rank.is-top .rank__name { color: var(--gold); }
.rank.is-drop .rank__name { color: var(--red); }

.rank__track {
	flex: 0 1 220px;
	height: 5px;
	border-radius: 3px;
	background: rgba(20, 15, 8, 0.7);
	overflow: hidden;
}

.rank__fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #b8834a, var(--gold));
	transition: width 0.18s ease-out;
}

.rank.is-top .rank__fill { background: linear-gradient(90deg, var(--gold), #fff0c0); }

.bossbar { margin: 2px auto 0; width: min(560px, 92%); text-align: center; }
.bossbar[hidden] { display: none; }

.bossbar__name {
	display: block;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 3px;
}

.bossbar__track {
	height: 9px;
	border-radius: 5px;
	background: rgba(20, 15, 8, 0.8);
	border: 1px solid rgba(217, 70, 61, 0.4);
	overflow: hidden;
}

.bossbar__fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #8d1f1a, var(--red));
	transition: width 0.12s linear;
}

.bossbar.is-shielded .bossbar__fill { background: linear-gradient(90deg, #2b4a86, var(--blue)); }
.bossbar.is-enraged .bossbar__track { animation: pulseline 0.7s ease-in-out infinite; }

@keyframes pulseline {
	50% { border-color: rgba(255, 255, 255, 0.8); }
}

.eventchip {
	align-self: center;
	margin: 0;
	padding: 5px 13px;
	border-radius: 999px;
	background: rgba(201, 138, 224, 0.16);
	border: 1px solid rgba(201, 138, 224, 0.45);
	color: var(--violet);
	font-size: 12px;
	font-weight: 600;
}

.eventchip[hidden] { display: none; }

.weapons { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }

.wchip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px 4px 6px;
	border-radius: 9px;
	background: rgba(20, 15, 8, 0.68);
	border: 1px solid rgba(224, 200, 144, 0.22);
	font-size: 12px;
}

.wchip .icon { width: 18px; height: 18px; }
.wchip i { font-style: normal; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.wchip.is-max i { color: var(--gold); font-weight: 700; }
.wchip.is-evolved { border-color: rgba(224, 168, 62, 0.6); background: rgba(224, 168, 62, 0.12); }
.wchip.is-merged { border-color: rgba(106, 167, 232, 0.6); background: rgba(106, 167, 232, 0.12); }

.icon { display: inline-block; vertical-align: middle; }
.icon img, .icon canvas { width: 100%; height: 100%; display: block; }

/* --------------------------------------------------------- moult cards */

.choices { display: grid; gap: 10px; }

@media (min-width: 720px) {
	.choices { grid-template-columns: 1fr 1fr; }
}

.choice {
	appearance: none;
	text-align: left;
	font: inherit;
	color: var(--ink);
	background: linear-gradient(180deg, rgba(74, 58, 34, 0.75), rgba(40, 31, 18, 0.85));
	border: 1px solid var(--line);
	border-left: 3px solid var(--ink-dim);
	border-radius: 12px;
	padding: 13px 14px;
	cursor: pointer;
	transition: transform 0.08s ease, filter 0.15s ease;
}

.choice:hover { filter: brightness(1.14); }
.choice:active { transform: translateY(1px); }
.choice:focus-visible { outline: 2px solid var(--straw); outline-offset: 2px; }

.choice--common { border-left-color: #a89f8c; }
.choice--rare { border-left-color: var(--blue); }
.choice--epic { border-left-color: var(--violet); }
.choice--legendary { border-left-color: var(--gold); }

/*
 * Evolutions and mergers get their own treatment. They are the payoff the
 * whole build has been aiming at and they must not look like a fourth damage
 * upgrade.
 */
.choice--payoff {
	background: linear-gradient(180deg, rgba(224, 168, 62, 0.22), rgba(48, 36, 16, 0.9));
	border-color: rgba(224, 168, 62, 0.5);
	animation: glowcard 1.6s ease-in-out infinite;
}

@keyframes glowcard {
	50% { border-color: rgba(255, 220, 150, 0.9); }
}

.choice__head { display: flex; align-items: center; gap: 10px; }
.choice__icon { width: 30px; height: 30px; flex: 0 0 auto; }
.choice__head h3 { font-size: 15px; }
.choice__note { margin: 1px 0 0; font-size: 11px; color: var(--ink-dim); }
.choice__text { margin: 9px 0 0; font-size: 13px; color: #d6c9ae; }

.choice kbd {
	margin-left: auto;
	font: 600 11px/1 ui-monospace, Menlo, monospace;
	padding: 4px 7px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid var(--line);
	color: var(--ink-dim);
}

.offeractions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.is-banishing .choice {
	border-left-color: var(--red);
	filter: saturate(0.5);
}

.is-banishing .choice:hover { filter: saturate(1) brightness(1.1); }

/* --------------------------------------------------------------- nest egg */

.chest__title { color: var(--gold); }
.chestitems { display: grid; gap: 8px; margin-bottom: 16px; }

.chestitem {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 12px;
	border-radius: 11px;
	background: rgba(224, 168, 62, 0.1);
	border: 1px solid rgba(224, 168, 62, 0.32);
	animation: pop 0.32s ease-out backwards;
}

@keyframes pop {
	from { transform: scale(0.9) translateY(8px); opacity: 0; }
}

.chestitem__icon { width: 28px; height: 28px; flex: 0 0 auto; }
.chestitem strong { display: block; font-size: 14px; }
.chestitem span { font-size: 12px; color: var(--ink-dim); }

/* ------------------------------------------------------- banner & toasts */

.banner {
	position: fixed;
	top: calc(24% + var(--safe-t));
	left: 0;
	right: 0;
	z-index: 8;
	text-align: center;
	pointer-events: none;
	padding: 0 18px;
}

.banner[hidden] { display: none; }

.banner strong {
	display: block;
	font-size: clamp(26px, 8vw, 42px);
	font-weight: 750;
	letter-spacing: -0.03em;
	color: var(--red);
	text-shadow: 0 3px 22px rgba(0, 0, 0, 0.85);
}

.banner span { display: block; font-size: 14px; color: var(--ink); opacity: 0.85; margin-top: 4px; }
.banner.is-event strong { color: var(--violet); }
.banner.is-in { animation: bannerin 0.4s cubic-bezier(0.2, 1.3, 0.4, 1); }

@keyframes bannerin {
	from { transform: scale(0.82); opacity: 0; }
}

.toasts {
	position: fixed;
	right: 12px;
	bottom: calc(78px + var(--safe-b));
	z-index: 8;
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: flex-end;
	pointer-events: none;
}

.toast {
	margin: 0;
	padding: 7px 13px;
	border-radius: 999px;
	background: rgba(30, 23, 13, 0.92);
	border: 1px solid var(--line);
	font-size: 12px;
	animation: toastin 0.25s ease-out;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast.is-out { opacity: 0; transform: translateX(14px); }

@keyframes toastin {
	from { opacity: 0; transform: translateX(18px); }
}

/* ------------------------------------------------------------- the coop */

.menu {
	width: min(760px, 100%);
	margin: 0 auto;
	padding: calc(20px + var(--safe-t)) 16px calc(20px + var(--safe-b));
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.menu__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.menu__head h2 { font-size: 24px; }
.menu__capital { margin: 0; color: var(--gold); font-size: 14px; font-variant-numeric: tabular-nums; }

.tabs {
	display: flex;
	gap: 6px;
	margin: 16px 0 14px;
	padding: 4px;
	background: rgba(20, 15, 8, 0.6);
	border: 1px solid var(--line);
	border-radius: 12px;
}

.tab {
	appearance: none;
	flex: 1;
	border: 0;
	background: transparent;
	color: var(--ink-dim);
	font: inherit;
	font-weight: 600;
	font-size: 13px;
	padding: 9px 6px;
	min-height: 42px;
	border-radius: 9px;
	cursor: pointer;
}

.tab.is-on { background: rgba(224, 168, 62, 0.18); color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--straw); outline-offset: -2px; }

.panel { display: grid; gap: 9px; }
.panel[hidden] { display: none; }

.panel__head {
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ink-dim);
	margin: 12px 0 0;
}

.panel__note { margin: 0 0 4px; font-size: 12px; color: var(--ink-dim); }

.card {
	display: grid;
	gap: 8px;
	padding: 13px 14px;
	border-radius: 12px;
	background: rgba(44, 34, 20, 0.8);
	border: 1px solid var(--line);
	border-left: 3px solid transparent;
}

.card.is-on { border-color: rgba(224, 168, 62, 0.5); background: rgba(224, 168, 62, 0.1); }
.card.is-locked { opacity: 0.72; }
.card--common { border-left-color: #a89f8c; }
.card--rare { border-left-color: var(--blue); }
.card--epic { border-left-color: var(--violet); }
.card--legendary { border-left-color: var(--gold); }

.card__head { display: flex; align-items: center; gap: 10px; }
.card__icon { width: 30px; height: 30px; flex: 0 0 auto; }
.card__portrait { width: 56px; height: 56px; flex: 0 0 auto; }
.card__head strong { display: block; font-size: 15px; }
.card__sub { font-size: 11px; color: var(--ink-dim); }
.card p { margin: 0; font-size: 13px; color: #d6c9ae; }
.card .btn { justify-self: start; }

.menu__foot { margin-top: auto; padding-top: 18px; }
.menu__foot .btn { width: 100%; }

.records { display: grid; gap: 2px; margin-bottom: 6px; }

.stat {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 7px 0;
	border-bottom: 1px solid rgba(200, 170, 120, 0.1);
	font-size: 14px;
}

.stat span { color: var(--ink-dim); }
.stat strong { font-variant-numeric: tabular-nums; }
.stat--total { border-bottom: 0; border-top: 1px solid var(--line); margin-top: 6px; }
.stat--total strong { color: var(--gold); }

.ach {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 2px 8px;
	margin: 0;
	padding: 8px 0;
	border-bottom: 1px solid rgba(200, 170, 120, 0.1);
	opacity: 0.5;
}

.ach.is-got { opacity: 1; }
.ach b { grid-row: span 2; color: var(--green); text-align: center; }
.ach span { font-size: 14px; font-weight: 600; }
.ach em { grid-column: 2; font-style: normal; font-size: 12px; color: var(--ink-dim); }

/* -------------------------------------------------------------- end screen */

.ladder {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 14px;
}

.ladder span {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 999px;
	border: 1px solid var(--line);
	color: var(--ink-dim);
}

.ladder span.is-reached { border-color: rgba(224, 168, 62, 0.5); color: var(--straw); }
.ladder span.is-best { background: rgba(224, 168, 62, 0.2); color: var(--gold); border-color: var(--gold); }

/* --------------------------------------------------------------- settings */

.settings { display: grid; gap: 12px; margin-bottom: 18px; }

.setting {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	font-size: 14px;
	color: var(--ink-dim);
}

.setting input[type="range"] { flex: 1; max-width: 60%; accent-color: var(--gold); }
.setting--check { justify-content: flex-start; }
.setting--check input { width: 20px; height: 20px; accent-color: var(--gold); }

/*
 * Respect a system-level preference for less motion. The looping decorative
 * animations are the ones that cause trouble; the short transitions that tell
 * you a button was pressed are worth keeping.
 */
@media (prefers-reduced-motion: reduce) {
	.choice--payoff,
	.bossbar.is-enraged .bossbar__track,
	.title__bird,
	.hint {
		animation: none;
	}

	.screen--sheet,
	.chestitem,
	.banner.is-in,
	.toast {
		animation-duration: 0.01s;
	}
}

/* The daily's share line. Sits under the stat rows in the end sheet. */
.sharebtn { margin-top: 12px; }
