/* forfree.gg funnel pages v1.0 (2026-10-29). ForFree Show LLC, SITE design.
   The Worker-rendered pages: the door, the presentation, the free entry, the receipt, the test checkout and
   the short message pages. Needs tokens.css and components.css first. Phone first (390 x 844, then 430 x 932),
   then adapted up. Every page renders with no JavaScript: sheets fall back to inline sections, tabs to stacked
   panels, and the primary action sits in a sticky bottom bar that needs no script.

   Colour rule (D-2026-10-28-65): lime marks the one primary action in each view and nothing else; orange counts
   and marks; violet is Freebie's voice and the link underline. Shape rule: cards square with hard shadows,
   controls round to 8 px, stickers die-cut, sheets round their top corners. Nothing blurs, nothing glows. */

/* ------------------------------------------------------------------ shell */
.ff-funnel {
  padding-top: calc(var(--ff-bar-h) + var(--ff-safe-top));
}
@media (min-width: 900px) {
  .ff-funnel { padding-top: calc(64px + var(--ff-safe-top)); }
}
.ff-funnel .ff-topbar { justify-content: center; }
.ff-fbar__label { display: none; }
@media (min-width: 900px) {
  .ff-funnel .ff-topbar { justify-content: space-between; }
  .ff-fbar__label { display: inline-flex; align-items: center; min-height: 44px; color: var(--ff-text-muted); }
}

.ff-fmain { padding-bottom: 8px; }
.ff-fmain > * + * { margin-top: 0; }
.ff-measure-wide { max-width: 760px; }

/* The large title block */
.ff-fhead { display: grid; gap: 10px; padding-top: 22px; padding-bottom: 6px; }
.ff-fhead .ff-sticker { justify-self: start; margin: 4px 0 6px 4px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }
.ff-fhead__title { text-wrap: balance; overflow-wrap: anywhere; }
.ff-fhead__lede { color: var(--ff-text-muted); max-width: 36ch; }
.ff-fhead__lede strong { color: var(--ff-text); font-weight: 700; }
.ff-fhead .ff-display { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); }

/* Sections whose headings carry the argument */
.ff-fsec { padding-top: 44px; }
.ff-fsec__title { margin-bottom: 14px; overflow-wrap: anywhere; }
.ff-fsec__lead { color: var(--ff-text-muted); max-width: 46ch; margin-top: -4px; margin-bottom: 16px; }
.ff-sub { font-family: var(--ff-font-display); font-weight: 400; font-size: var(--ff-t-title2-size); line-height: var(--ff-t-title2-leading); letter-spacing: var(--ff-t-title2-tracking); margin: 28px 0 12px; }
@media (min-width: 768px) { .ff-fsec { padding-top: 64px; } }

/* Freebie's AI line, near the top of every page he speaks on */
.ff-disclose {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: var(--ff-t-footnote-size);
  line-height: var(--ff-t-footnote-leading);
  color: var(--ff-text-muted);
  max-width: 52ch;
}
.ff-disclose svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--ff-voice); }

/* ------------------------------------------------------------- notices */
.ff-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--ff-surface);
  border: 2px solid var(--ff-rule-strong);
  box-shadow: var(--ff-shadow-hard-m);
  font-size: var(--ff-t-callout-size);
  line-height: var(--ff-t-callout-leading);
}
.ff-notice > svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.ff-notice strong { font-weight: 700; }
.ff-notice--ok > svg { color: var(--ff-ok); }
.ff-notice--ok { box-shadow: 4px 4px 0 0 var(--ff-ok); }
/* The test notice: caution tape, so nobody mistakes a test page for a live offer */
.ff-notice--test {
  position: relative;
  padding: 18px 12px 10px;
  font-size: var(--ff-t-footnote-size);
  line-height: var(--ff-t-footnote-leading);
  border-color: var(--ff-rig-ink);
  box-shadow: 4px 4px 0 0 var(--ff-rig-ink);
}
.ff-notice--test::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: -2px;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--ff-rig-tooth) 0 10px, var(--ff-rig-ink) 10px 20px);
  border-bottom: 2px solid var(--ff-rig-ink);
}
.ff-notice--test > svg { color: var(--ff-accent-text); }

/* ---------------------------------------------------- the door and scenes */
/* A world panel with a door, Freebie peeking in, and one speech bubble */
.ff-scene {
  --ray-x: 74%;
  --ray-y: 62%;
  position: relative;
  height: clamp(184px, 50vw, 236px);
  margin-top: 18px;
  border: 2px solid var(--ff-rig-ink);
  box-shadow: var(--ff-shadow-hard-l);
}
.ff-scene__floor {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14%;
  background: var(--ff-stage-floor);
  border-top: 2.5px solid var(--ff-rig-ink);
}
/* The set: the open door, with Freebie standing in it (feet on the floor line, under the lintel) */
.ff-scene__set { position: absolute; z-index: 1; right: 5%; bottom: 7.6%; height: 86%; aspect-ratio: 160 / 190; }
.ff-scene__door { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ff-scene__freebie {
  position: absolute;
  z-index: 2;
  left: 54%;
  bottom: 3%;
  height: 84%;
  width: auto;
  max-width: none;
  translate: -50% 0;
  pointer-events: none;
}
.ff-scene .ff-scene__say { position: absolute; z-index: 3; left: 4%; right: 49%; top: 11%; }
@media (min-width: 430px) { .ff-scene .ff-scene__say { right: 50%; } }
@media (min-width: 768px) {
  .ff-scene { height: 260px; }
  .ff-scene__set { right: 12%; }
  .ff-scene .ff-scene__say { left: 6%; right: auto; max-width: 300px; top: 16%; }
}

/* Speech: Freebie's voice. Paper on every ground, ink edge, a hand-cut tail. */
.ff-say {
  position: relative;
  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);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.28;
  text-wrap: balance;
}
.ff-say::before, .ff-say::after { content: ""; position: absolute; border-style: solid; border-color: transparent; }
/* tail on the right side, pointing at Freebie */
.ff-say--right::before { left: 100%; top: 58%; border-width: 8px 0 8px 13px; border-left-color: var(--ff-rig-ink); }
.ff-say--right::after { left: calc(100% - 3px); top: calc(58% + 3px); border-width: 5px 0 5px 9px; border-left-color: var(--ff-bubble-bg); }
/* tail under the bubble, on the left, pointing down at the form */
.ff-say--down::before { left: 22px; top: 100%; border-width: 13px 9px 0 9px; border-top-color: var(--ff-rig-ink); }
.ff-say--down::after { left: 25px; top: calc(100% - 1px); border-width: 9px 6px 0 6px; border-top-color: var(--ff-bubble-bg); }

/* ------------------------------------------------------------------ forms */
.ff-form { margin-top: 8px; }
.ff-step { margin-top: 30px; padding-top: 14px; border-top: 2px solid var(--ff-rule-strong); }
.ff-step:first-of-type { margin-top: 22px; }
.ff-step__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ff-step__title { font-family: var(--ff-font-display); font-weight: 400; font-size: var(--ff-t-title2-size); line-height: var(--ff-t-title2-leading); }
.ff-step__count { color: var(--ff-accent-text); }
.ff-step__note { margin-top: 6px; color: var(--ff-text-muted); font-size: var(--ff-t-callout-size); max-width: 46ch; }

.ff-field { margin-top: 18px; }
.ff-field > label, .ff-legend {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  padding: 0;
}
.ff-input, .ff-select, .ff-textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  font: inherit;
  font-size: max(1rem, 16px);
  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 2px 2px 0 0 var(--ff-sunk);
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow var(--ff-dur-release) var(--ff-ease-out);
}
.ff-textarea { min-height: 6.5rem; resize: vertical; }
.ff-select {
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 15px) 52%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}
.ff-input::placeholder, .ff-textarea::placeholder { color: var(--ff-text-faint); opacity: 1; }
.ff-input:focus-visible, .ff-select:focus-visible, .ff-textarea:focus-visible {
  outline: 3px solid var(--ff-focus);
  outline-offset: 2px;
  box-shadow: 3px 3px 0 0 var(--ff-cta-shadow);
}
.ff-input[aria-invalid="true"], .ff-select[aria-invalid="true"], .ff-textarea[aria-invalid="true"] { border-color: var(--ff-error); box-shadow: 3px 3px 0 0 var(--ff-error); }
.ff-hint { margin-top: 6px; color: var(--ff-text-muted); font-size: var(--ff-t-footnote-size); line-height: var(--ff-t-footnote-leading); max-width: 52ch; }
/* Errors: an icon plus words, never colour alone (WCAG 1.4.1) */
.ff-error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
  color: var(--ff-error);
  font-weight: 600;
  font-size: var(--ff-t-callout-size);
  line-height: 1.4;
}
.ff-error::before {
  content: "!";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ff-error);
  color: var(--ff-ground);
  font-family: var(--ff-font-display);
  font-size: 0.75rem;
  line-height: 1;
}
.ff-error:empty { display: none; }
.ff-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Checkboxes and radio pills: the whole row is the target, with press feedback */
.ff-checks { margin-top: 22px; display: grid; gap: 4px; }
.ff-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 48px;
  padding: 11px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ff-check:active { background: var(--ff-sunk); }
.ff-check input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--ff-text);
  cursor: pointer;
}
.ff-fieldset { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
.ff-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.ff-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px 0 12px;
  background: var(--ff-surface);
  border: 2px solid var(--ff-rule-strong);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: translate var(--ff-dur-release) var(--ff-ease-back);
}
.ff-choice:active { translate: 1px 1px; background: var(--ff-sunk); }
.ff-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--ff-text); }
.ff-choice:has(input:checked) { box-shadow: 3px 3px 0 0 var(--ff-tab-mark); }

/* --------------------------------------------------------- the action bar */
/* The one primary action, low in the thumb zone, on the bar material, inside the bottom safe area. It is
   sticky, so it needs no script; it spans the screen on phones and sits in the flow on wide screens. */
.ff-actionbar {
  position: sticky;
  z-index: var(--ff-z-bar);
  bottom: 0;
  margin: 26px calc(-1 * var(--ff-gutter-r)) 0 calc(-1 * var(--ff-gutter-l));
  padding: 12px var(--ff-gutter-r) calc(12px + var(--ff-safe-bottom)) var(--ff-gutter-l);
  background: var(--ff-bar-bg);
  border-top: 1.5px solid var(--ff-bar-rule);
  display: grid;
  gap: 8px;
}
.ff-actionbar .ff-btn { width: 100%; }
.ff-actionbar__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: var(--ff-t-callout-size); line-height: 1.35; }
.ff-actionbar__status { font-size: var(--ff-t-callout-size); line-height: 1.4; color: var(--ff-text-muted); font-weight: 600; }
.ff-actionbar__status:empty { display: none; }
.ff-actionbar__status[data-tone="error"] { color: var(--ff-error); }
@media (min-width: 768px) {
  .ff-actionbar {
    position: static;
    margin: 28px 0 0;
    padding: 16px 0 0;
    background: none;
    border-top: 2px solid var(--ff-rule-strong);
  }
  .ff-actionbar .ff-btn { width: auto; min-width: 260px; justify-self: start; }
}
/* Pages whose action ends the page: the bar sits at the bottom of the first screen when content is short */
.ff-fill { min-height: calc(100dvh - var(--ff-bar-h) - var(--ff-safe-top)); display: flex; flex-direction: column; }
.ff-fill > .ff-actionbar { margin-top: auto; }
.ff-fill > .ff-fill__spacer { flex: 1 0 24px; }

/* Forms and short pages read in one column on wide screens */
@media (min-width: 768px) {
  .ff-page-door .ff-fmain, .ff-page-enter .ff-fmain, .ff-page-checkout .ff-fmain, .ff-page-message .ff-fmain {
    max-width: calc(760px + 2 * var(--ff-margin-wide));
  }
}

.ff-textlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.ff-textlinks .ff-btn--text { padding: 0 2px; }

/* ----------------------------------------------------------------- cards */
.ff-panel { padding: 16px; }
.ff-panel > * + * { margin-top: 10px; }
.ff-facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.ff-facts li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1.5px solid var(--ff-rule); font-size: var(--ff-t-callout-size); line-height: var(--ff-t-callout-leading); }
.ff-facts li > svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ff-accent); }
.ff-facts a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.ff-facts .is-state { font-weight: 700; }

/* ------------------------------------------------------------ the spot */
/* The spec spot in a 9:16 frame on Freebie's world. With preload="none" the video paints nothing until it
   plays, so the frame's own background is the poster: Freebie, looking at the headline. */
.ff-spot { margin-top: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 10px 18px; justify-items: start; }
.ff-spot--wait { grid-template-columns: minmax(0, 1fr); }
.ff-spot__frame {
  position: relative;
  width: min(56vw, calc(min(40dvh, 440px) * 9 / 16));
  aspect-ratio: 9 / 16;
  border: 2px solid var(--ff-rig-ink);
  box-shadow: 6px 6px 0 0 var(--ff-cta-shadow);
  background: var(--ff-rig-ink);
  overflow: hidden;
  rotate: -1deg;
}
.ff-spot__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--ff-rig-ink); }
/* The poster: Freebie on his world, looking up at the headline, and one round play button (script only; without
   script the native player shows). Pressing play is the first micro-yes, and sound comes on with that tap. */
.ff-spot__frame .ff-spot__poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ff-spot__poster .ff-world__rays { --ray-x: 50%; --ray-y: 38%; }
.ff-spot__poster > img { position: absolute; left: 2%; bottom: -5%; width: 96%; height: auto; }
.ff-spot__play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 13%;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  transition: scale var(--ff-dur-release) var(--ff-ease-back);
}
.ff-spot__play svg {
  width: 68px;
  height: 68px;
  padding: 18px 16px 18px 22px;
  background: var(--ff-paper-hi);
  color: var(--ff-rig-ink);
  border: 3px solid var(--ff-rig-ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 0 var(--ff-rig-ink);
}
.ff-spot__play span {
  padding: 4px 9px 3px;
  background: var(--ff-paper-hi);
  color: var(--ff-rig-ink);
  border: 2px solid var(--ff-rig-ink);
  border-radius: 6px;
  font-family: var(--ff-font-mono);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  rotate: -3deg;
}
.ff-spot__poster:active .ff-spot__play { scale: 0.92; transition-duration: var(--ff-dur-press); }
.ff-spot__poster:focus-visible { outline: 3px solid var(--ff-paper); outline-offset: -6px; }
.ff-spot__frame.ff-world {
  background-color: var(--ff-world);
  background-image: radial-gradient(circle, var(--ff-world-dot) 1.3px, transparent 1.6px);
  background-size: 9px 9px;
}
.ff-spot__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.ff-spot__tag { position: absolute; z-index: 2; left: 10px; top: 12px; }
.ff-spot__label { font-size: var(--ff-t-footnote-size); line-height: var(--ff-t-footnote-leading); color: var(--ff-text-muted); max-width: 46ch; }
/* Not cut yet: the studio card */
.ff-spot--wait .ff-spot__frame { --ray-x: 62%; --ray-y: 40%; aspect-ratio: 4 / 3; width: 100%; max-width: 420px; rotate: 0deg; }
.ff-spot--wait .ff-spot__still { position: absolute; inset: auto -4% -40% auto; width: auto; height: 120%; object-fit: initial; }
.ff-spot__note { position: absolute; z-index: 2; left: 12px; right: 44%; bottom: 14px; }

/* ------------------------------------------------------ Freebie's lines */
.ff-lines { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px 12px; margin-top: 22px; align-items: start; }
.ff-lines > :not(.ff-lines__face) { grid-column: 2; }
.ff-lines__face { grid-column: 1; grid-row: 1 / span 2; width: 52px; height: 52px; border: 2.5px solid var(--ff-rig-ink); border-radius: 50%; background: var(--ff-world); box-shadow: 2px 2px 0 0 var(--ff-rig-ink); overflow: hidden; }
.ff-lines__face img { width: 100%; height: 100%; object-fit: cover; scale: 1.18; translate: 0 6%; }
.ff-lines__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-items: start; }
.ff-lines__list .ff-say { font-size: 1rem; line-height: 1.32; text-wrap: pretty; }
.ff-lines__list li:nth-child(odd) .ff-say { rotate: -0.6deg; }
.ff-lines__list li:nth-child(even) .ff-say { rotate: 0.5deg; }
.ff-lines__list li:first-child .ff-say { border-top-left-radius: 4px; }
.ff-lines__who { align-self: end; margin-top: 4px; }
.ff-lines audio { grid-column: 2; width: 100%; max-width: 360px; }

/* ------------------------------------------------------- deliverables */
.ff-numlist { list-style: none; margin: 0; padding: 0; counter-reset: ff-n; }
.ff-numlist > li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 14px 0 16px;
  border-top: 2px solid var(--ff-rule-strong);
  counter-increment: ff-n;
}
.ff-numlist > li:last-child { border-bottom: 2px solid var(--ff-rule-strong); }
.ff-numlist > li::before {
  content: counter(ff-n);
  grid-row: span 2;
  font-family: var(--ff-font-display);
  font-size: 2.5rem;
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: var(--ff-accent);
}
.ff-numlist__title { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.ff-numlist__text { font-size: var(--ff-t-callout-size); line-height: var(--ff-t-callout-leading); color: var(--ff-text-muted); max-width: 52ch; text-wrap: pretty; }

/* The product, on the shelf: a taped photo and the brand's own sentence */
.ff-onshelf { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px 16px; align-items: start; padding: 16px; margin-bottom: 22px; }
.ff-onshelf--noimg { grid-template-columns: minmax(0, 1fr); }
.ff-onshelf__photo { position: relative; margin: 6px 0 0 2px; padding: 6px 6px 18px; background: var(--ff-paper-hi); border: 2px solid var(--ff-rig-ink); box-shadow: 3px 3px 0 0 var(--ff-rig-ink); rotate: -3deg; }
.ff-onshelf__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--ff-paper-lo); }
.ff-onshelf__photo .ff-tape { width: 54px; height: 18px; }
.ff-onshelf__body { display: grid; gap: 6px; min-width: 0; }
.ff-onshelf__title { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; overflow-wrap: anywhere; }
.ff-onshelf__from { color: var(--ff-text-muted); font-size: var(--ff-t-footnote-size); }
.ff-onshelf__quote { position: relative; margin-top: 4px; padding-left: 12px; border-left: 3px solid var(--ff-accent); font-size: var(--ff-t-callout-size); line-height: var(--ff-t-callout-leading); overflow-wrap: anywhere; }
.ff-onshelf__link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--ff-t-callout-size); }

/* ------------------------------------------------------------------ tabs */
.ff-tabs { margin-top: 8px; }
.ff-tabs__list {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 2px solid var(--ff-rule-strong);
  border-radius: 10px;
  background: var(--ff-surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.ff-tabs__list::-webkit-scrollbar { display: none; }
.ff-tabs__list button {
  flex: 1 0 auto;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ff-text);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: scale var(--ff-dur-release) var(--ff-ease-back);
}
.ff-tabs__list button[aria-selected="true"] { background: var(--ff-text); color: var(--ff-ground); }
.ff-tabs__list button:active { scale: 0.96; transition-duration: var(--ff-dur-press); }
.ff-tabs__panel { margin-top: 14px; padding: 16px; }
.ff-tabs__ptitle { font-weight: 700; font-size: 1.0625rem; margin-bottom: 10px; }
html.js .ff-tabs__ptitle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:not(.js) .ff-tabs__list { display: none; }
html:not(.js) .ff-tabs__panel[hidden] { display: block !important; }

.ff-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ff-ticks li { position: relative; padding-left: 28px; font-size: var(--ff-t-callout-size); line-height: var(--ff-t-callout-leading); text-wrap: pretty; }
.ff-ticks li > svg { position: absolute; left: 0; top: 0.16em; width: 18px; height: 18px; color: var(--ff-accent); }

/* A receipt slip, torn along the bottom */
.ff-slip {
  position: relative;
  padding: 16px 16px 26px;
  background: var(--ff-paper-hi);
  color: var(--ff-ink);
  border: 2px solid var(--ff-rig-ink);
  border-bottom: 0;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 10px repeat-x;
}
.ff-slip .ff-label { color: var(--ff-ink-70); }
.ff-slip .ff-stamp { position: absolute; right: 12px; top: 12px; font-size: 0.875rem; color: var(--ff-orange-text); }

/* The calendar: real slots only */
.ff-cal { list-style: none; margin: 0; padding: 0; display: grid; }
.ff-cal li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 11px 0; border-top: 1.5px solid var(--ff-rule); }
.ff-cal li:first-child { border-top: 0; padding-top: 0; }
.ff-cal__date { font-weight: 700; }
.ff-cal__seg { grid-column: 1; font-size: var(--ff-t-footnote-size); color: var(--ff-text-muted); }
.ff-cal .ff-status { grid-column: 2; grid-row: 1 / span 2; rotate: 0deg; }
.ff-cal li[data-state="booked"] .ff-cal__date, .ff-cal li[data-state="held"] .ff-cal__date { color: var(--ff-text-muted); }
.ff-cal li[data-state="booked"] .ff-status, .ff-cal li[data-state="held"] .ff-status { color: var(--ff-text-faint); }
.ff-cal li[data-state="yours"] .ff-status { color: var(--ff-ok); }
.ff-cal__note { margin-top: 12px; font-size: var(--ff-t-footnote-size); color: var(--ff-text-muted); }

/* ----------------------------------------------------- your night: ticket */
.ff-night .ff-ticket__main { min-height: 104px; }
.ff-night .ff-ticket__stub { min-width: 96px; }
.ff-night__line { margin-top: 12px; font-size: var(--ff-t-callout-size); color: var(--ff-text-muted); max-width: 46ch; }
.ff-night .ff-state { margin-top: 0; }

/* ------------------------------------------------------- the price block */
/* Full width on phones, so its bar spans the screen; a card on wider screens. The make-good sits beside the
   price in the same type size as the price line, never in a footnote (16 CFR 239.3(b)). */
.ff-price {
  margin: 0 calc(-1 * var(--ff-gutter-r)) 0 calc(-1 * var(--ff-gutter-l));
  padding: 18px var(--ff-gutter-r) 0 var(--ff-gutter-l);
  background: var(--ff-surface);
  border-top: 2px solid var(--ff-rule-strong);
  border-bottom: 2px solid var(--ff-rule-strong);
}
.ff-price > .ff-actionbar { margin-top: 18px; }
.ff-price__line, .ff-price__mg, .ff-price__total {
  font-size: var(--ff-t-lead-size);
  line-height: var(--ff-t-lead-leading);
}
.ff-price__line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ff-rule); }
.ff-price__amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ff-price__mgtitle { margin-top: 14px; font-weight: 700; font-size: var(--ff-t-lead-size); line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.ff-price__mgtitle svg { width: 22px; height: 22px; color: var(--ff-ok); flex: none; }
.ff-price__mg { margin-top: 4px; text-wrap: pretty; }
.ff-price__tax { margin-top: 12px; font-size: var(--ff-t-callout-size); line-height: var(--ff-t-callout-leading); }
.ff-price__timing { margin-top: 6px; font-size: var(--ff-t-callout-size); line-height: var(--ff-t-callout-leading); color: var(--ff-text-muted); }
.ff-price__want { margin-top: 22px; }
.ff-price__hunt { margin-top: 10px; padding: 12px 14px 14px; border: 2px dashed var(--ff-rule-strong); background: var(--ff-ground); }
.ff-price__hunt .ff-check { margin: 0 -6px; padding-left: 6px; padding-right: 6px; font-weight: 700; }
.ff-price__huntline { margin-top: 4px; font-size: var(--ff-t-footnote-size); line-height: var(--ff-t-footnote-leading); color: var(--ff-text-muted); text-wrap: pretty; }
.ff-price__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ff-price__total strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.ff-price__short { font-size: var(--ff-t-footnote-size); line-height: 1.4; color: var(--ff-text-muted); }
.ff-price__after { padding: 14px 0 18px; display: grid; gap: 6px; }
.ff-price__free { font-weight: 700; }
.ff-price__exit { font-size: var(--ff-t-callout-size); color: var(--ff-text-muted); }
.ff-price__closed { margin-top: 16px; }
@media (min-width: 768px) {
  .ff-price {
    margin: 0;
    padding: 22px 24px 0;
    border: 2px solid var(--ff-rule-strong);
    box-shadow: var(--ff-shadow-hard-l);
  }
  .ff-price > .ff-actionbar { margin: 22px 0 0; padding: 18px 0 0; border-top: 2px solid var(--ff-rule-strong); }
  .ff-price__after { padding-bottom: 24px; }
}

/* ------------------------------------------------- for whoever signs off */
.ff-case { padding: 18px 16px 18px; }
.ff-case__para { font-size: var(--ff-t-body-size); line-height: 1.55; text-wrap: pretty; }
.ff-case__para + .ff-case__para { margin-top: 10px; }
.ff-case__tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ff-case__facts { margin: 18px 0 0; padding: 0; display: grid; }
.ff-case__facts > div { padding: 10px 0; border-top: 1.5px solid var(--ff-rule); }
.ff-case__facts dt { font-weight: 700; }
.ff-case__facts dd { margin: 2px 0 0; font-size: var(--ff-t-callout-size); line-height: var(--ff-t-callout-leading); color: var(--ff-text-muted); }
.ff-case__status { margin-top: 10px; font-size: var(--ff-t-callout-size); font-weight: 600; color: var(--ff-ok); }
.ff-case__status:empty { display: none; }

/* --------------------------------------------------- questions and answers */
.ff-qa { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ff-qa > li { padding: 14px 16px 16px; background: var(--ff-surface); border: 2px solid var(--ff-rule-strong); box-shadow: var(--ff-shadow-hard-m); display: grid; gap: 8px; }
.ff-qa > li[data-open-question] { border-style: dashed; box-shadow: none; }
.ff-qa__q { font-size: var(--ff-t-callout-size); line-height: var(--ff-t-callout-leading); overflow-wrap: anywhere; }
.ff-qa__who { display: flex; align-items: center; gap: 8px; 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-qa__a { padding-left: 12px; border-left: 3px solid var(--ff-voice); font-size: var(--ff-t-callout-size); line-height: var(--ff-t-callout-leading); overflow-wrap: anywhere; }
.ff-qa__wait { font-size: var(--ff-t-footnote-size); color: var(--ff-text-muted); }
.ff-qa audio { width: 100%; max-width: 360px; }
.ff-qa-empty { display: none; margin-top: 0; }
#qa-list:empty + .ff-qa-empty { display: grid; }
.ff-qa__tools { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.ff-qa__status:empty { display: none; }
.ff-qa__status { margin-top: 14px; }

/* ------------------------------------------------------- receipt ledger */
.ff-ledger { width: 100%; border-collapse: collapse; }
.ff-ledger th, .ff-ledger td { padding: 10px 0; border-top: 1.5px dashed var(--ff-ink-30); text-align: left; vertical-align: baseline; font-size: var(--ff-t-callout-size); line-height: 1.35; }
.ff-ledger tr:first-child th, .ff-ledger tr:first-child td { border-top: 0; }
.ff-ledger th { font-weight: 600; padding-right: 12px; overflow-wrap: anywhere; }
.ff-ledger td { text-align: right; font-family: var(--ff-font-mono); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ff-ledger__note { margin-top: 12px; font-size: var(--ff-t-footnote-size); color: var(--ff-ink-70); }
.ff-step-card { padding: 18px 16px 0; }
.ff-step-card__label { font-size: var(--ff-t-lead-size); line-height: var(--ff-t-lead-leading); font-weight: 700; text-wrap: pretty; }
.ff-step-card__by { margin-top: 8px; display: flex; gap: 8px; align-items: center; font-weight: 700; }
.ff-step-card__by svg { width: 20px; height: 20px; color: var(--ff-accent); flex: none; }
.ff-step-card > .ff-actionbar { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
@media (max-width: 767.98px) {
  .ff-step-card { margin: 0 calc(-1 * var(--ff-gutter-r)) 0 calc(-1 * var(--ff-gutter-l)); padding-left: var(--ff-gutter-l); padding-right: var(--ff-gutter-r); border-left: 0; border-right: 0; box-shadow: none; }
  .ff-step-card > .ff-actionbar { margin-left: calc(-1 * var(--ff-gutter-l)); margin-right: calc(-1 * var(--ff-gutter-r)); padding-left: var(--ff-gutter-l); padding-right: var(--ff-gutter-r); }
}
.ff-step-card__after { padding: 12px 0 18px; font-size: var(--ff-t-callout-size); color: var(--ff-text-muted); }

/* ------------------------------------------------------------ test checkout */
.ff-testbar {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--ff-rig-tooth);
  color: var(--ff-rig-ink);
  border: 2.5px solid var(--ff-rig-ink);
  box-shadow: 4px 4px 0 0 var(--ff-rig-ink);
  font-weight: 700;
  line-height: 1.4;
  position: relative;
}
.ff-testbar strong { font-family: var(--ff-font-display); font-weight: 400; font-size: 1.125rem; letter-spacing: 0.02em; display: block; margin-bottom: 4px; }
.ff-rows { width: 100%; border-collapse: collapse; margin-top: 18px; }
.ff-rows th, .ff-rows td { padding: 12px 0; border-top: 1.5px solid var(--ff-rule); text-align: left; vertical-align: top; font-size: var(--ff-t-callout-size); }
.ff-rows th { width: 42%; font-weight: 700; padding-right: 12px; }
.ff-rows tr:last-child th, .ff-rows tr:last-child td { border-bottom: 1.5px solid var(--ff-rule); }

/* ------------------------------------------------------------ results */
.ff-result { margin-top: 18px; padding: 18px 16px; display: grid; gap: 10px; }
.ff-result:focus { outline: none; }
.ff-result:focus-visible { outline: 3px solid var(--ff-focus); outline-offset: 3px; }
.ff-result .ff-stamp { justify-self: start; color: var(--ff-ok); font-size: 1.375rem; }
.ff-result ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.ff-result code { display: block; margin-top: 4px; padding: 10px 12px; background: var(--ff-sunk); border-radius: 6px; font-family: var(--ff-font-mono); font-size: 0.9375rem; overflow-wrap: anywhere; user-select: all; }

/* Prize value tags on the entry page */
.ff-prize { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: start; padding: 14px 16px 8px; }
.ff-prize__title { font-weight: 700; font-size: 1.1875rem; line-height: 1.25; overflow-wrap: anywhere; }
.ff-prize__meta { grid-column: 1; font-size: var(--ff-t-footnote-size); color: var(--ff-text-muted); }
.ff-prize > .ff-tag { grid-column: 2; grid-row: 1 / span 2; margin: 6px 4px 0 0; }
.ff-prize > .ff-facts { grid-column: 1 / -1; }
.ff-prizes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ff-prizes .ff-prize .ff-facts { margin-top: 4px; }

/* -------------------------------------------------------- message pages */
.ff-msg { padding-top: 22px; }
.ff-msg .ff-scene { margin-top: 0; }
.ff-msg__title { margin-top: 22px; }
.ff-msg__lines { margin-top: 10px; display: grid; gap: 8px; max-width: 44ch; }
.ff-msg__lines p { font-size: var(--ff-t-lead-size); line-height: var(--ff-t-lead-leading); color: var(--ff-text-muted); }
.ff-msg__ref { font-family: var(--ff-font-mono); font-size: 0.8125rem; color: var(--ff-text-faint); overflow-wrap: anywhere; }

/* --------------------------------------------------------------- footer */
.ff-ffoot { margin-top: 48px; padding-top: 22px; padding-bottom: calc(28px + var(--ff-safe-bottom)); border-top: 2px solid var(--ff-rule-strong); display: grid; gap: 12px; }
.ff-ffoot p { font-size: var(--ff-t-footnote-size); line-height: var(--ff-t-footnote-leading); color: var(--ff-text-muted); max-width: 56ch; }
.ff-ffoot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.ff-ffoot__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--ff-t-callout-size); }
.ff-ffoot__legal { font-family: var(--ff-font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ff-text-faint); }

/* ------------------------------------------------------ sheets, no script */
/* Without script a sheet is simply a section of the page: same content, same form, no dialog. */
html:not(.js) dialog.ff-sheet, html.ff-nosheets dialog.ff-sheet {
  display: block;
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  margin: 28px 0 0;
  overflow: visible;
  color: var(--ff-text);
}
html:not(.js) dialog.ff-sheet .ff-sheet__panel, html.ff-nosheets dialog.ff-sheet .ff-sheet__panel {
  position: static;
  transform: none;
  height: auto;
  max-height: none;
  width: auto;
  border: 2px solid var(--ff-rule-strong);
  border-radius: 0;
  box-shadow: var(--ff-shadow-hard-l);
  padding: 0;
}
html:not(.js) dialog.ff-sheet .ff-sheet__grabber, html.ff-nosheets dialog.ff-sheet .ff-sheet__grabber,
html:not(.js) dialog.ff-sheet [data-sheet-close], html.ff-nosheets dialog.ff-sheet [data-sheet-close] { display: none; }
html:not(.js) dialog.ff-sheet .ff-sheet__body, html.ff-nosheets dialog.ff-sheet .ff-sheet__body { overflow: visible; padding-bottom: 18px; }
.ff-sheet__body .ff-field:first-child { margin-top: 0; }
.ff-sheet__body .ff-actionbar { margin-top: 18px; }
.ff-sheet .ff-sheet__body > .ff-actionbar { position: static; margin-left: calc(-1 * var(--ff-margin)); margin-right: calc(-1 * var(--ff-margin)); padding-left: var(--ff-margin); padding-right: var(--ff-margin); }
@media (min-width: 768px) {
  .ff-sheet .ff-sheet__body > .ff-actionbar { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
.ff-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: ff-s; }
.ff-steps li { position: relative; padding-left: 40px; counter-increment: ff-s; font-size: var(--ff-t-callout-size); line-height: var(--ff-t-callout-leading); }
.ff-steps li::before {
  content: counter(ff-s);
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ff-rule-strong);
  border-radius: 50%;
  font-family: var(--ff-font-display);
  font-size: 0.875rem;
  color: var(--ff-accent-text);
}
.ff-steps strong { font-weight: 700; }

/* ------------------------------------------------- one onset, played once */
@media (prefers-reduced-motion: no-preference) {
  .ff-onset { animation: ff-onset 520ms var(--ff-ease-back) 160ms both; }
  @keyframes ff-onset { from { opacity: 0; translate: 0 10px; scale: 0.94; } to { opacity: 1; translate: 0 0; scale: 1; } }
}

/* ------------------------------------------------------------ wide screens */
@media (min-width: 900px) {
  .ff-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .ff-hero > .ff-hero__side { grid-column: 2; grid-row: 1 / span 3; }
  .ff-hero > .ff-hero__side .ff-spot__frame { width: min(100%, 360px); }
  .ff-hero > .ff-hero__side .ff-spot { grid-template-columns: minmax(0, 1fr); justify-items: end; }
  .ff-hero > :not(.ff-hero__side) { grid-column: 1; }
  .ff-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
}

/* ------------------------------------------------------------------ print */
@media print {
  .ff-topbar, .ff-actionbar, .ff-ffoot, dialog.ff-sheet, .ff-noprint, .ff-skip { display: none !important; }
  body { padding: 0 !important; background: #fff !important; color: #000 !important; }
  .ff-card, .ff-price { box-shadow: none !important; }
  html.is-printing-case main > :not(.ff-case-wrap) { display: none !important; }
  html.is-printing-case .ff-case-wrap { padding-top: 0; }
}

@media (forced-colors: active) {
  .ff-say, .ff-price, .ff-qa > li, .ff-slip, .ff-testbar { border: 2px solid CanvasText; }
}
