.tv {
  min-height: 100vh;
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 2rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.25rem;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,8,10,0.55), rgba(7,8,10,0.78));
  pointer-events: none;
  z-index: 0;
}

.tv > * { position: relative; z-index: 1; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-line {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1;
}

.room-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  animation: pulseGlow 3s ease-in-out infinite;
}

.room-pill .code {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.12em;
  color: var(--accent);
}

.lobby-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .lobby-grid { grid-template-columns: 1fr; }
}

.players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}

.player-card {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.player-card img {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 0.55rem;
  border: 1px solid var(--line);
}

.player-card .name {
  font-weight: 700;
  font-size: 1.05rem;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.controls label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.stage-shell {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 70vh;
}

.stage-shell .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.stage-shell h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  max-width: 16ch;
  margin: 0 auto 0.8rem;
  line-height: 0.95;
}

.meta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted);
  margin-top: 1rem;
}

.entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  width: min(1100px, 100%);
  margin: 1.5rem auto 0;
  text-align: left;
}

.entry {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.28);
  min-height: 120px;
}

.entry.winner {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(200,241,53,0.35);
}

.entry .drawing {
  display: block;
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 0.6rem;
  border-radius: 12px;
  background: #fff;
}

.ai-verdict {
  margin: 1.1rem auto 0;
  max-width: 40rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(200, 241, 53, 0.35);
  background: rgba(200, 241, 53, 0.1);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.brand-qa {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.45rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

.brand-qa span {
  color: var(--muted);
  font-weight: 500;
}


.scores {
  display: grid;
  gap: 0.75rem;
  width: min(720px, 100%);
  margin: 1.5rem auto 0;
  text-align: left;
}

.score-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.28);
}

.score-row.goldish { border-color: rgba(228,197,107,0.5); }
.score-row img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }

.timer {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--accent);
}

.tutorial-wrap {
  width: min(960px, 100%);
  margin: 1rem auto 0;
}

.tutorial-wrap video {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #000;
  max-height: 58vh;
}

.lang-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.lang-row button.on {
  outline: 2px solid var(--accent);
}
