/* Undefeated — the design system (tool-docs undefeated/DESIGN.md §2). Paper and ink, one blue for
   your side, one red for theirs. Started from the design prototype (design/prototype/style.css). */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-ext-wght-italic.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  --paper: #f3f0e8;
  --paper-2: #e9e5da;
  --ink: #1d1c1a;
  --ink-2: #5c5850;
  --rule: #cdc7b8;
  --friend: #1f4e8c;
  --foe: #a33227;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --col: 34rem;
  --gutter: 1rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #14161a;
    --paper-2: #1c1f24;
    --ink: #e8e4da;
    --ink-2: #a39e93;
    --rule: #33373e;
    --friend: #84a9e1;
    --foe: #e2826f;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #14161a;
  --paper-2: #1c1f24;
  --ink: #e8e4da;
  --ink-2: #a39e93;
  --rule: #33373e;
  --friend: #84a9e1;
  --foe: #e2826f;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
:focus-visible {
  outline: 2px solid var(--friend);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-error {
  margin-top: 1.25rem;
  font: 400 0.8125rem/1.4 var(--mono);
  color: var(--foe);
}

/* ---------------------------------------------------------------- frame */
.bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0.9rem var(--gutter) 0.7rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font: 500 0.8125rem/1 var(--mono);
  letter-spacing: 0.32em;
  text-decoration: none;
}
.context {
  font: 400 0.75rem/1 var(--mono);
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
main {
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 6rem;
}
.label {
  font: 500 0.6875rem/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.muted {
  color: var(--ink-2);
}
.mono {
  font-family: var(--mono);
}
h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 {
  font-size: 2rem;
  line-height: 1.12;
}
h2,
.h2 {
  font-size: 1.5rem;
  line-height: 1.2;
}
.title {
  font-size: 2rem;
  line-height: 1.12;
  font-weight: 600;
  margin-top: 0.75rem;
}
p {
  margin: 0;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font: 500 0.875rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.btn.quiet {
  background: transparent;
  color: var(--ink);
}
.btn.wide {
  width: 100%;
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.link {
  background: none;
  border: 0;
  padding: 0.25rem 0;
  font: 400 0.8125rem/1.2 var(--mono);
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* ---------------------------------------------------------------- symbols */
.sym {
  display: inline-block;
  vertical-align: middle;
  flex: none;
  color: var(--friend);
}
.sym.foe {
  color: var(--foe);
}
.sym.blank {
  color: var(--rule);
}
.sym svg {
  display: block;
  overflow: visible;
}
.ter {
  display: inline-block;
  vertical-align: -0.1em;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- home */
.home h1 {
  font-size: clamp(2rem, 7vw, 2.75rem);
  margin-top: 1.5rem;
}
.home .lede {
  margin-top: 1rem;
  font-size: 1.1875rem;
  color: var(--ink-2);
  max-width: 26rem;
}
.slots-legend {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin: 2.25rem 0 2.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.slots-legend span {
  display: block;
  margin-top: 0.45rem;
  font: 400 0.5625rem/1.2 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.actions {
  display: grid;
  gap: 0.75rem;
}
.daily-line {
  font: 400 0.8125rem/1.4 var(--mono);
  color: var(--ink-2);
  text-align: center;
  margin-top: 0.25rem;
}
.code-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.code-form input::placeholder {
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-2);
  font-weight: 400;
}
.code-form input {
  flex: 1;
  min-width: 0;
  min-height: 3rem;
  padding: 0 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  font: 500 1rem/1 var(--mono);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.foot {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ---------------------------------------------------------------- campaign list */
.intro {
  margin: 0.75rem 0 1.5rem;
  color: var(--ink-2);
}
.campaign {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.campaign li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) auto;
  column-gap: 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.campaign .n {
  font: 400 0.75rem/1 var(--mono);
  color: var(--ink-2);
}
.campaign .who {
  font-weight: 600;
  line-height: 1.25;
}
.campaign .where {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 400 0.75rem/1.5 var(--mono);
  color: var(--ink-2);
  margin-top: 0.15rem;
}
.stance {
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stance.hold {
  color: var(--friend);
}
.campaign li.won .who::after,
.campaign li.lost .who::after {
  font: 500 0.6875rem/1 var(--mono);
  margin-left: 0.5rem;
  letter-spacing: 0.1em;
}
.campaign li.won .who::after {
  content: 'WON';
  color: var(--friend);
}
.campaign li.lost .who::after {
  content: 'LOST';
  color: var(--foe);
}
.go {
  margin-top: 1.75rem;
}

/* ---------------------------------------------------------------- draft */
.round {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.card-head {
  margin: 1.1rem 0 1.25rem;
}
.card-head .era {
  font: 400 0.75rem/1 var(--mono);
  color: var(--ink-2);
  letter-spacing: 0.06em;
}
.card-head .h2 {
  margin-top: 0.35rem;
  font-size: 1.75rem;
}
.card-head .home-ground {
  margin-top: 0.35rem;
  font: 400 0.75rem/1.4 var(--mono);
  color: var(--ink-2);
}
.slots {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.slot {
  border-bottom: 1px solid var(--rule);
}
.slot > button,
.slot > div {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  column-gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 0.5rem 0.9rem;
  margin: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.slot > div {
  cursor: default;
}
.slot .sym {
  margin-top: 0.3rem;
}
.slot .slotname {
  grid-column: 2 / 4;
  font: 500 0.625rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.35rem;
}
.slot .sym {
  grid-row: 1 / 5;
  grid-column: 1;
}
.slot .name {
  grid-column: 2;
  font-weight: 600;
  line-height: 1.25;
}
.slot .power {
  grid-column: 3;
  grid-row: 2;
  font: 500 1.25rem/1 var(--mono);
  align-self: start;
}
.slot .power small {
  font-size: 0.6875rem;
  color: var(--ink-2);
  font-weight: 400;
}
.slot .note {
  grid-column: 2 / 4;
  margin-top: 0.3rem;
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.slot .fit {
  grid-column: 2 / 4;
  margin-top: 0.45rem;
  font: 400 0.75rem/1.4 var(--mono);
  color: var(--ink-2);
}
.slot .fit.strong {
  color: var(--friend);
}
.slot .fit.weak {
  color: var(--foe);
}
.slot > button:hover {
  background: var(--paper-2);
}
.slot.chosen > button {
  background: var(--paper-2);
  box-shadow: inset 3px 0 0 var(--friend);
}
.slot.filled > div {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.slot.filled .name {
  font-weight: 500;
}
.slot.filled .from {
  grid-column: 2 / 4;
  font: 400 0.75rem/1.4 var(--mono);
  color: var(--friend);
}
.slot.filled .power {
  color: var(--friend);
}
.reroll-note {
  margin-top: 0.9rem;
  font: 400 0.75rem/1.5 var(--mono);
  color: var(--ink-2);
}

.confirm {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--ink);
}
.confirm .in {
  max-width: var(--col);
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.confirm .what {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.confirm .what b {
  font-weight: 600;
}

details.camp {
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--rule);
}
details.camp summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 0;
  font: 400 0.75rem/1.5 var(--mono);
  color: var(--ink-2);
}
details.camp summary::-webkit-details-marker {
  display: none;
}
details.camp summary b {
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 0.5rem;
}
details.camp .campaign {
  border-top-color: var(--rule);
}

/* ---------------------------------------------------------------- march */
.tally {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  margin: 0.25rem 0 1.5rem;
}
.tally i {
  display: block;
  height: 4px;
  background: var(--rule);
}
.tally i.w {
  background: var(--friend);
}
.tally i.l {
  background: var(--foe);
}
.tally i.now {
  background: var(--ink);
}
.battle-head .label {
  display: block;
}
.battle-head .h2 {
  margin-top: 0.35rem;
}
.battle-head .where {
  margin-top: 0.35rem;
  font: 400 0.8125rem/1.4 var(--mono);
  color: var(--ink-2);
}
.lines {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.lines .side {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.lines .side.them {
  justify-content: flex-end;
}
.lines .vs {
  font: 400 0.6875rem/1 var(--mono);
  color: var(--ink-2);
  letter-spacing: 0.1em;
}
.verdict {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.1;
}
.verdict.won {
  color: var(--friend);
}
.verdict.lost {
  color: var(--foe);
}
.how {
  margin-top: 0.35rem;
  font-size: 1.125rem;
}
.moments {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}
.moments li {
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.45;
}
.moments li + li {
  margin-top: 0.25rem;
}
.dealt {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.dealt li {
  display: grid;
  grid-template-columns: 1fr 3.5rem;
  column-gap: 0.75rem;
  row-gap: 0.3rem;
  align-items: center;
  padding: 0.45rem 0 0.35rem;
  font-size: 0.9375rem;
}
.dealt .bar-v {
  height: 3px;
  background: var(--rule);
  position: relative;
  grid-column: 1 / 3;
}
.dealt .bar-v i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--friend);
}
.dealt .num {
  font: 400 0.75rem/1 var(--mono);
  color: var(--ink-2);
  text-align: right;
}
.best {
  margin-top: 0.75rem;
  font: 400 0.75rem/1.5 var(--mono);
  color: var(--ink-2);
}
.march-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}
.reveal {
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
.reveal.pending {
  opacity: 0;
  transform: translateY(4px);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
  }
}

/* ---------------------------------------------------------------- result */
.result .kicker {
  margin-top: 0.5rem;
}
.score {
  font: 500 clamp(4.5rem, 22vw, 6.5rem)/1 var(--mono);
  letter-spacing: -0.04em;
  margin: 0.5rem 0 0;
}
.score-line {
  font-size: 1.125rem;
  color: var(--ink-2);
  margin-top: 0.5rem;
}
/* One line of real history to set the score against. Straight under the score (no challenge line),
   it is the line that leads, so it gets a little more room and size. */
.aside {
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin-top: 0.35rem;
}
.score + .aside {
  font-size: 1.0625rem;
  margin-top: 0.75rem;
}
.row10 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  margin: 1.5rem 0 0.4rem;
}
.row10 i {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font: 500 0.75rem/1 var(--mono);
  color: var(--paper);
  font-style: normal;
}
.row10 i.w {
  background: var(--friend);
}
.row10 i.l {
  background: var(--foe);
}
.row10-legend {
  display: flex;
  justify-content: space-between;
  font: 400 0.6875rem/1 var(--mono);
  color: var(--ink-2);
}
.army {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.army li {
  display: grid;
  grid-template-columns: 2.25rem 5.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
.army .slotname {
  font: 500 0.625rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.army .name {
  font-weight: 500;
  line-height: 1.25;
}
.army .from {
  display: block;
  font: 400 0.6875rem/1.4 var(--mono);
  color: var(--ink-2);
}
.share {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.copied {
  font: 400 0.75rem/1 var(--mono);
  color: var(--friend);
  text-align: center;
  min-height: 1em;
}

/* challenge comparison */
.versus {
  margin: 1.75rem 0 0;
  border-top: 1px solid var(--ink);
}
.versus .r {
  display: grid;
  grid-template-columns: 4.75rem 1fr 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.3;
}
.versus .r.h {
  font: 500 0.625rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.versus .r .slotname {
  font: 500 0.625rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 0.2rem;
}
.versus .same {
  color: var(--ink-2);
}
.versus .score-cell {
  font: 500 1.5rem/1 var(--mono);
}

/* ---------------------------------------------------------------- wide screens */
@media (min-width: 62rem) {
  :root {
    --col: 56rem;
  }
  .draft-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 3rem;
    align-items: start;
  }
  .draft-grid details.camp {
    order: 2;
    margin: 0;
    border: 0;
    position: sticky;
    top: 1.5rem;
  }
  .draft-grid details.camp summary {
    pointer-events: none;
    padding-top: 0;
  }
  .narrow {
    max-width: 34rem;
    margin-inline: auto;
  }
  .confirm .in {
    max-width: 56rem;
  }
}

/* ---------------------------------------------------------------- additions for the game
   (the prototype used a few inline styles, which the CSP's style-src 'self' would block) */
.mt-s {
  margin-top: 0.35rem;
}
.section-label {
  margin-top: 2rem;
}
.resume {
  text-align: center;
  margin: 0;
}
.campaign .row-btn {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) auto;
  column-gap: 0.75rem;
  align-items: baseline;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.campaign li:has(.row-btn) {
  display: block;
}
.campaign .row-btn:hover .who {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
h1:focus {
  outline: none;
}

/* ---------------------------------------------------------------- about */
.prose h2.label {
  margin: 2rem 0 0.6rem;
}
.prose p + p {
  margin-top: 0.85rem;
}
/* The four phases of a battle, one per line. */
.prose .phases {
  margin: 0.6rem 0 0.85rem;
  padding-left: 1.4rem;
  list-style: decimal;
}
.prose .phases li {
  padding-left: 0.25rem;
}
.prose .phases li + li {
  margin-top: 0.5rem;
}
.prose .phases li::marker {
  font: 400 0.8125rem var(--mono);
  color: var(--ink-2);
}
.prose .muted {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
}
.calibration {
  margin-top: 1.25rem;
}
/* Name and score on one line, the story under them at full width. Placed by area: with the
   list's three-column template the story took an auto column as wide as its own text and
   squeezed the name into the leftover sliver, drawing one over the other on phones. */
.calibration li {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'who agree'
    'where where';
}
.calibration .who {
  grid-area: who;
}
.calibration .where {
  grid-area: where;
  white-space: normal;
}
.calibration .agree {
  grid-area: agree;
  font: 500 0.9375rem/1 var(--mono);
  color: var(--friend);
}

/* ---------------------------------------------------------------- stats dialog */
.sheet {
  width: min(100% - 2rem, 30rem);
  max-height: calc(100% - 2rem);
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}
.sheet::backdrop {
  background: rgb(0 0 0 / 0.4);
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ink);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1rem 0 0;
}
.stat-grid dt {
  font: 500 0.625rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.stat-grid dd {
  margin: 0.35rem 0 0;
  font: 500 1.5rem/1 var(--mono);
}
.daily-rows {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.daily-rows li {
  display: grid;
  grid-template-columns: 4rem 1fr 3rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.35rem 0;
}
.daily-rows .n,
.daily-rows .num {
  font: 400 0.75rem/1 var(--mono);
  color: var(--ink-2);
}
.daily-rows .num {
  text-align: right;
}
.row10.mini {
  margin: 0;
  gap: 2px;
}
.row10.mini i {
  aspect-ratio: auto;
  height: 0.75rem;
}
.foot .link {
  font-size: 0.8125rem;
}

.army a.name {
  display: block;
  text-decoration-color: var(--rule);
}
.army a.name:hover {
  text-decoration-color: currentColor;
}

/* Back to the other games at ringanybells.xyz: one quiet line above the bar, on every page. The
   link is relative, so it reaches the hub's home from /<game>/ and /<game>/about alike. */
.hub {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: 0 auto;
  padding: max(0.5rem, env(safe-area-inset-top)) var(--gutter) 0;
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.04em;
}
.hub a {
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--ink-2);
  text-decoration: none;
}
.hub a:hover {
  color: var(--ink);
}
.hub + .bar {
  padding-top: 0.25rem;
}
