/* Shared by index.html and credits.html.
   Colours are palette.gd, unchanged. The split matters: everything you own
   sits on the cool end, everything hunting you sits on the warm end. */
:root {
  --ink:     #001219;
  --teal:    #005f73;
  --cyan:    #0a9396;
  --aqua:    #94d2bd;
  --custard: #e9d8a6;
  --gold:    #ee9b00;
  --caramel: #ca6702;
  --rust:    #bb3e03;
  --iron:    #ae2012;
  --blood:   #9b2226;
  --panel:   #012a33;
  --floor:   #001c26;
  --read:    #dcebe4;
  --mute:    #93b3ac;

  /* One axis, held from the title to the footer. Everything starts here. */
  --axis: clamp(22px, 6.5vw, 108px);
  --measure: 56ch;

  /* The entrance, in the game's own units. club_slide() moves on p = √t,
     which is an ease-out that covers half the distance in the first quarter of
     the time; the curve below is that, fitted. The bands use smoothstep,
     which is what _draw_bands() opens on. */
  --slide: cubic-bezier(.15, .75, .4, 1);
  --smooth: cubic-bezier(.45, 0, .55, 1);
}

/* The game ships two faces and uses both: m6x11 for anything that talks, m5x7
   for anything that counts. Neither of them sets running text — they are
   display faces and paragraphs in them are work to read.

   Prose is a serif, which is the one pairing a pixel display face cannot be
   mistaken for: no shared skeleton, so the two never read as one sloppy
   family. On Apple ui-serif is New York, on Windows Palatino or Georgia.
   To change it, change this line and nothing else. */
@font-face { font-family: 'm6x11'; src: url('fonts/m6x11.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'm5x7';  src: url('fonts/m5x7.ttf')  format('truetype'); font-display: swap; }

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

body {
  background: var(--ink);
  color: var(--read);
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino,
               "Book Antiqua", Georgia, serif;
  font-size: 18px;
  line-height: 1.66;
  overflow-x: hidden;
}

h1, h2, h3, .face {
  font-family: 'm6x11', ui-monospace, monospace;
  font-weight: 400; letter-spacing: .5px;
  -webkit-font-smoothing: none;
}
.label {
  font-family: 'm5x7', ui-monospace, monospace;
  font-size: 17px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--cyan); -webkit-font-smoothing: none;
}

/* No underlines anywhere. Gold against a custard serif is already unmistakably
   a different thing, and the game has exactly one gesture for "this is what
   you are about to choose": the rust cursor fills in behind it and the text
   drops to ink. So that is what a link does under the pointer. The fill is
   stepped rather than smooth, because nothing in this game eases a selection. */
a {
  color: var(--gold);
  text-decoration: none;
  padding: 1px 5px 2px;
  margin: 0 -5px;
  background-image: linear-gradient(var(--rust), var(--rust));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0;
  transition: background-size .13s steps(3), color .13s steps(3);
}
a:hover, a:focus-visible { color: var(--ink); background-size: 100% 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── top bar ───────────────────────────────────────────────────────────── */
/* The bar used to float over the title screen the way the game's version
   does. It carries navigation now, and aqua-on-arena is not a contrast the
   nav can afford — so it sits on its own ground above the fold. */
.topbar {
  position: relative; z-index: 6;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px 26px;
  flex-wrap: wrap;
  padding: 13px var(--axis) 14px;
  border-bottom: 1px solid rgba(0, 95, 115, .55);
  font-family: 'm5x7', ui-monospace, monospace; font-size: 20px;
  -webkit-font-smoothing: none;
}
.topbar a { background-image: none; padding: 1px 6px 2px; margin: 0 -6px; }
.topbar .home { color: var(--custard); letter-spacing: 1px; }
.topbar nav { display: flex; gap: 14px; flex-wrap: wrap; }
.topbar nav a { color: var(--aqua); }
/* the same cursor, without the resting rule — a nav bar full of them would
   read as a row of underlines */
.topbar a:hover, .topbar a:focus-visible {
  color: var(--ink); background-image: linear-gradient(var(--rust), var(--rust));
  background-size: 100% 100%;
}

/* ── the cursor bar, doing duty as the button ──────────────────────────── */
/* PLAY BALL's cursor: a rust bar leaning 16px, a custard rule down its
   leading diagonal. */
.bar {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 11px;
  font-family: 'm6x11', ui-monospace, monospace; -webkit-font-smoothing: none;
  font-size: clamp(20px, 2vw, 27px); color: var(--ink); text-decoration: none;
  padding: 11px 26px 13px 24px;
  margin-left: -16px;
  background-image: none;               /* it is already the cursor */
}
.bar:hover, .bar:focus-visible { color: var(--ink); }
.bar > * { position: relative; z-index: 1; }
.bar::before, .bar::after {
  content: ''; position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; right: 0;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%);
}
.bar::before { background: var(--custard); }
.bar::after  { background: var(--rust); left: 3px; }
.bar:hover::after { background: var(--caramel); }
.bar svg { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }
/* Until the store page exists the button says so, and does not pretend to be
   a link you can follow. */
.bar[aria-disabled="true"] { cursor: default; }
.bar[aria-disabled="true"]:hover::after { background: var(--rust); }
.bar .soon {
  font-family: 'm5x7', ui-monospace, monospace; font-size: .62em;
  letter-spacing: 1px; opacity: .72; margin-left: 2px;
}
.also { font-size: 17px; }

/* ── footer ────────────────────────────────────────────────────────────── */
/* Everything that isn't the game lives down here: who made it, where it turns
   up, and the credits. It gets one line and a row of marks, not a section. */
footer {
  margin-top: clamp(56px, 7vw, 96px);
  padding: 30px var(--axis) 54px;
  border-top: 2px solid var(--teal);
  font-size: 16px; color: var(--mute);
}
footer .rows { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
footer .maker { color: var(--read); }
footer .maker b { font-family: 'm6x11', monospace; -webkit-font-smoothing: none;
                  color: var(--custard); font-weight: 400; letter-spacing: .5px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer .spacer { flex: 1 1 0; min-width: 0; }
@media (max-width: 760px) { footer .spacer { display: none; } }

/* the places it turns up — marks only, no labels, no boxes */
.social { display: flex; gap: 4px; align-items: center; }
.social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  color: var(--aqua); background-image: none; padding: 0; margin: 0;
  transition: color .12s, background-color .12s;
}
.social a svg { width: 21px; height: 21px; fill: currentColor; display: block; }
.social a:hover, .social a:focus-visible { color: var(--ink); background-color: var(--rust); }
.social a[aria-disabled="true"] { color: var(--teal); cursor: default; }
.social a[aria-disabled="true"]:hover { color: var(--teal); background-color: transparent; }
