:root {
  --lq-brand: #7dd3fc;
  --lq-brand-strong: #0284c7;
  --lq-ink: #0f172a;
  --lq-muted: #64748b;
  --lq-line: #d7e8f4;
  --lq-bg: #f6fbff;
  --lq-surface: #ffffff;
  --lq-soft: #e0f2fe;
  --lq-green: #059669;
  --lq-amber: #d97706;
  --lq-rose: #e11d48;
  --lq-violet: #7c3aed;
}

* {
  box-sizing: border-box;
}

.lq-page {
  min-width: 320px;
  overflow-x: hidden;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.72), rgba(246, 251, 255, 0.96) 300px), var(--lq-bg);
  color: var(--lq-ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

.lq-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 52px;
}

.lq-hero,
.lq-surface,
.lq-quiz-card,
.lq-question-card,
.lq-play-card,
.lq-join-card,
.lq-kpi,
.lq-empty-state {
  border: 1px solid var(--lq-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.lq-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.lq-host-hero {
  align-items: center;
}

.lq-eyebrow {
  margin: 0 0 6px;
  color: var(--lq-brand-strong);
  font-size: 0.75rem;
  font-weight: 950;
}

.lq-hero h1,
.lq-surface h2,
.lq-empty-state h1,
.lq-empty-state h2,
.lq-join-card h1,
.lq-play-top h1 {
  margin: 0;
  color: var(--lq-ink);
  font-size: 1.7rem;
  font-weight: 950;
  line-height: 1.15;
}

.lq-surface h2,
.lq-empty-state h2 {
  font-size: 1.16rem;
}

.lq-muted,
.lq-quiz-card p,
.lq-card-meta,
.lq-small,
.lq-section-head p {
  color: var(--lq-muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.lq-hero-actions,
.lq-card-actions,
.lq-form-actions,
.lq-inline-actions,
.lq-control-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.lq-btn,
.lq-icon-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #fff;
  color: #075985;
  padding: 9px 13px;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.lq-btn:hover,
.lq-icon-btn:hover {
  border-color: #38bdf8;
  background: #f0f9ff;
}

.lq-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.lq-btn-primary {
  border-color: var(--lq-brand-strong);
  background: var(--lq-brand-strong);
  color: #fff;
}

.lq-btn-primary:hover {
  background: #0369a1;
  color: #fff;
}

.lq-btn-danger {
  border-color: #fecdd3;
  color: #be123c;
}

.lq-btn-danger:hover {
  border-color: #fb7185;
  background: #fff1f2;
}

.lq-icon-btn {
  width: 40px;
  padding: 0;
}

.lq-surface {
  margin-top: 14px;
  padding: 18px;
}

.lq-section-head,
.lq-card-top,
.lq-question-head,
.lq-result-question-head,
.lq-play-top,
.lq-question-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lq-count,
.lq-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  padding: 5px 9px;
  font-size: 0.75rem;
  font-weight: 950;
}

.lq-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lq-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.lq-field span {
  color: #334155;
  font-size: 0.8rem;
  font-weight: 900;
}

.lq-span-2 {
  grid-column: span 2;
}

.lq-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 750;
}

.lq-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.28);
}

textarea.lq-input {
  line-height: 1.55;
}

.lq-select {
  position: relative;
  width: 100%;
}

.lq-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lq-select-button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 9px 12px;
  font-size: 0.92rem;
  font-weight: 850;
  text-align: left;
}

.lq-select-button span {
  min-width: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lq-select-button i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-right: 2px solid #0284c7;
  border-bottom: 2px solid #0284c7;
  transform: rotate(45deg) translateY(-2px);
}

.lq-select.is-open .lq-select-button {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.22);
}

.lq-select.is-open .lq-select-button i {
  transform: rotate(225deg) translate(-2px, -1px);
}

.lq-select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
  padding: 6px;
}

.lq-select.is-open .lq-select-menu {
  display: grid;
  gap: 4px;
}

.lq-select-option {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #334155;
  padding: 9px 10px;
  font-size: 0.86rem;
  font-weight: 850;
  text-align: left;
}

.lq-select-option:hover,
.lq-select-option:focus,
.lq-select-option.is-selected {
  background: #e0f2fe;
  color: #075985;
  outline: none;
}

.lq-alert {
  margin-top: 14px;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.86rem;
  font-weight: 850;
}

.lq-alert-danger {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.lq-alert-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.lq-list-section {
  margin-top: 22px;
}

.lq-builder {
  margin-top: 18px;
}

.lq-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lq-step {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--lq-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #475569;
  padding: 12px;
  font-weight: 950;
  text-align: left;
}

.lq-step span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 8px;
  background: #e2e8f0;
  color: #475569;
}

.lq-step strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lq-step.is-active {
  border-color: #38bdf8;
  background: #f0f9ff;
  color: #075985;
}

.lq-step.is-active span {
  background: var(--lq-brand-strong);
  color: #fff;
}

.lq-step-panel {
  display: none;
  margin-top: 14px;
  border: 1px solid var(--lq-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
  padding: 18px;
}

.lq-step-panel.is-active {
  display: block;
}

.lq-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.lq-panel-title h2 {
  margin: 0;
  color: var(--lq-ink);
  font-size: 1.24rem;
  font-weight: 950;
}

.lq-builder-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.lq-question-rail {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
  padding-right: 4px;
}

.lq-question-nav-btn {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 10px;
  text-align: left;
}

.lq-question-nav-btn:hover,
.lq-question-nav-btn.is-active {
  border-color: #38bdf8;
  background: #f0f9ff;
}

.lq-question-nav-index {
  display: grid;
  width: 36px;
  height: 36px;
  grid-row: span 2;
  place-items: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.82rem;
  font-weight: 950;
}

.lq-question-nav-btn strong,
.lq-question-nav-btn small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lq-question-nav-btn strong {
  font-size: 0.9rem;
  font-weight: 950;
}

.lq-question-nav-btn small {
  color: var(--lq-muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.lq-question-panel {
  display: none;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.lq-question-panel.is-active {
  display: block;
}

.lq-step-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.lq-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lq-review-metric {
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}

.lq-review-metric small {
  color: var(--lq-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.lq-review-metric strong {
  display: block;
  margin-top: 6px;
  color: #075985;
  font-size: 1.5rem;
  font-weight: 950;
}

.lq-review-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.lq-review-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px;
}

.lq-review-row > span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  font-weight: 950;
}

.lq-review-row strong,
.lq-review-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lq-review-row strong {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 950;
}

.lq-review-row small {
  margin-top: 3px;
  color: var(--lq-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.lq-empty-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px dashed #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
  padding: 14px;
}

.lq-quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.lq-quiz-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
}

.lq-quiz-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.lq-quiz-card p {
  min-height: 42px;
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.lq-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.lq-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lq-question-card {
  margin-top: 14px;
  padding: 16px;
}

.lq-question-form {
  display: grid;
  gap: 14px;
}

.lq-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.lq-type-block {
  display: none;
}

.lq-type-block.is-active {
  display: block;
}

.lq-compact-field {
  max-width: 220px;
  margin-top: 12px;
}

.lq-delete-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.lq-empty-state,
.lq-join-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px 18px;
  text-align: center;
}

.lq-empty-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0284c7;
}

.lq-status-list {
  display: grid;
  width: min(520px, 100%);
  gap: 8px;
  margin-top: 10px;
}

.lq-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.85rem;
  font-weight: 850;
}

.lq-status-row .is-ok {
  color: var(--lq-green);
}

.lq-status-row .is-missing {
  color: var(--lq-rose);
}

.lq-join-shell {
  display: grid;
  min-height: 70vh;
  place-items: center;
}

.lq-join-card {
  width: min(460px, 100%);
}

.lq-join-form {
  display: grid;
  width: 100%;
  gap: 12px;
}

.lq-code-input {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 950;
  text-transform: uppercase;
}

.lq-host-grid,
.lq-host-columns,
.lq-play-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.lq-qr-panel {
  text-align: center;
}

.lq-qr-box {
  display: grid;
  min-height: 240px;
  place-items: center;
  margin-top: 12px;
}

.lq-qr-box img,
.lq-qr-box canvas {
  border-radius: 8px;
}

.lq-code-display {
  margin: 10px 0 0;
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: 0;
}

.lq-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--lq-green);
  box-shadow: 0 0 0 5px rgba(5, 150, 105, 0.12);
}

.lq-now-question {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
  align-items: center;
}

.lq-timer {
  display: inline-grid;
  min-width: 80px;
  min-height: 62px;
  place-items: center;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
  color: #075985;
  font-size: 1.55rem;
  font-weight: 950;
}

.lq-now-question strong,
.lq-play-card h2 {
  color: #0f172a;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.lq-now-question p {
  margin: 4px 0 0;
  color: var(--lq-muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.lq-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.lq-kpi {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 13px;
}

.lq-kpi > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0284c7;
}

.lq-kpi small {
  color: var(--lq-muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.lq-kpi strong {
  display: block;
  color: #075985;
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1.1;
}

.lq-rank-list,
.lq-stat-list,
.lq-result-questions {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.lq-rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
}

.lq-rank-row b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--lq-violet);
  font-size: 0.82rem;
  font-weight: 950;
}

.lq-rank-row strong,
.lq-rank-row span {
  overflow-wrap: anywhere;
}

.lq-rank-row span {
  color: var(--lq-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.lq-rank-score {
  color: #075985;
  font-weight: 950;
}

.lq-stat-row {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
}

.lq-stat-row strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 950;
}

.lq-bars {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.lq-bar-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 850;
}

.lq-bar-row b {
  display: block;
  min-width: 3px;
  height: 8px;
  border-radius: 999px;
  background: #38bdf8;
}

.lq-play-shell {
  width: min(1160px, calc(100% - 24px));
}

.lq-play-top {
  border: 1px solid var(--lq-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 16px;
}

.lq-play-status {
  margin-top: 12px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
  color: #075985;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 900;
}

.lq-play-card {
  min-height: 420px;
  padding: 18px;
}

.lq-question-progress {
  color: var(--lq-muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.lq-question-progress strong {
  color: #075985;
}

.lq-play-card h2 {
  margin: 22px 0;
  font-size: 1.55rem;
  line-height: 1.35;
}

.lq-answer-area {
  display: grid;
  gap: 10px;
}

.lq-answer-btn {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 12px;
  text-align: left;
  font-weight: 900;
}

.lq-answer-btn:hover {
  border-color: #38bdf8;
  background: #f0f9ff;
}

.lq-answer-btn:disabled {
  opacity: 0.62;
}

.lq-answer-key {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
}

.lq-short-form {
  display: flex;
  gap: 8px;
}

.lq-short-form .lq-input {
  flex: 1;
}

.lq-feedback {
  min-height: 28px;
  margin-top: 12px;
  color: var(--lq-muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.lq-feedback.is-good {
  color: var(--lq-green);
}

.lq-feedback.is-bad {
  color: var(--lq-rose);
}

.lq-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.lq-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.lq-table th,
.lq-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 11px 9px;
  text-align: left;
  white-space: nowrap;
}

.lq-table th {
  color: #475569;
  font-weight: 950;
}

.lq-table td {
  color: #0f172a;
  font-weight: 780;
}

.lq-result-question {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}

.lq-result-question p {
  margin: 8px 0 0;
  color: #334155;
  font-weight: 800;
  line-height: 1.55;
}

.lq-result-question-head strong {
  color: #0f172a;
  font-size: 0.9rem;
}

.lq-result-question-head span {
  color: var(--lq-rose);
  font-size: 0.8rem;
  font-weight: 950;
}

.lq-wrong-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.lq-wrong-list span {
  border-radius: 8px;
  background: #fff1f2;
  color: #9f1239;
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 900;
}

.lq-present-shell {
  width: min(1600px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 106px;
}

.lq-present-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--lq-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
  padding: 18px;
}

.lq-present-top h1 {
  margin: 0;
  color: var(--lq-ink);
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1.15;
}

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

.lq-present-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.lq-present-stage,
.lq-present-rank {
  border: 1px solid var(--lq-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
  padding: 18px;
}

.lq-present-stage {
  min-height: 640px;
}

.lq-present-rank {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
}

.lq-present-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lq-present-statusbar > div {
  display: grid;
  gap: 6px;
}

.lq-present-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 950;
}

.lq-present-statusbar strong {
  color: var(--lq-muted);
  font-size: 0.9rem;
  font-weight: 950;
}

.lq-present-timer {
  display: grid;
  min-width: 116px;
  min-height: 86px;
  place-items: center;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
  color: #075985;
  font-size: 2.35rem;
  font-weight: 950;
}

.lq-present-progress {
  height: 10px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.lq-present-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  transition: width 0.25s ease;
}

.lq-present-question {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.lq-present-question p {
  margin: 0;
  color: var(--lq-brand-strong);
  font-size: 0.9rem;
  font-weight: 950;
}

.lq-present-question h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 950;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.lq-present-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.lq-present-choice {
  display: flex;
  min-width: 0;
  min-height: 78px;
  align-items: center;
  gap: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.lq-present-choice span {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.9rem;
  font-weight: 950;
}

.lq-present-choice strong {
  min-width: 0;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.lq-present-choice.is-correct {
  border-color: #86efac;
  background: #f0fdf4;
}

.lq-present-choice.is-correct span {
  background: #dcfce7;
  color: #166534;
}

.lq-present-note {
  grid-column: 1 / -1;
  border: 1px dashed #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
  color: #075985;
  padding: 16px;
  font-weight: 950;
}

.lq-present-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.lq-present-kpis article {
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  padding: 13px;
}

.lq-present-kpis small {
  color: var(--lq-muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.lq-present-kpis strong {
  display: block;
  margin-top: 5px;
  color: #075985;
  font-size: 1.55rem;
  font-weight: 950;
}

.lq-present-stats {
  margin-top: 12px;
}

.lq-present-controlbar {
  position: fixed;
  z-index: 40;
  right: 50%;
  bottom: 18px;
  display: flex;
  width: min(940px, calc(100% - 28px));
  transform: translateX(50%);
  justify-content: center;
  gap: 8px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  padding: 10px;
  backdrop-filter: blur(14px);
}

.lq-present-game {
  width: min(1760px, calc(100% - 28px));
  min-height: calc(100dvh - 24px);
  padding-bottom: 96px;
}

.lq-present-game .lq-present-top {
  margin-bottom: 12px;
  padding: 14px 16px;
}

.lq-present-game .lq-present-stage {
  display: grid;
  min-height: calc(100dvh - 206px);
  overflow: hidden;
  border-color: #bae6fd;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 44%, #ecfeff 100%);
}

.lq-present-phase {
  display: none;
  min-height: 100%;
}

.lq-present-phase.is-active {
  display: grid;
}

.lq-present-kicker {
  margin: 0 0 10px;
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 950;
}

.lq-lobby-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.lq-lobby-copy h2,
.lq-final-layout h2,
.lq-result-stage h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 5vw, 5.2rem);
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.lq-game-pin {
  width: fit-content;
  margin: 24px 0 12px;
  border: 4px solid #7dd3fc;
  border-radius: 8px;
  background: #fff;
  color: #075985;
  padding: 14px 22px;
  font-size: clamp(2.4rem, 7vw, 6.2rem);
  font-weight: 950;
  line-height: 1;
}

.lq-lobby-count {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  padding: 10px 14px;
  font-weight: 950;
}

.lq-lobby-count span {
  font-size: 1.7rem;
}

.lq-lobby-qr {
  display: grid;
  justify-items: center;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 18px;
}

.lq-lobby-qr p {
  max-width: 100%;
  margin: 10px 0 0;
  color: var(--lq-muted);
  font-size: 0.76rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.lq-game-statusbar,
.lq-game-livebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lq-game-statusbar span,
.lq-game-livebar span {
  color: #075985;
  font-size: 0.92rem;
  font-weight: 950;
}

.lq-game-statusbar strong {
  display: block;
  margin-top: 4px;
  color: var(--lq-muted);
  font-size: 0.86rem;
}

.lq-game-timer {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 5px solid #7dd3fc;
  border-radius: 999px;
  background: #fff;
  color: #075985;
  font-size: 2.8rem;
  font-weight: 950;
}

.lq-game-question {
  align-self: center;
  margin: 34px 0;
  color: #0f172a;
  font-size: clamp(2.2rem, 5.4vw, 6rem);
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
  overflow-wrap: anywhere;
}

.lq-game-choices,
.lq-preview-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lq-game-choice,
.lq-preview-choice {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 96px;
  border: 2px solid var(--tile-border, #0ea5e9);
  border-radius: 8px;
  background: var(--tile-bg, #0ea5e9);
  color: var(--tile-ink, #fff);
  padding: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.lq-game-choice span,
.lq-preview-choice span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  font-size: 1rem;
  font-weight: 950;
}

.lq-game-choice strong,
.lq-preview-choice strong {
  min-width: 0;
  color: inherit;
  font-size: 1.2rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.lq-game-choice em {
  color: inherit;
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 950;
}

.lq-game-choice.is-correct,
.lq-preview-choice.is-correct {
  outline: 5px solid rgba(22, 163, 74, 0.26);
  border-color: #16a34a;
}

.lq-choice-color-0 {
  --tile-bg: #e11d48;
  --tile-border: #be123c;
  --tile-ink: #fff;
}

.lq-choice-color-1 {
  --tile-bg: #0284c7;
  --tile-border: #0369a1;
  --tile-ink: #fff;
}

.lq-choice-color-2 {
  --tile-bg: #f59e0b;
  --tile-border: #d97706;
  --tile-ink: #111827;
}

.lq-choice-color-3 {
  --tile-bg: #059669;
  --tile-border: #047857;
  --tile-ink: #fff;
}

.lq-game-livebar {
  margin-top: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 12px 14px;
}

.lq-game-livebar strong {
  color: #0f172a;
  font-size: 1.3rem;
}

.lq-between-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  width: 100%;
}

.lq-result-stage,
.lq-game-rank,
.lq-final-layout {
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 18px;
}

.lq-result-choices {
  margin-top: 18px;
}

.lq-game-rank {
  display: grid;
  align-content: start;
  gap: 12px;
}

.lq-next-big {
  min-height: 54px;
  font-size: 1rem;
}

.lq-final-layout {
  display: grid;
  width: min(780px, 100%);
  place-self: center;
  gap: 16px;
  text-align: center;
}

.lq-final-rank .lq-rank-row:first-child {
  border-color: #f59e0b;
  background: #fffbeb;
}

.lq-type-segments,
.lq-correct-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.lq-correct-picker {
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
}

.lq-ox-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lq-type-segments button,
.lq-correct-picker button {
  min-height: 42px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #fff;
  color: #075985;
  font-size: 0.84rem;
  font-weight: 950;
}

.lq-type-segments button.is-active,
.lq-correct-picker button.is-active {
  border-color: #0284c7;
  background: #0284c7;
  color: #fff;
}

.lq-type-segments + .lq-select,
.lq-correct-picker + .lq-select {
  display: none;
}

.lq-builder-workspace {
  grid-template-columns: 280px minmax(0, 1fr) 320px;
}

.lq-builder-preview {
  position: sticky;
  top: 14px;
}

.lq-preview-screen {
  display: grid;
  gap: 12px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  padding: 14px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.lq-preview-screen p {
  margin: 0;
  color: #0369a1;
  font-size: 0.76rem;
  font-weight: 950;
}

.lq-preview-screen h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.lq-preview-choices {
  grid-template-columns: 1fr;
  gap: 8px;
}

.lq-preview-choice {
  min-height: 58px;
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 10px;
}

.lq-preview-choice span {
  width: 30px;
  height: 30px;
  font-size: 0.78rem;
}

.lq-preview-choice strong {
  font-size: 0.88rem;
}

.lq-preview-timer {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  justify-self: end;
  border-radius: 999px;
  background: #fff;
  color: #075985;
  font-size: 1.35rem;
  font-weight: 950;
}

.lq-play-game .lq-play-card {
  min-height: 520px;
}

.lq-play-game .lq-play-card h2 {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
}

.lq-play-game .lq-answer-area {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lq-play-game .lq-answer-btn {
  min-height: 118px;
  border: 2px solid var(--tile-border, #0ea5e9);
  background: var(--tile-bg, #0ea5e9);
  color: var(--tile-ink, #fff);
  font-size: 1.05rem;
}

.lq-play-game .lq-answer-key {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}

@media (max-width: 1100px) {
  .lq-quiz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lq-host-grid,
  .lq-host-columns,
  .lq-play-grid,
  .lq-builder-workspace,
  .lq-present-grid {
    grid-template-columns: 1fr;
  }

  .lq-question-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    padding-right: 0;
  }

  .lq-present-rank {
    position: static;
    max-height: none;
  }

  .lq-lobby-layout,
  .lq-between-grid {
    grid-template-columns: 1fr;
  }

  .lq-builder-preview {
    position: static;
  }
}

@media (max-width: 720px) {
  .lq-shell {
    width: min(100% - 20px, 640px);
    padding-top: 14px;
  }

  .lq-hero,
  .lq-play-top,
  .lq-present-top,
  .lq-panel-title,
  .lq-present-statusbar {
    align-items: stretch;
    flex-direction: column;
  }

  .lq-hero-actions,
  .lq-card-actions,
  .lq-control-buttons,
  .lq-present-top-actions,
  .lq-step-actions {
    justify-content: stretch;
  }

  .lq-btn {
    width: 100%;
  }

  .lq-icon-btn {
    width: 40px;
  }

  .lq-form-grid,
  .lq-choice-grid,
  .lq-quiz-grid,
  .lq-kpis,
  .lq-stepper,
  .lq-review-grid,
  .lq-present-choices,
  .lq-present-kpis {
    grid-template-columns: 1fr;
  }

  .lq-span-2 {
    grid-column: span 1;
  }

  .lq-now-question {
    grid-template-columns: 1fr;
  }

  .lq-timer {
    width: 100%;
  }

  .lq-play-card h2 {
    font-size: 1.28rem;
  }

  .lq-short-form {
    display: grid;
  }

  .lq-step-panel,
  .lq-question-panel,
  .lq-present-stage,
  .lq-present-rank {
    padding: 14px;
  }

  .lq-question-rail {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .lq-question-nav-btn {
    min-width: 220px;
  }

  .lq-empty-inline {
    display: grid;
  }

  .lq-present-shell {
    width: min(100% - 20px, 640px);
    padding: 14px 0 28px;
  }

  .lq-present-stage {
    min-height: 0;
  }

  .lq-present-timer {
    width: 100%;
    min-height: 74px;
    font-size: 2rem;
  }

  .lq-present-question h2 {
    font-size: 1.65rem;
  }

  .lq-present-controlbar {
    position: static;
    width: 100%;
    margin-top: 14px;
    transform: none;
    flex-direction: column;
  }

  .lq-present-game {
    width: min(100% - 20px, 640px);
    padding-bottom: 28px;
  }

  .lq-present-game .lq-present-stage {
    min-height: 0;
  }

  .lq-lobby-copy h2,
  .lq-final-layout h2,
  .lq-result-stage h2,
  .lq-game-question {
    font-size: 1.75rem;
    text-align: left;
  }

  .lq-game-pin {
    width: 100%;
    font-size: 2.6rem;
    text-align: center;
  }

  .lq-game-statusbar,
  .lq-game-livebar {
    align-items: stretch;
    flex-direction: column;
  }

  .lq-game-timer {
    width: 100%;
    height: 82px;
    border-radius: 8px;
    font-size: 2.2rem;
  }

  .lq-game-choices,
  .lq-play-game .lq-answer-area {
    grid-template-columns: 1fr;
  }

  .lq-game-choice {
    min-height: 78px;
  }

  .lq-play-game .lq-answer-btn {
    min-height: 88px;
  }

  .lq-type-segments,
  .lq-correct-picker {
    grid-template-columns: 1fr;
  }
}

/* Production UI refinement layer */
:root {
  --lq-brand: #7dd3fc;
  --lq-brand-strong: #0284c7;
  --lq-brand-deep: #075985;
  --lq-ink: #0f172a;
  --lq-ink-soft: #334155;
  --lq-muted: #64748b;
  --lq-line: #cfe6f5;
  --lq-bg: #f5fbff;
  --lq-surface: #ffffff;
  --lq-soft: #e0f2fe;
  --lq-soft-2: #f0f9ff;
  --lq-green: #059669;
  --lq-amber: #d97706;
  --lq-rose: #e11d48;
  --lq-violet: #7c3aed;
  --lq-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  --lq-shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.lq-page {
  background:
    linear-gradient(180deg, rgba(224, 242, 254, 0.9) 0, rgba(245, 251, 255, 0.98) 320px),
    var(--lq-bg);
}

.lq-hero,
.lq-surface,
.lq-quiz-card,
.lq-question-card,
.lq-play-card,
.lq-join-card,
.lq-kpi,
.lq-empty-state,
.lq-step-panel,
.lq-question-panel,
.lq-present-top,
.lq-present-stage,
.lq-present-rank,
.lq-result-stage,
.lq-game-rank,
.lq-final-layout {
  border-color: rgba(186, 230, 253, 0.92);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--lq-shadow);
}

.lq-hero,
.lq-present-top,
.lq-play-top {
  border-top: 3px solid var(--lq-brand);
}

.lq-eyebrow,
.lq-present-kicker {
  text-transform: uppercase;
  letter-spacing: 0;
}

.lq-muted,
.lq-quiz-card p,
.lq-card-meta,
.lq-small,
.lq-section-head p {
  line-height: 1.55;
}

.lq-btn,
.lq-icon-btn,
.lq-select-button,
.lq-type-segments button,
.lq-correct-picker button,
.lq-choice-correct {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.lq-btn,
.lq-icon-btn {
  min-height: 42px;
  border-color: #bae6fd;
  background: #ffffff;
  color: var(--lq-brand-deep);
  font-weight: 900;
}

.lq-btn:hover,
.lq-icon-btn:hover {
  transform: translateY(-1px);
}

.lq-btn:focus-visible,
.lq-icon-btn:focus-visible,
.lq-input:focus-visible,
.lq-select-button:focus-visible,
.lq-type-segments button:focus-visible,
.lq-correct-picker button:focus-visible,
.lq-choice-correct:focus-visible,
.lq-answer-btn:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.5);
  outline-offset: 2px;
}

.lq-btn:active,
.lq-icon-btn:active,
.lq-answer-btn:active {
  transform: translateY(0);
}

.lq-btn-primary {
  border-color: #0284c7;
  background: linear-gradient(180deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.22);
}

.lq-btn-primary:hover {
  border-color: #0369a1;
  background: linear-gradient(180deg, #0284c7, #0369a1);
}

.lq-btn-danger {
  border-color: #fecdd3;
  background: #fff;
  color: #be123c;
}

.lq-btn-danger:hover {
  background: #fff1f2;
}

.lq-btn:disabled,
.lq-icon-btn:disabled,
.lq-choice-correct:disabled {
  transform: none;
  box-shadow: none;
}

.lq-input {
  min-height: 44px;
  border-color: #cbd5e1;
  padding: 10px 12px;
  background: #fff;
  font-weight: 750;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.lq-input:hover {
  border-color: #93c5fd;
}

.lq-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.26);
}

textarea.lq-input {
  min-height: 116px;
  resize: vertical;
}

.lq-select-button {
  min-height: 44px;
  border-color: #cbd5e1;
}

.lq-select-option {
  min-height: 38px;
}

.lq-alert {
  box-shadow: var(--lq-shadow-sm);
}

.lq-step {
  min-height: 62px;
  background: rgba(255, 255, 255, 0.94);
}

.lq-step.is-active {
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.2), var(--lq-shadow-sm);
}

.lq-question-nav-btn,
.lq-review-row,
.lq-result-question,
.lq-rank-row,
.lq-stat-row,
.lq-status-row,
.lq-review-metric {
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.lq-question-nav-btn.is-active {
  box-shadow: inset 3px 0 0 #0ea5e9, var(--lq-shadow-sm);
}

.lq-choice-manager {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.lq-choice-list {
  display: grid;
  gap: 10px;
}

.lq-choice-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: end;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 10px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.lq-choice-correct {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #fff;
  color: var(--lq-brand-deep);
  cursor: pointer;
}

.lq-choice-correct span {
  color: inherit;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.lq-choice-correct small {
  margin-top: 2px;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 950;
}

.lq-choice-correct.is-active {
  border-color: #0284c7;
  background: #0284c7;
  color: #fff;
}

.lq-choice-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.lq-choice-field > span {
  color: var(--lq-ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.lq-choice-remove {
  align-self: end;
  color: #be123c;
}

.lq-choice-remove:disabled {
  color: #94a3b8;
}

.lq-choice-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lq-choice-count {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: var(--lq-brand-deep);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 950;
}

.lq-choice-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lq-type-segments {
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
  padding: 4px;
}

.lq-type-segments button,
.lq-correct-picker button {
  border-color: transparent;
  background: transparent;
}

.lq-type-segments button.is-active,
.lq-correct-picker button.is-active {
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.18);
}

.lq-quiz-card {
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.lq-quiz-card:hover {
  border-color: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.lq-game-choices {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.lq-play-game .lq-answer-area {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.lq-game-choice,
.lq-preview-choice,
.lq-play-game .lq-answer-btn {
  border-color: var(--tile-border, #0ea5e9);
  background: linear-gradient(135deg, var(--tile-bg, #0ea5e9), var(--tile-bg-2, var(--tile-bg, #0ea5e9)));
}

.lq-game-choice,
.lq-play-game .lq-answer-btn {
  min-height: 94px;
}

.lq-answer-btn span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lq-choice-color-0 {
  --tile-bg: #e11d48;
  --tile-bg-2: #be123c;
  --tile-border: #be123c;
  --tile-ink: #fff;
}

.lq-choice-color-1 {
  --tile-bg: #0284c7;
  --tile-bg-2: #0369a1;
  --tile-border: #0369a1;
  --tile-ink: #fff;
}

.lq-choice-color-2 {
  --tile-bg: #f59e0b;
  --tile-bg-2: #d97706;
  --tile-border: #d97706;
  --tile-ink: #111827;
}

.lq-choice-color-3 {
  --tile-bg: #059669;
  --tile-bg-2: #047857;
  --tile-border: #047857;
  --tile-ink: #fff;
}

.lq-choice-color-4 {
  --tile-bg: #7c3aed;
  --tile-bg-2: #6d28d9;
  --tile-border: #6d28d9;
  --tile-ink: #fff;
}

.lq-choice-color-5 {
  --tile-bg: #0f766e;
  --tile-bg-2: #115e59;
  --tile-border: #115e59;
  --tile-ink: #fff;
}

.lq-choice-color-6 {
  --tile-bg: #db2777;
  --tile-bg-2: #be185d;
  --tile-border: #be185d;
  --tile-ink: #fff;
}

.lq-choice-color-7 {
  --tile-bg: #475569;
  --tile-bg-2: #334155;
  --tile-border: #334155;
  --tile-ink: #fff;
}

.lq-present-controlbar {
  border-color: rgba(125, 211, 252, 0.9);
}

.lq-table {
  border-spacing: 0;
}

.lq-table th {
  background: #f8fafc;
}

.lq-table th:first-child,
.lq-table td:first-child {
  padding-left: 12px;
}

.lq-table th:last-child,
.lq-table td:last-child {
  padding-right: 12px;
}

@media (max-width: 1100px) {
  .lq-builder-workspace {
    gap: 12px;
  }

  .lq-builder-preview {
    order: 3;
  }
}

@media (max-width: 720px) {
  .lq-shell,
  .lq-present-shell,
  .lq-present-game {
    width: min(100% - 18px, 640px);
  }

  .lq-hero,
  .lq-surface,
  .lq-step-panel,
  .lq-question-panel,
  .lq-play-card,
  .lq-join-card,
  .lq-present-stage,
  .lq-result-stage,
  .lq-game-rank,
  .lq-final-layout {
    padding: 14px;
  }

  .lq-choice-row {
    grid-template-columns: 64px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 9px;
  }

  .lq-choice-correct small {
    display: none;
  }

  .lq-choice-toolbar,
  .lq-form-actions,
  .lq-step-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lq-choice-count {
    justify-content: center;
  }

  .lq-game-choices,
  .lq-play-game .lq-answer-area {
    grid-template-columns: 1fr;
  }

  .lq-game-choice,
  .lq-play-game .lq-answer-btn {
    min-height: 82px;
  }
}

/* Live Quiz SaaS home and create pages */
.lq-home-shell,
.lq-create-shell {
  width: min(1180px, calc(100% - 32px));
  padding-top: 28px;
}

.lq-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 18px;
  align-items: stretch;
  min-height: 520px;
}

.lq-home-copy,
.lq-join-panel,
.lq-create-preview-screen {
  border: 1px solid rgba(186, 230, 253, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--lq-shadow);
}

.lq-home-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(240, 249, 255, 0.98), rgba(255, 255, 255, 0.96) 58%, rgba(236, 253, 245, 0.78)),
    #fff;
}

.lq-home-copy h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.6rem, 6vw, 5.9rem);
  font-weight: 950;
  line-height: 0.96;
}

.lq-home-lead {
  max-width: 620px;
  margin: 0;
  color: #334155;
  font-size: clamp(1rem, 2vw, 1.24rem);
  font-weight: 780;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

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

.lq-join-panel {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border-top: 4px solid #7dd3fc;
  background:
    linear-gradient(180deg, rgba(240, 249, 255, 0.98), rgba(255, 255, 255, 0.98)),
    #fff;
}

.lq-join-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lq-join-panel-head > span,
.lq-home-feature > span,
.lq-create-preview-card > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
}

.lq-join-panel-head h2,
.lq-create-preview-screen h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.2;
}

.lq-join-code-form {
  display: grid;
  gap: 12px;
}

.lq-join-code-form .lq-code-input {
  min-height: 60px;
  border-color: #7dd3fc;
  background: #f8fcff;
  color: #075985;
  font-size: clamp(1.4rem, 5vw, 2rem);
}

.lq-showcase-device {
  display: grid;
  gap: 14px;
  min-height: 210px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: linear-gradient(135deg, #082f49, #075985 54%, #0f766e);
  color: #fff;
  padding: 16px;
  overflow: hidden;
}

.lq-showcase-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lq-showcase-topbar span {
  width: 58px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.lq-showcase-topbar strong {
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 950;
}

.lq-showcase-question {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 14px;
}

.lq-showcase-question small {
  color: #bae6fd;
  font-size: 0.76rem;
  font-weight: 950;
}

.lq-showcase-question strong {
  font-size: 1.28rem;
  font-weight: 950;
}

.lq-showcase-bars {
  display: grid;
  gap: 10px;
}

.lq-showcase-bars span {
  display: block;
  width: var(--bar, 50%);
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7dd3fc, #bbf7d0);
}

.lq-home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.lq-home-feature {
  display: flex;
  min-width: 0;
  gap: 12px;
  border: 1px solid rgba(186, 230, 253, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--lq-shadow-sm);
  padding: 16px;
}

.lq-home-feature strong {
  display: block;
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 950;
}

.lq-home-feature p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.52;
}

.lq-home-login-panel,
.lq-home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lq-home-login-panel h2,
.lq-home-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.25;
}

.lq-home-empty p {
  margin: 0;
}

.lq-create-hero {
  align-items: center;
}

.lq-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.lq-create-form-panel {
  margin-top: 0;
}

.lq-create-preview {
  position: sticky;
  top: 16px;
}

.lq-create-preview-screen {
  display: grid;
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(240, 249, 255, 0.98), rgba(255, 255, 255, 0.98)),
    #fff;
}

.lq-create-preview-screen h2 {
  font-size: 1.18rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.lq-create-flow {
  display: grid;
  gap: 8px;
}

.lq-create-flow span,
.lq-create-preview-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
  padding: 11px;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 900;
}

.lq-create-flow b {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 8px;
  background: #0284c7;
  color: #fff;
  font-size: 0.78rem;
}

.lq-create-preview-card strong {
  min-width: 0;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .lq-home-hero,
  .lq-create-layout {
    grid-template-columns: 1fr;
  }

  .lq-home-hero {
    min-height: 0;
  }

  .lq-create-preview {
    position: static;
  }
}

@media (max-width: 760px) {
  .lq-home-shell,
  .lq-create-shell {
    width: min(100% - 18px, 640px);
    padding-top: 14px;
  }

  .lq-home-copy,
  .lq-join-panel,
  .lq-create-preview-screen {
    padding: 16px;
  }

  .lq-home-copy h1 {
    font-size: 2.7rem;
  }

  .lq-home-actions,
  .lq-home-login-panel,
  .lq-home-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .lq-home-actions .lq-btn,
  .lq-home-login-panel .lq-btn,
  .lq-home-section-head .lq-btn {
    width: 100%;
  }

  .lq-home-feature-grid {
    grid-template-columns: 1fr;
  }

  .lq-showcase-device {
    min-height: 180px;
  }
}
