:root {
  --content-max: 1280px;
  --paper: #f6eddc;
  --paper-soft: rgba(246, 237, 220, 0.78);
  --ink: #08100d;
  --ink-soft: rgba(6, 11, 10, 0.88);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 214, 175, 0.28);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  --radius-large: 32px;
  --copper: #cb7a46;
  --copper-bright: #ffb05a;
  --copper-deep: #7d4324;
  --forest: #101914;
  --forest-soft: rgba(10, 16, 13, 0.76);
  --panel: linear-gradient(180deg, rgba(10, 15, 14, 0.84), rgba(8, 12, 12, 0.58));
  --heading-font: Rockwell, Cambria, "Bookman Old Style", Georgia, serif;
  --body-font: "Trebuchet MS", "Gill Sans", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  color: var(--paper);
  background: #030607;
}

body.auth-modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea,
select,
input {
  font: inherit;
}

code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.92em;
  color: #ffd29a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.depth-world {
  position: relative;
  background:
    radial-gradient(circle at top, rgba(255, 232, 194, 0.06), transparent 34%),
    linear-gradient(180deg, #04090a 0%, #050808 42%, #090202 100%);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(var(--content-max), calc(100vw - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(10, 15, 13, 0.9), rgba(9, 13, 12, 0.74));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.header-account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 226, 184, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 237, 220, 0.82);
}

.header-account-copy {
  font-size: 0.88rem;
  white-space: nowrap;
}

.header-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 223, 190, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff0da;
  cursor: pointer;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffbf7a, #ac5c31);
  box-shadow:
    0 0 0 1px rgba(255, 226, 184, 0.24),
    0 10px 18px rgba(0, 0, 0, 0.28);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 14px;
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8d5630, #5a331b);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-family: var(--heading-font);
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.brand-tagline {
  color: rgba(246, 237, 220, 0.64);
  font-size: 0.78rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: rgba(246, 237, 220, 0.82);
  font-size: 0.96rem;
}

.site-nav a,
.header-cta,
.button {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff3df;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 226, 184, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff0da;
}

.header-cta:hover,
.header-cta:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.button-primary {
  color: #2a1307;
  background: linear-gradient(180deg, #ffbd67, #db7e37);
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 219, 0.62),
    0 16px 24px rgba(134, 69, 26, 0.28);
}

.button-secondary {
  border-color: rgba(255, 224, 190, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper);
}

.button-danger {
  border-color: rgba(246, 148, 148, 0.22);
  background: rgba(193, 84, 84, 0.16);
  color: #ffd7d7;
}

.button:focus-visible,
.site-nav a:focus-visible,
.header-cta:focus-visible,
textarea:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(255, 194, 118, 0.8);
  outline-offset: 2px;
}

main {
  position: relative;
  z-index: 1;
}

.depth-band {
  position: relative;
  min-height: 100svh;
  padding: 124px clamp(16px, 2.8vw, 34px) 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: clip;
  scroll-margin-top: 104px;
}

.depth-band::before,
.depth-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.depth-band::before {
  z-index: -2;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.depth-band::after {
  z-index: -1;
}

.depth-band-top::before {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.04) 28%, rgba(0, 0, 0, 0.32) 58%, rgba(0, 0, 0, 0.78) 100%),
    url("../images/Minecraft-Top.jpg");
}

.depth-band-top::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.16) 42%, rgba(0, 0, 0, 0.64) 72%, rgba(0, 0, 0, 0.96) 100%);
}

.depth-band-middle::before {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.24) 24%, rgba(0, 0, 0, 0.2) 54%, rgba(0, 0, 0, 0.92) 100%),
    url("../images/Minecraft-Middle.jpg");
}

.depth-band-middle::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.82) 14%, rgba(0, 0, 0, 0.22) 34%, rgba(0, 0, 0, 0.18) 66%, rgba(0, 0, 0, 0.82) 86%, rgba(0, 0, 0, 1) 100%);
}

.depth-band-bottom::before {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.3) 22%, rgba(0, 0, 0, 0.14) 52%, rgba(0, 0, 0, 0.72) 100%),
    url("../images/Minecraft-Bottom.jpg");
}

.depth-band-bottom::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.76) 18%, rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.36) 76%, rgba(0, 0, 0, 0.92) 100%);
}

.hero-band {
  align-items: center;
}

.hero-shell,
.section-shell {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
}

.hero-shell {
  display: grid;
  gap: 20px;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(1080px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-kicker,
.section-kicker,
.sample-model,
.process-number,
.stat-label {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
  color: rgba(255, 192, 138, 0.92);
}

h1,
h2,
h3,
.brand-name {
  font-family: var(--heading-font);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.035em;
}

.hero-stack h1 {
  max-width: 11ch;
  font-size: clamp(3.25rem, 7vw, 6.1rem);
  line-height: 0.9;
  text-wrap: balance;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
}

.hero-lede,
.section-heading p,
.gallery-summary,
.hero-caption,
.hero-guidance,
.job-meta,
.job-result-warnings,
.empty-state p,
.run-prompt,
.featured-copy p,
.process-card p,
.site-footer p {
  color: var(--paper-soft);
  line-height: 1.68;
}

.hero-lede {
  max-width: 44ch;
  margin: 0;
  font-size: 1.06rem;
  text-wrap: balance;
}

.prompt-panel {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(1000px, 100%);
  padding: 10px;
  border: 1px solid rgba(255, 213, 170, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 188, 125, 0.08), rgba(130, 67, 35, 0.16)),
    linear-gradient(180deg, rgba(76, 44, 28, 0.96), rgba(44, 27, 20, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 212, 0.18),
    inset 0 -1px 0 rgba(43, 19, 10, 0.62),
    0 20px 56px rgba(0, 0, 0, 0.28);
}

.prompt-panel.is-locked {
  opacity: 0.86;
}

.prompt-panel::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 206, 153, 0.18);
  border-radius: 18px;
  pointer-events: none;
}

.prompt-main-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

#generation-prompt {
  width: 100%;
  min-height: 74px;
  resize: none;
  overflow: hidden;
  padding: 18px 22px;
  border: 1px solid rgba(255, 210, 167, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(27, 19, 15, 0.98), rgba(12, 10, 8, 0.95));
  color: var(--paper);
  box-shadow:
    inset 0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.18);
}

#generation-prompt::placeholder {
  color: rgba(246, 237, 220, 0.62);
}

.prompt-submit {
  min-width: 196px;
  min-height: 74px;
  align-self: stretch;
  border-radius: 16px;
  font-size: 1rem;
}

.generation-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.setting-field {
  display: grid;
  gap: 6px;
  text-align: left;
}

.setting-field span {
  padding-left: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 209, 168, 0.86);
}

.setting-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 210, 167, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(25, 18, 14, 0.96), rgba(11, 10, 9, 0.94));
  color: var(--paper);
  box-shadow:
    inset 0 10px 24px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.14);
}

.setting-field select option {
  color: #1b140f;
  background: #f6eddc;
}

.setting-field-static {
  align-content: end;
}

.setting-static-value {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 210, 167, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(25, 18, 14, 0.96), rgba(11, 10, 9, 0.94));
  color: var(--paper);
  box-shadow:
    inset 0 10px 24px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.14);
}

.setting-cost-value {
  justify-content: flex-start;
  font-family: var(--heading-font);
  font-size: 1.1rem;
  line-height: 1;
  color: #ffe4bc;
  border-color: rgba(255, 192, 128, 0.18);
  background:
    linear-gradient(180deg, rgba(31, 21, 16, 0.98), rgba(13, 10, 8, 0.94));
}

.hero-caption {
  margin: 0;
}

.auth-panel {
  width: min(1020px, 100%);
  padding: 18px;
  border: 1px solid rgba(255, 213, 170, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(17, 16, 13, 0.92), rgba(10, 10, 10, 0.76)),
    rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 226, 184, 0.1), transparent 32%),
    rgba(4, 6, 7, 0.76);
  backdrop-filter: blur(12px);
}

.auth-modal-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-modal-panel {
  position: relative;
  width: min(1020px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 226, 184, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff0da;
  cursor: pointer;
}

.auth-signed-out,
.auth-signed-in {
  display: grid;
  gap: 18px;
}

.auth-intro {
  display: grid;
  gap: 10px;
}

.auth-intro h2,
.auth-signed-in h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 0.98;
}

.auth-intro p,
.auth-signed-in p,
.auth-feedback,
.auth-gate {
  margin: 0;
  color: var(--paper-soft);
  line-height: 1.68;
}

.auth-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 227, 191, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(26, 19, 15, 0.96), rgba(12, 10, 8, 0.92));
  text-align: left;
}

.auth-form h3 {
  font-size: 1.4rem;
  line-height: 1;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 209, 168, 0.86);
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 210, 167, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(25, 18, 14, 0.96), rgba(11, 10, 9, 0.94));
  color: var(--paper);
  box-shadow:
    inset 0 10px 24px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.14);
}

.auth-feedback {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.auth-feedback.is-error {
  border-color: rgba(246, 148, 148, 0.24);
  background: rgba(193, 84, 84, 0.18);
  color: #ffd0d0;
}

.auth-feedback.is-success {
  border-color: rgba(161, 238, 180, 0.22);
  background: rgba(89, 173, 111, 0.18);
  color: #d8fbe0;
}

.auth-feedback.is-info {
  border-color: rgba(135, 214, 194, 0.22);
  background: rgba(87, 165, 145, 0.18);
  color: #cef3e8;
}

.auth-signed-in {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.auth-signed-in-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.auth-signed-in-copy {
  display: grid;
  gap: 10px;
  text-align: left;
}

.auth-gate {
  min-height: 1.68em;
}

.auth-inline-link {
  color: #ffe2bb;
  text-decoration: underline;
  text-decoration-color: rgba(255, 194, 118, 0.42);
  text-underline-offset: 0.18em;
}

.auth-inline-link:hover,
.auth-inline-link:focus-visible {
  color: #fff3df;
}

.hero-guidance {
  margin: -2px 0 0;
  min-height: 1.68em;
  font-size: 0.96rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-scroll-cue {
  justify-self: center;
  align-self: end;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 12, 11, 0.48);
  color: rgba(246, 237, 220, 0.72);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.mini-pill,
.pill,
.fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 11, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mini-pill {
  font-size: 0.88rem;
}

.pill {
  font-size: 0.84rem;
}

.pill-warm {
  background: rgba(217, 132, 68, 0.22);
  border-color: rgba(255, 190, 135, 0.3);
  color: #ffd4a3;
}

.pill-accent {
  background: rgba(87, 165, 145, 0.22);
  border-color: rgba(135, 214, 194, 0.24);
  color: #cef3e8;
}

.pill-success {
  background: rgba(89, 173, 111, 0.22);
  border-color: rgba(161, 238, 180, 0.22);
  color: #d8fbe0;
}

.pill-danger {
  background: rgba(193, 84, 84, 0.22);
  border-color: rgba(246, 148, 148, 0.28);
  color: #ffd0d0;
}

.pill-outline {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.job-panel,
.process-card,
.schematic-guide,
.featured-panel,
.stat-card,
.run-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.job-panel {
  width: min(780px, 100%);
  padding: 18px 20px;
  text-align: left;
}

.job-progress-track {
  position: relative;
  width: 100%;
  height: 12px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.job-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c56b39, #ffbc66);
  box-shadow: 0 0 24px rgba(255, 176, 90, 0.24);
  transition: width 320ms ease, background 220ms ease;
}

.job-progress-track.is-complete .job-progress-fill {
  background: linear-gradient(90deg, #4f985f, #8fd49f);
  box-shadow: 0 0 24px rgba(143, 212, 159, 0.2);
}

.job-progress-track.is-failed .job-progress-fill {
  background: linear-gradient(90deg, #b15555, #ec8a8a);
  box-shadow: 0 0 24px rgba(236, 138, 138, 0.18);
}

.job-progress-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: rgba(246, 237, 220, 0.82);
  font-size: 0.94rem;
}

.job-stage-label,
.job-progress-value {
  display: inline-flex;
  align-items: center;
}

.job-progress-value {
  color: rgba(255, 208, 159, 0.92);
  font-variant-numeric: tabular-nums;
}

.job-status-row,
.run-meta-row,
.run-actions,
.featured-actions,
.gallery-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.job-message,
.job-result-summary {
  margin: 12px 0 0;
  font-size: 1.02rem;
}

.job-meta,
.job-result-warnings {
  margin: 10px 0 0;
}

.job-result {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.job-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.section-heading {
  display: grid;
  gap: 10px;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 0.95;
  max-width: 12ch;
}

.section-heading p {
  max-width: 58ch;
  margin: 0;
}

.section-heading-center {
  justify-items: center;
  text-align: center;
}

.section-heading-center h2,
.section-heading-center p {
  max-width: none;
}

.run-media,
.featured-media {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 177, 109, 0.06), rgba(0, 0, 0, 0.22)),
    rgba(9, 12, 12, 0.88);
}

.run-media {
  aspect-ratio: 1.35 / 1;
}

.run-preview-link,
.featured-preview-link {
  display: block;
}

.featured-media {
  min-height: 320px;
}

.run-media.is-empty,
.featured-media.is-empty {
  display: grid;
  place-items: center;
}

.run-media.is-empty::after,
.featured-media.is-empty::after {
  content: "Screenshot pending";
  color: rgba(246, 237, 220, 0.68);
  font-size: 0.94rem;
}

.run-image,
.featured-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.run-preview-link:hover .run-image,
.run-preview-link:focus-visible .run-image,
.featured-preview-link:hover .featured-image,
.featured-preview-link:focus-visible .featured-image {
  transform: scale(1.018);
}

.run-title-link {
  transition: color 160ms ease;
}

.run-title-link:hover,
.run-title-link:focus-visible {
  color: #ffe7c0;
}

.run-body {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}

.run-title,
.featured-copy h3 {
  font-size: 1.56rem;
  line-height: 0.98;
}

.process-band,
.gallery-band {
  align-items: center;
}

.section-shell {
  display: grid;
  gap: 24px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.process-card h3 {
  font-size: 1.54rem;
}

.process-card p {
  margin: 0;
}

.schematic-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.schematic-guide-copy {
  display: grid;
  gap: 12px;
}

.schematic-guide-copy p {
  margin: 0;
  color: var(--paper-soft);
  line-height: 1.68;
}

.schematic-guide-copy h3 {
  font-size: 1.7rem;
}

.schematic-guide-actions {
  display: grid;
  gap: 12px;
  min-width: 220px;
}

.featured-panel {
  padding: 18px;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: stretch;
}

.featured-copy {
  display: grid;
  gap: 16px;
  align-content: center;
  padding: 8px 6px;
}

.featured-copy p,
.run-prompt {
  margin: 0;
}

.featured-facts,
.run-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-heading {
  justify-content: space-between;
}

.gallery-summary {
  max-width: 42ch;
  margin: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.stat-card strong {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.9;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.run-card {
  overflow: hidden;
}

.run-prompt {
  min-height: 4.8em;
}

.run-updated {
  color: rgba(246, 237, 220, 0.64);
  font-size: 0.92rem;
}

.run-actions {
  justify-content: flex-start;
}

.empty-state {
  padding: 26px;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(var(--content-max), calc(100vw - 56px));
  margin: 0 auto;
  padding: 0 0 28px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1100px) {
  .site-header {
    width: calc(100vw - 24px);
    padding: 16px 18px;
    gap: 16px;
  }

  .site-nav {
    gap: 16px;
  }

  .header-account-copy {
    display: none;
  }

  .gallery-grid,
  .process-grid,
  .stats-row,
  .featured-layout,
  .schematic-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-copy {
    padding: 0;
  }
}

@media (max-width: 900px) {
  .depth-band {
    padding-top: 112px;
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-account {
    flex: 1 1 auto;
    min-width: 0;
  }

  .prompt-main-row,
  .prompt-panel {
    grid-template-columns: 1fr;
  }

  .prompt-submit {
    min-height: 60px;
  }

  .generation-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-forms,
  .auth-signed-in {
    grid-template-columns: 1fr;
  }

  .auth-modal-shell {
    padding: 16px;
  }

  .gallery-grid,
  .process-grid,
  .stats-row,
  .featured-layout,
  .schematic-guide {
    grid-template-columns: 1fr;
  }

  .featured-media {
    min-height: 240px;
  }

  .schematic-guide-actions {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  body::before {
    background-size: 46px 46px;
  }

  .site-header {
    top: 12px;
    width: calc(100vw - 16px);
    padding: 14px 16px;
    border-radius: 28px;
  }

  .brand-tagline,
  .header-cta,
  .header-account-copy {
    display: none;
  }

  .auth-modal-panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 24px);
  }

  .depth-band {
    min-height: auto;
    padding: 104px 16px 48px;
  }

  .hero-stack h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .prompt-panel {
    padding: 10px;
    border-radius: 20px;
  }

  .generation-settings {
    grid-template-columns: 1fr;
  }

  #generation-prompt {
    min-height: 110px;
    padding: 18px;
  }

  .run-body,
  .process-card,
  .schematic-guide,
  .stat-card,
  .featured-panel,
  .job-panel,
  .empty-state,
  .auth-modal-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer {
    width: calc(100vw - 32px);
    padding-bottom: 24px;
  }
}
