/* Lobby shell styles (lb-*). Forms, toasts, and tables reuse style.css. */

/* ------------------------------------------------------------- top bar */

.lb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 18px;
  background: #101c14;
  border-bottom: 2px solid #0a120d;
}

.lb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f0ead6;
  flex: 0 0 auto;
}

.lb-brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.lb-brand-name em {
  font-style: normal;
  color: #ffd97a;
}

.lb-icon {
  display: inline-flex;
  align-items: center;
}

.lb-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lb-wallet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #1a2e20;
  border: 1px solid #345a41;
  color: #9be89b;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.lb-wallet-refill {
  color: #b8e0ff;
  font-weight: 500;
  font-size: 11px;
}

.lb-topup-btn {
  padding: 2px 9px;
  border: none;
  border-radius: 999px;
  background: #9be89b;
  color: #143318;
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.lb-topup-btn:hover { background: #c2f5c2; }

/* --------------------------------------------------------- user dropdown */

.lb-user {
  position: relative;
}

.lb-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid #345a41;
  border-radius: 999px;
  background: #1a2e20;
  color: #ffd97a;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.lb-user-btn:hover { background: #22392a; }

.lb-user-caret {
  font-size: 10px;
  color: #9db8a6;
}

.lb-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  background: #14231a;
  border: 1px solid #345a41;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  padding: 6px;
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.lb-user-menu a,
.lb-user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: none;
  border-radius: 7px;
  background: none;
  color: #f0ead6;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.lb-user-menu a:hover,
.lb-user-menu button:hover { background: #22392a; }

.lb-user-menu .lb-menu-sep {
  height: 1px;
  margin: 4px 8px;
  background: #2c4a37;
}

/* --------------------------------------------------------------- banner */

.lb-banner {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 46px;
  cursor: pointer;
  background: linear-gradient(105deg, #17301f 0%, #24513a 55%, #17301f 100%);
  border-bottom: 1px solid #0d1811;
}

.lb-banner.lb-banner-gold {
  background: linear-gradient(105deg, #2b2410 0%, #58481c 55%, #2b2410 100%);
}

.lb-banner.lb-banner-blue {
  background: linear-gradient(105deg, #14243a 0%, #234a6e 55%, #14243a 100%);
}

.lb-banner-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffd97a;
  letter-spacing: 0.3px;
}

.lb-banner-sub {
  margin-top: 4px;
  font-size: 13.5px;
  color: #e7e0c8;
}

.lb-banner-dots {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.lb-banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(240, 234, 214, 0.35);
  cursor: pointer;
}

.lb-banner-dot.on { background: #ffd97a; }

/* ----------------------------------------------------------------- tabs */

.lb-tabbar {
  display: flex;
  gap: 6px;
  padding: 10px 14px 0;
  max-width: 1060px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.lb-tabbar::-webkit-scrollbar { display: none; }

.lb-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid #2c4a37;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: #16281c;
  color: #cfe3d3;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.lb-tab:hover { background: #1d3526; color: #f0ead6; }

.lb-tab.on {
  background: #234631;
  border-color: #3c5a46;
  color: #ffd97a;
}

.lb-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4d6b57;
  flex: 0 0 auto;
}

.lb-live-dot.on {
  background: #5dff7d;
  box-shadow: 0 0 7px #5dff7d;
}

.lb-content {
  max-width: 1060px;
  margin: 0 auto 40px;
  padding: 18px 14px 30px;
  background: #1c3325;
  border: 1px solid #2c4a37;
  border-radius: 0 12px 12px 12px;
  min-height: 320px;
}

.lb-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.lb-content-title {
  font-size: 19px;
  font-weight: 800;
  color: #f0ead6;
}

.lb-content-sub {
  font-size: 13px;
  color: #9db8a6;
  margin-top: 2px;
}

/* ------------------------------------------------------------ list rows */

.lb-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  background: #172b1e;
  border: 1px solid #2c4a37;
  border-radius: 10px;
  cursor: pointer;
}

.lb-row:hover { background: #1e3727; border-color: #3c5a46; }

.lb-row.selected { border-color: #ffd97a; background: #1e3727; }

.lb-row-main {
  flex: 1 1 auto;
  min-width: 0;
}

.lb-row-name {
  font-weight: 800;
  font-size: 15px;
  color: #f0ead6;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lb-row-sub {
  margin-top: 3px;
  font-size: 12.5px;
  color: #9db8a6;
}

.lb-row-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.lb-stat {
  text-align: right;
  min-width: 58px;
}

.lb-stat-value {
  font-weight: 700;
  font-size: 14px;
  color: #e7e0c8;
}

.lb-stat-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #7d9a88;
}

.lb-row-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.lb-chevron {
  color: #7d9a88;
  font-size: 16px;
  flex: 0 0 auto;
}

/* Status + game chips */

.lb-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.lb-chip-registering { background: #1f4a2c; color: #9be89b; border: 1px solid #3a7a4d; }
.lb-chip-running { background: #4a3d14; color: #ffd97a; border: 1px solid #8a6d2a; }
.lb-chip-finished { background: #33413a; color: #b7c6bc; border: 1px solid #4d6b57; }
.lb-chip-custom { background: #1c3550; color: #b8e0ff; border: 1px solid #33608a; }
.lb-chip-game { background: #22392a; color: #cfe3d3; border: 1px solid #3c5a46; }

/* Detail panel expands under the selected row. */

.lb-detail {
  margin: -2px 0 8px;
  padding: 14px 16px;
  background: #14261b;
  border: 1px solid #3c5a46;
  border-top: none;
  border-radius: 0 0 10px 10px;
}

/* Filter / action bar above lists */

.lb-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.lb-filter-btn {
  padding: 6px 13px;
  border: 1px solid #2c4a37;
  border-radius: 999px;
  background: #16281c;
  color: #cfe3d3;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.lb-filter-btn:hover { background: #1d3526; }
.lb-filter-btn.on { background: #234631; border-color: #ffd97a; color: #ffd97a; }

.lb-toolbar-spacer { flex: 1 1 auto; }

.lb-build-btn {
  padding: 7px 15px;
  border: none;
  border-radius: 8px;
  background: #9be89b;
  color: #143318;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}

.lb-build-btn:hover { background: #c2f5c2; }

.lb-empty {
  padding: 26px 10px;
  text-align: center;
  color: #9db8a6;
  font-size: 14px;
}

/* ------------------------------------------------------ history hub tab */

.lb-hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.lb-hub-card {
  display: block;
  padding: 22px 20px;
  background: #172b1e;
  border: 1px solid #2c4a37;
  border-radius: 12px;
  text-decoration: none;
  color: #f0ead6;
}

.lb-hub-card:hover { background: #1e3727; border-color: #ffd97a; }

.lb-hub-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #ffd97a;
}

.lb-hub-card-desc {
  margin-top: 8px;
  font-size: 13px;
  color: #9db8a6;
  line-height: 1.5;
}

/* ------------------------------------------------------------ login view */

.lb-login-wrap {
  display: flex;
  justify-content: center;
  padding: 46px 14px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 720px) {
  .lb-brand-name { display: none; }
  .lb-wallet-refill { display: none; }
  .lb-banner { min-height: 72px; padding: 12px 20px 18px; }
  .lb-banner-title { font-size: 17px; }
  .lb-banner-sub { font-size: 12px; }
  .lb-tab { padding: 8px 11px; font-size: 13px; }
  .lb-content { padding: 14px 10px 24px; }
  .lb-row { flex-wrap: wrap; gap: 8px; }
  .lb-row-stats { gap: 12px; }
  .lb-row-actions { width: 100%; justify-content: flex-end; }
  .lb-user-name { display: none; }
}
