:root {
  color-scheme: dark;
  --bg: #070a08;
  --bg-raised: #0a0e0b;
  --panel: #0d120f;
  --panel-hover: #111813;
  --line: #1d2821;
  --line-strong: #304238;
  --text: #eef5f0;
  --muted: #8a978e;
  --muted-strong: #aab5ad;
  --green: #75f596;
  --green-dim: #163822;
  --green-line: #356443;
  --shadow: 0 28px 90px rgba(0, 0, 0, .5);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shell: min(1120px, calc(100% - 48px));
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    radial-gradient(ellipse at 18% 8%, rgba(117, 245, 150, .07), transparent 34rem),
    radial-gradient(ellipse at 84% 82%, rgba(65, 154, 86, .055), transparent 38rem),
    radial-gradient(circle at 48% 46%, rgba(255, 255, 255, .012), transparent 42rem),
    linear-gradient(180deg, #080c09 0%, #050806 52%, #070a08 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 24% 30%, rgba(117, 245, 150, .025), transparent 23rem),
    radial-gradient(circle at 76% 58%, rgba(117, 245, 150, .018), transparent 28rem);
}

body::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .02), transparent 26%, transparent 70%, rgba(0, 0, 0, .13)),
    radial-gradient(ellipse at center, transparent 44%, rgba(0, 0, 0, .24) 100%);
}

.binary-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
  filter: saturate(1.12) brightness(1.10);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

button, select, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  min-height: 94px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .045);
}

.brand {
  grid-column: 2;
  min-width: 0;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  transition: transform .42s var(--ease), filter .42s var(--ease);
  will-change: transform;
}

.brand-logo {
  width: clamp(190px, 20vw, 258px);
  height: auto;
  object-fit: contain;
}

.discord-trigger,
.back-link {
  grid-column: 3;
  justify-self: end;
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover {
    transform: translateY(-4px);
    filter: brightness(1.1) drop-shadow(0 5px 14px rgba(117, 245, 150, .12));
  }
}

.site-footer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .8rem;
  transition: color .18s ease;
}

.back-link:hover,
.back-link:focus-visible { color: var(--text); }

.home-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: clamp(56px, 8vw, 92px);
}

.home-content {
  width: min(900px, 100%);
  margin-inline: auto;
}

.home-intro {
  width: min(650px, 100%);
  margin: 0 auto clamp(26px, 3.5vw, 38px);
  text-align: center;
}


.section-heading h1,
.status-panel h1 {
  margin: 0;
  line-height: .98;
  letter-spacing: -.052em;
}

.lead {
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(.88rem, 1.35vw, .98rem);
  line-height: 1.6;
}

.project-gates {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.gate-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 238px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .022), transparent 54%),
    rgba(13, 18, 15, .94);
  transition:
    transform .28s var(--ease),
    border-color .28s var(--ease),
    background-color .28s var(--ease),
    box-shadow .28s var(--ease);
}

.gate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(circle at 82% 18%, rgba(117, 245, 150, .09), transparent 38%);
  transition: opacity .28s var(--ease);
}

.gate-card::after {
  content: "";
  position: absolute;
  inset: auto 22px -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(117, 245, 150, .5), transparent);
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}

.gate-status {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #284f34;
  border-radius: 999px;
  background: rgba(117, 245, 150, .055);
  color: #a8f2ba;
  font-size: .62rem;
  font-weight: 700;
  white-space: nowrap;
}

.gate-status--pending {
  border-color: #303a33;
  background: rgba(255, 255, 255, .025);
  color: #89968d;
}

.gate-project {
  min-width: 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-block: 42px 25px;
}

.gate-icon {
  width: 88px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #080c09;
}

.gate-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gate-icon--bot {
  background: #080c09;
}

.gate-icon--bot img {
  object-fit: cover;
}

.gate-copy {
  min-width: 0;
}

.gate-copy strong {
  display: block;
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.gate-copy p {
  max-width: 34ch;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.53;
}

.gate-footer {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  color: #6f7d73;
  font-size: .68rem;
}

.gate-footer--end {
  justify-content: flex-end;
}

.gate-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-strong);
  font-weight: 700;
  white-space: nowrap;
}

.gate-action i {
  color: var(--green);
  font-style: normal;
  transition: transform .25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .gate-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    background-color: var(--panel-hover);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
  }

  .gate-card:hover::before { opacity: 1; }
  .gate-card:hover::after { opacity: 1; transform: scaleX(1); }
  .gate-card:hover .gate-action i { transform: translateX(4px); }
}

.discord-trigger {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 18, 15, .72);
  color: var(--muted-strong);
  font: 750 .73rem/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
}

.discord-trigger-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
  .discord-trigger:hover {
    transform: translateY(-2px);
    border-color: #34513d;
    background: rgba(117, 245, 150, .055);
    color: var(--muted-strong);
  }
}

.discord-dialog {
  width: min(520px, calc(100% - 30px));
  max-height: calc(100dvh - 30px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(117, 245, 150, .03), transparent 52%),
    #0b100d;
  box-shadow: var(--shadow);
}

.discord-dialog::backdrop {
  background: rgba(2, 4, 3, .78);
  backdrop-filter: blur(7px);
}

.discord-dialog[open] {
  animation: dialog-in .22s var(--ease);
}

.discord-dialog-copy {
  min-width: 0;
  padding: 40px 36px 34px;
}


.discord-dialog-copy h2 {
  margin: 0;
  padding-right: 42px;
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.discord-description {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.7;
}

.discord-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.discord-tags span {
  min-height: 28px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .018);
  color: #819087;
  font: 700 .61rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .04em;
}

.discord-join {
  min-height: 48px;
  margin-top: 30px;
  padding-inline: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--green-line);
  border-radius: 11px;
  background: var(--green-dim);
  color: #c1f8ce;
  font-size: .78rem;
  font-weight: 800;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.discord-join span {
  color: var(--green);
  transition: transform .18s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .discord-join:hover {
    transform: translateY(-1px);
    border-color: #4f7e5b;
    background: #1b4728;
  }

  .discord-join:hover span {
    transform: translateX(3px);
  }
}

.discord-trigger:focus-visible,
.discord-join:focus-visible,
.gate-card:focus-visible,
.details-button:focus-visible,
.download-button:focus-visible,
.dialog-close:focus-visible,
.text-link:focus-visible,
.back-link:focus-visible,
.mod-tab:focus-visible,
.preview-feature-button:focus-visible,
.preview-arrow:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.catalog-main {
  flex: 1;
  padding-block: clamp(58px, 7vw, 78px) clamp(76px, 10vw, 108px);
}

.section-heading,
.mod-grid {
  width: min(900px, 100%);
  margin-inline: auto;
}

.section-heading {
  min-width: 0;
  padding-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.section-heading h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.25rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: .76rem;
  white-space: nowrap;
}

.mod-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.mod-card {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 176px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(117, 245, 150, .025), transparent 48%),
    rgba(13, 18, 15, .94);
  transition: transform .22s var(--ease), border-color .22s var(--ease), background-color .22s var(--ease), box-shadow .22s var(--ease);
}

.mod-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 12%, rgba(117, 245, 150, .55), transparent 88%);
  opacity: .45;
}

.mod-card-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.mod-card-icon {
  width: 116px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #090d0a;
}

.mod-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mod-card-copy {
  min-width: 0;
}

.mod-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.42rem);
  line-height: 1.15;
  letter-spacing: -.032em;
  overflow-wrap: anywhere;
}

.mod-card p {
  max-width: 54ch;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.mod-card-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #6d7b71;
  font: 700 .62rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .035em;
}

.mod-download-count {
  padding-left: 9px;
  border-left: 1px solid rgba(255, 255, 255, .08);
  color: #7fa58a;
}

.details-button {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(117, 245, 150, .16);
  border-radius: 11px;
  background: rgba(117, 245, 150, .035);
  color: #a5e8b5;
  font-size: .73rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.details-button span {
  display: inline-block;
  margin-left: 7px;
  color: var(--green);
  transition: transform .2s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .mod-card:hover {
    transform: translateY(-2px);
    border-color: #2c4033;
    background-color: #0f1611;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .16);
  }

  .details-button:hover {
    transform: translateY(-1px);
    border-color: rgba(117, 245, 150, .3);
    background: rgba(117, 245, 150, .065);
  }

  .details-button:hover span { transform: translateX(3px); }
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-size: .84rem;
}

.mod-dialog {
  width: min(920px, calc(100% - 30px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  color: var(--text);
  background: #0b100d;
  box-shadow: var(--shadow);
}

.mod-dialog::backdrop {
  background: rgba(2, 4, 3, .78);
  backdrop-filter: blur(7px);
}

.mod-dialog[open] { animation: dialog-in .22s var(--ease); }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
}

.dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 6;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(8, 12, 9, .92);
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.dialog-close:hover {
  border-color: var(--line-strong);
  background: #101612;
  color: var(--text);
}

.mod-dialog-shell {
  max-height: calc(100dvh - 24px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #26362c transparent;
}

.mod-dialog-header {
  min-width: 0;
  padding: 24px 72px 24px 30px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  background:
    radial-gradient(circle at 11% 50%, rgba(117, 245, 150, .07), transparent 15rem),
    linear-gradient(145deg, rgba(117, 245, 150, .018), transparent 55%);
}

.dialog-icon-frame {
  width: 82px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #080c09;
}

.dialog-icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-heading {
  min-width: 0;
}

.dialog-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}


.mod-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  min-width: 0;
  padding-inline: 30px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, .045);
  border-bottom: 1px solid rgba(255, 255, 255, .065);
  background: rgba(10, 15, 12, .96);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.mod-tabs::-webkit-scrollbar { display: none; }

.mod-tab {
  position: relative;
  min-height: 52px;
  padding: 0 15px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #738078;
  font-size: .73rem;
  font-weight: 760;
  cursor: pointer;
  transition: color .18s var(--ease), background .18s var(--ease);
}

.mod-tab::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: -1px;
  left: 15px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--green);
  opacity: 0;
  transform: scaleX(.55);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.mod-tab.is-active {
  color: #d7e2da;
  background: rgba(255, 255, 255, .012);
}

.mod-tab.is-active::after {
  opacity: .9;
  transform: scaleX(1);
}

.mod-tab-panels {
  min-height: 0;
}

.mod-tab-panel {
  padding: 30px;
}

.mod-tab-panel[hidden] { display: none; }

.about-content {
  display: grid;
  gap: 22px;
}

.about-intro {
  width: 100%;
  margin: 0;
  color: var(--muted-strong);
  font-size: .88rem;
  line-height: 1.72;
}

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

.about-feature {
  min-width: 0;
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(117, 245, 150, .018), transparent 62%),
    rgba(255, 255, 255, .012);
}

.about-feature h3 {
  margin: 0;
  color: #d5dfd8;
  font-size: .8rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.about-feature p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.55;
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.about-meta span {
  min-height: 28px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .012);
  color: #829087;
  font: 700 .61rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.about-footer {
  min-width: 0;
  padding-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.about-official {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-official-note {
  color: #69776e;
  font-size: .66rem;
  line-height: 1.35;
  white-space: nowrap;
}

.about-official-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-official-link {
  min-height: 34px;
  padding: 0 10px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .012);
  color: #87948b;
  font-size: .68rem;
  font-weight: 740;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}

.about-official-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(.78);
  opacity: .88;
  transition: filter .18s var(--ease), opacity .18s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .about-official-link:hover {
    transform: translateY(-1px);
    border-color: rgba(117, 245, 150, .2);
    background: rgba(117, 245, 150, .035);
    color: #c3cec6;
  }

  .about-official-link:hover img {
    filter: brightness(0) invert(.94);
    opacity: 1;
  }
}
.changelog-content {
  display: grid;
  gap: 14px;
}

.changelog-entry {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(117, 245, 150, .02), transparent 55%),
    rgba(8, 12, 9, .55);
}

.changelog-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.changelog-version {
  min-height: 25px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #284f34;
  border-radius: 999px;
  background: rgba(117, 245, 150, .05);
  color: #a8f2ba;
  font: 750 .62rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.changelog-head h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -.02em;
}

.changelog-summary {
  max-width: 72ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.65;
}

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

.changelog-group {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 12px;
  background: rgba(255, 255, 255, .012);
}

.changelog-group h4 {
  margin: 0;
  color: #9fada3;
  font-size: .7rem;
}

.changelog-group ul {
  margin: 10px 0 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.55;
}

.tab-empty-state {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.preview-feature-switcher {
  margin-bottom: 14px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.preview-feature-switcher::-webkit-scrollbar { display: none; }

.preview-feature-button {
  min-height: 34px;
  padding: 0 11px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .012);
  color: #768279;
  font-size: .69rem;
  font-weight: 740;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.preview-feature-button.is-active {
  border-color: rgba(117, 245, 150, .28);
  background: rgba(117, 245, 150, .05);
  color: #b7e9c3;
}

.preview-stage {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .72fr);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #080c09;
}

.preview-media-frame {
  position: relative;
  min-width: 0;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(117, 245, 150, .035), transparent 34rem),
    #050806;
}

.preview-media {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
}

.preview-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.preview-video {
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #030504;
}

.preview-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(5, 8, 6, .84);
  color: #c2cec5;
  font-size: .9rem;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}

.preview-arrow--prev { left: 12px; }
.preview-arrow--next { right: 12px; }
.preview-arrow[hidden] { display: none; }

.preview-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 26px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 8px;
  background: rgba(5, 8, 6, .78);
  color: #8e9b92;
  font: 700 .61rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  backdrop-filter: blur(8px);
}

.preview-counter:empty { display: none; }

.preview-copy {
  min-width: 0;
  padding: 26px 24px;
  align-self: center;
}

.preview-copy h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.preview-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.62;
}

.download-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.download-panel-head h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -.025em;
}

.download-panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.dialog-download-total {
  color: #7fa58a;
  font: 700 .65rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}

.release-control {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(8, 12, 9, .55);
}

.version-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .02em;
}

.version-picker {
  position: relative;
  z-index: 8;
}

.version-picker-trigger {
  width: 100%;
  min-height: 50px;
  padding: 8px 46px 8px 13px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background:
    linear-gradient(145deg, rgba(117, 245, 150, .018), transparent 62%),
    #080c09;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}

.version-picker-selected {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.version-picker-label {
  overflow: hidden;
  font-size: .79rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-picker-meta {
  overflow: hidden;
  color: #718077;
  font-size: .65rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-picker-chevron {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: translateY(-68%) rotate(45deg);
  transition: transform .18s var(--ease);
  pointer-events: none;
}

.version-picker.is-open .version-picker-trigger {
  border-color: #41614a;
  background: #0a100c;
  box-shadow: 0 0 0 3px rgba(117, 245, 150, .055);
}

.version-picker.is-open .version-picker-chevron {
  transform: translateY(-28%) rotate(225deg);
}

.version-picker-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  z-index: 12;
  max-height: 250px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #26372d;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(117, 245, 150, .025), transparent 58%),
    #090e0b;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
  scrollbar-width: thin;
  scrollbar-color: #294032 transparent;
}

.version-picker-menu[hidden] {
  display: none;
}

.version-picker-option {
  width: 100%;
  min-height: 56px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #c9d4cc;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}

.version-option-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.version-option-copy strong {
  overflow: hidden;
  font-size: .76rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-option-copy > span {
  overflow: hidden;
  color: #738078;
  font-size: .65rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-option-downloads {
  padding-left: 11px;
  border-left: 1px solid rgba(255, 255, 255, .065);
  color: #779981;
  font: 700 .61rem/1.25 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}

.version-picker-option.is-selected {
  border-color: rgba(117, 245, 150, .18);
  background: rgba(117, 245, 150, .045);
  color: #e4eee7;
}

.version-picker-trigger:focus-visible,
.version-picker-option:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .version-picker-trigger:hover {
    border-color: #304238;
    background: #0a100c;
  }

  .version-picker-option:hover {
    border-color: rgba(117, 245, 150, .1);
    background: rgba(117, 245, 150, .035);
    color: #e0e9e3;
  }
}

.version-download-count {
  min-height: 16px;
  margin: 8px 2px 0;
  color: #76907d;
  font: 700 .62rem/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .02em;
}

.download-button {
  min-height: 48px;
  margin-top: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green-line);
  border-radius: 11px;
  background: var(--green-dim);
  color: #c1f8ce;
  font-size: .79rem;
  font-weight: 800;
  transition: background .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease;
}

.download-button:not(.is-disabled):hover {
  transform: translateY(-1px);
  border-color: #4f7e5b;
  background: #1b4728;
}

.download-button.is-disabled { opacity: .32; cursor: not-allowed; }

@media (hover: hover) and (pointer: fine) {
  .mod-tab:hover { color: #a9b5ad; }
  .preview-feature-button:hover {
    border-color: #2b3d32;
    color: #a6b3aa;
  }
  .preview-arrow:hover {
    border-color: rgba(117, 245, 150, .28);
    background: rgba(10, 18, 12, .92);
    color: var(--green);
  }
}

.status-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: clamp(58px, 10vw, 100px);
}

.status-panel {
  width: min(660px, 100%);
  min-width: 0;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(117, 245, 150, .035), transparent 55%),
    var(--panel);
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.status-head--end {
  justify-content: flex-end;
}
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #96a299;
  font-size: .7rem;
  white-space: nowrap;
}

.status-line i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(117, 245, 150, .75);
}

.status-panel h1 {
  font-size: clamp(3rem, 9vw, 6.2rem);
  overflow-wrap: anywhere;
}
.status-panel > p {
  max-width: 54ch;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: #a9b5ad;
  font-size: .76rem;
  font-weight: 750;
}

.text-link span { color: var(--green); transition: transform .2s var(--ease); }
.text-link:hover span { transform: translateX(3px); }

.site-footer {
  min-height: 62px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, .045);
  color: #505b53;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 1120px); }
}

@media (max-width: 760px) {
  .project-gates {
    grid-template-columns: 1fr;
    gap: 12px;
  }



  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-heading > p {
    margin: 0;
    white-space: normal;
  }

  .mod-dialog-header {
    padding: 22px 64px 22px 24px;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 17px;
  }

  .dialog-icon-frame { width: 72px; border-radius: 17px; }

  .mod-tabs { padding-inline: 18px; }
  .mod-tab-panel { padding: 24px; }

  .about-content { gap: 20px; }
  .about-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-feature:last-child { grid-column: 1 / -1; }

  .preview-stage { grid-template-columns: 1fr; }
  .preview-media-frame {
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-panel {
    width: min(620px, 100%);
  }
}

@media (max-width: 560px) {
  :root { --shell: min(100% - 24px, 1120px); }


  .site-header {
    min-height: 78px;
    gap: 9px;
  }

  .brand-logo {
    width: clamp(148px, 47vw, 176px);
  }

  .home-main {
    place-items: start center;
    padding-block: 46px 64px;
  }

  .home-intro {
    margin-bottom: 22px;
  }

  .lead {
    font-size: .86rem;
    line-height: 1.55;
  }

  .gate-card {
    min-height: 218px;
    padding: 17px;
    border-radius: 17px;
  }

  .gate-status {
    top: 15px;
    right: 15px;
  }

  .gate-project {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 15px;
    margin-block: 38px 22px;
  }

  .gate-icon {
    width: 78px;
    border-radius: 17px;
  }

  .gate-copy p {
    font-size: .77rem;
    line-height: 1.5;
  }

  .gate-footer {
    font-size: .64rem;
  }

  .discord-dialog {
    width: calc(100% - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 18px;
    overflow: auto;
  }

  .discord-dialog-copy {
    padding: 28px 20px 22px;
  }

  .discord-description {
    font-size: .81rem;
    line-height: 1.62;
  }

  .discord-join {
    margin-top: 24px;
  }

  .discord-trigger {
    min-height: 36px;
    padding-inline: 10px;
    font-size: .69rem;
  }

  .catalog-main {
    padding-block: 46px 68px;
  }

  .section-heading {
    padding-bottom: 18px;
  }

  .mod-grid {
    margin-top: 14px;
  }

  .mod-card {
    min-height: 0;
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mod-card-main {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
  }

  .mod-card-icon {
    width: 92px;
    border-radius: 18px;
  }

  .mod-card h2 {
    font-size: 1.04rem;
  }

  .mod-card p {
    font-size: .76rem;
    line-height: 1.5;
  }

  .mod-card-meta {
    margin-top: 12px;
  }

  .details-button {
    justify-self: end;
  }

  .mod-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 18px;
  }

  .mod-dialog-shell { max-height: calc(100dvh - 12px); }

  .dialog-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  .mod-dialog-header {
    padding: 20px 50px 18px 16px;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .dialog-icon-frame { width: 56px; border-radius: 14px; }
  .dialog-heading h2 {
    font-size: clamp(1.15rem, 5.4vw, 1.35rem);
    overflow-wrap: normal;
  }

  .mod-tabs { padding-inline: 8px; }
  .mod-tab {
    min-height: 48px;
    padding-inline: 12px;
    font-size: .69rem;
  }
  .mod-tab::after { right: 12px; left: 12px; }
  .mod-tab-panel { padding: 18px; }
  .mod-tab-panels { min-height: 0; }

  .about-intro { font-size: .82rem; }
  .about-features { grid-template-columns: 1fr; }
  .about-feature:last-child { grid-column: auto; }
  .about-feature { padding: 14px 15px; }
  .about-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .about-official {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
  .about-official-note { white-space: normal; }

  .changelog-entry { padding: 17px; }
  .changelog-patch { grid-template-columns: 1fr; }

  .preview-feature-switcher { margin-bottom: 10px; }
  .preview-stage { border-radius: 14px; }
  .preview-media-frame { min-height: 238px; }
  .preview-image,
  .preview-video { max-height: 320px; }
  .preview-copy { padding: 20px 18px; }
  .preview-copy h3 { font-size: 1.3rem; }
  .preview-copy p { font-size: .77rem; }
  .preview-arrow {
    width: 36px;
    height: 36px;
  }

  .download-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }
  .release-control { padding: 16px; }

  .version-picker-trigger {
    min-height: 50px;
    font-size: 1rem;
  }

  .version-picker-menu {
    max-height: 220px;
  }

  .version-picker-option {
    min-height: 58px;
    gap: 9px;
  }

  .version-option-downloads {
    font-size: .57rem;
  }

  .download-button { min-height: 48px; }

  .status-main {
    place-items: start center;
    padding-block: 48px 68px;
  }

  .status-head {
    margin-bottom: 24px;
  }

  .status-panel {
    border-radius: 18px;
  }

  .site-footer {
    min-height: 56px;
  }
}

@media (max-width: 440px) {
  .discord-trigger {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
  }

  .discord-trigger-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .discord-trigger-icon {
    width: 19px;
    height: 19px;
  }

  .back-link {
    width: 40px;
    min-width: 40px;
    height: 40px;
    justify-content: center;
    font-size: 0;
  }

  .back-link span {
    font-size: 1rem;
  }


  .gate-status {
    font-size: .58rem;
  }

  .gate-footer {
    align-items: flex-end;
  }

  .gate-footer:not(.gate-footer--end) > span:first-child {
    max-width: 45%;
  }

  .mod-card-main {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 13px;
  }

  .mod-card-icon {
    width: 80px;
    border-radius: 16px;
  }

  .mod-card h2 {
    font-size: .98rem;
  }

  .mod-card p {
    margin-top: 7px;
    font-size: .73rem;
    line-height: 1.46;
  }
}

@media (max-width: 360px) {
  :root { --shell: min(100% - 18px, 1120px); }

  .site-header {
    gap: 6px;
  }

  .brand-logo {
    width: 136px;
  }

  .gate-card {
    padding: 15px;
  }

  .gate-project {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .gate-icon {
    width: 72px;
    border-radius: 15px;
  }

  .gate-footer {
    gap: 9px;
  }

  .gate-footer:not(.gate-footer--end) {
    flex-direction: column;
    align-items: flex-start;
  }

  .gate-footer--end {
    align-items: flex-end;
  }

  .gate-footer > span:first-child {
    max-width: none;
  }

  .mod-card-main {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
  }

  .mod-card-icon {
    width: 72px;
    border-radius: 15px;
  }

  .mod-card-meta {
    gap: 7px;
    font-size: .57rem;
  }

  .mod-download-count {
    padding-left: 7px;
  }

  .details-button {
    font-size: .7rem;
  }

  .discord-tags {
    gap: 5px;
  }

  .discord-tags span {
    font-size: .56rem;
  }
}

@media (max-height: 650px) and (min-width: 761px) {
  .mod-dialog {
    max-height: calc(100dvh - 16px);
  }

  .mod-dialog-shell { max-height: calc(100dvh - 16px); }
  .mod-dialog-header { padding-block: 20px; }
  .mod-tab-panel { padding-block: 22px; }
  .preview-media-frame { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand:hover {
    transform: none;
    filter: none;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
