.egg-page {
  --egg-glow: rgba(117, 211, 106, 0.26);
}

.egg-page .player-topbar,
.egg-page .collection-header {
  background:
    radial-gradient(circle at 18% 18%, rgba(117, 211, 106, 0.5), transparent 34%),
    linear-gradient(180deg, #fff5d6 0%, #9be46f 100%);
}

.egg-priority-section {
  overflow: hidden;
}

.egg-priority-section.is-ready {
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.92), transparent 20%),
    radial-gradient(circle at 50% 28%, rgba(117, 211, 106, 0.42), transparent 38%),
    linear-gradient(180deg, #fffce8, #bdf08b);
  box-shadow: var(--game-shadow-float), var(--game-glow-green);
}

.egg-kicker,
.egg-status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border: 2px solid var(--game-line-dark);
  border-radius: 999px;
  background: var(--game-stage);
  color: var(--game-accent);
  box-shadow: 0 2px 0 var(--game-line-dark);
  font-size: 0.66rem;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.egg-status-badge {
  background: var(--game-pink);
  color: #fff;
}

.egg-incubator {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 12px;
  align-items: center;
}

.incubator-visual {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 320 / 385;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 35%, rgba(117, 211, 106, 0.28), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(23, 16, 13, 0.08));
  filter: drop-shadow(0 16px 0 rgba(23, 16, 13, 0.16)) drop-shadow(0 22px 22px rgba(23, 16, 13, 0.26));
  overflow: visible;
}

.incubator-machine {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.incubator-egg {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 34%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(23, 16, 13, 0.28));
}

.egg-incubator-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 10px;
  border: 3px solid var(--game-line-dark);
  border-radius: var(--game-radius-lg);
  background: rgba(255, 247, 223, 0.92);
  box-shadow: inset 0 -5px 0 rgba(23, 16, 13, 0.08);
}

.egg-incubator-name {
  font-size: clamp(1.2rem, 7vw, 1.9rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.egg-progress {
  height: 16px;
  border: 3px solid var(--game-line-dark);
  border-radius: 999px;
  background: #2b211c;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.egg-progress i {
  display: block;
  height: 100%;
  border-right: 3px solid var(--game-line-dark);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.25) 0 7px, transparent 7px 14px),
    linear-gradient(90deg, var(--game-green), var(--game-accent));
}

.egg-primary-action {
  justify-self: start;
  margin-top: 4px;
}

.egg-tile-grid {
  width: 100%;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.egg-tile {
  min-height: 190px;
}

.egg-tile__media {
  aspect-ratio: 1;
}

.egg-history-list {
  display: grid;
  gap: 8px;
}

.egg-history-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 2px solid var(--game-line-dark);
  border-radius: var(--game-radius-md);
  background: #fff7df;
}

.egg-history-row img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.hatch-shell {
  width: auto;
}

.hatch-stage {
  width: min(var(--game-page-max), 100%);
  min-height: calc(100dvh - var(--game-bottom-nav-height) - 96px);
  margin: 0 auto;
  border: 3px solid var(--game-line-dark);
  border-radius: var(--game-radius-xl);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 210, 63, 0.42), transparent 30%),
    linear-gradient(180deg, #2d211b 0%, #111 100%);
  box-shadow: var(--game-shadow-float);
}

.hatch-stage > strong {
  color: var(--game-accent);
  font-size: clamp(1.35rem, 9vw, 2.4rem);
  text-shadow: 0 3px 0 var(--game-line-dark);
}

.hatch-burst {
  position: absolute;
  width: min(84vw, 460px);
  max-height: 56dvh;
  opacity: 0.78;
}

.hatch-result-card {
  width: min(100%, 420px);
  border: 3px solid var(--game-line-dark);
  border-radius: var(--game-radius-lg);
  background: var(--game-paper);
  color: var(--game-ink);
  box-shadow: var(--game-shadow-raised);
}

@media (max-width: 560px) {
  .egg-incubator {
    grid-template-columns: 1fr;
  }

  .incubator-visual {
    width: min(100%, 270px);
  }
}
