:root {
--bg: #D0D0D0;
--panel: #c0c0c0;
--text: #000000;
--muted: #272727;
--ring: #b3b3b3;
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; }
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; color: var(--text); background: radial-gradient(1200px 800px at 70% 20%, #c6c6c6, var(--bg)); }

.hud { position: fixed; inset: 16px 16px auto 16px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: color-mix(in oklab, var(--panel) 92%, transparent); border: 1px solid var(--ring); border-radius: 14px; box-shadow: 0 10px 30px rgba(207, 207, 207, 0.25); backdrop-filter: blur(10px);
}
.brand { font-weight: 700; letter-spacing: 0.2px; }
.spacer { flex: 1; }
.connected { opacity: 0.9; }

.stage { position: absolute; inset: 0; outline: none; cursor: none; }

.cursor { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.dot { width: 34px; height: 34px; border-radius: 999px; border: 2px solid rgba(255,255,255,.75); box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 10px 18px rgba(0,0,0,.25); }
.label { position: absolute; top: 40px; left: 50%; transform: translate(-50%, 6px); padding: 3px 8px; border-radius: 10px; background: var(--panel); border: 1px solid var(--ring); font-size: 12px; white-space: nowrap; }

.bubble { position: absolute; left: 50%; bottom: 35px; transform: translate(-50%, -8px); padding: 6px 10px; border-radius: 12px; background: #9a9a9a; border: 1px solid var(--ring); font-size: 12px; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 8px 24px rgba(0,0,0,.35); opacity: 0; transition: opacity .12s ease, transform .12s ease; }
.bubble.show { opacity: 1; transform: translate(-50%, -14px); }

.join { width: min(92vw, 420px); border: 1px solid var(--ring); border-radius: 14px; padding: 0; background: var(--panel); color: var(--text); }
.join::backdrop { background: rgba(234, 234, 234, 0.6); backdrop-filter: blur(2px); }
.join form { padding: 16px; }
.join h2 { margin: 0 0 10px; font-size: 20px; }
.field { display: grid; gap: 6px; margin: 10px 0; }
.field span { font-size: 12px; color: var(--muted); }
.field input[type="text"], .field input:not([type]) { background: #afafaf; color: var(--text); border: 1px solid var(--ring); border-radius: 10px; padding: 10px 12px; outline: none; }
.field input[type="color"] { width: 100%; height: 40px; border: 1px solid var(--ring); border-radius: 10px; background: #bdbdbd; }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
menu { display: flex; justify-content: flex-end; gap: 8px; margin: 16px 0 0; padding: 0; }
.btn { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ring); background: #a6a6a6; color: var(--text); cursor: pointer; }
.btn.primary { background: #acacac; }
.btn.ghost { background: transparent; }

.fab { position: fixed; right: 16px; bottom: 16px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ring); background: var(--panel); color: var(--text); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* Self chat input */
.chat-input { position: absolute; pointer-events: none; }
.chat-input input { pointer-events: auto; width: min(60vw, 360px); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ring); background: #a6a6a6; color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.hidden { display: none; }


/* --- Q&A panel --- */
.qa {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  padding: 12px;
  border: 1px solid var(--ring);
  border-radius: 14px;
  background: color-mix(in oklab, var(--panel) 92%, transparent);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}
.qa-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
}
.qa h3 { margin: 0 0 6px; }
.qa-status { color: var(--muted); margin-bottom: 8px; }
.qa-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.host-only.hidden { display: none !important; }
.qa-current { margin: 6px 0 8px; }
.qa-queue-title { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
#qaQueue { margin: 0; padding-left: 18px; max-height: 120px; overflow: auto; }

.qa-ask { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 8px; }
.qa-ask.hidden { display: none; }
.qa-answer { border: 1px solid var(--ring); border-radius: 10px; padding: 10px; background: #a4a4a4; }
.qa-q { color: var(--muted); margin-bottom: 6px; }
.qa-a { font-weight: 600; }
.qa-tts { color: var(--muted); font-size: 12px; margin-top: 6px; }
