/* Everest screener. The intro sits on the dune field, sunlit in a light room and moonlit in a dark
   one. While rating, the page takes on the colours of the screen showing, and the chrome follows
   that screen's own look: bright and airy for Light, muted and transparent for Dark. */

@font-face {
  font-family: "Tektur";
  src: url("fonts/Tektur-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Tektur";
  src: url("fonts/Tektur-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --num: "Tektur", var(--font);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --gutter: 16px;
}

/* Light: sunlit, white frost, ink, the specimen blue. */
.app,
.app[data-tone="light"] {
  color-scheme: light;
  --ink: #111318;
  --ink-2: #3c414b;
  --ink-3: #4f5562;
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --edge: rgba(255, 255, 255, 0.92);
  --line: rgba(17, 19, 24, 0.09);
  --accent: #0057ff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 87, 255, 0.12);
  --ring: #0057ff;
  --shadow: 0 16px 34px -18px rgba(110, 62, 18, 0.45), 0 2px 6px -2px rgba(110, 62, 18, 0.16);
  --card-shadow: 0 34px 60px -30px rgba(70, 44, 18, 0.6), 0 8px 18px -8px rgba(70, 44, 18, 0.28);
  --blur: blur(24px) saturate(165%);
  --veil: rgba(255, 255, 255, 0.34);
  /* Behind each screen: its own colours, softened toward a bright sky. */
  --wash-base: #fbefdc; --wash-mix: 30%;

  /* The five answers: coral for the two below the middle, neutral in the middle, blue above. */
  --s1: #cf3a26; --s1-ink: #ffffff;
  --s2: rgba(207, 58, 38, 0.13); --s2-ink: #9c2715;
  --s3: rgba(17, 19, 24, 0.06); --s3-ink: #17191e;
  --s4: rgba(0, 87, 255, 0.12); --s4-ink: #0041bd;
  --s5: #0057ff; --s5-ink: #ffffff;
}

/* Dark: moonlit, smoky glass, muted silver ink. */
.app[data-tone="dark"] {
  color-scheme: dark;
  --ink: #f1f3f7;
  --ink-2: #c3cad7;
  --ink-3: #a1aabb;
  --glass: rgba(16, 20, 32, 0.52);
  --glass-strong: rgba(22, 27, 41, 0.78);
  --edge: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #1668ff;
  --accent-soft: rgba(70, 140, 255, 0.2);
  --ring: #8cb8ff;
  --shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
  --card-shadow: 0 34px 64px -26px rgba(0, 0, 0, 0.85), 0 8px 18px -8px rgba(0, 0, 0, 0.5);
  --blur: blur(22px) saturate(140%);
  --veil: rgba(6, 9, 16, 0.42);
  /* In Dark, a light screen's colours only tint the night: no bright flashes between screens. */
  --wash-base: #0c111c; --wash-mix: 26%;

  --s1: #d13f2c; --s1-ink: #ffffff;
  --s2: rgba(255, 112, 92, 0.18); --s2-ink: #ffb8ad;
  --s3: rgba(255, 255, 255, 0.1); --s3-ink: #f1f3f7;
  --s4: rgba(84, 148, 255, 0.2); --s4-ink: #b8d1ff;
  --s5: #1668ff; --s5-ink: #ffffff;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #e9d8bf;
  height: 100%;
}
@media (prefers-color-scheme: dark) {
  html { background: #141a28; }
}
body {
  margin: 0;
  min-height: 100%;
  font: 400 17px/1.4 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
button { font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.app {
  position: relative;
  min-height: 100svh;
  color: var(--ink);
  isolation: isolate;
}
.app ::selection { background: var(--accent-soft); color: var(--ink); }
.app :focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.app [tabindex="-1"]:focus { outline: none; }

/* ------------------------------------------------------------------ Behind everything */

.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.dunes, .dunes img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dunes img { object-fit: cover; object-position: 50% 62%; max-width: none; }
.dunes { transition: opacity 500ms var(--out); }
.wash {
  position: absolute; inset: 0; opacity: 0;
  background:
    radial-gradient(120% 70% at 50% 38%, var(--veil), transparent 70%),
    linear-gradient(180deg,
      color-mix(in oklab, var(--top, #888) var(--wash-mix), var(--wash-base)),
      color-mix(in oklab, var(--bottom, #888) var(--wash-mix), var(--wash-base)));
  transition: opacity 520ms var(--out);
}
.app[data-view="rate"] .wash.on { opacity: 1; }
.app[data-view="rate"] .dunes { opacity: 0; }
/* Between tabs the landscape comes back, so a new part reads as a new start. */
.app[data-view="rate"][data-mode="part"] .wash.on { opacity: 0; }
.app[data-view="rate"][data-mode="part"] .dunes { opacity: 1; }

/* ------------------------------------------------------------------ The intro */

.intro {
  display: flex; flex-direction: column;
  min-height: 100svh;
  padding: calc(var(--safe-t) + 14px) calc(var(--safe-r) + var(--gutter)) calc(var(--safe-b) + var(--gutter)) calc(var(--safe-l) + var(--gutter));
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink);
}
.app[data-tone="light"] .intro .brand { color: #1b1406; }
.brand-mark { width: 40px; height: 11px; }

.fan {
  position: relative;
  flex: 1 1 0; min-height: 0;
  margin: 12px 0 18px;
  display: grid; place-items: center;
}
.fan-card {
  grid-area: 1 / 1;
  height: min(100%, 330px);
  aspect-ratio: var(--ar, 780 / 1696);
  max-height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition: opacity 700ms var(--out), transform 900ms var(--out);
}
.fan-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fan-card:nth-child(1) { z-index: 3; }
.fan-card:nth-child(2) { z-index: 2; }
.fan-card:nth-child(3) { z-index: 1; }
.fan-card.in { opacity: 1; transform: none; }
.fan-card.in:nth-child(2) { transform: translateX(-46%) rotate(-8deg) scale(0.9); transition-delay: 90ms; }
.fan-card.in:nth-child(3) { transform: translateX(46%) rotate(8deg) scale(0.9); transition-delay: 160ms; }

.intro-copy {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 22px 20px 20px;
  border-radius: 26px;
  border: 1px solid var(--edge);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}
@media (max-height: 700px) { .fan { display: none; } .intro-copy { margin-top: auto; } }
h1, h2 { text-wrap: balance; }
.intro h1 {
  margin: 0 0 8px;
  font-size: clamp(27px, 7.4vw, 34px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em;
}
.lede { margin: 0 0 14px; font-size: 16px; line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.how { margin: 0 0 10px; font-size: 15px; line-height: 1.4; color: var(--ink); font-weight: 500; text-wrap: pretty; }
.fine { margin: 12px 0 16px; font-size: 13.5px; line-height: 1.42; color: var(--ink-3); text-wrap: pretty; }

/* Two optional questions about the person. A tap saves; the chosen answer is tinted and ringed. */
.about { display: grid; gap: 12px; margin: 0 0 18px; }
.ask { min-width: 0; margin: 0; padding: 0; border: 0; }
.ask legend { padding: 0; margin: 0 0 6px; font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.ask .opt { margin-left: 5px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  flex: 1 1 auto;
  min-height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--glass); color: var(--ink-2);
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  touch-action: manipulation;
  transition: background-color 160ms, color 160ms, border-color 160ms, box-shadow 160ms;
}
.chips button[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--glass-strong));
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--ink);
}
.chips button:active { transform: scale(0.98); }
@media (hover: hover) { .chips button:hover:not([aria-pressed="true"]) { background: var(--glass-strong); color: var(--ink); } }

/* The intro's key to the five answers: one joined strip in the same colours, so it reads as a key. */
.legend {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
  border-radius: 14px; overflow: hidden; cursor: pointer;
}
.legend li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 48px; padding: 6px 5px; border-radius: 3px;
  text-align: center;
}
.legend b { font: 600 17px/1 var(--num); font-variant-numeric: tabular-nums; }
.legend span { font-size: 11.5px; line-height: 1.12; font-weight: 600; letter-spacing: -0.005em; text-wrap: balance; }

[data-score="1"] { background: var(--s1); color: var(--s1-ink); }
[data-score="2"] { background: var(--s2); color: var(--s2-ink); }
[data-score="3"] { background: var(--s3); color: var(--s3-ink); }
[data-score="4"] { background: var(--s4); color: var(--s4-ink); }
[data-score="5"] { background: var(--s5); color: var(--s5-ink); }

.start {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; padding: 0 20px;
  border: 0; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--accent) 85%, #000), 0 2px 6px -2px rgba(0, 0, 0, 0.2);
  transition: transform 160ms var(--out), background-color 160ms;
}
.start .i { transition: transform 220ms var(--out); }
.start:active { transform: scale(0.98); }
.app[data-tone="dark"] .start { box-shadow: var(--shadow); } /* a neutral lift on dark, not a blue glow */
@media (hover: hover) {
  .start:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
  .start:hover .i { transform: translateX(3px); }
}

/* ------------------------------------------------------------------ The rater */

.rate {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 8px) calc(var(--safe-r) + 12px) calc(var(--safe-b) + 10px) calc(var(--safe-l) + 12px);
  gap: 10px;
}
.bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  width: 100%; max-width: 560px; margin: 0 auto;
}
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 16px;
  border-radius: 22px; border: 1px solid var(--edge);
  background: var(--glass); color: var(--ink);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  font-size: 16px; font-weight: 600;
  box-shadow: var(--shadow);
  transition: background-color 200ms, color 200ms, opacity 200ms, transform 160ms var(--out);
}
.pill.icon { padding: 0; width: 44px; }
.pill:active:not(:disabled) { transform: scale(0.95); }
.pill:disabled { opacity: 0.4; box-shadow: none; }
@media (hover: hover) { .pill:hover:not(:disabled) { background: var(--glass-strong); } }
.count {
  justify-self: center; margin: 0;
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 7px 14px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--edge);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  font-size: 15px; font-weight: 500; color: var(--ink-2);
}
.count { flex-direction: column; align-items: center; gap: 5px; padding: 7px 14px; }
.count-line { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.count b { font: 600 17px/1 var(--num); color: var(--ink); font-variant-numeric: tabular-nums; }
.count b.word { font: 650 16px/1 var(--font); letter-spacing: -0.01em; }
/* The four parts of the walk, one segment each, filling as its screens are rated. */
.meter { display: grid; grid-template-columns: repeat(4, 22px); gap: 4px; }
.meter[hidden] { display: none; }
.meter i {
  --f: 0;
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ink-2) calc(var(--f) * 100%), var(--line) 0);
  transition: background 300ms var(--out);
}
.meter i.now { background: linear-gradient(90deg, var(--accent) calc(var(--f) * 100%), color-mix(in srgb, var(--accent) 22%, transparent) 0); }
.sync {
  justify-self: center; margin: -2px 0 0;
  display: flex; align-items: center; gap: 8px;
  max-width: 34rem; padding: 7px 12px; border-radius: 14px;
  background: var(--glass-strong); border: 1px solid var(--edge);
  font-size: 13px; line-height: 1.3; color: var(--ink-2);
}
.sync .i { width: 18px; height: 18px; }

.stage {
  position: relative;
  container-type: size;
  display: grid; place-items: center;
  flex: 1 1 0; min-height: 0;
}
.card {
  --cw: min(100cqw, calc(100cqh * var(--ratio, 0.46)));
  grid-area: 1 / 1;
  width: var(--cw);
  aspect-ratio: var(--ar, 780 / 1696);
  margin: 0;
  border-radius: calc(var(--cw) * 0.105);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  z-index: 2;
}
.card.leaving { z-index: 3; pointer-events: none; }
/* A hairline keeps a dark screen's edge from sinking into the night behind it. */
.app[data-tone="dark"] .card { box-shadow: var(--card-shadow), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.card img { width: 100%; height: 100%; object-fit: cover; }

/* While a screen loads (rare: the next few are always loading ahead), a calm placeholder. */
.skeleton {
  --cw: min(100cqw, calc(100cqh * 0.46));
  grid-area: 1 / 1;
  width: var(--cw); aspect-ratio: 780 / 1696;
  border-radius: calc(var(--cw) * 0.105);
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--ink) 9%, transparent) 50%, transparent 70%) 0 0 / 300% 100%,
              color-mix(in srgb, var(--ink) 7%, transparent);
  opacity: 0;
  z-index: 1;
}
.stage[data-state="loading"] .skeleton { animation: appear 300ms 160ms var(--out) forwards, sheen 1.4s linear infinite; }
@keyframes appear { to { opacity: 1; } }
@keyframes sheen { from { background-position: 100% 0, 0 0; } to { background-position: -50% 0, 0 0; } }
.trouble {
  grid-area: 1 / 1; z-index: 4;
  display: grid; justify-items: center; gap: 14px;
  max-width: 20rem; padding: 20px; border-radius: 20px; text-align: center;
  background: var(--glass-strong); border: 1px solid var(--edge); box-shadow: var(--shadow);
}
.trouble p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* The card before each tab: what it is for, a glimpse of its designs, and the question. */
.part {
  grid-area: 1 / 1; z-index: 4;
  align-self: stretch; justify-self: stretch;
  display: flex; flex-direction: column; justify-content: flex-end;
  width: 100%; max-width: 34rem; margin: 0 auto;
  min-height: 0;
}
.part[hidden] { display: none; }
.part-fan {
  position: relative;
  flex: 1 1 0; min-height: 0;
  margin: 4px 0 16px;
  display: grid; place-items: center;
}
.part-fan .fan-card { height: min(100%, 300px); }
.part-copy {
  padding: 22px 20px 20px;
  border-radius: 26px;
  border: 1px solid var(--edge);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}
.part h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 8.6vw, 40px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em;
  color: var(--ink);
}
.part-what { margin: 0 0 12px; font-size: 16.5px; line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.part-points {
  display: grid; gap: 7px;
  margin: 12px 0 16px; padding: 0;
  list-style: none;
}
.part-points[hidden], .part-what[hidden] { display: none; }
.part-points li {
  position: relative;
  padding-left: 19px;
  font-size: 16.5px; line-height: 1.36; color: var(--ink-2); text-wrap: pretty;
}
.part-points li::before {
  content: ''; position: absolute; left: 2px; top: calc(0.68em - 3.5px);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.part-ask { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--ink); text-wrap: pretty; }
@container (max-height: 430px) { .part-fan { display: none; } }

/* The answers, or between tabs the button that starts the next one, in the same place under the thumb. */
.dock { display: grid; width: 100%; max-width: 560px; margin: 0 auto; }
.dock > * { grid-area: 1 / 1; }
.app[data-mode="part"] .scale { visibility: hidden; }
.app[data-mode="part"] .keys { visibility: hidden; }
.go { align-self: center; }
.go[hidden] { display: none; }
.go .start { min-height: 60px; }
.scale {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: 6px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--edge);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}
.scale button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 68px; padding: 8px 6px 7px;
  border: 0; border-radius: 18px;
  text-align: center;
  touch-action: manipulation;
  transition: filter 160ms, opacity 200ms, box-shadow 200ms;
}
/* What makes a good screen, kept beside the answers. */
.scale-hint {
  grid-column: 1 / -1;
  margin: 0; padding: 3px 10px 1px;
  text-align: center; text-wrap: balance;
  font-size: 13px; line-height: 1.3; font-weight: 500; color: var(--ink-2);
}
.scale-hint b, .scale-hint span { display: block; }
.scale-hint b { font-weight: 600; color: var(--ink); }
.scale button b { font: 600 22px/1 var(--num); font-variant-numeric: tabular-nums; }
.scale button span { font-size: 12px; line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.scale button:active:not(:disabled) { filter: brightness(0.92); }
.scale button:disabled { opacity: 0.5; }
.scale button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--glass-strong), 0 0 0 4px currentColor; }
.scale button[data-score="1"][aria-pressed="true"],
.scale button[data-score="5"][aria-pressed="true"] { box-shadow: 0 0 0 2px var(--glass-strong), 0 0 0 4px var(--ink); }
@media (hover: hover) { .scale button:hover:not(:disabled) { filter: brightness(1.06) saturate(1.08); } }

.keys {
  display: none; margin: -2px 0 0; text-align: center;
  font-size: 12.5px; color: var(--ink-3);
}
.keys kbd {
  display: inline-block; min-width: 20px; padding: 1px 5px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--glass);
  font: 600 12px/1.4 var(--num); color: var(--ink-2);
}
@media (hover: hover) and (pointer: fine) and (min-height: 700px) { .keys { display: block; } }

/* ------------------------------------------------------------------ Stopping */

.done {
  display: grid; align-content: center; justify-items: center;
  min-height: 100svh;
  padding: calc(var(--safe-t) + 24px) calc(var(--safe-r) + var(--gutter)) calc(var(--safe-b) + 24px) calc(var(--safe-l) + var(--gutter));
}
.done-panel {
  display: grid; justify-items: center; text-align: center;
  width: 100%; max-width: 26rem;
  padding: 30px 22px 22px;
  border-radius: 26px; border: 1px solid var(--edge);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}
.done-mark { width: 64px; height: 17px; margin-bottom: 16px; color: var(--ink); }
.done h2 { margin: 0 0 10px; font-size: clamp(30px, 8vw, 38px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.done-lede { margin: 0 0 8px; font-size: 17px; line-height: 1.42; color: var(--ink); text-wrap: pretty; }
.done-note { margin: 0 0 22px; font-size: 15px; line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.done-note:empty { display: none; }

/* ------------------------------------------------------------------ Larger screens */

@media (min-width: 900px) {
  .intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 30rem);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 48px;
    height: 100svh; min-height: 640px;
    padding: 28px 56px 40px;
  }
  .brand { grid-column: 1 / -1; }
  .fan { margin: 0; grid-row: 2; height: 100%; }
  .fan-card { height: min(82%, 600px); border-radius: 30px; }
  .intro-copy { grid-row: 2; align-self: center; padding: 30px 28px 26px; }
  .intro h1 { font-size: 40px; }
  .part-copy { padding: 28px 26px 24px; }
  .rate { padding-top: 18px; padding-bottom: 18px; gap: 14px; }
}
@media (max-width: 360px) {
  .scale button span, .legend span { font-size: 11px; }
  .legend li, .scale button { padding-inline: 2px; } /* room for "Average" on the narrowest phones */
  .scale button b { font-size: 20px; }
  .scale-hint { font-size: 12.5px; padding-inline: 4px; }
  .chips button { padding: 0 10px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .fan-card.in:nth-child(n) { transition-delay: 0ms; }
}
@media (forced-colors: active) {
  .scale button, .legend li, .start, .pill { border: 1px solid ButtonText; }
  .chips button[aria-pressed="true"] { outline: 3px solid Highlight; }
  .scale button[aria-pressed="true"] { outline: 3px solid Highlight; }
}
