/* Bungee (headings) and Exo 2 (text), self-hosted. Tektur + Manrope, which the pages' own styles ask for,
   are the Exo 2 files under those names. */
@font-face { font-family: "Bungee"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/bungee-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bungee"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/bungee-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/exo2-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Tektur"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/exo2-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/exo2-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/exo2-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tektur"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/exo2-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/exo2-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================================================
   synth.css - the "synth flyer" look for every page that is not the home page (the home page carries the
   same tokens inline). Loaded LAST in each page's <head>, after the page's own <style>, so it:
     1. swaps the fonts: Bungee for headings, Exo 2 for text. "Tektur" and "Manrope" (what the pages ask for)
        are aliased to Exo 2 here, so every existing rule keeps working without its layout getting wider.
     2. maps the pages' shared colour tokens (--bg --bg-2 --surface --ink --dim --line --magenta --cyan
        --purple --gold --green ...) onto the active synth palette (--sx-*).
     3. adds the site header (.sx-top) and footer (.sx-foot), which are written into each page's markup.
   One palette site-wide: outrun, the home page's default.
   ========================================================================================================== */

:root {
  --sx-bg: #1a0b3a;  --sx-bg2: #230f4a;  --sx-deep: #0c0424;
  --sx-text: #fbefff; --sx-muted: #cdbbec;
  --sx-card: #241052; --sx-card2: #2e1563;
  --sx-hot: #ff2fa6; --sx-hot2: #ff8a3d; --sx-hot-text: #ff6cc0; --sx-on-hot: #1a0629;
  --sx-cyan: #2ef2ff; --sx-violet: #9c45ff; --sx-gold: #ffd945; --sx-green: #5cff9e;
  --sx-dot: rgba(46,242,255,.07); --sx-edge: var(--sx-hot);
  --sx-display: "Bungee", Impact, "Arial Black", sans-serif;
  --sx-body: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* ---- the pages' own tokens, pointed at the palette ---- */
:root {
  --bg: var(--sx-bg); --bg-2: var(--sx-bg2);
  --surface: var(--sx-card); --surface-2: var(--sx-card2); --surface2: var(--sx-card2);
  --ink: var(--sx-text); --dim: var(--sx-muted); --muted: var(--sx-muted);
  --line: color-mix(in srgb, var(--sx-edge) 34%, transparent);
  --magenta: var(--sx-hot); --pink: var(--sx-hot2); --accent: var(--sx-hot);
  --cyan: var(--sx-cyan); --purple: var(--sx-violet); --violet: var(--sx-violet);
  --gold: var(--sx-gold); --green: var(--sx-green);
  color-scheme: dark;
}

html body {
  background-color: var(--sx-bg);
  background-image: radial-gradient(var(--sx-dot) 1.4px, transparent 1.7px),
    linear-gradient(180deg, var(--sx-deep) 0, var(--sx-bg) 420px, var(--sx-bg) 100%);
  background-size: 12px 12px, auto; background-attachment: scroll;
  color: var(--sx-text); font-family: var(--sx-body);
}
html body h1, html body h2 { font-family: var(--sx-display); font-weight: 400; letter-spacing: .01em; line-height: 1.05; }
html body h1 { text-shadow: 3px 3px 0 var(--sx-deep), 0 0 22px color-mix(in srgb, var(--sx-hot) 35%, transparent); }
html body ::selection { background: var(--sx-hot); color: var(--sx-on-hot); }
html body :focus-visible { outline: 3px solid var(--sx-cyan); outline-offset: 3px; }

/* the old per-page top bar — its links are all in the site header's Menu now, so hide the whole strip
   wherever a .brand sits in it (the home's own .top uses .top__logo, not .brand, so it is untouched) */
.top:has(> .brand), main.card > .brand { display: none !important; }

/* ======================================== site header ======================================== */
.sx-wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.sx-top { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--sx-deep) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--sx-body); }
.sx-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--sx-cyan), var(--sx-violet), var(--sx-hot), var(--sx-hot2)); box-shadow: 0 0 12px var(--sx-hot); }
.sx-top__in { display: flex; align-items: center; gap: 18px; height: 64px; }
.sx-top__logo { flex: none; display: block; padding: 5px 9px; border-radius: 10px; transform: rotate(-2deg); background: #0c0424;
  box-shadow: 3px 3px 0 var(--sx-hot), 0 0 16px color-mix(in srgb, var(--sx-hot) 35%, transparent); line-height: 0; }
.sx-top__logo img { height: 26px; width: auto; display: block; }
.sx-top__quick { display: flex; gap: 20px; margin-left: 10px; }
.sx-top__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.sx-top a { text-decoration: none; }
.sx-top__quick a { font-weight: 700; color: #f3eaff; letter-spacing: .02em; font-size: 1rem; }
.sx-top__quick a[aria-current="page"] { color: #fff; box-shadow: 0 2px 0 var(--sx-hot); }
.sx-live { color: var(--sx-green); font: 800 .8rem var(--sx-body); padding: 6px 12px; border: 1px solid var(--sx-green); border-radius: 99px;
  text-shadow: 0 0 8px color-mix(in srgb, var(--sx-green) 60%, transparent); white-space: nowrap; }
.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 15px;
  font: 400 .86rem var(--sx-display); letter-spacing: .02em; color: #f3eaff; background: transparent; border: 2px solid var(--sx-cyan);
  border-radius: 10px; box-shadow: 3px 3px 0 var(--sx-cyan); cursor: pointer; white-space: nowrap; transition: transform .1s, box-shadow .1s; }
.sx-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--sx-cyan), 0 0 18px var(--sx-cyan); text-decoration: none; }
.sx-btn--hot { color: var(--sx-on-hot); background: linear-gradient(100deg, var(--sx-hot), var(--sx-hot2)); border-color: var(--sx-deep); box-shadow: 3px 3px 0 var(--sx-deep), 0 0 20px color-mix(in srgb, var(--sx-hot) 35%, transparent); }
.sx-btn--hot:hover { box-shadow: 5px 5px 0 var(--sx-deep), 0 0 26px var(--sx-hot); }
.sx-mega { position: relative; }
.sx-mega summary { list-style: none; }
.sx-mega summary::-webkit-details-marker { display: none; }
/* guides.css adds a "+" via summary::before for its FAQ-style accordions;
   stop that from bleeding into the site-header Menu button. */
.sx-mega summary::before, .sx-mega summary::after { content: none !important; margin: 0 !important; transform: none !important; }
.sx-mega:not([open]) .sx-mega__panel { display: none; }
.sx-mega__panel { position: absolute; right: 0; top: 52px; width: min(760px, calc(100vw - 32px)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; padding: 22px; background: var(--sx-card); color: var(--sx-text); border: 2px solid var(--sx-edge); border-radius: 16px;
  box-shadow: 5px 5px 0 var(--sx-hot), 0 0 22px color-mix(in srgb, var(--sx-hot) 28%, transparent); text-align: left; }
.sx-mega__panel h4 { margin: 0 0 8px; font: 400 .92rem var(--sx-display); color: var(--sx-hot-text); }
.sx-mega__panel a { display: block; padding: 3px 0; font-weight: 500; color: var(--sx-text); font-size: .96rem; }

/* hover = the text itself glows softly, in a wide diffuse halo */
.sx-top__quick a, .sx-mega__panel a, .sx-foot a:not(.sx-soc) { transition: color .2s, text-shadow .25s; }
.sx-top__quick a:hover, .sx-top__quick a:focus-visible, .sx-mega__panel a:hover, .sx-mega__panel a:focus-visible,
.sx-foot a:not(.sx-soc):hover, .sx-foot a:not(.sx-soc):focus-visible {
  color: #fff; text-decoration: none;
  text-shadow: 0 0 4px color-mix(in srgb, var(--sx-cyan) 85%, transparent), 0 0 12px color-mix(in srgb, var(--sx-cyan) 65%, transparent),
    0 0 26px color-mix(in srgb, var(--sx-cyan) 45%, transparent), 0 0 48px color-mix(in srgb, var(--sx-cyan) 30%, transparent); }

/* ======================================== site footer ======================================== */
.sx-foot { position: relative; margin-top: 64px; background: var(--sx-deep); color: #fbefff; padding: 52px 0 28px; font-family: var(--sx-body); line-height: 1.5; text-align: left; }
.sx-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--sx-cyan), var(--sx-violet), var(--sx-hot), var(--sx-hot2)); box-shadow: 0 0 12px var(--sx-hot); }
.sx-foot__cols { display: grid; grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr)); gap: 24px; }
.sx-foot h4 { margin: 0 0 10px; font: 400 .92rem var(--sx-display); color: var(--sx-gold); }
.sx-foot a:not(.sx-soc) { display: block; padding: 3px 0; text-decoration: none; color: #d9d3ef; font-size: .95rem; }
.sx-foot__tag { margin: 12px 0 0; color: #d9d3ef; }
.sx-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px dashed rgba(255,244,214,.25); }
.sx-soc { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; font: 700 .9rem var(--sx-body); text-decoration: none;
  color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 10px; box-shadow: 3px 3px 0 rgba(255,255,255,.18); transition: transform .1s, box-shadow .1s; }
.sx-soc:hover { transform: translate(-1px, -2px); box-shadow: 3px 4px 0 rgba(255,255,255,.25), 0 0 18px rgba(255,255,255,.25); text-decoration: none; color: #fff; }
.sx-soc svg { width: 20px; height: 20px; flex: none; }
.sx-soc--discord { background: #5865f2; } .sx-soc--x { background: #000; } .sx-soc--fb { background: #1877f2; }
.sx-soc--itch { background: #fa5c5c; } .sx-soc--indiedb { background: #1c1c1c; }
.sx-soc__mark { font: 900 .62rem/1 var(--sx-body); letter-spacing: .02em; padding: 4px; background: #c31d1d; border-radius: 3px; }
.sx-copy { margin: 20px 0 0; font-size: .85rem; color: #a89fc6; }
/* an old page footer that stayed (for example one that carries page-specific notes) */
body > .wrap > footer, body > footer:not(.sx-foot) { color: var(--sx-muted); }

@media (max-width: 900px) {
  .sx-top__quick { display: none; }
  .sx-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-foot__cols > :first-child { grid-column: 1 / -1; }
  .sx-mega__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .sx-top__in { gap: 10px; height: 58px; }
  .sx-wrap { padding-inline: 16px; }
  .sx-live { display: none; }
  .sx-btn { min-height: 36px; padding: 0 11px; font-size: .78rem; }
  .sx-mega__panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; max-height: calc(100vh - 80px); overflow: auto; }
}
@media (prefers-reduced-motion: reduce) { .sx-btn, .sx-soc, .sx-top__quick a, .sx-mega__panel a, .sx-foot a { transition: none; } .sx-mega__panel a[href*="discord.gg"] { animation: none; } }
/* Discord link in the mega menu: a steady pulsing glow in the brand's blurple */
.sx-mega__panel a[href*="discord.gg"] { color: #c7cdfa; animation: sxDiscordPulse 1.8s ease-in-out infinite; }
.sx-mega__panel a[href*="discord.gg"]:hover, .sx-mega__panel a[href*="discord.gg"]:focus-visible {
  animation: none; color: #fff;
  text-shadow: 0 0 4px color-mix(in srgb, var(--sx-cyan) 85%, transparent), 0 0 12px color-mix(in srgb, var(--sx-cyan) 65%, transparent),
    0 0 26px color-mix(in srgb, var(--sx-cyan) 45%, transparent), 0 0 48px color-mix(in srgb, var(--sx-cyan) 30%, transparent);
}
@keyframes sxDiscordPulse {
  0%, 100% { color: #c7cdfa; text-shadow: 0 0 2px rgba(88,101,242,.55), 0 0 6px rgba(88,101,242,.3); }
  50%      { color: #fff;    text-shadow: 0 0 10px rgba(88,101,242,1), 0 0 24px rgba(88,101,242,.85), 0 0 48px rgba(88,101,242,.5); }
}
/* a page's own closing note (it used to be that page's footer) */
.sx-pagenote { margin: 48px 0 0; color: var(--sx-muted); font-size: .92rem; text-align: center; }
.sx-pagenote .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
/* pages that were a single centred card (join, downloads): the card now sits under the site header */
html body:has(> main.card) { display: block; padding: 0; min-height: 0; }
html body:has(> main.card) > main.card { box-sizing: border-box; margin: 48px auto 0; width: min(560px, calc(100% - 32px)); }
/* Bungee is far wider than the face these headings were sized for: keep them inside a phone */
html body h1, html body h2 { overflow-wrap: break-word; }
@media (max-width: 520px) {
  html body h1 { font-size: clamp(1.5rem, 7.2vw, 2.05rem); }
  html body h2 { font-size: clamp(1.2rem, 5.8vw, 1.6rem); }
}
