.live-games-trigger {
  flex: 0 0 auto;
  min-width: 48px;
  padding-inline: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(42, 43, 58, 0.96), rgba(19, 20, 31, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 26px rgba(0, 0, 0, 0.22);
}

.live-games-trigger svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.live-games-trigger span {
  white-space: nowrap;
}

.live-games-overlay {
  position: fixed;
  inset: 0;
  z-index: 1540;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.live-games-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1550;
  width: min(430px, calc(100vw - 24px));
  max-height: min(760px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(27, 27, 39, 0.98), rgba(11, 11, 18, 0.98)),
    #11111a;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.live-games-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-games-kicker {
  margin: 0 0 4px;
  color: #f0b35d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-games-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.live-games-subtitle {
  margin: 5px 0 0;
  color: var(--text-muted, #9aa0b3);
  font-size: 0.84rem;
  line-height: 1.45;
}

.live-games-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.live-games-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.025);
}

.live-games-tab {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft, #d1d4de);
  cursor: pointer;
  font-weight: 800;
  transition: 0.2s ease;
}

.live-games-tab.is-active {
  border-color: rgba(207, 63, 134, 0.45);
  background: linear-gradient(135deg, rgba(139, 30, 93, 0.72), rgba(207, 63, 134, 0.7));
  color: #fff;
  box-shadow: 0 10px 24px rgba(139, 30, 93, 0.22);
}

.live-games-body {
  min-height: 0;
  overflow: auto;
  padding: 16px 18px 18px;
}

.live-games-toast {
  margin: 0 18px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(31, 197, 129, 0.24);
  background: rgba(31, 197, 129, 0.1);
  color: #d8ffef;
  font-size: 0.86rem;
  line-height: 1.45;
}

.live-games-toast.is-error {
  border-color: rgba(255, 91, 104, 0.32);
  background: rgba(255, 91, 104, 0.12);
  color: #ffd7dc;
}

.live-games-empty {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted, #9aa0b3);
  text-align: center;
  line-height: 1.55;
}

.live-games-empty strong {
  color: #fff;
  font-size: 0.98rem;
}

.live-game-stack {
  display: grid;
  gap: 14px;
}

.live-game-card,
.live-game-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
}

.live-game-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.live-game-title-row h4 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
}

.live-game-title-row p,
.live-game-copy {
  margin: 5px 0 0;
  color: var(--text-muted, #9aa0b3);
  font-size: 0.86rem;
  line-height: 1.5;
}

.live-game-description strong {
  color: var(--text-soft, #d1d4de);
}

.live-game-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
}

.live-game-badge.is-active {
  border-color: rgba(31, 197, 129, 0.32);
  background: rgba(31, 197, 129, 0.12);
  color: #cffff0;
}

.live-game-badge.is-paused {
  border-color: rgba(240, 179, 93, 0.32);
  background: rgba(240, 179, 93, 0.12);
  color: #ffe2ad;
}

.live-game-badge.is-closed,
.live-game-badge.is-cancelled {
  color: #c8cad6;
}

.live-game-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.live-game-metric {
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.live-game-metric span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted, #9aa0b3);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.live-game-metric strong {
  display: block;
  color: #fff;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.live-game-field {
  display: grid;
  gap: 7px;
}

.live-game-field span {
  color: var(--text-soft, #d1d4de);
  font-size: 0.82rem;
  font-weight: 800;
}

.live-game-input,
.live-game-textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
  padding: 11px 12px;
}

.live-game-textarea {
  min-height: 88px;
  resize: vertical;
}

.live-game-counter {
  justify-self: end;
  color: var(--text-muted, #9aa0b3);
  font-size: 0.74rem;
  font-weight: 800;
}

.live-game-textarea-readonly {
  resize: none;
  cursor: default;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(240, 179, 93, 0.2);
}

.live-game-input::placeholder,
.live-game-textarea::placeholder {
  color: #a7aebf;
}

.live-game-fixed-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: -4px 0 0;
  padding: 0;
  list-style: none;
}

.live-game-fixed-option {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(240, 179, 93, 0.24);
  background: linear-gradient(135deg, rgba(240, 179, 93, 0.12), rgba(207, 63, 134, 0.08));
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
}

.live-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.live-game-actions .btn {
  min-height: 42px;
}

.live-game-primary-action {
  width: 100%;
}

.live-game-list {
  display: grid;
  gap: 8px;
}

.live-game-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft, #d1d4de);
  font-size: 0.84rem;
}

.live-game-result {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(240, 179, 93, 0.3);
  background: linear-gradient(135deg, rgba(240, 179, 93, 0.16), rgba(207, 63, 134, 0.14));
}

.live-game-result span {
  display: block;
  color: #ffe2ad;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-game-result strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 1rem;
}

.chat-message.game {
  background: linear-gradient(135deg, rgba(80, 120, 255, 0.14), rgba(207, 63, 134, 0.16));
  border-color: rgba(137, 158, 255, 0.25);
}

.chat-message.game strong {
  color: #dbe2ff;
}

.chat-message.token-event {
  border-color: rgba(255, 122, 195, 0.28);
  background:
    linear-gradient(135deg, rgba(139, 30, 93, 0.24), rgba(240, 179, 93, 0.12)),
    rgba(13, 13, 20, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.chat-message.token-event strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #ffd188;
}

.chat-message.token-event p {
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
}

.chat-message.token-event small {
  color: rgba(255, 255, 255, 0.58);
}

.chat-token-amount {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 209, 136, 0.32);
  background: rgba(255, 184, 77, 0.18);
  color: #ffe3ad;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.chat-message.token-event.is-roulette {
  border-color: rgba(137, 158, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(80, 120, 255, 0.16), rgba(207, 63, 134, 0.18)),
    rgba(13, 13, 20, 0.86);
}

.chat-message.token-event.is-auction_bid,
.chat-message.token-event.is-auction_win {
  border-color: rgba(240, 179, 93, 0.32);
}

.chat-message.auction-event {
  border-color: rgba(240, 179, 93, 0.42);
  background:
    linear-gradient(135deg, rgba(52, 23, 75, 0.84), rgba(18, 16, 24, 0.92)),
    rgba(13, 13, 20, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.chat-message.auction-event strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #ffd188;
}

.chat-message.auction-event strong span:first-child::before {
  content: "Subasta";
  display: inline-flex;
  margin-right: 8px;
  border-radius: 999px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 209, 136, 0.3);
  background: rgba(255, 184, 77, 0.14);
  color: #ffe3ad;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  vertical-align: middle;
}

.chat-message.auction-event p {
  color: rgba(255, 255, 255, 0.92);
  overflow-wrap: anywhere;
}

.chat-message.auction-event small {
  color: rgba(255, 255, 255, 0.58);
}

.chat-auction-action {
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(255, 209, 136, 0.42);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(255, 184, 77, 0.16);
  color: #ffe3ad;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.chat-auction-action:hover,
.chat-auction-action:focus-visible {
  border-color: rgba(255, 227, 173, 0.72);
  background: rgba(255, 184, 77, 0.24);
  outline: none;
}

@media (max-width: 520px) {
  .chat-message.token-event strong,
  .chat-message.auction-event strong {
    align-items: flex-start;
    flex-direction: column;
  }
}

.live-roulette-modal {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 5, 10, 0.72);
  backdrop-filter: blur(7px);
}

.live-roulette-modal.oculto,
.live-roulette-modal[hidden] {
  display: none !important;
}

.live-roulette-card {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 22% 16%, rgba(240, 179, 93, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(26, 27, 39, 0.99), rgba(10, 11, 18, 0.99));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
}

.live-roulette-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.live-roulette-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
  gap: 22px;
  align-items: center;
  padding: 30px;
}

.live-roulette-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.live-roulette-pointer {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-top: 32px solid #ffd188;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.38));
}

.live-roulette-wheel {
  width: min(340px, 78vw);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  border: 12px solid rgba(255, 209, 136, 0.86);
  background: conic-gradient(#3b0f2a 0 25%, #5b123d 25% 50%, #7a1850 50% 75%, #2a0b22 75% 100%);
  box-shadow:
    0 0 0 1px rgba(255, 209, 136, 0.24),
    0 24px 60px rgba(0, 0, 0, 0.48),
    inset 0 0 44px rgba(0, 0, 0, 0.34);
  transform: rotate(0deg);
  transition: transform 2.6s cubic-bezier(0.12, 0.72, 0.18, 1);
}

.live-roulette-wheel::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 209, 136, 0.3);
  pointer-events: none;
}

.live-roulette-wheel.is-empty {
  background:
    radial-gradient(circle at center, rgba(139, 30, 93, 0.2), transparent 54%),
    linear-gradient(145deg, rgba(48, 12, 36, 0.98), rgba(16, 8, 18, 0.98));
}

.live-roulette-wheel-empty {
  width: 64%;
  color: #ffd188;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.live-roulette-segment-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: var(--label-width, 86px);
  max-width: 30%;
  color: #ffd188;
  font-size: var(--label-font-size, 0.72rem);
  font-weight: 950;
  line-height: 1.12;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
   line-clamp: 2;
  overflow-wrap: anywhere;
  pointer-events: none;
  transform:
    translate(-50%, -50%)
    rotate(var(--segment-angle))
    translateY(calc(-1 * min(var(--label-radius, 92px), 24vw)))
    rotate(90deg);
  transform-origin: center;
}

.live-roulette-wheel-center {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  z-index: 2;
  border: 1px solid rgba(255, 209, 136, 0.36);
  background: linear-gradient(180deg, rgba(51, 14, 39, 0.98), rgba(10, 7, 13, 0.98));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.46), inset 0 0 18px rgba(255, 209, 136, 0.08);
  color: #ffd188;
  font-weight: 900;
  text-transform: uppercase;
}

.live-roulette-info {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding-right: 28px;
}

.live-roulette-kicker {
  margin: 0;
  color: #f0b35d;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-roulette-info h3 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.55rem);
  line-height: 1.05;
}

.live-roulette-description {
  margin: 0;
  color: var(--text-soft, #d1d4de);
  line-height: 1.5;
}

.live-roulette-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.live-roulette-metrics div {
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

.live-roulette-metrics span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted, #9aa0b3);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-roulette-metrics strong {
  display: block;
  overflow-wrap: anywhere;
}

.live-roulette-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-roulette-option {
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 136, 0.18);
  background: rgba(91, 18, 61, 0.18);
  color: #ffd188;
  font-size: 0.82rem;
  font-weight: 800;
}

.live-roulette-result {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(240, 179, 93, 0.38);
  background: linear-gradient(135deg, rgba(240, 179, 93, 0.17), rgba(207, 63, 134, 0.18));
}

.live-roulette-result span {
  display: block;
  color: #ffe2ad;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-roulette-result strong {
  display: block;
  margin-top: 6px;
  font-size: 1.25rem;
}

.live-roulette-feedback {
  min-height: 1.25em;
  margin: 0;
  color: var(--text-muted, #9aa0b3);
  line-height: 1.45;
}

.live-roulette-feedback.is-error {
  color: #ffd7dc;
}

.live-roulette-feedback.is-success {
  color: #d8ffef;
}

.live-roulette-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.live-roulette-actions .btn {
  min-height: 46px;
}

@media (max-width: 680px) {
  .live-games-panel {
    inset: auto 0 0 0;
    width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
  }

  .live-games-head {
    padding-top: 16px;
  }

  .live-game-metrics {
    grid-template-columns: 1fr;
  }

  .live-game-fixed-options {
    grid-template-columns: 1fr;
  }

.live-game-actions .btn {
  width: 100%;
}

.live-games-trigger {
  width: auto;
  min-width: 44px;
  max-width: 100%;
  min-height: 44px;
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 10px 14px;
}

  .live-roulette-layout {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .live-roulette-info {
    padding-right: 0;
  }

  .live-roulette-stage {
    min-height: 300px;
  }

  .live-roulette-segment-label {
    max-width: 28%;
    transform:
      translate(-50%, -50%)
      rotate(var(--segment-angle))
      translateY(calc(-1 * min(var(--label-radius, 82px), 24vw)))
      rotate(90deg);
  }

  .live-roulette-metrics {
    grid-template-columns: 1fr;
  }

  .live-roulette-actions .btn {
    flex: 1 1 100%;
  }
}
