/* LAO EURO - BALL ONLY V4: No outer blue/gold capsule. 3D spheres + downward rolling digits. */
/* Load AFTER site.css. Does not affect ads, history table, or the result card heading. */

#resultNumber,
#resultNumber .ball-only-chamber {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 12px auto 16px !important;
  max-width: 100% !important;
  width: 100% !important;
  min-height: 0 !important;
}
#resultNumber .ball-only-chamber::before,
#resultNumber .ball-only-chamber::after { content: none !important; display: none !important; }

#resultNumber .ball-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: clamp(4px, 1.35vw, 14px) !important;
  margin: 0 auto !important;
  padding: 6px 0 14px !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#resultNumber .lotto-ball {
  box-sizing: border-box !important;
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  flex: 0 1 96px !important;
  width: min(17.5%, 96px) !important;
  height: auto !important;
  min-width: 0 !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(166,177,190,.72) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(24px, 5.6vw, 56px) !important;
  line-height: 1 !important;
  color: #15202c !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.65) !important;
  background:
    radial-gradient(ellipse at 31% 22%, rgba(255,255,255,1) 0%, rgba(255,255,255,.97) 15%, transparent 38%),
    radial-gradient(circle at 37% 28%, #fff 0%, #f9fbfd 25%, #e7ebf1 46%, #bfc8d2 67%, #85919e 83%, #546373 100%) !important;
  box-shadow:
    inset 7px 7px 12px rgba(255,255,255,.94),
    inset -10px -12px 17px rgba(25,40,55,.24),
    0 7px 13px rgba(24,37,59,.23),
    0 1px 0 rgba(255,255,255,.8) !important;
  transform: none !important; /* Balls stay still; the digits roll DOWN inside. */
  animation: none !important;
  filter: none !important;
}
#resultNumber .lotto-ball::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 2;
  top: 11%; left: 17%;
  width: 40%; height: 21%;
  border: 0 !important;
  border-radius: 80% 40% 75% 38%;
  background: linear-gradient(142deg, rgba(255,255,255,.84), rgba(255,255,255,.10)) !important;
  transform: rotate(-26deg);
  filter: blur(2px);
  pointer-events: none;
}
#resultNumber .lotto-ball::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 3;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(255,255,255,.16), transparent 48%, rgba(16,29,44,.13)) !important;
  border: 0 !important;
  pointer-events: none;
}

/* Reel is 30 digits high (9..0 repeated 3x).
   The middle loop is visible and moves downward: -2/3 -> -1/3. */
#resultNumber .lotto-ball .ball-reel {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 50%;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 1%, #000 27%, #000 73%, transparent 99%);
  mask-image: linear-gradient(to bottom, transparent 1%, #000 27%, #000 73%, transparent 99%);
}
#resultNumber .lotto-ball .ball-reel-track {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3000%;
  display: flex;
  flex-direction: column;
  will-change: transform;
  animation: laoDigitDown var(--reel-cycle, 860ms) linear infinite;
}
#resultNumber .lotto-ball .ball-reel-digit {
  flex: 0 0 calc(100% / 30);
  height: calc(100% / 30);
  display: flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  line-height: 1;
  color: #182331;
}
@keyframes laoDigitDown {
  from { transform: translate3d(0, -66.666667%, 0); }
  to { transform: translate3d(0, -33.333333%, 0); }
}
#resultNumber .lotto-ball.is-stopped {
  animation: laoBallLock 320ms cubic-bezier(.18,.75,.35,1) both !important;
}
@keyframes laoBallLock {
  0% { transform: scale(.90); filter: brightness(1.14); }
  60% { transform: scale(1.06); filter: brightness(1.09); }
  100% { transform: scale(1); filter: none; }
}
@media (max-width: 480px) {
  #resultNumber .ball-row { gap: 4px !important; padding: 3px 0 10px !important; }
  #resultNumber .lotto-ball { width: 18% !important; font-size: clamp(19px, 7vw, 32px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  #resultNumber .lotto-ball, #resultNumber .lotto-ball .ball-reel-track { animation: none !important; }
}
