/* Tazama: a clean nature site for wildlife sightings. See web/DESIGN.md.
 *
 * White pages, deep forest green, lime buttons, photos fading into mist,
 * and one handwritten word per headline. Pages open with a circle that
 * bursts out from the click, and a sighting's photo flies to its page. */

@font-face {
	font-family: "Geist";
	src: url("/assets/vendor/fonts/geist.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: "Kalam";
	src: url("/assets/vendor/fonts/kalam.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

/* Tokens ------------------------------------------------------------- */

:root {
	--forest: #1f4d3a;
	--moss: #4e7d3a;
	--lime: #d4f06a;
	--lime-ink: #15201a;
	--band: #1f4d3a;
	--band-ink: #f1f6ee;

	--paper: #ffffff;
	--mist: #f7f9f5;
	--surface: #f1f5ef;
	--surface-2: #e2eadf;
	--ink: #15201a;
	--muted: #56655b;
	--line: #e1e8de;
	--glow: rgb(212 240 106 / 0.25);
	--card-shadow: 0 18px 40px -24px rgb(21 32 26 / 0.35);

	/* The globe reads these, so it follows the theme. */
	--globe-ocean: #f1f5ef;
	--globe-land: #1f4d3a;
	--globe-grat: #1f4d3a;
	--globe-glow: #d4f06a;

	--font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--script: "Kalam", "Segoe Print", cursive;
	--gutter: clamp(16px, 4vw, 48px);
	--max: 1240px;
	--ease: cubic-bezier(0.7, 0, 0.2, 1);

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--forest: #9fd18a;
		--moss: #8cc276;
		--band: #12271e;
		--paper: #0d1411;
		--mist: #111a16;
		--surface: #16211b;
		--surface-2: #213029;
		--ink: #ecf2ec;
		--muted: #9baca1;
		--line: #24322a;
		--glow: rgb(212 240 106 / 0.08);
		--card-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.9);
		--globe-ocean: #16211b;
		--globe-land: #b9dca8;
		--globe-grat: #ffffff;
		--globe-glow: #6f8f2c;
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--forest: #9fd18a;
	--moss: #8cc276;
	--band: #12271e;
	--paper: #0d1411;
	--mist: #111a16;
	--surface: #16211b;
	--surface-2: #213029;
	--ink: #ecf2ec;
	--muted: #9baca1;
	--line: #24322a;
	--glow: rgb(212 240 106 / 0.08);
	--card-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.9);
	--globe-ocean: #16211b;
	--globe-land: #b9dca8;
	--globe-grat: #ffffff;
	--globe-glow: #6f8f2c;
	color-scheme: dark;
}

/* Page transitions ---------------------------------------------------- */

@view-transition {
	navigation: auto;
}

/* The new page is revealed by a growing circle (see layout.templ), so the
 * old one stays put underneath instead of fading. */
::view-transition-old(root),
::view-transition-new(root) {
	animation: none;
	mix-blend-mode: normal;
}

::view-transition-group(*) {
	animation-duration: 0.7s;
	animation-timing-function: var(--ease);
}

::view-transition-old(*),
::view-transition-new(*) {
	height: 100%;
	object-fit: cover;
	overflow: clip;
}

@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}
}

/* The fallback burst, for browsers without cross-page view transitions. */
.burst {
	position: fixed;
	z-index: 1000;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border-radius: 50%;
	background: #1f4d3a;
	pointer-events: none;
}

.curtain {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: #1f4d3a;
	pointer-events: none;
}

/* Base --------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 16px/1.6 var(--font);
	font-feature-settings: "ss01";
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3 {
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.035em;
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0;
	text-wrap: pretty;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--moss);
	outline-offset: 3px;
	border-radius: 6px;
}

/* The handwritten word in a headline. */
.script {
	font-family: var(--script);
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--moss);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--surface);
	color: var(--forest);
	font-size: 0.85rem;
	font-weight: 500;
}

code {
	font-size: 0.9em;
	background: var(--surface);
	padding: 0.1em 0.4em;
	border-radius: 6px;
}

.skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--paper);
	border-radius: 999px;
}

.skip:focus {
	top: 12px;
}

/* Pills ----------------------------------------------------------------- */

.pill {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font: 500 0.98rem/1 var(--font);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.2s ease;
}

.pill:hover {
	transform: translateY(-2px);
}

.pill:active {
	transform: translateY(0) scale(0.98);
}

.pill--dark,
.pill--forest {
	background: #1f4d3a;
	color: #fff;
	box-shadow: 0 14px 28px -14px rgb(31 77 58 / 0.6);
}

.pill--lime {
	background: var(--lime);
	color: var(--lime-ink);
	box-shadow: 0 14px 28px -16px rgb(120 150 30 / 0.7);
}

.pill--lime .pill__arrow {
	background: #1f4d3a;
	color: var(--lime);
}

.pill--light {
	background: var(--paper);
	color: var(--ink);
	border-color: var(--line);
	box-shadow: 0 10px 26px -16px rgb(0 0 0 / 0.3);
}

.pill:has(.pill__arrow) {
	padding-right: 7px;
}

.pill__arrow {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	color: #1f4d3a;
	transition: transform 0.35s var(--ease);
}

.pill--light .pill__arrow {
	background: #1f4d3a;
	color: #fff;
}

.pill:hover .pill__arrow {
	transform: rotate(-45deg);
}

.pill--small {
	min-height: 42px;
	padding-left: 18px;
	font-size: 0.9rem;
}

.pill--small .pill__arrow {
	width: 28px;
	height: 28px;
}

/* Header -------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--paper) 82%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	view-transition-name: site-header;
}

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	max-width: var(--max);
	margin: 0 auto;
	padding: 12px var(--gutter);
}

.brand {
	display: flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
	justify-self: start;
}

.brand__name {
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.logo {
	flex: none;
	color: var(--forest);
}

.nav {
	display: flex;
	gap: 2px;
}

.nav a {
	position: relative;
	padding: 8px 16px;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--muted);
	text-decoration: none;
	border-radius: 999px;
	transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
	color: var(--ink);
}

.nav a[aria-current="page"] {
	color: var(--forest);
	background: var(--surface);
}

.site-header__end {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-self: end;
}

.theme-toggle {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
}

.theme-toggle .moon {
	display: none;
}

:root[data-theme="dark"] .theme-toggle .sun {
	display: none;
}

:root[data-theme="dark"] .theme-toggle .moon {
	display: block;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .sun {
		display: none;
	}

	:root:not([data-theme="light"]) .theme-toggle .moon {
		display: block;
	}
}

@media (max-width: 760px) {
	.site-header__inner {
		grid-template-columns: 1fr auto;
	}

	.site-header__end .pill {
		display: none;
	}

	.nav {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-content: center;
	}
}

/* Hero: words on the left, a photo melting into mist on the right. ----- */

.hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	max-width: 1440px;
	min-height: clamp(640px, calc(100svh - 66px), 900px);
	margin: 0 auto;
	overflow: hidden;
}

.hero__copy {
	position: relative;
	z-index: 3;
	display: grid;
	justify-items: start;
	gap: 22px;
	padding: 48px var(--gutter);
	padding-left: max(var(--gutter), calc((min(100vw, 1440px) - var(--max)) / 2 + var(--gutter)));
}

.hero__title {
	font-size: clamp(2.9rem, 6vw, 5.6rem);
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 1;
}

.hero__title .script {
	font-size: 1.08em;
	line-height: 0.9;
}

.line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.1em;
}

.line__inner {
	display: block;
}

.hero__lede {
	max-width: 44ch;
	font-size: clamp(1.02rem, 1.3vw, 1.15rem);
	color: var(--muted);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
}

.hero__play {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 500;
	text-decoration: none;
	color: var(--ink);
}

.hero__play-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--paper);
	color: var(--forest);
	box-shadow: 0 8px 24px -10px rgb(21 32 26 / 0.45);
	transition: transform 0.3s var(--ease);
}

.hero__play:hover .hero__play-icon {
	transform: scale(1.1);
}

/* The stat boxes, like a field report. */
.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
	max-width: 560px;
	margin: 18px 0 0;
}

.stat {
	display: flex;
	flex-direction: column-reverse;
	padding: 16px 14px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: color-mix(in srgb, var(--paper) 80%, transparent);
	backdrop-filter: blur(8px);
	text-align: center;
}

.stat dd {
	margin: 0;
	font-size: clamp(1.4rem, 2.2vw, 1.9rem);
	font-weight: 500;
	letter-spacing: -0.04em;
	color: var(--forest);
	line-height: 1.1;
}

.stat dt {
	font-size: 0.78rem;
	color: var(--muted);
}

.hero__scene {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 62%;
	z-index: 1;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%);
	mask-image: linear-gradient(to right, transparent 0%, #000 34%);
}

.hero__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 1.4s ease;
}

.hero__slide.is-active {
	opacity: 1;
}

.hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: 60% 50%;
}

/* Soft white mist drifting over the photo's edges. */
.hero__mist {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 40% 30% at 20% 85%, rgb(255 255 255 / 0.85), transparent 70%),
		radial-gradient(ellipse 35% 25% at 70% 100%, rgb(255 255 255 / 0.7), transparent 70%),
		radial-gradient(ellipse 30% 22% at 40% 0%, rgb(255 255 255 / 0.6), transparent 70%),
		linear-gradient(to top, var(--paper), transparent 18%);
}

:root[data-theme="dark"] .hero__mist {
	opacity: 0.15;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .hero__mist {
		opacity: 0.15;
	}
}

.floaters {
	position: absolute;
	right: max(var(--gutter), 4vw);
	top: 50%;
	z-index: 3;
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	transform: translateY(-50%);
}

.floaters li:nth-child(2) {
	transform: translateX(18px);
}

.floaters li:nth-child(3) {
	transform: translateX(-26px);
}

.floater {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 270px;
	padding: 8px 18px 8px 8px;
	border-radius: 20px;
	background: rgb(255 255 255 / 0.72);
	backdrop-filter: blur(14px) saturate(1.3);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	border: 1px solid rgb(255 255 255 / 0.7);
	box-shadow: 0 20px 40px -24px rgb(21 32 26 / 0.55);
	color: #15201a;
	text-decoration: none;
	transition: transform 0.35s var(--ease);
}

.floater:hover {
	transform: translateX(-6px);
}

.floater img {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 14px;
	object-fit: cover;
}

.floater strong {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.floater small {
	display: block;
	color: #4f5d54;
	font-size: 0.8rem;
	line-height: 1.35;
}

.hero__birds {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

@media (max-width: 960px) {
	.hero {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.hero__copy {
		padding: 32px var(--gutter) 0;
	}

	.hero__scene {
		position: relative;
		width: 100%;
		height: 420px;
		-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%);
		mask-image: linear-gradient(to bottom, transparent 0%, #000 25%);
	}

	.floaters {
		top: auto;
		bottom: 24px;
		right: var(--gutter);
		left: var(--gutter);
		transform: none;
	}

	.floaters li:nth-child(n) {
		transform: none;
	}

	.floaters li:nth-child(n + 2) {
		display: none;
	}

	.floater {
		width: 100%;
	}
}

@media (max-width: 520px) {
	.stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Sections ------------------------------------------------------------ */

.section {
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(64px, 9vw, 120px) var(--gutter) 0;
}

.section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 28px;
}

.section__head h2 {
	font-size: clamp(2rem, 4.2vw, 3.4rem);
	letter-spacing: -0.045em;
}

.section__note {
	margin-top: 8px;
	color: var(--muted);
}

/* The forest-green band that holds the two-country face-off. ---------- */

.band {
	margin-top: clamp(72px, 10vw, 130px);
	background: var(--band);
	color: var(--band-ink);
	overflow: hidden;
}

.band__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(56px, 8vw, 104px) var(--gutter);
}

.band .section__note {
	color: rgb(241 246 238 / 0.72);
}

.band .script {
	color: var(--lime);
}

.section__head--band {
	display: grid;
	justify-items: start;
	gap: 6px;
}

.section__head--band h2 {
	max-width: 18ch;
}

.versus-form {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 14px;
	margin-bottom: 40px;
}

.field--band {
	min-width: 220px;
	padding: 10px 18px;
	border: 1px solid rgb(255 255 255 / 0.18);
	border-radius: 18px;
	background: rgb(255 255 255 / 0.06);
	color: rgb(241 246 238 / 0.72);
}

.versus-form .field--band select {
	color: #fff;
	font-size: 1.05rem;
	font-weight: 500;
}

.versus-form .field--band select option {
	color: #15201a;
}

.versus-form__vs {
	align-self: center;
	font-family: var(--script);
	font-size: 1.6rem;
	color: var(--lime);
}

.versus {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.side {
	padding: 22px;
	border-radius: 26px;
	background: rgb(255 255 255 / 0.06);
	border: 1px solid rgb(255 255 255 / 0.1);
}

.side__head {
	margin-bottom: 16px;
}

.side__head h3 {
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 500;
	letter-spacing: -0.04em;
}

.side__head p {
	font-size: 0.88rem;
	color: rgb(241 246 238 / 0.68);
}

.side__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.side__row {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 70px 3ch;
	align-items: center;
	gap: 12px;
	padding: 6px 10px 6px 6px;
	border-radius: 14px;
	color: inherit;
	text-decoration: none;
	transition: background 0.2s ease;
}

.side__row:hover {
	background: rgb(255 255 255 / 0.08);
}

.side__row.is-shared {
	background: rgb(212 240 106 / 0.1);
}

.side__row img,
.side__noimg {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	object-fit: cover;
}

.side__noimg {
	display: grid;
	place-items: center;
	background: rgb(255 255 255 / 0.1);
	font-weight: 600;
}

.side__name {
	display: grid;
	font-size: 0.95rem;
	line-height: 1.25;
}

.side__both {
	font-family: var(--script);
	font-size: 0.85rem;
	color: var(--lime);
}

.side__bar {
	height: 6px;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.12);
	overflow: hidden;
}

.side__bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--lime);
}

.side__count {
	text-align: right;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.versus__middle {
	display: grid;
	justify-items: center;
	gap: 16px;
	padding-top: 40px;
	text-align: center;
}

.versus__shared-count {
	display: grid;
	color: rgb(241 246 238 / 0.78);
}

.versus__shared-count strong {
	font-size: 4rem;
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 1;
	color: var(--lime);
}

.versus__none {
	font-family: var(--script);
	font-size: 1.2rem;
	color: var(--lime);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chip {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--lime);
	color: #15201a;
	font-size: 0.82rem;
	font-weight: 500;
}

@media (max-width: 960px) {
	.versus {
		grid-template-columns: minmax(0, 1fr);
	}

	.versus__middle {
		order: -1;
		padding-top: 0;
	}
}

@media (max-width: 520px) {
	.field--band {
		min-width: 0;
		flex: 1 1 100%;
	}

	.versus-form__vs {
		display: none;
	}

	.side__row {
		grid-template-columns: 40px minmax(0, 1fr) 3ch;
	}

	.side__bar {
		display: none;
	}
}


/* Filters: one rounded search bar, like a booking site's. ---------------- */

.filters {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	align-items: center;
	margin-bottom: 40px;
	padding: 8px 8px 8px 12px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 999px;
	box-shadow: 0 16px 40px -28px rgb(0 0 0 / 0.4);
}

.field {
	display: grid;
	gap: 2px;
	padding: 6px 18px;
	border-right: 1px solid var(--line);
	font-size: 0.78rem;
	font-weight: 600;
}

.field:nth-child(4) {
	border-right: 0;
}

.field select,
.field input {
	width: 100%;
	padding: 2px 0;
	border: 0;
	background: transparent;
	color: var(--muted);
	font: 400 0.95rem/1.3 var(--font);
	cursor: pointer;
}

.field select:focus,
.field input:focus {
	outline: none;
	color: var(--ink);
}

.field:focus-within {
	background: var(--surface);
	border-radius: 999px;
}

.filters__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-left: 8px;
}

.filters__clear {
	font-size: 0.9rem;
	color: var(--muted);
}

@media (max-width: 900px) {
	.filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
		padding: 10px;
		border-radius: 24px;
	}

	.field {
		border-right: 0;
		background: var(--surface);
		border-radius: 16px;
		padding: 10px 14px;
	}

	.filters__actions {
		grid-column: 1 / -1;
		padding: 4px 0 0;
	}

	.filters__actions .pill {
		flex: 1;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.filters {
		grid-template-columns: 1fr;
	}
}

/* Cards --------------------------------------------------------------- */

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 36px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.grid--row {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.card__link {
	display: block;
	text-decoration: none;
}

.card__photo {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: 22px;
	overflow: hidden;
	background: var(--surface);
	transform-style: preserve-3d;
	will-change: transform;
}

.card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.08);
	transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card__link:hover .card__photo img {
	transform: scale(1.14);
}

.card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	font-size: 5rem;
	font-weight: 600;
	color: var(--surface-2);
}

.card__count {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.85);
	backdrop-filter: blur(8px);
	color: #161616;
	font-size: 0.75rem;
	font-weight: 500;
}

.card__body {
	padding: 14px 4px 0;
}

.card__title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.card__title h3 {
	font-size: 1.12rem;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.card__weather {
	flex: none;
	font-size: 0.85rem;
	color: var(--muted);
}

.card__meta {
	font-size: 0.92rem;
	color: var(--muted);
}

.card__meta--soft {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	font-size: 0.85rem;
	opacity: 0.85;
}

.card__by {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.card__link:hover .card__title h3 {
	color: var(--forest);
}

.grid__more {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.empty {
	display: grid;
	justify-items: center;
	gap: 18px;
	padding: 56px 24px;
	background: var(--surface);
	border-radius: 28px;
	text-align: center;
	color: var(--muted);
}

/* Globe section ---------------------------------------------------------- */

.globe-section {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: clamp(24px, 5vw, 72px);
}

.globe-section__copy {
	display: grid;
	justify-items: start;
	gap: 22px;
}

.globe-section h2 .script {
	font-size: 1.08em;
}

.globe-section h2 {
	font-size: clamp(2rem, 4.2vw, 3.4rem);
	letter-spacing: -0.045em;
}

.globe-section__copy > p {
	max-width: 42ch;
	color: var(--muted);
	font-size: 1.05rem;
}

.figures {
	display: flex;
	gap: clamp(20px, 4vw, 48px);
	margin: 6px 0 8px;
}

.figures dt {
	font-size: 0.85rem;
	color: var(--muted);
}

.figures dd {
	margin: 0;
	font-size: clamp(2rem, 3.6vw, 2.8rem);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.1;
}

.globe {
	position: relative;
	aspect-ratio: 1;
	width: 100%;
	max-width: 620px;
	justify-self: center;
	min-width: 0;
}

.globe::before {
	content: "";
	position: absolute;
	inset: 9%;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, var(--paper), var(--surface-2));
	transition: opacity 0.6s ease;
}

.globe.is-live::before {
	opacity: 0;
}

.globe canvas {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	cursor: grab;
	touch-action: pan-y;
}

.globe canvas:active {
	cursor: grabbing;
}

.globe__label {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	padding: 8px 14px;
	background: #1f4d3a;
	color: #fff;
	border-radius: 14px;
	font-size: 0.85rem;
	line-height: 1.35;
	pointer-events: none;
	white-space: nowrap;
	transform: translate(-50%, calc(-100% - 14px));
	box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.5);
}

.globe__label strong {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
}

@media (max-width: 860px) {
	.globe-section {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* A sighting's own page ---------------------------------------------------- */

.sighting {
	max-width: var(--max);
	margin: 0 auto;
	padding: 28px var(--gutter) 0;
}

.crumbs {
	display: flex;
	gap: 10px;
	margin-bottom: 22px;
	color: var(--muted);
	font-size: 0.92rem;
}

.crumbs a {
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--ink);
}

.sighting__head {
	margin-bottom: 32px;
}

.sighting__head h1 {
	font-size: clamp(2.6rem, 6.5vw, 5.4rem);
	letter-spacing: -0.055em;
}

.sighting__sci {
	margin-top: 10px;
	font-size: 1.15rem;
	font-style: italic;
	color: var(--muted);
}

.sighting__taxonomy {
	margin-top: 2px;
	color: var(--muted);
	font-size: 0.9rem;
	opacity: 0.8;
}

.sighting__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
	gap: clamp(20px, 3vw, 40px);
	align-items: start;
}

@media (max-width: 900px) {
	.sighting__layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

.sighting__facts {
	display: grid;
	gap: 16px;
}

.sighting__facts > .pill {
	justify-self: start;
}

.panel {
	padding: 22px 24px;
	background: var(--surface);
	border-radius: 24px;
}

.panel h2 {
	font-size: 1.05rem;
	letter-spacing: -0.02em;
	margin-bottom: 14px;
}

.facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 9px 20px;
	margin: 0;
	font-size: 0.95rem;
}

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

.facts dd {
	margin: 0;
}

.remarks {
	max-width: 60ch;
	white-space: pre-line;
	color: var(--muted);
}

.gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery__item--lead {
	grid-column: 1 / -1;
}

.gallery__open {
	display: block;
	overflow: hidden;
	border-radius: 16px;
	cursor: zoom-in;
	background: var(--surface);
}

.gallery__item img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.gallery__item--lead .gallery__open {
	border-radius: 28px;
}

.gallery__item--lead img {
	aspect-ratio: 4 / 3;
	max-height: 74vh;
}

.gallery__item:not(.gallery__item--lead) .gallery__open:hover img {
	transform: scale(1.06);
}

.gallery__credit {
	margin-top: 8px;
	font-size: 0.85rem;
	color: var(--muted);
}

.gallery--empty {
	display: grid;
	place-items: center;
	min-height: 360px;
	padding: 24px;
	border-radius: 28px;
	background: var(--surface);
	color: var(--muted);
	text-align: center;
}

.weather__now {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.weather__icon {
	font-size: 2.4rem;
	line-height: 1;
}

.weather__temp {
	font-size: 3.2rem;
	font-weight: 600;
	letter-spacing: -0.05em;
	line-height: 1;
}

.weather__desc {
	display: grid;
	font-weight: 500;
	font-size: 0.95rem;
	line-height: 1.35;
}

.weather__desc small {
	font-weight: 400;
	color: var(--muted);
	font-size: 0.85rem;
}

.weather__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
}

.weather__grid dt {
	font-size: 0.8rem;
	color: var(--muted);
}

.weather__grid dd {
	margin: 0;
	font-weight: 600;
}

.wind-arrow {
	display: inline-block;
}

.minimap {
	height: 240px;
	border-radius: 16px;
	overflow: hidden;
	background: var(--paper);
}

/* Map page ---------------------------------------------------------------- */

.map-page__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 24px;
	max-width: var(--max);
	margin: 0 auto;
	padding: 24px var(--gutter);
}

.map-page__bar h1 {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	letter-spacing: -0.045em;
}

.map-page__bar p {
	color: var(--muted);
}

.bigmap {
	height: calc(100vh - 160px);
	min-height: 440px;
	margin: 0 var(--gutter);
	border-radius: 28px;
	overflow: hidden;
}

.leaflet-container {
	font: 14px/1.4 var(--font);
	background: var(--surface);
}

:root[data-theme="dark"] .leaflet-tile-pane {
	filter: invert(1) hue-rotate(180deg) brightness(0.85) grayscale(0.6);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .leaflet-tile-pane {
		filter: invert(1) hue-rotate(180deg) brightness(0.85) grayscale(0.6);
	}
}

.leaflet-tile-pane {
	filter: saturate(0.55) contrast(0.95) brightness(1.03);
}

.pin {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 3px 10px rgb(0 0 0 / 0.35);
}

.pin--marigold {
	background: #e0a43a;
}

.pin--hibiscus {
	background: #d6455b;
}

.pin--leaf {
	background: #3c9a63;
}

.pin--lagoon {
	background: #3a92c0;
}

.cluster {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #1f4d3a;
	color: #fff;
	font: 600 0.9rem/1 var(--font);
	box-shadow:
		0 0 0 5px rgb(255 255 255 / 0.9),
		0 8px 20px rgb(0 0 0 / 0.3);
}

.leaflet-popup-content-wrapper {
	border-radius: 18px;
	padding: 0;
	overflow: hidden;
}

.leaflet-popup-content {
	margin: 0;
	width: 220px !important;
}

.popup img {
	width: 100%;
	height: 140px;
	object-fit: cover;
}

.popup__body {
	padding: 12px 16px 16px;
}

.popup__body strong {
	display: block;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #161616;
}

.popup__body span {
	display: block;
	color: #6e6e6b;
	font-size: 0.85rem;
}

.popup__body a {
	display: inline-block;
	margin-top: 10px;
	padding: 7px 14px;
	border-radius: 999px;
	background: #1f4d3a;
	color: #fff;
	font-weight: 500;
	text-decoration: none;
}

/* Numbers page ------------------------------------------------------------ */

.stats-intro {
	text-align: center;
	display: grid;
	justify-items: center;
}

.stats-intro h1 {
	font-size: clamp(2.8rem, 7vw, 5.8rem);
	letter-spacing: -0.055em;
	margin-bottom: 20px;
}

.stats-lede {
	max-width: 58ch;
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	color: var(--muted);
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 18px;
	max-width: var(--max);
	margin: 0 auto;
	padding: 56px var(--gutter) 0;
}

.chart {
	padding: 28px;
	background: var(--surface);
	border-radius: 28px;
}

.chart--wide,
.chart.wide {
	grid-column: 1 / -1;
}

.chart h2 {
	font-size: 1.35rem;
	letter-spacing: -0.03em;
}

.chart__note {
	margin: 4px 0 22px;
	color: var(--muted);
	font-size: 0.92rem;
}

.bars {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bar {
	display: grid;
	grid-template-columns: minmax(110px, 34%) 1fr 4ch;
	align-items: center;
	gap: 14px;
	font-size: 0.92rem;
}

.bar__label {
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.bar__track {
	height: 10px;
	border-radius: 999px;
	background: var(--surface-2);
	overflow: hidden;
}

.bar__fill {
	display: block;
	height: 100%;
	width: var(--w);
	border-radius: 999px;
	background: var(--moss);
}

.bar__value {
	text-align: right;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.columns {
	display: flex;
	align-items: stretch;
	gap: 8px;
	height: 260px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.column {
	flex: 1;
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 8px;
	min-width: 0;
	text-align: center;
}

.column__value {
	font-size: 0.8rem;
	font-weight: 600;
}

.column__track {
	display: flex;
	align-items: flex-end;
}

.column__fill {
	display: block;
	width: 100%;
	height: var(--h);
	min-height: 3px;
	border-radius: 10px 10px 4px 4px;
	background: var(--forest);
	transform-origin: bottom;
}

.column__label {
	font-size: 0.75rem;
	color: var(--muted);
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	justify-self: center;
}

/* Error and 404 ------------------------------------------------------------- */

.lost {
	display: grid;
	justify-items: center;
	gap: 20px;
	max-width: 720px;
	margin: 0 auto;
	padding: clamp(56px, 10vw, 130px) var(--gutter);
	text-align: center;
}

.lost__code {
	font-size: clamp(7rem, 26vw, 15rem);
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.08em;
	color: var(--surface-2);
}

.lost h1 {
	font-size: clamp(2rem, 5vw, 3.2rem);
	letter-spacing: -0.045em;
}

.lost__message {
	max-width: 46ch;
	color: var(--muted);
}

.lost__tracks {
	display: flex;
	gap: 18px;
	height: 40px;
}

/* A paw: one pad and four toes, drawn with gradients. */
.paw {
	width: 22px;
	height: 22px;
	opacity: 0;
	background:
		radial-gradient(circle at 50% 70%, var(--ink) 38%, transparent 40%),
		radial-gradient(circle at 15% 30%, var(--ink) 12%, transparent 14%),
		radial-gradient(circle at 38% 10%, var(--ink) 12%, transparent 14%),
		radial-gradient(circle at 62% 10%, var(--ink) 12%, transparent 14%),
		radial-gradient(circle at 85% 30%, var(--ink) 12%, transparent 14%);
	animation: pawprint 3.5s infinite;
	transform: rotate(90deg);
}

.paw:nth-child(even) {
	margin-top: 16px;
}

.paw:nth-child(1) { animation-delay: 0s; }
.paw:nth-child(2) { animation-delay: 0.3s; }
.paw:nth-child(3) { animation-delay: 0.6s; }
.paw:nth-child(4) { animation-delay: 0.9s; }
.paw:nth-child(5) { animation-delay: 1.2s; }
.paw:nth-child(6) { animation-delay: 1.5s; }
.paw:nth-child(7) { animation-delay: 1.8s; }

@keyframes pawprint {
	0% { opacity: 0; }
	10% { opacity: 0.7; }
	60% { opacity: 0.7; }
	80%, 100% { opacity: 0; }
}

/* Lightbox ------------------------------------------------------------------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	grid-template-columns: 64px 1fr 64px;
	align-items: center;
	background: rgb(10 10 10 / 0.94);
	color: #fff;
}

.lightbox[hidden] {
	display: none;
}

.lightbox figure {
	display: grid;
	justify-items: center;
	gap: 12px;
	margin: 0;
	min-width: 0;
}

.lightbox img {
	max-width: 100%;
	max-height: 84vh;
	object-fit: contain;
	border-radius: 14px;
}

.lightbox figcaption {
	font-size: 0.88rem;
	opacity: 0.75;
}

.lightbox button {
	border: 0;
	background: none;
	color: #fff;
	font-size: 2.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 12px;
}

.lightbox__close {
	position: absolute;
	top: 12px;
	right: 16px;
}

/* Footer --------------------------------------------------------------------- */

.site-footer {
	margin-top: clamp(80px, 10vw, 140px);
	background: var(--band);
	color: rgb(241 246 238 / 0.72);
}

.site-footer a {
	color: var(--lime);
}

.site-footer .logo {
	color: var(--lime);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1fr 1.4fr 1fr;
	gap: 24px;
	max-width: var(--max);
	margin: 0 auto;
	padding: 36px var(--gutter) 48px;
	font-size: 0.9rem;
}

.site-footer__brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-footer strong {
	color: #fff;
	font-weight: 600;
}

@media (max-width: 760px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
	}
}

/* Motion ------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.paw {
		opacity: 0.7;
	}

	.hero__birds {
		display: none;
	}
}

/* Searchable country pickers ------------------------------------------------ */

.versus-form .field--band {
	position: relative;
	flex: 1 1 260px;
	padding: 10px 14px 10px 18px;
	background: #fff;
	border-color: transparent;
	color: #56655b;
	box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.6);
}

.versus-form .field--band:focus-within {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 0 0 3px var(--lime), 0 18px 40px -24px rgb(0 0 0 / 0.6);
}

.combo {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
}

.combo__flag {
	flex: none;
	width: 28px;
	height: 21px;
	border-radius: 4px;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
}

.combo__input {
	flex: 1;
	min-width: 0;
	padding: 2px 0;
	border: 0;
	background: transparent;
	color: #15201a;
	font: 500 1.1rem/1.3 var(--font);
	outline: none;
}

.combo__input::placeholder {
	color: #8a968e;
}

.combo__chevron {
	flex: none;
	width: 10px;
	height: 10px;
	border-right: 2px solid #1f4d3a;
	border-bottom: 2px solid #1f4d3a;
	transform: translateY(-3px) rotate(45deg);
	transition: transform 0.25s var(--ease);
	pointer-events: none;
}

.combo.is-open .combo__chevron {
	transform: translateY(2px) rotate(-135deg);
}

.combo__list {
	position: absolute;
	top: calc(100% + 18px);
	left: -18px;
	right: -14px;
	z-index: 20;
	max-height: 340px;
	margin: 0;
	padding: 8px;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.45);
	overscroll-behavior: contain;
}

.combo__option {
	display: grid;
	grid-template-columns: 24px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	color: #15201a;
	cursor: pointer;
}

.combo__option img {
	width: 24px;
	height: 18px;
	border-radius: 3px;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
}

.combo__option small {
	color: #6b786f;
	font-size: 0.8rem;
}

.combo__option.is-active {
	background: #f1f5ef;
}

.combo__option[aria-selected="true"] {
	font-weight: 600;
}

.combo__option[aria-selected="true"] small::after {
	content: " ✓";
	color: #1f4d3a;
}

.combo__empty {
	padding: 14px 12px;
	color: #6b786f;
}

.versus-form__swap {
	position: relative;
	display: grid;
	place-items: center;
	flex: none;
	align-self: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 0.25);
	border-radius: 50%;
	background: transparent;
	color: var(--lime);
	cursor: pointer;
	transition: background 0.2s ease;
}

.versus-form__swap span {
	font-family: var(--script);
	font-size: 1.4rem;
	transition: opacity 0.2s ease;
}

.versus-form__swap svg {
	position: absolute;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.versus-form__swap:hover,
.versus-form__swap:focus-visible {
	background: rgb(255 255 255 / 0.08);
}

.versus-form__swap:hover span,
.versus-form__swap:focus-visible span {
	opacity: 0;
}

.versus-form__swap:hover svg,
.versus-form__swap:focus-visible svg {
	opacity: 1;
}

.versus-form .pill {
	align-self: center;
}

/* Saved comparisons ------------------------------------------------------------ */

.saved {
	margin: -14px 0 40px;
}

.saved__head {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 10px;
}

.saved__head h3 {
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.saved__clear {
	padding: 0;
	border: 0;
	background: none;
	color: rgb(241 246 238 / 0.65);
	font: inherit;
	font-size: 0.85rem;
	text-decoration: underline;
	cursor: pointer;
}

.saved__list {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0 0 6px;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: thin;
}

.saved__item {
	position: relative;
	flex: none;
}

.saved__item a {
	display: grid;
	padding: 10px 40px 10px 16px;
	border-radius: 16px;
	background: rgb(255 255 255 / 0.08);
	border: 1px solid rgb(255 255 255 / 0.12);
	color: inherit;
	text-decoration: none;
	transition: background 0.2s ease;
}

.saved__item a:hover {
	background: rgb(255 255 255 / 0.14);
}

.saved__item strong {
	font-size: 0.92rem;
	font-weight: 500;
}

.saved__item small {
	color: rgb(241 246 238 / 0.65);
	font-size: 0.78rem;
}

.saved__remove {
	position: absolute;
	top: 50%;
	right: 8px;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgb(241 246 238 / 0.7);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.saved__remove:hover {
	background: rgb(255 255 255 / 0.12);
	color: #fff;
}

/* Scoreboard and winner ----------------------------------------------------------- */

.versus {
	display: grid;
	gap: 28px;
}

.versus__columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.scoreboard {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: 24px;
	padding: 24px 28px;
	border-radius: 28px;
	background: rgb(255 255 255 / 0.07);
	border: 1px solid rgb(212 240 106 / 0.35);
}

.verdict {
	display: grid;
	justify-items: start;
	gap: 6px;
}

.verdict__trophy {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--lime);
	color: #1f4d3a;
}

.verdict__title {
	font-size: clamp(1.8rem, 3.6vw, 2.8rem);
	font-weight: 500;
	letter-spacing: -0.045em;
	line-height: 1.05;
	color: #fff;
}

.verdict__note {
	color: rgb(241 246 238 / 0.75);
}

.rounds {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.rounds thead th {
	padding: 0 8px 10px;
	font-size: 0.82rem;
	font-weight: 500;
	color: rgb(241 246 238 / 0.7);
}

.rounds thead th:first-child {
	text-align: left;
}

.rounds thead th:last-child {
	text-align: right;
}

.rounds thead .flag {
	width: 18px;
	height: 13px;
	margin-right: 6px;
	vertical-align: -1px;
}

.rounds tbody th {
	padding: 10px 8px;
	font-weight: 400;
	color: rgb(241 246 238 / 0.8);
	text-align: center;
}

.rounds td {
	width: 22%;
	padding: 10px 8px;
	font-size: 1.15rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: rgb(241 246 238 / 0.55);
}

.rounds td:last-child {
	text-align: right;
}

.rounds tbody tr + tr > * {
	border-top: 1px solid rgb(255 255 255 / 0.1);
}

.rounds td.is-won {
	color: var(--lime);
}

.rounds td.is-won::after {
	content: " ★";
	font-size: 0.8em;
}

.rounds td:last-child.is-won::after {
	content: "";
}

.rounds td:last-child.is-won::before {
	content: "★ ";
	font-size: 0.8em;
}

.side {
	position: relative;
}

.side--winner {
	border-color: var(--lime);
	box-shadow: 0 0 0 1px var(--lime), 0 30px 60px -30px rgb(212 240 106 / 0.5);
}

.side__crown {
	position: absolute;
	top: -14px;
	right: 22px;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--lime);
	color: #15201a;
	font-family: var(--script);
	font-size: 1rem;
	box-shadow: 0 10px 20px -10px rgb(0 0 0 / 0.5);
}

.side__head h3 {
	display: flex;
	align-items: center;
	gap: 10px;
}

.flag {
	width: 30px;
	height: 22px;
	border-radius: 4px;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2);
}

.confetti {
	position: fixed;
	z-index: 300;
	width: 8px;
	height: 12px;
	margin: -6px 0 0 -4px;
	border-radius: 2px;
	pointer-events: none;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 960px) {
	.versus__columns,
	.scoreboard {
		grid-template-columns: minmax(0, 1fr);
	}

	.versus__middle {
		order: -1;
		padding-top: 0;
	}
}

@media (max-width: 520px) {
	.versus-form__swap {
		margin: -4px auto;
	}
}

/* Watch it move -------------------------------------------------------------------- */

.watch {
	margin-top: 36px;
}

.watch__head {
	margin-bottom: 14px;
}

.watch__head h2 {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 500;
	letter-spacing: -0.04em;
}

.watch__head h2 .script {
	font-size: 1.1em;
}

.watch__head p {
	margin-top: 4px;
	color: var(--muted);
	font-size: 0.95rem;
}

.watch__player {
	display: grid;
	gap: 8px;
}

.watch__player video {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 24px;
	background: #0d1411;
	object-fit: cover;
}

.watch__status {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	padding: 24px;
	border-radius: 24px;
	background:
		linear-gradient(110deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%;
	color: var(--muted);
	text-align: center;
	animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
	to {
		background-position: -300% 0;
	}
}

.watch__credit {
	font-size: 0.82rem;
	color: var(--muted);
}

.watch__credit a {
	color: var(--forest);
}

.watch__more {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.watch__more button {
	display: grid;
	gap: 6px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	font: inherit;
	font-size: 0.78rem;
	text-align: left;
	cursor: pointer;
}

.watch__more img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 12px;
	outline: 2px solid transparent;
	outline-offset: 2px;
	transition: outline-color 0.2s ease;
}

.watch__more button[aria-pressed="true"] img {
	outline-color: var(--moss);
}

.watch__more span {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--muted);
}

/* Map tips ---------------------------------------------------------------------------- */

.bigmap-wrap {
	position: relative;
	margin: 0 var(--gutter);
}

.bigmap-wrap .bigmap {
	margin: 0;
}

.tips-toggle {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 500;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 8px 8px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #15201a;
	font: 500 0.9rem/1 var(--font);
	box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.4);
	cursor: pointer;
}

.tips-toggle span {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--lime);
	color: #1f4d3a;
	font-weight: 700;
}

.tips {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 600;
	display: grid;
	gap: 16px;
	width: min(380px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	padding: 22px;
	overflow-y: auto;
	border-radius: 26px;
	background: rgb(255 255 255 / 0.92);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	color: #15201a;
	box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px) scale(0.98);
	transform-origin: top right;
	transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.3s;
}

.tips.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.tips__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tips__head h2 {
	font-size: 1.4rem;
	font-weight: 500;
	letter-spacing: -0.03em;
}

.tips__head .script {
	color: #4e7d3a;
}

.tips__close {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5ef;
	color: #15201a;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

.tips__list {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: tip;
}

.tips__list li {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 14px;
	align-items: start;
}

.tips__list strong {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
}

.tips__list p {
	font-size: 0.88rem;
	color: #56655b;
	line-height: 1.45;
}

.tips__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: #f1f5ef;
	color: #1f4d3a;
}

.tips__icon--cluster {
	border-radius: 50%;
	background: #1f4d3a;
	color: #fff;
	font-weight: 600;
	font-size: 0.9rem;
	box-shadow: 0 0 0 4px #fff, 0 0 0 5px #e1e8de;
}

.tips .pill {
	justify-self: start;
}

@media (max-width: 640px) {
	.tips {
		top: auto;
		bottom: 12px;
		right: 12px;
		left: 12px;
		width: auto;
		transform-origin: bottom center;
	}
}

/* The plain dropdown is only seen without JavaScript; keep it readable on
 * the white picker. */
.versus-form .field--band select {
	color: #15201a;
}

.versus {
	grid-template-columns: minmax(0, 1fr);
}

/* The zoo ------------------------------------------------------------------- */

.zoo {
	--glass: rgb(255 255 255 / 0.82);
	--glass-ink: #15201a;
	--glass-muted: #56655b;
	position: relative;
	height: calc(100svh - 66px);
	min-height: 560px;
	overflow: hidden;
	background: #d9eef5;
	color: var(--glass-ink);
}

:root[data-theme="dark"] .zoo {
	--glass: rgb(16 26 21 / 0.82);
	--glass-ink: #ecf2ec;
	--glass-muted: #a7b6ac;
	background: #0d1a22;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .zoo {
		--glass: rgb(16 26 21 / 0.82);
		--glass-ink: #ecf2ec;
		--glass-muted: #a7b6ac;
		background: #0d1a22;
	}
}

.zoo + * {
	margin-top: 0;
}

.zoo__canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	cursor: grab;
	touch-action: none;
}

.zoo__canvas:active {
	cursor: grabbing;
}

.zoo__loading {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 18px;
	background: radial-gradient(ellipse at 50% 40%, var(--paper), var(--surface));
	color: var(--forest);
	text-align: center;
}

.zoo__loading-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 500;
	letter-spacing: -0.04em;
	color: var(--ink);
}

.zoo__progress {
	width: 220px;
	height: 6px;
	border-radius: 999px;
	background: var(--surface-2);
	overflow: hidden;
}

.zoo__progress span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 999px;
	background: var(--moss);
	transition: width 0.3s ease;
}

.zoo__fallback {
	position: absolute;
	inset: 0;
	z-index: 15;
	display: grid;
	place-items: center;
	padding: 24px;
	text-align: center;
	background: var(--surface);
	color: var(--ink);
}

.zoo__fallback[hidden] {
	display: none;
}

.zoo__top {
	position: absolute;
	top: 18px;
	left: 18px;
	right: 18px;
	z-index: 6;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	pointer-events: none;
}

.zoo__top > * {
	pointer-events: auto;
}

.zoo__brand {
	padding: 12px 20px;
	border-radius: 20px;
	background: var(--glass);
	backdrop-filter: blur(14px) saturate(1.3);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	box-shadow: 0 20px 40px -26px rgb(0 0 0 / 0.5);
}

.zoo__brand h1 {
	font-size: 1.6rem;
	font-weight: 500;
	letter-spacing: -0.04em;
}

.zoo__brand .script {
	font-size: 1.15em;
}

.zoo__brand p {
	font-size: 0.85rem;
	color: var(--glass-muted);
}

.zoo__icon-btn {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--glass);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	color: var(--glass-ink);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 10px 24px -14px rgb(0 0 0 / 0.5);
	transition: transform 0.2s var(--ease);
}

.zoo__icon-btn:hover {
	transform: scale(1.08);
}

.zoo__panel {
	position: absolute;
	top: 18px;
	right: 18px;
	bottom: 104px;
	z-index: 5;
	display: grid;
	align-content: start;
	gap: 14px;
	width: min(380px, calc(100% - 36px));
	padding: 22px;
	overflow-y: auto;
	border-radius: 26px;
	background: var(--glass);
	backdrop-filter: blur(16px) saturate(1.3);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.55);
	scrollbar-width: thin;
}

.zoo__panel[hidden] {
	display: none;
}

.zoo__panel[data-panel="welcome"] {
	top: auto;
	bottom: 104px;
}

.zoo__panel h2 {
	font-size: 1.9rem;
	font-weight: 500;
	letter-spacing: -0.045em;
	line-height: 1.05;
}

.zoo__panel h2 .script {
	color: var(--moss);
	font-size: 1.1em;
}

.zoo__panel > p {
	color: var(--glass-muted);
	font-size: 0.95rem;
}

.zoo__panel .pill {
	justify-self: start;
}

.zoo__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.zoo__count {
	font-size: 0.82rem;
	color: var(--glass-muted);
}

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

.zoo__nav .zoo__icon-btn {
	width: 36px;
	height: 36px;
	background: var(--surface);
	box-shadow: none;
}

.zoo__animal {
	margin-top: -8px;
	font-weight: 500;
	color: var(--glass-ink) !important;
}

.zoo__fact {
	padding: 12px 14px;
	border-radius: 14px;
	background: rgb(212 240 106 / 0.28);
	color: var(--glass-ink) !important;
}

.zoo__figures {
	display: flex;
	gap: 28px;
	margin: 0;
}

.zoo__figures div {
	display: flex;
	flex-direction: column-reverse;
}

.zoo__figures dd {
	margin: 0;
	font-size: 2rem;
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--forest);
}

.zoo__figures dt {
	font-size: 0.8rem;
	color: var(--glass-muted);
}

.zoo__where {
	font-size: 0.88rem;
}

.zoo__angles {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var(--surface);
}

.zoo__angles button {
	flex: 1;
	min-height: 36px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--glass-muted);
	font: 500 0.85rem/1 var(--font);
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.zoo__angles button[aria-pressed="true"] {
	background: #1f4d3a;
	color: #fff;
}

.zoo__credit {
	font-size: 0.8rem !important;
}

.zoo__credit a {
	color: var(--forest);
}

.zoo__photos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zoo__photos a {
	display: grid;
	gap: 4px;
	color: var(--glass-muted);
	font-size: 0.7rem;
	text-decoration: none;
}

.zoo__photos img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 12px;
	transition: transform 0.3s var(--ease);
}

.zoo__photos a:hover img {
	transform: scale(1.05);
}

.zoo__photos span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.zoo__map {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	z-index: 6;
	display: flex;
	gap: 8px;
	padding: 8px;
	overflow-x: auto;
	border-radius: 24px;
	background: var(--glass);
	backdrop-filter: blur(16px) saturate(1.3);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	box-shadow: 0 20px 40px -26px rgb(0 0 0 / 0.55);
	scrollbar-width: none;
}

.zoo__stop {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 10px;
	padding: 6px 16px 6px 6px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--glass-ink);
	font: 500 0.9rem/1 var(--font);
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s ease;
}

.zoo__stop:hover {
	background: var(--surface);
}

.zoo__stop[aria-pressed="true"] {
	background: #1f4d3a;
	color: #fff;
}

.zoo__stop img,
.zoo__stop-dot {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--lime);
	color: #1f4d3a;
	font-weight: 600;
}

.zoo__ride-hint {
	position: absolute;
	top: 90px;
	left: 50%;
	z-index: 6;
	padding: 8px 16px;
	border-radius: 999px;
	background: #1f4d3a;
	color: #fff;
	font-size: 0.85rem;
	transform: translateX(-50%);
}

.zoo__ride-hint[hidden] {
	display: none;
}

@media (max-width: 760px) {
	.zoo {
		height: calc(100svh - 104px);
	}

	.zoo__brand p {
		display: none;
	}

	.zoo__panel,
	.zoo__panel[data-panel="welcome"] {
		top: auto;
		left: 12px;
		right: 12px;
		bottom: 88px;
		width: auto;
		max-height: 48%;
		padding: 18px;
	}

	.zoo__panel h2 {
		font-size: 1.5rem;
	}

	.zoo__map {
		left: 12px;
		right: 12px;
		bottom: 12px;
	}

	.zoo__ride-hint {
		top: 76px;
		width: max-content;
		max-width: calc(100% - 24px);
	}
}

/* Home page teaser for the zoo. */
.zoo-teaser {
	position: relative;
	display: grid;
	align-items: end;
	min-height: 420px;
	overflow: hidden;
	border-radius: 32px;
	background: #1f4d3a;
	color: #fff;
	text-decoration: none;
	isolation: isolate;
}

.zoo-teaser img {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.zoo-teaser::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgb(15 42 32 / 0.92) 0%, rgb(15 42 32 / 0.55) 50%, transparent 85%);
}

.zoo-teaser:hover img {
	transform: scale(1.05);
}

.zoo-teaser__body {
	display: grid;
	justify-items: start;
	gap: 16px;
	max-width: 520px;
	padding: clamp(28px, 5vw, 56px);
}

.zoo-teaser .badge {
	background: var(--lime);
	color: #15201a;
}

.zoo-teaser__title {
	font-size: clamp(2.2rem, 4.6vw, 3.6rem);
	font-weight: 500;
	letter-spacing: -0.045em;
	line-height: 1;
}

.zoo-teaser__title .script {
	color: var(--lime);
	font-size: 1.1em;
}

.zoo-teaser__text {
	color: rgb(255 255 255 / 0.82);
}

/* Animals in common: tappable chips and their head-to-head cards. -------- */

.versus__hint {
	margin-top: -8px;
	font-family: var(--script);
	color: rgb(241 246 238 / 0.7);
}

button.chip {
	border: 0;
	font: 500 0.82rem/1.2 var(--font);
	cursor: pointer;
	transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease;
}

button.chip:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px -10px rgb(0 0 0 / 0.6);
}

button.chip[aria-expanded="true"] {
	background: #fff;
	box-shadow: 0 0 0 3px var(--lime);
}

.shared-card {
	width: 100%;
	overflow: hidden;
	border-radius: 22px;
	background: #fff;
	color: #15201a;
	text-align: left;
	box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.7);
}

.shared-card[hidden] {
	display: none;
}

.shared-card__photo {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.shared-card__body {
	display: grid;
	gap: 10px;
	padding: 16px 18px 18px;
}

.shared-card__name {
	font-size: 1.3rem;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.shared-card__verdict {
	margin-top: -8px;
	font-family: var(--script);
	color: #4e7d3a;
}

.tug {
	display: flex;
	gap: 3px;
	height: 30px;
	border-radius: 999px;
	overflow: hidden;
}

.tug span {
	display: grid;
	align-items: center;
	min-width: 30px;
	padding: 0 10px;
	font-weight: 600;
	font-size: 0.85rem;
}

.tug__a {
	background: #1f4d3a;
	color: #fff;
}

.tug__b {
	justify-items: end;
	background: #d4f06a;
	color: #15201a;
}

.tug__labels {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 0.78rem;
	color: #56655b;
}

.tug__labels span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tug__labels .flag {
	width: 18px;
	height: 13px;
	box-shadow: 0 0 0 1px rgb(0 0 0 / 0.1);
}

.shared-card__links {
	display: grid;
	gap: 6px;
	margin-top: 4px;
}

.shared-card__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 14px;
	border-radius: 12px;
	background: #f1f5ef;
	color: #1f4d3a;
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s ease;
}

.shared-card__links a::after {
	content: "→";
}

.shared-card__links a:hover {
	background: #e2eadf;
}

.side__row.is-picked {
	background: rgb(212 240 106 / 0.28);
	box-shadow: 0 0 0 2px var(--lime);
}
