/* ===== Base ===================================================== */
:root {
  --bg:#0b0b0c;
  --card:#141417;
  --muted:#a9acb3;
  --accent:#6ee7ff;
  --bar:#3a3f4b;
  --barFill:#51d0ff;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: #fff;
  font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

.wrap {
  max-width: 980px;
  margin: 24px auto 64px;
  padding: 0 16px;
  /* keep content clear of the fixed footer logo */
  padding-bottom: 80px;
}

h1 { font-size: 28px; margin: 0 0 16px; }
h2 { font-size: 22px; margin: 16px 0 10px; }
h3 { font-size: 18px; margin: 10px 0 6px; }

.muted { color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid #24242a;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

input, button, select, textarea {
  background: #1a1b20;
  color: #e8e9ee;
  border: 1px solid #2c2f3a;
  border-radius: 8px;
  padding: 8px 10px;
}
input::placeholder { color: #7b7f88; }
button { cursor: pointer; }
button.secondary { background: #111218; }
button.danger { background: #2a1114; border-color: #5b1b23; }
button.mini { padding: 4px 8px; font-size: 13px; }

.hidden { display: none !important; }

/* ===== Poll bars =============================================== */
.bars { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; width: 100%; }
.bar { display: grid; grid-template-columns: 1fr 4fr auto; gap: 8px; align-items: center; }
.bar > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar > div { background: var(--bar); height: 14px; border-radius: 7px; overflow: hidden; }
.bar > div > div { background: var(--barFill); height: 100%; }
.bar > em { font-style: normal; color: var(--muted); }

ul.qa { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
ul.qa li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

#pollArea { min-height: 160px; }

.pill {
  background: #1b2430;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #253140;
  color: #b7c6d9;
}

/* ===== Logos (centered, bigger) ================================= */
.header-logo-wrap {
  text-align: center;
  margin: 24px 0 12px;
}

.header-logo {
  display: inline-block;
  /* Responsive size: grows on desktop, sensible on mobile */
  height: clamp(64px, 12vw, 140px);
  max-width: 90vw;
  width: auto;
}

/* Room code centered under top logo */
.center-room { text-align: center; margin-bottom: 10px; }

/* Give more space for a bigger bottom logo */
.wrap { padding-bottom: 120px; }

.footer-logo-bar {
  position: fixed;
  left: 0; right: 0; bottom: 16px;
  text-align: center;
  pointer-events: none;
}

.footer-logo {
  display: inline-block;
  height: clamp(40px, 7vw, 84px);
  max-width: 90vw;
  width: auto;
  opacity: .95;
  pointer-events: auto;
}


/* ===== Responsive tweaks ======================================= */
@media (max-width: 520px) {
  .header-logo { height: 36px; }
  .footer-logo { height: 24px; }
}
