/* Adapt the main project's newer pages to the illustrated dark-green theme. */
.illustratedSite
{
	--surface: var(--night-900);
	--surface-raised: var(--night-850);
	--surface-muted: var(--night-800);
	--surface-inset: var(--night-950);
	--ink: var(--paper);
	--ink-soft: var(--paper-dim);
	--text-muted: #a8b9a9;
	--portal: var(--lime-400);
	--portal-dark: var(--lime-300);
	--portal-light: var(--lime-200);
	--portal-pale: rgba(159, 214, 80, .12);
	--night: var(--night-950);
	--night-raised: var(--night-850);
	--night-line: var(--line-strong);
	--on-night: var(--paper);
	--on-night-muted: var(--paper-dim);
	--button-background: var(--lime-300);
	--ad-rail-width: 184px;
	color-scheme: dark;
	position: relative;
}
.retroSite .frame { width: calc(100% - var(--ad-rail-width)); margin-left: var(--ad-rail-width); }
.illustratedSite.hasNoAdRail { --ad-rail-width: 0px; }
.siteHeader { flex: none; }
.siteLogoMark { object-fit: contain; }
.headerPrivacyLink { color: var(--paper-dim); font-size: .75rem; }
.retroSite .headerPrivacyLink, .retroSite .footerPrivacyLink { display: none; }
.retroSite.hasNoAdRail .footerPrivacyLink { display: inline-flex; }
.retroSite.hasNoAdRail .headerPrivacyLink { display: inline-flex; }
.journalEyebrow { color: var(--lime-300); font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.btn-portal { color: var(--night-950); background: var(--lime-300); }
.mapSpellIcon { --map-spell-icon-size: 28px; position: relative; display: block; flex: none; width: var(--map-spell-icon-size); height: var(--map-spell-icon-size); overflow: hidden; border-radius: 50%; }
.mapSpellIcon img { position: absolute; top: -1px; left: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; }
.homeFarmModes { display: flex; flex-wrap: wrap; gap: 10px; }
.homeFarmMode { display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; align-items: center; padding: 12px; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--glass); text-decoration: none; }
.homeFarmMode .mapSpellIcon { grid-row: span 2; }
.homeFarmMode strong { color: var(--lime-200); font-size: .85rem; }
.homeFarmMode small { color: var(--paper-dim); font-size: .7rem; }
.homeFarmMode:hover { border-color: var(--lime-300); }
.homeGuides .contentCard .btn { align-self: flex-start; margin-top: auto; }
.heroCopy { min-width: 0; }
/* Share one scene behind the server picker and its floating navigation. */
.illustratedSite .frame:has(.serverPicker)
{
	background:
		linear-gradient(90deg, var(--night-950), #07100c9c),
		url('../img/world/hero-route.webp') center top / cover no-repeat;
}
.serverPicker { min-height: 65vh; padding-top: clamp(3rem, 8vw, 7rem); }
.serverPickerIntro h1 { font-size: clamp(3rem, 6vw, 6rem); }
.serverCardAction { color: var(--night-950); border-radius: 12px; }

/* Keep the main project's desktop banner and consent behavior. */
.siteAdRail { position: absolute; inset: 0 auto 0 0; z-index: 101; width: var(--ad-rail-width); padding: 16px 11px calc(16px + var(--ad-rail-footer-height, 0px)); border-right: 1px solid var(--line); color: var(--text-muted); background: var(--night-950); }
.siteAdContent { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.siteAdLabel { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.siteAdSlot { position: relative; flex: none; width: 160px; height: max(0px, min(600px, calc(100dvh - 170px))); background: var(--surface-raised); outline: 1px dashed var(--line-strong); }
.siteAdSlot::before { content: 'Espace publicitaire'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; writing-mode: vertical-rl; }
.siteAdSlot .retroRailAd { position: relative; }
.siteAdSlot:has(.retroRailAd iframe)::before { content: none; }
.siteAdNote { max-width: 140px; color: var(--text-muted); font-size: 10px; line-height: 1.6; text-align: center; }
.retroRailAd { display: none; width: 160px; height: 600px; }

/* Retain the full-screen map and its current controls. */
.page-carte .siteHeader { top: 0; width: 100%; max-width: none; margin: 0; border-radius: 0; border-width: 0 0 1px; background: var(--night-950); }
.mapToolbar { border-bottom-width: 1px; background: var(--night-850); box-shadow: none; }
.mapToolbarTitle h1 { line-height: 1.2; }
.mapToolbar .mapModeLink, .mapStatFilter, .mapRankFilterState, .mapGuideToggle { border-radius: 12px; box-shadow: none; }
.carteStage .mapModeLink.isActive { color: var(--night-950); box-shadow: none; }
.carteStage .mapModeLink.isActive:hover { color: var(--night-950); }
/* Give transparent white artwork a dark backing on the selected lime button. */
.carteStage .mapModeLink.isActive .mapSpellIcon
{
	background: var(--night-950);
	box-shadow: 0 0 0 1px var(--night-950);
}
.mapStatFilter select { color-scheme: dark; }
.mapStatFilter select option { background: var(--night-850); }
.mapRankFilter input:checked ~ .mapRankFilterState::after { color: var(--night-950); }
.carteStage .mapContextPanel { border-left-width: 1px; }
.carteStage .mapModeError { color: #ffd8c8; border-color: #ab6146; background: #44251c; }

/* Native guide forms and equipment cards use the same dark surfaces. */
.stuffsSelects select, .ocreSearch input, .ocreStepSelect select { background: var(--surface-inset); }
.stuffsThemes input:checked + span { color: var(--night-950); }
.ocreHero h1 em { color: var(--gold-300); }
.ocreReward { border-color: #ffc94f55; background: #ffc94f12; }
.ocreReward strong { color: var(--gold-200); }
.ocreReward span, .ocreReward small { color: var(--gold-300); }
.ocreStep > summary { background: var(--surface-muted); }
.ocreStep > summary:hover { background: var(--night-700); }
.ocreStep.isComplete > summary { background: var(--night-700); }
.ocreStep.isComplete .ocreStepNumber, .ocreMonster.isCaptured .ocreMonsterCopy > strong { color: var(--lime-300); }

@media (min-width: 761px) and (min-height: 770px) and (hover: hover) and (pointer: fine)
{
	.retroRailAd { display: block; }
	.siteAdContent { position: sticky; top: 16px; }
}
@media (max-width: 1700px)
{
}
@media (max-width: 1450px)
{
	.siteHeader { flex-wrap: wrap; gap: .5rem 1rem; }
	.siteNav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
	.siteNav::-webkit-scrollbar { display: none; }
	.headerActions { margin-left: auto; }
}
@media (max-width: 760px)
{
	.illustratedSite { --ad-rail-width: 0px; }
	.retroSite .frame { width: 100%; margin-left: 0; }
	.siteAdRail { display: none; }
	.retroSite .headerPrivacyLink, .retroSite .footerPrivacyLink { display: inline-flex; }
	.page-carte .headerActions > .btn { display: none; }
	.homeFarmModes { gap: 8px; }
	.homeFarmMode { padding: 9px; }
	.heroCopy h1 { font-size: clamp(2.6rem, 11vw, 4rem); }
}
