/* ?? FORCE FLEXIBLE CONTAINER TO PREVENT ALL VERTICAL SPILLING */
html, body {
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Stops any rogue scrolling dead in its tracks */
  background: #111;
  color: #fff;
  font-family: -apple-system, Sans-Serif;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
}

input, button {
  width: 100%;
  padding: 14px;
  font-size: 1.2rem;
  border-radius: 8px;
  border: none;
  margin-top: 10px;
  font-weight: bold;
  box-sizing: border-box;
}

input {
  background: #fff;
  color: #000;
  text-align: center;
}

/* ?? DYNAMICALLY SIZED BUZZER BUTTON TO FILL REMAINING SPACE CLEANLY */
.btn-buzz {
  flex: 1; /* Automatically shrinks if a wager box appears above it! */
  min-height: 40vh; /* Keeps it large enough to tap easily */
  margin-top: 15px;
  font-size: 3rem;
  font-weight: bold;
  background: #dc3545;
  color: white;
  pointer-events: none;
  text-transform: uppercase;
  border: 4px solid #333;
  cursor: pointer;
}

.btn-buzz.active {
  background: #dc3545;
  color: #fff;
  pointer-events: auto;
  cursor: pointer;
  border-color: #ffc107;
  box-shadow: 0 0 20px #dc3545;
}

.btn-buzz.win {
  background: #28a745;
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 25px #28a745;
}

.status-text {
  font-size: 1.2rem;
  color: #aaa;
  margin: 10px 0 5px 0;
  font-style: italic;
}

.logout-link {
  display: inline-block;
  color: #007bff;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  font-size: 1rem;
}

/* ?? FINAL JEOPARDY PANEL LAYOUT STYLES */
.wager-box {
  margin-top: 20px;
  padding: 15px;
  border: 2px solid #ff9900;
  background: #111;
  border-radius: 8px;
  text-align: center;
}

.wager-box h2 {
  color: #ff9900;
  margin-top: 0;
}

.wager-box p {
  font-size: 1.1rem;
  color: #fff;
}

#player-balance-display {
  font-weight: bold;
  color: #28a745;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  color: #bbb;
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.input-group input {
  font-size: 1.5rem;
  width: 80%;
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  border: 2px solid #ff9900;
  background: #000;
  color: #fff;
}

.input-group.font-large input {
  font-size: 1.3rem;
  text-transform: uppercase;
}

.btn-lock {
  font-size: 1.3rem;
  padding: 10px 30px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  width: 84%;
  cursor: pointer;
}

/* ?? HIDE SPIN BUTTON ARROWS FROM COMPATIBLE NUMBER INPUTS */
.wager-box input[type=number]::-webkit-inner-spin-button, 
.wager-box input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
.wager-box input[type=number] { 
  -moz-appearance: textfield; 
}

@keyframes flash {
  from { opacity: 0.4; }
  to { opacity: 1; }
}
/* Container holding all active player row items side-by-side */
.scorekeeper-pools-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Individual uniform compact player cards */
.scorekeeper-player-card {
  display: flex;
  flex-direction: column;
  background-color: #1a1a1a;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #333;
  gap: 10px;
  box-sizing: border-box;
  flex: 1 1 300px;
  max-width: 400px;
}

/* Top block tracking profiles info alignment */
.player-card-meta-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.player-card-name-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-card-name-text {
  font-weight: bold;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #ffffff;
}

.player-card-score-value {
  color: #28a745;
  font-weight: bold;
  font-size: 1.3rem;
}

/* Bottom block tracking score adjustments */
.player-card-actions-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}
