.home-egg-trigger {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: calc(100% + 2px);
  transform: translateY(-50%);
  width: 34px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.home-egg-trigger:disabled { cursor: default; }
.home-egg-trigger:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; border-radius: 8px; }
.home-egg-trigger :is(.brand-star-slot, .touch-brand-star) { pointer-events: none; }
.home-egg-trigger .brand-star { transform-origin: center; transform-box: view-box; }
.home-star-halo {
  position: absolute; top: 50%; left: 50%; width: 68px; height: 68px;
  margin: -34px 0 0 -34px; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fff9dc91 0%, #b8a2ff40 25%, #8dbbff17 48%, transparent 68%);
}
.home-egg-trigger[data-star-active] .brand-star { animation: home-star-turn 680ms cubic-bezier(.2,.72,.28,1); }
.home-egg-trigger[data-star-sky] .home-star-halo { animation: home-star-shine 760ms ease-out; }
@keyframes home-star-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes home-star-shine {
  from { opacity: .38; transform: scale(.42); }
  24% { opacity: .9; transform: scale(.77); }
  to { opacity: 0; transform: scale(1.42); }
}
@media (prefers-reduced-motion: reduce) {
  .home-egg-trigger[data-star-active] .brand-star { animation: none; }
  .home-egg-trigger[data-star-sky] .home-star-halo { animation: home-star-fade 380ms ease-in-out; }
}
@keyframes home-star-fade { from, to { opacity: 0; } 50% { opacity: .55; } }
body[data-home-layout="explore"] .home-brand-header .home-egg-trigger .brand-star-slot { left: 8px; }
body.menu-open .home-egg-trigger,
:root[data-home-eggs="off"] .home-egg-trigger { visibility: hidden; }

@media (max-width: 650px), (any-pointer: coarse) {
  .home-egg-trigger { left: 100%; width: 44px; }
  body[data-home-layout="explore"] .home-brand-header .home-egg-trigger .brand-star-slot { display: none; }
  body[data-home-layout="explore"] .home-brand-header .home-egg-trigger .touch-brand-star { left: 0; }
}

.home-egg-stage {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}
.home-egg-stage:not([data-automatic]) {
  bottom: calc(-1 * (var(--home-explore-lead-in, 0px) + var(--home-explore-heading-inset, 0px)));
}
.home-egg-stage[data-automatic] { z-index: 2; }
body[data-home-layout="explore"] { --home-egg-background: #050505; }
body[data-home-view="home"] .hero:not([data-new-year-effect]) + .home-content-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--home-egg-background);
  opacity: var(--home-egg-explore-fill, 0);
  pointer-events: none;
}
body[data-home-view="home"]:has(.hero:not([data-new-year-effect]) > .home-egg-stage:not([data-automatic])) .home-explore-footer::before {
  background-color: color-mix(in srgb, var(--home-egg-background) calc(var(--home-egg-explore-fill, 0) * 100%), var(--home-explore-chrome-color));
  transition: none;
}
.home-new-year-sky { position: relative; display: block; width: 100%; height: 100%; }
:root:not([data-environment-phase="night"]) .home-egg-stage[data-performance="fireworks"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 39%, #11172f86, #1a243e38 46%, transparent 76%);
  animation: home-fireworks-shade 9s ease both;
}
@keyframes home-fireworks-shade {
  0%, 100% { opacity: 0; }
  7%, 84% { opacity: 1; }
}
.hero[data-new-year-effect] > .home-egg-stage:not([data-automatic]),
body:not([data-home-view="home"]) .home-egg-stage { visibility: hidden; }
.home-new-year-countdown {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.home-star-countdown.home-countdown-light {
  fill: #0b0b10;
  filter: drop-shadow(0 0 2px #ffffffcc);
}
.home-star-countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: min(68%, 540px, 100svh);
  height: auto;
  transform: translate(-50%, -50%);
  fill: #edf2ff;
  filter: drop-shadow(0 0 3px #abc4fb85);
}
.home-new-year-greeting {
  position: absolute;
  top: 50%;
  left: 50%;
  white-space: nowrap;
  color: #ffe9c0;
  font-size: clamp(34px, 9vmin, 92px);
  font-weight: 600;
  letter-spacing: .18em;
  text-indent: .18em;
  text-shadow: 0 0 18px #ffb86a66, 0 0 48px #ff8f5a33;
  animation: home-new-year-greeting var(--greeting-duration, 6s) ease-in-out both;
  pointer-events: none;
}
.home-new-year-year {
  position: absolute;
  top: 50%;
  left: 50%;
  white-space: nowrap;
  color: #ffe9c0;
  font-size: clamp(40px, 10vmin, 104px);
  font-weight: 600;
  letter-spacing: .14em;
  text-indent: .14em;
  text-shadow: 0 0 20px #ffb86a77, 0 0 56px #ff8f5a44;
  animation: home-new-year-greeting var(--greeting-duration, 4s) ease-in-out both;
  pointer-events: none;
}
@keyframes home-new-year-greeting {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.94); }
  18%, 78% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .home-new-year-greeting { animation: none; opacity: 1; transform: translate(-50%, -50%); }
}

.home-egg-curtain, .home-egg-front {
  position: absolute;
  inset: 0;
}

.home-egg-curtain { background-color: var(--home-egg-background, #050505); }
.home-egg-curtain .home-v1-led { display: block; width: 100%; height: 100%; }
.home-egg-stage[data-performance="birthday"]:not([data-automatic]) { bottom: 0; }
.home-birthday-canvas, .home-birthday-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.home-birthday-halo { z-index: 1; }
.home-egg-stage[data-return-spin] .home-v1-led {
  transform-origin: var(--egg-origin, center);
  transform: rotate(var(--egg-turn, 0deg));
}
.home-egg-dismiss {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}
.home-egg-front {
  background: conic-gradient(from calc(-90deg + var(--egg-turn, 0deg)) at var(--egg-origin),
    #ff70bb, #ff9d93, #ffd276, #bb8cff, #70a8ff, #71e1ef, #ff70bb);
}

.home-egg-actor {
  position: absolute;
  width: clamp(88px, 17vmin, 160px);
  height: auto;
  top: max(36%, calc(env(safe-area-inset-top, 0px) + 88px));
  left: max(0px, env(safe-area-inset-left, 0px));
  overflow: visible;
  color: var(--text);
  opacity: 0;
}

.home-egg-stage[data-performance] .home-egg-actor {
  top: 50%;
  left: 50%;
  width: clamp(120px, 24vmin, 210px);
  translate: -50% -50%;
  color: #fff;
}

.home-egg-arm { transform-origin: 47px 108px; }
