/* RiverX Poker V169 — supplied Robert's table art and private-preview finish. */

/* The new artwork is 4:3. Keep the established 16:9 gameplay panel while
   letterboxing the unmodified image, so its round seat medallions never
   stretch into ovals and the surrounding table-page layout does not jump. */
body.rx-v157 #view-table .poker-table[data-table="roberts"] {
  aspect-ratio: 16 / 9 !important;
  background: #000 !important;
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .actual-table-art {
  object-fit: contain !important;
  object-position: center !important;
  background: #000 !important;
  filter: saturate(1.03) contrast(1.02) brightness(1.01) !important;
}

/* The home-card version uses the same supplied asset without cropping it. */
body.rx-v157 #view-home .rx-home-table-graphic-card[data-table-id="roberts"] .rx-home-table-media-v157 {
  isolation: isolate !important;
  background:
    radial-gradient(circle at 50% 48%, rgba(123, 48, 210, 0.16), transparent 62%),
    #000 !important;
}

body.rx-v157 #view-home .rx-home-table-graphic-card[data-table-id="roberts"] .rx-home-table-media-v157 img {
  object-fit: contain !important;
  object-position: center !important;
  background: #000 !important;
  filter: saturate(1.02) contrast(1.025) brightness(0.94) !important;
  transform: translateZ(0) !important;
}

body.rx-v157 #view-home .rx-home-table-graphic-card[data-table-id="roberts"]:hover .rx-home-table-media-v157 img,
body.rx-v157 #view-home .rx-home-table-graphic-card[data-table-id="roberts"]:focus-visible .rx-home-table-media-v157 img {
  filter: saturate(1.08) contrast(1.04) brightness(1) !important;
  transform: translateZ(0) !important;
}

/* A dedicated home-only banner runs across the preview. It is deliberately a
   pseudo-element so no private marker can appear on the playable table. */
body.rx-v157 #view-home .rx-home-table-graphic-card[data-table-id="roberts"] .rx-home-table-media-v157::before {
  content: "PRIVATE TABLE" !important;
  position: absolute !important;
  z-index: 3 !important;
  top: 50% !important;
  right: 0 !important;
  left: 0 !important;
  min-height: clamp(40px, 4.1vw, 58px) !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  color: #fff8ee !important;
  background:
    linear-gradient(90deg, transparent 0%, rgba(17, 5, 25, 0.92) 13%, rgba(53, 15, 77, 0.97) 50%, rgba(17, 5, 25, 0.92) 87%, transparent 100%) !important;
  border-top: 1px solid rgba(210, 145, 255, 0.76) !important;
  border-bottom: 1px solid rgba(218, 178, 102, 0.6) !important;
  box-shadow: 0 0 24px rgba(134, 49, 217, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  font-size: clamp(0.78rem, 1.28vw, 1.12rem) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0.3em !important;
  text-align: center !important;
  text-indent: 0.3em !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.92), 0 0 14px rgba(190, 107, 255, 0.54) !important;
  pointer-events: none !important;
  transform: translateY(-50%) !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease !important;
}

body.rx-v157 #view-home .rx-home-table-graphic-card[data-table-id="roberts"]:hover .rx-home-table-media-v157::before,
body.rx-v157 #view-home .rx-home-table-graphic-card[data-table-id="roberts"]:focus-visible .rx-home-table-media-v157::before {
  border-top-color: rgba(228, 186, 255, 0.94) !important;
  border-bottom-color: rgba(242, 207, 132, 0.8) !important;
  box-shadow: 0 0 32px rgba(153, 65, 231, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
  filter: brightness(1.08) !important;
}

/* With a 4:3 image contained inside a 16:9 panel, the artwork occupies the
   middle 75% of the panel width. These centers and diameters map each open
   target directly onto the six supplied spade medallions. */
body.rx-v157 #view-table .poker-table[data-table="roberts"] {
  --rx-roberts-seat-top-size: 7.35%;
  --rx-roberts-seat-upper-size: 7.30%;
  --rx-roberts-seat-lower-size: 7.50%;
  --rx-roberts-seat-bottom-size: 7.55%;
  --rx-roberts-seat-top-x: 50.00%;
  --rx-roberts-seat-top-y: 14.36%;
  --rx-roberts-seat-upper-right-x: 78.59%;
  --rx-roberts-seat-upper-right-y: 27.81%;
  --rx-roberts-seat-lower-right-x: 79.11%;
  --rx-roberts-seat-lower-right-y: 63.72%;
  --rx-roberts-seat-lower-left-x: 20.84%;
  --rx-roberts-seat-lower-left-y: 63.72%;
  --rx-roberts-seat-upper-left-x: 21.31%;
  --rx-roberts-seat-upper-left-y: 27.81%;
  --rx-roberts-seat-bottom-x: 49.95%;
  --rx-roberts-seat-bottom-y: 78.18%;
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat.seat-0 {
  --seat-left: var(--rx-roberts-seat-top-x) !important;
  --seat-top: var(--rx-roberts-seat-top-y) !important;
  --rx-roberts-seat-size: var(--rx-roberts-seat-top-size);
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat.seat-1 {
  --seat-left: var(--rx-roberts-seat-upper-right-x) !important;
  --seat-top: var(--rx-roberts-seat-upper-right-y) !important;
  --rx-roberts-seat-size: var(--rx-roberts-seat-upper-size);
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat.seat-2 {
  --seat-left: var(--rx-roberts-seat-lower-right-x) !important;
  --seat-top: var(--rx-roberts-seat-lower-right-y) !important;
  --rx-roberts-seat-size: var(--rx-roberts-seat-lower-size);
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat.seat-3 {
  --seat-left: var(--rx-roberts-seat-lower-left-x) !important;
  --seat-top: var(--rx-roberts-seat-lower-left-y) !important;
  --rx-roberts-seat-size: var(--rx-roberts-seat-lower-size);
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat.seat-4 {
  --seat-left: var(--rx-roberts-seat-upper-left-x) !important;
  --seat-top: var(--rx-roberts-seat-upper-left-y) !important;
  --rx-roberts-seat-size: var(--rx-roberts-seat-upper-size);
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat.seat-5 {
  --seat-left: var(--rx-roberts-seat-bottom-x) !important;
  --seat-top: var(--rx-roberts-seat-bottom-y) !important;
  --rx-roberts-seat-size: var(--rx-roberts-seat-bottom-size);
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat {
  width: var(--rx-roberts-seat-size) !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  border-radius: 50% !important;
  overflow: visible !important;
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-target,
body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-core,
body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-wave {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  border-radius: 50% !important;
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-target {
  background: transparent !important;
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-plus,
body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-label {
  display: none !important;
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-core {
  border: 1px solid rgba(222, 174, 255, 0.22) !important;
  background: transparent !important;
  box-shadow: 0 0 12px rgba(163, 73, 245, 0.3), inset 0 0 9px rgba(181, 103, 255, 0.12) !important;
  transform: scale(1) !important;
  animation: rxRobertsCoreBreathV169 3.4s ease-in-out infinite !important;
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-wave {
  inset: 0 !important;
  opacity: 0;
  pointer-events: none !important;
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-wave-one {
  border: 1.5px solid rgba(205, 127, 255, 0.88) !important;
  background: transparent !important;
  box-shadow: 0 0 9px rgba(157, 62, 239, 0.68), inset 0 0 7px rgba(198, 120, 255, 0.2) !important;
  animation: rxRobertsBezelPulseV169 3.1s ease-in-out infinite !important;
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-wave-two {
  border: 0 !important;
  background: conic-gradient(from 0deg, transparent 0 18%, rgba(232, 193, 255, 0.92) 25% 34%, transparent 41% 67%, rgba(175, 88, 255, 0.9) 74% 84%, transparent 91% 100%) !important;
  -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px) 100%) !important;
  mask: radial-gradient(circle closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px) 100%) !important;
  filter: drop-shadow(0 0 6px rgba(181, 91, 255, 0.72)) !important;
  animation: rxRobertsBezelOrbitV169 5.2s linear infinite !important;
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-target:hover .seat-ripple-wave,
body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-target:focus-visible .seat-ripple-wave,
body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-target:active .seat-ripple-wave,
body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat.is-seat-joining .seat-ripple-wave {
  filter: brightness(1.28) saturate(1.18) drop-shadow(0 0 10px rgba(208, 139, 255, 0.9)) !important;
  animation-duration: 2.25s !important;
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-target:hover .seat-ripple-core,
body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-target:focus-visible .seat-ripple-core,
body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-target:active .seat-ripple-core {
  border-color: rgba(236, 207, 255, 0.54) !important;
  box-shadow: 0 0 20px rgba(192, 102, 255, 0.66), inset 0 0 10px rgba(211, 154, 255, 0.2) !important;
  filter: brightness(1.18) saturate(1.12) !important;
  transform: scale(1) !important;
}

body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-target:focus-visible {
  outline: 2px solid rgba(237, 211, 255, 0.96) !important;
  outline-offset: -3px !important;
}

@keyframes rxRobertsBezelPulseV169 {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.92; transform: scale(1); }
}

@keyframes rxRobertsBezelOrbitV169 {
  0% { opacity: 0.58; transform: rotate(0deg) scale(1); }
  50% { opacity: 1; transform: rotate(180deg) scale(1); }
  100% { opacity: 0.58; transform: rotate(360deg) scale(1); }
}

@keyframes rxRobertsCoreBreathV169 {
  0%, 100% { opacity: 0.46; filter: brightness(1); transform: scale(1); }
  50% { opacity: 0.88; filter: brightness(1.14) saturate(1.08); transform: scale(1); }
}

/* Claimed seats use the existing player panels and never retain an open-seat
   hit surface or animation. */
body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat:not(.is-open-seat) .seat-ripple-wave,
body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat:not(.is-open-seat) .seat-ripple-core {
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}

@media (max-width: 520px) {
  body.rx-v157 #view-home .rx-home-table-graphic-card[data-table-id="roberts"] .rx-home-table-media-v157::before {
    min-height: 36px !important;
    padding: 0 10px !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.22em !important;
    text-indent: 0.22em !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-wave,
  body.rx-v157 #view-table .poker-table[data-table="roberts"] .seat.is-open-seat .seat-ripple-core {
    animation-duration: 7s !important;
  }
}
