* {
  box-sizing: border-box;
}

:root {
  --bg: #030713;
  --navy: #07111f;
  --ink: #0b1424;
  --panel: rgba(8, 17, 31, .90);
  --panel-strong: rgba(10, 21, 39, .96);
  --panel-soft: rgba(14, 27, 49, .72);
  --line: rgba(98, 152, 255, .23);
  --line-strong: rgba(73, 154, 255, .62);
  --cyan: #16d7c1;
  --blue: #4d92ff;
  --blue-soft: #9cc4ff;
  --green: #13d48d;
  --gold: #f6c453;
  --violet: #a77cff;
  --text: #f8fbff;
  --muted: #9fb0ca;
  --muted-2: #c3d2e7;
  --danger: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, .46);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 50% -10%, #102855 0%, var(--bg) 46%, #02040b 100%);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

.space-scene {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(77, 146, 255, .12), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(167, 124, 255, .12), transparent 22%),
    linear-gradient(180deg, #030713 0%, #07111f 45%, #02050d 100%);
}

.stars {
  position: absolute;
  inset: 0;
  opacity: .45;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .9) 1px, transparent 1px),
    radial-gradient(circle, rgba(157, 205, 255, .46) 1px, transparent 1px);
}

.stars-a {
  background-size: 84px 84px, 132px 132px;
  animation: drift 42s linear infinite;
}

.stars-b {
  opacity: .22;
  background-size: 140px 140px, 220px 220px;
  animation: drift 64s linear infinite reverse;
}

.planet-left,
.planet-right,
.galaxy {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.planet-left {
  width: 280px;
  height: 280px;
  left: -90px;
  top: 130px;
  background:
    radial-gradient(circle at 36% 33%, rgba(255,255,255,.38), transparent 11%),
    radial-gradient(circle at 35% 40%, rgba(71, 160, 255, .55), transparent 38%),
    radial-gradient(circle at 60% 62%, rgba(10, 26, 54, .95), rgba(2, 4, 12, .98) 72%);
  box-shadow: inset -34px -40px 72px rgba(0,0,0,.52), 0 0 80px rgba(77,146,255,.12);
  opacity: .42;
}

.planet-right {
  width: 145px;
  height: 145px;
  right: -24px;
  top: 210px;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,.32), transparent 12%),
    radial-gradient(circle at 45% 42%, rgba(22,215,193,.32), transparent 38%),
    radial-gradient(circle at 62% 65%, rgba(7, 26, 42, .94), rgba(2, 4, 10, .98) 74%);
  opacity: .38;
}

.galaxy {
  width: 300px;
  height: 180px;
  right: 6%;
  top: 86px;
  background: radial-gradient(ellipse, rgba(167,124,255,.22), rgba(77,146,255,.08) 40%, transparent 70%);
  filter: blur(14px);
  transform: rotate(-18deg);
  opacity: .55;
}

@keyframes drift {
  to {
    transform: translateY(480px);
  }
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 84px;
}

.top-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(13, 24, 43, .88), rgba(5, 10, 20, .88));
  color: var(--muted-2);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 20px rgba(0,0,0,.18);
}

.pill-link:hover {
  border-color: var(--line-strong);
  color: #fff;
}

.hero-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(77, 146, 255, .38);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(12, 25, 46, .94), rgba(4, 9, 19, .96)),
    radial-gradient(circle at 50% 0%, rgba(77, 146, 255, .18), transparent 52%);
  box-shadow: 0 0 0 1px rgba(22,215,193,.06), 0 20px 70px rgba(0,0,0,.42), 0 0 50px rgba(77,146,255,.12);
}

.console-corners::before,
.console-corners::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 40px;
  border-color: rgba(22,215,193,.38);
  pointer-events: none;
}

.console-corners::before {
  left: 18px;
  top: 16px;
  border-top: 1px solid;
  border-left: 1px solid;
  border-radius: 18px 0 0 0;
}

.console-corners::after {
  right: 18px;
  bottom: 16px;
  border-bottom: 1px solid;
  border-right: 1px solid;
  border-radius: 0 0 18px 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 34px 34px 22px;
  text-align: center;
}

.tiny-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 13px;
  border: 1px solid rgba(22,215,193,.26);
  border-radius: 999px;
  background: rgba(22,215,193,.08);
  color: #b7fff3;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

h1 {
  margin: 12px auto 8px;
  max-width: 940px;
  line-height: .9;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

h1 span {
  display: block;
  color: #f7fbff;
  font-size: clamp(1.8rem, 5vw, 4.1rem);
  font-weight: 950;
  font-style: italic;
}

h1 strong {
  display: block;
  font-size: clamp(2.35rem, 7.2vw, 6.2rem);
  font-weight: 950;
  background: linear-gradient(180deg, #9ee7ff 0%, #19d9ff 35%, #2b8dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 36px rgba(25,217,255,.16);
}

.hero-copy p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted-2);
  line-height: 1.55;
}

.mission-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.35fr;
  gap: 12px;
  padding: 0 22px 24px;
}

.mission-stats article {
  min-height: 96px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(77, 146, 255, .22);
  border-radius: 19px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.stat-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 1.4rem;
  font-weight: 900;
  border: 1px solid rgba(77, 146, 255, .28);
  background: rgba(77, 146, 255, .10);
  color: var(--blue-soft);
}

.stat-icon.layers {
  color: #8fffd9;
  border-color: rgba(19,212,141,.28);
  background: rgba(19,212,141,.10);
}

.stat-icon.code {
  color: #ceb8ff;
  border-color: rgba(167,124,255,.28);
  background: rgba(167,124,255,.10);
}

.stat-icon.clock {
  color: #ffd98e;
  border-color: rgba(246,196,83,.28);
  background: rgba(246,196,83,.10);
}

.mission-stats span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.mission-stats strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  line-height: 1;
}

.wide-stat strong {
  font-size: clamp(1rem, 1.45vw, 1.32rem);
}

.filter-console {
  margin-top: 16px;
  border: 1px solid rgba(77,146,255,.30);
  border-radius: 24px;
  background: rgba(4, 9, 19, .74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  padding: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr) 190px 190px;
  gap: 12px;
  align-items: center;
}

.reset-btn,
.field input,
.field select {
  width: 100%;
  height: 50px;
  min-width: 0;
  border: 1px solid rgba(98,152,255,.25);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(4,9,19,.96), rgba(3,7,15,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.reset-btn {
  color: var(--muted-2);
  font-size: 1.5rem;
  font-weight: 900;
}

.field {
  min-width: 0;
}

.field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.field input {
  padding: 0 16px;
}

.field select {
  padding: 0 38px 0 14px;
  font-weight: 850;
  text-overflow: ellipsis;
}

.field input:focus,
.field select:focus,
.reset-btn:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(77,146,255,.15);
}

.channel-toggle {
  grid-column: 2 / 4;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.channel-btn {
  width: min(170px, 48%);
  height: 48px;
  border: 1px solid rgba(98,152,255,.25);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,.055);
  font-weight: 900;
}

.channel-btn.active {
  color: #9ac2ff;
  border-color: rgba(77,146,255,.65);
  background: rgba(77,146,255,.13);
  box-shadow: 0 0 22px rgba(77,146,255,.10);
}

.channel-btn[data-channel="dev"].active {
  color: var(--gold);
  border-color: rgba(246,196,83,.46);
  background: rgba(246,196,83,.09);
}

.mini-stats {
  grid-column: 4 / 6;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-stats span,
.meta-chip,
.app-chip,
.version-chip,
.small-chip,
.rank-badge,
.bundle-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(98,152,255,.20);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: var(--muted-2);
  font-size: .76rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 18px 4px 12px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 850;
}

.status-row span:last-child {
  color: var(--cyan);
}

.bundle-list {
  display: grid;
  gap: 13px;
}

.bundle-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(98,152,255,.21);
  border-radius: 19px;
  background: linear-gradient(180deg, rgba(10,20,37,.94), rgba(6,13,25,.98));
  box-shadow: 0 12px 32px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035);
}

.bundle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 2px solid rgba(22,215,193,.28);
  opacity: 0;
  pointer-events: none;
}

.bundle-card:hover,
.bundle-card.expanded {
  border-color: rgba(77,146,255,.48);
  box-shadow: 0 16px 44px rgba(0,0,0,.34), 0 0 30px rgba(77,146,255,.08);
}

.bundle-card:hover::before,
.bundle-card.expanded::before {
  opacity: 1;
}

.bundle-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 13px 16px 11px;
  cursor: pointer;
}

.bundle-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rank-badge {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 13px;
  color: #d6ebff;
  background: linear-gradient(145deg, rgba(77,146,255,.18), rgba(22,215,193,.08));
}

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

.bundle-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bundle-name {
  margin: 0;
  min-width: 0;
  font-size: 1.42rem;
  line-height: 1;
  letter-spacing: -.05em;
  background: linear-gradient(90deg, #6aaaff, #17d8c1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.version-chip {
  color: #fff;
}




.bundle-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.bundle-action {
  min-height: 29px;
  text-decoration: none;
}

.repo-link {
  width: 30px;
  padding: 0;
  color: #08101d;
  background: rgba(255,255,255,.92);
}

.add-btn {
  color: var(--green);
  border-color: rgba(19,212,141,.38);
  background: rgba(19,212,141,.11);
}

.bundle-meta {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.app-chip-row {
  display: flex;
  gap: 6px;
  padding: 9px 16px 12px 66px;
  border-top: 1px solid rgba(98,152,255,.16);
  overflow-x: auto;
  scrollbar-width: thin;
}

.app-chip {
  min-height: 26px;
  padding: 5px 9px;
  color: #f4f8ff;
  background: rgba(255,255,255,.045);
}

.app-chip:hover,
.app-chip.active {
  color: #9cc4ff;
  border-color: rgba(77,146,255,.46);
  background: rgba(77,146,255,.11);
}

.details {
  display: none;
  padding: 13px 16px 16px 66px;
  border-top: 1px solid rgba(98,152,255,.16);
  background: rgba(255,255,255,.015);
}

.bundle-card.expanded .details {
  display: block;
}

.detail-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-app-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), #2d6df5);
  color: white;
  font-weight: 900;
}

.package-chip {
  color: #9cc4ff;
}

.patch-list {
  display: grid;
  gap: 9px;
  max-height: 680px;
  overflow-y: auto;
  padding-right: 4px;
}

.patch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(98,152,255,.18);
  border-radius: 15px;
  background: rgba(255,255,255,.035);
}

.patch-row h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -.02em;
}

.patch-row p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.patch-version {
  display: flex;
  gap: 7px;
  align-items: center;
}

.patch-version .version-chip {
  color: var(--green);
  border-color: rgba(19,212,141,.32);
  background: rgba(19,212,141,.10);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.empty {
  padding: 24px;
  border: 1px dashed rgba(98,152,255,.25);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
}

.site-footer {
  margin-top: 26px;
  text-align: center;
  color: var(--muted);
  font-size: .86rem;
}

.site-footer span {
  display: block;
  color: var(--cyan);
  font-size: 1.2rem;
}

.back-top {
  position: fixed;
  right: 17px;
  bottom: 17px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 14px 35px rgba(0,0,0,.38);
}

/* Blastoff loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(77,146,255,.22), transparent 25%),
    radial-gradient(circle at 20% 18%, rgba(22,215,193,.12), transparent 20%),
    linear-gradient(180deg, rgba(3,7,19,.985), rgba(2,4,11,.99));
  transition: opacity .42s ease, visibility .42s ease;
}

.loading-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.8) 1px, transparent 1px),
    radial-gradient(circle, rgba(157,205,255,.4) 1px, transparent 1px);
  background-size: 92px 92px, 148px 148px;
  opacity: .36;
  animation: loaderStars 22s linear infinite;
}

.loading-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-overlay.is-error .launch-chip {
  color: #ffd4dd;
  border-color: rgba(251,113,133,.36);
  background: rgba(251,113,133,.10);
}

.launch-card {
  position: relative;
  width: min(92vw, 620px);
  padding: 28px 22px 32px;
  text-align: center;
  border: 1px solid rgba(98,152,255,.26);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10,20,37,.94), rgba(5,10,20,.97));
  box-shadow: var(--shadow);
}

.launch-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(22,215,193,.28);
  background: rgba(22,215,193,.09);
  color: #b9fff4;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.rocket-stage {
  position: relative;
  height: 170px;
  margin: 18px auto 6px;
  overflow: hidden;
}

.rocket-beam {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 20px;
  height: 120px;
  margin-left: -10px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255,194,78,.86), rgba(255,94,0,.24));
  filter: blur(5px);
  animation: beamPulse .8s ease-in-out infinite;
}

.rocket {
  position: absolute;
  left: 50%;
  bottom: 38px;
  width: 58px;
  height: 104px;
  margin-left: -29px;
  border-radius: 30px 30px 15px 15px;
  background: linear-gradient(180deg, #ffffff, #cce5ff 56%, #79b4ff);
  animation: rocketLift 1.15s ease-in-out infinite;
}

.rocket::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border-radius: 18px 18px 7px 7px;
  background: linear-gradient(180deg, white, #bad8ff);
}

.rocket-window {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 999px;
  background: radial-gradient(circle at 40% 35%, #e8fbff, #48ccff 58%, #2861b8);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.68);
}

.rocket-fin {
  position: absolute;
  bottom: 12px;
  width: 18px;
  height: 28px;
  background: linear-gradient(180deg, #66a3ff, #2352af);
}

.rocket-fin.left {
  left: -9px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.rocket-fin.right {
  right: -9px;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.rocket-flame {
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 20px;
  height: 38px;
  margin-left: -10px;
  border-radius: 14px 14px 20px 20px;
  background: radial-gradient(circle at 50% 20%, #fff8d6, #ffd15a 34%, #ff7a00 70%, transparent 100%);
  animation: flame .55s ease-in-out infinite;
}

.launch-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -.04em;
  background: linear-gradient(94deg, #69a8ff, #18d8c1 72%, #dffcff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.launch-card p {
  margin: 0;
  color: var(--muted-2);
}

.loader-track {
  width: min(350px, 100%);
  height: 9px;
  margin: 17px auto 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(98,152,255,.18);
}

.loader-track span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(77,146,255,.15), rgba(77,146,255,.92), rgba(22,215,193,.92));
  animation: loadBar 1.25s ease-in-out infinite;
}

@keyframes rocketLift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes flame {
  0%, 100% { transform: scaleY(1); opacity: .92; }
  50% { transform: scaleY(1.24) scaleX(.88); opacity: 1; }
}

@keyframes beamPulse {
  0%, 100% { opacity: .58; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

@keyframes loadBar {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(340%); }
}

@keyframes loaderStars {
  to { background-position: 0 320px, 0 520px; }
}

@media (max-width: 1050px) {
  .mission-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-grid {
    grid-template-columns: 58px 1fr 1fr;
  }

  .select-field,
  .channel-toggle,
  .mini-stats {
    grid-column: 1 / -1;
  }

  .channel-toggle {
    justify-content: flex-start;
  }

  .mini-stats {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 16px, 1180px);
    padding-top: 14px;
  }

  .top-links {
    justify-content: center;
  }

  .hero-copy {
    padding: 26px 18px 18px;
  }

  .mission-stats {
    grid-template-columns: 1fr;
    padding: 0 14px 16px;
  }

  .mission-stats article {
    min-height: 82px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .reset-btn {
    width: 58px;
  }

  .field,
  .channel-toggle,
  .mini-stats {
    grid-column: auto;
  }

  .channel-toggle {
    justify-content: center;
  }

  .mini-stats {
    justify-content: center;
  }

  .bundle-top {
    grid-template-columns: 1fr;
  }

  .bundle-meta {
    justify-content: flex-start;
    padding-left: 50px;
  }

  .app-chip-row,
  .details {
    padding-left: 16px;
  }

  .patch-row {
    grid-template-columns: 1fr;
  }
}


/* Cards, sorting, avatars, and original-name color removal */
.shell {
  width: min(1080px, calc(100% - 32px));
}

.filter-grid {
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 168px 168px 174px;
}

.channel-toggle {
  grid-column: 2 / 4;
}

.mini-stats {
  grid-column: 4 / 7;
}

.field select {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bundle-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.bundle-card {
  min-width: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(77, 146, 255, .10), transparent 34%),
    linear-gradient(180deg, rgba(12, 24, 43, .96), rgba(5, 12, 24, .985));
}

.bundle-top {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 15px 15px 12px;
}

.bundle-left {
  align-items: center;
}

.rank-badge {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: .78rem;
}

.dev-avatar {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(22, 215, 193, .35);
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.20), transparent 18%),
    linear-gradient(145deg, rgba(22,215,193,.20), rgba(77,146,255,.14));
  color: #dffcff;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: -.02em;
  box-shadow: 0 0 22px rgba(22,215,193,.08), inset 0 1px 0 rgba(255,255,255,.06);
}

.dev-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dev-avatar span {
  position: relative;
  z-index: 0;
}

.bundle-main {
  flex: 1;
  min-width: 0;
}

.bundle-title-row {
  gap: 9px;
}

.bundle-name {
  color: #f8fbff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  font-size: 1.24rem;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-shadow: 0 0 18px rgba(255,255,255,.06);
}

.bundle-card:nth-child(4n + 1) .bundle-name {
  color: #f7fbff;
}

.bundle-card:nth-child(4n + 2) .bundle-name {
  color: #dfeaff;
}

.bundle-card:nth-child(4n + 3) .bundle-name {
  color: #ecfdf5;
}

.bundle-card:nth-child(4n + 4) .bundle-name {
  color: #f5f3ff;
}

.bundle-actions {
  margin-top: 7px;
}

.bundle-meta {
  justify-content: flex-start;
  padding-left: 90px;
  gap: 6px;
}

.meta-chip {
  min-height: 27px;
  padding: 5px 9px;
}

.app-chip-row {
  padding: 10px 15px 14px;
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  max-height: 92px;
}

.app-chip {
  min-height: 25px;
  padding: 4px 8px;
  font-size: .70rem;
}

.details {
  padding: 14px 15px 16px;
}

.patch-list {
  max-height: 420px;
}

.patch-row {
  grid-template-columns: 1fr;
}

.patch-version {
  justify-content: flex-start;
}

@media (max-width: 1050px) {
  .filter-grid {
    grid-template-columns: 56px 1fr 1fr;
  }

  .select-field,
  .channel-toggle,
  .mini-stats {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .bundle-list {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(100% - 18px, 1080px);
  }
}

@media (max-width: 720px) {
  .bundle-meta {
    padding-left: 90px;
  }

  .app-chip-row,
  .details {
    padding-left: 15px;
  }
}


/* Screenshot polish pass: cleaner controls, card masonry feel, better expanded state */
.shell {
  width: min(1120px, calc(100% - 34px));
}

.hero-console {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.filter-console {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px;
}

.filter-grid {
  grid-template-columns: 56px minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(190px, .85fr);
  gap: 11px;
}

.reset-btn {
  grid-column: 1;
  grid-row: 1;
}

.search-field:nth-of-type(1) {
  grid-column: 2;
  grid-row: 1;
}

.search-field:nth-of-type(2) {
  grid-column: 3;
  grid-row: 1;
}

.select-field:nth-of-type(3) {
  grid-column: 1 / 3;
  grid-row: 2;
}

.select-field:nth-of-type(4) {
  grid-column: 3;
  grid-row: 2;
}

.select-field:nth-of-type(5) {
  grid-column: 4;
  grid-row: 1;
}

.channel-toggle {
  grid-column: 4;
  grid-row: 2;
  justify-content: stretch;
}

.channel-btn {
  width: 50%;
  min-width: 0;
}

.mini-stats {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-content: center;
  padding-top: 2px;
}

.field select,
.field input {
  height: 48px;
}

.field select {
  padding-right: 32px;
  font-size: .86rem;
}

.bundle-list {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bundle-card {
  border-radius: 20px;
}

.bundle-card.expanded {
  grid-column: 1 / -1;
}

.bundle-card.expanded .bundle-top {
  grid-template-columns: minmax(0, 1fr) auto;
}

.bundle-card.expanded .bundle-meta {
  justify-content: flex-end;
  padding-left: 0;
}

.bundle-card.expanded .app-chip-row {
  max-height: none;
  overflow: visible;
}

.bundle-top {
  padding: 14px 14px 11px;
}

.bundle-left {
  gap: 10px;
}

.rank-badge {
  width: 32px;
  min-width: 32px;
  height: 32px;
  font-size: .74rem;
  opacity: .86;
}

.dev-avatar {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 15px;
}

.bundle-name {
  font-size: 1.16rem;
  color: #f6f8fc !important;
  text-transform: none;
  letter-spacing: -.025em;
}

.bundle-title-row::before {
  content: "Source";
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(22, 215, 193, .22);
  background: rgba(22, 215, 193, .07);
  color: #9ff7eb;
  font-size: .62rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.version-chip {
  min-height: 24px;
  padding: 4px 8px;
  font-size: .68rem;
  opacity: .90;
}

.bundle-actions {
  margin-top: 6px;
}

.bundle-action {
  min-height: 27px;
  font-size: .70rem;
}

.bundle-meta {
  padding-left: 90px;
}

.meta-chip {
  min-height: 25px;
  padding: 4px 8px;
  font-size: .68rem;
}

.app-chip-row {
  padding: 9px 14px 13px;
  max-height: 74px;
  overflow: hidden;
  position: relative;
}

.bundle-card:not(.expanded) .app-chip-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(6, 13, 25, .98));
}

.app-chip {
  font-size: .67rem;
  min-height: 23px;
  padding: 4px 7px;
  border-radius: 8px;
}

.details {
  padding: 14px 15px 16px;
}

.patch-list {
  max-height: 440px;
}

.patch-row {
  border-radius: 14px;
  padding: 12px 13px;
}

.patch-row h3 {
  font-size: .98rem;
}

.status-row {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1050px) {
  .filter-grid {
    grid-template-columns: 56px 1fr 1fr;
  }

  .reset-btn {
    grid-column: 1;
    grid-row: 1;
  }

  .search-field:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
  }

  .search-field:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
  }

  .select-field:nth-of-type(3),
  .select-field:nth-of-type(4),
  .select-field:nth-of-type(5),
  .channel-toggle,
  .mini-stats {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  .bundle-list {
    grid-template-columns: 1fr;
  }

  .bundle-card.expanded {
    grid-column: auto;
  }

  .bundle-card.expanded .bundle-top {
    grid-template-columns: 1fr;
  }

  .bundle-card.expanded .bundle-meta {
    justify-content: flex-start;
    padding-left: 90px;
  }
}

@media (max-width: 720px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .reset-btn,
  .search-field:nth-of-type(1),
  .search-field:nth-of-type(2),
  .select-field:nth-of-type(3),
  .select-field:nth-of-type(4),
  .select-field:nth-of-type(5),
  .channel-toggle,
  .mini-stats {
    grid-column: auto;
    grid-row: auto;
  }

  .reset-btn {
    width: 56px;
  }

  .bundle-meta,
  .bundle-card.expanded .bundle-meta {
    padding-left: 90px;
  }
}

@media (max-width: 480px) {
  .bundle-left {
    align-items: flex-start;
  }

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

  .bundle-meta,
  .bundle-card.expanded .bundle-meta {
    padding-left: 0;
  }
}


/* Dropdown theme, Source bubble removal, and View Repo label fix */
.field select,
.field select option,
.field select optgroup {
  background-color: #07111f;
  color: #f8fbff;
}

.field select {
  color-scheme: dark;
  appearance: auto;
  -webkit-appearance: auto;
}

.field select option {
  padding: 10px 12px;
}

.field select option:checked,
.field select option:hover {
  background-color: #102855;
  color: #ffffff;
}

/* Some browsers use this for the opened native select popup */
select:focus option {
  background-color: #07111f;
  color: #f8fbff;
}

/* Remove the extra Source bubble from card titles */
.bundle-title-row::before {
  content: none !important;
  display: none !important;
}

/* Make the repo action a real text button instead of a generic icon */
.bundle-action.repo-link,
.repo-link {
  width: auto !important;
  min-width: 82px;
  padding: 0 12px !important;
  color: #dcebff !important;
  background: rgba(77, 146, 255, .12) !important;
  border-color: rgba(77, 146, 255, .34) !important;
  font-size: .70rem;
  font-weight: 900;
}

.bundle-action.repo-link:hover,
.repo-link:hover {
  color: #ffffff !important;
  background: rgba(77, 146, 255, .20) !important;
  border-color: rgba(77, 146, 255, .56) !important;
}


/* Final polish: centered top bubbles and slower rocket reveal */
.top-links {
  justify-content: center !important;
  margin-left: auto;
  margin-right: auto;
  max-width: 1040px;
}

.shell {
  transition: opacity 1.25s ease, transform 1.25s ease, filter 1.25s ease;
}

.shell.is-launching {
  opacity: 0;
  transform: translateY(24px) scale(.985);
  filter: blur(8px);
}

.loading-overlay {
  transition: opacity 1.05s ease, visibility 1.05s ease, transform 1.05s ease;
}

.loading-overlay.is-lifting {
  background:
    radial-gradient(circle at 50% 20%, rgba(77,146,255,.14), transparent 26%),
    radial-gradient(circle at 20% 18%, rgba(22,215,193,.08), transparent 20%),
    linear-gradient(180deg, rgba(3,7,19,.72), rgba(2,4,11,.38));
  backdrop-filter: blur(2px);
}

.loading-overlay.is-lifting .launch-card {
  animation: launchCardFade 1.25s ease forwards;
}

.loading-overlay.is-lifting .rocket {
  animation: rocketLaunchAway 1.75s cubic-bezier(.18,.74,.16,1) forwards;
}

.loading-overlay.is-lifting .rocket-beam {
  animation: launchBeamStretch 1.75s ease forwards;
}

.loading-overlay.is-lifting .rocket-flame {
  animation: flame .35s ease-in-out infinite;
}

.loading-overlay.is-lifting .loader-track,
.loading-overlay.is-lifting .launch-chip,
.loading-overlay.is-lifting h2,
.loading-overlay.is-lifting p {
  animation: fadeDown .75s ease forwards;
}

@keyframes rocketLaunchAway {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  55% {
    transform: translateY(-120px) scale(.92);
    opacity: 1;
  }
  100% {
    transform: translateY(-260px) scale(.62);
    opacity: 0;
  }
}

@keyframes launchBeamStretch {
  0% {
    height: 120px;
    opacity: .8;
  }
  55% {
    height: 230px;
    opacity: .95;
  }
  100% {
    height: 310px;
    opacity: 0;
  }
}

@keyframes launchCardFade {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(-10px);
    opacity: .72;
  }
  100% {
    transform: translateY(-18px);
    opacity: 0;
  }
}

@keyframes fadeDown {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shell,
  .loading-overlay,
  .loading-overlay.is-lifting .launch-card,
  .loading-overlay.is-lifting .rocket,
  .loading-overlay.is-lifting .rocket-beam,
  .loading-overlay.is-lifting .loader-track,
  .loading-overlay.is-lifting .launch-chip,
  .loading-overlay.is-lifting h2,
  .loading-overlay.is-lifting p {
    animation: none !important;
    transition: none !important;
  }

  .shell.is-launching {
    opacity: 1;
    transform: none;
    filter: none;
  }
}


/* Stable + Dev public channel option */
.channel-toggle {
  flex-wrap: wrap;
}

.channel-btn {
  white-space: nowrap;
}
