.live-lobby {
  max-width: 920px;
  gap: 24px;
}

.live-lobby .live-header {
  border-bottom: none;
  padding-bottom: 0;
}

.live-lobby .subtitle {
  max-width: 36rem;
  line-height: 1.55;
}

/* Guide */
.live-guide {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border: 2px solid #bae6fd;
  border-radius: 20px;
  padding: 20px 22px 22px;
}

.live-guide-head {
  margin-bottom: 16px;
}

.live-guide-head h2 {
  font-family: 'Jua', sans-serif;
  font-size: 1.25rem;
  color: #0369a1;
  margin-bottom: 4px;
}

.live-guide-lead {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.45;
}

.live-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
}

.live-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}

.live-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0284c7;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

.live-step strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.live-step p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* Active session banner */
.live-active-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #fffbeb;
  border: 2px solid #fcd34d;
  border-radius: 16px;
}

.live-active-banner.hidden {
  display: none;
}

.live-active-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.live-active-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #92400e;
}

.live-active-code {
  font-family: 'Jua', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.14em;
  color: #0f172a;
}

/* Main cards */
.live-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.live-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.live-card-session {
  border-color: #0284c7;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.live-card-play {
  background: #f8fafc;
}

.live-card-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
}

.live-card-badge-muted {
  background: #e2e8f0;
  color: #475569;
}

.live-card-title {
  font-family: 'Jua', sans-serif;
  font-size: 1.35rem;
  color: #0f172a;
  line-height: 1.25;
}

.live-card-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.live-card-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: #0369a1;
}

.live-card-points li {
  padding-left: 1.1rem;
  position: relative;
}

.live-card-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 800;
  color: #0284c7;
}

.live-card-points-muted {
  color: #64748b;
}

.live-card-points-muted li::before {
  color: #94a3b8;
}

.btn-play-outline {
  background: #fff;
  color: #0284c7;
  border: 2px solid #0284c7;
  box-shadow: none;
}

.btn-play-outline:hover {
  background: #f0f9ff;
  color: #0369a1;
  transform: scale(1.02);
}

.live-status {
  min-height: 1.2em;
  font-size: 0.88rem;
  color: #b45309;
  margin: 0;
}

/* Comparison */
.live-compare {
  background: #f1f5f9;
  border-radius: 16px;
  padding: 16px 18px;
}

.live-compare h3 {
  font-size: 0.9rem;
  font-weight: 800;
  color: #475569;
  margin-bottom: 12px;
}

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

.live-compare-col {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
}

.live-compare-col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0284c7;
  margin-bottom: 8px;
}

.live-compare-col:last-child h4 {
  color: #64748b;
}

.live-compare-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.55;
}

.live-compare-col li {
  padding-left: 0.85rem;
  position: relative;
}

.live-compare-col li::before {
  content: '·';
  position: absolute;
  left: 0;
  font-weight: 800;
}

/* Host / shared (unchanged semantics) */
.live-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.live-join-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-join-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: #0369a1;
}

.live-join-form input,
.live-link-wrap input {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-code-label {
  margin: 0;
  font-weight: 700;
  color: #0369a1;
}

.live-code {
  font-family: 'Jua', sans-serif;
  font-size: 2.6rem;
  letter-spacing: 0.18em;
  margin: 4px 0 16px;
  color: #0f172a;
}

.live-host-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 8px;
}

.live-qr-box {
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  text-align: center;
}

.live-qr-box img {
  display: block;
  width: 220px;
  height: 220px;
  background: #fff;
}

.live-qr-box figcaption {
  margin-top: 8px;
  max-width: 220px;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.live-link-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.live-link-wrap input {
  flex: 1;
  min-width: 12rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
}

.live-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}

.live-actions-row .btn-play-game {
  width: auto;
  flex: 0 1 auto;
  display: inline-block;
}

.live-actions-row .admin-btn-exit {
  margin-left: 0;
}

.live-back {
  margin-top: 24px;
  color: #64748b;
}

.admin-btn.hidden {
  display: none;
}

.qr-popout-note {
  margin: 10px 0 0;
  max-width: 220px;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

.live-qr-box .admin-btn {
  margin-top: 8px;
  width: 100%;
}

.live-qr-box .admin-btn + .admin-btn {
  margin-top: 6px;
}

.qr-popout-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  font-family: 'Pretendard', sans-serif;
}

.qr-popout-card {
  margin: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
}

.qr-popout-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0369a1;
}

.qr-popout-code {
  font-family: 'Jua', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.18em;
  margin: 4px 0 12px;
  color: #0f172a;
}

.qr-popout-img {
  display: block;
  width: 260px;
  height: 260px;
  margin: 0 auto;
  background: #fff;
}

.qr-popout-hint {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

.qr-popout-error {
  color: #fff;
  padding: 24px;
}

@media (max-width: 760px) {
  .live-steps {
    grid-template-columns: 1fr;
  }

  .live-main-grid {
    grid-template-columns: 1fr;
  }

  .live-compare-grid {
    grid-template-columns: 1fr;
  }

  .live-host-dashboard {
    grid-template-columns: 1fr;
  }

  .live-host-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .live-host-toolbar .btn-play-game,
  .live-host-toolbar .admin-btn {
    width: 100%;
  }

  .live-host-ranks-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Host dashboard (수업 세션 진행) ── */

.live-host-page {
  align-items: flex-start;
  padding: 16px;
}

.live-host-wrap {
  max-width: 980px;
  gap: 20px;
  padding: 28px;
}

.live-host-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
  border-bottom: 2px solid #e2e8f0;
}

.live-host-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-host-logo {
  font-size: 2.4rem;
  padding: 8px 12px;
}

.live-host-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2px;
}

.live-host-title {
  font-family: 'Jua', sans-serif;
  font-size: 2rem;
  color: #0284c7;
  letter-spacing: 0.02em;
}

.live-host-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
  font-size: 0.85rem;
  font-weight: 800;
}

.live-host-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: live-host-pulse 1.6s ease-in-out infinite;
}

@keyframes live-host-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.live-host-toast {
  min-height: 0;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.88rem;
  font-weight: 600;
}

.live-host-toast:empty {
  display: none;
}

.live-host-dashboard {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 18px;
  align-items: stretch;
}

.live-host-panel {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-host-invite {
  border-color: #bae6fd;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  justify-content: space-between;
}

.live-host-qr {
  text-align: center;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.live-host-panel-head h2 {
  font-family: 'Jua', sans-serif;
  font-size: 1.15rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.live-host-panel-head p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.live-host-code-block {
  padding: 10px 14px;
  background: #fff;
  border: 2px dashed #bae6fd;
  border-radius: 14px;
  text-align: center;
}

.live-host-code {
  margin: 4px 0 0;
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: 0.14em;
}

.live-host-link-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.live-host-field-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0369a1;
}

.live-host-link-row {
  display: flex;
  gap: 8px;
}

.live-host-link-row input {
  flex: 1;
  min-width: 0;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.82rem;
  color: #334155;
  background: #fff;
}

.live-host-hints {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: #64748b;
}

.live-host-hints li {
  padding-left: 1rem;
  position: relative;
}

.live-host-hints li::before {
  content: '·';
  position: absolute;
  left: 0;
  font-weight: 800;
  color: #94a3b8;
}

.live-host-qr-figure {
  margin: 0 auto;
  padding: 14px;
  background: #fff;
  border: 2px solid #bae6fd;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.live-host-qr-figure img {
  display: block;
  width: 280px;
  height: 280px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.live-host-qr-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  width: 100%;
  max-width: 320px;
}

.live-host-qr-actions .admin-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.live-host-qr-note {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .live-host-dashboard {
    grid-template-columns: 1fr;
  }
  .live-host-qr-figure img {
    width: 240px;
    height: 240px;
  }
  .live-host-qr-actions {
    flex-direction: column;
  }
}

.live-host-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #f1f5f9;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.live-host-btn-play {
  width: auto;
  flex: 1 1 10rem;
  padding: 12px 20px;
  margin: 0;
}

.live-host-btn-save {
  flex: 0 0 auto;
}

.live-host-btn-end {
  margin-left: auto;
  flex: 0 0 auto;
}

.live-host-ranks {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 22px;
}

.live-host-ranks-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.live-host-ranks-head h2 {
  font-family: 'Jua', sans-serif;
  font-size: 1.2rem;
  color: #0369a1;
}

.live-host-ranks-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}

.live-host-player-count {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 6px 12px;
  border-radius: 999px;
}

.live-host-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.live-host-table {
  margin: 0;
}

.live-host-table th {
  background: #f8fafc;
}

.live-host-empty-row td {
  text-align: center;
  color: #94a3b8;
  padding: 28px 16px !important;
  font-size: 0.9rem;
}

.live-host-rank-top td {
  background: #f0f9ff;
}

.live-host-rank-1 td:first-child {
  font-weight: 800;
}

.live-host-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.live-host-footer a {
  color: #64748b;
  font-weight: 700;
  text-decoration: none;
}

.live-host-footer a:hover {
  color: #0284c7;
}
