/* Guessing-game styles, layered on top of style.css. */

/* Explicit class, not the [hidden] attribute — attribute display loses to
   any stylesheet display rule. */
.hidden { display: none !important; }

.nav-link { font-size: 12px; color: #888; text-decoration: none; margin-left: auto; }
.nav-link:hover { color: #1a1a1a; }

#hud { font-size: 13px; color: #444; font-variant-numeric: tabular-nums; }

.blurb { max-width: 560px; color: #444; font-size: 14px; line-height: 1.5; }
.statusline { font-size: 12px; color: #666; min-height: 16px; margin-top: 8px; }

#player-handle, #guess-input {
  width: 260px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

#free-guess { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

#guessbar {
  position: sticky;
  top: 58px; /* below the page header */
  z-index: 9;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* --- multiple-choice lineup --- */
#choices { display: flex; gap: 8px; flex-wrap: wrap; }

.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.choice:hover:not(:disabled) { border-color: #1a1a1a; }
.choice:disabled { cursor: default; }
.choice.wrong { opacity: 0.45; text-decoration: line-through; }

.choice img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e5e5;
  object-fit: cover;
}
.choice .name { font-weight: 600; }
.choice .handle { color: #888; margin-left: 4px; font-weight: 400; }

/* --- reveal banner --- */
#verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  flex-wrap: wrap;
}
#verdict img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e5e5;
  object-fit: cover;
}
#verdict .points { font-weight: 800; }
#verdict a { color: inherit; }

/* --- stacked round fields: every round keeps its sheet; only the active
   one is visible. visibility (not display) so hidden fields keep real
   layout widths for the scatter grid. --- */
#stage { position: relative; min-height: 200px; }
.round-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  visibility: hidden;
}
.round-field.active { visibility: visible; }

/* --- results --- */
#results { max-width: 560px; }
#final-score { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
#share-text {
  background: #f4f4f4;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
