:root {
  color-scheme: dark;
  --bg: #05070a;
  --bg-deep: #030405;
  --panel: #0a0f14;
  --panel-soft: #111820;
  --panel-raised: #141c24;
  --input: #080d12;
  --border: #26313b;
  --border-soft: #1a232b;
  --border-hot: #7d2632;
  --accent: #b7202e;
  --accent-dark: #5c1018;
  --accent-hot: #ff4058;
  --accent-wash: rgba(183, 32, 46, 0.14);
  --success: #22c55e;
  --warning: #fbbf24;
  --danger: #e04444;
  --text: #f2f2f0;
  --text-secondary: #a7adb5;
  --text-muted: #737b84;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --radius: 7px;
  --radius-large: 10px;
  --max-width: 1240px;
  --font-body: "Segoe UI", Inter, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.84), rgba(5, 7, 10, 0.98) 42%, var(--bg-deep) 100%),
    linear-gradient(90deg, rgba(5, 7, 10, 0.98), rgba(5, 7, 10, 0.78)),
    url("/assets/backgrounds/hero-bloodmoon.png") center top / cover no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/assets/backgrounds/gothic-pattern-tile.png") repeat;
  content: "";
  opacity: 0.045;
  pointer-events: none;
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

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

button,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-hot);
  border-radius: var(--radius);
  padding: 10px 17px;
  color: var(--text);
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  box-shadow: 0 8px 22px rgba(183, 32, 46, 0.16);
  cursor: pointer;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button:hover,
.button:hover {
  border-color: #ff6a7c;
  box-shadow: 0 10px 28px rgba(183, 32, 46, 0.26);
  transform: translateY(-1px);
}

button:active,
.button:active {
  transform: translateY(0);
}

button.secondary,
.button.secondary {
  border-color: var(--border);
  background: var(--panel-raised);
  box-shadow: none;
}

button.secondary:hover,
.button.secondary:hover {
  border-color: var(--accent-hot);
  background: #18222c;
}

button:disabled,
.button.disabled,
.button[aria-disabled="true"] {
  border-color: var(--border-soft);
  color: var(--text-muted);
  background: #0b1015;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-hot);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 24px;
  min-height: 82px;
  align-items: center;
  padding: 12px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(5, 7, 10, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

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

.brand-wordmark {
  display: block;
  width: 210px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.site-header nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 11px 15px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.site-header nav a::after {
  position: absolute;
  right: 14px;
  bottom: 3px;
  left: 14px;
  height: 2px;
  background: var(--accent-hot);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--text);
}

.site-header nav a:hover::after,
.site-header nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-search {
  display: grid;
  grid-template-columns: 20px minmax(120px, 1fr);
  min-width: 190px;
  max-width: 260px;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 0 10px;
  background: rgba(8, 13, 18, 0.9);
}

.header-search span {
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
}

.header-search input {
  min-height: 40px;
  border: 0;
  padding: 0 0 0 6px;
  background: transparent;
}

.header-search input:focus {
  outline: 0;
}

.header-link,
.account-pill {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px 11px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.header-link:hover,
.account-pill:hover {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.account-pill {
  border-color: var(--accent);
  color: var(--text);
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  min-height: 44px;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  border-color: var(--border);
  padding: 9px;
  background: var(--panel);
  box-shadow: none;
}

.mobile-nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-secondary);
}

.page-shell {
  width: min(var(--max-width), calc(100vw - 40px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.page-shell:focus,
main:focus,
main:focus-visible {
  outline: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.55rem, 5vw, 4.7rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.15;
}

p {
  margin: 0;
}

p + p {
  margin-top: 12px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-hot);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-copy,
.page-intro > p,
.section-heading > p,
.split-copy > p,
.data-proof > div > p,
.cta-band p,
.auth-copy .hero-copy,
.download-intro > div > p {
  max-width: 700px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}

.hero-copy-small {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.hero-actions,
.button-row,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 26px;
}

.hero-note {
  display: flex;
  max-width: 660px;
  gap: 9px;
  align-items: flex-start;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 0.48em;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 0 3px rgba(115, 123, 132, 0.12);
}

.status-dot.success {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
  min-height: 560px;
}

.home-hero::before {
  position: absolute;
  top: 4%;
  right: 12%;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 64, 88, 0.2), rgba(183, 32, 46, 0.06) 42%, transparent 72%);
  content: "";
  filter: blur(8px);
  pointer-events: none;
}

.hero-kicker {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-kicker img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.hero-copy-block h1 {
  max-width: 760px;
}

.hero-copy-block .hero-copy {
  margin-top: 22px;
}

.hero-console,
.panel,
.detail-card,
.featured-mod,
.market-card,
.data-proof,
.split-feature,
.workflow-section,
.transparency-panel,
.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: linear-gradient(145deg, rgba(17, 24, 32, 0.95), rgba(8, 13, 18, 0.97));
  box-shadow: var(--shadow);
}

.hero-console {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-color: rgba(255, 64, 88, 0.42);
  background: linear-gradient(145deg, rgba(52, 13, 24, 0.96), rgba(10, 15, 20, 0.98) 62%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 64, 88, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-console::after {
  position: absolute;
  right: -70px;
  bottom: -86px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(183, 32, 46, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(183, 32, 46, 0.04), 0 0 0 48px rgba(183, 32, 46, 0.03);
  content: "";
  pointer-events: none;
}

.hero-console::before {
  position: absolute;
  top: -110px;
  left: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 64, 88, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 64, 88, 0.04), 0 0 0 36px rgba(255, 64, 88, 0.025);
  content: "";
  pointer-events: none;
}

.console-top,
.console-brand,
.data-proof-list > div,
.release-card-heading,
.account-hero,
.catalog-intro,
.market-card-meta,
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.console-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge {
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 999px;
  padding: 4px 8px;
  color: #8df0af;
  background: rgba(34, 197, 94, 0.08);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-brand {
  justify-content: flex-start;
  margin: 34px 0 24px;
}

.console-brand img {
  width: 76px;
  height: 76px;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: cover;
}

.console-brand div {
  display: grid;
  gap: 7px;
}

.console-brand strong {
  font-size: 21px;
  line-height: 1.2;
}

.console-brand span,
.console-footnote,
.data-proof-list small,
.footer-note {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.console-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border-soft);
}

.console-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 0;
}

.console-list span,
.download-meta span,
.scope-list span,
.catalog-summary span,
.data-proof-list span {
  color: var(--text-secondary);
  font-size: 13px;
}

.console-list strong,
.download-meta strong,
.scope-list strong,
.catalog-summary strong,
.data-proof-list strong {
  color: var(--text);
  font-size: 14px;
  text-align: right;
}

.console-footnote {
  max-width: 340px;
  margin-top: 18px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 96px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 15px 0;
}

.trust-strip span {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.trust-strip .status-dot {
  margin-top: 0;
}

.section-block,
.workflow-section,
.data-proof,
.cta-band,
.split-feature {
  margin-top: 88px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.section-heading > div {
  max-width: 760px;
}

.section-heading > p {
  max-width: 440px;
  margin-bottom: 2px;
  font-size: 14px;
}

.compact-heading {
  margin-bottom: 20px;
}

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

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  padding: 22px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-grid .feature-card::after {
  position: absolute;
  right: -34px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 64, 88, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(255, 64, 88, 0.025);
  content: "";
  pointer-events: none;
}

.product-grid .feature-card:hover {
  border-color: rgba(255, 64, 88, 0.5);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3), 0 0 28px rgba(183, 32, 46, 0.1);
  transform: translateY(-3px);
}

.feature-card .feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 26px;
  object-fit: contain;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p,
.panel p,
.detail-card p,
.market-card p,
.empty-state p,
.state-panel p {
  color: var(--text-secondary);
  line-height: 1.65;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  min-height: 380px;
  overflow: hidden;
}

.split-feature-reverse {
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
}

.split-feature-reverse .split-copy {
  grid-column: 2;
  grid-row: 1;
}

.split-feature-reverse .feature-rail {
  grid-column: 1;
  grid-row: 1;
}

.split-copy {
  padding: clamp(26px, 5vw, 56px);
}

.split-copy h2 {
  max-width: 690px;
}

.split-copy > p {
  margin-top: 18px;
}

.feature-rail {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-left: 1px solid var(--border-soft);
  padding: 48px;
  background:
    linear-gradient(145deg, rgba(183, 32, 46, 0.22), rgba(5, 7, 10, 0.84)),
    url("/assets/backgrounds/hero-bloodmoon.png") center / cover;
}

.split-feature-reverse .feature-rail {
  border-right: 1px solid var(--border-soft);
  border-left: 0;
}

.feature-rail::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 64, 88, 0.35);
  border-radius: 50%;
  content: "";
}

.feature-rail img {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  margin-bottom: 28px;
  border-radius: 10px;
  object-fit: cover;
  opacity: 0.9;
}

.feature-rail span {
  position: relative;
  z-index: 1;
  margin-bottom: 9px;
  color: var(--accent-hot);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.feature-rail strong {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

.check-list {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.check-list li::before {
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent-hot);
  border-radius: 50%;
  content: "";
}

.text-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 26px;
  color: var(--accent-hot);
  font-size: 14px;
  font-weight: 700;
}

.text-link:hover {
  color: #ff8795;
}

.workflow-section {
  padding: clamp(24px, 5vw, 48px);
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  min-height: 142px;
  border-right: 1px solid var(--border-soft);
  padding: 14px 18px;
}

.workflow-list li:first-child {
  padding-left: 0;
}

.workflow-list li:last-child {
  border-right: 0;
  padding-right: 0;
}

.workflow-list li > span {
  color: var(--accent-hot);
  font-family: var(--font-display);
  font-size: 18px;
}

.workflow-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 15px;
}

.workflow-list p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.data-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  padding: clamp(24px, 5vw, 48px);
}

.data-proof > div > p {
  margin-top: 18px;
  font-size: 15px;
}

.data-proof-list {
  display: grid;
  gap: 0;
  align-self: stretch;
}

.data-proof-list > div {
  align-items: flex-start;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-soft);
  padding: 15px 0;
}

.data-proof-list > div:first-child {
  padding-top: 0;
}

.data-proof-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.data-proof-list span {
  width: 34%;
}

.data-proof-list strong {
  width: 62%;
  font-size: 15px;
}

.data-proof-list small {
  width: 62%;
  margin-left: 34%;
  margin-top: 4px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(24px, 5vw, 46px);
  background: linear-gradient(120deg, rgba(183, 32, 46, 0.24), rgba(10, 15, 20, 0.96) 55%);
}

.cta-band h2 {
  max-width: 720px;
}

.cta-band p:not(.eyebrow) {
  margin-top: 14px;
  font-size: 15px;
}

.cta-band .hero-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.page-intro {
  max-width: 900px;
  margin: 0 0 38px;
}

.page-intro h1 {
  max-width: 820px;
}

.page-intro > p {
  margin-top: 18px;
}

.catalog-intro {
  max-width: none;
  align-items: flex-end;
}

.catalog-intro > div:first-child {
  max-width: 780px;
}

.catalog-summary {
  display: grid;
  min-width: 320px;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.catalog-summary div {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: var(--panel);
}

.catalog-summary strong {
  text-align: left;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.market-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 24px;
  align-self: start;
  border-right: 1px solid var(--border-soft);
  padding: 2px 20px 20px 0;
}

.game-select {
  display: grid;
  gap: 9px;
}

.sidebar-label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.game-select strong {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 10px;
  color: var(--text);
  background: var(--panel);
  font-size: 14px;
}

.game-select img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.game-select small,
.sidebar-empty {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.sidebar-section {
  display: grid;
  gap: 5px;
}

.sidebar-section .sidebar-label {
  margin-bottom: 5px;
}

.market-filter,
.market-category,
.sidebar-tags button {
  display: flex;
  width: 100%;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--text-secondary);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transform: none;
}

.market-filter:hover,
.market-filter.active,
.market-category:hover,
.sidebar-tags button:hover,
.sidebar-tags button.active {
  border-color: var(--border-hot);
  color: var(--text);
  background: var(--accent-wash);
}

.market-filter strong,
.market-category strong {
  color: var(--text-muted);
  font-size: 11px;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-tags button {
  width: auto;
  min-height: 30px;
  padding: 6px 8px;
  font-size: 11px;
}

.market-main {
  min-width: 0;
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.market-stats > div {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 14px;
  background: var(--panel);
}

.metric-icon {
  grid-row: 1 / span 2;
  color: var(--accent-hot);
  font-family: var(--font-display);
  font-size: 16px;
}

.market-stats strong {
  font-size: 18px;
  line-height: 1.1;
}

.market-stats em {
  color: var(--text-muted);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin: 24px 0 16px;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

.toolbar-summary p {
  color: var(--text);
  font-size: 14px;
}

.toolbar-summary p strong {
  color: var(--accent-hot);
}

.toolbar-summary span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
}

.market-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(130px, 1fr) minmax(130px, 1fr);
  gap: 9px;
  width: min(100%, 650px);
}

label {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}

label small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--text);
  background: var(--input);
}

input::placeholder,
textarea::placeholder {
  color: #5e6872;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #3a4651;
}

select {
  min-height: 43px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

code {
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 2px 5px;
  color: #ffadb8;
  background: var(--input);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.featured-mod {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 14px;
}

.featured-art {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  background: var(--input);
}

.featured-copy,
.featured-install {
  padding: 24px 0;
}

.featured-copy h2 {
  font-size: 28px;
}

.featured-copy > p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.featured-copy .mod-stat-row {
  margin-top: 17px;
}

.featured-install {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-left: 1px solid var(--border-soft);
  padding-right: 20px;
  padding-left: 16px;
}

.featured-thumbs {
  display: flex;
  gap: 5px;
  margin-top: 16px;
}

.featured-thumbs img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 4px;
  object-fit: cover;
}

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

.market-card {
  display: grid;
  grid-template-rows: 148px 1fr;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.market-card-art {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  background:
    linear-gradient(135deg, rgba(183, 32, 46, 0.2), rgba(8, 13, 18, 0.84)),
    var(--input);
}

.market-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 160ms ease, transform 220ms ease;
}

.market-card-art:hover img {
  opacity: 1;
  transform: scale(1.025);
}

.market-card-body {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.card-title-row {
  align-items: flex-start;
}

.card-title-row h3 {
  font-size: 20px;
}

.card-title-row h3 a:hover {
  color: var(--accent-hot);
}

.card-title-row p {
  margin-top: 6px;
  font-size: 12px;
}

.card-title-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.favorite-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  padding: 5px 9px;
  color: var(--text-secondary);
  background: var(--panel-raised);
  font-size: 11px;
  font-weight: 750;
}

.favorite-button:hover,
.favorite-button.saved {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--accent-soft);
}

.market-card-body > p {
  min-height: 48px;
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag,
.status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1;
}

.status.public {
  border-color: rgba(34, 197, 94, 0.36);
  color: #8df0af;
  background: rgba(34, 197, 94, 0.08);
}

.status.pending {
  border-color: rgba(251, 191, 36, 0.38);
  color: #ffd77a;
  background: rgba(251, 191, 36, 0.08);
}

.market-card-meta {
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  border-top: 1px solid var(--border-soft);
  padding-top: 13px;
  color: var(--text-muted);
  font-size: 11px;
}

.market-card-meta > span {
  padding-right: 7px;
  border-right: 1px solid var(--border-soft);
}

.market-card-meta > span:last-of-type {
  border-right: 0;
}

.install-mini {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 9px;
  color: var(--text-secondary);
  background: var(--panel-raised);
  font-size: 10px;
  font-weight: 750;
}

.install-mini.ready:hover {
  border-color: var(--accent-hot);
  color: var(--text);
}

.install-mini.pending {
  color: var(--text-muted);
  cursor: not-allowed;
}

.modpack-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.creator-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 22px;
  border: 1px solid var(--border-hot);
  border-radius: var(--radius-large);
  padding: 22px;
  background: linear-gradient(110deg, rgba(183, 32, 46, 0.14), rgba(10, 15, 20, 0.94));
}

.creator-cta > div {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.creator-cta h2 {
  font-size: 24px;
}

.creator-cta p {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 13px;
}

.upload-glyph {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--accent-hot);
  border-radius: 50%;
  color: var(--accent-hot);
  font-size: 24px;
  line-height: 1;
}

.empty-state,
.state-panel {
  min-height: 390px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 36px;
  text-align: center;
}

.empty-state h1,
.state-panel h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.empty-state h2,
.state-panel h2 {
  max-width: 620px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.empty-state > p:not(.eyebrow),
.state-panel > p:not(.eyebrow) {
  max-width: 610px;
  margin-top: 12px;
  font-size: 15px;
}

.empty-state .hero-actions,
.state-panel .hero-actions {
  justify-content: center;
}

.empty-state-mark {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--border-hot);
  border-radius: 10px;
  background: rgba(183, 32, 46, 0.08);
}

.empty-state-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.catalog-empty {
  margin-bottom: 24px;
}

.inline-empty-state {
  grid-column: 1 / -1;
  min-height: 320px;
}

.mod-detail-hero {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.1fr) minmax(260px, 0.7fr);
  gap: 20px;
  align-items: stretch;
}

.detail-gallery,
.detail-summary-panel,
.download-panel {
  min-width: 0;
}

.detail-gallery {
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  gap: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--input);
}

.detail-cover {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.detail-thumbs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 10px 10px;
}

.detail-thumbs img {
  width: 48px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  object-fit: cover;
}

.detail-summary-panel {
  align-self: center;
  padding: 20px 4px;
}

.detail-summary-panel h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.detail-lead {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
}

.author-line {
  margin-top: 17px;
  color: var(--text-muted);
  font-size: 13px;
}

.author-line strong {
  color: var(--text);
}

.mod-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.mod-stat-row span {
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 7px 9px;
  color: var(--text-secondary);
  font-size: 11px;
}

.mod-stat-row strong {
  color: var(--text);
}

.detail-summary-panel .tag-row {
  margin-top: 18px;
}

.detail-card {
  padding: 22px;
}

.detail-card h2 {
  font-size: 25px;
}

.detail-card h3 {
  margin-top: 24px;
  font-size: 18px;
}

.download-panel {
  display: grid;
  align-content: start;
  gap: 13px;
}

.meta-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.download-panel .button {
  width: 100%;
}

.download-meta,
.scope-list {
  display: grid;
  gap: 0;
  margin-top: 4px;
}

.download-meta > div,
.scope-list > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--border-soft);
  padding: 10px 0;
}

.download-meta > div:last-child,
.scope-list > div:last-child {
  border-bottom: 0;
}

.release-note {
  margin: 0;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: var(--radius);
  padding: 11px;
  color: #ffd77a !important;
  background: rgba(251, 191, 36, 0.08);
  font-size: 12px;
}

.release-notes {
  border-top: 1px solid var(--border-soft);
  padding-top: 15px;
}

.release-notes > span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.release-notes p {
  margin-top: 7px;
  font-size: 13px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.detail-content-grid .detail-card > p {
  margin-top: 12px;
}

pre {
  max-height: 390px;
  overflow: auto;
  margin: 14px 0 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 15px;
  color: #ffccd2;
  background: var(--input);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.modpack-items {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.modpack-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: rgba(5, 7, 10, 0.35);
}

.modpack-item:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.modpack-item span:first-child {
  display: grid;
  gap: 4px;
}

.modpack-item strong {
  font-size: 13px;
}

.modpack-item em {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.modpack-item > span:last-child {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: 11px;
}

.download-page {
  display: grid;
  gap: 26px;
}

.download-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(28px, 6vw, 80px);
  max-width: none;
  align-items: center;
  margin-bottom: 14px;
}

.download-intro > div > p:not(.eyebrow):not(.hero-note) {
  margin-top: 18px;
}

.release-card {
  align-self: stretch;
}

.release-card-heading {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.release-card-heading h2 {
  font-size: 29px;
}

.download-feature-grid {
  margin-top: 0;
}

.transparency-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 30px;
  padding: 26px;
}

.transparency-panel .check-list {
  margin-top: 0;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 7vw, 100px);
  align-items: start;
  min-height: 620px;
}

.auth-copy {
  padding-top: 36px;
}

.auth-copy h1 {
  max-width: 680px;
}

.auth-copy .hero-copy {
  margin-top: 20px;
}

.auth-feature-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.auth-feature-list span {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-feature-list .status-dot {
  margin-top: 0;
}

.auth-panel {
  display: grid;
  gap: 14px;
}

.auth-panel > h2 {
  font-size: 27px;
}

.auth-panel .button {
  width: 100%;
}

.google-button {
  border-color: #526070;
  background: #1a222b;
  box-shadow: none;
}

.google-button:hover {
  border-color: var(--text-secondary);
  background: #222d38;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--border-soft);
  content: "";
}

.auth-form {
  display: grid;
  gap: 12px;
}

.form-message {
  min-height: 20px;
  color: #ff9daa;
  font-size: 12px;
  line-height: 1.45;
}

.form-message.success {
  color: #8df0af;
}

.account-page,
.upload-page {
  display: grid;
  gap: 22px;
}

.account-hero {
  justify-content: flex-start;
  padding: 22px;
}

.account-hero .button {
  margin-left: auto;
}

.account-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--text);
  background: var(--accent-dark);
  font-family: var(--font-display);
  font-size: 24px;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-hero h1 {
  font-size: 32px;
}

.account-hero p:not(.eyebrow) {
  margin-top: 4px;
  font-size: 13px;
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-large);
  padding: 24px;
  background: rgba(10, 15, 20, 0.82);
}

.account-actions h2 {
  font-size: 27px;
}

.account-actions p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 9px;
  color: var(--text-secondary);
  font-size: 14px;
}

.account-actions .hero-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.account-grid {
  margin-top: 0;
}

.submission-section {
  display: grid;
  gap: 18px;
}

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

.submission-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.submission-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.submission-title h3 {
  font-size: 21px;
}

.submission-title p,
.submission-note {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 13px;
}

.submission-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.submission-meta div {
  border-top: 1px solid var(--border-soft);
  padding-top: 9px;
}

.submission-meta dt {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submission-meta dd {
  margin: 4px 0 0;
  color: var(--text-primary);
  font-size: 13px;
}

.upload-form {
  display: grid;
  gap: 17px;
  max-width: 980px;
}

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

.upload-form > label {
  margin-top: 2px;
}

.market-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(2, minmax(150px, 0.7fr));
  gap: 28px;
  width: min(var(--max-width), calc(100vw - 40px));
  margin: 40px auto 0;
  border-top: 1px solid var(--border-soft);
  padding: 38px 0 48px;
}

.footer-brand .brand-wordmark {
  width: 205px;
}

.footer-brand p {
  max-width: 330px;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.footer-brand small {
  display: block;
  max-width: 340px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-column h3 {
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-column a:hover {
  color: var(--accent-hot);
}

.footer-note {
  margin-top: 4px;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 205px minmax(0, 1fr) auto;
    gap: 14px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .brand-wordmark {
    width: 190px;
  }

  .header-search {
    min-width: 150px;
  }

  .site-header nav a {
    padding-right: 10px;
    padding-left: 10px;
  }

  .home-hero {
    gap: 38px;
  }

  .catalog-layout {
    grid-template-columns: 195px minmax(0, 1fr);
  }

  .mod-detail-hero {
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  }

  .mod-detail-hero .download-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    display: none;
    border-top: 1px solid var(--border-soft);
    padding-top: 10px;
  }

  .site-header nav[data-open="true"] {
    display: flex;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .header-tools {
    grid-column: 1 / -1;
    grid-row: 3;
    display: none;
    justify-content: flex-start;
    border-top: 1px solid var(--border-soft);
    padding-top: 10px;
  }

  .site-header:has(nav[data-open="true"]) .header-tools {
    display: flex;
  }

  .home-hero,
  .data-proof,
  .download-intro,
  .auth-page,
  .transparency-panel {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 0;
  }

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

  .section-heading,
  .catalog-intro,
  .account-actions,
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-summary {
    width: 100%;
  }

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

  .workflow-list li:nth-child(2) {
    border-right: 0;
  }

  .workflow-list li:nth-child(3),
  .workflow-list li:nth-child(4) {
    border-top: 1px solid var(--border-soft);
  }

  .workflow-list li:nth-child(3) {
    padding-left: 0;
  }

  .workflow-list li:nth-child(4) {
    padding-right: 0;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .market-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
    padding: 0 0 18px;
  }

  .market-sidebar .sidebar-section {
    align-content: start;
  }

  .market-sidebar .sidebar-section:nth-of-type(3) {
    grid-column: 1 / -1;
  }

  .featured-mod {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .featured-install {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-soft);
    border-left: 0;
    padding: 14px 18px;
  }

  .featured-thumbs {
    margin-top: 0;
  }

  .market-footer {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 70px;
    padding: 10px 14px;
  }

  .brand-wordmark {
    width: 174px;
  }

  .site-header nav {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header nav a {
    min-height: 42px;
    justify-content: flex-start;
    border-bottom: 1px solid var(--border-soft);
  }

  .header-tools {
    flex-wrap: wrap;
  }

  .header-search {
    width: 100%;
    max-width: none;
  }

  .page-shell {
    width: min(calc(100vw - 28px), var(--max-width));
    padding-top: 36px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.3rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .hero-copy,
  .page-intro > p,
  .section-heading > p,
  .split-copy > p,
  .data-proof > div > p,
  .cta-band p,
  .auth-copy .hero-copy,
  .download-intro > div > p {
    font-size: 15px;
  }

  .trust-strip,
  .feature-grid,
  .market-grid,
  .modpack-grid,
  .detail-content-grid,
  .market-stats,
  .form-grid,
  .submission-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    gap: 10px;
    margin-bottom: 60px;
  }

  .trust-strip span {
    padding: 3px 0;
  }

  .section-block,
  .workflow-section,
  .data-proof,
  .cta-band,
  .split-feature {
    margin-top: 60px;
  }

  .feature-card {
    min-height: 0;
  }

  .split-feature,
  .split-feature-reverse {
    display: flex;
    flex-direction: column;
  }

  .split-feature-reverse .split-copy,
  .split-feature-reverse .feature-rail {
    order: initial;
  }

  .feature-rail,
  .split-feature-reverse .feature-rail {
    min-height: 230px;
    border-top: 1px solid var(--border-soft);
    border-right: 0;
    border-left: 0;
    padding: 28px;
  }

  .feature-rail img {
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
  }

  .workflow-list {
    grid-template-columns: 1fr;
  }

  .workflow-list li,
  .workflow-list li:first-child,
  .workflow-list li:last-child,
  .workflow-list li:nth-child(3),
  .workflow-list li:nth-child(4) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
    border-top: 0;
    padding: 14px 0;
  }

  .workflow-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .data-proof-list span,
  .data-proof-list strong,
  .data-proof-list small {
    width: 100%;
    margin-left: 0;
  }

  .data-proof-list strong {
    margin-top: 6px;
    text-align: left;
  }

  .data-proof-list small {
    margin-top: 5px;
  }

  .market-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .market-sidebar .game-select,
  .market-sidebar .sidebar-section:nth-of-type(3) {
    grid-column: 1 / -1;
  }

  .market-stats > div {
    min-height: 65px;
  }

  .market-toolbar,
  .creator-cta,
  .account-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .market-controls {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .featured-mod {
    display: block;
  }

  .featured-art {
    height: 180px;
  }

  .featured-copy,
  .featured-install {
    padding: 18px;
  }

  .featured-install {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }

  .detail-content-grid,
  .mod-detail-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mod-detail-hero .download-panel {
    grid-column: auto;
  }

  .detail-gallery {
    min-height: 280px;
  }

  .detail-summary-panel {
    padding: 6px 0;
  }

  .catalog-summary {
    min-width: 0;
  }

  .catalog-summary div {
    padding: 11px;
  }

  .account-hero .button {
    margin-left: 0;
  }

  .account-actions .hero-actions {
    width: 100%;
  }

  .account-actions .button {
    flex: 1 1 180px;
  }

  .market-footer {
    width: min(calc(100vw - 28px), var(--max-width));
    grid-template-columns: 1fr 1fr;
    gap: 26px 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .header-link {
    display: none;
  }

  .hero-actions .button,
  .button-row .button,
  .button-row button {
    width: 100%;
  }

  .hero-actions,
  .button-row {
    align-items: stretch;
  }

  .page-shell {
    width: calc(100vw - 24px);
  }

  .hero-console,
  .split-copy,
  .workflow-section,
  .data-proof,
  .cta-band,
  .transparency-panel,
  .detail-card,
  .feature-card {
    padding: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.admin-page { display: grid; gap: 1.25rem; }
.admin-heading { align-items: end; }
.admin-heading .status { justify-self: start; }
.admin-metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.admin-metric { min-width: 0; padding: 1rem; border: 1px solid rgba(159,72,255,.25); border-radius: 12px; background: rgba(13,16,24,.84); }
.admin-metric span, .admin-metric small, .admin-release-grid span { display: block; color: var(--muted, #9ea6bd); font-size: .78rem; }
.admin-metric strong { display: block; margin: .3rem 0; color: #f6f2ff; font-size: 1.45rem; }
.admin-section { padding: 1.25rem; }
.admin-release-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.admin-release-grid strong { display: block; margin-top: .35rem; color: #f6f2ff; }
.admin-break { overflow-wrap: anywhere; }
.admin-reauth-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; align-items: end; }
.admin-reauth-form label, .admin-step label { display: grid; gap: .4rem; color: #cfd3e6; font-size: .85rem; }
.admin-reauth-form input, .admin-step input { width: 100%; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th, .admin-table td { padding: .85rem .65rem; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: top; }
.admin-table th { color: #9ea6bd; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { margin-top: .2rem; color: #9ea6bd; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.text-button { border: 1px solid rgba(153,80,255,.45); border-radius: 999px; padding: .35rem .55rem; background: rgba(25,17,42,.9); color: #d7b8ff; cursor: pointer; font: inherit; font-size: .76rem; }
.text-button:hover, .text-button:focus-visible { border-color: #d7b8ff; color: #fff; }
.text-button.danger { border-color: rgba(220,48,70,.65); color: #ffabb5; }
.admin-release-list, .admin-audit-list { display: grid; gap: .65rem; }
.admin-release-row, .admin-audit-row { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr; gap: .75rem; align-items: center; padding: .75rem; border-radius: 9px; background: rgba(7,10,16,.55); }
.admin-release-row code { overflow-wrap: anywhere; color: #bda1ff; font-size: .75rem; }
.admin-control-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
.admin-control-row div { display: grid; gap: .25rem; }
.admin-control-row span { color: #9ea6bd; font-size: .85rem; }
.danger-button { border-color: rgba(255,80,110,.65); background: linear-gradient(135deg, #7f1427, #b91e3c); }
.admin-audit-row { grid-template-columns: 1.5fr .75fr 1fr; }
.admin-audit-row p { grid-column: 1 / -1; margin: 0; color: #b7bdd0; }
.admin-step { display: grid; grid-template-columns: 2.2rem 1fr; gap: .85rem; align-items: start; }
.admin-step > span { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border: 1px solid #a84bff; border-radius: 50%; color: #d8b4ff; }
.admin-step + .admin-step { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.admin-secret { display: grid; gap: .3rem; margin: .75rem 0; }
.admin-secret code, .recovery-codes { overflow-wrap: anywhere; padding: .75rem; border: 1px solid rgba(153,80,255,.3); border-radius: 8px; background: rgba(5,7,12,.8); color: #e6d5ff; white-space: pre-wrap; }
.recovery-codes { max-width: 34rem; font-size: 1.05rem; line-height: 1.8; }
@media (max-width: 980px) {
  .admin-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-release-grid, .admin-reauth-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .admin-metric-grid, .admin-release-grid, .admin-reauth-form { grid-template-columns: 1fr; }
  .admin-release-row, .admin-audit-row { grid-template-columns: 1fr; }
  .admin-control-row { align-items: stretch; flex-direction: column; }
}
