/* Blueprint · Centaury Lab. Palette and type follow centaury.ai (light theme); font Poppins. */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(fonts/poppins-regular.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(fonts/poppins-medium.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(fonts/poppins-semibold.woff2) format('woff2'); }

:root {
  --bg: #fff;
  --fg: #2c2e3a;          /* text, dark buttons, navbar */
  --muted: #61688c;       /* secondary text */
  --soft: #959fbf;        /* tertiary text, dots */
  --primary: #626a8b;
  --accent: #777fa8;
  --line: #e6e9f1;
  --tint: #f6f7fa;        /* muted surfaces */
  --tint2: #eef1f6;
  --shot: #f0f0f0;        /* the renders' own background */
  --warn: #c2410c;
  --ok: #16a34a;
  --r: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --w: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 15px/1.6 Poppins, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* two soft glows, the centaury.ai backdrop */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 18% 8%, #e9ecf4 0, transparent 70%),
    radial-gradient(36vw 36vw at 88% 40%, #f0eff8 0, transparent 70%);
}
a { color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
h1 { font-size: 32px; }
h1[data-px], h2[data-px] { line-height: 1; }
h2[data-px] { font-size: 16px; }

/* pixel text (js/pixel.js): an svg as tall as the font size */
.px { display: block; height: 1em; width: auto; fill: currentColor; shape-rendering: crispEdges; overflow: visible; }
[data-px] { display: inline-block; }
h2 { font-size: 22px; }
p { margin: 0; }
.sub { color: var(--muted); font-size: 14px; max-width: 64ch; }
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
main { max-width: var(--w); margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- icons (masks, colored by currentColor) */
.ic { display: inline-block; width: 1.15em; height: 1.15em; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--fg);
  font: 500 14px Poppins, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--soft); }
.btn--dark { background: var(--fg); border-color: var(--fg); color: #fff; }
.btn--dark:hover { background: #3a3d4d; border-color: #3a3d4d; }
.btn--light { background: var(--primary); border-color: var(--primary); color: #fff; height: 34px; padding: 0 16px; font-size: 13px; }
.btn--light:hover { background: var(--accent); border-color: var(--accent); }
.btn.is-on { background: var(--fg); border-color: var(--fg); color: #fff; }
.btn--warn.is-on { background: var(--warn); border-color: var(--warn); }
.btn--sm { height: 32px; padding: 0 14px; font-size: 13px; }
.ibtn {
  width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.9); color: var(--fg); cursor: pointer;
}
.ibtn:hover { border-color: var(--soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* segmented control */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--tint2); border-radius: 999px; }
.seg button {
  border: 0; background: transparent; color: var(--muted); height: 32px; padding: 0 16px; border-radius: 999px;
  font: 500 13px Poppins, sans-serif; cursor: pointer;
}
.seg button.is-on { background: #fff; color: var(--fg); box-shadow: 0 1px 2px rgba(44,46,58,.12); }
.seg--sm button { height: 28px; padding: 0 12px; font-size: 12px; }

/* ---------------------------------------------------------------- header: the floating dark bar */
.top { position: sticky; top: 0; z-index: 20; padding: 12px 20px 0; }
.bar {
  max-width: var(--w); margin: 0 auto; height: 52px; padding: 0 10px 0 18px;
  display: flex; align-items: center; gap: 24px;
  background: rgba(44,46,58,.94); backdrop-filter: blur(8px); color: #fff;
  border-radius: 14px; box-shadow: 0 6px 24px rgba(44,46,58,.18);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand__mark { width: 22px; height: 24px; fill: #fff; }
.brand__name { font-size: 16px; }
.nav { display: flex; gap: 4px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.nav a { color: #abb6ce; text-decoration: none; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: #fff; }
.nav a.is-on { color: #fff; background: #595e7a; }
/* signed-in name or "Sign in", quiet next to the Vote button */
.bar__me { display: flex; align-items: center; gap: 6px; max-width: 160px; border: 0; background: none; color: #abb6ce; font: 500 13px Poppins, sans-serif; cursor: pointer; padding: 6px 4px; }
.bar__me:hover { color: #fff; }
.bar__me .ic { width: 16px; height: 16px; }
.bar__me .ic + span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* discord, a quiet icon beside the account button */
.bar__dc { display: flex; align-items: center; color: #abb6ce; padding: 6px 4px; }
.bar__dc:hover { color: #fff; }
.bar__dc svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- pages */
.page { padding: 36px 0 56px; }
.head { display: grid; gap: 10px; margin-bottom: 24px; justify-items: start; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; min-height: 440px; }
.hero__copy { display: grid; gap: 18px; justify-items: start; }
.lab { font-size: 48px; line-height: 1; display: flex; flex-wrap: wrap; gap: 0 .5em; }
.lab__b { color: var(--accent); }
.mission { color: var(--muted); font-size: 16px; max-width: 46ch; }
.stats { display: flex; margin: 6px 0 0; border-top: 1px solid var(--line); padding-top: 16px; gap: 28px; }
.stats div { display: grid; }
.stats dt { order: 2; color: var(--muted); font-size: 12px; }
.stats dd { margin: 0 0 6px; font-size: 16px; height: 1em; }

/* the hero sits on the showcase scene: pale sky, faint grid, a tiled floor, the island's face */
.hero { padding: 28px 28px 56px; margin: 0 -8px; background: url(brand/hero-scene.png) center bottom / cover no-repeat; image-rendering: pixelated; }
.hero > * { image-rendering: auto; min-width: 0; }
/* its 3D stage is the showcase card box: dithered radial gradient and faint grid (brand/stage.png,
   scripts/showcase.py site), the stepped 4px frame; the viewer adds the pedestal in 3D (Viewer base option) */
.stage.hero__stage {
  border-radius: 0; border: 4px solid var(--line); box-shadow: inset 0 0 0 4px #fff;
  background: #e6e9f1 url(brand/stage.png) center / 1024px 480px no-repeat; image-rendering: pixelated;
}

/* 3D stage */
.stage { position: relative; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: radial-gradient(70% 70% at 50% 45%, #fff 0, var(--tint) 100%); }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.hero__stage { height: 440px; }
.stage__cap { position: absolute; left: 14px; bottom: 12px; font-size: 13px; font-weight: 500; pointer-events: none; }
.stage__cap small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.stage__tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
.stage__tools--l { left: 12px; right: auto; }

/* sections on home */
.block { margin-top: 56px; }
.block__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.block__head .sub { margin-top: 4px; }
.more { font-size: 13px; font-weight: 500; color: var(--primary); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.block--tight { margin-top: 36px; }
.ways { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.way { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: #fff; display: grid; gap: 6px; align-content: start; text-decoration: none; transition: border-color .15s; }
.way:hover { border-color: var(--accent); }
.way .ic { width: 22px; height: 22px; color: var(--accent); }
.way span { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ---------------------------------------------------------------- model cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.grid--strip { grid-template-columns: repeat(6, 1fr); }
.card {
  display: grid; gap: 8px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  font: inherit; color: inherit; min-width: 0;
}
/* each model stands on the showcase pedestal (brand/tile.png, scripts/showcase.py site) inside a
   pale box with a stepped pixel frame; the padding puts the thumbnail's feet on the pedestal */
.card .shot {
  width: 100%; height: auto; aspect-ratio: 1; display: block; transition: transform .2s;
  padding: 6% 12% 13%; object-fit: contain;
  background: var(--tint) url(brand/tile.png) center / cover;
  border: 2px solid var(--line); box-shadow: inset 0 0 0 2px #fff;
}
.card:hover .shot { transform: translateY(-2px); }
.card__t { font-size: 13px; font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__v { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: -6px; }
.card__n { color: var(--soft); }
.empty { color: var(--muted); padding: 40px 0; grid-column: 1 / -1; }

/* models toolbar and pager */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--soft); flex: 1 1 200px; max-width: 280px; }
.search input { border: 0; outline: 0; font: inherit; font-size: 14px; color: var(--fg); width: 100%; background: none; }
select { height: 38px; padding: 0 30px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--fg); font: 400 13px Poppins, sans-serif; max-width: 220px;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2361688c' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
.count { color: var(--muted); font-size: 13px; margin-left: auto; }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 28px; flex-wrap: wrap; }
.pager button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--muted); font: 500 13px Poppins, sans-serif; cursor: pointer; }
.pager button:hover { border-color: var(--line); color: var(--fg); }
.pager button.is-on { background: var(--fg); color: #fff; }
.pager button:disabled { opacity: .35; cursor: default; }
.pager .gap { color: var(--soft); padding: 0 4px; align-self: center; }

/* ---------------------------------------------------------------- vote */
.page[data-page="vote"] .head { justify-items: center; text-align: center; }
.arena { max-width: 920px; margin: 0 auto; }
.arena__prompt { text-align: center; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 18px; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.pick { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 8px; cursor: pointer; transition: border-color .15s, opacity .2s, transform .15s; }
.pick:hover { border-color: var(--accent); }
.pick .shot { width: 100%; display: block; border-radius: 10px; background: var(--shot); aspect-ratio: 1; object-fit: cover; }
.pick__stage { aspect-ratio: 1; border: 0; border-radius: 10px; background: var(--shot); }
.pick__stage .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; }
.pick__stage .stage__cap { left: 10px; bottom: 8px; font-size: 12px; color: var(--muted); }
.arena__views { display: flex; justify-content: center; margin: -6px 0 14px; }
.pick__bar { display: flex; align-items: center; gap: 8px; padding: 8px 4px 2px; min-height: 40px; }
.pick__key { width: 24px; height: 24px; border-radius: 7px; background: var(--tint2); color: var(--muted); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.pick__who { font-size: 12px; color: var(--muted); margin-left: auto; text-align: right; line-height: 1.3; }
.pick__who b { color: var(--fg); font-weight: 500; display: block; }
.mini { display: flex; gap: 4px; }
.mini button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--soft); display: grid; place-items: center; cursor: pointer; padding: 0; }
.mini button:hover { color: var(--fg); }
.mini button.is-on { color: #fff; background: var(--fg); border-color: var(--fg); }
.mini button.warn.is-on { background: var(--warn); border-color: var(--warn); }
.arena.busy .pick, .arena.busy .rowpick { cursor: progress; }
.arena.voted .pick { cursor: zoom-in; }
.pick.won { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.pick.lost { opacity: .55; }
.arena__row { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.arena__note { width: 100%; text-align: center; color: var(--muted); font-size: 13px; }
.arena__off { width: 100%; display: grid; justify-items: center; }
.arena__off .label { margin: 0; }
.arena__off .chips { justify-content: center; margin-bottom: 4px; }
.keys { color: var(--soft); font-size: 12px; text-align: center; margin-top: 14px; }
kbd { font: 500 11px var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; color: var(--muted); }

/* ---------------------------------------------------------------- model page */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; margin-bottom: 14px; }
.back:hover { color: var(--fg); }
.mp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.mp__stage { aspect-ratio: 1; max-height: calc(100vh - 140px); width: 100%; }
.mp__stage img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--shot); image-rendering: pixelated; }
.mp__stage .ibtn:disabled { opacity: .35; cursor: default; }
.mp__info { display: grid; gap: 18px; align-content: start; min-width: 0; padding-top: 4px; }
.mp__info h1 { font-size: 30px; }
.mp__eye { display: flex; gap: 8px 16px; flex-wrap: wrap; color: var(--accent); font-size: 12px; }
.mp__eye span + span { color: var(--soft); }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.prompt { color: var(--muted); font-size: 14px; margin-top: -8px; }
/* time line: lanes per system, dots at each version's date */
.tl { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 14px 18px 8px; display: grid; gap: 4px; }
.tl__lane { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; height: 30px; }
.tl__sys { font-size: 10px; color: var(--c); }
.tl__track { position: relative; height: 100%; }
.tl__track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--c); opacity: .2; border-radius: 2px; }
.tl__dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; padding: 0; border: 0; border-radius: 50%; background: var(--c); cursor: pointer; transition: transform .15s; }
.tl__dot:hover { transform: scale(1.35); }
.tl__dot.is-on { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: #fff; border: 4px solid var(--c); z-index: 1; }
.tl__axis { position: relative; height: 22px; margin-left: 84px; color: var(--soft); font-size: 11px; border-top: 1px solid var(--line); }
.tl__axis span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }
.tl__axis span:first-child { transform: none; }
.tl__axis span:last-child:not(:first-child) { transform: translateX(-100%); }
.strip { position: relative; display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 6px; scrollbar-width: thin; }
.strip__v { flex: none; width: 112px; display: grid; gap: 4px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.strip__v img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; background: var(--shot); display: block; border: 2px solid transparent; }
.strip__v.is-on img { border-color: var(--fg); }
.strip__v:hover img { border-color: var(--soft); }
.strip__v b { font-size: 12px; font-weight: 500; }
.strip__v small { color: var(--muted); font-size: 11px; margin-top: -4px; }
.grid--rel { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.kv code { font: 500 12px var(--mono); }
.kv a { color: var(--primary); text-decoration: none; cursor: pointer; }
.kv a:hover { text-decoration: underline; }
.label { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.sibs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.sibs button { flex: none; width: 54px; padding: 0; border: 2px solid transparent; border-radius: 9px; background: none; cursor: pointer; }
.sibs button.is-on { border-color: var(--fg); }
.sibs img { width: 100%; display: block; border-radius: 7px; background: var(--shot); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font: 400 12px Poppins, sans-serif; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.chip.is-on { background: var(--fg); border-color: var(--fg); color: #fff; }
.chip--warn.is-on { background: var(--warn); border-color: var(--warn); }
.dot-c { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.chips--cats { margin: -6px 0 20px; }
.chips--cats .chip { font-size: 13px; padding: 5px 12px; }
.thanks { font-size: 12px; color: var(--ok); min-height: 18px; margin-top: 6px; }

/* ---------------------------------------------------------------- vote: modes, rank, consistency rows */
.head--c { justify-items: center; text-align: center; }
.head--c .sub { min-height: 3em; }
.seg--scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg button .ic { width: 15px; height: 15px; }
.pick__rank { position: absolute; top: 14px; left: 14px; width: 30px; height: 30px; border-radius: 9px; background: var(--fg); color: #fff; display: none; place-items: center; font-weight: 600; }
.pick.ranked .pick__rank { display: grid; }
.pick.ranked { border-color: var(--fg); }
.pick.wrong { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn); opacity: 1; }
.arena__note.ok { color: var(--ok); font-weight: 500; }
.arena__note.bad { color: var(--warn); font-weight: 500; }
.rows { display: grid; gap: 12px; }
.rowpick { display: grid; grid-template-columns: auto minmax(0, 1fr) 120px; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 10px 14px; cursor: pointer; transition: border-color .15s, opacity .2s; }
.rowpick:hover { border-color: var(--accent); }
.rowpick.won { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.rowpick.lost { opacity: .55; }
.rowpick__shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rowpick figure { margin: 0; min-width: 0; }
.rowpick figure .shot { width: 100%; aspect-ratio: 1; display: block; border-radius: 10px; background: var(--shot); }
.rowpick figcaption { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.arena.voted .rowpick figure { cursor: zoom-in; }
.gate { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--r); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--fg); color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- leaderboard */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 18px; display: grid; gap: 10px; align-content: start; }
.tile b { font-size: 24px; height: 1em; }
.tile span { color: var(--muted); font-size: 13px; }
.bad { color: var(--warn); }
.table .empty { padding: 28px 16px; }
.tr--more { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; color: var(--primary); font: 500 13px Poppins, sans-serif; cursor: pointer; text-align: center; }
.tr--more:hover { background: var(--tint); }
.table { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow-x: auto; }
.tr { display: grid; grid-template-columns: 36px minmax(150px, 1.4fr) 70px minmax(120px, 1.6fr) repeat(4, 74px); align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); min-width: 760px; font-size: 13px; }
.tr:first-child { border-top: 0; }
.tr--h { color: var(--soft); font-size: 12px; font-weight: 500; background: var(--tint); }
.td { min-width: 0; }
.td--n { color: var(--soft); }
.td--name { display: flex; align-items: baseline; gap: 8px; font-weight: 500; flex-wrap: wrap; }
.td--name i { width: 9px; height: 9px; border-radius: 50%; flex: none; align-self: center; }
.td--name small { color: var(--soft); font-size: 11px; font-weight: 400; }
.td--name a { text-decoration: none; }
.td--name a:hover { text-decoration: underline; }
.tr:not(.tr--h) .td--r { font-size: 14px; height: 14px; }
.td--bar { position: relative; height: 14px; }
.tr:not(.tr--h) .td--bar::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--tint2); border-radius: 2px; }
.range { position: absolute; top: 3px; height: 8px; background: #d9ddeb; border-radius: 4px; }
.dot { position: absolute; top: 2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--fg); }

/* ---------------------------------------------------------------- sign in */
.login { border: 0; padding: 0; border-radius: 18px; width: min(420px, calc(100vw - 24px)); color: var(--fg); box-shadow: 0 24px 64px rgba(44,46,58,.28); }
.login::backdrop { background: rgba(44,46,58,.45); backdrop-filter: blur(2px); }
.login__box { position: relative; display: grid; gap: 14px; padding: 26px; }
.login__close { position: absolute; right: 14px; top: 14px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.field input { height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: 400 15px Poppins, sans-serif; color: var(--fg); }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.login__err { color: var(--warn); font-size: 13px; min-height: 0; }
.login__err:empty { display: none; }
.login .btn { justify-content: center; }

/* ---------------------------------------------------------------- footer */
.foot { max-width: var(--w); margin: 0 auto; padding: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--soft); font-size: 12px; }
.foot__dc { color: inherit; text-decoration: none; }
.foot__dc:hover { color: var(--fg); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .hero__stage { height: 340px; }
  .lab { font-size: 40px; }
  .grid--strip { grid-template-columns: repeat(3, 1fr); }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .mp { grid-template-columns: 1fr; gap: 22px; }
  .mp__stage { max-height: 70vh; }
  .grid--rel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .hero { padding: 14px 14px 40px; margin: 0; }
  .mp__stage .stage__tools:not(.stage__tools--l) { top: auto; bottom: 10px; right: 50%; transform: translateX(50%); }
  body { font-size: 14px; }
  .top { padding: 8px 8px 0; }
  .bar { gap: 10px; padding: 0 8px 0 12px; height: 48px; }
  .bar__cta { display: none; }
  .nav { margin: 0; }
  .nav a { padding: 6px 8px; }
  .bar__me .ic + span { display: none; }
  .bar__me .ic { width: 18px; height: 18px; }
  main { padding: 0 14px; }
  .page { padding: 24px 0 40px; }
  h1 { font-size: 24px; }
  h1[data-px] { font-size: 20px; }
  .lab { font-size: 32px; }
  .hero__stage { height: 300px; }
  .stats { gap: 18px; flex-wrap: wrap; }
  .stats dd { font-size: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid--strip { grid-template-columns: repeat(2, 1fr); }
  .grid--strip > :nth-child(n+5) { display: none; }
  .ways { grid-template-columns: 1fr; }
  .cards { gap: 8px; }
  .cards--4 .pick { padding: 5px; }
  .pick__bar { flex-wrap: wrap; gap: 4px; min-height: 0; }
  .pick__who { width: 100%; text-align: left; margin: 0; }
  .arena__prompt { font-size: 16px; }
  .rowpick { grid-template-columns: auto minmax(0, 1fr); padding: 8px; gap: 8px; }
  .rowpick .pick__who { grid-column: 1 / -1; text-align: left; }
  .rowpick__shots { gap: 6px; }
  .toolbar { gap: 8px; }
  .search { max-width: none; flex-basis: 100%; }
  select { flex: 1 1 0; max-width: none; }
  .count { width: 100%; margin: 0; }
  .chips--cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -14px; padding-right: 14px; }
  .chips--cats .chip { flex: none; }
  .tile { padding: 14px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tile b { font-size: 16px; }
  .tile span { font-size: 11px; }
  .tr { min-width: 0; grid-template-columns: 22px minmax(0, 1fr) 50px 40px 56px; gap: 8px; padding: 10px 12px; }
  .td--bar, .tr .td:nth-child(7), .tr .td:nth-child(8) { display: none; }
  .td--name small { display: none; }
  .mp__info h1 { font-size: 24px; }
  .tl { padding: 10px 12px 6px; }
  .tl__lane { grid-template-columns: 64px minmax(0, 1fr); }
  .tl__sys { font-size: 8px; }
  .tl__axis { margin-left: 64px; }
  .strip__v { width: 88px; }
  .grid--rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--rel > :nth-child(n+7) { display: none; }
  .foot { padding-bottom: 20px; }
  .keys { display: none; }
}

/* ideas */
.quota { max-width: 760px; margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.quota--vote { margin: 22px auto 0; }
.quota__hint a { color: var(--fg); }
.quota__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.quota__head b { font: 600 15px Poppins, sans-serif; color: var(--fg); }
.quota__note { font: 500 11px Poppins, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.quota__row { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.quota__bar { flex: 1; height: 12px; border-radius: 8px; background: var(--tint2, #eceef3); overflow: hidden; }
.quota__bar i, .quota__mini i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #eceef4, var(--accent)); border-right: 2px solid var(--fg); box-sizing: border-box; transition: width .35s ease; }
.quota__bar i[style*="width:0%"], .quota__mini i[style*="width:0%"] { border-right-width: 0; }
.quota__n { font: 500 13px Poppins, sans-serif; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.quota__hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.quota__hint[data-ready] { color: var(--ok); }
.quota__mini { display: inline-block; width: 36px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; flex: none; }
.quota__mini i { background: linear-gradient(90deg, #6b7392, #cdd3e6); border-right-color: #fff; }
.idea-form button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) { .quota__mini { display: none; } }
.idea-form { display: flex; gap: 8px; max-width: 760px; }
.idea-form input, .idea-form select { height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: 400 15px Poppins, sans-serif; color: var(--fg); background: #fff; }
.idea-form input { flex: 1; min-width: 0; }
.idea-form input:focus, .idea-form select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.idea-note { font-size: 13px; color: var(--muted); margin: 10px 0 24px; }
.ideas { display: grid; gap: 8px; max-width: 760px; margin-bottom: 24px; }
.ideas .label { margin-bottom: 2px; }
.idea { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.idea__up { min-width: 54px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); font: 500 13px Poppins, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.idea__up.is-on { background: var(--fg); border-color: var(--fg); color: #fff; }
.idea__text { flex: 1; min-width: 0; }
.idea__cat { font-size: 12px; color: var(--muted); }
.idea--wait { border-style: dashed; color: var(--muted); }
.idea .more { font-size: 13px; white-space: nowrap; }
@media (max-width: 620px) {
  .hero { padding: 14px 14px 40px; margin: 0; }
  .idea-form { flex-wrap: wrap; }
  .idea-form input { flex-basis: 100%; }
  .idea-form select { flex: 1; }
}
