/* RiverX V161 — premium on-table seat controls and requested visual cleanup. */

/* The room cards remain the focus; retain the useful browse action without the
   retired "Available rooms / Poker Rooms" heading copy. */
body.rx-v157 #view-home .rx-poker-main-focus-row .rx-lobby-row-heading-v161 {
  min-height: 40px !important;
  margin: 0 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0 !important;
}

body.rx-v157 #view-home .rx-lobby-heading-copy-v158 {
  display: none !important;
}

/* One shared six-max ring is used by Micro, Low Limit, Standard, High Limit,
   High Roller, and private tables. Keeping the anchor on the seat itself also
   prevents a player card from jumping after the seat is claimed. */
body.rx-v157 #view-table .poker-table .seat-0 {
  --seat-left: 50% !important;
  --seat-top: 22% !important;
}

body.rx-v157 #view-table .poker-table .seat-1 {
  --seat-left: 76% !important;
  --seat-top: 32% !important;
}

body.rx-v157 #view-table .poker-table .seat-2 {
  --seat-left: 76% !important;
  --seat-top: 62% !important;
}

body.rx-v157 #view-table .poker-table .seat-3 {
  --seat-left: 24% !important;
  --seat-top: 62% !important;
}

body.rx-v157 #view-table .poker-table .seat-4 {
  --seat-left: 24% !important;
  --seat-top: 32% !important;
}

body.rx-v157 #view-table .poker-table .seat-5 {
  --seat-left: 50% !important;
  --seat-top: 72% !important;
}

body.rx-v157 #view-table .poker-table .seat.is-open-seat {
  width: 66px !important;
  height: 66px !important;
  min-width: 66px !important;
  min-height: 66px !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
}

body.rx-v157 #view-table .seat-ripple-target {
  position: relative !important;
  isolation: isolate !important;
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  min-height: 62px !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #ffffff !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}

body.rx-v157 #view-table .seat-ripple-target::before,
body.rx-v157 #view-table .seat-ripple-target::after {
  content: "" !important;
  position: absolute !important;
  z-index: 1 !important;
  inset: 8px !important;
  border: 2px solid rgba(176, 112, 255, .9) !important;
  border-radius: 50% !important;
  opacity: 0 !important;
  pointer-events: none !important;
  filter: drop-shadow(0 0 7px rgba(157, 78, 255, .78)) !important;
  will-change: transform, opacity !important;
  animation: rxSeatRippleV161 2.2s cubic-bezier(.18, .68, .3, 1) infinite !important;
}

body.rx-v157 #view-table .seat-ripple-target::after {
  animation-delay: 1.1s !important;
}

body.rx-v157 #view-table .seat-ripple-core {
  position: relative !important;
  z-index: 2 !important;
  width: 52px !important;
  height: 52px !important;
  display: grid !important;
  grid-template-rows: 25px 12px !important;
  place-content: center !important;
  place-items: center !important;
  gap: 0 !important;
  border: 1px solid rgba(226, 201, 255, .92) !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .34), rgba(255, 255, 255, .06) 25%, transparent 39%),
    linear-gradient(145deg, #a766ff 0%, #7435eb 48%, #3a117c 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -10px 18px rgba(24, 3, 58, .38),
    0 7px 18px rgba(0, 0, 0, .52),
    0 0 0 1px rgba(154, 85, 255, .28),
    0 0 21px rgba(145, 68, 255, .62) !important;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease !important;
  will-change: transform, filter !important;
}

body.rx-v157 #view-table .seat-ripple-plus {
  height: 25px !important;
  color: #ffffff !important;
  font-size: 25px !important;
  font-weight: 300 !important;
  line-height: 24px !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, .55) !important;
}

body.rx-v157 #view-table .seat-ripple-label {
  color: #f1e7ff !important;
  font-size: 8px !important;
  font-weight: 900 !important;
  line-height: 10px !important;
  letter-spacing: .16em !important;
  text-shadow: 0 1px 4px rgba(22, 3, 54, .82) !important;
}

body.rx-v157 #view-table .seat-ripple-target:hover::before,
body.rx-v157 #view-table .seat-ripple-target:hover::after,
body.rx-v157 #view-table .seat-ripple-target:focus-visible::before,
body.rx-v157 #view-table .seat-ripple-target:focus-visible::after,
body.rx-v157 #view-table .seat.is-seat-joining .seat-ripple-target::before,
body.rx-v157 #view-table .seat.is-seat-joining .seat-ripple-target::after {
  border-color: rgba(215, 172, 255, .98) !important;
  filter: drop-shadow(0 0 11px rgba(177, 101, 255, .98)) !important;
  animation-duration: 1.82s !important;
}

body.rx-v157 #view-table .seat-ripple-target:hover .seat-ripple-core,
body.rx-v157 #view-table .seat-ripple-target:focus-visible .seat-ripple-core {
  filter: brightness(1.2) saturate(1.18) !important;
  transform: scale(1.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .46),
    inset 0 -10px 18px rgba(24, 3, 58, .28),
    0 8px 22px rgba(0, 0, 0, .56),
    0 0 0 4px rgba(164, 94, 255, .2),
    0 0 34px rgba(174, 91, 255, .94) !important;
}

body.rx-v157 #view-table .seat-ripple-target:active .seat-ripple-core {
  filter: brightness(1.3) saturate(1.24) !important;
  transform: scale(1.03) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    0 5px 16px rgba(0, 0, 0, .5),
    0 0 0 5px rgba(179, 107, 255, .25),
    0 0 40px rgba(187, 109, 255, 1) !important;
}

body.rx-v157 #view-table .seat-ripple-target:focus-visible {
  outline: 2px solid #e7d2ff !important;
  outline-offset: 7px !important;
}

body.rx-v157 #view-table .seat.is-seat-joining .seat-ripple-core {
  animation: rxSeatJoiningV161 .68s ease-in-out infinite alternate !important;
}

/* The green-circled pre-seat status card is retired. The same action panel is
   restored by existing state handling as soon as the player occupies a seat. */
body.rx-v157 #view-table .action-panel.is-awaiting-seat {
  display: none !important;
}

@keyframes rxSeatRippleV161 {
  0% {
    opacity: .78;
    transform: scale(.76);
  }
  68% {
    opacity: .16;
  }
  100% {
    opacity: 0;
    transform: scale(1.82);
  }
}

@keyframes rxSeatJoiningV161 {
  from {
    filter: brightness(1.12) saturate(1.1);
    transform: scale(.98);
  }
  to {
    filter: brightness(1.38) saturate(1.3);
    transform: scale(1.09);
  }
}

@media (max-width: 820px) {
  body.rx-v157 #view-table .poker-table .seat.is-open-seat {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
  }

  body.rx-v157 #view-table .seat-ripple-target {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
  }

  body.rx-v157 #view-table .seat-ripple-core {
    width: 43px !important;
    height: 43px !important;
    grid-template-rows: 20px 10px !important;
  }

  body.rx-v157 #view-table .seat-ripple-plus {
    height: 20px !important;
    font-size: 21px !important;
    line-height: 20px !important;
  }

  body.rx-v157 #view-table .seat-ripple-label {
    font-size: 7px !important;
  }
}

@media (max-width: 700px) {
  body.rx-v157 #view-home .rx-poker-main-focus-row .rx-lobby-row-heading-v161 {
    min-height: 0 !important;
    margin-bottom: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.rx-v157 #view-table .seat-ripple-target::before,
  body.rx-v157 #view-table .seat-ripple-target::after,
  body.rx-v157 #view-table .seat.is-seat-joining .seat-ripple-core {
    animation: none !important;
  }
}
