/* Torres Family Minecraft: shared design system (v3, 2026-11-19 redesign).
   Tokens -> base -> global chrome (header, section tabs, phone tab bar, footer) -> shared components.
   Page stylesheets (market.css, traders.css, ...) load after this and still use the old names
   (--page, --surface, --raised, --line, --text, --dim, --torch, --grass, --redstone, --water, --radius, --font),
   which are kept below as aliases of the new tokens so every page picks up the new palette. */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: dark;
  /* night surfaces (blue-slate, not pure black) */
  --night-0: oklch(17% 0.018 262);
  --night-1: oklch(21.5% 0.02 262);
  --night-2: oklch(26% 0.022 262);
  --night-3: oklch(31% 0.024 262);
  --night-4: oklch(37% 0.026 262);
  /* text */
  --snow-1: oklch(97% 0.006 262);
  --snow-2: oklch(84% 0.014 262);
  --snow-3: oklch(74% 0.018 262);
  /* hues: one accent (emerald), gold for rewards, violet for magic, redstone for danger, sky for links */
  --emerald: oklch(79% 0.17 152);
  --emerald-strong: oklch(84% 0.17 152);
  --gold: oklch(84% 0.15 82);
  --violet: oklch(76% 0.15 300);
  --redstone: oklch(74% 0.15 25);
  --sky: oklch(80% 0.11 235);

  /* semantic roles */
  --bg: var(--night-0);
  --surface-1: var(--night-1);
  --surface-2: var(--night-2);
  --surface-3: var(--night-3);
  --border: oklch(100% 0 0 / 0.09);
  --border-strong: oklch(100% 0 0 / 0.16);
  --fg: var(--snow-1);
  --fg-muted: var(--snow-2);
  --fg-subtle: var(--snow-3);
  --accent: var(--emerald);
  --on-accent: oklch(20% 0.05 152);
  --accent-soft: color-mix(in oklch, var(--emerald) 16%, transparent);
  --reward: var(--gold);
  --on-reward: oklch(22% 0.05 82);
  --magic: var(--violet);
  --danger: var(--redstone);
  --link: var(--sky);
  --focus: oklch(88% 0.16 95);

  /* legacy names used by page stylesheets: keep them pointing at the new roles */
  --page: var(--bg);
  --surface: var(--surface-1);
  --raised: var(--surface-2);
  --line: var(--night-4);
  --text: var(--fg);
  --dim: var(--fg-muted);
  --torch: var(--gold);
  --grass: var(--emerald);
  --water: var(--sky);

  /* type: rounded system faces feel friendly without a web font download */
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.375rem);
  --step-4: clamp(2.125rem, 1.7rem + 2.2vw, 3.25rem);

  /* space (4/8 grid), radius, elevation, motion, sizing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --radius-xs: 6px; --radius-sm: 10px; --radius: 14px; --radius-lg: 20px; --radius-pill: 999px;
  --shadow-1: 0 1px 2px oklch(0% 0 0 / 0.35);
  --shadow-2: 0 4px 14px oklch(0% 0 0 / 0.35), 0 1px 2px oklch(0% 0 0 / 0.3);
  --shadow-3: 0 14px 36px oklch(0% 0 0 / 0.5), 0 2px 6px oklch(0% 0 0 / 0.3);
  --hi: inset 0 1px 0 oklch(100% 0 0 / 0.06);
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --tap: 44px;
  --header-h: 60px;
  --tabbar-h: calc(64px + env(safe-area-inset-bottom, 0px));
  --page-max: 1180px;
}
@media (prefers-reduced-motion: reduce) { :root { --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; } }
@media (prefers-contrast: more) { :root { --border: var(--border-strong); --fg-muted: var(--snow-1); --dim: var(--snow-1); } }

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 500 var(--step-0)/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: from-font; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p, li { text-wrap: pretty; }
h2 { font-size: var(--step-2); font-weight: 800; margin-bottom: var(--sp-3); }
h3 { font-size: var(--step-1); font-weight: 750; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in oklch, var(--emerald) 40%, transparent); }
.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--fg-muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--focus); color: #1d1703; padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ global header (every page) */
.gh { position: sticky; top: 0; z-index: 60; view-transition-name: site-header;
  background: color-mix(in oklch, var(--night-0) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border); }
.gh-in { max-width: var(--page-max); margin: 0 auto; padding: 0 16px; height: var(--header-h); display: flex; align-items: center; gap: var(--sp-4); }
.gh-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 850; font-size: 17px;
  letter-spacing: -0.01em; white-space: nowrap; min-height: var(--tap); }
.gh-brand img { width: 30px; height: 30px; image-rendering: pixelated; border-radius: 7px; box-shadow: var(--shadow-1); }
.gh-brand .full { display: inline; } .gh-brand .short { display: none; }
.gh-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.gh-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--radius-pill); color: var(--fg-muted);
  font-weight: 700; font-size: 15px; text-decoration: none; transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.gh-nav a:hover { color: var(--fg); background: var(--surface-2); }
.gh-nav a[aria-current] { color: var(--fg); background: var(--surface-3); box-shadow: var(--hi); }
.gh-online { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 10px; border-radius: var(--radius-pill);
  background: var(--surface-1); border: 1px solid var(--border); color: var(--fg); text-decoration: none; font-weight: 750; font-size: 14px; white-space: nowrap; }
.gh-online:hover { border-color: var(--border-strong); background: var(--surface-2); }
.gh-online .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fg-subtle); flex: none; }
.gh-online.on .dot { background: var(--emerald); box-shadow: 0 0 0 0 color-mix(in oklch, var(--emerald) 60%, transparent); animation: gh-pulse 2.4s var(--ease) infinite; }
@keyframes gh-pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.gh-faces { display: inline-flex; }
.gh-faces img { width: 22px; height: 22px; border-radius: 5px; image-rendering: pixelated; background: var(--surface-3); box-shadow: 0 0 0 2px var(--night-0); }
.gh-faces img + img { margin-left: -6px; }

/* section tabs: pages that belong together (Adventures, Market) */
.subnav { background: var(--night-0); border-bottom: 1px solid var(--border); }
.subnav-in { max-width: var(--page-max); margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 12px; color: var(--fg-muted); text-decoration: none;
  font-weight: 700; font-size: 15px; border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--fg); }
.subnav a[aria-current] { color: var(--fg); border-bottom-color: var(--accent); }

/* phone tab bar */
.tabbar { display: none; }
.more-sheet { position: fixed; inset: auto 8px calc(var(--tabbar-h) + 8px) 8px; margin: 0; width: auto; max-width: 520px; margin-inline: auto; padding: var(--sp-3);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--night-1); color: var(--fg); box-shadow: var(--shadow-3);
  opacity: 0; translate: 0 12px; transition: opacity var(--dur-2) var(--ease), translate var(--dur-2) var(--ease), display var(--dur-2) allow-discrete, overlay var(--dur-2) allow-discrete; }
.more-sheet:popover-open { opacity: 1; translate: 0 0; }
@starting-style { .more-sheet:popover-open { opacity: 0; translate: 0 12px; } }
.more-sheet::backdrop { background: oklch(0% 0 0 / 0.45); }
.more-sheet h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-subtle); margin: 6px 8px 6px; font-weight: 800; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.more-grid a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--surface-2);
  color: var(--fg); text-decoration: none; font-weight: 700; font-size: 15px; }
.more-grid a[aria-current] { box-shadow: inset 0 0 0 2px var(--accent); }
.more-grid .ic, .tabbar .ic { font-size: 20px; line-height: 1; }

@media (max-width: 860px) {
  .gh-nav { display: none; }
  .gh-online { margin-left: auto; }
  .tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px env(safe-area-inset-bottom, 0px); view-transition-name: site-tabbar;
    background: color-mix(in oklch, var(--night-0) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--border); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 0;
    border: 0; background: none; color: var(--fg-muted); text-decoration: none; font-size: 12px; font-weight: 750; border-radius: var(--radius-sm); cursor: pointer; }
  .tabbar [aria-current], .tabbar .cur { color: var(--fg); background: var(--surface-2); }
  body { padding-bottom: var(--tabbar-h); }
}
@media (max-width: 520px) {
  .gh-brand .full { display: none; } .gh-brand .short { display: inline; }
  .gh-in { gap: var(--sp-2); }
}

/* footer */
.gf { margin-top: var(--sp-7); border-top: 1px solid var(--border); color: var(--fg-muted); font-size: var(--step--1); }
.gf-in { max-width: var(--page-max); margin: 0 auto; padding: var(--sp-5) 16px var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: center; justify-content: space-between; }
.gf nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.gf a { color: var(--fg-muted); display: inline-flex; align-items: center; min-height: 32px; padding: 0 6px; }
.gf a:hover { color: var(--fg); }

/* ------------------------------------------------------------------ layout + shared components */
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 16px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: var(--sp-5); align-content: start; }
section.block { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--hi); }
@media (max-width: 560px) { section.block { padding: var(--sp-4); } }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: var(--sp-3); }
.block-head h2 { margin: 0; }
.note { font-size: var(--step--1); color: var(--fg-muted); margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--fg); font-weight: 750; text-decoration: none; cursor: pointer;
  box-shadow: var(--hi); transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.btn:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn.go { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn.go:hover { background: var(--emerald-strong); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.seg button { min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: none;
  color: var(--fg-muted); cursor: pointer; font-size: 14px; font-weight: 700; }
.seg button:hover { color: var(--fg); background: var(--surface-2); }
.seg button[aria-pressed="true"] { background: var(--reward); border-color: var(--reward); color: var(--on-reward); }
.linkbtn { background: none; border: 0; padding: 4px 0; min-height: 32px; color: var(--link); cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* faces: pixel-art heads cropped from skins */
.face { width: 36px; height: 36px; border-radius: 6px; image-rendering: pixelated; background: var(--surface-2); flex: none; }
.face.s { width: 24px; height: 24px; border-radius: 4px; }
.face.l { width: 44px; height: 44px; }

/* class badge + level */
.klass { font-size: 13px; font-weight: 750; white-space: nowrap; }
.klass.none { color: var(--fg-muted); font-weight: 550; }
.lv { font-weight: 800; color: var(--reward); white-space: nowrap; }

/* time-zone picker (tz.js fills every [data-tz-picker]) */
.tzpick label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg-muted); white-space: nowrap; }
.tzpick select { min-height: 36px; max-width: min(260px, 70vw); border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--fg); padding: 0 8px; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.tzpick select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.tz-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.tz-head h3 { margin-bottom: 0 !important; }
.tz-note .tzpick select { min-height: 32px; font-size: 13px; }
time[data-et][title]:not([title=""]) { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }

/* long pages: let the browser skip work for off-screen sections */
.cv { content-visibility: auto; contain-intrinsic-size: auto 800px; }

/* ------------------------------------------------------------------ interaction polish (Vercel Web Interface Guidelines, MIT) */
a, button, input, select, summary, label, [role="tab"] { touch-action: manipulation; -webkit-tap-highlight-color: color-mix(in oklch, var(--emerald) 22%, transparent); }
.more-sheet { overscroll-behavior: contain; max-height: calc(100dvh - var(--tabbar-h) - 24px); overflow-y: auto; }
@media (pointer: fine) { html { overscroll-behavior-y: none; } }
select { background-color: var(--surface-2); color: var(--fg); }

/* ------------------------------------------------------------------ site search */
.gh-search { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--surface-1); border: 1px solid var(--border); color: var(--fg-muted); font-weight: 700; font-size: 14px; }
.gh-search:hover { color: var(--fg); border-color: var(--border-strong); background: var(--surface-2); }
.gh-search svg { width: 17px; height: 17px; }
@media (max-width: 1100px) { .gh-search .lbl { display: none; } .gh-search { padding: 0; width: 40px; justify-content: center; } }
@media (max-width: 860px) { .gh-search { margin-left: auto; } .gh-search + .gh-online { margin-left: 0; } }
.more-grid button { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--surface-2);
  color: var(--fg); border: 0; font-weight: 700; font-size: 15px; cursor: pointer; text-align: left; }
.search-dlg { width: min(640px, calc(100vw - 24px)); max-height: min(70dvh, 620px); margin: 10vh auto auto; padding: 0; display: none; flex-direction: column;
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--night-1); color: var(--fg); box-shadow: var(--shadow-3);
  opacity: 0; translate: 0 -8px; transition: opacity var(--dur-2) var(--ease), translate var(--dur-2) var(--ease), display var(--dur-2) allow-discrete, overlay var(--dur-2) allow-discrete; }
.search-dlg[open] { display: flex; opacity: 1; translate: 0 0; }
@starting-style { .search-dlg[open] { opacity: 0; translate: 0 -8px; } }
.search-dlg::backdrop { background: oklch(0% 0 0 / 0.55); backdrop-filter: blur(2px); }
.search-top { display: flex; gap: 8px; align-items: center; padding: 10px; border-bottom: 1px solid var(--border); }
.search-top input { flex: 1; min-height: 48px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--fg); font-size: 17px; outline: none; }
.search-top input:focus-visible { box-shadow: 0 0 0 3px var(--focus); }
.search-x { min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: none; color: var(--fg-muted); cursor: pointer; font-weight: 700; }
.search-hits { list-style: none; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.search-hits a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--fg); text-decoration: none; }
.search-hits a .dim { font-size: 13px; white-space: nowrap; }
.search-hits [aria-selected="true"] a, .search-hits a:hover { background: var(--surface-3); }
.search-none { padding: 16px 12px; color: var(--fg-muted); }
.search-foot { margin: 0; padding: 8px 14px 10px; font-size: 13px; border-top: 1px solid var(--border); }
@media (pointer: coarse) { .search-foot { display: none; } }

/* ------------------------------------------------------------------ realms
   Long pages "dig down" as you scroll: night sky and treeline -> dirt -> stone caves -> deepslate -> Deep Dark -> bedrock -> Nether -> the End.
   nav.js adds <div class="realm-bg"> and html.realms when a page is taller than ~2.6 screens (pages can opt out with data-realms="off").
   The track is 7 screens tall and slides up with scroll: CSS scroll timeline where supported, nav.js otherwise.
   Every realm stays dark (L <= 25%) so text keeps its contrast. */
html.realms { background: var(--bg); }
html.realms body { background: transparent; }
html:not(.realms) .realm-bg, html:not(.realms) .realm-depth { display: none; }
.realm-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.realm-track { position: absolute; left: 0; right: 0; top: 0; height: 700%; will-change: translate;
  background: linear-gradient(180deg,
    oklch(25% 0.075 262) 0%, oklch(21% 0.06 255) 9%, oklch(21% 0.05 205) 13.6%,
    oklch(19% 0.045 58) 14.6%, oklch(17% 0.035 52) 24%,
    oklch(17.5% 0.01 255) 30%, oklch(15.5% 0.012 258) 41%,
    oklch(13.5% 0.016 262) 45%, oklch(12.5% 0.02 240) 54%,
    oklch(12% 0.035 205) 60%, oklch(11% 0.03 205) 68%,
    oklch(8% 0 0) 70.6%,
    oklch(15% 0.07 26) 73%, oklch(18% 0.09 32) 80%, oklch(12% 0.05 20) 84.6%,
    oklch(8% 0.02 300) 86.6%, oklch(13% 0.06 300) 94%, oklch(15% 0.07 305) 100%); }
@supports (animation-timeline: scroll()) {
  .realm-track { animation: realm-dig linear both; animation-timeline: scroll(root block); }
}
@keyframes realm-dig { to { translate: 0 -85.7143%; } }
.realm-track > i { position: absolute; left: 0; right: 0; display: block; }

/* surface: stars, a square moon, a treeline and a strip of grass */
.rb-stars { top: 0; height: 12.5%; opacity: .8;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='170' shape-rendering='crispEdges'%3E%3Cg fill='%23fff'%3E%3Crect x='14' y='20' width='2' height='2' opacity='.9'/%3E%3Crect x='70' y='8' width='1' height='1'/%3E%3Crect x='121' y='34' width='3' height='3' opacity='.55'/%3E%3Crect x='190' y='14' width='2' height='2' opacity='.7'/%3E%3Crect x='44' y='76' width='1' height='1' opacity='.8'/%3E%3Crect x='160' y='90' width='2' height='2' opacity='.6'/%3E%3Crect x='96' y='120' width='1' height='1'/%3E%3Crect x='206' y='132' width='1' height='1' opacity='.7'/%3E%3Crect x='24' y='146' width='2' height='2' opacity='.45'/%3E%3Crect x='140' y='154' width='1' height='1' opacity='.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 220px 170px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.realm-track > .rb-moon { top: 1.4%; left: auto; right: 9%; width: 64px; height: 64px; opacity: .55;
  box-shadow: 0 0 70px 14px oklch(92% 0.03 95 / .12);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect width='8' height='8' fill='%23e4e1cc'/%3E%3Crect x='1' y='1' width='2' height='2' fill='%23c3bfa6'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%23c3bfa6'/%3E%3Crect x='4' y='5' width='2' height='2' fill='%23c3bfa6'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%23cfcbb3'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
.rb-hills { top: calc(14.2857% - 78px); height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='80' shape-rendering='crispEdges'%3E%3Cg fill='%230d1716'%3E%3Cpath d='M0 80V56h24v-8h32v-8h40v8h24v8h32v-16h40v8h32v8h32v24z'/%3E%3Crect x='70' y='26' width='6' height='16'/%3E%3Crect x='58' y='8' width='30' height='20'/%3E%3Crect x='64' y='2' width='18' height='8'/%3E%3Crect x='196' y='22' width='4' height='16'/%3E%3Crect x='188' y='16' width='20' height='10'/%3E%3Crect x='191' y='8' width='14' height='10'/%3E%3Crect x='194' y='2' width='8' height='8'/%3E%3C/g%3E%3C/svg%3E") 0 100% / 256px 80px repeat-x; }
.rb-grass { top: 14.2857%; height: 14px; opacity: .8;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='14' shape-rendering='crispEdges'%3E%3Crect width='32' height='6' fill='%23305c26'/%3E%3Crect width='32' height='2' fill='%23417a32'/%3E%3Cg fill='%23305c26'%3E%3Crect y='6' width='4' height='3'/%3E%3Crect x='8' y='6' width='4' height='6'/%3E%3Crect x='16' y='6' width='4' height='2'/%3E%3Crect x='24' y='6' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 32px 14px repeat-x; }

/* underground: faint block seams, ores near the top, rarer ones deeper down */
.rb-blocks { top: calc(14.2857% + 14px); height: 55%;
  background: linear-gradient(90deg, oklch(100% 0 0 / .028) 1px, transparent 1px) 0 0 / 32px 32px,
              linear-gradient(oklch(100% 0 0 / .028) 1px, transparent 1px) 0 0 / 32px 32px; }
.rb-ore1 { top: 25%; height: 19%; opacity: .45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192' shape-rendering='crispEdges'%3E%3Cg fill='%23595a63'%3E%3Crect x='20' y='24' width='5' height='5'/%3E%3Crect x='25' y='29' width='5' height='5'/%3E%3Crect x='16' y='31' width='4' height='4'/%3E%3Crect x='132' y='150' width='5' height='5'/%3E%3Crect x='138' y='146' width='4' height='4'/%3E%3C/g%3E%3Cg fill='%23d0a68a'%3E%3Crect x='110' y='40' width='5' height='5'/%3E%3Crect x='116' y='44' width='4' height='4'/%3E%3Crect x='40' y='130' width='5' height='5'/%3E%3C/g%3E%3Cg fill='%23c4683f'%3E%3Crect x='164' y='88' width='5' height='5'/%3E%3Crect x='158' y='93' width='5' height='4'/%3E%3Crect x='72' y='92' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 192px 192px; }
.rb-ore2 { top: 42%; height: 17%; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='224' height='224' shape-rendering='crispEdges'%3E%3Cg fill='%235fe3e6'%3E%3Crect x='30' y='40' width='4' height='4'/%3E%3Crect x='35' y='45' width='4' height='4'/%3E%3C/g%3E%3Cg fill='%23e0352b'%3E%3Crect x='150' y='30' width='4' height='4'/%3E%3Crect x='156' y='34' width='3' height='3'/%3E%3Crect x='100' y='170' width='4' height='4'/%3E%3C/g%3E%3Cg fill='%23e8c93a'%3E%3Crect x='190' y='130' width='4' height='4'/%3E%3Crect x='186' y='135' width='4' height='3'/%3E%3C/g%3E%3Cg fill='%233a5ed0'%3E%3Crect x='60' y='120' width='5' height='4'/%3E%3Crect x='66' y='116' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 224px 224px; }
.rb-blocks, .rb-ore1, .rb-ore2, .rb-nether, .rb-embers {
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); }
.rb-sculk { top: 55%; height: 15%;
  background: radial-gradient(40% 22% at 18% 38%, oklch(66% 0.12 200 / .16), transparent 70%),
              radial-gradient(30% 18% at 82% 62%, oklch(60% 0.12 210 / .13), transparent 70%),
              radial-gradient(24% 14% at 55% 18%, oklch(70% 0.12 195 / .1), transparent 70%),
              radial-gradient(22% 12% at 40% 86%, oklch(64% 0.12 200 / .1), transparent 70%);
  animation: sculk-pulse 7s ease-in-out infinite alternate; }
@keyframes sculk-pulse { from { opacity: .55; } to { opacity: 1; } }
.rb-bedrock { top: 69.6%; height: 2%; opacity: .8;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' shape-rendering='crispEdges'%3E%3Crect width='24' height='24' fill='%23161616'/%3E%3Cg fill='%23303030'%3E%3Crect x='2' y='2' width='6' height='4'/%3E%3Crect x='14' y='6' width='8' height='6'/%3E%3Crect x='4' y='14' width='6' height='8'/%3E%3C/g%3E%3Cg fill='%23070707'%3E%3Crect x='10' y='0' width='4' height='6'/%3E%3Crect x='14' y='16' width='6' height='6'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }

/* the Nether: netherrack grain, a lava glow from below and embers drifting up */
.rb-nether { top: 72%; height: 13.6%;
  background: radial-gradient(90% 45% at 50% 100%, oklch(55% 0.2 40 / .22), transparent 70%),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' shape-rendering='crispEdges'%3E%3Cg fill='%23ff6a4a' opacity='.06'%3E%3Crect x='3' y='4' width='6' height='3'/%3E%3Crect x='18' y='10' width='8' height='4'/%3E%3Crect x='6' y='20' width='5' height='5'/%3E%3Crect x='22' y='24' width='6' height='3'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 32px 32px; }
.rb-embers { top: 72.5%; height: 12.5%; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='220' shape-rendering='crispEdges'%3E%3Cg fill='%23ffa040'%3E%3Crect x='20' y='30' width='3' height='3'/%3E%3Crect x='90' y='70' width='2' height='2' opacity='.8'/%3E%3Crect x='56' y='140' width='3' height='3' opacity='.6'/%3E%3Crect x='120' y='190' width='2' height='2'/%3E%3Crect x='8' y='200' width='2' height='2' opacity='.7'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 140px 220px;
  animation: embers-rise 16s linear infinite; }
@keyframes embers-rise { to { background-position: 0 -220px; } }

/* the End: violet stars and a floating island of end stone with an obsidian pillar */
.rb-endstars { top: 86.5%; height: 13.5%; opacity: .7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='180' shape-rendering='crispEdges'%3E%3Cg fill='%23e6d6ff'%3E%3Crect x='18' y='22' width='2' height='2'/%3E%3Crect x='96' y='12' width='1' height='1'/%3E%3Crect x='150' y='50' width='2' height='2' opacity='.6'/%3E%3Crect x='60' y='96' width='1' height='1'/%3E%3Crect x='180' y='120' width='2' height='2' opacity='.8'/%3E%3Crect x='30' y='160' width='1' height='1'/%3E%3Crect x='120' y='150' width='3' height='3' opacity='.4'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 200px 180px;
  -webkit-mask-image: linear-gradient(transparent, #000 25%); mask-image: linear-gradient(transparent, #000 25%); }
.realm-track > .rb-island { top: auto; bottom: 20px; height: 110px; opacity: .85;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='110' shape-rendering='crispEdges'%3E%3Cpath fill='%232b2a20' d='M20 70h40V60h60v-8h150v6h70v8h40v10h-30v12h-60v12H140v-8H70V82H20z'/%3E%3Crect x='200' y='8' width='22' height='44' fill='%231b1326'/%3E%3Crect x='204' y='0' width='14' height='8' fill='%23c98af5' opacity='.7'/%3E%3C/svg%3E") 50% 100% / 400px 110px no-repeat; }
@media (max-width: 860px) { .realm-track > .rb-island { bottom: calc(var(--tabbar-h) + 8px); } }
@media (prefers-reduced-motion: reduce) { .rb-sculk, .rb-embers { animation: none; } }

/* depth readout in the left gutter, only where the gutter is wide enough not to cover anything */
.realm-depth { position: fixed; left: 16px; bottom: 16px; z-index: 40; pointer-events: none; padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 750; color: var(--fg-muted); font-variant-numeric: tabular-nums; white-space: nowrap;
  background: color-mix(in oklch, var(--night-0) 70%, transparent); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 1519px) { .realm-depth { display: none; } }

/* solid bars that would hide the realm behind them turn see-through */
html.realms .subnav, html.realms .join { background: color-mix(in oklch, var(--night-0) 72%, transparent); }
html.realms .hm-town-group[open] > .hm-sum, html.realms .cl-day { background: color-mix(in oklch, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Support button (header): links to the Supporter Shop on the Blade Exchange */
.gh-support { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); white-space: nowrap;
  background: color-mix(in oklch, var(--reward) 18%, var(--surface-1)); border: 1px solid color-mix(in oklch, var(--reward) 50%, var(--border));
  color: var(--reward); text-decoration: none; font-weight: 800; font-size: 14px; }
.gh-support:hover { background: color-mix(in oklch, var(--reward) 28%, var(--surface-1)); }
@media (max-width: 520px) { .gh-support .lbl { display: none; } .gh-support { padding: 0; width: 40px; justify-content: center; } }
@media (max-width: 400px) { .gh-brand .short { display: none; } }
