#egg-journey {
  min-width: 0;
  min-height: 0;
}

.egg-stage {
  --egg-deep: #024a0f;
  --egg-paper: #fbf9f3;
  --egg-gold: #f6b103;
  --egg-border: #90621948;
  --egg-muted: #4f592f;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: clamp(430px, 48vw, 680px);
  height: 100%;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  border: 1px solid var(--egg-border);
  border-radius: clamp(16px, 3vw, 36px);
  color: var(--egg-deep);
  background:
    radial-gradient(ellipse at 36% 22%, #fffdf3 0, #fbf4dc 34%, transparent 72%),
    radial-gradient(ellipse at 25% 72%, #fdf3d1 0, #e7c884 80%);
  box-shadow: inset 0 0 0 6px #fdf8e44f, 0 26px 55px #3424081f;
}

.egg-stage::before {
  position: absolute;
  inset: 8px;
  z-index: -1;
  border: 1px solid #98763b31;
  border-radius: inherit;
  content: "";
}

.egg-stage-header, .egg-stage-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-inline: clamp(17px, 3vw, 36px);
  font-size: .9rem;
}

.egg-stage-header {
  padding-block-start: clamp(20px, 3vw, 36px);
}

.egg-stage-header p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  line-height: 1.35;
}

.egg-stage-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  background: #d60f05;
  border-radius: 50%;
}

.egg-progress {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.egg-progress li {
  width: clamp(11px, 2vw, 27px);
  height: 4px;
  border-radius: 100px;
  background: #946d3952;
  transition: background-color 280ms;
}

.egg-progress li.complete {
  background: var(--egg-deep);
}

.egg-progress li[aria-current="step"] {
  background: #aa6112;
}

.egg-stage-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  min-height: 74px;
  padding-block-end: 19px;
  color: var(--egg-muted);
}

.egg-status {
  min-height: 2.8em;
  display: flex;
  align-items: center;
  font-size: .9rem;
  line-height: 1.4;
}

.egg-display {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0 11px;
}

.egg-art {
  position: relative;
  display: block;
  width: min(100%, 590px);
}

.egg-art svg {
  display: block;
  width: 100%;
  max-height: 430px;
  overflow: visible;
}

.egg-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.egg-button, .egg-skip {
  min-height: 44px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
}

.egg-button {
  padding: 8px 13px;
  border: 1px solid var(--egg-deep);
  border-radius: 100px;
  background: var(--egg-deep);
  color: var(--egg-paper);
  transition: background-color 240ms, color 240ms;
}

.egg-button:hover {
  background: var(--egg-gold);
  color: var(--egg-deep);
}

.egg-skip {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--egg-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.egg-stage .egg-controls :focus-visible {
  outline-color: var(--egg-deep);
}

.egg-art svg g,
.egg-art svg use,
.egg-art svg path,
.egg-art svg ellipse,
.egg-art svg rect {
  transform-box: view-box;
}

.egg-intact, .egg-fragments { transform-origin: 280px 195px; }
.egg-cap { transform-origin: 280px 147px; }
.egg-cup { transform-origin: 280px 235px; }
.egg-chick, .egg-hen { transform-origin: 280px 282px; }
.egg-laid { transform-origin: 305px 247px; }
.egg-lift { transform-origin: 110px 279px; }
.egg-hatch-door { transform-origin: 141px 158px; }
.egg-truck { transform-origin: 248.5px 192.5px; }
.egg-finish-card { transform-origin: 280px 192.5px; }

.egg-cap, .egg-cup, .egg-seam, .egg-fragments, .egg-chick, .egg-hen, .egg-laid,
.egg-road, .egg-truck, .egg-lift, .egg-hatch, .egg-finish-card,
.egg-tray, .egg-tray-egg, .egg-packing-hand {
  opacity: 0;
}

@media (max-width: 900px) {
  .egg-stage-footer {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: start;
  }
  .egg-status { min-height: 1.4em; }
}

@media (max-width: 700px) {
  .egg-stage { min-height: clamp(328px, 91vw, 500px); }
  .egg-stage-footer { min-height: 104px; }
}
