/* Bollawax backstage — the pboll.com look, small: a booted 1982 screen, PBOLL bitmap face
   for display, monospace for reading, hard 4px edges, five colours. The colours are the
   person's palette (docs/PALETTES.md "Backstage"): /static/palettes.css (generated by
   tools/build_palettes.py) overrides these OGPB defaults for <html data-palette="...">. */
@font-face { font-family: "PBOLL"; src: url("/static/pboll.woff") format("woff"); font-display: block; }
:root {
  --u: 4px; --frame: #7c70da; --bg: #20175e; --panel: #2c2180; --line: #5b4fc4;
  --text: #ecebff; --soft: #b9b3f2; --ink: #0d0a3a; --well: #0d0a3a;
  --primary: #ffe45c; --primary-fg: #ffe45c; --primary-on: #0d0a3a; --secondary-fg: #7deaf2;
  --error: #ff6b9a; --error-fg: #ff6b9a; --ok: #6fe89a; --ok-fg: #6fe89a;
}
* { box-sizing: border-box; }
html { background: var(--frame); }
body { margin: calc(var(--u) * 6); min-height: calc(100vh - 48px); background: var(--bg); color: var(--text);
  font: 16px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; padding: calc(var(--u) * 6); }
a { color: var(--secondary-fg); }
h1, h2, h3, .mark, .btn, legend, th { font-family: "PBOLL", ui-monospace, monospace; font-weight: 400; letter-spacing: 1px; }
h1 { font-size: 30px; margin: 0 0 16px; } h2 { font-size: 20px; margin: 0 0 12px; } h3 { font-size: 20px; margin: 0 0 8px; }
.soft, small { color: var(--soft); }
.bad { color: var(--error-fg); }
.top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mark { color: var(--primary-fg); text-decoration: none; font-size: 20px; }
.mark span { display: inline-block; margin-left: 12px; padding: 0 8px; background: var(--primary); color: var(--primary-on); }
.mark.big { font-size: 40px; text-align: center; line-height: 1.6; }
.bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.who { color: var(--soft); }
.inline { display: inline; margin: 0; }
main section { background: var(--panel); border: 4px solid var(--line); padding: 20px; margin-bottom: 20px; max-width: 1100px; }
.landing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  min-height: 60vh; background: transparent !important; border: 0 !important; margin: 0 auto !important; text-align: center; }
.btn { display: inline-block; font-size: 20px; padding: 8px 16px; background: var(--bg); color: var(--text);
  border: 4px solid var(--text); cursor: pointer; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); }
.btn:hover { background: var(--line); } .btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn.primary { background: var(--primary); color: var(--primary-on); border-color: var(--ink); }
.btn.small { font-size: 10px; padding: 4px 8px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label { display: block; margin-bottom: 12px; }
input, textarea { display: block; width: 100%; max-width: 640px; margin-top: 4px; padding: 8px; font: inherit;
  background: var(--bg); color: var(--text); border: 4px solid var(--line); border-radius: 0; }
input[readonly] { color: var(--soft); }
input[type=radio], input[type=checkbox] { display: inline-block; width: auto; margin: 4px 12px 0 0; accent-color: var(--primary); }
input[type=file] { border-style: dashed; }
.radio, .check { display: flex; align-items: flex-start; }
fieldset { border: 4px solid var(--line); margin: 0 0 16px; padding: 12px 16px; max-width: 760px; }
legend { padding: 0 8px; color: var(--primary-fg); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.row input { width: auto; flex: 1 1 220px; margin: 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 2px solid var(--line); vertical-align: top; }
th { font-size: 10px; color: var(--primary-fg); }
tr.off td { color: var(--soft); text-decoration: line-through; }
td form { margin: 0; }
.progress { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
progress { width: 100%; max-width: 640px; height: 24px; appearance: none; border: 4px solid var(--text); background: var(--bg); }
progress::-webkit-progress-bar { background: var(--bg); }
progress::-webkit-progress-value { background: var(--ok); }
progress::-moz-progress-bar { background: var(--ok); }
.verdict { display: flex; gap: 20px; align-items: flex-start; border: 4px solid var(--line); padding: 16px; }
.verdict .score { font-family: "PBOLL", monospace; font-size: 40px; min-width: 120px; }
.v-pass { border-color: var(--ok); } .v-pass .score { color: var(--ok-fg); }
.v-review { border-color: var(--primary); } .v-review .score { color: var(--primary-fg); }
.v-reject { border-color: var(--error); } .v-reject .score { color: var(--error-fg); }
.reasons { margin: 8px 0 0; padding-left: 0; list-style: none; }
.reasons li { margin-bottom: 6px; } .pts { display: inline-block; min-width: 56px; color: var(--primary-fg); }
.notice { position: fixed; left: 24px; right: 24px; bottom: 24px; padding: 0; }
.notice.show { padding: 12px 16px; background: var(--well); color: var(--text); border: 4px solid var(--error); }
.notice.good { border-color: var(--ok); }
@media (max-width: 640px) { body { margin: 8px; padding: 16px; } .mark.big { font-size: 30px; } .verdict { flex-direction: column; } }
.mark-logo { vertical-align: middle; margin-right: 10px; image-rendering: pixelated; }
.mark.big .mark-logo { display: block; margin: 0 auto 8px; width: 128px; height: 128px; }
/* the morpus viewer */
.scroll { overflow-x: auto; max-width: 100%; }
.route { display: inline-block; padding: 0 6px; border: 2px solid var(--line); }
.route.r-chip { border-color: var(--ok); color: var(--ok-fg); }
.route.r-standard { color: var(--soft); }
.player { margin-top: 12px; color: var(--primary-fg); }
.blueprint h2 { margin-top: 20px; } .blueprint h3, .blueprint h4 { font-size: 16px; margin: 16px 0 8px; }
.blueprint table.md { font-size: 12px; } .blueprint td, .blueprint th { white-space: nowrap; }
.blueprint blockquote { margin: 8px 0; padding-left: 12px; border-left: 4px solid var(--line); }
.blueprint code, .blueprint pre.md { font-size: 12px; word-break: break-word; }
@media (max-width: 640px) { .blueprint table.md, table.tracks { font-size: 11px; } }
