/* Star Vegas Friends tables — isolated to #star-vegas-table-games. */
#star-vegas-table-games .svgcp-table-friends {
  --tf-gold: #e2bd68;
  --tf-gold-soft: #f7dfa4;
  --tf-wine: #74131d;
  --tf-ink: #080706;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 18px;
  position: relative;
  z-index: 80;
  color: #fff3cf;
  font-family: Arial, Helvetica, sans-serif;
}

#star-vegas-table-games .svgcp-tf-toggle {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 16px;
  border: 1px solid rgba(226, 189, 104, .58);
  border-radius: 17px;
  background:
    radial-gradient(circle at 9% 0%, rgba(233, 195, 104, .16), transparent 32%),
    linear-gradient(180deg, rgba(31, 21, 17, .98), rgba(8, 7, 6, .99));
  box-shadow: 0 14px 28px rgba(0, 0, 0, .36), inset 0 0 0 1px rgba(255, 255, 255, .035);
  color: #fff3cf;
  text-align: left;
  cursor: pointer;
}

#star-vegas-table-games .svgcp-tf-toggle-icon,
#star-vegas-table-games .svgcp-tf-empty-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f4d47f, #9d6517 70%, #5e3507);
  border: 1px solid #ffe7a2;
  box-shadow: inset 0 0 0 3px rgba(67, 36, 3, .36), 0 7px 14px rgba(0, 0, 0, .32);
  color: #2b1203;
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

#star-vegas-table-games .svgcp-tf-toggle > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

#star-vegas-table-games .svgcp-tf-toggle b {
  color: #f8dfa0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
  letter-spacing: .08em;
}

#star-vegas-table-games .svgcp-tf-toggle small {
  color: rgba(255, 243, 207, .72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#star-vegas-table-games .svgcp-tf-toggle em {
  min-width: 48px;
  padding: 7px 10px;
  border: 1px solid rgba(244, 213, 133, .46);
  border-radius: 999px;
  background: rgba(0, 0, 0, .46);
  color: #ffe8a6;
  font-size: 13px;
  font-style: normal;
  font-weight: 1000;
  text-align: center;
}

#star-vegas-table-games .svgcp-tf-toggle > i {
  color: #e7c46f;
  font-size: 22px;
  font-style: normal;
  transition: transform .2s ease;
}

#star-vegas-table-games .svgcp-table-friends.is-open .svgcp-tf-toggle > i {
  transform: rotate(180deg);
}

#star-vegas-table-games .svgcp-tf-panel {
  margin-top: 8px;
  padding: 16px;
  border: 1px solid rgba(226, 189, 104, .40);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(117, 24, 32, .16), transparent 33%),
    linear-gradient(180deg, rgba(15, 13, 11, .99), rgba(4, 4, 4, .995));
  box-shadow: 0 18px 38px rgba(0, 0, 0, .44), inset 0 0 0 1px rgba(255, 255, 255, .03);
}

#star-vegas-table-games .svgcp-table-friends.is-busy {
  pointer-events: none;
  opacity: .72;
}

#star-vegas-table-games .svgcp-tf-message {
  margin: 0 0 13px;
  padding: 10px 13px;
  border: 1px solid rgba(226, 189, 104, .32);
  border-radius: 11px;
  background: rgba(226, 189, 104, .08);
  color: #ffeab1;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

#star-vegas-table-games .svgcp-tf-message.success {
  border-color: rgba(73, 230, 145, .45);
  background: rgba(22, 119, 71, .18);
  color: #b9ffd9;
}

#star-vegas-table-games .svgcp-tf-message.error {
  border-color: rgba(255, 91, 104, .52);
  background: rgba(143, 19, 34, .22);
  color: #ffd2d5;
}

#star-vegas-table-games .svgcp-tf-room-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(226, 189, 104, .22);
}

#star-vegas-table-games .svgcp-tf-room-head > div {
  display: grid;
  gap: 3px;
}

#star-vegas-table-games .svgcp-tf-room-head span {
  color: #d7aa4d;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .16em;
}

#star-vegas-table-games .svgcp-tf-room-head b {
  color: #fff0c2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

#star-vegas-table-games .svgcp-tf-room-head small {
  color: rgba(255, 243, 207, .68);
  font-size: 11px;
}

#star-vegas-table-games .svgcp-tf-room-head button,
#star-vegas-table-games .svgcp-tf-searchbar button,
#star-vegas-table-games .svgcp-tf-search-result button,
#star-vegas-table-games .svgcp-tf-invite-actions button,
#star-vegas-table-games .svgcp-tf-empty > button {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 224, 145, .72);
  border-radius: 10px;
  background: linear-gradient(180deg, #b92234, #72111c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 15px rgba(0, 0, 0, .25);
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .06em;
  cursor: pointer;
}

#star-vegas-table-games button.secondary,
#star-vegas-table-games .svgcp-tf-room-head button.secondary {
  background: linear-gradient(180deg, #39322a, #171411);
  color: #f3d88f;
}

#star-vegas-table-games .svgcp-tf-seats h4,
#star-vegas-table-games .svgcp-tf-search h4,
#star-vegas-table-games .svgcp-tf-pending h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 9px;
  color: #e8c46d;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .13em;
}

#star-vegas-table-games .svgcp-tf-seats h4 span,
#star-vegas-table-games .svgcp-tf-search h4 span {
  color: rgba(255, 243, 207, .65);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: none;
}

#star-vegas-table-games .svgcp-tf-seats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

#star-vegas-table-games .svgcp-tf-seats h4 {
  grid-column: 1 / -1;
}

#star-vegas-table-games .svgcp-tf-seat {
  min-width: 0;
  min-height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(226, 189, 104, .24);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(35, 28, 22, .84), rgba(10, 9, 8, .96));
  overflow: hidden;
}

#star-vegas-table-games .svgcp-tf-seat.is-online { border-color: rgba(73, 230, 145, .44); }
#star-vegas-table-games .svgcp-tf-seat.is-offline { border-color: rgba(246, 80, 93, .40); }
#star-vegas-table-games .svgcp-tf-seat.is-invited { border-color: rgba(226, 189, 104, .46); }
#star-vegas-table-games .svgcp-tf-seat.is-empty { opacity: .48; border-style: dashed; }

#star-vegas-table-games .svgcp-tf-seat-number {
  position: absolute;
  right: 7px;
  top: 5px;
  color: rgba(244, 216, 144, .43);
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 1000;
}

#star-vegas-table-games .svgcp-tf-seat > img,
#star-vegas-table-games .svgcp-tf-avatar-fallback,
#star-vegas-table-games .svgcp-tf-search-result > img,
#star-vegas-table-games .svgcp-tf-search-result > .svgcp-tf-avatar-fallback {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  display: grid;
  place-items: center;
  object-fit: cover;
  border: 1px solid rgba(239, 205, 128, .62);
  border-radius: 50%;
  background: #25170e;
  color: #e8c46d;
  font-size: 14px;
}

#star-vegas-table-games .svgcp-tf-seat-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

#star-vegas-table-games .svgcp-tf-seat-copy b {
  overflow: hidden;
  color: #fff1c7;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#star-vegas-table-games .svgcp-tf-seat-copy b em {
  padding: 2px 4px;
  border-radius: 4px;
  background: #8a1824;
  color: #fff;
  font-size: 7px;
  font-style: normal;
}

#star-vegas-table-games .svgcp-tf-seat-copy small {
  overflow: hidden;
  color: rgba(255, 243, 207, .62);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#star-vegas-table-games .svgcp-tf-seat-copy i {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 3px;
  border-radius: 50%;
  background: #dfb14d;
  box-shadow: 0 0 8px rgba(223, 177, 77, .75);
}

#star-vegas-table-games .svgcp-tf-seat.is-online .svgcp-tf-seat-copy i { background: #49e691; box-shadow: 0 0 8px rgba(73, 230, 145, .90); }
#star-vegas-table-games .svgcp-tf-seat.is-offline .svgcp-tf-seat-copy i { background: #f6505d; box-shadow: 0 0 8px rgba(246, 80, 93, .80); }

#star-vegas-table-games .svgcp-tf-seat-actions {
  position: absolute;
  right: 6px;
  bottom: 5px;
  display: flex;
  gap: 7px;
}

#star-vegas-table-games .svgcp-tf-seat-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #d6aa52;
  font-size: 7px;
  font-weight: 1000;
  cursor: pointer;
}

#star-vegas-table-games .svgcp-tf-search {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(226, 189, 104, .17);
}

#star-vegas-table-games .svgcp-tf-searchbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

#star-vegas-table-games .svgcp-tf-searchbar input {
  min-width: 0;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(226, 189, 104, .32);
  border-radius: 10px;
  outline: none;
  background: rgba(0, 0, 0, .52);
  color: #fff3cf;
  font-size: 13px;
}

#star-vegas-table-games .svgcp-tf-searchbar input:focus {
  border-color: #e2bd68;
  box-shadow: 0 0 0 3px rgba(226, 189, 104, .12);
}

#star-vegas-table-games .svgcp-tf-search-results {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

#star-vegas-table-games .svgcp-tf-search-result {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(226, 189, 104, .18);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
}

#star-vegas-table-games .svgcp-tf-search-result > div {
  min-width: 0;
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
}

#star-vegas-table-games .svgcp-tf-search-result b,
#star-vegas-table-games .svgcp-tf-search-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#star-vegas-table-games .svgcp-tf-search-result b { color: #fff0c2; font-size: 12px; }
#star-vegas-table-games .svgcp-tf-search-result small { color: rgba(255, 243, 207, .62); font-size: 9px; }

#star-vegas-table-games .svgcp-tf-pending {
  margin-bottom: 14px;
}

#star-vegas-table-games .svgcp-tf-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  padding: 11px 12px;
  border: 1px solid rgba(80, 226, 148, .34);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(20, 100, 64, .19), rgba(0, 0, 0, .28));
}

#star-vegas-table-games .svgcp-tf-invite > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

#star-vegas-table-games .svgcp-tf-invite span { color: #67e5a2; font-size: 8px; font-weight: 1000; letter-spacing: .14em; }
#star-vegas-table-games .svgcp-tf-invite b { color: #fff0c2; font-family: Georgia, serif; font-size: 16px; }
#star-vegas-table-games .svgcp-tf-invite small { color: rgba(255, 243, 207, .65); font-size: 10px; }
#star-vegas-table-games .svgcp-tf-invite-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

#star-vegas-table-games .svgcp-tf-empty {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px;
  text-align: center;
}

#star-vegas-table-games .svgcp-tf-empty b {
  color: #f5d98f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: .04em;
}

#star-vegas-table-games .svgcp-tf-empty > span:not(.svgcp-tf-empty-icon) {
  max-width: 620px;
  color: rgba(255, 243, 207, .72);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  #star-vegas-table-games .svgcp-tf-seats { grid-template-columns: 1fr 1fr; }
  #star-vegas-table-games .svgcp-tf-seat:first-of-type { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  #star-vegas-table-games .svgcp-table-friends { width: calc(100% - 16px); margin-bottom: 13px; }
  #star-vegas-table-games .svgcp-tf-toggle { min-height: 56px; padding: 8px 11px; border-radius: 14px; }
  #star-vegas-table-games .svgcp-tf-toggle-icon { width: 35px; height: 35px; flex-basis: 35px; font-size: 21px; }
  #star-vegas-table-games .svgcp-tf-toggle b { font-size: 15px; }
  #star-vegas-table-games .svgcp-tf-panel { padding: 11px; border-radius: 14px; }
  #star-vegas-table-games .svgcp-tf-room-head { align-items: flex-start; }
  #star-vegas-table-games .svgcp-tf-room-head b { font-size: 18px; }
  #star-vegas-table-games .svgcp-tf-seats,
  #star-vegas-table-games .svgcp-tf-search-results { grid-template-columns: 1fr; }
  #star-vegas-table-games .svgcp-tf-seat:first-of-type { grid-column: auto; }
  #star-vegas-table-games .svgcp-tf-invite { align-items: flex-start; flex-direction: column; }
  #star-vegas-table-games .svgcp-tf-invite-actions { justify-content: flex-start; }
}
