.game-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: var(--spacing-md);
}

.video-area {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

.video-area video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-overlay .no-camera {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.video-overlay .no-camera .icon {
  opacity: 0.3;
  display: flex;
  align-items: center;
}

.video-overlay .no-camera .icon svg {
  width: 48px;
  height: 48px;
}

.topic-display {
  position: absolute;
  top: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--font-size-lg);
  white-space: nowrap;
  z-index: 2;
  color: var(--color-text);
}

.topic-category {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-right: var(--spacing-xs);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.topic-category svg {
  width: 14px;
  height: 14px;
}

.round-timer {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--font-size-lg);
  z-index: 2;
  color: var(--color-text);
}

.round-timer.warning {
  color: var(--color-danger);
  animation: pulse-timer 0.5s ease-in-out infinite;
}

@keyframes pulse-timer {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.round-info {
  position: absolute;
  bottom: var(--spacing-md);
  left: var(--spacing-md);
  display: flex;
  gap: var(--spacing-sm);
  z-index: 2;
}

.round-badge {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--color-text);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.guess-area {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.guess-input-row {
  display: flex;
  gap: var(--spacing-sm);
}

.guess-input-row .input {
  flex: 1;
}

.guess-input-row .btn {
  width: auto;
  flex-shrink: 0;
}

.guess-feed {
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: var(--spacing-sm);
  background: var(--color-bg-card);
  border-radius: var(--radius-sm);
}

.guess-item {
  font-size: var(--font-size-xs);
  padding: 4px 8px;
  border-radius: 4px;
  animation: guessIn 0.2s ease;
}

@keyframes guessIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guess-item .guess-name {
  font-weight: 700;
  margin-right: 6px;
}

.guess-item.correct {
  background: rgba(0, 184, 148, 0.15);
  color: var(--color-success);
}

.guess-item.wrong {
  color: var(--color-text-muted);
}

.performer-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
}

.performer-topic {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.performer-hint {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  text-align: center;
}

.performer-guesses {
  width: 100%;
  max-height: 150px;
  overflow-y: auto;
}

.correct-splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  z-index: 50;
  animation: splashIn 0.3s ease;
}

@keyframes splashIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.correct-splash .splash-emoji {
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.correct-splash .splash-text {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 900;
  color: var(--color-success);
}

.correct-splash .splash-detail {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-sm);
}

.scoreboard-mini {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding: var(--spacing-xs) 0;
}

.score-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-bg-card);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  white-space: nowrap;
}

.score-chip.is-self {
  border: 1px solid var(--color-primary);
}

.score-chip .chip-score {
  font-weight: 900;
  color: var(--color-warning);
}

.results-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--spacing-md);
  padding: var(--spacing-xl) 0;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.podium-rank {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--font-size-2xl);
}

.podium-rank.gold {
  color: #ffd700;
}
.podium-rank.silver {
  color: #c0c0c0;
}
.podium-rank.bronze {
  color: #cd7f32;
}

.podium-name {
  font-weight: 700;
  font-size: var(--font-size-md);
}

.podium-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--font-size-lg);
  color: var(--color-warning);
}

.podium-bar {
  width: 80px;
  background: var(--color-bg-card);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.podium-item:nth-child(1) .podium-bar {
  height: 120px;
  background: rgba(255, 215, 0, 0.15);
}
.podium-item:nth-child(2) .podium-bar {
  height: 80px;
  background: rgba(192, 192, 192, 0.15);
}
.podium-item:nth-child(3) .podium-bar {
  height: 50px;
  background: rgba(205, 127, 50, 0.15);
}
