:root {
  color-scheme: dark;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #111827;
  --paper: #f4f6f9;
  --muted: #667085;
  --line: #d8dde7;
  --panel: #ffffff;
  --night: #09111f;
  --night-2: #141f2f;
  --teal: #10b981;
  --orange: #d98a24;
  --blue: #315b7d;
  --red: #c2414b;
  --gold: #c89b3c;
  --shadow: 0 20px 46px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 10px 26px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f7f8fb 0%, #eef2f6 46%, #e8edf4 100%);
  color: var(--ink);
  font-family: Manrope, Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

body[data-mode="display"] {
  overflow: hidden;
  background: #000;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: #182235;
  background: #e8edf3;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.14);
}

button:disabled,
button:disabled:hover {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.24);
}

.secondary,
.ghost {
  color: #182235;
  background: #f3f6fa;
  border: 1px solid #d8dde7;
}

.danger {
  color: #fff;
  background: linear-gradient(135deg, #9f1239, var(--red));
}

.full {
  width: 100%;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfe;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(49, 91, 125, 0.12);
}

input[type="color"] {
  min-height: 44px;
  padding: 4px;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.inline-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
}

.inline-toggle input {
  width: 18px;
  height: 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.eyebrow {
  margin-bottom: 6px;
  color: #7b8494;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #344054;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 16px;
  border-radius: 8px;
  color: #fff;
  background: #101827;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast[data-tone="bad"] {
  background: var(--red);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 430px;
  background:
    linear-gradient(125deg, rgba(16, 185, 129, 0.18), transparent 34%),
    linear-gradient(35deg, rgba(200, 155, 60, 0.18), transparent 42%),
    linear-gradient(180deg, #09111f, #151f2e);
  color: #fff;
}

.login-visual {
  min-height: 100%;
  padding: clamp(34px, 8vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.login-visual h1 {
  margin: 24px 0 12px;
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.login-visual p {
  max-width: 680px;
  color: #c7d2e5;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.45;
}

.login-panel {
  align-self: center;
  width: min(390px, calc(100vw - 32px));
  margin: 24px;
  padding: 28px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.logo-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, #0f766e, var(--primary, var(--teal)) 58%, var(--secondary, var(--gold)));
  font-size: 19px;
  font-weight: 950;
}

.logo-mark.compact {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  font-size: 14px;
}

.logo-mark.hero {
  width: 86px;
  height: 86px;
  font-size: 30px;
}

.logo-mark.display,
.logo-img.display {
  width: clamp(74px, 8vw, 132px);
  height: clamp(74px, 8vw, 132px);
  font-size: clamp(24px, 3vw, 42px);
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.logo-img.compact {
  width: 38px;
  height: 38px;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
}

.admin-layout.rail-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.admin-rail {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 20px 18px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 22px;
  color: #edf2f7;
  background:
    linear-gradient(180deg, #09111f 0%, #111827 54%, #0b111a 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.rail-toggle {
  width: 36px;
  min-height: 36px;
  justify-self: end;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #edf2f7;
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  line-height: 1;
}

.admin-layout.rail-collapsed .admin-rail {
  padding: 18px 12px;
  justify-items: center;
}

.admin-layout.rail-collapsed .rail-label {
  display: none;
}

.admin-layout.rail-collapsed .rail-brand,
.admin-layout.rail-collapsed .rail-nav a,
.admin-layout.rail-collapsed .rail-logout {
  width: 48px;
  justify-content: center;
  padding-inline: 0;
}

.admin-layout.rail-collapsed .rail-toggle {
  justify-self: center;
}

.rail-brand,
.rail-nav a {
  color: inherit;
  text-decoration: none;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: 0.01em;
}

.rail-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.rail-nav a {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aab6c7;
  font-size: 13px;
  font-weight: 850;
}

.rail-icon {
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
}

.rail-nav a.active,
.rail-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.105);
}

.admin-main {
  padding: 24px;
}

.admin-topbar {
  min-height: 82px;
  margin-bottom: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(216, 221, 231, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.admin-topbar h1 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.panel {
  border: 1px solid rgba(216, 221, 231, 0.95);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.events-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.span-2 {
  min-width: 0;
}

.section-head {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #edf1f6;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.compact-head {
  padding: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.event-list {
  padding: 12px;
  display: grid;
  gap: 12px;
}

.event-card {
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  align-items: center;
  gap: 16px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.045), transparent 42%),
    #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.event-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.event-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.event-main h3 {
  margin: 0 0 4px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.event-main p,
.event-stats,
.guest-row small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.event-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.event-stats span {
  padding: 6px 9px;
  border-radius: 6px;
  background: #f3f6fa;
  border: 1px solid #e5eaf2;
}

.status-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #d8dde7;
  color: #344054;
  background: #f3f6fa;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.status-pill.live {
  color: #065f46;
  background: #dff8ea;
  border-color: #a7f3d0;
}

.status-pill.draft {
  color: #7a4b05;
  background: #fff4d6;
  border-color: #f5d58a;
}

.status-pill.completed {
  color: #344054;
  background: #e7ebf2;
}

.status-pill.archived {
  color: #475467;
  background: #f2f4f7;
}

.event-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.create-event {
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.control-grid {
  display: grid;
  grid-template-columns: 310px minmax(560px, 1fr) 370px;
  gap: 18px;
  align-items: start;
}

.operator-console {
  display: grid;
  gap: 16px;
}

.operator-tabs {
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.operator-tabs button {
  min-width: 112px;
  color: #475467;
  background: transparent;
  box-shadow: none;
}

.operator-tabs button.active {
  color: #07111f;
  background: #e8faf3;
  border: 1px solid #a7f3d0;
}

.run-show-grid {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(520px, 1fr) minmax(270px, 320px);
  gap: 18px;
  align-items: start;
}

.queue-panel,
.stage-panel,
.live-brief,
.experience-list-panel,
.experience-editor,
.add-experience-panel,
.setup-panel,
.report-panel {
  min-width: 0;
  overflow: hidden;
}

.show-queue {
  max-height: calc(100vh - 270px);
}

.queue-footer {
  padding: 12px;
  border-top: 1px solid #edf1f6;
}

.operator-preview {
  margin: 16px;
  min-height: clamp(310px, 38vw, 650px);
}

.next-action-strip {
  padding: 16px;
  display: grid;
  gap: 12px;
  border-top: 1px solid #edf1f6;
  background: #fbfcfe;
}

.next-action {
  min-height: 56px;
  font-size: 16px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.brief-stack {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.brief-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf1f6;
}

.brief-button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  border-radius: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.brief-button:hover {
  transform: none;
  background: #f8fafc;
  box-shadow: none;
}

.brief-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.brief-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 14px;
}

.brief-actions {
  display: grid;
  gap: 8px;
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(430px, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.experience-list {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.experience-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.experience-row.hidden-run,
.bank-question-row.hidden-run {
  background: #f8fafc;
  opacity: 0.72;
}

.experience-row.selected {
  border-color: #a7f3d0;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.14);
}

.experience-row.active {
  background: linear-gradient(90deg, #e8faf3, #fff);
}

.experience-main {
  min-width: 0;
  min-height: 48px;
  justify-content: flex-start;
  padding: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.experience-main:hover {
  transform: none;
  box-shadow: none;
}

.experience-main > span:last-child {
  min-width: 0;
}

.experience-main small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.experience-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.experience-bank {
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.experience-bank.active {
  border-color: #a7f3d0;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}

.experience-bank-head {
  padding: 12px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #edf1f6;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.experience-bank-head h3 {
  margin: 0 0 3px;
  font-size: 16px;
}

.experience-bank-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.experience-bank-head small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 11px;
  line-height: 1.25;
}

.bank-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bank-question-grid {
  display: grid;
}

.bank-question-grid-head,
.bank-question-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) minmax(220px, 0.95fr) 100px minmax(210px, auto);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f6;
}

.bank-question-grid-head {
  min-height: 42px;
  color: #667085;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.bank-question-row:last-child {
  border-bottom: 0;
}

.bank-question-row.selected {
  background: #f1fbf8;
}

.bank-question-row.active {
  background: linear-gradient(90deg, #e8faf3, #fff);
}

.bank-question-main {
  min-width: 0;
  min-height: 44px;
  padding: 0;
  display: grid;
  justify-items: start;
  gap: 2px;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.bank-question-main:hover {
  transform: none;
  box-shadow: none;
}

.bank-question-main strong,
.bank-question-main small,
.bank-options {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-question-main small {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.bank-options {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.bank-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.add-experience-panel {
  grid-column: 2;
}

.setup-grid,
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.reports-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.link-stack,
.report-result {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.guest-field-settings {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fbfcfe;
}

.guest-field-settings .eyebrow {
  margin: 0;
}

.inline-toggle.locked {
  color: var(--muted);
}

.inline-toggle small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.report-metrics {
  padding-bottom: 16px;
}

.report-guests {
  max-height: calc(100vh - 230px);
  overflow: auto;
}

.padded {
  padding: 14px;
}

.response-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 17, 31, 0.62);
}

.response-modal-panel {
  width: min(1120px, 96vw);
  max-height: min(760px, 90vh);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.response-modal-head {
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #edf1f6;
}

.response-modal-head h2 {
  margin: 0 0 4px;
}

.response-modal-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.response-grid {
  overflow: auto;
}

.response-grid-head,
.response-grid-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(260px, 1.4fr) 110px 90px 170px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #edf1f6;
}

.response-grid-head {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #475467;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.response-grid-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.response-grid-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.response-grid-row b {
  padding: 4px 8px;
  border-radius: 999px;
  color: #065f46;
  background: #dff8ea;
  font-size: 11px;
  text-transform: uppercase;
}

.response-grid-row.hidden-response {
  background: #f8fafc;
  opacity: 0.72;
}

.response-grid-row.hidden-response b {
  color: #475467;
  background: #e7ebf2;
}

.response-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 17, 31, 0.62);
}

.confirm-panel {
  width: min(460px, 94vw);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
}

.confirm-panel h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.confirm-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.question-bank,
.side-panel {
  overflow: hidden;
}

.question-list {
  padding: 12px;
  display: grid;
  gap: 9px;
  max-height: 430px;
  overflow: auto;
}

.question-row {
  width: 100%;
  min-height: 66px;
  justify-content: flex-start;
  background: #f8fafc;
  border: 1px solid #e5eaf2;
  box-shadow: none;
  text-align: left;
  color: var(--ink);
}

.question-row.selected {
  outline: 2px solid rgba(16, 185, 129, 0.38);
  background: #f1fbf8;
}

.question-row.active {
  background: linear-gradient(90deg, #e8faf3, #f8fafc);
  border-color: #a7f3d0;
}

.question-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.question-row > span:last-child {
  min-width: 0;
}

.question-badges {
  margin-top: 7px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.question-badges b {
  padding: 3px 7px;
  border-radius: 999px;
  color: #065f46;
  background: #dff8ea;
  border: 1px solid #a7f3d0;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.type-glyph {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #07111f;
  background: linear-gradient(180deg, #fff, #f4f7fb);
  border: 1px solid #e4e7ec;
  font-weight: 950;
}

.add-question,
.branding-box,
.event-details-form,
.question-settings-form {
  margin: 12px;
  border-top: 1px solid #edf0f5;
  padding-top: 12px;
}

summary {
  cursor: pointer;
  color: #1f2937;
  font-size: 13px;
  font-weight: 950;
}

.add-question form,
.branding-box form,
.event-details-form,
.question-settings-form {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.question-settings-form {
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.question-settings-form h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.control-center {
  overflow: hidden;
}

.screen-state {
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: #111827;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.center-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #d0d5dd;
}

.live-dot.on {
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(18, 184, 134, 0.16);
}

.metrics-row {
  padding: 16px 20px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric {
  min-height: 78px;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  padding: 13px;
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 5px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.control-strip {
  padding: 16px 20px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  border-bottom: 1px solid #edf1f6;
}

.control-strip button {
  min-width: 92px;
}

.mini-display {
  margin: 18px 20px 20px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.2);
}

.side-panel {
  padding-bottom: 10px;
}

.sub-section-head {
  margin-top: 8px;
  border-top: 1px solid #edf1f6;
}

.guest-list {
  padding: 14px 16px 16px;
  display: grid;
  gap: 9px;
}

.guest-list h3 {
  margin: 6px 0 2px;
  font-size: 15px;
}

.guest-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.presence {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c5ccd8;
}

.presence.on {
  background: var(--teal);
}

.mobile-shell {
  min-height: 100vh;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 18px;
  color: #fff;
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--primary) 24%, transparent), transparent 46%),
    linear-gradient(30deg, color-mix(in srgb, var(--secondary) 18%, transparent), transparent 55%),
    linear-gradient(180deg, #09111f, #151f2e);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}

.mobile-brand h1 {
  margin: 0;
  font-size: clamp(22px, 8vw, 34px);
  line-height: 1.05;
}

.mobile-card {
  width: min(100%, 540px);
  margin: 0 auto;
  border-radius: 8px;
  padding: 22px;
  color: #101827;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
}

.mobile-card h2 {
  margin-bottom: 16px;
  font-size: clamp(24px, 8vw, 34px);
  line-height: 1.08;
}

.join-form,
.question-card {
  display: grid;
  gap: 14px;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-timer {
  position: relative;
  min-width: 58px;
  height: 30px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #07111f;
  background: #edf1f6;
}

.mobile-timer span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  background: #fddcab;
}

.mobile-timer {
  isolation: isolate;
}

.mobile-timer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.answer-options,
.emoji-options {
  display: grid;
  gap: 10px;
}

.answer-button {
  min-height: 62px;
  justify-content: flex-start;
  color: #101827;
  background: #f4f7fb;
  border: 1px solid #e5eaf2;
  box-shadow: none;
  font-size: 17px;
}

.option-icon {
  min-width: 42px;
  font-size: 30px;
  line-height: 1;
}

.emoji-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.emoji-options .answer-button {
  min-height: 112px;
  flex-direction: column;
  text-align: center;
}

.rating-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.rating-options button {
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  font-size: 24px;
  background: #fff3dd;
}

.rating-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wall-form textarea {
  min-height: 112px;
}

.wall-emoji-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.wall-emoji-picker button {
  min-height: 72px;
  padding: 8px;
  flex-direction: column;
  color: #101827;
  background: #f4f7fb;
  border: 1px solid #e5eaf2;
  box-shadow: none;
}

.wall-emoji-picker button.selected {
  border-color: var(--teal);
  background: #e8faf3;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.wall-emoji-picker span {
  font-size: 26px;
}

.wall-emoji-picker small {
  color: #475467;
  font-size: 10px;
  font-weight: 900;
}

.waiting,
.success {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
}

.big-symbol {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  color: #07111f;
  background: var(--teal);
  font-size: 42px;
  font-weight: 950;
}

.pulse-ring {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: block;
  border: 9px solid rgba(18, 184, 134, 0.25);
  border-top-color: var(--teal);
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.display-shell,
.display-preview {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text, #f8fafc);
  background: #07111f;
}

.display-preview {
  min-height: 0;
  height: 100%;
}

.display-bg {
  position: absolute;
  inset: 0;
  background:
    var(--display-bg, linear-gradient(130deg, rgba(16, 185, 129, 0.2), transparent 35%)),
    linear-gradient(32deg, rgba(200, 155, 60, 0.16), transparent 42%),
    linear-gradient(165deg, #09111f, #151f2e 56%, #070b12);
  background-size: cover;
  background-position: center;
}

.display-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.display-safe {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(28px, 4.8vw, 80px);
  display: grid;
}

.display-preview .display-safe {
  min-height: 100%;
  padding: 22px;
}

.display-shell.experience-comment-wall .display-safe {
  height: 100vh;
  min-height: 100vh;
  padding: clamp(12px, 1.8vw, 32px);
}

.display-welcome,
.display-question,
.display-waiting,
.display-thanks,
.display-leaderboard,
.display-unpublished {
  width: 100%;
  display: grid;
  align-items: center;
}

.display-welcome {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 34vw);
  gap: clamp(26px, 4vw, 70px);
}

.display-preview .display-welcome {
  grid-template-columns: 1fr 190px;
  gap: 16px;
}

.display-title h1,
.display-question h1,
.display-thanks h1,
.display-leaderboard h1,
.display-waiting h1,
.display-unpublished h1 {
  margin: 12px 0;
  max-width: 13ch;
  font-size: clamp(56px, 8.2vw, 142px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.display-question h1 {
  max-width: 17ch;
  font-size: clamp(44px, 5.6vw, 96px);
}

.display-preview .display-title h1,
.display-preview .display-question h1,
.display-preview .display-thanks h1,
.display-preview .display-leaderboard h1 {
  font-size: 30px;
  line-height: 1;
}

.display-title h2 {
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(22px, 2.6vw, 40px);
}

.qr-stage {
  width: min(100%, 520px);
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: clamp(14px, 2vw, 24px);
  background: rgba(255, 255, 255, 0.94);
  color: #101827;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.qr-stage img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.qr-stage p {
  margin: 12px 0 0;
  overflow-wrap: anywhere;
  text-align: center;
  font-weight: 900;
}

.display-preview .qr-stage {
  padding: 8px;
}

.display-preview .qr-stage p {
  display: none;
}

.display-stats {
  position: absolute;
  left: clamp(28px, 4.8vw, 80px);
  bottom: clamp(48px, 5vw, 88px);
  display: flex;
  gap: 12px;
}

.display-stats span,
.question-topline span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.display-preview .display-stats,
.display-preview .sponsor-strip {
  display: none;
}

.sponsor-strip {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 4.8vw, 80px);
  right: clamp(28px, 4.8vw, 80px);
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: clamp(14px, 1.4vw, 22px);
  font-weight: 900;
}

.question-topline {
  align-self: start;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.countdown {
  min-width: 64px;
  color: #07111f;
  background: var(--secondary) !important;
  text-align: center;
}

.display-answer-options,
.display-emoji-options {
  margin-top: clamp(20px, 3vw, 52px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

.display-emoji-options {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.display-answer-options div,
.display-emoji-options div {
  min-height: clamp(90px, 12vw, 170px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: clamp(18px, 2vw, 30px);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.09);
}

.display-emoji-options div {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.display-answer-options strong,
.display-emoji-options strong {
  font-size: clamp(22px, 2.4vw, 42px);
}

.display-emoji-options span {
  font-size: clamp(42px, 5vw, 86px);
}

.comment-wall-display {
  align-content: stretch;
}

.display-shell.experience-comment-wall .comment-wall-display {
  height: 100%;
  min-height: 0;
}

.live-wall {
  position: relative;
  min-height: min(78vh, 900px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 13vw);
  gap: clamp(16px, 3vw, 46px);
  align-items: stretch;
}

.display-shell.experience-comment-wall .live-wall {
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 10vw);
  gap: clamp(14px, 2vw, 34px);
}

.live-wall-frame {
  position: relative;
  overflow: hidden;
  border: clamp(2px, 0.28vw, 5px) solid #b91c1c;
  border-radius: 8px;
  padding: clamp(18px, 3vw, 44px);
  background:
    linear-gradient(90deg, rgba(185, 28, 28, 0.13), transparent 38%),
    rgba(0, 0, 0, 0.78);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.display-shell.experience-comment-wall .live-wall-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.live-wall-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 6px;
  pointer-events: none;
}

.live-wall-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(16px, 2.2vw, 32px);
  font-size: clamp(20px, 2.7vw, 48px);
  line-height: 1;
}

.live-wall-heading strong {
  font-weight: 950;
}

.play-dot {
  width: clamp(34px, 3.6vw, 58px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #b91c1c;
  font-size: 0.58em;
}

.live-wall-comments {
  position: relative;
  z-index: 1;
  max-height: min(58vh, 680px);
  overflow: hidden;
}

.display-shell.experience-comment-wall .live-wall-comments {
  max-height: none;
  min-height: 0;
}

.live-wall-feed {
  display: grid;
  gap: var(--scroll-loop-gap, clamp(12px, 1.3vw, 22px));
  padding-bottom: clamp(70px, 8vw, 130px);
}

.display-shell.experience-comment-wall .live-wall-feed {
  padding-bottom: 0;
}

.live-wall-group {
  display: grid;
  gap: clamp(12px, 1.3vw, 22px);
}

.live-wall-feed.scrolling {
  animation: wallFeedScroll var(--scroll-duration, 12s) linear infinite;
  will-change: transform;
}

.wall-comment {
  display: grid;
  grid-template-columns: clamp(42px, 5vw, 78px) minmax(0, 1fr);
  gap: clamp(12px, 1.5vw, 22px);
  align-items: start;
}

.wall-avatar {
  width: clamp(42px, 5vw, 78px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #334155, #b91c1c);
  border: 2px solid rgba(255, 255, 255, 0.72);
  font-weight: 950;
  font-size: clamp(16px, 1.8vw, 28px);
}

.wall-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wall-comment p {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(18px, 2.25vw, 40px);
  line-height: 1.18;
  font-weight: 850;
}

.wall-comment small {
  display: block;
  margin-top: 5px;
  color: #cbd5e1;
  font-size: clamp(13px, 1.35vw, 24px);
  font-weight: 850;
}

.live-wall-hashtag {
  position: absolute;
  left: clamp(18px, 3vw, 44px);
  bottom: clamp(14px, 2vw, 30px);
  color: #ef4444;
  font-size: clamp(18px, 2.2vw, 38px);
  font-weight: 950;
}

.display-shell.experience-comment-wall .live-wall-hashtag {
  position: relative;
  left: auto;
  bottom: auto;
  align-self: end;
  margin-top: clamp(12px, 1.6vw, 26px);
}

.floating-reactions {
  position: relative;
  overflow: hidden;
}

.display-shell.experience-comment-wall .floating-reactions {
  min-height: 0;
}

.floating-reactions span {
  position: absolute;
  right: calc(var(--x) * 24%);
  bottom: -12%;
  width: clamp(40px, 5.2vw, 86px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  font-size: clamp(22px, 2.9vw, 48px);
  animation: floatReaction 9s linear infinite;
  animation-delay: calc(var(--i) * -0.75s);
}

@keyframes floatReaction {
  from {
    transform: translateY(15%) scale(0.88);
    opacity: 0;
  }
  12%,
  82% {
    opacity: 1;
  }
  to {
    transform: translateY(-118vh) scale(1.08);
    opacity: 0;
  }
}

@keyframes wallFeedScroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-1 * var(--scroll-distance, 0px)));
  }
}

.wall-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  font-size: clamp(20px, 2vw, 36px);
  font-weight: 850;
}

.emoji-results {
  margin-top: clamp(20px, 3vw, 54px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.emoji-result {
  min-height: clamp(140px, 17vw, 250px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: clamp(14px, 2vw, 26px);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  animation: lift 420ms ease both;
  animation-delay: calc(var(--delay) * 60ms);
}

.emoji-result.winner {
  background: color-mix(in srgb, var(--secondary) 72%, white 12%);
  color: #07111f;
}

.emoji-result span {
  font-size: clamp(42px, 5vw, 90px);
}

.emoji-result strong {
  font-size: clamp(17px, 1.5vw, 28px);
}

.emoji-result b {
  font-size: clamp(30px, 4vw, 70px);
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.bar-results {
  margin-top: clamp(18px, 3vw, 48px);
  display: grid;
  gap: clamp(12px, 1.6vw, 22px);
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  font-weight: 900;
}

.bar-label strong {
  font-size: clamp(20px, 2.4vw, 42px);
}

.bar-label span {
  color: #cbd5e1;
  font-size: clamp(16px, 1.8vw, 30px);
}

.bar-track {
  height: clamp(24px, 3.6vw, 56px);
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.bar-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 440ms ease;
}

.bar-row.correct .bar-track span {
  background: linear-gradient(90deg, #12b886, #f6c85f);
}

.kbc-poll-results {
  margin-top: clamp(20px, 3vw, 52px);
  display: grid;
  gap: clamp(12px, 1.6vw, 24px);
}

.kbc-total {
  justify-self: start;
  padding: 8px 14px;
  border-radius: 999px;
  color: #07111f;
  background: #f6c85f;
  font-size: clamp(15px, 1.35vw, 24px);
  font-weight: 950;
}

.kbc-option {
  min-height: clamp(68px, 7vw, 118px);
  display: grid;
  grid-template-columns: clamp(44px, 4.5vw, 76px) minmax(180px, 0.7fr) minmax(220px, 1fr) clamp(60px, 6vw, 110px);
  gap: clamp(10px, 1.4vw, 22px);
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: clamp(10px, 1.3vw, 18px);
  background:
    linear-gradient(90deg, rgba(49, 91, 125, 0.42), rgba(15, 23, 42, 0.58)),
    rgba(255, 255, 255, 0.08);
}

.kbc-option.winner {
  border-color: #f6c85f;
  box-shadow: 0 0 0 2px rgba(246, 200, 95, 0.28);
}

.kbc-letter {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #07111f;
  background: #f6c85f;
  font-size: clamp(20px, 2.2vw, 38px);
  font-weight: 950;
}

.kbc-option strong {
  font-size: clamp(18px, 2.1vw, 38px);
  line-height: 1.1;
}

.kbc-track {
  height: clamp(22px, 2.6vw, 44px);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.kbc-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f6c85f, #10b981);
  transition: width 480ms ease;
}

.kbc-option b {
  justify-self: end;
  color: #f6c85f;
  font-size: clamp(24px, 3vw, 54px);
}

.word-cloud {
  margin-top: clamp(20px, 3vw, 50px);
  min-height: clamp(250px, 34vw, 520px);
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 22px);
}

.word-cloud span {
  padding: 6px 12px;
  border-radius: 8px;
  color: #07111f;
  background: var(--primary);
  font-size: calc(var(--size) * clamp(18px, 2.3vw, 38px));
  font-weight: 950;
}

.word-cloud span:nth-child(5n + 2) {
  background: var(--secondary);
}

.word-cloud span:nth-child(5n + 3) {
  background: #f6c85f;
}

.word-cloud span:nth-child(5n + 4) {
  background: #a7f3d0;
}

.word-cloud span:nth-child(5n + 5) {
  background: #c4b5fd;
}

.rating-result {
  margin-top: clamp(20px, 3vw, 48px);
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(360px, 1fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
}

.rating-gauge {
  aspect-ratio: 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    conic-gradient(var(--secondary) var(--rating), rgba(255, 255, 255, 0.15) 0),
    #101827;
  box-shadow: inset 0 0 0 clamp(18px, 3vw, 42px) rgba(7, 17, 31, 0.98);
}

.rating-gauge strong {
  font-size: clamp(54px, 7vw, 132px);
  line-height: 0.8;
}

.rating-gauge span {
  margin-top: -20%;
  color: #cbd5e1;
  font-size: clamp(20px, 2vw, 34px);
  font-weight: 900;
}

.rating-bars {
  min-height: clamp(190px, 26vw, 380px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: clamp(10px, 1.4vw, 18px);
}

.rating-bars div {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 8px;
}

.rating-bars b {
  align-self: end;
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--primary), #f6c85f);
}

.display-leaderboard {
  align-content: center;
}

.leaderboard-list {
  display: grid;
  gap: clamp(10px, 1.3vw, 18px);
}

.leader-row,
.leader-empty {
  min-height: clamp(56px, 5.5vw, 92px);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  padding: 0 clamp(16px, 2.6vw, 34px);
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(120px, 0.45fr) 120px;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  font-size: clamp(20px, 2.1vw, 34px);
}

.leader-row .rank {
  width: clamp(42px, 4vw, 62px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #07111f;
  background: var(--secondary);
  font-weight: 950;
}

.leader-row b {
  justify-self: end;
  color: var(--secondary);
}

.waiting-answers,
.display-waiting,
.display-thanks {
  justify-items: center;
  align-content: center;
  text-align: center;
}

.waiting-answers {
  min-height: 300px;
  gap: 20px;
}

.waiting-answers p,
.display-waiting p {
  color: #cbd5e1;
  font-size: clamp(20px, 2.2vw, 38px);
  font-weight: 900;
}

.display-thanks {
  position: relative;
}

.display-unpublished {
  justify-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
}

.display-unpublished h1 {
  max-width: 15ch;
  font-size: clamp(44px, 6.2vw, 104px);
}

.display-unpublished p:last-child {
  max-width: 820px;
  color: #cbd5e1;
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.35;
  font-weight: 800;
}

.celebration-grid {
  position: absolute;
  inset: 10% 8%;
  pointer-events: none;
}

.celebration-grid span {
  position: absolute;
  left: calc((var(--i) * 37) % 100 * 1%);
  top: calc((var(--i) * 23) % 100 * 1%);
  width: clamp(8px, 1.1vw, 18px);
  height: clamp(28px, 4vw, 70px);
  border-radius: 4px;
  background: var(--secondary);
  transform: rotate(calc(var(--i) * 21deg));
  animation: confetti 1600ms ease-in-out infinite alternate;
}

.celebration-grid span:nth-child(3n) {
  background: var(--primary);
}

.celebration-grid span:nth-child(4n) {
  background: #f6c85f;
}

@keyframes confetti {
  to {
    transform: translateY(20px) rotate(calc(var(--i) * 31deg));
  }
}

.compact-results {
  margin-top: 12px;
}

.side-panel .emoji-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.side-panel .emoji-result {
  min-height: 92px;
}

.side-panel .emoji-result span {
  font-size: 28px;
}

.side-panel .emoji-result b {
  font-size: 24px;
}

.side-panel .bar-label strong,
.side-panel .bar-label span {
  color: #101827;
  font-size: 13px;
}

.side-panel .bar-track {
  height: 16px;
  background: #edf1f6;
}

.side-panel .word-cloud {
  min-height: 130px;
  justify-content: flex-start;
}

.side-panel .live-wall {
  min-height: 220px;
  grid-template-columns: 1fr 56px;
  gap: 8px;
}

.side-panel .live-wall-frame {
  padding: 12px;
}

.side-panel .live-wall-heading {
  font-size: 13px;
  margin-bottom: 10px;
}

.side-panel .wall-comment {
  grid-template-columns: 30px 1fr;
  gap: 8px;
}

.side-panel .wall-avatar {
  width: 30px;
}

.side-panel .wall-comment p {
  font-size: 12px;
}

.side-panel .wall-comment small,
.side-panel .live-wall-hashtag {
  font-size: 10px;
}

.side-panel .floating-reactions span {
  width: 30px;
  font-size: 16px;
}

.side-panel .rating-result {
  grid-template-columns: 110px 1fr;
  gap: 14px;
}

.side-panel .rating-gauge strong {
  font-size: 32px;
}

.side-panel .rating-bars {
  min-height: 100px;
}

.display-preview .display-question h1 {
  font-size: 24px;
}

.display-preview .question-topline span {
  padding: 5px 8px;
  font-size: 10px;
}

.display-preview .emoji-results {
  gap: 8px;
}

.display-preview .emoji-result {
  min-height: 70px;
  padding: 8px;
}

.display-preview .emoji-result span {
  font-size: 26px;
}

.display-preview .emoji-result b {
  font-size: 20px;
}

.display-preview .bar-results {
  gap: 8px;
}

.display-preview .bar-label strong,
.display-preview .bar-label span {
  font-size: 12px;
}

.display-preview .bar-track {
  height: 12px;
}

.display-preview .display-answer-options,
.display-preview .display-emoji-options {
  gap: 8px;
}

.display-preview .display-answer-options div,
.display-preview .display-emoji-options div {
  min-height: 52px;
  padding: 8px;
}

.display-preview .display-answer-options strong,
.display-preview .display-emoji-options strong {
  font-size: 12px;
}

.display-preview .display-emoji-options span {
  font-size: 22px;
}

.display-preview .rating-result {
  grid-template-columns: 100px 1fr;
  gap: 16px;
}

.display-preview .rating-bars {
  min-height: 96px;
}

.display-preview .word-cloud {
  min-height: 100px;
}

.display-preview .live-wall {
  min-height: 100%;
  grid-template-columns: 1fr 42px;
  gap: 8px;
}

.display-preview .live-wall-frame {
  padding: 10px;
}

.display-preview .live-wall-heading {
  font-size: 13px;
  margin-bottom: 8px;
}

.display-preview .wall-comment {
  grid-template-columns: 26px 1fr;
  gap: 7px;
}

.display-preview .wall-avatar {
  width: 26px;
}

.display-preview .wall-comment p {
  font-size: 11px;
}

.display-preview .wall-comment small,
.display-preview .live-wall-hashtag {
  font-size: 9px;
}

.display-preview .floating-reactions span {
  width: 26px;
  font-size: 14px;
}

.display-preview .kbc-poll-results {
  gap: 8px;
}

.display-preview .kbc-option {
  min-height: 36px;
  grid-template-columns: 24px 1fr 1fr 38px;
  gap: 6px;
  padding: 6px;
}

.display-preview .kbc-option strong,
.display-preview .kbc-option b,
.display-preview .kbc-total {
  font-size: 10px;
}

.display-preview .kbc-track {
  height: 10px;
}

.display-preview .leader-row,
.display-preview .leader-empty {
  grid-template-columns: 34px 1fr 70px 50px;
  min-height: 36px;
  padding: 0 8px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .control-grid,
  .events-grid,
  .run-show-grid,
  .experience-grid,
  .setup-grid,
  .reports-grid {
    grid-template-columns: 1fr;
  }

  .add-experience-panel {
    grid-column: auto;
  }

  .operator-preview {
    min-height: 360px;
  }

  .event-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 42vh;
  }

  .login-panel {
    justify-self: center;
    margin-top: -40px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-layout.rail-collapsed {
    grid-template-columns: 1fr;
  }

  .admin-rail {
    position: static;
    min-height: auto;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .admin-layout.rail-collapsed .admin-rail {
    justify-items: stretch;
  }

  .rail-nav {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .admin-layout.rail-collapsed .rail-nav a,
  .admin-layout.rail-collapsed .rail-brand,
  .admin-layout.rail-collapsed .rail-logout {
    width: auto;
    padding-inline: 12px;
  }

  .operator-tabs {
    width: 100%;
  }

  .operator-tabs button {
    min-width: 0;
    flex: 1 0 130px;
  }

  .admin-main {
    padding: 14px;
  }

  .metrics-row,
  .two {
    grid-template-columns: 1fr 1fr;
  }

  .experience-row {
    grid-template-columns: 1fr;
  }

  .experience-bank-head,
  .bank-question-grid-head,
  .bank-question-row,
  .response-grid-head,
  .response-grid-row {
    grid-template-columns: 1fr;
  }

  .bank-question-grid-head,
  .response-grid-head {
    display: none;
  }

  .bank-row-actions {
    justify-content: flex-start;
  }

  .experience-actions {
    justify-content: flex-start;
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .display-welcome {
    grid-template-columns: 1fr;
  }

  .qr-stage {
    justify-self: start;
    max-width: 340px;
  }

  .display-answer-options,
  .display-emoji-options,
  .emoji-results,
  .rating-result {
    grid-template-columns: 1fr;
  }

  .live-wall {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .floating-reactions {
    min-height: 150px;
  }

  .floating-reactions span {
    right: calc(var(--x) * 31%);
  }

  .kbc-option {
    grid-template-columns: clamp(38px, 8vw, 54px) minmax(0, 1fr) auto;
  }

  .kbc-track {
    grid-column: 2 / -1;
  }
}

@media (max-width: 560px) {
  .mobile-shell {
    padding: 14px;
  }

  .mobile-card {
    padding: 18px;
  }

  .emoji-options,
  .rating-options,
  .metrics-row,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .control-strip button,
  .event-actions .button,
  .event-actions button {
    width: 100%;
  }

  .operator-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .operator-tabs button {
    width: 100%;
  }

  .operator-preview {
    min-height: 240px;
    margin: 12px;
  }

  .next-action-strip {
    padding: 12px;
  }

  .response-modal {
    padding: 10px;
  }

  .response-modal-head {
    flex-direction: column;
  }

  .wall-emoji-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .live-wall-frame {
    padding: 16px;
  }

  .live-wall-heading {
    align-items: flex-start;
    flex-direction: column;
    line-height: 1.1;
  }

  .wall-comment {
    grid-template-columns: 38px 1fr;
  }

  .wall-avatar {
    width: 38px;
  }

  .kbc-option {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 9px;
  }
}
