/* Easter egg styles: dragonball. Moved verbatim out of static/app.css (egg rebuild); linked right after app.css in index.html. */
/* ================================================================
   Dragon Ball pack — 4-star ball celebrate (sujayraaj CodePen YEpoXv).
   Pure CSS ball; rolls L→R along viewport bottom on Done / ?egg=dragonball.
   All selectors namespaced .cdbz-* (no global .frame / .eye / .dragon-ball leaks).
   ================================================================ */
.cdbz-wrap {
  position: fixed;
  inset: 0;
  z-index: 8100;
  pointer-events: none;
  overflow: hidden;
}

.cdbz-ball {
  position: fixed;
  bottom: 14px;
  left: 0;
  width: 196px;
  height: 196px;
  background: #F6D248;
  border: 9px solid #E99A3E;
  border-radius: 50%;
  box-sizing: border-box;
  animation: cdbz-glow 0.7s linear infinite, cdbz-roll 5.5s linear forwards;
  will-change: transform;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}

.cdbz-cover {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.cdbz-shadow {
  position: relative;
  width: 100%;
  height: 100%;
  background: #EB9A3F;
  border-radius: 50%;
}

.cdbz-stars {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
  padding: 38px 28px 32px;
  box-sizing: border-box;
}

.cdbz-star {
  font-size: 38px;
  line-height: 1;
  color: #DB3833;
  flex: 0 0 auto;
}

@keyframes cdbz-glow {
  0, 100% { box-shadow: 0 0 12px #fff; }
  50% { box-shadow: 0 0 32px #fff; }
}

@keyframes cdbz-roll {
  from { transform: translateX(-220px) rotate(0deg); }
  to   { transform: translateX(calc(100vw + 60px)) rotate(1800deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cdbz-wrap { display: none; }
}
