/* forfree.gg page layouts v1.0 (2026-10-28). ForFree Show LLC, SITE design.
   Components live in components.css (design system); this file only places them on pages.
   Phone first (390 x 844, then 430 x 932); 768 for tablets; 1024 and up for desktop. */

/* ================================================================ home */
.ff-top { display: grid; gap: 14px; padding-bottom: 8px; }
.ff-top > .ff-largetitle { padding-bottom: 4px; }
/* The home large title is BRAND's sticker, and the bar above it is empty until the title scrolls away, so on
   phones the sticker sits up under the status bar instead of below an empty bar (more shelf above the fold). */
@media (max-width: 899.98px) {
  .ff-page-home .ff-top > .ff-largetitle { padding-top: calc(var(--ff-safe-top) + 20px); }
}
.ff-largetitle .ff-lead { margin-top: 6px; max-width: 30ch; color: var(--ff-text-muted); }
.ff-largetitle .ff-lead strong { color: var(--ff-text); font-weight: 700; }

/* The next-show line */
.ff-next .ff-ticket__main { min-height: 92px; }
.ff-skel--note { width: 80%; height: 0.8em; margin-top: 6px; }
.ff-next .ff-ticket__stub { min-height: 92px; min-width: 104px; }
.ff-next__row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ff-next__date { font-family: var(--ff-font-display); font-size: 1.375rem; line-height: 1.05; letter-spacing: -0.01em; }
.ff-next__time { font-size: var(--ff-t-footnote-size); font-weight: 600; color: var(--ff-text-muted); }
.ff-next__flap { margin-top: 10px; font-size: 1rem; }
.ff-next__flap .ff-digit { font-size: 1.625rem; }
.ff-next[data-state="loading"] .ff-next__date { width: 9ch; }
.ff-next .ff-state { margin-top: 0; }
.ff-next .ff-ticket__stub .ff-state__art { width: 44px; height: 44px; color: var(--ff-error); }

/* The rule card */
.ff-rule { position: relative; margin-top: 6px; }
.ff-rule .ff-tape { z-index: 1; }
.ff-rulecard .ff-quote { font-size: clamp(1.1875rem, 1rem + 0.9vw, 1.625rem); }

/* The shelf: a world panel with Freebie on guard and the tarp over the shelf */
.ff-shelf { position: relative; margin-top: 8px; }
.ff-shelfscene {
  --actor-h: 80%;
  --floor-y: 13%;
  --home-x: -0.25;
  --ray-x: 26%;
  --ray-y: 38%;
  --bubble-max: 220px;
  height: clamp(300px, 78vw, 360px);
  border: 2px solid var(--ff-rig-ink);
  box-shadow: var(--ff-shadow-hard-l);
}
.ff-shelfscene__title {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 14px;
  text-align: right;
  font-family: var(--ff-font-display);
  font-size: 1.375rem;
  line-height: 1;
  color: var(--ff-world-text);
  pointer-events: none;
}
.ff-shelfscene__floor {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--floor-y);
  box-shadow: inset 0 2px 0 0 rgba(255, 255, 255, 0.08);
  background: var(--ff-stage-floor);
  border-top: 2.5px solid var(--ff-rig-ink);
}
.ff-shelfscene__unit {
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: calc(var(--floor-y) - 1.6%);
  width: min(56%, 230px);
  aspect-ratio: 200 / 200;
}
.ff-shelfscene__unit > svg { width: 100%; height: 100%; overflow: visible; }
.ff-tarp__body { fill: var(--ff-tarp); }
.ff-tarp__shade { fill: var(--ff-tarp-shade); }
.ff-tarp__fold { fill: none; stroke: var(--ff-tarp-shade); stroke-width: 3; stroke-linecap: round; }
.ff-tarp__ink { fill: none; stroke: var(--ff-rig-ink); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.ff-tarp__rope { fill: none; stroke: var(--ff-wood); stroke-width: 6; stroke-linecap: round; }
.ff-tarp__rope-ink { fill: none; stroke: var(--ff-rig-ink); stroke-width: 10; stroke-linecap: round; }
.ff-tarp__dark { fill: var(--ff-rig-ink); }
.ff-tarp__wood { fill: var(--ff-wood); stroke: var(--ff-rig-ink); stroke-width: 3; }
.ff-tarp__wood-shade { fill: var(--ff-wood-shade); }
.ff-tarp__corner { transform-box: fill-box; transform-origin: 100% 0%; }
[data-tarp].is-peek .ff-tarp__corner { animation: ff-peek 1.2s var(--ff-ease-out) both; }
@keyframes ff-peek {
  0% { rotate: 0deg; }
  18% { rotate: -34deg; }
  26% { rotate: -30deg; }
  70% { rotate: -32deg; }
  100% { rotate: 0deg; }
}
.ff-sign {
  position: absolute;
  z-index: 2;
  left: 18%;
  top: 31%;
  width: 66%;
  padding: 8px 8px 7px;
  background: var(--ff-sign);
  color: var(--ff-ink);
  border: 2.5px solid var(--ff-rig-ink);
  box-shadow: 3px 3px 0 0 var(--ff-rig-ink);
  rotate: -5deg;
  font-family: var(--ff-font-display);
  font-size: clamp(0.9375rem, 0.8rem + 0.7vw, 1.25rem);
  line-height: 1.04;
  text-align: center;
  text-wrap: balance;
}
.ff-sign .ff-tape { width: 46px; height: 16px; }
.ff-sign .ff-tape[data-at="tl"] { top: -9px; left: -14px; }
.ff-sign .ff-tape[data-at="tr"] { top: -9px; right: -14px; }
.ff-shelfscene__tag { position: absolute; z-index: 2; right: -4%; top: 64%; }
.ff-shelfscene__tag .ff-tag { rotate: -7deg; }
.ff-shelfscene__tag .ff-tag__value { font-size: 0.9375rem; }
.ff-shelfscene__items { position: absolute; z-index: 1; inset: 20% 14% 24%; display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 5% 8%; align-items: end; justify-items: center; }
.ff-shelfscene[data-state="revealed"] .ff-shelfscene__items { display: grid; }
.ff-shelfscene[data-state="revealed"] [data-tarp],
.ff-shelfscene[data-state="revealed"] .ff-sign { display: none; }
.ff-shelfscene__items svg { width: auto; height: 100%; max-width: 100%; }
.ff-shelf__foot { margin-top: 18px; color: var(--ff-text-muted); font-size: var(--ff-t-footnote-size); line-height: 1.45; max-width: 52ch; }
.ff-shelf__foot [data-prize-value] { color: var(--ff-text); font-weight: 700; }

/* Revealed shelf: one card per drop */
.ff-drops { display: grid; gap: 18px; margin: 22px 0 0; padding: 0; list-style: none; }
.ff-drop { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: start; padding: 14px 14px 16px 16px; }
.ff-drop__title { font-family: var(--ff-font-body); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.ff-drop__meta { grid-column: 1; font-size: var(--ff-t-footnote-size); color: var(--ff-text-muted); }
.ff-drop__tag { grid-row: span 2; }
.ff-drop__rules { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--ff-t-footnote-size); }

/* ------------------------------------------------------- below the fold */
.ff-section { padding-top: 56px; }
.ff-section__title { margin-bottom: 12px; }
.ff-section__lead { max-width: 46ch; }

/* The Parade */
.ff-parade__train { margin: 22px -6px 0; overflow: visible; }
.ff-parade__train svg { width: 100%; height: auto; overflow: visible; }
.ff-parade__facts { display: flex; flex-wrap: wrap; gap: 16px 18px; margin: 22px 0 0; padding: 0 0 0 4px; list-style: none; }
.ff-parade__facts .ff-sticker { font-size: 0.8125rem; }
.ff-parade__note { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; font-size: var(--ff-t-callout-size); color: var(--ff-text-muted); max-width: 52ch; }
.ff-parade__note svg { flex: none; width: 22px; height: 22px; color: var(--ff-accent); margin-top: 1px; }

/* The Hoard: a strip of small stages */
.ff-hoard__strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(68vw, 260px);
  gap: 16px;
  margin: 18px calc(-1 * var(--ff-gutter-r)) 0 calc(-1 * var(--ff-gutter-l));
  padding: 6px var(--ff-gutter-r) 18px var(--ff-gutter-l);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--ff-gutter-l);
  scrollbar-width: none;
  list-style: none;
}
.ff-hoard__strip::-webkit-scrollbar { display: none; }
.ff-skit { scroll-snap-align: start; display: grid; gap: 10px; }
.ff-skit .ff-theater { box-shadow: var(--ff-shadow-hard-m); }
.ff-skit__title { font-family: var(--ff-font-body); font-weight: 700; font-size: 1rem; line-height: 1.25; }
.ff-skit__meta { font-size: var(--ff-t-footnote-size); color: var(--ff-text-muted); margin-top: -6px; }
.ff-hoard .ff-state { margin-top: 18px; }

/* How to win: a rundown with numerals in the rail */
.ff-howto__list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 0; counter-reset: ff-step; max-width: 640px; }
.ff-howto__step {
  display: grid;
  align-content: start;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 16px 0 18px;
  border-top: 2px solid var(--ff-rule-strong);
}
.ff-howto__step:last-child { border-bottom: 2px solid var(--ff-rule-strong); }
.ff-howto__num {
  grid-row: span 2;
  font-family: var(--ff-font-display);
  font-size: 3rem;
  line-height: 0.86;
  color: var(--ff-accent);
  letter-spacing: -0.03em;
}
.ff-howto__step h3 { font-family: var(--ff-font-display); font-weight: 400; font-size: 1.375rem; line-height: 1.08; }
.ff-howto__step p { font-size: var(--ff-t-callout-size); line-height: var(--ff-t-callout-leading); color: var(--ff-text-muted); max-width: 46ch; }
.ff-howto__fine { margin-top: 14px; font-size: var(--ff-t-footnote-size); color: var(--ff-text-muted); max-width: 56ch; }

/* The Hunt */
.ff-hunt__card { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px 14px; align-items: start; padding: 18px 16px 18px 18px; }
.ff-hunt__card .ff-title2 { grid-column: 1; }
.ff-hunt__art { grid-column: 2; grid-row: 1 / span 2; width: 96px; height: auto; rotate: 6deg; margin-top: -26px; }
.ff-hunt__card p { grid-column: 1 / -1; font-size: var(--ff-t-callout-size); max-width: 44ch; }
.ff-hunt__card .ff-btn { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }

/* Brands: want in? (an ink panel on any ground) */
.ff-brandsbox {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 22px 18px 24px;
  border: 2px solid var(--ff-rig-ink);
  box-shadow: 6px 6px 0 0 var(--ff-cta-shadow);
  overflow: hidden;
}
.ff-brandsbox__art { position: absolute; right: -10px; bottom: -6px; width: 104px; }
.ff-brandsbox h2 { max-width: 12ch; }
.ff-brandsbox p { max-width: min(32ch, calc(100% - 92px)); color: var(--ff-text-muted); font-size: var(--ff-t-callout-size); }
.ff-brandsbox .ff-btn { justify-self: start; margin-top: 8px; }

/* Footer */
.ff-footer { margin-top: 64px; }
.ff-footer__disclosure { font-size: var(--ff-t-footnote-size); color: var(--ff-text-muted); max-width: 52ch; }
.ff-footer__links { margin-top: 14px; }
.ff-footer__links a { font-size: var(--ff-t-callout-size); }
.ff-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.ff-footer__ground { display: flex; align-items: center; gap: 10px; font-size: var(--ff-t-footnote-size); color: var(--ff-text-muted); }
.ff-footer__legal { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; font-size: var(--ff-t-footnote-size); color: var(--ff-text-muted); }
.ff-footer__legal .ff-sticker { font-size: 0.875rem; }

/* ------------------------------------------------------ 430 and up */
@media (min-width: 420px) {
  .ff-shelfscene { height: clamp(320px, 80vw, 380px); }
}

/* ------------------------------------------------------ 768 and up */
@media (min-width: 768px) {
  .ff-top { gap: 18px; }
  .ff-shelfscene { height: 420px; --actor-h: 76%; --home-x: -0.2; }
  .ff-shelfscene__unit { width: 46%; max-width: 280px; right: 8%; }
  .ff-section { padding-top: 88px; }
  .ff-hoard__strip { grid-auto-columns: 250px; }
  .ff-parade { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 48px; align-items: center; }
  .ff-parade > * { grid-column: 1; }
  .ff-parade__train { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
  .ff-largetitle .ff-lead { max-width: 36ch; }
  .ff-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 32px; align-items: start; }
  .ff-lower > .ff-section { padding-top: 88px; }
  .ff-brandsbox { padding: 30px 28px 32px; }
  .ff-brandsbox__art { width: 168px; right: -6px; }
}

/* ------------------------------------------------------ 1024 and up */
@media (min-width: 1024px) {
  .ff-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas: "title shelf" "next shelf" "rule shelf" ". shelf";
    column-gap: 56px;
    row-gap: 18px;
    align-items: start;
  }
  .ff-largetitle { grid-area: title; }
  .ff-next { grid-area: next; }
  .ff-rule { grid-area: rule; }
  .ff-shelf { grid-area: shelf; margin-top: calc(var(--ff-safe-top) + 64px + 36px); }
  .ff-shelfscene { height: 560px; --actor-h: 74%; --home-x: -0.21; --bubble-max: 280px; }
  .ff-shelfscene__title { font-size: 1.75rem; top: 18px; right: 22px; }
  .ff-shelfscene__unit { width: 48%; max-width: 330px; right: 6%; }
  .ff-largetitle .ff-lead { max-width: 34ch; }
  .ff-section { padding-top: 120px; }
  .ff-howto { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  .ff-howto > .ff-section__title { grid-column: 1; grid-row: 1; }
  .ff-howto__fine { grid-column: 1; grid-row: 2; margin-top: 4px; }
  .ff-howto__list { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; max-width: 680px; }
  .ff-howto__step { grid-template-columns: 76px minmax(0, 1fr); padding: 22px 0 24px; }
  .ff-howto__num { font-size: 4rem; }
}

/* ============================================================== gallery */
.ff-gallery-head { padding-top: calc(var(--ff-safe-top) + 24px); padding-bottom: 16px; }
.ff-gallery-head p { max-width: 60ch; margin-top: 8px; color: var(--ff-text-muted); }
.ff-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(390px, 100%), 390px)); justify-content: center; gap: 28px; padding: 0 0 48px; }
.ff-gallery__col { border: 2px solid var(--ff-rule-strong); box-shadow: var(--ff-shadow-hard-m); padding: 18px 16px 28px; display: grid; gap: 22px; align-content: start; }
.ff-gallery__col > header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--ff-rule-strong); padding-bottom: 10px; }
.ff-spec { display: grid; gap: 10px; }
.ff-spec > h3 { font-family: var(--ff-font-mono); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ff-text-muted); }
.ff-spec__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.ff-spec__note { font-size: var(--ff-t-footnote-size); color: var(--ff-text-muted); }
.ff-spec__demo { position: relative; min-height: 120px; border: 1.5px dashed var(--ff-rule); }
.ff-spec__mini-tabbar { position: relative; border-top: 1.5px solid var(--ff-bar-rule); background: var(--ff-bar-bg); }
.ff-spec__mini-tabbar .ff-tabbar__list { height: var(--ff-tabbar-h); }
.ff-spec__mini-bar { position: relative; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--ff-bar-bg); border-bottom: 1.5px solid var(--ff-bar-rule); }
.ff-spec__mini-bar .ff-topbar__title { opacity: 1; translate: 0 0; visibility: visible; }
.ff-spec__gap { margin-top: 8px; }
.ff-spec .ff-shelfscene { height: 300px; }
.ff-spec .ff-theater { width: 240px; }
.ff-bits-report { font-family: var(--ff-font-mono); font-size: 0.75rem; line-height: 1.5; display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ff-bits-report li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ff-bits-report button { font-family: var(--ff-font-body); }
.ff-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ff-swatch { aspect-ratio: 1; border: 2px solid var(--ff-rig-ink); display: flex; align-items: flex-end; padding: 4px; font-family: var(--ff-font-mono); font-size: 0.5625rem; font-weight: 700; }

/* ================================================================ 404 */
.ff-lost { display: grid; gap: 18px; padding-top: calc(var(--ff-safe-top) + var(--ff-bar-h) + 12px); padding-bottom: 40px; }
.ff-lost .ff-stage { height: 300px; border: 2px solid var(--ff-rig-ink); box-shadow: var(--ff-shadow-hard-l); }
.ff-lost p { max-width: 40ch; }
.ff-lost__actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
@media (min-width: 1024px) {
  .ff-lost { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 56px; padding-top: calc(64px + 80px); min-height: 70dvh; }
  .ff-lost .ff-stage { grid-column: 2; grid-row: 1 / span 4; height: 460px; }
}

/* gallery helpers */
.ff-spec__pad { padding: 8px 14px 14px; }
.ff-spec__pad.ff-largetitle { padding-top: 8px; }
.ff-spec__tapes { padding: 14px 18px 4px; }
.ff-spec__taped { padding: 22px 18px; width: 100%; }
.ff-swatch__name { background: var(--ff-paper-hi); color: var(--ff-ink); padding: 1px 3px; border-radius: 2px; }
.ff-bitconsole { margin: 8px auto 64px; max-width: 812px; padding: 18px 16px 22px; display: grid; gap: 14px; }
.ff-bitconsole__stage { height: 340px; }
.ff-bits-report li[data-played] span::after { content: " (played)"; color: var(--ff-text-muted); }

/* ================================================== shared: inner pages (live, freebie, brand, nominate) */
/* Added 2026-10-29 by SITE for /live, /freebie, /brand and /nominate. Phone first; the rules above stay as they were. */
.ff-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ff-inner > .ff-largetitle { padding-bottom: 2px; }
.ff-kicker { color: var(--ff-accent-text); margin-bottom: 6px; }
.ff-largetitle .ff-display { color: var(--ff-text); text-wrap: balance; }

/* A rundown strip over each numbered section: the code, the name, then a rule to the edge. */
.ff-sechead { display: grid; gap: 8px; margin-bottom: 14px; }
.ff-sechead__code {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-font-mono); font-weight: 700; font-size: var(--ff-t-label-size);
  line-height: var(--ff-t-label-leading); letter-spacing: var(--ff-t-label-tracking); text-transform: uppercase;
  color: var(--ff-accent-text);
}
.ff-sechead__code::after { content: ""; flex: 1; height: 2px; background: var(--ff-rule-strong); }
.ff-sechead .ff-section__lead { margin-top: 2px; color: var(--ff-text-muted); }
.ff-prose-block { display: grid; gap: 12px; max-width: 60ch; }
.ff-prose-block p { text-wrap: pretty; }
.ff-fbsec--split > .ff-prose-block + .ff-prose-block { margin-top: 36px; }

/* Freebie's own words, set as a static speech bubble. The gear sets the face: Inter for the small eye,
   Archivo Black for the loot eye (the brand bible's two gears in type). Lines come from brand/voice/lines.json. */
.ff-speech {
  position: relative;
  justify-self: start;
  max-width: min(34ch, 100%);
  margin-bottom: 14px;
  padding: 10px 14px 11px;
  background: var(--ff-bubble-bg);
  color: var(--ff-bubble-fg);
  border: 2.5px solid var(--ff-rig-ink);
  border-radius: 16px 16px 16px 16px / 18px 18px 18px 18px;
  box-shadow: 3px 3px 0 0 var(--ff-rig-ink);
  font-family: var(--ff-font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  text-wrap: balance;
}
.ff-speech::before, .ff-speech::after { content: ""; position: absolute; left: 26px; top: 100%; border-style: solid; border-color: transparent; }
.ff-speech::before { border-width: 13px 4px 0 14px; border-top-color: var(--ff-rig-ink); }
.ff-speech::after { left: 29px; border-width: 9px 3px 0 9px; border-top-color: var(--ff-bubble-bg); margin-top: -1px; }
.ff-speech[data-gear="loot-eye"] { font-family: var(--ff-font-display); font-weight: 400; font-size: 1.1875rem; line-height: 1.12; letter-spacing: -0.005em; }
.ff-speech__who { display: block; margin-top: 6px; font-family: var(--ff-font-mono); font-weight: 700; font-size: 0.6875rem; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ff-ink-70); }

/* ================================================================ /live */
/* minmax(0, 1fr): the player frame (16:9, at least 300 px tall) would otherwise widen the track to 533 px on a phone. */
.ff-live { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ff-live .ff-largetitle .ff-lead { max-width: 34ch; }
/* The player: full bleed on phones (Twitch's 400 x 300 minimum needs every pixel of a 430 phone), framed from 768. */
.ff-player { position: relative; margin-inline: calc(-1 * var(--ff-margin)); background: var(--ff-rig-ink); border-block: 2px solid var(--ff-rig-ink); }
.ff-player__frame { position: relative; width: 100%; min-width: 0; aspect-ratio: 16 / 9; min-height: 300px; overflow: hidden; }
.ff-player__frame > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--ff-rig-ink); }
.ff-screen {
  position: absolute; inset: 0; isolation: isolate;
  display: grid; align-content: center; justify-items: center; gap: 10px;
  padding: 22px 18px; text-align: center;
  background: var(--ff-rig-ink); color: var(--ff-paper);
}
.ff-screen::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("/img/static.svg"); background-size: 180px 180px; opacity: 0.2;
  animation: ff-snow 1.2s steps(6) infinite;
}
@keyframes ff-snow { from { background-position: 0 0; } to { background-position: 540px 360px; } }
@media (prefers-reduced-motion: reduce) { .ff-screen::before { animation: none; } }
.ff-screen__stamp { font-size: 1.25rem; color: var(--ff-paper); }
.ff-screen__title { font-family: var(--ff-font-display); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); line-height: 1.04; letter-spacing: -0.01em; max-width: 16ch; text-wrap: balance; }
.ff-screen__text { font-size: var(--ff-t-callout-size); line-height: 1.4; color: var(--ff-ink-30); max-width: 34ch; text-wrap: pretty; }
.ff-screen__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 2px; }
.ff-screen .ff-btn--text { color: var(--ff-paper); text-decoration-color: var(--ff-violet-hi); }
.ff-screen .ff-btn--text:active { background: var(--ff-ink-90); }
.ff-screen .ff-skel { background: var(--ff-ink-90); }
.ff-screen .ff-skel--line { width: 12ch; height: 1.6rem; }
.ff-screen .ff-state__art { width: 48px; height: 48px; color: var(--ff-error); }

/* Under the player, in the thumb zone: pick the room, see the status, open the room's own chat. */
.ff-roombar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.ff-roombar__pick { display: flex; align-items: center; gap: 12px; }
.ff-roombar .ff-seg button { min-width: 88px; font-size: 0.9375rem; }
.ff-roombar__note { flex-basis: 100%; display: flex; gap: 10px; align-items: flex-start; font-size: var(--ff-t-footnote-size); line-height: 1.45; color: var(--ff-text-muted); max-width: 52ch; }
.ff-roombar__note svg { flex: none; width: 20px; height: 20px; color: var(--ff-accent); margin-top: 1px; }
.ff-live .ff-rule { margin-top: 4px; }

@media (min-width: 768px) {
  .ff-player { margin-inline: 0; border: 2px solid var(--ff-rig-ink); box-shadow: var(--ff-shadow-hard-l); }
}
@media (min-width: 1024px) {
  .ff-live {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    grid-template-areas: "title title" "player next" "player rule" "room rule" ". rule";
    column-gap: 40px; row-gap: 18px; align-items: start;
  }
  .ff-live > .ff-largetitle { grid-area: title; }
  .ff-live > .ff-player { grid-area: player; }
  .ff-live > .ff-roombar { grid-area: room; }
  .ff-live > .ff-next { grid-area: next; }
  .ff-live > .ff-rule { grid-area: rule; margin-top: 0; }
}

/* ============================================================== /freebie */
.ff-page-freebie .ff-largetitle .ff-lead { max-width: 30ch; }
.ff-fbtitle { margin: 0; }
.ff-fbtitle__logo { display: block; width: min(250px, 64vw); height: auto; margin: 2px 0 0 -4px; }
.ff-fbstage {
  --actor-h: 80%;
  --floor-y: 13%;
  --home-x: 0;
  --ray-x: 50%;
  --ray-y: 44%;
  --bubble-max: 230px;
  height: clamp(320px, 90vw, 400px);
  border: 2px solid var(--ff-rig-ink);
  box-shadow: var(--ff-shadow-hard-l);
}
.ff-fbstage__tag { position: absolute; z-index: 4; top: 16px; left: 16px; pointer-events: none; }

.ff-whatiam { display: grid; gap: 10px; padding: 18px 16px 16px; }
.ff-whatiam .ff-stamp { justify-self: start; margin-bottom: 4px; }
.ff-whatiam .ff-quote { position: relative; padding-left: 0.62em; }
.ff-whatiam .ff-quote::before { content: "\201C"; position: absolute; left: -0.12em; top: -0.08em; color: var(--ff-voice); font-size: 1.6em; line-height: 1; }
.ff-whatiam .ff-q-end { color: var(--ff-voice); }
.ff-whatiam__fine { font-size: var(--ff-t-footnote-size); color: var(--ff-text-muted); }

.ff-fbsec { padding-top: 48px; }
.ff-fbsec .ff-speech { margin-top: 16px; }
.ff-static__art { position: relative; overflow: hidden; width: 100%; max-width: 420px; aspect-ratio: 21 / 8; margin-top: 18px; border: 2px solid var(--ff-rig-ink); box-shadow: var(--ff-shadow-hard-m); background: var(--ff-rig-ink); }
.ff-static__art::after { content: ""; position: absolute; inset: 0; background: url("/img/static.svg") 0 0 / 180px 180px; opacity: 0.4; animation: ff-snow 0.9s steps(5) infinite; }
.ff-static__art img { position: absolute; z-index: 1; left: 50%; bottom: -6%; height: 96%; width: auto; translate: -50% 0; }
@media (prefers-reduced-motion: reduce) { .ff-static__art::after { animation: none; } }

/* The two gears */
.ff-gears { display: grid; gap: 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.ff-gear { display: grid; gap: 10px; padding: 16px 16px 6px; align-content: start; }
.ff-gear__head { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 4px 12px; align-items: center; }
.ff-gear__head svg { grid-column: 2; grid-row: 1 / span 2; width: 64px; height: 64px; }
.ff-gear__name { font-family: var(--ff-font-display); font-weight: 400; font-size: var(--ff-t-title2-size); line-height: 1.04; }
.ff-gear__feel { font-size: var(--ff-t-callout-size); color: var(--ff-text-muted); }
.ff-gear__when { font-size: var(--ff-t-callout-size); line-height: 1.45; }
.ff-gear__when strong { display: block; font-family: var(--ff-font-mono); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ff-accent-text); margin-bottom: 2px; }
.ff-gear .ff-speech { margin-top: 6px; }
.ff-gears__note { margin-top: 16px; font-size: var(--ff-t-callout-size); color: var(--ff-text-muted); max-width: 52ch; }

/* Catchphrases: the rundown rows from How to win, each phrase in his own type */
.ff-phrases .ff-howto__step h3 { font-size: 1.375rem; }
.ff-phrases .ff-howto__step h3 q { quotes: "\201C" "\201D"; }
.ff-phrases .ff-howto__step h3 q::before, .ff-phrases .ff-howto__step h3 q::after { color: var(--ff-voice); }
.ff-phrases__job { display: block; font-family: var(--ff-font-mono); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ff-accent-text); margin-top: 4px; }
.ff-phrases .ff-howto__num { font-size: 2.25rem; }
.ff-signoff { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 12px 16px; align-items: end; margin-top: 18px; max-width: 640px; }
.ff-signoff img { grid-column: 2; grid-row: 1 / span 2; width: 104px; height: auto; }
.ff-signoff p { font-size: var(--ff-t-callout-size); color: var(--ff-text-muted); }
.ff-signoff .ff-speech { margin: 0 0 14px; }

/* The cup */
.ff-cup { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 12px 16px; align-items: start; padding: 18px 16px; }
.ff-cup > svg { grid-column: 2; grid-row: 1 / span 2; width: 76px; height: auto; rotate: 7deg; margin-top: 2px; }
.ff-cup > p:first-of-type { grid-column: 1; }
.ff-cup > .ff-title2 { grid-column: 1; }
.ff-cup > p { grid-column: 1 / -1; font-size: var(--ff-t-callout-size); max-width: 52ch; }
.ff-cup > .ff-speech { grid-column: 1 / -1; margin-top: 4px; }

/* Solo streams and handles */
.ff-segs { display: grid; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; max-width: 640px; }
.ff-segs li { display: grid; gap: 2px; padding: 12px 0 13px; border-top: 2px solid var(--ff-rule-strong); }
.ff-segs li:last-child { border-bottom: 2px solid var(--ff-rule-strong); }
.ff-segs h3 { font-family: var(--ff-font-display); font-weight: 400; font-size: 1.125rem; line-height: 1.1; }
.ff-segs p { font-size: var(--ff-t-callout-size); color: var(--ff-text-muted); }
.ff-solo .ff-state { margin-top: 18px; max-width: 640px; }
.ff-handlecard { display: grid; gap: 6px; max-width: 640px; margin-top: 16px; padding: 16px 16px 18px; }
.ff-handlecard__name { font-family: var(--ff-font-mono); font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.01em; overflow-wrap: anywhere; margin-bottom: 4px; }
.ff-handlecard__on { font-size: var(--ff-t-callout-size); color: var(--ff-text-muted); }
.ff-handlecard__mono { font-family: var(--ff-font-mono); font-weight: 700; color: var(--ff-text); }
.ff-note { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: var(--ff-t-callout-size); color: var(--ff-text-muted); max-width: 52ch; }
.ff-note svg { flex: none; width: 22px; height: 22px; color: var(--ff-accent); margin-top: 1px; }

@media (min-width: 560px) {
  .ff-gears { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .ff-fbstage { height: 440px; }
  .ff-fbsec { padding-top: 80px; }
}
@media (min-width: 1024px) {
  .ff-fbtop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "title stage" "what stage" ". stage"; column-gap: 56px; row-gap: 18px; align-items: start; }
  .ff-fbtop > .ff-largetitle { grid-area: title; }
  .ff-fbtop > .ff-fbstagewrap { grid-area: stage; margin-top: calc(var(--ff-safe-top) + 64px + 36px); }
  .ff-fbtop > .ff-whatiam { grid-area: what; }
  .ff-fbstage { height: 520px; --bubble-max: 280px; }
  .ff-fbtitle__logo { width: 340px; }
  .ff-fbsec--split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  .ff-fbsec--split > .ff-sechead { grid-column: 1 / -1; }
  .ff-fbsec--split > .ff-prose-block + .ff-prose-block { margin-top: 0; }
}

/* ================================================================ /brand */
.ff-page-brand .ff-largetitle .ff-lead { max-width: 32ch; }
.ff-idea { font-family: var(--ff-font-display); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 14ch; text-wrap: balance; }
.ff-idea .ff-mark { padding: 0 0.1em; }
.ff-bsec { padding-top: 48px; }
.ff-bsec .ff-prose-block + * { margin-top: 18px; }
.ff-pair { display: grid; gap: 4px; padding: 14px 16px; margin-top: 18px; border-left: 6px solid var(--ff-voice); background: var(--ff-surface); max-width: 52ch; }
.ff-pair p:first-child { font-family: var(--ff-font-display); font-size: 1.25rem; line-height: 1.12; }
.ff-pair p:last-child { font-size: var(--ff-t-footnote-size); color: var(--ff-text-muted); }

.ff-marks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.ff-marktile { display: grid; grid-template-rows: auto 1fr; border: 2px solid var(--ff-rule-strong); box-shadow: var(--ff-shadow-hard-m); background: var(--ff-surface); min-width: 0; }
.ff-marktile--wide { grid-column: 1 / -1; }
.ff-marktile__art { display: grid; place-items: center; min-height: 128px; padding: 18px 14px; border-bottom: 2px solid var(--ff-rule-strong); }
.ff-marktile__art img { width: 100%; height: auto; max-height: 112px; object-fit: contain; }
.ff-marktile--wide .ff-marktile__art { min-height: 150px; }
.ff-marktile--wide .ff-marktile__art img { width: min(300px, 86%); max-height: none; }
.ff-marktile__art[data-ground="paper"] { background: var(--ff-paper); }
.ff-marktile__art[data-ground="ink"] { background: var(--ff-ink); }
.ff-marktile__art[data-ground="violet"] { background: var(--ff-rig-world); }
.ff-marktile__sprites { display: flex; align-items: flex-end; justify-content: center; gap: 18px; }
.ff-marktile__sprites img { width: auto; max-height: none; image-rendering: pixelated; }
.ff-marktile__cap { display: grid; gap: 3px; align-content: start; padding: 10px 12px 12px; }
.ff-marktile__name { font-weight: 700; font-size: 0.9375rem; line-height: 1.25; }
.ff-marktile__use { font-size: var(--ff-t-footnote-size); line-height: 1.35; color: var(--ff-text-muted); }
.ff-marktile__min { font-family: var(--ff-font-mono); font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--ff-text-muted); }

.ff-clear { display: grid; gap: 18px; margin-top: 22px; }
/* Clear space drawn to scale: half the F's cap height around the sticker's outermost edge. */
.ff-clear__demo { position: relative; justify-self: start; width: min(320px, 100%); padding: 7.26%; outline: 2px dashed var(--ff-accent); outline-offset: -2px; background: repeating-linear-gradient(-45deg, transparent 0 7px, var(--ff-rule) 7px 9px); }
.ff-clear__demo img { position: relative; display: block; width: 100%; height: auto; background: var(--ff-ground); }
.ff-clear__label { position: absolute; top: 3px; left: 7px; font-family: var(--ff-font-mono); font-weight: 700; font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ff-accent-text); background: var(--ff-ground); padding: 0 3px; }
.ff-table { width: 100%; max-width: 640px; border-collapse: collapse; font-size: var(--ff-t-callout-size); }
.ff-table th, .ff-table td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-top: 1.5px solid var(--ff-rule); }
.ff-table thead th { font-family: var(--ff-font-mono); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ff-text-muted); border-top: 0; padding-top: 0; }
.ff-table td:last-child { font-family: var(--ff-font-mono); font-size: 0.875rem; white-space: nowrap; padding-right: 0; }
.ff-table tbody tr:last-child td { border-bottom: 1.5px solid var(--ff-rule); }

.ff-donts { display: grid; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: ff-dont; max-width: 680px; }
.ff-donts li { counter-increment: ff-dont; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1.5px solid var(--ff-rule); font-size: var(--ff-t-callout-size); line-height: 1.45; }
.ff-donts li:last-child { border-bottom: 1.5px solid var(--ff-rule); }
.ff-donts li::before { content: counter(ff-dont, decimal-leading-zero); font-family: var(--ff-font-mono); font-weight: 700; font-size: 0.8125rem; color: var(--ff-accent-text); padding-top: 2px; }

.ff-palette { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.ff-chipcolor { display: grid; grid-template-rows: 76px auto; border: 2px solid var(--ff-rule-strong); background: var(--ff-surface); box-shadow: 3px 3px 0 0 var(--ff-shadow); min-width: 0; }
.ff-chipcolor__swatch { display: block; width: 100%; height: 100%; border-bottom: 2px solid var(--ff-rule-strong); }
.ff-chipcolor__cap { display: grid; gap: 1px; align-content: start; padding: 8px 10px 10px; }
.ff-chipcolor__name { font-weight: 700; font-size: 0.9375rem; line-height: 1.2; }
.ff-chipcolor__hex { font-family: var(--ff-font-mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
.ff-chipcolor__job { font-size: var(--ff-t-footnote-size); line-height: 1.35; color: var(--ff-text-muted); margin-top: 2px; }
.ff-palette--rig .ff-chipcolor { grid-template-rows: 52px auto; }
.ff-subhead { margin-top: 28px; }
.ff-subhead + .ff-callout { margin-top: 6px; max-width: 56ch; }
.ff-idea + .ff-prose-block { margin-top: 16px; }
.ff-clear .ff-callout { margin: 6px 0 14px; }
.ff-bsec__fine { margin-top: 14px; max-width: 56ch; }
.ff-rulebox { margin-top: 18px; padding: 14px 16px; display: grid; gap: 6px; max-width: 640px; }
.ff-rulebox p { font-size: var(--ff-t-callout-size); }
.ff-rulebox__demo { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; pointer-events: none; }

.ff-typespecs { display: grid; gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.ff-typespec { display: grid; gap: 6px; padding: 14px 16px 16px; }
.ff-typespec__sample { line-height: 1.05; overflow-wrap: anywhere; }
.ff-typespec__sample--display { font-family: var(--ff-font-display); font-size: 2.25rem; letter-spacing: -0.015em; }
.ff-typespec__sample--body { font-family: var(--ff-font-body); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.ff-typespec__sample--mono { font-family: var(--ff-font-mono); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; }
.ff-typespec__meta { font-size: var(--ff-t-callout-size); color: var(--ff-text-muted); }
.ff-typespec__meta strong { color: var(--ff-text); }

.ff-motion { display: grid; gap: 16px; }
.ff-motion__card { position: relative; overflow: hidden; padding: 18px 16px 20px; color: var(--ff-paper); background: var(--ff-rig-ink); border: 2px solid var(--ff-rig-ink); box-shadow: 6px 6px 0 0 var(--ff-cta-shadow); }
.ff-motion__card::before { content: ""; position: absolute; inset: 0; background: url("/img/static.svg") 0 0 / 180px 180px; opacity: 0.18; animation: ff-snow 1.1s steps(6) infinite; }
@media (prefers-reduced-motion: reduce) { .ff-motion__card::before { animation: none; } }
.ff-motion__card > * { position: relative; }
.ff-motion__name { font-family: var(--ff-font-display); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1; letter-spacing: -0.015em; text-shadow: 2px 0 0 #FF3EA5, -2px 0 0 #7A5CFF; }
.ff-motion__card p { margin-top: 8px; color: var(--ff-ink-30); max-width: 44ch; font-size: var(--ff-t-callout-size); }
.ff-motion__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; max-width: 640px; }
.ff-motion__list li { padding: 10px 0; border-top: 1.5px solid var(--ff-rule); font-size: var(--ff-t-callout-size); }
.ff-motion__list li:last-child { border-bottom: 1.5px solid var(--ff-rule); }

.ff-disclose { display: grid; gap: 14px; margin-top: 16px; }
.ff-disclose .ff-card { padding: 16px; display: grid; gap: 8px; align-content: start; }
.ff-disclose__where { font-family: var(--ff-font-mono); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ff-text-muted); }
.ff-disclose__line { font-family: var(--ff-font-display); font-size: 1.25rem; line-height: 1.15; }
.ff-naming { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; max-width: 640px; }
.ff-naming li { font-size: var(--ff-t-callout-size); }
.ff-never { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.ff-never s { font-family: var(--ff-font-mono); font-size: 0.8125rem; padding: 4px 9px; border: 1.5px solid var(--ff-rule); border-radius: 999px; text-decoration-color: var(--ff-error); text-decoration-thickness: 1.5px; color: var(--ff-text-muted); }

@media (min-width: 560px) {
  .ff-palette { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ff-palette--rig { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ff-marks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .ff-bsec { padding-top: 88px; }
  .ff-typespecs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ff-disclose { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ff-clear { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; column-gap: 40px; }
  .ff-motion { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
}
@media (min-width: 1024px) {
  .ff-palette { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ff-palette--rig { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ff-marks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================= /nominate */
.ff-page-nominate .ff-largetitle .ff-lead { max-width: 36ch; }
.ff-hunt-intro { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 10px 14px; align-items: start; }
.ff-hunt-intro > .ff-largetitle { grid-column: 1 / -1; }
.ff-hunt-intro > .ff-hunt__art { grid-column: 2; grid-row: 2; width: 84px; margin-top: 2px; }
.ff-hunt-intro__text { grid-column: 1; grid-row: 2; display: grid; gap: 8px; }
.ff-hunt-intro__text p { font-size: var(--ff-t-callout-size); line-height: 1.45; text-wrap: pretty; }
.ff-hunt-intro__text strong { font-weight: 700; }
.ff-hunt-intro__more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.ff-hunt-intro > .ff-speech { grid-column: 1 / -1; margin: 4px 0 14px; }

.ff-nominate { display: grid; gap: 8px; }
.ff-form { display: grid; gap: 28px; margin-top: 8px; }
.ff-fieldset { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ff-fieldset > legend { float: left; width: 100%; padding: 0; margin: 0 0 2px; }
.ff-fieldset--tight { gap: 6px; }
.ff-field { display: grid; gap: 6px; min-width: 0; scroll-margin-top: calc(var(--ff-bar-h) + var(--ff-safe-top) + 16px); scroll-margin-bottom: 140px; }
.ff-field__label { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.ff-field__opt { font-weight: 400; color: var(--ff-text-muted); }
.ff-field__hint { font-size: var(--ff-t-footnote-size); line-height: 1.4; color: var(--ff-text-muted); text-wrap: pretty; }
.ff-field__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ff-field__count { margin-left: auto; font-family: var(--ff-font-mono); font-size: 0.75rem; color: var(--ff-text-muted); white-space: nowrap; }
.ff-field__count[data-over="true"] { color: var(--ff-error); font-weight: 700; }
.ff-field__error { padding-left: 10px; border-left: 3px solid currentColor; font-size: var(--ff-t-footnote-size); line-height: 1.4; font-weight: 600; color: var(--ff-error); text-wrap: pretty; }
.ff-input {
  appearance: none;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  font-family: var(--ff-font-body);
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--ff-text);
  background: var(--ff-surface);
  border: 2px solid var(--ff-rule-strong);
  border-radius: 8px;
  box-shadow: inset 0 3px 0 0 var(--ff-sunk);
  transition: box-shadow var(--ff-dur-release) var(--ff-ease-out), border-color 120ms ease;
}
.ff-input::placeholder { color: var(--ff-text-faint); opacity: 1; }
.ff-input:focus { outline: none; box-shadow: 4px 4px 0 0 var(--ff-cta-shadow); }
.ff-input[aria-invalid="true"] { border-color: var(--ff-error); box-shadow: 4px 4px 0 0 var(--ff-error); }
textarea.ff-input { min-height: 140px; resize: vertical; }
.ff-input--mono { font-family: var(--ff-font-mono); font-size: 1rem; }

.ff-chips { display: flex; flex-wrap: wrap; gap: 10px 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.ff-chip { position: relative; display: inline-flex; }
.ff-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ff-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  font-weight: 600; font-size: 0.9375rem; color: var(--ff-text);
  background: var(--ff-surface); border: 2px solid var(--ff-rule-strong); border-radius: 999px;
  box-shadow: 2px 2px 0 0 var(--ff-shadow);
  transition: translate var(--ff-dur-release) var(--ff-ease-back), box-shadow var(--ff-dur-release) var(--ff-ease-back);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.ff-chip input:checked + span { background: var(--ff-text); color: var(--ff-ground); }
.ff-chip input:focus-visible + span { outline: 3px solid var(--ff-focus); outline-offset: 3px; }
.ff-chip input:active + span { translate: 2px 2px; box-shadow: 0 0 0 0 var(--ff-shadow); transition-duration: var(--ff-dur-press); }
.ff-chips[data-invalid="true"] .ff-chip span { border-color: var(--ff-error); }

.ff-check { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 44px; padding: 7px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ff-check input {
  appearance: none; display: grid; place-content: center; width: 30px; height: 30px; margin: 0;
  background: var(--ff-surface); border: 2px solid var(--ff-rule-strong); border-radius: 7px;
  box-shadow: 2px 2px 0 0 var(--ff-shadow); cursor: pointer;
  transition: translate var(--ff-dur-release) var(--ff-ease-back), box-shadow var(--ff-dur-release) var(--ff-ease-back);
}
.ff-check input::after { content: ""; width: 14px; height: 8px; border: solid var(--ff-ground); border-width: 0 0 3px 3px; rotate: -45deg; translate: 0 -2px; opacity: 0; }
.ff-check input:checked { background: var(--ff-text); }
.ff-check input:checked::after { opacity: 1; }
.ff-check input:active { translate: 2px 2px; box-shadow: 0 0 0 0 var(--ff-shadow); transition-duration: var(--ff-dur-press); }
.ff-check input[aria-invalid="true"] { border-color: var(--ff-error); box-shadow: 2px 2px 0 0 var(--ff-error); }
.ff-check__text { font-size: 1rem; line-height: 1.4; padding-top: 3px; }

/* The primary action stays in the thumb zone: a bar on the bar material, just above the tab bar, while the form is on screen. */
.ff-formbar {
  position: sticky;
  z-index: var(--ff-z-raised);
  bottom: calc(var(--ff-tabbar-h) + var(--ff-safe-bottom));
  display: grid;
  gap: 8px;
  margin: -6px calc(-1 * var(--ff-gutter-r)) 0 calc(-1 * var(--ff-gutter-l));
  padding: 12px var(--ff-gutter-r) 12px var(--ff-gutter-l);
  background: var(--ff-bar-bg);
  border-top: 1.5px solid var(--ff-bar-rule);
}
.ff-formbar .ff-btn--primary { width: 100%; }
.ff-formbar__fine { font-size: var(--ff-t-footnote-size); line-height: 1.35; color: var(--ff-text-muted); text-align: center; }
.ff-btn[aria-busy="true"] { pointer-events: none; }
.ff-btn__spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: ff-spin 0.7s linear infinite; }
@keyframes ff-spin { to { rotate: 360deg; } }
.ff-formerr:empty { display: none; }
.ff-formerr { scroll-margin-bottom: 150px; }

.ff-done { display: grid; gap: 12px; padding: 20px 16px 18px; margin-top: 8px; }
.ff-done .ff-stamp { justify-self: start; }
.ff-done .ff-speech { margin: 6px 0 14px; }
.ff-done__text { font-size: var(--ff-t-callout-size); max-width: 44ch; }
.ff-done__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
.ff-done:focus { outline: none; }

.ff-rubric__scores { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ff-rubric__scores li { padding: 10px 12px; background: var(--ff-sunk); border-left: 4px solid var(--ff-accent); }
.ff-rubric__scores strong { display: block; }
.ff-rubric__gates { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

@media (min-width: 768px) {
  .ff-hunt-intro { grid-template-columns: minmax(0, 1fr) 120px; }
  .ff-hunt-intro > .ff-hunt__art { width: 120px; }
  .ff-nominate { max-width: 680px; }
}
@media (min-width: 900px) {
  .ff-formbar { position: static; margin: 0; padding: 0; background: none; border: 0; justify-items: start; }
  .ff-formbar .ff-btn--primary { width: auto; }
  .ff-formbar__fine { text-align: left; }
}
.ff-check__more { margin: -6px 0 0 42px; }
.ff-roombar__note .ff-link { display: inline-block; padding-block: 13px; margin-block: -13px; }
/* The rule card's corner tape stays inside a phone's width here (on home it pokes 1 px past it). */
.ff-live .ff-rule .ff-tape[data-at="tr"] { right: -11px; }
