/* Journey menu only: an adventure atlas, framed like part of the game.
   The original map, navigation and progression are retained. */
#chooser {
	--menu-ink: #eee0b8;
	--menu-muted: #b6b99c;
	--menu-line: #b995505c;
	--menu-paper: #182b23;
	--menu-green: #b88a43;
	--menu-bronze: #dbb96d;
	--menu-texture: url('./art/ui/panel-patina.svg');
	padding: 0;
	background: #101c18;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
#chooser .card.wide.map-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(310px, 34vw, 390px);
	grid-template-rows: auto minmax(0, 1fr);
	gap: 0;
	align-content: stretch;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: 100dvh;
	padding: 0;
	overflow: hidden;
	color: var(--menu-ink);
	background: var(--menu-texture), radial-gradient(ellipse at 30% 10%, #2e4735, #101d18 80%);
	border: 0;
	border-radius: 0;
	box-shadow: inset 0 0 100px #0006;
	font-size: 15px;
	line-height: 1.5;
	animation: none;
}
#chooser .map-shell::before,
#chooser .map-shell::after,
#chooser h1::after { content: none; display: none; animation: none; }
#chooser .map-shell > .map-heading {
	grid-column: 1 / -1;
	grid-row: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 22px;
	padding: max(17px, env(safe-area-inset-top)) 28px 17px;
	background: var(--menu-texture), linear-gradient(#263e2f, #14251e);
	border-bottom: 2px solid #b28b4b;
	box-shadow: inset 0 -3px 0 #071610, 0 5px 20px #0005;
	z-index: 20;
}
#chooser .map-brand { min-width: 0; padding-left: 16px; border-left: 3px solid #b89150; }
#chooser .map-eyebrow { display: none; }
#chooser .map-eyebrow,
#chooser .place-kicker {
	margin: 0 0 5px;
	color: #c5a365;
	font: 600 10px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}
#chooser #chTitle {
	margin: 0;
	padding: 0;
	font-size: clamp(24px, 2.45vw, 36px);
	font-weight: 700;
	font-variant: small-caps;
	line-height: 1.1;
	letter-spacing: 0.015em;
	text-align: left;
	text-shadow: 0 2px 2px #000b;
	color: #f0d99e;
}
/* (the King's crown set before his name: the painted crown of the game's marks) */
#chooser #chTitle::before {
	content: '';
	display: inline-block;
	width: 1.3em;
	height: 1.3em;
	margin: -0.25em 0.3em -0.25em 0;
	vertical-align: -0.12em;
	background: url('./img/marks/crown.webp') center/contain no-repeat;
	filter: drop-shadow(0 2px 2px #000b);
	transform: rotate(-8deg);
}
#chooser .map-tagline { display: none; }
#chooser .btn {
	position: relative;
	border: 1px solid #96723c;
	border-radius: 5px;
	box-shadow: inset 0 1px 0 #fbe4a12b, inset 0 -3px 0 #0005, 0 3px 5px #0004;
	text-shadow: 0 1px 1px #0008;
	font-family: var(--serif);
	transition: background 140ms ease, border-color 140ms ease, transform 100ms ease;
}
#chooser .btn:active { transform: translateY(2px); box-shadow: inset 0 2px 4px #0005; }
#chooser #pickNext {
	position: fixed;
	right: 22px;
	bottom: max(20px, env(safe-area-inset-bottom));
	width: calc(clamp(310px, 34vw, 390px) - 44px);
	z-index: 21;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	grid-column: auto;
	min-width: 190px;
	min-height: 60px;
	max-width: none;
	margin: 0;
	padding: 12px 20px;
	color: #32200d;
	background: linear-gradient(#edcc7c, #c29546 50%, #b17a30);
	border: 2px solid #efcf85;
	font-size: 19px;
	font-weight: 700;
	text-align: left;
	text-shadow: 0 1px 0 #ffe8a6;
	box-shadow: inset 0 1px 0 #fff0bb, inset 0 -4px 0 #78501f, 0 4px 0 #081710, 0 0 0 4px #14251e, 0 7px 20px #0009;
}
#chooser #pickNext:hover { background: linear-gradient(#f6dc95, #d9ad5e 55%, #bc8739); border-color: #ffe5a0; }
#chooser #pickNext:active { transform: translateY(3px); box-shadow: inset 0 2px 4px #6d431f77, 0 0 0 4px #14251e; }
#chooser #pickNext .icon { flex: none; width: 22px; height: 22px; color: #61401b; }
/* (the painted gate is shown larger than a line drawing, so that its road can be seen) */
#chooser #pickNext .icon.painted { width: 36px; height: 36px; margin: -6px 0; filter: drop-shadow(0 1px 1px #5a3a1477); }
#chooser #pickNext .hint-line { margin-top: 2px; color: #5b3e20; font: 10px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
#chooser #langMap {
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 42px;
	padding: 8px;
	border: 1px solid #a48548;
	border-radius: 5px;
	background: linear-gradient(#3b4c34, #20362a);
	color: #edd8a6;
	box-shadow: inset 0 1px 0 #eed59c38, 0 2px 4px #0005;
	font: 600 12px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#chooser #langMap:hover { background: #4a5e3b; transform: none; }
#chooser .map-shell > .map-stage {
	grid-column: 1;
	grid-row: 2;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	gap: 12px;
	min-width: 0;
	min-height: 0;
	padding: 18px 20px 12px;
	background: transparent;
}
#chooser .atlas-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#chooser .atlas-heading h2 {
	margin: 0;
	font: 700 19px/1.2 var(--serif);
	font-variant: small-caps;
	letter-spacing: 0.035em;
	color: #dfc68c;
	text-shadow: 0 2px 2px #0008;
	border: 0;
}
#chooser .atlas-legend { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; color: #c1c6a6; font: 10px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
#chooser .atlas-legend > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
#chooser .atlas-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
#chooser .legend-open { background: #e2c785; border: 1px solid #f7df9e; }
#chooser .legend-done { background: #84a96c; border: 1px solid #a7bf86; }
#chooser .legend-locked { background: transparent; border: 1px dashed #b0b595; }
#chooser #mapBox {
	--ink: #463b27;
	--ink-soft: #746344;
	--lapis: #7e4329;
	--scarlet: #8e4229;
	--olive: #45633b;
	--papyrus-light: #ecda9c;
	--gold: #a98440;
	--sheet: #e6d19a;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	overflow: hidden;
	border: 4px double #c29b55;
	border-radius: 6px;
	background: #c5b077;
	box-shadow: 0 0 0 3px #0c1b14, 0 0 0 4px #7c6031, 0 8px 24px #0008;
}
#chooser #mapBox > svg {
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: #cbb47d;
	touch-action: none;
	cursor: grab;
}
#chooser #mapBox > svg:active { cursor: grabbing; }
#chooser #mapBox::after { content: ''; position: absolute; inset: 0; z-index: 1; box-shadow: inset 0 0 65px #4c37164d, inset 0 0 4px #3d2c16; pointer-events: none; }
#chooser .map .land { fill: #d2bb80; }
#chooser .map .sea { fill: #709590; }
/* Atlas objects stay behind controls; only water and the boat move gently. */
#chooser .map-objects { pointer-events: none; }
#chooser .map-object {
	fill: none;
	stroke: #765630;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.86;
}
#chooser .map-object .object-canvas { fill: #e8d7ac; }
#chooser .map-object .object-wood { fill: #987047; }
#chooser .map-object .object-stone { fill: #d1ac67; }
#chooser .map-object .object-shade { fill: #aa8248; stroke-width: 1.2; }
#chooser .map-object .object-door { fill: #79613c; }
#chooser .map-object .object-shadow { fill: #5b4930; stroke: none; opacity: 0.16; }
#chooser .map-object .object-water { stroke: #426f70; opacity: 0.85; }
#chooser .map-object .object-fine { stroke-width: 1.1; opacity: 0.65; }
#chooser .map .ripples,
#chooser .map .object-water {
	animation: journey-map-wave 7s ease-in-out infinite;
}
#chooser .map .object-water { animation-delay: -2.3s; }
#chooser .map .object-boat-motion {
	transform-box: fill-box;
	transform-origin: 50% 85%;
	animation: journey-boat-bob 5.8s ease-in-out infinite;
}
@keyframes journey-map-wave {
	0%, 100% { transform: translate(-2px, 0.6px); opacity: 0.38; }
	50% { transform: translate(2px, -0.6px); opacity: 0.75; }
}
@keyframes journey-boat-bob {
	0%, 100% { transform: translateY(-2.4px) rotate(-1.2deg); }
	50% { transform: translateY(2.4px) rotate(1.2deg); }
}
#chooser .map .route { animation: none; }
#chooser .map .locked .label { font-style: normal; opacity: 0.68; }
#chooser .map .selected .halo { fill: #9c4c2426; stroke: #87462d; stroke-width: 1.6; }
#chooser #mapBox .map-lens {
	top: 12px;
	left: 12px;
	flex-direction: column;
	gap: 7px;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
}
#chooser .map-lens button {
	width: 40px;
	height: 40px;
	border: 1px solid #bd9b56;
	border-radius: 5px;
	background: linear-gradient(#3c4b32f5, #1f3629fa);
	box-shadow: inset 0 1px 0 #eacb8a44, 0 2px 5px #1a201966;
	color: #ecd69a;
}
#chooser .map-lens button:hover { background: #4b603c; }
#chooser .map-lens button:disabled { opacity: 0.45; }
#chooser .map-lens button:last-child { width: auto; min-width: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; }
#chooser .lens-label { font: 600 10px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
#chooser #mapCaption { display: block; margin: 0; font: 11px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #aab495; text-align: left; }
#chooser .map-shell > .map-sidebar {
	grid-column: 2;
	grid-row: 2;
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-height: 0;
	min-width: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 22px 22px 108px;
	border-left: 1px solid #ad854548;
	background: var(--menu-texture), linear-gradient(90deg, #102119, #20372a99 20%, #102219);
	scrollbar-width: thin;
	scrollbar-color: #8e7648 #14251b;
}
#chooser .journey-summary { padding: 12px; background: var(--menu-texture), radial-gradient(ellipse at 5% 0%, #b69b5020, transparent 60%), #0c1e17d9; border: 1px solid #9b7a3f66; border-radius: 4px; box-shadow: inset 0 1px 0 #d4b57225, inset 0 -8px 18px #0003, 0 2px 3px #0003; }
#chooser .journey-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#chooser .journey-summary h2,
#chooser .menu-kit > h2 {
	margin: 0;
	font: 700 15px/1.5 var(--serif);
	font-variant: small-caps;
	letter-spacing: 0.04em;
	color: #d8be80;
	text-shadow: 0 1px 2px #0008;
}
#chooser #mapProgressValue { font: 11px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #b4bc9b; }
#chooser .menu-progress { height: 4px; margin: 10px 0 12px; overflow: hidden; border-radius: 4px; background: #091910; box-shadow: inset 0 1px 2px #000b; border: 1px solid #7b693f; }
#chooser #mapProgressBar { display: block; height: 100%; border-radius: inherit; background: linear-gradient(#e5c579, #a97b34); box-shadow: 0 0 8px #dfbf6677; transition: width 220ms ease; }
#chooser .journey {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	text-align: left;
}
#chooser .journey .count { display: grid; grid-template-columns: auto 1fr; align-items: center; justify-content: start; gap: 4px 6px; min-width: 0; color: #ead69b; }
#chooser .journey .count .icon { width: 16px; height: 16px; color: #d9b465; }
#chooser .journey .count-name { grid-column: 1 / -1; color: #b6be9f; font-size: 9px; font-weight: 400; }
#chooser .journey .count[data-metric='seed'] { display: none; }
#chooser .journey .count[data-metric='person'] { grid-column: 1 / -1; display: flex; padding-top: 3px; font-size: 10px; color: #b3bc9a; }
#chooser .online { justify-content: flex-start; margin: 12px 0 0; font: 10px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #aab88d; }
#chooser #placeCard {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 10px;
	flex: none;
	margin: 0;
	padding: 16px;
	background: var(--menu-texture), radial-gradient(ellipse at 0% 0%, #baa36221, transparent 55%), radial-gradient(ellipse at 100% 100%, #040e0a66, transparent 60%), linear-gradient(140deg, #314633, #172b21 75%);
	border: 1px solid #a1844c;
	border-top-color: #c2a36b;
	border-bottom-color: #776034;
	border-radius: 5px;
	box-shadow: inset 0 0 0 3px #17291e, inset 0 0 0 4px #b8984e2b, inset 0 1px 12px #d6c28a16, 0 5px 12px #0006;
}
#chooser #placeCard.locked { border-style: dashed; background: #263329; }
#chooser #placeCard .place-kicker { grid-column: 1 / -1; margin: 0; font-size: 9px; }
#chooser #placeIcon { width: 38px; height: 38px; padding: 9px; background: linear-gradient(#a88a49, #6f542c); color: #fff1bc; border: 1px solid #dbbb6f; border-radius: 50%; box-shadow: inset 0 0 0 2px #584325, 0 2px 4px #0005; }
#chooser #placeCard.locked #placeIcon { background: #44513d; color: #b4ba96; }
#chooser #placeArt { grid-column: 1 / -1; width: 100%; height: 126px; max-height: none; margin: 0; border: 1px solid #b68d4e77; border-radius: 3px; object-fit: cover; box-shadow: 0 2px 5px #0005; }
#chooser #placeArt:not([hidden]) ~ .place-body { grid-column: 1 / -1; }
#chooser .place-body { min-width: 0; }
#chooser .place-body h2 { margin: 0 0 8px; font-size: 25px; line-height: 1.15; font-weight: 700; letter-spacing: 0.01em; text-shadow: 0 2px 2px #0008; color: #f0d599; border: 0; padding: 0; }
#chooser .place-body p { margin: 0; font-size: 14px; line-height: 1.55; color: #d5d2b2; }
#chooser .place-body .place-stats { margin-top: 10px; font: 10px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #c7b47d; }
#chooser #placeGo { grid-column: 1 / -1; width: 100%; min-height: 36px; margin: 2px 0 0; padding: 8px 12px; background: linear-gradient(#4c5b39, #2a402a); color: #e5d6a2; border-color: #9e8043; font-size: 14px; font-weight: 700; }
#chooser #placeGo:hover { background: #526b3f; }
#chooser #placePin { grid-column: 1 / -1; flex-wrap: wrap; min-width: 0; gap: 10px; }
#chooser #placePin .btn { background: linear-gradient(#caa65b, #9d783b); color: #2b2111; text-shadow: none; font-size: 13px; }
#chooser .menu-kit > h2 { margin-bottom: 10px; }
#chooser .map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
#chooser .map-actions .btn {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 8px;
	min-width: 0;
	min-height: 78px;
	padding: 12px 10px;
	background: var(--menu-texture), radial-gradient(ellipse at 10% 0%, #d4b46c1f, transparent 70%), linear-gradient(#3b5034, #223b28);
	border: 1px solid #9e7e43;
	color: #ebd6a0;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
}
#chooser .map-actions .btn:hover { background: #4b633b; border-color: #d9b66d; }
#chooser .map-actions .btn .icon { flex: none; width: 22px; height: 22px; color: #c5a05b; filter: drop-shadow(0 1px 1px #0008); }
#chooser .map-actions .hint-line { margin-top: 4px; font: 10px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #b5bd9c; text-shadow: none; }
#chooser details { border-top: 1px solid var(--menu-line); padding-top: 12px; }
#chooser details summary { cursor: pointer; padding: 4px 0; font: 700 15px/1.6 var(--serif); font-variant: small-caps; letter-spacing: 0.03em; color: #d3bd83; text-shadow: 0 1px 2px #0008; }
#chooser details[open] summary { margin-bottom: 12px; }
#chooser #chIntro { display: block; margin: 0; font-size: 14px; line-height: 1.7; text-align: left; font-style: normal; color: #c8ccb0; }
#chooser #pearl { margin: 0 0 12px; font: 12px/1.6 var(--serif); color: #c2cba5; }
#chooser .gift { margin: 0; }
#chooser .gift-btn,
#chooser .gift-word { margin: 0; padding: 14px; width: 100%; background: var(--menu-texture), linear-gradient(#514a2d, #302e1e); border: 1px solid #b8964d; border-radius: 4px; box-shadow: inset 0 1px 0 #f4d79633, 0 3px 6px #0005; animation: none; color: #efdb9e; }
#chooser .gift-btn:hover { background: #625731; transform: none; }
#chooser .gift-btn .icon { color: #e5bb5f; width: 26px; height: 26px; }
#chooser .gift-btn .label { font-size: 15px; }
#chooser .gift-btn .hint-line { font-size: 10px; line-height: 1.5; color: #c8bc8a; }
#chooser .gift-label { color: #e2c67f; font-size: 10px; }
#chooser .gift-text { color: #eddeb7; font-size: 16px; }
#chooser .gift-note { font-size: 10px; }
#chooser .menu-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--menu-line); }
#chooser .menu-utilities { display: flex; justify-content: space-between; gap: 12px; }
#chooser .menu-utilities .btn { min-height: 32px; padding: 4px 0; background: none; border: 0; color: #bdc5a4; font-size: 12px; box-shadow: none; }
#chooser #resetAll { color: #c79c78; }
#chooser .menu-utilities .btn .icon { width: 13px; height: 13px; }
#chooser #mapNote { display: block; margin: 10px 0 0; font: 10px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #b1bb98; }
#chooser .build-row { margin: 10px 0 0; font: 9px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #9ba888; }
#chooser .build-check { color: #bbbe91; background: #283e2a; border-color: #8f7844; }
#chooser .map-menu { min-width: 170px; max-width: 235px; padding: 13px 30px 13px 14px; background: linear-gradient(#efdda4, #cfb472); border: 2px solid #8a6630; border-radius: 5px; box-shadow: inset 0 0 0 2px #f5e8bd77, 0 5px 15px #14261977; color: #4a3820; font: 11px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
#chooser .map-menu::after { background: #d5bd80; border-width: 2px; border-color: #8a6630; }
#chooser .map-menu strong { font-weight: 500; font-size: 19px; }
#chooser .map-menu .btn { margin: 4px 0 0; min-height: 36px; padding: 7px 10px; font-size: 13px; background: linear-gradient(#415b34, #223e28); color: #fff0bf; border: 1px solid #8a753b; }
#chooser .map-menu .menu-note { color: #66502d; font-style: normal; }
#chooser .menu-close { color: #654821; width: 32px; height: 32px; }
#chooser :is(button, summary):focus-visible { outline: 3px solid #b98c4e; outline-offset: 3px; }
#chooser .map .site:focus-visible .dot { stroke: #8e4229; stroke-width: 4px; }
@media (max-width: 759px) and (min-height: 521px) {
	#chooser .card.wide.map-shell { display: flex; flex-direction: column; overflow-y: auto; height: 100%; max-height: 100dvh; scrollbar-width: none; }
	#chooser .card.wide.map-shell::-webkit-scrollbar { display: none; }
	/* (the panel's gleam in style.css uses this same ::after: its top edge, stretched
	   background and movement are put aside, or the strip sits at the top of the screen) */
	#chooser .map-shell::after { content: ''; display: block; position: fixed; top: auto; left: 0; right: 0; bottom: 0; height: calc(96px + env(safe-area-inset-bottom)); z-index: 10; border-radius: 0; background: linear-gradient(transparent, #101f17 26%, #101f17); background-size: auto; background-position: 0 0; animation: none; pointer-events: none; }
	#chooser .map-shell > .map-heading { position: sticky; top: 0; flex: none; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 14px 14px; }
	#chooser .map-brand { border-left-width: 2px; padding-left: 10px; }
	#chooser .map-eyebrow { font-size: 8px; margin-bottom: 4px; }
	#chooser #chTitle { font-size: 24px; }
	#chooser .map-tagline { display: none; }
	#chooser #langMap { grid-column: 2; grid-row: 1; align-self: start; min-width: 40px; min-height: 36px; padding: 6px; }
	#chooser #pickNext { left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); min-width: 0; max-width: none; min-height: 56px; width: calc(100% - 32px); padding: 10px 16px; justify-content: center; font-size: 21px; }
	#chooser #pickNext .hint-line { display: none; }
	#chooser .map-shell > .map-stage { position: relative; display: block; flex: none; height: clamp(350px, 52dvh, 480px); padding: 0; }
	#chooser .atlas-heading { position: absolute; z-index: 3; top: 0; left: 0; right: 0; gap: 5px; padding: 8px 12px 12px; background: linear-gradient(#15281ff5, #15281fd9 75%, transparent); pointer-events: none; }
	#chooser .atlas-heading h2 { font-size: 16px; }
	#chooser .atlas-legend { font-size: 9px; gap: 10px; }
	#chooser #mapCaption { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 7px 12px; background: #16291fe6; color: #d1c89e; font-size: 10px; pointer-events: none; }
	#chooser #mapBox { border-width: 0; border-bottom: 2px solid #b99550; border-radius: 0; box-shadow: none; }
	/* (a row in the map's lower corner, over Egypt's empty sand: as a column down the
	   left edge it covered Pharaoh's court and Rameses) */
	#chooser #mapBox .map-lens { top: auto; bottom: 40px; left: 10px; flex-direction: row; gap: 6px; }
	#chooser #mapBox .map-lens .lens-label { display: none; }
	#chooser #mapBox .map-lens button:last-child { padding: 0; }
	#chooser .map-shell > .map-sidebar { display: flex; flex: none; overflow: visible; padding: 16px 16px calc(104px + env(safe-area-inset-bottom)); border-left: 0; border-top: 1px solid var(--menu-line); gap: 18px; }
	#chooser #placeCard { padding: 15px; }
	#chooser #placeArt { height: 142px; }
	#chooser .map-actions .btn { min-height: 76px; }
	#chooser .menu-footer { margin-top: 0; }
}
@media (max-width: 1050px) and (min-width: 760px) {
	#chooser .map-shell > .map-heading { gap: 14px; padding: 18px 22px; }
	#chooser #chTitle { font-size: 26px; }
	#chooser .map-tagline { font-size: 11px; }
	#chooser #pickNext { right: 18px; width: 274px; min-width: 0; max-width: none; padding: 11px 14px; font-size: 18px; }
	#chooser .map-shell > .map-stage { padding: 16px 16px 10px; }
	#chooser .map-shell > .map-sidebar { padding: 18px 18px 108px; gap: 16px; }
}
@media (max-height: 520px) and (min-width: 560px) {
	#chooser .card.wide.map-shell { grid-template-columns: minmax(0, 1fr) 300px; }
	#chooser .map-shell > .map-heading { padding: 10px 16px; gap: 14px; }
	#chooser #chTitle { font-size: 22px; }
	#chooser .map-eyebrow,
	#chooser .map-tagline { display: none; }
	#chooser #pickNext { right: 14px; bottom: max(12px, env(safe-area-inset-bottom)); width: 272px; min-height: 48px; min-width: 0; max-width: none; padding: 8px 12px; font-size: 17px; }
	#chooser #pickNext .hint-line { display: none; }
	#chooser #langMap { min-height: 34px; min-width: 40px; }
	#chooser .map-shell > .map-stage { gap: 7px; padding: 10px; }
	#chooser .atlas-heading h2 { font-size: 15px; }
	#chooser .atlas-legend { font-size: 8px; gap: 8px; }
	#chooser #mapCaption { display: none; }
	#chooser .map-stage { grid-template-rows: auto minmax(0, 1fr); }
	#chooser .map-shell > .map-sidebar { padding: 14px 14px 84px; gap: 14px; }
	#chooser #placeArt { height: 100px; }
	#chooser .map-lens button { width: 34px; height: 34px; }
}
@media (max-width: 559px) and (max-height: 520px) {
	#chooser .card.wide.map-shell { display: flex; flex-direction: column; overflow-y: auto; }
	#chooser .map-shell > .map-heading { padding: 12px; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; }
	#chooser #pickNext { left: 14px; right: 14px; bottom: 12px; min-height: 52px; max-width: none; width: calc(100% - 28px); font-size: 18px; }
	#chooser #langMap { grid-column: 2; grid-row: 1; }
	#chooser .map-tagline { display: none; }
	#chooser .map-shell > .map-stage { flex: none; height: 320px; padding: 12px; }
	#chooser .map-shell > .map-sidebar { flex: none; overflow: visible; padding: 18px 18px 100px; border-left: 0; }
}
@media (pointer: coarse) {
	#chooser .map-lens button { min-width: 44px; min-height: 44px; }
	#chooser #langMap { min-width: 44px; min-height: 44px; }
	#chooser .menu-utilities .btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	#chooser *, #chooser *::before, #chooser *::after { animation: none !important; transition: none !important; }
}

/* ---------- Painted pictures on the map (js/map-art.js) ---------- */
/* Round paintings in the empty ground beside the open places, each tied to its
   mark: gold-rimmed like a seal, with a soft shadow on the sheet. */
#chooser #mapBox .map-vignettes { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
#chooser #mapBox .map-vignettes svg.vignette-ties { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
#chooser #mapBox .vignette-tie { stroke: #5b4126; stroke-width: 1.4; stroke-dasharray: 2 4; stroke-linecap: round; opacity: 0.75; }
/* (the same length both ways, set outright: a button's own height or min-height,
   or a browser that ignores aspect-ratio on a button, must not make it oval) */
#chooser #mapBox .vignette { --vig: clamp(56px, 18vmin, 82px); position: absolute; left: 0; top: 0; box-sizing: border-box; width: var(--vig); height: var(--vig); min-width: var(--vig); min-height: var(--vig); max-width: var(--vig); max-height: var(--vig); aspect-ratio: 1; flex: none; padding: 0; margin: 0; line-height: 0; font-size: 0; -webkit-appearance: none; appearance: none; border: 2px solid #5b4126; border-radius: 50%; background: #e8d7ac; box-shadow: inset 0 0 0 3px #d9b45a, 0 4px 10px #2b1c0a55; overflow: hidden; cursor: pointer; pointer-events: auto; transition: transform 0.2s ease; }
#chooser #mapBox .vignette[hidden] { display: none; }
#chooser #mapBox .vignette img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: center; border-radius: 50%; }
#chooser #mapBox .vignette::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 3px #d9b45a, inset 0 0 10px #2b1c0a55; pointer-events: none; }
#chooser #mapBox .vignette.next::after { box-shadow: inset 0 0 0 3px #e9c56a, inset 0 0 10px #2b1c0a55; }
/* (the next stop's picture is a little larger, with a warmer rim: where the road goes) */
#chooser #mapBox .vignette.next { --vig: clamp(64px, 21vmin, 96px); border-color: #87462d; box-shadow: inset 0 0 0 3px #e9c56a, 0 0 0 3px #f3e6c2aa, 0 5px 14px #2b1c0a66; }
#chooser #mapBox .vignette:hover, #chooser #mapBox .vignette:focus-visible { transform: scale(1.06); outline: none; box-shadow: inset 0 0 0 3px #e9c56a, 0 0 0 3px #87462d, 0 5px 14px #2b1c0a66; }
#chooser #mapBox .vignette.fresh { animation: vignette-in 0.35s ease-out; }
@keyframes vignette-in { from { opacity: 0; transform: scale(0.85); } }
@media (prefers-reduced-motion: reduce) { #chooser #mapBox .vignette.fresh { animation: none; } }

/* Places with a story of their own: a built one is a whole gold-rimmed seal,
   a planned one stays a faint broken diamond */
#chooser .map .side.built .dot { stroke: #87462d; stroke-width: 6; stroke-dasharray: none; fill: #f7e6b4; }
#chooser .map .side.built .halo { fill: #d9b45a33; stroke: #b08a3a; stroke-width: 2; }
#chooser .map .side:not(.built):not(.selected) .pin { opacity: 0.62; }
/* Places off the road that would cover one another are folded into one seal
   (map-groups.js): a numbered seal with another peeping out behind it */
#chooser .map .side.folded { opacity: 0; pointer-events: none; }
#chooser .map .side-group { cursor: pointer; animation: group-in 0.35s ease both; }
#chooser .map .side-group .dot.behind { fill: #ecd9a4; }
#chooser .map .side-group .count { font-size: 40px; font-weight: 700; font-style: normal; fill: #5a3a14; pointer-events: none; }
#chooser .map .side-group:hover .halo, #chooser .map .side-group:focus-visible .halo { fill: #d9b45a66; }
#chooser .map .side-group:focus-visible { outline: none; }
@keyframes group-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #chooser .map .side-group { animation: none; } }

/* The picture at the head of a chosen place's small menu (faded where the place
   is not open yet: a glimpse of what is to come) */
#chooser #mapBox .map-menu .menu-head { display: flex; align-items: center; gap: 10px; }
#chooser #mapBox .map-menu .menu-art { --art: clamp(52px, 15vmin, 68px); flex: none; box-sizing: border-box; width: var(--art); height: var(--art); min-width: var(--art); max-width: var(--art); max-height: var(--art); aspect-ratio: 1; border-radius: 50%; border: 2px solid #5b4126; box-shadow: inset 0 0 0 2px #d9b45a; object-fit: cover; }
#chooser #mapBox .map-menu .menu-art.ahead { filter: sepia(0.8) saturate(0.7) brightness(0.92) contrast(1.1); }
#chooser #mapBox .map-menu.loose::after { display: none; }
#chooser #mapBox .map-menu.inline .menu-art { display: none; }
/* (on a phone on its side the frame is short: a smaller picture keeps the menu in it) */
@media (max-height: 520px) { #chooser #mapBox .map-menu .menu-art { --art: 40px; } }
