/* ============================================================
   FAMILY FEUD — GAME BOARD LOOK (FINAL CLEAN VERSION)
   ============================================================ */

/* Use Tinos everywhere */
.ff-board,
.ff-question,
.ff-answer-front,
.ff-answer-back {
  font-family: 'Tinos', serif !important;
  font-weight: 700;
}

/* Optional: add a smidge of spacing for the TV look */
.ff-question {
  letter-spacing: 0.05em;
}

.ff-answer-back-text {
  letter-spacing: 0.04em;
}



/* ====== FAMILY FEUD HEADER LOGO — FULL WIDTH, CENTERED ====== */

/* Black bar behind logo */
.ff-logo-container {
  width: 100%;
  background: #000;
  text-align: center;
  padding: 0;                /* no extra spacing */
  margin: 0 auto;
}

/* Center the logo and size it to match the board visually */
.ff-logo-img {
  width: 900px;              /* adjust until perfect */
  max-width: 95%;            /* shrink on small screens */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* === 16:9 WRAPPER ========================================== */

.ff-16x9-wrapper {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;         /* ensures logo touches board */
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;       /* black letterbox area */
  overflow: hidden;
  padding-top: 0;         /* no gap between logo + board */
}

.ff-16x9-wrapper .ff-board {
  position: absolute;
  inset: 0;
  transform-origin: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}


/* Responsive scaling */
@media (max-width: 900px) {
  .ff-16x9-wrapper .ff-board {
    transform: scale(0.9);
  }
}

@media (max-width: 700px) {
  .ff-16x9-wrapper .ff-board {
    transform: scale(0.8);
  }
}


/* === MAIN GAME BOARD ======================================= */

.ff-board {
  max-width: 960px;
  margin: 2rem auto;
  padding: 2rem 1.5rem 2.5rem;
  border-radius: 24px;

  background:
    radial-gradient(circle at top, #ffe082 0, transparent 55%),
    radial-gradient(circle at bottom, #ffab40 0, transparent 60%),
    linear-gradient(135deg, #122046, #1c3b82);

  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  color: #fff;
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  overflow: hidden;
}

.ff-board::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  border: 3px solid rgba(255,255,255,0.35);
  pointer-events: none;
}



/* ===== QUESTION TEXT (NEW STYLE) ===== */

.ff-question {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  margin: 0 auto 1.75rem;
  max-width: 90%;

  /* NEW DESIGN */
  background: #003399;                  /* Royal blue */
  color: #ffd700;                       /* White text */
  border-radius: 20px;                  /* Rounded corners */
  border: 3px solid #ff9800;            /* Orange outline */
  
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.35),
    0 0 10px rgba(255, 152, 0, 0.6);    /* glow + depth */
}

/* === ANSWER GRID / FLIP CARDS ============================= */

.ff-answers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0 auto 2rem;
  max-width: 820px;
  width: 100%;
}

/* wrapper for 3D flip */
.ff-answer-card {
  perspective: 1200px;
  width: 100%;
  display: block;
}

/* flipping inner */
.ff-answer-inner {
  position: relative;
  width: 100%;
  height: 78px;
  transform-style: preserve-3d;
  transition: transform 0.48s ease;
}

.ff-answer-inner {
  height: 90px;   /* was 78px — adjust if needed */
}

.ff-answer-inner.is-revealed {
  transform: rotateX(180deg);
}

.ff-answer-face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0.4rem 0.9rem 0.4rem 0.8rem;

  backface-visibility: hidden;
  box-shadow: 0 5px 16px rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.6);
}

/* FRONT SIDE (slot before reveal) */
.ff-answer-front {
  background: linear-gradient(135deg, #0057FF, #0038A8);
  color: #ffffff;     /* white text */
  font-weight: 700;
  font-size: 1.8rem;
  justify-content: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid #ffcc00;  /* TV-style golden border */
}

/* BACK SIDE (revealed) */
.ff-answer-back {
  background: linear-gradient(135deg, #0057FF, #0038A8);
  transform: rotateX(180deg);
  font-weight: 700;
  font-size: 1.6rem;
  color: #ffffff; /* ensure answer text is white */
  border: 2px solid #ffcc00; 
}

/* Force answer text to ALL CAPS */
.ff-answer-back-text {
  flex: 1;
  text-align: left;
  text-transform: uppercase;
}
.ff-answer-back-points {
  margin-left: 0.75rem;
  font-weight: 900;
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 0 0 6px rgba(0,0,0,0.5);
}




/* === SCORES / STRIKES / BUZZER ============================ */

.ff-scores,
.ff-strikes,
.ff-buzz-info {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.ff-scores div,
.ff-strikes div,
.ff-buzz-info {
  background: rgba(0,0,0,0.35);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
}

.ff-scores .ff-team-name-a,
.ff-scores .ff-team-name-b {
  font-weight: 700;
  margin-right: 0.25rem;
}


/* === RESPONSIVE ========================================== */

@media (max-width: 768px) {
  .ff-board {
    padding: 1.5rem 1rem 2rem;
  }

  .ff-question {
    font-size: 1.1rem;
    padding-inline: 0.9rem;
  }

  .ff-answers {
    grid-template-columns: 1fr;
  }

  .ff-answer-inner {
    height: 70px;
  }
}

/* === FINAL OVERRIDE FOR LOGO === */
.ff-logo-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  background: #000;
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.ff-logo-container .ff-logo-img {
  display: block;
  margin: 0 auto;

  /* Set the real size you want: */
  width: 800px !important;      /* ← tune this value */
  max-width: 100% !important;   /* fills container on smaller screens */
  height: auto !important;
}

.ff-logo-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  background: #000;
  text-align: center;
  padding: 1rem 0 0.5rem;
}

/* FINAL, STRONG RULE FOR LOGO SIZE */
.ff-logo-img {
  display: block !important;
  margin: 0 auto !important;
  width: 1000px !important;     /* ← bump this up/down until it looks right */
  max-width: 95% !important;    /* shrink on small screens */
  height: auto !important;
}

/* Hide ALL text inside the unrevealed tile */
.ff-answer-front {
  color: transparent !important;
}

/* ============================================================
   MOBILE BUZZER — FULL SCREEN RED BUTTON
   ============================================================ */

.ff-buzzer-wrap {
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: #b00000; /* deep red */
  color: #fff;
  text-align: center;
  overflow: hidden;

  font-family: system-ui, sans-serif;
}

.ff-buzz-btn {
  width: 90vw;
  height: 90vw;
  max-width: 450px;
  max-height: 450px;

  background: radial-gradient(circle at 30% 30%, #ff4444, #b00000);
  border: none;
  border-radius: 999px;

  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;

  color: #fff;
  box-shadow: 
    0 0 30px rgba(255,0,0,0.6),
    inset 0 0 25px rgba(0,0,0,0.5);

  transition: transform 0.08s ease-in-out;
}

.ff-buzz-btn:active {
  transform: scale(0.94);
  box-shadow:
    0 0 15px rgba(255,0,0,0.6),
    inset 0 0 35px rgba(0,0,0,0.7);
}

.ff-buzz-status {
  margin-top: 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  opacity: 0.9;
}

/* ===== BUZZER WINNER PILL ===== */
.ff-buzz-info {
  background: #b00000 !important;   /* deep red */
  color: #ffffff !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 20px !important;
  font-size: 1.15rem !important;
  font-weight: 700;
  border: 2px solid #ffcccc !important;
  text-transform: none;
}

/* Move score row above the question */
.ff-scores {
  margin-bottom: 1.25rem;  /* space between scores and question */
  font-size: 1.4rem;
  font-weight: 700;
}

.ff-scores div {
  background: rgba(0,0,0,0.4);
  padding: 0.5rem 1rem;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  font-size: 1.5rem;
}

/* ============================================================
   UPGRADED TEAM SCORE BAR (Family Feud TV Style)
   ============================================================ */
/* ============================================================
   TEAM SCORE BAR — unified royal blue (no separate borders)
   ============================================================ */
.ff-scores {
  display: flex;
  justify-content: center;
  gap: 4rem;

  margin: 0 auto 1.4rem;
  padding: 0.6rem 2rem;

  background: #003399;       /* royal blue */
  border-radius: 22px;
  max-width: 75%;

  box-shadow:
    0 6px 14px rgba(0,0,0,0.35),
    0 0 10px rgba(255, 204, 0, 0.6);

  font-family: 'Tinos', serif !important;
  font-weight: 700;
  color: #ffd700;            /* gold team names */
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.5rem;
}

/* Remove bubbles around each team */
.ff-scores div {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;

  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Team names (gold) */
.ff-team-name-a,
.ff-team-name-b {
  color: #ffd700;
  font-weight: 700;
}

/* Score values (white, glowing) */
.ff-score-a,
.ff-score-b {
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 0 6px rgba(0,0,0,0.6);
}
/* === BIG STRIKE X OVERLAY ================================== */

.ff-strike-overlay {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Base strike box (hidden by default) */
.ff-strike-x {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 30%, #ff4444, #b00000);
  box-shadow:
    0 0 20px rgba(0,0,0,0.6),
    inset 0 0 18px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

/* The actual X character */
.ff-strike-x::before {
  content: "X";
  font-family: 'Tinos', serif;
  font-weight: 700;
  font-size: 4rem;
  color: #ffeb3b;
  text-shadow:
    0 0 10px rgba(0,0,0,0.8),
    0 0 16px rgba(0,0,0,0.9);
}

/* Turn on a strike */
.ff-strike-x.on {
  opacity: 1;
  transform: scale(1);
}

/* Outer wrapper should not paint solid black */
.ff-16x9-wrapper {
  background: transparent;   /* was #000 */
}

/* Logo bar: if you want dots behind logo too */
.ff-logo-container {
  background: transparent;   /* was #000 */
}

/* The board itself keeps its nice gradient — leave .ff-board as-is */