/* skullslayer.online. The game's own look (godot-viewer/ui_style.gd): OSRS fonts with the hard black shadow, stone plates with brass rims,
   gold titles. One centred column: the logo, a row of stone menu plates, then each page as parchment scrolls over the night Bastion.
   One page per menu plate (#home, #play ...), switched by site.js. Single dark look on purpose. */
@font-face { font-family: "OSRS Bold"; src: url("fonts/osrs-b12.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "OSRS Plain"; src: url("fonts/osrs-p12.ttf") format("truetype"); font-display: swap; }
:root {
  color-scheme: dark;
  --night: #161f30;
  --bg-slot: #171614; --bg-window: #1c1b1a; --bg-panel: #262423; --bg-card: #2b2825; --bg-card-on: #332921;
  --plate: rgba(34, 37, 32, .93); --plate-lit: rgba(55, 57, 48, .96); --plate-down: #1a1b17; --plate-rim: #0b0b0a;
  --edge-stone: #544d45; --edge-brass: #665733; --edge-gold: #cca347; --rule: #cca34759;
  --gold: #f2cc6b; --head: #ebe0bd; --text: #dbd6c2; --muted: #a8a391; --bone: #dbd4b8;
  --crimson: #9e1c1f; --crimson-edge: #c4383b; --go: #3b7833; --go-lit: #4c8a43; --go-edge: #73b359; --ok: #7fd36b;
  --fix: #e07a6b; --fix-fill: #66241f; --white: #fff; --ink: #000;
  --bold: "OSRS Bold", "Courier New", monospace;
  --plain: "OSRS Plain", "Courier New", monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; }
[hidden] { display: none !important; }
body { background: var(--night) url("img/tree-bg.jpg") center top / 100% auto no-repeat fixed; color: var(--text); font-family: var(--plain); font-size: 24px; line-height: 30px;
  -webkit-font-smoothing: none; text-shadow: 2px 2px 0 var(--ink); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,19,30,.2), rgba(14,19,30,.92) 55%); pointer-events: none; }
a { color: var(--gold); }
button { font: inherit; color: inherit; text-shadow: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.plate { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 72px; padding: 8px 18px 8px 10px; background: var(--plate); border: 3px solid var(--plate-rim); border-radius: 7px;
  box-shadow: 0 3px 12px rgba(0,0,0,.45), inset 2px 2px 0 rgba(255,255,255,.10), inset -2px -2px 0 rgba(0,0,0,.32);
  text-decoration: none; cursor: pointer; text-align: left; width: 100%; }
.plate:hover, .plate[aria-current="page"] { background: var(--plate-lit); border-color: var(--edge-gold); }
.plate:active { background: var(--plate-down); }
.ico { fill: var(--bone); --dk: #171614; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.8)); }
.plate .ico { width: 52px; height: 52px; justify-self: center; }
.plate b { display: block; font-family: var(--bold); font-weight: 400; font-size: 40px; line-height: 40px; color: var(--gold); }
.plate small { display: block; font-size: 18px; line-height: 22px; color: var(--text); }
.plate .end { font-size: 18px; color: var(--muted); }
.plate.go { background: var(--go); border-color: var(--go-edge); }
.plate.go:hover { background: var(--go-lit); }
.plate.go b, .plate.go small, .plate.go .end { color: var(--white); }
.plate.go .ico { fill: var(--white); --dk: #1f3f1b; }
.plate.small { min-height: 56px; grid-template-columns: 44px minmax(0, 1fr) auto; }
.plate.small .ico { width: 36px; height: 36px; }
.plate.small b { font-size: 24px; line-height: 28px; }
.plate.off { cursor: default; }
.plate.off:hover { background: var(--plate); border-color: var(--plate-rim); }
.plate.off b { color: var(--head); }

.tag { display: inline-block; font-family: var(--bold); font-size: 16px; line-height: 18px; padding: 3px 8px; border-radius: 3px;
  background: var(--bg-slot); border: 1px solid var(--edge-brass); color: var(--gold); white-space: nowrap; }
.tag.alpha { background: var(--crimson); border-color: var(--crimson-edge); color: var(--white); }
.tag.fix { background: var(--fix-fill); border-color: var(--fix); color: var(--white); }
.tag.live { background: #1f3f1b; border-color: var(--go-edge); color: var(--white); }
.kbd { display: inline-block; font-family: var(--bold); font-size: 16px; line-height: 16px; padding: 3px 7px; background: var(--bg-slot);
  border: 1px solid var(--edge-brass); border-radius: 3px; color: var(--head); vertical-align: 2px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--ink); margin-right: 8px; }

.panel { background: rgba(28, 27, 26, .94); border: 3px solid var(--plate-rim); border-radius: 7px; padding: 20px 24px 24px; min-width: 0;
  box-shadow: 0 0 0 1px #12110e, 0 20px 50px rgba(0,0,0,.6), inset 2px 2px 0 rgba(255,255,255,.06); }
.panel h1, .panel h2, .panel .ptitle { font-family: var(--bold); font-weight: 400; font-size: 40px; line-height: 44px; color: var(--gold); margin: 0; }
.panel .sec { font-family: var(--bold); font-weight: 400; font-size: 32px; line-height: 36px; color: var(--head); margin: 20px 0 8px; display: flex; align-items: center; gap: 12px; }
.panel .sec::after { content: ""; flex: 1; height: 2px; background: var(--rule); }
.panel .sub { font-size: 20px; line-height: 26px; color: var(--muted); margin: 2px 0 16px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; padding: 9px 12px; background: var(--bg-card); border: 1px solid var(--edge-stone); border-radius: 4px; }
.row .tag { justify-self: start; align-self: start; }
.row h2, .row h3 { margin: 0; font-family: var(--bold); font-weight: 400; font-size: 24px; line-height: 28px; color: var(--head); }
.row p { margin: 2px 0 0; font-size: 20px; line-height: 26px; color: var(--muted); }
.fine { font-size: 20px; line-height: 26px; color: var(--muted); }
.warn { margin: 6px 0 10px; padding: 6px 12px; background: rgba(242, 204, 107, .14); border: 1px solid var(--edge-brass); border-radius: 4px;
  font-family: var(--bold); font-size: 24px; line-height: 28px; color: var(--gold); }
.mock { margin: 0 0 12px; padding: 5px 10px; background: var(--bg-slot); border: 1px dashed var(--edge-brass); border-radius: 4px; font-size: 20px; line-height: 26px; color: var(--muted); }
.mock b { font-family: var(--bold); font-weight: 400; color: var(--gold); }

.shell { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px;
  padding-block: 24px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); align-self: start; display: grid; gap: 8px; }
.rail .mark { width: 290px; max-width: 100%; margin: 0 auto 4px; display: block; }
.rail .plate { min-height: 60px; grid-template-columns: 48px minmax(0, 1fr) auto; }
.rail .plate .ico { width: 40px; height: 40px; }
.rail .plate b { font-size: 32px; line-height: 34px; }
.online { text-align: center; font-size: 20px; line-height: 26px; color: var(--head); padding: 6px; background: var(--bg-slot); border: 1px solid var(--edge-brass); border-radius: 4px; }
.online b { font-family: var(--bold); font-weight: 400; color: var(--gold); }
.content { min-width: 0; }
.view { display: grid; gap: 24px; min-width: 0; }
.hero { min-height: 340px; display: grid; place-items: center; text-align: center; }
.hero img { width: min(560px, 100%); filter: drop-shadow(0 16px 36px rgba(0,0,0,.7)); }
.hero p { margin: 8px auto 16px; max-width: 46ch; color: var(--head); }
.cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 640px; margin: 0 auto; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--bg-card); border: 1px solid var(--edge-stone); border-radius: 4px; padding: 10px 12px; }
.stat b { display: block; font-family: var(--bold); font-weight: 400; font-size: 40px; line-height: 42px; color: var(--gold); }
.stat span { font-size: 20px; line-height: 26px; color: var(--muted); }

.webclient { position: relative; border: 3px solid var(--plate-rim); border-radius: 7px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; background: var(--bg-slot); box-shadow: 0 0 0 1px var(--edge-brass); }
.webclient img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .55; }
.webclient .over { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; padding: 16px; }
.webclient .over .plate { width: min(360px, 100%); margin: 0 auto; }

/* tabs cut like the client's chat tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 4px; border-bottom: 2px solid var(--edge-brass); scrollbar-width: thin; }
.tabs button { flex: none; cursor: pointer; padding: 5px 12px 4px; background: var(--bg-slot); color: var(--muted);
  border: 1px solid var(--edge-stone); border-radius: 4px 4px 0 0; text-align: left; font-family: var(--bold); font-size: 20px; line-height: 24px; }
.tabs button small { display: block; font-family: var(--plain); font-size: 16px; line-height: 16px; }
.tabs button:hover { border-color: var(--edge-brass); }
.tabs button[aria-selected="true"] { background: var(--plate-lit); border-color: var(--edge-gold); color: var(--gold); }
.more { margin-top: 10px; cursor: pointer; background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; }

/* hiscores: OSRS-style, a skill list beside the table */
.hs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
.skills { display: grid; gap: 2px; align-content: start; }
.skills a { display: block; text-decoration: none; cursor: pointer; text-align: left; padding: 3px 10px; background: var(--bg-card); border: 1px solid transparent; border-radius: 3px; font-size: 20px; line-height: 26px; color: var(--text); }
.skills a:hover { border-color: var(--edge-brass); }
.skills a[aria-current="page"] { background: var(--bg-card-on); border-color: var(--edge-gold); color: var(--gold); font-family: var(--bold); }
.tablewrap { overflow-x: auto; min-width: 0; }
table { width: 100%; border-collapse: collapse; font-size: 20px; line-height: 26px; font-variant-numeric: tabular-nums; }
th { font-family: var(--bold); font-weight: 400; color: var(--gold); text-align: left; padding: 4px 10px; border-bottom: 2px solid var(--edge-brass); white-space: nowrap; }
td { padding: 4px 10px; border-bottom: 1px solid #3a3530; white-space: nowrap; }
tbody tr:nth-child(odd) { background: rgba(43, 40, 37, .6); }
tbody tr:hover { background: var(--bg-card-on); }
td.r, th.r { text-align: right; }
td.rank { color: var(--muted); width: 1%; }
tr.top td.rank { color: var(--gold); font-family: var(--bold); }
td.name { color: var(--head); }
.search { display: flex; gap: 8px; margin-top: 12px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 20px; line-height: 26px; color: var(--head); background: var(--bg-slot); border: 1px solid var(--edge-brass); border-radius: 3px; padding: 6px 10px; }
.btn { cursor: pointer; font-family: var(--bold); font-size: 20px; line-height: 26px; padding: 6px 14px; background: var(--bg-card); border: 1px solid var(--edge-stone); border-radius: 3px; color: var(--head); }
.btn:hover { border-color: var(--edge-gold); color: var(--gold); }

/* wiki */
.wiki { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
.article { min-width: 0; }
.article h1 { font-family: var(--bold); font-weight: 400; font-size: 32px; line-height: 36px; color: var(--gold); margin: 0 0 8px; }
.article h2, .article h3 { font-family: var(--bold); font-weight: 400; font-size: 24px; line-height: 28px; color: var(--head); margin: 16px 0 4px; }
.article p, .article li { font-size: 20px; line-height: 28px; color: var(--text); max-width: 68ch; }
.article p { margin: 0 0 10px; }
.article ul { margin: 0 0 10px; padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article strong { font-family: var(--bold); font-weight: 400; color: var(--gold); }
.foot { font-size: 20px; line-height: 26px; color: var(--muted); max-width: 70ch; margin: 24px 0 0; }

@media (max-width: 900px) {
  body { background-size: auto 520px; background-attachment: scroll; }
  .shell { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rail { top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0;
    background: linear-gradient(180deg, var(--night) 70%, transparent); }
  .rail .mark, .rail .online { display: none; }
  .rail .plate { flex: none; width: auto; min-height: 48px; grid-template-columns: 30px auto; padding: 4px 12px 4px 6px; }
  .rail .plate .ico { width: 26px; height: 26px; }
  .rail .plate b { font-size: 24px; line-height: 26px; }
  .rail .plate small, .rail .plate .tag { display: none; }
  .hero { min-height: 260px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs, .wiki { grid-template-columns: minmax(0, 1fr); }
  .skills { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .skills a { flex: none; }
}
@media (max-width: 560px) {
  .dl, .cta { grid-template-columns: minmax(0, 1fr); }
  .plate { grid-template-columns: 44px minmax(0, 1fr); min-height: 60px; }
  .plate .ico { width: 36px; height: 36px; }
  .plate b { font-size: 24px; line-height: 28px; }
  .plate .end { display: none; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .panel { padding: 16px; }
}

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shots figure { margin: 0; min-width: 0; border: 3px solid var(--plate-rim); border-radius: 4px; overflow: hidden; background: var(--bg-slot); box-shadow: 0 0 0 1px var(--edge-brass); }
.shots figure.wide { grid-column: 1 / -1; }
.shots img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; }
.shots .wide img { aspect-ratio: 16 / 8; object-position: center; }
.shots img.low { object-position: 45% 60%; }
.shots figcaption { padding: 8px 12px 10px; font-size: 20px; line-height: 26px; color: #a8a391; text-shadow: 1px 1px 0 var(--ink); }
.shots figcaption b { display: block; font-family: var(--bold); font-weight: 400; font-size: 24px; line-height: 28px; color: #ebe0bd; text-shadow: 2px 2px 0 var(--ink); }
.shots.grp { margin-top: 12px; }
.shots.grp:first-child { margin-top: 0; }
.shots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots figure[data-src] { cursor: zoom-in; }
.shots figure[data-src]:hover { box-shadow: 0 0 0 2px var(--edge-gold); }
.lightbox { position: fixed; inset: 0; z-index: 20; background: rgba(8, 10, 16, .94); display: grid; grid-template-rows: auto minmax(0, 1fr); justify-items: center; align-items: center; gap: 10px; cursor: zoom-out;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 12px) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border: 3px solid var(--plate-rim); box-shadow: 0 0 0 1px var(--edge-brass); }
.lightbox p { margin: 0; font-size: 20px; line-height: 26px; color: var(--head); text-align: center; }
.lightbox .btn { justify-self: end; }
@media (max-width: 700px) { .shots, .shots.two { grid-template-columns: minmax(0, 1fr); } }

.headline { font-family: var(--bold); font-weight: 400; font-size: 64px; line-height: 64px; color: var(--gold); margin: 0; text-shadow: 4px 4px 0 var(--ink); text-wrap: balance; }
.mlogo { display: none; width: 280px; max-width: 90%; margin: 0 auto; }
.hero .live { margin: 4px auto 20px; font-size: 22px; line-height: 26px; color: var(--text); text-align: center; }
.hero .live b { font-family: var(--bold); font-weight: 400; color: var(--ok); }
.hero .live::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); vertical-align: 1px; }
@media (max-width: 900px) { .mlogo { display: block; } .headline { font-size: 40px; line-height: 44px; text-shadow: 2px 2px 0 var(--ink); } }

/* the parchment scrolls: dark ink on parchment; stone pieces inside them (plates, tags, tabs) keep the stone colours */
:root { --parch: #d9c9a0; --parch-lo: #c9b688; --ink-brown: #2e2416; --ink-soft: #57482f; --ink-red: #7a1512; --parch-edge: #6b5836; --parch-rule: rgba(46, 36, 22, .22); --parch-tint: rgba(46, 36, 22, .07); --parch-on: rgba(122, 21, 18, .14); }
.shell { display: block; max-width: 1060px; }
.panel { background: linear-gradient(180deg, var(--parch), var(--parch-lo)); border-color: var(--parch-edge); box-shadow: 0 0 0 2px var(--plate-rim), 0 20px 50px rgba(0,0,0,.6), inset 0 0 40px rgba(107, 88, 54, .35);
  color: var(--ink-brown); text-shadow: none; --gold: var(--ink-red); --head: var(--ink-brown); --text: var(--ink-brown); --muted: var(--ink-soft); --bg-card: var(--parch-tint); --bg-card-on: var(--parch-on); --edge-stone: var(--parch-rule); --rule: var(--parch-rule); }
.panel .plate, .panel .tabs button, .panel .tag, .panel .kbd, .panel .mock, .panel .search input, .panel .webclient { --gold: #f2cc6b; --head: #ebe0bd; --text: #dbd6c2; --muted: #a8a391; --edge-stone: #544d45; text-shadow: 2px 2px 0 var(--ink); }
.panel .tag, .panel .kbd { text-shadow: 1px 1px 0 var(--ink); }
.panel .kbd, .panel .search input { color: #ebe0bd; }
.panel .skills a[aria-current="page"] { border-color: var(--ink-red); }
.panel .skills a:hover { border-color: var(--parch-edge); }
.panel .tabs { border-bottom-color: var(--parch-edge); }
.panel td { border-bottom-color: var(--parch-rule); }
.panel th { border-bottom-color: var(--parch-edge); }
.panel tbody tr:nth-child(odd) { background: var(--parch-tint); }
.panel .warn { background: var(--parch-on); border-color: var(--ink-red); }
.panel .btn { border-color: var(--parch-edge); }
.panel .btn:hover { border-color: var(--ink-red); }
.hero { min-height: 0; padding: 12px 0 4px; }
@media (min-width: 901px) {
  .rail { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 20px; }
  .rail .mark { flex: 0 0 100%; width: auto; height: 250px; object-fit: contain; margin: 0 0 4px; }
  .rail .online { order: 9; flex: 0 0 100%; background: none; border: 0; padding: 4px 0 0; }
  .rail .plate { flex: none; width: auto; min-height: 52px; grid-template-columns: 30px auto; gap: 8px; padding: 4px 16px 4px 10px; }
  .rail .plate .ico { width: 28px; height: 28px; }
  .rail .plate b { font-size: 24px; line-height: 28px; }
  .rail .plate small { display: none; }
  .rail .plate:has(.tag) { grid-template-columns: 30px auto auto; }
  .headline { font-size: 48px; line-height: 52px; }
}
/* phones: the six plates in two rows of three, so every name shows without scrolling the strip sideways */
@media (max-width: 600px) {
  .rail { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .rail .plate { min-height: 44px; grid-template-columns: 22px minmax(0, 1fr); gap: 4px; padding: 4px 6px; }
  .rail .plate .ico { width: 22px; height: 22px; }
  .rail .plate b { font-size: 20px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .webclient { aspect-ratio: auto; }                        /* (the box grows to its plate and note; the picture fills behind) */
  .webclient img { position: absolute; inset: 0; }
  .webclient .over { position: relative; padding: 28px 12px; }
  .webclient .over .tag { display: none; }                 /* (SOON says the same as "Being built") */
}
@media (max-width: 380px) {
  .rail .plate { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 4px; }
  .rail .plate .ico { display: none; }
}
/* WIP and SOON tags beside a menu name or a page title */
.rail .plate .tag { font-size: 14px; line-height: 16px; padding: 1px 5px; }
h1 .tag, h2 .tag { vertical-align: middle; margin-left: 8px; }
/* the Discord plate: the same stone plate in Discord's purple */
:root { --dc: #4752c4; --dc-lit: #5865f2; --dc-edge: #8891f2; }
.plate.discord { background: var(--dc); border-color: var(--plate-rim); }
.plate.discord:hover { background: var(--dc-lit); border-color: var(--dc-edge); }
.plate.discord[aria-disabled] { cursor: default; }
.plate.discord b, .plate.discord small { color: var(--white); }
.plate.discord .ico { fill: var(--white); }
/* desktop a touch smaller than the base sizes; big screens (1440p and up) a step larger again */
@media (min-width: 901px) { body { zoom: .85; } }
@media (min-width: 1800px) { body { zoom: 1.05; } }
@media (min-width: 2400px) { body { zoom: 1.2; } }
/* Play page, step 1: the invite code box that must not be skimmed past */
.must { margin: 14px 0 6px; padding: 4px 16px 16px; border: 3px solid var(--ink-red); border-radius: 6px; background: var(--parch-on); }
.must .sec { margin-top: 10px; color: var(--ink-red); }
.must p { margin: 0 0 12px; font-size: 20px; line-height: 26px; }
.must b, .panel .fine b { font-family: var(--bold); font-weight: 400; }
.panel .sec .tag { flex: none; }
.must .dl { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
@media (max-width: 600px) {
  .panel .sec { flex-wrap: wrap; gap: 4px 10px; font-size: 26px; line-height: 30px; }
  .panel .sec::after { display: none; }
  .must { padding: 2px 10px 12px; }
}
/* narrow phones: a plate's tag goes under its name, so the name keeps one line */
@media (max-width: 420px) { .dl .plate { grid-template-columns: 44px minmax(0, 1fr); } .dl .plate .tag { grid-column: 2; justify-self: start; } }
/* the payment page (?order=, site.js): no menu, the logo above one parchment card; the bond as its item icon, drawn three times its size */
body.pay .shell { max-width: 760px; }
body.pay .rail, body.pay .mlogo, body.pay .foot { display: none !important; }
.paylogo { display: block; width: 320px; max-width: 80%; margin: 8px auto 18px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.7)); }
.pay-state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tag.wait { background: #5a4515; border-color: #cca347; color: var(--white); }
.receipt { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: center; margin: 16px 0 8px;
  padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--edge-stone); border-radius: 4px; }
.seal { width: 132px; height: 117px; display: grid; place-items: center; background: var(--bg-slot); border: 2px solid var(--edge-brass); border-radius: 4px; }
.seal img { width: 108px; height: 96px; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 rgba(0,0,0,.7)); }
.seal.dim img { filter: grayscale(1) brightness(.55); }
.receipt h3 { margin: 0; font-family: var(--bold); font-weight: 400; font-size: 32px; line-height: 36px; color: var(--head); overflow-wrap: anywhere; }
.receipt .tok { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-family: var(--bold); font-size: 24px; line-height: 28px; color: var(--gold); }
.receipt .tok img { width: 54px; height: 48px; margin: -8px 0 -8px -8px; image-rendering: pixelated; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; margin: 8px 0 0; font-size: 20px; line-height: 26px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.next { margin: 12px 0 0; padding: 10px 14px; background: rgba(59, 120, 51, .18); border: 1px solid var(--go-edge); border-radius: 4px; }
.next.amber { background: rgba(242, 204, 107, .10); border-color: var(--edge-brass); }
.next.grey { background: var(--bg-card); border-color: var(--parch-edge); }
.next b.t { display: block; font-family: var(--bold); font-weight: 400; font-size: 24px; line-height: 28px; color: var(--head); margin-bottom: 4px; }
.next .fine { margin: 6px 0 0; }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 20px; line-height: 26px; }
.path .arr { color: var(--muted); }
.pay-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pay-acts .plate { width: auto; min-width: 220px; }
.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--edge-brass); border-top-color: var(--gold); vertical-align: -1px; margin-right: 6px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.pay-back { display: block; text-align: center; margin-top: 14px; font-size: 20px; }
@media (max-width: 560px) {
  .receipt { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .pay-acts .plate { width: 100%; }
}
/* the pages (tools/build_website.py): a page's small title above its own h1, titles that are links, prev / next, the links above the footer */
.panel .ptitle { margin: 0 0 4px; }
.panel .ptitle a, .row h2 a, .row h3 a { color: inherit; }
.pnav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 14px; font-size: 20px; line-height: 26px; }
.post-acts { margin-top: 16px; }
.article img { display: block; max-width: 100%; height: auto; margin: 6px 0 12px; border: 3px solid var(--plate-rim); border-radius: 4px; }
.emojis { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; }
.emo { display: inline-flex; align-items: center; gap: 6px; }
.emo img { width: 24px; height: 24px; object-fit: contain; }
.footlinks { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 24px 0 0; font-size: 20px; line-height: 26px; }
.footlinks + .foot { margin-top: 8px; }
.cmds .kbd { white-space: normal; overflow-wrap: anywhere; }
