:root {
  --bg: #0a0c12;
  --bg-mid: #161a26;
  --panel: #1c2130;
  --panel-light: #262c40;
  --red: #e0263d;
  --red-dark: #a8172c;
  --gold: #f2b705;
  --gold-dim: #c99400;
  --steel: #8b95ad;
  --white: #ffffff;
  --ink: #0a0c12;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  font-family: "Oswald", "Helvetica Neue", Arial, sans-serif;
  color: var(--white);
  overflow: hidden;
}

#fullscreen-btn {
  position: fixed;
  top: 1.5vh;
  right: 1.5vh;
  z-index: 20;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 1vh;
  padding: 1.2vh 2vw;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.8vh;
  cursor: pointer;
  box-shadow: 0 0.5vh 2vh rgba(0, 0, 0, 0.4);
}

#fullscreen-btn.hidden { display: none; }

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2vh 2vw;
}

.spotlight-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(224, 38, 61, 0.22), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(242, 183, 5, 0.08), transparent 70%);
}

.title {
  text-align: center;
  margin-bottom: 1.2vh;
  z-index: 1;
}

.title-text {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: 8vh;
  letter-spacing: 0.4vw;
  color: var(--white);
  text-shadow: 0 0.4vh 0 rgba(0, 0, 0, 0.5), 0 0 3vh rgba(242, 183, 5, 0.25);
}

.title-text .accent {
  color: var(--gold);
}

.board-frame {
  flex: 1;
  width: 96vw;
  background: linear-gradient(165deg, var(--panel-light), var(--panel));
  border: 0.15vh solid rgba(242, 183, 5, 0.25);
  border-radius: 1.2vh;
  padding: 2.2vh;
  display: flex;
  flex-direction: column;
  gap: 1.4vh;
  box-shadow: 0 1vh 5vh rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.question {
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: 2.6vh;
  font-weight: 600;
  letter-spacing: 0.05vw;
  min-height: 4vh;
  color: var(--gold);
  text-transform: uppercase;
}

.answers-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1vh 1.6vw;
}

.answer-slot {
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.15));
  border-radius: 0.8vh;
  border: 0.15vh solid rgba(139, 149, 173, 0.3);
  padding: 0 1vw 0 0;
  font-size: 2.3vh;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s;
}

.answer-slot.revealed {
  background: linear-gradient(90deg, var(--red-dark), var(--panel-light) 85%);
  border-color: var(--gold);
}

.answer-slot .num {
  background: var(--bg);
  color: var(--gold);
  width: 3.6vh;
  height: 3.6vh;
  border-radius: 0.6vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.3vw;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.1vh;
  flex-shrink: 0;
  border: 0.12vh solid rgba(242, 183, 5, 0.4);
}

.answer-slot .text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.03vw;
  opacity: 0;
  transition: opacity 0.2s;
  margin-right: 1vw;
}

.answer-slot .points {
  background: var(--gold);
  color: var(--ink);
  padding: 0.5vh 1.1vw;
  border-radius: 0.5vh;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2vh;
  opacity: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.answer-slot.revealed .text,
.answer-slot.revealed .points {
  opacity: 1;
}

.answer-slot.just-revealed {
  animation: correct-pop 0.5s ease-out;
}

@keyframes correct-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.06); box-shadow: 0 0 3vh rgba(242, 183, 5, 0.6); }
  60% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.correct-check {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: var(--gold);
  background: rgba(10, 12, 18, 0.55);
  width: 5vh;
  height: 5vh;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3vh;
  font-weight: 900;
  pointer-events: none;
  animation: correct-check-pop 0.7s ease-out forwards;
}

@keyframes correct-check-pop {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-20deg); opacity: 1; }
  40% { transform: translate(-50%, -50%) scale(1.3) rotate(8deg); opacity: 1; }
  70% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0; }
}

.scoreboard {
  width: 96vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.6vw;
  margin-top: 1.6vh;
  z-index: 1;
}

.team-card {
  background: linear-gradient(165deg, var(--panel-light), var(--panel));
  border-radius: 1vh;
  padding: 1.3vh 1.5vw;
  text-align: center;
  border: 0.15vh solid rgba(139, 149, 173, 0.3);
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
}

.team-card.buzzed {
  box-shadow: 0 0 3vh 0.4vh rgba(224, 38, 61, 0.6);
  border-color: var(--red);
  transform: scale(1.02);
}

.team-photo {
  width: 7vh;
  height: 7vh;
  border-radius: 50%;
  margin: 0 auto 1vh;
  background: var(--bg) center/cover no-repeat;
  border: 0.2vh solid rgba(139, 149, 173, 0.3);
  display: none;
}

.team-photo.has-photo {
  display: block;
  border-color: var(--gold);
}

.team-name {
  font-family: "Oswald", sans-serif;
  font-size: 1.8vh;
  font-weight: 600;
  letter-spacing: 0.1vw;
  text-transform: uppercase;
  color: var(--steel);
}

.team-score {
  font-family: "Bebas Neue", sans-serif;
  font-size: 6vh;
  letter-spacing: 0.1vw;
  color: var(--white);
}

.strikes {
  min-height: 3vh;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5vh;
  color: var(--red);
  letter-spacing: 0.4vw;
}

.round-info {
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: 1.7vh;
  font-weight: 600;
  letter-spacing: 0.05vw;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(242, 183, 5, 0.1);
  border: 0.12vh solid rgba(242, 183, 5, 0.3);
  border-radius: 0.6vh;
  padding: 0.7vh 1.3vw;
}

.strike-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  transition: transform 0.1s ease-out;
  z-index: 5;
}

.strike-overlay.show {
  transform: translate(-50%, -50%) scale(1);
}

.strike-fingers {
  display: flex;
  gap: 2vw;
}

.strike-finger {
  font-size: 18vh;
  filter: drop-shadow(0 0 3vh rgba(224, 38, 61, 0.7));
}

.strike-overlay.show .strike-finger {
  animation: wag 0.6s ease-in-out 3;
}

@keyframes wag {
  0%, 100% { transform: rotate(-18deg); }
  50% { transform: rotate(18deg); }
}

.buzz-flash {
  position: absolute;
  inset: 0;
  background: var(--red);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
  z-index: 4;
}

.buzz-flash.show {
  opacity: 0.25;
  transition: opacity 0s;
}

.fast-money-frame {
  display: flex;
  flex-direction: column;
  gap: 1.8vh;
}

.fm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.2vh;
  letter-spacing: 0.1vw;
}

.fm-mic-indicator {
  font-family: "Oswald", sans-serif;
  font-size: 1.8vh;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.1vw;
}

.fm-mic-indicator.active {
  color: var(--red);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.fm-answers {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9vh;
}

.fm-slot {
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.15));
  border-radius: 0.8vh;
  border: 0.15vh solid rgba(139, 149, 173, 0.3);
  padding: 1vh 1.4vw;
  font-size: 2.4vh;
  font-weight: 600;
}

.fm-slot.armed {
  border-color: var(--red);
  box-shadow: 0 0 2vh rgba(224, 38, 61, 0.5);
}

.fm-slot .text { flex: 1; text-transform: uppercase; }

.fm-slot .points {
  background: var(--gold);
  color: var(--ink);
  padding: 0.5vh 1.1vw;
  border-radius: 0.5vh;
  font-family: "Bebas Neue", sans-serif;
}

.fm-total {
  text-align: right;
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.2vh;
  letter-spacing: 0.1vw;
  color: var(--gold);
}

.winner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
}

.winner-overlay.show { display: flex; }

.winner-text {
  font-family: "Bebas Neue", sans-serif;
  font-size: 9vh;
  letter-spacing: 0.2vw;
  color: var(--gold);
  text-shadow: 0 0 4vh rgba(242, 183, 5, 0.6);
  animation: pulse 1.2s infinite;
}

.round-over-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -150%);
  width: 60vw;
  max-width: 700px;
  background: linear-gradient(165deg, var(--panel-light), var(--panel));
  border: 0.2vh solid var(--gold);
  border-radius: 2vh;
  padding: 3vh 4vw;
  text-align: center;
  box-shadow: 0 2vh 6vh rgba(0, 0, 0, 0.7);
  z-index: 8;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  pointer-events: none;
}

.round-over-card.show {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.roc-label {
  font-family: "Oswald", sans-serif;
  font-size: 1.8vh;
  font-weight: 600;
  letter-spacing: 0.15vw;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 1vh;
}

.roc-winner {
  font-family: "Bebas Neue", sans-serif;
  font-size: 5.5vh;
  letter-spacing: 0.1vw;
  color: var(--gold);
  text-shadow: 0 0 2vh rgba(242, 183, 5, 0.5);
  margin-bottom: 1.5vh;
}

.roc-scores {
  font-family: "Oswald", sans-serif;
  font-size: 2.2vh;
  color: var(--white);
  display: flex;
  justify-content: center;
  gap: 3vw;
}
