/* MineWorld Space - black product UI on a visible 4-column hairline grid.
   Square corners, no shadows or glows on components, monochrome plus one Minecraft-green primary.
   Type: Silkscreen 700 (uppercase display headlines and big numbers), Geist (everything else),
   Geist Mono (uppercase eyebrows and dashed-leader annotations). Media are 3D renders made for
   MineWorld (art/render, see art/CREDITS.md). */

/* 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(https://fonts.gstatic.com/s/silkscreen/v6/m8JXjfVPf62XiF7kO-i9YLNlaw.woff2) format('woff2'); unicode-range: U+57, U+77; font-weight: 400; font-display: swap; }

/* The control panel's own type (server manager and My servers): Inter and Pixelify Sans, self-hosted
   latin subsets under the SIL Open Font License (art/fonts, credited in art/CREDITS.md). */
@font-face { font-family: 'Inter'; src: url(/art/fonts/inter-latin.woff2) format('woff2'); font-weight: 100 900; 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; }
@font-face { font-family: 'Pixelify Sans'; src: url(/art/fonts/pixelify-sans-latin.woff2) format('woff2'); font-weight: 400 700; 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; }

: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; border-radius: 0; }
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; text-transform: uppercase; letter-spacing: -0.06em; 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); }
.faint { color: var(--ink-3); }
.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; }
.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; } .span3 { grid-column: span 3; } .span4 { grid-column: span 4; }
.start2 { grid-column-start: 2; } .start3 { grid-column-start: 3; } .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)); }
  .span3, .span4 { grid-column: span 2; }
  .start2, .start3, .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, .span3, .span4 { grid-column: span 1; }
}

/* ---------- eyebrows & annotations ---------- */
.eyebrow { font: 400 17px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; color: var(--sec); margin: 0 0 18px; display: block; }
.eyebrow .ic { display: none; }
.annot { font: 400 15px/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 { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); line-height: 1.32; max-width: 470px; }
.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: 2px solid var(--b-edge); background: var(--b-bg); color: var(--b-ink); clip-path: var(--notch);
  box-shadow: inset 2px 2px 0 var(--b-hi), inset -2px -4px 0 var(--b-lo);
  font: 400 15px/1.1 var(--display); text-transform: uppercase; 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); box-shadow: inset 2px 4px 0 var(--b-lo), inset -2px -2px 0 var(--b-hi); }
.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, .btn-primary, .btn-sky { --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); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.btn-grass, .btn-primary { font-weight: 700; }
.btn-grass:hover, .btn-primary:hover, .btn-sky: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: 2px solid var(--field-edge); background: var(--field); color: var(--ink); font: 400 17px/1.4 var(--font); appearance: none; clip-path: var(--notch); box-shadow: inset 2px 2px 0 var(--field-lo); 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: 2px solid var(--field-edge); background: var(--field) center / 12px 10px no-repeat; clip-path: var(--notch); box-shadow: inset 2px 2px 0 var(--field-lo); 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: 2px solid var(--field-edge); clip-path: var(--notch); box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.35); 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: 700 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: 400 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: 2px 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%)); clip-path: var(--notch); }
input[type='range']::-moz-range-track { height: 8px; border: 2px 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: 2px solid var(--btn-edge); box-shadow: inset 2px 2px 0 var(--btn-hi), inset -2px -3px 0 var(--btn-lo); }
input[type='range']::-moz-range-thumb { width: 10px; height: 24px; background: var(--btn); border: 2px solid var(--btn-edge); border-radius: 0; box-shadow: inset 2px 2px 0 var(--btn-hi), inset -2px -3px 0 var(--btn-lo); }
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: 2px solid var(--border); background: var(--surface); clip-path: var(--notch); box-shadow: inset 2px 2px 0 var(--btn-hi), inset -2px -2px 0 rgba(0, 0, 0, 0.12); 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: 2px solid var(--field-edge); background: var(--track); clip-path: var(--notch); }
.seg button { min-height: 36px; border: 2px solid transparent; background: transparent; padding: 6px 14px 8px; font: 400 13px/1 var(--display); text-transform: uppercase; color: var(--ink-2); cursor: pointer; clip-path: var(--notch); }
.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; box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.25), inset -2px -2px 0 rgba(255, 255, 255, 0.2); }
.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: 2px solid var(--border-2); clip-path: var(--notch); 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); box-shadow: inset 2px 2px 0 rgba(127, 127, 127, 0.35); }
.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; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.25), inset -2px -2px 0 var(--brand-lo); }
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: 2px solid var(--border-2); clip-path: var(--notch); 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: 2px solid var(--border); clip-path: var(--notch); 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: 24px; height: 24px; flex: none; }
.brand-name { font: 700 22px/1 var(--display); text-transform: uppercase; letter-spacing: -0.05em; }
.brand-tld { display: none; }
.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: 700 17px/1 var(--display); text-transform: uppercase; 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; }
.head-side { display: flex; align-items: center; gap: 4px; padding: 0 10px; }
.head-side .btn { min-height: 40px; }
.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; } }

/* ---------- 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: 700 clamp(48px, 6vw, 84px)/1 var(--display); text-transform: uppercase; letter-spacing: -0.06em; }
.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: 500 18px var(--font); color: var(--ink); margin: 0 0 8px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 18px; }
.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; }
.foot-bottom { margin-top: 56px; font: 400 14px var(--mono); color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
@media (max-width: 900px) { .foot-grid > * { margin-bottom: 28px; } }

/* ---------- sections ---------- */
.sec { position: relative; border-top: 1px solid var(--line); isolation: isolate; }
.sec::before { content: ''; position: absolute; inset: 0 0 auto; height: 420px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--sec) var(--sec-mix), transparent) 0%, transparent 100%); }
.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(--sec); }
.sec-head { padding-top: 120px; padding-bottom: 80px; }
.sec-head h2.display { margin-bottom: 18px; }
.sec-head .lead { margin: 0; }
.sec-head.tight { padding-bottom: 48px; }
.sec-body { padding-bottom: 120px; }
@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: 826px; padding-top: 160px; padding-bottom: 0; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { color: var(--head); margin-bottom: 30px; }
.hero .sub { font-size: clamp(19px, 1.7vw, 23px); color: var(--ink-2); max-width: 560px; margin-bottom: 40px; line-height: 1.38; }
.hero-art { position: absolute; z-index: 1; right: -20px; bottom: 10px; width: min(760px, 52vw); pointer-events: none; }
.hero-art img { 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: 19px; 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: 900px) {
  .hero-in { min-height: 0; padding-top: 48px; }
  .hero-art { position: relative; 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: 2px solid var(--field-edge); border-right: 0; background: var(--field); padding-left: 18px; box-shadow: inset 2px 2px 0 var(--field-lo); clip-path: polygon(2px 0, 100% 0, 100% 100%, 2px 100%, 2px calc(100% - 2px), 0 calc(100% - 2px), 0 2px, 2px 2px); }
.namebox .nb-field:focus-within { border-color: var(--focus); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--focus) 35%, transparent); }
.namebox input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 20px/1 var(--font); padding: 20px 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: 66px; padding: 0 28px; }
.nb-status { display: flex; align-items: flex-start; gap: 8px; min-height: 24px; margin-top: 4px; font: 400 15px/1.4 var(--mono); color: var(--ink-2); padding-left: 110px; }
.nb-status .ic { display: none; }
.nb-status::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; }
.nb-status.ok { color: var(--green); } .nb-status.bad { color: var(--red); }
.nb-status .addr { color: var(--ink); }
#wname .nb-field { border-right: 2px solid var(--field-edge); padding-right: 0; clip-path: var(--notch); }
#wname .nb-field:focus-within { border-color: var(--focus); }
#wname input { font-size: 26px; padding: 22px 0; }
#wname .nb-status { padding-left: 24px; }
@media (max-width: 600px) {
  .nb-row { flex-direction: column; }
  .namebox .nb-field { border-right: 2px solid var(--field-edge); clip-path: var(--notch); }
  .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); overflow: hidden; }
.media > img { width: 100%; height: auto; display: block; }
.media .overlay { position: absolute; left: 24px; bottom: 24px; }
.toast-mc { display: inline-flex; align-items: center; gap: 14px; background: rgba(0, 0, 0, 0.78); border: 1px solid rgba(255, 255, 255, 0.18); padding: 12px 16px; font: 400 13px/1.5 var(--display); color: #fff; text-transform: none; letter-spacing: 0; }
.toast-mc b { color: var(--green); font-weight: 400; display: block; }
.toast-mc .sicon { width: 40px; height: 40px; }
.side-notes { display: grid; gap: 22px; align-content: start; padding-top: 30px; }

/* 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: 400 24px/1.2 var(--font); color: var(--ink-2); text-align: center; margin-bottom: 26px; }
.tile-panel { background: var(--tile-bg); border: 1px solid var(--border); aspect-ratio: 1; padding: 22px; display: grid; align-content: center; gap: 10px; overflow: hidden; }
.tile-panel .mcline { font: 400 13px/1.4 var(--display); 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: 20px; line-height: 1.35; 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: 0; border-left: 1px solid var(--border); }
.bigcard { background: var(--bigcard-bg); border: 1px solid var(--border); border-left: 0; padding: 38px; min-height: 290px; display: flex; flex-direction: column; gap: 18px; }
.bigcard .q { font: 400 24px/1.25 var(--font); color: var(--ink); flex: 1; }
.bigcard .who { display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-size: 17px; }
.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 { font: 700 46px/1 var(--display); color: var(--brand-ink); letter-spacing: -0.1em; padding-top: 22px; }
.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: 400 17px/1 var(--mono); text-transform: uppercase; color: var(--ink-2); margin: 0 0 22px; }
.plan .price { font: 700 52px/0.9 var(--display); letter-spacing: -0.06em; text-transform: uppercase; color: var(--head); margin-bottom: 8px; }
.plan .price small { display: block; font: 400 15px var(--mono); 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: 16.5px; color: var(--ink-2); }
.plan li .ic { width: 14px; height: 14px; color: var(--ink-3); margin-top: 5px; }
.plan.pop { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.plan.pop .pname { color: var(--brand-ink); }
.plan.cur .pname { color: var(--green); }
.ribbon { position: absolute; top: 40px; right: var(--pad); font: 400 12px var(--mono); text-transform: uppercase; 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: 16px var(--pad); text-align: left; border-bottom: 1px solid var(--line); font-size: 17px; }
.compare th:first-child, .compare td:first-child { color: var(--ink-2); }
.compare thead th { font: 400 15px var(--mono); text-transform: uppercase; color: var(--ink-2); }
.compare td { color: var(--ink); }

/* ---------- FAQ (square accordion) ---------- */
.faqs { display: grid; border-top: 1px solid var(--border); }
.faq { border: 1px solid var(--border); border-top: 0; background: var(--bg); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 38px; font: 400 19px/1.35 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 38px 28px; color: var(--ink); font-size: 18px; }
details.faq.solo { border-top: 1px solid var(--border); }
@media (max-width: 600px) { .faq summary { padding: 20px 18px; font-size: 17px; } .faq .ans { padding: 0 18px 20px; } }

/* ---------- 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: 96px 0 48px; margin-bottom: 48px; 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) 14%, transparent), transparent); }
.page-head h1 { margin: 0; font-size: clamp(36px, 4.6vw, 64px); }
.page-head p { margin: 20px 0 0; color: var(--ink-2); max-width: 600px; font-size: 20px; line-height: 1.35; }
.page-head .eyebrow { margin-bottom: 20px; }
.crumb { display: inline-flex; align-items: center; gap: 8px; margin: 40px 0 0; font: 400 15px var(--mono); color: var(--ink-2); text-decoration: none; text-transform: uppercase; }
.crumb:hover { color: var(--ink); }
.crumb .ic { width: 14px; height: 14px; }

.empty { text-align: left; display: grid; justify-items: start; gap: 6px; padding: 36px 32px; border: 2px dashed var(--border-2); }
.empty h3 { font: 700 24px/1 var(--display); text-transform: uppercase; letter-spacing: -0.04em; color: var(--head); margin-bottom: 8px; }
.empty p { color: var(--ink-2); max-width: 520px; }
.empty .btn-row { margin-top: 12px; }
.notfound { padding-top: 140px; padding-bottom: 140px; }
.notfound h1 { margin-bottom: 24px; }
.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: 700 40px/0.95 var(--display); text-transform: uppercase; letter-spacing: -0.06em; 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 { padding: 0; background: transparent; border: 0; 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: 2px solid var(--field-edge); background: var(--field); clip-path: var(--notch); 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(--display); }
.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; }

.addr-btn { width: 100%; justify-content: space-between; min-height: 72px; padding: 14px 22px; background: var(--brand); border: 2px solid var(--grass-edge); clip-path: var(--notch); color: #fff; }
.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: 700 clamp(16px, 2.2vw, 26px)/1 var(--display); text-transform: uppercase; letter-spacing: -0.04em; }
.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: 2px solid var(--border-2); clip-path: var(--notch); 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: 700 30px/0.95 var(--display); text-transform: uppercase; letter-spacing: -0.05em; 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: 2px 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 */
.srv-head { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; padding: 28px 0 40px; }
.srv-icon-btn { position: relative; background: none; border: 0; padding: 0; cursor: pointer; }
.srv-icon-btn .edit { position: absolute; right: -8px; bottom: -8px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--bg); color: var(--ink); border: 1px solid var(--border-2); }
.srv-icon-btn .edit .ic { width: 13px; height: 13px; }
.srv-icon-btn:hover .edit { background: var(--brand); border-color: var(--brand); }
.srv-title { min-width: 0; flex: 1; }
.srv-title h1 { font-size: clamp(36px, 5vw, 70px); margin: 0 0 16px; overflow-wrap: anywhere; }
.srv-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.srv-actions { display: flex; gap: 0; flex-wrap: wrap; }
.srv-actions .btn + .btn { border-left: 0; }
.status-line { color: var(--ink-2); font: 400 14px var(--mono); }
.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); clip-path: var(--notch); border: 2px 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; }
.plist { list-style: none; padding: 0; margin: 4px 0 0; display: grid; }
.plist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.plist li:first-child { border-top: 0; }
.plist .nm { display: flex; align-items: center; gap: 12px; font-weight: 400; min-width: 0; overflow-wrap: anywhere; }
.plist .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.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; }
.drawer { margin-top: 48px; border: 1px solid var(--border); }
.drawer summary { cursor: pointer; padding: 18px 22px; font: 400 15px var(--mono); text-transform: uppercase; display: flex; align-items: center; gap: 10px; color: var(--ink-2); list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .ic { width: 16px; height: 16px; }
.drawer .in { padding: 0 22px 22px; }
.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; }
.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: 2px 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; }
.cmd-run { border-radius: 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; } .cmd-run { min-width: 76px; } .cmd-mirror { right: 76px; } .console .console-out { height: 240px; } }
.motd-in { font-family: var(--mono); font-size: 15px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.icon-grid button { aspect-ratio: 1; background: #000; border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); cursor: pointer; display: grid; place-items: center; padding: 12px; }
.icon-grid button:hover { background: var(--panel-2); }
.icon-grid button[aria-pressed='true'] { background: rgba(60, 133, 39, 0.15); box-shadow: inset 0 0 0 2px var(--brand); }
.icon-grid .item, .icon-grid svg { width: 100%; height: 100%; }
.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-grid { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.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 .mode-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 26px; }
.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 .mode-foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; }
.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: 700 clamp(24px, 2.1vw, 36px)/0.9 var(--display); white-space: nowrap; letter-spacing: -0.06em; 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; } .span2.start3 { grid-column: 3 / span 2; } .span3.start2 { grid-column: 2 / span 3; }
@media (max-width: 900px) { .span2.start2, .span2.start3, .span3.start2 { grid-column: span 2; } }
@media (max-width: 600px) { .span2.start2, .span2.start3, .span3.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; }
  .srv-title h1 { font-size: 30px; }
}
@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 */
.stat-slot { border: 1px solid var(--border); background: linear-gradient(180deg, rgba(60, 133, 39, 0.12), var(--bg)); padding: 40px var(--pad); display: grid; gap: 14px; min-height: 240px; align-content: end; }
.stat-big { font: 700 clamp(56px, 7vw, 104px)/0.85 var(--display); letter-spacing: -0.06em; color: var(--brand-ink); text-transform: uppercase; }
.stat-big:empty { display: none; }
.stat-label { font: 400 17px var(--mono); text-transform: uppercase; color: var(--ink); }
.stat-label::before { content: ''; display: inline-block; width: 10px; height: 10px; background: var(--green); margin-right: 12px; vertical-align: 1px; }
@media (max-width: 900px) { .hero-stats { max-width: none; } }

/* resources panel */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.res-tile { display: grid; gap: 6px; align-content: start; padding: 18px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-width: 0; }
.res-l { font: 400 12.5px var(--mono); text-transform: uppercase; color: var(--ink-3); }
.res-v { font: 500 30px/1.05 var(--mono); color: var(--ink); letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-v small { font-size: 15px; color: var(--ink-2); letter-spacing: 0; }
.res-s { font: 400 13px var(--mono); color: var(--ink-2); }
.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 */
.addr-btn, .head-cta .cta-block { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -4px 0 var(--brand-lo); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.addr-btn:active, .head-cta .cta-block:active { box-shadow: inset 0 4px 0 var(--brand-lo); }

/* 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: 2px 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, .tip-title { display: block; font: 400 13px/1.4 var(--display); 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); box-shadow: inset 2px 2px 0 var(--slot-dark), inset -2px -2px 0 var(--slot-light); padding: 6px; }
.slot img, .slot svg { width: 100%; height: 100%; image-rendering: pixelated; }
.slot img.render { image-rendering: auto; }
.slot:hover::after, .slot-hover:hover .slot::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(--display); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.slots-row { display: flex; gap: 0; }

/* 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; }
.xp .lvl { position: absolute; left: 50%; top: 0; transform: translateX(-50%); font: 400 16px/1 var(--display); color: #80ff20; text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000; }

/* boss bar banners */
.bossbar { text-align: center; padding: 18px 20px 20px; border: 2px solid var(--border); clip-path: var(--notch); background: var(--surface); margin: 0 0 24px; }
.bossbar .bb-title { font: 400 15px/1.4 var(--display); 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(--display); 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; }
.console-out .c-me { color: #aaaaaa; } .console-out .c-sys { color: #ffff55; } .console-out .c-err { color: #ff5555; }
#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 .hb-item { width: 30px; height: 30px; }
  .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(--display); color: #7a7a7a; }
}
@media (max-width: 900px) { .tabs.hotbar .hb-item, .tabs.hotbar .key { display: none; } }

/* title-screen splash */
.splash-anchor { position: relative; display: inline-block; }
.splash { position: absolute; left: calc(100% + 6px); top: -0.2em; z-index: 3; font: 700 22px/1 var(--display); 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 { 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: 400 14px var(--display); color: #fff; background: #2b2b2b; box-shadow: inset 2px 2px 0 #111, inset -2px -2px 0 #4c4c4c; 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: center; border: 2px solid var(--field-edge); clip-path: var(--notch); padding: 14px 16px; font-size: 18px; gap: 2px; background: var(--field); }
.mini-name .mono { 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; }
.perf-tiles > div { padding-top: 32px; padding-bottom: 36px; border-right: 1px solid var(--line); }
.perf-tiles > div:last-child { border-right: 0; }
.perf-v { display: block; font: 700 40px/1 var(--display); color: var(--brand-ink); letter-spacing: -0.05em; min-height: 6px; margin: 6px 0 10px; }
.perf-v:empty { height: 4px; min-height: 0; width: 48px; background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 12px); margin: 14px 0 16px; }
.perf-tiles p:not(.res-l) { 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 { border-right: 0; }
.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, .perf-tiles > div, .gallery > article { border-right: 0; border-bottom: 1px solid var(--line); }
}

.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 */
.explain { border: 1px solid var(--border); border-left: 3px solid var(--brand); padding: 14px 18px; margin-bottom: 24px; color: var(--ink-2); font-size: 15.5px; }
.explain p { margin: 0; } .explain b { color: var(--ink); font-weight: 500; }
.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); }
.plist .nm { gap: 12px; }
.plist .slot.head { --slot: 34px; padding: 3px; }
.plist .pn { font-weight: 500; }
.roles { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.roles .badge { font-size: 11px; padding: 0 6px; }
.badge.role-owner { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 50%, transparent); }
.empty-mini { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px dashed var(--border-2); color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.empty-mini.big { padding: 24px; }
.empty-mini b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.mode .mode-top .slot.lg { --slot: 64px; padding: 6px; }
.mode.dim { opacity: 0.62; }
.mrel { display: grid; gap: 6px; margin-top: 12px; }
.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); }
.rules-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.rules-preview { position: sticky; top: 96px; }
@media (max-width: 900px) { .rules-layout { grid-template-columns: minmax(0, 1fr); } .rules-preview { position: static; } }
.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: 700 26px/1 var(--display); text-transform: uppercase; letter-spacing: -0.05em; 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 */
.icon-grid { border: 0; gap: 0; grid-template-columns: repeat(auto-fill, 56px); }
.icon-grid button { width: 56px; height: 56px; background: #2b2b2b; border: 0; box-shadow: inset 2px 2px 0 #111, inset -2px -2px 0 #4c4c4c; padding: 7px; position: relative; }
.icon-grid button:hover { background: #3a3a3a; }
.icon-grid button[aria-pressed='true'] { background: #3a3a3a; box-shadow: inset 0 0 0 3px #f0f0f0, inset 0 0 0 5px #000; }

/* 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(--display); 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(--display); 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(--display); 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(--display); 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 { 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 -49px; 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 -49px; } }

.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; }
.h1-mob { display: inline-block; height: 0.9em; width: auto; vertical-align: -0.05em; margin-left: 0.15em; }

/* 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, .is-loading .brand-globe.spin-globe { animation: var(--spin); }
.brand-globe.spin-globe { width: 28px; height: 28px; vertical-align: middle; }
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; }
.skel.card { position: relative; }
.skel.card::after { content: ''; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; background: url('/art/globe-spin.webp') 0 0 / 2400% 100% no-repeat; animation: globe-spin 1.15s steps(24, jump-none) infinite; opacity: 0.85; }
@media (prefers-reduced-motion: reduce) { .skel.card::after { animation: globe-pulse 1.6s ease-in-out infinite; } }
.sicon img.mc-ico { image-rendering: auto; }
.mc-row .sicon, .toast-mc .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: 2px solid var(--border); clip-path: var(--notch); 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
   ===================================================================================== */
.px-ic { image-rendering: pixelated; }
.theme-btn .ic.px-ic { width: 20px; height: 20px; }
.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); }
.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 { 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; }


/* =====================================================================================
   Fan art (art/fan, by other artists: Admurin's builds and blocks, Homunculus's mob faces,
   Kenney's sun and moon; see art/CREDITS.md). All pixel art, scaled with crisp pixels.
   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, .token, .sky-orb { image-rendering: pixelated; }
.fan-build { width: auto; height: auto; max-width: 100%; image-rendering: auto; }
.fan-build.x1 { image-rendering: pixelated; }
@media (min-resolution: 1.5dppx) { .fan-build { image-rendering: pixelated; } }
.fan-block { width: 48px; height: 48px; object-fit: contain; flex: none; display: inline-block; vertical-align: middle; }
.fan-block.sm { width: 32px; height: 32px; }
.fan-block.lg { width: 72px; height: 72px; }
.token { display: inline-block; flex: none; width: 30px; height: 30px; vertical-align: middle; background: url(/art/fan/mob-tokens.webp) var(--tx) var(--ty) / 800% 700% no-repeat; }
.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, .sgroup-h h2 .fan-block { width: 32px; height: 32px; margin: -6px 12px -6px 0; }
.pcard-h h2, .sgroup-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: 2px solid var(--border); clip-path: var(--notch); 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; }
.welcome .wl-mobs { position: absolute; left: 0; right: 0; bottom: 0; height: 0; }
.welcome .wl-mobs .token { position: absolute; bottom: 10px; }
@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; } }
.pcard.with-art { position: relative; }
.pcard .card-art { position: absolute; right: 18px; top: 14px; width: 144px; pointer-events: none; image-rendering: auto; }
.pcard.with-art .pcard-h { padding-right: 150px; min-height: 86px; }
@media (max-width: 600px) { .pcard .card-art { width: 96px; right: 10px; } .pcard.with-art .pcard-h { padding-right: 96px; min-height: 64px; } }
.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: 2px solid var(--btn-edge); clip-path: var(--notch); }
.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. Dense tiles, live gauges, pictures first,
   short labels with the longer words in tooltips. Type: Inter for the interface and Pixelify Sans
   for headings and numbers (both self-hosted in art/fonts, SIL Open Font License, latin subsets).
   ===================================================================================== */
body.in-manager, body.in-dash {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Pixelify Sans', 'Inter', system-ui, sans-serif;
  --good: var(--brand-ink); --warn: var(--orange); --bad: var(--red);
  --tile: var(--surface); --tile-2: var(--surface-2);
  font: 400 14px/1.45 var(--font);
  font-feature-settings: 'tnum' 1, 'calt' 1;
}
body.in-manager #foot { display: none; }
body.in-manager .gridlines, body.in-dash .gridlines { display: none; }
body.in-manager .site-head { display: none; }
:is(body.in-manager, body.in-dash) .btn { font: 500 14px/1.1 var(--display); text-transform: none; letter-spacing: 0.02em; min-height: 38px; padding: 7px 14px 9px; gap: 8px; }
:is(body.in-manager, body.in-dash) .btn-grass { font-weight: 600; }
:is(body.in-manager, body.in-dash) .btn-sm { min-height: 32px; padding: 4px 10px 6px; font-size: 13px; gap: 6px; }
:is(body.in-manager, body.in-dash) .btn-lg { min-height: 48px; font-size: 16px; padding: 10px 20px 12px; }
:is(body.in-manager, body.in-dash) .icon-btn { min-width: 38px; padding: 6px; }
:is(body.in-manager, body.in-dash) .input { min-height: 40px; padding: 8px 12px; font-size: 14px; }
:is(body.in-manager, body.in-dash) .input-sm { min-height: 34px; padding: 4px 10px; font-size: 13.5px; }
:is(body.in-manager, body.in-dash) .badge { font: 500 11px/1.6 var(--font); letter-spacing: 0.04em; padding: 1px 7px; gap: 5px; }
:is(body.in-manager, body.in-dash) .chip { min-height: 30px; padding: 3px 10px 4px; font-size: 13px; gap: 6px; }
:is(body.in-manager, body.in-dash) .lbl { font: 600 12px/1.3 var(--font); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin: 14px 0 6px; display: flex; align-items: center; gap: 6px; }
:is(body.in-manager, body.in-dash) .hint { font-size: 12.5px; margin-top: 4px; }
:is(body.in-manager, body.in-dash) .mono, :is(body.in-manager, body.in-dash) code { font-family: var(--mono); }
:is(body.in-manager, body.in-dash) .seg button { font: 500 13px/1 var(--display); text-transform: none; min-height: 32px; padding: 5px 10px 6px; }
:is(body.in-manager, body.in-dash) .mc-tip, .mc-tip { font-family: var(--display); }
@media (max-width: 600px) { :is(body.in-manager, body.in-dash) .btn-sm, :is(body.in-manager, body.in-dash) .input-sm, :is(body.in-manager, body.in-dash) .seg button { min-height: 44px; } }

/* drawer, server-list preview and icon picker (kept from the earlier manager) */
.drawer-ov { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: flex; justify-content: flex-end; animation: fade 0.2s ease; }
.drawer-p { width: min(480px, 100%); height: 100%; background: var(--surface); border-left: 1px solid var(--border-2); display: grid; grid-template-rows: auto 1fr auto; animation: slidein 0.25s ease; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer-ov, .drawer-p { animation: none; } }
.dw-h { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.dw-h h2 { margin: 0; font: 700 24px/1 var(--display); text-transform: uppercase; letter-spacing: -0.05em; }
.dw-h p { margin: 8px 0 0; font-size: 14.5px; }
.dw-b { overflow: auto; padding: 8px 24px 24px; }
.dw-art { display: grid; place-items: center; height: 160px; margin: 14px 0; }
.dw-art img.render { height: 100%; width: auto; }
.dw-art .m-item { width: 90px; }
.dw-f { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--border); }

.optcards.cols5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.optcards.cols2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 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; clip-path: var(--notch); }
.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 3px var(--brand-ink); background: #2f3a2b; }
.icon-inv .slot:hover { background: color-mix(in srgb, var(--slot-bg) 80%, #fff); }

/* --- shared pieces --- */
.spill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 6px; font: 600 12px/1.5 var(--font); color: var(--ink-2); border: 1px solid var(--border-2); background: var(--tile-2, var(--panel)); }
.spill i { width: 8px; height: 8px; background: var(--ink-3); flex: none; }
.spill.on { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.spill.on i { background: var(--good); box-shadow: 0 0 0 2px color-mix(in srgb, var(--good) 25%, transparent); animation: mwpulse 2.4s steps(2, end) infinite; }
.spill.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.spill.bad i { background: var(--bad); }
@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: 2px solid var(--btn-edge); clip-path: var(--notch); box-shadow: inset 2px 2px 0 var(--btn-hi), inset -2px -3px 0 var(--btn-lo); cursor: pointer; font: 500 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(--brand); border-color: var(--grass-edge); color: #fff; box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.25), inset -2px -2px 0 rgba(255, 255, 255, 0.2); }
.ibtn.gold[aria-pressed='true'] { background: #c7951c; border-color: #6e5207; }
.ibtn.danger { --c: var(--red); }
.ibtn.danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
@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); text-transform: uppercase; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25); }
.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: 500 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; }
.live-tag.stale { color: var(--ink-3); border-color: var(--border-2); }
.live-tag.stale i { background: var(--ink-3); animation: none; }
.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: 2px solid var(--border); clip-path: var(--notch); 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: 500 16px/1.2 var(--display); color: var(--ink); letter-spacing: 0.01em; min-width: 0; }
.pcard-h h3 .item, .pcard-h h3 > svg.item { width: 20px; height: 20px; flex: none; }
.pcard-h p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.pcard-h .ph-act { display: flex; gap: 6px; align-items: center; }
.pcard.danger { border-color: color-mix(in srgb, var(--red) 40%, var(--border)); }
.danger-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.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: 500 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 slim bar, text tabs, one calm view at a time --- */
.mbar { position: sticky; top: 0; z-index: 30; background: var(--bar-bg); backdrop-filter: blur(6px); }
.mbar-in { display: flex; align-items: center; gap: 10px; max-width: 1280px; height: 58px; margin: 0 auto; padding: 0 28px 0 18px; }
.mb-id { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; padding: 4px 8px 4px 4px; border: 2px solid transparent; clip-path: var(--notch); }
.mb-name { font: 600 21px/1 var(--display); color: var(--head); letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mtabs { position: sticky; top: 58px; z-index: 29; background: var(--bar-bg); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.mt-in { display: flex; gap: 2px; max-width: 1280px; margin: 0 auto; padding: 0 22px; overflow-x: auto; scrollbar-width: none; }
.mt-in::-webkit-scrollbar { display: none; }
.mtabs a { flex: none; position: relative; padding: 12px 12px 14px; color: var(--ink-2); font: 500 15px/1 var(--font); letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.mtabs a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; background: transparent; }
.mtabs a:hover { color: var(--ink); }
.mtabs a:hover::after { background: var(--border-2); }
.mtabs a:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
.mtabs a[aria-current='page'] { color: var(--ink); font-weight: 600; }
.mtabs a[aria-current='page']::after { background: var(--brand); }
.mview { width: 100%; max-width: 1280px; margin: 0 auto; padding: 30px 28px 64px; min-width: 0; flex: 1; }
.vhead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 0 0 24px; }
.vh-t h1 { margin: 0; font: 600 30px/1 var(--display); color: var(--head); text-transform: none; letter-spacing: 0.01em; }
.vh-t p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }

/* Overview: the world, the address, five numbers, four quick actions */
.ov { display: grid; gap: 22px; }
.ov-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--tile); border: 2px solid var(--border); clip-path: var(--notch-4); }
.ov-pic { position: relative; display: flex; align-items: center; justify-content: center; min-height: 330px; overflow: hidden; text-decoration: none; }
.ov-pic img.render, .ov-pic .fan-build { position: relative; max-width: 78%; max-height: 270px; width: auto; height: auto; margin-top: 26px; transition: transform 0.3s ease; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.28)); }
.ov-pic:hover img.render, .ov-pic:hover .fan-build { transform: translateY(-4px); }
.ov-pic .sky-orb { width: 50px; height: 50px; top: 24px; right: 12%; }
.ov-pic:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.ov-info { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 30px 32px; min-width: 0; }
.ov-plan { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font: 600 13px var(--font); text-decoration: none; }
.ov-plan:hover { color: var(--ink); }
.ov-info h1 { margin: -4px 0 0; font: 600 46px/1 var(--display); color: var(--head); text-transform: none; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.ov-motd { margin: -6px 0 4px; color: var(--ink-2); font-size: 15px; overflow-wrap: anywhere; }
.ov-how { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; }
.ov-how .ic { width: 15px; height: 15px; }
.ov-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 2px solid var(--border); clip-path: var(--notch); }
.st { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 16px 18px; background: var(--tile); border: 0; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; font: inherit; }
.st:hover { background: var(--tile-2); color: var(--ink); }
.st:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.st-l { font: 600 12px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.st-v { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.st-v b { font: 600 25px/1 var(--display); }
.st-v small { color: var(--ink-3); font: 500 15px var(--display); margin-left: -6px; }
.st-v .mbo-heads .pface { box-shadow: 0 0 0 2px var(--tile); }
.st-items { display: inline-flex; gap: 2px; }
.st-items .itm, .st-items .item { width: 24px; height: 24px; }
.st-s { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.st-s .ub-t { flex: 1; max-width: 70px; height: 8px; }
.hl-dot { width: 12px; height: 12px; background: var(--ink-3); flex: none; }
.st.good .hl-dot { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); }
.st.warn .hl-dot { background: var(--warn); }
.st.bad .hl-dot { background: var(--bad); }
.ov-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ov-acts .btn { justify-content: center; min-height: 48px; }
.pface.sm { font-size: 17px; }
.mgr { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
.mb-back { flex: none; }
.mb-id:hover { background: var(--panel-2); color: var(--ink); }
.mb-id:focus-visible { outline: none; border-color: var(--focus); }
.mb-icon { width: 34px; height: 34px; flex: none; display: block; }
.mb-icon img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.mb-gap { flex: 1; }
.mb-bug { flex: none; color: var(--ink-2); }
.mb-bug .ic { width: 17px; height: 17px; }
.mb-theme { flex: none; }
.vh-t { min-width: 0; margin-right: auto; }
.vh-act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.vh-act:empty { display: none; }
.vbody { min-width: 0; }
.vsec { display: flex; align-items: center; gap: 10px; margin: 34px 0 14px; font: 600 21px/1.1 var(--display); color: var(--ink); letter-spacing: 0.01em; text-transform: none; }
.vsec .itm { width: 28px; height: 28px; }
.vsec small { font: 400 14px var(--font); color: var(--ink-3); letter-spacing: 0; }
.kicker { display: block; font: 600 12px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.mview .btn { min-height: 42px; }
.mview .btn-sm { min-height: 34px; }

/* 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: 2px 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: 2px 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; }
}

/* --- Home: the world card and the picture buttons --- */
.home { display: grid; gap: 22px; }
.wc-type { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px 7px; background: rgba(0, 0, 0, 0.55); color: #fff; font: 600 16px/1 var(--display); letter-spacing: 0.02em; }
.wc-addr { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 14px 14px 18px; background: var(--brand); color: #fff; border: 2px solid var(--grass-edge); clip-path: var(--notch); box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.22), inset -2px -3px 0 rgba(0, 0, 0, 0.3); cursor: pointer; text-align: left; }
.wc-addr .a { flex: 1; min-width: 0; font: 600 22px/1.15 var(--display); letter-spacing: 0.01em; overflow-wrap: break-word; }
.wc-addr .c { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 10px; background: rgba(0, 0, 0, 0.22); font: 600 14px var(--display); }
.wc-addr .c .ic { width: 15px; height: 15px; }
.wc-addr:hover { background: var(--brand-hi); }
.wc-addr:active { transform: translateY(1px); }
.wc-addr:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wc-addr.sm .a { font-size: 17px; }
.hl-dot { width: 12px; height: 12px; background: var(--ink-3); flex: none; }
.spill.lg { font-size: 13.5px; padding: 4px 10px 4px 8px; }
.spill.lg i { width: 10px; height: 10px; }

.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: 2px solid var(--border); clip-path: var(--notch); 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)); } }

/* performance (in a sheet) */
.perf-sheet { width: min(620px, 100%); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--tile-2); border: 2px solid var(--border); clip-path: var(--notch); padding: 10px 12px; display: grid; grid-template-rows: auto auto 26px; gap: 6px; min-width: 0; }
.kpi-h { display: flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--font); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); min-width: 0; }
.kpi-h > .ic { width: 14px; height: 14px; flex: none; }
.kpi-h > span:not(.qi):not(.kpi-st) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-st { margin-left: auto; font: 600 11px/1 var(--font); text-transform: none; letter-spacing: 0; color: var(--ink-3); white-space: nowrap; }
.kpi-st.good { color: var(--good); } .kpi-st.warn { color: var(--warn); } .kpi-st.bad { color: var(--bad); }
.kpi-b { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.kpi-g { width: 48px; height: 48px; flex: none; display: grid; place-items: center; }
.kpi-pic { display: grid; place-items: center; width: 40px; height: 40px; }
.kpi-pic .itm { width: 36px; height: 36px; }
.kpi-v { font: 500 30px/1 var(--display); color: var(--head); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kpi-v small { font-size: 15px; color: var(--ink-3); margin-left: 1px; }
.kpi-f { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; min-width: 0; }
.sp-tip { position: absolute; top: -6px; bottom: 0; width: 0; border-left: 1px solid var(--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(--ink); color: var(--on-ink); font: 600 11.5px/1.5 var(--font); }
.sp-tip small { bottom: -1px; left: 4px; font-size: 10.5px; color: var(--ink-3); }
.sp-tip[data-side='l'] b, .sp-tip[data-side='l'] small { left: auto; right: 4px; }
.kpi-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub b { color: var(--ink-2); font-weight: 600; }
.gauge { width: 48px; height: 48px; display: block; }
.gauge path { fill: var(--track); }
.gauge path.on { fill: var(--good); }
.gauge.warn path.on { fill: var(--warn); }
.gauge.bad path.on { fill: var(--bad); }
.spark { width: 100%; height: 26px; display: block; overflow: visible; }
.spark polyline { fill: none; stroke: var(--good); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark .area { fill: color-mix(in srgb, var(--good) 10%, transparent); stroke: none; }
.spark.warn polyline { stroke: var(--warn); } .spark.warn .area { fill: color-mix(in srgb, var(--warn) 16%, transparent); }
.spark.bad polyline { stroke: var(--bad); } .spark.bad .area { fill: color-mix(in srgb, var(--bad) 16%, transparent); }
.spark .base { stroke: var(--border-2); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; }
.spark.bars rect { fill: color-mix(in srgb, var(--good) 70%, transparent); }

/* 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: 2px solid var(--border); clip-path: var(--notch); }
.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(--brand); box-shadow: inset 0 0 0 2px var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--tile)); }
.bigpick input:checked + .in .bp-ic { background: var(--brand); color: #fff; }
.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: 2px solid var(--border-2); clip-path: var(--notch); 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: 500 16px var(--display); color: var(--ink); margin-left: 8px; }
.savebar { position: sticky; bottom: 14px; z-index: 20; margin-top: 18px; background: var(--panel); clip-path: var(--notch); border: 2px 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: 500 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: 12px; min-height: 50px; padding: 6px 0; border-top: 1px solid var(--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 > svg.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 --- */
.pl { display: grid; gap: 22px; }
.whojoin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.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(190px, 1fr)); gap: 12px; }
.pcard3 { position: relative; display: grid; justify-items: center; gap: 6px; width: 100%; height: 100%; padding: 18px 12px 14px; background: var(--tile); border: 2px solid var(--border); clip-path: var(--notch); color: var(--ink); cursor: pointer; text-align: center; transition: transform 0.12s, border-color 0.12s; }
.pcard3:hover { border-color: var(--border-2); transform: translateY(-2px); }
.pcard3:focus-visible { outline: none; border-color: var(--focus); }
.pcard3.is-on { box-shadow: inset 0 -4px 0 var(--good); }
.pcard3.is-banned { opacity: 0.65; }
.pcard3.is-banned .pface { filter: grayscale(1); }
.pc-n { font: 600 17px/1.1 var(--display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.pc-s { display: inline-flex; align-items: center; font-size: 13px; color: var(--ink-3); }
.pcard3.is-on .pc-s { color: var(--good); font-weight: 600; }
.pc-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; min-height: 22px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; font: 600 11.5px/1.6 var(--font); border: 1px solid var(--border-2); color: var(--ink-2); }
.tag .ic { width: 12px; height: 12px; }
.tag.gold, .tag.owner { color: #b8860b; border-color: color-mix(in srgb, #c7951c 60%, transparent); }
:root:not([data-theme='light']) .tag.gold, :root:not([data-theme='light']) .tag.owner { color: #f0c24a; }
.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: 2px solid var(--btn-edge); clip-path: var(--notch); box-shadow: inset 2px 2px 0 var(--btn-hi), inset -2px -3px 0 var(--btn-lo); 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: #c7951c; }
.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: #c7951c; 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(232px, 1fr)); gap: 14px; }
.gcard { --k: var(--brand); position: relative; display: grid; grid-template-rows: auto auto; background: var(--tile); border: 2px solid var(--border); clip-path: var(--notch); min-width: 0; transition: transform 0.12s, border-color 0.12s; }
.gcard:hover { border-color: color-mix(in srgb, var(--k) 65%, var(--border-2)); transform: translateY(-2px); }
.gcard.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.gc-open { display: grid; grid-template-rows: 128px auto; width: 100%; padding: 0; background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; }
.gc-open:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--focus); }
.gc-pic { position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--k) 55%, transparent), transparent 70%), color-mix(in srgb, var(--k) 16%, var(--tile-2)); }
.gm-item .itm, .gm-item .item { width: 72px; height: 72px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.3)); transition: transform 0.15s; }
.gcard:hover .gm-item .itm { transform: translateY(-3px) rotate(-4deg) scale(1.05); }
.gm-render { max-width: 92%; max-height: 120px; width: auto; height: auto; }
.gc-b { display: grid; gap: 4px; padding: 12px 14px 4px; min-width: 0; }
.gc-b b { font: 600 18px/1.1 var(--display); letter-spacing: 0.01em; }
.gc-b small { color: var(--ink-2); font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.gc-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 12px 14px; min-height: 52px; }
.gc-sw { margin-left: auto; }
.gc-clash { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; 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: 20px; height: 20px; }
.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.7; }
.gcard.clash .gc-b, .gcard.full .gc-b { opacity: 0.75; }
.k-smp-essentials { --k: #2f8fe0; } .k-smp { --k: #3c8527; } .k-challenge { --k: #e07a2d; } .k-minigame { --k: #9b6bff; } .k-building { --k: #b8862e; } .k-other { --k: #6b6b78; }
.gm-request { display: flex; align-items: center; gap: 16px; width: 100%; margin-top: 30px; padding: 18px 20px; background: none; border: 2px dashed var(--border-2); color: var(--ink); cursor: pointer; text-align: left; }
.gm-request .itm { width: 52px; height: 52px; flex: none; }
.gm-request span { display: grid; gap: 3px; flex: 1; }
.gm-request b { font: 600 19px var(--display); }
.gm-request small { color: var(--ink-2); font-size: 14px; }
.gm-request > .ic { width: 20px; height: 20px; color: var(--ink-3); }
.gm-request:hover { border-color: var(--brand); 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: 2px solid var(--border); clip-path: var(--notch-4); }
.wh-pic { position: relative; display: flex; align-items: center; justify-content: center; min-height: 280px; border-right: 2px 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: 2px solid var(--border); clip-path: var(--notch); 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, #3a0d0d, #6b1d12); }
.dc-pic.end { background: linear-gradient(180deg, #0c0a1c, #2b2447); }
.dc-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-top: 2px 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: 2px solid var(--border); clip-path: var(--notch); color: var(--ink); cursor: pointer; text-align: left; transition: transform 0.12s, border-color 0.12s; }
.bigbtn:hover { border-color: var(--border-2); transform: translateY(-2px); }
.bigbtn:focus-visible { outline: none; border-color: var(--focus); }
.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 20px var(--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: 2px solid var(--border); clip-path: var(--notch); }
.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(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.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: 2px solid var(--border); clip-path: var(--notch); }
.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: 2px solid var(--border); clip-path: var(--notch); 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: 18px; align-items: start; }
.sv-col { display: grid; gap: 18px; min-width: 0; }
.sbox { background: var(--tile); border: 2px solid var(--border); clip-path: var(--notch); padding: 18px 20px 16px; min-width: 0; }
.sbox-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font: 600 20px/1.1 var(--display); color: var(--ink); text-transform: none; letter-spacing: 0.01em; }
.sbox-h > svg.item { width: 26px; height: 26px; flex: none; }
.sbox-h small { flex-basis: 100%; font: 400 13px var(--font); color: var(--ink-3); letter-spacing: 0; margin: -4px 0 0 36px; }
.sbox .lbl { font: 600 12px/1.3 var(--font); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin: 16px 0 8px; 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: 10px 4px 8px; background: var(--tile-2); border: 2px solid var(--border); clip-path: var(--notch); }
.pick .in .itm { width: 40px; height: 40px; }
.pick .in .ic { width: 18px; height: 18px; }
.pick .in b { font: 600 13.5px var(--display); 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(--brand); box-shadow: inset 0 0 0 2px var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--tile-2)); }
.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: 2px solid var(--border); clip-path: var(--notch); 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: 2px solid var(--border); }
.mc-t b { font: 600 15px var(--display); }
.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: 16px; flex-wrap: wrap; margin-top: 40px; padding: 18px 20px; border: 2px solid color-mix(in srgb, var(--red) 45%, var(--border)); clip-path: var(--notch); background: color-mix(in srgb, var(--red) 4%, transparent); }
.dzone h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 600 19px var(--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; clip-path: var(--notch); }
.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 3px var(--brand-ink); background: #2f3a2b; }
.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: 2px solid var(--border); clip-path: var(--notch); }
.bk-shelf .tl { flex: 1 1 100%; margin: 4px -8px 0; }
.bk-shelf .inv-row { padding: 4px; background: var(--inv-bg); clip-path: var(--notch); }
.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: 2px 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: 2px solid var(--border); clip-path: var(--notch); }
.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); }

/* --- 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: 2px solid var(--border); clip-path: var(--notch-4); }
.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: 2px solid var(--border); clip-path: var(--notch); text-align: center; }
.plancard.cur { border-color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.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 terminal with coloured levels --- */
.keys { display: inline-flex; gap: 6px; }
.keys > span { cursor: help; }
.keys kbd { font: 500 11px var(--mono); color: var(--ink-2); border: 1px solid var(--border-2); border-bottom-width: 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(100vh - 60px - 116px - 70px); min-height: 440px; background: #0c0c0e; border: 2px solid var(--border); clip-path: var(--notch); color: #e6e6ea; --t-ink-3: #8b8b94; }
.term-top { display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-bottom: 1px solid #26262b; background: #141417; }
.term-dots { display: inline-flex; gap: 5px; }
.term-dots i { width: 9px; height: 9px; background: #3a3a40; }
.term-dots i:nth-child(1) { background: #ff5a5a; } .term-dots i:nth-child(2) { background: #f5a524; } .term-dots i:nth-child(3) { background: #6cc349; }
.term-t { display: inline-flex; align-items: center; gap: 6px; font: 500 14px var(--display); color: #e6e6ea; }
.term-t .ic { width: 15px; height: 15px; color: #6cc349; }
.term-legend { margin-left: auto; display: inline-flex; gap: 4px; }
.term .console-out { height: auto; min-height: 0; overflow: auto; margin: 0; padding: 8px 0; background: transparent; border: 0; font: 400 13.5px/1.6 var(--mono); color: #e6e6ea; white-space: normal; }
.cl { display: grid; grid-template-columns: 62px 38px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 1px 12px; }
.cl:hover { background: #17171b; }
.cl time { color: var(--t-ink-3); 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: 1px solid currentColor; }
.lv-cmd { color: #5ab0ff; } .lv-ok { color: #6cc349; } .lv-info { color: #a9a9b3; } .lv-error { color: #ff6b6b; }
.cl-cmd .tx { color: #9fd0ff; font-weight: 500; }
.cl-ok .tx { color: #b8f0a0; }
.cl-error { background: rgba(255, 90, 90, 0.07); }
.cl-error .tx { color: #ff9b9b; }
.term .cmd { padding: 10px 12px 8px; border-top: 1px solid #26262b; background: #111114; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.term .quick .chip { background: #18181c; border-color: #34343b; color: #c9c9d1; min-height: 30px; }
.term .quick .chip:hover { color: #fff; border-color: #6cc349; }
.term .quick .chip .ic { width: 13px; height: 13px; color: #6cc349; }
.term .quick .chip .mono { font-size: 12px; }
.term .cmd-wrap { background: #000; border: 2px solid #3a3a40; }
.term .cmd-wrap .cmd-input { background: #000 !important; }
.term .cmd-wrap:focus-within { border-color: #6cc349; }
.cmd-prompt { display: grid; place-items: center; width: 26px; flex: none; color: #6cc349; font: 600 16px var(--mono); }
.term .cmd-input { border: 0; background: transparent; color: #fff; box-shadow: none; clip-path: none; min-height: 44px; padding: 8px 10px 8px 0; font: 400 15px/1.4 var(--mono) !important; caret-color: #6cc349; }
.term .cmd-input::placeholder { color: #6a6a73; }
.term .cmd-input:focus { box-shadow: none; }
.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: #6a6a73; }
.term .cmd-run { min-height: 44px; min-width: 86px; clip-path: none; }
.term .cmd-list { background: #17171b; border-color: #3a3a40; color: #e6e6ea; bottom: 100%; top: auto; border-top: 1px solid #3a3a40; border-bottom: 0; }
.term .cmd-opt { min-height: 34px; font-size: 13.5px; border-color: #26262b; }
.term .cmd-opt:hover, .term .cmd-opt[aria-selected='true'] { background: #24242a; color: #fff; }
.term .cmd-tip, .term .cmd-more { color: #8b8b94; }
.term .cmd-usage { min-height: 18px; margin-top: 5px; font-size: 12.5px; color: #a9a9b3; }
.term .cmd-usage .cmd-cur { color: #fff; }
.term .cmd-error { min-height: 0; font-size: 12.5px; color: #ff8a8a; }

/* --- the manager on smaller screens --- */
@media (max-width: 1180px) {
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .mb-bug span { display: none; }
  .whero { grid-template-columns: minmax(0, 1fr); }
  .wh-pic { border-right: 0; border-bottom: 2px solid var(--border); min-height: 220px; }
  .sv { grid-template-columns: minmax(0, 1fr); }
  .pl-cur { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
}
@media (max-width: 600px) {
  .mb-icon { width: 30px; height: 30px; }
  .vh-act { width: 100%; }
  .vh-act > .btn, .vh-act > .tsw { flex: 1 1 auto; justify-content: center; }
  .home { gap: 14px; }
  .wc-type { left: 10px; bottom: 10px; font-size: 14px; }
  .wc-addr { padding: 12px 10px 12px 14px; gap: 10px; }
  .wc-addr .a { font-size: 18px; }
  .whojoin { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .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; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pcard3 { padding: 14px 8px 10px; }
  .gm-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
  .gc-open { grid-template-rows: 100px auto; }
  .gm-item .itm, .gm-item .item { width: 56px; height: 56px; }
  .gm-render { max-height: 94px; }
  .gc-b { padding: 10px 10px 2px; }
  .gc-b b { font-size: 16px; }
  .gc-b small { font-size: 12.5px; }
  .gc-f { padding: 6px 8px 10px 10px; }
  .gc-opts { padding: 4px 8px 6px; }
  .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; }
  .vis2 { grid-template-columns: minmax(0, 1fr); }
  .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(100vh - 56px - 100px - 60px); 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 .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; }
}
@media (max-width: 380px) { .mb-theme { display: none; } }

/* the manager's own layout on narrower screens */
@media (max-width: 1100px) {
  .ov-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ov-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ov-hero { grid-template-columns: minmax(0, 1fr); }
  .ov-pic { min-height: 230px; }
  .ov-pic img.render, .ov-pic .fan-build { max-height: 190px; }
}
@media (max-width: 600px) {
  .mbar-in { height: 54px; padding: 0 8px 0 4px; gap: 4px; }
  .mtabs { top: 54px; }
  .mt-in { padding: 0 4px; }
  .mtabs a { padding: 11px 12px 13px; font-size: 14.5px; }
  .mview { padding: 20px 16px 48px; }
  .vhead { margin-bottom: 18px; }
  .vh-t h1 { font-size: 26px; }
  .vh-t p { font-size: 14px; margin-top: 6px; }
  .ov { gap: 14px; }
  .ov-pic { min-height: 180px; }
  .ov-pic img.render, .ov-pic .fan-build { max-height: 150px; margin-top: 16px; }
  .ov-pic .sky-orb { width: 34px; height: 34px; top: 12px; }
  .ov-info { padding: 18px 16px; gap: 12px; }
  .ov-info h1 { font-size: 34px; }
  .ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-stats .st:last-child { grid-column: 1 / -1; }
  .st { padding: 12px 14px; }
  .st-v b { font-size: 22px; }
  .ov-acts { gap: 8px; }
  .ov-acts .btn { font-size: 13.5px; padding-left: 8px; padding-right: 8px; }
  .mb-name { font-size: 18px; }
  .mbar .spill span { display: none; }
  .mbar .spill { padding: 6px; }
}

/* the join pictures on My servers */
.join-pics { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; counter-reset: none; }
.join-pics li { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px 6px; background: var(--tile-2); border: 1px solid var(--border); cursor: help; }
.join-pics li:not(:last-child)::after { content: ''; position: absolute; right: -6px; top: 50%; width: 6px; height: 2px; background: var(--border-2); }
.join-pics .itm { width: 34px; height: 34px; }
.join-pics .jp-n { position: absolute; left: 4px; top: 3px; font: 600 12px/1 var(--display); color: var(--brand-ink); }
.join-pics .jp-l { font: 600 12px/1.2 var(--font); color: var(--ink-2); text-align: center; }
.join-pics li:focus-visible { outline: 2px solid var(--focus); }
.join-pics.small { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }

/* --- My servers --- */
.dash.page { padding-top: 20px; padding-bottom: 110px; }
.dhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 84px; padding: 12px 136px 12px 18px; margin: 0 0 14px; border: 2px solid var(--border); clip-path: var(--notch); color: var(--sky-ink); }
.dh-t { position: relative; z-index: 1; margin-right: auto; }
.dhead h1 { margin: 0; font: 600 32px/1 var(--display); color: var(--sky-ink); text-transform: none; letter-spacing: 0.01em; }
.dhead p { margin: 4px 0 0; color: var(--sky-ink-2); font-size: 14px; }
.dh-stats { display: flex; gap: 8px; position: relative; z-index: 1; }
.dstat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: rgba(0, 0, 0, 0.28); color: #fff; cursor: help; }
:root[data-theme='light'] .dstat { background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.dstat .ic { width: 15px; height: 15px; }
.dstat b { font: 500 18px/1 var(--display); }
.dstat.live .ic { color: #7fd15a; }
.dhead .btn { position: relative; z-index: 1; }
.dhead .dh-art { position: absolute; right: 16px; bottom: -3px; width: 100px; }
.dhead .sky-orb { right: 136px; top: 10px; width: 26px; height: 26px; }
.sgrid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 390px), 1fr)); gap: 12px; }
.sgrid2 > .skel.card { min-height: 150px; }
.sc2 { display: grid; grid-template-columns: 132px minmax(0, 1fr); background: var(--tile); border: 2px solid var(--border); clip-path: var(--notch); box-shadow: inset 0 2px 0 var(--card-hi); min-width: 0; }
.sc2:hover { border-color: var(--border-2); }
.sc2-pic { position: relative; display: grid; place-items: center; border-right: 2px solid var(--border); overflow: hidden; min-height: 140px; }
.sc2-pic img.render, .sc2-pic .fan-build { max-width: 112px; max-height: 110px; position: relative; filter: none !important; }
.sc2-pic .sky-orb { width: 18px; height: 18px; top: 8px; right: 10px; }
.sc2-mob { position: absolute; left: 6px; bottom: 6px; }
.sc2-b { padding: 10px 12px; display: grid; gap: 7px; align-content: start; min-width: 0; }
.sc2-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sc2-ic { width: 28px; height: 28px; flex: none; }
.sc2-ic img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.sc2-top h2 { margin: 0 auto 0 0; font: 600 22px/1.05 var(--display); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0.01em; }
.sc2-top h2 a { color: var(--ink); text-decoration: none; }
.sc2-top h2 a:hover { color: var(--brand-ink); }
.sc2-addr { justify-self: start; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 0; background: none; border: 0; color: var(--ink-2); font: 400 12.5px var(--mono); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc2-addr .ic { width: 13px; height: 13px; color: var(--brand-ink); flex: none; }
.sc2-addr:hover { color: var(--ink); }
.sc2-addr:focus-visible { outline: 2px solid var(--focus); }
.sc2-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sc2-players { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; cursor: help; color: var(--ink-2); }
.sc2-players > .ic { width: 15px; height: 15px; flex: none; }
.sc2-players b { font: 500 17px/1 var(--display); color: var(--ink); }
.sc2-players small { color: var(--ink-3); }
.sc2-players .ub-t { flex: 1; min-width: 40px; margin-left: 4px; }
.sc2-players .ub-t:not(.good) i { background-color: var(--ink-3); }
.sc2-plan { display: inline-flex; align-items: center; gap: 5px; font: 600 12px var(--font); color: var(--ink-2); padding: 2px 7px 2px 4px; border: 1px solid var(--border-2); cursor: help; white-space: nowrap; }
.sc2-flag { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border-2); color: var(--ink-2); cursor: help; }
.sc2-flag .ic { width: 13px; height: 13px; }
.sc2-mods { display: inline-flex; gap: 2px; min-width: 0; }
.sc2-mods > span { display: inline-grid; place-items: center; width: 24px; height: 24px; background: var(--inv-bg); border: 1px solid var(--border-2); cursor: help; }
.sc2-mods .item { width: 18px; height: 18px; }
.sc2-mods .more { width: auto; padding: 0 4px; font: 500 13px var(--display); color: var(--ink-2); background: none; }
.sc2-go { margin-left: auto; }
.dfoot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.dfoot .pcard-h h3 > svg.item { width: 22px; height: 22px; }
.d-link .addrow { margin-top: 10px; }
.d-link .addrow .input { max-width: 200px; }
.linked { display: flex; align-items: center; gap: 10px; }
.linked b { display: block; font: 500 18px var(--display); }
.linked small { color: var(--ink-3); font-size: 12.5px; }
.d-join .hint { margin: 8px 0 0; }
.teach0 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px 24px; }
.teach0 h2 { font: 600 30px/1.1 var(--display); margin: 0 0 14px; }
.steps0 { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.steps0 li { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; background: var(--tile-2); border: 1px solid var(--border); font: 600 13px var(--font); text-align: center; }
.steps0 .itm { width: 40px; height: 40px; }
@media (max-width: 900px) {
  .dfoot, .teach0 { grid-template-columns: minmax(0, 1fr); }
  .dhead { padding-right: 18px; }
  .dhead .dh-art { display: none; }
  .dhead .sky-orb { right: 16px; }
}
@media (max-width: 480px) {
  .sc2 { grid-template-columns: 96px minmax(0, 1fr); }
  .sc2-pic img.render, .sc2-pic .fan-build { max-width: 86px; }
  .sc2-top h2 { font-size: 19px; }
  .dhead h1 { font-size: 26px; }
  .dhead .btn { width: 100%; }
}
