/* site.css: what every page of desktopsiege.com shares -- the footer's links and Boss's
   GDPR LB (the consent banner and the footer's Privacy settings), ported from the gdpr-lb
   skill's site-prefs.css. Its tokens are mapped to the site's own below. */
:root {
  /* The site's palette, as index.html and account.css set it: the leaderboard's own pages
     load this sheet alone. */
  --bg: #05070c;
  --ink: #e6f1fb;
  --dim: #91adc4;
  --faint: #5c7f9a;
  --edge: #1b2b3a;
  --cyan: #6fd4ff;
  --surface: #0c141f;            /* the banner, and the Accept button's text */
  --text-strong: var(--cyan);    /* links, the Accept button, the option's label */
  --text-primary: var(--ink);    /* the Accept button on hover */
  --text-dim: var(--dim);        /* the banner's text */
  --control-border: #2a4256;     /* the banner's border */
  --border: var(--edge);         /* the rule under the option */
}

/* The header every page starts with: home on the left, Play and Leaderboard on the right
   (plan 2 adds Buy, plan 3 the macOS demo). Over the page, not above it, so the landing
   page's hero keeps its height. */
.site-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; padding: 14px 18px; font-size: 14px; }
.site-nav a { color: var(--dim); text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.site-nav .site-home { font-weight: 600; letter-spacing: .02em; }
.site-nav .site-links { display: flex; gap: 18px; }
.site-nav .site-links a[data-play] { color: var(--cyan); }
/* Buy, on every page (browser-play plan 2): the one outlined thing in the header. */
.site-nav .site-links a[data-buy] { color: var(--cyan); border: 1px solid rgba(111, 212, 255, .5);
  border-radius: 999px; padding: 1px 10px; margin: -2px 0; }
.site-nav .site-links a[data-buy]:hover { border-color: var(--cyan); }
/* "Buy Full Game" (Boss, 2026-09-30) keeps to one line; on a phone the links take a
   line of their own under the home link rather than squeezing the pill into three. */
.site-nav .site-links a[data-buy] { white-space: nowrap; }
/* Sign out: {username}, signed in (Boss, 2026-10-17): the header's top right, after the links.
   A <button>, dressed as the links beside it -- and undressed of the account pages' big red
   button (account.css). The links' auto margin keeps them on the right beside it. */
.site-nav .site-links { margin-left: auto; }
.site-nav .site-out { display: inline; width: auto; background: none; border: 0; border-radius: 0;
  box-shadow: none; padding: 0; margin: 0 0 0 18px; font: inherit; letter-spacing: inherit;
  color: var(--dim); cursor: pointer; white-space: nowrap; }
.site-nav .site-out:hover, .site-nav .site-out:focus-visible { color: var(--ink); }
/* Drawn hidden in every header and shown from the page's note of the name before paint (SITE_WHO). */
.site-nav .site-out[hidden] { display: none; }
@media (max-width: 600px) {
  .site-nav { flex-wrap: wrap; row-gap: 8px; }
  .site-nav .site-links { flex-wrap: wrap; row-gap: 8px; gap: 14px; margin-left: 0; }
  /* Signed in, Sign out takes the top right, beside the home link, and the links the line
     under them: still two lines, which the account pages leave room for (account.css). */
  .site-nav:has(.site-out:not([hidden])) .site-links { order: 2; flex-basis: 100%; }
  .site-nav .site-out { order: 1; margin-left: auto; }
}
/* The narrowest phones (320px): a little tighter, so the links still share one line. */
@media (max-width: 360px) {
  .site-nav { padding: 12px 12px; font-size: 12.5px; }
  .site-nav .site-links { gap: 10px; }
  .site-nav .site-links a[data-buy] { padding: 1px 8px; }
}

/* The leaderboard's own pages (2026-09-29): rendered by the server, one board and one
   difficulty each, the rows in the HTML (web/api/board-pages.ts). */
body.board-page {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg) radial-gradient(120% 80% at 50% 0%, #101a2c 0%, #05070c 62%) no-repeat;
  background-size: 100% 100vh;
}
.board-page .board { max-width: 46rem; margin: 0 auto; padding: 88px 20px 40px; }
/* The map and the difficulty, two dropdowns (Boss, 2026-10-22: "change individual pills to dropdowns"). */
/* No heading nor a line under one (Boss, 2026-10-22): the dropdowns open the page. */
.board-picks { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 10px; }
.board-picks label { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase; }
.board-picks select { min-width: 200px; padding: 7px 34px 7px 12px; color: var(--ink); font: inherit; font-size: .9rem;
  letter-spacing: normal; text-transform: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236fd4ff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--control-border); border-radius: 8px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.board-picks select:hover, .board-picks select:focus-visible { border-color: var(--cyan); outline: none; }
.board-page table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 18px; }
/* A row's stars (2026-10-20): a map's best five, Overall's total out of 15. */
.board-page td.stars { white-space: nowrap; letter-spacing: 1px; }
.board-page td.stars .on { color: #ffd04f; }
.board-page td.stars .off { color: rgba(140, 160, 185, .35); }
.board-page th { padding: 8px; border-bottom: 1px solid var(--edge); font-size: .75rem; font-weight: 500;
  color: var(--faint); text-align: left; }
/* A header sorts the table (Boss, 2026-10-22): a plain-looking button, the sorted column lit with its arrow. */
.board-page th button.sort { all: unset; cursor: pointer; color: inherit; font: inherit; }
.board-page th button.sort:hover, .board-page th button.sort:focus-visible { color: var(--ink); }
.board-page th[aria-sort] { color: var(--cyan); }
.board-page th[aria-sort="ascending"] button.sort::after { content: " \25B2"; font-size: .6rem; }
.board-page th[aria-sort="descending"] button.sort::after { content: " \25BC"; font-size: .6rem; }
.board-page td { padding: 8px; border-bottom: 1px solid rgba(27, 43, 58, .55); color: var(--dim); }
/* Player second and Score last; between them Map and Mode where the page mixes them. */
.board-page td:nth-child(2) { width: 100%; color: var(--ink); overflow-wrap: anywhere; }
.board-page td:not(:nth-child(2)) { white-space: nowrap; }
.board-page th:last-child, .board-page td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.board-page td.empty { padding: 22px 8px; text-align: center; color: var(--faint); }
.board-note { margin: 24px 0 0; color: var(--dim); font-size: .9375rem; }
.board-note a { color: var(--cyan); }

/* The footer every page ends with: Privacy, and Privacy settings made to look exactly like it. */
.site-foot { text-align: center; padding: 28px 16px 32px; font-size: 13px; color: var(--faint); }
.site-foot a, footer .foot-prefs { color: var(--dim); text-decoration: underline; }
.site-foot a:hover, footer .foot-prefs:hover { color: var(--ink); }

/* Privacy settings, beside Privacy in the footer. A <button>, because it opens
   a dialog on this page and goes nowhere, made to look exactly like the links
   around it, as on the atlases. site-prefs.js wires it; match
   the colour and underline to the footer's links. */
footer .foot-prefs { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--dim); text-decoration: underline; cursor: pointer; }

/* The consent banner, built by site-prefs.js. The neutral names are not a
   style choice and must not be tidied: #cookie-banner and .cb-* are what the
   annoyance lists hide on sight, and a hidden banner means Accept is out of
   reach, nothing is stored, and Privacy settings looks dead. It takes the
   page's own tokens, so it is dark on a dark page and light on a light one. */
#site-prefs { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 560px; margin: 0 auto; box-sizing: border-box;
  background: var(--surface); color: var(--text-dim); border: 1px solid var(--control-border); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28); padding: 12px 14px; font-size: 13px; line-height: 1.45; }
#site-prefs a { color: var(--text-strong); }
#site-prefs .sp-row { display: flex; align-items: center; gap: 14px; }
#site-prefs .sp-text { flex: 1; min-width: 0; }
#site-prefs button { font: inherit; cursor: pointer; border-radius: 8px; }
#site-prefs .sp-accept { flex: none; background: var(--text-strong); color: var(--surface); border: none; padding: 7px 20px; font-weight: 600; }
#site-prefs .sp-accept:hover { background: var(--text-primary); }
#site-prefs .sp-link { flex: none; background: none; border: none; color: var(--text-dim); padding: 7px 0; text-decoration: underline; }
#site-prefs .sp-link:hover { color: var(--text-strong); }
#site-prefs .sp-settings { display: none; }
#site-prefs[data-view="settings"] .sp-settings { display: block; }
#site-prefs[data-view="settings"] .sp-main { display: none; }
#site-prefs .sp-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0 12px; border-bottom: 1px solid var(--border); }
#site-prefs .sp-option input { margin-top: 2px; flex: none; accent-color: var(--text-strong); }
#site-prefs .sp-option label { color: var(--text-strong); font-weight: 600; display: block; }
#site-prefs .sp-option p { color: var(--text-dim); margin: 2px 0 0; font-size: 12.5px; }
#site-prefs .sp-save-row { display: flex; justify-content: flex-end; padding-top: 10px; }
@media (max-width: 480px) {
  #site-prefs .sp-row { flex-wrap: wrap; }
}
