

.game-screen--game .player-display {
  width:100%;
}

/* Make the generic game screen a positioning context */
.game-screen--game {
  position: relative;
}

/* Keep timer + Next Game inside the game area instead of the whole window */
.game-screen--game .timer-display,
.game-screen--game .next-button {
  position: fixed;   /* override global fixed */
  bottom: 2%;
  z-index: 20;
}

.game-screen--game .timer-display {
  left: 12%;
}

.game-screen--game .next-button {
  right: 2%;
}


.game-screen--game .category-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Category buttons for Charades / One-Word */
/* .game-screen--textprompt .category-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
} */

.game-screen--textprompt .category-buttons .button {
  margin: 0; /* avoid double margin from global .button */
}

/* Sock Slide: keep Prev / Next flanking the player name */
.game-screen--game .pnbutton-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  margin: 1.5rem auto 0;
  width: 90%;
}


/* ────────────────────────────────────────────── */
/* World War Thumb (native SPA version)          */
/* ────────────────────────────────────────────── */

.game-screen--wwt {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2rem;
}

/* Shuffle / Reset / Show Rules row */
.game-screen--wwt .wwt-top-controls {
  width: 100%;
  max-width: 750px;
  margin: 1.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;   /* <-- buttons start from the left */
  gap: 0.75rem;
}

.game-screen--wwt .wwt-top-controls-button {
  position: initial; /*We want to ignore the absolute which is inherited by .pnbutton*/
}

/* Wrapper around the bracket + champion */
.game-screen--wwt .wwt-layout {
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto 0;
}

/* Bracket row: rounds on the left, champion text on the right */
.game-screen--wwt .wwt-bracket {
  display: flex;                 /* <-- was grid; now flex row */
  align-items: flex-start;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0 1rem 1rem;
  box-sizing: border-box;
}

/* Each round column */
.game-screen--wwt .wwt-round {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 230px;
  min-height: 140px;
}

/* Round label ("Round 1", "Final", etc.) */
.game-screen--wwt .wwt-roundTitle {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-align: center;
  color: #FFEFCB;
}

/* Match card inside a round */
.game-screen--wwt .wwt-match {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.5rem 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* Match header ("Match 1-1") */
.game-screen--wwt .wwt-matchHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFEFCB;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

/* Player slots / buttons */
.game-screen--wwt .wwt-slot,
.game-screen--wwt .btnBracket {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  border: none;
  font-weight: 800;
  font-size: 0.9rem;
  background-color: #FFEFCB;
  color: #992E1F;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    opacity 0.15s ease;
}

.game-screen--wwt .wwt-slot:disabled,
.game-screen--wwt .btnBracket:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

/* Hover feedback */
.game-screen--wwt .wwt-slot:not(:disabled):hover,
.game-screen--wwt .btnBracket:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* winner / loser states */
.game-screen--wwt .wwt-slot.winner {
  background-color: #FFE36B;
  box-shadow: 0 0 0 2px #FFD043, 0 3px 7px rgba(0, 0, 0, 0.35);
}

.game-screen--wwt .wwt-slot.loser {
  opacity: 0.45;
}

/* bye slot */
.game-screen--wwt .wwt-slot--bye {
  background: transparent;
  border: 2px dashed rgba(255, 239, 203, 0.5);
  color: rgba(255, 239, 203, 0.7);
  box-shadow: none;
}

/* Champion label – sits inline to the right of the bracket */
.game-screen--wwt .wwt-champion {
  align-self: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFEFCB;
  white-space: nowrap;
}

/* Footer: timer + Next Game */
.game-screen--wwt .wwt-footer {
  margin-top: auto;
  width: 100%;
  max-width: 1100px;
  padding: 0 1.5rem 0.5rem;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Let timer + next button use your global absolute positioning inside game area */
.game-screen--wwt .wwt-footer .timer-display {
  position: static;  /* we already position .game-screen--game .timer-display absolutely */
}

.game-screen--wwt #wwtNextGameBtn {
  margin-left: auto;
}

@media (max-width: 900px) {
  .game-screen--wwt .wwt-bracket {
    flex-direction: column;
    align-items: center;
  }

  .game-screen--wwt .wwt-champion {
    margin-top: 0.75rem;
  }

  .game-screen--wwt .wwt-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .game-screen--wwt #wwtNextGameBtn {
    align-self: flex-end;
  }
}

/* Placeholder text before the first Build Bracket */
.game-screen--wwt .wwt-placeholder {
  color: #FFEFCB;
  opacity: 0.85;
  text-align: center;
  font-weight: 600;
  margin: 1.5rem auto;
}

/* Rules block spacing + highlight for Show Rules */
.game-screen--wwt .wwt-rules {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.game-screen--wwt .wwt-rules--highlight {
  box-shadow: 0 0 0 3px #FFE36B;
  border-radius: 18px;
}