.depot-scene {
	padding: 0;
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 50% 70%, #576a3338, transparent 65%), #1a241d;
	margin-bottom: 20px;
}
.depot-svg {
	width: 100%;
	height: auto;
	max-height: 400px;
	display: block;
	overflow: visible;
}
.depot-svg .planned {
	opacity: 0.35;
}
.depot-svg .built {
	animation: building-appear 0.6s ease-out;
}
.depot-caption {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 22px;
	border-top: 1px solid var(--line);
	font-size: 12px;
	color: var(--green);
}
.depot-caption > span:last-child {
	margin-left: auto;
	color: var(--muted);
	font-size: 10px;
}
.yard-truck {
	animation: yard-delivery 14s ease-in-out infinite;
}
.water-flow {
	animation: water-flow 0.7s linear infinite;
}
.scan-line {
	animation: scanner-glow 2s ease-in-out infinite;
}
.building-art {
	height: 135px;
	background: radial-gradient(at center, #66745233, transparent 70%);
	display: flex;
	justify-content: center;
	margin-bottom: 14px;
}
.building-art svg {
	height: 135px;
	width: 140px;
}
.building-card {
	position: relative;
}
.building-card.owned {
	border-color: #7f9a5155;
}
.building-card h3 {
	margin-block: 12px 8px;
}
.building-card p {
	font-size: 13px;
	min-height: 62px;
}
.base-stages {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 24px;
}
.base-stage {
	min-width: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px;
	background: var(--panel);
	color: var(--muted);
}
.base-stage > span {
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 13px;
	margin-bottom: 10px;
}
.base-stage.done {
	border-color: #a5bc6c66;
	color: var(--green);
}
.base-stage.done > span {
	color: var(--accent);
	border-color: var(--accent);
}
.base-stage strong {
	font-size: 13px;
	display: block;
}
.base-stage small {
	font-size: 11px;
}
.requirement-list {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 14px 0;
}
.requirement {
	font-size: 11px;
	color: var(--muted);
	padding: 5px 8px;
	border: 1px solid var(--line);
	border-radius: 6px;
}
.requirement.met {
	color: var(--green);
	border-color: #75995c55;
	background: #b1ce7b08;
}
.country-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
	gap: 14px;
}
.country-card {
	padding: 20px;
	border-style: dashed;
}
.country-card.unlocked {
	border-style: solid;
	border-color: #8ca95b66;
	background: linear-gradient(140deg, #70833b16, var(--panel));
}
.country-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}
.country-code {
	display: grid;
	place-items: center;
	width: 43px;
	height: 34px;
	background: #394331;
	border-radius: 6px;
	border: 1px solid #7a8f5d44;
	color: var(--accent);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
}
.country-card h3 {
	font-size: 17px;
}
.country-card > p {
	font-size: 11px;
	min-height: 32px;
}
.country-card .actions {
	justify-content: space-between;
}
.country-card .actions button {
	font-size: 11px;
}
.country-card > .muted {
	font-size: 10px;
}
.country-filter-active {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 12px;
	background: #f6b65d10;
	border: 1px solid #f6b65d44;
	border-radius: 8px;
	font-size: 12px;
	color: var(--accent);
	margin: 12px 0;
}
.country-filter-active button {
	margin-left: auto;
	font-size: 11px;
}
.maintenance-panel {
	border-top: 1px solid var(--line);
	padding-top: 15px;
	margin-top: 12px;
}
.cleanliness {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 12px;
	margin-bottom: 12px;
}
.cleanliness > progress {
	flex-basis: 100%;
	height: 5px;
	accent-color: var(--green);
}
.cleanliness .tag {
	font-size: 8px;
}
.maintenance-panel > p.small {
	font-size: 11px;
	margin-block: 10px;
}
.maintenance-panel .workshop-grid button {
	font-size: 11px;
}
.parts-list {
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
	margin-top: 12px;
}
.part-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	border-bottom: 1px solid var(--line);
	padding: 11px;
}
.part-row:last-child {
	border-bottom: 0;
}
.part-row > div {
	min-width: 0;
}
.part-row strong {
	display: block;
	font-size: 11px;
}
.part-row small {
	display: block;
	font-size: 9px;
	color: var(--muted);
	margin-top: 3px;
}
.part-row > button {
	font-size: 10px;
	padding: 7px;
	flex-shrink: 0;
	min-height: 38px;
}
.unknown-part {
	color: var(--muted);
	padding: 2px 8px;
	border: 1px solid var(--line);
	border-radius: 5px;
	font-size: 12px;
}
.service-active {
	position: relative;
	padding: 20px;
	border: 1px solid #9b9b6055;
	border-radius: 10px;
	background: #b6d99c08;
	overflow: hidden;
	margin: 15px 0;
}
.service-active > strong {
	display: block;
	font-size: 14px;
	margin-bottom: 12px;
}
.service-active > small {
	display: block;
	color: var(--muted);
	margin-top: 8px;
	font-size: 11px;
}
.service-spinner {
	position: absolute;
	right: 18px;
	top: 18px;
	width: 18px;
	height: 18px;
	border: 2px solid #a4b46b44;
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: service-spin 1s linear infinite;
}
.service-active.wash:before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(
		115deg,
		transparent 0 19px,
		#8edeea0c 20px 23px,
		transparent 24px 40px
	);
	animation: wash-spray 1.5s linear infinite;
}
.moving-road {
	height: 33px;
	position: relative;
	overflow: hidden;
	margin: 12px 0;
	background: repeating-linear-gradient(
			90deg,
			transparent 0 13px,
			#83916133 13px 24px,
			transparent 24px 35px
		)
		left 25px/100% 1px no-repeat;
}
.moving-road svg {
	width: 45px;
	height: 30px;
	color: var(--accent);
	animation: truck-cruise 8s ease-in-out infinite;
}
.map-depot {
	height: 80px;
	width: 132px;
	filter: drop-shadow(0 3px 8px #0007);
}
.map-depot .depot-svg {
	height: 67px;
	width: 132px;
	background: #1c2b20da;
	border: 1px solid #f6b65d88;
	border-radius: 10px;
	overflow: hidden;
}
.map-depot > span {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 9px;
	padding: 1px 4px;
	background: #1c2b20;
	color: #e5eecf;
	border: 1px solid #a4b86c77;
	border-radius: 5px;
	white-space: nowrap;
}
.base-map-marker {
	background: none;
	border: 0;
}
.section-heading {
	animation: section-arrive 0.3s ease-out;
}
.trip-card {
	position: relative;
}
.trip-card:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 70px;
	height: 2px;
	background: var(--accent);
	animation: route-signal 7s ease-in-out infinite;
}
.on-road .photo:after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	background: linear-gradient(
		100deg,
		transparent 30%,
		#f6b65d15,
		transparent 70%
	);
	animation: vehicle-shine 8s ease-in-out infinite;
	pointer-events: none;
}
@keyframes service-spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes water-flow {
	to {
		stroke-dashoffset: -22;
	}
}
@keyframes scanner-glow {
	50% {
		opacity: 0.35;
	}
}
@keyframes yard-delivery {
	0%,
	100% {
		transform: translate(0, 0);
	}
	45%,
	55% {
		transform: translate(320px, -170px);
	}
}
@keyframes truck-cruise {
	0%,
	100% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(130px);
	}
}
@keyframes wash-spray {
	to {
		background-position: 40px 0;
	}
}
@keyframes section-arrive {
	from {
		opacity: 0.4;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes building-appear {
	from {
		opacity: 0.2;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes route-signal {
	50% {
		left: calc(100% - 70px);
		opacity: 0.35;
	}
}
@keyframes vehicle-shine {
	50% {
		transform: translateX(50%);
	}
}
@media (max-width: 780px) {
	.base-stages {
		grid-template-columns: 1fr 1fr;
	}
	.depot-scene {
		margin-bottom: 16px;
	}
	.depot-svg {
		min-height: 190px;
	}
	.depot-caption {
		flex-wrap: wrap;
		padding: 12px 16px;
		font-size: 11px;
	}
	.depot-caption > span:last-child {
		flex-basis: 100%;
		margin: 0;
		font-size: 9px;
	}
	.building-card p {
		min-height: 0;
	}
	.country-grid {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	}
	.part-row button {
		max-width: 130px;
		white-space: normal;
	}
	.map-depot .depot-svg {
		min-height: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.depot-svg *,
	.service-active,
	.service-active:before,
	.service-spinner,
	.moving-road svg,
	.section-heading,
	.trip-card:before,
	.on-road .photo:after {
		animation: none !important;
	}
}
