/* V184: selected official-lottery numbers illuminate the complete ball surface. */

/* Unselected SSQ red and DLT front balls stay deliberately pale. */
html body :is(
  [data-lottery-calculator="ssq"] [data-lotto-zone="red"] .mobile-lotto-ball,
  [data-lottery-calculator="dlt"] [data-lotto-zone="front"] .mobile-lotto-ball,
  [data-desktop-compact-editor="ssq"] [data-desktop-zone="red"] .desktop-lotto-number,
  [data-desktop-compact-editor="dlt"] [data-desktop-zone="front"] .desktop-lotto-number,
  #lottoRotationMatrix .lotto-rotation-zone:is([data-zone-key="red"], [data-zone-key="front"]) .lotto-rotation-number,
  .mobile-matrix-zone:is([data-mobile-matrix-zone="red"], [data-mobile-matrix-zone="front"]) .mobile-matrix-number
):not([aria-pressed="true"]):not(.is-selected) {
  border-color: #cf8e99 !important;
  border-radius: 50% !important;
  background: #efd0d5 !important;
  background-image: none !important;
  color: #7e2230 !important;
  text-shadow: none !important;
  outline: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), inset 0 -1px 0 rgba(91,25,36,.12) !important;
  filter: none !important;
}

/* Unselected SSQ blue and DLT back balls stay deliberately pale. */
html body :is(
  [data-lottery-calculator="ssq"] [data-lotto-zone="blue"] .mobile-lotto-ball,
  [data-lottery-calculator="dlt"] [data-lotto-zone="back"] .mobile-lotto-ball,
  [data-desktop-compact-editor="ssq"] [data-desktop-zone="blue"] .desktop-lotto-number,
  [data-desktop-compact-editor="dlt"] [data-desktop-zone="back"] .desktop-lotto-number,
  #lottoRotationMatrix .lotto-rotation-zone:is([data-zone-key="blue"], [data-zone-key="back"]) .lotto-rotation-number,
  .mobile-matrix-zone:is([data-mobile-matrix-zone="blue"], [data-mobile-matrix-zone="back"]) .mobile-matrix-number
):not([aria-pressed="true"]):not(.is-selected) {
  border-color: #8fb6d1 !important;
  border-radius: 50% !important;
  background: #d3e7f4 !important;
  background-image: none !important;
  color: #174f77 !important;
  text-shadow: none !important;
  outline: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76), inset 0 -1px 0 rgba(16,61,94,.12) !important;
  filter: none !important;
}

/* SSQ red and DLT front: the complete selected ball becomes vivid red. */
html body :is(
  [data-lottery-calculator="ssq"] [data-lotto-zone="red"] .mobile-lotto-ball,
  [data-lottery-calculator="dlt"] [data-lotto-zone="front"] .mobile-lotto-ball,
  [data-desktop-compact-editor="ssq"] [data-desktop-zone="red"] .desktop-lotto-number,
  [data-desktop-compact-editor="dlt"] [data-desktop-zone="front"] .desktop-lotto-number,
  #lottoRotationMatrix .lotto-rotation-zone:is([data-zone-key="red"], [data-zone-key="front"]) .lotto-rotation-number,
  .mobile-matrix-zone:is([data-mobile-matrix-zone="red"], [data-mobile-matrix-zone="front"]) .mobile-matrix-number
):is([aria-pressed="true"], .is-selected) {
  border: 2px solid #8d001a !important;
  border-radius: 50% !important;
  background: #ed1742 !important;
  background-image: linear-gradient(180deg, #ff4565 0%, #e0002b 58%, #bc001f 100%) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(75,0,13,.9) !important;
  outline: none !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.42), inset 0 -3px 0 rgba(91,0,16,.34) !important;
  filter: none !important;
}

/* SSQ blue and DLT back: the complete selected ball becomes vivid blue. */
html body :is(
  [data-lottery-calculator="ssq"] [data-lotto-zone="blue"] .mobile-lotto-ball,
  [data-lottery-calculator="dlt"] [data-lotto-zone="back"] .mobile-lotto-ball,
  [data-desktop-compact-editor="ssq"] [data-desktop-zone="blue"] .desktop-lotto-number,
  [data-desktop-compact-editor="dlt"] [data-desktop-zone="back"] .desktop-lotto-number,
  #lottoRotationMatrix .lotto-rotation-zone:is([data-zone-key="blue"], [data-zone-key="back"]) .lotto-rotation-number,
  .mobile-matrix-zone:is([data-mobile-matrix-zone="blue"], [data-mobile-matrix-zone="back"]) .mobile-matrix-number
):is([aria-pressed="true"], .is-selected) {
  border: 2px solid #004b92 !important;
  border-radius: 50% !important;
  background: #0788e8 !important;
  background-image: linear-gradient(180deg, #48beff 0%, #0788e8 56%, #005cad 100%) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0,31,65,.9) !important;
  outline: none !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.46), inset 0 -3px 0 rgba(0,45,88,.32) !important;
  filter: none !important;
}

/* KL8 calculator and every KL8 matrix: the complete selected ball becomes purple. */
html body :is(
  [data-lottery-calculator="kl8"] .mobile-lotto-ball,
  [data-desktop-compact-editor="kl8"] .desktop-lotto-number,
  .desktop-kl8-rotation-host .kl8-rotation-number,
  .mobile-matrix-zone:not([data-mobile-matrix-zone="red"]):not([data-mobile-matrix-zone="front"]):not([data-mobile-matrix-zone="blue"]):not([data-mobile-matrix-zone="back"]) .mobile-matrix-number
):is([aria-pressed="true"], .is-selected) {
  border: 2px solid #3d168e !important;
  border-radius: 50% !important;
  background: #7137df !important;
  background-image: linear-gradient(180deg, #a56cff 0%, #7137df 54%, #4b1caf 100%) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(34,8,87,.94) !important;
  outline: none !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.48), inset 0 -3px 0 rgba(43,13,105,.38) !important;
  filter: none !important;
  transform: none !important;
}

/* Number balls remain circular in all four calculator/matrix surfaces. */
html body :is(
  .mobile-lotto-ball,
  .desktop-lotto-number,
  .kl8-rotation-number,
  .lotto-rotation-number,
  .mobile-matrix-number
) {
  border-radius: 50% !important;
}

/* Absolute final precedence for the live desktop workbench. Historical files use
   duplicated IDs, so this layer must outrank those rules instead of relying only
   on source order. */
html body #indicatorDrawer#indicatorDrawer #desktopUnifiedLotteryCalculator#desktopUnifiedLotteryCalculator[data-desktop-unified-calculator="kl8"]
.desktop-lotto-number:is([aria-pressed="true"], .is-selected),
html body #indicatorDrawer#indicatorDrawer #desktopUnifiedLotteryCalculator#desktopUnifiedLotteryCalculator[data-desktop-unified-calculator="kl8"]
.desktop-lotto-number:is([aria-pressed="true"], .is-selected):is(.number-temperature-hot, .number-temperature-warm, .number-temperature-cold),
html body #indicatorDrawer#indicatorDrawer #desktopUnifiedLotteryCalculator#desktopUnifiedLotteryCalculator
.desktop-kl8-rotation-host .kl8-rotation-number[aria-pressed="true"] {
  border: 2px solid #3d168e !important;
  border-radius: 50% !important;
  background: #7137df !important;
  background-image: linear-gradient(180deg, #a56cff 0%, #7137df 54%, #4b1caf 100%) !important;
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(34,8,87,.94) !important;
  outline: none !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.48), inset 0 -3px 0 rgba(43,13,105,.38) !important;
  filter: none !important;
  transform: none !important;
}

html body #indicatorDrawer#indicatorDrawer #desktopUnifiedLotteryCalculator#desktopUnifiedLotteryCalculator[data-desktop-unified-calculator="ssq"]
[data-desktop-zone="red"] .desktop-lotto-number:is([aria-pressed="true"], .is-selected),
html body #indicatorDrawer#indicatorDrawer #desktopUnifiedLotteryCalculator#desktopUnifiedLotteryCalculator[data-desktop-unified-calculator="dlt"]
[data-desktop-zone="front"] .desktop-lotto-number:is([aria-pressed="true"], .is-selected),
html body #indicatorDrawer#indicatorDrawer #desktopUnifiedLotteryCalculator#desktopUnifiedLotteryCalculator
#lottoRotationMatrix#lottoRotationMatrix .lotto-rotation-zone:is([data-zone-key="red"], [data-zone-key="front"])
.lotto-rotation-number[aria-pressed="true"] {
  border: 2px solid #8d001a !important;
  border-radius: 50% !important;
  background: #ed1742 !important;
  background-image: linear-gradient(180deg, #ff4565 0%, #e0002b 58%, #bc001f 100%) !important;
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(75,0,13,.9) !important;
  outline: none !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.42), inset 0 -3px 0 rgba(91,0,16,.34) !important;
  filter: none !important;
}

html body #indicatorDrawer#indicatorDrawer #desktopUnifiedLotteryCalculator#desktopUnifiedLotteryCalculator[data-desktop-unified-calculator="ssq"]
[data-desktop-zone="blue"] .desktop-lotto-number:is([aria-pressed="true"], .is-selected),
html body #indicatorDrawer#indicatorDrawer #desktopUnifiedLotteryCalculator#desktopUnifiedLotteryCalculator[data-desktop-unified-calculator="dlt"]
[data-desktop-zone="back"] .desktop-lotto-number:is([aria-pressed="true"], .is-selected),
html body #indicatorDrawer#indicatorDrawer #desktopUnifiedLotteryCalculator#desktopUnifiedLotteryCalculator
#lottoRotationMatrix#lottoRotationMatrix .lotto-rotation-zone:is([data-zone-key="blue"], [data-zone-key="back"])
.lotto-rotation-number[aria-pressed="true"] {
  border: 2px solid #004b92 !important;
  border-radius: 50% !important;
  background: #0788e8 !important;
  background-image: linear-gradient(180deg, #48beff 0%, #0788e8 56%, #005cad 100%) !important;
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(0,31,65,.9) !important;
  outline: none !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.46), inset 0 -3px 0 rgba(0,45,88,.32) !important;
  filter: none !important;
}

/* Matching final precedence for the three native mobile calculator screens. */
html body #screen-calculator-kl8#screen-calculator-kl8 .mobile-lotto-ball:is([aria-pressed="true"], .is-selected),
html body #screen-calculator-kl8#screen-calculator-kl8 .mobile-matrix-number[aria-pressed="true"] {
  border: 2px solid #3d168e !important;
  background: #7137df !important;
  background-image: linear-gradient(180deg, #a56cff 0%, #7137df 54%, #4b1caf 100%) !important;
  color: #fff !important;
  outline: none !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.48), inset 0 -3px 0 rgba(43,13,105,.38) !important;
  filter: none !important;
}

html body #screen-calculator-ssq#screen-calculator-ssq [data-lotto-zone="red"] .mobile-lotto-ball:is([aria-pressed="true"], .is-selected),
html body #screen-calculator-dlt#screen-calculator-dlt [data-lotto-zone="front"] .mobile-lotto-ball:is([aria-pressed="true"], .is-selected),
html body :is(#screen-calculator-ssq#screen-calculator-ssq, #screen-calculator-dlt#screen-calculator-dlt)
.mobile-matrix-zone:is([data-mobile-matrix-zone="red"], [data-mobile-matrix-zone="front"]) .mobile-matrix-number[aria-pressed="true"] {
  border: 2px solid #8d001a !important;
  background: #ed1742 !important;
  background-image: linear-gradient(180deg, #ff4565 0%, #e0002b 58%, #bc001f 100%) !important;
  color: #fff !important;
  outline: none !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.42), inset 0 -3px 0 rgba(91,0,16,.34) !important;
  filter: none !important;
}

html body #screen-calculator-ssq#screen-calculator-ssq [data-lotto-zone="blue"] .mobile-lotto-ball:is([aria-pressed="true"], .is-selected),
html body #screen-calculator-dlt#screen-calculator-dlt [data-lotto-zone="back"] .mobile-lotto-ball:is([aria-pressed="true"], .is-selected),
html body :is(#screen-calculator-ssq#screen-calculator-ssq, #screen-calculator-dlt#screen-calculator-dlt)
.mobile-matrix-zone:is([data-mobile-matrix-zone="blue"], [data-mobile-matrix-zone="back"]) .mobile-matrix-number[aria-pressed="true"] {
  border: 2px solid #004b92 !important;
  background: #0788e8 !important;
  background-image: linear-gradient(180deg, #48beff 0%, #0788e8 56%, #005cad 100%) !important;
  color: #fff !important;
  outline: none !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.46), inset 0 -3px 0 rgba(0,45,88,.32) !important;
  filter: none !important;
}
