:root {
  color-scheme: light dark;
  --ink: #3b291e;
  --muted: #665441;
  --paper: #f4e9cf;
  --paper-light: #fff9e9;
  --paper-deep: #e7d8b4;
  --gold: #efc95b;
  --green: #365f2c;
  --wood: #65452d;
  --edge: #b19a70;
  --sky: #d7e7d9;
  --sky-bottom: #ede7c9;
  --night: #243b44;
  --scene-sky: #d3dfbf;
  --scene-bottom: #e6dcae;
  --shadow: #3b291e1a;
  --focus: #17605d;
  font-family: "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--sky);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-underline-offset: 5px; }
button:not(:disabled), summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, canvas { image-rendering: pixelated; }
img { display: block; flex-shrink: 0; }
svg { flex: 0 0 auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
::selection { color: #3b291e; background: #efc95b; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; }
h1, h2, .hero-wordmark { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
h2 { font-size: clamp(2.15rem, 4.4vw, 3.75rem); font-weight: 500; max-width: 17ch; margin-bottom: 0; }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -.025em; }
p { margin-bottom: 0; }
section[id], article[id] { scroll-margin-top: 8rem; }
.icon { width: 28px; height: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 12px 20px; background: var(--paper-light); border: 2px solid var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.page-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(var(--sky), var(--sky-bottom)); }
.page-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#1d3444, #596052); opacity: 0; }

.site-header { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; gap: 32px; min-height: 76px; padding: 12px max(24px, calc((100% - 1360px) / 2)); background: var(--paper-light); border-bottom: 1px solid var(--edge); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--green); text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; font-weight: bold; letter-spacing: -.04em; white-space: nowrap; }
.main-nav { display: flex; gap: 28px; margin-left: auto; font-size: .875rem; }
.main-nav a { padding-block: 8px; text-decoration: none; }
.main-nav a:hover { text-decoration: underline; }
.language-switch { display: flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; flex: 0 0 auto; }
.language-switch a { padding: 10px; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.language-switch a[aria-current] { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; }
.language-switch > span { color: var(--edge); }

.hero { position: relative; max-width: 1600px; margin: 24px auto 0; border: 1px solid var(--edge); border-radius: 9px; overflow: hidden; background: radial-gradient(ellipse at 90% 30%, #f2d58866, transparent 46%), linear-gradient(150deg, var(--sky), var(--sky-bottom)); box-shadow: 0 16px 60px var(--shadow); }
.desktop-bar { display: flex; align-items: center; gap: 9px; padding: 12px 20px; font-size: .75rem; font-weight: 600; border-bottom: 1px solid #365f2c22; }
.desktop-dot { width: 7px; height: 7px; background: var(--green); }
.desktop-clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.desktop-content { position: relative; padding: 36px 6% 40px; }
.hero-window { position: relative; z-index: 2; width: 740px; max-width: 100%; background: var(--paper-light); border: 2px solid var(--wood); border-radius: 6px; box-shadow: 7px 9px 0 #3b291e1c; }
.window-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 38px; padding: 6px 14px; font-size: .6875rem; font-weight: 600; letter-spacing: .04em; border-bottom: 1px solid var(--edge); background: var(--paper); }
.window-dots { letter-spacing: .12em; color: var(--wood); font-size: .6rem; }
.hero-copy { padding: 18px 36px 24px; }
.hero-brand { position: relative; }
.hero-logo { width: 640px; height: 250px; margin: 0 auto 18px; }
.hero-wordmark, .mobile-house { display: none; }
.hero h1 { font-size: clamp(2.1rem, 3.45vw, 3rem); font-weight: 500; margin-bottom: 18px; max-width: 21ch; }
.hero-subtitle { color: var(--muted); font-size: 1rem; max-width: 62ch; }
.hero-actions { display: flex; align-items: flex-start; gap: 24px; margin-top: 28px; }
.steam-action { max-width: 300px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 18px; font-weight: 700; font-size: .9rem; border: 2px solid var(--wood); border-radius: 4px; box-shadow: 0 4px 0 var(--wood); }
.button-steam { color: #3b291e; background: #e7d8b4; opacity: 1; }
.button-steam .icon { width: 20px; height: 20px; }
.steam-action small { display: block; font-size: .6875rem; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.text-link { font-size: .875rem; font-weight: 650; padding-block: 14px; }
.platform-note { display: flex; align-items: center; gap: 7px; font-size: .7rem; color: var(--muted); margin-top: 18px; }
.platform-note .icon { width: 16px; height: 16px; }
.ghost-window { position: absolute; width: 42%; height: 288px; top: 85px; right: 5%; border: 1px solid #6d83696b; border-radius: 6px; background: #f8f6e957; box-shadow: 10px 12px 0 #5269500a; overflow: hidden; }
.window-chrome { display: flex; gap: 6px; height: 30px; padding: 10px; border-bottom: 1px solid #6d836944; }
.window-chrome i { display: block; height: 5px; width: 5px; background: #6d836966; }
.ghost-sidebar { position: absolute; top: 30px; bottom: 0; width: 24%; border-right: 1px solid #6d836933; background: #6d83690a; }
.ghost-lines { margin: 40px 24px 0 32%; }
.ghost-lines i { display: block; height: 7px; background: #6d83692e; margin-top: 18px; width: 94%; }
.ghost-lines i:nth-child(2n) { width: 66%; }
.desktop-note { position: absolute; right: 4%; top: 410px; width: 215px; padding: 26px; background: #efdf9c; border: 1px solid #b2a26a; color: #3b291e; box-shadow: 4px 5px 0 #3b291e14; }
.desktop-note::before { content: ""; position: absolute; width: 65px; height: 17px; top: -9px; left: 75px; background: #fff5d3b3; border: 1px solid #b2a26a55; }
.desktop-note .icon { color: #365f2c; margin-bottom: 16px; }
.desktop-note p { font-family: Georgia, serif; font-size: 1.65rem; line-height: 1.2; margin-bottom: 14px; }
.desktop-note > span { font-size: .7rem; }

.farm-demo { position: relative; z-index: 3; }
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; }
.demo-toolbar strong { font-family: Georgia, serif; font-size: 1.2rem; font-weight: 500; }
.demo-toolbar p { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.demo-toolbar .demo-note { font-size: .6875rem; }
.demo-tools { display: flex; align-items: center; gap: 20px; }
.harvest-count { display: inline-flex; align-items: center; gap: 9px; background: var(--paper-light); padding: 7px 12px; border: 1px solid var(--edge); border-radius: 3px; font-size: .75rem; white-space: nowrap; }
.harvest-count .icon { width: 20px; height: 20px; color: #8a6416; }
.harvest-count output { min-width: 2ch; font-weight: 700; font-variant-numeric: tabular-nums; }
.motion-button { font-size: .6875rem; min-height: 44px; padding: 8px 2px; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; }
.demo-scene { height: 232px; position: relative; overflow: hidden; }
.demo-fallback { position: absolute; left: 50%; margin-left: -720px; bottom: 0; }
.demo-fallback img { width: 1440px; height: 232px; max-width: none; }
#farm-canvas { display: block; width: 100%; height: 232px; cursor: url('/assets/watering-can.svg') 6 26, pointer; touch-action: pan-y; }
.plot-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--paper); border-top: 2px solid var(--wood); padding: 12px 24px; gap: 12px; }
.plot-controls button { display: flex; gap: 9px; align-items: center; justify-content: center; font-size: .75rem; min-height: 46px; padding: 6px 10px; border: 1px solid var(--edge); border-bottom: 3px solid var(--wood); border-radius: 3px; background: var(--paper-light); }
.plot-controls button:hover { background: var(--paper-deep); }
.plot-controls button:active { border-bottom-width: 1px; transform: translateY(2px); }
.plot-number { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; background: var(--green); color: var(--paper-light); flex: 0 0 auto; font-size: .625rem; }

.section { max-width: 1280px; margin-inline: auto; padding: 104px 48px 0; }
.section-heading { margin-bottom: 42px; }
.eyebrow { color: var(--green); font-size: .6875rem; font-weight: 750; letter-spacing: .15em; line-height: 1.6; margin-bottom: 16px; }
.section-intro { color: var(--muted); margin-top: -20px; margin-bottom: 36px; }
.section-note { font-family: Georgia, serif; font-size: 1.2rem; max-width: 56ch; margin: 32px auto 0; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px; list-style: none; padding: 0; margin: 0; }
.step { min-width: 0; }
.step h3 { margin: 14px 0 12px; }
.step p { font-size: .95rem; color: var(--muted); }
.number { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--green); letter-spacing: .05em; }
.step-illustration { height: 166px; margin-bottom: 26px; position: relative; background: var(--paper); border: 1px solid var(--edge); border-radius: 5px; overflow: hidden; }
.mini-window { position: absolute; top: 24px; left: 22px; right: 45px; height: 94px; border: 1px solid var(--edge); background: var(--paper-light); box-shadow: 6px 6px 0 var(--shadow); }
.mini-window::before { content: ""; display: block; height: 18px; border-bottom: 1px solid var(--edge); background: var(--paper-deep); }
.mini-window i { display: block; width: 65%; height: 4px; margin: 10px 12px; background: var(--paper-deep); }
.mini-window i:last-child { width: 40%; }
.mini-farm { position: absolute; bottom: 0; left: 0; right: 0; height: 28px; background: #678451; border-top: 3px solid #365f2c; }
.mini-farm img { position: absolute; bottom: 5px; right: 22px; }
.step-illustration > .icon { position: absolute; top: 17px; right: 14px; color: var(--green); }
.step-illustration-2 .mini-window { left: 44px; right: 22px; top: 30px; }
.step-illustration-3 .mini-window { width: 90px; height: 48px; top: 30px; }
.step-illustration-3 .mini-window i { display: none; }
.step-illustration-3 { background: #344f4d; }
.step-illustration-3 > .icon { color: #efc95b; }

.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 30px; border: 1px solid var(--edge); border-radius: 5px; background: var(--paper-light); box-shadow: 0 4px 0 var(--shadow); }
.feature-icon { margin-bottom: 26px; color: var(--green); }
.feature h3 { margin-bottom: 13px; }
.feature p { color: var(--muted); font-size: .875rem; }
.feature-1 { background: var(--green); color: var(--paper-light); grid-row: span 2; }
.feature-1 .feature-icon, .feature-1 p { color: var(--paper-light); }
.feature-1 h3 { font-family: Georgia, serif; font-size: 2.7rem; font-weight: 500; }
.feature-sprites { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 70px; padding-top: 24px; border-top: 1px solid #ffffff33; }
.feature-sprites span { align-self: center; }
.feature-6 { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: start; }
.feature-6 .feature-icon { grid-row: span 2; margin-bottom: 0; }
.feature-6 h3 { margin-bottom: 8px; }

.farm-chapters { display: grid; gap: 24px; }
.farm-chapter { position: relative; border: 1px solid var(--edge); border-radius: 6px; background: var(--paper-light); overflow: hidden; }
.chapter-copy { padding: 28px 32px 4px; display: grid; grid-template-columns: 44px 1fr 1fr; align-items: baseline; gap: 20px; }
.chapter-copy h3 { font-family: Georgia, serif; font-size: 2rem; font-weight: 500; margin: 0; }
.chapter-copy p { color: var(--muted); font-size: .875rem; }
.scene-viewport { height: 252px; position: relative; overflow: hidden; background: linear-gradient(var(--scene-sky), var(--scene-bottom)); }
.farm-chapter .scene-viewport { margin-top: 20px; }
.farm-picture { display: block; position: absolute; bottom: 0; left: 0; width: 1440px; height: 232px; }
.farm-picture img { width: 1440px; height: 232px; max-width: none; }
.world-encosta { --scene-sky: #e5d9bd; --scene-bottom: #eedda5; }
.world-beira { --scene-sky: #c3dcdb; --scene-bottom: #d2e2ca; }
.world-gnomes { --scene-sky: #c9dbbc; --scene-bottom: #dfd9b8; }
.world-clockwork { --scene-sky: #cfd8d5; --scene-bottom: #e4cdac; }
.world-coral { --scene-sky: #bbdcd7; --scene-bottom: #a9d0ce; }
.world-candy { --scene-sky: #ecd3d0; --scene-bottom: #ede0b7; }
.world-orbit { --scene-sky: #384954; --scene-bottom: #627278; }
.world-dragon { --scene-sky: #dae0c9; --scene-bottom: #e9d0af; }
.world-halloween { --scene-sky: #3e404f; --scene-bottom: #64624e; }
.expansion-journey { display: grid; gap: 36px; }
.expansion-card { display: grid; grid-template-columns: 40% 60%; min-height: 328px; border: 2px solid var(--wood); border-radius: 6px; background: var(--paper-light); box-shadow: 0 7px 0 var(--shadow); overflow: hidden; }
.expansion-copy { padding: 34px; align-self: center; }
.expansion-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 26px; }
.badge { display: inline-flex; align-items: center; border: 1px solid var(--edge); padding: 4px 9px; background: var(--paper); color: var(--ink); font-size: .625rem; font-weight: 700; white-space: nowrap; }
.expansion-copy h3 { font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; max-width: 15ch; margin-bottom: 16px; }
.expansion-copy p { color: var(--muted); font-size: .9rem; }
.expansion-card .scene-viewport { height: 100%; min-height: 328px; border-left: 1px solid var(--edge); }
.expansion-card .scene-viewport::before { content: ""; position: absolute; width: 58px; height: 58px; background: #fff4c45c; border: 8px solid #fff4c414; border-radius: 50%; top: 46px; right: 15%; }
.extras-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 34px; border-top: 1px solid var(--edge); }
.extra { display: flex; align-items: flex-start; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--edge); }
.extra > .icon { color: var(--green); margin-top: 2px; }
.extra h3 { font-size: 1.05rem; margin-bottom: 10px; }
.extra p { color: var(--muted); font-size: .875rem; }
.extras-section .section-note { padding: 25px; border: 1px solid var(--edge); border-left: 4px solid var(--green); background: var(--paper); text-align: left; max-width: none; }

.fair-section { margin-top: 104px; background: #274c35; color: #fff4d7; border-block: 5px solid #c6ab63; }
.fair-inner { max-width: 1000px; margin: 0 auto; padding: 70px 48px 76px; position: relative; }
.fair-inner > .icon { width: 58px; height: 58px; color: #efc95b; margin-bottom: 28px; }
.fair-section .eyebrow { color: #e5cf92; }
.fair-section h2 { font-size: clamp(3rem, 6vw, 5rem); }
.fair-section .section-heading { margin-bottom: 22px; }
.fair-statement { font-size: clamp(1.25rem, 2.5vw, 1.7rem); line-height: 1.5; max-width: 36ch; }
.fair-friends { color: #e2e6cd; max-width: 65ch; margin-top: 26px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card { background: var(--paper-light); border: 1px solid var(--edge); padding: 30px; border-radius: 4px; }
.news-card time, .news-mark { display: block; font-family: ui-monospace, Consolas, monospace; color: var(--green); font-size: .75rem; margin-bottom: 28px; }
.news-card h3 { margin-bottom: 14px; }
.news-card p { color: var(--muted); font-size: .9rem; }
.faq-section { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; padding-bottom: 104px; }
.faq-section h2 { max-width: 10ch; }
.faq-list { border-top: 1px solid var(--edge); }
.faq-list details { border-bottom: 1px solid var(--edge); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font-weight: 650; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-toggle { position: relative; display: block; width: 14px; height: 14px; flex: 0 0 auto; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; background: currentColor; }
.faq-toggle::before { width: 14px; height: 2px; top: 6px; }
.faq-toggle::after { width: 2px; height: 14px; left: 6px; }
details[open] .faq-toggle::after { display: none; }
.faq-list details p { color: var(--muted); font-size: .95rem; padding: 0 36px 24px 0; }

.site-footer { padding: 44px max(24px, calc((100% - 1184px) / 2)); background: var(--paper); border-top: 1px solid var(--edge); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--edge); }
.footer-top p { color: var(--muted); font-family: Georgia, serif; font-size: 1.1rem; margin-top: 10px; }
.footer-bottom { display: flex; gap: 32px; justify-content: space-between; align-items: center; margin-top: 26px; font-size: .75rem; }
.footer-bottom > div > a { display: inline-block; padding-block: 8px; }
.legal-links { display: flex; flex-wrap: wrap; column-gap: 20px; }
.legal-links a { padding-block: 10px; }

/* Text lives on a stable light surface while the sky travels from day to night. */
main > .section { background: var(--paper-light); }
main > .how-section { margin-top: 56px; border-radius: 8px 8px 0 0; }
main > .faq-section { border-radius: 0 0 8px 8px; margin-bottom: 56px; }
.news-section { margin-top: 56px; border-radius: 8px 8px 0 0; }
.extras-section { padding-bottom: 68px; border-radius: 0 0 8px 8px; }

@media (prefers-color-scheme: dark) {
  :root { --ink: #f4e9cf; --muted: #c9bda5; --paper: #2e3027; --paper-light: #252a25; --paper-deep: #414234; --gold: #efc95b; --green: #b7d38c; --wood: #9d8456; --edge: #69684e; --sky: #1b3036; --sky-bottom: #394039; --night: #101e29; --scene-sky: #182c36; --scene-bottom: #334439; --shadow: #070d1744; --focus: #efc95b; }
  .hero { background: radial-gradient(ellipse at 90% 30%, #a8c8bd11, transparent 46%), linear-gradient(150deg, var(--sky), var(--sky-bottom)); }
  .page-sky::after { background: linear-gradient(#0b1824, #172a2e); }
  .desktop-bar { border-bottom-color: #ffffff1c; }
  .ghost-window { background: #c3d3c50a; border-color: #8fa18d40; }
  .ghost-lines i { background: #bdc9b91a; }
  .desktop-note { background: #5b5336; color: #f4e9cf; border-color: #827953; }
  .desktop-note .icon { color: #cde2a5; }
  .desktop-note::before { background: #a19b6d55; border-color: #a19b6d44; }
  .feature-1 { background: #36543b; color: #f4e9cf; }
  .feature-1 .feature-icon, .feature-1 p { color: #f4e9cf; }
  .plot-number { color: #252a25; }
  .harvest-count .icon { color: #efc95b; }
  [class*="world-"] { --scene-sky: #182c36; --scene-bottom: #334439; }
  .world-coral { --scene-sky: #142d36; --scene-bottom: #234c50; }
  .world-orbit, .world-halloween { --scene-sky: #171c30; --scene-bottom: #353642; }
  .expansion-card .scene-viewport::before { background: #e2e7c278; border-color: #e2e7c20c; }
}

@media (min-width: 1680px) { .hero { margin-top: 40px; } .desktop-content { padding-left: 9%; } .desktop-note { right: 9%; } }
@media (max-width: 1648px) { .hero { margin-inline: 24px; } }
@media (max-width: 1240px) {
  .desktop-note { display: none; }
  .desktop-content { padding: 30px; }
  .ghost-window { right: 24px; top: 70px; }
  .section { margin-inline: 24px; padding-inline: 32px; }
  .features-grid { gap: 12px; }
  .feature { padding: 24px; }
  .feature-sprites { gap: 3px; }
  .expansion-copy { padding: 28px; }
}
@media (max-width: 1000px) {
  .site-header { gap: 18px; }
  .main-nav { gap: 16px; font-size: .8rem; }
  .desktop-content { display: flex; justify-content: center; }
  .ghost-window { display: none; }
  .steps { gap: 24px; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-1 { grid-row: span 2; }
  .feature-6 { grid-column: auto; display: block; }
  .feature-6 .feature-icon { margin-bottom: 26px; }
  .chapter-copy { grid-template-columns: 36px 1fr; gap: 12px; }
  .chapter-copy p { grid-column: 2; }
  .expansion-card { grid-template-columns: 45% 55%; }
  .expansion-copy { padding: 24px; }
  .extras-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { gap: 12px; }
  .news-card { padding: 22px; }
  .faq-section { gap: 36px; grid-template-columns: 1fr 1.5fr; }
  .footer-bottom { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; padding: 8px 20px; gap: 0; min-height: 96px; }
  .site-header > .language-switch { margin-left: auto; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; margin: 0; gap: 12px; }
  .hero { margin-inline: 16px; }
  .desktop-content { padding: 20px 14px 32px; }
  .hero-copy { padding: 28px; }
  .hero-logo { display: none; }
  .hero-wordmark { display: block; font-size: 4.1rem; font-weight: 700; line-height: .88; color: var(--green); padding-bottom: 30px; }
  .mobile-house { display: block; position: absolute; top: 12px; right: 12px; width: 96px; height: 90px; }
  .hero h1 { font-size: 2.35rem; max-width: 25ch; }
  .demo-toolbar { padding-inline: 22px; align-items: flex-start; }
  .demo-tools { align-items: flex-end; flex-direction: column; gap: 0; }
  .plot-controls { gap: 8px; padding-inline: 14px; }
  .plot-controls button { flex-direction: column; font-size: .6875rem; }
  .section { padding-top: 72px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .step { display: grid; grid-template-columns: 190px 1fr; column-gap: 28px; }
  .step-illustration { grid-row: span 3; margin-bottom: 0; height: 170px; }
  .step > .number { align-self: end; }
  .step h3 { margin-top: 8px; }
  .expansion-card { grid-template-columns: 1fr; }
  .expansion-copy { padding: 28px; }
  .expansion-copy h3 { max-width: 100%; }
  .expansion-meta { margin-bottom: 20px; }
  .expansion-card .scene-viewport { height: 252px; min-height: 252px; border-left: 0; border-top: 1px solid var(--edge); }
  .expansion-card .scene-viewport::before { top: 24px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { padding: 26px; }
  .news-card time, .news-mark { margin-bottom: 16px; }
  .faq-section { grid-template-columns: 1fr; gap: 0; padding-bottom: 72px; }
  .faq-section h2 { max-width: none; }
  .fair-section { margin-top: 72px; }
  .fair-inner { padding: 60px 48px; }
}
@media (max-width: 600px) {
  .wordmark { font-size: 1.25rem; gap: 8px; }
  .wordmark .icon { width: 24px; height: 24px; }
  .main-nav { font-size: .75rem; }
  .language-switch a { padding-inline: 8px; }
  .hero { margin-top: 16px; }
  .desktop-bar { padding: 10px 13px; font-size: .625rem; gap: 6px; }
  .desktop-clock { display: none; }
  .desktop-content { padding: 14px 10px 28px; }
  .window-title { font-size: .5625rem; padding-inline: 10px; gap: 8px; }
  .hero-copy { padding: 24px 18px; }
  .hero-wordmark { font-size: 3.2rem; padding-bottom: 26px; }
  .mobile-house { right: -8px; top: -2px; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: .9rem; }
  .hero-actions { flex-direction: column; gap: 10px; margin-top: 24px; }
  .steam-action { width: 100%; max-width: none; }
  .button { width: 100%; padding-inline: 10px; font-size: .8125rem; }
  .platform-note { margin-top: 4px; }
  .demo-toolbar { flex-direction: column; padding-inline: 18px; gap: 14px; }
  .demo-tools { flex-direction: row; width: 100%; align-items: center; justify-content: space-between; gap: 12px; }
  .plot-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .plot-controls button { flex-direction: row; padding-inline: 6px; }
  .plot-number { width: 20px; height: 20px; }
  .demo-fallback { left: 0; margin-left: 0; }
  .section { margin-inline: 16px; padding: 58px 22px 0; }
  .section-heading { margin-bottom: 32px; }
  h2 { font-size: 2.25rem; }
  .eyebrow { font-size: .625rem; letter-spacing: .12em; }
  .step { display: block; }
  .step-illustration { height: 166px; margin-bottom: 22px; }
  .step h3 { margin-top: 10px; }
  .steps { gap: 42px; }
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-1 { grid-row: auto; }
  .feature-sprites { max-width: 220px; margin-top: 30px; gap: 8px; }
  .feature-6 { grid-column: auto; }
  .feature-1 h3 { font-size: 2.4rem; }
  .chapter-copy { padding: 24px 20px 0; grid-template-columns: 26px 1fr; gap: 9px; }
  .chapter-copy h3 { font-size: 1.8rem; }
  .farm-chapter .scene-viewport { margin-top: 20px; }
  .scene-viewport { height: 232px; }
  .expansion-copy { padding: 24px 20px; }
  .expansion-copy h3 { font-size: 2rem; }
  .expansion-card .scene-viewport { height: 252px; }
  .expansion-meta { flex-wrap: wrap; }
  .section-note { font-size: 1.1rem; text-align: left; margin-top: 24px; }
  .extras-list { grid-template-columns: 1fr; }
  .extras-section .section-note { padding: 20px; }
  .extras-section { padding-bottom: 44px; }
  .fair-section { margin-top: 56px; }
  .fair-inner { padding: 48px 28px; }
  .fair-friends { font-size: .9rem; }
  .faq-section { padding-bottom: 58px; }
  .faq-list summary { font-size: .95rem; }
  .site-footer { padding: 32px 24px; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .legal-links { column-gap: 20px; }
}

/* Keep the playable strip at the desktop's lower edge, with keyboard controls below the fold. */
@media (min-width: 1024px) {
  .site-header { min-height: 64px; padding-block: 8px; }
  .hero { margin-top: 12px; }
  .desktop-bar { height: 34px; padding-block: 6px; }
  /* Header (64), top margin (12), borders (2), desktop bar (34), toolbar (44), canvas (232). */
  .desktop-content { display: flex; align-items: center; min-height: calc(100svh - 388px); padding: 12px 6%; }
  .window-title { min-height: 28px; padding-block: 4px; }
  .hero-copy { padding: 12px 28px; }
  .hero-logo { width: 420px; max-width: 100%; height: auto; margin-bottom: 8px; }
  .hero h1 { font-size: 2rem; margin-bottom: 8px; }
  .hero-subtitle { font-size: .875rem; line-height: 1.5; }
  .hero-actions { gap: 20px; margin-top: 12px; }
  .hero-actions .button { min-height: 44px; padding-block: 8px; }
  .hero-actions .text-link { padding-block: 10px; white-space: nowrap; }
  .steam-action small { margin-top: 6px; }
  .platform-note { margin-top: 6px; }
  .desktop-note { top: auto; bottom: 24px; }
  .demo-toolbar { min-height: 44px; }
  .demo-toolbar > div:first-child { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 16px; }
  .demo-toolbar strong { grid-row: 1 / 3; }
  .demo-toolbar p { grid-column: 2; margin-top: 0; }
}

/* On shorter desktops, put the logo beside the copy instead of squeezing the farm. */
@media (min-width: 1024px) and (max-height: 880px) {
  .hero-window { width: 100%; }
  .hero-copy { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 8px 24px; }
  .hero-brand { grid-column: 1; grid-row: 1 / 4; align-self: center; padding-bottom: 24px; }
  .hero-logo { margin-bottom: 0; }
  .hero h1 { grid-column: 2; font-size: 1.75rem; max-width: none; margin: 0; }
  .hero-subtitle { grid-column: 2; }
  .hero-actions { grid-column: 2; margin-top: 0; }
  .platform-note { grid-column: 1; grid-row: 3; align-self: end; margin-top: 0; }
  .desktop-note { display: none; }
}

@media (forced-colors: active) {
  .feature-1, .fair-section { border: 2px solid CanvasText; }
  .plot-number, .badge { border: 1px solid CanvasText; }
  .page-sky, .ghost-window, .desktop-note { display: none; }
}
