/* 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, 90vw); 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; } }
