/* AuroraDB (owner 2026-11-16): the /database pages only. Loaded by those pages alone, after site.css, so nothing
   here reaches Home, Status or Docs. The site's language: white ground (dark on request), ink type, hairlines,
   one flat block per action, the mark's ramp for what is live, each game's own card art. */
.db,
.database {
  --db-panel: color-mix(in srgb, var(--paper) 78%, transparent);
  --db-edge: color-mix(in srgb, var(--text) 9%, transparent);
  --db-soft: color-mix(in srgb, var(--text) 4%, transparent);
  --db-r: 16px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.db .k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
}
.db .text-action:disabled {
  opacity: 0.35;
  cursor: default;
  text-decoration: none;
}
html.db-locked {
  overflow: hidden;
}

/* ---- the landing page (owner 2026-11-17: "look like a landing page, similar to admin panel home"): the admin
   home's scoreboard hero, its action tiles as quick links, then a tile per game and what is in packs now ---------- */
.db-landing {
  padding-top: 48px;
}
.db-landing h1 {
  font-size: clamp(48px, 6vw, 72px);
  margin: 0;
}
.db-landing .page-lead {
  margin: 16px 0 22px;
}
.db-ico {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.db-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--hair);
  border-radius: var(--db-r);
  background: var(--paper);
  overflow: hidden;
}
.db-hero-intro {
  padding: 34px 32px 30px;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(180deg, var(--raised), var(--paper));
}
.db-hero-intro .eyebrow {
  margin-bottom: 14px;
}
.db-hero-find {
  display: flex;
  align-items: stretch;
  max-width: 480px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.db-hero-find:focus-within {
  border-color: color-mix(in srgb, var(--pink) 45%, var(--hair));
  box-shadow: 0 10px 30px -18px var(--glow);
}
.db-hero-find select,
.db-hero-find input,
.db-hero-find button {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.db-hero-find select {
  flex: none;
  max-width: 40%;
  padding: 0 10px 0 14px;
  border-right: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.db-hero-find select option {
  background: var(--paper);
  color: var(--text);
}
.db-hero-find input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
}
.db-hero-find input:focus,
.db-hero-find select:focus {
  outline: none;
}
.db-hero-find button {
  display: grid;
  place-items: center;
  width: 48px;
  cursor: pointer;
  color: var(--muted);
}
.db-hero-find button:hover,
.db-hero-find button:focus-visible {
  color: var(--text);
  background: var(--raised);
  outline: none;
}
.db-hero-find button .db-ico {
  width: 18px;
  height: 18px;
}
/* Four equal stat cards on one baseline grid, as on the admin home: the label row, the figure row and the caption
   row are the same height in every column, and each figure is sized to its own column so it never wraps. */
.db-score {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
.db-score-cell {
  display: grid;
  grid-template-rows: 16px auto 16px;
  row-gap: 12px;
  align-content: start;
  min-width: 0;
  padding: 22px 24px 24px;
  border-right: 1px solid var(--hair);
  container-type: inline-size;
}
.db-score-cell:last-child {
  border-right: 0;
}
.db-score-cell dt {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 16px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--faint);
}
.db-score-cell dt .db-ico {
  width: 14px;
  height: 14px;
}
.db-score-cell dd {
  margin: 0;
  min-width: 0;
  font-family: var(--display);
  /* "60,954" is about 4.6em wide in the display face: 20cqi keeps six characters inside the column */
  font-size: clamp(22px, 20cqi, 40px);
  line-height: 1;
  height: 1em;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.db-score-cell dd small {
  margin-left: 0.3em;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  vertical-align: baseline;
  color: var(--faint);
}
.db-score-cell dd[data-tone="live"] {
  color: var(--text);
}
.db-score-cell dd[data-tone="gold"] {
  color: inherit;
}
.db-score-cell .db-score-caption {
  height: 16px;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
}
.db-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.db-quick-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.2s ease;
}
.db-quick-tile:hover {
  border-color: color-mix(in srgb, var(--pink) 45%, var(--hair));
  background: var(--raised);
  transform: translateY(-1px);
}
.db-quick-tile:focus-visible,
.db-tile a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}
.db-quick-icon {
  display: grid;
  flex: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: var(--pink);
  background: color-mix(in srgb, var(--pink) 10%, transparent);
}
.db-quick-icon .db-ico {
  width: 18px;
  height: 18px;
}
.db-quick-tile > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.db-quick-tile strong {
  font-size: 14px;
  font-weight: 600;
}
.db-quick-tile small {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}
.db-tile > article {
  container-type: inline-size;
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--hair);
  border-radius: var(--db-r);
  background: var(--paper);
  overflow: hidden;
}
.db-tile.live > article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--ramp);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.db-tile.live > article:hover::before,
.db-tile.live > article:focus-within::before {
  transform: scaleX(1);
}
.db-tile.live > article:hover {
  border-color: color-mix(in srgb, var(--pink) 30%, var(--hair));
  box-shadow: 0 14px 40px -24px var(--glow);
}
.db-tile.soon > article {
  background: var(--raised);
  border-style: dashed;
}
.db-tile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.db-tile-head > div {
  flex: 1;
  min-width: 0;
}
.db-line-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 8px 0 0;
}
.db-line-row .db-line {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.db-tile-id {
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--hair);
}
.db-tile.live .db-tile-id {
  color: #fff;
  border-color: transparent;
  background: var(--ramp);
}
.db-tile h2 {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 9cqi, 28px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
}
.db-tile.soon h2 {
  color: var(--muted);
}
.db-tile h2 a:hover {
  color: var(--pink);
}
.database .db-line {
  margin: 0;
  font-size: 10px;
}
.db-pill {
  flex: none;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--hair);
  white-space: nowrap;
}
.db-pill.live {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
  background: color-mix(in srgb, var(--ok) 8%, transparent);
}
.db-pill.live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}
/* two by two, each stat a label row then a figure row of the same height, so every figure sits on one baseline */
.db-tile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--hair);
}
.db-tile-stats div {
  display: grid;
  grid-template-rows: 14px 24px;
  row-gap: 8px;
  min-width: 0;
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--hair);
}
.db-tile-stats div:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid var(--hair);
}
/* an odd last stat (a game with no SBCs shows three) takes the whole row */
.db-tile-stats div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.db-tile-stats dt {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--faint);
}
.db-tile-stats dd {
  margin: 0;
  overflow: hidden;
  font-size: 22px;
  font-weight: 700;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.db-tile-now {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.db-tile-now .k {
  margin-right: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.db-tile-soon {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.db-tile-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: auto;
}
/* the site's .block, at the tile's size (not .small, whose faint colour would grey the label) */
.db-tile-foot .db-open {
  min-width: 0;
  height: 46px;
  gap: 16px;
  font-size: 15px;
}
.db-tile-foot .block .arrow {
  width: 16px;
  height: 16px;
}
.db-tile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
}
.db-tile-links a {
  color: var(--muted);
}
.db-tile-links a:hover {
  color: var(--text);
}
.db-tile-time {
  flex-basis: 100%;
  margin: 0;
  font-size: 10px;
}
.database .last-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--raised);
}
/* in packs now: plain tiles without script; the script swaps in each game's own cards */
.db-hl-row {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 200px;
  gap: 12px;
  overflow-x: auto;
}
.db-hl {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--paper);
}
.db-hl:hover {
  border-color: color-mix(in srgb, var(--pink) 45%, var(--hair));
}
.db-hl img {
  grid-row: 1 / 4;
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.db-hl-rating {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
}
.db-hl-pos {
  display: none;
}
.db-hl strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-hl .mono {
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-hl-card {
  min-width: 0;
}
.db-hl-card p {
  margin: 8px 0 0;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-packs .card-grid.scroll {
  grid-auto-columns: 150px;
}
@media (max-width: 1100px) {
  .db-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .db-score {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .db-score-cell:nth-child(2) {
    border-right: 0;
  }
  .db-score-cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--hair);
  }
}
@media (max-width: 640px) {
  .db-landing {
    padding-top: 28px;
  }
  /* "Database" is about 6.1em wide in the display face: 11.5vw (vw counts the scrollbar) keeps it inside the hero
     down to 320px screens */
  .db-landing h1 {
    font-size: clamp(32px, 11.5vw, 48px);
  }
  .db-hero-intro {
    padding: 26px 18px 22px;
  }
  .db-score-cell {
    padding: 18px 16px 20px;
  }
  .db-quick {
    grid-template-columns: minmax(0, 1fr);
  }
  .db-tile > article {
    padding: 18px 16px;
  }
  .db-tile-foot .db-open {
    width: 100%;
  }
}

/* ---- a game's frame: title, game switch, tabs and the search bar --------------------------------------------- */
.db-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.db-head h1 {
  font-size: clamp(44px, 6.4vw, 76px);
}
.db-head .eyebrow .sample {
  color: var(--warn);
}
.db-games {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--raised);
}
.db-games a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.db-games a:hover {
  color: var(--text);
}
.db-games a.soon {
  color: var(--faint);
}
.db-games a[aria-current] {
  background: var(--paper);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 1px 0 var(--glass-edge), 0 6px 18px -10px var(--glow);
}
.db-bar {
  position: sticky;
  top: 64px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 10px 0 0;
  border-bottom: 1px solid var(--hair);
  transition: background 0.2s ease;
}
/* Clear over the page; only while it sits under the header does it take a ground, edge to edge. A blur would cover only
   the bar's own box and the edge-to-edge extension cannot carry one, so the two showed a seam at the column's edges
   (owner 2026-11-17: "bar at the top bugs out when scrolling down"): the ground is near opaque instead, the same
   everywhere. */
.db-bar.stuck {
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--bg) 96%, transparent);
  clip-path: inset(0 -100vmax);
  border-bottom-color: var(--glass-edge);
}
.db-bar-mark {
  display: block;
  height: 1px;
  margin-bottom: -1px;
}
.db-tabs {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0;
  border: 0;
}
.db-tabs a {
  padding: 6px 0 13px;
  margin-bottom: -1px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.db-tabs a:hover {
  color: var(--text);
}
.db-tabs a[aria-current] {
  color: var(--text);
  font-weight: 700;
  border-image: var(--ramp) 1;
}
.db-find {
  position: relative;
  flex: 0 1 340px;
  margin-bottom: 8px;
}
.db-find input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.db-find kbd {
  position: absolute;
  right: 12px;
  top: 10px;
  min-width: 20px;
  padding: 1px 6px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  font: 11px/16px var(--mono);
  color: var(--faint);
  text-align: center;
}
.db-find input:focus + kbd {
  display: none;
}
.db-find input:focus,
.db-rail-form input:focus,
.db-rail-form select:focus,
.db-filter:focus,
.db-dialog input:focus,
.builder-head select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 18%, transparent);
}
.db-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  min-width: 300px;
  padding: 6px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.35);
}
.suggest-row,
.suggest-all {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 13px;
}
.suggest-row .rc-xs,
.suggest-row .fut-card.mini {
  width: 34px;
}
.suggest-all {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.suggest-row:hover,
.suggest-row:focus,
.suggest-all:hover,
.suggest-all:focus {
  background: var(--raised);
  outline: none;
}
.db-body {
  padding-top: 28px;
  min-height: 420px;
}
.db-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 64px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--muted);
}
.db-foot a {
  color: var(--text);
  border-bottom: 1px solid var(--pink);
}
.db-foot span a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.db-soon .page-lead {
  margin-top: 36px;
}

/* ---- shared pieces --------------------------------------------------------------------------------------------- */
.db-h {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.db-section {
  margin-top: 48px;
}
.db-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--hair);
}
.db-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.db-more:hover {
  color: var(--text);
}
.db-more .arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.16s;
}
.db-more:hover .arrow {
  transform: translateX(3px);
}
.page-h {
  font-size: clamp(32px, 4.4vw, 52px);
  margin: 6px 0 10px;
  overflow-wrap: anywhere;
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--text);
}
.crumbs .arrow {
  width: 14px;
  height: 14px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: var(--paper);
  color: var(--text);
}
.icon-btn .x,
.chip-x .x {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.db .arrow {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.block.ghost svg,
.filter-btn svg,
.seg button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.block.small.ghost {
  gap: 10px;
  justify-content: center;
  min-width: 0;
  padding: 0 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  white-space: nowrap;
}
.chip.ghost {
  padding-right: 12px;
  color: var(--muted);
  cursor: pointer;
}
.chip-x {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--raised);
  color: var(--muted);
}
.chip-x:hover {
  color: var(--text);
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 5px 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.seg.wrap {
  flex-wrap: wrap;
  border-radius: 14px;
}
.seg a {
  color: var(--muted);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
}
.seg a[aria-selected="true"] {
  background: var(--paper);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 1px 0 var(--glass-edge), 0 4px 14px -8px var(--glow);
}
.seg button svg {
  vertical-align: -3px;
}
.db-stamp {
  font-size: 10px;
  color: var(--faint);
}
.coin {
  font-variant-numeric: tabular-nums;
}
.sub {
  font-size: 12px;
  color: var(--muted);
}
.who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.who b,
.who .sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.num {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.db-filter {
  height: 38px;
  min-width: 0;
  flex: 0 1 260px;
  padding: 0 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

/* states: skeletons while loading, then a clear empty or error with a way on */
.sk {
  display: block;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--hair) 0%, var(--raised) 50%, var(--hair) 100%);
  background-size: 200% 100%;
  animation: db-shimmer 1.3s ease-in-out infinite;
}
@keyframes db-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
.sk-card {
  aspect-ratio: 644 / 900;
}
.sk-rows {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.sk-row {
  height: 58px;
  border-radius: 10px;
}
.sk-rail {
  min-height: 480px;
}
.sk-stage {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
}
.sk-chart {
  height: 200px;
}
.sk-pitch {
  height: 520px;
  border-radius: 20px;
}
.db-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 40px 0;
  border-top: 1px solid var(--hair);
}
.db-empty-title {
  font-size: 28px;
}
.db-empty .block {
  margin-top: 8px;
}

/* ---- cards in grids and sideways rows --------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 18px 14px;
}
.card-grid.scroll {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 136px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.card-grid.scroll > * {
  scroll-snap-align: start;
}
.card-grid > a:focus-visible,
.player-list > a:focus-visible,
.sbc-grid > a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 10px;
}
.carousel {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
/* sideways rows never widen their panel: every container they sit in may shrink to the page */
.db-body,
.db-main,
.db-section,
.promo-list,
.promo,
.card-info,
.card-detail > *,
.db-browse > *,
.builder > * {
  min-width: 0;
}
.card-grid.scroll {
  max-width: 100%;
}
.nudge {
  position: absolute;
  top: 38%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 8px 22px -12px rgb(0 0 0 / 0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.nudge svg {
  width: 16px;
  height: 16px;
}
.nudge.prev {
  left: -18px;
}
.nudge.next {
  right: -18px;
}
.carousel:hover .nudge,
.nudge:focus-visible {
  opacity: 1;
}

/* ---- overview ----------------------------------------------------------------------------------------------------- */
.db-facts-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.db-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 48px;
  margin: 0;
}
.db-facts div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}
.db-facts dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.db-facts dd {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---- players: the filter rail and the results -------------------------------------------------------------------- */
.db-browse {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.db-rail {
  position: sticky;
  top: 150px;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--db-edge);
  border-radius: var(--db-r);
  background: var(--db-panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  scrollbar-width: thin;
}
.db-rail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.db-rail-head .db-h {
  margin-right: auto;
}
.sheet-close,
.sheet-done {
  display: none;
}
.db-rail-form {
  display: grid;
  gap: 14px;
}
.db-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.db-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.db-rail-form input:not([type="checkbox"]),
.db-rail-form select,
.builder-head select,
.db-dialog input[type="search"] {
  height: 40px;
  min-width: 0;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.pos-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pchip {
  min-width: 40px;
  padding: 5px 8px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font: 11px var(--mono);
  letter-spacing: 0.04em;
}
.pchip:hover {
  color: var(--text);
  border-color: var(--text);
}
.pchip[aria-checked="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.db-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--muted);
}
.db-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.db-checks input {
  accent-color: var(--pink);
}
.db-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 18px;
}
.db-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.db-count b {
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
}
.db-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.db-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
}
.player-list {
  border-top: 1px solid var(--hair);
}
.player-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 2fr) 48px minmax(0, 1fr) 150px 120px;
  align-items: center;
  gap: 16px;
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--hair);
  transition: background 0.2s ease, padding 0.25s ease;
}
.player-row.head {
  padding-top: 10px;
  padding-bottom: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
a.player-row:hover,
a.player-row:focus-visible {
  padding-left: 8px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--pink) 7%, transparent), transparent 70%);
}
.player-row .who b {
  font-size: 15px;
}
.player-row .pos {
  font-size: 11px;
}
.player-row .rarity {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
}
.mini-face {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  font-size: 12px;
  text-align: center;
}
.mini-face span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.mini-face i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--faint);
}
.num .coin {
  font-size: 15px;
}
.db-more-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.db-more-row p {
  font-size: 10px;
}
.db-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgb(0 0 0 / 0.35);
}

/* ---- one card --------------------------------------------------------------------------------------------------- */
.card-detail {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  margin-top: 18px;
}
.card-stage {
  --glow-ink: var(--pink);
  position: sticky;
  top: 150px;
  display: flex;
  justify-content: center;
  padding: 34px 24px;
  border-radius: 24px;
  border: 1px solid var(--db-edge);
  background:
    radial-gradient(70% 60% at 50% 35%, color-mix(in srgb, var(--glow-ink) 30%, transparent), transparent 75%),
    var(--db-panel);
}
.card-name {
  font-size: clamp(36px, 5vw, 60px);
  overflow-wrap: anywhere;
}
.card-sub {
  margin-top: 8px;
  font-size: 15px;
}
.price-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--db-edge);
  border-radius: 14px;
  background: var(--db-panel);
}
.price-panel > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.price-panel .big {
  font-size: 44px;
  line-height: 1;
}
.price-panel .mono {
  font-size: 10px;
}
/* no sales yet: a quiet dash and the words, not a 44px dash that reads as a bar */
.price-panel.no-price > div {
  align-items: center;
}
.price-panel .none {
  font: 400 22px/1 var(--mono);
  color: var(--faint);
}
.price-panel.no-price .mono {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.face-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.face-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border: 1px solid var(--db-edge);
  border-radius: 12px;
}
.face-tile b {
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}
.face-tile span {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.face-tile.high b {
  color: var(--ok);
}
.face-tile.top {
  border-color: color-mix(in srgb, var(--ok) 45%, transparent);
}
.face-tile.top b {
  color: var(--ok);
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.card-actions .block.small {
  height: 44px;
}
.copied {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.tagline {
  margin: 12px 0 0;
  font-size: 14px;
}
.tagline a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--pink);
}
.tagline.mono {
  font-size: 10px;
  color: var(--warn);
}
.db-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.db .readings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0 28px;
  margin: 0;
}
.history-head {
  margin: -6px 0 14px;
}
.chart-wrap {
  padding: 16px 18px 8px;
  border: 1px solid var(--db-edge);
  border-radius: 14px;
  background: var(--db-panel);
}
.trend {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}
.trend b {
  font-size: 16px;
  color: var(--text);
}
.trend.up b {
  color: var(--ok);
}
.trend.down b {
  color: var(--bad);
}
.price-chart {
  display: block;
  width: 100%;
  height: auto;
}
.price-chart .grid {
  stroke: var(--hair);
  stroke-width: 1;
}
.price-chart .axis {
  fill: var(--faint);
  font: 11px var(--mono);
}
.price-chart .band {
  fill: color-mix(in srgb, var(--pink) 12%, transparent);
}
.price-chart .line {
  fill: none;
  stroke: var(--pink);
  stroke-width: 2;
  stroke-linejoin: round;
}
.price-chart .dot {
  fill: var(--paper);
  stroke: var(--pink);
  stroke-width: 1.5;
}
.price-chart .dot:hover,
.price-chart .dot:focus {
  fill: var(--pink);
  outline: none;
}
.attr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px 40px;
}
.attr-group h3 {
  margin-bottom: 6px;
}
.attr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 26px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 13px;
}
.attr .bar {
  height: 3px;
  border-radius: 2px;
  background: var(--hair);
  overflow: hidden;
}
.attr .bar span {
  display: block;
  height: 100%;
  background: var(--faint);
}
.attr.mid .bar span {
  background: var(--warn);
}
.attr.high .bar span {
  background: var(--ok);
}
.attr b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---- compare ---------------------------------------------------------------------------------------------------- */
.compare {
  --cols: 2;
  display: grid;
  grid-template-columns: 120px repeat(var(--cols), minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid var(--hair);
}
.cmp-cell {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.cmp-cell.head {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 12px;
  text-align: center;
}
.cmp-cell.head .rc,
.cmp-cell.head .fut-card {
  max-width: 150px;
}
.cmp-name {
  font-weight: 700;
}
.cmp-cell.label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.cmp-cell.best {
  font-weight: 700;
  color: var(--ok);
}

/* ---- the compare tray --------------------------------------------------------------------------------------------- */
.db-tray {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: calc(100% - 32px);
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--db-edge);
  border-radius: 18px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -28px rgb(0 0 0 / 0.45);
  transform: translateX(-50%);
}
.db-tray-cards {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.db-tray-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.db-tray-actions .mono {
  font-size: 10px;
}

/* ---- promos ------------------------------------------------------------------------------------------------------ */
.promo-list {
  display: grid;
  gap: 14px;
}
.promo {
  padding: 18px 20px 6px;
  border: 1px solid var(--db-edge);
  border-radius: var(--db-r);
  background: var(--db-panel);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.promo.live {
  border-color: color-mix(in srgb, var(--pink) 30%, transparent);
}
.promo:hover {
  box-shadow: 0 14px 40px -22px var(--glow);
}
.promo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.promo-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.05;
}
.promo-head .mono {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 10px;
}
.promo-names {
  padding-bottom: 14px;
  font-size: 13px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent);
  animation: live-pulse 2.4s ease-out infinite;
}

/* ---- SBCs --------------------------------------------------------------------------------------------------------- */
.sbc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.sbc-tile {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--db-edge);
  border-radius: var(--db-r);
  background: var(--db-panel);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sbc-tile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--pink) 35%, transparent);
  box-shadow: 0 14px 40px -22px var(--glow);
}
.sbc-art {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--raised);
}
.sbc-art.blank {
  display: block;
  background: var(--ramp);
  opacity: 0.18;
}
.sbc-art.big {
  width: 120px;
  height: 120px;
}
.sbc-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sbc-name {
  font-size: 15px;
}
.sbc-body .sub {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sbc-body .mono {
  font-size: 10px;
}
.sbc-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.sbc-reward {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sbc-foot .coin {
  color: var(--text);
}
.set-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 14px;
}
.set-head .page-lead {
  margin: 6px 0 16px;
}
.challenge-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.challenge {
  padding: 18px 20px;
  border: 1px solid var(--db-edge);
  border-radius: var(--db-r);
  background: var(--db-panel);
}
.challenge-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.challenge-n {
  font-size: 11px;
  color: var(--faint);
}
.challenge-head h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  margin-right: auto;
}
.challenge-head .mono {
  font-size: 10px;
}
.reqs {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.reqs li {
  padding: 7px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
}
.reqs li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--pink);
  vertical-align: 2px;
}
.challenge-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.challenge-foot > span:first-child {
  margin-right: auto;
}
.challenge-foot .block.small {
  height: 42px;
  min-width: 0;
}

/* ---- squad builder ------------------------------------------------------------------------------------------------ */
.builder-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.builder-head.challenge {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.builder-head .db-pair {
  min-width: min(100%, 440px);
}
.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.pitch {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 14px;
  min-height: 560px;
  padding: 22px 12px;
  border-radius: 24px;
  border: 1px solid var(--db-edge);
  background:
    repeating-linear-gradient(180deg, color-mix(in srgb, var(--ok) 8%, transparent) 0 56px, transparent 56px 112px),
    radial-gradient(80% 60% at 50% 50%, color-mix(in srgb, var(--ok) 14%, transparent), transparent 80%),
    var(--db-panel);
}
.pitch-line {
  display: flex;
  justify-content: space-evenly;
  gap: 8px;
}
.slot {
  position: relative;
  width: min(104px, 18%);
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
}
.slot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 644 / 900;
  border: 1.5px dashed color-mix(in srgb, var(--text) 25%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.slot-empty svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.slot-empty .mono {
  font-size: 10px;
}
.slot:hover .slot-empty,
.slot:focus-visible .slot-empty {
  border-color: var(--pink);
  color: var(--text);
}
.slot:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 12px;
}
.slot-pos {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}
.slot-chem {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: 700 12px/22px var(--sans);
  text-align: center;
}
.builder-panel {
  position: sticky;
  top: 150px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--db-edge);
  border-radius: var(--db-r);
  background: var(--db-panel);
}
.builder-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.builder-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.builder-stats b {
  font-size: 26px;
  font-weight: 400;
}
.req-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.req-checks li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.req-checks .req-icon {
  width: 16px;
  height: 16px;
  stroke: var(--bad);
  fill: none;
  stroke-width: 2;
}
.req-checks li.met {
  color: var(--text);
}
.req-checks li.met .req-icon {
  stroke: var(--ok);
}
.req-checks .mono {
  font-size: 10px;
}
.done-line {
  color: var(--ok);
  font-weight: 700;
}
.warn-line {
  color: var(--warn);
  font-size: 13px;
}
.db-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(0 0 0 / 0.35);
}
.db-dialog-box {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 32px));
  padding: 18px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.5);
}
.pick-list {
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 2px;
}
.pick-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text);
  text-align: left;
}
.pick-row:hover,
.pick-row:focus-visible {
  background: var(--raised);
  outline: none;
}

/* ---- about -------------------------------------------------------------------------------------------------------- */
.prose {
  max-width: 680px;
}
.prose h3 {
  margin: 28px 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.prose p,
.prose li {
  color: var(--muted);
  font-size: 15px;
}
.prose ul {
  padding-left: 18px;
}

/* ---- phones and tablets --------------------------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .db-browse {
    grid-template-columns: 1fr;
  }
  .filter-btn {
    display: inline-flex;
  }
  .db-rail {
    display: none;
  }
  .db-rail.sk-rail {
    display: none;
  }
  .db-rail.open {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 45;
    display: block;
    max-height: 86vh;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: var(--paper);
    animation: db-sheet 0.22s ease-out;
  }
  .db-rail.open .sheet-close,
  .db-rail.open .sheet-done {
    display: inline-flex;
  }
  .db-rail.open .sheet-done {
    width: 100%;
    margin-top: 16px;
  }
  .card-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .card-stage {
    position: static;
  }
  .db-two {
    grid-template-columns: 1fr;
  }
  .builder {
    grid-template-columns: 1fr;
  }
  .builder-panel {
    position: static;
  }
  .player-row {
    grid-template-columns: 44px minmax(0, 2fr) 44px minmax(0, 1fr) 110px;
  }
  .player-row .mini-face,
  .player-row.head > :nth-child(5) {
    display: none;
  }
}
@keyframes db-sheet {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (max-width: 600px) {
  .db-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .db-games {
    max-width: 100%;
    overflow-x: auto;
  }
  .db-bar {
    top: 104px;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    margin-top: 22px;
  }
  .db-find {
    flex: none;
  }
  .db-tabs {
    gap: 20px;
  }
  .db-suggest {
    min-width: 0;
  }
  .db-facts {
    gap: 14px 28px;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
    gap: 12px 8px;
  }
  .card-grid.scroll {
    grid-auto-columns: 112px;
  }
  .nudge {
    display: none;
  }
  .player-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
  }
  .player-row.head {
    display: none;
  }
  .player-row > .pos,
  .player-row > .rarity {
    display: none;
  }
  .db-toolbar {
    gap: 10px;
  }
  .db-tools {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .db-filter {
    flex: 1 1 100%;
  }
  .face-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .price-panel .big {
    font-size: 36px;
  }
  .compare {
    grid-template-columns: 74px repeat(var(--cols), minmax(0, 1fr));
  }
  .cmp-cell {
    padding: 8px 6px;
    font-size: 13px;
  }
  .sbc-grid {
    grid-template-columns: 1fr;
  }
  .set-head {
    flex-direction: column;
  }
  .pitch {
    min-height: 420px;
    padding: 14px 4px;
  }
  .slot {
    width: 19%;
  }
  .slot-chem {
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    line-height: 18px;
  }
  .db-tray {
    left: 16px;
    right: 16px;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .db-tray-actions {
    justify-content: space-between;
  }
  .fc-rating {
    font-size: 24px;
  }
  .fc-name {
    font-size: 12px;
  }
  .fc-face {
    font-size: 10px;
    gap: 0 4px;
  }
  .fut-card.large,
  .rc-lg {
    width: min(232px, 100%);
  }
}

/* reduced motion: nothing slides, shimmers or pulses */
@media (prefers-reduced-motion: reduce) {
  .db *,
  .db *::before,
  .db-tray,
  .db-dialog * {
    animation: none !important;
    transition: none !important;
  }
}
[data-motion="reduced"] .db *,
[data-motion="reduced"] .db-tray {
  animation: none !important;
  transition: none !important;
}

/* ---- the card ---------------------------------------------------------------------------------------- */
.fut-card {
  --tier-a: #f6e3a1;
  --tier-b: #d4a72c;
  --tier-c: #b8891c;
  --ink: #1d1606;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  aspect-ratio: 5 / 7;
  padding: 12px 10px 10px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--tier-a), var(--tier-b) 58%, var(--tier-c));
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fut-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 46%, transparent 60%);
  opacity: 0.6;
}
.fut-card.silver {
  --tier-a: #f1f3f6;
  --tier-b: #bcc4cd;
  --tier-c: #98a1ab;
  --ink: #14181d;
}
.fut-card.bronze {
  --tier-a: #efcfae;
  --tier-b: #b47b45;
  --tier-c: #8a5a2c;
  --ink: #1a0f05;
}
.fut-card.special {
  --accent: #f2299a;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--accent) 70%, #0b0c10), transparent 75%),
    linear-gradient(180deg, #14161d, #0b0c10);
  color: #fbfbfa;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 65%, transparent), 0 10px 30px -18px var(--accent);
}
a.fut-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 16px 34px -18px var(--glow);
}
a.fut-card.special:hover {
  box-shadow: inset 0 0 0 1px var(--accent), 0 16px 36px -14px var(--accent);
}
.fc-top {
  position: absolute;
  top: 10px;
  left: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.fc-rating {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.02em;
}
.fc-pos {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.fc-photo,
.fc-mono {
  align-self: flex-end;
  width: 64%;
  aspect-ratio: 1;
  margin: 0 -2px 0 0;
}
.fc-photo {
  object-fit: contain;
}
.fc-mono {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 22px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.fut-card.special .fc-mono {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent);
}
.fc-name {
  margin-top: 8px;
  max-width: 100%;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fc-face {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px 6px;
  width: 100%;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  font-size: 11px;
  line-height: 1.35;
}
.fc-face span {
  display: flex;
  justify-content: center;
  gap: 3px;
}
.fc-face i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  opacity: 0.7;
  align-self: center;
}
.fc-rarity {
  margin-top: auto;
  padding-top: 6px;
  max-width: 100%;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fut-card.mini {
  width: 44px;
  padding: 0;
  border-radius: 8px;
  justify-content: center;
}
.fut-card.mini .fc-top {
  position: static;
}
.fut-card.mini .fc-rating {
  font-size: 17px;
}
.fut-card.mini .fc-pos {
  font-size: 7px;
}
.fut-card.mini .fc-photo,
.fut-card.mini .fc-mono,
.fut-card.mini .fc-name,
.fut-card.mini .fc-face,
.fut-card.mini .fc-rarity {
  display: none;
}
.fut-card.large {
  width: min(280px, 100%);
  padding: 22px 18px 16px;
  border-radius: 22px;
}
.fut-card.large .fc-top {
  top: 20px;
  left: 20px;
}
.fut-card.large .fc-rating {
  font-size: 54px;
}
.fut-card.large .fc-pos {
  font-size: 12px;
}
.fut-card.large .fc-mono {
  font-size: 44px;
}
.fut-card.large .fc-name {
  font-size: 20px;
  margin-top: 12px;
}
.fut-card.large .fc-face {
  font-size: 16px;
  gap: 4px 10px;
  padding-top: 10px;
}
.fut-card.large .fc-face i {
  font-size: 10px;
}
.fut-card.large .fc-rarity {
  font-size: 10px;
}


/* ---- the game's own card: frame, picture, badges and ink, laid out as each game's live AuroraDB lays
   them out (Aurora 21's card component, read 2026-11-16). Positions are shares of the card's width. */
.rc {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 644 / 900;
  container-type: inline-size;
  color: var(--fc-ink, #2a2006);
  text-shadow: var(--fc-glow, none);
  text-align: left;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.rc > * {
  position: absolute;
}
a.rc:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 14px 18px rgb(0 0 0 / 0.18));
}
a.rc:hover .rc-frame {
  filter: brightness(1.08);
}
.rc-sm {
  max-width: 170px;
  margin-inline: auto;
}
.rc-lg {
  width: min(260px, 100%);
}
.rc-xs {
  width: 44px;
  flex: none;
}
.rc-frame {
  inset: 0;
  width: 100%;
  height: 100%;
}
.rc-shade::before {
  content: "";
  position: absolute;
  inset: 6% 11.5% 7% 11.6%;
  background: linear-gradient(170deg, var(--fc-top, #2a2f36), var(--fc-bottom, #101316));
  clip-path: polygon(0 7%, 11% 0, 89% 0, 100% 7%, 100% 86%, 50% 100%, 0 86%);
}
.rc-face {
  width: 52%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: bottom;
  bottom: 48.3%;
  left: 35%;
}
.rc .rc-face.dynamic {
  width: 76.39%;
  aspect-ratio: 220 / 256;
  object-fit: fill;
  top: 13.75%;
  bottom: auto;
  left: 11.46%;
  -webkit-mask-image: linear-gradient(#000 57%, #0000 74%);
  mask-image: linear-gradient(#000 57%, #0000 74%);
}
.rc-strip {
  width: 17.19%;
  height: 48.5%;
  top: 21.25%;
  left: 18.4%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in srgb, var(--fc-strip, #000) 33%, transparent) 4.6%,
    color-mix(in srgb, var(--fc-strip, #000) 50%, transparent) 24.2%,
    color-mix(in srgb, var(--fc-strip, #000) 64%, transparent) 50%,
    color-mix(in srgb, var(--fc-strip, #000) 31%, transparent) 85.1%,
    transparent 100%
  );
}
.rc-rule {
  height: max(1px, 0.26cqw);
  background: var(--fc-line, currentColor);
}
.rc-rule-pos {
  width: 7.99%;
  top: 32%;
  left: 22.92%;
}
.rc-rule-flag {
  width: 7.99%;
  top: 40.5%;
  left: 22.92%;
}
.rc-rule-name {
  width: 54.69%;
  top: 61.25%;
  left: 21.88%;
}
.rc-rule-stats {
  width: max(1px, 0.26cqw);
  height: 17.1%;
  top: 64.25%;
  left: 49.48%;
}
.rc-rule-foot {
  width: 11.46%;
  top: 83.5%;
  left: 43.58%;
}
.rc-rating {
  color: var(--fc-rate, inherit);
  width: 20%;
  top: 15%;
  left: 16.9%;
  text-align: center;
  /* the site's display face runs wider than the game's: smaller so the number sits as in game */
  font: 400 13cqw/1 var(--display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.rc-xs .rc-rating {
  width: 30%;
  top: 11%;
  left: 12%;
  font-size: 20cqw;
}
.rc-xs .rc-face {
  width: 60%;
  left: 30%;
}
.rc-pos {
  color: var(--fc-rate, inherit);
  width: 20%;
  top: 24.5%;
  left: 16.9%;
  text-align: center;
  font: 700 6.6cqw/1 var(--sans);
  letter-spacing: 0.02em;
}
.rc-nation {
  width: 11.1cqw;
  aspect-ratio: 32 / 20;
  object-fit: contain;
  top: 33.5%;
  left: 21.35%;
}
.rc-club {
  width: 11.8cqw;
  aspect-ratio: 1;
  object-fit: contain;
  top: 42%;
  left: 21%;
}
.rc-name {
  top: 53.3%;
  left: 12%;
  right: 12%;
  height: 9.67cqw;
  overflow: hidden;
  text-align: center;
  font: 400 7.2cqw/9.67cqw var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--fc-name, inherit);
}
/* ---- FIFA 17 cards (Aurora 17): FIFA 17's own placements, read by Aurora 17 from the game's UI (CardControls +
   FutPlayerItem + FUTItemBaseClass) on its 272 x 380 frame = the 644 x 900 canvas, no crop
   (Playground/tmp/fifa17-card-layout/fifa17-card-layout.json, 2026-11-17). Text sits on the game's baselines:
   Aurora Sans has the game fonts' 0.70em capitals, and with line-height 1 its baseline is 0.845em below the box
   top, so top = baseline - 0.845 x size. Sizes in cqw = % of the height x 1.3975. Left-aligned text starts 2 frame
   px (0.735%) inside its field. FIFA 17 draws no rules or bar; the crest sits above the flag.
   EA's condensed faces stay local: the position, name and labels are Aurora Sans squeezed to the game's widths,
   measured against Aurora 17's render of the layout (RW 0.68, MESSI 0.78, PAC/SHO/DRI 0.57). */
.rc-f17 .rc-rule,
.rc-f17 .rc-strip {
  display: none;
}
.rc-f17 .rc-rating {
  /* field 21.32-39.71%, EABold 9.47% of the height, centred, baseline 21.66% (in game) */
  left: 21.32%;
  width: 18.39%;
  top: 13.66%;
  font: 700 13.23cqw/1 var(--sans);
  letter-spacing: -0.03em;
  text-shadow: var(--fc-shade-rate, none);
}
.rc-f17 .rc-pos {
  /* EACondBold 7.38%, centred, baseline 27.71% (in game) */
  left: 21.32%;
  width: 18.39%;
  top: 21.47%;
  font: 700 10.31cqw/1 var(--sans);
  letter-spacing: 0;
  text-shadow: var(--fc-shade-rate, none);
  transform: scaleX(0.68);
}
.rc-f17 .rc-club {
  /* crest at 21.69-38.42% x 29.21-41.18% */
  left: 21.69%;
  top: 29.21%;
  width: 16.73cqw;
}
.rc-f17 .rc-nation {
  /* every flag the same 57 x 34 at FLAG_XSCALE 82 / FLAG_YSCALE 85: 21.93-39.11% x 42.29-49.89%, stretched */
  left: 21.93%;
  top: 42.29%;
  width: 17.18cqw;
  height: 10.62cqw;
  aspect-ratio: auto;
  object-fit: fill;
}
.rc-f17 .rc-face {
  /* 128 x 128 head at 100%: 39.71-86.76% x 17.63-51.32%, resting on the name bar */
  left: 39.71%;
  width: 47.05%;
  bottom: 48.68%;
}
.rc-f17 .rc-name {
  /* EACondBold x-scale 1.2 at 6.58% of the height, centred on x 49.26%, baseline 58.50% (in game) */
  left: 15.44%;
  right: 16.91%;
  top: 52.94%;
  height: auto;
  font: 700 9.2cqw/1 var(--sans);
  letter-spacing: 0;
  text-shadow: var(--fc-shade-name, none);
  transform: scaleX(0.78);
  /* the squeeze leaves room: the field is 67.65% wide, so the text may run 1/0.78 of it before it is cut */
  left: 6.0%;
  right: 7.5%;
}
.rc-f17 .rc-stats {
  /* values from 18.38% and 54.41%, labels from 30.15% and 66.18% (+ the 0.735% gutter); EABold / EACondMedium
     6.32% of the height; baselines 66.41%, 74.04%, 81.16% */
  left: 19.12%;
  top: 61.07%;
  right: auto;
  grid-template-columns: 36.03cqw auto;
  grid-template-rows: 10.66cqw 9.95cqw 9.95cqw;
  line-height: 1;
  text-shadow: var(--fc-shade-ink, none);
}
.rc-f17 .rc-stats span {
  align-items: baseline;
}
.rc-f17 .rc-stats b {
  width: 11.77cqw;
  font: 700 8.83cqw/1 var(--sans);
  letter-spacing: -0.02em;
}
.rc-f17 .rc-stats small {
  margin-left: 0;
  font: 400 8.83cqw/1 var(--sans);
  transform: scaleX(0.57);
  transform-origin: left;
}
.rc-stats {
  top: 63%;
  left: 21.35%;
  right: 12%;
  display: grid;
  grid-template-columns: 36.8cqw 1fr;
  grid-template-rows: repeat(3, 8.93cqw);
  grid-auto-flow: column;
  font: 700 7.4cqw/8.93cqw var(--sans);
}
.rc-stats span {
  display: flex;
  align-items: baseline;
}
.rc-stats b {
  width: 9.38cqw;
}
.rc-stats small {
  margin-left: 1.2cqw;
  font-size: 88%;
  font-weight: 400;
}
/* ---- FIFA 18 cards (Aurora 18): FIFA 18's own placements, read by Aurora 18 from the game's UI (CardControls,
   FutPlayerItem, FUTItemBaseClass, the TextBox component and the EACond fonts' metrics) on its 272 x 380 frame = the
   644 x 900 canvas, no crop; the card is 220 x 356 at (26,16) (Playground/tmp/fifa18-card-layout/layout.json,
   2026-11-21). As for FIFA 17: Aurora Sans has the game fonts' 0.70em capitals, its baseline 0.845em under the box
   top at line-height 1, so top = baseline - 0.845 x size; 1 frame px = 0.3676cqw. FIFA 18's high-resolution crest
   sits above the flag; the two bars between the stat rows are the frame's own texture, so no rules or bar are drawn.
   Only the rating and position carry FIFA 18's drop shadow. EA's condensed faces stay local: Aurora Sans squeezed. */
.rc-f18 {
  text-shadow: none;
}
.rc-f18 .rc-rule,
.rc-f18 .rc-strip {
  display: none;
}
.rc-f18 .rc-rating {
  /* EACondBold 38, centred on x 50 in a 50 px field from x 25, baseline 98.12 */
  left: 9.19%;
  width: 18.38%;
  top: 17.37%;
  font: 700 13.97cqw/1 var(--sans);
  letter-spacing: -0.03em;
  text-shadow: var(--fc-glow, none);
  /* squeezed to EACondBold's width, measured on Aurora 18's render of the layout (93: 0.72) */
  transform: scaleX(0.72);
}
.rc-f18 .rc-pos {
  /* EACondBold 21, centred on x 50, baseline 112.17 */
  left: 9.19%;
  width: 18.38%;
  top: 24.85%;
  font: 700 7.72cqw/1 var(--sans);
  letter-spacing: 0;
  text-shadow: var(--fc-glow, none);
  transform: scaleX(0.68);
}
.rc-f18 .rc-club {
  /* the 256 px crest at 16%: drawn 39.36 x 39.84 at (30.8,117.48) */
  left: 11.32%;
  top: 30.92%;
  width: 14.47cqw;
  height: 14.65cqw;
  aspect-ratio: auto;
}
.rc-f18 .rc-nation {
  /* the 512 px flag texture at 8%: its flag drawn 35.84 x 21.52 at (33.32,162.76), stretched as in game */
  left: 12.25%;
  top: 42.83%;
  width: 13.18cqw;
  height: 7.91cqw;
  aspect-ratio: auto;
  object-fit: fill;
}
.rc-f18 .rc-face {
  /* the 120 px portrait at 1.3125: 157.5 px square at (74,30), resting on the name band */
  left: 27.21%;
  top: 7.89%;
  bottom: auto;
  width: 57.9cqw;
}
.rc.rc-f18 .rc-face.dynamic {
  /* a special card's picture in the same square from (74,31): the 220 x 256 image contained, bottom aligned */
  left: 27.21%;
  top: 8.16%;
  width: 57.9cqw;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: bottom;
  -webkit-mask-image: none;
  mask-image: none;
}
.rc-f18 .rc-name {
  /* EACondMedium 27 at x-scale 1.127, centred on x 159.62 in a 169 px clip from x 74, baseline 216 (the game's model
     gives 216.5, a pixel under its clip). The squeeze (MESSI: 0.79 on Aurora 18's render) is centred, so the field is
     1/0.79 as wide before it */
  left: 19.35%;
  right: 1.98%;
  top: 50.84%;
  height: auto;
  font: 600 9.93cqw/1 var(--sans);
  letter-spacing: 0;
  transform: scaleX(0.79);
}
.rc-f18 .rc-stats {
  /* values (EACondBold 27) from x 87 and 163, labels (EACondMedium 22, the label colour) from x 113 and 188;
     value baselines 255.5, 283.5, 311.5 (drawn 2 px higher, as on Aurora 18's render), labels 1.3 px higher;
     squeezed as measured there (89: 0.66, PAC: 0.69) */
  left: 31.99%;
  top: 60.7%;
  right: auto;
  grid-template-columns: 27.94cqw auto;
  grid-template-rows: repeat(3, 10.29cqw);
  line-height: 1;
}
.rc-f18 .rc-stats span {
  align-items: baseline;
}
.rc-f18 .rc-stats b {
  width: 9.56cqw;
  font: 700 9.93cqw/1 var(--sans);
  letter-spacing: -0.02em;
  transform: scaleX(0.66);
  transform-origin: left;
}
.rc-f18 .rc-stats small {
  position: relative;
  top: -0.47cqw;
  margin-left: 0;
  color: var(--fc-label, inherit);
  font: 500 8.09cqw/1 var(--sans);
  transform: scaleX(0.69);
  transform-origin: left;
}/* ---- FIFA 15 cards (Aurora 15; owner 2026-11-17: "15 cards are not drawing on panel"): FIFA 15's arrangement, as
   WeFUT draws it over the game's own frames (wefut.com/player/15/2749, measured 2026-11-17) and as Aurora's site drew
   it in September (CLUB-ARTWORK.md): a 238 x 354 card, the name at the top, the rating with the position beside it,
   the crest above the flag, the photo at the right, two columns of three stats. Aurora's family frames are fitted to
   the same box (tools/website/build-fifa15-card-art.mjs). 1 px of the card = 0.4202cqw; tops are baseline - 0.845em. */
.rc.rc-f15 {
  aspect-ratio: 238 / 354;
  /* the other games' frames sit inside a 644 x 900 canvas (Aurora 21's card on about 77% of its width, FIFA 17's on
     nearly all of it); FIFA 15's frame is the card itself, so it is drawn 88% wide, between the two, with margins
     that give it the same 644 x 900 box: a row of mixed games keeps one height */
  margin: 4.4% auto;
}
.rc.rc-f15,
.card-grid .rc.rc-f15 {
  width: 88%;
}
.rc-sm.rc-f15 {
  max-width: 150px;
}
.rc-lg.rc-f15 {
  width: min(229px, 88%);
}
.rc-xs.rc-f15 {
  width: 39px;
  margin: 2px 2.5px;
}
.rc-f15 .rc-frame {
  object-fit: fill;
}
.rc-f15 .rc-rule,
.rc-f15 .rc-strip {
  display: none;
}
.rc-f15.rc-shade::before {
  inset: 1.4% 2.1% 1.4% 2.1%;
}
.rc-f15 .rc-name {
  /* 23 px, centred on x 119 in a 180 px field, baseline y 46; bold and narrowed like 17's (the game's face is
     condensed), the field widened by the same factor so long names still fit */
  left: 2%;
  right: 2%;
  top: 7.52%;
  height: auto;
  font: 700 9.66cqw/1 var(--sans);
  letter-spacing: 0;
  transform: scaleX(0.84);
}
.rc-f15 .rc-rating {
  /* 36 px, centred on x 46.5, baseline y 78 */
  left: 7.98%;
  width: 23.11%;
  top: 13.44%;
  font: 700 15.13cqw/1 var(--sans);
  letter-spacing: -0.02em;
}
.rc-f15 .rc-pos {
  /* 20 px, centred on x 100, baseline y 74 */
  left: 32.35%;
  width: 19.33%;
  top: 16.13%;
  font: 700 8.4cqw/1 var(--sans);
  letter-spacing: 0;
  transform: scaleX(0.88);
}
.rc-f15 .rc-club {
  /* 45 x 45 at 42, 102 */
  left: 17.65%;
  top: 28.81%;
  width: 18.91cqw;
  aspect-ratio: 1;
}
.rc-f15 .rc-nation {
  /* 45 x 45 at 42, 142, the flag contained */
  left: 17.65%;
  top: 40.11%;
  width: 18.91cqw;
  aspect-ratio: 1;
  object-fit: contain;
}
.rc-f15 .rc-face {
  /* 128 x 128 at 100, 55 */
  left: 42.02%;
  top: 15.54%;
  bottom: auto;
  width: 53.78%;
}
.rc-f15 .rc-stats {
  /* 22 px; values from x 46 and 130, labels from x 76 and 160; baselines y 244, 279, 314 (WeFUT's stock frames) */
  left: 19.33%;
  top: 63.67%;
  right: auto;
  grid-template-columns: 35.29cqw auto;
  grid-template-rows: repeat(3, 14.71cqw);
  font: 700 9.24cqw/1 var(--sans);
}
.rc-f15 .rc-stats b {
  width: 12.61cqw;
  text-align: left;
  transform: scaleX(0.88);
  transform-origin: left;
}
.rc-f15 .rc-stats small {
  margin-left: 0;
  font: 700 9.24cqw/1 var(--sans);
  transform: scaleX(0.84);
  transform-origin: left;
}
/* Aurora's family frames are the game's own textures: the name band at y 193 and the stat lines at 229 / 262 / 296,
   so the photo sits on the band and each stat row is centred between its lines (baselines 253, 287, 321) */
.rc-f15g .rc-face {
  top: 18.36%;
}
.rc-f15g .rc-stats {
  top: 66.27%;
  grid-template-rows: repeat(3, 14.16cqw);
}
.card-grid .rc-sm {
  width: 100%;
}
.player-row .rc-xs {
  justify-self: start;
}

/* The game's cover, as the launcher's Stage (owner 2026-11-17: the site follows the launcher): the title on the game's
   own colours with its numeral, and the game switch as the launcher's coloured chips. */
.db-head[data-g] {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
  text-align: left;
  min-height: 220px;
  padding: 30px 34px 28px;
  border-radius: 24px;
  color: var(--gink);
  background: linear-gradient(135deg, var(--gbg), color-mix(in srgb, var(--gbg), #000 calc(var(--gdeep) * 100%)));
}
.db-head[data-g] > :not(.db-num) {
  position: relative;
  z-index: 1;
}
.db-head[data-g] .eyebrow {
  color: inherit;
  opacity: 0.78;
}
.db-head[data-g] .eyebrow .sample {
  color: inherit;
}
.db-num {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gfg);
  font: 700 clamp(120px, 17vw, 230px) / 0.8 var(--block);
  pointer-events: none;
}
.db-head[data-g]::before {
  content: "";
  position: absolute;
  left: 62%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: color-mix(in srgb, var(--gfg) 14%, transparent);
}
.db-head[data-g] .db-games {
  border: 0;
  background: color-mix(in srgb, var(--gink) 12%, transparent);
  gap: 6px;
  padding: 5px;
}
.db-head[data-g] .db-games a {
  min-width: 46px;
  padding: 7px 12px;
  text-align: center;
  background: var(--gbg);
  color: var(--gfg);
  font: 700 15px/1 var(--block);
  letter-spacing: 0.02em;
  opacity: 0.72;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.db-head[data-g] .db-games a:hover,
.db-head[data-g] .db-games a[aria-current] {
  opacity: 1;
}
.db-head[data-g] .db-games a[aria-current] {
  box-shadow: 0 0 0 2px var(--gink);
}
@media (max-width: 720px) {
  .db-head[data-g] {
    min-height: 0;
    padding: 24px 20px 20px;
    border-radius: 20px;
  }
  .db-num {
    right: -4px;
    top: 34%;
    font-size: 120px;
    opacity: 0.4;
  }
}

/* each game's badge in its launcher colours */
.db-tile-id[data-g] {
  background: var(--gbg) !important;
  color: var(--gfg) !important;
  font: 700 18px/1 var(--block) !important;
  letter-spacing: 0.02em !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14) !important;
}

/* ---- link-preview pictures (/og/render/<game>/<kind>/<id>, owner 2026-11-17): what Discord shows for a card, SBC or
   promo link. A fixed 1200x630 dark stage with the game's colour behind the card, screenshotted by the server. */
html[data-page="og"],
.og-body {
  margin: 0;
  width: 1200px;
  height: 630px;
  overflow: hidden;
  background: #0b0c10;
}
main.og {
  --og: #f0c030;
  --og-ink: #111111;
  position: relative;
  width: 1200px;
  height: 630px;
  overflow: hidden;
  color: #f4f5f7;
  background: linear-gradient(160deg, #15171d, #090a0d 70%);
}
main.og[data-g="12"] { --og: #e0303a; --og-ink: #ffffff; }
main.og[data-g="15"] { --og: #e4b430; --og-ink: #1a1a1a; }
main.og[data-g="17"] { --og: #f0c030; --og-ink: #111111; }
main.og[data-g="18"] { --og: #1546b0; --og-ink: #f2c14e; }
main.og[data-g="21"] { --og: #7a3cff; --og-ink: #ffffff; }
main.og .og-stage {
  position: relative;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  align-items: center;
  gap: 52px;
  box-sizing: border-box;
  height: 100%;
  padding: 0 72px 0 60px;
}
main.og .og-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(440px 440px at 270px 315px, color-mix(in srgb, var(--og) 46%, transparent), transparent 72%),
    radial-gradient(900px 360px at 1150px -40px, color-mix(in srgb, var(--og) 16%, transparent), transparent 70%);
}
main.og .og-card,
main.og .og-info,
main.og .og-art,
main.og .og-row {
  position: relative;
}
main.og .og-card {
  display: flex;
  justify-content: center;
}
main.og .og-card .rc,
main.og .og-card .fut-card {
  width: 380px;
  max-width: none;
  margin: 0;
  filter: drop-shadow(0 26px 40px rgb(0 0 0 / 0.55));
}
main.og .og-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
main.og .og-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.6);
}
main.og .og-eyebrow b {
  color: var(--og);
  font-weight: 700;
}
main.og .og-name {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-family: var(--display);
  font-size: 78px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
main.og .og-name.long {
  font-size: 62px;
}
main.og .og-name.small {
  font-size: 54px;
}
main.og .og-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0;
}
main.og .og-rating {
  font: 700 52px/1 var(--block);
  color: var(--og);
}
main.og .og-pos {
  font: 700 34px/1 var(--block);
  letter-spacing: 0.04em;
}
main.og .og-tag {
  padding: 7px 16px;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 999px;
  font-size: 22px;
  color: rgb(255 255 255 / 0.86);
}
main.og .og-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
}
main.og .og-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0 10px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.07);
}
main.og .og-stats b {
  font: 700 34px/1 var(--block);
}
main.og .og-stats span {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: rgb(255 255 255 / 0.6);
}
main.og .og-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: 0;
  font-size: 22px;
  color: rgb(255 255 255 / 0.74);
}
main.og .og-price {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  gap: 6px;
  max-width: 640px;
  padding: 14px 24px 16px 20px;
  border-left: 4px solid var(--og);
  border-radius: 0 12px 12px 0;
  background: rgb(255 255 255 / 0.06);
}
main.og .og-price .k {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.6);
}
main.og .og-price b {
  font: 700 38px/1.1 var(--block);
}
main.og .og-price b.og-reward {
  font: 700 28px/1.25 var(--display);
}
main.og .og-desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 24px;
  line-height: 1.3;
  color: rgb(255 255 255 / 0.76);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
main.og .og-reqs {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 22px;
}
main.og .og-reqs li {
  position: relative;
  padding-left: 24px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
main.og .og-reqs li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--og);
}
main.og .og-reqs li.more {
  color: rgb(255 255 255 / 0.6);
}
main.og .og-reqs li.more::before {
  display: none;
}
main.og .og-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 420px;
  height: 420px;
}
main.og .og-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgb(0 0 0 / 0.5));
}
main.og .og-art.blank {
  border-radius: 32px;
  background: linear-gradient(150deg, var(--og), color-mix(in srgb, var(--og) 45%, #000000));
  color: var(--og-ink);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.45);
}
main.og .og-art.blank b {
  font: 700 132px/1 var(--block);
  letter-spacing: 0.02em;
}
main.og .og-art.blank span {
  font-size: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
main.og.og-wide .og-stage {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  padding: 44px 64px 0;
}
main.og.og-wide .og-info {
  gap: 14px;
}
main.og .og-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 22px;
}
main.og .og-row .rc,
main.og .og-row .fut-card {
  flex: 0 1 250px;
  width: 250px;
  min-width: 0;
  max-width: none;
  margin: 0;
  filter: drop-shadow(0 18px 28px rgb(0 0 0 / 0.5));
}
main.og .og-brand {
  position: absolute;
  right: 40px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: rgb(255 255 255 / 0.62);
}
main.og .og-brand img {
  width: auto;
  height: 28px;
}
