/* Servo Sprint overlay. Loaded only when the game opens. */
.fr {
  /* Servo Sprint palette: graphite base, off-white ink, safety yellow primary, electric cyan secondary. */
  --fr-paper: #14161b;
  --fr-ink: #f2f0ea;
  --fr-ink-2: rgba(242, 240, 234, 0.72);
  --fr-ink-3: rgba(242, 240, 234, 0.56);
  --fr-card: rgba(28, 31, 38, 0.9);
  --fr-line: rgba(242, 240, 234, 0.09);
  --fr-line-2: rgba(242, 240, 234, 0.18);
  --fr-accent: #3ddcff;
  --fr-accent-ink: #ffc93c; /* safety yellow: 11.6:1 on graphite */
  --fr-sans: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fr-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fr-safe-t: env(safe-area-inset-top, 0px);
  --fr-safe-r: env(safe-area-inset-right, 0px);
  --fr-safe-b: env(safe-area-inset-bottom, 0px);
  --fr-safe-l: env(safe-area-inset-left, 0px);
  /* Type scale: light weights (Inter Tight variable 100-900 ships already; no new font). */
  --fr-w-light: 300;
  --fr-w-regular: 400;
  --fr-w-medium: 500;
  --fr-fs-xs: 11px;
  --fr-fs-sm: 13px;
  --fr-fs-md: 15px;
  --fr-fs-lg: 19px;
  --fr-fs-xl: clamp(24px, 6vw, 32px);
  --fr-fs-2xl: clamp(40px, 11vw, 64px);
  --fr-lh-tight: 1.1;
  --fr-lh-body: 1.45;
  --fr-track-caps: .08em;
  /* Spacing (4px base). */
  --fr-sp-1: 4px;
  --fr-sp-2: 8px;
  --fr-sp-3: 12px;
  --fr-sp-4: 16px;
  --fr-sp-5: 24px;
  --fr-sp-6: 32px;
  --fr-sp-7: 48px;
  /* Radius. */
  --fr-r-sm: 8px;
  --fr-r-md: 12px;
  --fr-r-lg: 16px;
  --fr-r-pill: 999px;
  /* Motion: UI transitions stay <= 300ms; only the boot/loading bar runs longer. */
  --fr-dur-fast: 120ms;
  --fr-dur-base: 200ms;
  --fr-dur-slow: 300ms;
  --fr-ease-out: cubic-bezier(.2, .7, .3, 1);
  --fr-ease-spring: cubic-bezier(.3, 1.6, .5, 1);

  position: fixed; inset: 0; z-index: 1000;
  width: 100%; height: 100%; height: 100dvh;
  background: var(--fr-paper); color: var(--fr-ink);
  font-family: var(--fr-sans); font-weight: 300; line-height: 1.5;
  touch-action: none; overscroll-behavior: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
html.fr-open, html.fr-open body { overscroll-behavior: none; }
.fr *, .fr *::before, .fr *::after { box-sizing: border-box; }
.fr [hidden] { display: none !important; }
.fr__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
/* 3D hints and countdown: a transparent canvas over the hall, at the screen's own pixel ratio. */
.fr__ui3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* HUD: the score in a pearl pill, top centre (top left on short landscape screens), then the
   personal-best bar, gears and best, the toolbox meter and any active tools. */
.fr__hud {
  position: absolute; top: calc(var(--fr-safe-t) + 14px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 2;
  max-width: calc(100% - 260px); min-width: 150px;
}
.fr__scorebox {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px; border-radius: 4px;
  background: rgba(20, 22, 27, .94); border: 1px solid rgba(242, 240, 234, .08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12) inset, 0 6px 18px rgba(0, 0, 0, 0.28), 0 1px 3px rgba(0, 0, 0, 0.20);
}
.fr__score {
  font: 400 clamp(30px, 7.4vw, 40px)/1 "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em; color: #f2f0ea; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
  min-width: 2.2ch; text-align: center; -webkit-font-smoothing: antialiased;
}
.fr__scorebox.is-tick .fr__score { animation: fr-tick .18s ease-out; }
@keyframes fr-tick { 40% { transform: translateY(-2px) scale(1.06); } }
.fr__mult {
  font: 400 16px/1 "Inter Tight", ui-sans-serif, system-ui, sans-serif; color: #14161b; background: #ffc93c;
  padding: 4px 8px; border-radius: 4px; font-variant-numeric: tabular-nums;
}
.fr__mult.is-hot { background: #f2f0ea; box-shadow: 0 0 0 2px #3ddcff; }
.fr__mult.is-bump { animation: fr-bump .3s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes fr-bump { from { transform: scale(1.4); } }
.fr__meta {
  font: 400 12px/1.2 var(--fr-mono); letter-spacing: .06em; color: #f2f0ea; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px; background: rgba(20, 22, 27, .82);
}
.fr__gears { color: #ffc93c; }
.fr__pb { display: flex; align-items: center; gap: 8px; font: 400 11px/1 var(--fr-mono); letter-spacing: .06em; text-transform: uppercase; color: #f2f0ea; }
.fr__pb[hidden] { display: none; }
.fr__pb-bar { position: relative; width: 92px; height: 4px; border-radius: 4px; background: rgba(242, 240, 234, .14); overflow: hidden; }
.fr__pb-bar i { position: absolute; inset: 0; background: #ffc93c; transform-origin: 0 50%; transform: scaleX(0); transition: transform .2s linear; }
.fr__pb-label { padding: 4px 8px; border-radius: 6px; background: rgba(20, 22, 27, .85); }
.fr__pb.is-past .fr__pb-bar i { background: #f2f0ea; }
.fr__pb.is-past .fr__pb-label { background: #f2f0ea; color: #14161b; }
.fr__meter { display: flex; gap: 4px; padding: 4px; border-radius: 4px; background: rgba(20, 22, 27, .82); }
.fr__meter i { width: 14px; height: 5px; border-radius: 3px; background: rgba(242, 240, 234, .14); transition: background .2s; }
.fr__meter i.is-on { background: #ffc93c; }
.fr__meter.is-over i { background: #f2f0ea; animation: fr-blink .4s steps(2, jump-none) infinite; }
.fr__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.fr__chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 4px; border-radius: 4px;
  background: rgba(20, 22, 27, .92); border: 1px solid rgba(242, 240, 234, .08);
  font: 400 11px/1 var(--fr-mono); letter-spacing: .05em; text-transform: uppercase; color: #f2f0ea;
}
.fr__chip svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.fr__chip circle { fill: none; stroke-width: 2.6; }
.fr__chip .bg { stroke: rgba(242, 240, 234, .12); }
.fr__chip .fg { stroke: #ffc93c; stroke-dasharray: 59.69; stroke-linecap: round; }
.fr__chip.is-gold { background: #f2f0ea; color: #14161b; box-shadow: 0 0 12px rgba(61, 220, 255, .9); }
.fr__chip.is-gold .fg { stroke: #9beaff; } .fr__chip.is-gold .bg { stroke: rgba(20, 22, 27, .2); }
.fr__chip.is-over .fg { stroke: #f2f0ea; }
.fr__chip.is-ending { animation: fr-blink .5s steps(2, jump-none) infinite; }
@media (max-height: 520px) and (orientation: landscape) {
  .fr__hud { left: calc(var(--fr-safe-l) + 16px); transform: none; align-items: flex-start; max-width: 40%; }
}

/* Floating points and the overdrive flash */
.fr__pops { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.fr__popup {
  position: absolute; transform: translate(-50%, -50%); opacity: 0; white-space: nowrap;
  font: 500 16px/1 "Inter Tight", ui-sans-serif, system-ui, sans-serif; color: #f2f0ea; font-variant-numeric: tabular-nums;
  text-transform: uppercase; letter-spacing: var(--fr-track-caps, .08em);
  text-shadow: 0 0 3px #14161b, 0 0 8px rgba(20, 22, 27, .95);
}
.fr__popup.is-big { font-size: 20px; color: #ffc93c; }
.fr__popup.is-on { animation: fr-pop .75s ease-out forwards; }
@keyframes fr-pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.08); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(1); } }
.fr__fxflash { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; background: radial-gradient(circle at 50% 70%, rgba(61, 220, 255, .55), rgba(61, 220, 255, 0) 60%); }
.fr__fxflash.is-on { animation: fr-flash .7s ease-out; }
@keyframes fr-flash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }

/* Wheel power-up timer */
.fr__power {
  display: flex; align-items: center; gap: 8px; margin-top: 8px; width: max-content;
  padding: 4px 12px 4px 4px; border-radius: 4px;
  background: var(--fr-card); border: 1px solid var(--fr-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.fr__ring { width: 40px; height: 40px; transform: rotate(-90deg); overflow: visible; }
.fr__ring circle { fill: none; }
.fr__ring-bg { stroke: rgba(242, 240, 234, 0.1); stroke-width: 2.5; }
.fr__ring-fg { stroke: var(--fr-accent-ink); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 119.38; stroke-dashoffset: 0; }
.fr__wheel { transform: rotate(90deg); transform-origin: 22px 22px; }
.fr__wheel circle, .fr__wheel path { fill: none; stroke: var(--fr-accent-ink); stroke-width: 1.6; stroke-linecap: round; }
.fr__wheel circle:first-child { fill: rgba(61, 220, 255, 0.35); }
.fr__power-label { font: 400 12px/1.2 var(--fr-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fr-accent-ink); }
.fr__power.is-ending { animation: fr-blink .5s steps(2, jump-none) infinite; }
@keyframes fr-blink { 50% { opacity: .45; } }

.fr__corner {
  position: absolute; top: calc(var(--fr-safe-t) + 16px); right: calc(var(--fr-safe-r) + 16px);
  display: flex; gap: 8px; z-index: 3;
}
.fr__icon {
  display: grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--fr-card); color: var(--fr-ink-2);
  border: 1px solid var(--fr-line); border-radius: 50%;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: color .2s, border-color .2s, transform .12s;
}
.fr__icon { width: 48px; height: 48px; }
.fr__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fr__icon:hover { color: var(--fr-ink); border-color: var(--fr-line-2); }
.fr__icon:active { transform: scale(.94); }
.fr__icon:focus-visible, .fr__btn:focus-visible, .fr__link:focus-visible, .fr__toggle:focus-visible { outline: 2px solid var(--fr-accent-ink); outline-offset: 3px; }
.fr__input:focus-visible { outline: 2px solid var(--fr-accent-ink); outline-offset: 2px; }

/* Thumb wheel: one compact disc in the bottom corner, four quarters, the robot stays clear. */
.fr__pad { position: absolute; z-index: 2; right: calc(var(--fr-safe-r) + 16px); bottom: calc(var(--fr-safe-b) + 18px); }
.fr.is-lefty .fr__pad { right: auto; left: calc(var(--fr-safe-l) + 16px); }
.fr__wheelpad {
  position: relative; width: 132px; height: 132px; border-radius: 50%; touch-action: none;
  background: rgba(20, 22, 27, .78); border: 1px solid rgba(242, 240, 234, .1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.fr__wheelpad::before, .fr__wheelpad::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1px; height: 120px; background: rgba(242, 240, 234, .1); transform: translate(-50%, -50%) rotate(45deg); }
.fr__wheelpad::after { transform: translate(-50%, -50%) rotate(-45deg); }
.fr__wheelpad button {
  position: absolute; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #f2f0ea; cursor: pointer; touch-action: none; transition: transform .1s, background .1s;
}
.fr__wheelpad button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fr__wheelpad .is-up { left: 44px; top: 4px; } .fr__wheelpad .is-down { left: 44px; bottom: 4px; }
.fr__wheelpad .is-left { left: 4px; top: 44px; } .fr__wheelpad .is-right { right: 4px; top: 44px; }
.fr__wheelpad button.is-press { background: #f2f0ea; color: #14161b; transform: scale(.92); }
.fr__wheelpad button:focus-visible { outline: 2px solid #ffc93c; outline-offset: 1px; }
.fr__wheelpad-hub { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: #f2f0ea; opacity: .9; box-shadow: 0 0 0 4px rgba(61, 220, 255, .45); pointer-events: none; }

/* Panels */
.fr__layer {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  padding: calc(var(--fr-safe-t) + 76px) calc(var(--fr-safe-r) + 16px) calc(var(--fr-safe-b) + 16px) calc(var(--fr-safe-l) + 16px);
  background: linear-gradient(180deg, rgba(20, 22, 27, .3), rgba(20, 22, 27, .6));
  pointer-events: none;
}
.fr__layer[data-view="over"] { pointer-events: auto; cursor: pointer; }
.fr__layer.is-arming, .fr__layer.is-arming .fr__panel { pointer-events: none; }
.fr__layer.is-arming .fr__btn--solid { opacity: .55; }
.fr__panel { cursor: auto; }
.fr__panel {
  pointer-events: auto;
  width: min(420px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
  padding: 32px 28px 24px;
  background: var(--fr-card); border: 1px solid var(--fr-line); border-radius: 12px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column; gap: 16px;
}
.fr__panel:empty { display: none; }
.fr__title { margin: 0; font-size: clamp(30px, 6vw, 38px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; }
.fr__sub, .fr__lede, .fr__muted, .fr__hint, .fr__label, .fr__big, .fr__code, .fr__note { margin: 0; }
.fr__sub { font-size: 16px; color: var(--fr-ink-2); }
.fr__lede { font-size: 18px; color: var(--fr-ink); }
.fr__muted { font-size: 14px; color: var(--fr-ink-3); }
.fr__controls { font-size: 14px; }
.fr__label { font: 400 12px/1.2 var(--fr-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fr-ink-3); }
.fr__big { font-size: clamp(54px, 13vw, 76px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.fr__name { font-weight: 400; color: var(--fr-ink); }
.fr__code {
  font: 400 clamp(26px, 7vw, 32px)/1.2 var(--fr-mono); letter-spacing: .14em; color: var(--fr-accent-ink);
  padding: 16px 0; text-align: center; border-top: 1px solid var(--fr-line); border-bottom: 1px solid var(--fr-line);
  -webkit-user-select: all; user-select: all;
}
.fr__note { font-size: 14px; color: var(--fr-ink-3); }
.fr__note::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--fr-accent); vertical-align: 1px; }

.fr__form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.fr__input {
  width: 100%; height: 52px; padding: 0 16px;
  font: 400 16px/1 var(--fr-sans); /* 16px keeps iOS from zooming */
  color: var(--fr-ink); background: rgba(242, 240, 234, .06);
  border: 1px solid var(--fr-line-2); border-radius: 8px;
  -webkit-user-select: text; user-select: text; touch-action: manipulation;
  transition: border-color .2s;
}
.fr__input::placeholder { color: var(--fr-ink-3); }
.fr__input:focus { outline: none; border-color: var(--fr-accent); }
.fr__input--code { font-family: var(--fr-mono); letter-spacing: .12em; text-transform: uppercase; }
.fr__hint { font-size: 13px; color: var(--fr-ink-3); min-height: 1.2em; }
.fr__hint.is-error { color: var(--fr-accent-ink); }
.fr__hint.is-error::before { content: "·  "; color: var(--fr-accent); }

.fr__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fr__btn {
  flex: 1 1 auto; min-width: 120px; height: 52px; padding: 0 24px; cursor: pointer;
  border-radius: 4px; border: 1px solid var(--fr-line);
  background: rgba(242, 240, 234, .06); color: var(--fr-ink);
  font: 400 16px/1 var(--fr-sans); touch-action: manipulation;
  transition: background .2s, border-color .2s, transform .12s;
}
.fr__btn:hover { border-color: var(--fr-line-2); background: rgba(242, 240, 234, .06); }
.fr__btn:active { transform: scale(.97); }
.fr__btn:disabled { opacity: .5; cursor: default; }
.fr__btn--solid { background: #f2f0ea; color: #14161b; border-color: transparent; }
.fr__btn--solid:hover { background: #ffffff; }
.fr__btn--wide { flex-basis: 100%; height: 56px; font-size: 16px; }
/* Cyan action for signing in or saving (brand cyan #3DDCFF; #14161b ink ~11:1); Run again stays the navy primary. */
.fr__btn--accent {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: #3ddcff; color: #14161b; border-color: transparent;
}
.fr__btn--accent:hover { background: #22cdf3; border-color: transparent; }
.fr__btn .fr__key, .fr__link .fr__key { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; flex: none; }
.fr__link--key { display: inline-flex; align-items: center; gap: 8px; color: var(--fr-accent-ink); text-decoration-color: rgba(255, 201, 60, .35); }
.fr__link--quiet { font-size: 13px; color: var(--fr-ink-3); }
.fr__credit { flex-basis: 100%; font-size: 12px; color: var(--fr-ink-3); }

/* Saving across devices: one inline block on the menu, pause and game-over cards. */
.fr__save {
  display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 12px;
  border-radius: 8px; background: rgba(61, 220, 255, .16); border: 1px solid rgba(255, 201, 60, .16);
}
.fr__save .fr__links { gap: 4px 16px; }
.fr__save .fr__link { min-height: 32px; }
.fr__save-lede { margin: 0; font-size: 16px; color: var(--fr-ink); line-height: 1.35; }
.fr__save.is-done { background: rgba(61, 220, 255, .1); }
.fr__inline { display: flex; gap: 8px; margin: 0; }
.fr__inline .fr__input { height: 48px; flex: 1 1 auto; min-width: 0; }
.fr__inline .fr__btn { flex: 0 0 auto; min-width: 0; height: 48px; padding: 0 16px; }
.fr__code--sm { font-size: 24px; padding: 8px 0; }
.fr__actions .fr__btn--wide + .fr__btn { flex: 1 1 0; }

/* Controls, settings and small marks */
.fr__controls { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--fr-ink-3); }
.fr__controls li { display: flex; align-items: center; gap: 8px; }
.fr__keys { display: inline-flex; gap: 4px; color: var(--fr-ink-2); }
.fr__controls kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 8px;
  font: 400 12px/1 var(--fr-mono); color: var(--fr-ink-2);
  border: 1px solid var(--fr-line-2); border-bottom-width: 2px; border-radius: 7px; background: rgba(242, 240, 234, .06);
}
.fr__wheel-note { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.fr__mini-wheel svg { width: 20px; height: 20px; display: block; fill: rgba(61, 220, 255, .35); stroke: var(--fr-accent-ink); stroke-width: 1.4; stroke-linecap: round; }
.fr__mini-wheel svg path { fill: none; }
.fr__settings { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.fr__toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; cursor: pointer;
  background: none; border: 0; font: 400 14px/1.2 var(--fr-sans); color: var(--fr-ink-2); touch-action: manipulation;
}
.fr__switch { position: relative; width: 34px; height: 20px; border-radius: 999px; background: rgba(242, 240, 234, .14); transition: background .2s; flex: none; }
.fr__switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #f2f0ea; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.50); transition: transform .2s; }
.fr__toggle[aria-pressed="true"] .fr__switch { background: var(--fr-accent-ink); }
.fr__toggle[aria-pressed="true"] .fr__switch::after { transform: translateX(14px); }
.fr__badge {
  display: inline-block; padding: 4px 8px; margin-right: 8px; border-radius: 4px; vertical-align: 2px;
  font: 400 12px/1.3 var(--fr-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--fr-accent-ink); background: rgba(61, 220, 255, .28);
}
.fr__status { display: flex; flex-direction: column; gap: 4px; }
.fr__post { margin: 0; font-size: 14px; color: var(--fr-ink-3); }
.fr__post.is-ok { color: var(--fr-accent-ink); }
.fr__again { font-size: 13px; text-align: center; margin-top: -4px; }
.fr__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* First-run tips and the countdown.
   Normally the title and numerals are 3D (ui3d.js) and only the quiet line under a hint is DOM.
   At the lowest quality both fall back to flat text with an extruded look built from layered shadows. */
.fr__tip {
  --fr-tip-y: 25%;
  position: absolute; left: 50%; top: calc(var(--fr-safe-t) + 22%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: calc(100% - 32px);
  color: var(--fr-ink); text-align: center; pointer-events: none;
  opacity: 0; transform: translate(-50%, -6px) scale(.96); transition: opacity .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.fr__tip.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.fr__tip-icon { display: inline-flex; gap: 2px; color: #151c44; filter: drop-shadow(0 2px 0 #4a5aa8) drop-shadow(0 6px 10px rgba(16, 22, 47, .18)); }
.fr__tip-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fr__tip-title {
  font-size: clamp(26px, 7.4vw, 40px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; white-space: nowrap;
  color: #151c44;
  /* Extrusion: a deep navy face over stacked navy-periwinkle layers, then a soft shadow and pearl glow. */
  text-shadow: 0 1px 0 #3c4a96, 0 2px 0 #4252a0, 0 3px 0 #4a5aa8, 0 4px 0 #5263b0,
    0 5px 1px rgba(16, 22, 47, .3), 0 10px 18px rgba(16, 22, 47, .2), 0 0 26px rgba(244, 246, 251, .95), 0 0 6px rgba(244, 246, 251, .9);
}
.fr__tip-text {
  font: 400 12.5px/1.3 var(--fr-mono); letter-spacing: .08em; text-transform: uppercase; color: #10162f;
  padding: 5px 12px; border-radius: 999px; background: rgba(244, 246, 251, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(16, 22, 47, .06);
}
.fr__tip.is-on .fr__tip-icon svg { animation: fr-nudge 1s ease-in-out infinite; }
.fr__tip[data-tip="lanes"] .fr__tip-icon svg:first-child { animation-name: fr-nudge-l; }
.fr__tip[data-tip="lanes"] .fr__tip-icon svg:last-child { animation-name: fr-nudge-r; }
.fr__tip[data-tip="slide"] .fr__tip-icon svg { animation-name: fr-nudge-d; }
.fr__tip[data-tip="wheel"] .fr__tip-icon svg, .fr__tip[data-tip="rolling"] .fr__tip-icon svg { animation-name: fr-spin; animation-timing-function: linear; }
/* 3D mode: the overlay scene draws the icon and title; this is just the line under it. */
.fr__tip.is-3d { top: var(--fr-tip-y); transform: translate(-50%, 4px); transition-delay: .12s; }
.fr__tip.is-3d.is-on { transform: translate(-50%, 0); }
.fr__tip.is-3d .fr__tip-icon, .fr__tip.is-3d .fr__tip-title { display: none; }
@keyframes fr-nudge { 50% { transform: translateY(-4px); } }
@keyframes fr-nudge-d { 50% { transform: translateY(4px); } }
@keyframes fr-nudge-l { 50% { transform: translateX(-4px); } }
@keyframes fr-nudge-r { 50% { transform: translateX(4px); } }
@keyframes fr-spin { to { transform: rotate(360deg); } }

.fr__count {
  position: absolute; left: 50%; top: 38%; z-index: 2; transform: translate(-50%, -50%);
  display: grid; place-items: center; opacity: 0; pointer-events: none;
}
.fr__count-num {
  grid-area: 1 / 1; font-size: clamp(88px, 24vw, 170px); font-weight: 400; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums; color: #151c44;
  text-shadow: 0 2px 0 #3c4a96, 0 4px 0 #4252a0, 0 6px 0 #4a5aa8, 0 8px 0 #5263b0,
    0 10px 2px rgba(16, 22, 47, .28), 0 20px 30px rgba(16, 22, 47, .2), 0 0 40px rgba(244, 246, 251, .9);
}
.fr__count-ring {
  grid-area: 1 / 1; width: 1.2em; height: 1.2em; font-size: clamp(88px, 24vw, 170px);
  border: 2px solid #5a6dcd; border-radius: 50%; opacity: 0;
}
@media (max-height: 520px) and (orientation: landscape) { .fr__count { top: 33%; } .fr__count-num, .fr__count-ring { font-size: 96px; } }
.fr__count.is-on { animation: fr-count .42s ease-out forwards; }
.fr__count.is-on .fr__count-num { animation: fr-punch .42s cubic-bezier(.2, 1.5, .4, 1) both; }
.fr__count.is-on .fr__count-ring { animation: fr-burst .42s ease-out both; }
.fr__count[data-n="GO"].is-on { animation: fr-count-go .5s ease-out forwards; }
@keyframes fr-count { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: .2; } }
@keyframes fr-count-go { 0% { opacity: 0; } 15%, 45% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fr-punch { from { transform: scale(1.6) rotate(-8deg); } to { transform: scale(1) rotate(0); } }
@keyframes fr-burst { from { transform: scale(.5); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }
.fr.is-still .fr__count.is-on .fr__count-num, .fr.is-still .fr__count.is-on .fr__count-ring { animation: none; }
.fr.is-still .fr__count-ring { display: none; }
.fr.is-still .fr__tip-icon svg, .fr.is-still .fr__power.is-ending { animation: none !important; }

.fr__links { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.fr__link {
  min-height: 40px; padding: 0; background: none; border: 0; cursor: pointer;
  font: 400 14px/1.2 var(--fr-sans); color: var(--fr-ink-2);
  text-decoration: underline; text-decoration-color: var(--fr-line-2); text-underline-offset: 4px;
  touch-action: manipulation; transition: color .2s, text-decoration-color .2s;
}
.fr__link:hover { color: var(--fr-ink); text-decoration-color: var(--fr-accent); }

.fr__board { border-top: 1px solid var(--fr-line); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.fr__board ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fr__board li {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--fr-line); font-size: 14px; color: var(--fr-ink-2);
}
.fr__board li:last-child { border-bottom: 0; }
.fr__board li span:first-child, .fr__board li span:last-child { font: 400 13px/1 var(--fr-mono); color: var(--fr-ink-3); font-variant-numeric: tabular-nums; }
.fr__board li span:last-child { color: var(--fr-ink-2); }
.fr__board li.is-me span:nth-child(2) { color: var(--fr-accent-ink); }

.fr__toast {
  position: absolute; left: 50%; bottom: calc(var(--fr-safe-b) + 104px); z-index: 4;
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  padding: 12px 16px; border-radius: 8px; max-width: calc(100% - 32px);
  background: var(--fr-card); border: 1px solid var(--fr-line); font-size: 14px; color: var(--fr-ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: opacity .25s, transform .25s;
}
.fr__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-height: 520px) and (orientation: landscape) {
  .fr__layer { padding-top: calc(var(--fr-safe-t) + 16px); place-items: center; }
  .fr__panel { width: min(560px, calc(100% - 140px)); padding: 20px 24px; gap: 8px; }
  .fr__big { font-size: 48px; }
  .fr__wheelpad { transform: scale(.9); transform-origin: 100% 100%; }
  .fr__tip:not(.is-3d) { top: calc(var(--fr-safe-t) + 14%); }
  .fr__btn, .fr__btn--wide { height: 48px; }
  .fr__actions .fr__btn--wide { flex-basis: auto; flex-grow: 2; }
}
@media (max-width: 360px) {
  .fr__tip-title { white-space: normal; }
}
/* Reduced motion: .is-still is set from prefers-reduced-motion, or from Settings > Reduce motion. */
.fr.is-still *, .fr.is-still *::before, .fr.is-still *::after { transition: none !important; animation: none !important; }
.fr.is-still .fr__count.is-on { opacity: 1; }
.fr.is-still .fr__count-ring { display: none; }

/* Personal best, badges and settings (round 6) */
.fr__pbline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; }
.fr__badge--pb { background: #f2f0ea; color: #14161b; }
.fr__pbdelta { font: 400 16px/1.2 "Inter Tight", ui-sans-serif, system-ui, sans-serif; color: #ffc93c; font-variant-numeric: tabular-nums; }
.fr__unlock { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #f2f0ea; }
.fr__medals { display: flex; flex-wrap: wrap; gap: 8px; }
.fr__medalbtn {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 4px; cursor: pointer;
  font: 400 12px/1 var(--fr-mono); letter-spacing: .04em; color: var(--fr-ink-2);
  background: rgba(20, 22, 27, .7); border: 1px solid var(--fr-line);
}
.fr__medalbtn[aria-pressed="true"] { border-color: #f2f0ea; color: #f2f0ea; box-shadow: 0 0 0 1px #f2f0ea inset; }
.fr__medalbtn:disabled { cursor: default; opacity: .6; }
.fr__medal { width: 20px; height: 20px; border-radius: 50%; display: inline-block; flex: none; border: 2px solid #f2f0ea; background: #3ddcff; }
.fr__medal.is-pearl { background: #e9edff; } .fr__medal.is-deep { background: #6f84e0; }
.fr__medal.is-star { background: conic-gradient(#14161b 0 25%, #8fa2f0 0 50%, #14161b 0 75%, #8fa2f0 0); }
.fr__medal.is-locked { background: repeating-linear-gradient(45deg, rgba(242, 240, 234, .1) 0 3px, transparent 3px 6px); border-color: rgba(242, 240, 234, .3); }
.fr__vol { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fr-ink-3); }
.fr__vol span { width: 58px; }
.fr__vol input { flex: 1; accent-color: #ffc93c; }

/* Retention (round 6): board tabs, Daily Run line, missions, shop, nudges, challenges */
.fr__tabs { display: flex; gap: 4px; margin-bottom: 8px; padding: 4px; border-radius: 4px; background: rgba(242, 240, 234, .05); width: max-content; }
.fr__tab { border: 0; background: transparent; padding: 8px 12px; border-radius: 4px; cursor: pointer; font: 400 12px/1 var(--fr-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fr-ink-3); }
.fr__tab[aria-selected="true"] { background: #f2f0ea; color: #14161b; }
.fr__reset { margin-top: 8px; font-size: 12px; }
.fr__daily b, .fr__challenge b { color: #f2f0ea; font-weight: 400; }
.fr__challenge { margin: 0; font-size: 16px; color: #f2f0ea; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fr__missions ul, .fr__shop ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fr__missions li { display: grid; grid-template-columns: 1fr 64px auto; gap: 8px; align-items: center; font-size: 14px; color: var(--fr-ink-2); }
.fr__missions li span:last-child { font: 400 12px/1 var(--fr-mono); color: #ffc93c; }
.fr__mbar { position: relative; height: 5px; border-radius: 4px; background: rgba(242, 240, 234, .1); overflow: hidden; }
.fr__mbar i { position: absolute; inset: 0; background: #ffc93c; transform-origin: 0 50%; }
.fr__shop li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.fr__swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #f2f0ea; }
.fr__btn--sm { height: 34px !important; padding: 0 12px; font-size: 13px; min-width: 0; flex: none; }
.fr__btn--sm[aria-pressed="true"] { background: #f2f0ea; color: #14161b; }
.fr__nudge { margin: 0; font: 400 16px/1.3 "Inter Tight", ui-sans-serif, system-ui, sans-serif; color: #ffc93c; }

/* Game over, studio pass (round 6): one type scale, the display face for every number. */
.fr__panel { --fr-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif; }
.fr__num, .fr__big, .fr__stats b, .fr__board li span:last-child, .fr__board .fr__pos { font-family: var(--fr-display); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.fr__headline { margin: 0; font: 400 clamp(19px, 4.6vw, 23px)/1.25 var(--fr-display); letter-spacing: -0.01em; color: #f2f0ea; text-wrap: balance; }
.fr__big { font-weight: 400; font-size: clamp(60px, 15vw, 88px); letter-spacing: -0.035em; color: #f2f0ea; }
.fr__big.is-settled { animation: fr-settle .32s cubic-bezier(.3, 1.7, .5, 1); }
.fr__big.is-best { color: #f2f0ea; text-shadow: 0 0 0 transparent, 0 10px 30px rgba(61, 220, 255, .7); }
@keyframes fr-settle { 0% { transform: scale(1.06); } 100% { transform: scale(1); } }
.fr__moment { margin: 0; display: flex; align-items: center; gap: 8px; font: 400 18px/1.2 var(--fr-display); color: #f2f0ea; }
.fr__moment b { color: #ffc93c; font-weight: 400; }
.fr__soft { color: var(--fr-ink-3); font-weight: 400; }
.fr__star { width: 18px; height: 18px; background: #ffc93c; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); animation: fr-spinin .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fr-spinin { from { transform: rotate(-120deg) scale(.2); } }
.fr__rank { margin: 0; font: 400 16px/1.3 var(--fr-display); color: var(--fr-ink-2); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.fr__rank b { font-weight: 400; color: #f2f0ea; font-size: 18px; }
.fr__up { font: 400 13px/1 var(--fr-display); color: #ffc93c; padding: 4px 8px; border-radius: 8px; background: rgba(61, 220, 255, .25); animation: fr-rise .5s .4s ease-out both; }
@keyframes fr-rise { from { opacity: 0; transform: translateY(8px); } }
.fr__post { font-size: 14px; }
.fr__stats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fr__stats li { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 8px; border-radius: 8px; background: rgba(242, 240, 234, .035); animation: fr-rise .4s calc(.5s + var(--i) * .07s) ease-out both; }
.fr__stats .fr__sicon { grid-row: 1 / 3; }
.fr__stats b { font-weight: 400; font-size: 18px; color: #f2f0ea; line-height: 1.1; }
.fr__stats li > span:last-child { font-size: 12px; color: var(--fr-ink-3); }
.fr__sicon { display: inline-grid; place-items: center; width: 22px; height: 22px; color: #ffc93c; }
.fr__sicon svg, .fr__link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fr__link svg { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; }
.fr__progress { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--fr-line); display: flex; flex-direction: column; gap: 8px; }
.fr__progress li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 14px; color: var(--fr-ink-2); }
.fr__progress li b { font-weight: 400; color: #f2f0ea; }
.fr__progress li > span:last-child { font-size: 12px; color: var(--fr-ink-3); }
.fr__progress .fr__mbar { width: 72px; }
.fr__progress li.is-done b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #ffc93c; }
.fr__progress li.is-done span { color: #ffc93c; font-weight: 400; }
.fr__kc { margin-left: 8px; padding: 4px 8px; border-radius: 6px; font: 400 11px/1 var(--fr-mono); border: 1px solid rgba(20, 22, 27, .45); color: rgba(20, 22, 27, .85); vertical-align: 1px; }
.fr__links--center { justify-content: center; }
.fr__h3 { margin: 0 0 8px; font: 400 16px/1.2 var(--fr-display); color: #f2f0ea; }
.fr__board .fr__pos { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 400; color: var(--fr-ink-3); }
.fr__board li.is-top1 .fr__pos { background: #f2f0ea; color: #14161b; }
.fr__board li.is-top2 .fr__pos { background: #ffc93c; color: #14161b; }
.fr__board li.is-top3 .fr__pos { background: #3ddcff; color: #f2f0ea; }
.fr__board li.is-me { background: rgba(61, 220, 255, .22); border-radius: 10px; }
.fr__board li span:last-child { font-size: 16px; font-weight: 400; color: #f2f0ea; }
.fr__wallet { display: flex; align-items: center; gap: 8px; }
@media (max-height: 520px) and (orientation: landscape) { .fr__stats { grid-template-columns: repeat(6, 1fr); } .fr__stats li { grid-template-columns: 1fr; text-align: center; } .fr__stats .fr__sicon { grid-row: auto; margin: 0 auto; } }

/* r6b light type pass: no heavy weights anywhere (Inter Tight 300/400 only), tabular figures for every number. */
.fr__score, .fr__big, .fr__moment, .fr__moment b, .fr__rank b, .fr__up, .fr__pbdelta, .fr__nudge,
.fr__daily b, .fr__challenge b, .fr__progress li.is-done span, .fr__board .fr__pos, .fr__board li span:last-child { font-weight: 400; }
.fr__big { font-weight: 300; letter-spacing: -0.03em; }
.fr__stats b { font-weight: 300; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
.fr__stats b small { font-size: .62em; font-weight: 400; margin-left: .18em; letter-spacing: .02em; color: var(--fr-ink-2); }
.fr__stats li { min-width: 0; }
.fr__stats li > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr__rank b { font-size: 18px; }
.fr__desk-line { font-size: 13px; }
/* Narrow phones (320 px): keep the six-stat grid and the actions inside the panel. */
@media (max-width: 359px) {
  .fr__stats { gap: 8px; }
  .fr__stats li { grid-template-columns: 1fr; padding: 8px 8px; text-align: left; }
  .fr__stats .fr__sicon { display: none; }
  .fr__stats b { font-size: 18px; }
  .fr__stats li > span:last-child { font-size: 11px; }
  .fr__actions { flex-wrap: wrap; }
  .fr__actions .fr__btn { min-width: 0; }
}
.fr__popup { font-weight: var(--fr-w-medium, 500); } /* pickup text: medium caps, tabular nums; colours unchanged (AA on graphite / with halo text-shadow) */
.fr__rank { display: block; }
.fr__rank b { margin-right: 8px; }

/* ==========================================================================
   Servo Sprint identity (r6b). Tokens first; every rule below uses them.
   Type: Inter Tight (UI, numerals) + IBM Plex Mono (labels). Bundled, no CDN.
   Spacing: 4 px grid. Radii: 4 (controls), 8 (cards), 12 (panels). No pills.
   ========================================================================== */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("./fonts/inter-tight-var.woff2?v=20261021r11") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/plex-mono-400.woff2?v=20261021r11") format("woff2"); }
.fr {
  --ss-graphite: #14161b; --ss-graphite-2: #1c1f26; --ss-graphite-3: #262a33; --ss-steel: #3a3f4b;
  --ss-ink: #f2f0ea; --ss-ink-2: rgba(242, 240, 234, .76); --ss-ink-3: rgba(242, 240, 234, .6);
  --ss-yellow: #ffc93c; --ss-yellow-hi: #ffd666; --ss-yellow-lo: #e6b22e; --ss-cyan: #3ddcff;
  --ss-line: rgba(242, 240, 234, .12); --ss-line-2: rgba(242, 240, 234, .24);
  --ss-r1: 4px; --ss-r2: 8px; --ss-r3: 12px;
  --ss-hazard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Crect width='8' height='8' fill='%23ffc93c'/%3E%3Cpath d='M0 8L8 0H4L0 4ZM8 4V8H4Z' fill='%2314161b'/%3E%3C/svg%3E") 0 0 / 8px 8px repeat;
  --ss-hazard-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M0 8L8 0H4L0 4ZM8 4V8H4Z' fill='%2314161b'/%3E%3C/svg%3E") 0 0 / 8px 8px repeat;
  --fr-paper: var(--ss-graphite); --fr-ink: var(--ss-ink); --fr-ink-2: var(--ss-ink-2); --fr-ink-3: var(--ss-ink-3);
  --fr-card: rgba(20, 22, 27, .92); --fr-line: var(--ss-line); --fr-line-2: var(--ss-line-2);
  --fr-accent: var(--ss-cyan); --fr-accent-ink: var(--ss-yellow);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* Wordmark */
.fr__brand { margin: 0; line-height: 0; color: var(--ss-ink); }
.fr__brand .ss-wordmark { display: block; height: 28px; width: auto; max-width: 100%; }
@media (min-width: 480px) { .fr__brand .ss-wordmark { height: 32px; } }
.fr__sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* Panel: graphite card with a hazard rule on its top edge */
.fr__layer { background: linear-gradient(180deg, rgba(20, 22, 27, .28), rgba(20, 22, 27, .56)); }
.fr__panel { position: relative; background: var(--fr-card); border: 1px solid var(--ss-line); border-radius: var(--ss-r3); padding: 32px 28px 24px; gap: 16px; box-shadow: 0 24px 64px rgba(0, 0, 0, .35); }
.fr__panel::before { content: ""; position: sticky; top: -32px; display: block; height: 4px; margin: -32px -28px 12px; border-radius: var(--ss-r3) var(--ss-r3) 0 0; background: var(--ss-hazard); flex: none; }
.fr__panel:empty::before { display: none; }
.fr__sub { font-size: 16px; color: var(--ss-ink-2); letter-spacing: 0; }
.fr__label, .fr__meta, .fr__pb, .fr__chip, .fr__tab, .fr__badge { letter-spacing: .08em; }
/* Buttons: default / hover / pressed / focus / disabled */
.fr__btn { height: 48px; padding: 0 20px; border-radius: var(--ss-r1); border: 1px solid var(--ss-line-2); background: transparent; color: var(--ss-ink); font: 400 16px/1 var(--fr-sans); letter-spacing: .01em; }
.fr__btn:hover { background: rgba(242, 240, 234, .06); border-color: rgba(242, 240, 234, .4); }
.fr__btn:active { transform: translateY(1px); background: rgba(242, 240, 234, .1); }
.fr__btn:focus-visible { outline: 2px solid var(--ss-cyan); outline-offset: 2px; }
.fr__btn:disabled, .fr__btn[aria-disabled="true"] { opacity: 1; color: rgba(242, 240, 234, .38); border-color: rgba(242, 240, 234, .12); background: transparent; cursor: not-allowed; transform: none; }
.fr__btn--solid { position: relative; overflow: hidden; background: var(--ss-yellow); color: var(--ss-graphite); border-color: var(--ss-yellow); font-weight: 400; }
.fr__btn--solid::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ss-hazard-ink); opacity: .9; }
.fr__btn--solid:hover { background: var(--ss-yellow-hi); border-color: var(--ss-yellow-hi); }
.fr__btn--solid:active { background: var(--ss-yellow-lo); border-color: var(--ss-yellow-lo); }
.fr__btn--solid:disabled { background: rgba(255, 201, 60, .28); border-color: transparent; color: rgba(20, 22, 27, .6); }
.fr__btn--wide { height: 56px; font-size: 18px; letter-spacing: .02em; }
.fr__btn--accent { background: var(--ss-graphite-3); color: var(--ss-ink); border-color: var(--ss-cyan); }
.fr__btn--accent:hover { background: #2d3240; border-color: var(--ss-cyan); }
.fr__btn--accent:active { background: var(--ss-graphite-2); }
.fr__btn--sm { height: 32px !important; padding: 0 12px; font-size: 14px; }
.fr__btn--sm[aria-pressed="true"] { background: var(--ss-ink); color: var(--ss-graphite); border-color: var(--ss-ink); }
.fr__link { color: var(--ss-ink-2); text-decoration-color: var(--ss-line-2); }
.fr__link:hover { color: var(--ss-ink); text-decoration-color: var(--ss-yellow); }
.fr__link:focus-visible, .fr__toggle:focus-visible, .fr__input:focus-visible { outline: 2px solid var(--ss-cyan); outline-offset: 2px; }
.fr__input { border-radius: var(--ss-r1); background: rgba(242, 240, 234, .04); height: 48px; }
.fr__input:focus { border-color: var(--ss-cyan); }
.fr__toggle[aria-pressed="true"] .fr__switch { background: var(--ss-yellow); }
.fr__controls kbd { border-radius: var(--ss-r1); background: rgba(242, 240, 234, .04); color: var(--ss-ink); }
.fr__vol input { accent-color: var(--ss-yellow); }
/* Icon buttons (corner): 48 px targets, 24 px grid icons, 1.75 stroke everywhere */
.fr__icon { width: 48px; height: 48px; border-radius: var(--ss-r2); background: rgba(20, 22, 27, .86); color: var(--ss-ink); border: 1px solid var(--ss-line); }
.fr__icon:hover { color: var(--ss-yellow); border-color: var(--ss-line-2); }
.fr__icon:active { transform: translateY(1px); }
.fr__icon:focus-visible { outline: 2px solid var(--ss-cyan); outline-offset: 2px; }
.fr__icon[aria-pressed="true"] { color: var(--ss-ink-3); }
.fr__icon svg, .fr__wheelpad button svg, .fr__btn .fr__key, .fr__link .fr__key, .fr__desk-x svg { stroke-width: 1.75; }
.fr__soundwrap { position: relative; }
.fr__volpop { position: absolute; top: calc(100% + 8px); right: 0; width: 232px; padding: 12px 16px; display: grid; gap: 8px; z-index: 5;
  background: var(--ss-graphite-2); border: 1px solid var(--ss-line-2); border-radius: var(--ss-r2); box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }
.fr__volpop .fr__vol { color: var(--ss-ink-2); font-size: 14px; }
.fr__volpop .fr__vol span { width: 56px; }
/* HUD: graphite plates over the bright hall; score in electric cyan */
.fr__scorebox { border-radius: var(--ss-r2); background: rgba(20, 22, 27, .9); border: 1px solid rgba(242, 240, 234, .1); padding: 8px 16px; gap: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.fr__score { color: var(--ss-cyan); font-weight: 300; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
.fr__mult { border-radius: var(--ss-r1); background: var(--ss-yellow); color: var(--ss-graphite); padding: 4px 8px; font-size: 16px; }
.fr__mult.is-hot { background: var(--ss-cyan); color: var(--ss-graphite); box-shadow: none; }
.fr__meta, .fr__pb-label, .fr__meter, .fr__chip { background: rgba(20, 22, 27, .86); color: var(--ss-ink); border-radius: var(--ss-r1); }
.fr__gears { color: var(--ss-yellow); }
.fr__pb-bar { background: rgba(20, 22, 27, .5); }
.fr__pb-bar i, .fr__meter i.is-on { background: var(--ss-yellow); }
.fr__pb.is-past .fr__pb-bar i { background: var(--ss-cyan); }
.fr__pb.is-past .fr__pb-label { background: var(--ss-cyan); color: var(--ss-graphite); }
.fr__pb { color: var(--ss-graphite); }
.fr__meter i { background: rgba(242, 240, 234, .18); border-radius: 2px; }
.fr__meter.is-over i { background: var(--ss-cyan); }
.fr__chip { border: 1px solid rgba(242, 240, 234, .1); }
.fr__chip .fg { stroke: var(--ss-yellow); } .fr__chip .bg { stroke: rgba(242, 240, 234, .16); }
.fr__chip.is-gold { background: var(--ss-yellow); color: var(--ss-graphite); box-shadow: none; }
.fr__chip.is-gold .fg { stroke: var(--ss-graphite); } .fr__chip.is-gold .bg { stroke: rgba(20, 22, 27, .2); }
.fr__chip.is-over .fg { stroke: var(--ss-cyan); }
.fr__power { border-radius: var(--ss-r2); background: rgba(20, 22, 27, .9); }
.fr__popup { color: var(--ss-graphite); text-shadow: 0 0 2px rgba(242, 240, 234, .95), 0 0 8px rgba(242, 240, 234, .9); }
.fr__popup.is-big { color: var(--ss-graphite); text-shadow: 0 0 2px var(--ss-yellow), 0 0 10px rgba(255, 201, 60, .95); }
/* Thumb wheel */
.fr__wheelpad { background: rgba(20, 22, 27, .78); border-color: rgba(242, 240, 234, .14); }
.fr__wheelpad button { color: var(--ss-ink); }
.fr__wheelpad button.is-press { background: var(--ss-yellow); color: var(--ss-graphite); }
.fr__wheelpad::before, .fr__wheelpad::after { background: rgba(242, 240, 234, .14); }
.fr__wheelpad-hub { background: var(--ss-graphite-3); box-shadow: 0 0 0 4px rgba(255, 201, 60, .5); opacity: 1; }
/* Game over */
.fr__headline { color: var(--ss-ink); font-size: 20px; }
.fr__big { color: var(--ss-ink); }
.fr__big.is-best { color: var(--ss-cyan); text-shadow: none; }
.fr__rank { color: var(--ss-ink-2); }
.fr__rank b { color: var(--ss-cyan); }
.fr__up { color: var(--ss-graphite); background: var(--ss-cyan); border-radius: var(--ss-r1); padding: 4px 8px; }
.fr__stats li { border-radius: var(--ss-r2); background: rgba(242, 240, 234, .05); padding: 8px 12px; }
.fr__stats b { color: var(--ss-ink); }
.fr__stats .fr__sicon svg { stroke: var(--ss-yellow); stroke-width: 1.75; }
.fr__board li.is-me span:nth-child(2), .fr__post.is-ok, .fr__pbdelta, .fr__moment b, .fr__nudge { color: var(--ss-yellow); }
.fr__tab[aria-selected="true"] { background: var(--ss-ink); color: var(--ss-graphite); }
.fr__tabs { border-radius: var(--ss-r1); padding: 4px; }
.fr__tab { border-radius: 2px; }
.fr__save { border-radius: var(--ss-r2); background: rgba(61, 220, 255, .06); border-color: rgba(61, 220, 255, .24); }
.fr__toast { border-radius: var(--ss-r2); }
@media (max-height: 520px) and (orientation: landscape) {
  .fr__panel { padding: 24px 24px 16px; gap: 12px; }
  .fr__panel::before { top: -24px; margin: -24px -24px 8px; }
  .fr__btn, .fr__btn--wide { height: 48px; }
}
@media (max-width: 359px) { .fr__panel { padding: 28px 20px 20px; } .fr__panel::before { top: -28px; margin: -28px -20px 12px; } }
.fr.is-still .fr__btn:active, .fr.is-still .fr__icon:active { transform: none; }
/* Over the graphite hall (lighting pass): DOM text drawn on the scene is off-white with a dark halo. */
.fr__popup { color: var(--ss-ink); text-shadow: 0 0 2px rgba(11, 12, 15, .95), 0 0 8px rgba(11, 12, 15, .8); }
.fr__popup.is-big { color: var(--ss-yellow); text-shadow: 0 0 2px rgba(11, 12, 15, .95), 0 0 10px rgba(11, 12, 15, .8); }
.fr__tip-text { color: var(--ss-ink) !important; text-shadow: 0 1px 2px rgba(11, 12, 15, .9) !important; background: rgba(20, 22, 27, .72) !important; border-color: rgba(242, 240, 234, .12) !important; }
.fr__pb { color: var(--ss-ink); }
.fr__layer { background: linear-gradient(180deg, rgba(11, 12, 15, .2), rgba(11, 12, 15, .5)); }
.fr__tip-text { border-radius: var(--ss-r1) !important; padding: 4px 12px !important; font-size: 12px !important; }
/* Flat fallback (lowest quality tier): off-white face, graphite extrusion, yellow ring. */
.fr__tip-title, .fr__count-num { color: var(--ss-ink) !important;
  text-shadow: 0 1px 0 #2c3037, 0 2px 0 #23262d, 0 3px 0 #1b1e24, 0 4px 0 #14161b, 0 8px 16px rgba(0, 0, 0, .5) !important; }
.fr__tip-icon { color: var(--ss-ink) !important; filter: drop-shadow(0 2px 0 #14161b) drop-shadow(0 6px 10px rgba(0, 0, 0, .4)) !important; }
.fr__count-ring { border-color: var(--ss-yellow) !important; }
/* Portrait phones: the centred score ran under the corner buttons at 390 px (lighting QA #10).
   HUD moves to the top-left, sized to the space left of the three corner buttons; meta never wraps. */
@media (max-width: 600px) and (orientation: portrait) {
  .fr__hud { left: calc(var(--fr-safe-l) + 12px); transform: none; align-items: flex-start;
    max-width: calc(100% - var(--fr-safe-l) - var(--fr-safe-r) - 196px); min-width: 0; }
  .fr__scorebox { padding: 6px 12px; }
  .fr__score { font-size: clamp(28px, 8.2vw, 36px); text-align: left; }
  .fr__meta { white-space: nowrap; font-size: 11px; letter-spacing: .04em; }
  .fr__chips { justify-content: flex-start; }
}
@media (max-width: 359px) and (orientation: portrait) {
  .fr__corner { gap: 6px; right: calc(var(--fr-safe-r) + 10px); }
  .fr__icon { width: 44px; height: 44px; }
  .fr__hud { left: calc(var(--fr-safe-l) + 10px); max-width: calc(100% - var(--fr-safe-l) - var(--fr-safe-r) - 172px); }
  .fr__score { font-size: 26px; }
  .fr__meta { font-size: 10px; letter-spacing: .02em; padding: 4px 6px; }
}
/* Mobile visual pass: no hard on/off strobes (2.5 Hz step blinks read as flicker on phones), calmer overdrive flash. */
.fr__meter.is-over i, .fr__chip.is-ending, .fr__power.is-ending { animation-timing-function: ease-in-out; animation-duration: .9s; animation-direction: alternate; }
@keyframes fr-blink { 50% { opacity: .55; } }
@media (pointer: coarse) {
  .fr__fxflash { background: radial-gradient(circle at 50% 70%, rgba(61, 220, 255, .28), rgba(61, 220, 255, 0) 60%); }
}
.fr__score, .fr__meta, .fr__chip { -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
/* Game-over stats on phones up to 439 px: icon sits above the value so labels ("Multiplier", "Smashed")
   and "1.79 km" fit their tiles instead of truncating / overflowing (release QA at 390 px). */
@media (max-width: 439px) {
  .fr__stats li { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 2px; padding: 8px 10px; }
  .fr__stats .fr__sicon { grid-row: auto; display: block; height: 18px; }
  .fr__stats .fr__sicon svg { width: 18px; height: 18px; }
  .fr__stats b { font-size: 19px; }
  .fr__stats li > span:last-child { font-size: 12px; }
}
@media (max-width: 359px) { .fr__stats .fr__sicon { display: none; } .fr__stats b { font-size: 17px; } .fr__stats li > span:last-child { font-size: 11px; } }
/* ---------- Accessibility pass (a11y review) ---------- */
/* Every keyboard stop shows the same cyan ring, including the board tabs, badge buttons and sliders
   (they fell back to the browser's near-black ring, invisible on graphite). */
.fr :where(button, input, a[href]):focus-visible { outline: 2px solid var(--ss-cyan); outline-offset: 2px; }
/* Touch targets at least 44 px tall. Text links and switches grow invisibly (no border, so nothing moves visually);
   the compact tabs, badge buttons and Garage buttons keep their look and get a 44 px hit area instead. */
.fr__link, .fr__toggle, .fr__save .fr__link { min-height: 44px; }
.fr__tab, .fr__medalbtn, .fr__btn--sm { position: relative; }
.fr__tab::after, .fr__medalbtn::after, .fr__btn--sm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.fr__medals { row-gap: 14px; }
.fr__vol input[type="range"] { height: 44px; margin: 0; }
/* Reduced motion: the "+25" score text appears and fades in place instead of vanishing with the animation. */
.fr.is-still .fr__popup.is-on { animation: fr-pop-still .75s linear forwards !important; transform: translate(-50%, -100%); }
@keyframes fr-pop-still { 0%, 65% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Garage, Toolbox, Spare Servo (r7) ---------- */
/* The panel steps aside so the robot behind it is the live 3D preview. */
@media (min-width: 760px) { .fr__layer[data-view="shop"] { place-items: center start; padding-left: max(24px, 7vw); background: linear-gradient(90deg, rgba(20, 22, 27, .72) 0, rgba(20, 22, 27, .45) 46%, rgba(20, 22, 27, 0) 70%); } }
@media (max-width: 759px) { .fr__layer[data-view="shop"] { place-items: end center; background: linear-gradient(180deg, rgba(20, 22, 27, 0) 0, rgba(20, 22, 27, .5) 52%); } .fr__layer[data-view="shop"] .fr__panel { max-height: 54%; } }
.fr__ghead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fr__toolbox { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border: 1px solid rgba(255, 201, 60, .45); border-radius: 8px; background: linear-gradient(180deg, rgba(255, 201, 60, .1), rgba(255, 201, 60, .03)); color: #f2f0ea; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.fr__toolbox b { font: 500 16px/1 var(--fr-display, inherit); font-variant-numeric: tabular-nums; }
.fr__toolbox > span:last-child { color: rgba(242, 240, 234, .72); }
.fr__toolbox.is-lg { padding: 6px 12px 6px 8px; }
.fr__toolbox.is-lg b { font-size: 20px; }
.fr__toolbox.is-pulse { animation: fr-tb .28s ease-out; }
@keyframes fr-tb { 0% { transform: scale(1.08); border-color: #ffc93c; } 100% { transform: scale(1); } }
.fr__gnote { min-height: 1.2em; margin: 0; font-size: 14px; color: #3ddcff; }
.fr__gnote:empty { min-height: 0; }
.fr__design { display: flex; flex-direction: column; gap: 8px; }
.fr__field { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 4px 10px; font-size: 14px; color: rgba(242, 240, 234, .78); }
.fr__field input { min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(242, 240, 234, .22); background: rgba(20, 22, 27, .6); color: #f2f0ea; font: 400 16px/1 inherit; }
.fr__field input#fr-plate { font-family: "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.fr__field input:focus-visible { outline: 2px solid #3ddcff; outline-offset: 1px; }
.fr__field input[aria-invalid] { border-color: #ffc93c; }
.fr__field small { grid-column: 2; font-size: 12px; color: rgba(242, 240, 234, .66); }
.fr__field small.is-error { color: #ffc93c; }
.fr__glabel { margin: 4px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(242, 240, 234, .66); }
.fr__seg { display: flex; gap: 6px; flex-wrap: wrap; }
.fr__seg button { min-width: 44px; min-height: 44px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid rgba(242, 240, 234, .2); background: transparent; color: #f2f0ea; font: 300 14px/1 inherit; cursor: pointer; }
.fr__seg button[aria-checked="true"] { border-color: #3ddcff; box-shadow: inset 0 0 0 1px #3ddcff; }
.fr__seg button:focus-visible { outline: 2px solid #3ddcff; outline-offset: 2px; }
.fr__seg .fr__swatch { width: 20px; height: 20px; border-color: rgba(242, 240, 234, .5); }
.fr__layer[data-view="shop"] .fr__btn--sm { min-height: 44px; min-width: 44px; }
.fr__showbot { align-self: flex-start; margin-top: 4px; }
.fr__btn.is-short { opacity: .7; border-style: dashed; }
.fr__confirmrow { display: block !important; }
.fr__confirm { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(61, 220, 255, .5); background: rgba(61, 220, 255, .06); font-size: 14px; }
@media (max-width: 400px) { .fr__confirm { grid-template-columns: 1fr 1fr; } .fr__confirm > span { grid-column: 1 / -1; } }
.fr__swatch.is-servo { border: 0; width: 22px; height: 22px; color: #3ddcff; }
.fr__swatch.is-servo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.fr__servo { display: inline-flex; vertical-align: middle; margin-left: 8px; color: #3ddcff; }
.fr__servo .fr__sicon { width: 16px; height: 16px; color: #3ddcff; }
.fr__servo .fr__sicon svg { width: 16px; height: 16px; }
.fr__robotname { color: #3ddcff; font-weight: 400; }
.fr__brow { display: block; font-size: 12px; color: rgba(242, 240, 234, .62); letter-spacing: .02em; }
/* Game over: this run's gears fly into the Toolbox. */
.fr__tbfly { position: fixed; z-index: 9; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 3px solid #ffc93c; pointer-events: none; transition: transform .5s cubic-bezier(.5, 0, .7, 1), opacity .5s; }
@media (prefers-reduced-motion: reduce) { .fr__tbfly { display: none; } .fr__toolbox.is-pulse { animation: none; } }
.fr__tbline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.fr__tbover { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 12px; margin: 0; }

/* Missions + Line grade (r7.2): numbers on every bar, a daily free swap, the weekly goal, Garage unlocks. */
.fr__missions li { grid-template-columns: 1fr 56px 34px 44px; }
.fr__missions li .fr__mrew { font: 400 12px/1 var(--fr-mono); color: #ffc93c; text-align: right; }
.fr__mtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fr__mtext small, .fr__mprog { font: 400 12px/1.2 var(--fr-mono); color: var(--fr-ink-3); font-variant-numeric: tabular-nums; }
.fr__mprog { display: block; margin-top: 2px; }
.fr__swap { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--fr-ink-3); cursor: pointer; padding: 0; }
.fr__swap svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fr__swap:hover, .fr__swap:focus-visible { color: #3ddcff; background: rgba(242, 240, 234, .05); }
.fr__swap.is-none { pointer-events: none; }
.fr__missions li.is-new .fr__mtext { animation: fr-rise .28s ease-out both; }
.fr__missions ul:focus { outline: none; }
.fr__week { margin: 8px 0 0; font-size: 13px; }
.fr__week b, .fr__twist b { color: #f2f0ea; font-weight: 400; }
.fr__twist { margin: 4px 0 0; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.fr__grade { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; font-size: 14px; color: var(--fr-ink-2); }
.fr__gradeN { font: 400 12px/1 var(--fr-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fr-ink-3); }
.fr__gradeN b { font: 400 16px/1 var(--fr-sans); color: #f2f0ea; letter-spacing: 0; margin-left: 4px; }
.fr__grade .fr__mbar i { background: #3ddcff; }
.fr__gradeNext { grid-column: 1 / -1; font-size: 12px; color: var(--fr-ink-3); }
.fr__gradeup b { color: #3ddcff; }
.fr__seg button.is-locked { opacity: .45; cursor: not-allowed; position: relative; }
.fr__lockg { position: absolute; right: 2px; bottom: 1px; font: 400 9px/1 var(--fr-mono); color: #f2f0ea; }
.fr.is-still .fr__missions li.is-new .fr__mtext { animation: none; }

/* Ghost racer chip (Ghost Racing): ahead/behind your ghost. Dark plate, light mono type; cyan when you lead. */
.fr__ghost { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 6px; background: rgba(20, 22, 27, .85); color: #f2f0ea; font: 400 11px/1 var(--fr-mono); letter-spacing: .06em; text-transform: uppercase; }
.fr__ghost[hidden] { display: none; }
.fr__ghost { max-width: 100%; white-space: nowrap; }
.fr__ghost-name { display: inline-flex; min-width: 0; }
.fr__ghost-who { overflow: hidden; text-overflow: ellipsis; max-width: 10ch; }
.fr__ghost i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #3ddcff; }
.fr__ghost b { font-weight: 400; min-width: 4.5ch; text-align: right; font-variant-numeric: tabular-nums; color: rgba(242, 240, 234, .72); }
.fr__ghost.is-ahead b { color: #3ddcff; }
.fr__ghost.is-ahead i { background: #3ddcff; }
.fr__ghost.is-chase { animation: fr-ghost-chase .28s ease-out; }
@keyframes fr-ghost-chase { 0% { transform: scale(1); } 40% { transform: scale(1.12); box-shadow: 0 0 0 2px #3ddcff; } 100% { transform: scale(1); } }
.fr.is-still .fr__ghost.is-chase { animation: none; }
@media (prefers-reduced-motion: reduce) { .fr__ghost.is-chase { animation: none; } }

/* The Foreman's bark (render/juice.js): one mono line under the HUD, gold name tag, fades in and out. */
.fr__fm {
  position: absolute; left: 50%; top: calc(var(--fr-safe-t, 0px) + 96px); z-index: 3; pointer-events: none;
  display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: 6px; white-space: nowrap;
  background: rgba(20, 22, 27, .82); border: 1px solid rgba(255, 201, 60, .35);
  font: 400 12px/1 var(--fr-mono); letter-spacing: .06em; color: #f2f0ea;
  opacity: 0; transform: translate(-50%, -4px); transition: opacity .2s, transform .2s;
}
.fr__fm b { font-weight: 400; text-transform: uppercase; font-size: 10px; letter-spacing: .14em; color: #ffc93c; }
.fr__fm.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 520px) { .fr__fm { top: calc(var(--fr-safe-t, 0px) + 118px); } }
