/* Tokens from the mobile app (App/src/design/Theme.ts). */

@font-face {
	font-family: "Inter";
	font-display: swap;
	font-weight: 100 900;
	src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Inter";
	font-display: swap;
	font-weight: 100 900;
	src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF;
}

:root {
	--ink: #0B0B0C;
	--muted: #6E6E73;
	--faint: #8A8A90;
	--paper: #FFFFFF;
	--wash: #F4F4F5;
	--line: #E6E6E8;
	--red: #D2504B;
	--green: #3F9A5C;
	--gold: #C8963C;
	--green-wash: #EAF5EE;
	--red-wash: #FBEDEC;

	/* Behind what is selected, black whatever the theme, and the text it carries. */
	--selection: #0B0B0C;
	--selection-ink: #FFFFFF;

	/* The phone's body stays a phone, whatever the theme. */
	--bezel: #0B0B0C;
	--radius: 14px;
	--pill: 999px;
	--card-shadow: 0 4px 12px rgba(11, 11, 12, 0.06);
	--capsule-shadow: 0 10px 15px rgba(11, 11, 12, 0.14);
	color-scheme: light;
}

/* The app's night palette (DARK_COLORS): ink turns to light text, paper to the raised surface. */
:root[data-theme="dark"] {
	--ink: #F2F2F3;
	--muted: #A1A1A8;
	--faint: #7E7E86;
	--paper: #1C1C20;
	--wash: #101012;
	--line: #2E2E34;
	--red: #E8716C;
	--green: #5DBE7B;
	--gold: #DDAE55;
	--green-wash: #17291E;
	--red-wash: #321B1A;
	--selection: #000000;
	--bezel: #2A2A2F;
	--card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	--capsule-shadow: 0 10px 15px rgba(0, 0, 0, 0.45);
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 72px;
}

body {
	margin: 0;
	background: var(--wash);
	color: var(--ink);
	font: 15px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
}

.wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
}

.emoji {
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	flex-shrink: 0;
	vertical-align: -0.2em;
}

:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}

/* ---------- Buttons: the app's black pill ---------- */

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

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 22px;
	border: 1px solid var(--ink);
	border-radius: var(--pill);
	background: var(--ink);
	color: var(--paper);
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.btn:hover {
	opacity: 0.85;
}

.btn:active {
	opacity: 0.7;
}

.btn--secondary {
	border-color: var(--line);
	background: var(--paper);
	color: var(--ink);
}

.btn--disabled,
.btn--disabled:hover {
	border-color: var(--line);
	background: var(--wash);
	color: var(--faint);
	opacity: 1;
	cursor: default;
}

.btn--small {
	min-height: 38px;
	padding: 8px 16px;
	font-size: 14px;
}

.store__text {
	display: flex;
	flex-direction: column;
	text-align: left;
	line-height: 1.2;
}

.store__text small {
	font-size: 11px;
	font-weight: 500;
	opacity: 0.75;
}

.store__text strong {
	font-size: 16px;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 60px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
}

.brand img {
	width: 32px;
	height: 32px;
	border-radius: 8px;
}

.nav-link {
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.nav-link:hover {
	text-decoration: underline;
}

.theme-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: var(--pill);
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}

.theme-toggle:hover {
	background: var(--wash);
	color: var(--ink);
}

.theme-toggle svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.theme-toggle__sun,
:root[data-theme="dark"] .theme-toggle__moon {
	display: none;
}

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

/* A small corner clip that ignores clicks, so the site stays usable underneath. */
.easter-egg {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 1000;
	width: min(340px, 60vw);
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	opacity: 0.9;
	pointer-events: none;
	animation: easter-egg-in 400ms ease-out;
	transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.easter-egg--leaving {
	opacity: 0;
	transform: translateY(8px);
}

@keyframes easter-egg-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

/* The reveal draws the new theme over a still picture of the old one, so neither fades. */
::view-transition-old(root),
::view-transition-new(root) {
	animation: none;
	mix-blend-mode: normal;
}

.lang {
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

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

/* ---------- The original banner ---------- */

/* The illustration is sized to the screen: a phone never downloads the 6000 px original. */
.banner {
	--banner-image: url(../ressources/backgrounds/banner-800.webp);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: clamp(260px, 40vw, 480px);
	padding: 0 20px;
	background:
		linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2)),
		var(--banner-image) center 30% / cover,
		#3a2a3a;
}

@media (min-width: 601px), (min-resolution: 2dppx) {
	.banner {
		--banner-image: url(../ressources/backgrounds/banner-1600.webp);
	}
}

@media (min-width: 1201px), (min-width: 801px) and (min-resolution: 2dppx) {
	.banner {
		--banner-image: url(../ressources/backgrounds/banner-2400.webp);
	}
}

.banner__title {
	display: contents;
	margin: 0;
}

.banner__wordmark {
	width: min(520px, 86%);
	height: auto;
	margin-bottom: 24px;
}

.banner__wave {
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: clamp(56px, 8vw, 110px);
	fill: var(--wash);
}

/* ---------- Sections, laid out like the App Store screenshots ---------- */

.intro {
	padding: 44px 0 8px;
	text-align: center;
}

.block {
	padding: 72px 0 0;
	text-align: center;
}

.title {
	max-width: 780px;
	margin: 0 auto 24px;
	font-size: clamp(30px, 4.6vw, 50px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.04em;
}

.block .title {
	margin-bottom: 10px;
}

.block--demo {
	padding-top: 40px;
}

.subtitle {
	max-width: 520px;
	margin: 0 auto 32px;
	color: var(--muted);
	font-size: 17px;
}

/* ---------- Phone: a fixed iPhone frame, so the page never jumps while the demo plays ---------- */

.phone {
	width: min(390px, 100%);
	aspect-ratio: 390 / 844;
	margin: 0 auto;
	padding: 10px;
	border-radius: 56px;
	background: var(--bezel);
	text-align: left;
}

.phone__screen {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 46px;
	background: var(--wash);
	overflow: hidden;
}

.phone__island {
	position: absolute;
	top: 11px;
	left: 50%;
	z-index: 2;
	width: 104px;
	height: 30px;
	transform: translateX(-50%);
	border-radius: var(--pill);
	background: #0B0B0C;
}

.status-bar {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	height: 50px;
	padding: 4px 30px 0 34px;
	background: var(--paper);
	font-size: 15px;
	font-weight: 600;
}

/* TabsHeader: the class emblem and the pseudo centred, the settings gear on the right. */
.app-header {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	padding: 0 14px 12px;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.app-header__spacer {
	width: 24px;
}

.app-header__identity {
	display: flex;
	align-items: center;
	gap: 8px;
	text-align: center;
	line-height: 1.2;
}

.app-header__identity strong {
	display: block;
	font-size: 18px;
	font-weight: 600;
}

.app-header__identity span {
	color: var(--muted);
	font-size: 12px;
}

.app-header .app-header__class {
	width: 25px;
	height: 25px;
}

.app-header .app-header__gear {
	width: 24px;
	height: 24px;
	margin-right: 14px;
}

/* PlayerVitals: health and the total points, then the purse. */
.vitals-band {
	flex-shrink: 0;
	padding-top: 8px;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.vitals {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 18px 8px;
}

.vital {
	flex: 1;
	min-width: 0;
}

.vital__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.vital__head span,
.score > span {
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
}

.vital__head .emoji {
	width: 11px;
	height: 11px;
}

.vital__head b {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.vital__track {
	height: 5px;
	border-radius: var(--pill);
	background: var(--line);
	overflow: hidden;
}

.vital__fill {
	height: 100%;
	border-radius: var(--pill);
	background: var(--red);
	transition: width 0.6s ease;
}

.score {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	border-radius: 8px;
	transition: color 0.3s;
}

.score b {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.score .emoji {
	width: 14px;
	height: 14px;
}

.score.is-gain b {
	color: var(--green);
}

.wallet {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	padding: 0 18px 10px;
}

.wallet__chip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 5px 10px;
	border-radius: var(--pill);
	background: var(--wash);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	transition: background-color 0.3s, color 0.3s;
}

.wallet__chip .emoji {
	width: 12px;
	height: 12px;
}

.wallet__chip.is-gain {
	background: var(--green-wash);
	color: var(--green);
}

.wallet__chip.is-loss {
	background: var(--red-wash);
	color: var(--red);
}

.app-content {
	flex: 1;
	min-height: 0;
	padding: 16px 18px 26px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
}

.app-content::-webkit-scrollbar {
	display: none;
}

.app-view {
	animation: view-in 0.3s ease-out;
}

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

/* CapsuleTabBar: a floating capsule whose open tab widens into a black pill that names it. */
.capsule-bar {
	flex-shrink: 0;
	padding: 8px 14px 26px;
	background: var(--wash);
}

.capsule-bar[hidden] {
	display: none;
}

.capsule {
	display: flex;
	height: 62px;
	padding: 7px;
	border: 0.5px solid var(--line);
	border-radius: 31px;
	background: var(--paper);
	box-shadow: var(--capsule-shadow);
}

.capsule__tab {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.capsule__tab svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.capsule__tab.is-focused {
	flex: 2.3;
	min-width: max-content;
	padding: 0 14px 0 8px;
	border: 0.5px solid var(--line);
	border-radius: 24px;
	background: var(--selection);
	color: var(--selection-ink);
}

/* The travel's progress, drawn as a ring around the compass as in the app. */
.ring {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background:
		radial-gradient(closest-side, var(--selection) calc(100% - 2px), transparent calc(100% - 2px) 100%),
		conic-gradient(currentColor calc(var(--progress) * 1%), rgba(255, 255, 255, 0.18) 0);
}

.ring.is-dashing {
	transition: --progress 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}

@property --progress {
	syntax: "<number>";
	inherits: false;
	initial-value: 0;
}

.home-indicator {
	position: absolute;
	bottom: 8px;
	left: 50%;
	width: 134px;
	height: 5px;
	transform: translateX(-50%);
	border-radius: var(--pill);
	background: var(--ink);
}

.journal {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 18px;
	padding: 18px;
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--card-shadow);
}

.journal__head {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 14px;
	font-weight: 600;
}

.journal__emblem {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wash);
}

.journal__emblem .emoji {
	width: 24px;
	height: 24px;
}

.story {
	margin: 0;
	font-size: 14.5px;
	line-height: 22px;
}

.section-header {
	margin: 4px 0 12px;
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.choices {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.choice {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--wash);
	color: var(--ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	text-align: left;
	cursor: pointer;
}

.choice:hover:not(:disabled) {
	border-color: var(--faint);
}

.choice:disabled {
	opacity: 0.5;
	cursor: default;
}

.choice.is-chosen {
	opacity: 1;
	border-color: var(--ink);
}

.choice span {
	flex: 1;
}

.note {
	margin: 12px 0 0;
	color: var(--muted);
	font-size: 12.5px;
}

.effects {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.effect {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px 6px 8px;
	border-radius: var(--pill);
	font-size: 12px;
	line-height: 17px;
	animation: pop 0.32s cubic-bezier(0.34, 1.8, 0.64, 1) both;
}

.effect .emoji {
	width: 15px;
	height: 15px;
}

.effect span {
	color: var(--muted);
	font-weight: 500;
}

.effect b {
	font-variant-numeric: tabular-nums;
}

.effect--gain {
	background: var(--green-wash);
	color: var(--green);
}

.effect--loss {
	background: var(--red-wash);
	color: var(--red);
}

@keyframes pop {
	from {
		opacity: 0;
		transform: scale(0.6);
	}
}

.action-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	padding: 12px 18px;
	border: 0;
	border-radius: var(--pill);
	background: var(--ink);
	color: var(--paper);
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
}

.action-banner span {
	flex: 1;
	text-align: left;
}

.action-banner:hover {
	opacity: 0.85;
}

/* ---------- Demo: the travel screen ---------- */

.standing {
	display: flex;
	align-items: center;
	gap: 14px;
}

.standing__emblem {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	background: var(--wash);
}

.standing__emblem .emoji {
	width: 24px;
	height: 24px;
	animation: happy 3.2s ease-in-out infinite;
}

/* The happy face dances now and then, as the app's HappyEmblem does when tapped. */
@keyframes happy {
	0%, 80%, 100% {
		transform: none;
	}

	84% {
		transform: translateY(-5px) rotate(10deg);
	}

	90% {
		transform: translateY(-5px) rotate(-10deg);
	}

	96% {
		transform: none;
	}
}

.standing__caption {
	margin: 0 0 3px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 17px;
}

.standing__title {
	margin: 0 0 3px;
	font-size: 23px;
	font-weight: 800;
	line-height: 29px;
}

.standing__subtitle {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 17px;
}

.road {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 26px 14px 14px;
}

.road > .emoji {
	width: 24px;
	height: 24px;
}

.road__track {
	position: relative;
	flex: 1;
	height: 6px;
	border-radius: var(--pill);
	background: var(--line);
}

.road__fill {
	height: 100%;
	border-radius: var(--pill);
	background: var(--ink);
}

.road__runner {
	position: absolute;
	top: -20px;
	margin-left: -10px;
}

.road__runner .emoji {
	display: block;
	width: 19px;
	height: 19px;
	transform: scaleX(-1);
	animation: walk 1.2s ease-in-out infinite;
}

.road.is-dashing .road__fill,
.road.is-dashing .road__runner {
	transition: width 1.1s cubic-bezier(0.65, 0, 0.35, 1), left 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}

.road.is-dashing .road__runner .emoji {
	animation: dash 0.22s ease-in-out infinite;
}

/* The walker of the app is mirrored to face the destination; these keep the mirror while it moves. */
@keyframes walk {
	50% {
		transform: scaleX(-1) translateY(-2px);
	}
}

@keyframes dash {
	50% {
		transform: scaleX(-1) translateY(-7px) rotate(-10deg);
	}
}

.figures {
	display: grid;
	grid-template-columns: repeat(3, auto);
	justify-content: space-between;
	gap: 10px;
	padding: 14px 4px;
}

.figure {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.figure span {
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
}

.figure b {
	display: flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
	font-size: 18px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.figure b .emoji {
	width: 15px;
	height: 15px;
}

.figure:last-child {
	align-items: flex-end;
}

.figures + .action-banner {
	margin-top: 4px;
}

.action-banner:disabled {
	cursor: default;
}

.action-banner:disabled:hover {
	opacity: 1;
}

.action-banner .emoji {
	width: 22px;
	height: 22px;
}

/* Pressing the banner sinks it; the token pops, then turns while it is being spent, as in the app. */
.action-banner.is-pressed {
	animation: sink 0.3s ease-out;
}

.action-banner.is-pressed .emoji {
	animation: coin-pop 0.3s ease-out, coin-spin 0.85s ease-in-out 0.3s infinite;
}

@keyframes sink {
	40% {
		transform: scale(0.93);
	}
}

@keyframes coin-pop {
	from {
		transform: scale(1.35);
	}
}

@keyframes coin-spin {
	50% {
		transform: perspective(400px) translateY(-6px) rotateY(180deg);
	}

	to {
		transform: perspective(400px) rotateY(360deg);
	}
}

/* ---------- Demo: the end ---------- */

.end {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	padding: 28px 4px 0;
	text-align: center;
}

.end__icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 6px;
	border-radius: 18px;
}

.end__title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.end .btn {
	justify-content: center;
}

.text-button {
	margin-top: 4px;
	padding: 10px;
	border: 0;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.text-button:hover {
	color: var(--ink);
}

/* ---------- The kingdom's map: a small card, the map is there for the curious ---------- */

.worlds {
	text-align: left;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
	align-items: stretch;
}

.kingdom {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	padding: 12px;
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--card-shadow);
	text-align: left;
	text-decoration: none;
}

.kingdom__map {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.kingdom:hover .kingdom__text strong {
	text-decoration: underline;
}

.kingdom__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 6px 6px;
	font-size: 14px;
}

.kingdom__text strong {
	font-size: 17px;
}

.kingdom__text span {
	color: var(--muted);
}

/* The three sea charts share the frame of the kingdom's map: one band each, the hovered one widening. */
.islands {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 12px;
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--card-shadow);
}

.islands__deck {
	display: flex;
	gap: 4px;
	aspect-ratio: 600 / 402;
	border-radius: 8px;
	overflow: hidden;
}

.island {
	position: relative;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	transition: flex-grow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.island img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.island__name {
	position: absolute;
	left: 8px;
	bottom: 8px;
	padding: 3px 10px;
	border-radius: var(--pill);
	background: rgba(11, 11, 12, 0.72);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.island:hover,
.island:focus-visible {
	flex-grow: 2.2;
}

.island:hover .island__name,
.island:focus-visible .island__name {
	opacity: 1;
}

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

/* ---------- What makes Crownicles different ---------- */

.facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	text-align: left;
}

/* A white card like the app's journal, with a figure of the banner standing on its top edge. */
.fact {
	position: relative;
	display: flex;
	flex-direction: column;
	margin-top: 120px;
	padding: 84px 20px 20px;
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--card-shadow);
}

.fact__art {
	position: absolute;
	top: -120px;
	left: 16px;
	width: auto;
	height: 190px;
	transition: transform 0.3s ease;
}

.fact:hover .fact__art {
	transform: translateY(-6px) rotate(-2deg);
}

.fact__figure {
	margin: 0;
	font-size: 44px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.fact__title {
	margin: 6px 0 10px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.fact__text {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

.fact__link {
	margin-top: auto;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.fact__link:hover {
	text-decoration: underline;
}

/* ---------- Donations, in the logo's colours ---------- */

.donate-banner {
	position: relative;
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 40px;
	align-items: end;
	padding: 40px 48px 0;
	border-radius: 24px;
	background: linear-gradient(160deg, #B95E4B, #7E3A2C);
	color: #fff;
	text-align: left;
	text-decoration: none;
	overflow: hidden;
}

.donate-banner__art {
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.donate-banner:hover .donate-banner__art {
	transform: translateY(-6px);
}

.donate-banner__text {
	align-self: center;
	padding-bottom: 40px;
}

.donate-banner__eyebrow {
	margin: 0 0 8px;
	color: #F4D493;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.donate-banner h2 {
	margin: 0 0 10px;
	font-size: clamp(28px, 3.6vw, 40px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.035em;
}

.donate-banner p {
	max-width: 480px;
	margin: 0 0 24px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 16px;
}

.btn--light {
	border-color: #fff;
	background: #fff;
	color: #0B0B0C;
}

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

@media (max-width: 720px) {
	.facts {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	/* Stacked, a card puts its figure beside its text instead of standing above it. */
	.fact {
		display: grid;
		grid-template-columns: 76px minmax(0, 1fr);
		column-gap: 16px;
		margin-top: 0;
		padding: 18px;
	}

	.fact__art {
		position: static;
		grid-row: 1 / span 4;
		align-self: center;
		width: 76px;
		height: auto;
		max-height: 120px;
		object-fit: contain;
	}

	.fact__figure {
		font-size: 34px;
	}

	.fact__title {
		margin: 4px 0 6px;
	}

	.fact__text {
		margin-bottom: 10px;
		font-size: 13.5px;
	}

	.nav-link {
		display: none;
	}

	.donate-banner {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding: 32px 24px 0;
	}

	.donate-banner__text {
		order: -1;
		padding-bottom: 24px;
	}

	.donate-banner__art {
		width: 220px;
		margin: 0 auto;
	}
}

/* ---------- Page not found ---------- */

.not-found {
	padding-bottom: 24px;
}

.not-found__art {
	width: auto;
	height: 180px;
	margin: 0 auto 24px;
}

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

.site-footer {
	margin-top: 96px;
	padding: 32px 0;
	background: var(--paper);
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	margin-bottom: 14px;
}

.footer-links a {
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
}

.footer-links a:hover {
	text-decoration: underline;
}

.site-footer p {
	margin: 0;
	font-size: 12px;
}

/* ---------- Donation page ---------- */

.donate-hero {
	background: linear-gradient(160deg, #B95E4B, #7E3A2C);
	color: #fff;
	overflow: hidden;
}

.donate-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 48px;
	align-items: end;
	padding-top: 56px;
}

.donate-hero__inner > div {
	align-self: center;
	padding-bottom: 56px;
}

.donate-hero h1 {
	margin: 0 0 14px;
	font-size: clamp(34px, 5vw, 56px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.04em;
}

.donate-hero p:not(.donate-banner__eyebrow) {
	max-width: 520px;
	margin: 0 0 28px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 17px;
}

.donate-hero img {
	width: 100%;
	height: auto;
}

.tiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	text-align: left;
}

.tier {
	display: flex;
	flex-direction: column;
	padding: 0 20px 20px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--card-shadow);
	overflow: hidden;
}

.tier--popular {
	border-color: var(--ink);
}

.tier__art {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 170px;
	margin: 0 -20px 16px;
	padding-top: 16px;
	background: var(--wash);
}

.tier__art img {
	width: auto;
	height: 150px;
	transition: transform 0.3s ease;
}

.tier:hover .tier__art img {
	transform: translateY(-4px);
}

.tier__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.tier h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}

.tier__price {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.tier ul {
	margin: 0 0 20px;
	padding-left: 18px;
	color: var(--muted);
	font-size: 14px;
}

.tier li + li {
	margin-top: 4px;
}

.tier .btn {
	justify-content: center;
	margin-top: auto;
}

.goodies {
	display: grid;
	grid-template-columns: 360px minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	text-align: left;
}

.goodies .title,
.goodies .subtitle {
	margin-left: 0;
}

/* The photo has its own white backdrop: framed as a card, it reads as a picture in both themes. */
.goodies img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--card-shadow);
}

.btn--disabled svg {
	filter: grayscale(1);
	opacity: 0.6;
}

.buttons--stacked {
	flex-direction: column;
	align-items: stretch;
}

.buttons--stacked .store {
	justify-content: center;
}

.buttons--start {
	justify-content: flex-start;
}

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

@media (max-width: 720px) {
	.tiers,
	.goodies,
	.donate-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.donate-hero__inner {
		gap: 0;
	}

	.donate-hero__inner > div {
		padding-bottom: 24px;
	}

	.donate-hero img {
		width: 240px;
		margin: 0 auto;
	}

	.goodies img {
		width: 260px;
		margin: 0 auto;
	}
}

@media (max-width: 480px) {
	.phone {
		padding: 8px;
		border-radius: 50px;
	}

	.phone__screen {
		border-radius: 42px;
	}


	.buttons .store {
		flex: 1 1 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
