/* The interface's symbols (arrows, shapes, check marks) from a tiny bundled
   font, so every system draws them: many lack some of these characters and
   show an empty box instead. Used only where the system fonts have no glyph.
   Noto Sans Symbols, Symbols 2 and Math subsets (vendor/LICENSE.noto-fonts.txt). */
@font-face {
  font-family: 'BA UI Symbols';
  src: url('../vendor/fonts/ui-symbols.woff2') format('woff2');
  unicode-range: U+20E0, U+2190, U+2191, U+2192, U+2193, U+2302, U+266A, U+26F0, U+26F6, U+2922;
  font-display: swap;
}
@font-face {
  font-family: 'BA UI Symbols';
  src: url('../vendor/fonts/ui-math.woff2') format('woff2');
  unicode-range: U+21A9, U+21BA, U+21BB, U+21C4, U+2205, U+2229, U+222A, U+223F, U+2248, U+2260, U+2261, U+2264, U+2265,
    U+22EF, U+233E, U+27F3;
  font-display: swap;
}
/* the word "Brighter" wherever the site names itself or a tool, and "Brighter Shores" in the landing page's title:
   Roboto Slab SemiBold (the face the game sets its room names in), cut to those words' letters alone
   (vendor/fonts/brighter.woff2, 1.7 KB; vendor/LICENSE.roboto-slab.txt) */
@font-face {
  font-family: 'BA Brighter';
  src: url('../vendor/fonts/brighter.woff2') format('woff2');
  font-weight: 600;
  unicode-range: U+20, U+42, U+53, U+65, U+67-69, U+6F, U+72-74;
  font-display: block;
}
@font-face {
  font-family: 'BA UI Symbols';
  src: url('../vendor/fonts/ui-symbols2.woff2') format('woff2');
  unicode-range: U+21E9, U+2212, U+2316, U+2318, U+2443, U+25A3, U+25A4, U+25A6, U+25B6, U+25B8, U+25BE, U+25C6, U+25C9,
    U+25CB, U+25CF, U+25EE, U+26A0, U+270E, U+2713, U+2715, U+2726, U+2733, U+2756, U+275A, U+2B71, U+2B73;
  font-display: swap;
}
/* Brighter Shores asset viewer: dark theme */
:root {
  --bg0: #0d0f13; /* page */
  --bg1: #14171d; /* panels */
  --bg2: #1a1e26; /* raised */
  --bg3: #232833; /* hover / inputs */
  --line: #2a303c;
  --line-soft: #21262f;
  --fg0: #e8ecf2;
  --fg1: #aeb6c4;
  --fg2: #79818f;
  --accent: #78b7ff;
  --accent-dim: #3d6ea8;
  --good: #6fd08c;
  --warn: #e8b45a;
  --bad: #e87070;
  --unread: #e5483c; /* the unread dot on What's new (red, as Big Rat's Adventure's) */
  --sel: #223349;
  --mono: 'SF Mono', ui-monospace, Menlo, Consolas, 'BA UI Symbols', monospace;
  --sans: -apple-system, 'Segoe UI', system-ui, Roboto, 'BA UI Symbols', sans-serif;
  --radius: 0.5rem;
  /* each product's own colour, sampled from its own picture (landing/*.webp): Fashion's gold armour, Maps' teal room
     labels, Data's sea, Big Rat's lava; Pocket's white, as the Apple logo in its icon (the icon itself is the mark's
     gold, which Fashion's is near). Its name in the top bar and the tool menu, and its marks on What's new */
  --fashion: #e0b24c;
  --maps: #49b49a;
  --data: #5aa6d6;
  --adventure: #e5602c;
  --pocket: #f4f5f7; /* (Brighter Pocket: white, as the Apple logo in its icon) */
  /* (Brighter Merchant: the red and white of the game's market stall, its mark; the red is its awning's, the name in it
     flat and bold; the white is a touch of the tool's own) */
  --merchant: #d4413f;
  --merchant-white: #fff4e6;
  --topbar-h: 2.5rem; /* every page's top bar (phones: 44, the same on every page, below) */
}
* {
  box-sizing: border-box;
}
/* The interface's size. Every length in the site's sheets is in rem (1rem = 16px at the browser's own text
   size), so this one root size scales the whole site: phones, tablets and laptops get exactly the browser's
   size, and a desktop window wider than 1920px grows it, to 120% at 2560 (a 27" 1440p or 5K screen), where
   the base size reads small. Hairlines (borders, rules of 1px), shadows and the scrollbar stay in px, and the
   layout's breakpoints stay viewport pixels. Lengths the code sets itself follow it: src/ui-scale.ts. */
html {
  font-size: 100%;
}
@media (min-width: 1921px) {
  html {
    font-size: clamp(100%, calc(100% + (100vw - 1920px) * 0.005), 120%);
  }
}
/* the shell's own icons (src/app/icons.tsx) at their size in rem; a sheet that sizes one itself wins */
:where(svg[data-ic], img[data-ic]) {
  width: var(--ic);
  height: var(--ic);
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg0);
  color: var(--fg0);
  font: 0.8125rem/1.45 var(--sans);
  overflow: hidden;
}
/* (the document itself never scrolls, not even by a script's scrollIntoView or a toolbar's resize, which hidden
   overflow allows: every page scrolls in its own scroller under the top bar, and Safari 26 blurs its glass top edge
   over the bar whenever the document is scrolled, as on an iPhone Duo's outer screen until it was dragged back
   down; Joe, 2026-11-14. Not a fixed body: Safari 26 then paints its bottom toolbar in whatever colour is at the
   page's bottom edge, the landing page's gold buttons) */
html,
body {
  overflow: clip;
  overscroll-behavior: none;
}
.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
}
.dim {
  color: var(--fg2);
}
.small {
  font-size: 0.6875rem;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--accent-dim);
}
/* the one page (src/app/Shell.tsx): the top bar, then the page the address names, each tool's page kept
   (hidden) once opened */
#root {
  height: 100%;
}
.shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pages {
  flex: 1;
  min-height: 0;
  position: relative;
}
.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.page[hidden] {
  display: none;
}
.page > :first-child {
  flex: 1;
  min-height: 0;
}
.page > .page-load {
  top: 42%;
}
/* until its own stylesheet is in, a page shows only its layout placeholders (.ph) and its load card: never
   its markup unstyled */
.page.unstyled {
  visibility: hidden;
}
.page.unstyled .ph,
.page.unstyled > .page-load {
  visibility: visible;
}
/* (Fashion's toast is unseen from the start: its own sheet would otherwise fade it out in view) */
#toast {
  opacity: 0;
}
/* each page's layout drawn before its code arrives (pages.tsx placeholders), and the one load card over
   where its content will be: Fashion's view (beside its panel; above it on phones) */
.ph {
  min-width: 0;
  min-height: 0;
}
#fashion > main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--panel-w, 26.25rem);
}
.ph-view {
  background: radial-gradient(ellipse at 50% 40%, #1f2531 0%, #14171d 55%, #0d0f13 100%);
}
.ph-panel {
  background: var(--bg1);
  border-left: 1px solid var(--line);
}
.page[data-page='fashion'] > .page-load {
  left: calc((100% - 26.25rem) / 2);
}
@media (max-width: 1280px) {
  #fashion > main {
    grid-template-columns: minmax(0, 1fr) var(--panel-w, 23.75rem);
  }
  .page[data-page='fashion'] > .page-load {
    left: calc((100% - 23.75rem) / 2);
  }
}
@media (max-width: 860px) {
  #fashion > main {
    display: flex;
    flex-direction: column;
  }
  .ph-view {
    flex: 0 0 37dvh;
  }
  .ph-panel {
    flex: 1;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .page[data-page='fashion'] > .page-load {
    left: 50%;
    top: 18.5dvh;
  }
}
/* each tool's own parts of the top bar, in place, shown with its page */
/* the bar is controls, never text to select (a long press on a phone opens the switch, not a selection) */
#topbar {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
#topbar input {
  -webkit-user-select: text;
  user-select: text;
}
.topbar-slot {
  display: contents;
}
.topbar-slot[hidden] {
  display: none;
}
/* Brighter Data's own buttons in the top bar: a desktop tool's, left out where a phone's bar has no room */
@media (max-width: 700px) {
  #export-btn,
  #overrides-btn,
  #data-source {
    display: none !important;
  }
}
/* Brighter Data */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* ---------- top bar ---------- */
#topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--topbar-h);
  padding: 0 0.875rem;
  /* (one solid colour, not a gradient: Safari 26 tints its glass top edge from a sticky header's background-color,
     which a gradient is not; tried 2026-11-12 for an iPhone outer screen that blurs the bar and reports no inset) */
  background-color: #15191f;
  border-bottom: 1px solid var(--line);
  flex: none;
  z-index: 30;
  /* (a pinned header: iOS home-screen apps blur and darken the top edge of the page unless a sticky or fixed
     header is there; the bar is at the top of a page that does not scroll, so its place is unchanged) */
  position: sticky;
  top: 0;
}
/* phones: every page's bar the same (taller, for Fashion's buttons; under the iPhone's own bar in a home-screen app),
   whichever tools have been opened: a tool's stylesheet stays once loaded, so the bar is set here, never in one */
@media (max-width: 860px) {
  :root {
    --topbar-h: 2.75rem;
  }
  #topbar {
    gap: 0.375rem;
    padding: env(safe-area-inset-top, 0px) 0.5rem 0 0.875rem;
    height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.brand-link {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}
.brand-link:hover .brand-name {
  color: var(--accent);
}
.brand-mark {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  align-self: center;
}
/* brand/mark.svg: the Obelisk and its A */
.brand-name {
  font-family: 'BA Brighter', var(--sans);
  font-weight: 600;
  letter-spacing: 0.2px;
}
/* (a tool's icon after its name, src/app/icons.tsx ToolIcon: Brighter Pocket's Apple's logo, an app for Apple's
   devices, white as in its icon; the others' the game's own icons, in their colours, set as it is) */
.apple-icon,
.tool-icon {
  flex: none;
  margin-left: 0.25rem;
  vertical-align: -0.05em;
}
.apple-icon {
  color: #fff;
}
.tool-icon {
  object-fit: contain;
}
/* (Big Rat's picture, a crop of its card on the landing page: a round one after its name in the tool switch, Joe
   2026-11-17, so every entry there has its icon; and What's new's, css/news.css .wn-pic) */
.rat-pic {
  background-color: var(--bg3);
  background-image: url(/landing/adventure-800.webp);
  background-repeat: no-repeat;
  background-size: 242%;
  background-position: 2% 71%;
}
.tool-pic {
  display: inline-block;
  flex: none;
  width: var(--ic);
  height: var(--ic);
  margin-left: 0.25rem;
  border-radius: 50%;
  vertical-align: -0.2em;
}
.brand-link .apple-icon,
.brand-link .tool-icon {
  align-self: center;
  margin-left: -0.25rem;
}
.brand-sub {
  color: var(--accent); /* (the tool, blue as in the switcher; a touch heavier than the words around it) */
  font-size: 0.71875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.15px;
}
/* the tool switch (src/tool-switch.ts): the brand itself, mark to chevron, in one faint pill that opens the tools */
.tool-switch {
  position: relative;
  align-self: center;
  display: inline-flex;
}
.tool-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: -0.5rem;
  padding: 0.125rem 0.4375rem 0.125rem 0.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 62.4375rem;
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.tool-switch-btn .brand-link {
  align-items: baseline;
} /* (Brighter and the tool on one line of text, as in the switcher; the mark centred) */
.tool-switch-btn:hover,
.tool-switch-btn[aria-expanded='true'] {
  background: var(--bg3);
  border-color: var(--line);
}
.tool-switch-btn:hover .brand-name {
  color: var(--fg0);
}
.tool-switch-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.tool-switch-chevron {
  display: inline-grid;
  place-items: center;
  color: var(--fg2);
}
.tool-switch-btn:hover .tool-switch-chevron,
.tool-switch-btn[aria-expanded='true'] .tool-switch-chevron {
  color: var(--fg0);
}
.tool-switch-chevron svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-switch-menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: -0.5rem;
  z-index: 90;
  min-width: 15.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.375rem;
  border-radius: 0.625rem;
  background: var(--bg2);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  white-space: normal;
}
/* (never taller than the screen under the bar: it scrolls inside itself where it would be, with the site's own
   scroll bar (src/scrollbar.ts) only then) */
.tool-switch-menu {
  box-sizing: border-box;
  max-height: calc(100dvh - 4.25rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* (its entries and rules keep their height where it scrolls) */
.tool-switch-menu > * {
  flex: none;
}
/* (a short screen wide enough for it: the entries two abreast, the rules and Home across both, so that it need not
   scroll at all) */
@media (max-height: 46rem) and (min-width: 40rem) {
  .tool-switch-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(14.5rem, 1fr));
    align-content: start;
  }
  .tool-switch-menu > .tool-switch-rule,
  .tool-switch-menu > .tool-switch-home:first-child,
  .tool-switch-menu > .tool-switch-news {
    grid-column: 1 / -1;
  }
}
.tool-switch-menu[hidden] {
  display: none;
}
.tool-switch-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.4375rem;
  color: var(--fg0);
  text-decoration: none;
}
.tool-switch-item:hover,
.tool-switch-item:focus-visible,
.tool-switch-home:hover,
.tool-switch-home:focus-visible {
  background: var(--bg3);
  outline: none;
}
.tool-switch-item.on {
  background: var(--sel);
}
/* an entry is one button, as the landing page's cards: pressed in on a click or tap, its text never underlined */
.tool-switch-item,
.tool-switch-item:hover,
.tool-switch-item:active,
.tool-switch-home,
.tool-switch-home:hover,
.tool-switch-home:active {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.tool-switch-item:active,
.tool-switch-home:active,
.tool-switch-news:active {
  transform: scale(0.98);
  background: var(--sel);
  transition: transform 0.06s;
}
.tool-switch-name .brand-name {
  font-weight: 600;
}
.tool-switch-name .brand-sub {
  margin-left: 0.1875rem;
  color: var(--accent);
}
.tool-switch-line {
  font-size: 0.75rem;
  color: var(--fg2);
}
/* Big Rat's Adventure (a page of its own): its cheese, in the mark's gold, before its name */
.tool-switch-rule {
  height: 1px;
  margin: 0.25rem 0.375rem;
  background: var(--line);
}
/* Home and the page's own entries: plain rows, as clear as the tools */
.tool-switch-home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border: 0;
  border-radius: 0.4375rem;
  background: none;
  color: var(--fg0);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.tool-switch-home.on {
  background: var(--sel);
}
.tool-switch-home svg {
  width: 0.9375rem;
  height: 0.9375rem;
  flex: none;
  fill: none;
  stroke: var(--fg1);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-switch-extra {
  font-weight: 500;
  color: var(--fg1);
}
.tool-switch-news {
  margin-top: 0.125rem;
  padding: 0.5rem 0.625rem;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: 0 0 0.4375rem 0.4375rem;
  background: none;
  text-align: left;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg0);
  cursor: pointer;
}
.tool-switch-news:hover,
.tool-switch-news:focus-visible {
  background: var(--bg3);
  color: var(--accent);
  outline: none;
  text-decoration: none;
}
/* What's new: in the tool menu, every product's (/whats-new); beside the switch on a tool, that tool's own
   (/whats-new?for=...), a dot on it while one of its releases is unread; on a phone its icon alone (Topbar.tsx) */
.tool-switch-news {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.news-dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--unread);
}
.top-news {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  height: 1.5rem;
  padding: 0 0.5625rem;
  box-sizing: border-box;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.top-news:hover {
  background: var(--bg3);
  border-color: var(--accent);
  text-decoration: none;
}
/* (a herald's trumpet before the words, in their colour; the tool menu's What's new has it too, the size of the
   menu's other icons) */
.top-news-icon,
.tool-switch-news-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  margin-left: -0.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-switch-news-icon {
  width: 0.9375rem;
  height: 0.9375rem;
  margin-left: 0;
}
.top-news .news-dot {
  width: 0.4375rem;
  height: 0.4375rem;
}
/* (a phone: What's new keeps its name; Discord its icon alone) */
@media (max-width: 640px) {
  .top-social-label {
    display: none;
  }
  .top-social {
    padding: 0 0.4375rem;
  }
}
/* (the narrowest phones, up to 380 px: What's new its trumpet alone, as Discord is its mark alone, or the bar runs
   off the screen) */
@media (max-width: 380px) {
  .top-news {
    padding: 0 0.4375rem;
  }
  .top-news-label {
    display: none;
  }
  .top-news-icon {
    margin-left: 0;
  }
}
.searchwrap {
  position: relative;
  flex: 1;
  max-width: 32.5rem;
}
#global-search {
  width: 100%;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  background: var(--bg3);
  border: 1px solid var(--line);
  color: var(--fg0);
  outline: none;
  font: inherit;
}
#global-search:focus {
  border-color: var(--accent-dim);
}
#global-search::placeholder,
#list-filter::placeholder {
  color: var(--fg2);
}
.search-results {
  position: absolute;
  top: 2.125rem;
  left: 0;
  right: 0;
  max-height: 60vh;
  overflow: auto;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  z-index: 40;
  padding: 0.25rem;
}
.search-item:hover,
.search-item.active {
  background: var(--sel);
}
.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* the community link (Discord): a .btn-mini that lines its icon up with the label */
.top-social {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  height: 1.5rem;
  padding: 0 0.5625rem;
  box-sizing: border-box;
  text-decoration: none;
}
/* (the brand pill's height, on every page) */
/* the world map page (no game files needed) */
.top-social svg {
  display: block;
}
.top-social:hover {
  background: var(--bg3);
  border-color: var(--accent);
}
/* (Discord's mark in Discord's colour, so the link is seen; the whole button its colour under the pointer) */
.top-social.discord {
  border-color: color-mix(in oklab, #5865f2 55%, var(--line));
}
.top-social.discord svg {
  color: #5865f2;
}
.top-social.discord:hover {
  background: #5865f2;
  border-color: #5865f2;
  color: #fff;
}
.top-social.discord:hover svg {
  color: #fff;
}
/* ---------- layout ---------- */
#body {
  display: flex;
  flex: 1;
  min-height: 0;
}
#sidebar {
  width: 20rem;
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--bg1);
  border-right: 1px solid var(--line);
  min-height: 0;
  position: relative; /* anchors the collapse toggle + resize handle */
}
/* (the viewer keeps room for the onboarding on a phone, where the page is wider than the screen) */
#main {
  flex: 1;
  min-width: 20rem;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg0);
}
#viewer {
  flex: 1;
  min-height: 0;
  overflow: auto;
  position: relative;
}
#details {
  width: 18.75rem;
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--bg1);
  border-left: 1px solid var(--line);
  min-height: 0;
  position: relative; /* texture picker docks over this panel */
}
.details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 600;
  flex: none;
}
#details-body {
  overflow: auto;
  padding: 0.625rem 0.75rem;
  flex: 1;
}
#sidebar > .panel-toggle {
  right: -0.9375rem;
  border-left: none;
  border-radius: 0 0.375rem 0.375rem 0;
}
#details > .panel-toggle {
  left: -0.9375rem;
  border-right: none;
  border-radius: 0.375rem 0 0 0.375rem;
}
#sidebar.collapsed,
#details.collapsed {
  width: 2rem;
}
/* content + resize handle. The panel-ID prefix is load-bearing: children
   like #cat-tabs set display via ID selectors, which would outrank a bare
   class rule and leave icons peeking out of the collapsed rail. */
#sidebar.collapsed > :not(.panel-toggle),
#details.collapsed > :not(.panel-toggle) {
  display: none !important;
}
#sidebar.collapsed > .panel-toggle,
#details.collapsed > .panel-toggle {
  inset: 0;
  transform: none;
  width: auto;
  height: auto;
  background: none;
  border: none;
  border-radius: 0;
}
#sidebar.collapsed > .panel-toggle:hover,
#details.collapsed > .panel-toggle:hover {
  background: var(--bg2);
  color: var(--fg0);
}
/* ---------- category tabs ---------- */
#cat-tabs {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: none;
}
.cat-tab-row:has(.cat-tab.active) {
  background: var(--sel);
}
.cat-tab-row:hover .cat-tab,
.cat-tab.active {
  color: var(--fg0);
}
/* ---------- list ---------- */
#list-tools {
  padding: 0.25rem 0.5rem 0.5rem;
  border-bottom: 1px solid var(--line-soft);
  flex: none;
}
#list-filter {
  width: 100%;
  padding: 0.3125rem 0.5625rem;
  border-radius: 0.375rem;
  background: var(--bg3);
  border: 1px solid var(--line);
  color: var(--fg0);
  outline: none;
}
#list-filter:focus {
  border-color: var(--accent-dim);
}
.sort-row {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.375rem;
}
.sort-row:has(#list-sort[hidden]) {
  display: none;
}
#list-sort {
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0.375rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  background: var(--bg3);
  border: 1px solid var(--line);
  color: var(--fg1);
  outline: none;
}
#list-sort[hidden] {
  display: none;
}
#list-sort-dir {
  flex: none;
  width: 1.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1;
  cursor: pointer;
  background: var(--bg3);
  border: 1px solid var(--line);
  color: var(--fg1);
}
#list-sort-dir[hidden] {
  display: none;
}
#list-sort-dir:hover {
  border-color: var(--accent-dim);
  color: #fff;
}
#list-chips {
  margin-top: 0.375rem;
}
#list-chips:empty {
  margin-top: 0;
}
#list-host {
  flex: 1;
  min-height: 0;
  position: relative;
}
.vrow.selected {
  background: var(--sel);
  box-shadow: inset 2px 0 0 var(--accent);
}
.vrow.vrow-all.selected {
  background: var(--sel);
  box-shadow: inset 2px 0 0 var(--accent);
}
/* ---------- badges ---------- */
.badge {
  display: inline-block;
  padding: 1px 0.4375rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: var(--bg3);
  color: var(--fg1);
  border: 1px solid var(--line);
  vertical-align: 1px;
}
.badge.b-accent {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.badge.b-good {
  color: var(--good);
  border-color: #2f5c3d;
}
.badge.b-warn {
  color: var(--warn);
  border-color: #6b5426;
}
.badge.b-bad {
  color: var(--bad);
  border-color: #6b2e2e;
}
.badge.b-ghost {
  opacity: 0.65;
}
/* ---------- banners ---------- */
#banners {
  flex: none;
}
/* ---------- status bar ---------- */
#statusbar {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  height: 1.625rem;
  padding: 0 0.75rem;
  flex: none;
  background: var(--bg1);
  border-top: 1px solid var(--line);
  color: var(--fg2);
  font-size: 0.6875rem;
}
#status-right {
  margin-left: auto;
}
#statusbar .err {
  color: var(--bad);
}
.viewer-toolbar .spacer {
  flex: 1;
}
.tv-chip.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.tv-chip.tv-none.active {
  color: #fff;
  border-color: var(--accent);
}
.dye-swatch.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.btn {
  padding: 0.25rem 0.6875rem;
  border-radius: 0.375rem;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--fg1);
  cursor: pointer;
}
.btn:hover {
  background: var(--bg3);
  color: var(--fg0);
}
.btn.active {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: #fff;
}
.btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.btn-mini {
  padding: 1px 0.5rem;
  font-size: 0.6875rem;
  border-radius: 0.3125rem;
  border: 1px solid var(--line);
  background: var(--bg2);
  cursor: pointer;
  color: var(--fg1);
}
.btn-mini:hover {
  color: var(--fg0);
  background: var(--bg3);
}
.btn-mini.active {
  background: var(--accent-dim);
  color: #fff;
  border-color: var(--accent-dim);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}
select.btn {
  padding: 0.1875rem 0.375rem;
}
input[type='range'] {
  accent-color: var(--accent);
}
/* The playback-bar variant (.pb) stacks the clip listbox above a pinned control
   row: the listbox FILLS the remaining height (no manual resizer), so shrinking
   the bar shrinks the list and never pushes the transport controls off screen. */
/* Default tall enough to show the clip header + several clip rows before the
   user drags it (the drag height, when set, is inline and overrides this).
   Without it the listbox (flex:1 1 0; min-height:0) collapses to nothing. */
.anim-bar.pb {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow: hidden;
  height: 12.5rem;
}
.anim-bar.pb .clip-select {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.125rem;
  resize: none;
  overflow: auto;
}
.anim-bar.pb .pb-controls {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
/* ---------- placeholder / onboarding ---------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.875rem;
}
.card {
  max-width: 38.75rem;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.625rem 1.875rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.card h2 {
  margin: 0 0 0.625rem;
  font-size: 1.0625rem;
}
.card p {
  color: var(--fg1);
}
.card pre {
  background: var(--bg0);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.75rem 0.875rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg0);
}
.notexported {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  color: var(--fg2);
  height: 100%;
  min-height: 10rem;
}
/* ---------- key/value details ---------- */
.kv {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.kv td {
  padding: 0.1875rem 0.25rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.kv td:first-child {
  color: var(--fg2);
  white-space: nowrap;
  padding-right: 0.625rem;
}
.kv td:last-child {
  font-family: var(--mono);
  word-break: break-word;
  color: var(--fg0);
}
.rawjson {
  font-family: var(--mono);
  font-size: 0.6875rem;
  white-space: pre-wrap;
  word-break: break-all;
  background: var(--bg0);
  border: 1px solid var(--line-soft);
  border-radius: 0.375rem;
  padding: 0.5rem;
  color: #9fd0a2;
}
.img-stage.dragging {
  cursor: grabbing;
}
.subthumb.active {
  border-color: var(--accent-dim);
  background: var(--bg2);
}
.pad {
  padding: 0.875rem;
}
/* scrollbars */
::-webkit-scrollbar {
  width: 0.625rem;
  height: 0.625rem;
}
::-webkit-scrollbar-thumb {
  background: #2c323e;
  border-radius: 0.375rem;
  border: 2px solid var(--bg1);
}
::-webkit-scrollbar-thumb:hover {
  background: #3a4150;
}
::-webkit-scrollbar-corner {
  background: transparent;
}
@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-color: #2c323e transparent;
  }
}
/* (Firefox: the same colours) */
/* the persistent themed scrollbar where the platform's own floats and hides (src/scrollbar.ts): a gutter at the
   scroller's right edge, a track in it */
.vbar-host {
  scrollbar-width: none;
}
.vbar-host.vbar-on {
  padding-right: 16px !important;
}
.vbar-host::-webkit-scrollbar {
  display: none;
}
.vbar {
  position: absolute;
  width: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 3;
  touch-action: none;
}
/* (a wider target for a finger, on the bar's left only: the bar sits at its scroller's right edge, often the screen's,
   and a target past it made the page 9px wider than the screen, so it moved sideways) */
.vbar::before {
  content: '';
  position: absolute;
  inset: 0 -1px 0 -19px;
}
/* a finger-sized hit area */
.vbar[hidden] {
  display: none;
}
.vbar-thumb {
  width: 100%;
  border-radius: 3px;
  background: #3a4150;
}
.vbar:active .vbar-thumb {
  background: #4f5a6e;
}
kbd {
  font-family: var(--mono);
  font-size: 0.625rem;
  background: var(--bg3);
  padding: 1px 0.3125rem;
  border-radius: 0.25rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
}
.texpicker .tp-actions .btn {
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
}
.texpicker .tp-fitbtn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #fff;
}
.texpicker .tp-cell.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim);
}
.texpicker .tp-foot .btn {
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
}
.texpicker .tp-foot .spacer {
  flex: 1;
}
.skel-meshes .sm-row .badge {
  flex: none;
  padding: 0 0.25rem;
}
.skel-meshes .sm-row .dim {
  flex: none;
  white-space: nowrap;
  margin-left: auto;
}
.texpicker .tp-cell.chosen {
  border-color: var(--good);
  box-shadow: 0 0 0 2px #2f5c3d;
}
.texpicker .tp-cell.chosen::after {
  content: '✓';
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  z-index: 1;
  pointer-events: none;
  font: 0.625rem/1 monospace;
  color: #06210f;
  background: var(--good);
  border-radius: 0.1875rem;
  padding: 1px 0.1875rem;
}
/* ---------- overrides manager modal ---------- */
/* every dialog stands over every tool's own layers (Fashion's designer drawer, 50; its looks, 65; its picture
   sheet, 80; the tool switch, 90), so its close button is never covered */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(6, 8, 11, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* capture modals (screenshot / video): solid backdrop so the live 3D view isn't
   visible (and animating) behind the modal while you set up a capture */
.modal.card {
  width: min(45rem, 92vw);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
  gap: 0.625rem;
}
.modal.card h2 {
  margin: 0;
  font-size: 0.9375rem;
}
.modal-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex: none;
}
.modal-actions .spacer {
  flex: 1;
}
.ob-drop.over {
  border-color: var(--accent);
  background: var(--bg2);
}
.ob-bundle.ok {
  opacity: 1;
  border-color: var(--accent-dim);
}
.ob-cat.missing {
  opacity: 0.5;
}
.btn.primary {
  background: var(--accent-dim);
  border-color: var(--accent);
}
/* primary call-to-action inside viewer toolbars (e.g. Texture…) */
.btn.btn-cta {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn.btn-cta:hover {
  background: var(--accent);
  color: #0d0f13;
}
.err {
  color: #e07777;
}
.ob-cat.done {
  opacity: 0.75;
  border-color: var(--accent-dim);
}
.ver-row.active {
  border-color: var(--accent-dim);
}
/* macOS / Windows build logo, in the topbar chip + version rows */
/* The topbar chip mixes text + the icon: flex-center them so the icon doesn't
   ride the font baseline (inline vertical-align sat it ~1px off the text's
   visual middle). The version rows (.ver-head) are already flex-centered. */
#data-source {
  display: inline-flex;
  align-items: center;
}
.plat-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 0.3125rem;
  color: var(--fg1);
}
.plat-icon.plat-guess {
  opacity: 0.5;
}
.plat-icon svg {
  display: block;
}
.breadcrumb a {
  color: var(--fg1);
}
.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: none;
}
/* panel resize handles */
.rz-handle {
  position: absolute;
  z-index: 26;
}
/* inset (not overhanging): panels with overflow:auto clip negative offsets */
.rz-handle.rz-right {
  top: 0;
  bottom: 0;
  right: 0;
  width: 0.5rem;
  cursor: col-resize;
}
.rz-handle.rz-left {
  top: 0;
  bottom: 0;
  left: 0;
  width: 0.5rem;
  cursor: col-resize;
}
.rz-handle.rz-top {
  left: 0;
  right: 0;
  top: 0;
  height: 0.5rem;
  cursor: row-resize;
}
.rz-handle.rz-bottom {
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.5rem;
  cursor: row-resize;
}
/* faint always-visible divider so handles are discoverable; brightens on hover */
.rz-handle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--line);
  opacity: 0.6;
  transition:
    opacity 0.12s,
    background 0.12s;
}
.rz-handle.rz-left::after,
.rz-handle.rz-right::after {
  width: 0.125rem;
}
.rz-handle.rz-right::after {
  right: 0;
  left: auto;
}
.rz-handle.rz-top::after,
.rz-handle.rz-bottom::after {
  height: 0.125rem;
}
.rz-handle.rz-bottom::after {
  bottom: 0;
  top: auto;
}
.rz-handle:hover::after,
.rz-handle:active::after {
  background: var(--accent);
  opacity: 1;
}
/* diff cards span the full viewer width (override the centered .card cap) */
.diff-body .card {
  max-width: none;
  box-shadow: none;
}
.diff-room-asset.add {
  color: var(--good, #7ac47a);
}
.world-panel .wp-inspect.active {
  background: #3d3413;
  border-color: #e4c45b;
  color: #ffe9a0;
}
/* Pinned effect instance: hide/pause read as "on" once toggled, same accent
   the rest of the app uses for an active toggle (.btn-mini.active, .wp-inspect.active) */
.world-panel .wp-edit-actions .wp-fx-hide.active,
.world-panel .wp-edit-actions .wp-fx-pause.active {
  background: var(--accent-dim);
  color: #fff;
  border-color: var(--accent-dim);
}
/* The clip listbox asks for up to 7 rows; 172px left it barely one after the
   transport controls took their share. Taller by default, and draggable so a
   long clip list can be opened up without leaving the panel. */
.world-panel .wp-anim .anim-bar.pb {
  height: 15rem;
  min-height: 8.75rem;
  max-height: 60vh;
  resize: vertical;
}
/* all-rooms loading overlay (js/viewers/world.js): one weighted progress bar
   over the dimmed canvas; fades out when the pipeline reaches ready */
.world-loading {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 19, 26, 0.94);
  transition: opacity 0.4s ease;
}
.world-loading.done {
  opacity: 0;
  pointer-events: none;
}
.world-loading .wlo-card {
  width: min(21.25rem, 72%);
  text-align: center;
}
.world-loading .wlo-title {
  color: var(--fg0);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.world-loading .wlo-bar {
  height: 0.375rem;
  border-radius: 0.1875rem;
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--line);
}
.world-loading .wlo-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 0.1875rem;
  transition: width 0.25s ease;
}
.world-loading .wlo-pct {
  margin-top: 0.5rem;
  color: var(--fg2);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}
/* confirm state (shown before any loading starts): memory warning + actions */
.world-loading .wlo-note {
  margin: 0 0 0.875rem;
  color: var(--fg2);
  font-size: 0.75rem;
  line-height: 1.55;
  text-align: left;
}
.world-loading .wlo-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.875rem;
}
.world-loading .world-load-confirm {
  background: var(--accent);
  border-color: var(--accent);
  color: #10131a;
  font-weight: 600;
}
/* GPU-tier warning inside the confirm overlay (integrated / software adapters) */
.world-loading .wlo-warn {
  margin: 0 0 0.875rem;
  padding: 0.5rem 0.625rem;
  text-align: left;
  border: 1px solid #6b5a34;
  border-radius: var(--radius);
  background: rgba(84, 66, 24, 0.22);
  font-size: 0.75rem;
  line-height: 1.5;
}
.world-loading .wlo-warn b {
  display: block;
  margin-bottom: 0.25rem;
  color: #e8c268;
}
.world-loading .wlo-warn p {
  margin: 0;
  color: var(--fg2);
}
.world-loading .wlo-warn-software {
  border-color: #6b3a34;
  background: rgba(84, 30, 24, 0.22);
}
.world-loading .wlo-warn-software b {
  color: #e79a8e;
}
.world-hud.collapsed {
  padding: 0.1875rem 0.4375rem;
}
.world-hud.collapsed .wh-head {
  float: none;
}
.modal.card.mgate {
  position: relative;
  width: min(27.5rem, 100%);
  max-height: 88dvh;
  overflow-y: auto;
  gap: 0.75rem;
  padding: 1.375rem 1.125rem 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.modal.card .mgate-title {
  margin: 0 1.75rem 0 0;
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.3;
  text-wrap: balance;
}
.map-inspection .btn {
  white-space: normal;
}
.map-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.625rem;
  flex: none;
}
.map-toolbar label {
  display: inline-flex;
  gap: 0.3125rem;
  align-items: center;
}
.map-toolbar select {
  max-width: 11.875rem;
  min-height: 2rem;
}
.map-toolbar select,
.map-toolbar input[type='number'] {
  background: var(--bg3);
  color: var(--fg0);
  border: 1px solid var(--line);
  border-radius: 0.3125rem;
  padding: 0.3125rem;
}
.map-toolbar input[type='number'] {
  width: 5rem;
}
.map-canvas-host {
  position: relative;
  flex: 1;
  min-height: 10rem;
  overflow: hidden;
  background: #2a2a2a;
  /* a map, not text: taps never select, long presses never call up the text menu */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.map-canvas-host canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.map-canvas-host canvas:active {
  cursor: grabbing;
}
@media (max-width: 820px) {
  body.map-active #sidebar,
  body.map-active #details {
    display: none;
  }
  body.map-active #topbar .top-social,
  body.map-active #topbar .searchwrap {
    display: none;
  }
  body.map-active #overrides-btn,
  body.map-active #data-source,
  body.map-active #export-btn {
    display: none;
  }
  .map-toolbar {
    gap: 0.375rem;
    padding: 0.375rem;
  }
  .map-toolbar button,
  .map-toolbar select {
    min-height: 2.5rem;
  }
  .map-toolbar select {
    max-width: 44vw;
    flex: 1;
  }
  .map-inspection-toolbar {
    width: 100%;
  }
  .map-inspection {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(21.25rem, 100%);
    box-sizing: border-box;
    z-index: 2;
  }
  .map-options label {
    min-height: 2.5rem;
  }
  .map-status {
    font-size: 0.6875rem;
  }
}
/* a load in progress, the same on every page (a page opening, Fashion's places, a map update): a ring alone,
   no words and nothing behind it, that fills, or spins while the load cannot say how far it is (what it
   loads is its aria-label). It never takes a tap. */
.load-card {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  pointer-events: none;
}
.load-card[hidden] {
  display: none;
}
.load-card svg {
  width: 2.5rem;
  height: 2.5rem;
  transform: rotate(-90deg);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.load-card circle {
  fill: none;
  stroke-width: 3.5;
}
.load-card .pl-track {
  stroke: var(--line);
}
.load-card .pl-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 119.4;
  stroke-dashoffset: 119.4;
  transition: stroke-dashoffset 0.25s;
}
.load-card.spin svg {
  animation: load-card-spin 1s linear infinite;
}
.load-card.spin .pl-fill {
  stroke-dashoffset: 84;
  transition: none;
}
@keyframes load-card-spin {
  to {
    transform: rotate(270deg);
  }
}
/* a page that could not be loaded: its one line, where the ring was */
.page-failed {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 4;
  max-width: calc(100% - 2rem);
  text-align: center;
  color: var(--fg1);
  font-size: 0.8125rem;
}
@media (prefers-reduced-motion: reduce) {
  .load-card.spin svg {
    animation-duration: 3s;
  }
}

/* each tool's name in its own colour: in the top bar while it shows, and in the tool menu (the landing page's Atlas stays blue) */
:root[data-tool='fashion'] .tool-switch-btn .brand-sub,
.tool-switch-item[data-tool='fashion'] .brand-sub {
  color: var(--fashion);
}
:root[data-tool='maps'] .tool-switch-btn .brand-sub,
.tool-switch-item[data-tool='maps'] .brand-sub {
  color: var(--maps);
}
:root[data-tool='data'] .tool-switch-btn .brand-sub,
.tool-switch-item[data-tool='data'] .brand-sub {
  color: var(--data);
}
:root[data-tool='pocket'] .tool-switch-btn .brand-sub,
.tool-switch-item[data-tool='pocket'] .brand-sub {
  color: var(--pocket);
}
:root[data-tool='merchant'] .tool-switch-btn .brand-sub,
.tool-switch-item[data-tool='merchant'] .brand-sub {
  color: var(--merchant);
  font-weight: 800;
}
.tool-switch-item[data-tool='adventure'] .brand-sub {
  color: var(--adventure);
}

/* the arrow out of a box after a link to another site (icons.tsx ExternalIcon), drawn in lines */
.ext-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
/* the site's foot (SiteFoot.tsx), under the landing page and Brighter Pocket's page (here, not in their own sheets:
   a page's own is off while another shows). The game on Steam, in Steam's own colours (its dark blues and its light
   blue), laid out as the Discord beside it */
.site-steam {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem 0.875rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, #171a21 0%, #1b2838 60%, #2a475e 100%);
  border: 1px solid #2a475e;
  color: #c7d5e0;
  text-decoration: none;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.site-steam svg:first-child {
  color: #fff;
}
.site-steam b {
  color: #fff;
}
.site-steam .site-discord-go {
  color: #66c0f4;
  display: flex;
}
.site-steam:hover {
  filter: brightness(1.15);
  text-decoration: none;
  transform: translateY(-1px);
}
.site-steam:active {
  transform: scale(0.985);
}
.site-steam:focus-visible {
  outline: 2px solid #66c0f4;
  outline-offset: 2px;
}
/* the game and the Discord, side by side (stacked on phones) */
.site-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}
/* the Discord, in Discord's colour */
.site-discord {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem 0.875rem 1rem;
  border-radius: 0.75rem;
  background: #5865f2;
  color: #fff;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}
.site-discord:hover {
  background: #4752c4;
  text-decoration: none;
  transform: translateY(-1px);
}
.site-discord:active {
  transform: scale(0.985);
}
.site-discord:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.site-discord svg {
  flex: none;
}
.site-discord-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.site-discord-text b {
  font-size: 0.875rem;
}
.site-discord-text span {
  font-size: 0.75rem;
  opacity: 0.85;
}
.site-discord-go {
  font-size: 1rem;
  margin-left: auto;
}
/* the foot itself: within the page's content width (--foot-width, the landing page's by default), the game and the
   Discord, then the mark and the fan-project line */
.site-foot {
  width: min(var(--foot-width, 73.75rem), 100%);
  margin: 0 auto;
  padding: 0 1.25rem 1.625rem;
}
.site-foot-in {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.125rem;
  border-top: 1px solid var(--line);
  color: var(--fg2);
  font-size: 0.78125rem;
  line-height: 1.5;
}
.site-foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  color: var(--fg1);
  font-weight: 600;
  white-space: nowrap;
}
/* (the name as the tool switch sets it: the tool in capitals, in the blue of the mark's A) */
.site-foot-brand .brand-sub {
  margin-left: 0.125rem;
  color: var(--accent);
}
.site-foot-note {
  flex: 1;
  min-width: 15rem;
}
@media (max-width: 900px) {
  .site-links {
    gap: 0.875rem;
  }
  .site-foot {
    padding: 0 0.875rem 1.25rem;
  }
  .site-foot-in {
    margin-top: 1.25rem;
  }
}
@media (max-width: 599px) {
  .site-links {
    grid-template-columns: 1fr;
  }
  .site-foot-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }
  .site-foot-note {
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-steam,
  .site-discord {
    transition: none;
  }
}
