/* The website's shared parts (ledger B292, slice S2): the game's Stone Rim parts (client/src/ui/stone-rim.css) on a white
   page, as the user approved them in round 4 of the website page (docs/plans/website-2026-10-20/page/mocks/site-r3.css,
   approved Oct 21). Colours, bevels, buttons and type are the game's own values: body 16 px, section titles 34 px, the
   main button 48 px high, content 1120 px wide. The fonts are the game's own files (/fonts, as legal.css loads them). */
@font-face { font-family: 'Geist'; src: url('/fonts/geist-latin-wght.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  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: 'Geist'; src: url('/fonts/geist-latin-ext-wght.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Press Start 2P'; src: url('/fonts/press-start-2p-latin.woff2') format('woff2'); font-display: swap; }

:root {
  --sr-font: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --sr-numeral: 'Press Start 2P', ui-monospace, monospace;
  --sr-ink: #EEF3F8; --sr-muted: #AEBBC8; --sr-faint: #A5B3C2;
  --sr-panel: rgba(14, 20, 28, .78); --sr-glass: rgba(12, 17, 24, .84); --sr-glass-light: rgba(12, 17, 24, .72);
  --sr-raised: rgba(255, 255, 255, .08); --sr-inset: rgba(2, 5, 9, .55); --sr-line: rgba(200, 220, 240, .14); --sr-line-hi: rgba(200, 220, 240, .3);
  --sr-rim: #3B4049; --sr-rim-hi: #59606B; --sr-rim-lo: #1E2227; --sr-outline: #0B0E12;
  --sr-accent: #8FD3FF; --sr-accent-ink: #0F1D07; --sr-ok: #8CCB5E; --sr-warn: #FFB84D; --sr-danger: #FF8A7C;
  --sr-bevel: var(--sr-rim-hi) var(--sr-rim-lo) var(--sr-rim-lo) var(--sr-rim);
  --sr-bevel-raised: var(--sr-rim-hi) var(--sr-rim-lo) var(--sr-rim-lo) var(--sr-rim-hi);
  --sr-era-3: #2FA89A; --sr-era-5: #F2C94C;
  /* The white page: snow white, a cool off-white for alternate bands, the outline's near-black for words. */
  --page: #FFFFFF; --page-2: #F3F6F9; --page-3: #E6ECF2; --text: #11161C; --text-2: #4A5562; --text-3: #6B7785;
  --rule: #DCE3EA; --bid: #3F9B2E; --ask: #D2493C;
  --wide: 1200px; --content: 1120px; --nav-h: 64px;
  /* The eras' colours (packages/inventory/src/catalog.ts, stone-rim.css): a chip's fill and its text on dark. */
  --era-1: #C98145; --era-1-t: #E0A06A; --era-2: #AEBBC8; --era-2-t: #C3CED9; --era-3: #2FA89A; --era-3-t: #4FC7B8;
  --era-4: #9B6BE0; --era-4-t: #B894F0; --era-5: #F2C94C; --era-5-t: #F5D46E;
  /* The market's surface: one dark ground under the header picture, the list and the pair page. */
  --ground: #0F151C; --ground-2: #151D26; --ground-line: rgba(200, 220, 240, .1);
}
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; font-family: var(--sr-font); color: var(--text); background: var(--page); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--content), calc(100% - 64px)); margin: 0 auto; }

/* Phones and tablets (handheld.ts, the mark render.ts sets): the Play buttons name no browser there. */
html:not(.handheld) .on-handheld, .handheld .on-computer { display: none; }

/* ---- Stone Rim parts (the game's values) ---- */
.sr-panel { position: relative; background: var(--sr-panel); border: 4px solid; border-color: var(--sr-bevel); color: var(--sr-ink);
  box-shadow: 0 0 0 2px var(--sr-outline), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 14px 30px rgba(0, 0, 0, .3); }
.sr-plate { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; font-size: 19px; font-weight: 650; letter-spacing: -.015em; color: var(--sr-ink);
  background: var(--sr-rim); border: 3px solid; border-color: var(--sr-bevel-raised); box-shadow: 0 0 0 2px var(--sr-outline), 0 4px 0 rgba(0, 0, 0, .25); }
.sr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 18px; font: 650 15px/1 var(--sr-font);
  color: var(--sr-ink); white-space: nowrap; border: 0; border-radius: 0; cursor: pointer; }
.sr-btn--primary { background: var(--sr-ok); color: var(--sr-accent-ink); box-shadow: 0 0 0 2px var(--sr-outline), inset 3px 3px 0 rgba(255, 255, 255, .3), inset -3px -4px 0 rgba(0, 0, 0, .26); }
.sr-btn--secondary { background: var(--sr-rim); box-shadow: 0 0 0 2px var(--sr-outline), inset 2px 2px 0 rgba(255, 255, 255, .14), inset -2px -2px 0 rgba(0, 0, 0, .35); }
.sr-btn--light { background: #FFFFFF; color: var(--text); box-shadow: 0 0 0 2px var(--sr-outline), inset 2px 2px 0 #FFFFFF, inset -2px -3px 0 rgba(0, 0, 0, .14); }
.sr-btn--lg { height: 48px; padding: 0 22px; font-size: 16.5px; }
.sr-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.sr-btn svg { width: 18px; height: 18px; flex: none; }
.sr-label { font: 650 10.5px/1 var(--sr-font); letter-spacing: .14em; text-transform: uppercase; }
.sr-num { font-weight: 600; font-variant-numeric: tabular-nums; }
.px { font-family: var(--sr-numeral); font-size: 16px; line-height: 16px; letter-spacing: 0; }
.px-32 { font-family: var(--sr-numeral); font-size: 32px; line-height: 32px; }
.sr-key { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; font: 650 11.5px/1 var(--sr-font);
  color: var(--sr-ink); background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 2px var(--sr-outline), inset 2px 2px 0 rgba(255, 255, 255, .22), inset -2px -3px 0 rgba(0, 0, 0, .4); }
/* A picture in a stone frame: the panel's bevel and outline round an in-game picture. */
.frame { position: relative; border: 4px solid; border-color: var(--sr-bevel); background: var(--sr-outline);
  box-shadow: 0 0 0 2px var(--sr-outline), 0 18px 0 -6px rgba(17, 22, 28, .12), 0 24px 48px rgba(17, 22, 28, .18); }
.frame > img, .frame > video { width: 100%; height: 100%; object-fit: cover; }
.sample { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; font: 700 10.5px/1 var(--sr-font); letter-spacing: .14em; text-transform: uppercase;
  color: #7A4A00; background: #FFE7B8; box-shadow: 0 0 0 2px #7A4A00; }

/* ---- The navigation: a stone rim bar, the same on every page ---- */
/* The bar is the glass colour at full strength with no backdrop blur, so the page's words never show through it (the game's
   own top notice does the same: newer-notice.css .top-notice.is-under-bar). */
.nav { position: fixed; z-index: 50; top: 16px; left: 50%; translate: -50% 0; width: min(var(--wide), calc(100% - 32px)); height: var(--nav-h);
  display: flex; align-items: center; gap: 6px; padding: 0 10px 0 14px; background: rgb(12, 17, 24); border: 3px solid; border-color: var(--sr-bevel);
  box-shadow: 0 0 0 2px var(--sr-outline), 0 10px 0 rgba(0, 0, 0, .12); }
.nav .brand { position: relative; display: flex; align-items: center; margin-right: 18px; }
.nav .brand img { position: relative; height: 46px; width: auto; margin: -6px 0 -8px; }
/* The logo's hard shadow with no CSS filter: an outline-coloured copy of the logo, masked by it, 2 px under it. */
.nav .brand::before { content: ''; position: absolute; left: 0; top: -6px; height: 46px; aspect-ratio: 675 / 150; translate: 0 2px;
  background: var(--sr-outline); -webkit-mask: url('/site/logo-lock.webp') 0 0 / 100% 100% no-repeat; mask: url('/site/logo-lock.webp') 0 0 / 100% 100% no-repeat; }
/* (Round 11 C's one-line logo, the island beside FAR WORLDS, 46 px tall: USER B445, the user's approval, Nov 5.) */
.nav .brand img { width: auto; height: 46px; display: block; margin: -6px 18px -8px 0; }
.nav .links { display: flex; gap: 2px; }
.nav .links a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; font: 600 14.5px/1 var(--sr-font); color: var(--sr-muted); }
.nav .links a:hover { color: var(--sr-ink); background: var(--sr-raised); }
.nav .links a[aria-current] { color: var(--sr-ink); box-shadow: inset 0 -3px 0 var(--sr-accent); }
.nav .end { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav.on-white { background: rgba(14, 20, 28, .9); }

/* ---- Footer ---- */
.foot { padding: 48px 0 64px; background: var(--page-2); border-top: 1px solid var(--rule); color: var(--text-2); font-size: 14px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 14px; color: var(--text); font: 650 10.5px/1 var(--sr-font); letter-spacing: .14em; text-transform: uppercase; }
.foot a { display: block; padding: 4px 0; }
.foot .small { margin-top: 18px; font-size: 12.5px; color: var(--text-3); }
/* The footer logo's hard shadow with no CSS filter (shell.ts names the logo's column .foot-brand; the logo is its first line). */
.foot-brand { position: relative; }
.foot-brand > img { position: relative; }
.foot-brand::before { content: ''; position: absolute; left: 0; top: 0; width: 140px; aspect-ratio: 600 / 300; translate: 0 2px; background: #0B0E12;
  -webkit-mask: url('/site/logo-200.webp') 0 0 / 100% 100% no-repeat; mask: url('/site/logo-200.webp') 0 0 / 100% 100% no-repeat; }

/* ---- Pixel particles (particles.js draws into these canvases) ---- */
canvas.pixels { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
@media (prefers-reduced-motion: reduce) { canvas.pixels { display: none; } }

/* ---- Round 3: item art and tier chips (the game's own: an era's colour, the era ink, a 2 px outline) ---- */
/* Item art from media/r3/items.webp (the game's item sheet, 64 px cells, one row). --i is the cell, --s the drawn size. */
.it { --s: 40px; display: inline-block; flex: none; width: var(--s); height: var(--s); image-rendering: pixelated;
  background: url('/site/r3/items.webp') calc(var(--i) * var(--s) * -1) 0 / calc(var(--items) * var(--s)) var(--s) no-repeat; }
:root { --items: 18; }
.tier { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; font: 700 11.5px/1 var(--sr-font); font-variant-numeric: tabular-nums;
  color: #16110B; background: var(--era); box-shadow: 0 0 0 2px var(--sr-outline); white-space: nowrap; }
.tier[data-era="1"] { --era: var(--era-1); } .tier[data-era="2"] { --era: var(--era-2); } .tier[data-era="3"] { --era: var(--era-3); }
.tier[data-era="4"] { --era: var(--era-4); } .tier[data-era="5"] { --era: var(--era-5); }
.tier.none { color: var(--sr-muted); background: transparent; box-shadow: inset 0 0 0 1px var(--sr-line-hi); }
/* The market's 24 h change: a filled pill, green up, red down. */
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 24px; padding: 0 8px; font: 650 13px/1 var(--sr-font);
  font-variant-numeric: tabular-nums; }
.pill.up { color: #0F1D07; background: var(--sr-ok); } .pill.down { color: #2A0A06; background: var(--sr-danger); }

/* A line the page writes in capitals: the words stay as the translators have them. */
.caps { text-transform: uppercase; }

/* ---- Stepped block edges between sections (edges.ts draws them) ---- */
.edge { position: absolute; left: 0; right: 0; height: 72px; z-index: 5; pointer-events: none; }
.edge.top { top: -1px; } .edge.bottom { bottom: -1px; }
.edge svg, .edge canvas, .field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }

/* ---- The footer's language list (the user, Oct 21: "A simple language switch for the site") ---- */
.foot .langs { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 16px; font-size: 12.5px; }
.foot .langs a { display: inline; padding: 2px 0; color: var(--text-3); }
.foot .langs a:hover, .foot .langs a[aria-current] { color: var(--text); }
.foot .langs a[aria-current] { box-shadow: inset 0 -2px 0 var(--sr-accent); }

/* ---- Phone width (the orchestrator's answer (a), Oct 21: the approved parts stacked in one column, no new parts and no
   new words) ---- */
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .nav { top: 8px; width: calc(100% - 16px); height: auto; flex-wrap: wrap; gap: 4px 6px; padding: 6px 8px 4px 10px; }
  .nav .brand { margin-right: auto; }
  .nav .brand img { height: 28px; margin: -2px 0 -4px; }
  .nav .brand::before { top: -2px; height: 28px; }
  .nav .end { margin-left: 0; gap: 8px; }
  .nav .links { order: 3; width: calc(100% + 18px); margin: 0 -10px -4px -10px; padding: 0 4px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--sr-line); }
  .nav .links a { height: 38px; padding: 0 10px; font-size: 14px; flex: none; }
  .foot { padding: 36px 0 48px; }
  .foot .wrap { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot .wrap > :first-child { grid-column: 1 / -1; }
}
