/* ================= GLOBAL ================= */

body {
  margin: 0;
  background: #111;
  color: #eee;
  font-family: Arial, Helvetica, sans-serif;
}

h2, h3 {
  margin-top: 0;
  text-align: center;
}

/* ================= HEADER / FOOTER ================= */

.header img,
.footer img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

/* ================= LAYOUT GRID ================= */

.layout {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 12px;
  padding: 12px;
  height: calc(100vh - 240px); /* header + footer space */
  box-sizing: border-box;
}

/* ================= PANELS ================= */

.panel {
  background: #1b1b1b;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.left { }
.center { align-items: center; }
.right { }

/* ================= LOBBY ================= */

#joinBox {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

#nameInput {
  flex: 1;
}

#lobbyList {
  list-style: none;
  padding: 0;
  margin: 6px 0;
}

/* ================= CHAT ================= */

#chatLog {
  flex: 1;
  background: #000;
  border: 1px solid #333;
  padding: 6px;
  overflow-y: auto;
  font-size: 14px;
}

.chatInputRow {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

/* ================= GAME CENTER ================= */

#acroDisplay {
  font-size: 42px;
  font-weight: bold;
  margin: 20px 0;
  text-align: center;
}

#timerOuter {
  width: 80%;
  height: 16px;
  background: #333;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

#timerInner {
  height: 100%;
  width: 0%;
  background: limegreen;
  transition: width 1s linear;
}

#submitBox {
  display: flex;
  gap: 6px;
  width: 80%;
}

#acroInput {
  flex: 1;
}

#results {
  margin-top: 12px;
  width: 90%;
}

/* ================= LEADERBOARD ================= */

#leaderboard {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ================= INPUTS & BUTTONS ================= */

input, button {
  padding: 6px;
  font-size: 14px;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
