@font-face {
  font-family: "Press Start 2P";
  src: url("fonts/PressStart2P.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #101418;
  --bg-alt: #151b21;
  --panel: #1b232b;
  --panel-2: #222c35;
  --line: #2c3843;
  --text: #e6edf3;
  --muted: #93a1ad;
  --emerald: #22c55e;
  --emerald-deep: #0f7a3d;
  --emerald-soft: #86efac;
  --gold: #f5c542;
  --red: #ef4444;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 4px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  font: 16px/1.6 var(--sans);
  color: var(--text);
  background-color: var(--bg);
  /* subtle "stone" pixel texture */
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.015) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.015) 75%),
    linear-gradient(45deg, rgba(255,255,255,.015) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.015) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

a { color: var(--emerald-soft); }
code {
  font-family: var(--mono);
  font-size: .92em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: .05em .4em;
  border-radius: 3px;
  white-space: nowrap;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.gold { color: var(--gold); }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--emerald); color: #000; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(16, 20, 24, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-family: var(--pixel); font-size: .8rem; }
.gem { width: 28px; height: 28px; image-rendering: pixelated; }
.brand-sub { color: var(--muted); }
.nav nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav nav a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 .95rem var(--sans);
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  border-bottom-width: 4px;             /* blocky Minecraft button feel */
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { background: #2a3641; }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.btn.primary { background: var(--emerald); border-color: var(--emerald-deep); color: #04210f; }
.btn.primary:hover { background: #34d399; }
.btn.tiny { padding: .15rem .55rem; font-size: .8rem; border-bottom-width: 3px; vertical-align: middle; }

/* ---------- hero ---------- */
.hero { padding: 5rem 0 4rem; text-align: center; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, rgba(34, 197, 94, .14), transparent 60%); }
.eyebrow { color: var(--emerald-soft); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin: 0 0 1rem; }
h1, h2 { font-family: var(--pixel); font-weight: 400; line-height: 1.35; }
h1 { font-size: clamp(1.6rem, 6vw, 3.2rem); margin: 0 0 1.25rem; text-shadow: 4px 4px 0 #000; }
h1 .accent { color: var(--emerald); }
.tagline { font-size: 1.15rem; color: var(--muted); max-width: 36rem; margin: 0 auto 2rem; }
.tagline strong { font-weight: 800; }

.address {
  display: inline-flex; align-items: stretch; flex-wrap: wrap; justify-content: center;
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  padding: .4rem; gap: .4rem; max-width: 100%;
}
.address code { border: 0; background: transparent; font-size: clamp(1.05rem, 4vw, 1.5rem); padding: .45rem .8rem; color: var(--text); font-weight: 700; }
.address .btn { padding: .55rem 1.1rem; }

.pills { list-style: none; padding: 0; margin: 1.5rem auto 2rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pill { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; font-size: .88rem; font-weight: 600; display: inline-flex; align-items: center; gap: .45rem; }

.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.is-online .dot { background: var(--emerald); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
.is-offline .dot { background: var(--red); }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.vote-lists { margin-top: 1.5rem; flex-direction: column; align-items: center; }
.vote-lists .btn { width: min(100%, 22rem); text-align: center; }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.05rem, 3.2vw, 1.5rem); margin: 0 0 2rem; text-align: center; }
h3 { margin: .25rem 0 .5rem; font-size: 1.1rem; }

/* tabs */
.tabs { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.tabs [role="tab"] {
  font: 700 1rem var(--sans); color: var(--muted);
  background: var(--panel); border: 2px solid var(--line); border-bottom-width: 4px;
  border-radius: var(--radius); padding: .65rem 1.2rem; cursor: pointer;
}
.tabs [role="tab"][aria-selected="true"] { color: #04210f; background: var(--emerald); border-color: var(--emerald-deep); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem; max-width: 760px; margin: 0 auto; }
.steps { margin: 0; padding-left: 1.4rem; }
.steps li { margin: .55rem 0; }
.note { color: var(--muted); font-size: .9rem; margin: 1rem 0 0; border-top: 1px dashed var(--line); padding-top: .9rem; }

/* feature cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--emerald-deep); }
.card p { margin: 0; color: var(--muted); }
.card p strong { color: var(--text); }
.icon {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  font-size: 1.35rem; border-radius: var(--radius);
  background: var(--panel-2); border: 2px solid var(--line); margin-bottom: .6rem;
}
.icon.gold-bg { background: #3a2f0c; border-color: #6b5412; color: var(--gold); font-family: var(--pixel); font-size: 1rem; }

/* status */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.stat .state { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin: 0 0 .75rem; }
.stat.is-online .state .txt { color: var(--emerald); }
.stat.is-offline .state .txt { color: var(--red); }
.stat dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: 0; }
.stat dt { color: var(--muted); }
.stat dd { margin: 0; font-weight: 600; text-align: right; }
.players-count { font-family: var(--pixel); font-size: clamp(1.4rem, 5vw, 2rem); color: var(--emerald); margin: .4rem 0 1rem; }
.players-count .players-max { color: var(--muted); font-size: .6em; }
#names { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
#names li:not(.muted) { background: var(--panel-2); border: 1px solid var(--line); border-radius: 3px; padding: .15rem .55rem; font-family: var(--mono); font-size: .9rem; }
#updated { text-align: center; margin-top: 1.25rem; }

/* rules */
.rules { counter-reset: r; list-style: none; padding: 0; margin: 0; }
.rules li { counter-increment: r; position: relative; padding: .9rem 1rem .9rem 3.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; }
.rules li::before {
  content: counter(r); position: absolute; left: 1rem; top: .95rem;
  font-family: var(--pixel); font-size: .8rem; color: var(--emerald);
}

/* footer */
.footer { padding: 2.5rem 0; text-align: center; border-top: 1px solid var(--line); }
.footer p { margin: .3rem 0; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--emerald); color: #04210f; font-weight: 800; padding: .6rem 1.2rem;
  border-radius: var(--radius); border-bottom: 4px solid var(--emerald-deep); z-index: 50;
}

@media (max-width: 560px) {
  .brand:has(.brand-sub) { font-size: .62rem; }  /* long "Emerald Hills | LGCraft.net" brand */
  .nav nav { gap: .8rem; }
  .nav nav a { font-size: .85rem; }
  .hero { padding: 3.25rem 0 3rem; }
  .panel { padding: 1.2rem 1.1rem; }
  .section { padding: 3.25rem 0; }
}

/* guide: section rail (left edge; hover/focus/tap to expand) + next-section arrow */
.guide-rail {
  position: fixed; left: 0; top: 50%; z-index: 20;
  width: 2.5rem; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  translate: -100% -50%; opacity: 0; visibility: hidden;
  transition: width .18s ease .2s, translate .25s ease, opacity .25s ease, visibility .25s;
}
.guide-rail.is-shown { translate: 0 -50%; opacity: 1; visibility: visible; }
.guide-rail.is-open, .guide-rail:focus-within { width: 15rem; transition-delay: 0s; }
@media (hover: hover) {
  .guide-rail:hover { width: 15rem; transition-delay: 0s; }
  .guide-rail a:hover { color: var(--emerald-soft); }
}
.guide-rail ol { list-style: none; margin: 0; padding: .4rem 0; }
.guide-rail a {
  display: flex; align-items: center; gap: .85rem; padding: .45rem 0 .45rem .9rem;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.guide-rail a:focus-visible { color: var(--emerald-soft); }
.guide-rail a:focus-visible { outline: 2px solid var(--emerald); outline-offset: -2px; }
.rail-dot { flex: none; width: .6rem; height: .6rem; border: 2px solid var(--muted); }
.guide-rail a[aria-current] { color: var(--text); font-weight: 700; }
.guide-rail a[aria-current] .rail-dot { background: var(--emerald); border-color: var(--emerald); }
.rail-label { opacity: 0; transition: opacity .15s ease .2s; }
.guide-rail.is-open .rail-label, .guide-rail:focus-within .rail-label { opacity: 1; transition-delay: .05s; }
@media (hover: hover) { .guide-rail:hover .rail-label { opacity: 1; transition-delay: .05s; } }

.guide-next {
  position: fixed; right: 1rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 20;
  display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; cursor: pointer;
  background: var(--emerald); color: #04210f; border: 2px solid var(--emerald-deep); border-bottom-width: 5px;
  border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.guide-next[hidden] { display: none; }
.guide-next:hover { background: #34d399; }
.guide-next:active { transform: translateY(2px); border-bottom-width: 3px; }
.guide-next:focus-visible { outline: 3px solid var(--emerald-soft); outline-offset: 3px; }
.guide-next svg { width: 1.5rem; height: 1.5rem; shape-rendering: crispEdges; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* offscreen textarea used by the copy fallback */
.sr-copy { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* long-form text pages (privacy) */
.prose h2 { text-align: left; margin-bottom: .75rem; }
.prose h3 { margin-top: 2rem; }
.prose p { color: var(--muted); }
.prose p strong, .prose a { color: var(--text); }

/* ---------- hub (lgcraft.net) ---------- */
.games { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 820px) { .games { grid-template-columns: 1fr; } }
.game { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.game p { color: var(--muted); }
.game p strong { color: var(--text); }
.game.featured { border-color: var(--emerald-deep); box-shadow: 0 0 0 1px rgba(34, 197, 94, .15), 0 10px 30px -12px rgba(34, 197, 94, .25); }
.game-head { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.game-head h3 { margin: 0; font-family: var(--pixel); font-weight: 400; font-size: 1rem; }
.game-sub { margin: .25rem 0 0; font-size: .9rem; }
.game-icon { width: 44px; height: 44px; image-rendering: pixelated; flex: none; }
.game-status { margin: 0 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9rem;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; }
.game-status.is-online .txt { color: var(--emerald); }
.game-status.is-offline .txt { color: var(--red); }
.tags { list-style: none; padding: 0; margin: 1.1rem 0 .4rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-size: .8rem; font-weight: 700; color: var(--emerald-soft); background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .25); border-radius: 3px; padding: .15rem .55rem; }
.game-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.game.soon { border-style: dashed; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.soon-icon { width: 44px; height: 44px; display: grid; place-items: center; font-family: var(--pixel); font-size: 1.1rem; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); margin-bottom: .75rem; }
.game.soon h3 { margin-top: 0; }
.discord-box { margin-top: 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.discord-box p { margin: 0; }

/* ---------- new player guide (eco.lgcraft.net/guide/) ---------- */
.guide-hero { padding-bottom: 3rem; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; max-width: 46rem; margin: 0 auto; }
.toc a { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem;
  font-size: .88rem; font-weight: 600; color: var(--text); text-decoration: none; }
.toc a:hover { border-color: var(--emerald-deep); color: var(--emerald-soft); }
.lead { text-align: center; color: var(--muted); font-size: 1.05rem; max-width: 40rem; margin: -1rem auto 1.75rem; }
.center { text-align: center; margin-top: 2rem; }
kbd { font-family: var(--mono); font-size: .85em; background: var(--panel-2); border: 1px solid var(--line);
  border-bottom-width: 3px; border-radius: 3px; padding: 0 .4em; }
.panel + .panel, .panel + .grid, .grid + .panel, .panel + .tip, .grid + .tip, .grid + .cmd-list, .cmd-list + .tip,
.grid + .facts { margin-top: 1rem; }
.panel h3 { margin-top: 0; }
.tip { background: rgba(245, 197, 66, .07); border: 1px solid rgba(245, 197, 66, .3); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: .9rem 1.1rem; }
.tip p { margin: 0; }
.tip strong:first-child { color: var(--gold); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid.two .panel { margin: 0; max-width: none; }
.card code, .panel code, .tip code, .cmd-list code, .cmd-table code, .faq code { white-space: normal; }

/* money loop: four numbered steps */
.flow { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.flow .card:hover { transform: none; }
.flow-n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .4rem; border-radius: var(--radius);
  background: #3a2f0c; border: 1px solid #6b5412; color: var(--gold); font-family: var(--pixel); font-size: .8rem; }
.flush { padding: 0; }

.cmd-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1.1rem; }
.cmd-list p { margin: 0; padding: .6rem 0; color: var(--muted); }
.cmd-list p + p { border-top: 1px dashed var(--line); }
.cmd-list p > code:first-child { color: var(--emerald-soft); margin-right: .4rem; }

.facts { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.facts li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem 1rem .6rem 2.4rem; position: relative; }
.facts li::before { content: "✔"; position: absolute; left: .9rem; color: var(--emerald); }

.cmd-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.cmd-table th, .cmd-table td { text-align: left; padding: .55rem .9rem; border-top: 1px solid var(--line); vertical-align: top; }
.cmd-table thead th { border-top: 0; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.cmd-table tbody th { background: var(--panel-2); color: var(--emerald-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.cmd-table td:first-child { width: 42%; }
.cmd-table td:last-child { color: var(--muted); }
@media (max-width: 560px) {
  .cmd-table thead { display: none; }
  .cmd-table tr, .cmd-table td { display: block; width: auto !important; }
  .cmd-table td { border-top: 0; padding: 0 .9rem .5rem; }
  .cmd-table td:first-child { border-top: 1px solid var(--line); padding-top: .6rem; }
  .cmd-table tbody th { display: block; }
}

.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; }
.faq summary:hover { color: var(--emerald-soft); }
.faq details[open] summary { border-bottom: 1px dashed var(--line); }
.faq details p { margin: 0; padding: .8rem 1.1rem 1rem; color: var(--muted); }

/* ---------- Emerald Hills scene (eco.lgcraft.net only: <body class="has-scene">) ----------
   Fixed parallax layers behind the page. /shared/scene.js sets --p on <html> (0 at the top of the page,
   1 at the bottom); each landscape layer sinks by a different amount, so the camera seems to rise.
   Art: /shared/img/scene/*.webp, made from the Gemini images in web/scene/src by web/scene/process_layers.py. */
.scene { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1;
  overflow: hidden; pointer-events: none; background: linear-gradient(#0b5fc4, #5a8fd8 60%, #f0a24a); }
.scene > div { position: absolute; left: 0; right: 0; will-change: transform; }
.scene-sky { inset: 0; background: url("img/scene/sky.webp") 72% 70% / cover no-repeat; }
/* Clouds: a seamless strip (aspect 7.1339) drifting left by exactly one tile width. */
.scene-clouds { top: 2vh; height: 30vh; transform: translate3d(0, calc(var(--p, 0) * 4vh), 0); }
.scene-clouds-track { height: 100%; width: calc(100% + 214.02vh); animation: cloud-drift 260s linear infinite;
  background: url("img/scene/clouds.webp") 0 0 / auto 100% repeat-x; will-change: transform; }
@keyframes cloud-drift { to { transform: translate3d(-214.02vh, 0, 0); } }
@keyframes cloud-drift-sm { to { transform: translate3d(-156.95vh, 0, 0); } } /* 22vh x 7.1339 */
/* All three landscape layers share one box (the images' 1584x672 shape, at least 56vh tall), so at the top of
   the page they line up like a single picture. On narrow screens `cover` crops the sides. */
.scene-hills { bottom: 0; height: max(56vh, 42.42vw); background-position: 50% 100%; background-size: cover;
  background-repeat: no-repeat; }
.scene-far  { background-image: url("img/scene/far.webp");  transform: translate3d(0, calc(var(--p, 0) * 6vh), 0); }
.scene-mid  { background-image: url("img/scene/mid.webp");  transform: translate3d(0, calc(var(--p, 0) * 12vh), 0); }
.scene-near { background-image: url("img/scene/near.webp"); transform: translate3d(0, calc(var(--p, 0) * 22vh), 0); }

/* Readability over a bright scene: dark translucent surfaces (no blur, to keep phones smooth) and a lighter
   --muted. Worst case (pure white behind): muted text >= 4.87:1, body text >= 8.4:1. */
.has-scene { --muted: #aab7c2; }
.has-scene .hero { display: flex; align-items: flex-start; min-height: 88vh; min-height: 88svh; background: none;
  border-bottom: 0; padding: 3rem 0 4rem; }
.has-scene .hero > .wrap { width: min(44rem, 100% - 2rem); padding: 2.25rem 1.75rem 2rem;
  background: rgba(10, 16, 24, .84); border: 1px solid rgba(255, 255, 255, .08); border-bottom: 4px solid rgba(0, 0, 0, .45);
  border-radius: var(--radius); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); }
.has-scene .hero .tagline { margin-bottom: 1.5rem; }
.has-scene .hero .pills { margin: 1.25rem auto 1.5rem; }
.has-scene .section { background: rgba(16, 20, 24, .80); }
.has-scene .section.alt { background: rgba(21, 27, 33, .88); }
.has-scene .footer { background: rgba(16, 20, 24, .9); }
@media (max-width: 760px) {
  /* Phones show only a slice of the landscape: slide it to the left side (castle + market stall). */
  .scene-hills { background-position: 22% 100%; }
  .scene-sky { background-position: 62% 70%; }
}
@media (max-width: 560px) {
  .has-scene .hero { min-height: 84svh; padding: 1.5rem 0 3rem; }
  .has-scene .hero > .wrap { padding: 1.75rem 1.1rem 1.5rem; }
  .scene-clouds { height: 22vh; }
  .scene-clouds-track { width: calc(100% + 156.95vh); animation-name: cloud-drift-sm; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-clouds-track { animation: none; }
}
