/* Plain on purpose: flat black, monospace, 1px lines, underlined links. */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 1000px;
  padding: 12px 16px 24px;
  background: #000;
  color: #cfcfcf;
  font: 15px/1.5 "Courier New", Courier, ui-monospace, monospace;
}

a { color: #fff; text-decoration: underline; }
a:visited { color: #bdbdbd; }
a:hover { color: #f07ac4; }

h1, h2, h3 { color: #fff; font-weight: bold; margin: 1.4em 0 .5em; }
h1 { font-size: 20px; }
h2 { font-size: 16px; text-transform: uppercase; }
h3 { font-size: 15px; }
p, ul, table, pre, form { margin: 0 0 1em; }
ul { padding-left: 2ch; }
code { color: #fff; font-family: inherit; }
b { color: #fff; }
hr { border: 0; border-top: 1px solid #444; margin: 12px 0; }

header { padding-top: 8px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; }
header .brand { min-width: 0; }
header .side { display: flex; flex-direction: row; align-items: baseline; gap: 16px; padding-top: 18px; text-align: right; flex-wrap: wrap; justify-content: flex-end; }
header .side .account { margin: 0; }
/* the server address on every page, under the header */
.joinbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 14px 0 0; padding: 8px 12px; border: 1px solid #444; }
.joinbar p { margin: 0; }
.joinbar b { color: #ffe600; margin: 0 6px; }
.joinbar button { padding: 1px 10px; }
@media (max-width: 640px) { header .side { align-items: flex-start; text-align: left; padding-top: 0; } }
.logo img { display: block; max-width: 100%; height: auto; image-rendering: pixelated; margin-bottom: 10px; }
.logo .flag { display: flex; width: 340px; max-width: 100%; aspect-ratio: 340 / 72; margin: 4px 0 14px; }
.logo .flag i { flex: 1 1 0; height: 100%; background: url(/logo-full.svg?v=2) no-repeat; background-size: 1700% 100%;
  image-rendering: pixelated; will-change: transform; animation: flag-wave 1.6s steps(4, jump-none) infinite alternate; }
@keyframes flag-wave { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
.logo .flag i:nth-child(1) { background-position: 0.0000% 0; animation-delay: 0.00s; }
.logo .flag i:nth-child(2) { background-position: 6.2500% 0; animation-delay: -0.09s; }
.logo .flag i:nth-child(3) { background-position: 12.5000% 0; animation-delay: -0.18s; }
.logo .flag i:nth-child(4) { background-position: 18.7500% 0; animation-delay: -0.27s; }
.logo .flag i:nth-child(5) { background-position: 25.0000% 0; animation-delay: -0.36s; }
.logo .flag i:nth-child(6) { background-position: 31.2500% 0; animation-delay: -0.45s; }
.logo .flag i:nth-child(7) { background-position: 37.5000% 0; animation-delay: -0.54s; }
.logo .flag i:nth-child(8) { background-position: 43.7500% 0; animation-delay: -0.63s; }
.logo .flag i:nth-child(9) { background-position: 50.0000% 0; animation-delay: -0.72s; }
.logo .flag i:nth-child(10) { background-position: 56.2500% 0; animation-delay: -0.81s; }
.logo .flag i:nth-child(11) { background-position: 62.5000% 0; animation-delay: -0.90s; }
.logo .flag i:nth-child(12) { background-position: 68.7500% 0; animation-delay: -0.99s; }
.logo .flag i:nth-child(13) { background-position: 75.0000% 0; animation-delay: -1.08s; }
.logo .flag i:nth-child(14) { background-position: 81.2500% 0; animation-delay: -1.17s; }
.logo .flag i:nth-child(15) { background-position: 87.5000% 0; animation-delay: -1.26s; }
.logo .flag i:nth-child(16) { background-position: 93.7500% 0; animation-delay: -1.35s; }
.logo .flag i:nth-child(17) { background-position: 100.0000% 0; animation-delay: -1.44s; }
@media (prefers-reduced-motion: reduce) { .logo .flag i { animation: none; } }
nav { color: #888; }

.dim { color: #888; }
.tag { color: #888; border: 1px solid #888; border-radius: 3px; padding: 0 3px; font-size: 11px; vertical-align: 1px; }
.up { color: #7bd88f; }
.nowrap { white-space: nowrap; }

table { border-collapse: collapse; }
th, td { border: 1px solid #444; padding: 3px 8px; text-align: left; vertical-align: top; }
th { color: #fff; font-weight: bold; }
.kv th { width: 9ch; font-weight: normal; color: #888; }
.grid { width: 100%; }
.grid tr.hit td { color: #fff; }

pre.bar { font-family: inherit; white-space: pre-wrap; word-break: break-all; color: #888; }
.on { color: #f07ac4; }

button, input {
  font: inherit;
  color: #fff;
  background: #000;
  border: 1px solid #888;
  border-radius: 0;
  padding: 2px 8px;
}
button { cursor: pointer; }
button:hover { border-color: #fff; }
input { width: 18ch; max-width: 60%; }
input:focus { outline: 1px solid #f07ac4; }

video { display: block; width: 100%; max-height: 70vh; background: #111; border: 1px solid #444; margin-bottom: 1em; }

footer p { margin: 0 0 .5em; }
footer .dim { font-size: 12px; }

@media (max-width: 520px) {
  body { font-size: 14px; }
  th, td { padding: 3px 5px; }
  .clips td:first-child { white-space: normal; }
}

form.inline { display: inline; margin: 0; }
.account { margin: 6px 0 0; color: #888; }
pre.code { font-family: inherit; font-size: 22px; color: #fff; border: 1px solid #444; padding: 8px 12px; display: inline-block; letter-spacing: .1em; }
td.win { color: #7bd88f; }
td.loss { color: #e07070; }
ol { padding-left: 3ch; }

/* main column + side column (who is on, supporters); side drops below on phones */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 0 28px; align-items: start; }
aside { border-left: 1px solid #444; padding-left: 14px; font-size: 14px; position: sticky; top: 8px; }
aside h3 { margin: 1em 0 .4em; text-transform: uppercase; font-size: 14px; }
aside h3:first-child { margin-top: .3em; }
ul.plain { list-style: none; padding: 0; margin: 0 0 1em; }
ul.plain li { overflow-wrap: anywhere; }                 /* wrap, never cut text off with "..." */
.plus { color: #f07ac4; font-weight: bold; }
.bot { color: #888; border: 1px solid #444; font-size: 11px; padding: 0 3px; }
.small { font-size: 13px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0 0 1em; }
.shots a { display: block; border: 1px solid #444; }
.shots img { display: block; width: 100%; height: auto; }
.shots figcaption { font-size: 12px; color: #888; padding: 2px 4px; }
@media (max-width: 760px) {
  .cols { display: block; }
  aside { border-left: 0; border-top: 1px solid #444; padding: 8px 0 0; margin-top: 16px; position: static; }
}
figure { margin: 0; }
table.logos { width: 100%; }
table.logos td { padding: 10px; text-align: center; vertical-align: middle; }
table.logos img { image-rendering: pixelated; max-width: 100%; height: auto; vertical-align: middle; }
td.on-black { background: #000; }
td.on-white { background: #fff; }
.tagline { margin: 6px 0 0; color: #f07ac4; }
h1.hero { font-size: 26px; margin: .4em 0 .5em; }
@media (max-width: 520px) { h1.hero { font-size: 22px; } }
form.lookup { margin: .3em 0 .6em; }
form.lookup label { display: block; color: #888; font-size: 13px; margin-bottom: 2px; }
form.lookup input { width: 13ch; max-width: 70%; }
aside h3 a { color: #fff; }
ul.facts { list-style: none; padding: 0; margin: 0 0 1em; }
ul.facts li { margin: 3px 0; color: #fff; }
ul.facts li::before { content: "> "; color: #f07ac4; }
.cliplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
figure.clipcard { margin: 0; border: 1px solid #444; padding: 6px; }
figure.clipcard video { margin: 0 0 6px; max-height: none; }
figure.clipcard figcaption { font-size: 13px; }
.scroll { overflow-x: auto; margin: 0 0 1em; }
.scroll table { margin: 0; }
p.story { color: #fff; font-style: italic; }

/* music toggle: off by default, endless generated chiptune (music.js, loaded on first press) */
.music { margin: 4px 0 0; font-size: 13px; }
.music button { font: inherit; background: none; border: 1px solid currentColor; color: inherit; padding: 1px 8px; cursor: pointer; }
.music button[aria-pressed="true"] { color: #ffe600; }
.music input[type=range] { vertical-align: middle; width: 110px; accent-color: #ffe600; }

/* home: on phones the address comes first and the story folds away; on wider screens it is always open (app.js) */
.lede { margin: 6px 0 10px; }
details.more > summary { cursor: pointer; color: #888; margin: 8px 0; }
@media (min-width: 641px) { details.more > summary { display: none; } }
header .side .music { margin: 0; }

/* the music button floats in the bottom-right corner on every page */
.music.fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); margin: 0; z-index: 50;
  display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 8px; }
.music.fab button { background: #000; border-color: #ffe600; color: #ffe600; padding: 6px 12px; box-shadow: 0 0 0 1px #000; }
.music.fab button[aria-pressed="false"] { border-color: #888; color: #ccc; }
.music.fab input[type=range] { width: 120px; }
.charter li { margin-bottom: .6em; }
.bad { color: #ff8a8a; }
