:root {
  --sky-top: #090f2f;
  --sky-mid: #121a49;
  --sky-bottom: #222c64;
  --panel: rgba(11, 16, 42, 0.48);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f4f7ff;
  --muted: rgba(244, 247, 255, 0.76);
  --accent: #77d652;
  --accent-2: #3f63ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 227, 157, 0.12), transparent 12%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 52%, var(--sky-bottom) 100%);
  overflow-x: hidden;
}
a { color: inherit; }

.sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: #000;
}

.gate.is-hidden {
  display: none;
}

.gate__card {
  width: min(420px, calc(100% - 28px));
  padding: 28px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.gate__title {
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.gate__sub {
  color: rgba(244, 247, 255, 0.65);
  font-size: 0.96rem;
  margin-bottom: 20px;
}

.gate__card p {
  margin: 0 0 18px;
  color: rgba(244, 247, 255, 0.72);
  line-height: 1.6;
}

.gate__status {
  margin-top: 14px;
  color: rgba(244, 247, 255, 0.7);
  font-size: 0.92rem;
}

.sky__grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 28, 0.18) 0%, rgba(10, 13, 37, 0.14) 34%, rgba(41, 56, 125, 0.04) 100%),
    radial-gradient(circle at 50% 14%, rgba(255, 227, 157, 0.12), transparent 12%);
  transition: background 0.8s ease;
}

.sky__stars {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  animation: twinkle var(--tw, 4s) ease-in-out infinite;
}

.sky__clouds .cloud {
  position: absolute;
  width: 120px;
  height: 38px;
  border-radius: 999px;
  background: rgba(141, 149, 189, 0.18);
  box-shadow: 30px 0 0 rgba(141, 149, 189, 0.18), 60px -8px 0 rgba(141, 149, 189, 0.18);
  animation: drift 28s linear infinite;
}

.cloud--a { top: 114px; left: 56px; }
.cloud--b { top: 72px; right: 160px; animation-duration: 34s; }
.cloud--c { top: 250px; right: 8px; animation-duration: 30s; transform: scale(0.92); }

.sky__celestial {
  position: absolute;
  inset: 0;
}

.sky__sun, .sky__moon {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  left: 20%;
  top: 16%;
  opacity: 0.95;
  transition: transform 0.6s ease, opacity 0.6s ease, left 0.6s ease, top 0.6s ease;
}

.sky__sun {
  background: radial-gradient(circle at 35% 35%, #fffbe0 0%, #ffe27a 45%, #ffc03a 100%);
  box-shadow: 0 0 40px rgba(255, 209, 69, 0.45);
}

.sky__moon {
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 35% 35%, #f7f8ff 0%, #ced6f5 55%, #a8b0d8 100%);
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.28);
  opacity: 0;
}

.sky__glow {
  position: absolute;
  inset: auto 0 -120px;
  height: 240px;
  background: radial-gradient(circle at 50% 0%, rgba(87, 211, 154, 0.18), transparent 56%);
  opacity: 0.55;
}

.sky__horizon {
  position: absolute;
  left: 50%;
  bottom: 84px;
  width: min(760px, 80vw);
  height: 120px;
  transform: translateX(-50%);
  border-radius: 999px 999px 24px 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 211, 94, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(8, 10, 28, 0.03), rgba(8, 10, 28, 0.56));
  box-shadow: 0 -20px 60px rgba(7, 10, 28, 0.3) inset;
  opacity: 0.92;
  pointer-events: none;
}

.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 64px;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(7, 10, 28, 0.88), rgba(7, 10, 28, 0.48));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  width: min(1180px, calc(100% - 28px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar__logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform-origin: center center;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  will-change: transform;
}

.topbar__home {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  perspective: 800px;
}

.topbar__home:hover .topbar__logo {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.topbar__home.is-hovering .topbar__logo {
  filter: brightness(1.08) saturate(1.06);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__pill,
.topbar__btn {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  border-radius: 36px;
  padding: 26px 22px 20px;
  margin-top: 18px;
  overflow: hidden;
}

.hero__art {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  perspective: 1000px;
  position: relative;
  z-index: 2;
}

.hero__art img {
  width: min(180px, 40vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.28));
  transform-origin: center center;
  transition: transform 180ms ease, filter 180ms ease;
  cursor: pointer;
}

.hero__art.is-hovering img {
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.38));
}

.status-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  position: relative;
  z-index: 2;
}

.status-chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 18, 43, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 247, 255, 0.95);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.status-chip--accent {
  color: #bdfd66;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 22px 0;
  position: relative;
  z-index: 2;
}

.hero__meta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 22px;
  align-items: end;
}

.hero__copy h1 {
  margin: 0 0 12px;
  font-family: "Fraunces", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

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

.stat {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 8px;
}

.stat__label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: rgba(244, 247, 255, 0.6);
}

.stat strong,
.stat span,
.stat a {
  font-size: 1rem;
  font-weight: 700;
}

.ghost-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}

.list-panel {
  margin-top: 18px;
  border-radius: var(--radius-xl);
  padding: 22px;
}

.panel__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.panel__top h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.panel__top p {
  margin: 0;
  color: var(--muted);
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 247, 255, 0.92);
  font-size: 0.88rem;
  white-space: nowrap;
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.toolbar input,
.toolbar button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 14px;
  height: 48px;
  padding: 0 16px;
  font: inherit;
}

.toolbar input {
  flex: 1;
  outline: none;
}

.toolbar input::placeholder {
  color: rgba(244, 247, 255, 0.5);
}

.toolbar button {
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.toolbar button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.subnote {
  color: rgba(244, 247, 255, 0.78);
  font-size: 0.94rem;
  margin: 8px 0 16px;
}

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

.seed-card {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.seed-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(119, 214, 82, 0.24);
}

.seed-card.is-live {
  border-color: rgba(119, 214, 82, 0.3);
}

.seed-card img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  padding: 8px;
}

.seed-meta { min-width: 0; }

.seed-name {
  display: block;
  font-weight: 800;
  font-size: 1.06rem;
  margin-bottom: 5px;
}

.seed-extra {
  display: grid;
  gap: 2px;
  color: rgba(244, 247, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.seed-link {
  color: white;
  text-decoration: none;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(64, 92, 255, 0.9), rgba(53, 76, 220, 0.92));
  padding: 10px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.seed-link:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes drift {
  from { transform: translateX(-20px); }
  to { transform: translateX(40px); }
}

@media (max-width: 960px) {
  .hero__meta,
  .hero__stats,
  .grid {
    grid-template-columns: 1fr;
  }

  .panel__top,
  .toolbar {
    flex-direction: column;
  }

  .seed-card {
    grid-template-columns: 78px 1fr;
  }

  .seed-link {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .star,
  .cloud {
    animation: none;
  }

  .hero__art img,
  .topbar__logo {
    transition: none;
  }
}
