/**
 * Ship's Ledger — the site layer's stylesheet.
 *
 * Mobile-first: base rules are the 390px comp (2D); a single `@media (min-width: 900px)` block
 * promotes to the desktop comp (2A). No CSS-in-TS, no framework — this file and `tokens.css` /
 * `fonts.css` are the entire visual system, copied verbatim into `client/dist/site/` by the
 * plugin's `closeBundle` hook and served at a fixed URL (`/site/site.css`).
 *
 * Section order follows the comp, top to bottom: reset, header, game frame + hero, buttons,
 * ledger cells, screenshot band, FAQ, article template, footer, in-game header states.
 */

/* ── Reset ────────────────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  color: var(--bone-bright);
}

p {
  margin: 0 0 var(--space-4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

*:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ── Header ───────────────────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(9, 23, 29, 0.92);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.site-header__mark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
  flex: none;
}

.site-header__name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--bone-bright);
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: var(--space-5);
  font-size: 14px;
}

.site-header__nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.site-header__nav a:hover {
  color: var(--bone);
}

@media (min-width: 900px) {
  .site-header__nav {
    display: flex;
  }
}

/*
 * The dated link to the log. Discreet by construction: `--ink-dim`, one step below the nav's
 * `--ink-soft`, so it reads as a mark rather than as a destination competing with Set Sail.
 *
 * It is NOT inside `.site-header__nav` (which is `display: none` below 900px) precisely so that
 * it survives on a phone — a "last updated" only desktop can see is not a "last updated". It
 * takes no auto margin either: the header inner is already `space-between`, so it simply
 * becomes the fourth item in that rhythm on desktop, and on a narrow screen — where the nav is
 * gone — it settles between the brand and the button on its own.
 */
.site-header__updated {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink-dim);
  border-bottom: 1px solid transparent;
}

.site-header__updated:hover,
.site-header__updated:focus-visible {
  color: var(--bone);
  border-bottom-color: var(--rule);
}

.site-header__updated[aria-current="page"] {
  color: var(--ink-soft);
}

/*
 * The `·` separator takes no colour of its own. `--ink-decor` was tried and dropped for two
 * reasons: `contrast.test.ts` pins that token to the one aria-hidden element that uses it, and
 * — the reason that would have bitten regardless — the whole link brightens on hover as a unit,
 * so a separately-coloured glyph would have sat there dim while the text either side of it lit.
 */

/*
 * Below 420px the date is dropped and the link reads just "Log ·". The breakpoint is measured,
 * not guessed: at 390px the header's content box is 342px and its three children want
 * 148 + 73 + 101 with two 16px gaps = 354px, so the full form overflows by 12px — which the
 * flex row spends by wrapping the wordmark to "Broken / Reefs" and the button to "Set / Sail".
 * The full form needs a 402px viewport; 420 leaves headroom for a font that loads late.
 *
 * The date is the enhancement and the link is the necessity, so the date is what goes. Nothing
 * is lost that the destination does not immediately supply — the first line of `/log` is the
 * newest entry's date, set larger than this would ever have been. The anchor's `aria-label`
 * still reads "The log — last updated 28 August 2026" at every width.
 */
@media (max-width: 419px) {
  .site-header__updated-date {
    display: none;
  }
}

/* ── Buttons ──────────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-5);
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease-out;
}

.btn-primary {
  background: var(--brass);
  color: var(--ground);
  border: 1px solid var(--brass);
}

.btn-primary:hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
  box-shadow: 0 0 48px rgba(185, 154, 94, 0.4);
}

.btn-primary:active {
  background: var(--brass-deep);
  border-color: var(--brass-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid #2f5560;
}

.btn-secondary:hover {
  border-color: var(--brass);
  color: var(--bone);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ── Game frame + hero ────────────────────────────────────────────────────────────────── */

#game-frame {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(185, 154, 94, 0.12), transparent 60%),
    var(--ground);
}

#game-frame::before {
  /* the brass chart grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(185, 154, 94, 0.1) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(185, 154, 94, 0.1) 0 1px, transparent 1px 26px);
  opacity: 0.1;
  pointer-events: none;
}

#game-frame::after {
  /* bottom fade into the page below */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--ground));
  pointer-events: none;
}

.lantern {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 70vw;
  max-width: 900px;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(185, 154, 94, 0.16), transparent 70%);
  animation: flicker 6s ease-in-out infinite;
  pointer-events: none;
}

#site-boot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 560px;
  padding: var(--space-8) var(--space-5) var(--space-7);
  max-width: 1100px;
  margin: 0 auto;
}

html.playing #site-boot {
  display: none;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 0.94;
  color: var(--bone-bright);
  text-shadow: 0 0 60px rgba(185, 154, 94, 0.18);
  margin: 0 0 var(--space-5);
  animation: swellSm 9s ease-in-out infinite;
}

.hero-tagline {
  font-size: 18px;
  color: var(--ink);
  max-width: 34em;
  margin: 0 0 var(--space-6);
}

/* the aria-hidden instrument readout — decorative only, per D5 */
.instrument-readout {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-decor);
  margin-top: var(--space-6);
}

@media (min-width: 900px) {
  #game-frame {
    min-height: 620px;
  }

  #site-boot {
    min-height: 620px;
    padding: var(--space-9) var(--space-6) var(--space-8);
  }

  .hero-title {
    font-size: 92px;
  }
}

/* #root — the mounted game canvas, inside the frame it shares with the hero */
#root:not(:empty) {
  position: relative;
  z-index: 1;
}

/* ── Ledger cells ("What is Broken Reefs") ───────────────────────────────────────────── */

.ledger {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.ledger-cell {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: var(--space-3);
  background: var(--panel);
  padding: var(--space-5);
}

.ledger-cell__numeral {
  /* Mobile: --ink-dim (4.59:1, passes as body text on its own). Desktop lifts the numeral to
     26px and switches to the comp's --numeral tone (3.04:1 — large-text AA, and the element is
     aria-hidden regardless). Belt and braces, per plan decision D5. */
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-dim);
}

.ledger-cell__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  color: var(--bone);
  margin: 0 0 var(--space-2);
}

.ledger-cell__body {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

@media (min-width: 900px) {
  .ledger {
    grid-template-columns: repeat(4, 1fr);
  }

  .ledger-cell {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .ledger-cell__numeral {
    font-size: 26px;
    color: var(--numeral);
  }
}

/* ── Screenshot band ──────────────────────────────────────────────────────────────────── */

.screenshot-band {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-3);
}

.screenshot-band__item {
  flex: 0 0 84%;
  scroll-snap-align: start;
}

/*
 * `height: auto` is load-bearing and its absence is invisible until the images exist.
 *
 * The markup carries width="1600" height="900" — correct, and there to reserve layout space
 * before the bytes arrive. Those attributes map to presentational hints equivalent to
 * `width: 1600px; height: 900px`. Author CSS overrides the width with `100%`, but nothing here
 * overrode the height, so the height stayed 900px — and with both dimensions definite,
 * `aspect-ratio` is ignored. Every plate rendered in a 558x900 portrait box with `object-fit:
 * cover` cropping the landscape capture to a narrow vertical slice of itself.
 *
 * The whole time the slots 404'd there was nothing to crop, so the bug rendered as an empty box
 * of roughly the wrong height and nobody could see it. It appeared to be caused by adding the
 * screenshots; it was only revealed by them.
 */
.screenshot-band__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--panel);
  border: 1px solid var(--rule);
}

.plate-link {
  display: block;
  cursor: zoom-in;
}

.plate-link:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ── The plate viewer ─────────────────────────────────────────────────────────────────── */

/*
 * The dialog fills the viewport and paints nothing, so the backdrop covers the whole screen and
 * any click lands on a surface that dismisses. `padding` and `border` are zeroed rather than
 * left at the UA defaults, which would draw an opaque box around the image.
 *
 * `cursor: zoom-out` on the whole thing is the only affordance the viewer has left now that the
 * close button is gone, and it is doing real work: it says "clicking here does something, and
 * that something is closing", everywhere the pointer can be.
 */
.plate-viewer {
  cursor: zoom-out;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.plate-viewer[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.plate-viewer::backdrop {
  background: rgb(4 12 16 / 88%);
}

.plate-viewer__frame {
  position: relative;
  line-height: 0;
}

/*
 * `min(94vw, 1600px)` rather than a bare `94vw`: the captures are 1600px wide, and on a display
 * wider than that a percentage cap would upscale a bitmap past its native size, which reads as
 * a soft, slightly wrong picture rather than a big one.
 *
 * `height: auto` is deliberate and not boilerplate — the band's images lost their aspect ratio
 * to a `height` attribute nobody overrode, and the rule that fixed it belongs anywhere an image
 * is sized.
 */
.plate-viewer__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 1600px);
  max-height: 92dvh;
  object-fit: contain;
  border: 1px solid var(--rule);
  background: var(--panel);
}

.screenshot-band__caption {
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--ink-dim);
}

@media (min-width: 900px) {
  .screenshot-band {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    overflow: visible;
  }

  .screenshot-band__item {
    flex: none;
  }
}

/* ── FAQ ───────────────────────────────────────────────────────────────────────────────── */

.faq {
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: var(--space-4) 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
  font-size: 16px;
  color: var(--bone);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-mark {
  flex: none;
  width: 1em;
  text-align: center;
  color: var(--brass);
  font-family: var(--font-mono);
}

.faq-mark::before {
  content: "+";
}

.faq details[open] .faq-mark::before {
  content: "\2013";
}

.faq p {
  margin: var(--space-3) 0 0;
  color: var(--ink-soft);
  max-width: 34em;
}

/* ── Article template (bestiary / guide / about) ─────────────────────────────────────── */

.breadcrumb {
  font-size: 13px;
  color: var(--ink-dim);
  margin-bottom: var(--space-5);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--ink-dim);
}

.breadcrumb a:hover {
  color: var(--bone);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
}

.article-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: var(--space-3);
}

.article-h1 {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--bone-bright);
  margin-bottom: var(--space-4);
}

.article-lede {
  font-size: 18px;
  color: var(--ink);
  max-width: 34em;
  margin-bottom: var(--space-6);
}

.article-body {
  max-width: 34em;
}

.article-body p,
.article-body li {
  color: var(--ink-soft);
}

.article-body h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 21px;
  color: var(--bone);
  margin: var(--space-6) 0 var(--space-3);
}

.article-aside {
  align-self: start;
}

.stat-block {
  border: 1px solid var(--rule);
  background: var(--panel);
}

.stat-block table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.stat-block th,
.stat-block td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--rule-soft);
}

.stat-block th {
  color: var(--ink-dim);
  font-weight: 400;
}

.stat-block td {
  color: var(--bone);
}

.stat-block tr:last-child th,
.stat-block tr:last-child td {
  border-bottom: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-3);
  border: 1px solid var(--warn);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.cta-card {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--brass);
  background: var(--panel);
}

.cta-card p {
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.related {
  margin-top: var(--space-7);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-5);
}

.related h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.related a {
  text-decoration: none;
  color: var(--ink-soft);
}

.related a:hover {
  color: var(--bone);
}

@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .article-aside {
    position: sticky;
    top: 72px;
  }
}

/* ── Index pages (/bestiary, /guide) ──────────────────────────────────────────────────── */

.index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.index-card {
  background: var(--panel);
  padding: var(--space-5);
  text-decoration: none;
  display: block;
}

.index-card:hover {
  background: var(--ground-deep);
}

/*
 * The unwritten entry that closes the bestiary grid. Same cell, deliberately quieter: a
 * recessed ground, no hover (there is nowhere to go), and a title in ink rather than bone so
 * it reads as a line the ledger has not filled in yet rather than as a creature you missed.
 */
.index-card--tail {
  background: var(--ground-deep);
  cursor: default;
}

.index-card--tail .index-card__title {
  color: var(--ink-soft);
  font-style: italic;
}

.index-card__numeral {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-dim);
}

.index-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  color: var(--bone);
  margin: var(--space-1) 0 var(--space-2);
}

.index-card__desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.index-page-cta {
  margin-top: var(--space-7);
}

/* ── The log ──────────────────────────────────────────────────────────────────────────── */

/*
 * A dated list, read top-down. The rule down the left is the spine: it makes the column of
 * dates the thing the eye follows, which is the organising fact of the page — a reader scanning
 * for "what changed since I last played" is scanning dates, not titles.
 *
 * Deliberately narrower than the grid pages and the same measure as `.article-body` (34em):
 * this is prose, and prose that runs the full container width is prose nobody finishes.
 */
.log {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--space-5);
  max-width: 36em;
  border-left: 1px solid var(--rule);
}

.log-entry + .log-entry {
  margin-top: var(--space-7);
}

/*
 * The date marker sits on the spine rather than beside it — a 7px square on the rule, centred
 * on the date's own line. `--brass` for the newest entry would be nice and is deliberately not
 * done: it would need the template to know which entry is first, and a decoration is not worth
 * a data dependency.
 */
.log-entry__date {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 var(--space-2);
}

.log-entry__date::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-5) - 4px);
  top: 0.45em;
  width: 7px;
  height: 7px;
  background: var(--rule);
  transform: rotate(45deg);
}

.log-entry__title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--bone-bright);
  margin: 0 0 var(--space-3);
}

.log-entry__points {
  margin: 0;
  padding-left: 1.1em;
}

.log-entry__points li {
  color: var(--ink-soft);
  margin-bottom: var(--space-2);
}

/*
 * The long form, used by the two days that reset every career. Set apart rather than merely
 * appended: a reader who skims the bullets and stops has still got the change, and a reader who
 * needs the reasoning can see there is some without being made to read it first.
 */
.log-entry__body {
  margin-top: var(--space-4);
  padding-left: var(--space-4);
  border-left: 2px solid var(--rule);
}

.log-entry__body p {
  font-size: 15px;
  color: var(--ink-dim);
  margin: 0 0 var(--space-3);
}

.log-entry__body p:last-child {
  margin-bottom: 0;
}

/*
 * The closing CTA is held to the log's own measure rather than the container's.
 *
 * `index-page-cta` is shared with the bestiary and guide indexes, where the content above it is
 * a full-width grid and a full-width card closes it correctly. Here the content above is a
 * narrow reading column, and a card three times its width reads as belonging to a different
 * page. Matching `.log`'s max-width plus its spine indent keeps the left edge aligned.
 */
.log-cta {
  max-width: calc(36em + var(--space-5));
}

@media (min-width: 900px) {
  .index-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Footer ───────────────────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: var(--space-7) 0;
  font-size: 13px;
  color: var(--ink-dim);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.site-footer a {
  text-decoration: none;
  color: var(--ink-dim);
}

.site-footer a:hover {
  color: var(--bone);
}

/* ── Sections (below-fold main) ───────────────────────────────────────────────────────── */

main > section {
  padding: var(--space-8) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--bone-bright);
  margin-bottom: var(--space-6);
}

/* ── Keyframes ────────────────────────────────────────────────────────────────────────── */

@keyframes swell {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes swellSm {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  45% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
  72% {
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ── In-game header states (2C) ───────────────────────────────────────────────────────── */

html.playing .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  transform: translateY(-100%);
  transition: transform 220ms ease-out;
}

html.playing.header-revealed .site-header {
  transform: translateY(0);
}

.header-reveal {
  display: none;
}

html.playing .header-reveal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 24px;
  z-index: 41;
  background: rgba(9, 23, 29, 0.92);
  border: 1px solid var(--brass);
  border-top: none;
  border-radius: 0 0 4px 4px;
  color: var(--brass);
  cursor: pointer;
}

html.playing.header-revealed .header-reveal {
  top: var(--header-h);
}

@media (pointer: coarse) {
  html.playing .header-reveal {
    height: 44px;
  }
}
