/*
 * Teen & tween design families (public/static/shared/teen-families.js). One poster per family,
 * drawn entirely in container units (cqi), so the same composition is a square theme card, the
 * invite's poster (4:5) and the opening's title card. Colors come from the JS as --f-* (each text
 * color already checked for AA against its paper). Motion is transform and opacity only, and
 * prefers-reduced-motion shows every final state, still.
 */

/* ---------------- the frame ---------------- */
.tf { --tf-ease: cubic-bezier(.16, 1, .3, 1); position: relative; display: block; width: 100%; overflow: hidden; isolation: isolate; container-type: inline-size; background: var(--f-paper); color: var(--f-ink);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; line-height: 1.1; text-align: left; -webkit-font-smoothing: antialiased; }
.tf[data-size="card"] { position: absolute; inset: 0; }
.tf[data-size="hero"] { aspect-ratio: 4 / 5; max-height: 86svh; min-height: 420px; }
.tf[data-size="op"] { aspect-ratio: 4 / 5; }
.tf-in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 6cqi; }
.tf :where(p, dl, dd, figure, ol) { margin: 0; padding: 0; }
.tf svg { overflow: visible; }
.tf .tf-name { overflow-wrap: normal; word-break: normal; hyphens: manual; } /* names never break mid-word: data-fit (shared/core.js BPP.fit) scales them to fit */
.tf [data-in] { position: relative; z-index: 2; }

/* tween stickers: shapes in the theme's colors, floating */
.tf-stk i { position: absolute; z-index: 4; width: 10cqi; height: 10cqi; rotate: var(--r, 0deg); filter: drop-shadow(0 .8cqi 0 rgba(0, 0, 0, .22)); }
.tf-stk .tf-shape { width: 100%; height: 100%; display: block; }
.tf-stk-0 { right: 5cqi; top: 22cqi; color: var(--f-glow); }
.tf-stk-1 { left: 3cqi; top: 46%; width: 7cqi !important; height: 7cqi !important; color: var(--f-glow2); }
.tf-stk-2 { right: 9cqi; bottom: 18cqi; width: 8cqi !important; height: 8cqi !important; color: var(--f-glow3); }
.tf[data-size="card"] .tf-stk { display: none; } /* a small card has no room: stickers would sit on the name */
.tf[data-flavor="luxe"] .tf-stk { display: none; }

/* ===================================== ARCADE HUD ===================================== */
.tf-hud { font-family: "Chakra Petch", "Space Grotesk", sans-serif; background: radial-gradient(90% 60% at 50% 20%, color-mix(in oklab, var(--f-glow2) 34%, transparent), transparent 70%), var(--f-paper); }
.tf-hud .tf-floor { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 46%; z-index: 0; transform: perspective(40cqi) rotateX(62deg); transform-origin: 50% 100%; overflow: hidden; opacity: .75;
  -webkit-mask: linear-gradient(transparent, #000 45%); mask: linear-gradient(transparent, #000 45%); }
.tf-hud .tf-floor::before { content: ""; position: absolute; inset: -20% 0 0; background: linear-gradient(var(--f-glow) 0 .5cqi, transparent .5cqi) 0 0 / 100% 8cqi, linear-gradient(90deg, var(--f-glow) 0 .5cqi, transparent .5cqi) 0 0 / 8cqi 100%; }
.tf-hud .tf-scan { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.tf-hud-top { display: flex; justify-content: space-between; gap: 2cqi; font-family: "Silkscreen", "Space Mono", monospace; font-size: 4.4cqi; letter-spacing: .04em; color: var(--f-ink); text-transform: uppercase; }
.tf-hud-top b { color: var(--f-hi); font-weight: 400; }
.tf-hud-mid { margin: auto 0; padding: 3cqi 0; }
.tf-hud .tf-k { font-family: "Silkscreen", monospace; font-size: 4.6cqi; color: var(--f-hi2); letter-spacing: .06em; }
.tf-hud .tf-name { margin-top: 1.5cqi; font-family: "Silkscreen", "Space Mono", monospace; font-weight: 700; text-transform: uppercase; line-height: .92; letter-spacing: -.02em;
  font-size: clamp(3cqi, calc(86cqi / (max(var(--wl), 3) * 1.08)), 23cqi); color: var(--f-ink); text-shadow: .9cqi .9cqi 0 var(--f-glow), 1.8cqi 1.8cqi 0 color-mix(in oklab, var(--f-glow2) 70%, transparent); }
.tf-lvl { display: flex; align-items: center; gap: 2.4cqi; margin-top: 3cqi; font-family: "Silkscreen", monospace; }
.tf-lvl > span:first-child { font-size: 5cqi; color: var(--f-mute); }
.tf-lvl b { font-weight: 700; font-size: 13cqi; line-height: .9; color: var(--f-hi); }
.tf-hp { display: flex; gap: 1.2cqi; margin-left: auto; }
.tf-heart { width: 5.4cqi; height: 5cqi; background: var(--f-glow); clip-path: polygon(0 20%, 20% 0, 40% 0, 50% 20%, 60% 0, 80% 0, 100% 20%, 100% 50%, 80% 70%, 60% 90%, 50% 100%, 40% 90%, 20% 70%, 0 50%); }
.tf-heart--off { background: color-mix(in oklab, var(--f-ink) 22%, transparent); }
.tf-hud-rows { display: grid; gap: 1.4cqi; padding: 3cqi; border: .6cqi solid color-mix(in oklab, var(--f-ink) 70%, transparent); background: color-mix(in oklab, var(--f-paper) 82%, transparent); }
.tf-hud-rows div { display: flex; justify-content: space-between; gap: 3cqi; }
.tf-hud-rows dt { font-family: "Silkscreen", monospace; font-size: 3.8cqi; color: var(--f-mute); }
.tf-hud-rows dd { font-weight: 700; font-size: 4.6cqi; text-align: right; text-transform: uppercase; color: var(--f-ink); }
.tf-hud-mode { font-family: "Silkscreen", monospace; font-size: 4cqi; color: var(--f-ink); text-transform: uppercase; }
.tf-press { margin-top: 3cqi !important; text-align: center; font-family: "Silkscreen", monospace; font-size: 5cqi; color: var(--f-hi); letter-spacing: .08em; }
.tf-hud[data-size="card"] .tf-press { display: none; }
/* arena (esports): an angled player card, chevrons, italic */
.tf-hud[data-skin="arena"] { background: linear-gradient(115deg, transparent 54%, color-mix(in oklab, var(--f-glow) 22%, transparent) 54% 62%, transparent 62%), radial-gradient(100% 70% at 0% 0%, var(--f-paper2), transparent 70%), var(--f-paper); }
.tf-hud[data-skin="arena"] .tf-floor, .tf-hud[data-skin="arena"] .tf-scan { display: none; }
.tf-hud .tf-chev { position: absolute; right: -10cqi; top: 18%; width: 52cqi; height: 52cqi; z-index: 0; opacity: .5;
  background: linear-gradient(135deg, transparent 0 30%, var(--f-glow2) 30% 38%, transparent 38% 48%, var(--f-glow) 48% 56%, transparent 56%); clip-path: polygon(0 0, 60% 50%, 0 100%, 30% 100%, 90% 50%, 30% 0); }
.tf-hud[data-skin="arena"] .tf-hud-mid { padding: 4cqi; background: color-mix(in oklab, var(--f-paper) 75%, transparent); clip-path: polygon(0 0, 92% 0, 100% 16%, 100% 100%, 8% 100%, 0 84%); border-left: 1.4cqi solid var(--f-glow); }
.tf-hud[data-skin="arena"] .tf-name { font-family: "Chakra Petch", sans-serif; font-style: italic; font-weight: 700; letter-spacing: -.01em; font-size: clamp(3cqi, calc(74cqi / (max(var(--wl), 3) * 0.66)), 25cqi); text-shadow: 1cqi 1cqi 0 var(--f-glow); }
.tf-hud[data-skin="arena"] .tf-k, .tf-hud[data-skin="arena"] .tf-hud-top { font-family: "Chakra Petch", sans-serif; font-weight: 700; letter-spacing: .2em; }
.tf-rank { display: flex; gap: 1cqi; }
.tf-rank i { width: 4cqi; height: 3cqi; background: var(--f-glow); clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 40%, 50% 100%, 0 40%); }
.tf-hud[data-skin="arena"] .tf-heart { clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); }
.tf-hud[data-flavor="tween"] .tf-scan { opacity: .4; }
.tf-hud[data-flavor="tween"] .tf-name { rotate: -2deg; }

/* ===================================== NEON SIGN ===================================== */
.tf-neon { text-align: center; }
.tf-neon .tf-in { align-items: center; justify-content: center; gap: 1cqi; }
.tf-neon .tf-brick { position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: linear-gradient(color-mix(in oklab, var(--f-paper) 60%, #000) 0 .6cqi, transparent .6cqi) 0 0 / 100% 7cqi,
    linear-gradient(90deg, color-mix(in oklab, var(--f-paper) 60%, #000) 0 .6cqi, transparent .6cqi) 0 0 / 14cqi 14cqi,
    linear-gradient(90deg, color-mix(in oklab, var(--f-paper) 60%, #000) 0 .6cqi, transparent .6cqi) 7cqi 7cqi / 14cqi 14cqi,
    var(--f-paper2); -webkit-mask: radial-gradient(80% 70% at 50% 45%, #000, transparent); mask: radial-gradient(80% 70% at 50% 45%, #000, transparent); }
.tf-neon .tf-haze { position: absolute; left: 0; right: 0; top: 18%; height: 56%; z-index: 0; background: radial-gradient(closest-side, color-mix(in oklab, var(--f-glow) 40%, transparent), transparent); opacity: .7; }
.tf-script { font-family: "Yellowtail", "Brush Script MT", cursive; font-size: 10cqi; line-height: 1; color: var(--f-hi2); rotate: -6deg; text-shadow: 0 0 1.6cqi var(--f-glow2); }
.tf-neon .tf-name { font-family: "Tilt Neon", "Space Grotesk", sans-serif; font-weight: 400; line-height: 1; max-width: 100%;
  font-size: clamp(3cqi, calc(88cqi / (max(var(--wl), 3) * 0.62)), 28cqi); color: var(--f-ink);
  text-shadow: 0 0 .6cqi #fff, 0 0 2cqi var(--f-glow), 0 0 5cqi var(--f-glow), 0 0 9cqi var(--f-glow); }
.tf-neon-row { display: flex; align-items: center; justify-content: center; gap: 3cqi; }
.tf-turns { font-family: "Yellowtail", cursive; font-size: 9cqi; color: var(--f-ink); text-shadow: 0 0 2cqi var(--f-glow2); }
.tf-ring { display: grid; place-items: center; width: 22cqi; height: 22cqi; border-radius: 50%; border: 1cqi solid var(--f-glow2); box-shadow: 0 0 2.4cqi var(--f-glow2), inset 0 0 2.4cqi var(--f-glow2); }
.tf-ring b { font-family: "Tilt Neon", sans-serif; font-weight: 400; font-size: 11cqi; line-height: 1; color: var(--f-ink); text-shadow: 0 0 2cqi var(--f-glow2); }
.tf-neon-what { font-family: "Tilt Neon", sans-serif; font-size: 5cqi; letter-spacing: .14em; color: var(--f-hi); text-shadow: 0 0 1.4cqi color-mix(in oklab, var(--f-glow) 60%, transparent); }
.tf-open { display: flex; align-items: center; gap: 2cqi; margin-top: 2cqi !important; font-family: "Space Mono", monospace; font-weight: 700; font-size: 4cqi; letter-spacing: .1em; color: var(--f-ink); }
.tf-open i { font-style: normal; padding: .6cqi 1.8cqi; border: .6cqi solid var(--f-hi); border-radius: 1.4cqi; color: var(--f-hi); box-shadow: 0 0 1.6cqi var(--f-glow); }
.tf-neon[data-size="card"] .tf-open span, .tf-neon[data-size="card"] .tf-script { display: none; }
.tf-neon[data-size="card"] .tf-ring { width: 18cqi; height: 18cqi; }
.tf-neon[data-flavor="tween"] .tf-ring { border-style: dashed; }

/* ===================================== ALBUM COVER ===================================== */
.tf-album { background: radial-gradient(90% 70% at 100% 0%, color-mix(in oklab, var(--f-glow2) 40%, transparent), transparent 70%), var(--f-paper2); }
.tf-sleeve { position: absolute !important; left: 6cqi; top: 6cqi; width: 76cqi; aspect-ratio: 1; z-index: 3 !important; overflow: hidden; background: var(--f-paper); box-shadow: 1.6cqi 2cqi 4cqi rgba(0, 0, 0, .45); container-type: inline-size; }
.tf-album[data-size="card"] .tf-sleeve { left: 7cqi; top: 7cqi; width: 70cqi; }
.tf-cover-art { position: absolute; inset: 0; display: grid; align-items: end; filter: saturate(1.25) contrast(1.05); }
.tf-cover-art svg { position: static !important; width: 190% !important; max-width: none; height: auto !important; margin-left: -45%; }
.tf-cover-tint { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in oklab, var(--f-paper) 94%, transparent) 0 50%, color-mix(in oklab, var(--f-paper) 35%, transparent) 78%, color-mix(in oklab, var(--f-paper) 70%, transparent)); }
.tf-album .tf-name { position: relative; z-index: 2; margin: 6cqi 6cqi 0; font-family: "Syne", "Space Grotesk", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: .86;
  font-size: clamp(3cqi, calc(84cqi / (max(var(--wl), 3) * 1.3)), 22cqi); color: var(--f-ink); }
.tf-atitle { position: relative; z-index: 2; margin: 3cqi 6cqi 0; font-family: "Space Mono", monospace; font-weight: 700; font-size: 4.6cqi; letter-spacing: .16em; color: var(--f-ink); }
.tf-vol { position: absolute !important; right: 5cqi; bottom: 4cqi; z-index: 2; display: flex; align-items: baseline; gap: 1.4cqi; font-family: "Syne", sans-serif; color: var(--f-ink); }
.tf-vol small { font-weight: 700; font-size: 5cqi; letter-spacing: .1em; }
.tf-vol b { font-weight: 800; font-size: 22cqi; line-height: .8; }
.tf-sticker { position: absolute !important; left: 5cqi; bottom: 5cqi; z-index: 3; display: grid; place-items: center; width: 22cqi; height: 22cqi; border-radius: 50%; background: var(--f-fill); color: var(--f-on-fill);
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 3.6cqi; line-height: 1.05; text-align: center; text-transform: uppercase; rotate: -14deg; box-shadow: 0 .6cqi 1.4cqi rgba(0, 0, 0, .35); }
.tf-vinyl { position: absolute; z-index: 1; top: 10cqi; left: 22cqi; width: 70cqi; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, transparent 0 15%, #111 15.5%), repeating-radial-gradient(circle, #0c0c0e 0 1cqi, #1d1d22 1.1cqi 1.3cqi); box-shadow: 0 1cqi 3cqi rgba(0, 0, 0, .5); transform: translateX(14cqi); }
.tf-album[data-size="card"] .tf-vinyl { top: 9cqi; left: 20cqi; width: 66cqi; }
.tf-vinyl .tf-label { position: absolute; inset: 34%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #111 0 9%, var(--f-glow) 10%); }
.tf-vinyl .tf-label b { font-family: "Syne", sans-serif; font-weight: 800; font-size: 4cqi; color: var(--f-on-glow); translate: 0 -5cqi; }
.tf-release { position: absolute !important; left: 6cqi; right: 6cqi; top: 87cqi; display: flex; justify-content: space-between; font-family: "Space Mono", monospace; font-weight: 700; font-size: 4cqi; letter-spacing: .1em; color: var(--f-ink); }
.tf-album .tf-release, .tf-album .tf-tracks { color: color-mix(in oklab, var(--f-ink) 100%, transparent); }
.tf-tracks { position: absolute !important; left: 6cqi; right: 6cqi; top: 95cqi; list-style: none; display: grid; gap: .6cqi; font-size: 3.9cqi; }
.tf-tracks li { display: grid; grid-template-columns: 7cqi 1fr auto; gap: 2cqi; padding: 1cqi 0; border-top: .3cqi solid color-mix(in oklab, var(--f-ink) 30%, transparent); }
.tf-tracks b { font-family: "Space Mono", monospace; }
.tf-tracks span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.tf-tracks em { font-style: normal; font-family: "Space Mono", monospace; }
/* the release line and tracklist sit on the backdrop: give them its own ink */
.tf-album { --f-back-ink: var(--f-ink); }

/* ===================================== JERSEY & SCOREBOARD ===================================== */
.tf-jersey .tf-in { align-items: center; }
.tf-jersey .tf-court { position: absolute; inset: 0; z-index: 0; opacity: .22;
  background: radial-gradient(circle at 50% 100%, transparent 0 22cqi, var(--f-ink) 22cqi 22.5cqi, transparent 22.6cqi), linear-gradient(90deg, transparent calc(50% - .25cqi), var(--f-ink) calc(50% - .25cqi) calc(50% + .25cqi), transparent calc(50% + .25cqi)),
    repeating-linear-gradient(90deg, transparent 0 10cqi, color-mix(in oklab, var(--f-ink) 30%, transparent) 10cqi 10.3cqi); }
.tf-shirt { width: 72cqi; margin-top: 1cqi; filter: drop-shadow(0 2cqi 3cqi rgba(0, 0, 0, .4)); }
.tf-jersey[data-size="card"] .tf-shirt { width: 66cqi; margin-top: 2cqi; }
.tf-shirt-svg { display: block; width: 100%; height: auto; }
.tf-shirt-body { fill: var(--f-glow); stroke: color-mix(in oklab, var(--f-glow) 60%, #000); stroke-width: 2; }
.tf-shirt-trim { stroke: var(--f-glow2); stroke-width: 7; }
.tf-shirt-stripe { stroke: var(--f-glow2); stroke-width: 8; }
.tf-arc { font-family: "Graduate", "Oswald", serif; font-size: 19px; letter-spacing: 2px; fill: var(--f-on-glow); }
.tf-num { font-family: "Graduate", "Oswald", serif; font-size: 88px; fill: var(--f-on-glow); stroke: var(--f-glow2); stroke-width: 3; paint-order: stroke; }
.tf-gameday { display: flex; justify-content: space-between; gap: 3cqi; width: 100%; margin-top: auto !important; padding-top: 2.4cqi; border-top: .5cqi solid color-mix(in oklab, var(--f-ink) 40%, transparent);
  font-family: "Oswald", "Space Grotesk", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 4.6cqi; letter-spacing: .06em; color: var(--f-ink); }
.tf-gameday span:last-child { color: var(--f-hi); text-align: right; }
.tf-jersey[data-size="card"] .tf-gameday span:first-child { display: none; }
.tf-board { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.4cqi 3cqi; width: 100%; margin: 4cqi 0 3cqi; padding: 3cqi 4cqi; background: #0d0d10; border: .6cqi solid color-mix(in oklab, var(--f-glow) 70%, #000); border-radius: 1.6cqi; font-family: "Oswald", sans-serif; }
.tf-team { font-size: 3.6cqi; letter-spacing: .2em; color: #c9c6bd; }
.tf-board-name { grid-row: span 1; font-weight: 700; font-size: clamp(3cqi, calc(46cqi / (max(var(--wl), 3) * .5)), 6.4cqi); line-height: 1.05; color: #fffbea; text-transform: uppercase; }
.tf-score { font-weight: 700; font-size: 9cqi; line-height: 1; color: #ffd54a; text-shadow: 0 0 1.6cqi rgba(255, 213, 74, .6); font-variant-numeric: tabular-nums; text-align: right; }
.tf-board .tf-team:nth-of-type(2) { grid-column: 1 / 3; }
.tf-score--q { color: #8be9ff; text-shadow: 0 0 1.6cqi rgba(139, 233, 255, .6); }
/* scoreboard (Game Night): LED dots, a round number, the tournament */
.tf-jersey[data-skin="scoreboard"] .tf-in { align-items: stretch; }
.tf-jersey .tf-dots { position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle, color-mix(in oklab, var(--f-glow) 35%, transparent) 0 .5cqi, transparent .6cqi) 0 0 / 3cqi 3cqi; opacity: .35; }
.tf-jersey[data-skin="scoreboard"] .tf-k { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 5cqi; letter-spacing: .3em; color: var(--f-hi2); }
.tf-jersey[data-skin="scoreboard"] .tf-name { margin-top: 2cqi; font-family: "Graduate", serif; text-transform: uppercase; line-height: .95; font-size: clamp(3cqi, calc(86cqi / (max(var(--wl), 3) * 0.82)), 20cqi); color: var(--f-ink); text-shadow: 0 0 2cqi color-mix(in oklab, var(--f-glow) 70%, transparent); }
.tf-round { display: flex; align-items: center; gap: 3cqi; margin-top: 3cqi; }
.tf-round span { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 5cqi; letter-spacing: .2em; color: var(--f-mute); }
.tf-round b { display: grid; place-items: center; min-width: 20cqi; padding: 1cqi 3cqi; background: #0d0d10; border-radius: 1.4cqi; font-family: "Oswald", sans-serif; font-size: 14cqi; line-height: 1.05; color: #ffd54a; text-shadow: 0 0 2cqi rgba(255, 213, 74, .6); }
.tf-jersey[data-skin="scoreboard"][data-size="card"] .tf-board { display: none; }
.tf-jersey[data-flavor="tween"] .tf-shirt { rotate: -4deg; }

/* ===================================== MISSION PATCH / CREST / BADGE ===================================== */
.tf-mission .tf-in { align-items: center; text-align: center; }
.tf-mission .tf-field { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 12% 18%, var(--f-ink) 0 .3cqi, transparent .5cqi), radial-gradient(circle at 78% 12%, var(--f-ink) 0 .4cqi, transparent .6cqi), radial-gradient(circle at 88% 64%, var(--f-ink) 0 .3cqi, transparent .5cqi),
    radial-gradient(circle at 22% 72%, var(--f-ink) 0 .25cqi, transparent .45cqi), radial-gradient(circle at 60% 88%, var(--f-ink) 0 .3cqi, transparent .5cqi), radial-gradient(circle at 40% 6%, var(--f-ink) 0 .2cqi, transparent .4cqi),
    radial-gradient(70% 50% at 50% 30%, color-mix(in oklab, var(--f-glow2) 28%, transparent), transparent 70%); opacity: .9; }
.tf-patch { position: relative; width: 62cqi; aspect-ratio: 1; flex: none; filter: drop-shadow(0 1.6cqi 2.4cqi rgba(0, 0, 0, .45)); }
.tf-mission[data-size="card"] .tf-patch { width: 58cqi; }
.tf-patch-art { position: absolute; inset: 19%; border-radius: 50%; overflow: hidden; display: grid; align-items: end; background: radial-gradient(circle at 50% 30%, var(--f-paper2), var(--f-paper)); }
.tf-patch-art svg { position: static !important; width: 230% !important; max-width: none; height: auto !important; margin-left: -65%; }
.tf-patch-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tf-patch-edge { fill: none; stroke: var(--f-fill); stroke-width: 34; }
.tf-patch-stitch { fill: none; stroke: var(--f-on-fill); stroke-width: 1.6; stroke-dasharray: 3 3; opacity: .8; }
.tf-patch-t, .tf-patch-b { font-size: 12.5px; font-family: "Michroma", "Space Grotesk", sans-serif; letter-spacing: 1.5px; fill: var(--f-on-fill); }
.tf-mission .tf-k { margin-top: 4cqi !important; font-family: "Space Mono", monospace; font-weight: 700; font-size: 3.8cqi; letter-spacing: .3em; color: var(--f-hi); }
.tf-mission .tf-name { margin-top: 1.4cqi; font-family: "Michroma", "Space Grotesk", sans-serif; text-transform: uppercase; line-height: 1.05; font-size: clamp(3cqi, calc(86cqi / (max(var(--wl), 3) * 1.1)), 15cqi); color: var(--f-ink); }
.tf-mission .tf-when { margin-top: auto !important; font-family: "Space Mono", monospace; font-weight: 700; font-size: 3.8cqi; letter-spacing: .1em; color: var(--f-ink); }
.tf-brief { width: 100%; margin-top: auto !important; display: grid; grid-template-columns: repeat(3, 1fr); border-top: .4cqi solid color-mix(in oklab, var(--f-ink) 35%, transparent); }
.tf-brief div { padding: 2.4cqi 1cqi 0; display: grid; gap: .8cqi; }
.tf-brief div + div { border-left: .4cqi solid color-mix(in oklab, var(--f-ink) 25%, transparent); }
.tf-brief dt { font-family: "Space Mono", monospace; font-size: 3cqi; letter-spacing: .16em; color: var(--f-mute); }
.tf-brief dd { font-family: "Michroma", sans-serif; font-size: 3.4cqi; line-height: 1.25; color: var(--f-ink); overflow-wrap: break-word; }
/* crest: a shield on a banner */
.tf-patch--crest .tf-patch-art { inset: 9% 10% 12%; border-radius: 0; clip-path: path("M0 0Z"); clip-path: polygon(50% 0, 100% 12%, 98% 46%, 88% 70%, 70% 88%, 50% 100%, 30% 88%, 12% 70%, 2% 46%, 0 12%); }
.tf-patch--crest .tf-patch-edge { stroke-width: 12; fill: none; }
.tf-patch--crest .tf-patch-stitch { stroke: var(--f-glow2); stroke-dasharray: none; stroke-width: 2.4; }
.tf-patch--crest .tf-patch-t, .tf-patch--crest .tf-patch-b { fill: var(--f-ink); paint-order: stroke; stroke: var(--f-paper); stroke-width: 4px; font-size: 11px; }
.tf-ribbon { position: absolute; left: -8%; right: -8%; bottom: 4%; z-index: 3; padding: 1.6cqi 4cqi; background: var(--f-fill); color: var(--f-on-fill); font-family: "Michroma", sans-serif; font-size: 4.4cqi; letter-spacing: .2em; text-align: center;
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); white-space: nowrap; overflow: hidden; }
.tf-mission[data-skin="crest"] { background: radial-gradient(80% 60% at 50% 20%, var(--f-paper2), transparent 70%), repeating-linear-gradient(45deg, transparent 0 4cqi, color-mix(in oklab, var(--f-ink) 4%, transparent) 4cqi 8cqi), var(--f-paper); }
.tf-mission[data-skin="crest"] .tf-field { display: none; }
.tf-mission[data-skin="crest"] .tf-name { font-family: "Bodoni Moda", Georgia, serif; font-style: italic; font-weight: 600; text-transform: none; font-size: clamp(3cqi, calc(84cqi / (max(var(--wl), 3) * 0.72)), 18cqi); }
/* badge: a merit badge on khaki canvas */
.tf-mission[data-skin="badge"] { background: repeating-linear-gradient(0deg, color-mix(in oklab, var(--f-ink) 5%, transparent) 0 .3cqi, transparent .3cqi 1.2cqi), repeating-linear-gradient(90deg, color-mix(in oklab, var(--f-ink) 4%, transparent) 0 .3cqi, transparent .3cqi 1.2cqi), var(--f-paper); }
.tf-mission[data-skin="badge"] .tf-field { display: none; }
.tf-patch--badge .tf-patch-art { background: var(--f-paper2); }
.tf-patch--badge { filter: drop-shadow(0 1cqi 1cqi rgba(0, 0, 0, .25)); }

/* ===================================== CASE FILE / BLUEPRINT / VHS ===================================== */
.tf-file[data-skin="case"] { background: radial-gradient(90% 80% at 30% 20%, color-mix(in oklab, var(--f-glow) 30%, #2a2018), #15100c); }
.tf-folder { display: flex; flex-direction: column; position: absolute !important; left: 5cqi; right: 5cqi; top: 10cqi; bottom: 5cqi; padding: 7cqi 6cqi 5cqi; background: var(--f-paper); border-radius: 0 1.6cqi 1.6cqi 1.6cqi; box-shadow: 0 2cqi 4cqi rgba(0, 0, 0, .5); color: var(--f-ink); font-family: "Special Elite", "Courier New", monospace; }
.tf-tab { position: absolute; left: 0; top: -6.4cqi; height: 6.6cqi; padding: 0 5cqi; display: flex; align-items: center; background: var(--f-paper); border-radius: 1.6cqi 1.6cqi 0 0; font-size: 3.6cqi; letter-spacing: .08em; color: var(--f-ink); }
.tf-photo { position: absolute !important; right: 5cqi; top: 5cqi; width: 30cqi; aspect-ratio: 4 / 5; padding: 1.4cqi 1.4cqi 4cqi; background: #fbfaf5; rotate: 4deg; box-shadow: 0 1cqi 2cqi rgba(0, 0, 0, .3); z-index: 3 !important; }
.tf-photo-art { position: relative; width: 100%; height: 100%; overflow: hidden; display: grid; align-items: end; background: color-mix(in oklab, var(--f-glow) 30%, #222); filter: grayscale(.85) contrast(1.15) sepia(.2); }
.tf-photo-art svg { position: static !important; width: 300% !important; max-width: none; height: auto !important; margin-left: -100%; }
.tf-clip { position: absolute; left: 36%; top: -3cqi; width: 5cqi; height: 12cqi; border: .7cqi solid #9aa0a6; border-radius: 3cqi; }
.tf-file .tf-k { font-size: 3.6cqi; letter-spacing: .2em; color: var(--f-mute); }
.tf-file[data-skin="case"] .tf-name { max-width: 58%; margin-top: 1cqi; font-family: "Special Elite", monospace; text-transform: uppercase; line-height: .95; font-size: clamp(3cqi, calc(44cqi / (max(var(--wl), 3) * 0.66)), 15cqi); color: var(--f-ink); }
.tf-typed { margin-top: 4cqi !important; display: grid; gap: 1.6cqi; font-size: 4cqi; }
.tf-typed div { display: grid; grid-template-columns: 22cqi 1fr; gap: 2cqi; padding-bottom: 1cqi; border-bottom: .3cqi dashed color-mix(in oklab, var(--f-ink) 35%, transparent); }
.tf-typed dt { color: var(--f-mute); font-size: 3.4cqi; letter-spacing: .1em; padding-top: .4cqi; }
.tf-typed dd { color: var(--f-ink); overflow-wrap: break-word; }
.tf-stamp { position: absolute !important; right: 5cqi; bottom: 6cqi; padding: 1.4cqi 3cqi; border: .9cqi solid var(--f-stamp); border-radius: 1cqi; color: var(--f-stamp); font-family: "Special Elite", monospace; font-size: 5.4cqi; letter-spacing: .1em; rotate: -12deg; opacity: .92; }
.tf-file[data-size="card"] .tf-folder { padding-top: 6cqi; }
.tf-file[data-skin="case"][data-size="hero"] .tf-name, .tf-file[data-skin="case"][data-size="op"] .tf-name { font-size: clamp(3cqi, calc(44cqi / (max(var(--wl), 3) * 0.66)), 16cqi); }
.tf-file[data-skin="case"][data-size="hero"] .tf-photo, .tf-file[data-skin="case"][data-size="op"] .tf-photo { width: 34cqi; }
.tf-file[data-skin="case"][data-size="hero"] .tf-typed, .tf-file[data-skin="case"][data-size="op"] .tf-typed { margin-top: auto !important; margin-bottom: 18cqi !important; font-size: 4.8cqi; gap: 3cqi; }
.tf-file[data-size="card"] .tf-stamp { font-size: 4.4cqi; bottom: 5cqi; }
/* blueprint */
.tf-file[data-skin="blueprint"] { font-family: "Space Mono", monospace; }
.tf-file .tf-grid { position: absolute; inset: 0; z-index: 0; background: linear-gradient(color-mix(in oklab, var(--f-ink) 22%, transparent) 0 .25cqi, transparent .25cqi) 0 0 / 100% 20cqi, linear-gradient(90deg, color-mix(in oklab, var(--f-ink) 22%, transparent) 0 .25cqi, transparent .25cqi) 0 0 / 20cqi 100%,
    linear-gradient(color-mix(in oklab, var(--f-ink) 9%, transparent) 0 .2cqi, transparent .2cqi) 0 0 / 100% 4cqi, linear-gradient(90deg, color-mix(in oklab, var(--f-ink) 9%, transparent) 0 .2cqi, transparent .2cqi) 0 0 / 4cqi 100%; }
.tf-file[data-skin="blueprint"] .tf-k { font-family: "Space Mono", monospace; font-weight: 700; font-size: 3.6cqi; letter-spacing: .14em; color: var(--f-ink); }
.tf-dim { margin-top: 4cqi; }
.tf-file[data-skin="blueprint"] .tf-name { font-family: "Space Mono", monospace; font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; font-size: clamp(3cqi, calc(86cqi / (max(var(--wl), 3) * 0.62)), 21cqi); color: transparent; -webkit-text-stroke: .4cqi var(--f-ink); }
@supports not (-webkit-text-stroke: 1px #000) { .tf-file[data-skin="blueprint"] .tf-name { color: var(--f-ink); } }
.tf-dim-line { position: relative; display: block; height: 6cqi; margin-top: 2cqi; border-left: .4cqi solid var(--f-ink); border-right: .4cqi solid var(--f-ink); }
.tf-dim-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: .4cqi solid var(--f-ink); }
.tf-dim-line b { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 0 2cqi; background: var(--f-paper); font-size: 3.6cqi; color: var(--f-ink); white-space: nowrap; }
.tf-bp-art { position: absolute !important; left: -10%; right: -10%; bottom: 18cqi; z-index: 1 !important; display: grid; align-items: end; opacity: .55; filter: grayscale(1) brightness(2.6) contrast(.6); mix-blend-mode: screen; }
.tf-bp-art svg { position: static !important; width: 100% !important; height: auto !important; }
.tf-block { position: absolute !important; right: 5cqi; bottom: 5cqi; z-index: 3 !important; display: grid; grid-template-columns: 1fr 1fr; width: 56cqi; border: .4cqi solid var(--f-ink); background: var(--f-paper); }
.tf-block div { padding: 1.2cqi 1.8cqi; border: .2cqi solid color-mix(in oklab, var(--f-ink) 55%, transparent); }
.tf-block dt { font-size: 2.6cqi; letter-spacing: .14em; color: var(--f-mute); }
.tf-block dd { font-weight: 700; font-size: 3.8cqi; color: var(--f-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-file[data-skin="blueprint"][data-size="card"] .tf-block div:nth-child(n + 3) { display: none; }
.tf-file[data-skin="blueprint"][data-size="card"] .tf-bp-art { bottom: 12cqi; }
/* vhs (sleepover horror-lite: a tape, never a monster) */
.tf-file[data-skin="vhs"] { background: radial-gradient(80% 60% at 50% 40%, color-mix(in oklab, var(--f-glow) 26%, transparent), transparent 70%), var(--f-paper); }
.tf-file[data-skin="vhs"] .tf-in { justify-content: space-between; }
.tf-track { position: absolute; left: 0; right: 0; top: 30%; height: 7cqi; z-index: 4; pointer-events: none; opacity: .3;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .7) 0 1cqi, transparent 1cqi 2.4cqi, rgba(255, 255, 255, .4) 2.4cqi 3cqi, transparent 3cqi 6cqi); mix-blend-mode: screen; }
.tf-osd { display: flex; justify-content: space-between; font-family: "VT323", "Space Mono", monospace; font-size: 8cqi; line-height: 1; color: var(--f-ink); text-shadow: .4cqi .4cqi 0 rgba(0, 0, 0, .6); text-transform: uppercase; }
.tf-osd--b { font-size: 7cqi; color: var(--f-hi); }
.tf-tape { position: relative; width: 100%; aspect-ratio: 1.75; padding: 5cqi 7cqi; background: linear-gradient(180deg, #1d1b22, #0f0e12); border-radius: 3cqi; box-shadow: 0 2cqi 4cqi rgba(0, 0, 0, .55), inset 0 0 0 .5cqi rgba(255, 255, 255, .06); }
.tf-reel { position: absolute; left: 20%; bottom: 10%; width: 15cqi; height: 15cqi; border-radius: 50%; background: repeating-conic-gradient(#d9d6e2 0 12deg, #3a3842 12deg 60deg); border: 1.4cqi solid #2a2830; }
.tf-reel--r { left: auto; right: 20%; }
.tf-tape .tf-label { position: relative; padding: 2.4cqi 3cqi 2cqi; background: linear-gradient(180deg, var(--f-glow) 0 2cqi, var(--f-glow2) 2cqi 3.6cqi, #f4ecd8 3.6cqi); border-radius: 1cqi; color: #1b1820; }
.tf-tape .tf-label small { display: block; margin-top: 1.4cqi; font-family: "Space Mono", monospace; font-weight: 700; font-size: 2.8cqi; letter-spacing: .18em; color: #4a4352; }
.tf-file[data-skin="vhs"] .tf-name { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; letter-spacing: .01em; line-height: .95; font-size: clamp(3cqi, calc(64cqi / (max(var(--wl), 3) * 0.5)), 14cqi); color: #1b1820; }
/* The name sits centered on the label with air above and below, never touching the small print. */
.tf-tape .tf-label { display: flex; flex-direction: column; }
.tf-tape .tf-label .tf-name { margin: auto 0; padding: 1.6cqi 0 1.2cqi; }
.tf-tape .tf-label span { display: block; font-family: "Space Mono", monospace; font-weight: 700; font-size: 2.8cqi; letter-spacing: .08em; color: #3d3646; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-rewind { text-align: center; font-family: "VT323", monospace; font-size: 6cqi; color: var(--f-mute); text-transform: uppercase; letter-spacing: .1em; }
.tf-file[data-skin="vhs"][data-size="card"] .tf-tape { aspect-ratio: 2.1; padding: 4cqi 6cqi; }
.tf-file[data-skin="vhs"][data-size="card"] .tf-reel { display: none; }

/* ===================================== COLLAGE: SOFT POLAROIDS / ZINE ===================================== */
.tf-collage[data-skin="soft"] .tf-in { justify-content: flex-end; }
.tf-collage .tf-paperdots { position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle, color-mix(in oklab, var(--f-ink) 12%, transparent) 0 .35cqi, transparent .45cqi) 0 0 / 5cqi 5cqi; }
.tf-pola { position: absolute !important; z-index: 1 !important; width: 46cqi; padding: 2.6cqi 2.6cqi 0; background: #fffdf8; box-shadow: 0 1.4cqi 3cqi rgba(30, 20, 40, .22); }
.tf-pola--a { right: 6cqi; top: 5cqi; rotate: 6deg; }
.tf-pola--b { left: 6cqi; top: 18cqi; width: 38cqi; rotate: -7deg; }
.tf-collage[data-size="card"] .tf-pola--a { width: 50cqi; right: 7cqi; top: 6cqi; }
.tf-pola-win { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: linear-gradient(180deg, var(--f-paper2), var(--f-glow)); }
.tf-pola-win svg { position: absolute !important; left: 50%; bottom: 0; height: 100% !important; width: auto !important; max-width: none; translate: -50% 0; }
.tf-pola--b .tf-pola-win svg { translate: -30% 0; }
.tf-pola figcaption { padding: 1.4cqi 0 2cqi; font-family: "Caveat", cursive; font-weight: 700; font-size: 5cqi; line-height: 1; color: #2b2530; }
.tf-washi { position: absolute; z-index: 2; width: 24cqi; height: 6cqi; opacity: .85; background: repeating-linear-gradient(45deg, var(--f-glow) 0 1.6cqi, color-mix(in oklab, var(--f-glow) 60%, #fff) 1.6cqi 3.2cqi); }
.tf-washi--a { right: 18cqi; top: 4cqi; rotate: -8deg; }
.tf-washi--b { left: 12cqi; top: 24cqi; rotate: 12deg; background: repeating-linear-gradient(90deg, var(--f-glow2) 0 2cqi, color-mix(in oklab, var(--f-glow2) 55%, #fff) 2cqi 4cqi); }
.tf-collage[data-skin="soft"][data-size="card"] .tf-washi--b { display: none; }
.tf-collage[data-skin="soft"] .tf-name { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 900; letter-spacing: -.03em; line-height: .9; font-size: clamp(3cqi, calc(86cqi / (max(var(--wl), 3) * 0.62)), 26cqi); color: var(--f-ink); }
.tf-hand { margin-top: 1cqi !important; font-family: "Caveat", cursive; font-weight: 700; font-size: 9cqi; line-height: 1; color: var(--f-hi); }
.tf-hand--sm { font-size: 6.4cqi; color: var(--f-ink); }
.tf-circled { position: relative; display: inline-block; padding: 0 1.4cqi; }
.tf-circled svg { position: absolute; left: -22%; top: -18%; width: 150%; height: 140%; fill: none; stroke: var(--f-glow2); stroke-width: 2.4; stroke-linecap: round; }
.tf-soft-what { margin-top: 2cqi !important; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 3.8cqi; letter-spacing: .18em; color: var(--f-mute); }
.tf-collage[data-size="card"] .tf-soft-what, .tf-collage[data-skin="soft"][data-size="card"] .tf-hand--sm { display: none; }
/* zine: xerox paper, a ransom-note name, a sticker burst */
.tf-collage[data-skin="zine"] .tf-in { justify-content: center; }
.tf-xerox { position: absolute; inset: 0; z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }
.tf-zine-art { position: absolute !important; right: -14%; bottom: -4%; width: 90%; z-index: 0 !important; opacity: .42; filter: grayscale(1) contrast(1.8); mix-blend-mode: multiply; }
.tf-zine-art svg { width: 100% !important; height: auto !important; position: static !important; }
.tf-mtape { position: absolute; z-index: 3; width: 20cqi; height: 6cqi; background: color-mix(in oklab, #f2e6b6 80%, transparent); box-shadow: 0 .3cqi .6cqi rgba(0, 0, 0, .12); }
.tf-collage .tf-mtape--a { left: -3cqi; top: 6cqi; rotate: -30deg; }
.tf-collage .tf-mtape--b { right: -3cqi; bottom: 9cqi; rotate: -24deg; }
.tf-collage[data-skin="zine"] .tf-k { font-family: "Space Mono", monospace; font-weight: 700; font-size: 3.8cqi; letter-spacing: .1em; color: var(--f-ink); text-transform: uppercase; }
.tf-ransom { display: flex; flex-wrap: wrap; gap: 1cqi .6cqi; margin-top: 3cqi; line-height: 1; font-size: clamp(3cqi, calc(84cqi / (max(var(--wl), 3) * 1.02)), 17cqi); }
.tf-ransom i { display: inline-block; font-style: normal; padding: .08em .14em .02em; rotate: var(--r, 0deg); box-shadow: .4cqi .6cqi 0 rgba(0, 0, 0, .18); }
.tf-ransom .tf-sp { box-shadow: none; width: .3em; }
.tf-r0 { background: #111; color: #fff; font-family: "Rubik Mono One", "Anton", sans-serif; }
.tf-r1 { background: var(--f-fill); color: var(--f-on-fill); font-family: "Anton", Impact, sans-serif; font-size: 1.12em; }
.tf-r2 { background: #fff; color: #111; font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 900; }
.tf-r3 { background: var(--f-glow2); color: var(--f-on-glow2); font-family: "Space Mono", monospace; font-weight: 700; }
.tf-r4 { background: transparent; color: #111; font-family: "Caveat", cursive; font-weight: 700; font-size: 1.2em; box-shadow: none !important; }
.tf-r5 { background: #fffbe6; color: var(--f-hi); font-family: "Rubik Mono One", sans-serif; outline: .4cqi dashed #111; }
.tf-burst { position: absolute !important; right: 5cqi; top: 5cqi; display: grid; place-items: center; width: 24cqi; height: 24cqi; background: var(--f-fill); color: var(--f-on-fill); rotate: 12deg;
  clip-path: polygon(50% 0, 61% 18%, 82% 10%, 80% 32%, 100% 40%, 85% 56%, 96% 76%, 74% 78%, 68% 100%, 50% 86%, 32% 100%, 26% 78%, 4% 76%, 15% 56%, 0 40%, 20% 32%, 18% 10%, 39% 18%); }
.tf-burst b { font-family: "Rubik Mono One", sans-serif; font-weight: 400; font-size: 6cqi; }
.tf-bar { align-self: flex-start; margin-top: 4cqi !important; padding: 1.4cqi 3cqi; background: #111; color: #fff; font-family: "Rubik Mono One", sans-serif; font-size: 3.8cqi; letter-spacing: .04em; rotate: -1.5deg; }
.tf-marker { margin-top: 2cqi !important; font-family: "Caveat", cursive; font-weight: 700; font-size: 7.4cqi; color: #111; }
.tf-collage[data-skin="zine"][data-size="card"] .tf-marker { display: none; }

/* ===================================== GALA: MARQUEE / IRIDESCENT ===================================== */
.tf-gala[data-skin="marquee"] .tf-in { align-items: center; text-align: center; }
.tf-gala[data-skin="marquee"]:not([data-size="card"]) .tf-in { justify-content: center; padding-bottom: 16cqi; }
.tf-gala .tf-curtain { position: absolute; inset: 0; z-index: 0;
  background: repeating-linear-gradient(90deg, color-mix(in oklab, var(--f-fill) 75%, #000) 0 2cqi, var(--f-fill) 2cqi 4.4cqi, color-mix(in oklab, var(--f-fill) 55%, #000) 4.4cqi 6cqi);
  -webkit-mask: linear-gradient(90deg, #000 0 11%, transparent 11% 89%, #000 89%); mask: linear-gradient(90deg, #000 0 11%, transparent 11% 89%, #000 89%); }
.tf-marquee { position: relative; width: 82cqi; margin-top: 3cqi; padding: 7cqi 5cqi 6cqi; background: radial-gradient(100% 80% at 50% 0%, var(--f-paper2), var(--f-paper)); border: .6cqi solid color-mix(in oklab, #ffe3a3 70%, transparent); border-radius: 2cqi; box-shadow: 0 0 6cqi color-mix(in oklab, #ffd98a 30%, transparent); }
.tf-gala[data-size="card"] .tf-marquee { width: 86cqi; margin-top: 4cqi; padding: 6cqi 4cqi 5cqi; }
.tf-bulbs { position: absolute; inset: 1.6cqi; pointer-events: none; }
.tf-bulbs::before, .tf-bulbs::after { content: ""; position: absolute; left: 0; right: 0; height: 2.6cqi; background: radial-gradient(circle, #fff6d6 0 32%, #ffcf5a 42%, transparent 62%) 0 0 / 5cqi 2.6cqi repeat-x; }
.tf-bulbs::before { top: 0; } .tf-bulbs::after { bottom: 0; }
.tf-bulbs--b::before, .tf-bulbs--b::after { left: auto; right: auto; top: 3cqi; bottom: 3cqi; width: 2.6cqi; height: auto; background: radial-gradient(circle, #fff6d6 0 32%, #ffcf5a 42%, transparent 62%) 0 0 / 2.6cqi 5cqi repeat-y; }
.tf-bulbs--b::before { left: 0; } .tf-bulbs--b::after { right: 0; }
.tf-gala .tf-k { font-family: "Space Mono", monospace; font-weight: 700; font-size: 3.6cqi; letter-spacing: .32em; color: var(--f-hi); text-transform: uppercase; }
.tf-gala[data-skin="marquee"] .tf-name { margin-top: 2cqi; font-family: "Limelight", "Bodoni Moda", serif; text-transform: uppercase; line-height: 1; letter-spacing: .02em; font-size: clamp(3cqi, calc(70cqi / (max(var(--wl), 3) * 0.84)), 19cqi); color: var(--f-ink); text-shadow: 0 0 2.4cqi color-mix(in oklab, #ffd98a 55%, transparent); }
.tf-roman { margin-top: 2cqi !important; font-family: "Bodoni Moda", Georgia, serif; font-style: italic; font-weight: 600; font-size: 10cqi; line-height: 1; color: var(--f-hi); }
.tf-roman span { font-size: .5em; font-weight: 400; color: var(--f-ink); }
.tf-letterboard { display: flex; flex-wrap: wrap; justify-content: center; gap: .8cqi; margin-top: 5cqi !important; padding: 2cqi; background: #141414; border-radius: 1cqi; max-width: 88cqi; }
.tf-letterboard i { display: grid; place-items: center; min-width: 4.6cqi; height: 6.4cqi; padding: 0 .4cqi; background: #f7f4ec; color: #141414; font-style: normal; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 4.4cqi; border-radius: .4cqi; }
.tf-letterboard .tf-lb-sp { min-width: 2.4cqi; background: transparent; }
.tf-gala[data-size="card"] .tf-letterboard { display: none; }
.tf-gala-what { margin-top: 3cqi !important; font-family: "Space Mono", monospace; font-weight: 700; font-size: 3.4cqi; letter-spacing: .14em; color: var(--f-mute); }
.tf-carpet { position: absolute; left: 30%; right: 30%; bottom: 0; height: 12cqi; z-index: 0; background: linear-gradient(180deg, color-mix(in oklab, var(--f-fill) 80%, #000), var(--f-fill)); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.tf-gala[data-size="card"] .tf-carpet { display: none; }
/* iridescent: a holographic cover, the age spelled out */
.tf-gala[data-skin="iris"] { background: var(--f-paper); }
.tf-gala[data-skin="iris"] .tf-in { justify-content: center; }
.tf-holo { position: absolute; inset: -40%; z-index: 0; background: conic-gradient(from 20deg, var(--f-glow), var(--f-glow2), #ffffff, var(--f-glow3), var(--f-glow), var(--f-glow2), var(--f-glow)); filter: blur(7cqi) saturate(1.3); opacity: .62; }
.tf-gala[data-skin="iris"]::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .25) 60%, rgba(255, 255, 255, .5)); }
.tf-sparkles svg { position: absolute; z-index: 1; width: 6cqi; height: 6cqi; color: #fff; filter: drop-shadow(0 0 1.2cqi rgba(255, 255, 255, .9)); }
.tf-sparkles path { fill: currentColor; }
.tf-sp0 { left: 10%; top: 12%; } .tf-sp1 { right: 12%; top: 22%; width: 9cqi !important; height: 9cqi !important; } .tf-sp2 { left: 70%; bottom: 14%; } .tf-sp3 { left: 18%; bottom: 30%; width: 4cqi !important; height: 4cqi !important; } .tf-sp4 { right: 30%; top: 8%; width: 3.6cqi !important; height: 3.6cqi !important; }
.tf-gala[data-skin="iris"] .tf-k { color: var(--f-hi); letter-spacing: .24em; font-weight: 400; }
.tf-gala[data-skin="iris"] .tf-name { position: relative; margin-top: 1cqi; font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 300; letter-spacing: -.035em; line-height: .9; font-size: clamp(3cqi, calc(86cqi / (max(var(--wl), 3) * 0.52)), 29cqi); color: var(--f-ink); }
.tf-words { margin-top: 1cqi !important; font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 600; font-size: 8.4cqi; line-height: 1; color: var(--f-hi); }
.tf-glass { display: flex; flex-wrap: wrap; gap: 1cqi 3cqi; margin-top: 5cqi; padding: 3cqi 4cqi; border-radius: 3cqi; background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 .3cqi rgba(255, 255, 255, .9), 0 1.6cqi 4cqi rgba(30, 20, 60, .12); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 3.8cqi; letter-spacing: .12em; color: var(--f-ink); text-transform: uppercase; }
.tf-glass span:first-child { flex-basis: 100%; color: var(--f-hi); }
.tf-iris-art { position: absolute; left: -10%; right: -10%; bottom: -2%; z-index: 0; opacity: .32; mix-blend-mode: soft-light; }
.tf-iris-art svg { width: 100% !important; height: auto !important; position: static !important; }
.tf-gala[data-skin="iris"][data-size="card"] .tf-glass span:nth-child(n + 2) { display: none; }
.tf-gala[data-skin="iris"][data-size="card"] .tf-glass { margin-top: 4cqi; padding: 2cqi 3cqi; }

/* ===================================== MOTION ===================================== */
@media (prefers-reduced-motion: no-preference) {
  .tf-hud .tf-floor::before { animation: tf-floor 1.6s linear infinite; }
  .tf-press { animation: tf-blink 1.1s steps(2, jump-none) infinite; }
  .tf-neon .tf-name { animation: tf-flicker 6s linear infinite; }
  .tf-neon .tf-haze { animation: tf-breathe 4s ease-in-out infinite alternate; }
  .tf-vinyl { animation: tf-spin 5s linear infinite; }
  .tf-track { animation: tf-track 3.4s steps(6) infinite; }
  .tf-reel { animation: tf-spin 3s linear infinite; }
  .tf-bulbs { animation: tf-chase 1s steps(1) infinite; }
  .tf-bulbs--b { animation-delay: -.5s; }
  .tf-holo { animation: tf-spin 40s linear infinite; }
  .tf-sparkles svg { animation: tf-twinkle 2.6s ease-in-out infinite; }
  .tf-sparkles .tf-sp1 { animation-delay: -.9s; } .tf-sparkles .tf-sp2 { animation-delay: -1.7s; } .tf-sparkles .tf-sp3 { animation-delay: -.4s; } .tf-sparkles .tf-sp4 { animation-delay: -2.1s; }
  .tf-stk i { animation: tf-float 3.2s ease-in-out infinite; }
  .tf-stk-1 { animation-delay: -1.1s !important; } .tf-stk-2 { animation-delay: -2s !important; }
  .tf-burst { animation: tf-wiggle 2.4s ease-in-out infinite; }
  .tf[data-flavor="luxe"] .tf-vinyl, .tf[data-flavor="luxe"] .tf-reel { animation-duration: 9s; }
  .tf[data-flavor="luxe"] .tf-neon .tf-name, .tf-neon[data-flavor="luxe"] .tf-name { animation: none; }
  /* the invite's poster: a staged entrance (the card thumbnails stay still: a grid of 47 never dances) */
  .tf[data-size="hero"] [data-in] { animation: tf-rise .9s var(--tf-ease) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
  .tf[data-size="hero"][data-flavor="tween"] [data-in] { animation-name: tf-pop; animation-duration: .7s; }
  .tf[data-size="hero"] .tf-vinyl { animation: tf-slide 1.2s .5s var(--tf-ease) both, tf-spin 5s 1.7s linear infinite; }
  .tf[data-size="hero"] .tf-circled path { stroke-dasharray: 200; animation: tf-draw 1.2s .7s var(--tf-ease) both; }
  .tf[data-size="card"] .tf-vinyl, .tf[data-size="card"] .tf-holo, .tf[data-size="card"] .tf-floor::before, .tf[data-size="card"] .tf-reel, .tf[data-size="card"] .tf-stk i, .tf[data-size="card"] .tf-burst, .tf[data-size="card"] .tf-neon .tf-name, .tf-neon[data-size="card"] .tf-name, .tf[data-size="card"] .tf-sparkles svg { animation: none; }
  .theme-card:hover .tf[data-size="card"] .tf-vinyl, .theme-card.on .tf[data-size="card"] .tf-vinyl { animation: tf-spin 5s linear infinite; }
  .theme-card.on .tf[data-size="card"] .tf-bulbs, .theme-card:hover .tf[data-size="card"] .tf-bulbs { animation-duration: .6s; }
  .tf[data-size="card"] .tf-bulbs { animation: none; }
  .theme-card.on .tf[data-size="card"] .tf-stk i, .theme-card:hover .tf[data-size="card"] .tf-stk i { animation: tf-float 3.2s ease-in-out infinite; }
}
@keyframes tf-floor { to { transform: translateY(8cqi); } }
@keyframes tf-blink { 50% { opacity: 0; } }
@keyframes tf-flicker { 0%, 18%, 20%, 22%, 62%, 64%, 100% { opacity: 1; } 19%, 21%, 63% { opacity: .55; } }
@keyframes tf-breathe { from { opacity: .45; } to { opacity: .8; } }
@keyframes tf-spin { to { transform: rotate(360deg); } }
@keyframes tf-slide { from { transform: translateX(-10cqi) rotate(-90deg); } to { transform: translateX(14cqi); } }
.tf[data-size="hero"] .tf-vinyl { transform: translateX(14cqi); }
@keyframes tf-track { 0% { transform: translateY(-40cqi); } 50% { transform: translateY(40cqi); } 100% { transform: translateY(90cqi); } }
@keyframes tf-chase { 50% { opacity: .35; } }
@keyframes tf-twinkle { 50% { transform: scale(.55) rotate(20deg); opacity: .5; } }
@keyframes tf-float { 50% { transform: translateY(-1.6cqi) rotate(6deg); } }
@keyframes tf-wiggle { 50% { transform: rotate(-6deg) scale(1.04); } }
@keyframes tf-rise { from { opacity: 0; transform: translateY(5cqi); } to { opacity: 1; transform: none; } }
@keyframes tf-pop { 0% { opacity: 0; transform: scale(.7) rotate(-4deg); } 70% { opacity: 1; transform: scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes tf-draw { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }

/* ===================================== WHERE IT LIVES ===================================== */
/* theme cards (the wizard, the finder): a square poster */
.theme-card .tc-art.tc-art--fam { position: relative; display: block; height: auto; aspect-ratio: 1; overflow: hidden; background: none; } /* (app.css loads after this file) */
.theme-card .tc-art.tc-art--fam svg, .theme-card.ds-alive .tc-art.tc-art--fam svg { scale: none; } /* moments.css zooms a card's scene; a poster stays put */
.theme-card .tc-fam { padding: 0 10px 10px; margin-top: -6px; font-family: "Space Mono", ui-monospace, monospace; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #5b5470); }

/* the teen invite: the family's poster replaces the duotone */
.tn-hero--fam { min-height: 0; padding: 0; margin: 0 -16px; display: block; }
.tn-hero--fam > .tf { border-radius: 0; }
.tn-hero--fam .tn-kicker { position: relative; margin: 14px 16px 0; }
.tn-hero--fam .tn-lede { margin: 14px 0 0; padding: 0 16px; }
.tn-hero--fam .tn-photo { top: auto; bottom: 64px; right: 14px; z-index: 7; width: clamp(84px, 24vw, 124px); }
.tn-hero--fam .tn-tape { margin: 0 -4px; }
.tn-hero--fam > .tf [data-in] { animation-play-state: running; }
.tn-hero--fam .tf[data-size="hero"] { max-height: none; }
@media (min-width: 640px) { .tn-hero--fam .tf[data-size="hero"] { aspect-ratio: 5 / 5; } }
.sr-only-fam { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the rest of the teen page wears the family's type */
.tn[data-family="hud"] { --tn-display: "Silkscreen", "Space Mono", monospace; }
.tn[data-family="neon"] { --tn-display: "Tilt Neon", "Space Grotesk", sans-serif; }
.tn[data-family="album"] { --tn-display: "Syne", "Space Grotesk", sans-serif; }
.tn[data-family="jersey"] { --tn-display: "Graduate", "Oswald", serif; }
.tn[data-family="mission"] { --tn-display: "Michroma", "Space Grotesk", sans-serif; }
.tn[data-family="file"] { --tn-display: "Special Elite", "Courier New", monospace; }
.tn[data-family="collage"] { --tn-display: "Fraunces", Georgia, serif; }
.tn[data-family="gala"] { --tn-display: "Limelight", "Bodoni Moda", serif; }
.tn[data-family="album"] h2, .tn[data-family="album"] .tn-cta { font-weight: 800 !important; }
.tn[data-family="mission"] .tn-card h2 { font-size: clamp(1.25rem, 6vw, 1.7rem); letter-spacing: .02em; }
.tn[data-family="hud"] .tn-card h2 { font-size: clamp(1.4rem, 7vw, 2rem); }
.tn[data-family="collage"] h2 { font-style: italic; font-weight: 900; text-transform: none; letter-spacing: -.02em; }

/* the tween invite: the poster sits where the playful hero was */
.hero.hero--fam { padding: 0; min-height: 0; background: none; margin: 0 -16px 6px; overflow: hidden; border-radius: 0 0 28px 28px; }
.hero--fam .tf[data-size="hero"] { max-height: none; }
@media (min-width: 640px) { .hero--fam .tf[data-size="hero"] { aspect-ratio: 1; border-radius: 0 0 28px 28px; } }
.hero--fam .lede { margin: 14px 16px 0; }

/* the opening's title card: the poster builds itself, part by part, then the button */
.opening.tf-op { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px 16px 20px; overflow-y: auto; }
.tf-op .tn-op-stage { position: relative; inset: auto; overflow: visible; display: block; padding: 0; }
.tf-op .tn-op-stage::after { display: none; }
.tf-op-frame { position: relative; z-index: 1; width: min(88vw, calc((100svh - 250px) * .8), 440px); min-width: 220px; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.tf-op-frame .tf[data-size="op"] [data-in] { opacity: 0; }
.op-run .tf-op-frame { animation: tf-op-frame 1s cubic-bezier(.16, 1, .3, 1) both; }
.op-run .tf-op-frame .tf[data-size="op"] [data-in] { animation: tf-rise .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--d, 0) * 420ms + 500ms); }
.op-run .tf-op-frame .tf[data-size="op"][data-flavor="tween"] [data-in] { animation-name: tf-pop; }
.op-final .tf-op-frame .tf[data-size="op"] [data-in] { opacity: 1; animation: none; }
.op-final .tf-op-frame { animation: none; }
@keyframes tf-op-frame { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.tf-op .op-card.tn-op-final { padding: 0 8px; background: none; backdrop-filter: none; max-width: 440px; }
.tf-op .tn-op-when { margin: 4px 0 12px; }

@media (prefers-reduced-motion: reduce) {
  .tf *, .tf *::before, .tf *::after { animation: none !important; transition: none !important; }
  .tf [data-in], .tf-op-frame .tf[data-size="op"] [data-in] { opacity: 1 !important; }
  .tf-op-frame { animation: none !important; }
}

/* a ransom word stays together: it wraps between words, never inside one */
.tf-rw { display: inline-flex; flex-wrap: nowrap; gap: .6cqi; margin-right: 1.4cqi; }

/* inside the older card art wrapper (BPPAgeMode.cardArt): no duotone overlay */
.tn-cardart--fam { background: none; }
.tn-cardart--fam::after { display: none; }
.hero-fam-photo { display: flex; justify-content: center; margin: -48px 0 0; position: relative; z-index: 3; }

/* the zine's sticker sheet: shapes in the theme's colors on a white backing, taped on (the poster only) */
.tf-sheet { position: absolute !important; left: 8cqi; right: 8cqi; bottom: 8cqi; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3cqi; padding: 4cqi; background: #fff; rotate: -3deg; box-shadow: .8cqi 1.2cqi 0 rgba(0, 0, 0, .18); z-index: 1 !important; }
.tf-sheet i { display: block; aspect-ratio: 1; rotate: var(--r, 0deg); filter: drop-shadow(0 .5cqi 0 rgba(0, 0, 0, .2)); }
.tf-sheet i:nth-child(4n + 1) { color: var(--f-glow); } .tf-sheet i:nth-child(4n + 2) { color: var(--f-glow2); } .tf-sheet i:nth-child(4n + 3) { color: var(--f-glow3); } .tf-sheet i:nth-child(4n) { color: #111; }
.tf-sheet .tf-shape { width: 100%; height: 100%; display: block; }
.tf-collage .tf-mtape--c { left: 38%; top: -2.6cqi; rotate: 4deg; }
.tf-collage[data-skin="zine"]:not([data-size="card"]) .tf-in { justify-content: flex-start; padding-top: 14cqi; }
.tf-collage[data-skin="zine"]:not([data-size="card"]) .tf-burst { top: auto; bottom: 54cqi; right: 6cqi; width: 24cqi; height: 24cqi; }
.tf-collage[data-skin="zine"]:not([data-size="card"]) .tf-ransom { font-size: clamp(3cqi, calc(84cqi / (max(var(--wl), 3) * 1.02)), 22cqi); }
.tf-album .tf-stk-2, .tf-collage[data-skin="zine"] .tf-stk { display: none; }
.tf-file[data-skin="case"][data-size="card"] .tf-typed { max-width: 58%; }
