#app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

#topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  background: var(--panel-bg);
  border-bottom: 2px solid var(--jeopardy-blue);
  flex-wrap: wrap;
}
#gameControls { display: flex; gap: 8px; align-items: center; flex: 1; flex-wrap: wrap; }
#tabButtons { display: flex; gap: 6px; }
.tab-btn.active { background: var(--jeopardy-gold); color: #000; font-weight: bold; }

.tab-panel { flex: 1; overflow: auto; padding: 14px; }

.error-toast {
  background: var(--incorrect);
  color: #fff;
  padding: 8px 16px;
  text-align: center;
}

.phone-buzzer-box {
  margin-top: 20px;
  background: var(--panel-bg-light);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  max-width: 320px;
}
.phone-buzzer-box img { border-radius: 8px; background: #fff; padding: 8px; }
.phone-buzzer-box code {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85em;
  word-break: break-all;
  color: var(--gold-text);
}

/* ---- editor tab ---- */
.editor-toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.round-editor { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-bottom: 20px; }
.cat-editor { background: var(--panel-bg-light); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.cat-editor input[type=text] { width: 100%; font-weight: bold; }
.clue-editor { background: var(--panel-bg); border-radius: 6px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.clue-editor textarea { width: 100%; height: 50px; resize: vertical; font-size: 0.85em; }
.clue-editor input[type=text] { width: 100%; font-size: 0.85em; }
.clue-editor input[type=number] { width: 70px; }
.clue-editor label { font-size: 0.75em; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.final-editor { background: var(--panel-bg-light); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; max-width: 600px; }
.final-editor input, .final-editor textarea { width: 100%; }
