/* ---------- self-hosted fonts (no external requests) ---------- */
@font-face { font-family: 'Rubik Distressed'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/rubik-distressed-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/rubik-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/rubik-cyrillic-800-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/onest-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/onest-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/onest-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/fonts/caveat-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Rubik Distressed'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/rubik-distressed-latin-400-normal.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: 'Rubik'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/rubik-latin-700-normal.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: 'Rubik'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/rubik-latin-800-normal.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: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/onest-latin-400-normal.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: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/onest-latin-500-normal.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: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/onest-latin-600-normal.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: 'Caveat'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/fonts/caveat-latin-700-normal.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; }

/* DayNight v4: after the collapse. Riveted steel, rust, concrete, spray paint, torn paper. */
:root {
  --bg: #0f1110; --bg2: #171a18; --steel: #272b29; --steel2: #343936; --line: #454b46; --ink: #ddd7c7; --mute: #a19f90;
  --rust: #19d3c5; --rust2: #0b8a82; --on: #8bb04a; --off: #d9502e; --brass: #19d3c5; --fill-a: #19d3c5;
  --hazard: repeating-linear-gradient(-45deg, #19d3c5 0 11px, #0b0c0b 11px 22px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  --rivets: radial-gradient(circle at 11px 11px, #9b9c94 0 2px, #4a4d49 3px, transparent 4.5px), radial-gradient(circle at calc(100% - 11px) 11px, #9b9c94 0 2px, #4a4d49 3px, transparent 4.5px), radial-gradient(circle at 11px calc(100% - 11px), #9b9c94 0 2px, #4a4d49 3px, transparent 4.5px), radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), #9b9c94 0 2px, #4a4d49 3px, transparent 4.5px);
  --display: 'Rubik Distressed', 'Rubik Dirt', 'Onest', system-ui, sans-serif;
  --strong: 'Rubik', 'Onest', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Marck Script', cursive;
  color-scheme: dark;
}
:root[data-theme='day'] {
  --bg: #cfcab9; --bg2: #c2bdab; --steel: #e0dbc9; --steel2: #ebe6d5; --line: #8f8b78; --ink: #1d1e1b; --mute: #55564c;
  --rust: #a8431a; --rust2: #7a2b0e; --on: #4a6f1c; --off: #a8431a; --brass: #a8431a; --fill-a: #a8431a;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; position: relative; }
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--grain); opacity: .9; mix-blend-mode: overlay; }
body > * { position: relative; z-index: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--rust); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { top: 8px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: .01em; }
h2::after { content: ''; display: block; width: 84px; height: 7px; margin-top: 10px; background: var(--hazard); }
.about h2::after { margin-left: auto; margin-right: auto; }

/* ---------- riveted steel plate ---------- */
.plate { position: relative; background: linear-gradient(180deg, var(--steel2), var(--steel)); border: 1px solid #070807; box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 0 0 1px rgba(0,0,0,.35), 0 8px 0 -3px rgba(0,0,0,.45); }
.plate::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--rivets); }
.plate::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; pointer-events: none; background: linear-gradient(90deg, transparent 0, var(--rust2) 12%, var(--rust) 30%, var(--rust2) 52%, transparent 70%, var(--rust2) 86%, transparent); opacity: .85; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 20px 14px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(6px); }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--hazard); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 24px var(--display); }
.brand-mark { width: 32px; height: 32px; }
.bm-night { fill: #0b0f14; stroke: var(--ink); stroke-width: 1.4; }
.bm-day { fill: #e2672a; }
.nav { display: flex; gap: 22px; margin-left: 18px; flex: 1; }
.nav a { text-decoration: none; color: var(--mute); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover { color: var(--ink); border-color: var(--rust); }
.tools { display: flex; gap: 10px; align-items: center; }
.lang { display: flex; border: 1px solid var(--line); }
.lang button { background: none; border: 0; color: var(--mute); font: 500 13px var(--body); padding: 6px 10px; cursor: pointer; }
.lang button[aria-pressed='true'] { background: var(--rust); color: #fff; }
.theme { width: 34px; height: 34px; background: none; border: 1px solid var(--line); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.theme svg { width: 18px; height: 18px; }
.t-ring { fill: none; stroke: currentColor; stroke-width: 1.6; } .t-half { fill: currentColor; }

/* ---------- hero: one sky, half sunset, half night ---------- */
.hero { max-width: none; margin: 0; position: relative; overflow: hidden; padding: 70px 20px 90px; min-height: 560px;
  background: linear-gradient(104deg, #c8541f 0%, #7b2f19 24%, #251612 45%, #0a0e13 50.5%, #070a0e 100%); }
.hero.has-photo { background-size: cover; background-position: center; }
.ruins { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-in { position: relative; max-width: 1080px; margin: 0 auto; }
.hero-title { font-size: clamp(56px, 13vw, 150px); letter-spacing: .01em; line-height: .95; margin: 0 0 6px;
  background: linear-gradient(90deg, #ffd9a0 0 50%, #e9eef3 50% 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 rgba(0,0,0,.45)); }
.hero-lead { margin: 0 0 22px; font: 500 clamp(17px, 2.4vw, 22px) var(--body); color: #f1e3c8; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.count-plate { padding: 24px 30px 26px; max-width: 560px; color: var(--ink); }
.hero-count { display: flex; align-items: baseline; gap: 14px; }
.hero-num { font: 400 clamp(64px, 12vw, 118px)/1 var(--display); color: #f3ead6; letter-spacing: -.01em; text-shadow: 0 3px 0 #000; }
.hero-of { font: 400 clamp(20px, 3vw, 28px) var(--display); color: var(--mute); }
.hero-sub { margin: 8px 0 0; color: var(--mute); max-width: 46ch; }
.share { display: none; height: 8px; margin-top: 16px; gap: 3px; }
.share i { background: var(--rust); } .share i:nth-child(2) { background: var(--on); } .share i:nth-child(3) { background: #d7d1c0; } .share i:nth-child(4) { background: var(--mute); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--hazard); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; text-decoration: none; cursor: pointer; font: 600 15px var(--body); letter-spacing: .02em;
  color: #f1ece0; background: #1b1e1c; border: 0; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, transform .15s; }
.btn:hover { background: #2a2e2b; }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--rust); color: #fff; box-shadow: none; }
.btn-main:hover { background: #d95f2b; }
.btn-off { opacity: .55; cursor: not-allowed; }
.soon { font: 500 11px var(--body); border: 1px solid currentColor; padding: 1px 6px; }

/* ---------- sections ---------- */
section { max-width: 1080px; margin: 0 auto; padding: 64px 20px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.updated { margin: 0; color: var(--mute); font-size: 13px; }
.lead { color: var(--mute); max-width: 64ch; }

/* ---------- server rows ---------- */
.rows { display: grid; gap: 22px; }
details.row > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 104px minmax(0, 1fr) minmax(90px, 160px) auto 24px; gap: 20px; align-items: center; padding: 22px 28px; }
details.row > summary::-webkit-details-marker { display: none; }
.row { transition: transform .15s; }
.row:hover { transform: translateY(-2px); }
.thumb { position: relative; width: 104px; height: 64px; overflow: hidden; border: 2px solid #0a0b0a; box-shadow: 0 0 0 1px var(--line); }
.thumb svg, .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r-title { font-size: clamp(22px, 2.8vw, 30px); }
.r-map { margin: 4px 0 0; color: var(--mute); font-size: 14px; }
.meter { height: 8px; background: #0b0c0b; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--hazard); transition: width .5s; }
.r-count { text-align: right; min-width: 92px; }
.r-num { font: 400 34px/1 var(--display); }
.r-max { color: var(--mute); }
.r-state { display: block; font-size: 12px; color: var(--mute); margin-top: 3px; }
.row[data-state='on'] .r-state::before, .srvpage[data-state='on'] .r-state::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--on); border-radius: 50%; margin-right: 6px; box-shadow: 0 0 8px var(--on); }
.row[data-state='off'] .r-state::before, .srvpage[data-state='off'] .r-state::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--off); border-radius: 50%; margin-right: 6px; }
.chev { width: 20px; height: 20px; fill: none; stroke: var(--rust); stroke-width: 2.4; transition: transform .2s; }
.row[open] .chev { transform: rotate(180deg); }
.row-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; padding: 8px 30px 34px; }
.row-body .cover { grid-column: 1 / -1; max-height: 300px; overflow: hidden; border: 2px solid #0a0b0a; }
.row-body .cover img { width: 100%; height: 300px; object-fit: cover; }
.row-body .more { grid-column: 1 / -1; }
.r-desc { margin: 0 0 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.tags li { font-size: 13px; padding: 3px 10px; border: 1px solid var(--line); color: var(--mute); background: rgba(0,0,0,.18); }
.field-label { margin: 0 0 6px; font-size: 13px; color: var(--mute); }
.copy-field { display: flex; border: 1px solid #070807; box-shadow: 0 0 0 1px var(--line); }
.copy-field code { flex: 1; padding: 9px 12px; font: 500 14px ui-monospace, Consolas, monospace; overflow-wrap: anywhere; background: #0c0e0d; color: #e4dcc8; }
.copy-field button { border: 0; border-left: 1px solid #070807; background: var(--rust); color: #fff; padding: 0 16px; font: 600 13px var(--body); cursor: pointer; }
.copy-field button:hover { background: #d95f2b; }
.connect + .connect { margin-top: 12px; }
.mods-title { font-size: 20px; margin: 0 0 10px; }
.mods { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mods a { color: #f0a070; text-underline-offset: 3px; }
:root[data-theme='day'] .mods a { color: var(--rust); }
.mods p { margin: 2px 0 0; color: var(--mute); font-size: 13px; }
.who, .spark { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 12px; font-size: 13px; background: #0c0e0d; color: #e4dcc8; box-shadow: inset 3px 0 0 var(--rust); overflow-wrap: anywhere; }
.spark svg { width: 100%; max-width: 360px; height: 54px; display: block; }
.spark path.area { fill: color-mix(in srgb, var(--rust) 26%, transparent); }
.spark path.line { fill: none; stroke: var(--rust); stroke-width: 1.8; vector-effect: non-scaling-stroke; }

/* ---------- about: a note taped to the wall ---------- */
.about { padding-top: 90px; }
.wire { display: block; width: 100%; max-width: 600px; height: 26px; margin: 0 auto 18px; position: relative; z-index: 2; }
.note { position: relative; max-width: 700px; margin: 0 auto; padding: 46px 40px 54px; text-align: center; color: #2a2620; transform: rotate(-.8deg);
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 30%), #d3cab0; box-shadow: 0 16px 30px rgba(0,0,0,.55);
  clip-path: polygon(0 0, 100% 0, 100% 96%, 96% 98.5%, 91% 96.5%, 85% 99%, 78% 97%, 70% 99%, 62% 96.5%, 54% 98.5%, 46% 96.5%, 38% 99%, 30% 97%, 22% 98.8%, 14% 96.5%, 7% 98.6%, 0 96%); }
.note::before { content: ''; position: absolute; inset: 0; background: var(--grain); opacity: .8; mix-blend-mode: multiply; pointer-events: none; }
.tape { position: absolute; top: -4px; width: 110px; height: 30px; background: rgba(196,190,160,.62); box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.t1 { left: 8%; transform: rotate(-6deg); } .t2 { right: 8%; transform: rotate(5deg); }
.note h2 { color: #2a1a12; }
.note h2::after { margin-left: auto; margin-right: auto; }
.note p { font: 500 clamp(20px, 2.4vw, 25px)/1.35 var(--hand); max-width: 52ch; margin: 14px auto 0; color: #2a2620; }
.note .btn { margin-top: 26px; }

.steps { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; max-width: 70ch; margin: 22px 0 0; }
.steps li { counter-increment: s; position: relative; padding-left: 62px; min-height: 44px; display: flex; align-items: center; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; font: 400 26px var(--display); color: #fff; background: var(--rust); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.support { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 64px; padding: 32px 36px; }
.support h2 { font-size: 28px; margin-bottom: 6px; }
.support h2::after { display: none; }
.support p { margin: 0 0 6px; color: var(--mute); }
.perks-title { font-weight: 600; color: var(--ink) !important; margin-top: 12px !important; }
.perks { margin: 0; padding-left: 18px; color: var(--mute); }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.gal-grid button { padding: 0; border: 2px solid #070807; background: none; cursor: pointer; }
.gal-grid img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { max-width: 94vw; max-height: 92vh; }
.foot { max-width: 1080px; margin: 70px auto 0; padding: 28px 20px 44px; color: var(--mute); font-size: 13px; position: relative; }
.foot::before { content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 6px; background: var(--hazard); opacity: .7; }

/* ---------- server page ---------- */
.srvpage { max-width: 1080px; margin: 0 auto; padding: 30px 20px 0; }
.back { display: inline-block; color: var(--mute); text-decoration: none; margin-bottom: 18px; }
.back:hover { color: var(--rust); }
.s-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 30px 38px; }
.s-head h1 { font-size: clamp(34px, 5.6vw, 62px); }
.s-head .r-map { font-size: 15px; }
.s-count { text-align: right; }
.s-count .r-num { font-size: clamp(44px, 7vw, 70px); }
.s-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 34px; margin-top: 30px; }
.s-sec { margin-top: 56px; }
.s-sec > h2 { margin-bottom: 8px; }
.cat { font-size: 22px; color: #f0a070; margin: 34px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
:root[data-theme='day'] .cat { color: var(--rust); }
.mech { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.mech-card { display: flex; flex-direction: column; position: relative; background: linear-gradient(180deg, var(--steel2), var(--steel)); border: 1px solid #070807; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 0 -2px rgba(0,0,0,.45); }
.mech-card::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 0; }
.mech-card .body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; border-top: 4px solid var(--rust); }
.mech-card h3 { font-size: 21px; }
.mech-card p { margin: 0; color: var(--mute); font-size: 14.5px; }
.also { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--mute); }
.also a { text-decoration: none; padding: 1px 8px; color: #f0a070; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme='day'] .also a { color: var(--rust); }
.also a:hover { box-shadow: inset 0 0 0 1px var(--rust); }

.vslot { position: relative; aspect-ratio: 16 / 9; background: #080a09; display: grid; place-items: center; overflow: hidden; }
.vslot.big { border: 2px solid #070807; box-shadow: 0 0 0 1px var(--line), 0 8px 0 -3px rgba(0,0,0,.5); }
.vslot.empty::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, transparent 2px 4px), radial-gradient(ellipse at center, #1c211e 0, #070908 75%); }
.vslot .vlabel { position: relative; text-align: center; color: var(--mute); font-size: 13px; padding: 0 12px; }
.play { width: 54px; height: 54px; border: 2px solid var(--rust); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; position: relative; color: var(--rust); background: rgba(0,0,0,.5); }
.play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }
.vslot.big .play { width: 74px; height: 74px; }
.vslot button.yt { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000 center / cover no-repeat; display: grid; place-items: center; }
.vslot button.yt .play { margin: 0; }
.vslot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 820px) {
  .top { flex-wrap: wrap; row-gap: 6px; }
  .brand { flex: 1; }
  .nav { order: 3; flex: 0 0 100%; margin: 0; gap: 20px; overflow-x: auto; white-space: nowrap; }
  .nav a { font-size: 15px; }
  details.row > summary { grid-template-columns: 76px minmax(0, 1fr) auto 20px; gap: 12px; padding: 18px 16px; }
  details.row > summary .meter { display: none; }
  .thumb { width: 76px; height: 50px; }
  .row-body, .s-cols { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .s-cols { padding: 0; }
  .s-head { grid-template-columns: 1fr; padding: 24px 22px; }
  .s-count { text-align: left; }
  .count-plate { padding: 20px 20px 22px; }
  .hero { padding: 44px 20px 80px; min-height: 0; }
  .note { padding: 40px 22px 50px; }
  .support { padding: 26px 22px; }
}

/* readable bold face for numbers and small headings; the distressed face stays for the big titles */
.hero-num, .hero-of, .r-num, .r-title, .mods-title, .mech-card h3, .cat, .brand, .steps li::before, .support h2 { font-family: var(--strong); font-weight: 800; letter-spacing: 0; }
.hero-num { font-size: clamp(60px, 11vw, 108px); }
.cat { font-weight: 700; }
.s-head h1, .hero-title, h2 { font-family: var(--display); }
.support h2 { font-size: 26px; }

/* ---------- crafts ---------- */
.craft-bar { margin: 26px 0 18px; display: grid; gap: 14px; }
.craft-bar input { width: 100%; max-width: 460px; padding: 12px 14px; font: 500 16px var(--body); color: var(--ink); background: #0c0e0d; border: 1px solid #070807; box-shadow: 0 0 0 1px var(--line); }
:root[data-theme='day'] .craft-bar input { background: #f5f1e3; }
.craft-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cc { font: 600 13px var(--body); padding: 7px 14px; color: var(--ink); background: var(--steel); border: 0; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.cc[aria-pressed='true'] { background: var(--rust); color: #fff; box-shadow: none; }
.craft-list { display: grid; gap: 18px; }
.craft { padding: 20px 26px 24px; }
.craft h3 { font-size: 21px; margin-bottom: 14px; }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.formula .op { font: 800 30px var(--strong); color: var(--rust); padding: 0 2px; }
.grp { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 8px 10px; background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 1px var(--line); }
.grp .or { align-self: center; font-size: 12px; color: var(--mute); }
.grp.res { background: color-mix(in srgb, var(--rust) 18%, transparent); box-shadow: inset 0 0 0 1px var(--rust); }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 92px; text-decoration: none; text-align: center; }
.tile .ico { position: relative; width: 72px; height: 72px; display: grid; place-items: center; background: linear-gradient(160deg, #3b413d, #1c201e); box-shadow: inset 0 0 0 1px #0a0b0a, inset 0 1px 0 rgba(255,255,255,.1); overflow: hidden; }
.tile .ico b { font: 800 22px var(--strong); color: color-mix(in srgb, var(--rust) 85%, #fff); }
.tile .ico img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.tile:hover .ico { box-shadow: inset 0 0 0 2px var(--rust); }
.tile .nm { font-size: 12.5px; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.tile .qty { position: absolute; top: 2px; right: 8px; padding: 1px 6px; font: 800 13px var(--strong); color: #fff; background: var(--rust); }
.tile .toolnote { font-size: 11px; color: var(--mute); }
@media (max-width: 820px) { .craft { padding: 16px 14px 18px; } .tile { width: 80px; } .tile .ico { width: 62px; height: 62px; } .formula { gap: 8px; } }

.rules-list { list-style: none; counter-reset: r; display: grid; gap: 16px; margin: 26px 0; padding: 0; }
.rules-list li { counter-increment: r; padding: 18px 24px 22px 84px; }
.rules-list li::marker { content: ''; }
.rules-list li > :is(h3, p) { position: relative; }
.rules-list li h3 { font-size: 20px; margin-bottom: 6px; }
.rules-list li p { margin: 0; line-height: 1.55; max-width: 70ch; }
.rules-list li .n, .rules-list li { --n: counter(r); }
.rules-list li > h3::before { content: counter(r); position: absolute; left: -60px; top: -4px; width: 44px; height: 44px; display: grid; place-items: center; font: 800 24px var(--strong); color: #fff; background: var(--rust); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
@media (max-width: 820px) { .rules-list li { padding: 16px 16px 20px 68px; } .rules-list li > h3::before { left: -50px; width: 38px; height: 38px; font-size: 20px; } }

/* ---------- leaderboard ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0; }
.stat { padding: 18px 20px 24px; display: grid; gap: 4px; }
.stat-n { font: 800 44px/1 var(--strong); color: var(--rust); }
.stat-l { font-size: 14px; color: var(--mute); }
.longshot { margin: 6px 0 18px; padding: 22px 26px 28px; display: grid; gap: 4px; background: linear-gradient(100deg, color-mix(in srgb, var(--rust) 30%, var(--steel)), var(--steel2) 60%); }
.ls-n { font: 800 clamp(44px, 9vw, 84px)/1 var(--strong); color: var(--ink); }
.ls-who { font-size: 16px; }
.board-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bcol { padding: 20px 22px 26px; }
.bcol h3 { font-size: 20px; margin-bottom: 12px; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rank li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.rank .pos { font: 800 18px var(--strong); color: var(--mute); }
.rank li.first .pos { color: var(--rust); }
.rank .who { display: grid; min-width: 0; }
.rank .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .who small { color: var(--mute); font-size: 12.5px; }
.rank .val { font: 700 15px var(--strong); }
@media (max-width: 820px) { .stats { gap: 8px; } .stat { padding: 14px 12px 20px; } .stat-n { font-size: 30px; } .stat-l { font-size: 12px; } .board-cols { grid-template-columns: 1fr; } }

.bcol { max-width: none; margin: 0; }
.rank .val { font-size: 20px; color: var(--rust); }

.quiet { display: flex; gap: 20px; align-items: center; margin: 6px 0 18px; padding: 22px 26px 28px; background: repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 14px, transparent 14px 28px), linear-gradient(180deg, var(--steel2), var(--steel)); }
.quiet svg { flex: 0 0 64px; width: 64px; height: 64px; color: var(--rust); }
.quiet h3 { font-size: 26px; margin-bottom: 4px; }
.quiet p { margin: 0; max-width: 58ch; color: var(--mute); }
.longshot.ghost .ls-n { color: var(--mute); opacity: .55; }
.rank li.ghost { opacity: .45; }
.rank li.ghost .who b { font-weight: 500; font-style: italic; }
.stat { background-image: linear-gradient(180deg, var(--steel2), var(--steel)); }
@media (max-width: 820px) { .quiet { flex-direction: column; align-items: flex-start; gap: 10px; } .quiet h3 { font-size: 22px; } }
.stat { align-content: start; }

.tile .ico .glw { display: grid; place-items: center; width: 100%; height: 100%; color: #d9d2bd; }
.tile .ico .gl { width: 74%; height: 74%; }
.tile .ico .gl .a { stroke: var(--rust2, #e2672a); }
:root[data-theme='day'] .tile .ico .glw { color: #e9e2cd; }
.res .tile .ico .gl .a { stroke: #ff8a4a; }
.tile .ico .gl .a { stroke: #f0763a; }
