/* fps.breizh.city - one look for every page (home, game pages, Pi pages, the cabinet's page).
   User, 2026-11-08: dark only, a page of utilities made nicely, no game's own style. Deployed with
   the home page (configs/fps-home/publish.ps1); the games' pages link /site.css and /site.js. */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/SchibstedGrotesk-latin.woff2") format("woff2");
}
:root {
  --base: #161b26; --surface: #1d2431; --raised: #252e3f; --line: #313b4f;
  --text: #eef0f5; --muted: #9aa3b5; --action: #c9d6ff; --on-action: #141925;
  --online: #7dd8a4; --waiting: #f0c27a; --off: #6b7486; --danger: #f29b9b;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--base); scroll-padding-top: 24px; }
body { margin: 0; color: var(--text); background: var(--base); font: 16px/1.6 "Schibsted Grotesk", system-ui, sans-serif; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
a { color: var(--action); text-underline-offset: 3px; }
img.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

/* Top of the page: where you are, and whether this device has the password. */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 14px; color: var(--muted); }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--text); }
.topbar nav span { color: var(--text); }
.lockstate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.lockstate svg { width: 16px; height: 16px; flex: none; color: var(--online); }
.quiet { font: inherit; color: var(--text); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 11px; cursor: pointer; }
.quiet:hover { border-color: #46526b; }
.quiet.go { background: var(--action); color: var(--on-action); border-color: var(--action); font-weight: 600; }
.quiet.danger { color: var(--danger); }

/* A plain page head (pages without a picture band), and links between a game's private pages. */
.pagehead { padding: 8px 0 24px; border-bottom: 1px solid var(--line); margin: 0 0 28px; }
.pagehead h1 { font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 8px; }
.pagehead p { margin: 0; color: var(--muted); font-size: 17px; max-width: 720px; }
.subnav { display: flex; gap: 6px; margin: 18px 0 0; }
.subnav a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: 15px; }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current="page"] { color: var(--text); background: var(--surface); border-color: var(--line); }

/* A game's panel: its picture with the name over it, then columns. */
.game { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 28px; }
.band { position: relative; height: 300px; background-size: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,27,38,.92) 0%, rgba(22,27,38,.55) 38%, rgba(22,27,38,0) 70%), linear-gradient(0deg, rgba(29,36,49,1) 0%, rgba(29,36,49,0) 45%); }
.band .title { position: absolute; left: 32px; bottom: 26px; z-index: 1; max-width: 600px; }
.band h1, .band h2 { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; }
.band p { margin: 0; color: #d6dae4; font-size: 17px; }
.band .page { position: absolute; right: 24px; top: 20px; z-index: 1; font-size: 14px; color: var(--text); text-decoration: none; background: rgba(22,27,38,.7); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 6px 11px; }
.band .page:hover { background: rgba(22,27,38,.9); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.cols.two { grid-template-columns: 1fr 2fr; }
.cols.halves { grid-template-columns: 1fr 1fr; }
/* (A hidden column - no news yet - leaves its width to the others.) */
.cols:has(> .col[hidden]) { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.col { padding: 22px 26px 28px; border-top: 1px solid var(--line); }
.col + .col { border-left: 1px solid var(--line); }
.col h3 { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.big { font-size: 20px; font-weight: 600; margin: 0 0 2px; }
.small { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.state { display: flex; align-items: center; gap: 9px; }
.dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--off); }
.dot.on { background: var(--online); box-shadow: 0 0 0 4px rgba(125,216,164,.15); }
.dot.wait { background: var(--waiting); box-shadow: 0 0 0 4px rgba(240,194,122,.15); }
.dot.bad { background: var(--danger); box-shadow: 0 0 0 4px rgba(242,155,155,.15); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 "Schibsted Grotesk", system-ui, sans-serif; text-decoration: none; border-radius: 8px; padding: 12px 16px; border: 1px solid transparent; cursor: pointer; }
.btn.main { background: var(--action); color: var(--on-action); }
.btn.main:hover { background: #dbe4ff; }
.btn.alt { color: var(--text); border-color: var(--line); background: var(--raised); }
.btn.alt:hover { border-color: #46526b; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; }
/* "Nouvelle version" on a download button until this device has that build (site.js Site.fresh). */
.btn .newtag { font: 700 11px/1 "Schibsted Grotesk", system-ui, sans-serif; letter-spacing: .02em; background: var(--waiting); color: #1d1606; border-radius: 999px; padding: 4px 8px; margin-left: 4px; }
.more { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--muted); }
.more:hover { color: var(--text); }
ul.news { margin: 0; padding: 0 0 0 18px; }
ul.news li { margin: 0 0 8px; }
ul.news li::marker { color: var(--muted); }

/* Documentation, laid out like a good project README: contents on the left, the text on the right. */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; margin: 12px 0 40px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14px; }
.toc p { margin: 0 0 10px; color: var(--muted); font-weight: 600; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.toc li a:hover { color: var(--text); }
.toc li a.here { color: var(--text); border-left-color: var(--action); }
.doc { max-width: 760px; }
.doc > section { margin: 0 0 48px; }
.doc h2 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.doc h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.doc h2 a.anchor, .doc h3 a.anchor { margin-left: 8px; color: var(--muted); text-decoration: none; opacity: 0; }
.doc h2:hover a.anchor, .doc h3:hover a.anchor, .doc a.anchor:focus { opacity: 1; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 24px; }
.doc li { margin: 0 0 8px; }
.doc li::marker { color: var(--muted); }
.doc b, .doc strong { font-weight: 700; }
.lead { font-size: 18px; color: #d6dae4; }

/* Steps that really are a sequence. */
ol.steps { list-style: none; counter-reset: step; padding: 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 18px 46px; margin: 0; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
ol.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 1px; background: var(--line); }
.screen { font-weight: 600; color: var(--text); background: var(--raised); border-radius: 4px; padding: 1px 6px; }

/* Notes and warnings. */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--action); background: rgba(201,214,255,.05); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
.callout.warn { border-left-color: var(--waiting); background: rgba(240,194,122,.06); }
.callout > b:first-child { display: block; margin-bottom: 2px; }
.callout p:last-child { margin: 0; }

/* Keys, code, commands to copy. */
kbd { display: inline-block; min-width: 1.6em; text-align: center; font: 600 13px/1 var(--mono); color: var(--text); background: var(--raised); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 4px 6px; white-space: nowrap; }
code { font: 14px/1.4 var(--mono); background: var(--raised); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.cmd { position: relative; margin: 0 0 16px; }
.cmd pre { margin: 0; padding: 14px 92px 14px 16px; background: #10141d; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; font: 14px/1.55 var(--mono); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd .copy { position: absolute; top: 8px; right: 8px; font: 600 13px/1 "Schibsted Grotesk", system-ui, sans-serif; color: var(--text); background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; cursor: pointer; }
.cmd .copy:hover { border-color: #46526b; }

/* Tables (controls, objects, ships). */
table.list { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
table.list th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 12px 8px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.ico { width: 56px; padding-right: 0; }
table.list td.ico img { width: 36px; height: 36px; display: block; }
table.list td.name { font-weight: 700; white-space: nowrap; }
.scroll { overflow-x: auto; }

/* Folded questions (troubleshooting). */
details.faq { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 10px; background: var(--surface); }
details.faq summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+"; display: inline-block; width: 18px; color: var(--muted); }
details.faq[open] summary::before { content: "\2212"; }
details.faq > div { padding: 0 16px 4px 34px; }

/* The password window (site.js). */
dialog.ask { width: min(400px, calc(100% - 32px)); padding: 24px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
dialog.ask::backdrop { background: rgba(10,13,20,.7); }
dialog.ask h4 { margin: 0 0 4px; font-size: 18px; }
dialog.ask p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
dialog.ask input { font: inherit; width: 100%; color: var(--text); background: var(--base); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; }
dialog.ask .msg { margin: -6px 0 12px; color: var(--waiting); font-size: 14px; }
dialog.ask .msg:empty { display: none; }
dialog.ask .row { display: flex; gap: 10px; justify-content: flex-end; }

footer.site { color: var(--muted); font-size: 13px; padding: 8px 0 40px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 20px; }
footer.site a { color: inherit; }

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .cols, .cols.two, .cols.halves { grid-template-columns: 1fr; }
  .col + .col { border-left: 0; }
  .band { height: 200px; }
  .band h1, .band h2 { font-size: 32px; }
  .band p { font-size: 15px; }
  .band .title { left: 20px; right: 20px; bottom: 18px; }
  .band .page { right: 14px; top: 14px; }
  .col { padding: 20px; }
  .docs { grid-template-columns: 1fr; gap: 8px; }
  .toc { position: static; margin-bottom: 16px; }
  .doc h2 { font-size: 22px; }
  .topbar { flex-wrap: wrap; }
}
