@font-face {
  font-family: PreviewSans;
  src: url("./DejaVuSans.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Pixel2026;
  src: url("./assets/2026/font/PressStart2P-Regular.ttf") format("truetype");
  font-display: block;
}

:root {
  color-scheme: dark;
  --page: #0b1120;
  --panel: #121b2d;
  --panel-soft: #162137;
  --line: #2a3851;
  --text: #f5f7fc;
  --muted: #aab8d0;
  --orange: #ff9b6e;
  --blue: #9fc9ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font: 16px/1.55 PreviewSans, system-ui, sans-serif;
}
button, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { color: #0b1120; background: #ffb183; }

.wrap { width: min(100% - 48px, 1460px); margin-inline: auto; }
.site-header, main, .site-footer { position: relative; z-index: 1; }
#page-lava {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%; pointer-events: none;
  opacity: .24; filter: blur(22px) saturate(1.1);
}
body { overflow-x: hidden; }
.skip-link {
  position: fixed; z-index: 10; left: 16px; top: -60px;
  padding: 8px 14px; border-radius: 8px; background: #fff; color: #111;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.site-header {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 96px; gap: 30px; border-bottom: 1px solid #ffffff16;
}
.identity { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.1; }
.identity-mark { display: grid; place-items: center; width: 42px; height: 42px; }
.identity-mark img { display: block; width: 42px; height: 42px; object-fit: contain; }
.identity strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.identity small { display: block; margin-top: 5px; color: #899ab9; font-size: 9px; font-weight: 700; letter-spacing: .21em; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
.site-nav a {
  padding: 8px 0; color: #c5d0e1; font-size: 13px;
  text-decoration: none; transition: color .2s ease;
}
.site-nav a:hover, .site-footer a:hover { color: #fff; }
.site-nav .source-link {
  padding: 9px 15px; border: 1px solid #4a5a78; border-radius: 999px;
  color: #f5f7fc;
}
.source-link span { color: var(--orange); }

.hero {
  display: grid;
  grid-template-columns: minmax(270px, .63fr) minmax(0, 1.75fr);
  align-items: start; gap: clamp(36px, 5vw, 80px);
  padding-block: clamp(42px, 5vw, 72px) clamp(80px, 8vw, 112px);
}
.hero-copy { max-width: 400px; padding-top: clamp(28px, 4vw, 58px); }
.eyebrow { margin: 0 0 21px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .24em; }
.eyebrow-line { display: inline-block; width: 18px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--orange); }
.hero h1 {
  max-width: 450px; margin: 0;
  font-size: clamp(2.6rem, 4.3vw, 5rem); line-height: 1.06;
  font-weight: 760; letter-spacing: -.057em;
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-description { max-width: 360px; margin: 27px 0 28px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.primary-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 46px; padding: 10px 18px; border-radius: 11px;
  background: linear-gradient(100deg, #ffb08b, #ff805e); color: #172033;
  font-size: 13px; font-weight: 750; text-decoration: none;
  box-shadow: 0 12px 35px #ff815a2b;
}
.primary-link:hover { filter: brightness(1.08); }
.hero-footnote { display: flex; align-items: center; gap: 9px; margin: 26px 0 0; color: #8fa0bc; font-size: 12px; }
.live-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #96eac8; box-shadow: 0 0 10px #70e8b9a3; }

.preview-column { min-width: 0; scroll-margin-top: 30px; }
.demo-shell {
  overflow: hidden; border: 1px solid #526283; border-radius: 18px;
  background: #121a2b; box-shadow: 0 28px 80px #0307118a, 0 0 0 5px #ffffff06;
}
.demo-topbar {
  display: flex; align-items: center; gap: 12px;
  height: 42px; padding: 0 16px;
  border-bottom: 1px solid #28364e; background: #121b2e;
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #5f708c; }
.window-dots i:first-child { background: #ff9a79; }
.window-dots i:nth-child(2) { background: #f8c77c; }
.demo-title { color: #a2b3cf; font-size: 10px; font-weight: 750; letter-spacing: .19em; }
.demo-engine { margin-left: auto; color: #95a6c1; font: 10px/1.3 ui-monospace, SFMono-Regular, monospace; letter-spacing: .04em; }
.preview-choices { padding: 13px 17px; border-bottom: 1px solid #28364e; background: #141e31; }
.choice-row { display: grid; grid-template-columns: 162px minmax(0, 1fr); align-items: center; gap: 14px; }
.choice-row + .choice-row { margin-top: 11px; padding-top: 11px; border-top: 1px solid #28364e; }
.choice-heading { display: flex; align-items: center; gap: 9px; color: #eff4fb; font-size: 12px; font-weight: 700; }
.choice-heading small { display: block; color: #9aacc7; font-size: 10px; font-weight: 450; line-height: 1.35; }
.choice-heading #appearance-description { min-height: 5.4em; }
.choice-index { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border: 1px solid #526788; border-radius: 7px; color: #b3c7e6; font: 10px ui-monospace, monospace; }
.year-tabs, .appearance-options { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.year-tabs button, .appearance-options button {
  min-height: 35px; padding: 6px 13px; border: 1px solid #42516b; border-radius: 8px;
  background: #1b283e; color: #dce5f4; font-size: 12px; font-weight: 650;
  transition: background .15s, border-color .15s, color .15s;
}
.year-tabs button { display: inline-flex; align-items: baseline; justify-content: center; gap: 7px; min-width: 94px; }
.year-tabs button small { color: #a2b4cf; font-size: 10px; font-weight: 450; }
.year-tabs button:hover, .appearance-options button:hover { border-color: #9bb0ce; }
.year-tabs button[aria-pressed="true"] { border-color: var(--orange); background: #ff9b6e24; color: #ffbd9d; }
.appearance-options button[aria-pressed="true"] {
  border-color: var(--appearance-accent, var(--orange));
  background: color-mix(in srgb, var(--appearance-accent, var(--orange)) 15%, #1b283e);
  color: var(--appearance-accent, var(--orange));
}
/* Hue rotation operates in each renderer's palette; it never adds an
   image layer over the source animation. */
.hue-row[hidden] { display: none; }
.hue-control { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 64px; }
.hue-wheel {
  position: relative; width: 62px; height: 62px; flex: none; border-radius: 50%;
  background: conic-gradient(#ffbf3e, #f6589a, #8a63e8, #40c2ff, #55ff79, #ffbf3e);
  box-shadow: 0 0 0 1px #cbd6eb78, 0 0 0 5px #10192c;
  cursor: crosshair; touch-action: none;
}
.hue-wheel::before {
  content: ""; position: absolute; inset: 14px; border-radius: 50%;
  background: #141e31; box-shadow: inset 0 0 0 1px #cbd6eb78;
}
.hue-wheel:focus-visible { outline: 3px solid white; outline-offset: 6px; }
.hue-pointer {
  position: absolute; inset: 0; z-index: 1; transform: rotate(0deg); pointer-events: none;
}
.hue-pointer::after {
  content: ""; position: absolute; top: 2px; left: calc(50% - 5px);
  width: 10px; height: 10px; border-radius: 50%; background: white;
  border: 2px solid #141e31; box-shadow: 0 0 0 1px white;
}
.hue-value { min-width: 125px; color: #e1e9f6; font: 12px ui-monospace, monospace; }
.hue-reset {
  min-height: 34px; padding: 5px 10px; color: #dde8f8; background: #1b283e;
  border: 1px solid #42516b; border-radius: 8px; font-size: 11px;
}
.hue-reset:hover { border-color: #9bb0ce; }
.stage-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; min-width: 0; padding: 12px;
  background: #080d19;
}
#stage {
  position: relative; flex: none;
  width: min(100%, 960px); aspect-ratio: 16 / 9;
  overflow: hidden; border-radius: 8px;
  background: #15192b; box-shadow: 0 0 0 1px #ffffff26;
}
#stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#diagnostic {
  position: absolute; top: 22px; right: 22px; z-index: 2;
  padding: 10px 12px; border: 1px solid #ffffff40; border-radius: 7px;
  background: #090d18e8; color: #fff;
  font: 11px/1.5 ui-monospace, SFMono-Regular, monospace; white-space: pre;
}
.stage-wrap:fullscreen { width: 100vw; height: 100vh; padding: 24px; background: #080d19; }

.preview-toolbar { padding: 18px; }
.control-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.preview-toolbar > .control-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.control-grid label {
  display: flex; flex-direction: column; gap: 7px; min-width: 0;
  color: #9dadc7; font-size: 10px; font-weight: 750; letter-spacing: .085em; text-transform: uppercase;
}
.control-grid select {
  min-width: 0; width: 100%; min-height: 39px; padding: 7px 28px 7px 10px;
  border: 1px solid #42516b; border-radius: 8px;
  background: #1b283e; color: #f3f5fb; font-size: 12px;
  letter-spacing: 0; text-transform: none;
}
.control-grid select:hover { border-color: #8395b4; }
.preview-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #2a3851;
}
.render-status { display: inline-flex; align-items: center; gap: 8px; color: #afbed4; font-size: 11px; }
.action-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-button {
  min-height: 32px; padding: 5px 10px; border: 1px solid #465672; border-radius: 7px;
  background: #1b283e; color: #edf3fb; font-size: 11px; font-weight: 650;
}
.tool-button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.tool-button:hover { border-color: var(--orange); }
.tool-button[aria-pressed="true"] { border-color: var(--orange); color: var(--orange); }
.tool-button:disabled { cursor: not-allowed; opacity: .45; }
#error { margin: 13px 0 0; padding: 10px 14px; border: 1px solid #f5969633; border-radius: 8px; background: #a81c2c20; color: #ffc7c7; font-size: 12px; }
#error:empty { display: none; }
html[data-test="pass"] #error { border-color: #72d9a54d; background: #1c7c4d24; color: #b9f2d2; }
.preview-caption { margin: 15px 2px 0; color: #8799b4; font-size: 11px; }
.preview-caption a { color: #ffb18e; text-underline-offset: 3px; }
kbd { padding: 2px 5px; border: 1px solid #52617a; border-radius: 4px; color: #c4d1e5; font: 10px ui-monospace, monospace; }

.themes-section { padding-bottom: clamp(80px, 8vw, 126px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 29px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 3vw, 3.1rem); line-height: 1.1; letter-spacing: -.045em; }
.section-heading > p { max-width: 310px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.theme-card {
  min-width: 0; padding: 0; overflow: hidden; text-align: left;
  border: 1px solid #3a4b68; border-radius: 13px;
  background: #162036; color: var(--text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.theme-card:hover { transform: translateY(-3px); border-color: #8295b5; }
.theme-card[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 1px #ff9b6e65, 0 15px 35px #0005; }
.theme-image { position: relative; display: block; width: 100%; aspect-ratio: 16 / 8; overflow: hidden; background: #26334e; }
.theme-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.theme-live {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  overflow: hidden; pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.theme-card[data-playing="true"] .theme-live { opacity: 1; visibility: visible; }
.theme-stage { position: relative; display: block; flex: none; }
.theme-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.theme-details { display: flex; flex-direction: column; align-items: start; min-height: 170px; padding: 17px 18px 19px; }
.theme-number { color: #b7c6df; font: 11px ui-monospace, SFMono-Regular, monospace; }
.theme-details strong { margin: 6px 0 2px; font-size: 18px; letter-spacing: -.02em; }
.theme-details > span:nth-of-type(2) { color: #aab8d0; font-size: 12px; line-height: 1.45; }
.theme-cta { margin-top: auto; padding-top: 14px; color: #ffad8a; font-size: 11px; font-weight: 750; }
.theme-cta span { padding-left: 3px; }

.shader-section { padding-bottom: clamp(80px, 8vw, 126px); scroll-margin-top: 100px; }
.shader-searchbar {
  display: flex; align-items: end; flex-wrap: wrap; gap: 10px;
  padding: 16px; margin-bottom: 15px; border: 1px solid #3a4b68;
  border-radius: 14px; background: #111b2eeb;
}
.shader-searchbar > label:not(.shader-fast) { display: grid; gap: 5px; color: #bfcee3; font-size: 12px; }
.shader-searchbar > label[for="shader-search"] { flex: 1 1 340px; }
.shader-searchbar > label[for="shader-format"] { flex: 0 1 220px; }
.shader-searchbar input[type="search"], .shader-searchbar select {
  display: block; width: 100%; min-height: 43px; padding: 10px 12px;
  border: 1px solid #536481; border-radius: 8px; outline-offset: 3px;
  background: #0c1527; color: #f5f7fc; font: inherit;
}
.shader-fast { display: flex; align-items: center; gap: 8px; min-height: 43px; color: #d4e3f8; font-size: 13px; white-space: nowrap; }
.shader-fast input { width: 16px; height: 16px; accent-color: #ff9b6e; }
.shader-count, .shader-note { color: var(--muted); font-size: 13px; }
.shader-count { margin: 0 0 15px; }
.shader-note { margin: 20px 0 0; }
.shader-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.shader-card { min-width: 0; overflow: hidden; border: 1px solid #3a4b68; border-radius: 13px; background: #162036; }
.shader-card:hover, .shader-card:focus-within { border-color: #9fc9ff; box-shadow: 0 16px 32px #0005; }
.shader-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #11192a; }
.shader-card-media img, .shader-card-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shader-card-media canvas { display: none; }
.shader-card[data-playing="true"] .shader-card-media canvas { display: block; }
.shader-card[data-playing="true"] .shader-card-media img { visibility: hidden; }
.shader-card-body { padding: 17px 18px 20px; }
.shader-card-body h3 { margin: 6px 0 2px; font-size: 18px; line-height: 1.25; }
.shader-card-body p { margin: 0; color: var(--muted); font-size: 12px; }
.shader-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0 18px; }
.shader-card-meta span { padding: 3px 7px; border: 1px solid #536481; border-radius: 5px; color: #c5d6ef; font: 11px ui-monospace, monospace; }
.shader-card-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.shader-card-actions a, .shader-card-actions button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px;
  padding: 6px 12px; border: 1px solid #65799a; border-radius: 7px;
  background: #223451; color: #f5f7fc; text-decoration: none; font: 700 12px PreviewSans, sans-serif;
}
.shader-card-actions a:hover, .shader-card-actions button:hover { background: #36527d; }
@media (max-width: 950px) { .shader-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .shader-grid { grid-template-columns: 1fr; } .shader-searchbar > label[for="shader-format"] { flex: 1 1 160px; } }

.credits-section { padding-bottom: clamp(80px, 8vw, 126px); scroll-margin-top: 100px; }
.credits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.credit-card {
  padding: 25px; border: 1px solid #34435d; border-radius: 13px;
  background: #172238;
}
.credit-card h3 { margin: 8px 0 12px; font-size: 18px; }
.credit-card p, .credits-note { margin: 0; color: #b9c7dc; font-size: 12px; line-height: 1.75; }
.credits-note { max-width: 1180px; margin-top: 24px; font-size: 13px; }
.credits-section a { color: #aed0ff; text-underline-offset: 3px; }
.credits-section a:hover { color: #fff; }

.guide-section { padding-block: clamp(72px, 7vw, 110px); border-top: 1px solid #ffffff16; background: linear-gradient(180deg, #10192b, #0c1322); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.guide-step {
  min-width: 0; padding: 25px; border: 1px solid #34435d; border-radius: 13px;
  background: #172238;
}
.step-index {
  display: grid; place-items: center; width: 35px; height: 35px;
  border: 1px solid #7284b1; border-radius: 50%; color: #dbe7ff;
  background: #35456d; font: 700 13px ui-monospace, SFMono-Regular, monospace;
}
.guide-step h3 { margin: 19px 0 4px; font-size: 18px; letter-spacing: -.02em; }
.guide-step p { min-height: 47px; margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.guide-step pre {
  min-height: 85px; margin: 0; padding: 14px; overflow-x: auto;
  border: 1px solid #3c4c6a; border-radius: 8px;
  background: #10192b; color: #e3ecfd;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.guide-step:nth-child(2) pre { min-height: 147px; }
.guide-step code { font: inherit; }
.guide-step p code, .guide-footer code {
  padding: 2px 4px; border-radius: 4px; background: #26364e;
  color: #e4efff; font: .93em ui-monospace, SFMono-Regular, Consolas, monospace;
}
.config-panel {
  margin-top: 24px; padding: clamp(20px, 3vw, 34px);
  border: 1px solid #526283; border-radius: 15px;
  background: #172238;
  scroll-margin-top: 24px;
}
.config-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.config-heading .eyebrow { margin-bottom: 8px; }
.config-heading h3 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.035em; }
.config-heading > p { max-width: 400px; margin: 0; color: var(--muted); font-size: 12px; }
.config-options { margin-top: 24px; border: 1px solid #3c4c6a; border-radius: 9px; }
.config-options summary { padding: 12px 16px; color: #e3ecfd; cursor: pointer; font-size: 13px; font-weight: 700; }
.config-options .control-grid { padding: 0 16px 16px; }
.config-options input[type="number"] {
  min-width: 0; width: 100%; min-height: 39px; padding: 7px 10px;
  border: 1px solid #42516b; border-radius: 8px;
  background: #1b283e; color: #f3f5fb; font-size: 12px;
  letter-spacing: 0; text-transform: none;
}
.config-options input:invalid { border-color: #ff8f8f; }
.config-options .config-checkbox { flex-direction: row; align-items: center; font-size: 11px; letter-spacing: 0; text-transform: none; }
.config-checkbox input { width: 18px; height: 18px; accent-color: #ff9b6e; }
.config-output-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 22px 0 10px; color: #d7e4f7; font-size: 13px; }
.config-output-heading code, .config-note code { color: #f1d2bc; font: .93em ui-monospace, SFMono-Regular, Consolas, monospace; }
.config-code {
  margin: 0; padding: 18px; max-height: 570px; overflow: auto;
  border: 1px solid #3c4c6a; border-radius: 9px;
  background: #0c1424; color: #e3ecfd;
  font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre;
}
.config-code code { font: inherit; }
.config-error { margin: 0 0 10px; color: #ffc7c7; font-size: 12px; }
.config-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.guide-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
  margin-top: 24px; padding: 21px 0 0; border-top: 1px solid #34435d;
}
.guide-footer p { max-width: 770px; margin: 0; color: #b9c7dc; font-size: 13px; line-height: 1.6; }
.guide-footer p strong { color: #f2f6fd; }
.guide-footer a { flex: none; color: #ffb18e; font-size: 13px; font-weight: 700; text-decoration: none; }
.guide-footer a:hover { text-decoration: underline; }

.site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 22px;
  min-height: 95px; color: #8fa0b9; font-size: 12px;
}
.site-footer > span:last-child { display: flex; gap: 24px; }
.site-footer a { color: #b5c4dc; text-decoration: none; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 35px; padding-top: 62px; }
  .hero-copy { max-width: 720px; padding-top: 0; }
  .hero h1 { max-width: 700px; }
  .hero-description { max-width: 660px; }
  .preview-column { width: min(100%, 960px); }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 1460px); }
  .site-header { min-height: 78px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 11px; }
  .site-nav a:first-child, .site-nav a:nth-child(2) { display: none; }
  .hero { padding-block: 48px 72px; }
  .hero h1 { font-size: clamp(2.6rem, 9vw, 4rem); }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .theme-grid, .guide-grid, .credits-grid { grid-template-columns: 1fr; }
  .config-heading { align-items: start; flex-direction: column; gap: 10px; }
  .choice-row { grid-template-columns: 1fr; gap: 7px; }
  .theme-card { display: grid; grid-template-columns: 42% 1fr; }
  .theme-image { height: 100%; aspect-ratio: auto; }
  .theme-details { min-height: 170px; }
  .guide-footer { align-items: start; flex-direction: column; gap: 14px; }
}
@media (max-width: 580px) {
  .site-nav a:nth-child(3), .site-nav a:nth-child(4) { display: none; }
  .identity small { font-size: 8px; }
  .hero-description { font-size: 15px; }
  .demo-topbar { height: 36px; padding-inline: 11px; }
  .demo-title, .demo-engine { font-size: 8px; }
  .stage-wrap { padding: 7px; }
  #stage { border-radius: 5px; }
  #diagnostic { top: 11px; right: 11px; font-size: 9px; }
  .preview-toolbar { padding: 12px; }
  .preview-choices { padding: 11px; }
  .year-tabs button { flex: 1; min-width: 0; }
  .year-tabs button small { display: none; }
  .appearance-options button { flex: 1; }
  .control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .preview-toolbar > .control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .config-output-heading { align-items: start; flex-direction: column; }
  .preview-actions { align-items: start; flex-direction: column; }
  .action-buttons { width: 100%; }
  .tool-button { flex: 1; }
  .theme-card { grid-template-columns: 1fr; }
  .theme-image { aspect-ratio: 16 / 7; }
  .theme-details { min-height: 145px; }
  .site-footer { align-items: start; flex-direction: column; justify-content: center; padding-block: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
