/* The Review Board - shared styles. LGN house style, no logo or crest. */
:root {
  --navy: #1E2A5E;
  --gold: #C8961E;
  --ground: #F5F6F9;
  --paper: #FFFFFF;
  --ink: #151B33;
  --muted: #4A5270;
  --line: #DDE1EA;
  --good: #2F7D5B;
  --bad: #A63D3D;
  --good-bg: #E8F3EE;
  --bad-bg: #F6E9E9;
  --gold-bg: #FBF4E4;
  --navy-bg: #E9ECF4;
  --head: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", Menlo, Consolas, monospace;
  --r: 12px;
  --shadow: 0 1px 2px rgba(21,27,51,.05), 0 4px 14px rgba(21,27,51,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0 0 .35em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
a { color: var(--navy); }
button { font: inherit; }

.eyebrow {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .45em;
}
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.gold-rule { height: 3px; width: 56px; background: var(--gold); border-radius: 2px; margin: 10px 0 16px; }

.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px;
}
.card.tight { padding: 14px 16px; }

.pill {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--navy-bg); color: var(--navy); white-space: nowrap;
}
.pill.gold { background: var(--gold-bg); color: #7A5A0F; border-color: #EAD6A6; }
.pill.good { background: var(--good-bg); color: var(--good); border-color: #BFDDCE; }
.pill.bad { background: var(--bad-bg); color: var(--bad); border-color: #E3C4C4; }
.pill.navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill.ghost { background: transparent; color: var(--muted); }

.btn {
  display: block; width: 100%; min-height: 52px; padding: 13px 16px;
  border-radius: 10px; border: 1px solid var(--navy); background: var(--navy); color: #fff;
  font-weight: 600; font-size: 1.02rem; text-align: center; cursor: pointer;
  transition: background .15s, transform .08s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.secondary { background: var(--paper); color: var(--navy); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.danger { background: var(--paper); border-color: var(--bad); color: var(--bad); }
.btn.danger.armed { background: var(--bad); color: #fff; }
.btn.small { min-height: 40px; padding: 8px 12px; font-size: .92rem; width: auto; display: inline-block; }
.btn + .btn { margin-top: 10px; }

.input {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1.05rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
}
.input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.input.code { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; text-align: center; font-size: 1.2rem; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack > * + * { margin-top: 10px; }

/* Option buttons (player) */
.opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  min-height: 56px; padding: 13px 14px; margin-top: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
  font-size: 1.02rem; line-height: 1.35; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.opt:active { background: var(--navy-bg); }
.opt .k { flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--navy-bg); color: var(--navy); font-family: var(--mono); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.opt.chosen { border-color: var(--navy); background: var(--navy-bg); }
.opt.right { border-color: var(--good); background: var(--good-bg); }
.opt.right .k { background: var(--good); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.wrong .k { background: var(--bad); color: #fff; }
.opt:disabled { cursor: default; opacity: 1; }

/* Countdown */
.timer { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; }
.timer .track { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.timer .fill { height: 100%; background: var(--gold); width: 100%; transition: width 1s linear; }
.timer .n { font-family: var(--mono); font-size: .9rem; color: var(--muted); min-width: 3.2em; text-align: right; }

/* Status track */
.track5 { display: flex; gap: 4px; margin-top: 8px; }
.track5 span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.track5 span.on { background: var(--gold); }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list li .name { font-weight: 600; }
.list li .sub { font-size: .85rem; color: var(--muted); }

/* Bars (screen and presenter) */
.bars { margin-top: 8px; }
.bar { display: grid; grid-template-columns: 1fr; gap: 4px; margin-bottom: 10px; }
.bar .lbl { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.bar .lbl .t { font-weight: 600; }
.bar .lbl .v { font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.bar .tr { height: 14px; background: var(--navy-bg); border-radius: 7px; overflow: hidden; }
.bar .fl { height: 100%; background: var(--navy); border-radius: 7px; width: 0; transition: width .5s ease; }
.bar.right .fl { background: var(--good); }

.notice { padding: 12px 14px; border-radius: 10px; background: var(--gold-bg); border: 1px solid #EAD6A6; color: #5E4408; font-size: .95rem; }
.notice.good { background: var(--good-bg); border-color: #BFDDCE; color: var(--good); }
.notice.bad { background: var(--bad-bg); border-color: #E3C4C4; color: var(--bad); }
.notice.navy { background: var(--navy-bg); border-color: #C9D0E4; color: var(--navy); }

.fade { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hidden { display: none !important; }
.small { font-size: .9rem; }
.center { text-align: center; }
