@font-face {
  font-family: "Changa One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("./fonts/changa-one-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("./fonts/nunito-latin.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --ink: #163e35;
  --muted: #526b64;
  --panel: #ffffff;
  --panel-2: #f0f6ef;
  --line: #d9e5de;
  --lime: #237a48;
  --amber: #a05a07;
  --red: #b83c3c;
  --bg: #e8f5fc;
  --sky: #d7edfa;
  --grass: #d9efbc;
  --gold: #ffca62;
  --radius: 16px;
  --shadow: 0 10px 28px rgb(33 76 62 / .07);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  scrollbar-color: #92b7a2 var(--bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button, summary { touch-action: manipulation; }
a { color: inherit; text-underline-offset: 3px; }
[hidden] { display: none !important; }
::selection { color: #163e35; background: #ffdc8a; }
:focus-visible { outline: 3px solid #297bb3; outline-offset: 4px; }
input { caret-color: var(--lime); }
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 2000; padding: 12px 20px; background: var(--panel); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.masthead { height: 76px; padding: 0 max(32px, calc((100vw - 1200px) / 2)); display: flex; align-items: center; gap: 28px; background: #fff; border-bottom: 1px solid #dcebf0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-copy { display: block; }
.brand-name { display: block; font: 400 2rem/1 "Changa One", sans-serif; color: #1e6042; letter-spacing: -.02em; white-space: nowrap; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; font-weight: 800; }
.brand-mark { width: 52px; height: 52px; object-fit: contain; }
.header-start { margin-inline-start: auto; display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: .88rem; font-weight: 800; }
.header-start:hover { color: var(--lime); }
.header-start .icon { width: 18px; height: 18px; }
.language-picker { display: flex; align-items: center; gap: 10px; }
.language-picker label { color: var(--muted); font-size: .8rem; }
.language-select { min-height: 42px; max-width: 155px; padding: 8px 12px; color: var(--ink); background: #f4f8f5; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; font-weight: 700; }
.header-meta { display: flex; align-items: center; }
.engine-state { display: flex; align-items: center; gap: 8px; }
.engine-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.engine-state.error i { background: var(--red); }
main { width: min(1200px, calc(100% - 64px)); margin: 0 auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { text-wrap: balance; }
h2, h3, button, summary { overflow-wrap: anywhere; }
h2 { font: 400 2rem/1.15 "Changa One", "Nunito", sans-serif; letter-spacing: -.015em; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; align-items: center; min-height: 250px; padding: 18px 22px 16px; }
h1 { margin: 0; font: 400 clamp(3.5rem, 5.3vw, 5rem)/.98 "Changa One", "Nunito", sans-serif; letter-spacing: -.025em; color: #164c37; }
h1 em { color: #287e45; font-style: normal; }
.lede { margin: 14px 0; max-width: 360px; color: #3d625d; font-size: 1.1rem; font-weight: 650; line-height: 1.55; }
.hero-editions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #426359; font-size: .75rem; font-weight: 800; }
.hero-editions .icon { width: 19px; height: 19px; color: #29734c; }
.edition-divider { width: 3px; height: 3px; border-radius: 50%; background: #729085; }
.hero-world { position: relative; margin: -24px -15px -15px; min-width: 0; }
.hero-world img { display: block; width: 100%; height: auto; max-height: 250px; object-fit: contain; animation: island-arrive 1.2s var(--ease-out) both; }
.hero-world figcaption { position: absolute; bottom: 0; right: 16px; color: #526b64; font-size: .75rem; }
@keyframes island-arrive { from { transform: translateY(14px) rotate(-2deg) scale(.96); filter: saturate(.8); } to { transform: translateY(0) rotate(0) scale(1); filter: saturate(1); } }
.adventure-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 20px; padding: 0 8px; border-radius: 12px; background: #d8eafa; }
.adventure-step { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px 20px; text-decoration: none; color: #456581; font-size: .94rem; font-weight: 800; }
.step-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; color: #476f8a; background: #edf6fd; }
.step-icon .icon { width: 20px; height: 20px; }
.step-arrow { margin-inline-start: auto; width: 17px; height: 17px; color: #7897ae; }
.adventure-step:hover { color: #163e35; }
.adventure-step.is-current { color: #185333; }
.is-current .step-icon, .is-complete .step-icon { background: #c2dfa9; color: #245b31; }
.selector-shell { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(340px, .85fr); background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); }
.map-column { min-width: 0; padding: 26px; }
.map-heading, .section-heading, .label-row, .progress-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.map-heading h2, .section-heading h2 { margin: 0; }
.map-heading output { flex-shrink: 0; padding: 7px 10px; color: #32603e; background: #edf5e6; border-radius: 6px; font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
#map { height: 414px; margin-top: 20px; background: #dcebd5; border-radius: 12px; isolation: isolate; }
.leaflet-container { font-family: "Nunito", system-ui, sans-serif; }
.leaflet-control-attribution { background: rgb(255 255 255 / .93) !important; color: #405b51; font-size: 11px !important; }
.leaflet-control-attribution a { color: #205e3e; }
.leaflet-control-zoom { border: 0 !important; box-shadow: 0 3px 9px rgb(21 63 47 / .18) !important; border-radius: 8px !important; overflow: hidden; }
.leaflet-control-zoom a { background: white !important; color: var(--ink) !important; border-color: var(--line) !important; width: 36px !important; height: 36px !important; line-height: 36px !important; }
.selection-rectangle { filter: drop-shadow(0 2px 3px rgb(115 77 12 / .2)); }
.map-help { display: flex; align-items: center; justify-content: center; gap: 7px; padding-top: 14px; color: var(--muted); font-size: .75rem; }
.map-help .icon { width: 16px; height: 16px; }
.controls { min-width: 0; margin: 12px 12px 12px 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: #f4f8f1; border-radius: 12px; }
.location-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 16px; background: #e4ecdf; border-radius: 8px; }
.location-tabs button { min-height: 38px; padding: 7px 10px; color: #53684f; border: 0; border-radius: 6px; background: transparent; font-size: .84rem; font-weight: 800; cursor: pointer; }
.location-tabs button.active { color: #225933; background: white; box-shadow: 0 2px 4px rgb(24 62 36 / .06); }
.control-block label, .label-row label { display: block; margin-bottom: 8px; font-size: .88rem; font-weight: 850; }
.label-row label { margin: 0; }
.label-row output { color: #285b38; font-size: .8rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.input-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
input[type="text"] { width: 100%; min-width: 0; padding: 12px; color: var(--ink); background: white; border: 1px solid #abbfaf; border-radius: 8px 0 0 8px; outline-offset: 2px; font-size: .84rem; }
input[type="text"]::placeholder { color: #63786d; opacity: 1; }
.input-action button { padding: 0 14px; color: white; border: 0; border-radius: 0 8px 8px 0; background: #2b7046; font-size: .8rem; font-weight: 800; cursor: pointer; }
.input-action button:hover { background: #1a5433; }
.location-panel > p, .control-block > p { margin: 8px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.location-panel .field-status:empty, .location-panel .field-error:empty { display: none; }
.location-panel .field-status { color: #704c15; overflow-wrap: anywhere; }
.location-panel .field-success { color: #226239; }
.location-panel .field-error, .control-block .field-error { color: var(--red); }
.location-panel .place-attribution { font-size: .75rem; }
.place-autocomplete { position: relative; }
.place-suggestions { position: absolute; top: 100%; inset-inline: 0; z-index: 1100; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; margin: 5px 0 0; padding: 4px; list-style: none; background: white; border-radius: 8px; box-shadow: 0 7px 24px rgb(35 35 35 / .16); }
.place-suggestions [role="option"] { padding: 12px; cursor: pointer; overflow-wrap: anywhere; border-radius: 5px; }
.place-suggestions [role="option"]:hover, .place-suggestions [aria-selected="true"] { background: #e7f2df; }
.place-suggestion-name { display: block; font-size: .84rem; font-weight: 800; }
.place-suggestion-detail { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; }
.destination-shortcuts > p { margin: 0 0 8px; font-size: .75rem; color: var(--muted); font-weight: 750; }
.destination-list { display: grid; grid-template-columns: .85fr 1.2fr 1fr; gap: 6px; }
.destination { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 46px; padding: 8px 3px; border: 1px solid #d6e2cf; border-radius: 8px; color: #355b43; background: #fff; font-size: .75rem; font-weight: 800; cursor: pointer; }
.destination:nth-child(1) .icon { color: #946632; }
.destination:nth-child(2) .icon { color: #a35239; }
.destination:nth-child(3) .icon { color: #337785; }
.destination:hover, .destination[aria-pressed="true"] { border-color: #418354; background: #e5f0d9; }
.size-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.size-presets button { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 6px; border: 1px solid #d6e2cf; border-radius: 7px; background: white; color: #4f6854; font-size: .75rem; font-weight: 800; cursor: pointer; }
.size-presets button[aria-pressed="true"] { color: #205a32; border-color: #6b9c4c; background: #e1efd3; }
.size-presets .icon { width: 20px; height: 20px; }
.size-presets .cube-small { width: 13px; height: 13px; }
.size-presets .cube-medium { width: 16px; height: 16px; }
input[type="range"] { --range-fill: 7%; display: block; appearance: none; width: 100%; min-height: 30px; margin: 7px 0 0; cursor: pointer; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, #41834d var(--range-fill), #dce7d5 var(--range-fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: #dce7d5; }
input[type="range"]::-moz-range-progress { height: 6px; background: #41834d; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -7px; border: 3px solid white; border-radius: 50%; background: #327d45; box-shadow: 0 1px 5px rgb(20 65 35 / .25); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid white; border-radius: 50%; background: #327d45; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.selection-details > summary, .generation-details > summary, footer summary { min-height: 36px; padding-block: 8px; color: var(--muted); font-size: .75rem; cursor: pointer; }
.selection-details .coordinates { margin-top: 8px; }
.coordinates { margin: 0; border-block: 1px solid var(--line); }
.coordinates div { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.coordinates div:last-child { border: 0; }
.coordinates dt { color: var(--muted); font-size: .75rem; }
.coordinates dd { margin: 0; font-size: .75rem; text-align: end; overflow-wrap: anywhere; }
.primary { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 13px 16px; border: 0; border-radius: 9px; background: #287b42; color: white; font-size: .99rem; font-weight: 900; cursor: pointer; transition: background .15s; }
.primary > .icon:first-child { width: 20px; height: 20px; }
.primary > .icon:last-child { margin-inline-start: auto; width: 20px; height: 20px; }
.primary:hover:not(:disabled) { background: #1b6032; }
.primary:active:not(:disabled) { background: #134c29; }
.primary:disabled { background: #d8e4d3; color: #5c7158; cursor: not-allowed; }
.runtime { margin: -10px 0 0; color: var(--muted); text-align: center; font-size: .75rem; overflow-wrap: anywhere; }
.data-note { color: var(--muted); font-size: .75rem; }
.workbench { margin: 24px 0 40px; padding: 28px; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.progress-panel { position: relative; margin-top: 20px; padding: 22px 24px 16px 106px; background: #f1f7ec; border-radius: 12px; }
.build-companion { position: absolute; left: 20px; top: 20px; }
.build-companion img { display: block; object-fit: contain; }
.progress-meta { font-size: .86rem; font-weight: 700; }
.progress-meta strong { color: #25683b; font-size: .95rem; font-variant-numeric: tabular-nums; }
.progress-track { height: 8px; margin: 12px 0 2px; background: #dbe8d0; border-radius: 4px; overflow: hidden; }
.progress-track i { display: block; width: 0; height: 100%; background: #4a9449; transition: width .25s; }
#log { margin: 12px 0 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; font: .75rem/1.6 ui-monospace, monospace; }
.is-ready .progress-panel { background: #e5f2db; }
.text-button { border: 0; background: none; color: var(--muted); font-size: .75rem; text-decoration: underline; cursor: pointer; }
.eyebrow { display: none; }
#location-input, #centre-coordinates, #selection-summary, #size-output { direction: ltr; unicode-bidi: isolate; }
#log { direction: ltr; text-align: start; unicode-bidi: isolate; }
.leaflet-container, .world-3d-viewport { direction: ltr; }
html[dir="rtl"] h1 { line-height: 1.2; letter-spacing: normal; }
html[dir="rtl"] .controls { margin: 12px 0 12px 12px; }
html[dir="rtl"] .input-action input { border-radius: 0 8px 8px 0; }
html[dir="rtl"] .input-action button { border-radius: 8px 0 0 8px; }
html[dir="rtl"] .build-companion { left: auto; right: 20px; }
html[dir="rtl"] .progress-panel { padding: 22px 106px 16px 24px; }

/* Generated-world previews and detailed evidence tools. */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 28px; border: 1px solid var(--line); }
.pipeline article { position: relative; min-height: 142px; padding: 18px; border-right: 1px solid var(--line); transition: background .2s; }
.pipeline article:last-child { border: 0; }
.pipeline article > span { color: #526b64; font: 700 .75rem/1 ui-monospace, monospace; }
.pipeline h3 { margin: 24px 0 7px; font-size: .9rem; }
.pipeline p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.pipeline article.active { background: rgba(255, 179, 71, .08);  }
.pipeline article.done { background: rgba(201, 240, 107, .055);  }
.facade-showcase { position: relative; min-height: 250px; display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); margin-top: 18px; overflow: hidden; border: 1px solid #c8d9c1; background: radial-gradient(circle at 20% 20%, rgba(201, 240, 107, .12), transparent 38%), #f3f7ed; }
.facade-showcase[hidden] { display: none; }
.showcase-image-shell { position: relative; min-height: 250px; overflow: hidden; background: #f0f5ec; }
.showcase-image-shell::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, #f3f7ed 100%); pointer-events: none; }
#showcase-image { width: 100%; height: 100%; min-height: 250px; object-fit: cover; opacity: .92; transform: scale(1.04); transition: opacity .32s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.facade-showcase.rectified #showcase-image { object-fit: contain; image-rendering: pixelated; transform: none; }
.facade-showcase.switching #showcase-image { opacity: 0; transform: scale(1.1) translateX(-2%); }
.showcase-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 5vw, 56px); }
.showcase-copy > span { color: var(--lime); font: 800 .75rem/1 ui-monospace, monospace; letter-spacing: .14em; }
.showcase-copy h3 { max-width: 620px; margin: 14px 0 10px; font-size: clamp(1.6rem, 4vw, 3.2rem); line-height: .98; letter-spacing: -.025em; }
.showcase-copy p { max-width: 560px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.showcase-progress { height: 5px; margin-top: 28px; overflow: hidden; background: #d5e2cc; }
.showcase-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--amber), var(--lime)); transition: width .45s ease; }
#showcase-count { margin-top: 10px; color: var(--amber); font: 800 .75rem/1 ui-monospace, monospace; }

.progress-meta { font-size: .95rem; line-height: 1.45; }




.evidence-review { margin-top: 18px; padding: 24px; border: 1px solid #c8d9c1; background: #f5f8f2; }
.review-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.review-heading h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -.04em; }
.review-heading output { color: var(--amber); font: 800 .75rem/1 ui-monospace, monospace; white-space: nowrap; }
.review-intro { max-width: 850px; margin: 12px 0 22px; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.review-layout { min-height: 450px; display: grid; grid-template-columns: minmax(230px, .55fr) minmax(0, 1.45fr); border: 1px solid var(--line); }
.review-list { max-height: 610px; overflow: auto; border-right: 1px solid var(--line); background: #f3f7ef; }
.review-card { width: 100%; display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 12px; color: var(--ink); text-align: left; border: 0; border-bottom: 1px solid #d9e5de; background: transparent; cursor: pointer; }
.review-card:hover, .review-card.active { background: var(--panel-2); }
.review-card.active { outline: 2px solid var(--amber); outline-offset: -2px; }
.review-card img, .review-card .review-thumb-placeholder { width: 58px; height: 58px; object-fit: cover; background: #e5eee0; }
.review-card .review-thumb-placeholder { display: grid; place-items: center; color: #526b64; font: 800 .75rem/1 ui-monospace, monospace; }
.review-card b, .review-card small, .review-card span { display: block; min-width: 0; }
.review-card b { overflow: hidden; color: #163e35; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.review-card span { margin-top: 6px; color: var(--muted); font: .75rem/1.25 ui-monospace, monospace; }
.review-card small { margin-top: 6px; color: var(--amber); font: 800 .75rem/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.review-card[data-decision="accepted"] small { color: var(--lime); }
.review-card[data-decision="rejected"] { opacity: .58; }
.review-card[data-decision="rejected"] small { color: var(--red); }
.review-detail { min-width: 0; padding: 20px; background: var(--panel); }
.review-empty { height: 100%; min-height: 360px; display: grid; place-items: center; color: var(--muted); text-align: center; }
#review-content { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(260px, .9fr); gap: 22px; }
.review-image-shell { position: relative; min-height: 390px; display: grid; place-items: center; overflow: hidden; background: #eaf1e6; border: 1px solid #d2dfcb; }
.review-image-shell img { width: 100%; max-height: 570px; object-fit: contain; }
.review-image-shell span { position: absolute; color: var(--muted); font: .75rem/1 ui-monospace, monospace; }
.review-image-shell img:not([hidden]) + span { display: none; }
.review-meta > div:first-child span { display: block; color: var(--lime); font: 800 .75rem/1 ui-monospace, monospace; letter-spacing: .1em; }
.review-meta > div:first-child strong { display: block; margin-top: 8px; font-size: 1.25rem; line-height: 1.25; }
.review-meta > p { margin: 12px 0 18px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.review-meta dl { margin: 0 0 20px; border-block: 1px solid var(--line); }
.review-meta dl div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.review-meta dl div:last-child { border: 0; }
.review-meta dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.review-meta dd { margin: 0; font: 700 .75rem/1.35 ui-monospace, monospace; text-align: right; overflow-wrap: anywhere; }
.review-meta > label { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
#review-building { width: 100%; padding: 11px; color: var(--ink); background: #f5f8f2; border: 1px solid var(--line); }
.review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.review-actions button, .review-actions a { min-height: 42px; display: grid; place-items: center; padding: 8px 12px; font-size: .75rem; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.review-accept { color: #163e35; border: 1px solid var(--lime); background: var(--lime); }
.review-reject { color: var(--red); border: 1px solid #6a3c34; background: transparent; }
.review-prepare { grid-column: 1 / -1; color: var(--amber); border: 1px solid #71552d; background: transparent; }
.review-actions a { grid-column: 1 / -1; color: var(--muted); border: 1px solid var(--line); }
.review-actions button:disabled { opacity: .35; cursor: not-allowed; }
.review-decision-state { min-height: 1.2em; color: var(--lime) !important; }
.facade-rectifier { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); }
.rectifier-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rectifier-heading span { color: var(--lime); font: 800 .75rem/1 ui-monospace, monospace; letter-spacing: .1em; }
.rectifier-heading h3 { margin: 7px 0 0; font-size: 1.15rem; }
.rectifier-actions { display: flex; align-items: end; gap: 10px; }
.rectifier-actions label { display: grid; gap: 5px; color: var(--muted); font: 700 .75rem/1 ui-monospace, monospace; text-transform: uppercase; }
.rectifier-actions select { min-width: 92px; padding: 8px; color: var(--ink); border: 1px solid var(--line); background: var(--panel); }
.rectifier-heading button { padding: 10px 14px; color: #163e35; border: 0; background: var(--amber); font-size: .75rem; font-weight: 900; cursor: pointer; }
.facade-rectifier > p { margin: 11px 0 17px; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.rectifier-canvases { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(150px, .35fr) minmax(150px, .35fr); gap: 14px; }
.rectifier-canvases > div { min-width: 0; padding: 10px; background: #eaf1e6; border: 1px solid #d2dfcb; }
.rectifier-canvases canvas { width: 100%; height: auto; display: block; background: #171b16; }
#facade-editor { cursor: crosshair; touch-action: none; }
#facade-preview, #facade-mask { image-rendering: pixelated; }
.rectifier-canvases span { display: block; margin-top: 8px; color: var(--muted); font: 700 .75rem/1 ui-monospace, monospace; letter-spacing: .07em; }
#rectify-status { display: block; margin-top: 12px; color: var(--amber); font: .75rem/1.4 ui-monospace, monospace; }
.facade-palette { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.facade-palette span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; color: var(--muted); border: 1px solid var(--line); font: .75rem/1 ui-monospace, monospace; }
.facade-palette i { width: 13px; height: 13px; display: block; border: 1px solid rgba(255, 255, 255, .28); }
.local-evidence { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(180px, .7fr) auto auto; align-items: center; gap: 18px; margin-top: 18px; padding: 17px; border: 1px solid var(--line); background: var(--panel-2); }
.local-evidence strong { font-size: .84rem; }
.local-evidence p { margin: 5px 0 0; color: var(--muted); font-size: .75rem; }
.rights-confirmation { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; }
.rights-confirmation input { accent-color: var(--lime); }
.local-building-label { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; }
#local-building { width: 100%; display: block; margin-top: 6px; padding: 8px; color: var(--ink); background: #f5f8f2; border: 1px solid var(--line); }
.local-file-button { padding: 10px 13px; border: 1px solid var(--line); font-size: .75rem; font-weight: 800; cursor: pointer; }
.local-file-button:hover { color: var(--lime); border-color: var(--lime); }
#local-evidence-file { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
#local-evidence-status { grid-column: 1 / -1; color: var(--muted); font: .75rem/1.4 ui-monospace, monospace; }
.result-summary { margin-top: 18px; padding: 22px; border: 1px solid #c8d9c1; background: linear-gradient(135deg, rgba(201, 240, 107, .07), transparent 52%), #f5f8f2; }
.result-summary-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.result-summary-heading .eyebrow { margin-bottom: 7px; }
.result-summary-heading h3 { margin: 0; max-width: 780px; font-size: clamp(1rem, 2vw, 1.45rem); line-height: 1.2; }
#summary-status { flex: none; padding: 7px 9px; color: var(--lime); border: 1px solid #50613e; font: 800 .75rem/1 ui-monospace, monospace; letter-spacing: .1em; }
.summary-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); }
.summary-grid div { min-width: 0; padding: 15px; background: var(--panel); }
.summary-grid span { display: block; color: var(--muted); font: 700 .75rem/1.2 ui-monospace, monospace; letter-spacing: .08em; }
.summary-grid strong { display: block; margin-top: 8px; font-size: 1.35rem; }
.world-3d-launch { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 18px; padding: 26px; border: 1px solid #657945; background: linear-gradient(120deg, #202b19, #11170f); }
.world-3d-launch h3 { margin: 0 0 10px; font-size: 1.4rem; }
.world-3d-launch p:last-child { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.world-3d-launch .primary { width: auto; min-width: 220px; margin: 0; gap: 20px; }
.world-3d-dialog { width: min(1400px, 96vw); max-width: 96vw; max-height: 96dvh; padding: 20px; border: 1px solid #657945; background: var(--bg); color: var(--ink); overflow: auto; }
.world-3d-dialog::backdrop { background: rgb(0 0 0 / .8);  }
.world-3d-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.world-3d-heading .eyebrow { margin-bottom: 6px; }
.world-3d-heading h2 { margin: 0; font-size: clamp(1rem, 3vw, 1.6rem); }
.world-3d-dialog button { padding: 10px 16px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; }
.world-3d-dialog button:hover:not(:disabled), .world-3d-dialog button[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); }
.world-3d-dialog button:disabled { opacity: .45; cursor: default; }
.world-3d-dialog button:focus-visible, #world-3d-canvas:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.world-3d-viewport { position: relative; height: min(66dvh, 800px); min-height: 240px; background: #a3c4d4; overflow: hidden; }
#world-3d-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#world-3d-canvas:active { cursor: grabbing; }
#world-3d-status { position: absolute; bottom: 12px; left: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); margin: 0; padding: 10px 14px; background: rgb(14 17 13 / .9); color: var(--ink); font: 600 .75rem/1.5 ui-monospace, monospace; pointer-events: none; }
.world-3d-viewport.preview-error #world-3d-status { color: var(--red); }
.world-3d-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
#world-3d-help { margin: 12px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
body:has(.world-3d-dialog[open]) { overflow: hidden; }
@media (max-width: 650px) {
  .world-3d-launch { align-items: stretch; flex-direction: column; padding: 20px; gap: 18px; }
  .world-3d-launch .primary { width: 100%; min-width: 0; }
  .world-3d-dialog { padding: 12px; }
  .world-3d-dialog button { padding: 10px 12px; }
  .world-3d-viewport { height: 55dvh; }
}
.world-preview { margin-top: 18px; padding: 22px; border: 1px solid #c8d9c1; background: #f3f7ef; }
.world-preview-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.world-preview-heading h3 { margin: 6px 0 0; font-size: 1.15rem; }
#world-preview-range { color: var(--lime); font: 800 .75rem/1 ui-monospace, monospace; }
.world-preview > p { margin: 12px 0 18px; color: var(--muted); font-size: .75rem; }
.world-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.world-preview figure { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); background: #f0f5ec; }
.world-preview canvas { display: block; width: 100%; height: 340px; object-fit: contain; image-rendering: pixelated; background: linear-gradient(#a9c9d8, #dce6df 70%, #6d7a59 70%); }
.world-preview-plan { grid-column: 1 / -1; }
.world-preview-plan canvas { height: auto; aspect-ratio: 1; background: #6d7a59; }
.world-preview figcaption { margin-top: 9px; color: var(--muted); font: 700 .75rem/1.2 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.report-details { margin-top: 12px; border: 1px solid var(--line); background: #f5f8f2; }
.report-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; cursor: pointer; list-style: none; }
.report-details > summary::-webkit-details-marker { display: none; }
.report-details > summary::after { content: '+'; color: var(--amber); font: 900 1rem/1 ui-monospace, monospace; }
.report-details[open] > summary::after { content: '−'; }
.report-details > summary span { font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.report-details > summary small { margin-left: auto; color: var(--muted); font-size: .75rem; font-weight: 500; }
.coverage { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.coverage div { padding: 17px; border-right: 1px solid var(--line); }
.coverage div:last-child { border: 0; }
.coverage span { display: block; color: var(--muted); font: 700 .75rem/1.2 ui-monospace, monospace; letter-spacing: .08em; }
.coverage strong { display: block; margin-top: 9px; font-size: 1.5rem; }
.artifacts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.artifacts article { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px; border: 1px solid var(--line); background: var(--panel-2); }
.artifacts h3 { margin: 7px 0 3px; font-size: 1.1rem; }
.artifacts p { margin: 0; color: var(--muted); font-size: .75rem; }
.edition { font: 900 .75rem/1 ui-monospace, monospace; letter-spacing: .12em; }
.edition.java { color: var(--lime); }
.edition.bedrock { color: var(--amber); }
.download { padding: 11px 13px; border: 1px solid #abc3a0; background: transparent; font-size: .75rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.download:disabled { opacity: .35; cursor: not-allowed; }
.download:not(:disabled):hover { border-color: var(--lime); color: var(--lime); }
.download span { display: block; margin-top: 4px; color: var(--muted); font: .75rem/1 ui-monospace, monospace; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 32px 0 80px; border: 1px solid var(--line); }
.facts div { padding: 22px; border-right: 1px solid var(--line); }
.facts div:last-child { border: 0; }
.facts span { display: block; color: var(--muted); font: 700 .75rem/1.2 ui-monospace, monospace; letter-spacing: .1em; }
.facts strong { display: block; margin-top: 9px; font-size: .88rem; }

/* Shared results and supporting tools follow the same daylight palette. */
.facade-showcase, .evidence-review, .world-preview, .report-details { border-radius: 12px; border-color: var(--line); }
.review-accept { color: white; }
.artifacts article { background: #f3f7f0; border: 0; border-radius: 12px; padding: 22px; }
.artifacts h3 { margin: 8px 0 5px; font-size: 1.15rem; font-weight: 900; }
.artifacts p { font-size: .8rem; line-height: 1.5; max-width: 30ch; }
.artifacts .download { min-height: 44px; padding: 10px 15px; border: 0; border-radius: 8px; background: #287b42; color: white; font-size: .8rem; }
.artifacts .download:not(:disabled):hover { background: #1b6032; color: white; }
.artifacts .download:disabled { opacity: 1; background: #e0e9da; color: #63755b; }
.download span { color: inherit; }
.download-heading { margin: 28px 0 0; }
.download-heading h2 { margin: 0 0 7px; font-size: 1.6rem; }
.download-heading > p:last-child { margin-bottom: 0; color: var(--muted); font-size: .85rem; }
.artifacts > article { flex-wrap: wrap; gap: 18px; }
.report-details { margin-top: 24px; }
.report-details > summary { min-height: 48px; font-size: .84rem; font-weight: 800; }
.report-details > .text-button { min-height: 44px; margin-inline: 16px; }
.pipeline { margin: 12px 16px 20px; }
.world-3d-launch { color: #1e5632; background: #e6f2d9; border: 0; border-radius: 12px; }
.world-3d-dialog { border: 0; border-radius: 16px; background: white; color: var(--ink); }
.world-3d-dialog::backdrop { background: rgb(21 49 37 / .65); }
.world-3d-dialog button { min-height: 44px; border: 1px solid #cbdcc7; border-radius: 8px; background: #f2f7ef; color: var(--ink); font-size: .85rem; }
#world-3d-status { color: #eaf4e9; }
.world-3d-viewport.preview-error #world-3d-status { color: #ffbfb3; }
footer { min-height: 100px; padding: 20px max(32px, calc((100vw - 1200px) / 2)); display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; border-top: 1px solid #cddfe7; color: #4f6a64; font-size: .75rem; line-height: 1.65; }
footer p { margin-bottom: 12px; max-width: 85ch; }
footer details { max-width: 850px; text-align: end; }
footer summary { min-height: 44px; font-size: .8rem; }
footer a:hover { color: #23613c; }
.footer-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 400 1.45rem/1 "Changa One", sans-serif; color: #2b6247; }
footer .footer-brand img { object-fit: contain; }
@media (max-width: 1100px) {
  .hero { padding-inline: 0; }
  .selector-shell { grid-template-columns: minmax(0, 1.25fr) minmax(330px, .85fr); }
  .map-heading { flex-wrap: wrap; gap: 10px; }
  .map-heading h2 { font-size: 1.75rem; }
  .map-column { padding: 22px; }
  .adventure-step { padding: 14px 12px; font-size: .83rem; gap: 9px; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .facade-showcase, #review-content, .local-evidence { grid-template-columns: 1fr; }
  .summary-grid, .coverage { grid-template-columns: repeat(3, 1fr); }
  .rectifier-canvases { grid-template-columns: 1fr; }
  #local-evidence-status { grid-column: auto; }
  .artifacts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 20px; }
  .masthead { height: 74px; padding-inline: 22px; gap: 12px; }
  .header-start { display: none; }
  .language-picker { margin-inline-start: auto; }
  .language-picker label { display: none; }
  main { width: calc(100% - 36px); }
  .hero { min-height: 280px; padding: 28px 5px; gap: 0; }
  h1 { font-size: clamp(2.4rem, 7vw, 3.4rem); }
  .lede { margin: 14px 0; font-size: .9rem; }
  .hero-world { margin: -15px -15px -15px -10px; }
  .hero-world img { max-height: 260px; }
  .hero-editions { gap: 5px; font-size: .75rem; }
  .hero-editions .icon { display: none; }
  .adventure-steps { padding: 5px; gap: 5px; }
  .adventure-step { flex-direction: column; gap: 7px; padding: 10px 4px; text-align: center; font-size: .75rem; line-height: 1.3; }
  .step-arrow { display: none; }
  .selector-shell { display: flex; flex-direction: column; }
  .controls { order: -1; margin: 12px 12px 0; padding: 20px; gap: 18px; }
  html[dir="rtl"] .controls { margin: 12px 12px 0; }
  .destination-list { grid-template-columns: repeat(3, 1fr); }
  .destination { flex-direction: row; min-height: 46px; gap: 7px; font-size: .75rem; }
  .destination .icon { width: 20px; height: 20px; }
  .size-presets { gap: 8px; }
  .selection-details { margin-top: -4px; }
  .map-column { padding: 24px 20px 20px; }
  .map-heading { flex-wrap: nowrap; }
  .map-heading h2 { font-size: 1.65rem; }
  #map { height: 330px; margin-top: 15px; }
  .map-help { align-items: flex-start; font-size: .75rem; }
  .workbench { padding: 22px; }
  .section-heading h2 { font-size: 1.75rem; }
  .progress-panel { padding: 18px; }
  html[dir="rtl"] .progress-panel { padding: 18px; }
  .build-companion { position: static; margin: 0 0 12px; }
  .build-companion img { width: 54px; height: 54px; }
  .progress-meta { align-items: flex-start; font-size: .8rem; }
  .review-heading, .result-summary-heading { align-items: flex-start; flex-direction: column; }
  .review-layout, .world-preview-grid { grid-template-columns: 1fr; }
  .review-list { max-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .review-image-shell { min-height: 280px; }
  .world-preview-heading, .rectifier-heading { flex-wrap: wrap; }
  .rectifier-actions { flex-wrap: wrap; }
  .world-3d-launch { align-items: stretch; flex-direction: column; }
  .world-3d-launch .primary { width: 100%; min-width: 0; }
  .summary-grid, .coverage { grid-template-columns: repeat(2, 1fr); }
  footer { padding: 20px 24px; }
}
@media (max-width: 440px) {
  .masthead { height: 70px; padding-inline: 16px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand { gap: 7px; }
  .brand-name { font-size: clamp(.95rem, 4.6vw, 1.4rem); }
  .brand small { display: none; }
  .language-select { width: 105px; padding: 8px; font-size: .75rem; }
  main { width: calc(100% - 24px); }
  .hero { position: relative; display: block; min-height: 365px; padding: 30px 10px 0; }
  .hero-copy { position: relative; z-index: 1; }
  h1 { font-size: clamp(2.65rem, 11.5vw, 3.2rem); max-width: 100%; }
  .lede { font-size: .85rem; max-width: 200px; margin: 12px 0 10px; }
  .hero-editions { max-width: 170px; gap: 5px; font-size: .75rem; }
  .hero-world { position: relative; width: 255px; margin: -30px -5px -4px auto; }
  .hero-world img { height: 170px; object-fit: contain; }
  .hero-world figcaption { right: 3px; bottom: -1px; font-size: .75rem; }
  .adventure-steps { margin-bottom: 14px; }
  .adventure-step { font-size: .75rem; }
  .controls { padding: 16px; gap: 16px; }
  .map-column { padding: 22px 16px 18px; }
  .map-heading { flex-wrap: wrap; }
  .map-heading h2 { font-size: 1.5rem; }
  .map-heading output { padding: 5px 7px; font-size: .75rem; }
  #map { height: 290px; }
  .destination { gap: 5px; font-size: .75rem; }
  .destination .icon { width: 18px; height: 18px; }
  .workbench { margin-top: 16px; padding: 20px 16px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline article { border-right: 0; border-bottom: 1px solid var(--line); }
  .artifacts article { align-items: flex-start; flex-direction: column; padding: 18px; }
  .download { width: 100%; }
  .evidence-review { padding: 14px; }
  .review-detail { padding: 12px; }
  #review-content { grid-template-columns: minmax(0, 1fr); }
  footer { flex-wrap: wrap; gap: 10px; }
  footer details { text-align: start; }
}
@media (max-width: 360px) {
  .destination { flex-direction: column; min-height: 64px; gap: 4px; padding: 8px 2px; }
  .destination span { white-space: nowrap; }
  .size-presets button { flex-direction: column; min-height: 60px; gap: 4px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  button, .selector-shell, .adventure-steps, .workbench { border: 1px solid ButtonText; }
  .adventure-step[aria-current], [aria-pressed="true"] { outline: 2px solid Highlight; }
}

.site-guide { margin: 32px 0; padding: 28px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.site-guide h2 { margin: 0 0 16px; font-size: clamp(1.5rem, 2.3vw, 2rem); }
.site-guide p, .reading-page p { line-height: 1.75; }
.site-guide p { max-width: 70ch; margin-bottom: 16px; }
.site-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; }
.site-explanation > p:last-child { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.site-start ol { counter-reset: first-world; list-style: none; margin: 0; padding: 0; }
.site-start li { counter-increment: first-world; position: relative; min-height: 36px; margin: 0 0 20px; padding-inline-start: 48px; line-height: 1.6; }
.site-start li::before { content: counter(first-world); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--lime); background: var(--panel-2); font-weight: 900; }
.site-start a { font-weight: 800; text-decoration-thickness: 1px; }
.site-guides, .site-questions { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.guide-language { font: 600 .85rem "Nunito", sans-serif; color: var(--muted); white-space: nowrap; }
.guide-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; list-style: none; margin: 0; padding: 0; }
.guide-links > li { min-width: 0; padding-block: 16px; border-bottom: 1px solid var(--line); }
.guide-links a { font-weight: 850; text-decoration-thickness: 1px; }
.guide-links p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.site-guide a:hover { color: var(--lime); }
.site-faq > details { border-bottom: 1px solid var(--line); }
.site-faq summary { min-height: 52px; padding-block: 14px; font-weight: 800; cursor: pointer; }
.site-faq details[open] summary { color: var(--lime); }
.site-faq p { margin: 0 0 20px; color: var(--muted); }
.site-guide noscript { display: block; margin-top: 24px; }
.reading-page li { margin-block: 10px; }
@media (max-width: 760px) {
  .site-guide { padding: 22px; margin-block: 24px; }
  .site-intro { grid-template-columns: 1fr; gap: 28px; }
  .site-start li:last-child { margin-bottom: 0; }
  .guide-links { grid-template-columns: 1fr; }
  .site-guides, .site-questions { margin-top: 28px; padding-top: 24px; }
}
@media (max-width: 440px) {
  .site-guide { padding: 20px 16px; }
  .site-guide h2 { font-size: 1.6rem; }
  .site-guide p, .site-start li, .site-faq summary { font-size: .9rem; }
  .site-start li { padding-inline-start: 44px; }
}
.site-languages { margin: 32px auto; max-width: 90ch; text-align: center; line-height: 2.5; overflow-wrap: anywhere; }
.site-languages a { display: inline-block; padding-inline: 5px; font-size: .85rem; }
.reading-page { max-width: 75ch; padding-block: 30px 48px; }
.reading-page h1 { margin: 28px 0; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.1; }
.reading-page h2 { margin: 32px 0 14px; font-size: 1.7rem; }
.reading-page code { overflow-wrap: anywhere; font-size: .9em; }
.breadcrumbs { color: var(--muted); font-size: .9rem; }
.guide-action { margin-top: 32px; font-weight: 850; }
.related-guides { border-top: 1px solid var(--line); margin-top: 32px; }
