* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #1a472a; font-family: Georgia, serif; color: #f5e6cc; min-height: 100vh; }
#app { max-width: 600px; margin: 0 auto; padding: 16px; }

h1 { text-align: center; color: #d4a017; font-size: 1.6em; margin-bottom: 4px; }
h2 { text-align: center; color: #8b6914; font-size: 1em; margin-bottom: 16px; font-weight: normal; }

.panel {
  background: #0d2818; border: 1px solid #2a5a3a; border-radius: 12px;
  padding: 20px; margin-bottom: 16px;
}
.panel h3 { color: #d4a017; margin-bottom: 12px; font-size: 1.1em; }

input {
  width: 100%; padding: 10px 14px; border: 2px solid #2a5a3a; border-radius: 8px;
  background: #132e1c; color: #f5e6cc; font: 15px Georgia; outline: none;
  margin-bottom: 8px;
}
input:focus { border-color: #d4a017; }

button {
  padding: 10px 20px; border: none; border-radius: 8px; font: bold 14px Georgia;
  cursor: pointer; transition: opacity 0.2s;
}
button:hover { opacity: 0.85; }
button:disabled { opacity: 0.4; cursor: default; }

.btn-green { background: #078930; color: #fff; }
.btn-gold { background: #d4a017; color: #1a0a00; }
.btn-red { background: #da121a; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

.row { display: flex; gap: 8px; margin-bottom: 8px; }
.row > * { flex: 1; }

.status { text-align: center; color: #8b6914; font-size: 13px; padding: 8px 0; }
.error { color: #da121a; text-align: center; font-size: 13px; padding: 4px 0; }
.success { color: #078930; text-align: center; font-size: 13px; padding: 4px 0; }

/* Players */
.players { display: flex; gap: 12px; justify-content: center; margin: 12px 0; }
.player-slot {
  width: 100px; padding: 12px 8px; border-radius: 10px; text-align: center;
  background: #132e1c; border: 2px solid #2a5a3a; font-size: 13px;
}
.player-slot.active { border-color: #d4a017; }
.player-slot.dizhu { border-color: #da121a; background: #2a1010; }
.player-slot.current { box-shadow: 0 0 12px #d4a017; }
.player-slot .name { font-weight: bold; color: #f5e6cc; }
.player-slot .badge { font-size: 10px; color: #8b6914; }
.player-slot .cards-left { font-size: 11px; color: #6b7; margin-top: 4px; }

/* Cards */
.hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 12px 0; }
.card {
  width: 42px; height: 58px; border-radius: 6px; display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: bold; cursor: pointer;
  border: 2px solid #555; background: #fff; color: #333; transition: transform 0.15s;
  user-select: none; position: relative;
}
.card.selected { transform: translateY(-10px); border-color: #d4a017; }
.card.red { color: #da121a; }
.card.black { color: #1a1a1a; }
.card.joker-black { background: #222; color: #fff; }
.card.joker-red { background: #8b0000; color: #fff; }

.actions { display: flex; gap: 8px; justify-content: center; margin: 12px 0; }

/* Call points */
.call-actions { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }

/* Log */
.log {
  max-height: 120px; overflow-y: auto; font-size: 11px; color: #6a8a6a;
  background: #0a1e10; border-radius: 8px; padding: 8px; margin-top: 8px;
}
.log div { padding: 2px 0; border-bottom: 1px solid #1a3a2a; }

.hidden { display: none; }
