/* Eggs: incubator panel + hatch cutscene (js/eggs.js) */
.egg-panel h3 { margin: 10px 0 6px; }
.egg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.egg-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; background: #0f2552; border: 2px solid #2d5bb3; border-radius: 12px; padding: 8px; }
.egg-ico { width: 44px; height: 44px; }
.egg-info { display: flex; flex-direction: column; gap: 2px; }
.egg-info small { font-size: 11px; color: var(--muted); }
.egg-bar { height: 6px; background: #0a1838; border-radius: 3px; overflow: hidden; margin-top: 4px; }
.egg-bar > div { height: 100%; background: linear-gradient(90deg, #ffe59a, #ffb347); }
.egg-summary { display: flex; gap: 14px; align-items: center; }
.egg-summary img { width: 72px; height: 72px; }

.egg-hatch { position: fixed; inset: 0; z-index: 900; background: radial-gradient(circle at 50% 55%, #2b4c8f 0%, #0b1530 70%); animation: eh-in .35s ease; font-family: Nunito, system-ui, sans-serif; color: #fff; }
.egg-hatch.out { opacity: 0; transition: opacity .35s; }
.egg-hatch canvas { position: absolute; inset: 0; }
.eh-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .35s ease-out; }
.eh-flash.on { opacity: 1; transition: none; }
.eh-text { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); min-width: min(520px, calc(90 * var(--uvw, 1vw))); text-align: center; background: #f6f3e8; color: #222; border: 3px solid #5a6b8c; box-shadow: inset 0 0 0 2px #fff; border-radius: 10px; padding: 12px 18px; font-size: 20px; font-weight: 800; }
.eh-skip { position: absolute; right: 18px; top: 16px; background: rgba(0, 0, 0, .35); border: 2px solid rgba(255, 255, 255, .4); border-radius: 8px; padding: 4px 12px; font-weight: 800; }
.eh-nick { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); background: #12264d; border: 3px solid #6c7cff; border-radius: 12px; padding: 14px 18px; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.eh-nick p { margin: 0 0 10px; }
.eh-nick input { width: 220px; font: inherit; font-weight: 800; font-size: 18px; padding: 6px 10px; border-radius: 8px; border: 2px solid #6fa6ff; background: #0a1838; color: #fff; text-align: center; margin-bottom: 10px; }
@keyframes eh-in { from { opacity: 0; } }
/* the hatch: rays of light turn slowly behind the new Pokémon (gold for a shiny), and a shiny's name is written in gold */
.egg-hatch { overflow: hidden; }
.eh-rays { position: absolute; left: 50%; top: 55%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; pointer-events: none; opacity: 0; transition: opacity .9s ease-out; will-change: transform;
  background: repeating-conic-gradient(from 0deg, rgba(190, 215, 255, .13) 0deg 7deg, transparent 7deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 18%, transparent 46%); mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 18%, transparent 46%);
  animation: eh-rays 40s linear infinite; }
.egg-hatch.hatched .eh-rays { opacity: 1; }
.egg-hatch.shiny .eh-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 222, 130, .17) 0deg 7deg, transparent 7deg 20deg); }
.egg-hatch.shiny.hatched { background: radial-gradient(circle at 50% 55%, #4a4a9a 0%, #131238 70%); }
.egg-hatch.shiny.hatched .eh-text { border-color: #d9a520; box-shadow: inset 0 0 0 2px #fff, 0 0 22px rgba(255, 210, 90, .55); }
.egg-hatch.shiny .eh-text b { color: #b07a00; }
.egg-hatch.shiny .eh-nick { border-color: #f2c037; }
.egg-hatch.shiny .eh-nick b { color: #ffd866; }
@keyframes eh-rays { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .eh-rays { animation: none; } }

/* Incubator (js/eggs.js openIncubator): stats, the slots with each egg in its progress ring, the team's eggs */
.ei { display: flex; flex-direction: column; gap: 12px; }
.ei-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ei-stats > div { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ei-stats b { font: 900 18px Nunito, sans-serif; color: #fff; }
.ei-stats span { font-size: 11px; font-weight: 800; color: var(--muted); }
.ei-warm { margin: 0; font-weight: 800; color: var(--gold); font-size: 13px; }
.ei-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .ei-slots { grid-template-columns: repeat(4, 1fr); } }
.ei-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 18px; text-align: center;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--tone, #6c7cff) 22%, transparent), transparent 70%), rgba(255,255,255,.04);
  border: 1px solid var(--line); }
.ei-slot b { font: 900 14px Nunito, sans-serif; color: #fff; }
.ei-slot small { font-size: 11px; font-weight: 700; color: var(--muted); min-height: 2.4em; }
.ei-slot .btn { width: 100%; min-height: 36px; margin-top: 4px; }
.ei-slot.ready { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(255,207,74,.25); }
.ei-slot.ready small { color: var(--gold); }
.ei-slot.empty, .ei-slot.locked { background: rgba(255,255,255,.02); border-style: dashed; }
.ei-slot.locked { opacity: .6; }
.ei-egg { position: relative; width: 92px; height: 92px; display: grid; place-items: center; }
.ei-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.ei-ring circle { fill: none; stroke-width: 6; }
.ei-ring-bg { stroke: rgba(255,255,255,.08); }
.ei-ring-fg { stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.ei-pic { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.ei-slot.ready .ei-pic { animation: ei-wobble 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes ei-wobble { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-9deg); } 80% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }
.ei-plus, .ei-lock { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 2px dashed rgba(170,195,255,.25); color: var(--muted); font: 900 26px Nunito, sans-serif; }
.ei-lock { font-size: 20px; border-style: solid; border-color: rgba(170,195,255,.12); }
.ei-h { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.ei-h em { font-style: normal; font-size: 11px; padding: 0 8px; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; }
.ei-team { display: flex; flex-direction: column; gap: 8px; }
.ei-row { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--tone); }
.ei-rpic { width: 44px; height: 44px; object-fit: contain; }
.ei-rmain { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ei-rmain b { font: 900 14px Nunito, sans-serif; }
.ei-rmain small { font-size: 11px; color: var(--muted); font-weight: 700; }
.ei-none { margin: 0; font-size: 13px; }
.egg-summary > img { width: 72px; height: 72px; object-fit: contain; }
