﻿.game-loading {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 10, 15, 0.88);
  backdrop-filter: blur(5px);
}

.loading-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(390px, 100%);
  padding: 16px;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.loading-panel strong {
  display: block;
  line-height: 1.3;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 18px;
  max-width: 1440px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
}

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

.status-strip span,
.audio-button {
  min-width: 118px;
  padding: 10px 12px;
}

.status-strip span {
  border: 1px solid rgba(246, 200, 95, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(246, 200, 95, 0.16), rgba(9, 10, 15, 0.34)),
    rgba(21, 24, 33, 0.82);
  color: var(--gf-warm);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

#onlineRoundStatus,
#onlineAudienciaStatus {
  min-width: 150px;
  font-size: 16px;
  letter-spacing: 0;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
  align-items: start;
  min-height: 0;
}

.host-panel {
  padding: 14px;
}

.host-portrait {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 248px;
  padding: 8px 6px 0;
}

.host-portrait::before {
  content: "";
  position: absolute;
  inset: auto 10% 7% 10%;
  height: 28%;
  border-radius: 50%;
  background: rgba(72, 214, 210, 0.12);
  filter: blur(18px);
}

.host-image {
  position: relative;
  width: min(100%, 224px);
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.44));
}

.host-copy {
  margin-top: 14px;
}

.host-copy p:last-child {
  margin: 0;
}

.main-game {
  min-width: 0;
}

.frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.frame-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.frame-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame-source {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
}

.question-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  min-height: 54px;
  padding: 8px 10px;
}

#promptText {
  margin: 0;
  min-width: 0;
  font-size: 24px;
  font-weight: 800;
}

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

.answer-button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  width: 100%;
}

.answer-letter {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 8px;
}

.answer-text {
  min-width: 0;
  font-size: 18px;
  line-height: 1.2;
}

.round-action-slot {
  min-height: 48px;
  margin-top: 12px;
}

.round-action-slot > button {
  width: 100%;
  min-height: 48px;
}

.ghost-button {
  min-height: 40px;
  padding: 0 14px;
}

.side-rail {
  display: grid;
  gap: 12px;
  align-self: start;
  max-height: calc(100vh - 126px);
  padding: 12px;
  overflow: hidden;
}

.lifeline-panel,
.intel-panel,
.ladder-panel {
  padding: 12px;
}

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

.lifeline-copy {
  margin: 4px 0 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.tool-button {
  min-height: 44px;
  min-width: 0;
  padding-inline: 8px;
  white-space: normal;
}

.report-button {
  grid-column: 1 / -1;
}

.intel-panel:empty {
  display: none;
}

.intel-content > p:last-child {
  margin-bottom: 0;
}

.intel-content {
  overflow: hidden;
}

.student-row {
  display: grid;
  grid-template-columns: 52px 1fr minmax(92px, auto);
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.student-row p,
.intel-content p {
  margin: 6px 0 0;
}

.meter {
  width: 100%;
  height: 8px;
  overflow: hidden;
}

.score-ladder {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.score-ladder li {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
}

