/* Red Falcon Games — site system
   Reference lock: image-led studio catalog. Night flagship field from
   Hut Hut Havoc key art; light paper for the rest. Falcon red #BC182C
   is accent-only. Display face is Big Shoulders Display; text is IBM Plex Sans.
   No indigo, no cream-serif editorial, no card shadows, no step indexes. */

:root {
  --bg: #f3f3f0;
  --surface: #e8e8e3;
  --ink: #161616;
  --muted: #4d514e;
  --accent: #bc182c;
  --accent-ink: #ffffff;
  --night: #101826;
  --night-ink: #f3f3f0;
  --night-muted: #c6cbc8;
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-text: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.25rem, 1rem + 8vw, 8rem);
  --pad: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --gutter: clamp(1.25rem, 3.2vw, 2.75rem);
  --measure: 38rem;
  --max: 86rem;
  --header-h: 4rem;
  --duration-fast: 120ms;
  --duration-default: 200ms;
  --duration-slow: 320ms;
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.2, 0.0, 0, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

#root {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  min-height: 100%;
}

img { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
  hyphens: none;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 0.9em; }

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.07em;
}
a:hover { color: var(--accent); }
a:focus-visible,
button:focus-visible,
.rf-nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: var(--bg);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 20;
}
.skip-link:focus { top: 0.5rem; }

/* Header / footer */
.rf-header,
.rf-footer {
  width: 100%;
}

.rf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: var(--night);
  color: var(--night-ink);
  position: relative;
}

.rf-header a:hover { color: var(--night-ink); text-decoration: underline; }

.rf-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.rf-brand img {
  width: 2.125rem;
  height: 2.125rem;
  object-fit: contain;
}

.rf-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  font-size: var(--step-small);
  font-weight: 500;
}
.rf-nav a { text-decoration: none; }

.rf-nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--night-ink);
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.rf-nav-toggle svg { display: block; width: 1.5rem; height: 1.5rem; }

.rf-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.25rem var(--gutter);
  background: var(--ink);
  color: var(--bg);
}
.rf-footer a { text-decoration: none; }
.rf-footer a:hover { color: #fff; text-decoration: underline; }
.rf-footer .rf-brand { color: var(--bg); }
.rf-footer .rf-brand img {
  /* The mark is red on a dark ground; keep it readable. */
  width: 2rem;
  height: 2rem;
}
.rf-legal {
  margin: 0.75rem 0 0;
  font-size: var(--step-small);
  line-height: 1.5;
  color: #c8c8c2;
  max-width: 28rem;
}
.rf-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: var(--step-small);
  font-weight: 500;
  padding-top: 0.45rem;
}

/* Flagship hero — first screen is the night game.
   min-height accounts for the night header so the Play badge
   and game-page link stay on the first screen. The official
   16:9 key art is contained, not cropped, so the fridge, the
   player and Coach T-Rex all remain visible. */
.rf-flagship {
  background: var(--night);
  color: var(--night-ink);
  display: grid;
  grid-template-columns: minmax(20rem, 0.82fr) minmax(22rem, 1.18fr);
  min-height: calc(100svh - var(--header-h));
  align-items: stretch;
}
.rf-flagship-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.75rem, 3.5vw, 3.5rem) var(--gutter) clamp(2rem, 4.5vw, 4rem);
  gap: 1.05rem;
}
.rf-flagship h1 {
  font-size: var(--step-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.88;
  max-width: 9ch;
  margin-left: -0.05em;
  color: var(--night-ink);
}
.rf-flagship .lead {
  font-size: var(--step-lead);
  line-height: 1.3;
  max-width: 22rem;
  color: var(--night-ink);
}
.rf-flagship .deck {
  max-width: 28rem;
  color: var(--night-muted);
  font-size: var(--step-body);
  line-height: 1.45;
}
.rf-flagship-art {
  margin: 0;
  min-height: 18rem;
  overflow: hidden;
  background: var(--night);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem) var(--gutter) clamp(1rem, 3vw, 2.5rem) 0;
}
.rf-flagship-art .rf-display-frame {
  width: 100%;
  line-height: 0;
  border: 1px solid rgba(243, 243, 240, 0.22);
  background: var(--night);
}
.rf-flagship-art img {
  width: 100%;
  height: auto;
  max-height: calc(100svh - var(--header-h) - 3rem);
  object-fit: contain;
  object-position: center;
}

.rf-stores {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-top: 0.25rem;
}
.rf-stores a { display: block; color: inherit; }
.rf-stores a:hover { color: inherit; }
.rf-stores img {
  height: 3rem;
  width: auto;
  max-width: 10.6rem;
  object-fit: contain;
}
.rf-store-note {
  font-size: var(--step-small);
  color: var(--night-muted);
}
.rf-text-link {
  font-weight: 500;
  width: fit-content;
  text-decoration: underline;
}

/* Play section */
.rf-play {
  padding: clamp(3.25rem, 7vw, 6.25rem) var(--gutter) clamp(2.75rem, 6vw, 5rem);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
}
.rf-play-kicker {
  font-family: var(--font-text);
  font-size: var(--step-small);
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.rf-play h2,
.rf-catalog h2,
.rf-studio h2,
.rf-page-hero h2,
.rf-features h2,
.rf-support h2,
.rf-more h2 {
  font-size: var(--step-head);
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 0 0.55em;
}
.rf-catalog h2 {
  max-width: none;
}
.rf-more h2 {
  max-width: none;
}
.rf-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-bottom: 1.15em;
}
.rf-section-head h2,
.rf-more .rf-section-head h2,
.rf-catalog .rf-section-head h2 {
  margin-bottom: 0;
}
.rf-section-head .rf-text-link {
  font-family: var(--font-text);
  font-size: var(--step-small);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}
.rf-play-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rf-play-grid h3 {
  font-size: var(--step-lead);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.rf-play-grid p,
.rf-catalog p,
.rf-studio p,
.rf-support p {
  color: var(--muted);
  max-width: var(--measure);
}

/* Catalog — official covers, equal slots, no cards */
.rf-catalog {
  padding: 0 var(--gutter) clamp(3.5rem, 8vw, 6.25rem);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
}
.rf-catalog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: stretch;
}
.rf-game {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rf-game a.rf-game-media {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
}
.rf-game a.rf-game-media:hover { color: inherit; }
.rf-game img.cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}
.rf-game.contain a.rf-game-media {
  background: #163154;
}
.rf-game.contain img.cover {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
}
.rf-game.hockey img.cover {
  object-position: center 28%;
}
.rf-game h3 {
  font-size: clamp(1.55rem, 1rem + 1.3vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0.85rem 0 0.35rem;
}
.rf-game h3 a {
  text-decoration: none;
}
.rf-game p {
  flex: 1 1 auto;
}
.rf-game .rf-stores {
  margin-top: auto;
  padding-top: 0.85rem;
}
.rf-game .rf-stores img { height: 2.5rem; }

/* Catalog showcase — framed, snap-scrolling display of official covers.
   Auto-advance is a presentation behavior, not a restyle: same type,
   tokens, and store badges. Radius 0, no card shadows, no step indexes. */
.rf-showcase {
  min-width: 0;
}
.rf-showcase-frame {
  border: 1px solid #d0d0c8;
  background: var(--surface);
  overflow: hidden;
  container-type: inline-size;
  container-name: showcase;
}
.rf-showcase-viewport {
  --peek: clamp(1.15rem, 7vw, 5.25rem);
  --gap: 0.85rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rf-showcase-viewport::-webkit-scrollbar { display: none; }
.rf-showcase-track {
  display: flex;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.rf-showcase-slide {
  flex: 0 0 calc(100cqi - var(--peek));
  width: calc(100cqi - var(--peek));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: 0;
  opacity: 0.42;
  transition: opacity var(--duration-default) var(--ease-in-out);
}
.rf-showcase-slide:last-child {
  scroll-snap-align: end;
}
.rf-showcase-slide.is-active { opacity: 1; }
.rf-showcase-slide a.rf-game-media {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
}
.rf-showcase-slide a.rf-game-media:hover { color: inherit; }
.rf-showcase-slide img.cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}
.rf-showcase-slide.contain a.rf-game-media { background: #163154; }
.rf-showcase-slide.contain img.cover {
  object-fit: contain;
  object-position: center;
}
.rf-showcase-slide.hockey img.cover { object-position: center 28%; }

.rf-showcase-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin: 0.9rem 0 0;
}
.rf-showcase-btn,
.rf-showcase-pause {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}
.rf-showcase-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
}
.rf-showcase-btn:hover,
.rf-showcase-pause:hover {
  background: var(--ink);
  color: var(--bg);
}
.rf-showcase-btn:active {
  transform: scale(0.98);
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              transform 90ms var(--ease-out);
}
.rf-showcase-pause {
  height: 2.75rem;
  padding: 0 0.9rem;
  font-family: var(--font-text);
  font-size: var(--step-small);
  font-weight: 500;
  letter-spacing: 0;
}
.rf-showcase-count {
  margin: 0 0.35rem 0 0.15rem;
  font-size: var(--step-small);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.rf-showcase-pips {
  display: flex;
  gap: 0.3rem;
  flex: 1 1 10rem;
  align-items: center;
  min-width: 8rem;
}
.rf-showcase-pips button {
  flex: 1 1 0;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.rf-showcase-pips button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #c8c8c2;
  transform: translateY(-50%);
  transition: background-color var(--duration-fast) var(--ease-out);
}
.rf-showcase-pips button.is-active::after,
.rf-showcase-pips button[aria-current="true"]::after {
  background: var(--ink);
}
.rf-showcase-pips button:hover::after { background: var(--ink); }

.rf-showcase-copy {
  margin-top: 1.15rem;
  max-width: 36rem;
}
.rf-showcase-copy h3 {
  font-size: clamp(1.55rem, 1rem + 1.3vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.35rem;
}
.rf-showcase-copy h3 a { text-decoration: none; }
.rf-showcase-copy p { color: var(--muted); }
.rf-showcase-copy .rf-stores {
  margin-top: 0.85rem;
}
.rf-showcase-copy .rf-stores img { height: 2.5rem; }

/* Studio */
.rf-studio {
  padding: clamp(3.25rem, 6.5vw, 5.5rem) var(--gutter);
  background: var(--surface);
}
.rf-studio-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.rf-studio h2 { margin-bottom: 0.55em; }
.rf-studio-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 4rem;
}
.rf-studio p { color: var(--ink); max-width: 36rem; }

/* Product pages */
.rf-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem 3.5rem;
  align-items: center;
  padding: clamp(2.25rem, 5vw, 4.5rem) var(--gutter);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
}
.rf-page-hero h1 {
  font-size: clamp(3rem, 2rem + 5vw, 6.25rem);
  letter-spacing: -0.04em;
  line-height: 0.88;
  max-width: 12ch;
  margin: 0 0 0.7rem -0.05em;
}
.rf-page-hero .lead {
  font-size: var(--step-lead);
  line-height: 1.3;
  max-width: 24rem;
  margin: 0 0 0.9rem;
}
.rf-page-hero .intro {
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 1.3rem;
}
.rf-page-hero .rf-store-note { color: var(--muted); margin-top: 0.7rem; }

.rf-page-hero.is-flagship {
  background: var(--night);
  color: var(--night-ink);
  max-width: none;
  width: 100%;
  min-height: calc(100svh - var(--header-h));
  gap: 2.5rem 3.25rem;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter);
  align-items: start;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
}
.rf-page-hero.is-flagship .lead { color: var(--night-ink); }
.rf-page-hero.is-flagship .intro,
.rf-page-hero.is-flagship .rf-store-note { color: var(--night-muted); }
.rf-page-hero.is-flagship .rf-cover {
  background: var(--night);
}
.rf-page-hero.is-flagship .rf-cover .cover {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.rf-cover {
  margin: 0;
  background: var(--surface);
  overflow: hidden;
}
.rf-cover .cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.rf-cover.hockey-goat {
  position: relative;
  /* Dark field sampled from the official hockey.jpg tunnel/sky, not a landscape crop. */
  background: #041122;
}
html.hockey-goat .rf-cover.hockey-goat {
  display: grid;
  place-items: center;
}
html.hockey-goat .rf-cover.hockey-goat .cover {
  width: auto;
  max-width: 100%;
  height: auto;
  aspect-ratio: 720 / 1680;
  object-fit: contain;
  object-position: center top;
  /* Cap height so a 720×1680 portrait stays fully visible, not a 16:10 crop and not a huge column. */
  max-height: min(70svh, 42rem);
}
/* Official portrait already includes the title mark; do not stack a second logo. */
html.hockey-goat .rf-cover.hockey-goat .game-logo { display: none; }
.rf-cover .game-logo {
  position: absolute;
  width: 64%;
  left: 18%;
  top: 8%;
}
.rf-cover.baseball-goat-27 .cover,
.rf-cover.contain .cover {
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.rf-features {
  padding: clamp(3rem, 6.5vw, 5.25rem) var(--gutter);
  background: var(--surface);
}
.rf-features-inner,
.rf-support-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.rf-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 3rem;
}
.rf-feature-grid h3 {
  font-size: var(--step-lead);
  line-height: 1.1;
  margin: 0 0 0.55rem;
}
.rf-feature-grid p { color: var(--muted); margin: 0; }

.rf-support {
  padding: clamp(3rem, 6.5vw, 5.25rem) var(--gutter);
}
.rf-support-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 3rem;
  align-items: start;
}
.rf-policy-links {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.2rem;
}
.rf-policy-links a {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 3px solid var(--ink);
}
.rf-policy-links a:hover { color: var(--accent); border-color: var(--accent); }

.rf-more {
  padding: 0 var(--gutter) clamp(3.25rem, 6.5vw, 5.25rem);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
}
.rf-more-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.75rem;
}
.rf-more-list a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1.1;
}

/* Games index (more-games) */
.rf-index {
  padding: clamp(2.25rem, 5vw, 4rem) var(--gutter) clamp(3.5rem, 7vw, 5.5rem);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
}
.rf-index h1 {
  font-size: var(--step-head);
  max-width: none;
  margin-bottom: 1.15em;
}

/* Legal — typography only; policy wording is unchanged */
.legal {
  max-width: 44rem;
  padding: clamp(2.25rem, 5vw, 4rem) var(--gutter) 5rem;
  margin: 0 auto;
}
.legal h1 {
  font-size: var(--step-head);
  max-width: 16ch;
  margin-bottom: 0.55em;
}
.legal h2,
.legal-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 1.4vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 2.2em 0 0.55em;
}
.legal h3,
.legal-copy h2 + h3 {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--step-body);
  letter-spacing: 0;
  line-height: 1.35;
  margin: 1.4em 0 0.4em;
}
.legal p,
.legal li {
  color: var(--ink);
  line-height: 1.55;
  max-width: 62ch;
}
.legal li { color: var(--ink); }
.legal ul,
.legal ol {
  margin: 0.8em 0 1em;
  padding-left: 1.25em;
}
.legal li + li { margin-top: 0.35em; }
.legal table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  font-size: var(--step-small);
  line-height: 1.45;
  margin: 1em 0 1.4em;
  border-collapse: collapse;
}
.legal th,
.legal td {
  min-width: 8rem;
  text-align: left;
  vertical-align: top;
  padding: 0.45em 1em 0.45em 0;
  color: var(--ink);
}
.legal th { font-weight: 600; }
.legal-copy a { overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .rf-flagship {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .rf-flagship-art {
    min-height: 0;
    height: auto;
    order: -1;
    padding: 0.85rem var(--gutter) 0;
  }
  .rf-flagship-art img {
    max-height: none;
  }
  .rf-flagship h1 { max-width: 8ch; }
  .rf-flagship-copy {
    padding-top: 1.75rem;
    padding-bottom: 2.25rem;
  }
  .rf-play-grid,
  .rf-catalog-list,
  .rf-feature-grid,
  .rf-page-hero,
  .rf-studio-copy,
  .rf-support-inner {
    grid-template-columns: 1fr 1fr;
  }
  .rf-page-hero { gap: 2rem; }
  .rf-page-hero.is-flagship {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    gap: 0;
  }
  .rf-page-hero.is-flagship .rf-cover { order: -1; }
  .rf-page-hero.is-flagship .rf-cover .cover {
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }
  .rf-page-hero.is-flagship .rf-hero-copy {
    padding: 1.75rem var(--gutter) 2.25rem;
  }
}

@media (max-width: 720px) {
  .rf-header { padding: 0 1.25rem; }
  .rf-nav-toggle { display: block; }
  .rf-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    background: var(--night);
    color: var(--night-ink);
    flex-direction: column;
    gap: 0;
    padding: 0.35rem var(--gutter) 1.1rem;
    z-index: 10;
  }
  .rf-nav a {
    padding: 0.65rem 0;
  }
  .rf-header.is-open .rf-nav { display: flex; }
  .rf-play-grid,
  .rf-catalog-list,
  .rf-feature-grid,
  .rf-page-hero,
  .rf-page-hero.is-flagship,
  .rf-studio-copy,
  .rf-support-inner {
    grid-template-columns: 1fr;
  }
  .rf-footer {
    flex-direction: column;
    padding: 2rem 1.25rem;
  }
  .rf-flagship-copy,
  .rf-play,
  .rf-catalog,
  .rf-studio,
  .rf-page-hero,
  .rf-features,
  .rf-support,
  .rf-more,
  .rf-index,
  .legal {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .rf-showcase-viewport { --peek: 1.15rem; }
  .rf-showcase-pips { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rf-showcase-viewport { scroll-behavior: auto; }
  .rf-showcase-slide { transition: none; opacity: 1; }
  .rf-showcase-btn,
  .rf-showcase-pause,
  .rf-showcase-pips button::after {
    transition: none;
  }
  .rf-showcase-btn:active { transform: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Source-audit fixes: preserve the locked direction; avoid hidden no-JS navigation. */
.rf-static-header .rf-nav-toggle[hidden] { display: none; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .rf-header { gap: 0.75rem; }
  .rf-static-header:not(.nav-ready) { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: 0.75rem; }
  .rf-static-header:not(.nav-ready) .rf-nav { display: flex; position: static; width: 100%; padding: 0; }
  /* Override the later generic page gutter rule so flagship art really is full bleed. */
  .rf-page-hero.is-flagship { padding-inline: 0; padding-bottom: 0; }
  
}
@media (max-width: 360px) {
  .rf-header .rf-brand { font-size: 1.15rem; gap: 0.45rem; }
  .rf-header .rf-brand img { width: 1.75rem; height: 1.75rem; }
}

/* Inverted sections need a higher-contrast keyboard ring than the logo red. */
.rf-header a:focus-visible,
.rf-header button:focus-visible,
.rf-footer a:focus-visible,
.rf-flagship a:focus-visible,
.rf-page-hero.is-flagship a:focus-visible { outline-color: var(--night-ink); }
a[href^="mailto:"] { text-decoration: underline; }

/* Grid siblings should align at the top, not inherit prose paragraph spacing. */
.rf-studio-copy p + p { margin-top: 0; }

/* Pass 4: navigation is one visual system; prose emails remain underlined. */
.rf-header .rf-nav a[href^="mailto:"] { text-decoration: none; }
.rf-header .rf-nav a:hover { text-decoration: underline; }
.rf-product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-block: 0.9rem 1.25rem;
  font-size: var(--step-small);
}
.rf-product-links a { padding-block: 0.25rem; text-decoration: underline; }
@media (max-width: 720px) {
  .rf-flagship-copy { padding-top: 1.25rem; padding-bottom: 1.75rem; gap: 0.75rem; }
  .rf-page-hero.is-flagship .rf-hero-copy { padding-top: 1.25rem; padding-bottom: 1.75rem; }
  .rf-flagship-copy p + p { margin-top: 0; }
  .rf-product-links { margin-block: 0.7rem 1rem; }
}

/* Hockey official page: art first on small screens, contained portrait (no tall crop). */
@media (max-width: 960px) {
  html.hockey-goat .rf-page-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  html.hockey-goat .rf-cover.hockey-goat {
    order: -1;
  }
  html.hockey-goat .rf-cover.hockey-goat .cover {
    aspect-ratio: 720 / 1680;
    object-fit: contain;
    object-position: center top;
    max-height: min(58svh, 34rem);
    margin-inline: auto;
  }
}
@media (max-width: 720px) {
  html.hockey-goat .rf-page-hero {
    padding-top: 0;
  }
  html.hockey-goat .rf-hero-copy {
    padding-top: 0.25rem;
  }
  html.hockey-goat .rf-cover.hockey-goat .cover {
    max-height: min(52svh, 28rem);
  }
  html.hockey-goat .rf-page-hero .intro {
    margin-top: 0.35rem;
  }
}

/* ==========================================================
   First-screen hero — featured games (dynamic)
   Reference lock: night stadium field, official art in a
   hairline display frame, broadcast-style "stinger" wipe
   (night panel, red leading edge, official falcon mark).
   Red stays accent-only: the wipe edge, active tab bar, focus.
   Motion: transform + opacity only. Timer = CSS progress bar.
   ========================================================== */
.rf-hero {
  --tx: 0;
  --ty: 0;
  --sy: 0;
  --dwell-ease: linear;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
  min-height: calc(100svh - var(--header-h));
  display: flex;
}
.rf-hero-ambient {
  position: absolute;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  transform: translate3d(calc(var(--tx) * -22px), calc(var(--ty) * -16px + var(--sy) * 60px), 0);
}
.rf-hero-ambient img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(48px) saturate(1.15);
  opacity: 0;
  transform: scale(1.1);
}
.rf-hero-ambient img.is-in { animation: rf-ambient-in 1400ms var(--ease-out) 300ms forwards; }
.rf-hero-ambient img.is-out { opacity: 0.34; animation: rf-ambient-out 1400ms var(--ease-out) 300ms forwards; }
.rf-hero-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--night) 18%, rgba(16, 24, 38, 0.72) 48%, rgba(16, 24, 38, 0.35) 100%),
    linear-gradient(0deg, var(--night) 4%, rgba(16, 24, 38, 0) 40%);
}
@keyframes rf-ambient-in { from { opacity: 0; } to { opacity: 0.34; } }
@keyframes rf-ambient-out { from { opacity: 0.34; } to { opacity: 0; } }

.rf-hero-stage {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(19rem, 0.72fr) minmax(24rem, 1.28fr);
  grid-template-rows: 1fr auto;
  grid-template-areas: "copy art" "rail rail";
  column-gap: clamp(1.5rem, 3.5vw, 3.5rem);
  padding: clamp(1rem, 2.5vw, 2.5rem) var(--gutter) clamp(0.75rem, 1.5vw, 1.5rem);
}

/* ---- copy ---- */
.rf-hero-copy {
  grid-area: copy;
  display: grid;
  align-self: center;
  transform: translate3d(calc(var(--tx) * 6px), calc(var(--sy) * -40px), 0);
}
.rf-hero-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 200ms var(--ease-out) 400ms, visibility 0s linear 600ms;
}
.rf-hero-slide.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 200ms var(--ease-out) 400ms, visibility 0s linear 400ms;
}
.rf-hero-title {
  font-size: clamp(3.25rem, 0.9rem + 6.6vw, 7.75rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--night-ink);
  margin-left: -0.05em;
  text-wrap: initial;
}
.rf-hero-title.is-long { font-size: clamp(3rem, 0.9rem + 5.8vw, 7rem); }
.rf-hero-line { display: block; }
.rf-hero-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.rf-hero-mask + .rf-hero-mask { margin-left: 0.22em; }
.rf-hero-word {
  display: inline-block;
  transform: none;
}
.rf-hero-slide.is-active .rf-hero-word {
  animation: rf-word-rise 640ms var(--ease-emphasized) both;
  animation-delay: calc(420ms + var(--i) * 40ms);
}
@keyframes rf-word-rise {
  from { transform: translate3d(0, 108%, 0); }
  to { transform: none; }
}
.rf-hero-lead span { display: block; }
.rf-hero-lead {
  font-size: var(--step-lead);
  line-height: 1.3;
  max-width: 23rem;
  color: var(--night-ink);
}
.rf-hero-deck {
  max-width: 28rem;
  color: var(--night-muted);
  line-height: 1.45;
}
.rf-hero-lead,
.rf-hero-deck,
.rf-hero-actions {
  opacity: 1;
  transform: none;
}
.rf-hero-slide.is-active .rf-hero-lead,
.rf-hero-slide.is-active .rf-hero-deck,
.rf-hero-slide.is-active .rf-hero-actions {
  animation: rf-copy-in 420ms var(--ease-out) both;
}
.rf-hero-slide.is-active .rf-hero-lead { animation-delay: 480ms; }
.rf-hero-slide.is-active .rf-hero-deck { animation-delay: 520ms; }
.rf-hero-slide.is-active .rf-hero-actions { animation-delay: 560ms; }
@keyframes rf-copy-in {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: none; }
}
.rf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin-top: 0.35rem;
}
.rf-hero-actions .rf-stores { margin-top: 0; }
.rf-hero a:focus-visible,
.rf-hero button:focus-visible { outline-color: var(--night-ink); }

/* ---- art ---- */
.rf-hero-art {
  grid-area: art;
  margin: 0;
  align-self: center;
  perspective: 1400px;
}
.rf-hero-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(243, 243, 240, 0.22);
  background: var(--night);
  transform:
    translate3d(0, calc(var(--sy) * 50px), 0)
    rotateY(calc(var(--tx) * 5deg))
    rotateX(calc(var(--ty) * -4deg))
    scale(calc(1 - var(--sy) * 0.05));
  transform-style: preserve-3d;
  will-change: transform;
}
.rf-hero-pic {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1ms linear 260ms, transform 0s linear 260ms;
}
.rf-hero-pic.is-active {
  opacity: 1;
  transform: none;
  transition: opacity 1ms linear 240ms, transform 900ms var(--ease-emphasized) 240ms;
}
.rf-hero-pic-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: translate3d(calc(var(--tx) * -10px), calc(var(--ty) * -8px), 0) scale(1.03);
}
.rf-hero-pic.is-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--night);
}
.rf-hero-stage-bg {
  position: absolute;
  inset: 0;
  background-color: var(--night);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 1;
}
.rf-hero-stage-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--night);
  opacity: 0.82;
}
.rf-hero-stage-mark {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(46%, 14rem);
  height: auto;
  max-width: none;
  opacity: 0.07;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.rf-hero-pic.is-poster .rf-hero-pic-main {
  position: static;
  inset: unset;
  z-index: 2;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  max-width: calc(100% - 2.5rem);
  max-height: calc(100% - 2.25rem);
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  transform: none;
  border: 1px solid rgba(243, 243, 240, 0.22);
  background: var(--night);
}

/* Broadcast stinger: night panel with a red leading edge carries the
   official falcon mark across the frame; the next art swaps underneath. */
.rf-hero-wipe {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--night);
  display: grid;
  place-items: center;
  transform: translate3d(-102%, 0, 0);
  animation: rf-wipe 620ms cubic-bezier(0.7, 0, 0.2, 1) forwards;
  pointer-events: none;
}
.rf-hero-wipe::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -8px;
  width: 8px;
  background: var(--accent);
}
.rf-hero-wipe img {
  width: clamp(3rem, 6vw, 5rem);
  height: auto;
  animation: rf-wipe-mark 620ms var(--ease-emphasized) forwards;
}
@keyframes rf-wipe {
  0% { transform: translate3d(-102%, 0, 0); }
  38% { transform: translate3d(0, 0, 0); }
  48% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(103%, 0, 0); }
}
@keyframes rf-wipe-mark {
  0% { transform: scale(0.7); opacity: 0; }
  38% { transform: scale(1); opacity: 1; }
  55% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1.08); opacity: 0; }
}

/* ---- rail: controls + game tabs with progress ---- */
.rf-hero-rail {
  grid-area: rail;
  display: flex;
  align-items: stretch;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-top: clamp(1rem, 2vw, 1.75rem);
  border-top: 1px solid rgba(243, 243, 240, 0.16);
  padding-top: 0.75rem;
}
.rf-hero-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
}
.rf-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(243, 243, 240, 0.32);
  background: transparent;
  color: var(--night-ink);
  font-size: var(--step-small);
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.rf-hero-btn:hover { border-color: var(--night-ink); }
.rf-hero-btn:active { transform: scale(0.96); }
.rf-hero-pause { min-width: 5.5rem; }
.rf-hero-count {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--night-muted);
  margin-left: 0.6rem;
  font-variant-numeric: tabular-nums;
}
.rf-hero-count b { color: var(--night-ink); font-weight: 700; }
.rf-hero-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.rf-hero-index {
  display: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--night-muted);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.rf-hero-index b { color: var(--night-ink); font-weight: 700; }
.rf-hero-tabs {
  flex: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.5rem;
  min-width: 0;
}
.rf-hero-tab {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.35rem 0.65rem 0;
  background: none;
  border: 0;
  color: var(--night-muted);
  text-align: left;
  cursor: pointer;
  min-height: 2.75rem;
}
.rf-hero-tab img {
  width: 3.25rem;
  height: 1.85rem;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity var(--duration-default) var(--ease-out);
}
.rf-hero-tab-name {
  font-size: var(--step-small);
  font-weight: 500;
  line-height: 1.15;
}
@media (max-width: 1399px) {
  .rf-hero-tab { grid-template-columns: minmax(0, 1fr); }
  .rf-hero-tab img { display: none; }
}
.rf-hero-tab:hover,
.rf-hero-tab.is-active { color: var(--night-ink); }
.rf-hero-tab:hover img,
.rf-hero-tab.is-active img { opacity: 1; }
.rf-hero-tab-bar {
  position: absolute;
  left: 0;
  right: 0.35rem;
  bottom: 0;
  height: 2px;
  background: rgba(243, 243, 240, 0.18);
  overflow: hidden;
}
.rf-hero-tab.is-active .rf-hero-tab-bar { background: rgba(243, 243, 240, 0.55); }
.rf-hero-tab-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  animation-name: rf-dwell;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
.rf-hero[data-state="held"] .rf-hero-tab-fill,
.rf-hero[data-state="stopped"] .rf-hero-tab-fill { animation-play-state: paused; }
.rf-hero.is-reduced .rf-hero-tab-fill { animation: none; transform: none; }
@keyframes rf-dwell { to { transform: scaleX(1); } }

/* ---- tablet / phone ---- */
@media (max-width: 960px) {
  .rf-hero { min-height: 0; }
  .rf-hero-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas: "art" "tabs" "copy" "controls";
    padding: 0.85rem var(--gutter) 2rem;
    row-gap: 0;
  }
  .rf-hero-ambient::after {
    background: linear-gradient(0deg, var(--night) 30%, rgba(16, 24, 38, 0.55) 100%);
  }
  .rf-hero-copy { grid-area: copy; padding-top: 1.1rem; transform: none; align-self: start; }
  .rf-hero-slide { justify-content: flex-start; }
  .rf-hero-art { grid-area: art; }
  .rf-hero-rail {
    display: contents;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .rf-hero-progress {
    grid-area: tabs;
    margin-top: 0.65rem;
  }
  .rf-hero-index { display: inline-block; }
  .rf-hero-count { display: none; }
  .rf-hero-tabs { gap: 0.3rem; }
  .rf-hero-tab { grid-template-columns: 1fr; padding: 0 0 0.55rem; min-height: 1.35rem; }
  .rf-hero-tab img,
  .rf-hero-tab-name { display: none; }
  .rf-hero-tab-bar { right: 0; height: 3px; }
  .rf-hero-controls {
    grid-area: controls;
    justify-content: flex-start;
    margin-top: 1.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(243, 243, 240, 0.16);
  }
}
@media (max-width: 720px) {
  .rf-hero-stage { padding-left: 1.25rem; padding-right: 1.25rem; }
  .rf-hero-title { font-size: clamp(3rem, 1.2rem + 9vw, 4.75rem); }
  .rf-hero-title.is-long { font-size: clamp(2.75rem, 1.1rem + 8.4vw, 4.4rem); }
  .rf-hero-slide { gap: 0.75rem; }
}
@media (max-width: 360px) {
  .rf-hero-pause { min-width: 2.75rem; }
  .rf-hero-pause span { display: none; }
  .rf-hero-count { margin-left: 0.3rem; }
}

/* ---- reduced motion: no autoplay, no wipe, no tilt; instant swaps ---- */
@media (prefers-reduced-motion: reduce) {
  .rf-hero-ambient,
  .rf-hero-copy,
  .rf-hero-frame,
  .rf-hero-pic-main { transform: none !important; }
  .rf-hero-ambient img.is-in,
  .rf-hero-ambient img.is-out { animation: none; }
  .rf-hero-ambient img.is-in { opacity: 0.34; }
  .rf-hero-slide,
  .rf-hero-slide.is-active,
  .rf-hero-pic,
  .rf-hero-pic.is-active,
  .rf-hero-slide .rf-hero-word,
  .rf-hero-slide.is-active .rf-hero-word,
  .rf-hero-slide.is-active .rf-hero-lead,
  .rf-hero-slide.is-active .rf-hero-deck,
  .rf-hero-slide.is-active .rf-hero-actions { transition: none; }
  .rf-hero-word,
  .rf-hero-pic,
  .rf-hero-lead,
  .rf-hero-deck,
  .rf-hero-actions { transform: none; }
  .rf-hero-slide.is-active .rf-hero-word,
  .rf-hero-slide.is-active .rf-hero-lead,
  .rf-hero-slide.is-active .rf-hero-deck,
  .rf-hero-slide.is-active .rf-hero-actions { animation: none; }
  .rf-hero-wipe { display: none; }
  .rf-hero-btn:active { transform: none; }
}
