/* MineWorld Space - the site's own parts. The shared design system (ds.css, loaded after this file)
   sets the tokens and the common components: neutral surfaces, one green primary, Geist for text and
   headings, Geist Mono for eyebrows and addresses, the pixel font only for drawings of Minecraft's screens. Media are 3D renders made for
   MineWorld (art/render, see art/CREDITS.md). */

/* Fonts are served from this site (art/fonts, SIL Open Font License): no third-party round trips before text shows. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/art/fonts/geist-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/art/fonts/geist-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/art/fonts/geist-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/art/fonts/geist-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/art/fonts/geist-latin.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: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/art/fonts/geist-mono-400-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/art/fonts/geist-mono-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/art/fonts/geist-mono-400-symbols2.woff2) format('woff2'); unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/art/fonts/geist-mono-400-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/art/fonts/geist-mono-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/art/fonts/geist-mono-400-latin.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: 'Silkscreen'; font-style: normal; font-weight: 400; font-display: swap; src: url(/art/fonts/silkscreen-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 400; font-display: swap; src: url(/art/fonts/silkscreen-400-latin.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: 'Silkscreen'; font-style: normal; font-weight: 700; font-display: swap; src: url(/art/fonts/silkscreen-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 700; font-display: swap; src: url(/art/fonts/silkscreen-700-latin.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: 'VT323'; font-style: normal; font-weight: 400; font-display: swap; src: url(/art/fonts/vt323-400-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'VT323'; font-style: normal; font-weight: 400; font-display: swap; src: url(/art/fonts/vt323-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'VT323'; font-style: normal; font-weight: 400; font-display: swap; src: url(/art/fonts/vt323-400-latin.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; }
/* Silkscreen 700 draws W as a solid block; take W from the regular weight (synthetic bold keeps the stroke). */
@font-face { font-family: 'MW Display W'; src: url(/art/fonts/silkscreen-400-latin.woff2) format('woff2'); unicode-range: U+57, U+77; font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --display: 'MW Display W', 'Silkscreen', 'Geist Mono', monospace;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Colours are tokens: the dark set here, the light set under [data-theme='light'] below. */
  --bg: #000;
  --panel: #0b0b0c;
  --panel-2: #121214;
  --panel-3: #1b1b1e;
  --surface: #0a0a0b;     /* manager cards */
  --surface-2: #0e0e10;   /* cards inside cards */
  --surface-3: #151517;   /* timeline nodes */
  --field: #000;          /* text fields */
  --well: #050505;        /* drop zones, code wells */
  --line: #1b1b1b;        /* page grid */
  --border: #2a2a2d;      /* components */
  --border-2: #3a3a3f;
  --ink: #ffffff;
  --head: #e6f2ff;        /* display headlines */
  --ink-2: #9b9ba1;
  --ink-3: #8a8a92;       /* 6.1:1 on black (AA) */
  --on-ink: #000;         /* text on an --ink background */
  --nav: #8a8a8a;
  --head-bg: rgba(0, 0, 0, 0.88);
  --bar-bg: rgba(0, 0, 0, 0.94);
  --scrim: rgba(0, 0, 0, 0.72);
  --shadow: rgba(0, 0, 0, 0.6);
  --faq-open: #22272e;
  --tile-bg: linear-gradient(180deg, #1c1a24, #121117);
  --bigcard-bg: linear-gradient(180deg, #0d1733, #070a12);
  --sec-mix: 17%;
  /* Minecraft green: white text on --brand is 4.6:1 (AA); --brand-ink is the green for text on the page (9.5:1). */
  --brand: #3c8527; --brand-hi: #418f2a; --brand-lo: #2c6a1c; --brand-ink: #6cc349; --brand-glow: #7fd15a;
  --azure: #1f6bff; --blue: var(--azure);
  --green: #4ade4a; --orange: #f5a524; --pink: #ff7ad9; --purple: #9b6bff; --yellow: #e8e64a; --cyan: #3fd5e0; --red: #ff5a5a;
  --sec: var(--brand-ink);
  --col: 321px;
  --pad: 38px;
  --max: 1284px;
  --focus: #7fd15a;

  /* pixel controls (Minecraft GUI): a 2px edge with notched corners, a light top-left bevel and a dark bottom-right one */
  --btn: #2a2a2f; --btn-hover: #34343a; --btn-ink: #fff;
  --btn-edge: #55555c; --btn-edge-hover: #f2f2f2;
  --btn-hi: rgba(255, 255, 255, 0.16); --btn-lo: rgba(0, 0, 0, 0.55);
  --field-edge: #55555c; --field-lo: rgba(255, 255, 255, 0.06);
  --track: #1d1d21;
  --grass-edge: #1d4b12;
  --slot-bg: #2b2b2b; --slot-dark: #111; --slot-light: #4c4c4c; --inv-bg: #1a1a1a;
  --card-hi: rgba(255, 255, 255, 0.04); --px-shadow: #3f3f3f; --chat-bg: rgba(0, 0, 0, 0.55); --f3-bg: rgba(80, 80, 80, 0.35);
  --notch: polygon(2px 0, calc(100% - 2px) 0, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0 calc(100% - 2px), 0 2px, 2px 2px);
  --notch-4: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 2px 4px, 2px 2px, 4px 2px);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' shape-rendering='crispEdges' fill='%23c8c8ce'%3E%3Cpath d='M0 0h10v2H8v2H6v2H4V4H2V2H0z'/%3E%3C/svg%3E");
  --check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' shape-rendering='crispEdges' fill='%23ffffff'%3E%3Cpath d='M10 0h2v2h-2zM8 2h2v2H8zM6 4h2v2H6zM4 6h2v2H4zM2 4h2v2H2zM0 2h2v2H0zM2 6h2v2H2zM4 8h2v2H4z'/%3E%3C/svg%3E");
}

/* Light theme: the same tokens for a light page (text pairs checked for WCAG AA). */
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f3f6ef;
  --panel: #ffffff;
  --panel-2: #e9eee5;
  --panel-3: #dde4d7;
  --surface: #ffffff;
  --surface-2: #f6f8f3;
  --surface-3: #eef2ea;
  --field: #ffffff;
  --well: #edf1e9;
  --line: #d9e0d3;
  --border: #c9d2c1;
  --border-2: #a9b5a0;
  --ink: #14210f;          /* 15.3:1 on --bg */
  --head: #10230b;
  --ink-2: #4a5547;        /* 7.2:1 */
  --ink-3: #596456;        /* 5.7:1 on --bg, 5.1:1 on --panel-2 */
  --on-ink: #fff;
  --nav: #4a5547;
  --head-bg: rgba(243, 246, 239, 0.9);
  --bar-bg: rgba(243, 246, 239, 0.95);
  --scrim: rgba(20, 33, 15, 0.45);
  --shadow: rgba(20, 33, 15, 0.18);
  --faq-open: #e4ebdf;
  --tile-bg: linear-gradient(180deg, #ebe8f3, #f6f4fa);
  --bigcard-bg: linear-gradient(180deg, #e3ebfb, #f7f9ff);
  --sec-mix: 12%;
  --brand-ink: #2f6b1e;    /* 5.9:1 on --bg */
  --brand-glow: #3c8527;
  --azure: #1f5fd6; --green: #1d7424; --orange: #8f5400; --pink: #a8246f; --purple: #6a3fd0; --yellow: #6e5a00; --cyan: #0b6f78; --red: #c0302b;
  --focus: #2f6b1e;
  --btn: #dfe5da; --btn-hover: #eaefe6; --btn-ink: #14210f;
  --btn-edge: #3b4636; --btn-edge-hover: #2f6b1e;
  --btn-hi: rgba(255, 255, 255, 0.95); --btn-lo: rgba(20, 33, 15, 0.2);
  --field-edge: #6f7c69; --field-lo: rgba(20, 33, 15, 0.08);
  --track: #c7cfc0;
  --slot-bg: #8b8b8b; --slot-dark: #373737; --slot-light: #ffffff; --inv-bg: #c6c6c6;
  --card-hi: rgba(255, 255, 255, 0.9); --px-shadow: transparent; --chat-bg: #262b22; --f3-bg: #3a3d38;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' shape-rendering='crispEdges' fill='%234a5547'%3E%3Cpath d='M0 0h10v2H8v2H6v2H4V4H2V2H0z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 18px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { flex: 1; outline: none; position: relative; z-index: 1; }
#app:focus, #app:focus-visible, h1[tabindex]:focus { outline: none; }
img, svg { display: block; max-width: 100%; }
img.px, svg[shape-rendering] { image-rendering: pixelated; }
img.render { image-rendering: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { margin: 0 0 16px; font-weight: 600; }
.display, h1, h2.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 0.9; color: var(--head); }
h1 { font-size: clamp(40px, 5.4vw, 77px); }
h2 { font: 600 28px/1.15 var(--font); letter-spacing: -0.02em; }
h2.display { font-size: clamp(32px, 3.6vw, 52px); }
h3 { font: 500 22px/1.25 var(--font); letter-spacing: -0.01em; }
h4 { font: 500 17px/1.3 var(--font); }
p { margin: 0 0 12px; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--panel-3); padding: 1px 6px; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-2); }

.small { font-size: 15px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.ic { width: 1em; height: 1em; flex: none; }
.item { width: 32px; height: 32px; flex: none; }
img.item { display: inline-block; object-fit: contain; image-rendering: auto; vertical-align: middle; }
.slot img.item { image-rendering: auto; }
.render { max-width: none; }

/* ---------- the page grid ---------- */
.gridlines { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.gridlines::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: min(var(--max), 100%); transform: translateX(-50%); border-right: 1px solid var(--line); background: linear-gradient(to right, var(--line) 0 1px, transparent 1px) 0 0 / 25% 100% repeat-x; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); position: relative; }
.shell { width: 100%; max-width: var(--max); margin: 0 auto; position: relative; }
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols > * { padding: 0 var(--pad); min-width: 0; }
.span2 { grid-column: span 2; }  .span4 { grid-column: span 4; }
.start2 { grid-column-start: 2; }  .start4 { grid-column-start: 4; }
.hline { border-top: 1px solid var(--line); }
@media (max-width: 1360px) { :root { --pad: 28px; } }
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .gridlines::before { background-size: 50% 100%; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span4 { grid-column: span 2; }
  .start2, .start4 { grid-column-start: auto; }
}
@media (max-width: 600px) {
  :root { --pad: 16px; }
  .gridlines::before { background-size: 100% 100%; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .span2, .span4 { grid-column: span 1; }
}

/* ---------- eyebrows & annotations ---------- */
.eyebrow { display: block; }
.eyebrow .ic { display: none; }
.annot { font: 400 13.5px/1.4 var(--mono); color: var(--ink-2); display: inline-flex; align-items: flex-start; gap: 8px; white-space: nowrap; }
.annot::before { content: ''; width: 26px; height: 16px; flex: none; border-left: 1px dashed var(--ink-3); border-bottom: 1px dashed var(--ink-3); margin-top: -8px; }
.annot.flat::before { width: 30px; height: 0; border-left: 0; margin-top: 9px; }
.lead { max-width: 52ch; }
.hint { color: var(--ink-3); font-size: 15px; margin: 6px 0 0; }

/* ---------- buttons: Minecraft GUI buttons ----------
   A 2px edge with the corner pixels cut (clip-path, so nothing spills over neighbours), a light
   top-left bevel and a dark bottom-right one. Hover lights the edge like the game; pressing drops
   the face 2px and flips the bevel. Focus: the edge takes the text colour and a ring in the page
   colour runs inside it, visible on every button colour. Labels use the pixel font. */
.btn {
  --b-bg: var(--btn); --b-hover: var(--btn-hover); --b-ink: var(--btn-ink); --b-edge: var(--btn-edge); --b-hi: var(--btn-hi); --b-lo: var(--btn-lo);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 18px 12px;
  border: 1px solid var(--b-edge); background: var(--b-bg); color: var(--b-ink); border-radius: var(--r);
 
  font: 600 15px/1.1 var(--display); letter-spacing: 0.01em; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.btn:hover { background: var(--b-hover); border-color: var(--btn-edge-hover); color: var(--b-ink); filter: none; }
.btn:active:not(:disabled):not(.off) { transform: translateY(2px); }
.btn:focus-visible { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--bg), inset 4px 4px 0 var(--b-hi), inset -4px -6px 0 var(--b-lo); }
.btn .ic { width: 16px; height: 16px; }
.btn:disabled, .btn.off { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:hover, .btn.off:hover { background: var(--b-bg); border-color: var(--b-edge); }
.btn-grass { --b-bg: var(--brand); --b-hover: var(--brand-hi); --b-ink: #fff; --b-edge: var(--grass-edge); --b-hi: rgba(255, 255, 255, 0.3); --b-lo: var(--brand-lo); }
.btn-grass { font-weight: 700; }
.btn-grass:hover { color: #fff; }
.btn-gold { --b-bg: var(--ink); --b-hover: var(--ink-2); --b-ink: var(--on-ink); --b-edge: var(--ink); --b-hi: rgba(127, 127, 127, 0.35); --b-lo: rgba(0, 0, 0, 0.3); }
.btn-gold:hover { color: var(--on-ink); }
.btn-gold:focus-visible { border-color: var(--brand-ink); }
.btn-danger { --b-bg: var(--bg); --b-hover: var(--red); --b-ink: var(--red); --b-edge: color-mix(in srgb, var(--red) 60%, transparent); --b-hi: transparent; --b-lo: rgba(0, 0, 0, 0.25); }
.btn-danger:hover { color: var(--on-ink); border-color: var(--red); }
:root[data-theme='light'] .btn-danger:hover { color: #fff; }
.btn-ghost { --b-bg: transparent; --b-hover: var(--panel-2); --b-ink: var(--ink-2); --b-edge: transparent; --b-hi: transparent; --b-lo: transparent; }
.btn-ghost:hover { color: var(--ink); border-color: transparent; }
.btn-ghost:active:not(:disabled) { transform: none; box-shadow: none; }
.btn-lg { min-height: 64px; padding: 16px 28px 19px; font-size: 18px; }
.btn-sm { min-height: 38px; padding: 6px 12px 8px; font-size: 12px; gap: 8px; }
.btn-sm .ic { width: 14px; height: 14px; }
.btn-block { display: flex; width: 100%; white-space: normal; text-align: center; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.icon-btn { min-width: 44px; padding: 10px; }
.icon-btn .ic { width: 20px; height: 20px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) { .btn-sm { min-height: 44px; } }

/* ---------- forms: Minecraft text fields (sunken, 2px edge, notched corners) ---------- */
.field { display: block; margin: 0 0 20px; }
.lbl { display: block; font: 500 15px/1.3 var(--font); margin-bottom: 8px; color: var(--ink); }
.input { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--field-edge); background: var(--field); color: var(--ink); font: 400 17px/1.4 var(--font); appearance: none; border-radius: var(--r); transition: border-color 0.1s; }
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover { border-color: var(--ink-3); }
.input:focus, .input:focus-visible { outline: none; border-color: var(--focus); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--focus) 35%, transparent); }
.input-sm { min-height: 38px; padding: 6px 10px; font-size: 14px; width: auto; }
textarea.input { resize: vertical; min-height: 88px; }
select.input { padding-right: 40px; cursor: pointer; background-image: var(--select-arrow); background-position: right 14px center; background-size: 10px 6px; background-repeat: no-repeat; image-rendering: pixelated; }
.num { width: 84px; text-align: center; }
.addrow { display: flex; gap: 8px; align-items: stretch; margin-top: 16px; }
.addrow .input { flex: 1; min-width: 0; }
@media (max-width: 600px) { .input-sm { min-height: 44px; } }
/* plain checkboxes */
input[type='checkbox']:not([role='switch']):not(.sr) { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0 8px 0 0; vertical-align: -5px; border: 1px solid var(--field-edge); background: var(--field) center / 12px 10px no-repeat; border-radius: var(--r); cursor: pointer; }
input[type='checkbox']:not([role='switch']):checked { background-color: var(--brand); background-image: var(--check-mark); border-color: var(--grass-edge); image-rendering: pixelated; }
input[type='checkbox']:not([role='switch']):focus-visible { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--bg); }

/* switch: a pixel lever, the knob is a little Minecraft button */
.sw { position: relative; display: inline-block; width: 56px; height: 30px; flex: none; }
.sw input { position: absolute; inset: -7px -4px; width: calc(100% + 8px); height: calc(100% + 14px); opacity: 0; margin: 0; cursor: pointer; z-index: 2; }
.sw i { position: absolute; inset: 0; background: var(--track); border: 1px solid var(--field-edge); border-radius: var(--r); transition: background 0.12s, border-color 0.12s; }
.sw i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 22px; height: 22px; background: var(--btn); box-shadow: 0 0 0 2px var(--btn-edge), inset 2px 2px 0 var(--btn-hi), inset -2px -2px 0 var(--btn-lo); transition: transform 0.14s steps(4, end), background 0.12s; }
.sw i::before { content: ''; position: absolute; right: 8px; top: 8px; width: 6px; height: 6px; box-shadow: inset 0 0 0 2px var(--ink-3); }
.sw input:checked + i { background: var(--brand); border-color: var(--grass-edge); }
.sw input:checked + i::after { transform: translateX(26px); background: #f4f4f4; box-shadow: 0 0 0 2px var(--grass-edge), inset 2px 2px 0 #fff, inset -2px -2px 0 rgba(0, 0, 0, 0.25); }
.sw input:checked + i::before { left: 9px; right: auto; top: 7px; width: 2px; height: 10px; box-shadow: none; background: #fff; }
.sw input:hover:not(:disabled) + i { border-color: var(--btn-edge-hover); }
.sw input:focus-visible + i { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--bg); }
.sw input:disabled { cursor: not-allowed; }
.sw input:disabled + i { opacity: 0.4; }

.opt { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--border); cursor: pointer; }
.opt:first-of-type { border-top: 0; }
.opt .t { display: grid; gap: 3px; }
.opt .t b { font: 500 16px/1.35 var(--font); }
.opt .t small { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.opt.stackopt { display: block; cursor: default; }
.opt.disabled { opacity: 0.5; }
.stepper { display: inline-flex; align-items: stretch; flex: none; gap: 6px; }
.stepper .btn { min-height: 42px; min-width: 42px; padding: 0 0 2px; font: 600 20px/1 var(--display); }
.stepper .input { width: 68px; min-height: 42px; text-align: center; padding: 6px; -moz-appearance: textfield; }
.stepper .input::-webkit-outer-spin-button, .stepper .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* slider: a pixel track (filled in green up to the value, amber past the plan's cap) and the game's slider handle */
.range-wrap { display: grid; gap: 10px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-top b { font-weight: 500; }
.range-top .val { font: 600 15px var(--display); color: var(--ink); }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; margin: 0; }
input[type='range']::-webkit-slider-runnable-track { height: 12px; border: 1px solid var(--field-edge); background: linear-gradient(90deg, var(--brand) 0 var(--pct, 50%), transparent var(--pct, 50%)), linear-gradient(90deg, var(--track) 0 var(--cap, 100%), color-mix(in srgb, var(--orange) 45%, var(--track)) var(--cap, 100%)); border-radius: var(--r); }
input[type='range']::-moz-range-track { height: 8px; border: 1px solid var(--field-edge); background: linear-gradient(90deg, var(--brand) 0 var(--pct, 50%), transparent var(--pct, 50%)), linear-gradient(90deg, var(--track) 0 var(--cap, 100%), color-mix(in srgb, var(--orange) 45%, var(--track)) var(--cap, 100%)); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 28px; margin-top: -10px; background: var(--btn); border: 1px solid var(--btn-edge); }
input[type='range']::-moz-range-thumb { width: 10px; height: 24px; background: var(--btn); border: 1px solid var(--btn-edge); border-radius: 0; }
input[type='range']:hover::-webkit-slider-thumb { border-color: var(--btn-edge-hover); }
input[type='range']:hover::-moz-range-thumb { border-color: var(--btn-edge-hover); }
input[type='range']:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.optcards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); margin: 8px 0 4px; }
.optcard { position: relative; display: block; cursor: pointer; }
.optcard input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.optcard .in { display: grid; gap: 4px; padding: 16px; height: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r); transition: background 0.12s, border-color 0.12s; }
.optcard .in b { font: 500 16px var(--font); }
.optcard .in small { color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.optcard .in img, .optcard .in svg { width: 100%; height: 120px; object-fit: contain; margin-bottom: 10px; }
.optcard:hover .in { background: var(--panel-2); border-color: var(--border-2); }
.optcard input:checked + .in { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); border-color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.optcard input:checked + .in b::after { content: ' ✓'; color: var(--brand-ink); }
.optcard input:focus-visible + .in { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--bg); }

/* segmented choice: buttons in one frame, the chosen one pressed in and green */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--field-edge); background: var(--track); border-radius: var(--r); }
.seg button { min-height: 36px; border: 1px solid transparent; background: transparent; padding: 6px 14px 8px; font: 600 13px/1 var(--display); color: var(--ink-2); cursor: pointer; border-radius: var(--r); }
.seg button:hover { color: var(--ink); border-color: var(--btn-edge); background: var(--btn); }
.seg button[aria-selected='true'], .seg button[aria-pressed='true'], .seg button[aria-checked='true'] { background: var(--brand); border-color: var(--grass-edge); color: #fff; }
.seg button:focus-visible { outline: none; border-color: var(--ink); }
@media (max-width: 600px) { .seg button { min-height: 44px; } }

/* chips: small pixel tags; pressed ones are lit */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 12px 6px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--border-2); border-radius: var(--r); font: 400 14px/1.3 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none; }
button.chip:hover, a.chip:hover { color: var(--ink); border-color: var(--btn-edge-hover); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip:focus-visible { outline: none; border-color: var(--focus); box-shadow: inset 0 0 0 2px var(--bg); }
.chip.static { cursor: default; }
a.chip.chip-go { background: var(--brand); border-color: var(--grass-edge); color: #fff; }
a.chip.chip-go:hover { color: #fff; background: var(--brand-hi); border-color: var(--btn-edge-hover); }
.chip .ic { width: 13px; height: 13px; }
.chip .sicon.sm { width: 20px; height: 20px; margin: -2px 2px -2px -6px; }
@media (max-width: 600px) { button.chip, a.chip { min-height: 44px; } }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 2px 8px; font: 400 12.5px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; border: 1px solid var(--border-2); border-radius: var(--r); color: var(--ink-2); }
.badge .ic { width: 11px; height: 11px; }
.badge.on { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.badge.on::before { content: ''; width: 6px; height: 6px; background: var(--green); }
.badge.sleep { color: var(--ink-2); }
.badge.warn { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 45%, transparent); }
.badge.bad { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.badge.water { color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand-ink) 50%, transparent); }
.badge.gem { color: var(--purple); border-color: color-mix(in srgb, var(--purple) 50%, transparent); }

.notice { padding: 14px 16px; background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--ink-3); display: flex; gap: 12px; align-items: flex-start; margin: 0 0 20px; font-size: 16px; }
.notice .ic { width: 18px; height: 18px; margin-top: 3px; }
.notice.ok { border-left-color: var(--green); } .notice.ok > .ic { color: var(--green); }
.notice.err { border-left-color: var(--red); } .notice.err > .ic { color: var(--red); }
.notice.warn { border-left-color: var(--orange); } .notice.warn > .ic { color: var(--orange); }
.notice.info { border-left-color: var(--brand); } .notice.info > .ic { color: var(--brand-ink); }
.notice p:last-child { margin: 0; }
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 12px 14px; border: 1px solid rgba(245, 165, 36, 0.35); border-left: 3px solid var(--orange); font-size: 15px; }

.bar { height: 6px; background: var(--panel-3); margin: 12px 0 8px; }
.bar i { display: block; height: 100%; background: var(--brand); transition: width 0.4s ease; }
.bar.warn i { background: var(--orange); } .bar.bad i { background: var(--red); } .bar.blue i { background: var(--brand); }

.skel { background: linear-gradient(90deg, var(--panel) 0 40%, var(--panel-2) 50%, var(--panel) 60% 100%); background-size: 300% 100%; animation: shimmer 1.5s linear infinite; border: 1px solid var(--border); }
.skel.card { min-height: 180px; }
.skel.h1 { height: 60px; width: 55%; margin-bottom: 16px; }
.skel.h2 { height: 20px; width: 80%; margin-bottom: 12px; }
.skel.h3 { height: 20px; width: 40%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- surfaces ---------- */
.card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); box-shadow: inset 0 2px 0 var(--card-hi); padding: 28px; }
.card.flat { background: transparent; }
.card.tight { padding: 20px; }
.card h2 { font-size: 22px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card.hover { transition: border-color 0.15s, background 0.15s; }
.card.hover:hover { border-color: var(--border-2); background: var(--panel-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card-head h2, .card-head h3 { margin: 0; }
.title-ic { display: flex; align-items: center; gap: 10px; }
.title-ic .ic { width: 18px; height: 18px; color: var(--ink-3); }
.stack { display: grid; gap: 24px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.grid { display: grid; gap: 24px; }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.two { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.two.wide-l { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 900px) { .two, .two.wide-l { grid-template-columns: minmax(0, 1fr); } }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--head-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.head-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 74px; align-items: stretch; }
.head-in > * { min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 var(--pad); color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-globe { width: 26px; height: 26px; flex: none; }
.brand-name { font: 600 22px/1 var(--display); letter-spacing: -0.02em; }

.nav { grid-column: span 2; display: flex; align-items: center; gap: 36px; padding: 0 var(--pad); }
.nav a { color: var(--nav); font: 400 18px var(--font); text-decoration: none; transition: color 0.15s; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
.head-cta { display: flex; align-items: stretch; justify-content: flex-end; }
.head-cta .cta-block { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 14px; white-space: nowrap; background: var(--brand); color: #fff; font: 600 17px/1 var(--display); letter-spacing: 0.01em; text-decoration: none; }
.head-cta .cta-block:hover { background: var(--brand-hi); color: #fff; }
.head-cta .cta-block .ic { width: 18px; height: 18px; }

.menu-btn { display: none; }
.userwrap { position: relative; display: flex; }
.avatar-btn { gap: 9px; padding: 0 14px; border: 0; border-left: 1px solid var(--line); background: transparent; min-height: 100%; height: 100%; clip-path: none; box-shadow: none; font: 400 16px var(--font); text-transform: none; letter-spacing: 0; color: var(--ink); }
.avatar-btn:hover { border-color: var(--line); }
.avatar-btn:active:not(:disabled) { transform: none; box-shadow: none; }
.avatar-btn:hover { background: var(--panel-2); }
.avatar { width: 26px; height: 26px; flex: none; }
.avatar svg { width: 100%; height: 100%; }
.menu-pop { position: absolute; right: 0; top: 100%; min-width: 260px; background: #000; border: 1px solid var(--border-2); padding: 6px; z-index: 40; display: grid; gap: 0; }
.menu-pop .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-pop .who b { display: block; font-weight: 500; color: #fff; }
.menu-pop .who span { font: 400 13px var(--mono); color: var(--ink-3); word-break: break-all; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; color: #d4d4dc; background: none; border: 0; text-align: left; cursor: pointer; font: 400 16px var(--font); width: 100%; text-decoration: none; }
.menu-pop a:hover, .menu-pop button:hover, .menu-pop a:focus-visible, .menu-pop button:focus-visible { background: rgba(255, 255, 255, 0.1); color: #fff; }
.menu-pop .who { border-bottom-color: rgba(255, 255, 255, 0.14); }
.menu-pop .ic { width: 16px; height: 16px; }
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .head-in { grid-template-columns: minmax(0, 1fr) auto; height: 64px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .head-cta .cta-block { padding: 0 16px; font-size: 13px; flex: none; }
  .head-cta .cta-block .lbl-l { display: none; }
  .mobile-nav:not([hidden]) { display: grid; padding: 4px 0 16px; border-top: 1px solid var(--line); }
  .mobile-nav a { padding: 14px var(--pad); font: 400 20px var(--font); color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
  .mobile-nav a .ic { width: 18px; height: 18px; color: var(--ink-3); }
  .avatar-btn .hide-s { display: none; }
}
@media (max-width: 420px) { .brand-name { font-size: 18px; } .head-cta .cta-block { padding: 0 12px; } }
/* Links to a part of a page (#...) stop below the sticky header instead of under it. */
html { scroll-padding-top: 88px; }
@media (max-width: 900px) { html { scroll-padding-top: 76px; } }
/* Wider than a phone, the header keeps one row without overlaps: its columns line up with the page grid
   when there is room and grow for what they hold when there is not (signed in, with My servers and
   Admin), and the account button and the button on the right get shorter before anything collides. */
@media (min-width: 901px) {
  .head-in { grid-template-columns: minmax(max-content, 1fr) minmax(0, 2fr) minmax(max-content, 1fr); }
  .nav { grid-column: auto; min-width: 0; gap: clamp(16px, 2.4vw, 36px); }
  .nav a { white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .avatar-btn .hide-s { display: none; }
  .head-cta .cta-block { flex: none; padding: 0 20px; }
  .head-cta .cta-block .lbl-l { display: none; }
  .nav a { font-size: 17px; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .brand { padding-right: 12px; }
  .brand-name { font-size: 18px; }
  .nav { gap: 14px; padding: 0 14px; }
  .nav a { font-size: 16px; }
  .head-cta .cta-block { padding: 0 16px; }
}

/* ---------- footer ---------- */
#foot { position: relative; z-index: 1; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); padding: 90px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 72px; animation: marquee 40s linear infinite; padding-left: 72px; }
.marquee-track span { font: 600 clamp(48px, 6vw, 84px)/1 var(--display); letter-spacing: -0.02em; }
.marquee-track span:nth-child(5n+1) { color: #6cc349; } .marquee-track span:nth-child(5n+2) { color: #17dd62; } .marquee-track span:nth-child(5n+3) { color: #ffff55; } .marquee-track span:nth-child(5n+4) { color: #a7e06f; } .marquee-track span:nth-child(5n+5) { color: #3c8527; }
@keyframes marquee { to { transform: translateX(-50%); } }
.site-foot { padding: 30px 0 70px; color: var(--ink-2); }
.foot-grid h4 { font: 600 14px var(--font); color: var(--ink); margin: 0 0 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--text-md); }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-grid .ext::after { content: ' ↗'; font-size: 0.8em; }

@media (max-width: 900px) { .foot-grid > * { margin-bottom: 28px; } }

/* ---------- sections ---------- */
.sec { position: relative; border-top: 1px solid var(--line); isolation: isolate; }
.sec::before { content: none; }
.sec.plain::before { display: none; }
.sec-orange { --sec: var(--orange); } .sec-pink { --sec: var(--pink); } .sec-purple { --sec: var(--purple); } .sec-green { --sec: var(--green); } .sec-blue { --sec: var(--azure); } .sec-yellow { --sec: var(--yellow); } .sec-cyan { --sec: var(--cyan); }
.sec h2.display, .sec .sec-title { color: var(--head); }
.sec-head { padding-top: 112px; padding-bottom: 56px; }
.sec-head h2.display { margin-bottom: 18px; }
.sec-head .lead { margin: 0; }
.sec-head.tight { padding-bottom: 48px; }
.sec-body { padding-bottom: 112px; }
@media (max-width: 900px) { .sec-head { padding-top: 72px; padding-bottom: 40px; } .sec-body { padding-bottom: 72px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-in { position: relative; min-height: 720px; padding-top: 128px; padding-bottom: 0; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { color: var(--head); margin-bottom: 20px; font-size: clamp(38px, 5vw, 62px); max-width: 15ch; }
.hero .sub { font-size: var(--text-lg); color: var(--ink-2); max-width: 46ch; margin-bottom: 32px; line-height: 1.5; }
.hero-art { position: absolute; z-index: 1; left: 640px; right: min(0px, calc((1284px - 100vw) / 2 + 12px)); bottom: 20px; pointer-events: none; }
.hero-art img, .hero-art video { display: block; width: 100%; height: auto; }
.hero-stats { position: relative; z-index: 2; display: flex; gap: 40px; max-width: 50%; align-items: center; padding: 120px 0 34px; font-size: var(--text-md); color: var(--ink-2); flex-wrap: wrap; }
.hero-stats a { color: var(--ink); }
.live { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.live .dot { width: 28px; height: 28px; display: grid; place-items: center; background: rgba(74, 222, 74, 0.16); border-radius: 50%; }
.live .dot::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
@media (max-width: 1100px) and (min-width: 901px) {
  .hero-art { position: relative; left: auto; right: auto; bottom: auto; width: 100%; margin: 24px 0 -20px; }
  .hero-stats { padding-top: 40px; }
}
@media (max-width: 900px) {
  .hero-in { min-height: 0; padding-top: 48px; }
  .hero-art { position: relative; left: auto; right: auto; bottom: auto; width: calc(100% + 40px); margin: -10px -20px -40px; }
  .hero-stats { padding: 40px 0 28px; gap: 16px 32px; font-size: 16px; }
}

/* name box: square input with the green button attached */
.namebox { max-width: 566px; }
.nb-row { display: flex; align-items: stretch; }
.namebox .nb-field { flex: 1; min-width: 0; display: flex; align-items: center; border: 1px solid var(--field-edge); border-right: 0; background: var(--field); padding-left: 18px; border-radius: var(--r) 0 0 var(--r); box-shadow: var(--sh-1); }
.namebox .nb-field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.namebox input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 18px/1 var(--font); padding: 14px 0; outline: none; }
.namebox input::placeholder { color: var(--ink-3); }
.nb-suffix { font: 400 16px var(--mono); color: var(--ink-3); padding-right: 16px; white-space: nowrap; }
.namebox .btn-lg { min-height: 50px; padding: 0 22px; border-radius: 0 var(--r) var(--r) 0; }
.nb-status { display: flex; align-items: flex-start; gap: 8px; min-height: 24px; margin-top: 8px; font: 400 14px/1.4 var(--font); color: var(--ink-2); padding-left: 0; }
.nb-status .ic { display: none; }
.nb-status::before { content: none; }
.nb-status.ok { color: var(--green); } .nb-status.bad { color: var(--red); }
.nb-status .addr { color: var(--ink); }
#wname .nb-field { border-right: 1px solid var(--field-edge); padding-right: 0; border-radius: var(--r); }
#wname .nb-field:focus-within { border-color: var(--focus); }
#wname input { font-size: 20px; padding: 16px 0; }
#wname .nb-status { padding-left: 24px; }
@media (max-width: 600px) {
  .nb-row { flex-direction: column; }
  .namebox .nb-field { border-right: 1px solid var(--field-edge); border-radius: var(--r); }
  .namebox .btn-lg { border-radius: var(--r); }
  .nb-row { gap: 8px; }
  .namebox input { font-size: 18px; }
  .nb-suffix { font-size: 13px; }
  .nb-status { padding-left: 24px; }
}

/* media panel (wide render) */
.media { position: relative; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.media > img { width: 100%; height: auto; display: block; }
.media .overlay { position: absolute; left: 24px; bottom: 24px; }

/* renders inside sections */
.cast { position: relative; margin: 0 auto; }
.cast img { width: 100%; height: auto; }
.cast .annot { position: absolute; }

/* 4-up tiles */
.tiles4 > div { padding-top: 48px; padding-bottom: 48px; }
.tile-title { font: 500 17px/1.3 var(--font); color: var(--ink-2); text-align: center; margin-bottom: 26px; }
.tile-panel { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--r-lg); aspect-ratio: 1; padding: 22px; display: grid; align-content: center; gap: 10px; overflow: hidden; }
.tile-panel .mcline { font: 400 13px/1.4 var(--pixel); color: #fff; background: #29272f; padding: 6px 10px; display: flex; align-items: center; gap: 8px; }
.tile-panel .mcline.blue { background: #2b4f1d; }
.tile-panel .mcline.red { background: #5a2229; }
.tile-panel .mcline.green { background: #234a2a; }
.tile-panel .mcline .sicon { width: 22px; height: 22px; }
.tile-panel .mcline small { margin-left: auto; color: #b8b8c4; font-size: 11px; }
.tile-panel img { width: 100%; height: auto; }

/* 2-up feature cards */
.feat2 > div { padding-top: 64px; padding-bottom: 96px; }
.feat2 h3 { color: var(--ink); margin-bottom: 10px; }
.feat2 p { color: var(--ink-2); font-size: var(--text-base); line-height: 1.55; max-width: 400px; margin-bottom: 30px; }
.feat2 .media { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.feat2 .media img { width: 86%; height: auto; }

/* quote-style big cards (discover strip) */
.bigcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bigcard { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 24px; min-height: 220px; display: flex; flex-direction: column; gap: 18px; }
.bigcard .q { font: 500 18px/1.35 var(--font); overflow-wrap: anywhere; color: var(--ink); flex: 1; }
.bigcard .who { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: var(--text-md); min-width: 0; }
.bigcard .who .addr { font: 400 14px var(--mono); color: var(--ink-3); display: block; }
@media (max-width: 900px) { .bigcards { grid-template-columns: minmax(0, 1fr); } }

/* newsletter-style CTA row */
.join-row { padding-top: 46px; padding-bottom: 110px; align-items: start; }
.join-row h2.display { color: var(--brand-ink); margin: 0; }
.arrows { display: none; }
.join-row .namebox { max-width: none; }
@media (max-width: 900px) { .arrows { display: none; } }

/* ---------- plans (aligned to the 4 grid columns) ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.plan { position: relative; display: flex; flex-direction: column; padding: 40px var(--pad) 48px; border-left: 1px solid transparent; }
.plan .tier { width: 72px; height: 72px; margin: -6px 0 16px -6px; }
.plan .tier img { width: 100%; height: 100%; object-fit: contain; }
.plan .pname { font: 600 17px/1.2 var(--font); color: var(--ink); margin: 0 0 14px; }
.plan .price { font: 600 40px/1.1 var(--display); letter-spacing: -0.02em; color: var(--head); margin-bottom: 8px; }
.plan .price small { display: block; font: 400 14px var(--font); letter-spacing: 0; text-transform: none; color: var(--ink-3); margin-top: 12px; }
.plan ul { list-style: none; padding: 26px 0 0; margin: 22px 0 32px; display: grid; gap: 10px; flex: 1; align-content: start; border-top: 1px solid var(--border); }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-md); color: var(--ink-2); }
.plan li .ic { width: 15px; height: 15px; color: var(--brand-ink); margin-top: 4px; }
.plan.pop { background: var(--panel); box-shadow: inset 0 0 0 1px var(--brand), var(--sh-2); border-radius: var(--r-lg); }
.plan.pop .pname { color: var(--ink); }
.plan.cur .pname { color: var(--green); }
.ribbon { position: absolute; top: 36px; right: var(--pad); padding: 2px 8px; border-radius: var(--r-full); background: var(--brand-soft); font: 500 12px/1.5 var(--font); color: var(--brand-ink); }
.plan.cur .ribbon { color: var(--green); }
@media (max-width: 900px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan { border-bottom: 1px solid var(--line); } }
@media (max-width: 600px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 12px var(--pad); text-align: left; border-bottom: 1px solid var(--line); font-size: var(--text-md); }
.compare th:first-child, .compare td:first-child { color: var(--ink-2); }
.compare thead th { font: 600 var(--text-sm) var(--font); color: var(--ink); }
.compare td { color: var(--ink); }

/* ---------- FAQ (square accordion) ---------- */
.faqs { display: grid; border-top: 1px solid var(--border); }
.faq { border-bottom: 1px solid var(--border); background: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 4px; font: 500 16px/1.4 var(--font); color: var(--ink-2); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary:hover { color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 20px; height: 20px; transition: transform 0.2s; color: var(--ink-2); }
.faq[open] { background: var(--faq-open); }
.faq[open] summary { color: var(--ink); }
.faq[open] summary .ic { transform: rotate(180deg); color: var(--ink); }
.faq .ans { padding: 0 4px 20px; color: var(--ink-2); font-size: var(--text-md); max-width: 68ch; }

@media (max-width: 600px) { .faq summary { padding: 16px 2px; font-size: 15.5px; } .faq .ans { padding: 0 2px 18px; } }

/* ---------- app pages ---------- */
.page { padding-top: 0; padding-bottom: 120px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 72px 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); position: relative; }
.page-head::before { content: ''; position: absolute; left: 50%; width: 100vw; transform: translateX(-50%); top: 0; bottom: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--sec) 6%, transparent), transparent); }
.page-head h1 { margin: 0; font-size: clamp(36px, 4.6vw, 64px); }
.page-head p:not(.eyebrow) { margin: 20px 0 0; color: var(--ink-2); max-width: 600px; font-size: var(--text-lg); line-height: 1.5; }
.page-head .eyebrow { margin-bottom: 20px; }

.empty { text-align: left; display: grid; justify-items: start; gap: 6px; padding: 36px 32px; border: 2px dashed var(--border-2); }
.empty h3 { font: 600 24px/1 var(--display); letter-spacing: -0.02em; color: var(--head); margin-bottom: 8px; }
.empty p { color: var(--ink-2); max-width: 520px; }
.empty .btn-row { margin-top: 12px; }

.teach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; align-items: center; padding: 48px; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 12%, var(--panel)), var(--panel) 70%); }
.teach h2 { font: 600 40px/1.1 var(--display); letter-spacing: -0.02em; color: var(--head); }
.teach ol { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 0; counter-reset: t; border-top: 1px solid var(--border); }
.teach li { display: flex; gap: 16px; align-items: baseline; counter-increment: t; color: var(--ink-2); padding: 14px 0; border-bottom: 1px solid var(--border); }
.teach li b { color: var(--ink); font-weight: 500; }
.teach li::before { content: '0' counter(t); font: 400 14px var(--mono); color: var(--brand-ink); }
.teach .vis img { width: 100%; max-width: 360px; margin: -20px auto -60px; }
@media (max-width: 800px) { .teach { grid-template-columns: minmax(0, 1fr); padding: 28px; } .teach .vis { display: none; } }

/* wizard */
.wiz { max-width: none; }
.wiz-steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wiz-steps li { display: flex; align-items: center; gap: 12px; padding: 18px var(--pad); font: 400 16px var(--font); color: var(--ink-3); border-left: 1px solid var(--line); }
.wiz-steps li:first-child { border-left: 0; }
.step-dot { font: 400 14px var(--mono); color: inherit; }
.step-dot .ic { width: 14px; height: 14px; }
.wiz-steps li.done { color: var(--ink-2); }
.wiz-steps li.done .step-dot { color: var(--green); }
.wiz-steps li[aria-current='step'] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--brand); }
.wiz-steps li[aria-current='step'] .step-dot { color: var(--brand-ink); }
@media (max-width: 640px) { .wiz-steps li { padding: 14px 12px; } .wiz-steps li .lbl-t { display: none; } .wiz-steps li[aria-current='step'] .lbl-t { display: inline; } }
.wiz-panel, .card.wiz-panel { padding: 0; background: transparent; border: 0; box-shadow: none; max-width: 980px; }
.wiz-panel > h1 { font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 20px; }
.wiz-panel > .lead { margin-bottom: 40px; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wiz-nav .grow { flex: 1; }
@media (max-width: 600px) { .wiz-nav .btn-lg { flex: 1; } }
.pick-grid { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.pick-grid.big { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.pick { position: relative; display: block; cursor: pointer; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pick > input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.pick-in { display: grid; gap: 6px; align-content: start; padding: 20px; height: 100%; transition: background 0.15s; }
.pick-in .art { width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; }
.pick-in .art.upload-art { border: 1px dashed var(--border-2); }
.pick-in .art img { width: 70%; height: 90%; object-fit: contain; }
.pick-in .art.upload-art .ic { width: 44px; height: 44px; color: var(--ink-2); }
.pick-in b { font: 500 18px/1.3 var(--font); display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pick-in small { color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.pick-in .tick { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--field-edge); background: var(--field); border-radius: var(--r); color: transparent; flex: none; }
.pick-in .tick .ic { width: 12px; height: 12px; }
.pick:hover .pick-in { background: var(--panel-2); }
.pick > input:checked + .pick-in { background: rgba(60, 133, 39, 0.1); box-shadow: inset 0 0 0 2px var(--brand); }
.pick > input:checked + .pick-in .tick { background: var(--brand); border-color: var(--grass-edge); color: #fff; }
.pick > input:focus-visible + .pick-in { outline: 2px solid var(--focus); outline-offset: -5px; }
.pick > input:disabled + .pick-in { opacity: 0.45; cursor: not-allowed; }
.pick.mode-pick .pick-in small { grid-column: auto; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.summary { display: grid; margin: 0; border-top: 1px solid var(--border); }
.summary > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.summary dt { color: var(--ink-2); font: 400 14px var(--mono); text-transform: uppercase; }
.summary dd { margin: 0; font: 500 17px var(--font); display: flex; gap: 10px; align-items: center; }
.done-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.done-hero .art { position: relative; }
.done-hero .art img { width: 100%; height: auto; }
.done-hero .eyebrow { --sec: var(--green); }
@media (max-width: 900px) { .done-hero { grid-template-columns: minmax(0, 1fr); } }
.burst { display: none; }

/* Minecraft server-list preview (the game's own look on purpose) */
.mc-row { display: flex; gap: 14px; align-items: center; background: #0f0f0f; color: #fff; padding: 10px 14px 10px 10px; border: 1px solid #3a3a3a; font-family: var(--pixel); }
.mc-row .sicon { width: 48px; height: 48px; }
.mc-row .n { font-size: 14px; color: #fff; }
.mc-row .m { font-size: 12px; color: #a8a8a8; min-height: 18px; word-break: break-word; margin-top: 4px; }
.mc-row .r { margin-left: auto; display: flex; gap: 12px; align-items: center; color: #a8a8a8; font-size: 12px; white-space: nowrap; }
.mc-row .bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.mc-row .bars i { width: 3px; background: #4bd34b; }
.mc-cap { font: 400 14px var(--mono); text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }

.btn.addr-btn { width: 100%; justify-content: space-between; min-height: 72px; padding: 14px 22px; background: var(--brand); border: 1px solid var(--grass-edge); border-radius: var(--r); color: #fff; }
.btn.addr-btn:hover { background: var(--brand-hi); border-color: var(--btn-edge-hover); color: #fff; }
.addr-btn .a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 clamp(16px, 2.2vw, 26px)/1 var(--display); letter-spacing: -0.02em; }
.addr-btn .c { font: 400 13px var(--mono); text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; flex: none; }

.join-steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; counter-reset: j; border-top: 1px solid var(--border); }
.join-steps li { display: flex; gap: 18px; align-items: baseline; counter-increment: j; color: var(--ink-2); padding: 14px 0; border-bottom: 1px solid var(--border); }
.join-steps li b { color: var(--ink); font-weight: 500; }
.join-steps li::before { content: '0' counter(j); font: 400 14px var(--mono); color: var(--brand-ink); flex: none; }
.join-steps.big li span { font-size: 19px; }
.join-steps.ticks li::before { content: '—'; color: var(--ink-3); }

.drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 40px 20px; text-align: center; border: 2px dashed var(--border-2); background: var(--well); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop:hover { border-color: var(--ink-3); }
.drop input { display: none; }
.drop b { font: 500 18px var(--font); }
.drop .ic { width: 28px; height: 28px; color: var(--ink-2); }
.drop.over, .drop.has { border-color: var(--brand); background: rgba(60, 133, 39, 0.08); }

/* auth */
.auth { max-width: 560px; margin: 0 auto; padding-top: 96px; padding-bottom: 120px; }
.auth .card { padding: 40px; background: var(--panel); }
.auth h1 { font-size: 46px; margin-bottom: 18px; }
.authintro { margin-bottom: 26px; font-size: 18px; }
.sso { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 6px 0 20px; }
.sso .btn { width: 100%; }
.sso .btn + .btn { border-left: 0; }
.sso .mk { width: 18px; height: 18px; display: grid; place-items: center; font: 700 11px var(--font); color: #fff; }
.sso .mk svg { width: 100%; height: 100%; }
.sso .mk:not(.d) { background: #fff; padding: 2px; }
.sso .mk.d { background: #5865f2; }
.or { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font: 400 13px var(--mono); text-transform: uppercase; margin: 6px 0 22px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 52px; }
.pw-wrap .peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--ink-3); cursor: pointer; padding: 8px; }
.pw-wrap .peek .ic { width: 18px; height: 18px; }

/* modal & toasts */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: var(--scrim); animation: fade 0.15s ease-out; overflow-y: auto; }
.modal { background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--r); width: min(580px, 100%); padding: 36px; position: relative; animation: pop 0.2s ease-out; max-height: calc(100vh - 40px); overflow-y: auto; }
.modal.wide { width: min(800px, 100%); }
.modal > h2 { font: 600 30px/1.1 var(--display); letter-spacing: -0.02em; color: var(--head); padding-right: 48px; margin-bottom: 20px; }
.modal .x { position: absolute; top: 14px; right: 14px; }
.modal .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.toasts { position: fixed; z-index: 80; right: 24px; bottom: 24px; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--panel); color: var(--ink); border: 1px solid var(--border-2); border-left: 3px solid var(--brand); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; pointer-events: auto; animation: rise 0.2s ease-out; font-size: 15.5px; }
.toast .ic { width: 16px; height: 16px; margin-top: 3px; flex: none; }
.toast.ok { border-left-color: var(--green); } .toast.ok .ic { color: var(--green); }
.toast.err { border-left-color: var(--red); } .toast.err .ic { color: var(--red); }
.toast.info .ic { color: var(--brand-ink); }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
@media (max-width: 600px) { .toasts { right: 16px; left: 16px; width: auto; } }

/* server page */

.tabs { display: flex; gap: 0; overflow-x: auto; margin: 0 0 40px; scrollbar-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 9px; padding: 18px 22px; color: var(--nav); font: 400 17px var(--font); white-space: nowrap; flex: none; text-decoration: none; border-right: 1px solid var(--line); }
.tab .ic { width: 16px; height: 16px; }
.tab:hover { color: var(--ink); background: var(--panel); }
.tab[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--brand); }
.tab-btn { border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; }
.savebar { position: sticky; bottom: 20px; z-index: 20; margin-top: 28px; background: var(--panel); border-radius: var(--r); border: 1px solid var(--border-2); border-left: 3px solid var(--orange); padding: 12px 14px 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; animation: rise 0.2s ease-out; }
.savebar .ic { color: var(--orange); }
.savebar b { font-weight: 500; }

.blist { list-style: none; padding: 0; margin: 0; display: grid; }
.blist li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.blist li:first-child { border-top: 0; }
.blist .info { flex: 1; min-width: 180px; display: grid; }
.blist .info b { font: 500 17px var(--font); }
.blist .info small { color: var(--ink-3); font-family: var(--mono); font-size: 13px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.kv dt { color: var(--ink-3); font: 400 14px var(--mono); text-transform: uppercase; }
.kv dd { margin: 0; }

.console-out { background: #050505; color: #b7f5c8; font: 13px/1.6 var(--mono); padding: 16px; height: 220px; overflow: auto; white-space: pre-wrap; border: 1px solid var(--border); }
.cmd-wrap { position: relative; display: flex; align-items: stretch; }
.input.cmd-input { flex: 1; min-width: 0; border-right: 0; background: transparent; position: relative; z-index: 1; caret-color: var(--ink); font-size: 16px; }
.cmd-mirror { position: absolute; inset: 0 auto 0 0; right: var(--run-w, 96px); padding: 12px 16px; border: 1px solid transparent; font: 400 16px/1.4 var(--mono); white-space: pre; overflow: hidden; color: transparent; pointer-events: none; display: flex; align-items: center; background: var(--field); }
.cmd-mirror .cmd-bad { text-decoration: underline wavy var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.cmd-mirror .cmd-ghost { color: var(--ink-3); }
.cmd-input.mono { font-family: var(--mono); font-size: 16px; line-height: 1.4; }
.btn.cmd-run { border-radius: 0 var(--r) var(--r) 0; min-width: 96px; min-height: 50px; position: relative; z-index: 1; }
.cmd-list { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 0; list-style: none; background: var(--panel-2); border: 1px solid var(--border-2); border-top: 0; max-height: min(46vh, 340px); overflow-y: auto; z-index: 20; }
.cmd-opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 8px 16px; cursor: pointer; font: 400 15px/1.3 var(--mono); border-top: 1px solid var(--line); }
.cmd-opt:first-child { border-top: 0; }
.cmd-opt:hover, .cmd-opt[aria-selected='true'] { background: var(--panel-3); color: var(--ink); box-shadow: inset 3px 0 0 var(--blue); }
.cmd-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-tip { color: var(--ink-3); font: 400 13px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.cmd-more { padding: 10px 16px; color: var(--ink-3); font: 400 13px var(--font); border-top: 1px solid var(--line); }
.cmd-usage { min-height: 24px; margin-top: 12px; color: var(--ink-2); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.cmd-usage .cmd-cur { color: var(--ink); font-weight: 500; background: color-mix(in srgb, var(--blue) 28%, transparent); padding: 0 3px; }
.cmd-error { min-height: 22px; margin-top: 2px; color: var(--red); font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .cmd-opt { min-height: 48px; } .cmd-tip { display: none; } .btn.cmd-run { min-width: 76px; } .cmd-mirror { right: 76px; } .console .console-out { height: 240px; } }
.motd-in { font-family: var(--mono); font-size: 15px; }

.meter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font: 400 14px var(--mono); }
.meter b { font-weight: 400; }
.meter .slots { display: flex; gap: 3px; flex-wrap: wrap; }
.meter .slots i { width: 12px; height: 12px; background: var(--panel-3); }
.meter .slots i.on { background: var(--brand); }
.sicon { width: 52px; height: 52px; flex: none; background: var(--panel-3); display: grid; place-items: center; overflow: hidden; }
.sicon svg, .sicon img { width: 100%; height: 100%; image-rendering: pixelated; }
.sicon .item { width: 76%; height: 76%; }
.sicon .txt { font-size: 26px; line-height: 1; }
.sicon.sm { width: 28px; height: 28px; }
.sicon.lg { width: 92px; height: 92px; }

/* mode & server cards */

.mode { display: grid; gap: 6px; align-content: start; padding: 24px; border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }

.mode b, .mode h3 { font: 500 19px/1.25 var(--font); margin: 4px 0 0; }
.mode p { color: var(--ink-2); font-size: 15px; margin: 0; }
.mode .cat { font: 400 13px var(--mono); color: var(--ink-3); text-transform: uppercase; }
.mode.on { background: rgba(60, 133, 39, 0.08); box-shadow: inset 0 0 0 1px var(--brand); }

.mode .note { color: var(--orange); font-size: 14px; margin: 6px 0 0; }
.scard { display: grid; gap: 16px; align-content: start; }
.scard .top { display: flex; gap: 16px; align-items: center; min-width: 0; }
.scard .top > div { min-width: 0; }
.scard h3 { margin: 0 0 4px; font: 500 21px/1.2 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scard .addr { font: 400 13.5px var(--mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scard .motd { color: var(--ink-2); font-size: 16px; margin: 0; min-height: 24px; }
.scard .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--border); }
.online-n { font: 400 14px var(--mono); display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.online-n.zero { color: var(--ink-3); }
.online-n .ic { width: 14px; height: 14px; }

/* admin */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; margin-bottom: 32px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.tile { background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px; display: grid; gap: 8px; }
.tile b { font: 600 clamp(24px, 2.1vw, 36px)/1.1 var(--display); white-space: nowrap; letter-spacing: -0.02em; color: var(--head); order: 2; }
.tile span { color: var(--ink-2); font: 400 13px var(--mono); text-transform: uppercase; order: 1; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font: 400 13px var(--mono); text-transform: uppercase; color: var(--ink-3); padding: 14px 18px; white-space: nowrap; border-bottom: 1px solid var(--border); }
.tbl td { padding: 12px 18px; border-top: 1px solid var(--border); vertical-align: middle; }
.tbl tr:first-child td { border-top: 0; }
.tbl tbody tr:hover td { background: var(--panel); }
.tbl td.code, .code { font-family: var(--mono); font-size: 13.5px; }
.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.install { display: block; background: #050505; color: #b7f5c8; font: 14px/1.6 var(--mono); padding: 18px; word-break: break-all; margin: 14px 0 16px; user-select: all; border: 1px solid var(--border); }
.waiting { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); margin-top: 10px; font: 400 15px var(--mono); }
.waiting .dots i { display: inline-block; width: 6px; height: 6px; background: var(--green); margin-right: 4px; animation: blink 1s steps(2) infinite; }
.waiting .dots i:nth-child(2) { animation-delay: 0.33s; }
.waiting .dots i:nth-child(3) { animation-delay: 0.66s; }
@keyframes blink { 50% { opacity: 0.2; } }
.node-cards { display: none; }
@media (max-width: 760px) { .node-cards { display: grid; gap: 16px; } .node-table { display: none; } }

/* discover */
.searchbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: end; margin-bottom: 36px; }
.search-in { position: relative; display: block; }
.search-in .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); z-index: 1; }
.search-in .input { padding-left: 46px; }
@media (max-width: 760px) { .searchbar { grid-template-columns: minmax(0, 1fr); } }

/* credits */
.credit { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; overflow-wrap: anywhere; }
.credit .thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.credit .thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; }
.credit .thumbs img.render { image-rendering: auto; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.span2.start2 { grid-column: 2 / span 2; }
@media (max-width: 900px) { .span2.start2 { grid-column: span 2; } }
@media (max-width: 600px) { .span2.start2 { grid-column: span 1; } }
@media (max-width: 900px) {
  .media.reveal[style] { margin: 0 !important; }
  .row[style*="calc(var(--col)"] { margin: 16px 0 0 !important; justify-content: flex-start !important; }
  .annot { white-space: normal; }
  .cast .annot { display: none; }
  .hero-art { margin-top: 24px; }
  .head-cta .userwrap { display: none; }

}
@media (max-width: 600px) { .page-head > .btn, .page-head .btn-row { max-width: 100%; } .page-head .btn-lg { white-space: normal; padding: 14px 18px; font-size: 15px; } }
@media (max-width: 600px) {
  .media .overlay { display: none; }
  .tile-panel { aspect-ratio: auto; min-height: 160px; }
  .addr-btn .a { font-size: 15px; }
}

/* performance stat slot: value is filled in later from measured load tests */

@media (max-width: 900px) { .hero-stats { max-width: none; } }

/* resources panel */

.res-l { font: 400 12.5px var(--mono); text-transform: uppercase; color: var(--ink-3); }

.spark { width: 100%; height: 28px; color: var(--brand-ink); margin-top: 4px; }
.spark.ok { color: var(--green); }

/* =====================================================================================
   Minecraft-flavoured details (pass 4), layered on the black grid design.
   ===================================================================================== */

/* the big green address buttons and the header's New server block share the green button's bevel */

/* item tooltip: purple-black panel with the purple gradient border, pixel title line */
.mc-tip, .menu-pop, .modal.tip {
  background: rgba(16, 0, 16, 0.96); color: var(--ink);
  border: 1px solid transparent; border-image: linear-gradient(180deg, #5000ff, #28007f) 1;
  box-shadow: 0 0 0 2px #100010, 0 24px 60px rgba(0, 0, 0, 0.6);
}
.mc-tip { position: fixed; z-index: 90; max-width: 300px; padding: 8px 12px 10px; pointer-events: none; font: 400 14px/1.45 var(--font); color: #aaa; animation: fade 0.12s ease-out; }
.mc-tip b { display: block; font: 400 13px/1.4 var(--pixel); color: #fff; text-transform: none; letter-spacing: 0; margin-bottom: 2px; }
.mc-tip .lore { color: #a87bff; }
.modal.tip > h2 { color: #fff; }
.menu-pop .who span { color: #a87bff; }
[data-tip] { cursor: help; }
button[data-tip], a[data-tip] { cursor: pointer; }

/* inventory slots */
.slot { position: relative; width: var(--slot, 52px); height: var(--slot, 52px); flex: none; display: grid; place-items: center; background: var(--slot-bg); padding: 6px; }
.slot img, .slot svg { width: 100%; height: 100%; image-rendering: pixelated; }
.slot img.render { image-rendering: auto; }
.slot:hover::after { content: ''; position: absolute; inset: 2px; background: rgba(255, 255, 255, 0.16); pointer-events: none; }
.slot.sm { --slot: 34px; padding: 3px; }
.slot.lg { --slot: 76px; padding: 10px; }
.slot .count { position: absolute; right: 3px; bottom: 0; font: 400 12px var(--pixel); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }

/* XP-bar progress: green, segmented, with a level number */
.bar { height: 10px; background: #1b1b1b; box-shadow: 0 0 0 1px #000, inset 0 1px 0 #000; position: relative; margin: 14px 0 10px; overflow: hidden; }
.bar i { background: linear-gradient(180deg, #b6f37a 0 30%, #7fd15a 30% 70%, #4f9e2f 70%); }
.bar::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 18 - 2px), rgba(0, 0, 0, 0.75) calc(100% / 18 - 2px), rgba(0, 0, 0, 0.75) calc(100% / 18)); pointer-events: none; }
.bar.warn i { background: linear-gradient(180deg, #ffe08a 0 30%, #f5a524 30%); }
.bar.bad i { background: linear-gradient(180deg, #ff9c9c 0 30%, #ff5a5a 30%); }
.xp { position: relative; padding-top: 22px; }

/* boss bar banners */
.bossbar { text-align: center; padding: 18px 20px 20px; border: 2px solid var(--border); border-radius: var(--r); background: var(--surface); margin: 0 0 24px; }
.bossbar .bb-title { font: 400 15px/1.4 var(--pixel); color: var(--ink); text-shadow: 2px 2px 0 var(--px-shadow); margin-bottom: 8px; }
.bossbar .bb-bar { height: 8px; max-width: 560px; margin: 0 auto 14px; background: #3a0d2c; box-shadow: 0 0 0 1px #000; position: relative; }
.bossbar .bb-bar i { position: absolute; inset: 0 auto 0 0; width: var(--v, 100%); background: linear-gradient(180deg, #ff9ae3 0 35%, #e04cbc 35%); }
.bossbar .bb-bar::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(0, 0, 0, 0.6) calc(10% - 1px) 10%); }
.bossbar.amber .bb-bar { background: #3a2a06; } .bossbar.amber .bb-bar i { background: linear-gradient(180deg, #ffe08a 0 35%, #f5a524 35%); }
.bossbar p { color: var(--ink-2); max-width: 620px; margin: 0 auto 12px; }
.bossbar .btn-row { justify-content: center; }

/* advancement toasts */
.toast.adv { background: #212121; border: 2px solid #555; border-left-width: 2px; box-shadow: inset 0 0 0 2px #000, 0 20px 50px rgba(0, 0, 0, 0.6); padding: 10px 14px 10px 10px; align-items: center; gap: 12px; color: #fff; }
.toast.adv .slot { --slot: 40px; padding: 4px; background: #3a3a3a; }
.toast.adv .t-title { display: block; font: 400 13px/1.4 var(--pixel); color: #fcfc54; text-shadow: 2px 2px 0 #3f3f15; }
.toast.adv .t-body { display: block; font-size: 15px; color: #fff; }

/* chat-style console */
.console-out { background: var(--chat-bg); border: 0; box-shadow: inset 0 0 0 1px #1f1f1f; color: #fff; font: 400 20px/1.15 'VT323', var(--mono); text-shadow: 2px 2px 0 #3f3f3f; padding: 12px 14px; }

#cf .input { background: var(--chat-bg); color: #fff; font: 400 20px 'VT323', var(--mono); border-color: #3a3a3a; }

/* grass edge strips (used sparingly) */
.grass-edge { position: relative; }
.grass-edge::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 12px; background: url('/art/blocks/grass_side.png') 0 0 / 24px 24px repeat-x; image-rendering: pixelated; z-index: 2; pointer-events: none; }
#foot.grass-edge::before { top: 0; height: 18px; background-size: 36px 36px; }

/* hotbar tabs (desktop) */
@media (min-width: 901px) {
  .tabs.hotbar { display: inline-flex; border: 0; padding: 3px; gap: 0; background: rgba(20, 20, 20, 0.9); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #5a5a5a; margin-bottom: 36px; overflow: visible; }
  .tabs.hotbar .tab { flex-direction: column; gap: 6px; padding: 10px 12px 8px; min-width: 92px; border: 0; box-shadow: inset -2px 0 0 #3a3a3a; font: 400 13px var(--font); color: #cfcfcf; position: relative; }
  .tabs.hotbar .tab:last-child { box-shadow: none; }
  .tabs.hotbar .tab .ic { display: none; }

  .tabs.hotbar .tab:hover { background: rgba(255, 255, 255, 0.07); }
  .tabs.hotbar .tab[aria-current] { box-shadow: inset 0 0 0 3px #f0f0f0, inset 0 0 0 5px #000; background: rgba(255, 255, 255, 0.06); color: var(--ink); }
  .tabs.hotbar .tab .key { position: absolute; left: 6px; top: 4px; font: 400 10px var(--pixel); color: #7a7a7a; }
}
@media (max-width: 900px) { .tabs.hotbar .key { display: none; } }

/* title-screen splash */
.splash-anchor { position: relative; display: inline-block; }
.splash { display: none; }
.splash { position: absolute; left: calc(100% + 6px); top: -0.2em; z-index: 3; font: 700 22px/1 var(--pixel); color: #ffff55; text-shadow: 3px 3px 0 #3f3f15; white-space: nowrap; transform: rotate(-17deg); transform-origin: 0 100%; animation: splash 0.55s ease-in-out infinite alternate; pointer-events: none; }
@keyframes splash { from { transform: rotate(-17deg) scale(1); } to { transform: rotate(-17deg) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .splash { display: none; }
.splash { animation: none; } }

/* 3D item renders */
img.itm { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }

/* home: steps, what-you-get, perf tiles, gallery, chat mock */
.steps3 > div { padding-top: 40px; padding-bottom: 72px; border-right: 1px solid var(--line); }
.steps3 > div:last-child { border-right: 0; }
.step-n { display: inline-block; font: 600 14px var(--display); color: #fff; background: #2b2b2b; text-shadow: 2px 2px 0 #3f3f3f; padding: 8px 10px; margin-bottom: 18px; }
.steps3 h3 { margin-bottom: 4px; }
.step-vis { margin-top: 24px; display: grid; gap: 8px; }
.mini-name { display: flex; align-items: baseline; min-width: 0; border: 1px solid var(--field-edge); border-radius: var(--r); padding: 12px 14px; font-size: 16px; gap: 2px; background: var(--field); white-space: nowrap; overflow: hidden; }
.mini-name .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); font-size: 13px; }
.step-vis .mc-row { padding: 8px 10px 8px 8px; }
.step-vis .mc-row .sicon { width: 36px; height: 36px; }
.get-tiles > div { padding-top: 40px; padding-bottom: 44px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.get-tiles > div:nth-child(4n) { border-right: 0; }
.get-tiles h3 { margin: 18px 0 6px; font-size: 19px; }
.get-tiles p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

.gallery > article { padding-top: 36px; padding-bottom: 36px; border-right: 1px solid var(--line); }
.gallery > article:last-child, .gallery > article:nth-child(4n) { border-right: 0; }
.gallery > article:nth-child(n+5) { border-top: 1px solid var(--line); }
.g-art { aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 18px; }
.g-art img { width: 82%; height: 82%; object-fit: contain; }
.gallery h3 { margin: 4px 0 6px; } .gallery p:not(.res-l) { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.chat-mock { display: grid; gap: 4px; background: var(--chat-bg); padding: 10px; font: 400 18px/1.1 'VT323', var(--mono); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
@media (max-width: 900px) {
  .steps3 > div, .get-tiles > div, .gallery > article { border-right: 0; border-bottom: 1px solid var(--line); }
  .gallery > article:nth-child(n+5) { border-top: 0; }
}

.cmp-h { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cmp-h .plan-block { width: 40px; height: 40px; }
.ribbon-s { font: 400 11px var(--mono); color: var(--brand-ink); }

/* server page extras */

.inv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-top: 14px; }
.inv-row .slot { --slot: 48px; padding: 5px; }
.inv-count { margin-left: 14px; font: 400 14px var(--mono); color: var(--ink-2); }

.roles { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.roles .badge { font-size: 11px; padding: 0 6px; }

.mode.dim { opacity: 0.62; }

.chip.good { color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand-ink) 50%, transparent); }
.chip.bad { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }

.blist .slot.sm { --slot: 40px; }

/* wizard extras */
#wxp { margin: -24px 0 36px; }
.wiz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.wiz-aside { position: sticky; top: 110px; display: grid; gap: 14px; justify-items: center; padding-top: 40px; min-width: 0; }
.wiz-aside .annot { white-space: normal; }
.wiz-aside img { width: 100%; max-height: 300px; object-fit: contain; }
@media (max-width: 1100px) { .wiz-layout { grid-template-columns: minmax(0, 1fr); } .wiz-aside { display: none; } }
.pick-in > .slot.sm { --slot: 38px; margin-bottom: 6px; }
.pick.mode-pick .pick-in { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; }
.pick.mode-pick .pick-in > .slot { grid-row: span 2; margin: 0; }
.sum-card { border: 1px solid var(--border); padding: 20px; background: linear-gradient(180deg, rgba(60, 133, 39, 0.1), transparent 60%); }
.sum-top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.sum-name { font: 600 26px/1 var(--display); letter-spacing: -0.02em; color: var(--head); overflow-wrap: anywhere; }
.summary dd .slot.sm { --slot: 30px; padding: 2px; }
.confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -40px; width: 28px; height: 28px; animation: drop 2.6s cubic-bezier(.3, .6, .5, 1) var(--d) forwards; opacity: 0; }
.confetti i svg { width: 100%; height: 100%; }
@keyframes drop { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), 105vh) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* icon picker as inventory */

/* help: illustrated steps with Minecraft-style screens */
.help-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); }
.hstep { padding: 22px; border-right: 1px solid var(--border); }
.hstep:last-child { border-right: 0; }
.hvis { margin-bottom: 20px; }
.mc-screen { aspect-ratio: 4 / 3; background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75)), url('/art/blocks/grass_side.png') 0 0 / 32px 32px; image-rendering: pixelated; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 12px; overflow: hidden; }
.mc-screen > * { image-rendering: auto; }
.mc-logo { font: 700 20px var(--pixel); color: #e6e6e6; text-shadow: 3px 3px 0 #3f3f3f; margin-bottom: 6px; text-transform: uppercase; }
.mcbtn { display: block; min-width: 150px; text-align: center; padding: 5px 10px; font: 400 11px var(--pixel); color: #e0e0e0; background: #6f6f6f; box-shadow: 0 0 0 2px #000, inset 0 2px 0 #a0a0a0, inset 0 -3px 0 #4a4a4a; text-shadow: 2px 2px 0 #383838; }
.mcbtn.on { background: #7f8fd0; color: #ffffa0; box-shadow: 0 0 0 2px #fff, inset 0 2px 0 #b0bcf0, inset 0 -3px 0 #4f5a90; }
.mc-btnrow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mc-btnrow .mcbtn { min-width: 0; }
.mc-lbl { font: 400 10px var(--pixel); color: #a0a0a0; justify-self: start; width: 100%; }
.mc-input { width: 100%; background: #000; box-shadow: 0 0 0 1px #a0a0a0; color: #e0e0e0; font: 400 11px var(--pixel); padding: 5px 6px; text-align: left; }
.hstep .mc-row { transform: scale(0.9); }
.guide { display: grid; gap: 0; }
.guide > div { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); color: var(--ink-2); font-size: 15px; }
.guide > div:first-child { border-top: 0; }
.guide b { display: block; color: var(--ink); font-weight: 500; }
.title-ic .slot.sm { --slot: 34px; }
@media (max-width: 1000px) { .help-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hstep:nth-child(2) { border-right: 0; } .hstep:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }
@media (max-width: 600px) { .help-steps { grid-template-columns: minmax(0, 1fr); } .hstep { border-right: 0; border-bottom: 1px solid var(--border); } }

/* 404 */
.nf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; padding: 96px 0 40px; }
.nf h1 { margin-bottom: 24px; }
.f3 { font: 400 20px/1.2 'VT323', var(--mono); color: #fff; background: var(--f3-bg); padding: 8px 12px; display: inline-block; text-shadow: 2px 2px 0 #3f3f3f; margin: 8px 0 32px; white-space: pre; }
.nf-art img { width: 100%; max-width: 420px; margin: 0 auto; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
@media (max-width: 800px) { .nf { grid-template-columns: minmax(0, 1fr); padding-top: 48px; } .nf-art { order: -1; } .nf-art img { max-width: 240px; } }
@media (prefers-reduced-motion: reduce) { .nf-art img { animation: none; } }
.tile > .slot { order: 0; margin-bottom: 6px; }
.tile span.slot { text-transform: none; }
@media (max-width: 560px) { .splash { display: none; }
.splash { font-size: 14px; left: auto; right: 0; top: auto; bottom: 0.9em; transform-origin: center; } }
.cmp-wrap { overflow-x: auto; }
@media (max-width: 560px) { .compare th, .compare td { padding: 12px 8px; font-size: 14px; } .compare thead th { font-size: 12px; } .compare .plan-block { width: 36px; height: 36px; } }

/* ---------- 3D characters and mobs ---------- */
.live3d { position: relative; width: 100%; }
.live3d > .still, .live3d > .live-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.live3d > .still { object-fit: contain; transition: opacity 0.5s ease 0.15s; }
.live3d > .live-canvas { opacity: 0; transition: opacity 0.5s ease; }
.live3d.is-live > .live-canvas { opacity: 1; }
.live3d.is-live > .still { opacity: 0; }
.nf-art .live3d { max-width: 620px; margin: 0 auto; }
.teach .vis .live3d { margin: -30px -20px -60px; width: calc(100% + 40px); }
.done-hero .art .live3d { margin: -20px 0 -40px; }

.page-head.has-art { align-items: flex-end; flex-wrap: nowrap; }
.page-head .ph-text { min-width: 0; flex: 1 1 auto; }
.page-head .ph-side { margin-top: 28px; }
.ph-art { flex: 0 0 min(400px, 34vw); align-self: flex-end; margin: -40px 0 -41px; pointer-events: none; }
.ph-art img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .page-head.has-art { flex-wrap: wrap; } .ph-art { flex: 1 1 100%; max-width: 360px; margin: 8px auto -41px; } }

.sec-art { align-self: end; display: grid; justify-items: center; }
.sec-art img { width: min(100%, 420px); height: auto; margin-bottom: -2px; }
@media (max-width: 900px) { .sec-art img { width: min(80%, 340px); } }

.empty .es-mob { display: block; width: auto; height: 120px; max-width: 70%; object-fit: contain; margin: 0 auto 18px; }

/* mobs hanging around the footer grass */
#foot { position: relative; }
.foot-mobs { position: absolute; left: 0; right: 0; top: -140px; height: 140px; overflow: hidden; pointer-events: none; z-index: 2; }
.foot-chick img { position: absolute; left: max(16px, calc(50% - 600px)); bottom: 0; width: 64px; height: auto; }
.foot-peek { position: absolute; right: max(16px, calc(50% - 600px + 40px)); bottom: 0; width: 52px; height: auto; transform-origin: bottom center; animation: peek 7s ease-in-out infinite; }
@keyframes peek { 0%, 55%, 100% { transform: translateY(100%); } 65%, 88% { transform: translateY(42%); } }
@media (prefers-reduced-motion: reduce) { .foot-peek { animation: none; transform: translateY(55%); } }
.nf-art .live3d > .still, .teach .vis .live3d > .still, .done-hero .art .live3d > .still { max-width: none; margin: 0; animation: none; }
@media (max-width: 800px) { .teach .vis { display: block; } .teach .vis .live3d { margin: 0 -10px -30px; } }

/* ---------- the spinning cube globe (24-frame sprite, no three.js) ---------- */
.spin-globe { --spin: globe-spin 1.15s steps(24, jump-none) infinite; display: inline-block; width: 20px; height: 20px; flex: none; vertical-align: -4px; background: url('/art/globe-spin.webp') 0 0 / 2400% 100% no-repeat; }
.spin-globe.sm { width: 16px; height: 16px; vertical-align: -3px; }
.spin-globe.lg { width: 64px; height: 64px; }
@keyframes globe-spin { from { background-position: 0 0; } to { background-position: 100% 0; } }
@keyframes globe-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .spin-globe { --spin: globe-pulse 1.6s ease-in-out infinite; } }
.loading-row .spin-globe, button .spin-globe, .spin-globe.lg { animation: var(--spin); }
button[aria-busy='true'] { cursor: progress; }
button[aria-busy='true'] > svg { display: none; }
.loading-row { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font: 400 14px var(--mono); padding: 8px 0; }
.loading-row.big { font-size: 15px; margin-top: 18px; }
.loading-row.big .spin-globe { width: 40px; height: 40px; }
.boot { display: grid; place-items: center; min-height: 50vh; }
.sicon img.mc-ico { image-rendering: auto; }
.mc-row .sicon { background: transparent; }

/* landing: Always on facts and honest UI mocks */
.always > div { padding-top: 36px; padding-bottom: 40px; border-right: 1px solid var(--line); }
.always > div:last-child { border-right: 0; }
.always h3 { margin: 10px 0 8px; font-size: 20px; }
.always p:not(.res-l) { color: var(--ink-2); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .always > div { border-right: 0; border-bottom: 1px solid var(--line); } }
.ui-mock { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); padding: 22px; display: grid; gap: 16px; margin-top: 22px; }
.um-drop { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 22px; border: 2px dashed var(--border-2); background: var(--well); }
.um-file { display: flex; gap: 12px; align-items: center; }
.um-file b { display: block; font: 500 15px var(--mono); color: var(--ink); }
.um-file small { color: var(--ink-2); font-size: 13px; }
.um-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 13.5px; }
.um-steps li::marker { color: var(--brand-ink); font-family: var(--mono); }
.presets-mock { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 0; padding: 4% 0 0; }
.presets-mock figure { margin: 0; display: grid; gap: 8px; justify-items: center; align-content: end; grid-column: span 2; }
.presets-mock figure:nth-child(4) { grid-column: 2 / span 2; }
.presets-mock img { width: 100%; }
.presets-mock figcaption { font: 400 12.5px var(--mono); text-transform: uppercase; color: var(--ink-2); }

/* =====================================================================================
   Light/dark switch, world map pieces and light-theme touches
   ===================================================================================== */

.nav .theme-btn { margin-left: auto; }
.nav a[style*='margin-left:auto'] + .theme-btn { margin-left: 0; }
.head-cta .theme-btn { display: none; align-self: center; margin: 0 2px; }
@media (max-width: 900px) { .head-cta .theme-btn { display: inline-flex; } }
.theme-pick { margin-top: 20px; display: grid; gap: 8px; justify-items: start; }
.theme-pick .lbl { margin: 0; color: var(--ink-2); font: 400 13px var(--mono); text-transform: uppercase; }

/* landing: world map */
.map-shot { margin: 0; }
.map-shot img { width: 100%; height: auto; display: block; }
.map-shot figcaption { margin-top: 12px; font: 400 13px/1.4 var(--mono); color: var(--ink-3); }
/* A clearly empty space where a real screenshot will go (never a mock-up). */
.media-slot { aspect-ratio: 16 / 9; display: grid; place-content: center; gap: 6px; text-align: center; padding: 24px; border: 2px dashed currentColor; border-radius: 12px; opacity: .7; }
.media-slot b { font-size: 20px; }
.media-slot span { max-width: 46ch; margin: 0 auto; }
/* Replays tab */
.rp { display: grid; gap: 18px; }
.rp-steps { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; }
.rp-who { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.rp-xyz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.rp-up { text-align: center; }
.badge.rec { background: #c0392b; color: #fff; }
.map-live { margin: 18px 0 0; font: 400 15px var(--mono); color: var(--ink-2); }
.map-live a { color: var(--sec); }
.map-tiles > div { padding-top: 36px; padding-bottom: 40px; border-right: 1px solid var(--line); }
.map-tiles > div:last-child { border-right: 0; }
.map-tiles h3 { margin: 10px 0 8px; font-size: 20px; }
.map-tiles p:not(.res-l) { color: var(--ink-2); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .map-tiles > div { border-right: 0; border-bottom: 1px solid var(--line); } }
.help-map { width: 100%; height: auto; margin: 6px 0 4px; }

/* light theme: the pieces that are not plain tokens */
:root[data-theme='light'] .marquee-track span:nth-child(5n+1) { color: #2f6b1e; }
:root[data-theme='light'] .marquee-track span:nth-child(5n+2) { color: #1d7424; }
:root[data-theme='light'] .marquee-track span:nth-child(5n+3) { color: #8a6d00; }
:root[data-theme='light'] .marquee-track span:nth-child(5n+4) { color: #4f8a2b; }
:root[data-theme='light'] .marquee-track span:nth-child(5n+5) { color: #3c8527; }
:root[data-theme='light'] .splash { display: none; }
.splash { color: #ffff55; text-shadow: 2px 2px 0 #3f3f15, -1px -1px 0 #3f3f15, 1px -1px 0 #3f3f15, -1px 1px 0 #3f3f15; }
:root[data-theme='light'] .live .dot { background: rgba(29, 116, 36, 0.14); }
:root[data-theme='light'] .install { background: #10180d; }
:root[data-theme='light'] .tile-panel .mcline small { color: #d4d4dc; }
:root[data-theme='light'] .bossbar p { color: var(--ink-2); }
:root[data-theme='light'] .toast.adv { box-shadow: inset 0 0 0 2px #000, 0 16px 40px rgba(20, 33, 15, 0.25); }
:root[data-theme='light'] .hero-art img, :root[data-theme='light'] img.render { filter: drop-shadow(0 10px 18px rgba(20, 33, 15, 0.12)); }
:root[data-theme='light'] .slot img.render, :root[data-theme='light'] .plan-block, :root[data-theme='light'] .cmp-h img.render { filter: none; }
:root[data-theme='light'] ::selection { background: #3c8527; color: #fff; }

/* =====================================================================================
   The kit (art/kit: little builds, blocks, the sun and the moon, drawn by art-src/icons in the icon
   look; the class names still say fan-, from the fan art they replaced).
   Skies follow the theme: day in light mode, night (moon and stars) in dark mode.
   ===================================================================================== */
:root {
  --sky: linear-gradient(180deg, #0b1230 0%, #16224a 58%, #23305c 100%);
  --sky-ink: #e6f2ff; --sky-ink-2: #b9c6e6;
  --stars: radial-gradient(1.5px 1.5px at 12% 22%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 31% 64%, #cfe0ff 99%, transparent), radial-gradient(2px 2px at 47% 18%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 66% 42%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 83% 14%, #dfe8ff 99%, transparent), radial-gradient(2px 2px at 92% 58%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 6% 78%, #fff 99%, transparent);
  --sun-on: 0; --moon-on: 1;
}
:root[data-theme='light'] {
  --sky: linear-gradient(180deg, #7fb7ff 0%, #a9d0ff 55%, #d7ecff 100%);
  --sky-ink: #10230b; --sky-ink-2: #2c3a28;
  --stars: none;
  --sun-on: 1; --moon-on: 0;
}
.fan-block, .sky-orb { image-rendering: auto; }
.fan-build { width: auto; height: auto; max-width: 100%; image-rendering: auto; }
.fan-block { width: 48px; height: 48px; object-fit: contain; flex: none; display: inline-block; vertical-align: middle; }
.fan-block.sm { width: 32px; height: 32px; }
.wiz-faces .token { width: 40px; height: 40px; }
.fan-block.lg { width: 72px; height: 72px; }
.token { display: inline-block; flex: none; width: 30px; height: 30px; vertical-align: middle; }
.token img { display: block; width: 100%; height: 100%; object-fit: contain; }
.token.sm { width: 20px; height: 20px; }
.token.lg { width: 40px; height: 40px; }
.token.xl { width: 60px; height: 60px; }
/* a little sky box: day or night, with the sun or the moon */
.sky { position: relative; overflow: hidden; background: var(--stars), var(--sky); }
.sky-orb { position: absolute; width: 46px; height: 46px; top: 18px; right: 22%; transition: opacity 0.4s; }
.sky-orb.sun { opacity: var(--sun-on); }
.sky-orb.moon { opacity: var(--moon-on); }
.title-ic .fan-block, .pcard-h h2 .fan-block { width: 32px; height: 32px; margin: -6px 12px -6px 0; }
.pcard-h h2, h2.title-ic { display: flex; align-items: center; }

/* dashboard: the welcome banner */
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin: 40px 0 48px; padding: 44px 44px 0; border: 1px solid var(--border); border-radius: var(--r); color: var(--sky-ink); }
.welcome .wl-text { padding-bottom: 44px; position: relative; z-index: 1; }
.welcome .eyebrow { color: var(--sky-ink-2); margin-bottom: 18px; }
.welcome h1 { margin: 0; font-size: clamp(36px, 4.6vw, 64px); color: var(--sky-ink); }
.welcome p.lead-s { margin: 16px 0 24px; font-size: 19px; color: var(--sky-ink-2); max-width: 520px; }
.welcome .wl-art { position: relative; display: flex; align-items: flex-end; gap: 0; margin-bottom: -2px; }
.welcome .wl-art .fan-build { width: 288px; }
.welcome .wl-art .fan-build.back { width: 216px; margin-right: -40px; margin-bottom: 26px; }

@media (max-width: 900px) {
  .welcome { grid-template-columns: minmax(0, 1fr); padding: 28px 20px 0; margin-top: 24px; }
  .welcome .wl-text { padding-bottom: 0; }
  .welcome .wl-art { justify-content: center; }
  .welcome .wl-art .fan-build { width: 180px; }
  .welcome .wl-art .fan-build.back { width: 132px; margin-right: -24px; margin-bottom: 16px; }
  .welcome .sky-orb { right: 20px; top: 16px; width: 32px; height: 32px; }
}

/* server cards: a picture band at the top (the build for the world type, the server's own mob) */
.scard { overflow: hidden; }
.scard .top { margin-top: 4px; }

/* empty states and section art */
.empty.has-build { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 28px; }
.empty.has-build > .fan-build { grid-row: 1 / span 4; width: 216px; }
.empty.has-build > :not(.fan-build) { grid-column: 2; }
@media (max-width: 700px) { .empty.has-build { grid-template-columns: minmax(0, 1fr); } .empty.has-build > .fan-build { grid-row: auto; width: 180px; } .empty.has-build > :not(.fan-build) { grid-column: 1; } }

.mob-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* wizard: the own-world option shows a little room; friendly faces under the side picture */
.pick-in .art.upload-art { position: relative; display: grid; place-items: center; }
.pick-in .art.upload-art .fan-build { width: 62%; max-width: 216px; }
.pick-in .art.upload-art .up-badge { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; background: var(--btn); border: 1px solid var(--btn-edge); border-radius: var(--r); }
.pick-in .art.upload-art .up-badge .ic { width: 22px; height: 22px; color: var(--btn-ink); }
.wiz-faces { margin-top: 14px; gap: 10px; padding-left: 38px; }
h3.title-ic { display: flex; align-items: center; }
/* credits: fan art */
.credit-h { margin: 36px 0 4px; }
.fan-credit { grid-template-columns: 160px minmax(0, 1fr); }
.fan-credit .thumbs .mob-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); justify-items: center; gap: 8px; }
.fan-credit .thumbs .token.xl { width: 50px; height: 50px; }
@media (max-width: 600px) { .credit, .fan-credit { grid-template-columns: minmax(0, 1fr); } .credit .thumbs { max-width: 220px; } }
.admin-hero .wl-art .fan-build { width: 180px; }
@media (max-width: 900px) { .admin-hero .wl-art .fan-build { width: 120px; } }

/* =====================================================================================
   Control panel: the server manager and My servers (docs/PANEL_DESIGN.md).
   A workbench in the deepslate: plates and slots on a square grid, block buttons that sink when
   pressed, one grass accent and four ore colours for state. Type: Bricolage Grotesque for titles
   and numbers (self-hosted, art/fonts, SIL OFL), Geist for the interface, Geist Mono for code.
   ===================================================================================== */
@font-face { font-family: 'Bricolage Grotesque'; src: url(/art/fonts/bricolage-grotesque-latin.woff2) format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; 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; }
body.in-manager, body.in-dash {
  /* the design tokens (dark), on the design system's palette (ds.css): neutral surfaces, one green */
  --k-bg: #0b0c0c; --k-plate: #131514; --k-plate-2: #191c1b; --k-plate-3: #212523;
  --k-well: #0f1110; --k-line: #282c2a; --k-line-2: #383d3b;
  --k-ink: #ededed; --k-ink-2: #a7aeaa; --k-ink-3: #8a918d;
  --k-grass: #74c955; --k-grass-face: #3c8527; --k-grass-hover: #347523; --k-grass-base: #2c6a1c; --k-on-grass: #ffffff; --k-grass-well: rgba(116, 201, 85, 0.12);
  --k-lapis: #6ea8f2; --k-gold: #e2a548; --k-on-gold: #1a1408; --k-redstone: #f07167; --k-on-red: #ffffff;
  --k-amethyst: #a993f2; --k-nether-1: #2a1513; --k-nether-2: #3d1d18; --k-end-1: #15121f; --k-end-2: #241f36;
  --k-term: #090a0a; --k-term-2: #111312; --k-term-line: #232624; --k-term-ink: #e6e8e6; --k-term-ink-2: #9aa19d; --k-term-green: #74c955; --k-term-blue: #6ea8f2; --k-term-red: #f07167;
  --k-focus: #74c955; --k-hi: rgba(255, 255, 255, 0.03); --k-base: #070808; --k-scrim: rgba(0, 0, 0, 0.62);
  --k-lift: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(0, 0, 0, 0.55);
  --k-display: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r1: 4px; --r2: 6px; --r3: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0);

  /* the site's own tokens, pointed at the panel's */
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: var(--k-display);
  --bg: var(--k-bg); --panel: var(--k-plate); --panel-2: var(--k-plate-2); --panel-3: var(--k-plate-3);
  --surface: var(--k-plate); --surface-2: var(--k-plate-2); --surface-3: var(--k-plate-3);
  --field: var(--k-well); --well: var(--k-well); --line: var(--k-line); --border: var(--k-line); --border-2: var(--k-line-2);
  --ink: var(--k-ink); --head: var(--k-ink); --ink-2: var(--k-ink-2); --ink-3: var(--k-ink-3); --on-ink: var(--k-bg);
  --scrim: var(--k-scrim); --bar-bg: var(--k-bg);
  --brand: var(--k-grass-face); --brand-hi: var(--k-grass-hover); --brand-lo: var(--k-grass-base); --brand-ink: var(--k-grass); --grass-edge: var(--k-grass-base);
  --green: var(--k-grass); --orange: var(--k-gold); --red: var(--k-redstone); --focus: var(--k-focus);
  --good: var(--k-grass); --warn: var(--k-gold); --bad: var(--k-redstone);
  --tile: var(--k-plate); --tile-2: var(--k-plate-2); --track: var(--k-well); --inv-bg: var(--k-well);
  --slot-bg: var(--k-well); --slot-dark: var(--k-base); --slot-light: var(--k-line-2);
  --btn: var(--k-plate-2); --btn-hover: var(--k-plate-3); --btn-ink: var(--k-ink); --btn-edge: var(--k-line-2); --btn-edge-hover: var(--k-line-2);
  --field-edge: var(--k-line-2); --card-hi: var(--k-hi);
  --notch: none; --notch-4: none;
  background: var(--k-bg); color: var(--k-ink);
  font: 400 15px/1.45 var(--font);
  font-feature-settings: 'tnum' 1;
}
:root[data-theme='light'] body.in-manager, :root[data-theme='light'] body.in-dash {
  --k-bg: #f8f9f8; --k-plate: #ffffff; --k-plate-2: #f4f5f4; --k-plate-3: #e9ece9;
  --k-well: #f4f5f4; --k-line: #dfe2df; --k-line-2: #c9cec9;
  --k-ink: #121513; --k-ink-2: #4d5550; --k-ink-3: #636b66;
  --k-grass: #2f6b1e; --k-grass-face: #3c8527; --k-grass-hover: #347523; --k-grass-base: #2c6a1c; --k-on-grass: #ffffff; --k-grass-well: rgba(60, 133, 39, 0.1);
  --k-lapis: #1f5fd6; --k-gold: #8f5400; --k-on-gold: #ffffff; --k-redstone: #c0302b;
  --k-gold-face: #e2a548; --k-amethyst: #6a3fd0;
  --k-focus: #2f6b1e; --k-hi: rgba(255, 255, 255, 0.7); --k-base: #dfe2df; --k-scrim: rgba(12, 14, 13, 0.4);
  --k-lift: 0 1px 2px rgba(16, 24, 16, 0.05), 0 8px 24px -6px rgba(16, 24, 16, 0.12);
}
body.in-manager #foot { display: none; }
body.in-manager .gridlines, body.in-dash .gridlines { display: none; }
body.in-manager .site-head { display: none; }

/* --- buttons: blocks on a base edge (docs/PANEL_DESIGN.md § Buttons) --- */
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn {
  --b-face: var(--k-plate-2); --b-hover: var(--k-plate-3); --b-ink: var(--k-ink); --b-edge: var(--k-line-2); --b-base: var(--k-base); --b-depth: 3px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4) var(--b-depth);
  background: var(--b-face); color: var(--b-ink); border: 1px solid var(--b-edge); border-radius: var(--r2); clip-path: none;
  box-shadow: inset 0 calc(-1 * var(--b-depth)) 0 var(--b-base), inset 0 1px 0 var(--k-hi);
  font: 600 14px/1 var(--font); letter-spacing: 0; text-transform: none; text-shadow: none; white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
}
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn .ic { width: 18px; height: 18px; }
@media (hover: hover) { :where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn:hover:not(:disabled) { background: var(--b-hover); color: var(--b-ink); border-color: var(--b-edge); } }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn:active:not(:disabled):not(.off) { transform: translateY(2px); box-shadow: inset 0 -1px 0 var(--b-base), inset 0 1px 0 var(--k-hi); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 2px; border-color: var(--b-edge); box-shadow: inset 0 calc(-1 * var(--b-depth)) 0 var(--b-base), inset 0 1px 0 var(--k-hi); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn:disabled, :where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn.off { opacity: 0.5; cursor: not-allowed; box-shadow: none; padding-bottom: 0; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn[aria-busy='true'] { opacity: 1; position: relative; color: transparent; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn[aria-busy='true'] > :not(.spin-globe) { opacity: 0; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn[aria-busy='true'] > .spin-globe { position: absolute; inset: 0; margin: auto; width: 18px; height: 6px; background: linear-gradient(90deg, var(--b-ink) 0 6px, transparent 6px 12px, var(--b-ink) 12px 18px) 0 0 / 18px 6px no-repeat; animation: kblocks 0.6s steps(3, end) infinite; transform: none; border: 0; box-shadow: none; }
@keyframes kblocks { 0% { clip-path: inset(0 12px 0 0); } 100% { clip-path: inset(0 0 0 0); } }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn-grass { --b-face: var(--k-grass-face); --b-hover: var(--k-grass-hover); --b-ink: var(--k-on-grass); --b-edge: var(--k-grass-base); --b-base: var(--k-grass-base); font-weight: 700; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn-gold { --b-face: var(--k-gold-face, var(--k-gold)); --b-hover: var(--k-gold-face, var(--k-gold)); --b-ink: var(--k-on-gold); --b-edge: oklch(55% 0.12 70); --b-base: oklch(45% 0.1 70); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn-danger { --b-face: var(--k-plate); --b-hover: var(--k-redstone); --b-ink: var(--k-redstone); --b-edge: color-mix(in srgb, var(--k-redstone) 55%, var(--k-line)); --b-base: color-mix(in srgb, var(--k-redstone) 35%, var(--k-base)); }
@media (hover: hover) { :where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn-danger:hover:not(:disabled) { color: var(--k-on-red); border-color: var(--k-redstone); } }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn-ghost { --b-face: transparent; --b-hover: var(--k-plate-2); --b-ink: var(--k-ink-2); --b-edge: transparent; --b-depth: 0px; box-shadow: none; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn-ghost:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn-sm { min-height: 32px; padding: 0 var(--s3) var(--b-depth); font-size: 13px; gap: 6px; --b-depth: 2px; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn-sm .ic { width: 16px; height: 16px; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .btn-lg { min-height: 48px; padding: 0 var(--s5) var(--b-depth); font-size: 15px; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .icon-btn { min-width: 40px; padding-left: 0; padding-right: 0; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .icon-btn.btn-sm { min-width: 32px; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .icon-btn .ic { width: 20px; height: 20px; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .link-btn { color: var(--k-grass); text-underline-offset: 3px; }

/* dialogs and sheets */
:where(body.in-manager, body.in-dash) .modal { padding: var(--s5); background: var(--k-plate); border: 1px solid var(--k-line-2); border-radius: var(--r3); box-shadow: var(--k-lift); clip-path: none; }
:where(body.in-manager, body.in-dash) .modal h2 { font: 600 22px/1.1 var(--k-display); text-transform: none; letter-spacing: -0.015em; color: var(--k-ink); }
:where(body.in-manager, body.in-dash) .overlay { background: var(--k-scrim); }

/* --- fields, switches, sliders, segments, chips, badges --- */
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .input { min-height: 40px; padding: 8px 12px; font: 400 15px/1.3 var(--font); background: var(--k-well); color: var(--k-ink); border: 1px solid var(--k-line-2); border-radius: var(--r1); clip-path: none; box-shadow: inset 0 2px 0 oklch(0% 0 0 / 0.12); outline: 2px solid transparent; outline-offset: 1px; transition: background-color 0.2s var(--ease-out); }
@media (hover: hover) { :where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .input:hover { border-color: var(--k-line-2); background: color-mix(in srgb, var(--k-well) 70%, var(--k-plate-2)); } }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .input:focus, :where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .input:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 1px; border-color: var(--k-line-2); box-shadow: inset 0 2px 0 oklch(0% 0 0 / 0.12); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .input-sm { min-height: 32px; padding: 4px 10px; font-size: 14px; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .input:disabled { opacity: 0.55; cursor: not-allowed; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .lbl { font: 600 12px/1.3 var(--font); text-transform: uppercase; letter-spacing: 0.08em; color: var(--k-ink-3); margin: var(--s4) 0 var(--s2); display: flex; align-items: center; gap: 6px; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .hint { font-size: 13px; margin-top: var(--s1); color: var(--k-ink-3); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .mono, :where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) code { font-family: var(--mono); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .sw { width: 44px; height: 24px; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .sw i { background: var(--k-well); border: 1px solid var(--k-line-2); border-radius: var(--r1); clip-path: none; box-shadow: inset 0 2px 0 oklch(0% 0 0 / 0.15); transition: background-color 0.2s var(--ease-out); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .sw i::after { left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 2px; background: var(--k-ink-3); box-shadow: inset 0 -2px 0 oklch(0% 0 0 / 0.25); transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .sw i::before { display: none; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .sw input:checked + i { background: var(--k-grass-well); border-color: var(--k-grass-base); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .sw input:checked + i::after { transform: translateX(20px); background: var(--k-grass-face); box-shadow: inset 0 -2px 0 var(--k-grass-base); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .sw input:focus-visible + i { outline: 2px solid var(--k-focus); outline-offset: 2px; border-color: var(--k-line-2); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .sw input:disabled + i { opacity: 0.45; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) input[type='range']::-webkit-slider-runnable-track { height: 10px; border: 1px solid var(--k-line-2); border-radius: 2px; clip-path: none; background: linear-gradient(90deg, var(--k-grass-face) 0 var(--pct, 50%), transparent var(--pct, 50%)), linear-gradient(90deg, var(--k-well) 0 var(--cap, 100%), color-mix(in srgb, var(--k-gold) 35%, var(--k-well)) var(--cap, 100%)); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) input[type='range']::-moz-range-track { height: 8px; border: 1px solid var(--k-line-2); border-radius: 2px; background: linear-gradient(90deg, var(--k-grass-face) 0 var(--pct, 50%), transparent var(--pct, 50%)), linear-gradient(90deg, var(--k-well) 0 var(--cap, 100%), color-mix(in srgb, var(--k-gold) 35%, var(--k-well)) var(--cap, 100%)); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) input[type='range']::-webkit-slider-thumb { width: 14px; height: 24px; margin-top: -8px; background: var(--k-plate-3); border: 1px solid var(--k-line-2); border-radius: 2px; box-shadow: inset 0 -3px 0 var(--k-base); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) input[type='range']::-moz-range-thumb { width: 12px; height: 22px; background: var(--k-plate-3); border: 1px solid var(--k-line-2); border-radius: 2px; box-shadow: inset 0 -3px 0 var(--k-base); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) input[type='range']:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 4px; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .range-top .val { font: 600 16px var(--k-display); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .seg { gap: 2px; padding: 2px; background: var(--k-well); border: 1px solid var(--k-line-2); border-radius: var(--r2); clip-path: none; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .seg button { font: 600 13px/1 var(--font); text-transform: none; min-height: 30px; padding: 0 var(--s3); border: 0; border-radius: var(--r1); clip-path: none; color: var(--k-ink-2); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .seg button:hover { background: var(--k-plate-2); color: var(--k-ink); border: 0; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .seg button:is([aria-pressed='true'], [aria-checked='true'], [aria-selected='true']) { background: var(--k-plate-3); color: var(--k-grass); box-shadow: inset 0 -2px 0 var(--k-grass-base); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .seg button:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 1px; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .chip { min-height: 32px; padding: 0 var(--s3); gap: 6px; background: var(--k-plate); color: var(--k-ink-2); border: 1px solid var(--k-line); border-radius: var(--r1); clip-path: none; font: 500 13px/1 var(--font); box-shadow: inset 0 -2px 0 var(--k-base); }
@media (hover: hover) { :where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) :is(button, a).chip:hover { color: var(--k-ink); border-color: var(--k-line-2); background: var(--k-plate-2); } }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .chip[aria-pressed='true'] { background: var(--k-well); color: var(--k-grass); border-color: var(--k-grass-base); box-shadow: inset 0 2px 0 oklch(0% 0 0 / 0.2); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .chip:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 2px; box-shadow: inset 0 -2px 0 var(--k-base); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .chip.static { box-shadow: none; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .chip .ic { width: 15px; height: 15px; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .badge { font: 600 11px/1.6 var(--font); text-transform: uppercase; letter-spacing: 0.06em; padding: 0 6px; gap: 5px; border: 1px solid var(--k-line-2); border-radius: var(--r1); clip-path: none; color: var(--k-ink-2); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .badge.on { color: var(--k-grass); border-color: color-mix(in srgb, var(--k-grass) 45%, transparent); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .badge.on::before { width: 5px; height: 5px; background: currentColor; }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .mc-tip, .mc-tip { font-family: var(--font); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .stepper .btn { min-width: 32px; min-height: 32px; padding: 0 0 2px; font: 700 18px/1 var(--font); }
:where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .stepper .input { width: 60px; min-height: 32px; }
@media (pointer: coarse) {
  :where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) :is(.btn, .btn-sm, .input-sm, .seg button, button.chip, a.chip, .stepper .btn, .stepper .input) { min-height: 44px; }
  :where(body.in-manager, body.in-dash) :where(#app, .overlay, .sheet-ov, .toasts) .icon-btn { min-width: 44px; }
}

/* state glyphs (icons.js glyph()): the frame in the line colour, the state in its ore colour */
.gl { width: 1em; height: 1em; flex: none; display: block; color: var(--k-ink-3, currentColor); }
.gl .g0 { fill: var(--k-line-2, currentColor); }
.gl .g1 { fill: currentColor; }
.gl .g2 { fill: currentColor; opacity: 0.22; }
.gl-online { color: var(--k-grass, var(--green)); }
.gl-sleeping { color: var(--k-lapis, var(--azure)); }
.gl-starting { color: var(--k-gold, var(--orange)); }
.gl-crashed { color: var(--k-redstone, var(--red)); }
.gl-starting .g-spin { transform-origin: 16px 16px; animation: kspin 1.6s steps(4, end) infinite; }
.gl-online .g-ray { animation: kblink 2.4s steps(2, end) infinite; }
@keyframes kspin { to { transform: rotate(90deg); } }
@keyframes kblink { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .gl .g-spin, .gl .g-ray { animation: none; } }

/* drawer, server-list preview and icon picker (kept from the earlier manager) */

@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }

.optcards.cols5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }

.mc-list { background: url('/art/blocks/dirt.png') 0 0 / 32px 32px; image-rendering: pixelated; padding: 10px; box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.62); }
.mc-list > * { image-rendering: auto; }
.icon-inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 0; background: var(--inv-bg); padding: 6px; border-radius: var(--r2); }
.icon-inv .slot { --slot: 100%; aspect-ratio: 1; width: 100%; height: auto; padding: 4px; cursor: pointer; border: 0; }
.icon-inv .slot img { image-rendering: auto; }
.icon-inv .slot[aria-checked='true'] { box-shadow: inset 0 0 0 2px var(--k-grass); background: color-mix(in srgb, var(--k-grass) 18%, var(--k-well)); }
.icon-inv .slot:hover { background: var(--k-plate-3); }

/* --- shared pieces --- */
@keyframes mwpulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 12%, transparent); } }
.qi { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--ink-3); cursor: help; flex: none; }
.qi .ic { width: 14px; height: 14px; }
.qi:hover, .qi:focus-visible { color: var(--ink); outline: none; }
.qi:focus-visible { box-shadow: 0 0 0 2px var(--focus); }
.ibtn { --c: var(--ink-2); display: inline-grid; place-items: center; grid-auto-flow: column; gap: 6px; min-width: 32px; height: 32px; padding: 0 7px; background: var(--btn); color: var(--c); border: 1px solid var(--btn-edge); border-radius: var(--r2); box-shadow: inset 0 -2px 0 var(--k-base); cursor: pointer; font: 600 13px var(--display); }
.ibtn .ic { width: 16px; height: 16px; }
.ibtn:hover { border-color: var(--btn-edge-hover); color: var(--ink); }
.ibtn:focus-visible { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--bg); }
.ibtn:active { transform: translateY(1px); }
.ibtn[aria-pressed='true'] { background: var(--k-well); border-color: var(--k-grass-base); color: var(--k-grass); box-shadow: inset 0 2px 0 oklch(0% 0 0 / 0.2); }
.ibtn.gold[aria-pressed='true'] { color: var(--k-gold); border-color: var(--k-gold); }
.ibtn.danger { --c: var(--red); }
.ibtn.danger:hover { background: var(--k-redstone); border-color: var(--k-redstone); color: var(--k-on-red); }
@media (max-width: 600px) { .ibtn { min-width: 44px; height: 44px; } }
.pface { position: relative; display: inline-grid; flex: none; font-size: 24px; width: 1.6em; height: 1.6em; overflow: hidden; }
.pface .initial { width: 100%; height: 100%; font-size: 0.55em; }
.pface img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.pface.xs { font-size: 13px; }
.pface.md { font-size: 20px; }
.pface.lg { font-size: 28px; }
.initial { --ic: #3c8527; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; flex: none; background: var(--ic); color: #fff; font: 700 0.85em/1 var(--display); box-shadow: none; border-radius: 50%; }
.mcline .initial, .avatar .initial { font-size: 13px; }
.mbo-heads { display: inline-flex; }
.mbo-heads .pface { box-shadow: 0 0 0 2px var(--tile); }
.mbo-heads .pface + .pface { margin-left: -5px; }
.plan-block.xs { width: 18px; height: 18px; filter: none !important; }
.plan-block.sm { width: 36px; height: 36px; filter: none !important; }
.plan-block.lg { width: 72px; height: 72px; filter: none !important; }
.fan-block.xs { width: 22px; height: 22px; }
.count { font: 600 16px/1 var(--display); color: var(--ink); }
.count small { color: var(--ink-3); font-size: 13px; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1 var(--font); text-transform: uppercase; letter-spacing: 0.08em; color: var(--good); padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); }
.live-tag i { width: 7px; height: 7px; background: var(--good); animation: mwpulse 2.4s steps(2, end) infinite; }

.tsw { display: inline-flex; align-items: center; gap: 8px; padding: 3px 4px 3px 10px; border: 1px solid var(--border-2); background: var(--tile); font: 500 13px var(--font); color: var(--ink-2); cursor: pointer; }
.tsw .ic { width: 15px; height: 15px; }
.tsw .sw { transform: scale(0.8); margin: -3px -4px; }
.search-in { position: relative; display: inline-flex; align-items: center; }
.search-in > .ic { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--ink-3); pointer-events: none; z-index: 1; }
.search-in .input, .mgr .search-in .input-sm { padding-left: 32px; width: 100%; }
.nobody { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 2px dashed var(--border-2); color: var(--ink-2); }
.nobody .itm, .nobody .slot { width: 36px; height: 36px; flex: none; }
.nobody b { display: block; color: var(--ink); font-weight: 600; }
.nobody small { color: var(--ink-3); font-size: 12.5px; }

/* --- tiles --- */
.pcard { background: var(--tile); border: 1px solid var(--border); border-radius: var(--r2); box-shadow: inset 0 2px 0 var(--card-hi); padding: 12px 14px 14px; min-width: 0; }
.pcard-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -2px 0 10px; min-height: 28px; }
.pcard-h h2, .pcard-h h3 { margin: 0; display: flex; align-items: center; gap: 8px; font: 600 16px/1.2 var(--display); color: var(--ink); letter-spacing: 0.01em; min-width: 0; }
.pcard-h h3 .item { width: 20px; height: 20px; flex: none; }
.pcard-h p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }

.pcard.danger { border-color: color-mix(in srgb, var(--red) 40%, var(--border)); }

.ubar { display: grid; gap: 4px; }
.ub-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.ub-h b { font: 600 14px/1 var(--display); color: var(--ink); }
.ub-h small { color: var(--ink-3); font-size: 12px; }
.ub-t { height: 8px; background: var(--track); border: 1px solid var(--border-2); position: relative; overflow: hidden; display: block; }
.ub-t i { display: block; height: 100%; background: var(--good); background-image: linear-gradient(90deg, transparent calc(100% - 2px), rgba(0, 0, 0, 0.25) 0); background-size: 8px 100%; transition: width 0.4s; }
.ubar.warn .ub-t i, .ub-t.warn i { background-color: var(--warn); }
.ubar.bad .ub-t i, .ub-t.bad i { background-color: var(--bad); }

/* --- the server manager: a rail of sections on the left (a bar and a strip of tiles on phones) --- */
.mgr { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.mrail { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'top foot' 'nav nav'; background: var(--k-bg); border-bottom: 1px solid var(--k-line); }
.mr-top { grid-area: top; display: flex; align-items: center; gap: var(--s2); min-width: 0; height: 52px; padding: 0 var(--s2) 0 var(--s2); }
.mr-foot { grid-area: foot; display: flex; align-items: center; gap: 2px; padding-right: var(--s2); }
.mb-back { flex: none; }
.mb-id { display: flex; align-items: center; gap: var(--s2); min-width: 0; color: var(--k-ink); text-decoration: none; padding: var(--s1) var(--s2) var(--s1) var(--s1); border-radius: var(--r2); }
@media (hover: hover) { .mb-id:hover { background: var(--k-plate-2); color: var(--k-ink); } }
.mb-id:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 1px; }
.mb-icon { width: 28px; height: 28px; flex: none; display: block; }
.mb-icon img { width: 100%; height: 100%; display: block; image-rendering: pixelated; border-radius: 2px; }
.mb-name { font: 600 19px/1 var(--k-display); color: var(--k-ink); letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mb-bug, .mb-theme { color: var(--k-ink-2); }
.mtabs { grid-area: nav; min-width: 0; }
.mt-in { display: flex; gap: 2px; padding: 0 var(--s2) var(--s2); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.mt-in::-webkit-scrollbar { display: none; }
.mtabs a { flex: none; position: relative; display: grid; justify-items: center; gap: 3px; min-width: 62px; padding: 7px 6px 6px; color: var(--k-ink-3); font: 600 11px/1 var(--font); text-decoration: none; white-space: nowrap; border-radius: var(--r2); }
.mtabs a .ic { width: 22px; height: 22px; }
@media (hover: hover) { .mtabs a:hover { color: var(--k-ink); background: var(--k-plate); } }
.mtabs a:focus-visible { outline: 2px solid var(--k-focus); outline-offset: -2px; }
.mtabs a[aria-current='page'] { color: var(--k-grass); background: var(--k-plate-2); box-shadow: inset 0 -2px 0 var(--k-grass-face); }
.mview { width: 100%; max-width: 1240px; margin: 0 auto; padding: var(--s4) var(--s4) var(--s7); min-width: 0; }
.vhead { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; min-height: 40px; margin: 0 0 var(--s4); }
.vh-t { min-width: 0; margin-right: auto; }
.vh-t h1 { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 24px/1.1 var(--k-display); color: var(--k-ink); letter-spacing: -0.02em; text-transform: none; overflow-wrap: anywhere; }
.vh-t h1 .ic { width: 24px; height: 24px; color: var(--k-grass); }
.vh-act { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.vh-act:empty { display: none; }
.vbody { min-width: 0; }
.vsec { display: flex; align-items: center; gap: 10px; margin: var(--s5) 0 var(--s3); font: 600 17px/1.15 var(--k-display); color: var(--k-ink); letter-spacing: -0.01em; text-transform: none; }
.vsec .itm { width: 24px; height: 24px; }
.vsec small { font: 400 13px var(--font); color: var(--k-ink-3); letter-spacing: 0; }
.kicker { display: block; font: 600 11px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--k-ink-3); margin-bottom: 6px; }
@media (min-width: 60rem) {
  .mgr { grid-template-columns: 216px minmax(0, 1fr); }
  .mrail { height: 100vh; height: 100dvh; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: 'top' 'nav' 'foot'; border-bottom: 0; border-right: 1px solid var(--k-line); }
  .mr-top { flex-wrap: wrap; height: auto; padding: var(--s3) var(--s3) var(--s3); row-gap: var(--s2); }
  .mr-top .mb-id { flex: 1; }
  .mr-top #mbst { flex-basis: 100%; padding-left: 4px; }
  .mt-in { flex-direction: column; overflow: visible; padding: var(--s2) var(--s2); gap: 1px; }
  .mtabs a { display: flex; justify-items: start; gap: var(--s3); min-width: 0; padding: 0 var(--s3); height: 38px; align-items: center; font: 500 14px/1 var(--font); color: var(--k-ink-2); }
  .mtabs a .ic { width: 20px; height: 20px; }
  .mtabs a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--k-grass-face); font-weight: 600; }
  .mr-foot { padding: var(--s2) var(--s3) var(--s3); border-top: 1px solid var(--k-line); }
  .mview { padding: var(--s5) var(--s6) var(--s7); }
}

/* Overview: the world plate and the live plate side by side, a strip of four slabs under them */
.ov { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
.ov-hero, .ov-live, .slab { background: var(--k-plate); border: 1px solid var(--k-line); border-radius: var(--r3); box-shadow: inset 0 1px 0 var(--k-hi); }
.ov-hero { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.ov-pic { position: relative; display: flex; align-items: center; justify-content: center; min-height: 168px; overflow: hidden; text-decoration: none; }
.ov-pic img.render, .ov-pic .fan-build { position: relative; max-width: 74%; max-height: 150px; width: auto; height: auto; margin-top: 18px; filter: drop-shadow(0 14px 14px oklch(10% 0.02 255 / 0.3)); }
.ov-pic .sky-orb { width: 40px; height: 40px; top: 18px; right: 12%; }
.ov-pic:focus-visible { outline: 2px solid var(--k-focus); outline-offset: -3px; }
.wc-type { position: absolute; left: var(--s3); bottom: var(--s3); display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; background: oklch(12% 0.012 255 / 0.72); color: oklch(96% 0.006 255); font: 600 12px/1 var(--font); border-radius: var(--r1); }
.wc-type .ic { width: 15px; height: 15px; }
.ov-info { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); padding: var(--s4); min-width: 0; }
.ov-plan { display: inline-flex; align-items: center; gap: 6px; color: var(--k-ink-2); font: 600 12px/1 var(--font); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; }
@media (hover: hover) { .ov-plan:hover { color: var(--k-ink); } }
.ov-info h1 { margin: -2px 0 0; font: 600 36px/1 var(--k-display); color: var(--k-ink); letter-spacing: -0.025em; text-transform: none; overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
.ov-motd { margin: -6px 0 0; color: var(--k-ink-2); font-size: 14px; overflow-wrap: anywhere; }
.wc-addr { --b-base: var(--k-grass-base); display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 52px; padding: 0 var(--s2) 0 var(--s4); background: var(--k-grass-face); color: var(--k-on-grass); border: 1px solid var(--k-grass-base); border-radius: var(--r2); clip-path: none; box-shadow: var(--sh-1); cursor: pointer; text-align: left; transition: background-color 0.2s var(--ease-out); }
.wc-addr .a { flex: 1; min-width: 0; font: 600 15px/1.2 var(--mono); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.wc-addr .c { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 32px; padding: 0 10px; background: oklch(20% 0.05 140 / 0.14); border-radius: var(--r1); font: 700 13px var(--font); }
.wc-addr .c .ic { width: 16px; height: 16px; }
@media (hover: hover) { .wc-addr:hover { background: var(--k-grass-hover); } }
.wc-addr:active { transform: none; }
.wc-addr:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 2px; }
.wc-addr.sm { min-height: 44px; }
.wc-addr.sm .a { font-size: 15px; }
.ov-acts { display: flex; gap: var(--s2); flex-wrap: wrap; }
.ov-live { display: grid; align-content: start; gap: var(--s3); padding: var(--s3); min-width: 0; }
.ol-h { display: flex; align-items: center; gap: var(--s2); min-width: 0; padding: 2px var(--s1); border-radius: var(--r2); }
.ol-h:focus-visible { outline: 2px solid var(--k-focus); }
.ol-h .hl-g .gl { width: 28px; height: 28px; }
.ol-h b { font: 600 20px/1 var(--k-display); letter-spacing: -0.01em; }
.ol-h.good b { color: var(--k-grass); } .ol-h.warn b { color: var(--k-gold); } .ol-h.bad b { color: var(--k-redstone); }
.ol-h small { margin-left: auto; color: var(--k-ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.kpi { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: 'g t' 'f f'; gap: var(--s1) var(--s2); align-items: center; padding: var(--s2) var(--s2) var(--s2); background: var(--k-well); border: 1px solid var(--k-line); border-radius: var(--r2); color: var(--k-ink); text-decoration: none; min-width: 0; }
a.kpi:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 1px; }
@media (hover: hover) { a.kpi:hover { border-color: var(--k-line-2); } }
.kpi-g { grid-area: g; width: 48px; height: 48px; display: grid; place-items: center; }
.kpi-t { grid-area: t; display: grid; gap: 5px; min-width: 0; }
.kpi-h { display: flex; align-items: center; gap: 5px; font: 600 11px/1 var(--font); text-transform: uppercase; letter-spacing: 0.07em; color: var(--k-ink-3); min-width: 0; }
.kpi-h > .ic { width: 14px; height: 14px; flex: none; }
.kpi-st { font: 600 11.5px/1 var(--font); color: var(--k-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 11px; }
.kpi-st.good { color: var(--k-grass); } .kpi-st.warn { color: var(--k-gold); } .kpi-st.bad { color: var(--k-redstone); }
.kpi-v { font: 600 24px/1 var(--k-display); color: var(--k-ink); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.kpi-v small, .slab b small { font: 500 12px var(--font); color: var(--k-ink-3); margin-left: 2px; letter-spacing: 0; }
.kpi-f { grid-area: f; position: relative; min-width: 0; height: 24px; }
.ol-who { display: flex; align-items: center; gap: var(--s2); min-height: 26px; padding: 0 var(--s1); color: var(--k-ink-3); font-size: 13px; }
.ol-who .mbo-heads .pface { box-shadow: 0 0 0 2px var(--k-plate); }
.ov-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.slab { display: flex; align-items: center; gap: var(--s3); min-width: 0; padding: var(--s3); color: var(--k-ink); text-decoration: none; }
a.slab:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 1px; }
@media (hover: hover) { a.slab:hover { background: var(--k-plate-2); } }
.sl-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; background: var(--k-well); border: 1px solid var(--k-line); border-radius: var(--r2); color: var(--k-grass); }
.sl-ic .ic { width: 22px; height: 22px; }
.sl-b { display: grid; gap: 4px; min-width: 0; flex: 1; }
.sl-b > [data-g] { display: block; }
.sl-l { font: 600 11px/1 var(--font); text-transform: uppercase; letter-spacing: 0.08em; color: var(--k-ink-3); }
.slab b { font: 600 19px/1.05 var(--k-display); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.slab small { color: var(--k-ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.st-items { display: inline-flex; gap: 2px; }
.mini-slot { display: grid; place-items: center; width: 22px; height: 22px; background: var(--k-well); border: 1px solid var(--k-line); border-radius: 2px; }
.mini-slot .itm, .mini-slot .item { width: 18px; height: 18px; }
.pface.sm { font-size: 17px; }
/* Overview: players and an activity feed (real records: who is on, who came by, backups, the day it was made) */
.ov-people, .ov-feed { background: var(--k-plate); border: 1px solid var(--k-line); border-radius: var(--r3); box-shadow: inset 0 1px 0 var(--k-hi); padding: var(--s3); min-width: 0; }
.op-h { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin: 0 0 var(--s2); min-height: 32px; }
.op-h h2 { display: flex; align-items: center; gap: var(--s2); margin: 0; font: 600 16px/1.1 var(--k-display); letter-spacing: -0.01em; text-transform: none; color: var(--k-ink); }
.op-h h2 .ic { width: 18px; height: 18px; color: var(--k-grass); }
.op-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--s2); }
.op-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'h n t' 'h s t'; align-items: center; column-gap: var(--s2); row-gap: 1px; padding: 6px var(--s2) 6px 6px; background: var(--k-well); border: 1px solid var(--k-line); border-radius: var(--r2); min-width: 0; }
.op-list li > .pface { grid-area: h; font-size: 20px; }
.op-list li.on { box-shadow: inset 3px 0 0 var(--k-grass-face); }
.op-list b { grid-area: n; font: 600 14px/1.15 var(--k-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-list small { grid-area: s; display: inline-flex; align-items: center; font-size: 12px; color: var(--k-ink-3); }
.op-list li.on small { color: var(--k-grass); font-weight: 600; }
.op-tag { grid-area: t; display: grid; place-items: center; color: var(--k-gold); cursor: help; }
.op-tag + .op-tag { grid-area: auto; }
.op-tag.bad { color: var(--k-redstone); }
.op-tag .ic { width: 15px; height: 15px; }
.op-list li.op-none { display: flex; grid-column: 1 / -1; gap: var(--s3); padding: var(--s2); background: none; border-style: dashed; }
.op-none b { display: block; font: 600 14px var(--k-display); }
.op-none small { color: var(--k-ink-3); font-size: 12.5px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: var(--s2); min-height: 38px; padding: 4px 0; border-top: 1px solid var(--k-line); font-size: 13.5px; color: var(--k-ink-2); }
.feed li:first-child { border-top: 0; }
.fe-ic { position: relative; display: grid; place-items: center; width: 28px; height: 28px; background: var(--k-well); border: 1px solid var(--k-line); border-radius: var(--r1); color: var(--k-ink-3); }
.fe-ic .ic { width: 16px; height: 16px; }
.fe-ic .pface { font-size: 13px; }
.feed li.live .fe-ic { border-color: var(--k-grass-base); }
.fe-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-t b { color: var(--k-ink); font-weight: 600; }
.feed time { font: 600 11.5px var(--font); color: var(--k-ink-3); white-space: nowrap; cursor: help; }
.feed li.live time { color: var(--k-grass); }
.feed time:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 2px; }
@media (max-width: 30rem) { .slab b small { display: none; } }
@media (min-width: 46rem) {
  .ov-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .ov-pic { min-height: 260px; }
  .ov-pic img.render, .ov-pic .fan-build { max-height: 220px; }
  .ov-info { justify-content: center; padding: var(--s5); }
  .ov-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 100rem) { .mview { max-width: 1480px; } }
@media (min-width: 75rem) {
  .ov { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .ov-hero { grid-template-columns: minmax(0, 1fr); }
  .ov-hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
  .ov-strip { grid-column: 1 / -1; }
  .ov-people { grid-column: 1; }
  .ov-feed { grid-column: 2; }
  .ov-info h1 { font-size: 40px; }
}

/* the sheet: slides in from the right (from the bottom on phones) */
.sheet-ov { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: flex; justify-content: flex-end; animation: fade 0.18s ease; }
.sheet { width: min(520px, 100%); height: 100%; background: var(--surface); border-left: 1px solid var(--border-2); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: slidein 0.22s ease; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.sh-h { position: relative; border-bottom: 1px solid var(--border); }
.sh-t { padding: 20px 64px 18px 24px; }
.sh-t h2 { margin: 0; font: 600 26px/1.05 var(--display); color: var(--head); text-transform: none; letter-spacing: 0.01em; }
.sh-t p { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sh-x { position: absolute; top: 14px; right: 14px; z-index: 2; }
.sh-art { display: grid; place-items: center; }
.sh-b { overflow: auto; padding: 20px 24px 28px; }
.sh-f { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--surface-2); }
.sh-item { padding: 18px 0 0; }
.sh-item .itm { width: 72px; height: 72px; }
.sh-b .field { display: grid; gap: 6px; margin-bottom: 14px; }
.sheet:focus { outline: none; }
.sh-b p > .ic { display: inline-block; vertical-align: -2px; margin-right: 4px; }
@media (prefers-reduced-motion: reduce) { .sheet-ov, .sheet { animation: none; } }
@media (max-width: 640px) {
  .sheet-ov { align-items: flex-end; }
  .sheet { width: 100%; height: auto; max-height: 92vh; border-left: 0; border-top: 1px solid var(--border-2); animation: sheetup 0.22s ease; }
  @keyframes sheetup { from { transform: translateY(40px); opacity: 0; } }
  .sh-b { padding: 16px 16px 22px; }
  .sh-t { padding: 16px 60px 14px 16px; }
  .sh-f { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .sh-f .btn { flex: 1; }
}

/* How friends join (a modal from the Overview) */
.howjoin { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.howjoin li { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 12px 6px 10px; background: var(--tile-2); border: 1px solid var(--border); border-radius: var(--r2); text-align: center; }
.howjoin .itm { width: 44px; height: 44px; }
.howjoin b { font: 600 14px/1.15 var(--display); }
.howjoin small { color: var(--ink-3); font-size: 12px; line-height: 1.3; }
.js-n { position: absolute; left: 6px; top: 4px; font: 600 13px/1 var(--display); color: var(--brand-ink); }
.join-sheet .hint { margin: 10px 0 0; }
@media (max-width: 560px) { .howjoin { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* dials, block meters and stepped sparklines (panel-kit.js) */
.gauge { width: 48px; height: 48px; display: block; overflow: visible; }
.gauge rect { fill: var(--k-line); }
.gauge rect.on { fill: var(--k-grass); }
.gauge.warn rect.on { fill: var(--k-gold); }
.gauge.bad rect.on { fill: var(--k-redstone); }
.gauge.lapis rect.on { fill: var(--k-lapis); }
.bmeter { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: 10px; gap: 2px; width: 100%; max-width: 120px; height: 10px; }
.bmeter i { background: var(--k-line); border-radius: 1px; }
.bmeter i.on { background: var(--k-grass); }
.bmeter.warn i.on { background: var(--k-gold); }
.bmeter.bad i.on { background: var(--k-redstone); }
.bmeter i.cap { box-shadow: inset 0 0 0 1px var(--k-gold); }
.spark { width: 100%; height: 24px; display: block; overflow: visible; }
.spark .ln { fill: none; stroke: var(--k-grass); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.spark .area { fill: var(--k-grass); opacity: 0.12; stroke: none; }
.spark.warn .ln { stroke: var(--k-gold); } .spark.warn .area { fill: var(--k-gold); }
.spark.bad .ln { stroke: var(--k-redstone); } .spark.bad .area { fill: var(--k-redstone); }
.spark.lapis .ln { stroke: var(--k-lapis); } .spark.lapis .area { fill: var(--k-lapis); }
.spark .base { stroke: var(--k-line-2); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-dasharray: 2 4; }
.spark.bars rect { fill: var(--k-grass); opacity: 0.7; }
.sp-tip { position: absolute; top: -4px; bottom: 0; width: 0; border-left: 1px solid var(--k-ink-2); pointer-events: none; z-index: 2; }
.sp-tip > * { position: absolute; white-space: nowrap; }
.sp-tip b { top: -20px; left: 4px; padding: 1px 5px; background: var(--k-ink); color: var(--k-bg); font: 600 11.5px/1.5 var(--font); border-radius: 2px; }
.sp-tip small { bottom: -1px; left: 4px; font-size: 10.5px; color: var(--k-ink-3); }
.sp-tip[data-side='l'] b, .sp-tip[data-side='l'] small { left: auto; right: 4px; }

/* the status: a state glyph and the word */
.spill { display: inline-flex; align-items: center; gap: 6px; padding: 0; font: 600 12px/1 var(--font); color: var(--k-ink-2, var(--ink-2)); border: 0; background: none; white-space: nowrap; }
.spill .gl { width: 18px; height: 18px; }
.spill.on { color: var(--k-grass, var(--green)); }
.spill.bad { color: var(--k-redstone, var(--red)); }
.spill:focus-visible { outline: 2px solid var(--k-focus, var(--focus)); outline-offset: 2px; }

/* shared pieces in the views */
.bigpick { position: relative; display: block; cursor: pointer; min-width: 0; }
.bigpick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bigpick .in { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; background: var(--tile); border: 1px solid var(--border); border-radius: var(--r2); }
.bp-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: var(--panel-2); color: var(--ink-2); }
.bp-ic .ic { width: 22px; height: 22px; }
.bp-t { display: grid; gap: 2px; min-width: 0; }
.bp-t b { font: 600 17px/1.15 var(--display); }
.bp-t small { color: var(--ink-2); font-size: 13px; }
.bigpick:hover .in { border-color: var(--border-2); }
.bigpick input:checked + .in { border-color: var(--k-grass-base); box-shadow: 0 0 0 1px var(--k-grass-face); background: color-mix(in srgb, var(--k-grass) 7%, var(--k-plate)); }
.bigpick input:checked + .in .bp-ic { background: var(--k-grass-face); color: var(--k-on-grass); }
.bigpick.danger input:checked + .in { border-color: var(--red); box-shadow: inset 0 0 0 2px var(--red); background: color-mix(in srgb, var(--red) 8%, var(--tile)); }
.bigpick.danger input:checked + .in .bp-ic { background: var(--red); }
.bigpick input:focus-visible + .in { outline: 2px solid var(--focus); outline-offset: 2px; }
.bigpick.sm .in { padding: 10px 12px; gap: 10px; }
.bigpick.sm .bp-ic { width: 36px; height: 36px; }
.bigpick.sm .bp-ic .ic { width: 18px; height: 18px; }
.bigpick.sm .bp-t b { font-size: 15px; }
.tsw { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 6px 4px 12px; border: 1px solid var(--border-2); border-radius: var(--r2); background: var(--tile); font: 600 14px var(--display); color: var(--ink); cursor: pointer; }
.tsw .sw { transform: scale(0.85); margin: -3px -3px; }
.mgr .chips { gap: 6px; }
.mgr .chip { min-height: 38px; font: 500 14px var(--font); }
.mgr .chip .itm { width: 20px; height: 20px; margin: -2px 0; }
.mgr .chip .ic { width: 15px; height: 15px; }
.mgr .chip .n { font: 600 12px var(--font); color: var(--ink-3); }
.mgr .chip .n:empty { display: none; }
.mgr .chip[aria-pressed='true'] .n { color: inherit; opacity: 0.75; }
.on-dot { width: 8px; height: 8px; background: var(--good); display: inline-block; margin-right: 6px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-ink); text-decoration: underline; cursor: pointer; font: inherit; }
.inv-row { display: flex; align-items: center; flex-wrap: wrap; }
.inv-row .slot { --slot: 46px; }
.inv-count { font: 600 16px var(--display); color: var(--ink); margin-left: 8px; }
.savebar { position: sticky; bottom: 14px; z-index: 20; margin-top: 18px; background: var(--panel); border-radius: var(--r2); border: 1px solid var(--border-2); border-left: 5px solid var(--orange); padding: 10px 12px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; box-shadow: 0 10px 30px var(--shadow); }
.savebar .sb-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.savebar .sb-l > .ic { color: var(--orange); width: 17px; height: 17px; }
.savebar b { font: 600 16px var(--display); }
.sb-list { display: flex; gap: 6px; flex-wrap: wrap; }
.sb-list .chip { min-height: 28px; font-size: 12.5px; }
.sb-list .chip b { font: 600 12px var(--font); color: var(--brand-ink); }
.upsell { margin-top: 8px; padding: 6px 8px; font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.upsell .ic { width: 14px; height: 14px; color: var(--orange); vertical-align: -2px; margin-right: 4px; }

/* switch rows (Settings, game rules, mode options) */
.srow { display: flex; align-items: center; gap: var(--s3); min-height: 44px; padding: 4px 0; border-top: 1px solid var(--k-line); cursor: pointer; color: var(--ink); text-decoration: none; }
.srow:first-child, .sbox-h + .srow { border-top: 0; }
.sr-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; }
.sr-ic .item, .srow > .item { width: 24px; height: 24px; flex: none; }
.sr-l { flex: 1; min-width: 0; font-size: 15px; line-height: 1.3; }
.sr-l small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.srow .sw { transform: scale(0.86); transform-origin: right center; margin: -2px -4px -2px 0; }
.srow.nrow, .srow.chrow { cursor: default; }
.srow.chrow { flex-wrap: wrap; }
.srow.chrow .seg { flex-wrap: wrap; }
.srow .stepper { gap: 4px; }
.srow .stepper .btn { min-height: 36px; min-width: 36px; padding: 0 0 2px; font-size: 17px; }
.srow .stepper .input { width: 76px; min-height: 36px; padding: 2px 4px; font-size: 14.5px; }
.srow.link .ic { width: 16px; height: 16px; color: var(--ink-3); }
.srow.link:hover .sr-l { color: var(--brand-ink); }
.srow.disabled { opacity: 0.5; }
.srow:focus-within { box-shadow: inset 3px 0 0 var(--focus); }

/* --- Players --- */
.whojoin .bp-t small, .vis2 .bp-t small { display: none; }

.pl { display: grid; gap: 22px; }
.whojoin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); max-width: 440px; }
.ptools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.ptools .search-in { flex: 0 1 260px; }
.ptools > .chips, .gm-tools > .chips { flex: 0 1 auto; min-width: 0; }
.home, .pl, .gm, .bk, .planv, .mapv, .wv { grid-template-columns: minmax(0, 1fr); }
.feedback-sheet p .ic { display: inline-block; vertical-align: -2px; margin-right: 4px; }
.gm-slots { min-width: 0; }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); gap: var(--s2); }
.pcard3 { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'h n' 'h s' 'h t'; column-gap: var(--s3); row-gap: 2px; align-items: center; justify-items: start; width: 100%; height: 100%; padding: var(--s2) var(--s3) var(--s2) var(--s2); background: var(--k-plate); border: 1px solid var(--k-line); border-radius: var(--r2); color: var(--k-ink); cursor: pointer; text-align: left; font: inherit; transition: background-color 0.2s var(--ease-out); }
.pcard3 > .pface { grid-area: h; font-size: 30px; border-radius: 2px; }
@media (hover: hover) { .pcard3:hover { background: var(--k-plate-2); } }
.pcard3:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 1px; }
.pcard3.is-on { box-shadow: inset 3px 0 0 var(--k-grass-face); }
.pcard3.is-banned { opacity: 0.65; }
.pcard3.is-banned .pface { filter: grayscale(1); }
.pc-n { grid-area: n; font: 600 15px/1.1 var(--k-display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-s { grid-area: s; display: inline-flex; align-items: center; font-size: 12px; color: var(--k-ink-3); }
.pcard3.is-on .pc-s { color: var(--k-grass); font-weight: 600; }
.pc-tags { grid-area: t; display: flex; gap: 4px; flex-wrap: wrap; min-height: 0; }
.pc-tags:empty { display: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 0 5px; font: 600 11px/1.6 var(--font); border: 1px solid var(--k-line-2); border-radius: var(--r1); color: var(--k-ink-2); }
.tag .ic { width: 12px; height: 12px; }
.tag.gold, .tag.owner { color: var(--k-gold); border-color: color-mix(in srgb, var(--k-gold) 50%, transparent); }
.tag.green { color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, transparent); }
.tag.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.pface.lg { font-size: 26px; }
.pface.xl { font-size: 38px; }
.pface.xxl { font-size: 56px; }
.roster-empty { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; padding: 18px; border: 2px dashed var(--border-2); color: var(--ink-2); }
.roster-empty p { margin: 0; }
.roster-empty b { display: block; color: var(--ink); font: 600 18px var(--display); }
.teach-build { width: 120px; flex: none; }
.ps-head { padding: 22px 0 0; }
.ps-acts { display: grid; gap: 10px; }
.actbtn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; background: var(--btn); color: var(--btn-ink); border: 1px solid var(--btn-edge); border-radius: var(--r2); box-shadow: inset 0 -2px 0 var(--k-base); cursor: pointer; text-align: left; }
.actbtn > .ic { width: 22px; height: 22px; flex: none; }
.actbtn span { display: grid; gap: 2px; }
.actbtn b { font: 600 17px/1.1 var(--display); }
.actbtn small { font-size: 13px; color: var(--ink-2); }
.actbtn:hover { border-color: var(--btn-edge-hover); }
.actbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.actbtn.gold > .ic { color: var(--k-gold); }
.actbtn.green > .ic { color: var(--good); }
.actbtn.danger > .ic, .actbtn.danger b { color: var(--red); }
.actbtn.danger:hover { border-color: var(--red); }
.ps-own { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.ps-own .ic { color: var(--k-gold); width: 20px; height: 20px; }
.addpick { display: grid; gap: 8px; }

/* --- Game modes: a picker --- */
.gm { display: grid; gap: 4px; }
.gm-on { padding: 0 0 6px; }
.gm-on-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.gm-on-h .vsec { margin: 0; }
.gm-slots { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.gm-slots .slot { --slot: 42px; padding: 5px; }
.gm-count { margin: 0 12px 0 10px; font: 600 20px var(--display); }
.gm-count small { color: var(--ink-3); font-size: 15px; }
.gm-none { display: flex; align-items: center; gap: 14px; padding: 12px 4px; color: var(--ink-2); }
.gm-none .itm { width: 48px; height: 48px; }
.gm-none b { display: block; color: var(--ink); font: 600 18px var(--display); }
.gm-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 26px 0 0; }
.gm-tools .search-in { flex: 0 1 260px; }
.gm-shelf .vsec { margin-top: 28px; }
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s2); }
.gcard { --k: var(--k-grass); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: var(--k-plate); border: 1px solid var(--k-line); border-radius: var(--r2); min-width: 0; transition: background-color 0.2s var(--ease-out); }
@media (hover: hover) { .gcard:hover { background: var(--k-plate-2); } }
.gcard.on { border-color: var(--k-grass-base); box-shadow: inset 3px 0 0 var(--k-grass-face); background: color-mix(in srgb, var(--k-grass) 6%, var(--k-plate)); }
.gc-open { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: var(--s3); width: 100%; min-width: 0; padding: var(--s2); background: none; border: 0; color: var(--k-ink); text-align: left; cursor: pointer; font: inherit; border-radius: var(--r2); }
.gc-open:focus-visible { outline: 2px solid var(--k-focus); outline-offset: -2px; }
.gc-pic { position: relative; display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; background: color-mix(in srgb, var(--k) 16%, var(--k-well)); border: 1px solid color-mix(in srgb, var(--k) 30%, var(--k-line)); border-radius: var(--r2); box-shadow: inset 0 2px 0 oklch(0% 0 0 / 0.15); }
.gm-item .itm, .gm-item .item { width: 40px; height: 40px; filter: drop-shadow(0 3px 3px oklch(0% 0 0 / 0.3)); }
.gm-render { max-width: 100%; max-height: 52px; width: auto; height: auto; }
.gc-b { display: grid; gap: 3px; padding: 0; min-width: 0; }
.gc-b b { font: 600 15px/1.15 var(--k-display); letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-b small { color: var(--k-ink-3); font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-f { display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s3) 0 0; }
.gc-f > span:empty { display: none; }
.gc-opts { font-size: 0 !important; gap: 0 !important; width: 32px; min-width: 32px; padding: 0 0 2px !important; }
.gc-opts .ic { width: 16px; height: 16px; }
.gc-sw { margin-left: 0; }
.gc-clash { display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px; border-radius: var(--r1); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 50%, transparent); background: color-mix(in srgb, var(--bad) 8%, transparent); font: 600 12.5px var(--font); cursor: help; }
.gc-clash .ic { width: 14px; height: 14px; }
.gc-clash .itm, .gc-clash .item { width: 16px; height: 16px; }
.gc-clash.full { color: var(--ink-2); border-color: var(--border-2); background: none; }
.gcard.clash .gc-pic, .gcard.full .gc-pic { filter: grayscale(0.85); opacity: 0.6; }
.gcard.clash .gc-b, .gcard.full .gc-b { opacity: 0.75; }
.k-smp-essentials { --k: var(--k-lapis); } .k-smp { --k: var(--k-grass); } .k-challenge { --k: var(--k-redstone); } .k-modern { --k: var(--k-gold); } .k-minigame { --k: var(--k-amethyst); } .k-building { --k: var(--k-gold); } .k-other { --k: var(--k-ink-3); }
.gm-request { display: flex; align-items: center; gap: var(--s4); width: 100%; margin-top: var(--s5); padding: var(--s3) var(--s4); background: none; border: 1px dashed var(--k-line-2); border-radius: var(--r2); font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.gm-request .itm { width: 40px; height: 40px; flex: none; }
.gm-request span { display: grid; gap: 3px; flex: 1; }
.gm-request b { font: 600 16px var(--k-display); }
.gm-request small { color: var(--ink-2); font-size: 14px; }
.gm-request > .ic { width: 20px; height: 20px; color: var(--ink-3); }
@media (hover: hover) { .gm-request:hover { border-color: var(--k-grass-base); border-style: solid; } }
.gm-request:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gm-nomatch { padding: 22px 0; color: var(--ink-2); }
.gm-sheet { width: min(560px, 100%); }
.gs-pic { width: 100%; height: 190px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--k) 60%, transparent), transparent 70%), color-mix(in srgb, var(--k) 18%, var(--tile-2)); }
.gs-pic .gm-item .itm, .gs-pic .gm-item .item { width: 112px; height: 112px; }
.gs-pic .gm-render { max-height: 176px; }
.gs-kind { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.gs-kind .itm { width: 20px; height: 20px; }
.gs-desc { font-size: 16px; line-height: 1.55; margin: 0 0 16px; }
.gs-why { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border-2); color: var(--ink-2); font-size: 14px; }
.gs-why.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); background: color-mix(in srgb, var(--bad) 7%, transparent); }
.gs-why .ic { width: 16px; height: 16px; flex: none; }
.gs-clash { margin: 16px 0; }
.gs-clash .lbl .ic { width: 14px; height: 14px; color: var(--bad); }
.gs-cl { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-c { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 5px; background: var(--tile-2); border: 1px solid var(--border); font-size: 12.5px; color: var(--ink-2); cursor: help; }
.gs-c .itm, .gs-c .item { width: 22px; height: 22px; }
.gs-c.live { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 55%, transparent); font-weight: 600; }
.gs-ok { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.gs-ok .ic { width: 16px; height: 16px; color: var(--good); }
.gs-h { margin: 22px 0 6px; font: 600 19px var(--display); }
.gs-form { border-top: 1px solid var(--border); }
#mo-extra #schem-card { margin-top: 18px !important; }

/* --- World --- */
.whero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: var(--tile); border: 1px solid var(--border); border-radius: var(--r3); }
.wh-pic { position: relative; display: flex; align-items: center; justify-content: center; min-height: 280px; border-right: 1px solid var(--border); overflow: hidden; }
.wh-pic img.render, .wh-pic .fan-build { position: relative; max-width: 80%; max-height: 240px; width: auto; margin-top: 24px; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.25)); }
.wh-info { padding: 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.wh-info h2 { margin: 0; font: 600 38px/1 var(--display); color: var(--head); text-transform: none; }
.wh-info p { margin: 0; }
.wh-facts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.dimcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dimcard { display: grid; background: var(--tile); border: 1px solid var(--border); border-radius: var(--r2); cursor: pointer; min-width: 0; }
.dimcard.always { cursor: default; }
.dc-pic { height: 140px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.dc-pic .fan-build { max-height: 124px; width: auto; max-width: 92%; margin-bottom: -2px; }
.dc-pic.nether { background: linear-gradient(180deg, var(--k-nether-1), var(--k-nether-2)); }
.dc-pic.end { background: linear-gradient(180deg, var(--k-end-1), var(--k-end-2)); }
.dc-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.dc-t b { font: 600 18px var(--display); }
.dimcard:has(input:not(:checked)) .dc-pic { filter: grayscale(0.9) brightness(0.7); }
.bigbtns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bigbtn { display: flex; align-items: center; gap: 16px; padding: 14px; background: var(--tile); border: 1px solid var(--border); border-radius: var(--r2); color: var(--ink); cursor: pointer; text-align: left; transition: transform 0.12s, border-color 0.12s; }
@media (hover: hover) { .bigbtn:hover { background: var(--k-plate-2); } }
.bigbtn:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 1px; }
.bb-pic { position: relative; display: grid; place-items: center; width: 120px; height: 84px; flex: none; overflow: hidden; background: var(--tile-2); }
.bb-pic .fan-build { width: 96px; margin-top: 10px; }
.bb-pic .itm { width: 56px; height: 56px; }
.bb-pic .sky-orb { width: 18px; height: 18px; top: 6px; right: 10px; }
.bb-t { display: grid; gap: 3px; }
.bb-t b { font: 600 17px var(--k-display); }
.bb-t small { color: var(--ink-2); font-size: 14px; }
.presets3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.ptype { position: relative; display: block; cursor: pointer; }
.ptype input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ptype .in { display: grid; gap: 2px; height: 100%; padding: 0 0 10px; background: var(--tile-2); border: 1px solid var(--border); border-radius: var(--r2); }
.pt-pic { display: grid; place-items: center; height: 96px; overflow: hidden; margin-bottom: 6px; }
.pt-pic img.render { max-height: 84px; width: auto; max-width: 90%; margin-top: 8px; }
.ptype b { font: 600 16px var(--display); padding: 0 10px; }
.ptype small { color: var(--ink-3); font-size: 12px; padding: 0 10px; line-height: 1.3; }
.ptype input:checked + .in { border-color: var(--k-grass-base); box-shadow: 0 0 0 1px var(--k-grass-face); background: color-mix(in srgb, var(--k-grass) 7%, var(--k-plate)); }
.ptype input:focus-visible + .in { outline: 2px solid var(--focus); outline-offset: 2px; }
.seedbox { position: relative; display: flex; gap: 6px; align-items: center; }
.seedbox > .ic { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--ink-3); pointer-events: none; z-index: 1; }
.seedbox .input { padding-left: 32px; flex: 1; min-width: 0; }
.seedbox .ibtn { height: 42px; min-width: 42px; }
.warnline { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--ink-2); font-size: 14px; }
.warnline .ic { color: var(--orange); width: 16px; height: 16px; flex: none; }
.drop { display: grid; justify-items: center; gap: 6px; padding: 34px 14px; text-align: center; border: 2px dashed var(--border-2); background: var(--well); cursor: pointer; }
.drop .itm { width: 56px; height: 56px; }
.drop b { font: 600 17px var(--display); }
.drop input { display: none; }
.drop.over, .drop:hover { border-color: var(--brand); }
.drop:focus-visible { outline: 2px solid var(--focus); }
#prog { margin-top: 14px; }

/* --- Map --- */
.mapv { display: grid; gap: 14px; }
.map-frame { position: relative; height: calc(100vh - 60px - 116px - 120px); min-height: 440px; background: var(--well); border: 1px solid var(--border); border-radius: var(--r2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-off { position: relative; display: flex; gap: 22px; align-items: center; min-height: 260px; padding: 30px 34px; border: 1px solid var(--border); border-radius: var(--r2); color: var(--sky-ink); }
.map-off > .itm { position: relative; width: 96px; height: 96px; flex: none; }
.map-off > div { position: relative; }
.map-off b { font: 600 26px var(--display); }
.map-off p { margin: 6px 0 14px; color: var(--sky-ink-2); font-size: 15px; }
.mfacts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mfacts li { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--tile); border: 1px solid var(--border); font: 500 13.5px var(--font); color: var(--ink-2); cursor: help; }
.mfacts li .ic { width: 16px; height: 16px; color: var(--brand-ink); flex: none; }
.mfacts li.warn .ic { color: var(--orange); }

/* --- Settings --- */
.sv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); align-items: start; }
.sv-col { display: grid; gap: var(--s3); min-width: 0; }
.sbox { background: var(--k-plate); border: 1px solid var(--k-line); border-radius: var(--r3); box-shadow: inset 0 1px 0 var(--k-hi); padding: var(--s3) var(--s4) var(--s3); min-width: 0; }
.sbox-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 var(--s2); font: 600 16px/1.15 var(--k-display); color: var(--ink); text-transform: none; letter-spacing: 0.01em; }
.sbox-h > .item { width: 22px; height: 22px; flex: none; }
.sbox-h small { font: 400 12.5px var(--font); color: var(--k-ink-3); letter-spacing: 0; }
.sbox .lbl { font: 600 11px/1.3 var(--font); text-transform: uppercase; letter-spacing: 0.08em; color: var(--k-ink-3); margin: var(--s3) 0 var(--s2); display: flex; align-items: center; gap: 6px; }
.sbox .lbl:first-of-type { margin-top: 4px; }
.mc-list { background: url('/art/blocks/dirt.png') 0 0 / 32px 32px; image-rendering: pixelated; padding: 10px; box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.62); }
.mc-list > * { image-rendering: auto; }
.motd-in { font-family: var(--mono); font-size: 14px !important; min-height: 0 !important; width: 100%; resize: vertical; }
.iconrow { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.icon-now { --slot: 52px; padding: 5px; }
.icon-now img { image-rendering: pixelated; }
.vis2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pick { position: relative; display: block; cursor: pointer; min-width: 0; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick .in { display: grid; justify-items: center; gap: 4px; padding: var(--s2) 4px 6px; background: var(--k-well); border: 1px solid var(--border); border-radius: var(--r2); }
.pick .in .itm { width: 34px; height: 34px; }
.pick .in .ic { width: 18px; height: 18px; }
.pick .in b { font: 600 12.5px var(--font); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick:hover .in { border-color: var(--border-2); }
.pick input:checked + .in { border-color: var(--k-grass-base); box-shadow: 0 0 0 1px var(--k-grass-face); background: color-mix(in srgb, var(--k-grass) 7%, var(--k-plate)); }
.pick input:focus-visible + .in { border-color: var(--ink); }
.pick.sm .in { grid-auto-flow: column; justify-content: center; align-items: center; gap: 8px; padding: 8px; }
.rows { margin-top: 12px; }
.mobcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mobcard { display: grid; background: var(--tile-2); border: 1px solid var(--border); border-radius: var(--r2); cursor: pointer; min-width: 0; }
.mc-pic { display: grid; place-items: center; height: 104px; overflow: hidden; }
.mc-pic img.render { max-height: 96px; width: auto; max-width: 86%; }
.mc-t { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--border); }
.mc-t b { font: 600 15px var(--pixel); }
.mc-t .sw { transform: scale(0.8); transform-origin: right center; }
.mobcard:has(input:not(:checked)) .mc-pic { filter: grayscale(1); opacity: 0.55; }
.mobcard:focus-within { border-color: var(--focus); }
.seealso { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.dzone { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s5); padding: var(--s3) var(--s4); border: 1px solid color-mix(in srgb, var(--red) 45%, var(--border)); border-radius: var(--r2); background: color-mix(in srgb, var(--red) 4%, transparent); }
.dzone h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 600 16px var(--k-display); color: var(--red); text-transform: none; }
.dzone h2 .ic { width: 18px; height: 18px; }
.dzone p { margin: 0; color: var(--ink-2); font-size: 14px; }
.icon-inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 0; background: var(--inv-bg); padding: 6px; border-radius: var(--r2); }
.icon-inv .slot { --slot: 100%; aspect-ratio: 1; width: 100%; height: auto; padding: 4px; cursor: pointer; border: 0; }
.icon-inv .slot[aria-checked='true'] { box-shadow: inset 0 0 0 2px var(--k-grass); background: color-mix(in srgb, var(--k-grass) 18%, var(--k-well)); }
.rules { columns: 2 380px; column-gap: 18px; }
.rules .sbox { break-inside: avoid; margin-bottom: 18px; display: block; }
.rule-search { width: min(320px, 100%); }
.rq-none { color: var(--ink-2); }

/* --- Backups --- */
.bk { display: grid; gap: 18px; }
.bk-shelf { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 20px 6px; background: var(--tile); border: 1px solid var(--border); border-radius: var(--r2); }
.bk-shelf .tl { flex: 1 1 100%; margin: 4px -8px 0; }
.bk-shelf .inv-row { padding: 4px; background: var(--inv-bg); border-radius: var(--r2); }
.bk-n { display: grid; }
.bk-n b { font: 600 30px/1 var(--display); }
.bk-n b small { font-size: 17px; color: var(--ink-3); }
.bk-n span { color: var(--ink-2); font-size: 13px; }
.bk-meta { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 13.5px; }
.bk-meta > span { display: inline-flex; align-items: center; gap: 6px; cursor: help; }
.bk-meta .itm { width: 22px; height: 22px; }
.bk-meta .ic { width: 16px; height: 16px; }
.bk-meta b { color: var(--ink); font: 600 16px var(--display); }
.tl { position: relative; height: 92px; }
.tl-axis { position: absolute; left: 16px; right: 16px; top: 42px; height: 4px; background: var(--border-2); background-image: linear-gradient(90deg, transparent 6px, var(--tile) 0); background-size: 8px 100%; }
.tl-pin { position: absolute; top: 24px; width: 40px; height: 40px; margin-left: -20px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border-2); z-index: 1; cursor: help; }
.tl-pin .itm { width: 28px; height: 28px; }
.tl-pin.auto { top: 29px; width: 30px; height: 30px; margin-left: -15px; }
.tl-pin.auto .itm { width: 20px; height: 20px; }
.tl-pin.start { border-style: dashed; }
.tl-pin:hover, .tl-pin:focus-visible { border-color: var(--brand-ink); z-index: 2; outline: none; }
.tl-now { position: absolute; top: 32px; width: 4px; height: 24px; background: var(--good); margin-left: -2px; }
.tl-l { position: absolute; bottom: 8px; font: 600 11px var(--font); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.tl-l.a { left: 16px; } .tl-l.b { right: 16px; }
.blist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.blist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 12px 10px 14px; background: var(--tile); border: 1px solid var(--border); border-radius: var(--r2); }
.blist li.auto { background: var(--tile-2); }
.bl-ic .itm { width: 36px; height: 36px; }
.blist li.auto .bl-ic .itm { width: 28px; height: 28px; margin: 4px; }
.bl-t { display: grid; gap: 2px; min-width: 0; }
.bl-t b { font: 600 17px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-t small { color: var(--ink-3); font-size: 13px; }
.bl-a { display: flex; gap: 6px; }
.bl-a .ibtn { height: 34px; min-width: 34px; }
.bk-empty { display: flex; align-items: center; gap: 14px; padding: 18px; border: 2px dashed var(--border-2); color: var(--ink-2); }
.bk-empty b { display: block; color: var(--ink); font: 600 18px var(--display); }
.rp-empty .rp-dance { width: 168px; flex: none; display: grid; place-items: center; }
.rp-empty .rp-dance video, .rp-empty .rp-dance img { width: 168px; height: auto; display: block; }

/* --- Plan --- */
.planv { display: grid; gap: 22px; }
.pl-cur { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: 20px 24px; background: var(--tile); border: 1px solid var(--border); border-radius: var(--r3); }
.plc-id { display: flex; align-items: center; gap: 16px; }
.plc-name { display: block; font: 600 32px/1 var(--display); color: var(--head); }
.plc-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.planv .ub-t { height: 10px; }
.pcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plancard { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 20px 16px 18px; background: var(--tile); border: 1px solid var(--border); border-radius: var(--r2); text-align: center; }
.plancard.cur { border-color: var(--k-grass-base); box-shadow: 0 0 0 1px var(--k-grass-face); background: color-mix(in srgb, var(--k-grass) 7%, var(--k-plate)); }
.plancard .plan-block.md { width: 64px; height: 64px; }
.plancard h3 { margin: 4px 0 0; font: 600 22px var(--display); }
.pc-price { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; }
.pc-price b { color: var(--ink); font: 600 18px var(--display); }
.plancard ul { list-style: none; margin: 0 0 10px; padding: 0; width: 100%; display: grid; gap: 2px; }
.plancard li { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); text-align: left; }
.plancard li .ic { width: 15px; height: 15px; flex: none; color: var(--ink-3); }
.plancard li span { flex: 1; }
.plancard li b { color: var(--ink); font: 600 15px var(--display); }
.plan-block.lg { width: 80px; height: 80px; filter: none !important; }
.plan-block.md { filter: none !important; }

/* --- Console: a dark well with coloured levels (dark in both themes; no drawn window chrome) --- */
.keys { display: inline-flex; gap: 6px; }
.keys > span { cursor: help; }
.keys kbd { font: 500 11px var(--mono); color: var(--k-ink-2); border: 1px solid var(--k-line-2); border-bottom-width: 2px; border-radius: 2px; padding: 1px 5px; margin: 0 1px; }
.term { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100dvh - 160px); min-height: 420px; background: var(--k-term); border: 1px solid var(--k-term-line); border-radius: var(--r3); color: var(--k-term-ink); overflow: hidden; }
.term-top { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--k-term-line); background: var(--k-term-2); }
.term-t { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--mono); color: var(--k-term-ink); }
.term-t .ic { width: 16px; height: 16px; color: var(--k-term-green); }
.term-legend { margin-left: auto; display: inline-flex; gap: 4px; }
.term .console-out { height: auto; min-height: 0; overflow: auto; margin: 0; padding: var(--s2) 0; background: transparent; border: 0; font: 400 13.5px/1.6 var(--mono); color: var(--k-term-ink); white-space: normal; }
.cl { display: grid; grid-template-columns: 62px 38px minmax(0, 1fr); gap: var(--s2); align-items: baseline; padding: 1px var(--s3); }
.cl:hover { background: var(--k-term-2); }
.cl time { color: var(--k-term-ink-2); font-size: 11.5px; }
.cl .tx { white-space: pre-wrap; overflow-wrap: anywhere; }
.lv { display: inline-block; font: 700 10px/1.6 var(--font); letter-spacing: 0.06em; text-align: center; padding: 0 4px; border-radius: 2px; box-shadow: inset 0 0 0 1px currentColor; }
.lv-cmd { color: var(--k-term-blue); } .lv-ok { color: var(--k-term-green); } .lv-info { color: var(--k-term-ink-2); } .lv-error { color: var(--k-term-red); }
.cl-cmd .tx { color: var(--k-term-blue); font-weight: 500; }
.cl-ok .tx { color: var(--k-term-green); }
.cl-error { background: color-mix(in srgb, var(--k-term-red) 8%, transparent); }
.cl-error .tx { color: var(--k-term-red); }
.term .cmd { padding: var(--s2) var(--s3) var(--s2); border-top: 1px solid var(--k-term-line); background: var(--k-term-2); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--s2); }
.term .quick .chip { background: var(--k-term); border-color: var(--k-term-line); color: var(--k-term-ink-2); min-height: 28px; box-shadow: none; }
@media (hover: hover) { .term .quick .chip:hover { color: var(--k-term-ink); border-color: var(--k-term-green); background: var(--k-term); } }
.term .quick .chip .ic { width: 14px; height: 14px; color: var(--k-term-green); }
.term .quick .chip .mono { font-size: 12px; }
.term .cmd-wrap { background: var(--k-term); border: 1px solid var(--k-term-line); border-radius: var(--r2); }
.term .cmd-wrap .input.cmd-input { background: transparent !important; }
.term .cmd-wrap:focus-within { border-color: var(--k-term-green); }
.cmd-prompt { display: grid; place-items: center; width: 26px; flex: none; color: var(--k-term-green); font: 600 16px var(--mono); }
.term .input.cmd-input { border: 0; background: transparent; color: var(--k-term-ink); box-shadow: none; outline: 0; clip-path: none; min-height: 44px; padding: 8px 10px 8px 0; font: 400 15px/1.4 var(--mono) !important; caret-color: var(--k-term-green); }
.term .cmd-input::placeholder { color: var(--k-term-ink-2); }
.term .input.cmd-input:focus, .term .input.cmd-input:focus-visible { box-shadow: none; outline: 0; }
.term .cmd-mirror { left: 26px; padding: 8px 10px 8px 0; border: 0; font: 400 15px/1.4 var(--mono); background: transparent; }
.term .cmd-mirror .cmd-ghost { color: var(--k-term-ink-2); }
.term .btn.cmd-run { min-height: 40px; margin: 2px; }
.term .cmd-list { background: var(--k-term-2); border-color: var(--k-term-line); color: var(--k-term-ink); bottom: 100%; top: auto; border-top: 1px solid var(--k-term-line); border-bottom: 0; }
.term .cmd-opt { min-height: 34px; font-size: 13.5px; border-color: var(--k-term-line); }
.term .cmd-opt:hover, .term .cmd-opt[aria-selected='true'] { background: var(--k-term); color: var(--k-term-ink); box-shadow: inset 2px 0 0 var(--k-term-green); }
.term .cmd-tip, .term .cmd-more { color: var(--k-term-ink-2); }
.term .cmd-usage { min-height: 18px; margin-top: 5px; font-size: 12.5px; color: var(--k-term-ink-2); }
.term .cmd-usage .cmd-cur { color: var(--k-term-ink); }
.term .cmd-error { min-height: 0; font-size: 12.5px; color: var(--k-term-red); }

/* --- the manager on smaller screens --- */
@media (max-width: 1180px) {
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .whero { grid-template-columns: minmax(0, 1fr); }
  .wh-pic { border-right: 0; border-bottom: 1px solid var(--border); min-height: 220px; }
  .sv { grid-template-columns: minmax(0, 1fr); }
  .pl-cur { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .vh-act { width: 100%; }
  .vh-act > .btn, .vh-act > .tsw { flex: 1 1 auto; justify-content: center; }
  .ptools .search-in, .gm-tools .search-in { flex: 1 1 100%; }
  .ptools > .chips, .gm-tools > .chips { flex: 1 1 100%; }
  .mgr .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; max-width: calc(100% + 32px); }
  .v-console .vh-act { width: auto; }
  .mgr .chips::-webkit-scrollbar { display: none; }
  .gs-pic { height: 150px; }
  .dimcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dc-pic { height: 84px; }
  .dc-pic .fan-build { max-height: 74px; }
  .dc-t { flex-direction: column; align-items: flex-start; padding: 8px; }
  .dc-t b { font-size: 15px; }
  .bigbtns { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bb-pic { width: 88px; height: 64px; }
  .presets3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-frame { height: 60vh; min-height: 320px; }
  .map-off { flex-direction: column; align-items: flex-start; padding: 20px; }
  .sbox { padding: 14px 14px 12px; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobcards { gap: 6px; }
  .mc-pic { height: 80px; }
  .mc-t { flex-direction: column; align-items: flex-start; padding: 6px 8px; }
  .bk-meta { margin-left: 0; }
  .blist li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .blist li > .badge, .blist li > span:empty { display: none; }
  .bl-a .btn span { display: none; }
  .pcards { grid-template-columns: minmax(0, 1fr); }
  .plc-bars { grid-template-columns: minmax(0, 1fr); }
  .keys { display: none; }
  .term { height: calc(100dvh - 200px); min-height: 380px; }
  .cl { grid-template-columns: 38px minmax(0, 1fr); }
  .cl time { display: none; }
  .term-legend { display: none; }
  .term .quick { flex-wrap: nowrap; overflow-x: auto; }
  .term .btn.cmd-run { min-width: 64px; }
  .term .cmd-opt { min-height: 44px; }
  .dzone .btn { width: 100%; }
  .savebar { bottom: 8px; }
  .savebar .btn-row { width: 100%; }
  .savebar .btn-row .btn { flex: 1; }
  .sb-list { display: none; }
}

/* --- My servers (docs/PANEL_DESIGN.md § My servers): a bar with totals, a grid of server slots, a new-server slot ---
   Hallmark · component: server list · genre: playful (panel workbench) · theme: PANEL_DESIGN.md (locked)
   states: default · hover · focus · active · disabled · loading · error · success (copied) */
.ms.page { padding-top: var(--s4); padding-bottom: 96px; }

.ms-tot { display: flex; gap: var(--s1); margin-right: auto; min-width: 0; }
.ms-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 8px; background: var(--k-well); border: 1px solid var(--k-line); border-radius: var(--r2); color: var(--k-ink-3); cursor: help; white-space: nowrap; }
.ms-chip .ic { width: 16px; height: 16px; }
.ms-chip b { font: 600 16px/1 var(--k-display); color: var(--k-ink); font-variant-numeric: tabular-nums; }
.ms-chip b small { font: 500 12px var(--font); color: var(--k-ink-3); margin-left: 1px; }
.ms-chip.live .ic { color: var(--k-grass); }
.ms-chip.full .ic { color: var(--k-gold, #e6b422); }
.ms-chip.live b { color: var(--k-grass); }
.ms-chip:focus-visible, .ms-acct:focus-visible, .ms-st:focus-visible, .ms-tag:focus-visible, .ms-who:focus-visible, .ms-mods:focus-visible, .ms-disk:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 2px; }
.ms-me { display: flex; }
.ms-acct { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 4px; border: 1px solid var(--k-line); border-radius: var(--r2); cursor: help; }
.ms-acct .pface { border-radius: 2px; }
.ms-acct b { font: 600 14px/1 var(--k-display); color: var(--k-ink); white-space: nowrap; }

.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 286px), 1fr)); gap: var(--s3); }
.ms-wide { grid-column: 1 / -1; }
.ms-slot { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; padding: var(--s3); background: var(--k-plate); border: 1px solid var(--k-line); border-radius: var(--r3); box-shadow: inset 0 1px 0 var(--k-hi); transition: border-color 0.2s var(--ease-out); }
@media (hover: hover) { .ms-slot:not(.is-skel):hover { border-color: var(--k-line-2); } }
.ms-slot:has(.ms-open:focus-visible) { outline: 2px solid var(--k-focus); outline-offset: 2px; }
.ms-top { display: flex; align-items: center; gap: var(--s3); min-width: 0; }

.ms-st { position: absolute; z-index: 1; right: -7px; bottom: -7px; display: grid; place-items: center; width: 22px; height: 22px; background: var(--k-plate); border-radius: 4px; cursor: help; }
.ms-st .gl { width: 18px; height: 18px; }
.ms-id { display: grid; gap: 6px; min-width: 0; flex: 1; }
.ms-id h2 { margin: 0; font: 600 19px/1.05 var(--k-display); letter-spacing: -0.015em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; }
.ms-open { color: var(--k-ink); text-decoration: none; outline: none; }
.ms-open::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
@media (hover: hover) { .ms-slot:hover .ms-open { color: var(--k-grass); } }
.ms-tags { display: flex; gap: 4px; min-width: 0; flex-wrap: wrap; }
.ms-tag { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 6px 0 3px; font: 600 11.5px/1 var(--font); color: var(--k-ink-2); background: var(--k-well); border: 1px solid var(--k-line); border-radius: var(--r1); white-space: nowrap; cursor: help; }
.ms-tag .ic { width: 13px; height: 13px; color: var(--k-ink-3); }
.ms-tag.ver { padding-left: 5px; font-family: var(--mono); font-weight: 500; }
.ms-tag.only { padding: 0 4px; }
.ms-tag.bad { padding: 0 6px; color: var(--k-redstone); border-color: color-mix(in oklch, var(--k-redstone) 45%, var(--k-line)); background: none; cursor: default; }
.ms-addr { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--s2); width: 100%; min-width: 0; height: 34px; padding: 0 4px 0 10px; background: var(--k-well); border: 1px solid var(--k-line); border-radius: var(--r2); color: var(--k-ink-3); font: 400 13px/1 var(--mono); cursor: copy; text-align: left; transition: border-color 0.2s var(--ease-out); }
.ms-addr .a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-addr .a b { color: var(--k-ink); font-weight: 500; }
.ms-addr .cp { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: var(--r1); color: var(--k-grass); }
.ms-addr .cp .ic { grid-area: 1 / 1; width: 16px; height: 16px; transition: opacity 0.12s var(--ease-out), transform 0.12s var(--ease-out); }
.ms-addr .cp .ic:last-child { opacity: 0; transform: scale(0.6); }
.ms-addr.is-copied { border-color: var(--k-grass-base); }
.ms-addr.is-copied .cp { background: var(--k-grass-face); color: var(--k-on-grass); }
.ms-addr.is-copied .cp .ic:first-child { opacity: 0; transform: scale(0.6); }
.ms-addr.is-copied .cp .ic:last-child { opacity: 1; transform: none; }
@media (hover: hover) { .ms-addr:hover { border-color: var(--k-line-2); } .ms-addr:hover .a { color: var(--k-ink-2); } }
.ms-addr:active .cp { transform: translateY(1px); }
.ms-addr:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 2px; }
.ms-mid { display: flex; align-items: center; gap: var(--s2); min-width: 0; min-height: 26px; }
.ms-who { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; color: var(--k-ink-3); cursor: help; }
.ms-who > .ic { width: 16px; height: 16px; flex: none; }
.ms-who > b { font: 600 16px/1 var(--k-display); color: var(--k-ink); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 38px; }
.ms-who > b small { font: 500 12px var(--font); color: var(--k-ink-3); margin-left: 1px; }
.ms-who .bmeter { flex: 1; max-width: 132px; height: 10px; }
.ms-who .mbo-heads .pface { box-shadow: 0 0 0 2px var(--k-plate); border-radius: 2px; }
.ms-who > small { font: 600 12px var(--font); }
.ms-slot:not(.is-down) .ms-who:has(.mbo-heads, .bmeter i.on) > .ic { color: var(--k-grass); }
.ms-disk { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; color: var(--k-ink-3); cursor: help; }
.ms-disk .ic { width: 14px; height: 14px; }
.ms-disk .bmeter { width: 40px; height: 8px; grid-template-rows: 8px; }
.ms-mods { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 2px; flex: none; cursor: help; }
.ms-mods small { padding-left: 3px; font: 600 12px var(--font); color: var(--k-ink-3); }
.ms-acts { position: relative; z-index: 1; display: flex; align-items: center; gap: 2px; padding-top: 10px; border-top: 1px solid var(--k-line); }
.ms-acts .btn { color: var(--k-ink-3); }
.ms-acts .ms-go { margin-left: auto; min-width: 44px; color: var(--k-on-grass); }
/* down: the icon greys out and the state glyph speaks */

.ms-slot.st-crashed { border-color: color-mix(in oklch, var(--k-redstone) 35%, var(--k-line)); }
.ms-slot.st-offline .ms-st .gl { color: var(--k-ink-3); }
.ms-slot.is-down .bmeter i.on { background: var(--k-line-2); }

/* the new-server slot: an empty inventory slot with a grass block button in it */
.ms-new { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 196px; padding: var(--s4); color: var(--k-ink); text-decoration: none; background: transparent; border: 2px dashed var(--k-line-2); border-radius: var(--r3); transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out); }
.ms-new-ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 4px; background: var(--k-grass-face); color: var(--k-on-grass); border-radius: var(--r2); box-shadow: none; transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out); }
.ms-new-ic .ic { width: 28px; height: 28px; stroke-width: 2.5; }
.ms-new-ic.gold { background: var(--k-gold-face, var(--k-gold)); color: var(--k-on-gold); box-shadow: none; }
.ms-new b { font: 600 18px/1 var(--k-display); letter-spacing: -0.01em; }
.ms-new-sub { display: inline-flex; align-items: center; gap: 4px; font: 400 12px/1 var(--mono); color: var(--k-ink-3); }
.ms-new.is-capped .ms-new-sub { font: 600 12px/1 var(--font); color: var(--k-gold); }
@media (hover: hover) { .ms-new:hover { border-color: var(--k-grass); background: color-mix(in oklch, var(--k-grass) 6%, transparent); } .ms-new.is-capped:hover { border-color: var(--k-gold); background: color-mix(in oklch, var(--k-gold) 6%, transparent); } }
.ms-new:active .ms-new-ic { transform: translateY(3px); box-shadow: inset 0 -1px 0 var(--k-grass-base); }
.ms-new:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 2px; }

/* loading: the slot's parts as blocks that breathe */
.ms-slot.is-skel { pointer-events: none; }
.ms-slot .sk { display: block; background: var(--k-well); border-radius: var(--r1); animation: ms-breathe 1.4s steps(3, end) infinite alternate; }
.ms-slot .sk.sq { width: 48px; height: 48px; border-radius: var(--r2); flex: none; }
.ms-slot .sk.w60 { width: 62%; height: 18px; }
.ms-slot .sk.w40 { width: 44%; height: 14px; }
.ms-slot .sk.bar { height: 34px; border-radius: var(--r2); animation-delay: 0.2s; }
.ms-slot .sk.btn { width: 32px; height: 32px; animation-delay: 0.4s; }
.ms-slot .sk-cells { display: flex; gap: 2px; }
.ms-slot .sk-cells i { width: 12px; height: 10px; background: var(--k-line); border-radius: 1px; animation: ms-breathe 1.4s steps(3, end) infinite alternate; }
.ms-slot .sk-cells i:nth-child(2n) { animation-delay: 0.2s; }
.ms-slot .sk-cells i:nth-child(3n) { animation-delay: 0.4s; }
.ms-slot.is-skel .ms-acts { border-top-color: var(--k-line); gap: 6px; }
@keyframes ms-breathe { from { opacity: 1; } to { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .ms-slot .sk, .ms-slot .sk-cells i { animation: none; } }

/* no servers yet: a hotbar, three filled slots for the steps and three empty ones */
.ms-first { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: center; padding: var(--s5); background: var(--k-plate); border: 1px solid var(--k-line); border-radius: var(--r3); box-shadow: inset 0 1px 0 var(--k-hi); }
.ms-first h2 { margin: 0 0 var(--s4); font: 600 24px/1.2 var(--k-display); letter-spacing: -0.025em; text-transform: none; color: var(--k-ink); overflow-wrap: anywhere; }
.mf-bar { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); max-width: 480px; }
.mf-bar li { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; background: var(--k-well); border: 1px solid var(--k-line); border-radius: var(--r); font: 500 14px/1.2 var(--font); color: var(--k-ink); }
.mf-bar li .itm, .mf-bar li .item { width: 24px; height: 24px; flex: none; }
.mf-bar .mf-n { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--k-grass-well); color: var(--k-grass); font: 600 11px/1 var(--font); }
.mf-go { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.mf-hint { display: inline-flex; align-items: center; gap: 4px; font: 600 13px var(--font); color: var(--k-ink-3); }
.mf-hint .ic { width: 15px; height: 15px; color: var(--k-grass); }
.mf-vis .live3d { border-radius: var(--r2); overflow: hidden; }

/* sheets opened from the bar */
.howjoin.ms-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ms-linkf { display: flex; gap: var(--s2); }
.ms-linkf .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.15em; }

@media (max-width: 900px) { .ms-first { grid-template-columns: minmax(0, 1fr); } .mf-vis { order: -1; } }
@media (max-width: 560px) {
  .ms.page { padding-top: var(--s3); }

  .ms-tot { order: 3; width: 100%; margin: 0; }
  .ms-tot .ms-chip { flex: 1; justify-content: center; }
  .ms-acct b { display: none; }
  .ms-acct { padding: 0 4px; }
  .ms-linkbtn span { display: none; }
  .ms-acts { justify-content: space-between; gap: 0; }
  .ms-acts .ms-go { margin-left: 0; }
  .ms-new { min-height: 120px; grid-template-columns: auto auto; column-gap: var(--s3); }
  .ms-new-ic { grid-row: span 2; margin: 0; }
  .ms-new b, .ms-new-sub { justify-self: start; }
  .ms-first { padding: var(--s4); }
  .ms-first h2 { font-size: 22px; }
  .mf-bar { max-width: none; }
}

/* FAQ picture: large and pinned beside the questions on wide screens; plain full width on phones. */
@media (min-width: 900px) { .faq-art { transform: scale(1.75); transform-origin: center top; position: sticky; top: 120px; } }

/* ---- My servers on the design system (ds.css): a plain page heading with the totals and your account,
   then cards that open with the server's own Minecraft server-list row ---- */
.page.ms { padding-top: 32px; }
.ms-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end; gap: 32px; margin: 0 0 32px; }
.ms-hero .eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.ms-hero .eyebrow .ic { width: 16px; height: 16px; }
.ms-hero h1.display { margin: 0 0 20px; font: 600 var(--text-4xl)/1.1 var(--font); letter-spacing: -0.03em; text-transform: none; color: var(--head, var(--k-ink)); }
.ms-hero .ms-tot { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ms-hero .ms-chip { height: 36px; padding: 0 12px 0 10px; gap: 8px; border-radius: var(--r); }
.ms-hero .ms-chip .ic { width: 16px; height: 16px; }
.ms-hero .ms-chip b { font: 600 15px/1 var(--font); }
.ms-hero .ms-chip b small { font: 400 13px var(--font); }
.ms-hero-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ms-hero-acts .icon-btn { width: 40px; height: 40px; }
.ms-hero-acts .ms-acct { height: 40px; padding: 0 12px 0 4px; }
.ms-hero-acts .ms-acct .pface { font-size: 26px; }
.ms-hero-acts .ms-acct b { font: 500 14px/1 var(--font); }
.ms-hero-art { align-self: stretch; min-height: 220px; display: grid; align-items: end; }
.ms-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 20px; }
/* Beside the dashboard sidebar (dnav.js) two slots still fit side by side on a laptop. */
.dn-main .ms-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 20px; }
.ms-slot { gap: 16px; padding: 0 0 20px; border-radius: var(--r-lg); overflow: hidden; }
.ms-slot { grid-template-columns: minmax(0, 1fr); }
.ms-slot > :not(.ms-mc) { width: auto; min-width: 0; margin-left: 20px; margin-right: 20px; }
.ms-mid { flex-wrap: wrap; min-width: 0; }
.ms-mc { position: relative; }
.ms-mc .mc-row { margin: 0; padding: 16px 20px; gap: 14px; }
.ms-mc .mc-row .n { font-size: 18px; }
.ms-mc .mc-row .m { font-size: 14px; }
.ms-mc .mc-row img, .ms-mc .mc-row .sicon { width: 56px; height: 56px; }
.ms-mc .ms-st { right: 14px; bottom: -14px; width: 30px; height: 30px; }
.ms-mc .ms-st .gl { width: 22px; height: 22px; }
/* the server-list row already shows the name: the heading stays for screen readers and as the card link */
.ms-top .ms-id h2 { height: 0; margin: 0; overflow: hidden; }
.ms-tag { height: 28px; padding: 0 10px 0 6px; font-size: 13.5px; }
.ms-tag .ic { width: 16px; height: 16px; }
.ms-addr { width: auto; height: 44px; padding: 0 6px 0 14px; font-size: 15px; border-radius: var(--r); }
.ms-addr .cp { width: 32px; height: 32px; }
.ms-addr .cp .ic { width: 18px; height: 18px; }
.ms-mid { gap: 16px; }
.ms-who .ic { width: 20px; height: 20px; }
.ms-who b { font: 600 20px/1 var(--font); }
.ms-who .pface { font-size: 26px; }
.ms-acts { gap: 8px; padding-top: 16px; }
.ms-acts .btn.icon-btn { width: 40px; height: 40px; }
.ms-acts .btn.icon-btn .ic { width: 18px; height: 18px; }
.ms-acts .ms-go { width: auto !important; padding: 0 16px; margin-left: auto; }
.ms-acts .ms-go::after { content: 'Manage'; margin-left: 8px; font: 500 14px/1 var(--font); }
.ms-new { min-height: 300px; gap: 12px; border-width: 1px; border-radius: var(--r-lg); }
.ms-new .ms-new-ic { width: 56px; height: 56px; }
.ms-new .ms-new-ic .ic { width: 28px; height: 28px; }
.ms-new b { font: 600 18px/1.2 var(--font); }
@media (max-width: 900px) {
  .ms-hero { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .ms-hero-art { min-height: 180px; order: -1; margin: 0; }
  .ms-slot > :not(.ms-mc) { margin-left: 16px; margin-right: 16px; }
  .ms-acts { gap: 6px; }
  .ms-acts .btn.icon-btn { width: 42px; height: 42px; }
  .ms-mc .mc-row { padding: 14px 14px; gap: 12px; }
  .ms-mc .mc-row img, .ms-mc .mc-row .sicon { width: 48px; height: 48px; }
  .ms-mc .ms-st { right: 10px; }
  .ms-acts .ms-go::after { content: none; }
}

/* ---- Server manager on the design system: a quiet sidebar with line icons, the current section as a
   light pill, plain headings and numbers in the interface font, cards with 1px edges ---- */
.mgr .mtabs a { font-family: var(--font); text-transform: none; letter-spacing: 0; }
.mgr .mb-name { font: 600 15px/1.2 var(--font); letter-spacing: -0.01em; }
.mgr .mview { font-size: 15px; }
.mgr .ov-hero, .mgr .ov-live, .mgr .slab, .mgr .pcard, .mgr .kpi { border-radius: var(--r-lg); border-width: 1px; }
.mgr .ov-info h1 { font: 600 clamp(24px, 2.4vw, 32px)/1.15 var(--font); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.mgr .kpi-v { font: 600 24px/1.1 var(--font); letter-spacing: -0.01em; }
.mgr .kpi-h { font-size: 12.5px; }
.mgr .slab b { font: 600 16px/1.2 var(--font); }
.mgr .pcard-h h2, .mgr .pcard-h h3, .mgr .vsec { font-family: var(--font); font-weight: 600; text-transform: none; letter-spacing: -0.01em; }
.mgr .pcard-h h2, .mgr .pcard-h h3 { font-size: 17px; }
.mgr .vsec { font-size: 20px; }
.mgr .ov-acts .btn.icon-btn, .mgr .vh-act .btn.icon-btn { width: 44px; height: 44px; }
.mgr .ov-acts .btn.icon-btn .ic { width: 20px; height: 20px; }
.mgr .wc-addr { min-height: 52px; font-size: 17px; }
@media (min-width: 60rem) {
  .mgr { grid-template-columns: 248px minmax(0, 1fr); }
  .mgr .mr-top { padding: 20px 16px 16px; }
  .mgr .mb-icon { width: 36px; height: 36px; }
  .mgr .mt-in { padding: 8px 10px; gap: 2px; }
  .mgr .mtabs a { height: 38px; padding: 0 12px; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--k-ink-2); border: 0; border-radius: var(--r); }
  .mgr .mtabs a .ic { width: 18px; height: 18px; color: var(--k-ink-3); }
  .mgr .mtabs a:hover { background: var(--k-plate-2); color: var(--k-ink); }
  .mgr .mtabs a[aria-current='page'] { color: var(--k-ink); background: var(--k-plate-2); box-shadow: inset 0 0 0 1px var(--k-line); }
  .mgr .mtabs a[aria-current='page'] .ic { color: var(--k-grass); }
  .mgr .mview { padding: 32px 40px 64px; max-width: 1360px; }
  .mgr .ov { gap: 16px; }
}
@media (max-width: 59.99rem) {
  .mgr .kpi-v { font-size: 20px; }
  .mgr .slab b { font-size: 14px; white-space: normal; }
  .mgr .ov-info h1 { font-size: 24px; }
  .mgr .mtabs a { min-width: 72px; padding: 9px 8px 8px; font-size: 11.5px; }
  .mgr .mtabs a[aria-current='page'] { color: var(--k-ink); background: var(--k-plate-2); box-shadow: inset 0 -2px 0 var(--k-grass); }
  .mgr .mtabs a[aria-current='page'] .ic { color: var(--k-grass); }
}

/* Admins see the world's resources under the player tiles. */
.kpis-admin { margin-top: var(--s2); padding-top: var(--s2); border-top: 2px dashed color-mix(in srgb, var(--k-line, currentColor) 60%, transparent); }

/* Footer: the platform behind MineWorld. */
.site-foot .powered { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 10px; padding: 6px 10px; border: 1px solid var(--line, currentColor); border-radius: 2px; color: var(--ink-2); font-size: 13px; text-decoration: none; }
.site-foot .powered b { color: var(--brand-ink); font-family: 'MW Display W', 'Silkscreen', monospace; letter-spacing: .02em; }
.site-foot .powered:hover { border-color: var(--brand-ink); color: var(--ink); }
/* Narrow footer columns (a tablet held sideways): the badge and the theme switch wrap instead of
   pushing the page sideways. */
.site-foot .powered { max-width: 100%; flex-wrap: wrap; }
@media (max-width: 1100px) { .site-foot .theme-pick .seg { flex-wrap: wrap; } }
/* The paid prices ($11.99) fit their plan's column from 901 px up instead of widening the page. */
.plan .price { font-size: clamp(34px, 4.2vw, 52px); }
/* A long world name or address in the featured worlds shortens instead of widening the page. */
.bigcard { min-width: 0; }
.bigcard .who > span { min-width: 0; overflow-wrap: anywhere; }
.bigcard .who .addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Lobby as a service (panel-network.js): proxy snippets, connection status, health. */
.nw-snip { position: relative; margin: 8px 0 4px; }
.nw-snip pre { margin: 0; padding: 12px 14px; max-height: 280px; overflow: auto; background: var(--track); border: 1px solid var(--field-edge); white-space: pre; font-size: 13px; line-height: 1.45; }
.nw-snip .btn { position: absolute; top: 6px; right: 6px; }
.nw-dot { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 12px; color: var(--ink-3); border: 1px solid var(--border-2); }
.nw-dot.on { color: var(--ink); border-color: var(--grass-edge); }
.nw-health { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 12px; font-weight: 400; }
.nw-health .ic { width: 12px; height: 12px; }
.nw-health.ok { color: var(--brand); }
.nw-health.bad { color: var(--red); }
.nw-h { margin: 18px 0 6px; font-size: 16px; }
.nw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 6px 0; }
.nw-events { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.nw-warn p { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0; color: var(--ink-2); font-size: 14px; }
#px-vel .btn-row .input, .sh-b .btn-row .input { flex: 1 1 220px; min-width: 0; }
button.srow.link { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; }
button.srow.link .sr-l { flex: 1; }

/* ---------- Network and maps (panel-network.js) ---------- */
.nm-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.nm-kind { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; text-align: left; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--ink); cursor: pointer; font: inherit; }
.nm-kind small { color: var(--ink-2); font-size: 13px; line-height: 1.35; }
.nm-kind[aria-checked="true"] { border-color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-ink); }
.nm-grid { display: grid; gap: 8px; margin: 8px 0; }
.nm-card { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 10px; text-align: left; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--ink); cursor: pointer; font: inherit; }
.nm-card:hover, .nm-card:focus-visible { border-color: var(--brand-ink); }
.nm-thumb { display: grid; place-items: center; width: 72px; height: 72px; background: var(--track); overflow: hidden; }
.nm-thumb img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.nm-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nm-meta small { color: var(--ink-2); font-size: 12px; }
.nm-bar { display: block; height: 6px; background: var(--track); }
.nm-bar i { display: block; height: 100%; background: var(--brand-ink); }
.nm-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 12px; white-space: nowrap; border: 1px solid var(--border-2); }
.nm-pill .ic { width: 12px; height: 12px; }
.nm-pill.ok { color: var(--brand-ink); border-color: var(--grass-edge); }
.nm-pill.found { color: var(--yellow); }
.nm-pill.bad { color: var(--red); }
.nm-add { margin: 12px 0; padding: 10px 12px; border: 2px dashed var(--border-2); }
.nm-add summary { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; }
.nm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; padding: 0; list-style: none; }
.nm-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; font-size: 12px; background: var(--track); }
.nm-chips li::before { content: ""; width: 8px; height: 8px; background: var(--c, var(--ink-3)); }
.sheet.nm-sheet { width: min(1040px, 100%); }
.sheet.nm-net { width: min(640px, 100%); }
.nm-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.nm-view { position: relative; background: #050506; border: 1px solid var(--border-2); line-height: 0; }
.nm-view img { width: 100%; height: auto; image-rendering: pixelated; }
.nm-view svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nm-pt { stroke: #000; stroke-width: 0.8; transition: opacity .12s; }
.nm-pt.found { fill-opacity: 0.25; stroke-width: 1.4; stroke: #fff; }
.nm-box { fill: none; stroke-width: 1.2; stroke-dasharray: 3 2; }
.nm-dim { opacity: 0.12; }
.nm-noprev { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 220px; color: var(--ink-3); background: var(--track); }
.nm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nm-prog { color: var(--ink-2); font-size: 13px; }
.nm-issues p { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0; font-size: 13px; color: var(--ink-2); }
.nm-issues.bad p { color: var(--red); }
.nm-issues .ic { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.nm-steps { margin: 4px 0; padding: 0; list-style: none; max-height: 340px; overflow: auto; border: 1px solid var(--border-2); }
.nm-step { display: grid; grid-template-columns: 8px 18px 1fr auto; gap: 8px; align-items: center; padding: 6px 10px; font-size: 14px; border-bottom: 1px solid var(--border-2); }
.nm-step:last-child { border-bottom: 0; }
.nm-step:hover, .nm-step:focus-visible { background: var(--surface-3); outline: none; }
.nm-step small { color: var(--ink-3); font-size: 12px; }
.nm-sw { width: 8px; height: 18px; background: var(--c); }
.nm-st .ic { width: 14px; height: 14px; }
.nm-step.ok .nm-st { color: var(--brand-ink); }
.nm-step.found .nm-st { color: var(--yellow); }
.nm-step.bad .nm-st { color: var(--red); }
.nm-step.bad.opt .nm-st { color: var(--ink-3); }
.nm-notes { margin: 10px 0; font-size: 13px; color: var(--ink-2); }
.nm-notes p { margin: 4px 0; }
@media (max-width: 760px) {
  .nm-detail { grid-template-columns: 1fr; }
  .nm-card { grid-template-columns: 56px 1fr; }
  .nm-card .nm-pill { grid-column: 2; justify-self: start; }
  .nm-thumb { width: 56px; height: 56px; }
}

/* =====================================================================================
   Motion and structure (2026-10): page and tab entrances, press and hover feedback, skeletons,
   leave animations for toasts, dialogs and sheets, count-ups and the manager's grouped sidebar.
   Quick (150-300 ms), transforms and opacity only; prefers-reduced-motion turns all of it off
   through the global rule above.
   ===================================================================================== */
:root { --t-fast: 150ms; --t-med: 220ms; --t-slow: 300ms; --ease: cubic-bezier(0.2, 0.8, 0.2, 1); }
/* the footer starts below the fold, so the first page never pushes it down (no layout shift) */
#app { flex: 1 0 auto; min-height: calc(100vh - 64px); }
html.boot-manager .site-head, html.boot-manager #foot, html.boot-manager .gridlines { display: none; }
html.boot-manager #app, body.in-manager #app { min-height: 100vh; }

/* pages and tabs fade up as they arrive */
@keyframes mw-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes mw-fade-in { from { opacity: 0; } }
#app > :not(.mgr):not(.boot) { animation: mw-fade-in var(--t-med) var(--ease) backwards; }
.mgr .mview { animation: mw-in var(--t-med) var(--ease) backwards; }
.mgr.is-loading .mview, .mgr.is-loading .mrail { animation: none; }

/* buttons sink a little when pressed; cards and blocks lift on hover */
.btn { transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform 80ms ease-out, box-shadow 80ms; }
.chip:not(.static) { transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform 80ms ease-out; }
.chip:not(.static):active { transform: translateY(1px); }
.bigbtn, .ms-slot:not(.is-skel), a.slab, a.kpi, .bigcard, .gc-open, .dimcard, .pcard3, .mobcard, .pick .in, .bigpick, .ms-new, .nm-card, .card.link { transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast); }
@media (hover: hover) {
  .bigbtn:hover, .ms-slot:not(.is-skel):hover, a.slab:hover, a.kpi:hover, .bigcard:hover, .gc-open:hover, .pcard3:hover, .ms-new:hover, .nm-card:hover { transform: translateY(-2px); }
  .ms-slot:not(.is-skel):hover { border-color: var(--k-line-2); }
}
.bigbtn:active, a.slab:active, a.kpi:active, .gc-open:active, .pcard3:active, .ms-new:active, .nm-card:active { transform: translateY(1px); transition-duration: 60ms; }
.mtabs a { transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.mtabs a .ic { transition: transform var(--t-fast) var(--ease); }
@media (hover: hover) { .mtabs a:hover .ic { transform: translateX(2px); } }

/* skeletons: blocks that breathe where data is on its way (no spinners) */
@keyframes mw-breathe { from { opacity: 1; } to { opacity: 0.45; } }
.sk { display: block; background: var(--k-well, var(--panel-2)); border-radius: var(--r1, 2px); animation: mw-breathe 1.1s steps(3, end) infinite alternate; }
.sk.sq { width: 36px; height: 36px; flex: none; }
.sk.w40 { width: 40%; height: 14px; } .sk.w60 { width: 60%; height: 16px; } .sk.w80 { width: 80%; height: 12px; }
.sk.h { height: 26px; width: 200px; }
.sk.tab { width: 64px; height: 44px; flex: none; }
.nw-state .sk.w40 { display: inline-block; width: 90px; height: 12px; vertical-align: middle; }
.sk-view { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sk-card { display: grid; gap: 12px; align-content: start; min-height: 150px; padding: 18px; background: var(--k-plate, var(--panel)); border: 1px solid var(--k-line, var(--border)); }
.sk-card.wide { grid-column: 1 / -1; min-height: 110px; }
.sk-card .sk:nth-child(2) { animation-delay: 0.15s; } .sk-card .sk:nth-child(3) { animation-delay: 0.3s; }
.sk-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; list-style: none; }
.sk-row .sk.w60 { width: 50%; }
.mgr.is-loading .mr-top { gap: 12px; padding: 14px; }
.mgr.is-loading .mt-in { gap: 8px; }
@media (min-width: 60rem) { .mgr.is-loading .sk.tab { width: auto; height: 40px; } }
@media (max-width: 700px) { .sk-view { grid-template-columns: minmax(0, 1fr); } }

/* toasts slide in from the side (from the bottom on phones) and slide out again */
@keyframes mw-toast-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes mw-toast-out { to { opacity: 0; transform: translateX(28px); } }
.toast { animation: mw-toast-in var(--t-med) var(--ease) backwards; cursor: default; }
.toast.is-leaving { animation: mw-toast-out var(--t-fast) ease-in forwards; pointer-events: none; }
@media (max-width: 600px) {
  @keyframes mw-toast-in-up { from { opacity: 0; transform: translateY(16px); } }
  @keyframes mw-toast-out-down { to { opacity: 0; transform: translateY(16px); } }
  .toast { animation-name: mw-toast-in-up; }
  .toast.is-leaving { animation-name: mw-toast-out-down; }
}

/* dialogs and sheets close the way they opened */
@keyframes mw-fade-out { to { opacity: 0; } }
@keyframes mw-drop-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes mw-slide-out { to { opacity: 0; transform: translateX(40px); } }
@keyframes mw-sink-out { to { opacity: 0; transform: translateY(40px); } }
.overlay { animation: mw-fade-in var(--t-fast) ease-out; }
.modal { animation: mw-pop-in var(--t-med) var(--ease); }
@keyframes mw-pop-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.overlay.is-leaving, .sheet-ov.is-leaving { animation: mw-fade-out var(--t-fast) ease-in forwards; pointer-events: none; }
.overlay.is-leaving .modal { animation: mw-drop-out var(--t-fast) ease-in forwards; }
.sheet-ov.is-leaving .sheet { animation: mw-slide-out var(--t-fast) ease-in forwards; }
@media (max-width: 640px) { .sheet-ov.is-leaving .sheet { animation-name: mw-sink-out; } }

/* numbers that count up keep their final width */
data.cnt { display: inline-block; font-variant-numeric: tabular-nums; }

/* success moments pop */
@keyframes mw-pop { 40% { transform: scale(1.08); } }

/* the home page's hero: the still and the loop share one box */
.hero-loop { display: grid; }
.hero-loop > * { grid-area: 1 / 1; display: block; width: 100%; height: auto; }
.hero-loop > .hl-next { opacity: 0; }
.hero-loop > video, .hero-loop > img { transition: opacity var(--t-slow) ease; }

/* ---- the server manager's sidebar: grouped sections; on phones four tabs and "More" ---- */
.mt-g { margin: 0; padding: 14px 16px 4px; font: 600 11px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--k-ink-3); }
.mt-more { display: none; }
.mtabs .ls { display: none; }
.mt-pop[hidden] { display: none; }
.vh-sub { margin: 4px 0 0; color: var(--k-ink-3); font-size: 14.5px; }
.mgr.is-home .vh-sub { display: none; }
@media (min-width: 60rem) {
  .mgr .mtabs { overflow-y: auto; scrollbar-width: thin; }
  .mgr .mt-in { gap: 4px; }
  .mgr .mtabs a { height: 44px; }
  .mt-pop { display: none !important; }
}
@media (max-width: 59.99rem) {
  .mgr { grid-template-rows: auto minmax(0, 1fr); }
  .mtabs a .ll { display: none; }
  .mtabs a .ls { display: inline; }
  .mt-g { display: none; }
  .mgr .mt-in { overflow: visible; padding-bottom: 8px; }
  .mgr .mt-in > a:not([data-p]) { display: none; }
  .mgr .mt-in > a[data-p], .mt-more { flex: 1 1 0; min-width: 0; }
  .mt-more { position: relative; display: grid; justify-items: center; gap: 3px; padding: 9px 4px 8px; background: none; border: 0; color: var(--k-ink-3); font: 500 11.5px/1 var(--font); text-transform: none; cursor: pointer; border-radius: var(--r2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mt-more .ic { width: 22px; height: 22px; }
  .mt-more span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .mt-more[aria-expanded='true'] { color: var(--k-ink); background: var(--k-plate-2); }
  .mt-more.is-cur { color: #fff; background: var(--k-grass, #3f8f2c); }
  .mgr .mt-in > a[data-p] { min-width: 0; padding: 9px 4px 8px; }
  .mgr .mt-in > a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .mtabs { position: relative; }
  .mt-pop { position: absolute; left: 8px; right: 8px; top: calc(100% - 4px); z-index: 40; display: grid; gap: 14px; max-height: calc(100dvh - 140px); overflow: auto; padding: 14px; background: var(--k-plate); border: 1px solid var(--k-line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); transform-origin: top center; animation: mw-menu-in var(--t-fast) var(--ease); }
  @keyframes mw-menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
  .mm-g p { margin: 0 0 6px; font: 600 11px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--k-ink-3); }
  .mgr .mt-pop .mm-g a { display: flex; justify-items: start; align-items: center; gap: 12px; min-width: 0; height: auto; padding: 10px; color: var(--k-ink); background: none; font: 400 15px/1.2 var(--font); text-transform: none; letter-spacing: 0; text-decoration: none; white-space: normal; border: 1px solid transparent; border-radius: 0; box-shadow: none; }
  .mgr .mt-pop .mm-g a .ic { width: 22px; height: 22px; flex: none; color: var(--k-ink-2); }
  .mgr .mt-pop .mm-g a span { display: grid; gap: 2px; min-width: 0; }
  .mgr .mt-pop .mm-g a b { font: 400 13px/1.1 var(--pix, var(--font)); text-transform: uppercase; }
  .mgr .mt-pop .mm-g a small { color: var(--k-ink-3); font-size: 13px; }
  .mgr .mt-pop .mm-g a:active { background: var(--k-plate-2); }
  .mgr .mt-pop .mm-g a[aria-current='page'] { color: var(--k-ink); border-color: var(--k-grass, #3f8f2c); background: var(--k-plate-2); box-shadow: none; }
  .mgr .mt-pop .mm-g a[aria-current='page'] .ic { color: var(--k-grass); }
}
/* long server names wrap onto two lines in the sidebar instead of being cut */
@media (min-width: 60rem) { .mgr .mb-name { white-space: normal; overflow-wrap: anywhere; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }

/* the Network section */
.vlead { max-width: 70ch; margin: 0 0 20px; color: var(--k-ink-2); }
.nw-cards { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.nw-card { width: 100%; }
.nw-card > .ic { margin-left: auto; flex: none; width: 20px; height: 20px; color: var(--k-ink-3); }
.nw-card .bb-t { flex: 1; min-width: 0; }
.nw-card.is-off { cursor: default; opacity: 0.85; }
.nw-card.is-off .bb-pic { filter: grayscale(1); opacity: 0.6; }
.nw-card .hint { font-size: 13.5px; color: var(--k-ink-3); }
.nw-card .bb-pic .itm, .nw-card .bb-pic svg { width: 48px; height: 48px; }
@media (max-width: 700px) { .nw-card .bb-pic { width: 64px; height: 64px; } .nw-card .bb-pic .itm, .nw-card .bb-pic svg { width: 36px; height: 36px; } }
.nw-state:empty { display: none; }
.nw-state { display: block; margin-top: 4px; }

/* My servers: on phones the servers come first, without the picture */
@media (max-width: 700px) { .ms-hero-art { display: none; } }

/* Overview quick actions: five labelled blocks in one row */
.mgr .ov-acts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mgr .ov-acts .btn.oa { display: grid; justify-items: center; align-content: center; gap: 5px; min-height: 64px; padding: 8px 2px 10px; font: 600 12px/1.1 var(--font); text-transform: none; letter-spacing: 0; white-space: nowrap; text-align: center; }
.mgr .ov-acts .btn.oa .ic { width: 22px; height: 22px; }
.mgr .ov-acts .btn.oa span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* the footer's theme switch stays on one line */
.theme-pick .seg { flex-wrap: nowrap; max-width: 100%; }
.theme-pick .seg button { padding: 6px 10px 8px; font-size: 12px; }
/* Success toasts: the item pops in a moment after the toast arrives */
.toast.ok .slot { animation: mw-pop var(--t-slow) var(--ease) 120ms backwards; }
/* My servers: the slots arrive one after another */
.ms-grid > .ms-slot:not(.is-skel), .ms-grid > .ms-new, .ms-grid > .ms-first { animation: mw-in var(--t-med) var(--ease) backwards; }
.ms-grid > :nth-child(2) { animation-delay: 40ms; } .ms-grid > :nth-child(3) { animation-delay: 80ms; } .ms-grid > :nth-child(4) { animation-delay: 120ms; } .ms-grid > :nth-child(n+5) { animation-delay: 160ms; }
/* the wizard: each step slides in */
.wiz-panel > * { animation: mw-in var(--t-med) var(--ease) backwards; }
.wiz-panel > :nth-child(2) { animation-delay: 30ms; } .wiz-panel > :nth-child(n+3) { animation-delay: 60ms; }
.wiz-steps li { transition: color var(--t-fast), border-color var(--t-med) var(--ease); }
/* you are already making a server: the header's button says so instead of linking here again */
.cta-block[aria-current='page'] { pointer-events: none; filter: saturate(0.6); }
/* the header keeps its height before the app fills it (no jump on first paint) */
.site-head { min-height: 75px; box-sizing: border-box; }
@media (max-width: 900px) { .site-head { min-height: 65px; } }
.ms-chip.is-skel .sk { width: 46px; height: 18px; }
.ms-chip.is-skel .ic { opacity: 0.4; }
/* the waitlist page leaves room for the footer's chicken and creeper */
.page.wl-page { padding-bottom: 140px; }

/* ---------- server list: type of each server (Discover, landing) ---------- */
.scard .skind { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; min-width: 0; }
.skind-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 4px; border-radius: 999px; font: 600 12.5px/1.3 var(--display); color: var(--ink); background: var(--track); border: 1px solid var(--border); white-space: nowrap; }
.skind-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; color: var(--kind, var(--ink-3)); }
.skind-tag.k-smp { --kind: var(--green); }
.skind-tag.k-challenge { --kind: var(--orange); }
.skind-tag.k-modern { --kind: var(--yellow, #d9a21b); }
.skind-tag.k-minigame { --kind: var(--purple); }
.skind-tag.k-building { --kind: var(--blue, #3e8ed0); }
.skind-tag.k-network { --kind: var(--cyan); }
.skind-more { font-size: 13.5px; color: var(--ink-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg.kinds { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 24px; width: fit-content; max-width: 100%; }
.seg.kinds::-webkit-scrollbar { display: none; }
.seg.kinds button { flex: 0 0 auto; }

/* ---------- "AI yes, AI no" (ai.js): one switch for every AI feature ---------- */
[data-ai="off"] .ai-only { display: none !important; }
.ai-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px 5px 6px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--ink); font: 600 13px/1.2 var(--font); cursor: pointer; white-space: nowrap; }
.ai-switch .ai-dot { position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--track, #444); border: 1px solid var(--border-2); flex: none; transition: background .15s ease; }
.ai-switch .ai-dot::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-2); transition: transform .15s ease, background .15s ease; }
.ai-switch[aria-checked="true"] .ai-dot { background: var(--green, #3c8527); border-color: transparent; }
.ai-switch[aria-checked="true"] .ai-dot::after { transform: translateX(12px); background: #fff; }
.ai-switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.head-cta .head-ai { margin-right: 4px; }
@media (max-width: 720px) { .head-cta .head-ai { padding-right: 8px; } .head-cta .head-ai [data-ai-label] { font-size: 12px; } }
@media (max-width: 400px) { .head-cta .head-ai { padding: 4px 6px; } .head-cta .head-ai [data-ai-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.ai-pick .ai-switch { margin-top: 2px; }
.acct-ai h2 { margin-top: 0; }
.acct-ai-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.ai-switch.ai-big { min-height: 48px; font-size: 16px; padding: 6px 16px 6px 8px; }
.ai-switch.ai-big .ai-dot { width: 44px; height: 26px; }
.ai-switch.ai-big .ai-dot::after { width: 20px; height: 20px; }
.ai-switch.ai-big[aria-checked="true"] .ai-dot::after { transform: translateX(18px); }
.plain-list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* ---------- Explore (explore.js) ---------- */
.xsearch { align-items: end; }
.xenzica { background: linear-gradient(135deg, #6a4ff0, #1f9fb8); color: #fff; border-color: transparent; }
.xcats .chip small, .xtags .chip small { opacity: .7; margin-left: 2px; }
.xcard h3 { margin: 0; }
.xcard .xlink { color: inherit; text-decoration: none; }
.xcard .xlink:hover { text-decoration: underline; }
.xcard .skind { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.xtag { appearance: none; border: 0; background: none; padding: 2px 4px; color: var(--ink-2); font: 400 13px var(--mono); cursor: pointer; border-radius: 6px; }
.xtag:hover, .xtag:focus-visible { color: var(--ink); background: var(--surface-2, rgba(127,127,127,.15)); }
#xexplain { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 520px) { .xsearch { grid-template-columns: 1fr; } .xcard .foot .btn-row { flex-wrap: wrap; } }

/* --- Beta / Experimental (panel-experimental.js) --- */
.xp { display: grid; gap: 18px; }
.xp-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: var(--s3) var(--s4); background: var(--k-plate); border: 1px solid var(--k-line); border-left: 5px solid var(--orange); border-radius: var(--r3); }
.xp-intro h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 600 17px/1.2 var(--k-display); }
.xp-intro h2 .ic { width: 18px; height: 18px; color: var(--orange); flex: none; }
.xp-intro p { margin: 0 0 6px; max-width: 68ch; }
.xp-mem { display: grid; gap: 4px; justify-items: end; text-align: right; min-width: 150px; }
.xp-mem-n { font: 600 26px/1 var(--k-display); color: var(--ink); }
.xp-mem .muted { font-size: 13px; max-width: 22ch; }
.xp-sub { margin: -4px 0 6px; font-size: 14px; }
.xp-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: var(--s3); align-items: start; padding: 14px 0; border-top: 1px solid var(--k-line); }
.xp-row .sr-ic { margin-top: 2px; }
.xp-row .sw { margin-top: 2px; }
.xp-row.is-locked .xp-name, .xp-row.is-locked .xp-desc { opacity: 0.6; }
.xp-row.is-on { box-shadow: inset 3px 0 0 var(--brand); padding-left: 8px; margin-left: -8px; }
.xp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xp-name { font: 600 15.5px/1.3 var(--font); color: var(--ink); cursor: pointer; }
.xp-desc { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); max-width: 70ch; }
.xp-warn, .xp-client { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; font-size: 13.5px; max-width: 70ch; }
.xp-warn { color: var(--orange); }
.xp-client { color: var(--ink-3); }
.xp-warn .ic, .xp-client .ic { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.xp-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.xp-meta .chip { min-height: 28px; font-size: 12.5px; white-space: normal; }
@media (max-width: 600px) {
  .xp-intro { grid-template-columns: minmax(0, 1fr); padding: var(--s3); }
  .xp-mem { justify-items: start; text-align: left; }
  .xp-row { grid-template-columns: minmax(0, 1fr) auto; }
  .xp-row .sr-ic { display: none; }
}

/* --- Request a mod (mods.js) --- */
.modreq { margin-top: 8px; }
.mr-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 22px; }
.mr-h .ic { width: 18px; height: 18px; color: var(--ink-3); }
.mr-tools { display: grid; gap: 10px; margin-bottom: 16px; }
.mr-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mr-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mr-row .input { flex: 1 1 160px; min-width: 0; width: auto; }
.mr-row select.input { flex: 0 1 160px; }
.mr-list { display: grid; gap: 12px; }
.mr-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px; }
.mr-item h3 { margin: 0 0 6px; font-size: 18px; overflow-wrap: anywhere; }
.mr-item h3 a { color: var(--ink); }
.mr-item h3 a:hover { color: var(--brand-ink); }
.mr-vote { display: grid; justify-items: center; gap: 2px; min-width: 52px; min-height: 56px; padding: 6px; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r); color: var(--ink-2); font: inherit; cursor: pointer; }
.mr-vote .ic { width: 16px; height: 16px; }
.mr-vote b { font: 600 16px var(--mono); color: var(--ink); }
.mr-vote[aria-pressed='true'] { background: var(--brand); border-color: var(--grass-edge); color: #fff; }
.mr-vote[aria-pressed='true'] b { color: #fff; }
.mr-vote:disabled { cursor: default; opacity: 0.55; }
.mr-vote:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mr-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mr-meta .chip { min-height: 26px; font-size: 12.5px; padding: 2px 9px; }
.mr-meta .small { font-size: 13px; }
.mr-reason { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; overflow-wrap: anywhere; white-space: pre-line; }
.mr-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.mr-form .field { margin-bottom: 16px; }
.mr-legal h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 17px; }
.mr-legal h3 .ic { width: 16px; height: 16px; color: var(--ink-3); }
.mr-legal .join-steps li { padding: 10px 0; font-size: 14.5px; }
.mr-empty { padding: 22px; }
@media (max-width: 600px) {
  .mr-item { padding: 14px; gap: 12px; }
  .mr-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mr-row select.input { flex: 1 1 100%; }
}

/* Game mode and minigame icons (art/mode-icons, art/game-icons: art-src/icons/render_icons.py). Each is its own
   rounded tile, so containers only size it. */
.mwi { display: block; object-fit: contain; image-rendering: auto; border-radius: 19%; }
.slot img.mwi { image-rendering: auto; }
.gm-item .mwi { width: 54px; height: 54px; }
.gm-item.big .mwi { width: 128px; height: 128px; }
.mini-slot .mwi { width: 20px; height: 20px; border-radius: 3px; }
.gc-clash .mwi { width: 18px; height: 18px; border-radius: 3px; }
.gs-c .mwi { width: 26px; height: 26px; border-radius: 5px; }
.chip .mwi { width: 24px; height: 24px; margin: -3px 0 -3px -7px; border-radius: 5px; }
.gallery h3.g-name { display: flex; align-items: center; gap: 10px; }
.g-name .mwi { width: 32px; height: 32px; flex: none; border-radius: 6px; }

/* Early BETA notice (index.html, the server panel and server pages) and the release channel cards. */
.beta-bar { position: relative; z-index: 31; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; padding: 8px 16px; background: var(--panel-2); border-bottom: 1px solid var(--border); color: var(--ink); font: 500 14px/1.4 var(--font); text-align: center; }
.beta-bar code, .beta-note code { font-family: var(--mono); font-size: 0.95em; padding: 1px 5px; border-radius: 4px; background: var(--panel-3); }
.beta-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #f5a524; color: #000; font: 700 12px/1.4 var(--font); letter-spacing: 0.04em; text-transform: uppercase; }
.beta-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 18px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: 14px; }
.ch-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--ink-2); font: 600 11px/1.5 var(--font); vertical-align: 2px; }
.optcards.cols2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* The owners' animations (owner-anim.js; web copies from assets/owner/animations/web at /art/owner/).
   The still keeps the box's size; the video fades in over it once it plays. */
.oa { position: relative; display: inline-block; max-width: 100%; line-height: 0; vertical-align: middle; }
.oa img, .oa video { display: block; width: 100%; height: auto; }
.oa video { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity 0.25s; }
.oa.oa-live video { opacity: 1; }
.oa.oa-live .oa-still { visibility: hidden; }
.join-row .join-dance { width: 140px; margin: 0 0 -24px; flex: none; align-self: flex-end; }
@media (max-width: 600px) { .join-row .join-dance { width: 104px; margin: -16px 0 0; } }
.nf-art .oa { width: min(220px, 60%); margin: 0 auto; display: block; }
.empty.has-anim { grid-template-columns: auto minmax(0, 1fr); column-gap: 24px; }
.empty.has-anim > .es-anim { grid-row: 1 / span 4; width: 110px; align-self: center; }
.empty.has-anim > :not(.es-anim) { grid-column: 2; }
@media (max-width: 600px) { .empty.has-anim { grid-template-columns: minmax(0, 1fr); } .empty.has-anim > .es-anim { grid-row: auto; width: 90px; } .empty.has-anim > :not(.es-anim) { grid-column: 1; } }
.done-hero .art .oa { width: min(360px, 100%); display: block; margin: 0 auto; }
.toast .t-anim { flex: none; width: 58px; }
.oa-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
.oa-loading > .oa { width: min(200px, 60%); }
.oa-inline { width: 54px; margin-left: 8px; }
@media (prefers-reduced-motion: reduce) { .oa video { display: none; } }
