/* App-style header for /game-rooms/{sport} (see the game-room-app-hero partial). Built on the app's room tokens: graphite
   ground, Bebas Neue, Barlow Condensed, Manrope, purple for labels, lime for accents only. Everything that moves animates
   transform or opacity only. Base styles are the loop's final frame, so reduced motion shows a complete room. */
.fdh { --ph-w: 306px; --fdh-loop: 18s; position: relative; overflow: hidden; padding: 112px 0 40px; background: var(--grp-room); color: var(--grp-text); }
.fdh::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(185, 138, 255, .1), rgba(185, 138, 255, 0) 46%); }
.fdh-bars { position: absolute; right: -6%; top: 50%; width: min(70vw, 900px); fill: #fff; opacity: .025; transform: translateY(-50%); pointer-events: none; }
.fdh-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.fdh-copy { position: relative; z-index: 2; min-width: 0; }

.fdh-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--grp-text); text-decoration: none; }
.fdh-brand:focus-visible, .fdh-web a:focus-visible, .fdh-badge:focus-visible { outline: 2px solid var(--grp-lime); outline-offset: 3px; }
.fdh-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #16161a; border: 1px solid var(--grp-line); }
.fdh-icon svg { width: 100%; height: 100%; }
.fdh-brand-text { display: grid; gap: 3px; }
.fdh-brand-text b { font: 400 28px/1 var(--grp-display); letter-spacing: .05em; text-transform: uppercase; }
.fdh-brand-text small { color: var(--grp-purple); font: 700 12px/1 var(--grp-cond); letter-spacing: .24em; text-transform: uppercase; }
.fdh-title { margin: 0 0 18px; max-width: 12.6em; color: #fff; font: 400 clamp(46px, 5.2vw, 84px)/.96 var(--grp-display); letter-spacing: .01em; text-transform: uppercase; }
.fdh-l { color: var(--grp-lime); white-space: nowrap; }
.fdh-p { color: var(--grp-purple); white-space: nowrap; }
.fdh-promise { max-width: 30em; margin: 0 0 16px; color: #d4d4d8; font: 500 clamp(16px, 1.3vw, 19px)/1.5 var(--grp-body); }
.fdh-powered { display: inline-block; margin: 0 0 22px; padding: 6px 12px; border: 1px solid var(--grp-line); border-radius: 999px; color: var(--grp-muted); font: 600 12px/1 var(--grp-cond); letter-spacing: .14em; text-transform: uppercase; }
.fdh-powered strong { color: var(--grp-purple); font-weight: 700; }
.fdh-get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.fdh-badge { display: block; line-height: 0; }
.fdh-badge img { height: 50px; width: auto; }
.fdh-soon { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; margin: 0; padding: 0 18px; border: 1px solid var(--grp-line); border-radius: 12px; background: var(--grp-surface); color: var(--grp-text); font: 700 15px/1.2 var(--grp-body); }
.fdh-soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grp-purple); flex: none; }
.fdh-web { margin: 0; color: var(--grp-muted); font: 500 14px/1.5 var(--grp-body); }
.fdh-web a { color: var(--grp-lime); font-weight: 700; text-decoration: none; }
.fdh-web a:hover { text-decoration: underline; }

/* ---------- phones ---------- */
.fdh-stage { min-width: 0; margin: 0; display: grid; justify-items: center; gap: 16px; }
.fdh-stage figcaption { max-width: 34em; color: var(--grp-muted); font: 500 12px/1.45 var(--grp-body); text-align: center; }
.fdh-phones { position: relative; width: var(--ph-w); height: calc(var(--ph-w) * 2.16); }
.fdh-phone { position: absolute; inset: 0; padding: 7px; border-radius: 44px; background: #09090b; border: 1px solid #3d3e44; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.fdh-phone--back { overflow: hidden; }
.fdh-phone--back img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 37px; filter: brightness(.62); }
.fdh-phone--left { transform: translateX(-62%) translateY(5%) rotate(-7deg) scale(.84); }
.fdh-phone--right { transform: translateX(62%) translateY(5%) rotate(7deg) scale(.84); }
@keyframes fdh-fan-left { from { opacity: 0; transform: translateY(5%) scale(.84); } }
@keyframes fdh-fan-right { from { opacity: 0; transform: translateY(5%) scale(.84); } }

/* The screen is sized in em, so it scales with the phone. 22em wide, about 47em tall. */
.fdh-screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 37px; background: #141416; font-size: calc(var(--ph-w) / 22.8); contain: layout paint; }
.fdh-island { align-self: center; flex: none; width: 6.4em; height: 1.5em; margin-top: .6em; border-radius: 1em; background: #000; }
.fdh-bar { display: grid; grid-template-columns: 1.3em minmax(0, 1fr) 1.3em 1.3em; gap: .7em; align-items: center; flex: none; padding: .6em 1.1em .3em; }
.fdh-bar svg { width: 1.3em; height: 1.3em; fill: none; stroke: #f4f4f5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fdh-bar b { overflow: hidden; color: #f4f4f5; font: 400 1.1em/1.2 var(--grp-display); letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.fdh-plate { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .3em; align-items: start; flex: none; padding: .2em .9em .9em; border-bottom: 1px solid #26272b; }
.fdh-team { display: grid; justify-items: center; gap: .35em; padding-top: .9em; min-width: 0; }
.fdh-team small { max-width: 100%; color: #f4f4f5; font: 700 .72em/1.15 var(--grp-cond); letter-spacing: .03em; text-align: center; }
.fdh-crest { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: .8em; background: linear-gradient(160deg, #1aa37a, #0b5d48); color: #f4f4f5; font: 400 1.02em/1 var(--grp-display); letter-spacing: .04em; }
.fdh-crest--away { background: linear-gradient(160deg, #2a8fd4, #0f4f80); }
.fdh-score { position: relative; display: grid; justify-items: center; gap: .3em; min-width: 7.5em; padding-bottom: 2em; }
.fdh-digits { display: flex; align-items: flex-start; gap: .2em; color: #fff; font: 400 3.6em/1 var(--grp-display); font-variant-numeric: tabular-nums; }
.fdh-digits em { color: #71717a; font-style: normal; }
.fdh-dig { display: block; height: 1em; overflow: hidden; }
.fdh-dig i { display: block; height: 1em; font-style: normal; }
.fdh-dig-col { display: block; transform: translateY(-1em); }
.fdh-digits--wide { font-size: 2.8em; }
.fdh--reactions .fdh-score { padding-bottom: .6em; }
.fdh-flash { position: absolute; left: 50%; top: 1.8em; width: 4.6em; height: 4.6em; margin: -2.3em 0 0 -2.3em; border-radius: 50%; border: .18em solid var(--grp-lime); opacity: 0; }
.fdh-live { display: inline-flex; align-items: center; gap: .35em; padding: .25em .7em; border: 1px solid #5d6b2a; border-radius: 1em; color: var(--grp-lime); font: 700 .78em/1.1 var(--grp-cond); letter-spacing: .12em; text-transform: uppercase; }
.fdh-live span { width: .5em; height: .5em; border-radius: 50%; background: var(--grp-lime); }
.fdh-review { position: absolute; bottom: 0; padding: .25em .75em; border: 1px solid #5d6b2a; border-radius: 1em; color: var(--grp-lime); font: 700 .74em/1.1 var(--grp-cond); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; opacity: 0; }

/* Feed. Items have fixed heights in em, so the track can step up by exact amounts, bottom-anchored like a chat. */
.fdh-feed { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.fdh-track { position: absolute; left: .9em; right: .9em; bottom: .5em; display: grid; gap: .7em; }
.fdh-item--note { display: grid; place-items: center; height: 2.2em; color: #71717a; font: 600 .78em/1 var(--grp-body); }
.fdh-item--a, .fdh-item--d, .fdh-item--chip, .fdh-item--line { height: 4.4em; }
.fdh-item--b { height: 4.9em; }
.fdh-item--c, .fdh-item--goal { height: 5em; }
.fdh-item--e { height: 10.6em; }
.fdh-item p { margin: 0; }
.fdh-who { display: flex; align-items: center; gap: .45em; height: 1.6em; margin-bottom: .2em !important; color: #d4d4d8; font: 600 .8em/1 var(--grp-body); }
.fdh-av { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #e879a8; color: #141416; font: 700 .72em/1 var(--grp-cond); }
.fdh-av--2 { background: #fb7185; }
.fdh-av--3 { background: #2dd4bf; }
.fdh-chip { display: inline-flex; align-items: center; gap: .45em; height: 2.3em; padding: 0 .9em; border: 1px solid #3d3e44; border-radius: 1.2em; background: #26272b; color: #f4f4f5; font: 700 .86em/1 var(--grp-body); }
.fdh-chip span { font-size: 1.3em; line-height: 1; }
.fdh-bubble { display: inline-block; max-width: 92%; padding: .55em .85em; border: 1px solid #3d3e44; border-radius: .9em; background: #26272b; color: #f4f4f5; font: 500 .86em/1.35 var(--grp-body); }
.fdh-goal { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7em; align-items: center; height: 100%; padding: 0 .85em; border: 1px solid #3d3e44; border-radius: 1.1em; background: #26272b; }
.fdh-min { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: .7em; background: #1b1b1e; color: #fff; font: 400 1.15em/1 var(--grp-display); }
.fdh-min--icon { font-size: 1.3em; line-height: 1; }
.fdh-goal b { display: block; color: #fff; font: 700 .98em/1.2 var(--grp-cond); letter-spacing: .03em; }
.fdh-goal small { color: #a1a1aa; font: 500 .74em/1.2 var(--grp-body); }
.fdh-status { position: relative; display: grid; font: 700 .66em/1 var(--grp-cond); letter-spacing: .12em; text-transform: uppercase; }
.fdh-status > span { grid-area: 1 / 1; padding: .45em .7em; border-radius: 1em; text-align: center; white-space: nowrap; }
.fdh-reported { background: #3a2f12; color: #fbbf24; opacity: 0; }
.fdh-verified { background: #143224; color: #86efac; }
.fdh-clip { position: relative; height: 100%; overflow: hidden; border: 1px solid #3d3e44; border-radius: 1.1em; background: #26272b; }
.fdh-clip img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.fdh-clip small { position: absolute; left: .7em; bottom: .6em; padding: .35em .6em; border-radius: .6em; background: rgba(20, 20, 22, .82); color: #f4f4f5; font: 700 .76em/1 var(--grp-cond); letter-spacing: .06em; }
.fdh-play { position: absolute; left: 50%; top: 50%; width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; border-radius: 50%; background: rgba(20, 20, 22, .72); }
.fdh-play::after { content: ''; position: absolute; left: 1.15em; top: .85em; border-style: solid; border-width: .65em 0 .65em 1.05em; border-color: transparent transparent transparent #fff; }

.fdh-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fdh-spark { position: absolute; bottom: 8em; left: var(--x); font-size: 1.5em; line-height: 1; opacity: 0; }
.fdh-spark--0 { --x: 12%; --dx: -.6em; --s: 1.2; }
.fdh-spark--1 { --x: 26%; --dx: .5em; --s: .9; }
.fdh-spark--2 { --x: 40%; --dx: -.3em; --s: 1.1; }
.fdh-spark--3 { --x: 54%; --dx: .6em; --s: .85; }
.fdh-spark--4 { --x: 66%; --dx: -.5em; --s: 1.2; }
.fdh-spark--5 { --x: 78%; --dx: .3em; --s: .95; }
.fdh-spark--6 { --x: 20%; --dx: .8em; --s: .8; }
.fdh-spark--7 { --x: 60%; --dx: -.8em; --s: 1; }

.fdh-rail { display: flex; align-items: center; gap: .45em; flex: none; padding: .35em .9em; }
.fdh-react { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: 50%; border: 1px solid #3d3e44; background: #26272b; font-size: 1em; line-height: 1; }
.fdh-fab { position: relative; display: grid; place-items: center; width: 4em; height: 4em; margin-left: auto; margin-top: -1.2em; border-radius: 50%; background: var(--grp-lime); color: #141a00; }
.fdh-fab b { font: 400 1.05em/1 var(--grp-display); letter-spacing: .06em; text-transform: uppercase; }
.fdh-fab-ring { position: absolute; inset: 0; border-radius: 50%; border: .15em solid var(--grp-lime); opacity: 0; }
.fdh-composer { flex: none; margin: .25em .9em 1.1em; padding: .7em 1em; border: 1px solid #3d3e44; border-radius: 1.4em; background: #26272b; color: #a1a1aa; font: 500 .84em/1.2 var(--grp-body); }

/* ---------- the loop ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fdh-phone--left { animation: fdh-fan-left .9s cubic-bezier(.2, .8, .2, 1) backwards; }
  .fdh-phone--right { animation: fdh-fan-right .9s cubic-bezier(.2, .8, .2, 1) backwards; }
  .fdh-track { animation: fdh-track var(--fdh-loop) cubic-bezier(.2, .8, .2, 1) infinite; will-change: transform; }
  .fdh-feed { animation: fdh-fade var(--fdh-loop) linear infinite; }
  .fdh-item--b { animation: fdh-in-b var(--fdh-loop) ease-out infinite; }
  .fdh-item--c { animation: fdh-in-c var(--fdh-loop) ease-out infinite; }
  .fdh-item--d { animation: fdh-in-d var(--fdh-loop) ease-out infinite; }
  .fdh-item--e { animation: fdh-in-e var(--fdh-loop) ease-out infinite; }
  .fdh-reported { animation: fdh-reported var(--fdh-loop) linear infinite; }
  .fdh-item--c .fdh-verified { animation: fdh-verified var(--fdh-loop) linear infinite; }
  .fdh-review { animation: fdh-review var(--fdh-loop) linear infinite; }
  .fdh-dig-col { animation: fdh-digit var(--fdh-loop) cubic-bezier(.3, 1.4, .5, 1) infinite; will-change: transform; }
  .fdh-flash { animation: fdh-flash var(--fdh-loop) ease-out infinite; }
  .fdh-live span { animation: fdh-blink 1.6s ease-in-out infinite; }
  .fdh-fab { animation: fdh-press var(--fdh-loop) ease-out infinite; }
  .fdh-fab-ring { animation: fdh-ring var(--fdh-loop) ease-out infinite; }
  .fdh-react--tap { animation: fdh-tap var(--fdh-loop) ease-out infinite; }
  .fdh-spark { animation: fdh-spark var(--fdh-loop) cubic-bezier(.2, .7, .3, 1) infinite; will-change: transform, opacity; }
  .fdh-spark--1 { animation-delay: .08s; }
  .fdh-spark--2 { animation-delay: .2s; }
  .fdh-spark--3 { animation-delay: .12s; }
  .fdh-spark--4 { animation-delay: .3s; }
  .fdh-spark--5 { animation-delay: .05s; }
  .fdh-spark--6 { animation-delay: .4s; }
  .fdh-spark--7 { animation-delay: .24s; }
  .fdh-clip img { animation: fdh-drift var(--fdh-loop) ease-in-out infinite; }
  .fdh--reactions .fdh-react--tap { animation-name: fdh-tap-moment; }
  .fdh--reactions .fdh-item--c .fdh-goal { animation: fdh-pop var(--fdh-loop) ease-out infinite; }
  .fdh.is-away *, .fdh.is-away *::before { animation-play-state: paused; }
}
@keyframes fdh-track {
  0%, 5% { transform: translateY(28em); }
  8%, 23% { transform: translateY(22.1em); }
  27%, 52% { transform: translateY(16.4em); }
  56%, 67% { transform: translateY(11.3em); }
  71%, 100% { transform: translateY(0); }
}
@keyframes fdh-fade { 0% { opacity: 0; } 2%, 96.5% { opacity: 1; } 99.5%, 100% { opacity: 0; } }
@keyframes fdh-in-b { 0%, 6% { opacity: 0; } 8.5%, 100% { opacity: 1; } }
@keyframes fdh-in-c { 0%, 24% { opacity: 0; transform: scale(.94); } 27.5%, 100% { opacity: 1; transform: none; } }
@keyframes fdh-in-d { 0%, 53% { opacity: 0; } 56%, 100% { opacity: 1; } }
@keyframes fdh-in-e { 0%, 67.5% { opacity: 0; } 71%, 100% { opacity: 1; } }
@keyframes fdh-reported { 0%, 44% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes fdh-verified { 0%, 44% { opacity: 0; transform: scale(.8); } 47%, 100% { opacity: 1; transform: none; } }
@keyframes fdh-review { 0%, 25% { opacity: 0; } 27%, 44% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes fdh-digit { 0%, 46% { transform: translateY(0); } 49%, 98% { transform: translateY(-1em); } 100% { transform: translateY(0); } }
@keyframes fdh-flash { 0%, 46% { opacity: 0; transform: scale(.5); } 47% { opacity: .9; transform: scale(.6); } 54%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes fdh-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes fdh-press { 0%, 21% { transform: none; } 22.5% { transform: scale(.86); } 24.5%, 100% { transform: none; } }
@keyframes fdh-ring { 0%, 14% { opacity: 0; transform: scale(1); } 15% { opacity: .9; transform: scale(1); } 20%, 100% { opacity: 0; transform: scale(1.45); } }
@keyframes fdh-tap { 0%, 57% { transform: none; } 58.5% { transform: scale(.82); } 60.5%, 100% { transform: none; } }
@keyframes fdh-tap-moment { 0%, 44% { transform: none; } 45.5% { transform: scale(.82); } 47.5%, 100% { transform: none; } }
@keyframes fdh-pop { 0%, 46% { transform: none; } 48% { transform: scale(1.03); } 51%, 100% { transform: none; } }
@keyframes fdh-spark {
  0%, 46% { opacity: 0; transform: translate(0, 0) scale(.6); }
  48% { opacity: 1; transform: translate(0, -2em) scale(var(--s, 1)); }
  60%, 100% { opacity: 0; transform: translate(var(--dx, 0), -15em) scale(var(--s, 1)); }
}
@keyframes fdh-drift { 0%, 70% { transform: scale(1.05); } 96%, 100% { transform: scale(1.14) translateX(-1%); } }

/* ---------- intro, just below the header ---------- */
.grp-intro-sec { padding: 36px 0 8px; background: var(--grp-room); color: var(--grp-text); }
.grp-intro-sec .grp-lede { max-width: 760px; }

@media (max-width: 1200px) {
  .fdh { --ph-w: 280px; }
  .fdh-title { font-size: clamp(44px, 5.6vw, 68px); }
  .fdh-phone--left { transform: translateX(-40%) translateY(5%) rotate(-7deg) scale(.8); }
  .fdh-phone--right { transform: translateX(40%) translateY(5%) rotate(7deg) scale(.8); }
}
@media (max-width: 980px) {
  .fdh { --ph-w: min(66vw, 280px); padding: 92px 0 28px; }
  /* Phone sits right under the store line; the web link follows it. */
  .fdh-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fdh-copy { display: contents; }
  .fdh-brand { justify-self: start; margin-bottom: 14px; }
  .fdh-title { margin-bottom: 12px; }
  .fdh-promise { margin-bottom: 12px; }
  .fdh-powered { justify-self: start; margin-bottom: 14px; }
  .fdh-get { margin-bottom: 24px; }
  .fdh-stage { order: 1; }
  .fdh-web { order: 2; margin-top: 18px; text-align: center; }
  .fdh-icon { width: 44px; height: 44px; border-radius: 12px; }
  .fdh-brand-text b { font-size: 24px; }
  .fdh-title { font-size: clamp(44px, 12.4vw, 72px); }
  .fdh-phone--left { transform: translateX(-46%) translateY(5%) rotate(-7deg) scale(.8); }
  .fdh-phone--right { transform: translateX(46%) translateY(5%) rotate(7deg) scale(.8); }
  .fdh-bars { width: 120vw; right: -40%; top: 72%; }
}
