* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  margin: 0;
  background: #f6f4ef;
  color: #222;
}
main {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
}
h1 { font-size: 1.5rem; text-align: center; }
.lead { color: #555; font-size: 0.95rem; }
section { margin-top: 20px; }
label { display: block; margin-bottom: 12px; }
input[type="text"] {
  width: 100%;
  padding: 10px;
  font-size: 1.1rem;
  border: 1px solid #bbb;
  border-radius: 8px;
  margin-top: 4px;
}
button {
  padding: 12px 20px;
  font-size: 1.05rem;
  border: 1px solid #999;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  min-height: 48px;
}
button.primary { background: #ffcf3f; border-color: #d9a400; font-weight: bold; }
button:disabled { opacity: 0.4; cursor: default; }
.scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px 14px;
  gap: 8px;
}
.player { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.player span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.player strong { font-size: 1.25rem; }
.vs { font-weight: bold; color: #888; }
#my-status { color: #555; font-size: 0.9rem; min-height: 1.2em; }
#hints li, #wrong-list li { margin: 4px 0; font-size: 1.1rem; }
#wrong-list { color: #b03030; }
.actions { display: flex; gap: 12px; margin: 16px 0; }
.actions button { flex: 1; }
#buzz-info { font-weight: bold; min-height: 1.4em; }
#reveal-area, #disconnect-area {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px;
  margin-top: 16px;
}
#reveal-answer { font-size: 1.2rem; font-weight: bold; }
#result-scores { font-size: 1.15rem; white-space: pre-line; }
