/* Trivia Night (phone answer pad + big screen), the Deal proof panel, the club leaderboard. Uses styles.css tokens. */

/* ---------------------------------------------------------------- Trivia: phone */
.tv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .75rem; font-size: .9rem; color: var(--muted); margin-bottom: .4rem; }
.tv-count { font-weight: 700; color: #fff; }
.tv-timer { display: flex; align-items: center; gap: .6rem; margin: .2rem 0 .75rem; }
.tv-bar { flex: 1; height: .6rem; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.tv-bar-fill { height: 100%; width: 100%; background: var(--gold); border-radius: 999px; transition: width .25s linear; }
.tv-bar-fill.low { background: var(--red); }
.tv-left { min-width: 5.5rem; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tv-q { font-size: 1.3rem; font-weight: 700; line-height: 1.35; margin: .25rem 0 1rem; overflow-wrap: anywhere; }
.tv-choices { display: grid; gap: .6rem; margin-bottom: .75rem; }
.tv-choice {
  display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 56px; padding: .65rem .9rem; text-align: left;
  background: rgba(255, 255, 255, .1); color: #fff; border: 2px solid var(--line); border-radius: 14px; font: inherit; font-weight: 600;
  cursor: pointer; overflow-wrap: anywhere;
}
.tv-choice:disabled { cursor: default; opacity: 1; }
.tv-choice:not(:disabled):hover { border-color: var(--gold); }
.tv-letter { flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(0, 0, 0, .3); font-weight: 800; }
.tv-letter:empty { display: none; }
.tv-text { flex: 1; }
.tv-n { flex: none; min-width: 1.8rem; text-align: center; border-radius: 999px; background: rgba(0, 0, 0, .3); padding: 0 .4rem; }
.tv-choice.mine { border-color: var(--gold); background: rgba(227, 179, 65, .22); }
.tv-choice.right { border-color: var(--good); background: rgba(126, 226, 164, .28); }
.tv-choice.wrong { border-color: var(--bad); background: rgba(192, 38, 45, .35); }
.tv-scores { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .3rem; }
.tv-row { display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; border-radius: 10px; background: rgba(0, 0, 0, .2); }
.tv-row.you { outline: 2px solid var(--gold); }
.tv-name { flex: 1; font-weight: 600; overflow-wrap: anywhere; }
.tv-status { color: var(--muted); }
.tv-pts { min-width: 4.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.tv-src { margin-top: .5rem; }
.tv-catlist { list-style: none; padding: 0; margin: .4rem 0; display: grid; gap: .15rem; }
.tv-catlist li { display: flex; align-items: center; gap: .5rem; min-height: 40px; }
.tv-catlist input { width: 1.3rem; height: 1.3rem; flex: none; }
.tv-cats summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* ---------------------------------------------------------------- Trivia: big screen (#/screen/...) */
body.screen-mode main { max-width: none; padding: 1.5rem 3vw 2rem; }
body.screen-mode .bar { display: none; }
.tv-screen { display: grid; gap: 1rem; }
.tv-screen .tv-head { font-size: clamp(1rem, 1.6vw, 1.6rem); }
.tv-screen .tv-timer { font-size: clamp(1.2rem, 2vw, 2rem); }
.tv-screen .tv-bar { height: 1rem; }
.tv-screen .tv-q { font-size: clamp(1.6rem, 3.4vw, 3.4rem); }
.tv-choices.big { grid-template-columns: 1fr; gap: 1rem; }
.tv-choices.big .tv-choice { min-height: 5rem; font-size: clamp(1.2rem, 2.2vw, 2.2rem); }
.tv-choices.big .tv-letter { width: 3rem; height: 3rem; }
.tv-screen .tv-scores { font-size: clamp(1rem, 1.5vw, 1.6rem); }
.tv-answered { font-size: clamp(1rem, 1.6vw, 1.6rem); font-weight: 700; }
.tv-join { font-size: clamp(1rem, 1.5vw, 1.5rem); color: var(--muted); }
.tv-url { color: var(--gold); font-weight: 700; }
@media (min-width: 1100px) {
  .tv-screen { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); align-items: start; column-gap: 3vw; }
  .tv-screen > .tv-head, .tv-screen > .tv-timer, .tv-screen > .tv-q, .tv-screen > h1, .tv-screen > h2 { grid-column: 1 / -1; }
  .tv-screen > .tv-join, .tv-screen > .tv-src { grid-column: 1 / -1; }
  .tv-choices.big { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- Deal proof panel */
.fair-hash { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; overflow-wrap: anywhere; word-break: break-all; }
.fair .rules li { margin-bottom: .5rem; }
.fair-ok > span[aria-hidden] { color: var(--good); font-weight: 800; }
.fair-bad > span[aria-hidden] { color: var(--bad); font-weight: 800; }
.fair-bad { color: var(--bad); }
.fair-deck { display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding-left: 1.4rem; margin: .25rem 0 .5rem; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.fair-deck li { min-width: 2.6rem; }
.fair-more summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; }

/* ---------------------------------------------------------------- club leaderboard */
.board-tabs .btn.tab { flex: 1 1 0; min-height: 44px; }
.board-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: .5rem; }
.board-table { min-width: 19rem; }
.board-table th, .board-table td { white-space: nowrap; }
.board-table td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; }
.season-settings { border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .75rem; }
.tv-ready { font-size: 2rem; font-weight: 800; text-align: center; color: var(--gold); margin: 1.5rem 0; }
.tv-screen .tv-ready { font-size: clamp(2.5rem, 6vw, 6rem); grid-column: 1 / -1; }
