/* Served copy of design/web/components.css, written by design/web/build-site.mjs. Edit the source, not this file. */
/* ForFree web components v1.0 (2026-10-28). ForFree Show LLC, kept by SITE design.
   Source of the served copy at site/public/css/components.css (design/web/build-site.mjs copies it).
   Needs tokens.css first. Mobile first: designed at 390 x 844, then 430 x 932, then adapted up.

   Shape rule (one system): cards, panels and frames are square with hard offset shadows; controls
   (buttons, fields, segmented controls) round to 8 px; pills and round buttons are fully round; stickers
   take uneven die-cut corners; sheets round their top corners like iOS. Nothing blurs, nothing glows.
   Colour rule: lime marks the primary action on every ground and nothing else in that view
   (DECISIONS: CTA system); orange counts and marks; violet is Freebie's voice and the link underline. */

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--ff-bar-h) + var(--ff-safe-top) + 12px);
}
/* iOS only: let the reader's Dynamic Type size set 1rem, as native apps do. */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html { font: -apple-system-body; }
}
body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--ff-ground);
  background-image: var(--ff-grain, none);
  background-size: 220px 220px;
  color: var(--ff-text);
  font-family: var(--ff-font-body);
  font-size: var(--ff-t-body-size);
  line-height: var(--ff-t-body-leading);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  overflow-x: clip;
}
:root { --ff-grain: url("/img/grain-paper.svg"); }
[data-theme="dark"], .ff-ground-dark { --ff-grain: url("/img/grain-ink.svg"); }
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] { --ff-grain: url("/img/grain-ink.svg"); }
  [data-theme="auto"] .ff-ground-light { --ff-grain: url("/img/grain-paper.svg"); }
}
.ff-ground-light, [data-theme="light"] { --ff-grain: url("/img/grain-paper.svg"); }
.ff-ground-light, .ff-ground-dark { background-color: var(--ff-ground); background-image: var(--ff-grain); background-size: 220px 220px; color: var(--ff-text); }

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ff-focus); outline-offset: 3px; }
::selection { background: var(--ff-highlight); color: var(--ff-on-highlight); }

.ff-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.ff-skip {
  position: fixed; z-index: var(--ff-z-toast); left: var(--ff-gutter-l); top: -120px;
  padding: 12px 16px; background: var(--ff-cta-bg); color: var(--ff-cta-fg);
  font-weight: 700; text-decoration: none; border-radius: 8px;
}
.ff-skip:focus { top: calc(var(--ff-safe-top) + 8px); }

/* --------------------------------------------------------------- layout */
.ff-wrap {
  width: 100%;
  max-width: calc(var(--ff-site-page) + 2 * var(--ff-margin-wide));
  margin-inline: auto;
  padding-left: var(--ff-gutter-l);
  padding-right: var(--ff-gutter-r);
}
@media (min-width: 768px) {
  .ff-wrap {
    padding-left: max(var(--ff-margin-wide), var(--ff-safe-left));
    padding-right: max(var(--ff-margin-wide), var(--ff-safe-right));
  }
}
.ff-measure { max-width: var(--ff-site-measure); }

/* ----------------------------------------------------------- typography */
.ff-display, .ff-wordmark {
  font-family: var(--ff-t-display-family); font-weight: 400;
  font-size: var(--ff-t-display-size); line-height: var(--ff-t-display-leading);
  letter-spacing: var(--ff-t-display-tracking);
}
.ff-title1 {
  font-family: var(--ff-t-title1-family); font-weight: 400;
  font-size: var(--ff-t-title1-size); line-height: var(--ff-t-title1-leading);
  letter-spacing: var(--ff-t-title1-tracking); text-wrap: balance;
}
.ff-title2 {
  font-family: var(--ff-t-title2-family); font-weight: 400;
  font-size: var(--ff-t-title2-size); line-height: var(--ff-t-title2-leading);
  letter-spacing: var(--ff-t-title2-tracking); text-wrap: balance;
}
.ff-title3 {
  font-family: var(--ff-t-title3-family); font-weight: var(--ff-t-title3-weight);
  font-size: var(--ff-t-title3-size); line-height: var(--ff-t-title3-leading);
  letter-spacing: var(--ff-t-title3-tracking);
}
.ff-quote {
  font-family: var(--ff-t-quote-family); font-weight: 400;
  font-size: var(--ff-t-quote-size); line-height: var(--ff-t-quote-leading);
  letter-spacing: var(--ff-t-quote-tracking); text-wrap: balance;
}
.ff-lead { font-size: var(--ff-t-lead-size); line-height: var(--ff-t-lead-leading); letter-spacing: var(--ff-t-lead-tracking); text-wrap: pretty; }
.ff-body { font-size: var(--ff-t-body-size); line-height: var(--ff-t-body-leading); text-wrap: pretty; }
.ff-callout { font-size: var(--ff-t-callout-size); line-height: var(--ff-t-callout-leading); text-wrap: pretty; }
.ff-footnote { font-size: var(--ff-t-footnote-size); line-height: var(--ff-t-footnote-leading); }
.ff-label {
  font-family: var(--ff-font-mono); font-weight: 700; text-transform: uppercase;
  font-size: var(--ff-t-label-size); line-height: var(--ff-t-label-leading); letter-spacing: var(--ff-t-label-tracking);
}
.ff-micro {
  font-family: var(--ff-font-mono); text-transform: uppercase;
  font-size: var(--ff-t-micro-size); line-height: var(--ff-t-micro-leading); letter-spacing: var(--ff-t-micro-tracking);
}
.ff-muted { color: var(--ff-text-muted); }
.ff-voice { color: var(--ff-voice-text); }
.ff-mark { background: var(--ff-highlight); color: var(--ff-on-highlight); padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ff-tnum { font-variant-numeric: tabular-nums; }

.ff-link, .ff-prose a {
  color: var(--ff-link);
  text-decoration-line: underline;
  text-decoration-color: var(--ff-link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  border-radius: 2px;
}
@media (hover: hover) {
  .ff-link:hover, .ff-prose a:hover { text-decoration-color: currentColor; }
}
.ff-link:active, .ff-prose a:active { background: var(--ff-sunk); }

/* -------------------------------------------------------------- buttons */
.ff-btn {
  --btn-bg: var(--ff-btn-bg);
  --btn-fg: var(--ff-btn-fg);
  --btn-edge: var(--ff-rule-strong);
  --btn-shadow: var(--ff-shadow);
  --btn-off: 4px;
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--ff-button-h);
  min-width: var(--ff-touch);
  padding: 0 20px;
  font-family: var(--ff-font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-edge);
  border-radius: 8px;
  box-shadow: var(--btn-off) var(--btn-off) 0 0 var(--btn-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;
  touch-action: manipulation;
  user-select: none;
}
.ff-btn svg { width: 20px; height: 20px; flex: none; }
.ff-btn:active, .ff-btn.is-pressed {
  translate: var(--btn-off) var(--btn-off);
  box-shadow: 0 0 0 0 var(--btn-shadow);
  transition-duration: var(--ff-dur-press);
  transition-timing-function: ease-out;
}
@media (hover: hover) {
  .ff-btn:hover:not(:active) { translate: -1px -1px; box-shadow: calc(var(--btn-off) + 1px) calc(var(--btn-off) + 1px) 0 0 var(--btn-shadow); }
}
.ff-btn:focus-visible { outline-offset: 4px; }
.ff-btn[disabled], .ff-btn[aria-disabled="true"] { opacity: 0.45; box-shadow: none; pointer-events: none; }

/* The primary action: lime marks it on every ground (ink fill and lime label on paper). */
.ff-btn--primary {
  --btn-bg: var(--ff-cta-bg);
  --btn-fg: var(--ff-cta-fg);
  --btn-edge: var(--ff-cta-bg);
  --btn-shadow: var(--ff-cta-shadow);
}
.ff-on-world .ff-btn--primary {
  --btn-bg: var(--ff-lime);
  --btn-fg: var(--ff-rig-ink);
  --btn-edge: var(--ff-rig-ink);
  --btn-shadow: var(--ff-rig-ink);
}
.ff-btn--secondary { --btn-off: 3px; }
.ff-btn--small { min-height: 44px; padding: 0 14px; font-size: 0.9375rem; --btn-off: 3px; }
.ff-btn--block { display: flex; width: 100%; }
.ff-btn--icon {
  --btn-off: 2px;
  width: 44px; min-width: 44px; height: 44px; min-height: 44px;
  padding: 0; border-radius: 999px;
}
.ff-btn--text {
  min-height: 44px; padding: 0 4px; border: 0; background: none; box-shadow: none;
  color: var(--ff-link); text-decoration: underline; text-decoration-color: var(--ff-link-line);
  text-decoration-thickness: 2px; text-underline-offset: 0.22em;
}
.ff-btn--text:active { translate: 0 1px; background: var(--ff-sunk); }
.ff-btn .ff-btn__arrow { transition: translate var(--ff-dur-release) var(--ff-ease-back); }
@media (hover: hover) {
  .ff-btn:hover .ff-btn__arrow { translate: 3px 0; }
}

/* ------------------------------------------------- top bar, large title */
.ff-topbar {
  position: fixed;
  z-index: var(--ff-z-bar);
  inset: 0 0 auto 0;
  height: calc(var(--ff-bar-h) + var(--ff-safe-top));
  padding-top: var(--ff-safe-top);
  padding-left: var(--ff-gutter-l);
  padding-right: var(--ff-gutter-r);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-bottom: 1.5px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.ff-topbar[data-collapsed="true"] { background: var(--ff-bar-bg); border-bottom-color: var(--ff-bar-rule); }
.ff-topbar__title {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--ff-font-display);
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  color: var(--ff-text);
  text-decoration: none;
  opacity: 0;
  translate: 0 8px;
  /* Hidden means out of the tab order and untouchable too, not only transparent. */
  visibility: hidden;
  transition: opacity 160ms ease, translate 220ms var(--ff-ease-out), visibility 0s linear 220ms;
  padding: 10px 8px;
  border-radius: 6px;
}
.ff-topbar[data-collapsed="true"] .ff-topbar__title { opacity: 1; translate: 0 0; visibility: visible; transition-delay: 0s; }
.ff-topnav { display: none; }

.ff-largetitle {
  padding-top: calc(var(--ff-safe-top) + var(--ff-bar-h) + 2px);
  padding-bottom: var(--ff-sp-4);
}
.ff-wordmark { margin: 0; color: var(--ff-text); }
/* BRAND's ForFree sticker as the large title; the compact sticker in the bar (brand/logos/README.md sizes). */
.ff-wordmark__logo { display: block; width: min(226px, 60vw); height: auto; margin: 0 0 0 -6px; }
.ff-topbar__logo { display: block; height: 32px; width: auto; }
@media (min-width: 900px) {
  .ff-wordmark__logo { width: clamp(280px, 26vw, 400px); margin-left: -10px; }
  .ff-topbar__logo { height: 36px; }
}

@media (min-width: 900px) {
  .ff-topbar {
    justify-content: space-between;
    background: var(--ff-bar-bg);
    border-bottom-color: var(--ff-bar-rule);
    padding-left: max(var(--ff-margin-wide), var(--ff-safe-left));
    padding-right: max(var(--ff-margin-wide), var(--ff-safe-right));
    height: calc(64px + var(--ff-safe-top));
  }
  .ff-topbar__title { opacity: 1; translate: 0 0; visibility: visible; font-size: 1.375rem; }
  .ff-topnav { display: flex; gap: 4px; }
  .ff-topnav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    color: var(--ff-text); text-decoration: none; font-weight: 600; font-size: 0.9375rem;
    border-radius: 8px; border: 2px solid transparent;
  }
  .ff-topnav a:hover { border-color: var(--ff-rule); }
  .ff-topnav a[aria-current="page"] { border-color: var(--ff-rule-strong); box-shadow: 3px 3px 0 0 var(--ff-tab-mark); }
  .ff-largetitle { padding-top: calc(var(--ff-safe-top) + 64px + 40px); }
}

/* --------------------------------------------------------------- tab bar */
.ff-tabbar {
  position: fixed;
  z-index: var(--ff-z-tabbar);
  inset: auto 0 0 0;
  background: var(--ff-bar-bg);
  border-top: 1.5px solid var(--ff-bar-rule);
  padding: 0 var(--ff-safe-right) var(--ff-safe-bottom) var(--ff-safe-left);
}
.ff-tabbar__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: var(--ff-tabbar-h);
  margin: 0 auto;
  padding: 0 4px;
  max-width: 560px;
  list-style: none;
}
.ff-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  min-height: 44px;
  color: var(--ff-tab-idle);
  text-decoration: none;
  font-family: var(--ff-t-tab-family);
  font-weight: var(--ff-t-tab-weight);
  font-size: var(--ff-t-tab-size);
  line-height: var(--ff-t-tab-leading);
  letter-spacing: var(--ff-t-tab-tracking);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ff-tab__icon { width: 28px; height: 28px; transition: scale var(--ff-dur-release) var(--ff-ease-back); }
.ff-tab__icon .ff-tab__fill { fill: transparent; }
.ff-tab:active .ff-tab__icon { scale: 0.86; transition-duration: var(--ff-dur-press); }
.ff-tab[aria-current="page"] { color: var(--ff-tab-on); font-weight: 700; }
.ff-tab[aria-current="page"] .ff-tab__fill { fill: var(--ff-tab-mark); }
.ff-tab__label { position: relative; }
.ff-tab[aria-current="page"] .ff-tab__label::after {
  content: "";
  position: absolute;
  left: -3px; right: -3px; bottom: -4px; height: 3px;
  background: var(--ff-tab-mark);
  border-radius: 2px;
  rotate: -2deg;
}
.ff-tab__eye { fill: var(--ff-bar-bg); stroke: currentColor; stroke-width: 2.1; }
.ff-tab:focus-visible { outline-offset: -4px; border-radius: 10px; }
@media (min-width: 900px) { .ff-tabbar { display: none; } }

/* The page leaves room for the bars. */
.ff-has-tabbar { padding-bottom: calc(var(--ff-tabbar-h) + var(--ff-safe-bottom)); }
@media (min-width: 900px) { .ff-has-tabbar { padding-bottom: 0; } }

/* ----------------------------------------------------------------- sheets */
html.is-sheet-open, html.is-sheet-open body { overflow: hidden; }
dialog.ff-sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ff-text);
  overflow: hidden;
  overflow: clip; /* never scrolls: focusing a control inside cannot shift the panel */
}
dialog.ff-sheet::backdrop { background: var(--ff-scrim); }
.ff-sheet__panel {
  --y: 100%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100dvh - var(--ff-safe-top) - 10px);
  display: flex;
  flex-direction: column;
  background: var(--ff-surface);
  border-top: 2px solid var(--ff-rule-strong);
  border-radius: 12px 12px 0 0;
  transform: translateY(var(--y));
  will-change: transform;
  padding-left: var(--ff-safe-left);
  padding-right: var(--ff-safe-right);
}
.ff-sheet__panel.is-animating { transition: transform var(--ff-dur-sheet) var(--ff-ease-sheet); }
.ff-sheet__grabber {
  flex: none;
  width: 44px;
  height: 5px;
  margin: 8px auto 0;
  background: var(--ff-text-faint);
  border-radius: 999px;
}
.ff-sheet__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px var(--ff-margin) 12px;
  border-bottom: 1.5px solid var(--ff-rule);
  touch-action: none;
}
.ff-sheet__title { font-family: var(--ff-font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.1; }
.ff-sheet__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px var(--ff-margin) calc(var(--hidden, 0px) + var(--ff-safe-bottom) + 28px);
}
.ff-sheet__body > * + * { margin-top: 14px; }
.ff-sheet__body > h3 { margin-top: 24px; }
.ff-sheet__body > h3 + * { margin-top: 6px; }
@media (min-width: 768px) {
  .ff-sheet__panel {
    left: 50%;
    top: 50%;
    bottom: auto;
    width: min(560px, 92vw);
    height: auto;
    max-height: min(80vh, 760px);
    border: 2px solid var(--ff-rule-strong);
    border-radius: 12px;
    box-shadow: var(--ff-shadow-hard-xl);
    transform: translate(-50%, calc(-50% + var(--y)));
  }
  .ff-sheet__grabber { display: none; }
  .ff-sheet__head { padding-top: 16px; touch-action: auto; }
}

/* --------------------------------------------------------------- stickers */
/* Uneven die-cut corners, a paper cut margin, a hard offset shadow, a small tilt. */
.ff-sticker {
  --st-bg: var(--ff-rig-ears);
  --st-fg: var(--ff-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.42em 0.72em 0.36em;
  font-family: var(--ff-font-display);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--st-fg);
  background: var(--st-bg);
  border: 2.5px solid var(--ff-rig-ink);
  border-radius: 11px 6px 12px 5px / 7px 12px 6px 11px;
  box-shadow: 0 0 0 3px var(--ff-paper-hi), 4px 4px 0 3px var(--ff-rig-ink);
  rotate: var(--ff-tilt-left);
}
.ff-sticker[data-cut="2"] { border-radius: 5px 13px 7px 12px / 12px 5px 11px 7px; }
.ff-sticker[data-cut="3"] { border-radius: 14px 9px 5px 11px / 9px 14px 11px 5px; }
.ff-sticker[data-cut="4"] { border-radius: 7px 7px 14px 4px / 4px 14px 7px 7px; }
.ff-sticker[data-tilt="right"] { rotate: var(--ff-tilt-right); }
.ff-sticker[data-tilt="slight"] { rotate: var(--ff-tilt-slight); }
.ff-sticker[data-tilt="none"] { rotate: 0deg; }
.ff-sticker[data-tone="lime"] { --st-bg: var(--ff-lime); }
.ff-sticker[data-tone="pink"] { --st-bg: var(--ff-rig-ears); }
.ff-sticker[data-tone="paper"] { --st-bg: var(--ff-paper-hi); }
.ff-sticker[data-tone="ink"] { --st-bg: var(--ff-rig-ink); --st-fg: var(--ff-paper); }
.ff-sticker[data-tone="gold"] { --st-bg: var(--ff-rig-tooth); }
.ff-sticker[data-tone="orange"] { --st-bg: var(--ff-orange); }
.ff-sticker[data-tone="violet"] { --st-bg: var(--ff-violet-text); --st-fg: var(--ff-paper); }
.ff-sticker--mono { font-family: var(--ff-font-mono); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; }
.ff-sticker--big { font-size: 1.25rem; }

/* ------------------------------------------------------------------- tape */
.ff-tape {
  position: absolute;
  width: 86px;
  height: 26px;
  background-color: var(--ff-tape);
  background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 255, 255, 0.18) 7px 9px);
  rotate: -7deg;
  clip-path: polygon(0 12%, 5% 0, 95% 0, 100% 14%, 96% 32%, 100% 50%, 96% 68%, 100% 86%, 95% 100%, 5% 100%, 0 88%, 4% 70%, 0 50%, 4% 30%);
  pointer-events: none;
}
.ff-tape[data-at="tl"] { top: -11px; left: -18px; rotate: -32deg; }
.ff-tape[data-at="tr"] { top: -11px; right: -18px; rotate: 28deg; }
.ff-tape[data-at="top"] { top: -13px; left: calc(50% - 43px); rotate: -3deg; }
@media (prefers-reduced-transparency: reduce) { .ff-tape { background-color: var(--ff-paper-lo); } }

/* --------------------------------------------- hanging tag, prize VALUE tag */
/* A shipping tag on a string: a pointed end, a punched hole, a paper face, an ink edge and a hard shadow.
   The edge is drawn by drop-shadows on .ff-tag__shape, so it follows the point and rings the hole.
   The prize VALUE tag is this tag with its amount in an element that carries data-prize-value, the only
   markup the price wall lets through. */
.ff-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 18px;
  rotate: 4deg;
}
.ff-tag__string {
  position: absolute;
  left: -2px;
  top: 50%;
  width: 34px;
  height: 30px;
  translate: 0 -82%;
  overflow: visible;
  color: var(--ff-rig-ink);
}
.ff-tag__shape {
  display: inline-flex;
  filter: drop-shadow(1.6px 0 0 var(--ff-rig-ink)) drop-shadow(-1.6px 0 0 var(--ff-rig-ink)) drop-shadow(0 1.6px 0 var(--ff-rig-ink)) drop-shadow(0 -1.6px 0 var(--ff-rig-ink)) drop-shadow(2.5px 2.5px 0 var(--ff-rig-ink));
}
.ff-tag__body {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 13px 7px 30px;
  background: var(--ff-paper-hi);
  color: var(--ff-ink);
  clip-path: polygon(15px 0, 100% 0, 100% 100%, 15px 100%, 0 50%);
  -webkit-mask: radial-gradient(circle at 14px 50%, transparent 4.5px, #000 5px);
  mask: radial-gradient(circle at 14px 50%, transparent 4.5px, #000 5px);
}
.ff-tag__label { font-family: var(--ff-font-mono); font-weight: 700; font-size: 0.625rem; line-height: 1.1; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ff-ink-70); }
.ff-tag__value { font-family: var(--ff-font-display); font-size: 1.25rem; line-height: 1; letter-spacing: -0.01em; color: var(--ff-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ff-tag__value--mono { font-family: var(--ff-font-mono); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.02em; text-transform: uppercase; }

/* ------------------------------------------------------ split-flap countdown */
.ff-flap { display: inline-flex; align-items: flex-start; gap: 10px; }
.ff-flap__group { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ff-flap__digits { display: flex; gap: 3px; }
.ff-flap__label { font-family: var(--ff-font-mono); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ff-text-muted); }
/* Days only: the count and its words read as one line, "18 days to go". */
.ff-flap--days .ff-flap__group { flex-direction: row; align-items: center; gap: 10px; }
.ff-flap--days .ff-flap__label { font-size: 0.75rem; }
.ff-digit {
  position: relative;
  display: block;
  width: 0.74em;
  height: 1.2em;
  font-family: var(--ff-t-flap-family);
  font-weight: var(--ff-t-flap-weight);
  font-size: var(--ff-t-flap-size);
  line-height: 1.2em;
  text-align: center;
  color: var(--ff-flap-fg);
  border-radius: 5px;
  perspective: 240px;
  box-shadow: 2px 2px 0 0 var(--ff-cta-shadow);
}
.ff-digit > span {
  position: absolute;
  inset: 0;
  background: var(--ff-flap-bg);
  border-radius: 5px;
  backface-visibility: hidden;
}
.ff-digit__top, .ff-digit__leaf--top { clip-path: inset(0 0 50% 0); }
.ff-digit__bottom, .ff-digit__leaf--bottom { clip-path: inset(50% 0 0 0); }
.ff-digit__leaf { visibility: hidden; transform-origin: 50% 50%; }
.ff-digit::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  height: 2px;
  background: var(--ff-ground);
}
.ff-digit.is-flipping .ff-digit__leaf { visibility: visible; }
.ff-digit.is-flipping .ff-digit__leaf--top { animation: ff-flip-top 250ms cubic-bezier(0.55, 0, 0.9, 0.4) both; z-index: 2; }
.ff-digit.is-flipping .ff-digit__leaf--bottom { animation: ff-flip-bottom 260ms 250ms cubic-bezier(0.1, 0.6, 0.45, 1) both; z-index: 2; }
@keyframes ff-flip-top { from { transform: rotateX(0deg); } to { transform: rotateX(-90deg); } }
@keyframes ff-flip-bottom { from { transform: rotateX(90deg); } to { transform: rotateX(0deg); } }
.ff-flap[data-done="true"] .ff-digit { box-shadow: 2px 2px 0 0 var(--ff-tab-mark); }

/* ------------------------------------------------------------ rubber stamp */
.ff-stamp {
  display: inline-block;
  padding: 0.3em 0.62em 0.22em;
  font-family: var(--ff-font-display);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ff-stamp);
  border: 3px solid currentColor;
  outline: 1.5px solid currentColor;
  outline-offset: 2.5px;
  border-radius: 3px;
  rotate: -3deg;
  -webkit-mask: url("/img/stamp-wear.svg") 0 0 / 240px 120px;
  mask: url("/img/stamp-wear.svg") 0 0 / 240px 120px;
}

/* ------------------------------------------------------------------ cards */
.ff-card {
  position: relative;
  background: var(--ff-surface);
  border: 2px solid var(--ff-rule-strong);
  box-shadow: var(--ff-shadow-hard-l);
}

/* The rule card: the present-to-win rule, stamped and taped, held still (material terms never move). */
.ff-rulecard { padding: 18px 16px 16px; }
.ff-rulecard__stamp { margin: -2px 0 10px -2px; }
.ff-rulecard__line { position: relative; padding-left: 0.62em; color: var(--ff-text); }
.ff-rulecard__line::before {
  content: "\201C";
  position: absolute;
  left: -0.12em;
  top: -0.08em;
  color: var(--ff-voice);
  font-size: 1.6em;
  line-height: 1;
}
.ff-rulecard__line .ff-q-end { color: var(--ff-voice); }
.ff-rulecard__list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ff-rulecard__list li { position: relative; padding-left: 26px; font-size: var(--ff-t-callout-size); line-height: var(--ff-t-callout-leading); text-wrap: pretty; }
.ff-rulecard__list li > svg { position: absolute; left: 0; top: 0.18em; width: 18px; height: 18px; color: var(--ff-accent); }
.ff-rulecard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 14px; }

/* -------------------------------------------------------- next-show ticket */
.ff-ticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; filter: drop-shadow(4px 4px 0 var(--ff-shadow)); }
.ff-ticket__main, .ff-ticket__stub {
  background: var(--ff-surface);
  border: 2px solid var(--ff-rule-strong);
  min-height: 92px;
}
.ff-ticket__main {
  border-right: 0;
  padding: 12px 14px 14px 16px;
  display: grid;
  align-content: center;
  gap: 4px;
  -webkit-mask: radial-gradient(circle at 100% 0, transparent 9px, #000 9.5px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 9px, #000 9.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 100% 0, transparent 9px, #000 9.5px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 9px, #000 9.5px) bottom / 100% 51% no-repeat;
}
.ff-ticket__stub {
  border-left: 2px dashed var(--ff-rule-strong);
  display: grid;
  place-items: center;
  padding: 10px 12px;
  min-width: 104px;
  -webkit-mask: radial-gradient(circle at 0 0, transparent 9px, #000 9.5px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 9px, #000 9.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 0 0, transparent 9px, #000 9.5px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 9px, #000 9.5px) bottom / 100% 51% no-repeat;
}
.ff-ticket__kicker { color: var(--ff-text-muted); }
.ff-ticket__date { font-family: var(--ff-font-display); font-size: var(--ff-t-title2-size); line-height: 1.05; letter-spacing: -0.01em; }
.ff-ticket__note { font-size: var(--ff-t-footnote-size); line-height: 1.4; color: var(--ff-text-muted); text-wrap: pretty; }
.ff-ticket__flap { margin-top: 8px; font-size: 1rem; }
.ff-ticket__status { text-align: center; }
.ff-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-font-mono);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 8px 4px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: var(--ff-status-ink);
  rotate: -4deg;
  white-space: nowrap;
}
.ff-status[data-tone="ok"] { color: var(--ff-ok); }
.ff-status[data-tone="live"] { color: var(--ff-error); }
.ff-status[data-tone="live"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: ff-live 1.2s steps(2, jump-none) infinite;
}
@keyframes ff-live { 50% { opacity: 0.25; } }

/* ------------------------------------------------------------- world panel */
/* Violet ground, flat sunburst rays and a halftone dot screen: the world behind Freebie. */
.ff-world {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ff-world-text);
  background-color: var(--ff-world);
  background-image: radial-gradient(circle, var(--ff-world-dot) 1.3px, transparent 1.6px);
  background-size: 9px 9px;
  background-position: 3px 3px;
}
.ff-world__rays {
  position: absolute;
  z-index: -1;
  left: var(--ray-x, 50%);
  top: var(--ray-y, 45%);
  width: 260%;
  aspect-ratio: 1;
  translate: -50% -50%;
  color: var(--ff-world-ray);
  pointer-events: none;
}
.ff-world--framed { border: 2px solid var(--ff-rig-ink); box-shadow: var(--ff-shadow-hard-l); }

/* ------------------------------------------------------------------ stage */
.ff-stage {
  --actor-h: 76%;
  --floor-y: 12%;
  --home-x: 0;
  --bubble-max: 250px;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}
.ff-stage__actor {
  position: absolute;
  z-index: 2;
  left: calc(50% + var(--home-x) * 100%);
  bottom: calc(var(--floor-y) - var(--actor-h) * 0.054);
  height: var(--actor-h);
  aspect-ratio: 880 / 1120;
  translate: -50% 0;
  touch-action: pan-y;
  cursor: grab;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.ff-stage__actor:focus-visible::after {
  content: "";
  position: absolute;
  inset: 2% 8% 2%;
  border: 3px dashed var(--ff-focus);
  border-radius: 18px;
  pointer-events: none;
}
.ff-on-world .ff-stage__actor:focus-visible::after { border-color: var(--ff-paper); }
.ff-stage.is-dragging .ff-stage__actor { cursor: grabbing; }
.ff-stage__grip, .ff-stage__body { position: absolute; inset: 0; }
.ff-stage__body { transform-origin: 50% 94.6%; }
.ff-freebie, .ff-stage__still { width: 100%; height: 100%; overflow: visible; }
.ff-stage__actorfx { position: absolute; inset: 0; pointer-events: none; }
.ff-stage__fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.ff-stage.is-flash { filter: invert(1); }

.ff-bubble {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 98%;
  translate: calc(-50% + var(--nudge, 0px)) var(--nudge-y, 0px);
  width: max-content;
  max-width: var(--bubble-max);
  padding: 9px 13px 10px;
  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);
  transform-origin: 50% 120%;
  pointer-events: none;
}
.ff-bubble__text {
  font-family: var(--ff-font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.25;
  text-wrap: balance;
}
.ff-bubble::before, .ff-bubble::after {
  content: "";
  position: absolute;
  left: calc(50% - var(--nudge, 0px));
  top: 100%;
  translate: -50% 0;
  border-style: solid;
  border-color: transparent;
}
.ff-bubble::before { border-width: 13px 9px 0 9px; border-top-color: var(--ff-rig-ink); margin-top: 0; }
.ff-bubble::after { border-width: 9px 6px 0 6px; border-top-color: var(--ff-bubble-bg); margin-top: -1px; }
/* No headroom above him (a tall Freebie on a short stage): the bubble sits beside his head, level with his
   face, on the side with more room, and the tail points back at his mouth. say() in stage.js decides. */
.ff-bubble--side { left: 76%; bottom: auto; top: 12%; translate: var(--nudge, 0px) var(--nudge-y, 0px); transform-origin: 0% 55%; }
.ff-bubble--side::before, .ff-bubble--side::after { left: auto; top: 55%; translate: 0 -50%; margin: 0; }
.ff-bubble--side::before { right: 100%; border-width: 9px 13px 9px 0; border-color: transparent var(--ff-rig-ink) transparent transparent; }
.ff-bubble--side::after { right: calc(100% - 3px); border-width: 6px 9px 6px 0; border-color: transparent var(--ff-bubble-bg) transparent transparent; }
.ff-bubble--side.ff-bubble--flip { left: auto; right: 76%; transform-origin: 100% 55%; }
/* Last resort on a short, narrow stage: smaller type across the stage's width, pinned to its top. */
.ff-bubble--compact { max-width: var(--bubble-fit, var(--bubble-max)); padding: 6px 10px 7px; }
.ff-bubble--compact .ff-bubble__text { font-size: 0.8125rem; line-height: 1.22; }
.ff-bubble--compact::before { border-width: 10px 7px 0 7px; }
.ff-bubble--compact::after { border-width: 7px 5px 0 5px; }
.ff-bubble--side.ff-bubble--flip::before { right: auto; left: 100%; border-width: 9px 0 9px 13px; border-color: transparent transparent transparent var(--ff-rig-ink); }
.ff-bubble--side.ff-bubble--flip::after { right: auto; left: calc(100% - 3px); border-width: 6px 0 6px 9px; border-color: transparent transparent transparent var(--ff-bubble-bg); }

.ff-stage__controls {
  position: absolute;
  z-index: var(--ff-z-stage-ui);
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
}
.ff-stage__ctl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ff-ink);
  background: var(--ff-paper-hi);
  border: 2px solid var(--ff-rig-ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 0 var(--ff-rig-ink);
  font-family: var(--ff-font-body);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: translate var(--ff-dur-release) var(--ff-ease-back), box-shadow var(--ff-dur-release) var(--ff-ease-back);
}
.ff-stage__ctl svg { width: 20px; height: 20px; flex: none; }
.ff-stage__ctl--icon { width: 44px; padding: 0; }
.ff-stage__ctl:active { translate: 2px 2px; box-shadow: 0 0 0 0 var(--ff-rig-ink); transition-duration: var(--ff-dur-press); }
.ff-stage__ctl[aria-pressed="true"] { background: var(--ff-rig-tooth); }
.ff-stage__ctl:focus-visible { outline: 3px solid var(--ff-paper); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ff-rig-ink); }
.ff-stage__ctl--play { padding: 0 16px 0 12px; }
.ff-stage__ctl--bit { padding: 0 14px 0 11px; }
.ff-stage__note {
  position: absolute;
  z-index: var(--ff-z-stage-ui);
  top: 62px;
  right: 10px;
  max-width: min(240px, 70%);
  padding: 8px 12px;
  background: var(--ff-paper-hi);
  color: var(--ff-ink);
  border: 2px solid var(--ff-rig-ink);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}
.ff-stage[data-paused] .ff-stage__actor { cursor: default; }
.ff-stage__controls--below {
  position: static;
  justify-content: flex-end;
  margin-top: 14px;
}
.ff-stage__controls--below .ff-stage__ctl { background: var(--ff-btn-bg); color: var(--ff-btn-fg); border-color: var(--ff-rule-strong); box-shadow: 2px 2px 0 0 var(--ff-shadow); }
.ff-stage__controls--below .ff-stage__ctl[aria-pressed="true"] { background: var(--ff-rig-tooth); color: var(--ff-ink); }
.ff-stage__controls--below .ff-stage__ctl:focus-visible { outline-color: var(--ff-focus); box-shadow: none; }
.ff-stage__note--below { position: static; margin: 10px 0 0 auto; }

/* Props, bursts and overlays (pointer-events none: they never block a tap) */
.ff-prop { position: absolute; }
.ff-prop svg { width: 100%; height: auto; overflow: visible; }
.ff-bit { position: absolute; width: 24px; height: 24px; }
.ff-bit svg { width: 100%; height: 100%; overflow: visible; }
.ff-bit--confetti { width: 8px; height: 13px; border: 1.5px solid var(--ff-rig-ink); border-radius: 1px; }
.ff-overlay { position: absolute; inset: 0; }
.ff-overlay--spotlight {
  background: rgba(11, 10, 16, 0.6);
  -webkit-mask: radial-gradient(ellipse 30% 56% at calc(50% + var(--home-x) * 100%) 60%, transparent 97%, #000 100%);
  mask: radial-gradient(ellipse 30% 56% at calc(50% + var(--home-x) * 100%) 60%, transparent 97%, #000 100%);
}
.ff-overlay--static {
  background-image: url("/img/static.svg");
  background-size: 180px 180px;
  opacity: 0.86;
  animation: ff-static 400ms steps(8) both;
}
.ff-overlay--static.is-still { animation: none; opacity: 0.5; }
@keyframes ff-static { from { background-position: 0 0; } to { background-position: 540px 380px; } }
.ff-prop--tarp {
  right: 0;
  bottom: 12%;
  width: 26%;
  aspect-ratio: 1;
  background: var(--ff-tarp);
  border: 3px solid var(--ff-rig-ink);
  border-radius: 0 0 0 70%;
  transform-origin: 100% 0;
  animation: ff-tarp-lift 1.2s var(--ff-ease-out) both;
}
@keyframes ff-tarp-lift { 0%, 100% { rotate: 0deg; } 30%, 70% { rotate: -22deg; } }
.ff-stage__sticker {
  position: absolute;
  z-index: 2;
  top: 16%;
  left: var(--sx, auto);
  right: var(--sr, auto);
  rotate: 0deg;
}

/* ---------------------------------------------------------------- theater */
/* A small stage with curtains and a valance, for skits. */
.ff-theater { --actor-h: 62%; --floor-y: 15%; --bubble-max: 190px; aspect-ratio: 4 / 5; border: 2px solid var(--ff-rig-ink); }
.ff-theater__floor {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 15%;
  background: var(--ff-stage-floor);
  border-top: 2.5px solid var(--ff-rig-ink);
}
.ff-theater__curtain { position: absolute; z-index: 1; top: 0; height: 100%; width: 21%; color: var(--ff-curtain); }
.ff-theater__curtain--l { left: 0; }
.ff-theater__curtain--r { right: 0; scale: -1 1; }
.ff-theater__valance { position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 15%; color: var(--ff-curtain); }
.ff-theater .ff-stage__controls { top: auto; bottom: 8px; right: 8px; }
.ff-curtain-shade { fill: var(--ff-curtain-shade); }
.ff-curtain-fold { fill: none; stroke: var(--ff-curtain-shade); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ff-curtain-tie, .ff-valance-trim { fill: var(--ff-valance); }
.ff-art-sign { fill: var(--ff-sign); }
.ff-art-wood { fill: var(--ff-wood); }

/* ----------------------------------------------------- empty, error, loading */
.ff-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 4px 14px;
  padding: 16px;
  background: var(--ff-surface);
  border: 2px dashed var(--ff-rule-strong);
}
.ff-state__art { grid-row: span 3; width: 52px; height: 52px; color: var(--ff-text); }
.ff-state__title { font-family: var(--ff-font-body); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.ff-state__text { font-size: var(--ff-t-callout-size); line-height: var(--ff-t-callout-leading); color: var(--ff-text-muted); text-wrap: pretty; }
.ff-state__actions { margin-top: 8px; }
.ff-state--error { border-style: solid; border-color: var(--ff-error); box-shadow: 4px 4px 0 0 var(--ff-error); }
.ff-state--error .ff-state__art { color: var(--ff-error); }
.ff-skel {
  display: block;
  background: var(--ff-sunk);
  border-radius: 4px;
  animation: ff-skel 1.4s ease-in-out infinite alternate;
}
@keyframes ff-skel { from { opacity: 1; } to { opacity: 0.55; } }
.ff-skel--line { height: 1em; width: 9ch; }

/* -------------------------------------------------------- segmented control */
.ff-seg {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  border: 2px solid var(--ff-rule-strong);
  border-radius: 10px;
  background: var(--ff-surface);
}
.ff-seg button {
  min-height: 44px;
  min-width: 64px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ff-text);
  font-weight: 600;
  font-size: 0.875rem;
  -webkit-tap-highlight-color: transparent;
}
.ff-seg button[aria-pressed="true"] { background: var(--ff-text); color: var(--ff-ground); }
.ff-seg button:active { scale: 0.96; }

/* ----------------------------------------------------------------- toast */
.ff-toast {
  position: fixed;
  z-index: var(--ff-z-toast);
  left: 50%;
  bottom: calc(var(--ff-tabbar-h) + var(--ff-safe-bottom) + 14px);
  translate: -50% 20px;
  opacity: 0;
  padding: 10px 16px;
  background: var(--ff-inverse-ground);
  color: var(--ff-inverse-text);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  pointer-events: none;
  transition: opacity 180ms ease, translate 260ms var(--ff-ease-out);
}
.ff-toast.is-on { opacity: 1; translate: -50% 0; }

/* ----------------------------------------------------------- scroll reveal */
html.has-reveal [data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 520ms var(--ff-ease-out), translate 640ms var(--ff-ease-out);
}
html.has-reveal [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---------------------------------------------------------------- footer */
.ff-footer {
  border-top: 2px solid var(--ff-rule-strong);
  padding-top: 32px;
  padding-bottom: 40px;
}
.ff-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.ff-footer__links li:last-child { grid-column: 1 / -1; }
@media (min-width: 768px) { .ff-footer__links { display: flex; flex-wrap: wrap; gap: 0 22px; } }
.ff-footer__links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }

/* ----------------------------------------------------- Windows high contrast */
@media (forced-colors: active) {
  .ff-btn, .ff-stage__ctl, .ff-card, .ff-sticker { border: 2px solid CanvasText; }
  .ff-tab[aria-current="page"] { outline: 2px solid CanvasText; }
}
