:root {
  --bg: #0e1a14;
  --panel: #163023;
  --ink: #f4efe4;
  --muted: #c9d6ce;
  --gold: #e4c36b;
  --gold-dark: #8a6a1f;
  --rose: #d4a0b0;
  --line: #2a4a38;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif; }
body { min-height: 100vh; }
a { color: var(--gold); }
button, .btn {
  background: var(--gold); color: #1a1408; border: 0; border-radius: 999px;
  padding: 12px 22px; font-weight: 700; font-size: 16px; cursor: pointer;
  font-family: inherit;
}
button.secondary, .btn.secondary { background: #234333; color: var(--ink); }
button:disabled { opacity: .5; cursor: default; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px; }
header.hero { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
header.hero h1 { margin: 0; font-size: 32px; letter-spacing: .04em; color: var(--gold); }
header.hero p { margin: 4px 0 0; color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.names button {
  background: #234333; color: var(--ink); min-width: 120px;
  outline: 3px solid transparent;
}
.names button[data-color] { border-left: 6px solid var(--c, var(--gold)); }
.names button.picked { outline-color: var(--gold); background: #2e5644; }
label { display: block; margin: 10px 0 6px; color: var(--muted); }
input[type=password], input[type=text], textarea, select {
  width: 100%; max-width: 420px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #0e1a14; color: var(--ink); font-size: 16px;
}
textarea { min-height: 160px; max-width: none; font-family: ui-monospace, monospace; font-size: 13px; }
.err { color: #f0a0a0; min-height: 1.2em; }
.ok { color: #9ee0b0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.face {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 22px; color: #1a1408; flex: 0 0 auto;
}
.player { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.player:last-child { border-bottom: 0; }
.crown { font-size: 22px; }
.mono { font-family: ui-monospace, monospace; font-size: 13px; white-space: pre-wrap; }
.hint { color: var(--muted); font-size: 14px; }
.tag { display: inline-block; background: #2e5644; color: var(--gold); padding: 2px 8px; border-radius: 999px; font-size: 12px; margin-left: 6px; }
.big-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.big-actions a, .big-actions button { font-size: 18px; padding: 14px 24px; text-decoration: none; display: inline-block; }
@media (max-width: 600px) {
  header.hero h1 { font-size: 24px; }
  button, .btn { font-size: 18px; padding: 14px 20px; }
}
