/* ===== COLOR TOKENS ===== */
:root {
  --chalk: #F2E9DB;
  --ink: #191348;
  --jet: #282828;
  --tang: #F16022;
  --disabled: #D9D9D9;
}

/* Reset */
* {
  box-sizing: border-box;
}

/* Page base */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--tang);
  color: var(--jet);
}

/* Header */
.header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
}

.title {
  background: var(--ink);
  color: var(--chalk);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 800;
}

/* Layout */
.game {
  max-width: 420px;
  margin: 0 auto;
  padding: 16px;
}

/* Scores */
.score-cards {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.score-card {
  flex: 1;
  background: var(--chalk);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.team-name {
  font-weight: 700;
}

.score {
  font-size: 28px;
  font-weight: 800;
}

/* Game card */
.game-card {
  background: var(--chalk);
  border-radius: 18px;
  padding: 18px;
}

/* Inputs */
label {
  display: block;
  margin-top: 14px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
}

/* Button row */
.row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.row input {
  flex: 1;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn.primary {
  background: var(--ink);
  color: var(--chalk);
}

.btn.secondary {
  background: var(--disabled);
}

.btn.full {
  width: 100%;
  margin-top: 12px;
}

/* Category display */
.category {
  background: var(--ink);
  color: var(--chalk);
  border-radius: 14px;
  padding: 16px;
  font-weight: 800;
  text-align: center;
  margin-top: 12px;
  display: none;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.overlay.hidden {
  display: none;
}

/* Modals */
.modal.hidden {
  display: none;
}

.modal-card {
  background: var(--chalk);
  padding: 24px;
  border-radius: 20px;
  width: 320px;
  text-align: center;
}

/* How to play button */
.how-to-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--chalk);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

/* Secondary controls below game card */
.game-secondary-controls {
  display: flex;
  justify-content: center;   /* CENTER horizontally */
  align-items: center;
  gap: 14px;                 /* space between ? and New Game */
  margin-top: 16px;
}


/* Question mark button */
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--chalk);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

/* New Game button (secondary importance) */
.secondary-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: var(--chalk);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

/* Confetti container */
#confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* don't block clicks */
  overflow: hidden;
  z-index: 9999;
}

/* Individual confetti piece */
.confetti {
  position: absolute;
  width: 8px;
  height: 12px;
  opacity: 0.9;
  animation: fall 1.2s linear forwards;
}

/* Falling animation */
@keyframes fall {
  0% {
    transform: translateY(-10px) rotate(0deg);
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
  }
}

