* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #fdf8f2;
  color: #2c1e16;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  border: 14px solid #e67e22;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.tv-layout {
  display: flex;
  height: 100%;
  width: 100%;
}

.main-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 24px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 36px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #d35400;
}

.card-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 44px;
  gap: 28px;
  cursor: pointer;
}

.question-text {
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  font-weight: 900;
  line-height: 1.18;
  text-transform: uppercase;
  max-width: 95%;
  color: #1e140e;
}

.food-img {
  max-height: 46vh;
  max-width: 65vw;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
}

/* Right-hand TV Sidebar */
.sidebar {
  width: 340px;
  flex-shrink: 0;
  background: #f6ebdf;
  border-left: 4px solid #e67e22;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #d35400;
  border-bottom: 2px solid #e0cbb8;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.tv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tv-item {
  background: #ffffff;
  border: 1px solid #e6d2c0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1.15rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tv-amp {
  color: #e67e22;
  margin: 0 4px;
}

.tv-score-badge {
  background: #e67e22;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  min-width: 34px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Dark Mode */
body.dark-mode {
  background-color: #1a120e;
  color: #fdf8f2;
  border-color: #d35400;
}

body.dark-mode .top-bar {
  color: #f39c12;
}

body.dark-mode .question-text {
  color: #fdf8f2;
}

body.dark-mode .food-img {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
}

body.dark-mode .sidebar {
  background: #241914;
  border-left-color: #d35400;
}

body.dark-mode .sidebar-title {
  color: #f39c12;
  border-bottom-color: #3d2c24;
}

body.dark-mode .tv-item {
  background: #2e2019;
  border-color: #46332a;
  color: #fdf8f2;
}

/* Winner Celebration Banner */
.winner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  overflow: hidden;
  animation: fadeIn 0.35s ease;
}

.winner-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(145deg, #fdf8f2, #f7e4d0);
  border: 10px solid #e67e22;
  border-radius: 28px;
  padding: 48px 64px;
  text-align: center;
  max-width: 82vw;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  animation: popScale 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.winner-trophy {
  font-size: 6rem;
  line-height: 1;
  margin-bottom: 16px;
}

.winner-subtitle {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #d35400;
  margin-bottom: 12px;
}

.winner-names {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  color: #1e140e;
  line-height: 1.12;
  margin-bottom: 18px;
}

.winner-points {
  display: inline-block;
  background: #e67e22;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  padding: 10px 32px;
  border-radius: 50px;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.confetti-piece {
  position: absolute;
  top: -10%;
  font-size: 2.2rem;
  animation: fallDown linear infinite;
}

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

@keyframes popScale {
  from { transform: scale(0.75); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fallDown {
  0% { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(115vh) rotate(360deg); }
}

/* TV Intro Splash Overlay */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #3b1d5e 0%, #160926 100%);
  color: #ffffff;
  text-align: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.splash-overlay.splash-hidden {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-card {
  max-width: 720px;
  padding: 3rem 3.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 3px solid #f5b041;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(245, 176, 65, 0.25);
}

.splash-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #160926;
  background: #f5b041;
  border-radius: 999px;
}

.splash-emoji {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.splash-title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff8e7;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.splash-edition {
  margin-top: 0.5rem;
  margin-bottom: 2.25rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #d7bde2;
}

.splash-btn {
  padding: 1.1rem 2.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #160926;
  background: linear-gradient(180deg, #ffd166 0%, #f59e0b 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.splash-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.65);
}

.splash-btn:active {
  transform: translateY(1px);
}
