/* Additions for 2-player. The original game.css is unchanged above this file. */

.menu-button.hit-full { width: 28%; height: 19%; top: 44%; left: 61%; }
.menu-button.hit-daily { width: 28%; height: 19%; top: 17%; left: 61%; }
.menu-button.hit-stats { width: 13%; height: 19%; top: 79%; left: 5%; }
.menu-button.hit-settings { width: 14%; height: 19%; top: 79%; left: 25%; }
.menu-button.hit-about { width: 14%; height: 19%; top: 79%; left: 85%; }

.menu-buttons { z-index: 5; }
.mode-switch { z-index: 6; }

.mode-switch {
  position: absolute;
  left: 61%;
  top: 64.2%;
  width: 28%;
  height: 13.6%;
  display: flex;
  gap: 3.5%;
}
.mode-switch button {
  flex: 1;
  min-height: 44px;
  color: #fff;
  background:
    linear-gradient(#05070c, #05070c) padding-box,
    linear-gradient(155deg, #e7f7ff 0%, #6ec0ff 16%, #1d74e4 40%, #0a3d86 58%, #9ad6ff 78%, #1a5fbe 100%) border-box;
  border: 5px solid transparent;
  border-radius: 16px;
  box-shadow: 0 1px 0 #02101f, inset 0 0 0 1px #000;
  font-family: "Arial Narrow", "Arial", "Segoe UI", sans-serif;
  font-size: clamp(13px, 1.45vw, 22px);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-shadow: 0 2px 0 #000, 0 0 4px #000;
  padding: 4px 6px;
}
.mode-switch button[aria-pressed="true"] {
  color: #fff;
  background:
    linear-gradient(#05070c, #05070c) padding-box,
    linear-gradient(155deg, #fff 0%, #b9e4ff 14%, #4aa6ff 38%, #1664d4 64%, #e7f7ff 86%, #2f86ee 100%) border-box;
  box-shadow: 0 0 14px #4aa6ffcc, inset 0 0 10px #4aa6ff33;
}

.splash-screen {
  background: #000;
  color: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.splash-text { color: #4a90e2; font-size: 22px; font-weight: 700; }
.splash-error { max-width: 520px; padding: 24px; }
.splash-error h1 { color: #f44336; font-size: 28px; margin-bottom: 12px; }
.splash-error button {
  margin-top: 16px;
  color: #fff;
  background: #4a90e2;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 700;
}

.turn-screen {
  z-index: 500;
  background: #000;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.turn-card {
  text-align: center;
  background: #000;
  border: 3px solid #4a90e2;
  border-radius: 16px;
  padding: clamp(28px, 5vw, 56px) clamp(32px, 6vw, 72px);
  min-width: min(640px, 86vw);
  box-shadow: 0 0 40px #4a90e24d;
}
.turn-card.p2 { border-color: orange; box-shadow: 0 0 40px #ffa50066; }
.turn-kicker {
  color: #ffffffb3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 8px;
}
.turn-name {
  color: #4a90e2;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  line-height: 1;
  margin: 0;
}
.turn-card.p2 .turn-name { color: orange; }
.turn-hint { color: #fff; font-size: clamp(18px, 2vw, 24px); margin-top: 18px; }

.tally-container.two { max-width: min(1080px, 98%); }
.two-tally {
  padding: 8px;
  overflow: hidden;
}
.tally-container.two {
  max-height: 100%;
  overflow: hidden;
  padding: 10px 14px 12px;
  gap: 6px;
}
.tally-container.two .tally-title {
  font-size: clamp(20px, 3.6vh, 30px);
  margin: 0;
  line-height: 1.1;
}
.tally-container.two .two-col { gap: 8px; }
.tally-container.two .who-label {
  font-size: 14px;
  margin: 0 0 2px;
}
.tally-container.two .score-breakdown {
  margin: 0;
  padding: 6px 8px;
}
.tally-container.two .breakdown-row {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}
.tally-container.two .score-highlight { font-size: 16px !important; }
.tally-container.two .score-details {
  margin-top: 4px;
  padding-top: 4px;
}
.tally-container.two .detail-item {
  margin: 0 0 2px;
  padding: 2px 4px;
  font-size: 12px;
  line-height: 1.25;
}
.tally-container.two .cumulative-section {
  margin: 0;
  padding: 6px 8px;
}
.tally-container.two .cumulative-label { margin: 0 0 1px; }
.tally-container.two .cumulative-score { font-size: 20px; }
.tally-container.two .lead-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}
.tally-container.two .speed-round-badge {
  margin: 0;
  padding: 4px 8px;
}
.tally-container.two .tally-buttons { margin: 0; }
.tally-container.two .btn {
  padding: 8px 16px;
  font-size: 14px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.who-label {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #4a90e2;
}
.score-breakdown.p2 { border-left-color: orange; }
.score-breakdown.p2 .who-label { color: orange; }
.lead-line {
  text-align: center;
  color: #fff;
  font-size: 16px;
  margin: 4px 0 12px;
}

.winner-line {
  color: #9bff5c;
  text-shadow: 0 0 18px #86ff6b8c;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  margin: 4px 0 8px;
  line-height: 1.1;
}
.totals-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.total-card {
  background: #ffffff0d;
  border: 2px solid #4a90e2;
  border-radius: 14px;
  padding: 14px 12px;
}
.total-card.p2 { border-color: orange; }
.total-card .name { color: #4a90e2; font-weight: 700; font-size: 16px; }
.total-card.p2 .name { color: orange; }
.total-card .pts { color: #9bff5c; font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.total-card .meta { color: #ffffffb3; font-size: 14px; margin-top: 4px; }

.results-screen {
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 16px 12px 24px;
}
.results-screen .completion-container {
  margin: 0 auto;
  padding: 22px 22px 20px;
}
.round-list {
  text-align: left;
  max-height: 22vh;
  overflow: auto;
  margin: 0 0 16px;
  background: #ffffff0b;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  padding: 8px 12px;
}
.round-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #ffffff1a;
  font-size: 14px;
  color: #fff;
}
.round-row.head { color: #ffffffb3; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.round-row span:nth-child(2) { color: #4a90e2; }
.round-row.head span:nth-child(2),
.round-row.head span:nth-child(3) { color: #ffffffb3; }
.round-row span:nth-child(3) { color: orange; }

@media (max-width: 720px) {
  .two-col, .totals-row { grid-template-columns: 1fr; }
}

/* The empty fact slot plus a downward nudge pushed C and D off a 16:9 frame. */
.fact-space { display: none; }
.question-section {
  margin-top: 6px;
  margin-bottom: 6px;
  padding: 8px 24px 4px;
}
.question-box { height: clamp(84px, 15vh, 128px); }
.answer-grid {
  flex: 1 1 auto;
  min-height: 0;
  align-content: center;
  width: min(86%, 1100px);
  margin: 0 auto 8px;
  padding: 0 8px 8px;
  transform: none;
  gap: 14px;
}
.answer-button {
  min-height: clamp(72px, 12vh, 112px);
}
