/* ==========================================================================
   Elevate All Stars. Loaded after eas.css (the older component styles).
   A console, not a brochure: a text sidebar, a page bar, and panes that share one hairline.
   Square corners. Small type. Four related fonts: Chakra Petch for titles, Rajdhani for labels and buttons,
   Manrope for reading, JetBrains Mono for numbers.
   One main action per page, in solid white. Motion only ever uses transform and opacity.
   Earned cosmetics (frames, banners, name effects) keep their colours: they belong to the player.
   ========================================================================== */
@font-face { font-family: "Manrope"; src: url("../fonts/web/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/web/chakra-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/web/chakra-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/web/rajdhani-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/web/rajdhani-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/web/mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #060607; --bg-elev: #0c0c0e; --surface: #0c0c0e; --surface-2: #131316; --surface-3: #1b1b1f;
  --surface-soft: rgba(255, 255, 255, 0.03); --surface-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.11); --line-soft: rgba(255, 255, 255, 0.065); --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f0f0f1; --text-muted: #a2a3a7; --text-faint: #808185; --nav: #a2a3a7;
  --pill: #f4f4f5; --pill-ink: #060607; --on-accent: #060607;
  --accent: #f0f0f1; --accent-2: #a2a3a7; --accent-soft: rgba(255, 255, 255, 0.09); --accent-ring: rgba(255, 255, 255, 0.35);
  --shadow-sm: none; --shadow: 0 12px 32px rgba(0, 0, 0, 0.6); --shadow-glow: none;
  --font-main: "Chakra Petch", system-ui, sans-serif; --font-title: "Chakra Petch", system-ui, sans-serif;
  --font-label: "Rajdhani", "Chakra Petch", system-ui, sans-serif; --font-num: "JetBrains Mono", ui-monospace, monospace;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; --font-heading: var(--font-title); --font-display: var(--font-title);
  --radius-sm: 0px; --radius: 0px; --radius-lg: 0px; --radius-xl: 0px;
  --side-w: 176px; --list-w: 188px; --gutter: 20px; --header-h: 0px; --page-w: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="light"] {
  --bg: #f4f4f2; --bg-elev: #ffffff; --surface: #ffffff; --surface-2: #f0f0ee; --surface-3: #e7e7e4;
  --surface-soft: rgba(6, 6, 7, 0.03); --surface-hover: rgba(6, 6, 7, 0.05);
  --border: rgba(6, 6, 7, 0.14); --line-soft: rgba(6, 6, 7, 0.08); --line-strong: rgba(6, 6, 7, 0.3);
  --text: #0c0c0e; --text-muted: #55565a; --text-faint: #6c6d71; --nav: #55565a;
  --pill: #0c0c0e; --pill-ink: #ffffff; --on-accent: #ffffff;
  --accent: #0c0c0e; --accent-2: #55565a; --accent-soft: rgba(6, 6, 7, 0.07); --accent-ring: rgba(6, 6, 7, 0.32);
  --shadow: 0 12px 28px rgba(6, 6, 7, 0.14);
}
html[data-accent="ember"] { --accent: #ff6a3d; --accent-2: #ffb547; --accent-soft: rgba(255, 106, 61, 0.14); --accent-ring: rgba(255, 106, 61, 0.45); }
html[data-accent]:not([data-accent="mono"]) { --pill: var(--accent); --pill-ink: #060607; --on-accent: #ffffff; }

/* ---------------------------------------------------------------- base */
html, body { background: var(--bg); }
body { font-size: 14px; line-height: 1.45; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body::before { display: none; }
a { color: inherit; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }
img, video, svg { max-width: 100%; }
pre, code { overflow-wrap: anywhere; }
td, th { overflow-wrap: anywhere; }
h1, h2, .main-type { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; }
main h1 { margin: 0; font-size: 1.3rem; }
main h2 { margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.09em; color: var(--text-muted); }
main h3, main h4 { margin: 0; font-family: var(--font-body); font-size: 0.92rem; font-weight: 700; letter-spacing: 0; }
.gradient-text { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
main .eyebrow { display: none; }
main .profile-identity .eyebrow { display: block; color: var(--text-muted); font-size: 0.82rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.eyebrow::before { display: none; }
.pname, h1 .pname, h2 .pname, h3 .pname { font-family: var(--font-body); font-weight: 700; text-transform: none; letter-spacing: -0.005em; }
.card-link { color: var(--text-muted); font-size: 0.8rem; white-space: nowrap; }
.card-link:hover { color: var(--text); text-decoration: none; }
.faint { color: var(--text-faint); }
:where(main h2, main h3, main h4, main span, main a, main p, main small, main strong, main b, main button, main label, main li, main td, main th, main summary) > svg { width: 1em; height: 1em; vertical-align: -0.12em; flex: none; }

/* ---------------------------------------------------------------- shell */
.site-shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin-left: var(--side-w); padding: 0; }
.page-content { flex: 1; display: flex; flex-direction: column; gap: 0; width: 100%; max-width: var(--page-w); min-width: 0; margin: 0; padding: 0 var(--gutter); animation: none; }
.page-content > * + * { margin-top: 12px; }
.page-content > .page-header + *, .page-content > .panel-hero + *, .page-content > .rules-hero + *, .page-content > .split, .page-content > .panes, .page-content > .home-banner, .page-content > .home-stage { margin-top: 0; }
.page-content > .page-header:first-child + .alert, .page-content > .panel-hero + .alert { margin-top: 12px; }
.page-content > :not(.split, .panes, .home-stage, .home-banner, .page-header, .panel-hero, .rules-hero, .site-footer):first-child { margin-top: 12px; }
.ad-slot { margin: 12px 0; }
.ad-slot:empty { display: none; }
.dev-banner { position: relative; z-index: 70; margin-left: var(--side-w); padding: 3px 12px; background: var(--surface-2); color: var(--text-muted); border-bottom: 1px solid var(--border); font-size: 0.72rem; }
.dev-banner a { color: var(--text); }

.page-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 2px; background: var(--text); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.page-bar.is-going { transform: scaleX(0.82); transition: transform 1.6s cubic-bezier(0.1, 0.7, 0.2, 1); }

/* Sidebar */
.side { position: fixed; inset: 0 auto 0 0; z-index: 60; display: flex; flex-direction: column; width: var(--side-w); padding: 14px 0 0; background: var(--bg); border-right: 1px solid var(--border); }
.brand, .brand:hover { display: block; padding: 0 16px; color: var(--text); font-family: var(--font-title); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.4; text-decoration: none; }
.side-search { display: flex; align-items: center; gap: 8px; margin: 12px 12px 6px; padding: 0 8px; height: 30px; color: var(--text-faint); background: none; border: 1px solid var(--border); font: inherit; font-size: 0.8rem; cursor: pointer; transition: border-color 0.16s ease, color 0.16s ease; }
.side-search:hover { color: var(--text); border-color: var(--line-strong); }
.side-search svg { flex: none; width: 13px; height: 13px; }
.side-search span { flex: 1; text-align: left; }
.side-search kbd { padding: 0 4px; background: none; border: 1px solid var(--border); color: var(--text-faint); font-size: 0.68rem; font-family: inherit; box-shadow: none; }
.side-groups { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 0 12px; scrollbar-width: none; }
.side-groups::-webkit-scrollbar { display: none; }
.side-heading { display: block; padding: 12px 16px 4px; color: var(--text-faint); font-family: var(--font-title); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.side-link { position: relative; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 16px; color: var(--nav); font-size: 0.86rem; font-weight: 500; text-decoration: none; transition: color 0.14s ease; }
.side-link::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--text); transform: scaleY(0); transition: transform 0.22s var(--ease); }
.side-link:hover { color: var(--text); }
.side-link.active { color: var(--text); font-weight: 700; background: var(--surface-soft); }
.side-link.active::before { transform: scaleY(1); }
.side-live { flex: none; width: 5px; height: 5px; margin-left: auto; background: var(--success, #30a46c); }
.side-foot { display: grid; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.side-login { width: 100%; }
.side-tools { display: flex; gap: 2px; margin-left: -4px; }
.side-tool { position: relative; display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; color: var(--text-faint); background: none; border: 0; cursor: pointer; transition: color 0.14s ease; }
.side-tool:hover { color: var(--text); }
.side-tool svg { width: 15px; height: 15px; }
.news-dot { position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; background: var(--text); }
[data-theme="dark"] .theme-icon-light, [data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-dark, [data-theme="light"] .theme-icon-light { display: grid; }
.account-menu { position: relative; }
.account-avatar { display: flex; align-items: center; gap: 8px; width: 100%; height: auto; padding: 0; background: none; border: 0; box-shadow: none; color: var(--text); cursor: pointer; list-style: none; }
.account-avatar::-webkit-details-marker { display: none; }
.account-face { flex: none; display: grid; place-items: center; width: 24px; height: 24px; overflow: hidden; background: var(--surface-3); font-size: 0.72rem; font-weight: 700; }
.account-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.account-who { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; font-size: 0.82rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.account-menu-panel { position: absolute; left: 0; right: auto; top: auto; bottom: calc(100% + 8px); z-index: 80; display: grid; width: 190px; padding: 4px; background: var(--bg-elev); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: pop-in 0.16s var(--ease) both; }
.account-menu-link { display: block; width: 100%; padding: 7px 8px; color: var(--text-muted); background: none; border: 0; font: inherit; font-size: 0.84rem; text-align: left; text-decoration: none; cursor: pointer; }
.account-menu-link:hover { background: var(--surface-hover); color: var(--text); }
.account-menu-link-alert { color: var(--text); font-weight: 700; }
.account-menu-link svg { display: none; }

.site-header { display: none; }
.rail-scrim { display: none; }
.bottom-bar { display: none; }

.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; width: 100%; max-width: var(--page-w); padding: 10px var(--gutter); margin: 0; background: none; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 0.74rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.footer-links a, .footer-links button { padding: 0; color: var(--text-faint); background: none; border: 0; font: inherit; text-decoration: none; cursor: pointer; transition: color 0.14s ease; }
.footer-links a:hover, .footer-links button:hover { color: var(--text); }
.breadcrumbs { margin: 10px 0 -8px; font-size: 0.76rem; color: var(--text-faint); }
.breadcrumbs svg { width: 11px; height: 11px; }
body:has(.split) .breadcrumbs { display: none; }  /* the list beside the page already says where you are */

/* The page bar: one line, title left, actions right. Sticks while you scroll. */
.page-header, .panel-hero, .bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  min-height: 46px; margin: 0 calc(var(--gutter) * -1); padding: 7px var(--gutter); background: var(--bg); border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none;
}
.page-header > div:first-child, .panel-hero > div:first-child { min-width: 0; }
.page-header p, .panel-hero > div:first-child > p { display: none; }
.bar-end, .panel-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; text-align: left; }
.panel-meta > span { color: var(--text-faint); font-size: 0.74rem; }
.panel-meta svg, .page-header .button svg, .page-header .button-secondary svg, .page-header .button-ghost svg { display: none; }

/* ---------------------------------------------------------------- buttons: square. One solid white, the rest a line that fills on hover. */
.button, .button-primary, .button-secondary, .button-ghost, .button-danger, .button-warning, .button-success, .button-info {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; min-height: 30px; max-width: 100%; padding: 0 12px;
  font-family: var(--font-title); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1; text-decoration: none;
  border: 1px solid transparent; border-radius: 0; box-shadow: none; cursor: pointer; transform: none;
  transition: color 0.16s ease, background-size 0.26s var(--ease), background-color 0.16s ease, border-color 0.16s ease;
}
.button-lg { min-height: 38px; padding: 0 20px; font-size: 0.8rem; }
.button-sm { min-height: 26px; padding: 0 9px; font-size: 0.7rem; }
.button::before, .button::after, .button-primary::before, .button-primary::after { display: none; }
.button, .button-primary { color: var(--pill-ink); background: var(--pill); }
.button-secondary, .button-ghost {
  color: var(--text); border-color: var(--line-strong);
}
.button-ghost { border-color: transparent; }
.button-secondary:hover { border-color: var(--text); }
.button-danger, .button-warning, .button-success, .button-info { background-color: transparent; background-image: none; color: var(--text); border-color: var(--line-strong); }
.button-danger { color: var(--danger, #e5484d); border-color: currentColor; }
.button-danger:hover { color: #fff; background-color: var(--danger, #e5484d); border-color: var(--danger, #e5484d); transform: none; box-shadow: none; }
.button-warning:hover, .button-success:hover, .button-info:hover { background-color: var(--surface-hover); transform: none; box-shadow: none; }
.button:active, .button-secondary:active, .button-ghost:active, .button-primary:active, .button-danger:active { transform: translateY(1px); }
.button svg, .button-secondary svg, .button-ghost svg, .button-danger svg { width: 13px; height: 13px; }
.donate-button { color: var(--text); }
button[disabled], .button[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Forms */
input[type="text"], input[type="search"], input[type="url"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="password"], input[type="email"], input:not([type]), textarea, select {
  min-height: 30px; padding: 4px 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 0; color: var(--text); font: inherit; font-size: 0.84rem; box-shadow: none;
  transition: border-color 0.14s ease;
}
select { padding-right: 24px; }
input:hover, textarea:hover, select:hover { border-color: var(--line-strong); }
input:focus, textarea:focus, select:focus { border-color: var(--text); background: var(--bg); box-shadow: none; outline: 0; }
.custom-select { border-radius: 0; }
label > span, .settings-field > span { font-size: 0.8rem; }
.switch, .switch-row > input.switch { width: 30px; height: 16px; background: var(--surface-3); border: 1px solid var(--line-strong); }
.switch::before, .switch::after, .switch-row > input.switch::before, .switch-row > input.switch::after { border-radius: 0; }
.switch-row > input.switch:checked { background: var(--text); }
.palette-input-row input, .trade-search-wrap input, .trade-coins input, .pre-accolades input, .terminal-input input, .mac-search input,
.palette-input-row input:focus, .trade-search-wrap input:focus, .trade-coins input:focus, .pre-accolades input:focus, .terminal-input input:focus, .mac-search input:focus { border: 0; background: transparent; box-shadow: none; }

/* ---------------------------------------------------------------- tabs: words; the current one has a line that slides in */
.tabs, .panel-tabs-bar { display: flex; flex-wrap: nowrap; gap: 18px; padding: 0; overflow-x: auto; scrollbar-width: none; background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.tabs::-webkit-scrollbar, .panel-tabs-bar::-webkit-scrollbar { display: none; }
.tabs-glider { display: none; }
.tab, .tabs .tab, .panel-tabs-bar .tab, .developer-tab {
  position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 0; padding: 8px 0; color: var(--text-muted); background: none; border: 0; border-radius: 0; box-shadow: none;
  font-family: var(--font-title); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: color 0.14s ease;
}
.tab::after, .developer-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.26s var(--ease); }
.tab:hover, .developer-tab:hover { color: var(--text); background: none; }
.tab.active, .tab[aria-selected="true"], .developer-tab.active, .developer-tab[aria-selected="true"] { color: var(--text); background: none; box-shadow: none; }
.tab.active::after, .tab[aria-selected="true"]::after, .developer-tab.active::after, .developer-tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab svg, .developer-tab svg { display: none; }
.tab .pill { min-height: 0; padding: 0 4px; font-size: 0.64rem; }

/* Two or three choices: joined squares, the chosen one solid. */
.segmented-control, .board-switch, .rules-tabs { display: inline-flex; gap: 0; padding: 0; background: none; border: 1px solid var(--line-strong); border-radius: 0; box-shadow: none; }
.segmented-control a, .segmented-control button, .board-switch a, .rules-tabs a { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; color: var(--text-muted); background: none; border: 0; border-radius: 0; box-shadow: none; font-family: var(--font-title); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: color 0.14s ease, background-color 0.14s ease; }
.segmented-control a:hover, .segmented-control button:hover, .board-switch a:hover, .rules-tabs a:hover { color: var(--text); background: var(--surface-hover); }
.segmented-control a.active, .segmented-control button.active, .board-switch a.active, .rules-tabs a.active { color: var(--pill-ink); background: var(--pill); box-shadow: none; }
.board-switch a svg { display: none; }

/* ---------------------------------------------------------------- split: a section list on the left, the section on the right */
.split { display: grid; grid-template-columns: var(--list-w) minmax(0, 1fr); margin: 0 calc(var(--gutter) * -1); flex: 1; }
.split[hidden] { display: none; }
.split-list { position: sticky; top: 46px; align-self: start; display: flex; flex-direction: column; gap: 0; max-height: calc(100vh - 46px); overflow-y: auto; padding: 10px 0; scrollbar-width: none; }
.split-list::-webkit-scrollbar { display: none; }
.split-main { min-width: 0; min-height: calc(100vh - 110px); padding: 12px var(--gutter) 8px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.split-label { padding: 12px var(--gutter) 3px; color: var(--text-faint); font-family: var(--font-title); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.split-label:first-child { padding-top: 2px; }
.split-link, .split-list .tab, .split-list .tabs .tab { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 28px; padding: 0 var(--gutter); color: var(--text-muted); background: none; border: 0; font: inherit; font-size: 0.84rem; font-weight: 500; letter-spacing: 0; text-transform: none; text-align: left; text-decoration: none; cursor: pointer; transition: color 0.14s ease; }
.split-link:hover, .split-list .tab:hover { color: var(--text); background: var(--surface-soft); }
.split-link.active, .split-list .tab.active, .split-list .tab[aria-selected="true"] { color: var(--text); font-weight: 700; background: var(--surface-soft); }
.split-link::after, .split-list .tab::after { left: auto; right: -1px; top: 0; bottom: 0; width: 2px; height: auto; transform: scaleY(0); transform-origin: 50% 0; content: ""; position: absolute; background: var(--text); transition: transform 0.26s var(--ease); }
.split-link.active::after, .split-list .tab.active::after, .split-list .tab[aria-selected="true"]::after { transform: scaleY(1); }
.split-list .tabs { display: flex; flex-direction: column; gap: 0; overflow: visible; border: 0; }
/* A long list scrolls as one: nothing in it may be squeezed, or its contents spill over what's below. */
.split-list > * { flex-shrink: 0; }
.split-list .panel-tabs-bar { position: static; flex-wrap: nowrap; background: none; box-shadow: none; z-index: auto; }
.split-group-head { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; transition: color 0.16s ease; }
.split-group-head:hover { color: var(--text); }
.split-group-head::after { content: ""; flex: none; width: 6px; height: 6px; margin-right: 2px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform 0.2s var(--ease); }
.split-group.is-closed .split-group-head::after { transform: rotate(-45deg); }
.split-group.is-closed .split-group-body { display: none; }
.control .split-group-head.split-label:first-child { padding: 9px var(--gutter) 7px; }
.split-group + .split-group { border-top: 1px solid var(--line-soft, var(--border)); }
/* the staff desk */
.staff-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.staff-head h1 { margin: 0; }
.staff-search { display: flex; gap: 6px; flex: 0 1 340px; min-width: 200px; }
.staff-search input { flex: 1; min-width: 0; }
.staff-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); margin: 0; border: 1px solid var(--border); }
.staff-numbers > div { padding: 8px 12px; border-right: 1px solid var(--border); }
.staff-numbers > div:last-child { border-right: 0; }
.staff-numbers dt { color: var(--text-faint); font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.staff-numbers dd { margin: 0; font-family: var(--font-num, inherit); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.split-count { color: var(--text-faint); font-size: 0.74rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.split-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px var(--gutter) 4px; }
.split-tools > *, .split-tools select, .split-tools input, .split-tools .custom-select, .split-tools .tier-select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }

/* ---------------------------------------------------------------- panes: seamless cells that share one hairline */
.panes { display: grid; gap: 1px; margin: 0 calc(var(--gutter) * -1); background: var(--border); border-bottom: 1px solid var(--border); }
.panes > * { min-width: 0; padding: 12px var(--gutter); background: var(--bg); }
.pane-head, .section-head { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; min-height: 22px; }
.pane-head h2, .section-head h2 { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.pane-head h2::after, .section-head h2::after { content: ""; flex: 1; height: 1px; background: var(--border); transform-origin: 0 50%; }
.pane-head a, .section-head a { color: var(--text-faint); font-size: 0.74rem; text-decoration: none; white-space: nowrap; transition: color 0.14s ease; }
.pane-head a:hover, .section-head a:hover { color: var(--text); }
.section { min-width: 0; }

/* Older pages' cards become plain panes with the same head. */
.card, .content-card, .panel-card, .tool-card, .settings-section { padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.card-flush { padding: 0; }
.card:hover, .content-card:hover, .panel-card:hover, a.card:hover, .tool-card:hover { background: var(--surface); border-color: var(--border); box-shadow: none; transform: none; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; }
.card-header > div:first-child { flex: 1; min-width: 180px; }
.card-header h2, .card-header h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-title); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.09em; color: var(--text-muted); text-transform: uppercase; }
.card-header h2::after, .card-header h3::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.card-header h2 svg, .card-header h3 svg, .tool-card h2 svg, .tool-card h3 svg { display: none; }
.card-header p { margin: 3px 0 0; color: var(--text-faint); font-size: 0.8rem; }

/* Numbers in joined cells */
.figures, .stat-strip, .stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 1px; margin: 0; overflow: visible; background: var(--border); border: 1px solid var(--border); border-radius: 0; }
.figures > div, .stat-tile, .stat-card, .stat-card.highlight { min-width: 0; padding: 8px 10px; background: var(--bg); border: 0; border-radius: 0; box-shadow: none; transform: none; }
.stat-tile::before, .stat-tile::after { display: none; }
.figures dt, .stat-label, .stat-card .label { display: block; color: var(--text-faint); font-family: var(--font-title); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.figures dd, .stat-value, .stat-card .value { margin: 1px 0 0; font-family: var(--font-title); font-size: 1.15rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-label svg, .stat-card .label svg { display: none; }
.stat-sub, .stat-card .sub { color: var(--text-faint); font-size: 0.72rem; }

/* Rows */
.rows { margin: 0; padding: 0; list-style: none; }
.row { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 4px 0; border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; transition: background-color 0.14s ease; }
.rows > li:last-child > .row, .rows > .row:last-child { border-bottom: 0; }
a.row:hover, summary.row:hover { background: var(--surface-soft); }
.row-pos { flex: none; width: 1.4em; color: var(--text-faint); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.row-tag { flex: none; min-width: 3em; color: var(--text-faint); font-family: var(--font-title); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.row-main { flex: 1; min-width: 0; display: grid; gap: 0; }
.row-main > strong, .row-main > a, .row-name { min-width: 0; overflow: hidden; font-size: 0.86rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.row-main > small { overflow: hidden; color: var(--text-faint); font-size: 0.74rem; white-space: nowrap; text-overflow: ellipsis; }
.row-name { flex: 1; display: flex; align-items: center; gap: 7px; }
.row-end { flex: none; font-family: var(--font-title); font-size: 0.86rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.row-chevron { flex: none; color: var(--text-faint); transition: transform 0.22s var(--ease); }
.row-chevron svg { display: block; width: 14px; height: 14px; }
.feed, .mini-board { display: block; margin: 0; padding: 0; list-style: none; background: none; border: 0; }
.feed-item, .mini-board a { padding: 6px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 0.86rem; }
.feed-item:hover, .mini-board a:hover { background: var(--surface-soft); }
.feed-kind { padding: 0; background: none; border: 0; color: var(--text-faint); font-size: 0.66rem; }
.plain-empty { margin: 8px 0; color: var(--text-faint); font-size: 0.84rem; }
.empty-state { display: block; padding: 10px 0; background: none; border: 0; border-radius: 0; color: var(--text-faint); text-align: left; font-size: 0.84rem; }
main .empty-state, main .empty-state * { text-align: left; justify-items: start; }
main .empty-state { display: block; min-height: 0; }
.empty-state > svg { display: none; }
.empty-state strong { display: block; color: var(--text-muted); font-size: 0.86rem; font-weight: 600; }
.empty-state .button { margin-top: 8px; }

/* Rank: a small tag in lists; the artwork is kept for the Ranks page and profiles. */
.rank-chip { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 24px; height: 16px; padding: 0 3px; color: color-mix(in srgb, var(--rank-color, var(--text)) 70%, var(--text)); border: 1px solid color-mix(in srgb, var(--rank-color, var(--text)) 55%, transparent); font-family: var(--font-title); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.03em; line-height: 1; }
html[data-rank-icons="off"] .rank-chip { display: none; }
.account-rank { display: none; }
.rank-tag { gap: 5px; padding: 0; background: none; border: 0; font-size: 0.8rem; }
.avatar { border-radius: 0; }
.avatar-sm { width: 22px; height: 22px; font-size: 0.66rem; }
.avatar img { border-radius: 0; }
.name-badge { height: 12px; filter: grayscale(1); opacity: 0.8; transition: filter 0.16s ease, opacity 0.16s ease; }
.name-badge:hover { filter: none; opacity: 1; }
.profile-hero .name-badge { height: 15px; filter: none; opacity: 1; }
.name-badges { gap: 3px; margin-left: 4px; }

/* Tags */
.pill, .badge, .status-pill { display: inline-flex; align-items: center; gap: 4px; min-height: 16px; padding: 0 5px; background: none; border: 1px solid var(--border); border-radius: 0; color: var(--text-muted); font-family: var(--font-title); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: none; }
.pill svg { width: 10px; height: 10px; }
.pill-live { color: var(--text); border-color: var(--success, #30a46c); }
.pill-accent { color: var(--text); background: none; }

/* Notes and warnings: a line on the edge, not a coloured box */
.alert, .alert-warning, .alert-danger, .alert-success, .alert-info { display: block; padding: 3px 0 3px 10px; background: none; border: 0; border-left: 2px solid var(--line-strong); border-radius: 0; box-shadow: none; color: var(--text-muted); font-size: 0.84rem; }
.alert > svg { display: none; }
.alert strong { color: var(--text); }
.alert-danger { border-left-color: var(--danger, #e5484d); }
.alert-warning { border-left-color: var(--warning, #f2b01e); }
.alert-success { border-left-color: var(--success, #30a46c); }

/* Tables */
.table-scroll { background: none; border: 0; border-radius: 0; }
.board-table, main table { width: 100%; background: none; border-collapse: collapse; font-size: 0.86rem; }
.board-table th, main table th { padding: 5px 8px; background: none; border-bottom: 1px solid var(--border); color: var(--text-faint); font-family: var(--font-title); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.board-table td, main table td { padding: 4px 8px; background: none; border-bottom: 1px solid var(--line-soft); }
.board-table th:first-child, .board-table td:first-child { padding-left: 0; }
.board-table th:last-child, .board-table td:last-child { padding-right: 0; }
.board-table tbody tr { transition: background-color 0.12s ease; }
.board-table tbody tr:hover, .board-table tbody tr:hover td { background: var(--surface-soft); }
.board-table tr.is-viewer, .board-table tr.is-viewer td { background: var(--surface-hover); }
.board-table tr.is-viewer td:first-child { box-shadow: none; }
.board-table tr.is-viewer .col-pos { color: var(--text); font-weight: 700; }
.board-table .col-pos { width: 2.2em; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.board-table .col-num { font-variant-numeric: tabular-nums; }
.board-table .col-main { font-family: var(--font-title); font-weight: 700; }
.board-player { display: flex; align-items: center; gap: 8px; min-width: 0; }
.board-player-text { min-width: 0; font-weight: 600; }
.board-player-text a { text-decoration: none; }
.board-player-text a:hover .pname { text-decoration: underline; text-underline-offset: 3px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.8rem; }

/* Floating things */
.top-more-panel, dialog, .modal, .palette, .peek-card, .locked-preview-card, .auth-prompt { background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: 0; box-shadow: var(--shadow); }
.palette kbd { background: none; border: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.overlay-backdrop, .auth-prompt-backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 0, 0.6); }

/* The lock over ranked things for people who haven't finished setting up */
.locked-preview-overlay { padding: 14px; }
.locked-preview-card { width: min(380px, 100%); padding: 14px; }
.setup-checklist-head { text-align: left; justify-items: start; }
.setup-checklist-head .locked-preview-icon { display: none; }
.setup-checklist-head h2 { color: var(--text); font-size: 0.9rem; }
.setup-checklist-head p { margin: 4px 0 8px; font-size: 0.8rem; }
.setup-progress { height: 2px; background: var(--surface-3); }
.setup-progress span { background: var(--text); }
.setup-steps { gap: 0; margin: 8px 0 0; }
.setup-step { padding: 7px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); }
.setup-step:last-child { border-bottom: 0; }
.setup-step strong { font-size: 0.84rem; }
.setup-step small { font-size: 0.74rem; }
.setup-step-mark { width: 18px; height: 18px; background: none; border: 1px solid var(--border); font-size: 0.68rem; }

/* ---------------------------------------------------------------- home */
.home-stage, .home-banner { position: relative; isolation: isolate; overflow: hidden; margin: 0 calc(var(--gutter) * -1); border-bottom: 1px solid var(--border); }
.home-banner-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(1); transition: opacity 0.5s ease; }
.home-stage.has-image .home-banner-art { opacity: 0.55; filter: none; }
.home-stage::before, .home-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, var(--bg) 8%, transparent 75%), linear-gradient(to top, var(--bg), transparent 45%); }
.home-banner { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; min-height: 178px; padding: 24px var(--gutter) 18px; }
.home-banner-text { min-width: 0; flex: 1 1 280px; }
.home-pic { flex: none; display: grid; place-items: center; width: 84px; height: 84px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); font: 700 2rem/1 var(--font-title); text-decoration: none; }
.home-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
main h1.home-greet { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: 0; text-transform: none; }
.home-rank { display: flex; align-items: center; gap: 7px; margin: 6px 0 0; color: var(--text-muted); font-size: 0.88rem; }
.home-stage { display: flex; align-items: center; padding: 32px var(--gutter); min-height: calc(100vh - 42px); min-height: calc(100dvh - 42px); }
main h1.home-title { margin: 0; font-size: clamp(2.8rem, 7vw, 5.6rem); letter-spacing: 0; line-height: 0.98; }
.home-title > span { display: block; }
.home-sub { max-width: 42ch; margin: 16px 0 0; color: var(--text-muted); font-size: 1rem; }
.home-actions { display: flex; align-items: center; gap: 6px; margin-top: 20px; }

/* You against everyone: where you sit between the lowest and highest Elo, with the average marked. */
.standing { display: grid; gap: 12px; }
.standing .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row-button { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line-soft); color: inherit; font: inherit; text-align: left; cursor: pointer; }

/* Blocks that moved off the home page */
.how-to-rank { font-size: 0.86rem; }
.how-to-rank summary { cursor: pointer; color: var(--text-muted); font-weight: 600; }
.how-to-rank summary:hover { color: var(--text); }
.steps-plain { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px 20px; margin: 10px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps-plain li { counter-increment: step; display: grid; grid-template-columns: 1.5em minmax(0, 1fr); }
.steps-plain li::before { content: counter(step); color: var(--text-faint); font-family: var(--font-num); font-size: 0.8rem; }
.steps-plain h3, .steps-plain p { grid-column: 2; margin: 0; }
.steps-plain h3 { font-size: 0.86rem; }
.steps-plain p { color: var(--text-faint); font-size: 0.78rem; }
.play-games-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 4px 20px; }
.play-games { padding: 4px 0 12px; }
.game-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: inherit; text-decoration: none; }
.game-row img { flex: none; width: 74px; height: 42px; object-fit: cover; filter: grayscale(1); transition: filter 0.24s ease; }
.game-row:hover img { filter: none; }
.game-row strong { display: block; font-size: 0.86rem; }
.game-row small { display: block; color: var(--text-faint); font-size: 0.76rem; }

/* ---------------------------------------------------------------- results */
.result-row > summary { cursor: pointer; list-style: none; }
.result-row > summary::-webkit-details-marker { display: none; }
.result-row[open] .row-chevron { transform: rotate(180deg); }
.result-open { display: grid; gap: 10px; padding: 8px 0 14px; border-bottom: 1px solid var(--line-soft); animation: open-in 0.28s var(--ease) both; }
.result-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.result-teams h4 { margin: 0 0 3px; color: var(--text-faint); font-family: var(--font-title); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.result-teams .winner h4 { color: var(--text); }
.team-col, .team-col.winner { padding: 0; background: none; border: 0; box-shadow: none; }
.roster { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.roster li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; background: none; border: 0; font-size: 0.84rem; }
.roster .kills { flex: none; color: var(--text-faint); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.mvp-star { color: var(--text); font-weight: 700; }
.result-facts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; color: var(--text-faint); font-size: 0.8rem; }
.result-versus { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; overflow: visible; white-space: normal; }
.match-delta { min-width: 3.4em; text-align: right; }
.note-text { color: var(--text-muted); font-size: 0.84rem; }
.note-text p { margin: 0 0 3px; }
.player-chip { gap: 5px; font-weight: 600; text-decoration: none; }
a.player-chip:hover .player-chip-name { text-decoration: underline; text-underline-offset: 3px; }
.rank-unranked { display: none; }

/* ---------------------------------------------------------------- play */
.play-panes { grid-template-columns: 300px minmax(0, 1fr); }
.play-status, .play-status.is-match { padding: 0; background: none; border: 0; box-shadow: none; }
.scrim-cards, .play-scrims { display: block; }
.scrim-card, .play-scrim { padding: 8px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); }

/* ---------------------------------------------------------------- arena */
.arena-bar-level { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 0.78rem; }
.arena-bar-level b { font-family: var(--font-title); font-weight: 700; letter-spacing: 0.04em; }
.arena-bar-track { width: 70px; height: 3px; overflow: hidden; background: var(--surface-3); }
.arena-bar-track i { display: block; width: 100%; height: 100%; background: var(--text); transform: scaleX(calc(var(--pct, 0) / 100)); transform-origin: 0 50%; }
.arena-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.arena-main { display: grid; gap: 10px; align-content: start; min-width: 0; }
.predict-card, .quest-card, .bounty-card { padding: 10px 12px; }

/* ---------------------------------------------------------------- ranks */
.tier-list { display: block; }
.tier-row, .tier-row:hover { display: grid; grid-template-columns: 34px 170px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); box-shadow: none; transform: none; }
.tier-row::before, .tier-row::after { display: none; }
.tier-row .rank-icon { width: 30px; height: 30px; }
.tier-name { display: grid; gap: 0; }
.tier-name small { display: none; }
.tier-name strong { font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; }
.tier-name span { color: var(--text-faint); font-size: 0.74rem; }
.tier-players { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 3px 14px; }
.tier-players a, .tier-players a:hover { display: inline-flex; align-items: center; gap: 5px; padding: 0; background: none; border: 0; font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.tier-players a:hover .pname { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- settings */
.settings-main { gap: 10px; }
.settings-section { padding: 0; background: none; border: 0; scroll-margin-top: 60px; }
.settings-section h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.settings-section h2::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.settings-intro { margin: 0 0 6px; font-size: 0.8rem; }
.settings-account-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); }
.settings-account-row > div { display: grid; min-width: 0; }
.settings-account-row strong { font-size: 0.86rem; }
.settings-account-row span { color: var(--text-faint); font-size: 0.78rem; }
.settings-account-row svg { display: none; }
.settings-toggles { display: block; padding: 0; background: none; border: 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); }
.switch-row strong { display: block; font-size: 0.86rem; }
.switch-row small { display: block; font-size: 0.76rem; }
.settings-grid { gap: 10px 14px; }
.ticket-kind { border-top: 1px solid var(--border); padding: 10px 0; }
.my-server { display: grid; gap: 6px; margin: 12px 0; }
.ticket-kind > summary { cursor: pointer; font-weight: 600; }
.ticket-kind form { display: grid; gap: 12px; padding-top: 12px; }
form.stack { display: grid; gap: 12px; }
.settings-field small { font-size: 0.74rem; }
.settings-section li { padding: 7px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); }
.sec-alt-settings { padding: 10px 0 0; background: none; border: 0; border-top: 1px solid var(--line-soft); }

/* ---------------------------------------------------------------- trading */
.split-facts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; margin: 14px 0 0; padding: 10px var(--gutter) 0; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 0.74rem; }
.split-facts dd { margin: 0; color: var(--text-muted); font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.trade-credit { display: block; margin-top: auto; padding: 10px 0 0; background: none; border: 0; border-top: 1px solid var(--line-soft); box-shadow: none; color: var(--text-faint); font-size: 0.74rem; line-height: 1.45; }
.trade-credit strong { color: inherit; font-weight: 600; }
.trade-credit a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.trade-credit-icon, .trade-credit > .button-secondary { display: none; }
.trade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 20px; }
.trade-tile, .trade-tile:hover { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); box-shadow: none; transform: none; text-decoration: none; }
.trade-tile::before, .trade-tile::after { display: none; }
.trade-tile:hover .trade-tile-name { text-decoration: underline; text-underline-offset: 3px; }
.trade-tile-icon { display: none; }
.trade-tile-body { flex: 1; min-width: 0; display: grid; }
.trade-tile-name { overflow: hidden; font-size: 0.84rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.trade-tile-meta { color: var(--text-faint); font-size: 0.7rem; }
.trade-tile-value { font-family: var(--font-title); font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rarity-dot { border-radius: 0; }
.demand-meter { height: 2px; background: var(--surface-3); }
.trade-more { justify-self: start; margin-top: 10px; }
[data-trade-tile][hidden] { display: none; }
.trade-chip { min-height: 24px; padding: 0 8px; background: none; border: 1px solid var(--border); color: var(--text-muted); font-size: 0.74rem; }
.trade-chip svg { display: none; }
.trade-chip.active { color: var(--pill-ink); background: var(--pill); border-color: var(--pill); }
.trade-side { padding: 8px 10px; background: none; border: 1px solid var(--border); }
.trade-verdict { background: none; border: 0; }
.trade-otd, .trade-item-hero { background: none; border: 0; box-shadow: none; }

main [style*="border-radius"] { border-radius: 0 !important; }
.trade-results { gap: 0 16px; }
.trade-result, .trade-result:hover { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 3px 4px; background: none; border: 0; border-bottom: 1px solid var(--line-soft); box-shadow: none; transform: none; text-align: left; transition: background-color 0.12s ease; }
.trade-result:hover { background: var(--surface-hover); }
.trade-result::before, .trade-result::after { display: none; }
.trade-result-icon { display: none; }
.trade-result-name { flex: 1; min-width: 0; font-size: 0.84rem; font-weight: 600; }
.trade-result-name small { color: var(--text-faint); font-size: 0.7rem; font-weight: 500; }
.trade-result-value { font-family: var(--font-title); font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.trade-verdict-label { font-family: var(--font-title); }

/* ---------------------------------------------------------------- awards */
.awards-hero, .awards-hero:hover { display: block; margin: 0; padding: 0; overflow: visible; text-align: left; background: none; border: 0; animation: none; justify-items: start; }
.awards-hero h1, .awards-hero p, .awards-hero .muted { text-align: left; }
.awards-hero p { max-width: 62ch; margin: 3px 0 0; font-size: 0.84rem; }
.awards-hero .button, .awards-hero .button-secondary { margin: 8px 6px 0 0; }
.awards-hero .button svg, .awards-hero .button-secondary svg { display: none; }
.awards-how { display: grid; gap: 2px; margin: 6px 0 0; }
.awards-how span { padding: 0; background: none; border: 0; color: var(--text-muted); font-size: 0.82rem; }
.awards-countdown { justify-content: flex-start; margin: 8px 0 0; }
.awards-countdown-unit { padding: 0 16px 0 0; background: none; border: 0; }
.awards-group { margin: 0; scroll-margin-top: 60px; }
.awards-group-title { display: flex; align-items: center; gap: 10px; margin: 0; }
.awards-group-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.awards-group-title > span { display: none; }
.awards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 24px; }
.awards-grid > .award-card, .award-card, .award-card:hover, .award-card.has-winner, html[data-glass="on"] .award-card.has-winner { display: grid; gap: 6px; padding: 8px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); box-shadow: none; transform: none; animation: none; }
.award-card header h3 { font-size: 0.86rem; font-weight: 700; }
.award-card header p { margin-top: 0; color: var(--text-faint); font-size: 0.76rem; }
.award-icon { display: none; }
.award-tag { color: var(--text-muted); background: none; border: 1px solid var(--border); font-size: 0.66rem; }
.winner-show { display: block; padding: 0; overflow: visible; background: none; border: 0; box-shadow: none; }
.winner-show::before, .winner-show::after, .winner-ribbon, .winner-badge { display: none; }
.winner-person { display: flex; align-items: center; gap: 9px; padding: 2px 0; background: none; border: 0; }
.winner-avatar { flex: none; width: 30px; height: 30px; border: 0; box-shadow: none; }
.winner-avatar img { width: 100%; height: 100%; }
.winner-info { flex: 1; min-width: 0; display: grid; gap: 0; }
.winner-name { font-family: var(--font-body); font-size: 0.86rem; font-weight: 700; text-transform: none; text-decoration: none; }
.winner-info small { color: var(--text-faint); font-size: 0.72rem; }
.winner-info small img { display: none; }
.winner-profile, .winner-profile.button-secondary { display: none; }

/* ---------------------------------------------------------------- donate */
.donate-panes { grid-template-columns: minmax(0, 1fr); }
.donate-lead { margin: 0 0 6px; color: var(--text-muted); font-size: 0.92rem; }
.faq-list { display: block; }
.faq-list details { padding: 7px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); }
.faq-list summary { cursor: pointer; font-size: 0.86rem; font-weight: 600; }
.faq-list p { margin: 4px 0 0; color: var(--text-faint); font-size: 0.8rem; }

/* ---------------------------------------------------------------- profile: header across the top, record below, details last */
.page-content > .profile-hero { margin-top: 12px; }
.profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 18px; padding: 16px; border: 1px solid var(--border); box-shadow: none; }
.profile-hero .avatar-xl { width: 88px; height: 88px; font-size: 1.8rem; }
main h1.profile-name { margin: 0; font-size: 1.5rem; }
.profile-name .pname { font-size: 1.5rem; }
.profile-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; margin: 3px 0 0; color: var(--text-muted); font-size: 0.8rem; }
.profile-meta svg { width: 13px; height: 13px; }
.profile-meta > * { display: inline-flex; align-items: center; gap: 4px; }
.like-inline { padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.presence { margin-top: 8px; max-width: 420px; }
.profile-rank-block { display: grid; justify-items: center; gap: 2px; min-width: 110px; text-align: center; }
.profile-rank-block .rank-icon { width: 54px; height: 54px; }
.profile-rank-block .rank-unranked { display: none; }
.profile-rank-block strong { font-size: 0.86rem; }
.profile-rank-block small { color: var(--text-faint); font-size: 0.74rem; }
.profile-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 10px 0 0; border-top: 1px solid var(--line-soft); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.profile-actions svg { display: none; }
.badge-shelf { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.shelf-badge { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; cursor: pointer; }
.shelf-badge small { display: inline; color: var(--text-faint); font-family: var(--font-label); font-size: 0.72rem; font-weight: 600; }
.shelf-badge svg, .shelf-badge .badge-tile { width: auto; height: 18px; }
.shelf-badge svg { width: 18px; }
.profile-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 14px 0 4px; }
.profile-body > div { min-width: 0; }
.profile-body-parts { display: grid; gap: 16px; min-width: 0; }
.profile-body .card, .profile-about .card { padding: 0; background: none; border: 0; }
.profile-body .card-header p, .profile-about .card-header p { display: none; }
.profile-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px 28px; align-items: start; }
.profile-body .stat-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kv-list { display: block; margin: 0; }
.kv-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); font-size: 0.8rem; }
.kv-list dt { color: var(--text-faint); font-weight: 500; }
.kv-list dd { margin: 0; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.timeline { display: block; margin: 0; padding: 0; list-style: none; }
.timeline li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); font-size: 0.8rem; }
.timeline li::before, .timeline li::after { display: none; }
.timeline .when { color: var(--text-faint); }
.host-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.host-stat, .host-stat.is-hot { padding: 6px 8px; background: var(--bg); border: 0; box-shadow: none; }
.host-stat strong { display: block; font-family: var(--font-title); font-size: 1rem; }
.host-stat span, .host-stat small { display: block; color: var(--text-faint); font-size: 0.7rem; }
.match-list { margin: 0; padding: 0; list-style: none; }
.match-row, .match-row.won, .match-row.lost { display: flex; align-items: center; gap: 10px; padding: 5px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); box-shadow: none; font-size: 0.84rem; }
.match-main { flex: 1; min-width: 0; display: grid; }
.match-main > span { color: var(--text-faint); font-size: 0.74rem; }
.match-score { font-family: var(--font-title); font-weight: 700; }
.scrim-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 10px; font-size: 0.84rem; }
.scrim-card .top { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--text-faint); font-size: 0.72rem; }
.scrim-card > .score { grid-column: 3; grid-row: 2; font-family: var(--font-title); font-weight: 700; font-size: 0.9rem; }
.scrim-card > strong { grid-column: 1 / 3; }
.scrim-card > span, .scrim-card > a { grid-column: 1 / -1; color: var(--text-faint); font-size: 0.74rem; }
.season-history { display: block; }
.season-card, .season-card:hover { display: grid; grid-template-columns: 30px 240px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); box-shadow: none; }
.season-card-num { display: inline-flex; align-items: baseline; color: var(--text-faint); font-family: var(--font-title); font-size: 0.86rem; font-weight: 700; white-space: nowrap; }
.season-card-num strong { display: inline; color: var(--text); font: inherit; }
.season-card-rank { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; font-size: 0.82rem; }
.season-card-rank small { color: var(--text-faint); font-size: 0.74rem; }
.season-card::before, .season-card::after { display: none; }
.season-card-stats { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; font-size: 0.78rem; }
.season-card-stats > div { display: flex; gap: 4px; }
.season-card-stats dt { color: var(--text-faint); }
.season-card-stats dd { margin: 0; }
.elo-chart { display: block; width: 100%; max-height: 150px; }
.chart-area { fill: var(--surface-soft); }
.chart-line { stroke: var(--text); stroke-width: 1.5; fill: none; }
.chart-dot { fill: var(--text); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--text-faint); font-size: 0.74rem; }

/* ---------------------------------------------------------------- rules */
.rules-hero { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; min-height: 46px; margin: 0 calc(var(--gutter) * -1); padding: 7px var(--gutter); background: var(--bg); border: 0; border-bottom: 1px solid var(--border); box-shadow: none; }
.rules-hero p { display: none; }
.rules-contents { padding: 0; background: none; border: 0; }
.rule { padding: 8px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); box-shadow: none; }
.rule:hover { background: none; border-color: var(--line-soft); }
.rule h3 { font-size: 0.88rem; }
.rule p, .rule li { font-size: 0.84rem; }
.rules-chapter-head h2 { color: var(--text); font-size: 0.86rem; }
.rules-chapter-head p { margin: 1px 0 0; font-size: 0.78rem; }
.rules-chapter-num { background: none; border: 1px solid var(--border); box-shadow: none; color: var(--text-faint); font-family: var(--font-title); font-size: 0.72rem; }

/* ---------------------------------------------------------------- tournaments, host and the staff tools */
.tournament-card, .tournament-card:hover { padding: 8px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); box-shadow: none; transform: none; }
.tournament-card h2, .tournament-card h3 { color: var(--text); font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.tool-card, .tool-card:hover { padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: none; transform: none; }
.access-live, .antinuke-power, .verification-card { padding: 10px 12px; background: none; border: 1px solid var(--border); box-shadow: none; }
.badge-role-row, .award-phase, .award-roles, .fin-row, .antinuke-limit { padding: 6px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); box-shadow: none; }
.content-list { background: none; border: 0; }
.tabs-divider { display: block; padding: 12px var(--gutter) 3px; color: var(--text-faint); font-family: var(--font-title); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.tabs-divider::before, .tabs-divider::after { display: none; }
.split-list .tab .pill { min-height: 14px; padding: 0 4px; font-size: 0.62rem; }
.split-list .tab svg { display: none; }
.split-main .results-search { display: flex; gap: 6px; }
.split-main .results-search .search-field-wrapper { flex: 1; }
.search-field-wrapper { background: none; border: 0; }
.page-header .results-search { display: flex; align-items: center; gap: 6px; flex: 0 1 380px; min-width: min(100%, 240px); }
.results-search input[type="search"] { flex: 1; min-width: 0; }
.results-search .button svg { display: none; }
.results-rows { display: block; }

.awards-hero h1, .rules-hero h1, .settings-heading h1 { margin: 0; font-size: 1.3rem; }
.tier-row .tier-name strong { font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; }
.tier-row .tier-name span { color: var(--text-faint); font-size: 0.74rem; }
.rules-toc-chapter > span { display: none; }
.rules-toc-chapter { font-size: 0.82rem; }
.rules-search input, .rules-contents input[type="search"] { padding-left: 28px; }
.panel-meta > span { display: none; }
.rules-index-card { padding: 8px 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); box-shadow: none; }

.panel-hero h1 svg, .page-header h1 svg { display: none; }
.botchat-hero { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; min-height: 46px; margin: 0 calc(var(--gutter) * -1); padding: 7px var(--gutter); background: var(--bg); border: 0; border-bottom: 1px solid var(--border); box-shadow: none; }
.botchat-hero-text { flex: 1; min-width: min(100%, 200px); }
.botchat-hero-text h1 { font-size: 1.3rem; }
.botchat-hero-text p { display: none; }
.botchat-rules-btn svg { display: none; }
.botchat-facts { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 2px 20px; margin: 0; padding: 0; list-style: none; }
.botchat-facts li { display: block; padding: 0; background: none; border: 0; color: var(--text-faint); font-size: 0.74rem; }
.botchat-facts li > span { display: none; }
.botchat-facts b { color: var(--text-muted); font-weight: 600; }
.botchat-facts small { font-size: inherit; }
.botchat-facts small::before { content: ": "; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; align-items: stretch; }
.two-col[hidden] { display: none; }
.search-results { display: block; margin: 0; padding: 0; list-style: none; }
.search-result, .search-result:hover { padding: 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); box-shadow: none; transform: none; }
.search-result > a { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 4px 0; background: none; border: 0; text-decoration: none; }
.search-result-who { flex: 1; min-width: 0; display: grid; font-size: 0.86rem; font-weight: 600; }
.search-result-who small { color: var(--text-faint); font-size: 0.74rem; font-weight: 500; }
.search-result-rank { display: inline-flex; align-items: center; gap: 6px; color: var(--text-faint); font-size: 0.76rem; }
.search-result-elo { display: inline-flex; align-items: baseline; gap: 4px; }
.search-result-elo strong { font-family: var(--font-title); }
.search-result-elo small { color: var(--text-faint); font-size: 0.7rem; }
.owner-panel { min-width: 0; }

/* Inside Control Center and Leaderboard's section pages, the page's own bar runs edge to edge across the main column. */
.split-main > .page-header, .split-main > .panel-hero, .split-main > .botchat-hero { margin: -12px calc(var(--gutter) * -1) 0; }
.split-main > .page-header + *, .split-main > .panel-hero + * { margin-top: 0; }
.control .split-label:first-child { padding-top: 2px; }

/* The Mac-style developer windows keep their shape, in the same square language and type. */
.mac-chat h1, .mac-chat h2, .mac-chat h3, .terminal h2, .se-window h2, .se-window h3 { font-family: var(--font-body); font-weight: 700; color: var(--text); letter-spacing: 0; text-transform: none; }
.bot-bubble, .mac-bubble, [class*="bubble"] { border-radius: 8px; }
.status-dot, .live-dot, .mac-dot, .traffic, .traffic span, [class*="traffic"] { border-radius: 50%; }

/* ---------------------------------------------------------------- motion: one idea, a swipe from the left */
@keyframes rise { from { opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes open-in { from { opacity: 0; } }
@keyframes line-in { from { transform: scaleX(0); } }
@keyframes clip-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* Page titles: the same white bar as the buttons sweeps across and leaves the words behind it. */
@keyframes bar-sweep { 0% { transform: scaleX(0); transform-origin: 0 50%; } 48% { transform: scaleX(1); transform-origin: 0 50%; } 52% { transform: scaleX(1); transform-origin: 100% 50%; } 100% { transform: scaleX(0); transform-origin: 100% 50%; } }
@keyframes title-show { from { color: transparent; } to { color: transparent; } }
main h1:not(.profile-name) { position: relative; width: fit-content; max-width: 100%; animation: title-show 0.36s linear backwards; }
main h1:not(.profile-name)::after { content: ""; position: absolute; inset: 0; background: var(--text); transform: scaleX(0); pointer-events: none; animation: bar-sweep 0.72s var(--ease) backwards; }
.home-title > span { animation: title-show 0.36s linear backwards; }
.swipe-in:not(.is-in) { clip-path: inset(0 100% 0 0); }
.swipe-in.is-in { animation: clip-in 0.56s var(--ease) backwards; }
.rise { animation: rise 0.4s ease backwards; animation-delay: calc(var(--n, 0) * 18ms); }
.home-sub, .home-actions, .home-rank { animation: rise 0.6s ease 0.3s backwards; }
main img { animation: fade 0.3s ease backwards; }
.home-banner-art { animation: fade 0.8s ease backwards; }
.js .reveal { opacity: 1; transform: none; transition: none; }
/* Scrolling: a soft fade at the top and bottom of the screen, and things arrive and leave as they cross it. */
.edge { display: none; }
@supports (animation-timeline: scroll()) {
  .edge { position: fixed; left: var(--side-w); right: 0; z-index: 20; display: block; height: 56px; opacity: 0; pointer-events: none; }
  .edge-top { top: 0; background: linear-gradient(var(--bg), transparent); animation: edge-show linear both; animation-timeline: scroll(root); animation-range: 0px 56px; }
  .edge-bottom { bottom: 0; background: linear-gradient(transparent, var(--bg)); animation: edge-hide linear both; animation-timeline: scroll(root); animation-range: calc(100% - 56px) 100%; }
  body:has(.page-header, .panel-hero, .rules-hero, .botchat-hero) .edge-top { top: 46px; }
  @keyframes edge-show { from { opacity: 0; } to { opacity: 1; } }
  @keyframes edge-hide { from { opacity: 1; } to { opacity: 0; } }
  @keyframes edge-item {
    entry 0% { opacity: 0; }
    entry 100% { opacity: 1; }
    exit 0% { opacity: 1; }
    exit 100% { opacity: 0; }
  }
  .rows > :not(.rise), .board-table tbody tr:not(.rise), .results-rows > :not(.rise), .tier-list > :not(.rise), .trade-tile, .trade-result, .rule, .award-card, .settings-account-row, .switch-row, .match-row, .scrim-card, .season-card, .timeline li, .kv-list > div, .faq-list details, .feed-item, .search-result, .tool-card, .figures, .stat-strip, .stat-cards, .tournament-card, .card:not(:has(.rows, table, .rule, .trade-tile, .settings-account-row)) {
    animation: edge-item linear both; animation-timeline: view();
  }
}
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); }
.skeleton-lines { display: grid; gap: 8px; padding: 4px 0; }
.skeleton-lines i { display: block; height: 10px; overflow: hidden; background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%) 0 0 / 300% 100%; animation: sheen 1.3s linear infinite; }
.skeleton-lines i:nth-child(2) { width: 82%; }
.skeleton-lines i:nth-child(3) { width: 60%; }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@view-transition { navigation: auto; }
.side { view-transition-name: side; }
::view-transition-old(root) { animation: fade 0.1s ease reverse both; }
::view-transition-new(root) { animation: fade 0.18s ease both; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after, html[data-motion="reduce"]::view-transition-old(root), html[data-motion="reduce"]::view-transition-new(root) { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html[data-motion="system"] *, html[data-motion="system"] *::before, html[data-motion="system"] *::after, html[data-motion="system"]::view-transition-old(root), html[data-motion="system"]::view-transition-new(root) { animation: none !important; transition: none !important; }
}

main h1:not(.home-title):not(.profile-name) { font-size: 1.3rem; margin: 0; line-height: 1.15; }
.error-code { font-family: var(--font-num); }

/* ---------------------------------------------------------------- player rankings */
.pr { display: grid; }
.pr-panel[hidden] { display: none; }
.pr-row { min-height: 38px; }
.pr-title-tag { margin-left: 6px; padding: 0; background: none; border: 0; color: var(--text-faint); font-family: var(--font-label); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pr-accolades { flex: 0 1 auto; min-width: 0; overflow: hidden; color: var(--text-faint); font-size: 0.76rem; white-space: nowrap; text-overflow: ellipsis; max-width: 38%; }
.pr-icon { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; color: var(--text-faint); background: none; border: 0; box-shadow: none; }
.pr-icon svg { width: 13px; height: 13px; }
.pr-move { flex: none; min-width: 2.2em; color: var(--text-faint); font-family: var(--font-num); font-size: 0.72rem; text-align: right; background: none; border: 0; }

/* ---------------------------------------------------------------- the swipe: in from the left, out to the right */
.button-secondary, .button-ghost, .side-link, .split-link, .split-list .tab, a.row, summary.row, .row-button, .account-menu-link, .footer-links a, .pagination a {
  background-image: linear-gradient(var(--swipe, var(--text)), var(--swipe, var(--text))); background-repeat: no-repeat; background-size: 0 100%; background-position: 100% 0;
  transition: color 0.2s ease, background-size 0.3s var(--ease), border-color 0.2s ease;
}
.button-secondary:hover, .button-ghost:hover, .side-link:hover, .split-link:hover, .split-list .tab:hover, a.row:hover, summary.row:hover, .row-button:hover, .account-menu-link:hover, .pagination a:hover {
  background-size: 100% 100%; background-position: 0 0; background-color: transparent;
}
.button-secondary:hover, .button-ghost:hover { color: var(--bg); }
/* Quiet surfaces get the same movement in a quiet colour. */
.side-link, .split-link, .split-list .tab, a.row, summary.row, .row-button, .account-menu-link { --swipe: var(--surface-hover); }
.side-link.active, .split-link.active, .split-list .tab.active { background-color: var(--surface-soft); }
.footer-links a { --swipe: transparent; }
/* The solid white button swipes the other way: dark comes in, the words turn white. */
.button, .button-primary {
  background-color: var(--pill); background-image: linear-gradient(var(--bg), var(--bg)); background-repeat: no-repeat; background-size: 0 100%; background-position: 100% 0; border-color: var(--pill);
  transition: color 0.2s ease, background-size 0.3s var(--ease);
}
.button:hover, .button-primary:hover { color: var(--text); background-color: var(--pill); background-size: 100% 100%; background-position: 0 0; opacity: 1; }

/* ---------------------------------------------------------------- four fonts, each with one job */
.button, .button-primary, .button-secondary, .button-ghost, .button-danger, .button-warning, .button-success, .button-info { font-family: var(--font-label); font-size: 0.84rem; letter-spacing: 0.05em; }
.button-sm { font-size: 0.78rem; }
.button-lg { font-size: 0.92rem; }
.tab, .tabs .tab, .panel-tabs-bar .tab, .developer-tab, .segmented-control a, .segmented-control button, .board-switch a, .rules-tabs a { font-family: var(--font-label); font-size: 0.82rem; letter-spacing: 0.05em; }
.side-heading, .split-label, .tabs-divider { font-family: var(--font-label); font-size: 0.74rem; letter-spacing: 0.12em; }
.figures dt, .stat-label, .stat-card .label, .board-table th, main table th, .row-tag, .result-teams h4 { font-family: var(--font-label); font-size: 0.74rem; letter-spacing: 0.08em; }
.pill, .badge, .status-pill, .rank-chip, .award-tag { font-family: var(--font-label); font-size: 0.72rem; }
.brand, .brand:hover { font-family: var(--font-title); }
.figures dd, .stat-value, .stat-card .value, .row-end, .row-pos, .board-table .col-main, .board-table .col-pos, .board-table .col-num, .trade-tile-value, .trade-result-value, .match-score, .match-delta, .host-stat strong, .split-count, .scrim-card > .score, .search-result-elo strong { font-family: var(--font-num); font-weight: 600; letter-spacing: -0.02em; }
.figures dd, .stat-value, .stat-card .value { font-size: 1.05rem; }
.home .figures dd { font-size: 1.25rem; }
.row-end, .trade-tile-value, .trade-result-value { font-size: 0.8rem; }
.row-pos, .board-table .col-pos { font-weight: 400; font-size: 0.74rem; }
.board-table .col-num { font-size: 0.78rem; font-weight: 400; }
.board-table .col-main { font-weight: 600; }

/* ---------------------------------------------------------------- narrow computers: the section list turns into a row */
@media (max-width: 1100px) {
  .split { display: block; }
  .profile-body .stat-cards { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
  .play-panes { grid-template-columns: minmax(0, 1fr); }
  .split-list { position: static; flex-direction: row; max-height: none; overflow-x: auto; padding: 0 var(--gutter); gap: 16px; border-bottom: 1px solid var(--border); }
  .split-label, .split-tools { display: none; }
  .split-group, .split-group-body, .split-group.is-closed .split-group-body { display: contents; }
  .split-list .tabs { flex-direction: row; gap: 16px; }
  .split-link, .split-list .tab { flex: none; width: auto; height: 34px; padding: 0; background: none; white-space: nowrap; }
  .split-link:hover, .split-link.active, .split-list .tab.active, .split-list .tab:hover { background: none; }
  .split-link::after, .split-list .tab::after { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 2px; transform: scaleX(0); }
  .split-link.active::after, .split-list .tab.active::after, .split-list .tab[aria-selected="true"]::after { transform: scaleX(1); }
  .split-main { padding: 12px var(--gutter) 8px; border-left: 0; min-height: 0; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 760px) {
  :root { --side-w: 0px; --gutter: 14px; }
  .dev-banner { margin-left: 0; }
  .site-shell { margin-left: 0; padding-bottom: 54px; }
  .site-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 4px; height: 44px; margin: 0; padding: 0 var(--gutter); background: var(--bg); border-bottom: 1px solid var(--border); }
  .site-header .brand { flex: 1; padding: 0; }
  .nav-toggle { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; color: var(--text); background: none; border: 0; }
  .nav-toggle svg { width: 18px; height: 18px; }
  .side { width: min(250px, 80vw); transform: translateX(-102%); transition: transform 0.3s var(--ease); }
  body.rail-open .side { transform: none; }
  .rail-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.24s ease; }
  body.rail-open .rail-scrim { opacity: 1; pointer-events: auto; }
  .side-link { height: 36px; font-size: 0.92rem; }
  .bottom-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 50px; background: var(--bg); border-top: 1px solid var(--border); }
  .bottom-bar-item { flex: 1; display: grid; place-items: center; gap: 0; padding: 6px 0 4px; color: var(--text-faint); font-size: 0.64rem; text-decoration: none; }
  .bottom-bar-item svg { width: 16px; height: 16px; }
  .bottom-bar-item.active { color: var(--text); }
  .bottom-bar-item.active::before { display: none; }
  .page-header, .panel-hero, .bar { top: 44px; }
  .edge { left: 0; }
  .edge-top { top: 44px; }
  body:has(.page-header, .panel-hero, .rules-hero, .botchat-hero) .edge-top { top: 90px; }
  .edge-bottom { bottom: 50px; }
  .home-stage { min-height: calc(100dvh - 140px); }
  .standing .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-teams { grid-template-columns: minmax(0, 1fr); }
  .profile-hero { grid-template-columns: auto minmax(0, 1fr); }
  .profile-rank-block { grid-column: 1 / -1; display: flex; justify-items: start; text-align: left; }
  .season-card { grid-template-columns: 30px minmax(0, 1fr); }
  .season-card-stats { grid-column: 2; }
  .page-header .results-search { flex-basis: 100%; }
  .results-rows .row-main > small { white-space: normal; }
  input[type="text"], input[type="search"], input[type="url"], input[type="number"], input:not([type]), textarea, select { font-size: 16px; }
  .button, .button-secondary, .button-ghost, .button-primary, .button-danger { min-height: 36px; }
  .button-sm { min-height: 30px; }
}

/* the profile's last round pieces (the online dot stays a dot) */
.status-bubble, .status-bubble-emoji, .social-btn { border-radius: 0; }

/* ------------------------------------------------------ the page always runs past the bottom of the screen, so the footer only shows when you scroll to it */
main.page-content { flex: 1 0 auto; min-height: 100vh; }
.site-shell > .ad-slot { width: 100%; max-width: var(--page-w); margin: 12px 0 0; padding: 0 var(--gutter); }

/* ------------------------------------------------------ even: side-by-side boxes match, and the gaps do too */
.two-col > * { min-width: 0; margin: 0; }
:not(main, .split-main):has(> .two-col) { display: grid; gap: 12px; }
.split-main:has(> .two-col) { gap: 12px; }
main input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="hidden"]), main select, main .dropdown-trigger, main .custom-select-trigger { min-height: 34px; box-sizing: border-box; }
.button.button-success { background-color: var(--text); color: var(--bg); }  /* was pale text on the white button */
main .button:disabled, main .button[aria-disabled="true"] { background: var(--surface-3); color: var(--text-faint); opacity: 1; }

/* ------------------------------------------------------ flat: nothing glows */
button, [class*="button"], .tab, .split-link, .side-link, .home-tile, .row,
button:hover, [class*="button"]:hover, .tab:hover, .split-link:hover, .side-link:hover, .home-tile:hover, .row:hover,
button:active, [class*="button"]:active { box-shadow: none !important; text-shadow: none; filter: none; }
.brand-mark, .card, .content-card, .panel-card, .rank-icon, .rank-icon-xl, .developer-tabs, .verification-card, .auth-prompt, a.trade-tile:hover, .locked-preview-card,
.status-bubble, .panel-tabs-bar, .switch-row > input.switch::after, .rules-toc li a.active::before, .rules-contents, .rules-tabs-glider, .social-btn:hover, .social-btn:focus-visible,
.quota-ring-fill, .quota-ring.is-done .quota-ring-fill, .potw-card.is-winner, .finalist-tile:hover, .content-item[open], .chat-send:hover:not(:disabled), .chat-ai-btn:hover, .chat-ai-btn[aria-expanded="true"], .chat-ai-btn.is-auto,
.rarity-dot, .toggle-button.active::before, .win-face.is-blank, .is-blank { box-shadow: none !important; filter: none; }  /* earned name effects, frames and floating menus keep theirs */
button:focus-visible, [class*="button"]:focus-visible, a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; box-shadow: none !important; }

/* ------------------------------------------------------ home */
.home-banner { min-height: 150px; }
.home-banner::after, .home-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; width: 30%; background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--text) 3%, transparent), transparent); animation: idle-sweep 11s ease-in-out infinite; pointer-events: none; }
.home-stage { min-height: min(62vh, 560px); }
.home-rank a { color: var(--text-muted); }
.home-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.home-tile { display: grid; align-content: start; gap: 1px; min-width: 0; padding: 12px; background: var(--bg); color: inherit; text-decoration: none; }
.home-tile svg { width: 16px; height: 16px; margin-bottom: 8px; color: var(--text-muted); transition: transform 0.2s var(--ease), color 0.2s ease; }
.home-tile:hover svg { color: var(--text); transform: translateX(3px); }
.home-tile strong { font-family: var(--font-title); font-size: 0.95rem; }
.home-tile small { color: var(--text-faint); font-size: 0.78rem; }
.home-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--border); border: 1px solid var(--border); }
.home-steps li { display: grid; gap: 4px; padding: 12px; background: var(--bg); }
.home-steps b { color: var(--text-faint); font-family: var(--font-num); font-size: 0.78rem; font-weight: 500; }
.home-steps strong { font-size: 0.88rem; }
.home-community { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding: 14px 0; border-top: 1px solid var(--border); }
.home-community strong { display: block; font-family: var(--font-title); font-size: 1rem; }
.home-app-line { color: var(--text-muted); font-size: 0.8rem; }
.download-counts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--text-muted); font-size: 0.82rem; }
.download-counts b { color: var(--text); font-family: var(--font-num); font-weight: 500; }
.home-community-links { display: flex; flex-wrap: wrap; gap: 6px; }
.home-minecraft { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding: 14px 0; border-top: 1px solid var(--border); }
.home-minecraft strong { display: flex; align-items: center; gap: 8px; font-family: var(--font-title); font-size: 1rem; }
.home-minecraft strong svg { width: 18px; height: 18px; }
.home-minecraft small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 3px; color: var(--text-muted); font-size: 0.8rem; }
.home-level { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; color: inherit; text-decoration: none; }
.home-level strong { font-family: var(--font-title); font-size: 0.95rem; }
.home-level span { color: var(--text-faint); font-family: var(--font-num); font-size: 0.76rem; }
.home-level i { position: relative; height: 4px; overflow: hidden; background: var(--surface-3); }
.home-level i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--pct) * 1%); background: var(--text); }
.game-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.game-row svg { width: 13px; height: 13px; color: var(--text-faint); }
.xp-sources .row { min-height: 30px; }

/* one bar across, with the ten ranks standing on it. You sit further along your rank the better your stats are. */
.ladder-words { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; color: var(--text-muted); font-size: 0.84rem; }
.ladder-words strong { color: var(--text); font-family: var(--font-title); font-size: 1rem; }
.ladder { position: relative; padding: 4px 0 24px; }
.ladder-ranks { position: relative; height: 40px; }
.ladder-ranks span { position: absolute; bottom: 0; display: grid; justify-items: start; gap: 1px; color: var(--text-faint); font-family: var(--font-label); font-size: 0.68rem; font-weight: 600; line-height: 1; }
.ladder-ranks img { width: 24px; height: 24px; object-fit: contain; opacity: 0.55; }
.ladder-ranks .is-reached { color: var(--text-muted); }
.ladder-ranks .is-reached img { opacity: 1; }
.ladder-ranks .is-mine { color: var(--text); }
.ladder-ranks .is-mine img { transform: scale(1.2); transform-origin: 0 100%; }
.ladder-track { position: relative; height: 6px; margin-top: 5px; overflow: hidden; background: var(--surface-3); }
.ladder-fill { position: absolute; inset: 0 auto 0 0; width: var(--to); background: var(--text); transform-origin: 0 50%; animation: line-in 1s var(--ease) 0.2s backwards; }
.ladder-mark { position: absolute; bottom: 10px; width: 2px; height: 22px; pointer-events: none; }
.ladder-mark small { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-family: var(--font-label); font-size: 0.74rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.ladder-mark.is-you { background: var(--text); animation: idle-breathe 3s ease-in-out infinite; }
.ladder-mark.is-you small { color: var(--text); }
.ladder-mark.is-average { width: 1px; background: var(--text-faint); }
.ladder-mark.is-average small { color: var(--text-faint); }
@media (max-width: 620px) { .ladder-ranks img { width: 18px; height: 18px; } .ladder-ranks span { font-size: 0.6rem; } }

/* inside Elevate All-Stars Desktop the app has its own menu, so the page is just the page */
html.in-app { --side-w: 0px; }
html.in-app .side, html.in-app .site-header, html.in-app .bottom-bar, html.in-app .site-footer, html.in-app .edge, html.in-app .home-community, html.in-app .side-toggle { display: none !important; }
html.in-app main.page-content { min-height: 0; }
html.in-app .site-shell { margin-left: 0; min-height: 100vh; }
html.in-app .dev-banner { margin-left: 0; }

/* showing off the desktop app */
.play-scrim-ranks { display: inline-flex; align-items: center; gap: 4px; }
.play-roster { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0; padding: 0; list-style: none; font-size: 0.8rem; color: var(--text-muted); }
.play-roster li { display: inline-flex; align-items: center; gap: 4px; }
.app-connect { display: grid; justify-items: start; gap: 14px; width: min(520px, 100%); margin: 6vh auto 0; padding: 22px; border: 1px solid var(--border); }
.app-connect h1 { margin: 0; }
.app-connect p { margin: 0; }
.app-connect-who { display: flex; align-items: center; gap: 12px; }
.app-connect-who small { display: block; color: var(--text-faint); }
.app-connect-who strong { font-size: 1.1rem; }
.app-connect form { display: flex; flex-wrap: wrap; gap: 8px; }
.download-release { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 10px 14px; border: 1px solid var(--border); border-left: 3px solid var(--text); }
.download-release strong { display: block; }
.download-release small { color: var(--text-faint); overflow-wrap: anywhere; }
.app-show { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 26px; border: 1px solid var(--border); background: linear-gradient(115deg, var(--surface-2), var(--bg) 70%); }
.app-show-tag { color: var(--text-muted); font-family: var(--font-label); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
main .app-show h2 { margin: 6px 0 0; color: var(--text); font-family: var(--font-title); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: 0; line-height: 1.12; }
.app-show-pitch > p { max-width: 42ch; margin: 8px 0 0; color: var(--text-muted); font-size: 0.92rem; }
.app-show-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
main .app-show-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; max-width: none; margin-top: 12px; color: var(--text-faint); font-size: 0.78rem; }
.app-show-facts span { display: inline-flex; align-items: center; gap: 5px; }
.app-show-facts b { color: var(--text); font-family: var(--font-num); font-weight: 500; }
.app-demo-screen { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; min-height: 250px; overflow: hidden; padding: 12px; background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 12px, var(--bg) 12px, var(--bg) 24px); border: 1px solid var(--border); }
.app-demo-word { position: absolute; top: 12px; left: 14px; color: var(--text-faint); font-family: var(--font-label); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.app-demo-stack { position: relative; width: min(280px, 100%); min-height: 112px; }
.demo-card { position: absolute; right: 0; bottom: 0; display: grid; gap: 1px; width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border-strong, var(--border)); border-left: 3px solid var(--text); opacity: 0; transform: translateX(36px); transition: opacity 0.5s ease, transform 0.6s var(--ease); }
.demo-card.is-showing { opacity: 1; transform: none; }
.demo-card.is-match, .demo-card.is-win { border-left-color: var(--success, #30a46c); }
.demo-card.is-quest { border-left-color: #4c9dff; }
.demo-card.is-level { border-left-color: #a855f7; }
.demo-card small { color: var(--text-faint); font-family: var(--font-label); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.demo-card strong { font-family: var(--font-title); font-size: 0.95rem; }
.demo-card span { color: var(--text-muted); font-size: 0.78rem; }
.demo-buttons { display: flex; gap: 5px; margin-top: 7px; }
.demo-buttons b, .demo-buttons i { padding: 4px 10px; font-family: var(--font-label); font-size: 0.72rem; font-style: normal; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.demo-buttons b { background: var(--text); color: var(--bg); }
.demo-buttons i { border: 1px solid var(--border); }
.app-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--border); border: 1px solid var(--border); }
.app-features li { display: grid; align-content: start; gap: 2px; padding: 12px; background: var(--bg); }
.app-features strong { font-family: var(--font-title); font-size: 0.92rem; }
.app-features small { color: var(--text-faint); font-size: 0.78rem; }
@media (max-width: 820px) { .app-show { grid-template-columns: minmax(0, 1fr); padding: 18px; } .app-demo-screen { min-height: 200px; } }

.download-hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 18px; border: 1px solid var(--border); }
.download-hero h2 { color: var(--text); font-family: var(--font-title); font-size: 1.1rem; letter-spacing: 0; }
.download-hero p { margin: 2px 0 0; }
.home-steps small { color: var(--text-faint); font-size: 0.78rem; }
.download-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .download-features { grid-template-columns: minmax(0, 1fr); } }

/* policies: short sections you can jump between */
.policy .split-main { gap: 16px; }
.policy-part { scroll-margin-top: 60px; }
.policy-body { max-width: 72ch; color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.policy-body strong { color: var(--text); }
.policy-body ul { display: grid; gap: 4px; margin: 6px 0; padding-left: 18px; }
.policy-body p { margin: 0 0 8px; }

/* ------------------------------------------------------ alive: small things that keep moving while nothing else does */
.live-dot { position: relative; display: inline-block; flex: none; width: 7px; height: 7px; background: var(--success, #30a46c); box-shadow: none; animation: none; }
.live-dot::after, .side-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: idle-ping 2.4s ease-out infinite; }
.live-dot.is-idle { background: var(--text-faint); }
.live-dot.is-idle::after { display: none; }
.side-live { position: relative; width: 6px; height: 6px; border-radius: 50%; }
[data-home-live].is-fresh > * { animation: fade 0.4s ease backwards; }
@keyframes idle-ping { 0% { transform: scale(1); opacity: 0.5; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes idle-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes idle-sweep { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(420%); } }

@media (max-width: 720px) {
  .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-level { grid-template-columns: auto minmax(0, 1fr); }
  .home-level span { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- seasonal looks: only colours and a stripe along the top */
html[data-season="christmas"][data-theme="dark"] { --bg: #060e0a; --bg-elev: #0e1c14; --surface: #0e1c14; --surface-2: #15281e; --surface-3: #264232; --border: #264232; --line-soft: rgba(38, 66, 50, 0.6); --line-strong: rgba(172, 198, 182, 0.5); --text: #f6faf6; --text-muted: #acc6b6; --text-faint: #748e7e; --nav: #acc6b6; }
html[data-season="christmas"] { --accent: #e22c2c; --pill: #e22c2c; --pill-ink: #ffffff; --on-accent: #ffffff; --accent-soft: rgba(226, 44, 44, 0.14); --accent-ring: rgba(226, 44, 44, 0.4); --season-stripe: repeating-linear-gradient(-45deg, #e22c2c 0 10px, #f6faf6 10px 20px); }
html[data-season="halloween"][data-theme="dark"] { --bg: #0b070e; --bg-elev: #19101e; --surface: #19101e; --surface-2: #25182c; --surface-3: #422848; --border: #422848; --line-soft: rgba(66, 40, 72, 0.6); --line-strong: rgba(196, 164, 150, 0.5); --text: #fcf0e4; --text-muted: #c4a496; --text-faint: #886c72; --nav: #c4a496; }
html[data-season="halloween"] { --accent: #ff7a18; --pill: #ff7a18; --pill-ink: #060607; --on-accent: #060607; --accent-soft: rgba(255, 122, 24, 0.14); --accent-ring: rgba(255, 122, 24, 0.4); --season-stripe: repeating-linear-gradient(-45deg, #ff7a18 0 10px, #0b070e 10px 20px); }
html[data-season="winter"][data-theme="dark"] { --bg: #060a12; --bg-elev: #0e1624; --surface: #0e1624; --surface-2: #162032; --surface-3: #283850; --border: #283850; --line-soft: rgba(40, 56, 80, 0.6); --line-strong: rgba(160, 186, 210, 0.5); --text: #f0f8ff; --text-muted: #a0bad2; --text-faint: #6c829a; --nav: #a0bad2; }
html[data-season="winter"] { --accent: #7dd3fc; --pill: #7dd3fc; --pill-ink: #060607; --on-accent: #060607; --accent-soft: rgba(125, 211, 252, 0.14); --accent-ring: rgba(125, 211, 252, 0.4); --season-stripe: linear-gradient(90deg, #7dd3fc, #f0f8ff, #7dd3fc); }
html[data-season="valentines"][data-theme="dark"] { --bg: #10060b; --bg-elev: #200e17; --surface: #200e17; --surface-2: #2c1420; --surface-3: #4c2436; --border: #4c2436; --line-soft: rgba(76, 36, 54, 0.6); --line-strong: rgba(210, 166, 186, 0.5); --text: #fff0f6; --text-muted: #d2a6ba; --text-faint: #966e80; --nav: #d2a6ba; }
html[data-season="valentines"] { --accent: #ff4d8d; --pill: #ff4d8d; --pill-ink: #060607; --on-accent: #060607; --accent-soft: rgba(255, 77, 141, 0.14); --accent-ring: rgba(255, 77, 141, 0.4); --season-stripe: repeating-linear-gradient(90deg, #ff4d8d 0 14px, #ffb3cd 14px 28px); }
html[data-season="lunar"][data-theme="dark"] { --bg: #100505; --bg-elev: #220c0c; --surface: #220c0c; --surface-2: #301210; --surface-3: #54221c; --border: #54221c; --line-soft: rgba(84, 34, 28, 0.6); --line-strong: rgba(214, 178, 150, 0.5); --text: #fff6e8; --text-muted: #d6b296; --text-faint: #9c7864; --nav: #d6b296; }
html[data-season="lunar"] { --accent: #f2b01e; --pill: #f2b01e; --pill-ink: #060607; --on-accent: #060607; --accent-soft: rgba(242, 176, 30, 0.14); --accent-ring: rgba(242, 176, 30, 0.4); --season-stripe: repeating-linear-gradient(90deg, #f2b01e 0 14px, #b81d1d 14px 28px); }
html[data-season="stpatricks"][data-theme="dark"] { --bg: #050d08; --bg-elev: #0c1b11; --surface: #0c1b11; --surface-2: #122619; --surface-3: #22422c; --border: #22422c; --line-soft: rgba(34, 66, 44, 0.6); --line-strong: rgba(164, 204, 178, 0.5); --text: #f0fcf4; --text-muted: #a4ccb2; --text-faint: #6e927a; --nav: #a4ccb2; }
html[data-season="stpatricks"] { --accent: #22c55e; --pill: #22c55e; --pill-ink: #ffffff; --on-accent: #ffffff; --accent-soft: rgba(34, 197, 94, 0.14); --accent-ring: rgba(34, 197, 94, 0.4); --season-stripe: repeating-linear-gradient(90deg, #22c55e 0 14px, #f0fcf4 14px 28px); }
html[data-season="summer"][data-theme="dark"] { --bg: #050c10; --bg-elev: #0c1920; --surface: #0c1920; --surface-2: #12242e; --surface-3: #223e4c; --border: #223e4c; --line-soft: rgba(34, 62, 76, 0.6); --line-strong: rgba(164, 200, 212, 0.5); --text: #f4fcff; --text-muted: #a4c8d4; --text-faint: #6e929e; --nav: #a4c8d4; }
html[data-season="summer"] { --accent: #facc15; --pill: #facc15; --pill-ink: #060607; --on-accent: #060607; --accent-soft: rgba(250, 204, 21, 0.14); --accent-ring: rgba(250, 204, 21, 0.4); --season-stripe: repeating-linear-gradient(90deg, #facc15 0 14px, #38bdf8 14px 28px); }
html[data-season]:not([data-season=""]) body::before { content: ""; position: fixed; inset: 0 0 auto 0; z-index: 90; height: 3px; background: var(--season-stripe); pointer-events: none; }
html[data-season]:not([data-season=""]) .brand { color: var(--accent); }
html[data-season]:not([data-season=""]) .split-link.active::after, html[data-season]:not([data-season=""]) .split-list .tab.active::after { background: var(--accent); }

/* ---------------------------------------------------------------- section lists sit along the top of the page */
.split { display: block; }
.split-list { position: sticky; top: 0; z-index: 20; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 20px; max-height: none; overflow: visible; padding: 0 var(--gutter); background: var(--bg); border-bottom: 1px solid var(--border); }
.split-list .tabs { flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
.split-label { display: none; }
.split-link, .split-list .tab, .split-list .tabs .tab { flex: none; width: auto; height: 40px; padding: 0; background: none; white-space: nowrap; }
.split-link:hover, .split-link.active, .split-list .tab.active, .split-list .tab:hover, .split-list .tab[aria-selected="true"] { background: none; }
.split-link::after, .split-list .tab::after { left: 0; right: 0; top: auto; bottom: -1px; width: auto; height: 2px; transform: scaleX(0); transform-origin: 0 50%; }
.split-link.active::after, .split-list .tab.active::after, .split-list .tab[aria-selected="true"]::after { transform: scaleX(1); }
.split-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 5px 0; }
.split-tools > *, .split-tools select, .split-tools .tier-select { width: auto; }
.split-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0 0 0 auto; padding: 5px 0; border: 0; font-size: 0.78rem; }
.split-facts dd { margin: 0 12px 0 0; }
.split-facts dd:last-child { margin-right: 0; }
.split-main { min-height: calc(100vh - 60px); padding: 18px var(--gutter) 22px; border-left: 0; gap: 18px; }
.split-main [id], .settings-section[id], .awards-group[id] { scroll-margin-top: 56px; }

/* the Control Center has more sections, so groups go on one row and the open group's sections on the row under it */
.control .split-list { row-gap: 0; }
.control .split-list .panel-tabs-bar, .control .split-group { display: contents; }
.control .split-group-head.split-label, .control .split-group-head.split-label:first-child { order: 0; display: inline-flex; flex: none; align-items: center; width: auto; height: 38px; padding: 0; border: 0; color: var(--text-faint); font-size: 0.8rem; }
.control .split-group-head::after { display: none; }
.control .split-group-head[aria-expanded="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }
.control .split-group-body { order: 1; display: flex; flex: 0 0 calc(100% + var(--gutter) * 2); flex-wrap: wrap; gap: 0 18px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); background: var(--surface); border-top: 1px solid var(--border); }
.control .split-group.is-closed .split-group-body { display: none; }
.control .split-group-body .split-link, .control .split-group-body .tab { height: 34px; font-size: 0.82rem; }
@media (max-width: 1100px) {
  .split-list { position: static; flex-wrap: wrap; overflow-x: visible; column-gap: 16px; }
  .split-list .tabs, .control .split-group-body { flex-wrap: wrap; }
  .split-link, .split-list .tab, .split-list .tabs .tab { height: 34px; }
  .control .split-list { flex-wrap: wrap; overflow-x: visible; }
  .control .split-group-body { overflow-x: visible; }
  .split-tools, .split-facts { flex: none; }
}

/* ---------------------------------------------------------------- room to breathe: text never sits on a panel's edge */
body { line-height: 1.55; }
.card, .content-card, .panel-card, .tool-card, .settings-section { padding: 18px 20px; }
.card-flush { padding: 0; }
.card-header { margin: 0 0 12px; }
.two-col { gap: 16px; }
.panes > * { padding: 18px var(--gutter); }
.stat-tile { padding: 12px 14px; }
.awards-group { margin-top: 26px; }
.awards-group-title { margin-bottom: 12px; }
.awards-grid { gap: 14px; }
.awards-grid > .award-card, .award-card, .award-card:hover, .award-card.has-winner, html[data-glass="on"] .award-card.has-winner { gap: 12px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); }
.award-card header h3 { margin: 0 0 4px; font-size: 0.92rem; line-height: 1.35; }
.award-card header p { line-height: 1.45; }
.card-flush > .card-header, .card-flush > header { padding: 16px 20px; margin: 0; }
.coin-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; margin: 0; }
.coin-facts dt { color: var(--text-faint); font-family: var(--font-label); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.coin-facts dd { margin: 2px 0 0; font-family: var(--font-num); font-size: 0.95rem; }
.coin-note { margin: 12px 0 0; font-size: 0.8rem; }
.result-who { display: flex; align-items: center; gap: 10px; }
.result-names { display: grid; gap: 2px; min-width: 0; }
.result-names small { color: var(--text-faint); }
.result-names > span > small:first-child { display: inline-block; min-width: 52px; font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-theme-form { display: grid; gap: 10px; margin-top: 22px; }
.pill, .badge, .status-pill, .award-tag { padding: 2px 8px; line-height: 1.35; }
.split-tools select, .split-tools .custom-select, .split-tools .tier-select { min-width: 120px; white-space: nowrap; }
.tool-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }

/* ---------------------------------------------------------------- calmer type and one place for long explanations */
body { font-size: 15px; line-height: 1.5; }
main h1 { font-size: 1.6rem; text-transform: none; letter-spacing: 0.005em; }
main h2 { font-size: 1.02rem; font-weight: 600; letter-spacing: 0.005em; text-transform: none; color: var(--text); }
main h3, main h4 { font-size: 0.97rem; }
main p, main li { line-height: 1.55; }
small, .faint, .muted { line-height: 1.45; }
details.hint { display: inline-block; position: static; margin-left: 6px; vertical-align: -3px; font: 400 0.9rem/1.5 var(--font-body); letter-spacing: 0; text-transform: none; }
details.hint > summary { display: grid; place-items: center; width: 18px; height: 18px; list-style: none; color: var(--text-faint); cursor: pointer; transition: color 0.14s ease; }
details.hint > summary::-webkit-details-marker { display: none; }
details.hint > summary:hover, details.hint[open] > summary, details.hint > summary:focus-visible { color: var(--text); }
details.hint > summary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.hint-body { position: fixed; z-index: 90; width: min(320px, calc(100vw - 16px)); padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border-strong, var(--border)); color: var(--text-muted); font-weight: 400; white-space: normal; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4); animation: fade 0.14s ease; }
.hint-body a { color: var(--text); text-decoration: underline; }

.card-header h2, .card-header h3, .pane-head h2 { font-size: 1.02rem; letter-spacing: 0.005em; text-transform: none; color: var(--text); }
.figures dt, .stat-label, .stat-card .label { font-size: 0.7rem; letter-spacing: 0.06em; }
/* The download page: one heading, two buttons, the rest folded away */
.download-now { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 26px 0 28px; border-bottom: 1px solid var(--border); }
.download-now p { margin: 0; color: var(--text-muted); font-size: 1.05rem; }
.download-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.download-buttons a { min-width: 220px; text-align: center; }
.download-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-faint); font-size: 0.86rem !important; }
.download-fold { border-bottom: 1px solid var(--border); }
.download-fold > summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; color: var(--text); font-weight: 600; list-style: none; cursor: pointer; }
.download-fold > summary::-webkit-details-marker { display: none; }
.download-fold > summary::after { content: "+"; color: var(--text-faint); font-size: 1.15rem; line-height: 1; }
.download-fold[open] > summary::after { content: "\2212"; }
.download-fold > :not(summary) { margin-bottom: 18px; }
.download-steps { margin: 0 0 14px; padding-left: 20px; color: var(--text-muted); }
.download-steps li { margin: 4px 0; }
.download-os { display: block; margin: 0 0 6px; color: var(--text); font-weight: 600; }
.download-note { color: var(--text-faint); font-size: 0.82rem; }

/* Square switches: the knob fits the track */
.switch, .switch-row > input.switch { width: 34px; height: 18px; box-shadow: none; }
.switch-row > input.switch::after { top: 2px; left: 2px; width: 12px; height: 12px; background: var(--text-muted); box-shadow: none; transition: transform 0.18s ease, background 0.18s ease; }
.switch-row > input.switch:checked { background: var(--text); box-shadow: none; }
.switch-row > input.switch:checked::after { transform: translateX(16px); background: var(--bg); }
.switch-row > input.switch:active::after { width: 12px; }
.switch-row > input.switch:checked:active::after { transform: translateX(16px); }
.settings-sidebar { gap: 0 14px; }
.friends-search { display: block; width: 100%; max-width: 420px; }
.friends-section { margin-top: 22px; }
.friends-section > h2 { margin: 0 0 6px; font-size: 0.95rem; }
.friend-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.friend-pic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; background: var(--surface-3); color: var(--text-muted); font-weight: 700; font-size: 0.82rem; }
.friend-pic img { width: 100%; height: 100%; object-fit: cover; }
.friend-main { flex: 1; min-width: 0; }
.friend-main strong, .friend-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-main small { color: var(--text-muted); font-size: 0.8rem; }
.friend-main small.is-active { color: var(--text); }
.friend-buttons { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.friend-quiet { padding: 4px 8px; border: 0; background: transparent; color: var(--text-faint); font-size: 0.8rem; cursor: pointer; }
.friend-quiet:hover { color: var(--text); }
.news-friends { display: grid; gap: 6px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
@media (max-width: 560px) { .friend-row { flex-wrap: wrap; } .friend-buttons { width: 100%; justify-content: flex-start; } }
.download-trailer { display: block; width: min(640px, 100%); aspect-ratio: 16 / 9; margin-top: 14px; border: 1px solid var(--border); background: var(--bg-elev); }
.quota-note { margin: 0 0 12px; color: var(--text-muted); font-size: 0.86rem; }
.quota-rules { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 10px 0 14px; }
.quota-rules label { display: grid; gap: 4px; color: var(--text-muted); font-size: 0.8rem; }
.quota-rules input { width: 110px; }
.quota-manage { display: flex; flex-wrap: wrap; gap: 6px; min-width: 240px; }
.quota-manage select { width: auto; min-width: 104px; }
.quota-manage input { width: 72px; }
.join-ask { width: min(400px, calc(100vw - 32px)); padding: 18px; color: var(--text); }
.join-ask::backdrop { background: rgba(0, 0, 0, 0.6); }
.join-ask h2 { margin: 0 0 8px; font-size: 1.05rem; }
.join-ask p { margin: 0 0 12px; color: var(--text-muted); font-size: 0.88rem; }
.join-ask-never { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--text-muted); font-size: 0.88rem; cursor: pointer; }
.join-ask-buttons { display: flex; justify-content: flex-end; gap: 8px; }


/* The one Ranked queue (owner, 2026-11-14): square tiles for the modes, the party with Ready marks. */
.rq-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
.rq-mode { display: block; cursor: pointer; }
.rq-mode input { position: absolute; opacity: 0; pointer-events: none; }
.rq-mode span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line, #2a2a2a); border-radius: 0; background: transparent; }
.rq-mode small { color: var(--muted, #9a9a9a); font-size: .74rem; }
.rq-mode input:checked + span { border-color: var(--text, #fff); background: var(--surface-2, rgba(255,255,255,.06)); }
.rq-mode input:focus-visible + span { outline: 2px solid var(--text, #fff); outline-offset: 2px; }
.rq-mode input:disabled + span { opacity: .55; cursor: default; }
.rq-party { margin: 6px 0 10px; }
.rq-party h3 { font-size: .9rem; margin: 0; }
.rq-fill { display: inline-flex; gap: 6px; align-items: center; font-size: .82rem; }
.team-inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 8px 0; }
.team-inline-form label { display: flex; flex-direction: column; gap: 2px; font-size: .74rem; color: var(--muted, #9a9a9a); }
.team-inline-form input[type=number] { width: 84px; }
.team-inline-form input[name=link] { flex: 1 1 260px; min-width: 0; }
.team-match-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .rq-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Jump highlight (owner, 2026-11-14): the spot a link takes you to lights up for a moment and fades. */
@keyframes eas-jump-flash {
  0%, 35% { background-color: rgba(255, 255, 255, .16); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
  100% { background-color: transparent; box-shadow: 0 0 0 2px transparent; }
}
.jump-flash { animation: eas-jump-flash 3s ease-out 1; scroll-margin: 40vh 0; }
@media (prefers-reduced-motion: reduce) { .jump-flash { animation: none; background-color: rgba(255, 255, 255, .10); outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 2px; } }

/* Profile on a phone (owner, 2026-11-14): one column, the picture on top, nothing running off the side. */
@media (max-width: 560px) {
  .profile-hero { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
  .profile-hero .profile-avatar { justify-self: start; }
  .profile-hero .avatar-xl { width: 72px; height: 72px; font-size: 1.5rem; }
  .profile-hero h1 { font-size: 1.6rem; }
  .profile-identity, .profile-identity > * { min-width: 0; max-width: 100%; }
  .presence { max-width: 100%; min-width: 0; overflow: hidden; }
  .presence * { min-width: 0; }
  .profile-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; }
  .profile-rank-block { grid-column: 1 / -1; flex-wrap: wrap; gap: 6px 12px; }
  .profile-actions { display: flex; flex-wrap: wrap; gap: 6px; }
  .profile-actions > * { flex: 1 1 auto; justify-content: center; }
  .profile-body .tabs { overflow-x: auto; scrollbar-width: none; }
  .profile-body .stat-grid, .profile-body .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-pair { grid-template-columns: minmax(0, 1fr); }
  .profile-hero .status-bubble { position: static; transform: none; display: inline-flex; max-width: 100%; margin: 6px 0 0; }
  .profile-meta > span:first-child::before, .profile-meta > :first-child::before { content: none; }
}

.achievement-more > summary { cursor: pointer; padding: 10px 0 4px; color: var(--text-muted, #9a9a9a); font-size: .84rem; }
.achievement-more[open] > summary { margin-bottom: 6px; }

/* Party invites at the bottom right (owner, 2026-11-14). */
.invite-stack { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: grid; gap: 8px; max-width: min(360px, calc(100vw - 32px)); }
.invite-card { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--panel, #111); border: 1px solid var(--line, #2a2a2a); border-radius: 0; font-size: .86rem; }
.invite-card span { flex: 1; }
.invite-card button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line, #2a2a2a); border-radius: 0; background: transparent; color: inherit; cursor: pointer; }
.invite-card button svg { width: 15px; height: 15px; }
.invite-card .invite-yes:hover { border-color: var(--green, #22c55e); color: var(--green, #22c55e); }
.invite-card .invite-no:hover { border-color: var(--red, #ef4444); color: var(--red, #ef4444); }

/* The chart's dot stays round however wide the chart is. */
.line-chart svg .chart-dot { display: none; }
.chart-pin { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--text, #fff); box-shadow: 0 0 0 3px var(--surface, #000); pointer-events: none; }

/* Inventory pages (owner, 2026-11-14): a Rolimons-style grid. */
.inv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0 0 14px; }
.inv-stats > div { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--border, #2a2a2a); }
.inv-stats span { color: var(--text-muted, #9a9a9a); font-size: .76rem; }
.inv-stats strong { font-size: 1.2rem; }
.inv-sort { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.inv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.inv-card a { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--border, #2a2a2a); color: inherit; text-decoration: none; height: 100%; }
.inv-card a:hover, .inv-card a:focus-visible { border-color: var(--text, #fff); }
.inv-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--surface-2, rgba(255,255,255,.04)); overflow: hidden; }
.inv-pic img { width: 100%; height: 100%; object-fit: contain; }
.inv-pic svg { width: 32px; height: 32px; opacity: .5; }
.inv-qty { position: absolute; right: 6px; top: 6px; font-size: .75rem; padding: 1px 5px; background: var(--bg, #000); border: 1px solid var(--border, #2a2a2a); }
.inv-card strong { font-size: .9rem; overflow-wrap: anywhere; }
.inv-card small { color: var(--text-muted, #9a9a9a); font-size: .76rem; }
.inv-card .pill { justify-self: start; }

/* New flair (owner, 2026-11-14): earned from team ranked, trading and followers. */
.name-squad { --na: #38bdf8; --nb: #a3e635; }
.name-deal { --na: #facc15; --nb: #22c55e; }
.name-fanfare { --na: #f472b6; --nb: #fb923c; }
.pname.name-squad, .pname.name-deal, .pname.name-fanfare { background: linear-gradient(90deg, var(--na), var(--nb)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pname.has-letters:is(.name-squad, .name-deal, .name-fanfare) .pname-letters > span { background-image: linear-gradient(90deg, var(--na), var(--nb)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.avatar.avatar-frame.frame-squad { --frame-ring: linear-gradient(135deg, #38bdf8, #a3e635); --frame-glow: rgba(56, 189, 248, 0.35); }
.avatar.avatar-frame.frame-ledger { --frame-ring: linear-gradient(135deg, #facc15, #16a34a); --frame-glow: rgba(250, 204, 21, 0.3); }
.avatar.avatar-frame.frame-fanclub { --frame-ring: linear-gradient(135deg, #f472b6, #fb923c); --frame-glow: rgba(244, 114, 182, 0.35); }
.profile-hero.banner-squad, .banner-swatch.banner-squad { background: repeating-linear-gradient(90deg, rgba(56, 189, 248, .10) 0 2px, transparent 2px 40px), linear-gradient(120deg, color-mix(in srgb, #38bdf8 22%, var(--surface)), var(--surface) 60%, color-mix(in srgb, #a3e635 16%, var(--surface))); }
.profile-hero.banner-market, .banner-swatch.banner-market { background: repeating-linear-gradient(0deg, rgba(250, 204, 21, .07) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(250, 204, 21, .07) 0 1px, transparent 1px 22px), linear-gradient(160deg, color-mix(in srgb, #16a34a 20%, var(--surface)), var(--surface)); }
.profile-hero.banner-fans, .banner-swatch.banner-fans { background: radial-gradient(circle, rgba(244, 114, 182, .35) 1.5px, transparent 2.5px) 0 0 / 26px 26px, linear-gradient(140deg, color-mix(in srgb, #fb923c 18%, var(--surface)), var(--surface) 70%); }
/* The flair grid: unlocked first, with filters. */
.flair-filter { display: flex; gap: 6px; margin: 0 0 10px; flex-wrap: wrap; }
.flair-filter button { padding: 4px 10px; border: 1px solid var(--border, #2a2a2a); border-radius: 0; background: none; color: inherit; font: inherit; font-size: .8rem; cursor: pointer; }
.flair-filter button[aria-pressed="true"] { border-color: var(--text, #fff); }
.flair-grid[data-show="unlocked"] .flair-choice.is-locked, .flair-grid[data-show="locked"] .flair-choice:not(.is-locked) { display: none; }

/* Bars match the square look (owner, 2026-11-14): progress bars, the head-to-head bar and their fills. */
.level-track-bar, .level-track-bar > *, .h2h-bar, .h2h-bar > *, .achievement-bar, .achievement-bar > *, .goal-bar, .goal-bar > *,
.xp-bar, .xp-bar > *, .play-fill, .play-fill > *, [class*="-bar"] > span, [role="progressbar"], [role="progressbar"] > * { border-radius: 0 !important; }
.pill, .chip, .tag, .badge-chip, .split-count, .flair-new, .row-tag { border-radius: 0; }
.terminal-bar span, .traffic span, .status-dot, .live-dot { border-radius: 50% !important; }  /* dots stay round */

.donate-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid var(--border, #2a2a2a); margin-right: 10px; }
.donate-icon svg { width: 15px; height: 15px; }

/* The 1v1 screen (owner, 2026-11-14): who's ready, the score, then only the buttons that fit. */
.onevone-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.onevone-steps span { padding: 4px 8px; border: 1px solid var(--border, #2a2a2a); font-size: .78rem; color: var(--text-muted, #9a9a9a); }
.onevone-steps span.is-done { color: var(--text, #fff); border-color: var(--text, #fff); }

/* Profile (owner, 2026-11-14): counts open the lists, the menu is square like everything else, an About line. */
.profile-count-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--text) 40%, transparent); color: var(--text-muted); }
.profile-count-link:hover, .profile-count-link:focus-visible { color: var(--text); text-decoration-color: var(--text); }
.profile-menu-list { border-radius: 0 !important; padding: 4px; background: var(--surface, #0b0b0b); box-shadow: none; }
.profile-menu-list > * { border-radius: 0 !important; padding: 9px 12px; font-size: .86rem; }
.profile-menu-list > *:hover, .profile-menu-list > *:focus-visible { background: var(--text, #fff) !important; color: var(--bg, #000) !important; }
.profile-menu-button { border-radius: 0; }
.profile-about { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; font-size: .8rem; color: var(--text-muted); }

/* Hover never hides words (owner, 2026-11-14): when a button fills white, everything inside it turns dark with it. */
.button-secondary:hover *, .button-ghost:hover *, .button-secondary:focus-visible *, .button-ghost:focus-visible * { color: inherit !important; fill: currentColor; }
.button-secondary:hover .pill, .button-ghost:hover .pill, .button-secondary:hover small, .button-ghost:hover small { color: inherit !important; border-color: currentColor; }
.button-secondary:disabled:hover, .button-ghost:disabled:hover { color: var(--text-muted); background-size: 0 100%; }

/* Long rank names fit their boxes (owner, 2026-11-14: "R4 Pub Stomper goes out of the box"). */
.split-tools .tier-select, .split-tools .custom-select, .tier-select select { min-width: 210px; }
.custom-select, .custom-select button, .custom-select-label, .tier-select select { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-menu, .custom-select [role="listbox"] { min-width: 100%; width: max-content; max-width: min(320px, 90vw); }
.custom-select-menu *, .custom-select [role="option"] { white-space: nowrap; }
.rank-tier-name, .tier-name, .ranks-tier h3, .ranks-tier strong { overflow-wrap: anywhere; min-width: 0; }

/* A one-page group (Trading) looks like the other group names, not like a page link (owner, 2026-11-14). */
.control .split-list > .split-solo { order: 0; display: inline-flex; align-items: center; height: 38px; padding: 0; background: none; color: var(--text-faint);
  font-family: var(--font-label); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.control .split-list > .split-solo::after { display: none; }
.control .split-list > .split-solo:hover { color: var(--text); background: none; }
.control .split-list > .split-solo.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); background: none; }

/* Timeline (owner, 2026-11-14): a real line through the moments, oldest at the top. */
.timeline-v2 { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; display: grid; gap: 0; }
.timeline-v2::before { content: ""; position: absolute; left: 17px; top: 14px; bottom: 14px; width: 1px; background: var(--border, #2a2a2a); }
.timeline-v2 li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; }
.timeline-v2 .tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; background: var(--surface, #0b0b0b); border: 1px solid var(--border, #2a2a2a); }
.timeline-v2 .tl-dot svg { width: 13px; height: 13px; }
.timeline-v2 li:last-child .tl-dot { border-color: var(--text, #fff); }
.timeline-v2 strong { font-size: .88rem; font-weight: 600; }
.timeline-v2 .when { color: var(--text-faint); font-size: .8rem; white-space: nowrap; }
/* Host stats: square tiles, numbers first. */
.host-stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; }
.host-stat { padding: 12px 14px; border-radius: 0; background: transparent; transform: none !important; }
.host-stat strong { font-size: 1.5rem; }
.host-stat span { text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
.host-stat.is-hot { border-color: var(--text, #fff); }
.profile-trade { margin-right: 4px; }


/* =====================================================================================================================
   Profile banners, better (owner, 2026-11-14)
   ===================================================================================================================== */
/* Every flat banner gets light from the top, your rank colour in the corner, and a darker floor so words stay readable. */
.profile-hero:not([class*="banner-anim-"]):not([class*="banner-scene-"]) > .hero-art,
.banner-swatch:not([class*="banner-anim-"]):not([class*="banner-scene-"]) > .hero-art {
  display: block;
  background:
    radial-gradient(120% 90% at 88% -10%, color-mix(in srgb, var(--rank-color, #888) 18%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 28%),
    linear-gradient(0deg, rgba(0, 0, 0, .42), transparent 58%);
}
[class*="banner-scene-"] { background-color: #05060a; }
[class*="banner-scene-"] > .hero-art { display: block; }
[class*="banner-scene-"] > .hero-art::before, [class*="banner-scene-"] > .hero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; }

/* Night City: a dusk sky in your rank colour, two rows of towers, lit windows. */
.profile-hero.banner-scene-city, .banner-swatch.banner-scene-city {
  background: radial-gradient(90% 70% at 70% 100%, color-mix(in srgb, var(--rank-color, #6366f1) 45%, transparent), transparent 70%),
              linear-gradient(180deg, #05060f 0%, #0b1030 55%, color-mix(in srgb, var(--rank-color, #6366f1) 35%, #120a24) 100%);
}
.banner-scene-city > .hero-art {
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 33% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 58% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 81% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 30%, #fff 50%, transparent 51%);
  opacity: .9;
}
.banner-scene-city > .hero-art::before {
  background: #0c1024;
  clip-path: polygon(0 100%, 0 62%, 6% 62%, 6% 50%, 11% 50%, 11% 58%, 16% 58%, 16% 40%, 22% 40%, 22% 55%, 28% 55%, 28% 46%, 34% 46%, 34% 60%, 40% 60%, 40% 36%, 45% 36%, 45% 52%, 52% 52%, 52% 44%, 58% 44%, 58% 58%, 64% 58%, 64% 34%, 70% 34%, 70% 50%, 76% 50%, 76% 42%, 83% 42%, 83% 56%, 89% 56%, 89% 46%, 95% 46%, 95% 60%, 100% 60%, 100% 100%);
}
.banner-scene-city > .hero-art::after {
  background: radial-gradient(circle, rgba(255, 214, 120, .55) 0 1px, transparent 1.6px) 3px 4px / 10px 12px, #05060a;
  clip-path: polygon(0 100%, 0 78%, 4% 78%, 4% 66%, 10% 66%, 10% 74%, 15% 74%, 15% 60%, 21% 60%, 21% 72%, 27% 72%, 27% 64%, 33% 64%, 33% 76%, 39% 76%, 39% 58%, 46% 58%, 46% 70%, 51% 70%, 51% 62%, 57% 62%, 57% 74%, 63% 74%, 63% 56%, 69% 56%, 69% 68%, 75% 68%, 75% 61%, 82% 61%, 82% 73%, 88% 73%, 88% 64%, 94% 64%, 94% 77%, 100% 77%, 100% 100%);
  opacity: .95;
}

/* Mountains: a soft sun, three ranges getting darker toward you. */
.profile-hero.banner-scene-peaks, .banner-swatch.banner-scene-peaks {
  background: radial-gradient(30% 45% at 72% 38%, color-mix(in srgb, var(--rank-color, #f59e0b) 55%, #fff3), transparent 70%),
              linear-gradient(180deg, color-mix(in srgb, var(--rank-color, #f59e0b) 22%, #0d1426) 0%, #1a2340 60%, #0b1020 100%);
}
.banner-scene-peaks > .hero-art { background: linear-gradient(transparent 45%, rgba(40, 52, 88, .9) 45.2%); clip-path: polygon(0 100%, 0 58%, 12% 44%, 22% 54%, 35% 36%, 47% 52%, 58% 40%, 70% 55%, 82% 42%, 100% 56%, 100% 100%); }
.banner-scene-peaks > .hero-art::before { background: #172036; clip-path: polygon(0 100%, 0 70%, 9% 60%, 20% 72%, 31% 56%, 44% 70%, 56% 58%, 66% 71%, 79% 60%, 90% 70%, 100% 63%, 100% 100%); }
.banner-scene-peaks > .hero-art::after { background: #0a0f1d; clip-path: polygon(0 100%, 0 84%, 14% 74%, 26% 84%, 40% 72%, 52% 85%, 63% 76%, 77% 86%, 88% 77%, 100% 85%, 100% 100%); }

/* Deep Sea: light rays from the surface, a glow below, bubbles. */
.profile-hero.banner-scene-ocean, .banner-swatch.banner-scene-ocean {
  background: radial-gradient(70% 60% at 50% 115%, color-mix(in srgb, var(--rank-color, #06b6d4) 40%, transparent), transparent 70%),
              linear-gradient(180deg, #0b3b5c 0%, #062238 45%, #020b16 100%);
}
.banner-scene-ocean > .hero-art { background: repeating-linear-gradient(105deg, rgba(180, 230, 255, .10) 0 18px, transparent 18px 70px); -webkit-mask: linear-gradient(180deg, #000, transparent 80%); mask: linear-gradient(180deg, #000, transparent 80%); }
.banner-scene-ocean > .hero-art::before { background: radial-gradient(3px 3px at 18% 70%, rgba(255,255,255,.5) 50%, transparent 52%), radial-gradient(2px 2px at 22% 55%, rgba(255,255,255,.4) 50%, transparent 52%), radial-gradient(4px 4px at 64% 78%, rgba(255,255,255,.35) 50%, transparent 52%), radial-gradient(2px 2px at 67% 60%, rgba(255,255,255,.45) 50%, transparent 52%), radial-gradient(3px 3px at 88% 72%, rgba(255,255,255,.3) 50%, transparent 52%); }
.banner-scene-ocean > .hero-art::after { background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 3px); }

/* Arena Lights: two spotlights sweep in from the top corners over a crowd. */
.profile-hero.banner-scene-arena, .banner-swatch.banner-scene-arena { background: linear-gradient(180deg, #0a0a12 0%, #10101c 70%, #050508 100%); }
.banner-scene-arena > .hero-art {
  background: conic-gradient(from 150deg at 8% -10%, transparent 0deg, color-mix(in srgb, var(--rank-color, #fff) 32%, transparent) 14deg, transparent 30deg),
              conic-gradient(from 180deg at 92% -10%, transparent 0deg, rgba(255, 255, 255, .22) 14deg, transparent 30deg);
}
.banner-scene-arena > .hero-art::before { top: auto; height: 26%; background: radial-gradient(circle at 50% 100%, #000 62%, transparent 64%) 0 0 / 22px 30px repeat-x, radial-gradient(circle at 50% 100%, #07070b 62%, transparent 64%) 11px 8px / 22px 30px repeat-x; }
.banner-scene-arena > .hero-art::after { background: radial-gradient(1.5px 1.5px at 20% 75%, rgba(255,255,255,.9) 50%, transparent 52%), radial-gradient(1.5px 1.5px at 47% 80%, rgba(255,255,255,.8) 50%, transparent 52%), radial-gradient(1.5px 1.5px at 73% 77%, rgba(255,255,255,.9) 50%, transparent 52%); }

/* Magma: black rock split by glowing cracks, heat rising from the floor. */
.profile-hero.banner-scene-magma, .banner-swatch.banner-scene-magma {
  background: radial-gradient(80% 60% at 50% 120%, rgba(255, 98, 0, .55), transparent 70%), linear-gradient(180deg, #120807 0%, #1c0a06 60%, #2a0d04 100%);
}
.banner-scene-magma > .hero-art {
  background: linear-gradient(28deg, transparent 47%, rgba(255, 140, 40, .85) 48%, rgba(255, 210, 120, .9) 48.6%, rgba(255, 120, 20, .8) 49.2%, transparent 50.5%) 0 0 / 260px 140px,
              linear-gradient(-36deg, transparent 47%, rgba(255, 110, 20, .7) 48.5%, transparent 50%) 40px 30px / 200px 120px;
  filter: drop-shadow(0 0 6px rgba(255, 110, 20, .8));
  -webkit-mask: linear-gradient(0deg, #000 10%, transparent 85%); mask: linear-gradient(0deg, #000 10%, transparent 85%);
}
.banner-scene-magma > .hero-art::after { background: radial-gradient(2px 2px at 30% 60%, #ffb067 50%, transparent 52%), radial-gradient(2px 2px at 55% 40%, #ff8a3d 50%, transparent 52%), radial-gradient(1.5px 1.5px at 78% 55%, #ffd29a 50%, transparent 52%); }

/* Galaxy: a spiral glow in your rank colour on a field of stars. */
.profile-hero.banner-scene-galaxy, .banner-swatch.banner-scene-galaxy { background: radial-gradient(60% 80% at 72% 50%, color-mix(in srgb, var(--rank-color, #a855f7) 30%, transparent), transparent 70%), #04030a; }
.banner-scene-galaxy > .hero-art {
  background: conic-gradient(from 0deg at 72% 50%, transparent 0deg, color-mix(in srgb, var(--rank-color, #a855f7) 45%, transparent) 40deg, transparent 90deg, rgba(120, 180, 255, .35) 180deg, transparent 230deg, color-mix(in srgb, var(--rank-color, #a855f7) 40%, transparent) 300deg, transparent 350deg);
  -webkit-mask: radial-gradient(38% 60% at 72% 50%, #000 0%, transparent 70%); mask: radial-gradient(38% 60% at 72% 50%, #000 0%, transparent 70%);
  filter: blur(6px);
}
.banner-scene-galaxy > .hero-art::before { background: radial-gradient(8% 14% at 72% 50%, rgba(255,255,255,.85), transparent 70%); filter: blur(4px); }
.banner-scene-galaxy > .hero-art::after {
  background: radial-gradient(1px 1px at 8% 20%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 22% 70%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 37% 35%, #fff 50%, transparent 52%),
              radial-gradient(1.4px 1.4px at 48% 82%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 90% 15%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 95% 78%, #fff 50%, transparent 52%),
              radial-gradient(1px 1px at 60% 12%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 15% 90%, #fff 50%, transparent 52%);
}

/* New name gradients. */
.name-ice { --na: #e0f2fe; --nb: #38bdf8; }
.name-toxic { --na: #a3e635; --nb: #22c55e; }
.name-sunrise { --na: #fde047; --nb: #f97316; }
.name-royal { --na: #c084fc; --nb: #6366f1; }
.name-holo { --na: #67e8f9; --nb: #f0abfc; }
.pname.name-ice, .pname.name-toxic, .pname.name-sunrise, .pname.name-royal, .pname.name-holo { background: linear-gradient(90deg, var(--na), var(--nb)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pname.has-letters:is(.name-ice, .name-toxic, .name-sunrise, .name-royal, .name-holo) .pname-letters > span { background-image: linear-gradient(90deg, var(--na), var(--nb)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pname.name-holo { background-image: linear-gradient(90deg, #67e8f9, #a78bfa, #f0abfc, #67e8f9); background-size: 200% 100%; }

/* The flair picker: names big enough to judge, tiles evenly sized. */
.flair-grid .flair-choice { min-height: 96px; }
.flair-name .pname { font-size: 1.15rem; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flair-choice .banner-swatch { display: block; position: relative; overflow: hidden; height: 64px; border-radius: 0; }
.flair-choice small { font-size: .74rem; }

/* Profile customise: the Save bar sticks to the bottom of the screen (owner, 2026-11-14). */
.customize-actions[data-save-bar] { grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 8px -4px 0; padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--border); box-shadow: 0 -12px 28px rgba(0, 0, 0, .35); }
.customize-actions[data-save-bar] .save-state { margin-right: auto; color: var(--text-faint); font-size: .85rem; }
.customize-actions[data-save-bar].is-dirty { border-color: var(--line-strong); }
.customize-actions[data-save-bar].is-dirty .save-state { color: var(--text); font-weight: 600; }
.customize-actions[data-save-bar].is-dirty .save-state::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: #f5b83d; vertical-align: 1px; }

/* ---------------------------------------------------------------- hover, settled (owner, 2026-11-14)
   No more swipe: an older rule could wipe the swipe's fill while the text still turned dark, so words vanished on
   hover. Now hover only lightens the background a touch; the words keep their colour and nothing jumps. */
.button-secondary, .button-ghost, .side-link, .split-link, .split-list .tab, a.row, summary.row, .row-button, .account-menu-link, .footer-links a, .pagination a, .button, .button-primary {
  background-image: none; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button-secondary:hover, .button-ghost:hover { color: var(--text); background-color: var(--surface-hover); border-color: var(--line-strong); transform: none; }
.side-link:hover, .split-link:hover, .split-list .tab:hover, a.row:hover, summary.row:hover, .row-button:hover, .account-menu-link:hover, .pagination a:hover,
.tab:hover, .developer-tab:hover { color: var(--text); background-color: var(--surface-hover); }
.button:hover, .button-primary:hover, .button:hover:not(:disabled) { color: var(--pill-ink); background-color: color-mix(in srgb, var(--pill) 84%, var(--text-faint)); transform: none; box-shadow: none; filter: none; }
.button-danger:hover, .button-warning:hover, .button-success:hover, .button-info:hover { transform: none; }
.button-secondary:disabled:hover, .button-ghost:disabled:hover { color: var(--text-muted); background-color: transparent; }
.button:disabled:hover, .button-primary:disabled:hover { background-color: var(--pill); }

/* Ticket questions: the question column never gets squeezed to a sliver (owner, 2026-11-14). */
.ticket-questions { display: block; overflow-x: auto; }
.ticket-questions th:first-child, .ticket-questions td:first-child { min-width: 200px; }
.ticket-questions select { max-width: 170px; }
.ticket-questions-note { margin: 6px 0 0; font-size: 0.82rem; }
/* Long commands in a code label wrap instead of running off the page. */
code.pill { white-space: normal; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- Control Center: every tool listed down the side
   (owner, 2026-11-15: "much easier to navigate, so I know where everything is"). This replaces the two-row bar on top:
   all groups are open at once, the current tool is marked, and Search tools opens Ctrl+K. */
.split.control { display: grid; grid-template-columns: 214px minmax(0, 1fr); align-items: start; }
.control > .split-list { position: sticky; top: 0; z-index: 5; display: block; align-self: start; height: 100vh; max-height: 100vh; overflow-y: auto; padding: 14px 10px 28px; background: var(--bg); border-right: 1px solid var(--border); border-bottom: 0; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.control .control-rail-top { display: grid; gap: 8px; margin-bottom: 12px; }
.control .control-home { display: block; padding: 2px 8px; color: var(--text); font: 700 0.98rem/1.2 var(--font-title); text-decoration: none; }
.control .control-home.active { box-shadow: inset 2px 0 0 var(--accent); }
.control .control-find, .control-search { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font: inherit; font-size: 0.8rem; text-align: left; cursor: pointer; transition: border-color 0.16s ease, color 0.16s ease; }
.control .control-find:hover, .control .control-find:focus-visible, .control-search:hover, .control-search:focus-visible { border-color: var(--text-muted); color: var(--text); }
.control .control-find svg, .control-search svg { flex: none; width: 14px; height: 14px; }
.control .control-find kbd, .control-search kbd { margin-left: auto; font-size: 0.68rem; }
.control .control-all { display: none; }
.control .split-list .panel-tabs-bar, .control .split-list .tabs, .control .split-group { display: block; }
.control .split-list .panel-tabs-bar { border: 0; padding: 0; margin: 0; }
.control .split-group { margin: 0 0 12px; }
.control .split-group-head.split-label, .control .split-group-head.split-label:first-child, .control .split-group-head[aria-expanded="true"] { display: block; width: 100%; height: auto; padding: 6px 8px 5px; border: 0; background: none; box-shadow: none; color: var(--text-faint); font: 600 0.66rem/1 var(--font-title); letter-spacing: 0.11em; text-transform: uppercase; text-align: left; cursor: default; }
.control .split-group-body, .control .split-group.is-closed .split-group-body { display: grid; flex: none; gap: 1px; margin: 0; padding: 0; background: none; border: 0; }
.control .split-group-body .split-link, .control .split-group-body .tab, .control .split-list .tabs .tab { display: flex; align-items: center; gap: 6px; width: 100%; height: 29px; padding: 0 8px; border: 0; overflow: hidden; color: var(--text-muted); font-size: 0.84rem; text-align: left; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; transition: background 0.14s ease, color 0.14s ease; }
.control .split-group-body .split-link:hover, .control .split-group-body .tab:hover { background: var(--surface-hover); color: var(--text); }
.control .split-group-body .split-link.active, .control .split-group-body .tab.active, .control .split-group-body .tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.control .split-link::after, .control .split-list .tab::after { display: none; }
.control .split-group-body .tab svg { display: none; }
.control .split-group-body .pill { margin-left: auto; }
.control > .split-main { min-width: 0; min-height: 100vh; }

/* its home page: what each tool is for */
.control-search { height: 44px; max-width: 560px; padding: 0 14px; font-size: 0.92rem; }
.control-group, .control-recent { display: grid; gap: 8px; }
.control-group-title { margin: 0; color: var(--text-faint); font: 600 0.7rem/1 var(--font-title); letter-spacing: 0.11em; text-transform: uppercase; }
.control-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.control-tile { display: grid; gap: 4px; align-content: start; min-height: 62px; padding: 12px 14px; border: 1px solid var(--border); background: var(--surface); color: inherit; text-decoration: none; transition: border-color 0.16s ease, background 0.16s ease; }
.control-tile:hover, .control-tile:focus-visible { border-color: var(--text-muted); background: var(--surface-2); }
.control-tile strong { font: 700 0.95rem/1.2 var(--font-title); }
.control-tile small { color: var(--text-muted); font-size: 0.8rem; line-height: 1.35; }
.control-recent .control-tile { min-height: 0; }

/* where the search sent you: marked for a moment */
.find-flash { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Command access */
.command-filter { width: min(260px, 100%); height: 32px; padding: 0 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 0.85rem; }
.command-group { margin: 14px 0 4px; color: var(--text-faint); font: 600 0.7rem/1 var(--font-title); letter-spacing: 0.11em; text-transform: uppercase; }
.command-rows .trade-record > div { flex: 1; min-width: 0; }
.command-rows .faint { margin-left: 6px; }

@media (max-width: 1000px) {
  .split.control { display: block; }
  .control > .split-list { position: static; height: auto; max-height: none; padding: 10px var(--gutter); border-right: 0; border-bottom: 1px solid var(--border); }
  .control .control-rail-top { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; margin-bottom: 0; }
  .control .control-all { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border: 1px solid var(--border); background: none; color: var(--text); font: inherit; font-size: 0.8rem; cursor: pointer; }
  .control .control-rail-body { display: none; padding-top: 12px; columns: 2 170px; column-gap: 16px; }
  .control > .split-list.is-open .control-rail-body { display: block; }
  .control .split-group { break-inside: avoid; }
}

/* Minecraft page (owner, 2026-11-17): how to join and the live map, square console look */
.mc-hero { padding: 8px 0 18px; }
.mc-hero h1 { margin: 6px 0 4px; }
.mc-panel { border: 1px solid var(--border); padding: 18px; margin-bottom: 18px; }
.mc-panel h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1rem; }
.mc-panel h2 svg { width: 18px; height: 18px; }
.mc-status { display: flex; align-items: center; gap: 8px; font-family: var(--font-title); margin-bottom: 12px; }
.mc-addresses { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mc-steps { margin: 0; padding-left: 20px; color: var(--text-muted); line-height: 1.7; }
.mc-note { margin: 8px 0 0; font-size: 0.8rem; }
.mc-sections { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.mc-sections a { display: flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mc-sections a.active { color: var(--text); border-bottom-color: currentColor; }
.mc-sections a svg { width: 16px; height: 16px; }
.mc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mc-head h2 { margin: 0 0 4px; font-size: 1.1rem; }
.mc-head p { margin: 0; }
.mc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-top: 16px; }
.mc-facts div { border: 1px solid var(--border); padding: 10px 12px; }
.mc-facts b { display: block; font-family: var(--font-title); margin-bottom: 2px; }
.mc-facts span { color: var(--text-muted); font-size: 0.85rem; }
/* The server guide (2026-11-17): square cards, a line icon per card, commands in a tight two-column list. */
#mc-guide h2 { display: flex; align-items: center; gap: 8px; }
#mc-guide h2 svg { width: 18px; height: 18px; }
.mc-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin-top: 12px; }
.mc-guide article { border: 1px solid var(--border); padding: 12px 14px; }
.mc-guide h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--font-title); font-size: 0.95rem; }
.mc-guide h3 svg { width: 16px; height: 16px; flex: none; }
.mc-guide h3 .faint { margin-left: auto; display: inline-flex; cursor: help; }
.mc-guide p { margin: 0 0 6px; font-size: 0.875rem; }
.mc-guide p:last-child { margin-bottom: 0; }
.mc-guide p.faint { color: var(--text-muted); font-size: 0.8rem; }
.mc-cmds { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 4px; }
.mc-cmds li { display: grid; grid-template-columns: 8.5em 1fr; align-items: baseline; gap: 8px; font-size: 0.85rem; }
.mc-cmds code { font-size: 0.8rem; }
.mc-cmds span { color: var(--text-muted); }
