/* ============================================================
   SkinSignal / the landing's flex profile section
   index.html #flexProfile. The copy on the left (~0.72fr), an example
   public profile on the right (~1.28fr, it is the product demo), then
   the four things a profile gives you. js/flex-profile.js draws the
   profile from its one DEMO object.

   A REAL PRODUCT SCREEN, NOT A SCENE. The profile sits in a dark shell
   with a gold hairline and a lit top edge, on a quiet CSS material: a
   soft light behind the emblem, a slow ambient glow behind the shell. No painted background, no tilt, no glowing border.
   ============================================================ */

.fp {
  --fp-bg: #05080d;
  --fp-gold: #e4ae39;
  --fp-blue: #6a9fff;
  --fp-ink: #f1f3f6;
  --fp-ink-2: #b9bfca;
  --fp-ink-3: #8a919e;
  --fp-line: rgba(96, 140, 220, 0.15);
  --r-common: 176, 184, 196;
  --r-rare: 74, 144, 255;
  --r-epic: 163, 91, 255;
  --r-legendary: 240, 180, 41;
  --r-rank: 120, 172, 255;
  --pad: clamp(20px, 3.8vw, 76px);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 6vw, 112px) 0 clamp(56px, 5vw, 96px);
  background:
    radial-gradient(38% 50% at 66% 40%, rgba(228, 174, 57, var(--amb-gold, 0.07)), rgba(228, 174, 57, 0) 70%),
    radial-gradient(40% 46% at 80% 20%, rgba(61, 127, 255, var(--amb-blue, 0.08)), rgba(61, 127, 255, 0) 70%),
    var(--fp-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.fp__inner { padding: 0 var(--pad); }

.fp__top {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(28px, 3vw, 60px);
}

/* ============================================================
   THE COPY
   ============================================================ */
.fp__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.2em;
  margin: 0 0 clamp(14px, 1.2vw, 20px);
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 600;
  font-size: clamp(12px, 0.8vw, 15px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c9d2e3;
}
.fp__eyebrow-n {
  margin-right: 0.9em;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fp-blue);
}
.fp__eyebrow span[aria-hidden] { margin: 0 0.35em; color: var(--fp-ink-3); }
.fp__eyebrow b { font-weight: 700; color: var(--fp-ink); }

.fp__title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 800;
  font-size: clamp(42px, 4vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fp-ink);
}
.fp__line { display: block; white-space: nowrap; }
.fp__line--gold {
  color: var(--fp-gold);
  background: linear-gradient(180deg, #f6d27a 0%, #e8b544 52%, #c98a1c 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fp__body {
  margin: clamp(16px, 1.4vw, 24px) 0 clamp(20px, 1.6vw, 28px);
  max-width: 520px;
  font-family: var(--font-body);
  font-size: clamp(15px, 1vw, 19px);
  line-height: 1.55;
  color: var(--fp-ink-2);
}
.fp__body b { font-weight: 500; color: var(--fp-ink); }

.fp__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(18px, 1.6vw, 30px);
  margin: 0 0 clamp(22px, 2vw, 34px);
  padding: 0;
  list-style: none;
  font-family: var(--font-body);
  font-size: clamp(12.5px, 0.78vw, 14.5px);
  line-height: 1.35;
  color: #c5cad3;
}
.fp__benefits li { display: flex; align-items: center; gap: 11px; }
.fp__benefits svg,
.fp__trust svg,
.fp-feat__icon {
  flex: none;
  fill: none;
  stroke: var(--fp-gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fp__benefits svg { width: 28px; height: 28px; }

/* Outranks .cta--lg in css/buttons.css, which loads last. */
.fp .fp__cta {
  height: clamp(52px, 3.3vw, 62px);
  padding-right: clamp(24px, 1.8vw, 32px);
  font-size: clamp(15px, 1vw, 18px);
}

.fp__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(18px, 1.6vw, 28px);
  margin: clamp(18px, 1.4vw, 24px) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-body);
  font-size: clamp(12.5px, 0.78vw, 14.5px);
  color: #c5cad3;
}
.fp__trust li { display: flex; align-items: center; gap: 8px; }
.fp__trust svg { width: 18px; height: 18px; }
.fp__trust li:first-child svg { stroke: none; color: #e9eef7; }

/* ============================================================
   THE PROFILE
   ============================================================ */
.fp__art { position: relative; min-width: 0; }

/* The slow ambient light behind the shell. */
.fp__art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: -1;
  width: 90%;
  height: 90%;
  translate: -50% -50%;
  background:
    radial-gradient(closest-side, rgba(228, 174, 57, 0.12), rgba(228, 174, 57, 0) 72%),
    radial-gradient(closest-side at 70% 30%, rgba(61, 127, 255, 0.1), rgba(61, 127, 255, 0) 80%);
  filter: blur(20px);
  opacity: 0.9;
  pointer-events: none;
}

.fp__shell {
  position: relative;
  padding: clamp(14px, 1.2vw, 22px);
  border: 1px solid rgba(228, 174, 57, 0.5);
  border-radius: 18px;
  background:
    radial-gradient(60% 50% at 22% 44%, rgba(61, 127, 255, 0.08), rgba(61, 127, 255, 0) 70%),
    linear-gradient(180deg, #0c1320 0%, #070b13 100%);
  box-shadow:
    0 56px 110px -44px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 70px -26px rgba(228, 174, 57, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
/* The lit top edge. */
.fp__shell::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 8%;
  right: 30%;
  height: 1px;
  background: linear-gradient(90deg, rgba(246, 210, 122, 0), rgba(246, 210, 122, 0.75) 30%, rgba(246, 210, 122, 0.2) 75%, rgba(246, 210, 122, 0));
  pointer-events: none;
}

.fp-example {
  position: absolute;
  top: -10px;
  right: 22px;
  z-index: 2;
  padding: 3px 8px;
  border: 1px solid rgba(217, 200, 160, 0.35);
  border-radius: 4px;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9c8a0;
  background: #0a0f18;
}

.fp__note {
  margin: 12px 6px 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--fp-ink-3);
}

/* ---------- The bar ---------- */
.fp-bar {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.6vw, 30px);
  padding: 2px 4px clamp(12px, 1vw, 18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.fp-bar__logo { display: block; width: auto; height: clamp(22px, 1.9vw, 38px); margin: -4px 0; flex: none; }
.fp-bar__nav { display: flex; gap: clamp(14px, 1.3vw, 24px); }
.fp-bar__nav span { position: relative; font-family: var(--font-body); font-size: clamp(12px, 0.72vw, 13.5px); color: var(--fp-ink-3); white-space: nowrap; }
.fp-bar__nav .is-on { color: var(--fp-ink); }
.fp-bar__nav .is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: rgba(228, 174, 57, 0.8); }
.fp-bar__steam {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--fp-ink);
  white-space: nowrap;
}
.fp-steam { width: 16px; height: 16px; flex: none; }
.fp-ext { width: 13px; height: 13px; flex: none; color: var(--fp-ink-3); }

/* ---------- The body ---------- */
.fp-body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.6fr);
  gap: clamp(14px, 1.3vw, 24px);
  padding-top: clamp(14px, 1.2vw, 22px);
}
.fp-side { display: flex; flex-direction: column; gap: clamp(10px, 1vw, 18px); min-width: 0; }

.fp-id { display: flex; align-items: center; gap: 14px; }
.fp-id__avatar {
  flex: none;
  width: clamp(56px, 4.4vw, 84px);
  height: clamp(56px, 4.4vw, 84px);
  border: 2px solid rgba(228, 174, 57, 0.55);
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #1b2740, #0a0f18 70%);
  box-shadow: 0 0 0 3px rgba(5, 8, 13, 0.9), 0 10px 24px -10px rgba(0, 0, 0, 0.9);
}
/* The agent render is full length: an avatar frames head and shoulders. */
.fp-id__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(1.9); transform-origin: 50% 18%; }
.fp-id__who { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fp-id__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 800;
  font-size: clamp(20px, 1.6vw, 30px);
  line-height: 1;
  color: var(--fp-ink);
  white-space: nowrap;
}
.fp-id__member {
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a1020;
  background: linear-gradient(180deg, #7eacff 0%, #4c8dff 100%);
}
.fp-id__steam {
  display: flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--fp-ink-2);
}

/* The rank: the real emblem, big, in a quiet light. */
.fp-rank {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  text-align: center;
}
.fp-rank__glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 90%;
  aspect-ratio: 1 / 1;
  translate: -50% -50%;
  background:
    radial-gradient(closest-side, rgba(228, 174, 57, 0.16), rgba(228, 174, 57, 0) 70%),
    radial-gradient(closest-side, rgba(76, 141, 255, 0.14), rgba(76, 141, 255, 0) 100%);
  filter: blur(8px);
  pointer-events: none;
}
.fp-rank__em { position: relative; display: block; width: min(86%, 270px); aspect-ratio: 1 / 1; }
.fp-rank__em img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.7)); }
.fp-rank__label {
  position: relative;
  margin: 6px 0 2px;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fp-ink-3);
}
.fp-rank__name {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 800;
  font-size: clamp(22px, 1.8vw, 34px);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fp-gold);
  background: linear-gradient(180deg, #f6d27a 0%, #e8b544 52%, #c98a1c 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fp-rank__tier {
  position: relative;
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 600;
  font-size: clamp(10.5px, 0.66vw, 12.5px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fp-ink-2);
}

/* ---------- The cards ---------- */
.fp-main { display: flex; flex-direction: column; gap: clamp(12px, 1vw, 18px); min-width: 0; }
.fp-label {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 700;
  font-size: clamp(10.5px, 0.66vw, 12.5px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fp-ink-2);
}

.fp-card {
  --rc: var(--r-common);
  display: block;
  aspect-ratio: 3 / 1;
  border: 1px solid rgba(var(--rc), 0.55);
  border-radius: 6px;
  overflow: hidden;
  background: #0b0e14;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.9);
}
.fp-card picture,
.fp-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fp-card--rare { --rc: var(--r-rare); }
.fp-card--epic { --rc: var(--r-epic); }
.fp-card--legendary { --rc: var(--r-legendary); }
.fp-card--rank { --rc: var(--r-rank); }
.fp-card--worn {
  border-color: rgba(var(--r-legendary), 0.85);
  border-radius: 8px;
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.95), 0 0 40px -10px rgba(240, 180, 41, 0.35);
}

.fp-show {
  padding: clamp(10px, 0.9vw, 16px);
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 30, 50, 0.45) 0%, rgba(10, 15, 25, 0.45) 100%);
}
.fp-show__head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 4px; }
.fp-show__all { font-family: var(--font-body); font-size: 12px; color: var(--fp-blue); }
.fp-show__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 0.6vw, 12px); }

/* ---------- The stats: public-safe only ---------- */
.fp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 0.7vw, 12px);
  margin-top: clamp(14px, 1.2vw, 22px);
}
.fp-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(10px, 0.8vw, 14px) clamp(12px, 0.9vw, 16px);
  border: 1px solid var(--fp-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}
.fp-stat svg {
  flex: none;
  width: clamp(24px, 1.6vw, 30px);
  height: clamp(24px, 1.6vw, 30px);
  fill: none;
  stroke: var(--fp-blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fp-stat--gold svg { stroke: var(--fp-gold); }
.fp-stat > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fp-stat__fig {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: clamp(16px, 1.15vw, 22px);
  line-height: 1.1;
  color: var(--fp-ink);
  white-space: nowrap;
}
.fp-stat__fig small { font-size: 0.62em; color: var(--fp-ink-3); }
/* A rank name may take two lines in a narrow tile rather than be cut. */
.fp-stat__fig--rank {
  white-space: normal;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fp-gold);
}
.fp-stat__label {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 600;
  font-size: clamp(9px, 0.56vw, 10.5px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fp-ink-3);
}
.fp-stat__sub { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; color: var(--fp-ink-3); }
.fp-stat__bar { display: block; height: 3px; margin-top: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.fp-stat__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3478f6, #6a9fff); }

/* ---------- The climb ---------- */
.fp-climb {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1vw, 18px);
  margin-top: clamp(10px, 0.9vw, 16px);
  padding: 10px clamp(12px, 0.9vw, 16px);
  border: 1px solid var(--fp-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
}
.fp-climb__end { display: flex; align-items: center; gap: 10px; flex: none; }
.fp-climb__end--next { text-align: right; }
.fp-climb__em { display: block; width: 34px; height: 34px; flex: none; }
.fp-climb__em img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fp-climb__end > span { display: flex; flex-direction: column; gap: 2px; }
.fp-climb__k {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fp-ink-3);
}
.fp-climb__v { font-family: var(--font-display); font-stretch: 100%; font-weight: 700; font-size: 13px; color: var(--fp-ink); white-space: nowrap; }
.fp-climb__v small { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 400; font-size: 11px; color: var(--fp-ink-3); }
.fp-climb__rail { flex: 1 1 auto; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.fp-climb__rail span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e4ae39, #6a9fff); }

/* ============================================================
   THE FOUR THINGS A PROFILE GIVES YOU
   ============================================================ */
.fp__features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 0.8vw, 14px);
  margin: clamp(28px, 2.6vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}
.fp-feat {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.2vw, 22px);
  padding: clamp(18px, 1.4vw, 26px);
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.6) 0%, rgba(8, 13, 22, 0.6) 100%);
}
.fp-feat__icon { width: clamp(32px, 2.4vw, 44px); height: clamp(32px, 2.4vw, 44px); }
.fp-feat__text {
  font-family: var(--font-body);
  font-size: clamp(13px, 0.82vw, 15.5px);
  line-height: 1.5;
  color: var(--fp-ink-2);
}
.fp-feat__head {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 700;
  font-size: clamp(12.5px, 0.84vw, 16px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fp-ink);
}
.fp-feat__n { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500; letter-spacing: 0.04em; color: var(--fp-blue); }

/* ============================================================
   MOTION, only when asked for (js/flex-profile.js arms it)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .fp__art::before { animation: fpAmbient 14s ease-in-out infinite alternate; }

  .fp.is-armed .fp__copy,
  .fp.is-armed .fp__features { opacity: 0; translate: 0 var(--reveal-rise, 12px); }
  .fp.is-armed .fp__art { opacity: 0; translate: 0 var(--reveal-rise, 12px); scale: 0.985; }
  .fp.is-armed .fp-show__cell { opacity: 0; translate: 0 var(--reveal-rise-sm, 8px); }

  .fp.is-in .fp__copy,
  .fp.is-in .fp__features {
    opacity: 1;
    translate: 0 0;
    transition: opacity var(--reveal-fade, 550ms) ease, translate var(--reveal-dur, 650ms) var(--ease);
  }
  .fp.is-in .fp__features { transition-delay: 420ms; }
  .fp.is-in .fp__art {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    transition: opacity var(--reveal-fade, 550ms) ease 100ms, translate var(--reveal-dur, 650ms) var(--ease) 100ms, scale var(--reveal-dur, 650ms) var(--ease) 100ms;
  }
  .fp.is-in .fp-show__cell {
    opacity: 1;
    translate: 0 0;
    transition: opacity var(--reveal-fade-sm, 420ms) ease, translate var(--reveal-dur-sm, 480ms) var(--ease);
    transition-delay: calc(420ms + var(--k, 0) * 35ms);
  }
}

@keyframes fpAmbient {
  from { opacity: 0.75; scale: 0.97; }
  to   { opacity: 1;    scale: 1.03; }
}

/* ============================================================
   NARROWER SCREENS
   ============================================================ */
@media (max-width: 1499px) {
  .fp__top { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .fp__title { font-size: clamp(38px, 3.8vw, 62px); }
  .fp-body { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); }
}

@media (max-width: 1299px) {
  .fp-bar__nav span:nth-child(n+3) { display: none; }
  .fp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* STACKED: the copy, then the profile at full width, then the strip. */
@media (max-width: 1199px) {
  .fp__top { grid-template-columns: minmax(0, 1fr); }
  .fp__copy { max-width: 680px; }
  .fp__title { font-size: clamp(38px, 7vw, 64px); }
  .fp-bar__nav span:nth-child(n+3) { display: inline; }
  .fp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fp__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* PHONES: the profile reflows rather than shrinks. Bar, identity and
   emblem, the worn card, the showcase two across, the stats two by two,
   the climb; the strip one per row. */
@media (max-width: 899px) {
  .fp__line { white-space: normal; }
  .fp-bar__nav { display: none; }
  .fp-body { grid-template-columns: minmax(0, 1fr); }
  .fp-side { flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
  .fp-id { flex: 1 1 260px; }
  .fp-rank { flex: 0 0 auto; width: min(44%, 220px); margin: 0 auto; }
  .fp-show__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp__features { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 519px) {
  .fp-side { flex-direction: column; }
  .fp-id { flex: none; align-self: stretch; }
  .fp-rank { width: min(70%, 240px); }
  .fp-climb { flex-wrap: wrap; }
  .fp-climb__rail { order: 3; flex-basis: 100%; }
  .fp-climb__end--next { margin-left: auto; }
  .fp-bar__steam { padding: 6px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .fp__art::before { animation: none; }
  .fp__copy, .fp__features, .fp__art, .fp-show__cell { transition: none; }
}
