﻿.poker-lobby {
  --poker-bg-main: #080808;
  --poker-bg-panel: #141414;
  --poker-bg-card: #1f1f1f;
  --poker-bg-row: #242424;
  --poker-bg-row-hover: #303030;
  --poker-border: #3a3a3a;
  --poker-red: #e5092f;
  --poker-red-dark: #9f001d;
  --poker-red-soft: rgba(229, 9, 47, 0.18);
  --poker-text-main: #f4f4f4;
  --poker-text-muted: #a8a8a8;
  --poker-text-dim: #727272;
  --poker-gold: #d6a84f;
  --poker-success: #12c28d;
  --poker-warning: #ffb020;
  min-height: min(760px, calc(100vh - 150px));
  padding: 24px;
  border: 1px solid var(--poker-border);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(229, 9, 47, 0.16), transparent 30%),
    linear-gradient(180deg, #111 0%, var(--poker-bg-main) 100%);
  color: var(--poker-text-main);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.poker-lobby * {
  box-sizing: border-box;
}

.poker-lobby__header,
.poker-lobby__filters,
.poker-lobby__body,
.poker-lobby__footer {
  border: 1px solid var(--poker-border);
  background: rgba(20, 20, 20, 0.95);
}

.poker-lobby__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-radius: 8px 8px 0 0;
  border-bottom-color: rgba(229, 9, 47, 0.55);
}

.poker-lobby__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--poker-gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.poker-lobby h1,
.poker-lobby h2,
.poker-lobby p {
  margin: 0;
}

.poker-lobby h1 {
  font-size: 28px;
  line-height: 1.1;
}

.poker-lobby__header p {
  margin-top: 6px;
  color: var(--poker-text-muted);
}

.poker-lobby__close {
  width: 44px;
  height: 44px;
  border: 1px solid #555;
  border-radius: 6px;
  background: #202020;
  color: var(--poker-text-main);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.poker-lobby__mode {
  display: inline-flex;
  gap: 4px;
  margin: 18px 0 10px;
  padding: 5px;
  border: 1px solid var(--poker-border);
  border-radius: 8px;
  background: #101010;
}

.poker-lobby__mode button,
.poker-lobby__tabs button,
.poker-lobby__favorite,
.poker-lobby__save,
.poker-lobby__observe {
  border: 1px solid var(--poker-border);
  background: #202020;
  color: var(--poker-text-muted);
  cursor: pointer;
}

.poker-lobby__mode button {
  min-width: 146px;
  padding: 11px 16px;
  border-radius: 6px;
  font-weight: 800;
}

.poker-lobby__mode button span {
  margin-right: 8px;
  color: var(--poker-gold);
}

.poker-lobby__mode button.active {
  border-color: var(--poker-red);
  background: linear-gradient(180deg, var(--poker-red), var(--poker-red-dark));
  color: #fff;
}

.poker-lobby__tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--poker-border);
}

.poker-lobby__tabs button {
  position: relative;
  padding: 14px 18px;
  border: 0;
  border-radius: 4px 4px 0 0;
  background: transparent;
  font-weight: 800;
  white-space: nowrap;
}

.poker-lobby__tabs button:hover {
  background: var(--poker-bg-row-hover);
}

.poker-lobby__tabs button.active {
  color: #fff;
}

.poker-lobby__tabs button.active::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  background: var(--poker-red);
  content: '';
}

.poker-lobby__filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) minmax(170px, 1.2fr) auto auto;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 6px;
}

.poker-lobby__filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.poker-lobby__filters span {
  color: var(--poker-text-dim);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.poker-lobby__filters select,
.poker-lobby__filters input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--poker-border);
  border-radius: 6px;
  background: #101010;
  color: var(--poker-text-main);
  font: inherit;
}

.poker-lobby__filters input {
  padding: 0 12px;
}

.poker-lobby__favorite,
.poker-lobby__save {
  align-self: end;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: 800;
}

.poker-lobby__save {
  border-color: rgba(229, 9, 47, 0.55);
  color: #fff;
}

.poker-lobby__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 6px;
}

.poker-lobby__list {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--poker-border);
  border-radius: 6px;
  background: var(--poker-bg-card);
}

.poker-lobby__list-head,
.poker-lobby__row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr 0.65fr 0.75fr 0.85fr;
  align-items: center;
  gap: 10px;
}

.poker-lobby__list-head {
  padding: 12px 14px;
  background: #171717;
  color: var(--poker-text-dim);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.poker-lobby__row {
  width: 100%;
  min-height: 62px;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--poker-border);
  background: var(--poker-bg-row);
  color: var(--poker-text-muted);
  text-align: left;
  cursor: pointer;
}

.poker-lobby__row:hover {
  background: var(--poker-bg-row-hover);
}

.poker-lobby__row.selected {
  background: linear-gradient(90deg, var(--poker-red-soft), var(--poker-bg-row));
  outline: 1px solid rgba(229, 9, 47, 0.55);
  outline-offset: -1px;
}

.poker-lobby__row strong {
  color: var(--poker-text-main);
}

.poker-lobby__row em,
.is-success {
  color: var(--poker-success);
  font-style: normal;
  font-weight: 900;
}

.is-gold {
  color: var(--poker-gold);
  font-weight: 900;
}

.poker-lobby__detail {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--poker-border);
  border-radius: 6px;
  background: linear-gradient(180deg, #202020, #151515);
}

.poker-lobby__detail-kicker {
  color: var(--poker-gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.poker-lobby__detail h2 {
  margin-top: 6px;
  font-size: 23px;
}

.poker-lobby__detail dl {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.poker-lobby__detail dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.poker-lobby__detail dt {
  color: var(--poker-text-dim);
  font-weight: 800;
}

.poker-lobby__detail dd {
  margin: 0;
  color: var(--poker-text-main);
  font-weight: 800;
  text-align: right;
}

.poker-lobby__detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.poker-lobby__play,
.poker-lobby__observe {
  min-height: 46px;
  border-radius: 6px;
  font-weight: 900;
}

.poker-lobby__play {
  border: 1px solid #ff3454;
  background: linear-gradient(180deg, var(--poker-red), var(--poker-red-dark));
  color: #fff;
  cursor: pointer;
}

.poker-lobby__message {
  margin-top: 12px;
  color: var(--poker-warning);
  font-size: 13px;
}

.poker-lobby__detail small {
  display: block;
  margin-top: 14px;
  color: var(--poker-text-dim);
}

.poker-lobby__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 0 0 8px 8px;
  color: var(--poker-text-muted);
  font-size: 13px;
}

.poker-lobby__footer b {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  place-items: center;
  border: 1px solid var(--poker-border);
  border-radius: 50%;
  color: #fff;
}

@media (max-width: 1180px) {
  .poker-lobby__filters {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .poker-lobby__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .poker-lobby {
    min-height: auto;
    padding: 14px;
  }

  .poker-lobby__header {
    padding: 16px;
  }

  .poker-lobby h1 {
    font-size: 24px;
  }

  .poker-lobby__mode,
  .poker-lobby__mode button {
    width: 100%;
  }

  .poker-lobby__mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .poker-lobby__filters {
    grid-template-columns: 1fr;
  }

  .poker-lobby__list {
    overflow-x: auto;
  }

  .poker-lobby__list-head,
  .poker-lobby__row {
    min-width: 780px;
  }
}
