/*
 * The site around the overlay.
 *
 * Built to sit next to tmfrz.com rather than beside it: the server's own
 * ground (#0a090e), its surface (#121015) and its one bright thing (#fc264c).
 *
 * Rajdhani throughout - the same face the card wears, so the page and the thing
 * it is configuring read as one object. It is condensed and sits small for its
 * size, so everything here runs a point or two larger than a normal UI face
 * would, and tracking is opened up rather than closed in.
 *
 * Red is spent on one thing per view. When everything is an accent, nothing is.
 */

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --raised: #131313;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);

  --red: #fc264c;
  --red-rgb: 252, 38, 76;
  --red-lift: #ff4767;

  --text: #ffffff;
  --dim: #b3b3b3;
  --faint: #6f6f6f;

  --gain: #35d07f;
  --loss: #ff4257;

  --face: "Rajdhani", "Segoe UI", system-ui, sans-serif;

  --shell: 1200px;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--face);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

b { font-weight: 700; }

code {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 0.8em;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
  white-space: nowrap;
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

h1, h2 { font-weight: 700; line-height: 1.05; }

/* ---- Nav --------------------------------------------------------------- */

/*
 * Deliberately almost nothing: a wordmark, and the two places someone might
 * actually want to go. The page's own navigation is the tab bar further down.
 */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 17px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; }

/* Text that brightens, with the accent arriving as a rule under it. Pills and
   dividers up here were three shapes doing the job of one. */
.nav-links a {
  position: relative;
  padding: 2px 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 160ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---- Hero -------------------------------------------------------------- */

/*
 * The whole first screen, with the content centred in it.
 *
 * svh rather than vh so a phone's address bar retracting does not shunt the
 * card off the bottom, and min-height rather than height so a short window or
 * the stacked layout can still grow past it instead of clipping.
 */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 58px);
  min-height: calc(100svh - 58px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 24px 92px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 4.3vw, 56px);
  font-weight: 600;
  /* Set in caps, which want a touch more room between letters than the
     lower case this was tracked for. */
  letter-spacing: 0.025em;
  line-height: 1.1;
}

.hero-copy > p {
  margin-top: 16px;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--dim);
}

.hero-copy .up { color: var(--gain); }
.hero-copy .down { color: var(--loss); }

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

/*
 * The card itself, running, with nothing behind it - no panel, no checker, no
 * frame. It is a transparent overlay, and the honest way to show one is to let
 * it sit on the page the way it will sit on a stream.
 */
.hero-art { display: flex; justify-content: center; }

/* Drawn down a little: at full size the sample competed with the headline for
   the top of the page. The frame takes the drawn-down size so nothing is left
   padding it out. Both are sized from the card's own report once it has drawn;
   these are only what they occupy until then. */
.hero-frame {
  position: relative;
  width: 384px;
  height: 160px;
}

/* Sized from the card's own report the moment it has drawn; these are only
   what it occupies until then. The card brings its own shadow. */
.hero-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 404px;
  height: 168px;
  border: none;
  background: transparent;
  transform: scale(0.95);
  transform-origin: top left;
}

/* A full screen hides whatever follows it, so it has to admit there is more.
   It is the same jump the call to action makes, for anyone who scrolls before
   they read. */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  color: var(--faint);
  cursor: pointer;
  transition: color 180ms ease;
}

.hero-scroll:hover { color: var(--text); }

.hero-scroll span {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  animation: nudge 2.6s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: rotate(45deg) translate(-2px, -2px); }
  50% { transform: rotate(45deg) translate(1px, 1px); }
}

/* ---- Tabs -------------------------------------------------------------- */

/* Underlined rather than a segmented block — the same language as the nav, and
   a solid red slab for the selected one was shouting over the page it labels. */
.tabs {
  scroll-margin-top: 74px;
  display: flex;
  gap: 32px;
  margin: 40px 0 28px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  padding: 0 0 13px;
  border: none;
  background: none;
  color: var(--faint);
  font-family: var(--face);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms ease;
}

.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tab:hover { color: var(--dim); }
.tab.active { color: var(--text); }
.tab.active::after { transform: scaleX(1); }

.panel-tab { display: none; }
.panel-tab.active { display: block; animation: rise 260ms cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---- Layout ------------------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 416px;
  gap: 20px;
  align-items: start;
  padding-bottom: 80px;
}

.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.prose {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
  padding-bottom: 80px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px 20px;
}

.card.sticky { position: sticky; top: 76px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.card-head h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.note {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.note.bad { color: var(--red); }
.note.good { color: var(--gain); }

.lede { color: var(--dim); line-height: 1.65; margin-top: 12px; font-size: 16px; }

.hint { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--faint); }
.hint b { color: var(--dim); }

/* ---- Rows -------------------------------------------------------------- */

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.row:last-of-type { border-bottom: none; padding-bottom: 4px; }

/* A control that needs the width takes the row and drops the label above it. */
.row.wide { flex-direction: column; align-items: stretch; gap: 10px; }

.row-label span { display: block; font-size: 16px; font-weight: 600; }

.row-label small {
  display: block;
  margin-top: -2px;
  font-size: 14px;
  color: var(--faint);
  line-height: 1.4;
}

.row-control { flex: none; }
.row.wide .row-control { flex: 1; }

/* ---- Controls ---------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--raised);
  color: var(--dim);
  font-family: var(--face);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease,
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }
.button:active { transform: none; }

.button.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(var(--red-rgb), 0.26);
}

.button.primary:hover {
  background: var(--red-lift);
  border-color: var(--red-lift);
  color: #fff;
  box-shadow: 0 10px 26px rgba(var(--red-rgb), 0.34);
}

.button.wide { flex: 1; }

.button:disabled { opacity: 0.4; cursor: default; transform: none; }
.button:disabled:hover { color: var(--dim); border-color: var(--line-strong); }

.field-row { display: flex; gap: 8px; }

.field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #070707;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.12); }

.field span { color: var(--faint); font-weight: 700; }

.field input {
  flex: 1;
  min-width: 0;
  padding: 7px 0;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  outline: none;
}

.field input::placeholder { color: #4d4d4d; }

.choice { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.chip {
  padding: 5px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--raised);
  color: var(--dim);
  font-family: var(--face);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.26); }

.chip.active {
  background: rgba(var(--red-rgb), 0.15);
  border-color: rgba(var(--red-rgb), 0.75);
  color: #fff;
}

.swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--swatch);
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms ease;
}

.swatch:hover { transform: translateY(-2px); }
.swatch.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--swatch); }

.colour {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: none;
  cursor: pointer;
}
.colour::-webkit-color-swatch-wrapper { padding: 2px; }
.colour::-webkit-color-swatch { border: none; border-radius: 3px; }

.inline { display: flex; align-items: center; gap: 14px; }

.slider {
  width: 170px;
  height: 3px;
  appearance: none;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(var(--red-rgb), 0.16);
}

.slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: none;
  cursor: pointer;
}

.value { min-width: 54px; text-align: right; font-size: 16px; font-weight: 700; }

.toggles { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }

.toggle input { position: absolute; opacity: 0; pointer-events: none; }

.toggle-track {
  position: relative;
  width: 34px;
  height: 19px;
  flex: none;
  border-radius: 10px;
  background: #222222;
  border: 1px solid var(--line-strong);
  transition: background 180ms ease, border-color 180ms ease;
}

.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--faint);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms ease;
}

.toggle input:checked + .toggle-track {
  background: rgba(var(--red-rgb), 0.3);
  border-color: rgba(var(--red-rgb), 0.8);
}

.toggle input:checked + .toggle-track .toggle-knob { transform: translateX(15px); background: var(--red); }
.toggle input:focus-visible + .toggle-track { box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.2); }

.toggle-label { font-size: 15px; font-weight: 600; color: var(--dim); }
.toggle input:checked ~ .toggle-label { color: var(--text); }

/* ---- The ranks this season --------------------------------------------- */

/*
 * Every ranked mode, with its own crest, rather than one mode named in a line
 * of small print. A player with three ranked modes could not otherwise tell
 * which one the card was going to show.
 */
.ranks { margin: 4px 0 4px; }

.ranks-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ranks-list { display: flex; flex-direction: column; gap: 6px; }

.rank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #070707;
  transition: border-color 160ms ease, background 160ms ease;
}

.rank:hover { border-color: var(--line-strong); }

.rank.active {
  border-color: rgba(var(--red-rgb), 0.6);
  background: linear-gradient(90deg, rgba(var(--red-rgb), 0.11), transparent 70%), #070707;
}

.rank-crest { width: 34px; height: 34px; flex: none; object-fit: contain; display: block; }

.rank-crest-none {
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--faint);
}

.rank-copy { flex: 1; min-width: 0; }

.rank-mode {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-note {
  margin-top: -3px;
  font-size: 14px;
  font-weight: 500;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-note b { color: var(--dim); font-weight: 600; }

.rank-elo { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.rank-elo span { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; color: var(--faint); }
.rank-elo b { font-size: 18px; font-weight: 700; }

.rank-pick { flex: none; padding: 5px 13px; font-size: 14px; }

/* ---- Preview ----------------------------------------------------------- */

/*
 * Sized to the card and nothing else - the overlay measures itself and says how
 * big it came out, because its height depends on what has been switched on.
 */
.preview {
  position: relative;
  margin: 16px auto 14px;
  border-radius: 4px;
  overflow: hidden;
  /* A checker, so a transparent card reads as transparent. */
  background-color: #121212;
  background-image:
    linear-gradient(45deg, #0a0a0a 25%, transparent 25%, transparent 75%, #0a0a0a 75%),
    linear-gradient(45deg, #0a0a0a 25%, transparent 25%, transparent 75%, #0a0a0a 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1), height 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.preview iframe {
  position: absolute;
  border: none;
  transform-origin: top left;
  background: transparent;
}

.preview-actions { display: flex; gap: 8px; }

/* ---- The URL ----------------------------------------------------------- */

.url { margin: 16px 0 8px; }

.url-field {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #070707;
  color: var(--dim);
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  outline: none;
  transition: border-color 160ms ease;
}

.url-field:focus { border-color: var(--red); color: var(--text); }

.url-actions { display: flex; gap: 8px; }

/* ---- The walkthrough --------------------------------------------------- */

/*
 * Four steps on a rail. The rail is what makes it read as a sequence with an
 * end to it rather than four paragraphs that happen to be numbered — which is
 * the difference between someone following it and someone skimming it.
 */
.walk { list-style: none; margin-top: 4px; }

.walk li { position: relative; display: flex; gap: 16px; padding: 16px 0 18px; }

/* The rail runs between the marks, stopping at the last one. */
.walk li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 46px;
  bottom: -6px;
  width: 1px;
  background: var(--line-strong);
}

.walk li:last-child { padding-bottom: 2px; }
.walk li:last-child::before { display: none; }

.walk-mark {
  position: relative;
  z-index: 1;
  flex: none;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 4px var(--surface);
}

.walk-body { flex: 1; min-width: 0; padding-top: 3px; }

.walk-body h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.walk-body p { margin-top: 2px; color: var(--dim); font-size: 16px; line-height: 1.55; }
.walk-body p + p { margin-top: 10px; }
.walk-body b { color: var(--text); }

/* The three boxes to fill in, as the boxes they are. */
.walk-fields {
  list-style: none;
  margin: 10px 0 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.walk-fields li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #070707;
}

.walk-fields li:last-child { border-bottom: none; }

.walk-fields span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.walk-fields b {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.link-tab {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
}
.link-tab:hover { text-decoration: underline; }

/* ---- Troubleshooting --------------------------------------------------- */

/* Folded away, because six open answers is a wall and nobody has six problems
   at once — they have one, and want to find it. */
.qa { margin-top: 4px; }

.qa details { border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.qa details:last-child { border-bottom: none; }

.qa summary {
  position: relative;
  list-style: none;
  padding: 13px 30px 13px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: color 160ms ease;
}

.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--red); }

/* A chevron drawn from a corner, turned when the answer is open. */
.qa summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms ease;
}

.qa details[open] summary { color: var(--text); }
.qa details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--red); }

.qa p {
  padding: 0 30px 15px 0;
  margin-top: -2px;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.6;
}

.qa a { color: var(--red); }
.qa b { color: var(--text); }

/* ---- OBS settings, at a glance ----------------------------------------- */

.glance { margin: 4px 0 14px; }

.glance > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.glance > div:last-child { border-bottom: none; }

.glance dt { font-size: 15px; font-weight: 500; color: var(--faint); }
.glance dd { font-size: 16px; font-weight: 700; text-align: right; }
.glance dd.num { font-size: 20px; color: var(--red); }
.glance dd.off { font-size: 15px; font-weight: 600; color: var(--dim); }

/* ---- The link's options ------------------------------------------------ */

.params { margin-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.045); }

.params > div {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.params > div:last-child { border-bottom: none; }

.params dd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  color: var(--dim);
}

/* The default, set off to the right rather than given a column of its own. */
.params dd i {
  flex: none;
  font-style: normal;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  color: var(--faint);
}

/* ---- Footer ------------------------------------------------------------ */

/*
 * One line: the mark, the links, and the invite. The slab that used to shout
 * RUN THE CITY here was borrowing the main site's voice for a page that is a
 * settings form, and it landed as noise.
 */
.foot { border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }

.foot-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
}

.foot-brand img { height: 15px; width: auto; display: block; opacity: 0.5; transition: opacity 160ms ease; }
.foot-brand:hover img { opacity: 1; }

.foot-links { display: flex; gap: 22px; margin-right: auto; }

.foot-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--faint);
  transition: color 160ms ease;
}

.foot-links a:hover { color: var(--text); }

.foot-discord {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border: 1px solid rgba(var(--red-rgb), 0.45);
  border-radius: 5px;
  background: rgba(var(--red-rgb), 0.1);
  color: #ff8a9e;
  font-size: 15px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.foot-discord:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---- Narrow ------------------------------------------------------------ */

@media (max-width: 1040px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 64px 24px 72px; }
  .hero-art { justify-content: flex-start; }
  .hero-scroll { display: none; }
  .grid { grid-template-columns: 1fr; }
  .card.sticky { position: static; }
}

@media (max-width: 620px) {
  .shell, .nav-inner, .hero-inner, .foot-inner { padding-left: 16px; padding-right: 16px; }
  .hero-inner { padding-top: 48px; padding-bottom: 56px; }
  .hero-frame { max-width: 100%; }
  .row { flex-direction: column; align-items: stretch; gap: 10px; }
  .slider { flex: 1; width: auto; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 8px 12px; }
  .params > div { grid-template-columns: 1fr; gap: 3px; }
  .nav-links a { padding: 6px 10px; }
  .rank { flex-wrap: wrap; }
  .rank-copy { min-width: 120px; }
  .foot-links { margin-right: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
