/* dubtrackr network hub: a Discord-style rail around a search-first tracker, with a live board of every game.
   Tokens are the viewer's Dubtrackr app theme (web_assets/hub-themes.js); these defaults are Dubtrackr Blue.
   Type: Sora (display) and Manrope (body), self-hosted from the app. */

@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 100 800; src: url(/assets/fonts/sora-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 100 800; src: url(/assets/fonts/sora-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@property --tint { syntax: "<color>"; inherits: true; initial-value: #3889FF; }

:root {
  color-scheme: dark;
  /* Dubtrackr Blue (the app's neutral base, owner pick C). hub-themes.js overrides these per viewer. */
  --ground: #101316;
  --rail: #15171C;
  --surface: #1C1F24;
  --surface-2: #23272C;
  --raised: #31363D;
  --line: #2D3239;
  --edge: #434851;
  --text: #F2F4F7;
  --text-2: #C6CBD2;
  --muted: #B0B6BF;
  --accent: #3889FF;
  --accent-soft: #7BB1FF;
  --accent-ink: #0D0F12;
  --focus: #3889FF;
  --btn-fill: #2F73D6;
  --btn-hover: #2A67C1;

  /* Fixed in every theme: game identity and game facts never take the viewer's colours. Each hue clears 4.5:1 as
     monogram text on its own tint (up to 24% over surface) in every app theme (scripts/check-hub.mjs). */
  --gold: #FFD45C;
  --gold-ink: #241A00;
  --gold-fill: #FFD45C;
  --good: #5FE3A1;
  --danger: #FF9E92;
  --g-droid: #FF9661;
  --g-br: #FFE173;
  --g-creative: #D0A6FF;
  --g-rivals: #FF919D;
  --g-minecraft: #86DD68;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --rail-w: 76px;
  --bar-h: 64px;
  --side-w: 340px;
  --r: 16px;
  --r-sm: 11px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 22px 48px -20px rgba(0, 0, 0, 0.8), 0 4px 10px -4px rgba(0, 0, 0, 0.5);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--edge) var(--ground); scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  --tint: var(--accent);
  --tint-text: var(--accent);
  --tint-fill: var(--btn-fill);
  --tint-fill-hover: var(--btn-hover);
  --tint-ink: #fff;
  margin: 0; min-height: 100vh; color: var(--text-2);
  background:
    radial-gradient(90% 1100px at 70% -200px, color-mix(in srgb, var(--tint) 24%, transparent) 0%, transparent 70%) no-repeat,
    var(--ground);
  font: 400 16px/1.55 var(--font-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: --tint 600ms var(--ease);
}
::selection { background: color-mix(in srgb, var(--accent) 42%, transparent); color: var(--text); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--edge); border-radius: 8px; border: 3px solid var(--ground); }
a { color: var(--accent-soft); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
input, button, select, textarea { font: inherit; color: inherit; caret-color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); margin: 0; text-wrap: balance; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--btn-fill); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- Frame: rail + main ---------- */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }

.rail {
  position: sticky; top: 0; height: 100vh; z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 0 14px; background: var(--rail); border-right: 1px solid var(--line);
}
.rail-sep { width: 32px; height: 2px; border-radius: 2px; background: var(--line); margin: 4px 0; flex: none; }
.rail-grow { flex: 1; }
.ri {
  --h: var(--accent);
  position: relative; flex: none; width: 48px; height: 48px; border-radius: 24px;
  display: grid; grid-template: 100% / 100%; place-items: center;
  background: var(--surface); color: var(--text-2);
  font: 800 15px/1 var(--font-display); letter-spacing: -0.02em;
  border: 0; padding: 0; cursor: pointer;
  transition: border-radius 220ms var(--ease), background-color 220ms var(--ease), color 220ms var(--ease);
}
.ri:hover, .ri:focus-visible, .ri[aria-current] { border-radius: 15px; background: color-mix(in srgb, var(--h) 24%, var(--surface)); color: var(--text); text-decoration: none; }
.ri.game { color: var(--h); background: color-mix(in srgb, var(--h) 12%, var(--surface)); }
.ri.game:hover, .ri.game[aria-current] { color: var(--h); background: color-mix(in srgb, var(--h) 20%, var(--surface)); }
.ri.home { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.ri.home img { width: 28px; height: 28px; }
.ri.soon::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--edge); border: 3px solid var(--rail); }
.ri.pro { --h: var(--gold); color: var(--gold); }
.ri.pro:hover, .ri.pro[aria-current] { color: var(--gold); }
.ri .icon { width: 22px; height: 22px; }
/* The pill: Discord's selection marker, on the rail's left edge. */
.ri::before { content: ""; position: absolute; left: -14px; top: 6px; width: 4px; height: 36px; border-radius: 0 4px 4px 0; background: var(--text); transform: scaleY(0); transition: transform 220ms var(--ease); }
.ri:hover::before { transform: scaleY(.5); }
.ri[aria-current]::before { transform: none; }
.tip {
  position: absolute; left: 62px; top: 50%; z-index: 5;
  display: grid; gap: 3px; min-width: max-content;
  padding: 9px 12px; border-radius: 9px; background: #0A0B0D; color: var(--text);
  font: 700 14px/1.15 var(--font-body); letter-spacing: 0; text-align: left;
  box-shadow: var(--shadow); pointer-events: none;
  opacity: 0; transform: translate(-4px, -50%); transition: opacity 140ms var(--ease), transform 140ms var(--ease);
}
.tip small { color: var(--muted); font-weight: 600; font-size: 12px; }
.ri:hover .tip, .ri:focus-visible .tip { opacity: 1; transform: translate(0, -50%); }
.rail-menu { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px; height: var(--bar-h); padding: 0 28px;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar-where { display: flex; align-items: center; gap: 10px; font: 700 17px/1 var(--font-display); color: var(--text); white-space: nowrap; }
.bar-where .wordmark { display: none; }
.bar-search { flex: 1; max-width: 520px; margin-left: auto; }
.bar-account { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.bar-search + .bar-account { margin-left: 0; }
.page-home .bar-search { visibility: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent;
  font: 700 15px/1 var(--font-body); white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: transform 120ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
/* Deep fill: white text passes AA in every app theme (hub-themes.js). */
.btn-fill { background: var(--btn-fill); color: #fff; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .75); }
.btn-fill:hover { background: var(--btn-hover); color: #fff; }
.btn-quiet { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-quiet:hover { background: var(--raised); border-color: var(--edge); color: var(--text); }
.btn-gold { background: var(--gold-fill); color: var(--gold-ink); }
.btn-gold:hover { background: #FFE08A; color: var(--gold-ink); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Search ---------- */
.search {
  display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 6px 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: 600 15px/1 var(--font-body); }
.search input::placeholder { color: var(--muted); font-weight: 500; }
.search .icon { color: var(--muted); }
.search kbd { font: 700 12px/1 var(--font-body); color: var(--muted); border: 1px solid var(--edge); border-radius: 6px; padding: 4px 7px; margin-right: 6px; }
.search-lg { height: 64px; padding: 0 8px 0 20px; border-radius: 16px; border-color: var(--edge); box-shadow: var(--shadow); }
.search-lg input { font-size: 18px; }
.search-lg .icon { width: 22px; height: 22px; }
.search-lg .btn { height: 48px; padding: 0 22px; border-radius: 11px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  --h: var(--accent);
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  font: 700 13.5px/1 var(--font-body); cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}
.chip:hover { border-color: var(--edge); color: var(--text); }
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--h) 16%, var(--surface)); border-color: color-mix(in srgb, var(--h) 60%, transparent); color: var(--text); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--h); }

/* ---------- Game monogram ---------- */
.glyph {
  --h: var(--accent);
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font: 800 14px/1 var(--font-display); letter-spacing: -0.02em; color: var(--h);
  background: color-mix(in srgb, var(--h) 12%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 36%, transparent);
}
.glyph.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 19px; }
.glyph.xl { width: 84px; height: 84px; border-radius: 22px; font-size: 28px; }
.glyph.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 11.5px; }

.state { display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px/1 var(--font-body); color: var(--muted); white-space: nowrap; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state.live { color: var(--good); }

/* ---------- Page layout ---------- */
.page { width: 100%; max-width: 1400px; padding: 32px 28px 0; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); gap: 28px; align-items: start; }
.home-main { min-width: 0; display: grid; gap: 40px; }
.home-side { display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 22px; letter-spacing: -0.025em; }
.section-head a { font: 700 14px/1 var(--font-body); white-space: nowrap; }
.lede { font-size: 17px; color: var(--text-2); max-width: 60ch; }

/* Hero: the search is the thesis. */
.hero { padding: 26px 0 4px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: var(--tint-text); transition: color 600ms var(--ease); }
.hero .search-lg .btn-fill { background: var(--tint-fill); color: var(--tint-ink); transition: background-color 600ms var(--ease), color 600ms var(--ease); }
.hero .search-lg .btn-fill:hover { background: var(--tint-fill-hover); color: var(--tint-ink); }
.hero .lede { margin-top: 14px; }
.hero form { margin-top: 26px; max-width: 760px; }
.hero .chips { margin-top: 14px; }

/* ---------- The results board ---------- */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.board-top h2 { font-size: 18px; }
.board-top .when { font: 600 13px/1 var(--font-body); color: var(--muted); }
.board-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; padding: 10px 22px; font: 800 11.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.board-cols span:last-child { text-align: right; }
.result {
  --h: var(--accent);
  position: relative; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; align-items: center;
  padding: 16px 22px; border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit; text-align: left; cursor: pointer;
  transition: background-color 240ms var(--ease), opacity 240ms var(--ease);
}
.result:first-of-type { border-top: 0; }
.result:hover { background: color-mix(in srgb, var(--h) 6%, var(--surface-2)); }
.result[aria-pressed="true"] { background: color-mix(in srgb, var(--h) 12%, var(--surface-2)); }
.board:has(.result:hover) .result:not(:hover):not([aria-pressed="true"]) { opacity: .62; }
.result .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.result .who b { display: block; color: var(--text); font: 700 16.5px/1.2 var(--font-display); letter-spacing: -0.015em; }
.result .who .state { margin-top: 6px; }
.result .what { color: var(--text); font-weight: 700; font-size: 15px; line-height: 1.35; }
.result .what small { display: block; margin-top: 3px; color: var(--muted); font-weight: 600; font-size: 13px; }
.result .next { text-align: right; }
.count { display: block; font: 800 clamp(24px, 2.4vw, 32px)/1 var(--font-display); letter-spacing: -0.035em; color: var(--text); font-variant-numeric: tabular-nums; }
.count .u { font-size: .62em; font-weight: 700; color: var(--text-2); margin: 0 .18em 0 .04em; letter-spacing: 0; }
.count.later { color: var(--text-2); font-size: clamp(20px, 2vw, 26px); }
.result .next small { display: block; margin-top: 6px; color: var(--muted); font-weight: 600; font-size: 13px; }
.result[aria-pressed="true"] .glyph { box-shadow: inset 0 0 0 1px var(--h), 0 0 0 4px color-mix(in srgb, var(--h) 20%, transparent); }
.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.board-foot a { font-weight: 700; }

/* ---------- Top lists ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.panel-head h3 { font-size: 17px; }
.panel-head a { font: 700 13.5px/1 var(--font-body); white-space: nowrap; }
.tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.tab { --h: var(--accent); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 0; background: none; color: var(--muted); font: 700 13.5px/1 var(--font-body); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; transition: color 160ms var(--ease), box-shadow 160ms var(--ease); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--h); }
.tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--h); }
.rows { display: grid; gap: 6px; padding: 12px; }
.row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; background: var(--surface-2); color: inherit; }
a.row:hover { background: var(--raised); text-decoration: none; }
.row .place { font: 800 16px/1 var(--font-display); color: var(--text-2); text-align: center; }
.row .place.first { color: var(--gold); }
.row .nm { min-width: 0; }
.row .nm b { display: block; color: var(--text); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .nm span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.row .val { text-align: right; font: 800 17px/1 var(--font-display); color: var(--text); }
.row .val small { display: block; margin-top: 4px; font: 700 11.5px/1 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.trade { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 8px; padding: 11px 14px; border-radius: 11px; background: var(--surface-2); }
.trade .side { min-width: 0; }
.trade .side:last-child { text-align: right; }
.trade b { display: block; color: var(--text); font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.trade .icon { color: var(--muted); width: 18px; height: 18px; margin: 0 auto; }
.trade .lbl { font: 800 10.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- Game directory ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tile {
  --h: var(--accent);
  display: flex; flex-direction: column; gap: 12px; min-height: 196px; padding: 18px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: inherit;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease), transform 200ms var(--ease);
}
.tile:hover { border-color: color-mix(in srgb, var(--h) 55%, var(--line)); background: color-mix(in srgb, var(--h) 6%, var(--surface)); text-decoration: none; transform: translateY(-2px); }
.tile b { color: var(--text); font: 700 16.5px/1.22 var(--font-display); letter-spacing: -0.015em; }
.tile ul { display: grid; gap: 5px; font-size: 13.5px; color: var(--text-2); }
.tile .go { margin-top: auto; font: 700 13.5px/1.2 var(--font-body); color: var(--accent-soft); }
.tile.soon b { color: var(--text-2); }

/* ---------- Side column: the bot beside the games ---------- */
.card { padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.card h2, .card h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.card > p { margin-top: 8px; font-size: 14.5px; }
.card .btns { display: grid; gap: 8px; margin-top: 18px; }
.bot-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--accent-soft); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.bot-mark .icon { width: 19px; height: 19px; }
.groups { display: grid; gap: 10px; margin-top: 16px; }
.groups li { display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 4px 10px; align-items: center; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.groups i { grid-column: 1; height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 80%, transparent); transform-origin: left; }
.groups b { grid-column: 2; grid-row: 1 / span 2; text-align: right; color: var(--text); font: 700 14px/1 var(--font-display); }
.chans { display: grid; gap: 2px; margin-top: 12px; }
.chans a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: 14.5px; }
.chans a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.chans .hash { color: var(--muted); font: 700 17px/1 var(--font-display); width: 16px; text-align: center; }

/* ---------- Bands: bot, app and Pro further down ---------- */
.band { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 34px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.band h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.band .lede { margin-top: 12px; font-size: 16px; }
.band .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; margin-top: 22px; }
.feats li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 10px; font-size: 14px; }
.feats .icon { grid-row: 1 / span 2; width: 20px; height: 20px; color: var(--accent-soft); margin-top: 1px; }
.feats b { color: var(--text); font-size: 15px; }
code, .cmd { font: 600 13px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--accent-soft); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }

/* A Discord message drawn in our own components (never a screenshot of Discord). */
.chat { display: grid; gap: 14px; }
.msg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
.msg .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-fill); }
.msg .av img { width: 24px; height: 24px; }
.msg .by { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 700; font-size: 14.5px; }
.msg .by .appt { font: 800 11px/1 var(--font-body); color: #fff; background: var(--btn-fill); padding: 3px 5px; border-radius: 4px; letter-spacing: .03em; }
.embed { --h: var(--accent); position: relative; margin-top: 6px; padding: 12px 14px 12px 17px; border-radius: 9px; background: var(--ground); border: 1px solid var(--line); }
.embed::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 9px 0 0 9px; background: var(--h); }
.embed .t { color: var(--text); font-weight: 800; font-size: 14px; }
.embed .d { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.embed .acts { display: flex; gap: 6px; margin-top: 10px; }
.embed .acts span { font: 700 12px/1 var(--font-body); padding: 7px 10px; border-radius: 6px; background: var(--raised); color: var(--text); }
.embed .acts span:first-child { background: var(--btn-fill); color: #fff; }

.duo-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.app-card, .pro-card { padding: 30px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.app-card h2, .pro-card h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.03em; }
.app-card .mods { display: grid; gap: 10px; margin: 4px 0 6px; }
.app-card .mods li { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 15px; }
.app-card .btn, .pro-card .btn { align-self: flex-start; margin-top: auto; }
.pro-card { border-color: color-mix(in srgb, var(--gold) 34%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 8%, var(--surface)), var(--surface) 70%); }
.pro-card h2 { display: flex; align-items: center; gap: 10px; }
.pro-card h2 .icon { color: var(--gold); width: 24px; height: 24px; }
.ticks { display: grid; gap: 9px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-weight: 600; font-size: 15px; }
.ticks .icon { color: var(--good); width: 18px; height: 18px; margin-top: 2px; }
.pro-card .ticks .icon { color: var(--gold); }

/* ---------- Footer ---------- */
.foot { margin-top: 72px; border-top: 1px solid var(--line); padding: 40px 28px 44px; font-size: 14px; color: var(--muted); }
.foot-in { max-width: 1400px; }
.foot-cols { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot h2 { margin: 0 0 12px; font: 700 14px/1 var(--font-display); color: var(--text); letter-spacing: 0; }
.foot ul { display: grid; gap: 9px; }
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font: 700 20px/1 var(--font-display); letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand b { color: var(--accent); font-weight: 700; }
.foot-about p { margin-top: 12px; max-width: 32ch; color: var(--text-2); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; }

/* ---------- Account: avatar menu ---------- */
.who-btn { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; }
.who-btn:hover { border-color: var(--edge); }
.who-btn .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-fill); color: #fff; font: 800 12px/1 var(--font-display); }
.menu { position: absolute; right: 28px; top: calc(var(--bar-h) - 6px); min-width: 220px; padding: 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--edge); box-shadow: var(--shadow-lift); display: grid; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; border: 0; background: none; color: var(--text); font-weight: 600; font-size: 14.5px; text-align: left; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--raised); text-decoration: none; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* ---------- Inner pages ---------- */
.page-head { display: flex; align-items: center; gap: 22px; padding: 18px 0 30px; }
.page-head h1 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
.page-head .lede { margin-top: 10px; }
.stack { display: grid; gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.plan.best { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.plan h3 { font-size: 16px; color: var(--text-2); }
.plan .price { font: 800 40px/1 var(--font-display); letter-spacing: -0.04em; color: var(--text); }
.plan .price small { font: 700 15px/1 var(--font-body); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan p { color: var(--muted); font-size: 14px; font-weight: 600; }
.note { padding: 16px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; }
.steps { display: grid; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; counter-increment: s; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font: 800 14px/1 var(--font-display); }
.steps b { color: var(--text); display: block; }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 18px; color: var(--text); font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 20px/1 var(--font-display); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 18px 16px; }
.planned { display: grid; gap: 10px; }
.planned li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.planned .icon { color: var(--h, var(--accent)); }

/* Search results */
.results { display: grid; gap: 22px; }
.res-group h2 { font-size: 15px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: inherit; }
a.hit:hover { border-color: var(--edge); background: var(--surface-2); text-decoration: none; }
.hit b { display: block; color: var(--text); font: 700 17px/1.2 var(--font-display); }
.hit .sub { display: block; color: var(--muted); font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.hit .stats { display: flex; gap: 22px; }
.hit .stats div { text-align: right; }
.hit .stats b { font-size: 18px; }
.hit .stats span { display: block; font: 700 11px/1 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }
.empty { padding: 26px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--edge); }
.empty b { color: var(--text); display: block; font-size: 16px; }
.empty p { margin-top: 6px; }
.loading { color: var(--muted); font-weight: 600; }

/* Cross-game profile */
.prof-head { display: flex; align-items: center; gap: 20px; padding: 18px 0 28px; }
.prof-head h1 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.prof-head .handle { color: var(--muted); font-weight: 700; margin-top: 6px; }
.avatar-lg { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--text); font: 800 30px/1 var(--font-display); box-shadow: inset 0 0 0 1px var(--edge); flex: none; }
.gamecard { --h: var(--accent); --frame: var(--edge); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.gamecard-top { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--h) 10%, var(--surface)), var(--surface) 70%); }
.gamecard-top h2 { font-size: 18px; }
.gamecard-top .sub { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.gamecard-top a.btn { margin-left: auto; }
.gamecard-body { padding: 18px 20px 20px; display: grid; gap: 16px; }
.frame { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; font: 800 12.5px/1 var(--font-body); color: var(--text); background: color-mix(in srgb, var(--frame) 22%, var(--surface-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frame) 70%, transparent); }
.frame.common { --frame: #B7BFC5; } .frame.uncommon { --frame: #61BF00; } .frame.rare { --frame: #00AFFF; } .frame.epic { --frame: #CE59FF; } .frame.legendary { --frame: #FF8B19; }
.bench { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.bench div { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.bench b { display: block; font: 800 22px/1 var(--font-display); color: var(--text); }
.bench span { display: block; margin-top: 6px; font: 700 11.5px/1.3 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bench em { font-style: normal; color: var(--good); }
.matches { width: 100%; border-collapse: collapse; font-size: 14px; }
.matches th { text-align: left; font: 800 11px/1 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 0 8px 10px; }
.matches td { padding: 10px 8px; border-top: 1px solid var(--line); color: var(--text-2); }
.matches td.n { text-align: right; color: var(--text); font-weight: 700; }
.matches th.n { text-align: right; }

/* The account page */
.switch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 999px; border: 0; background: var(--raised); cursor: pointer; transition: background-color 180ms var(--ease); flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); transition: transform 180ms var(--ease); }
.switch[aria-checked="true"] { background: var(--btn-fill); }
.switch[aria-checked="true"]::after { transform: translateX(22px); background: #fff; }
.switch:disabled { opacity: .5; cursor: not-allowed; }
.field { display: grid; gap: 8px; }
.field label { color: var(--text); font-weight: 700; font-size: 14.5px; }
.field .in { display: flex; align-items: center; height: 46px; border-radius: 11px; border: 1px solid var(--edge); background: var(--ground); padding: 0 12px; gap: 2px; }
.field .in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field .in span { color: var(--muted); font-weight: 600; }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font-weight: 700; }
.msg-line { font-size: 14px; font-weight: 600; }
.msg-line.bad { color: var(--danger); }
.msg-line.ok { color: var(--good); }
.me-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; max-width: 1160px; }
.me-grid .card { max-width: none !important; margin: 0 !important; }
@media (max-width: 900px) { .me-grid { grid-template-columns: minmax(0, 1fr); } }
.providers { display: grid; gap: 10px; max-width: 360px; }

/* The hidden nod: the bot's old name, for anyone who goes looking. */
.dubhub { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px 22px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 16%, var(--surface)) 0%, var(--surface) 60%); }
.dubhub img { width: 72px; height: 72px; border-radius: 18px; }
.dubhub b { display: block; color: var(--text); font: 800 20px/1.15 var(--font-display); letter-spacing: -0.02em; }
.dubhub p { margin-top: 6px; }

/* Deck page frame: the deck at its own width, how to add the bot beside it. */
.deck-scope { max-width: 1320px; }
.deck-row { display: grid; grid-template-columns: max-content minmax(260px, 1fr); gap: 28px; align-items: start; }
.deck-row > aside { display: grid; gap: 16px; }
@media (max-width: 1100px) { .deck-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .board .result, .tiles .tile { animation: rise 520ms var(--ease) both; }
  .board .result:nth-of-type(2) { animation-delay: 50ms; } .board .result:nth-of-type(3) { animation-delay: 100ms; }
  .board .result:nth-of-type(4) { animation-delay: 150ms; } .board .result:nth-of-type(5) { animation-delay: 200ms; }
  .groups i { animation: grow 700ms var(--ease) both 120ms; }
}
@keyframes rise { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(.05); } to { transform: none; } }
.tick { animation: tickover 360ms var(--ease); }
@keyframes tickover { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  /* One column: the bot sits second, right after the this-week board. */
  .home-main { display: contents; }
  /* The board and its top lists stay together, so a row pick switches a list in view; the bot comes next. */
  .home-main > .hero { order: 1; } .home-main > .board { order: 2; } .home-main > .top-lists { order: 3; } .home-side { order: 4; } .home-main > :not(.hero):not(.board):not(.top-lists) { order: 5; }
  .home-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: auto; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .band, .duo-band { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .board-cols { display: none; }
  .result { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who next" "what what"; gap: 10px 14px; }
  .result .who { grid-area: who; }
  .result .what { grid-area: what; padding-left: 56px; }
  .result .next { grid-area: next; }
}
/* Phones: the rail becomes a top strip of game icons with a menu for the rest. */
@media (max-width: 720px) {
  :root { --bar-h: 58px; }
  .shell { display: block; }
  .rail { position: sticky; top: 0; height: auto; flex-direction: row; gap: 8px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail-sep { width: 2px; height: 28px; margin: 0 2px; }
  .rail-grow { flex: 1; min-width: 4px; }
  .rail .rail-wide { display: none; }
  .rail-menu { display: grid; }
  .ri { width: 40px; height: 40px; font-size: 13.5px; }
  .ri.home img { width: 24px; height: 24px; }
  .ri.soon::after { width: 12px; height: 12px; }
  .rail { gap: 6px; }
  .ri::before, .tip { display: none; }
  .ri[aria-current] { box-shadow: inset 0 -3px 0 var(--text); }
  .bar { position: static; height: auto; padding: 14px 16px 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; flex-wrap: wrap; gap: 10px; }
  .bar-where { display: none; }
  .bar-search { order: 2; flex-basis: 100%; max-width: none; margin: 0; }
  .page-home .bar-search { display: none; }
  .bar-account { display: none; }
  .search kbd { display: none; }
  .page { padding: 20px 16px 0; }
  .hero { padding-top: 6px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 16px; }
  .search-lg { height: 58px; padding-left: 14px; }
  .search-lg input { font-size: 16px; }
  .search-lg .btn { height: 44px; padding: 0 14px; }
  .board-top, .board-foot { padding: 14px 16px; }
  .result { padding: 14px 16px; }
  .result .what { padding-left: 0; }
  .home-side { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { min-height: 0; padding: 16px; }
  .tile ul { display: none; }
  .band, .app-card, .pro-card { padding: 22px; }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .foot { padding: 32px 16px 36px; }
  .menu { right: 12px; left: 12px; top: 64px; }
  .hit { grid-template-columns: auto minmax(0, 1fr); }
  .hit .stats { grid-column: 1 / -1; justify-content: flex-start; }
  .hit .stats div { text-align: left; }
  .prof-head { flex-direction: column; align-items: flex-start; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 6px; }
  .glyph.xl { width: 60px; height: 60px; border-radius: 18px; font-size: 21px; }
  .glyph.xl .icon { width: 30px !important; height: 30px !important; }
}

/* The phone menu sheet */
.menu-sheet { position: fixed; inset: 0; z-index: 60; display: grid; align-items: start; background: rgba(0, 0, 0, .55); }
.menu-sheet-in { margin: 66px 12px 0; padding: 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--edge); box-shadow: var(--shadow-lift); display: grid; gap: 2px; }
.menu-sheet-in a, .menu-sheet-in button { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 10px; border: 0; background: none; color: var(--text); font-weight: 700; font-size: 16px; text-align: left; }
.menu-sheet-in a:hover, .menu-sheet-in button:hover { background: var(--raised); text-decoration: none; }
.menu-sheet-in .icon { color: var(--muted); }
.menu-sheet-in hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* Game hues last, so a game class always beats a component's default --h. */
.g-droid { --h: var(--g-droid); } .g-br { --h: var(--g-br); } .g-creative { --h: var(--g-creative); }
.g-rivals { --h: var(--g-rivals); } .g-minecraft { --h: var(--g-minecraft); } .g-bot { --h: var(--accent); }
