/* Blood on the Clocktower (BOTC): the games list, the numbers, and a game (grimoire, MVP vote, highlights).
   House style from style.css: paper and ink, hairlines, square corners; sakura only for "you". */

/* ---------- the list ---------- */
.bc-tabs { margin: 0 0 8px; }
.bc-nudge {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 56px;
  margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--sakura); background: transparent; text-align: left; cursor: pointer;
}
.bc-nudge:hover { background: var(--stone-2); }
.bc-list { margin-top: 16px; border-top: 1px solid var(--line); }
.bc-row { align-items: flex-start; }
.bc-row-title { font: 300 24px/1.2 var(--font-display); margin: 2px 0 8px; }
.bc-row-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.bc-row-side { display: grid; justify-items: end; gap: 8px; text-align: right; padding-top: 2px; }

/* ---------- the numbers ---------- */
.bc-score { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 32px 0 0; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.bc-big { font-size: 84px; line-height: 1; letter-spacing: -.01em; margin-top: 6px; }
.bc-score-of { grid-column: 1 / -1; margin: 0; }
.bc-you { margin: 20px 0 0; font-size: 17px; }
.bc-players-head { flex-wrap: wrap; align-items: center; }
.bc-sort button { padding: 6px 12px; font-size: 15px; }
.bc-people .title { white-space: normal; }
.bc-stat { text-align: right; white-space: nowrap; }
.bc-stat .num { font-size: 20px; }
.bc-chars li { padding: 12px 0; }

/* ---------- a game ---------- */
.bc-head { margin: 20px 0 0; }
.bc-head h1 { margin: 8px 0 0; }
.bc-result { margin: 18px 0 0; }
.bc-status { margin: 16px 0 0; display: flex; align-items: center; gap: 10px; }
.bc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0 0; max-width: 520px; }
.bc-actions .btn:only-child { grid-column: 1 / -1; }
.bc-note { margin: 12px 0 0; }
.bc-foot { display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 56px 0 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.bc-foot .link { min-height: 44px; }

/* the grimoire: who, then their character and team */
.bc-grim li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: center; gap: 12px 20px; }
.bc-grim-who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.bc-grim-who .main { flex: 1; min-width: 0; }
.bc-grim-edit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.bc-grim-edit select { min-height: 44px; }
.bc-team { padding: 3px; }
.bc-team button { padding: 8px 12px; min-height: 38px; }

/* the MVP vote and its result */
.bc-voted { white-space: nowrap; font-size: 15px; }
.bc-mvps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bc-mvp-who { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.bc-mvp-name { font: 300 24px/1.15 var(--font-display); }

/* the highlights reel */
.bc-reel { list-style: none; margin: 0; padding: 0; }
.bc-reel > li { padding: 18px 0 4px; border-bottom: 1px solid var(--line); }
.bc-phase { font: 300 22px/1.2 var(--font-display); margin-bottom: 8px; }
.bc-moment { border-left: 1px solid var(--ink); padding: 0 0 0 14px; margin: 0 0 14px; }
.bc-moment p { margin: 0 0 4px; }
.bc-tagged { font-size: 15px; }
.bc-tag { font-size: 15px; }
.bc-tag-pick { margin-top: 6px; }
.bc-tag-pick .chip { min-height: 44px; }
.bc-chip-sub { opacity: .7; }

/* the sheets */
.bc-pick { max-height: 300px; overflow-y: auto; }
.bc-pick li { padding: 8px 0; }
.bc-guest-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.bc-guest-add .btn { min-height: 48px; }
#bc-guests { margin-top: 8px; }
#bc-guests:empty { display: none; }
.bc-winner { margin-top: 4px; }
.bc-winner .btn { grid-column: auto !important; min-height: 56px; font-size: 18px; }

/* ---------- players: the table ---------- */
.bc-tabs button { padding: 8px 12px; font-size: 15px; }
.bc-table-wrap { margin-top: 16px; border-top: 1px solid var(--line); }
.bc-table { font-size: 16px; }
.bc-table th, .bc-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-weight: 400; }
.bc-table thead th { padding: 0; vertical-align: bottom; }
.bc-th { width: 100%; min-height: 44px; padding: 8px 12px; border: 0; background: none; color: var(--muted); font-size: 14px; text-align: right; cursor: pointer; white-space: nowrap; }
.bc-th.on { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bc-table td.on { color: var(--ink); font-weight: 500; }
/* The name stays put while the numbers scroll sideways. */
.bc-table .bc-who { position: sticky; left: 0; z-index: 1; background: var(--paper); text-align: left; padding-left: 0; }
.bc-table thead .bc-who { color: var(--muted); font-size: 14px; padding: 8px 12px 8px 0; }
.bc-who-in { display: inline-flex; align-items: center; gap: 10px; }
.bc-table tbody tr.tap { cursor: pointer; }
.bc-table tbody tr.tap:hover, .bc-table tbody tr.tap:hover .bc-who { background: var(--stone-2); }

/* ---------- scripts ---------- */
.bc-scripts-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 16px 0 0; }
.bc-scripts-head .meta { margin: 0; flex: 1 1 240px; }
.bc-actions a.btn { text-decoration: none; }

/* ---------- ratings ---------- */
.bc-script-sort { margin: 16px 0 0; }
.bc-rating { font-size: 18px; }
.bc-rate-head { display: flex; align-items: baseline; gap: 14px; margin: 20px 0 0; }
.bc-spread { list-style: none; margin: 12px 0 0; padding: 0; max-width: 360px; }
.bc-spread li { display: grid; grid-template-columns: 16px 1fr 24px; align-items: center; gap: 10px; padding: 3px 0; }
.bc-spread li > :last-child { text-align: right; }
.bc-bar { height: 8px; background: var(--stone-2); }
.bc-bar i { display: block; height: 100%; background: var(--ink); }
.bc-rate-form { margin: 28px 0 0; max-width: 520px; }
.bc-rate-form .btn { justify-self: start; }
.bc-stars { margin-top: 8px; }
.bc-stars button { min-width: 48px; min-height: 44px; font-size: 18px; font-family: var(--font-text); font-variant-numeric: tabular-nums; }
.bc-ratings { margin-top: 24px; border-top: 1px solid var(--line); }
.bc-rate-note { white-space: normal; }
.bc-rate-game { margin: 32px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bc-rate-game p { margin: 0 0 4px; }

/* ---------- a player's profile ---------- */
.bc-me { margin-top: 8px; min-height: 44px; }
[data-player].tap { cursor: pointer; }
.bc-prof-head { display: flex; align-items: center; gap: 20px; margin: 24px 0 0; }
.bc-prof-head .you { margin: 6px 0 0; }
.bc-prof-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; margin: 32px 0 0; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.bc-reel > li.tap:hover { background: var(--stone-2); }

@media (max-width: 760px) {
  .bc-row-title { font-size: 22px; }
  .bc-big { font-size: 72px; }
  .bc-prof-nums .bc-big { font-size: 56px; }
  .bc-actions { max-width: none; }
  .bc-grim li { grid-template-columns: minmax(0, 1fr); }
  .bc-mvps { grid-template-columns: 1fr; }
}
