:root {
  --bg: #0b0b0c;
  --bg1: #101012;
  --bg2: #151518;
  --line: #222226;
  --line2: #2e2e33;
  --ink: #ededef;
  --dim: #a1a1a8;
  --mute: #82828b;
  --acc: #5fb236;
  --acc-dim: rgba(95, 178, 54, 0.14);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gut: 24px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; font-size: clamp(15px, 0.45vw + 10px, 21px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 0.875rem/1.5 var(--sans);
  font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img { display: block; }
button { font: inherit; color: inherit; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.mute { color: var(--mute); }
.wrap { width: min(100% - 2 * var(--gut), 76rem); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; height: 3.25rem; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.625rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.logo svg { width: 1.25rem; height: 1.25rem; image-rendering: pixelated; shape-rendering: crispEdges; }
.logo .px { font-family: var(--mono); font-size: 0.75rem; color: var(--mute); font-weight: 500; }
.nav { display: flex; gap: 1.25rem; color: var(--dim); font-size: 0.8125rem; }
.nav a:hover { color: var(--ink); }
.bar .status { margin-left: auto; }
.status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--dim); white-space: nowrap; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--mute); flex: none; }
.dot.on { background: var(--acc); }

/* ---------- sections ---------- */
section { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
h2 { font-size: 0.9375rem; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.sec-h .aside { font-size: 0.8125rem; color: var(--mute); }
.card { border: 1px solid var(--line); background: var(--bg1); border-radius: 0.375rem; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); min-height: 2.875rem; }
.card-h h3 { margin: 0; font-size: 0.8125rem; font-weight: 500; }
.card-b { padding: 1rem; }
.empty { color: var(--mute); font-size: 0.8125rem; padding: 1.75rem 1rem; text-align: center; }

/* ---------- hero ---------- */
.hero { padding: 3rem 0 2.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32.5rem); gap: 3rem; align-items: end; }
.hero h1 { font-size: 2.5rem; line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 0.75rem; }
.hero p.lede { color: var(--dim); margin: 0 0 1.5rem; max-width: 56ch; font-size: 0.9375rem; }
.addr { display: grid; gap: 0.5rem; max-width: 26.25rem; }
.addr-row { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 0.375rem; background: var(--bg1); min-width: 0; }
.addr-row .lab { font-size: 0.75rem; color: var(--mute); padding: 0 0.75rem; width: 4.75rem; flex: none; border-right: 1px solid var(--line); line-height: 2.5rem; }
.addr-row .val { font-family: var(--mono); font-size: 0.8125rem; padding: 0 0.75rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-row .val span { color: var(--mute); }
.copy { border: 0; border-left: 1px solid var(--line); background: none; height: 2.5rem; padding: 0 0.875rem; font-size: 0.75rem; color: var(--dim); cursor: pointer; flex: none; border-radius: 0 0.375rem 0.375rem 0; }
.copy:hover { color: var(--ink); background: var(--bg2); }
.copy.ok { color: var(--acc); }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 0.375rem; background: var(--line); overflow: hidden; }
.kpi { padding: 0.875rem 1rem; background: var(--bg1); min-width: 0; }
.kpi .k { font-size: 0.75rem; color: var(--mute); margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.375rem; }
.kpi .v { font-family: var(--mono); font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v small { font-size: 0.8125rem; color: var(--mute); letter-spacing: 0; }
.kpi .v.txt { font-family: var(--sans); font-size: 1rem; line-height: 1.875rem; letter-spacing: -0.01em; }

/* ---------- totals ---------- */
.totals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 0.375rem; background: var(--bg1); margin-bottom: 0.5rem; }
.totals > div { padding: 1rem; min-width: 0; }
.totals > div + div { border-left: 1px solid var(--line); }
.totals .k { font-size: 0.75rem; color: var(--mute); }
.totals .v { font-family: var(--mono); font-size: 1.375rem; letter-spacing: -0.02em; margin-top: 0.125rem; }
.totals .v small { font-size: 0.75rem; color: var(--mute); margin-left: 0.25rem; letter-spacing: 0; }

/* ---------- live ---------- */
.live-grid { display: grid; grid-template-columns: minmax(0, 22.5rem) minmax(0, 1fr); gap: 1rem; }
.plist { list-style: none; margin: 0; padding: 0; max-height: 32.5rem; overflow-y: auto; }
.plist li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.625rem 1rem; border-bottom: 1px solid var(--line); }
.plist li:last-child { border-bottom: 0; }
.plist .name { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist .name:hover { text-decoration: underline; text-underline-offset: 0.1875rem; text-decoration-color: var(--mute); }
.plist .where { font-size: 0.75rem; color: var(--mute); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist .right { text-align: right; display: grid; gap: 0.25rem; justify-items: end; }
.plist .ses { font-family: var(--mono); font-size: 0.75rem; color: var(--dim); }
.plist .vitals { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.6875rem; color: var(--dim); }
.plist .vitals .held { width: 1.25rem; height: 1.25rem; }
.hp { display: inline-flex; align-items: center; gap: 0.25rem; }
.hp svg { width: 0.5625rem; height: 0.5625rem; }
.av { border-radius: 0.25rem; background: var(--bg2); image-rendering: pixelated; object-fit: cover; flex: none; }
.av-36 { width: 2.25rem; height: 2.25rem; }
.av-24 { width: 1.5rem; height: 1.5rem; border-radius: 0.1875rem; }
.av-20 { width: 1.25rem; height: 1.25rem; border-radius: 0.1875rem; }
.tag { display: inline-block; font-size: 0.6875rem; line-height: 1.125rem; padding: 0 0.375rem; border: 1px solid var(--line2); border-radius: 0.25rem; color: var(--dim); white-space: nowrap; font-family: var(--sans); }
.tag.on { color: var(--acc); border-color: rgba(95, 178, 54, 0.4); }
.map-frame { position: relative; height: 32.5rem; border-radius: 0 0 0.375rem 0.375rem; overflow: hidden; background: var(--bg); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.link { font-size: 0.75rem; color: var(--dim); border: 1px solid var(--line2); border-radius: 0.25rem; padding: 0.1875rem 0.5rem; white-space: nowrap; }
.link:hover { border-color: var(--mute); }

/* ---------- charts ---------- */
.chart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.chart-grid .wide { grid-column: 1 / -1; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 0.3125rem; overflow: hidden; }
.seg button { border: 0; background: none; padding: 0.25rem 0.75rem; font-size: 0.75rem; color: var(--mute); cursor: pointer; font-family: var(--mono); }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button[aria-pressed='true'] { color: var(--ink); background: var(--bg2); }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .ax { fill: var(--mute); font: 0.625rem var(--mono); }
.chart .grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart .ln { fill: none; stroke: var(--acc); stroke-width: 1.5; stroke-linejoin: round; }
.chart .ln.alt { stroke: var(--ink); opacity: 0.75; }
.chart .area { fill: var(--acc); opacity: 0.08; }
.chart .down { fill: url(#hatch); }
.chart .xh { stroke: var(--mute); stroke-width: 1; shape-rendering: crispEdges; }
.chart .bar { fill: var(--acc); }
.chart .bar.zero { fill: var(--line2); }
.chart .bar:hover, .chart .bar.hl { fill: var(--ink); }
.chart-meta { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--mute); margin-bottom: 0.5rem; flex-wrap: wrap; }
.chart-meta b { color: var(--ink); font-weight: 500; font-family: var(--mono); }
.chart-sub { font-size: 0.75rem; color: var(--mute); margin: 1.125rem 0 0.5rem; display: flex; justify-content: space-between; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--bg2); border: 1px solid var(--line2); border-radius: 0.3125rem; padding: 0.375rem 0.5625rem; font-size: 0.75rem; white-space: nowrap; display: none; }
.tip b { font-weight: 500; }
.heat { display: grid; grid-template-columns: 1.875rem repeat(24, minmax(0, 1fr)); gap: 0.125rem; }
.heat .c { aspect-ratio: 1; border-radius: 0.125rem; background: var(--bg2); }
.heat .l { font: 0.625rem var(--mono); color: var(--mute); align-self: center; }
.heat .h { font: 0.625rem var(--mono); color: var(--mute); text-align: left; }
.legend { display: flex; align-items: center; gap: 0.25rem; font-size: 0.6875rem; color: var(--mute); margin-top: 0.625rem; justify-content: flex-end; }
.legend i { width: 0.625rem; height: 0.625rem; border-radius: 0.125rem; display: inline-block; }

/* ---------- boards ---------- */
.board-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 23.75rem); gap: 1rem; align-items: start; }
.tabs { display: flex; gap: 0.125rem; overflow-x: auto; scrollbar-width: none; padding: 0.5rem 0.5rem 0; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 0.5rem 0.625rem; font-size: 0.8125rem; color: var(--mute); cursor: pointer; white-space: nowrap; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--dim); }
.tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--ink); }
.lb { width: 100%; border-collapse: collapse; }
.lb td { padding: 0.5rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lb tr:last-child td { border-bottom: 0; }
.lb .rk { width: 2.75rem; color: var(--mute); font-family: var(--mono); font-size: 0.75rem; padding-right: 0; }
.lb tr:nth-child(-n+3) .rk { color: var(--ink); }
.lb .who { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.lb .who a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.lb .who a:hover { text-decoration: underline; text-underline-offset: 0.1875rem; text-decoration-color: var(--mute); }
.lb .val { text-align: right; font-family: var(--mono); white-space: nowrap; width: 1%; }
.lb .meter { width: 28%; padding-left: 0; }
.lb .meter div { height: 0.25rem; background: var(--line); border-radius: 0.125rem; overflow: hidden; }
.lb .meter span { display: block; height: 100%; width: 100%; background: var(--acc); transform-origin: left center; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }

.feed { list-style: none; margin: 0; padding: 0; max-height: 35rem; overflow-y: auto; }
.feed li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; gap: 0.625rem; padding: 0.5625rem 1rem; border-bottom: 1px solid var(--line); align-items: start; font-size: 0.8125rem; }
.feed li:last-child { border-bottom: 0; }
.feed .t { font-family: var(--mono); font-size: 0.6875rem; color: var(--mute); white-space: nowrap; padding-top: 0.125rem; }
.feed .msg { min-width: 0; overflow-wrap: anywhere; color: var(--dim); }
.feed .msg a { color: var(--ink); font-weight: 500; }
.feed .msg em { font-style: normal; color: var(--ink); }
.feed .k { font-size: 0.6875rem; color: var(--mute); display: block; }
.feed li.join .k { color: var(--acc); }

/* ---------- join ---------- */
.join-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 0.375rem; background: var(--bg1); }
.join-grid > div { padding: 1.25rem; min-width: 0; }
.join-grid > div + div { border-left: 1px solid var(--line); }
.join-grid h3 { font-size: 0.875rem; margin: 0 0 0.25rem; font-weight: 600; }
.join-grid p { margin: 0 0 0.75rem; color: var(--dim); }
.join-grid ol { margin: 0; padding-left: 1.125rem; color: var(--dim); }
.join-grid li { margin-bottom: 0.375rem; }
code { font-family: var(--mono); font-size: 0.7812rem; background: var(--bg2); border: 1px solid var(--line); border-radius: 0.25rem; padding: 1px 0.3125rem; color: var(--ink); overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--mute); font-size: 0.75rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- player page ---------- */
.back { display: inline-flex; gap: 0.375rem; color: var(--dim); font-size: 0.8125rem; margin-bottom: 1.25rem; }
.back:hover { color: var(--ink); }
.prof { display: grid; grid-template-columns: 13.75rem minmax(0, 1fr); gap: 2rem; align-items: stretch; }
.stage { border: 1px solid var(--line); background: var(--bg1); border-radius: 0.375rem; display: grid; place-items: end center; height: 18.75rem; position: relative; overflow: hidden; }
.stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 1.75rem; border-top: 1px solid var(--line); }
.stage img { height: 15rem; width: auto; margin-bottom: 1.125rem; image-rendering: pixelated; position: relative; z-index: 1; }
.stage .shade { position: absolute; bottom: 1.375rem; width: 6rem; height: 0.75rem; border-radius: 50%; background: #000; opacity: 0.5; z-index: 0; }
.ph { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 0.5rem; }
.ph .av { width: 3rem; height: 3rem; border-radius: 0.375rem; }
.ph h1 { font-size: 2rem; letter-spacing: -0.03em; margin: 0; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.pmeta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; color: var(--dim); font-size: 0.8125rem; margin-bottom: 1.25rem; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stats > div { padding: 0.75rem 0.875rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.stats .k { font-size: 0.75rem; color: var(--mute); }
.stats .v { font-family: var(--mono); font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; gap: 0.625rem; align-items: center; padding: 0.4375rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.8125rem; }
.rows li.noicon { grid-template-columns: minmax(0, 1fr) auto; }
.rows li:last-child { border-bottom: 0; }
.rows .n { font-family: var(--mono); color: var(--dim); }
.rows .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .ico { width: 1.25rem; height: 1.25rem; }
.travel li { grid-template-columns: 4.375rem minmax(0, 1fr) 5rem; }
.travel .track { height: 0.25rem; background: var(--line); border-radius: 0.125rem; overflow: hidden; }
.travel .track span { display: block; height: 100%; background: var(--acc); }
.travel .n { text-align: right; }

/* ---------- inventory ---------- */
.inv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 16.25rem; gap: 0; }
.inv-wrap > .inv-side { border-left: 1px solid var(--line); padding: 1rem; }
.inv-main { padding: 1rem; min-width: 0; }
.inv-cols { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.inv-gear { display: grid; gap: 0.25rem; width: 3.375rem; }
.inv-gear .gap { height: 0.5rem; }
.slots { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0.25rem; max-width: 33.75rem; }
.slots.hotbar { margin-top: 0; }
.slot { position: relative; aspect-ratio: 1; background: #17171a; border: 1px solid var(--line2); border-radius: 0.1875rem; display: grid; place-items: center; min-width: 0; cursor: default; }
.slot.full { cursor: help; }
.slot.full:hover, .slot.full.act { border-color: var(--mute); background: #1c1c20; }
.slot.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.slot img { width: 84%; height: 84%; image-rendering: pixelated; }
.rows .ico, .plist .held { image-rendering: pixelated; }
/* The enchantment glint is the game's own look, so it is the one place purple is allowed. */
.glint { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; pointer-events: none; background: url(/glint.png) 0 0 / 3rem 3rem repeat; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; mix-blend-mode: screen; opacity: 0.5; animation: glint 7s linear infinite; }
@keyframes glint { to { background-position: 6rem 3rem; } }
.slot .ph-ico { width: 46%; height: 46%; border: 1px dashed var(--line2); border-radius: 0.125rem; }
.slot .cnt { position: absolute; right: 0.1875rem; bottom: 1px; font: 600 0.75rem var(--mono); color: #fff; text-shadow: 1.5px 1.5px 0 #3f3f3f; z-index: 1; }
.slot .dur { position: absolute; left: 0.25rem; right: 0.25rem; bottom: 0.1875rem; height: 0.125rem; background: #000; }
.slot .dur span { display: block; height: 100%; background: var(--acc); }
.slot .dur span.low { background: var(--ink); }
.slot .ghost { width: 56%; height: 56%; opacity: 0.18; }
.inv-tabs { display: flex; gap: 0.125rem; }
.vitals-big { display: grid; gap: 0.375rem; margin: 1.125rem 0 0.625rem; max-width: 33.75rem; }
.icons-row { display: flex; gap: 1px; flex-wrap: wrap; }
.icons-row svg { width: 1.125rem; height: 1.125rem; shape-rendering: crispEdges; }
.icons-row.food { justify-content: flex-end; flex-direction: row-reverse; }
.vit-line { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.xp { position: relative; height: 0.4375rem; background: #000; border: 1px solid var(--line2); border-radius: 1px; }
.xp span { display: block; height: 100%; background: var(--acc); }
.xp b { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); font: 600 0.75rem var(--mono); color: var(--acc); text-shadow: 1px 1px 0 #000; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.375rem 0.75rem; font-size: 0.8125rem; margin: 0; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; text-align: right; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.itip { position: fixed; z-index: 60; pointer-events: none; background: #101012; border: 1px solid var(--line2); border-radius: 0.25rem; padding: 0.5rem 0.625rem; font-size: 0.75rem; max-width: 16.25rem; display: none; }
.itip .nm { font-weight: 600; color: var(--ink); }
.itip .nm.custom { font-style: italic; }
.itip .id { font-family: var(--mono); font-size: 0.6875rem; color: var(--mute); }
.itip .en { color: var(--dim); }
.itip .du { font-family: var(--mono); font-size: 0.6875rem; color: var(--dim); margin-top: 0.25rem; }

/* ---------- motion ---------- */
.fade { animation: fade 0.35s ease-out both; }
@keyframes fade { from { opacity: 0; transform: translateY(0.25rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fade, .glint { animation: none; }
  .lb .meter span { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; align-items: start; }
  .totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .totals > div:nth-child(4) { border-left: 0; }
  .totals > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .live-grid, .board-grid { grid-template-columns: 1fr; }
  .chart-grid, .two, .three { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inv-wrap { grid-template-columns: 1fr; }
  .inv-wrap > .inv-side { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .nav { display: none; }
  .hero { padding: 1.75rem 0 1.75rem; }
  .hero h1 { font-size: 1.875rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 0.75rem; }
  .addr-row .lab { width: 4.125rem; padding: 0 0.625rem; }
  .addr-row .val { white-space: normal; line-height: 1.35; padding: 0.5rem 0.625rem; overflow-wrap: anywhere; }
  .kpi .v { font-size: 1.0625rem; }
  .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .totals > div { padding: 0.875rem 0.75rem; }
  .totals > div:nth-child(n) { border-left: 0; border-top: 0; }
  .totals > div:nth-child(even) { border-left: 1px solid var(--line); }
  .totals > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .totals .v { font-size: 1.1875rem; }
  section { padding: 1.75rem 0; }
  .map-frame { height: 23.75rem; }
  .join-grid { grid-template-columns: 1fr; }
  .join-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .lb td { padding: 0.5rem 0.75rem; }
  .lb .meter { display: none; }
  .lb .rk { width: 2.125rem; }
  .prof { grid-template-columns: 1fr; gap: 1.25rem; }
  .stage { height: 15rem; }
  .stage img { height: 11.875rem; }
  .ph h1 { font-size: 1.625rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-main { padding: 0.75rem; }
  .inv-cols { grid-template-columns: 1fr; gap: 0.75rem; }
  .inv-gear { grid-template-columns: repeat(9, minmax(0, 1fr)); width: auto; max-width: 33.75rem; }
  .icons-row svg { width: 0.875rem; height: 0.875rem; }
  .inv-gear .gap { display: none; }
  .slots { gap: 0.1875rem; }
  .slot .cnt { font-size: 0.625rem; right: 0.125rem; }
  .card-h { padding: 0.625rem 0.75rem; }
  .plist li, .feed li, .rows li { padding-left: 0.75rem; padding-right: 0.75rem; }
}

.rows .ph-ico { width: 1rem; height: 1rem; border: 1px dashed var(--line2); border-radius: 0.125rem; margin: 0.125rem; }
.plist .ph-ico { width: 1rem; height: 1rem; border: 1px dashed var(--line2); border-radius: 0.125rem; }
.body-img { height: 15rem; width: auto; background: none; border-radius: 0; }

.feed-card { position: relative; min-height: 23.75rem; display: flex; flex-direction: column; }
.feed-card .feed { position: absolute; top: 2.9375rem; left: 0; right: 0; bottom: 0; max-height: none; }
@media (max-width: 1000px) {
  .feed-card { min-height: 0; }
  .feed-card .feed { position: static; max-height: 27.5rem; }
}
section, [id] { scroll-margin-top: 4rem; }
.slot .dur { z-index: 1; }
.stage canvas.skin3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; cursor: grab; touch-action: none; }
.stage canvas.skin3d:active { cursor: grabbing; }
.stage-hint { position: absolute; left: 0.75rem; top: 0.625rem; font-size: 0.6875rem; color: var(--mute); z-index: 2; pointer-events: none; }
.inv-wrap.no-side { grid-template-columns: 1fr; }
.inv-wrap.no-side > .inv-side { display: none; }
#p-inv-upd .dot { width: 0.4375rem; height: 0.4375rem; }

/* Odometer: a changed digit rolls out while the new one rolls in. Transform and opacity only. */
.od { position: relative; display: inline-block; }
.od-in { display: inline-block; animation: od-in-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.od-in.od-down { animation-name: od-in-down; }
.od-out { position: absolute; left: 0; top: 0; animation: od-out-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; pointer-events: none; }
.od-out.od-down { animation-name: od-out-down; }
@keyframes od-in-up { from { transform: translateY(55%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes od-in-down { from { transform: translateY(-55%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes od-out-up { from { transform: none; opacity: 1; } to { transform: translateY(-55%); opacity: 0; } }
@keyframes od-out-down { from { transform: none; opacity: 1; } to { transform: translateY(55%); opacity: 0; } }
[data-odo], #k-count, #k-max, #k-tps, #k-day, #k-time { font-variant-numeric: tabular-nums; }
.live-age { font-size: 0.75rem; color: var(--mute); font-family: var(--mono); white-space: nowrap; }
.live-age.stale { color: var(--ink); }
.card-h h3 .mono { margin-left: 0.375rem; font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .od-in, .od-out { animation: none; } .od-out { display: none; } }
