* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #0b4d2e;
  color: #f0f0f0;
  min-height: 100vh;
}
.hidden { display: none !important; }

#lobby {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 16px;
}
.lobby-box {
  background: #0f5c37;
  padding: 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 280px;
}
.lobby-box input, .lobby-box button {
  padding: 10px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
}
.lobby-box button {
  background: #d4af37;
  font-weight: bold;
  cursor: pointer;
}
.or { text-align: center; opacity: 0.7; font-size: 13px; }

.topbar {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: #093a22;
}

.opponents {
  display: flex;
  justify-content: space-around;
  padding: 10px;
  font-size: 14px;
}
.opponent-box {
  background: #0f5c37;
  padding: 8px 14px;
  border-radius: 8px;
  text-align: center;
}

.trick-area {
  min-height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.panel {
  background: #0f5c37;
  margin: 10px auto;
  padding: 16px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
}
.panel button, #auctionButtons button, #gameSelectButtons button {
  background: #d4af37;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  margin: 4px;
  cursor: pointer;
  font-size: 14px;
}
.panel button:hover, #auctionButtons button:hover, #gameSelectButtons button:hover {
  background: #e8c765;
}

.myhand-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 10px;
}
.myhand {
  display: flex;
  gap: -10px;
}

.card {
  width: 60px;
  height: 90px;
  background: white;
  color: #111;
  border-radius: 6px;
  border: 1px solid #999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  margin-left: -20px;
  cursor: pointer;
  transition: transform 0.1s;
  user-select: none;
}
.card:first-child { margin-left: 0; }
.card:hover { transform: translateY(-10px); }
.card.disabled { opacity: 0.4; cursor: not-allowed; }
.card.selected { outline: 3px solid #d4af37; transform: translateY(-10px); }
.card.red { color: #c0392b; }

.cards-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.error {
  text-align: center;
  color: #ff8080;
  min-height: 20px;
}
