/* VERDICT — Roman tribunal meets corporate threat-intelligence platform. */

:root {
  --ink: #0b0b0c;
  --ink-2: #121214;
  --ink-3: #1a1a1e;
  --bone: #e8e4d8;
  --bone-dim: #a8a498;
  --gold: #c9a227;
  --gold-dim: #8a7118;
  --red: #b3261e;
  --red-bright: #e04a40;
  --mono: "Consolas", "SF Mono", ui-monospace, monospace;
  --disp: "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--disp);
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 40px;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(201, 162, 39, 0.07), transparent 60%),
    var(--ink);
}

.screen { width: 100%; max-width: 720px; animation: fade 0.35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

/* ---------- chrome ---------- */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.masthead .wordmark {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--bone);
}
.masthead .wordmark span { color: var(--gold); }
.masthead .docket {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-dim);
  letter-spacing: 0.12em;
  text-align: right;
}
.statusline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 16px;
}
.statusline .live { color: var(--red-bright); }

/* ---------- shared bits ---------- */
.panel {
  background: var(--ink-2);
  border: 1px solid #26262b;
  border-top: 2px solid var(--gold-dim);
  padding: 18px;
  margin-bottom: 14px;
}
.panel h2 {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 700;
}
.matter-text { font-size: 21px; line-height: 1.35; color: var(--bone); }

button {
  font-family: var(--disp);
  font-size: 14px;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border: none;
  padding: 13px 22px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: filter 0.15s ease;
}
button:hover { filter: brightness(1.12); }
button:disabled { background: #3a3a40; color: #77777d; cursor: not-allowed; }
button.secondary { background: transparent; color: var(--bone-dim); border: 1px solid #3a3a40; }
button.danger { background: var(--red); color: var(--bone); }

label { display: block; font-size: 11px; letter-spacing: 0.2em; color: var(--bone-dim); margin: 12px 0 5px; }
select, input[type="number"], textarea {
  width: 100%;
  background: var(--ink-3);
  color: var(--bone);
  border: 1px solid #33333a;
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px;
}
textarea { min-height: 70px; resize: vertical; }

.roster { list-style: none; }
.roster li {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 4px;
  border-bottom: 1px dashed #2a2a30;
}
.roster .tag { color: var(--gold); font-size: 10px; letter-spacing: 0.15em; }
.roster .tag.host { color: var(--red-bright); }

.fineprint { font-size: 11px; color: var(--bone-dim); line-height: 1.5; margin-top: 10px; }
.error-note { font-family: var(--mono); font-size: 12px; color: var(--red-bright); margin-top: 10px; min-height: 16px; }

/* ---------- summoning (lobby, while the container spins up) ---------- */
.summoning { text-align: center; padding: 26px 18px; }
.summoning .seal { display: inline-block; }
.summoning .seal svg { animation: sealspin 10s linear infinite; }
.summon-title {
  font-size: 21px;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: var(--gold);
  margin-top: 16px;
}
.summon-quip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  margin-top: 10px;
  min-height: 16px;
}
.dots span { animation: dotblink 1.4s steps(1) infinite; }
.dots span:nth-child(2) { animation-delay: 0.25s; }
.dots span:nth-child(3) { animation-delay: 0.5s; }
@keyframes dotblink { 50% { opacity: 0; } }

/* ---------- the machine is thinking ---------- */
.composing {
  text-align: center;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--gold);
  padding: 26px 0 8px;
}
.composing .dots { margin-right: 10px; color: var(--red-bright); }

/* ---------- closed captions (the Voice of the Bench) ---------- */
.bench-caption {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(11, 11, 12, 0.95);
  border-top: 1px solid var(--gold-dim);
  padding: 9px 16px 12px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--bone);
  /* Hard-capped BELOW the reserved page padding: the strip must never be able
     to cover interactive content (it once occluded the ruling's DISMISS). */
  max-height: 110px;
  overflow-y: auto;
}
.bench-caption .bc-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--gold);
  margin-bottom: 4px;
}
.bench-caption.typing #bc-text::after {
  content: "▌";
  color: var(--gold);
  animation: dotblink 1s steps(1) infinite;
}
body.has-caption #app { padding-bottom: 150px; }

/* ---------- convene form ---------- */
.fmt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 560px) { .fmt-cards { grid-template-columns: 1fr; } }
.fmt-card {
  background: var(--ink-3);
  border: 1px solid #33333a;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.fmt-card b { display: block; font-size: 12px; letter-spacing: 0.2em; color: var(--bone); margin-bottom: 5px; }
.fmt-card span { font-size: 11px; line-height: 1.45; color: var(--bone-dim); }
.fmt-card:hover { border-color: var(--gold-dim); }
.fmt-card.sel { border-color: var(--gold); background: var(--ink-2); }
.fmt-card.sel b { color: var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.optdesc { font-size: 11px; color: var(--bone-dim); line-height: 1.45; margin-top: 5px; min-height: 16px; }
.optrows { border: 1px solid #26262b; background: var(--ink-3); }
.optrow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  margin: 0;
  border-bottom: 1px dashed #2a2a30;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: normal;
  color: var(--bone-dim);
  line-height: 1.45;
}
.optrow:last-child { border-bottom: none; }
.optrow input { accent-color: var(--gold); width: 16px; height: 16px; margin-top: 1px; flex: none; }
.optrow b { color: var(--bone); letter-spacing: 0.12em; font-size: 11px; }
.optrow.hidden, .hidden { display: none; }

/* ---------- landing (web annex) ---------- */
.hero-tag {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bone);
  margin: 6px 0 4px;
}
.hero-tag span { color: var(--gold); }
.hero-sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--red-bright);
  margin-bottom: 14px;
}
.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 4px;
}
@media (max-width: 560px) { .landing-grid { grid-template-columns: 1fr; } }
.landing-cell {
  background: var(--ink-3);
  border: 1px solid #26262b;
  padding: 12px;
}
.landing-cell h3 {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 7px;
  font-weight: 700;
}
.landing-cell p { font-size: 12px; line-height: 1.5; color: var(--bone-dim); }
a.guide-link { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); }
a.guide-link:hover { color: var(--bone); }

/* ---------- boot ---------- */
.boot { text-align: center; padding-top: 12vh; }
.boot-title { font-size: 34px; letter-spacing: 0.4em; font-weight: 700; margin-top: 18px; }
.boot-sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--bone-dim); margin-top: 10px; }
.seal svg { animation: sealspin 24s linear infinite; }
@keyframes sealspin { to { transform: rotate(360deg); } }

/* ---------- testimony ---------- */
.floor-banner {
  text-align: center;
  padding: 26px 16px;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.08), transparent);
  margin-bottom: 14px;
}
.floor-banner .who {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.floor-banner .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--red-bright);
  margin-bottom: 8px;
}
.floor-banner .speaking-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3a3a40;
  margin-left: 10px;
  vertical-align: middle;
}
.floor-banner .speaking-dot.on { background: var(--red-bright); box-shadow: 0 0 12px var(--red-bright); }

.clock {
  font-family: var(--mono);
  font-size: 56px;
  color: var(--bone);
  text-align: center;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}
.clock.low { color: var(--red-bright); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
.clock-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--bone-dim);
  margin-bottom: 12px;
}

.upnext { font-family: var(--mono); font-size: 11px; color: var(--bone-dim); text-align: center; letter-spacing: 0.1em; }

/* ---------- deliberation ---------- */
.deliberating { text-align: center; padding: 40px 0; }
.deliberating .eye {
  width: 74px; height: 74px; margin: 0 auto 20px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: relative;
  animation: scan 2.2s ease-in-out infinite;
}
.deliberating .eye::after {
  content: "";
  position: absolute; inset: 26px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--red-bright);
}
@keyframes scan { 50% { transform: scale(1.08); box-shadow: 0 0 24px rgba(201,162,39,0.35); } }

/* ---------- ruling ---------- */
.gavel-title {
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 700;
  margin: 6px 0 16px;
}
.victor {
  text-align: center;
  border: 2px solid var(--gold);
  padding: 20px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.12), transparent);
}
.victor .label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.4em; color: var(--bone-dim); }
.victor .name { font-size: 34px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.prose { font-size: 15px; line-height: 1.65; color: var(--bone); }

.scoregrid { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11px; }
.scoregrid th {
  color: var(--bone-dim);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 6px 3px;
  border-bottom: 1px solid #2a2a30;
}
.scoregrid td { text-align: center; padding: 7px 3px; border-bottom: 1px dashed #222228; }
.scoregrid td.adv { text-align: left; color: var(--bone); letter-spacing: 0.06em; }
.scoregrid .hi { color: var(--gold); font-weight: 700; }
.scoregrid .mw { color: var(--red-bright); font-weight: 700; }

.quote { border-left: 2px solid var(--gold-dim); padding: 6px 12px; margin: 8px 0; font-style: italic; color: var(--bone); }
.quote .attr { display: block; font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--bone-dim); margin-top: 4px; letter-spacing: 0.15em; }
.award { font-size: 13px; margin: 6px 0; }
.award b { color: var(--gold); letter-spacing: 0.06em; }

.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--red-bright);
  border: 1.5px solid var(--red-bright);
  padding: 4px 10px;
  transform: rotate(-3deg);
  margin-top: 14px;
}

/* ---------- gallery ballot ---------- */
.ballot { display: flex; flex-wrap: wrap; gap: 8px; }
.ballot .ballot-btn { width: auto; flex: 1 1 40%; margin-top: 0; }
.ballot .ballot-btn.sel {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* ---------- standings ---------- */
.standing-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 17px; padding: 10px 6px; border-bottom: 1px dashed #2a2a30;
}
.standing-row .crown { color: var(--gold); }
.standing-row .wins { font-family: var(--mono); font-size: 12px; color: var(--bone-dim); }
