.page-eggs-working .app,
.page-eggs .app {
  width: min(100%, 1440px);
}

.eggs-preview-banner {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: -34px auto 24px;
  padding: 9px 15px;
  border: 1px solid rgba(226, 162, 112, 0.3);
  border-radius: 999px;
  color: var(--parchment);
  background: rgba(193, 125, 79, 0.08);
  font-size: 0.74rem;
  text-align: center;
}

.eggs-preview-banner strong {
  color: var(--copper-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eggs-preview-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--copper-light);
  box-shadow: 0 0 0 4px rgba(226, 162, 112, 0.1);
}

.eggs-header {
  margin-bottom: 30px;
}

.results-kicker {
  margin: 0 0 9px;
  color: var(--copper-light);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hatch-toolbar {
  width: min(100%, 1240px);
  margin: 0 auto 18px;
  padding: 16px 18px;
  border: 1px solid var(--copper-frame);
  border-radius: 18px;
  background: rgba(7, 21, 16, 0.9);
  box-shadow: var(--shadow-soft);
}

.pool-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pool-tab {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.35vw, 20px);
  padding: 8px 10px;
  border: 1px solid rgba(201, 195, 184, 0.13);
  border-radius: 11px;
  color: var(--bark);
  background: rgba(2, 10, 7, 0.55);
  font: inherit;
  font-size: 0.73rem;
  font-weight: 900;
  cursor: pointer;
  transition: 150ms ease;
}

.pool-tab:hover {
  border-color: rgba(98, 194, 180, 0.35);
  color: var(--parchment);
  background: rgba(16, 45, 35, 0.7);
}

.pool-tab[aria-selected="true"] {
  border-color: rgba(98, 194, 180, 0.68);
  color: var(--limestone);
  background: linear-gradient(145deg, rgba(23, 107, 98, 0.32), rgba(9, 36, 28, 0.8));
  box-shadow: inset 0 0 0 1px rgba(98, 194, 180, 0.09);
}

.pool-tab-egg {
  display: flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
}

.pool-tab-egg img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.34));
}

.pool-tab-egg-pair {
  width: 52px;
  flex-basis: 52px;
}

.pool-tab-egg-pair img {
  width: 34px;
  height: 34px;
}

.pool-tab-egg-pair img + img {
  margin-left: -16px;
}

.pool-tab-copy {
  min-width: 52px;
  text-align: center;
}

.pool-tab-copy strong {
  display: block;
  color: inherit;
  font-size: 0.82rem;
}

.hatch-board {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.hatch-results {
  border: 1px solid var(--copper-frame);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(10, 27, 21, 0.9), rgba(3, 13, 10, 0.95));
  box-shadow: var(--shadow-soft);
}

.hatch-results {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 26px);
}

.hatch-results-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.hatch-results-header .results-kicker {
  margin: 0;
}

.pool-description {
  margin: 0;
  color: var(--parchment);
  font-size: clamp(0.82rem, 1.25vw, 1rem);
  font-weight: 850;
  letter-spacing: 0.025em;
  text-align: center;
}

.result-count {
  justify-self: end;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(98, 194, 180, 0.23);
  border-radius: 999px;
  color: var(--verdigris-300);
  background: rgba(23, 107, 98, 0.1);
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

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

.hatch-grid-grouped {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hatch-card {
  position: relative;
  min-height: 92px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(201, 195, 184, 0.13);
  border-radius: 13px;
  background:
    radial-gradient(circle at 92% 6%, rgba(98, 194, 180, 0.08), transparent 34%),
    rgba(2, 10, 7, 0.58);
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.hatch-card:hover {
  border-color: rgba(98, 194, 180, 0.36);
  background-color: rgba(6, 22, 16, 0.8);
  transform: translateY(-2px);
}

.hatch-card-top {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.5vw, 22px);
}

.hatch-sprite-shell {
  position: relative;
  display: flex;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(98, 194, 180, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 194, 180, 0.15), rgba(4, 16, 12, 0.78) 70%);
}

.hatch-sprite-shell::after {
  position: absolute;
  inset: auto 8px 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  content: "";
  filter: blur(3px);
}

.hatch-sprite {
  position: relative;
  z-index: 1;
  width: 108px;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.36));
  transform: translateY(var(--sprite-y, -18px));
}

.hatch-card-name {
  min-width: 0;
}

.hatch-card-name h3 {
  margin: 0;
  overflow: hidden;
  color: var(--limestone);
  font-size: 0.96rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hatch-card-name p {
  margin: 5px 0 0;
  color: var(--bark);
  font-size: 0.65rem;
}

.hatch-card-name strong {
  color: var(--parchment);
  font-weight: 900;
}

.hatch-group-heading {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  margin: 8px 2px 0;
  color: var(--copper-light);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hatch-group-heading::after {
  height: 1px;
  flex: 1;
  background: rgba(226, 162, 112, 0.2);
  content: "";
}

@media (max-width: 1040px) {
  .hatch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 780px) {
  .eggs-preview-banner {
    margin-top: -20px;
  }

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

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

@media (max-width: 580px) {
  .eggs-preview-banner span:last-child {
    display: none;
  }

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

  .pool-tab {
    min-width: 0;
  }

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

  .hatch-grid.hatch-grid-grouped {
    grid-template-columns: 1fr;
  }

  .hatch-results-header {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 14px;
  }

  .pool-description {
    grid-column: 1 / -1;
    grid-row: 2;
  }

}
