/* [LINKS] The website's lobby list: the game's stone-and-gold, no fonts or images from elsewhere (the /game/ folder is
   served with the web build's cross-origin isolation headers). */
:root {
  --sand: #eee1c8;
  --muted: #9e9785;
  --gold: #e0b858;
  --gold-bright: #ffe69e;
  --stone: #2a2520;
  --stone-edge: #4a3f30;
  --night: #15120f;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0c0b0a url("/images/egypt_bg_blackgold.webp") repeat;
  color: var(--sand);
  font: 16px/1.5 "Times New Roman", Times, serif;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

header {
  text-align: center;
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  color: var(--gold);
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: var(--gold);
  font-size: 1.2rem;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
}

.panel {
  background: var(--stone);
  border: 2px solid var(--stone-edge);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #00000066, 0 8px 24px #00000080;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hint,
.status {
  color: var(--muted);
}

.rooms {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.room {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #ffffff14;
}

.room-title {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.room-seats {
  color: var(--muted);
  white-space: nowrap;
}

button,
.join {
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: #3a3126;
  color: var(--gold-bright);
  font: inherit;
  padding: 6px 14px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

button:hover,
.join:hover {
  background: #4a3e2e;
}

.join.disabled {
  border-color: var(--stone-edge);
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

footer a {
  color: var(--gold);
}

@media (max-width: 520px) {
  .room {
    flex-wrap: wrap;
  }

  .room-title {
    flex-basis: 100%;
  }
}
