/* The /games scene room (games/home/index.html.erb).

   A port of the approved mockups in
   .planning/quick/261123-cjl-games-scene-room-redesign/ -- Main.dc.html is
   the front yard, Dusk.dc.html the backyard, Garage.dc.html the garage. One
   1280x660 stage, a 3-D room inside it, five objects in the room. Positions,
   colours and timings are the mockups' own values; change them there first.

   Colour: the illustration palette is the artboards' literal values, listed
   once in spec/views/design_tokens_spec.rb (GAMES_ROOM_PALETTE_HEX) so a new
   hex still fails the lint. The art itself is inline SVG in
   app/assets/images/games/room/ (Games::RoomHelper#games_room_svg).

   One key light for every scene: top-left, in front. Brand hard shadows fall
   down-right; floor shadows fall right and back.

   3-D trap (Chrome): a separate preserve-3d element near a side-wall plane
   makes that wall vanish, so wall decorations stay children of the back-wall
   element, as the mockups have them.

   Keyframes carry the fyf- prefix (the scope lint); the classes that run them
   keep the mockups' gr- names. */

/* ── Room shell: scale to fit, swipe on a phone ─────────────────────────── */
.fyf .gr-room {
  --gr-scale: 1;
  --gr-w: min(1280px, 100vw);
  position: relative;
  width: var(--gr-w);
  margin: 0 calc((100% - var(--gr-w)) / 2);
}
/* The scene is the page's top: the shell's 32px top padding (games.css) read
   as a stray strip above it. Desktop keeps one 24px gutter above and below
   the framed room; a phone runs the room flush under the bar. */
.fyf .games-shell:has(> .games-home) { padding-top: var(--space-6, 24px); }
.fyf .gr-room__viewport {
  position: relative;
  width: 100%;
  height: calc(660px * var(--gr-scale));
  overflow: hidden;
  border-radius: 18px;
}
.fyf .gr-room__sizer {
  position: relative;
  width: calc(1280px * var(--gr-scale));
  height: calc(660px * var(--gr-scale));
}
.fyf .gr-room__stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 660px;
  overflow: hidden;
  perspective: 1150px;
  perspective-origin: 50% 40%;
  transform: scale(var(--gr-scale));
  transform-origin: 0 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
  letter-spacing: normal;
  color: #30202d;
  overflow-wrap: normal;
}
/* The artboards had no box-sizing reset; the FYF foundation and Tailwind do. */
.fyf .gr-room__stage *,
.fyf .gr-room__stage *::before,
.fyf .gr-room__stage *::after { box-sizing: content-box; }
.fyf .gr-room__room {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 60% -310px;
  /* Chrome hit-tests the 3-D room's own box ahead of objects pushed behind its
     plane (the cabinet and cornhole board), so clicks never reached their
     links. The scenery takes no clicks; only the links and buttons do. */
  pointer-events: none;
}
.fyf .gr-room__room a,
.fyf .gr-room__room button { pointer-events: auto; }
.fyf .gr-room a { color: #30202d; text-decoration: none; }
.fyf .gr-room a:hover { color: #30202d; }
.fyf .gr-room button {
  font: inherit;
  color: inherit;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.fyf .gr-room svg { display: inline; }
.fyf .gr-room__snap {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  scroll-snap-align: center;
}

/* ── Scenes: the key light's shadow colour and the sky ──────────────────── */
.fyf .gr-room--front_yard .gr-room__stage {
  --gr-sh: #0b3516; --gr-cast-a: .42; --gr-ao-a: .62;
  background: linear-gradient(#bcd7ea 0%, #e6e4dc 50%, #fdeee2 78%);
}
.fyf .gr-room--backyard .gr-room__stage {
  --gr-sh: #05170a; --gr-cast-a: .4; --gr-ao-a: .72;
  background: linear-gradient(#2a1c33, #5a3560 55%, #ff7142 120%);
}
.fyf .gr-room--garage .gr-room__stage {
  --gr-sh: #4a2412; --gr-cast-a: .3; --gr-ao-a: .5;
  background: #30202d;
}

/* ── Objects: lift, settle, shadows, the CTA pill (shared by every scene) ─ */
.fyf .gr-room .gr-obj,
.fyf .gr-room .gr-lift,
.fyf .gr-room .gr-in { transform-style: preserve-3d; }
.fyf .gr-room .gr-lift,
.fyf .gr-room .gr-in { position: absolute; inset: 0; }
.fyf .gr-room .gr-lift { transition: translate .45s cubic-bezier(.34,1.56,.64,1); }
.fyf .gr-room .gr-obj:hover .gr-lift,
.fyf .gr-room .gr-obj:focus-within .gr-lift { translate: 0 -10px; }
.fyf .gr-room .gr-mounted:hover .gr-lift,
.fyf .gr-room .gr-mounted:focus-within .gr-lift { translate: none; }
.fyf .gr-room .gr-mounted .gr-in { animation: none; }
.fyf .gr-room .gr-lift--flow,
.fyf .gr-room .gr-in--flow { position: relative; inset: auto; }

.fyf .gr-room .gr-frame {
  position: relative;
  box-sizing: border-box;
  padding: 6px;
  background: #f6f6f4;
  border: 3px solid #30202d;
  border-radius: 14px;
  box-shadow: inset 3px 3px 0 #ffffff, inset -3px -3px 0 #c3b9c0, 8px 8px 0 rgba(48,32,45,.55);
  transition: box-shadow .3s ease;
}
.fyf .gr-room .gr-obj:hover .gr-frame,
.fyf .gr-room .gr-obj:focus-within .gr-frame {
  box-shadow: inset 3px 3px 0 #ffffff, inset -3px -3px 0 #c3b9c0, 0 0 0 5px #faca16, 8px 8px 0 rgba(48,32,45,.55);
}
.fyf .gr-room--backyard .gr-frame {
  background: #4a3340;
  box-shadow: inset 3px 3px 0 #5f4757, inset -3px -3px 0 #30202d, 8px 8px 0 rgba(20,12,24,.6), 0 0 60px rgba(250,202,22,.4);
}
.fyf .gr-room--backyard .gr-obj:hover .gr-frame,
.fyf .gr-room--backyard .gr-obj:focus-within .gr-frame {
  box-shadow: inset 3px 3px 0 #5f4757, inset -3px -3px 0 #30202d, 0 0 0 5px #faca16, 8px 8px 0 rgba(20,12,24,.6), 0 0 80px rgba(250,202,22,.6);
}
.fyf .gr-room--garage .gr-frame {
  background: #5a4855;
  box-shadow: inset 3px 3px 0 #74606e, inset -3px -3px 0 #3d2b38, 8px 8px 0 rgba(48,32,45,.5), 0 0 44px rgba(250,202,22,.28);
}
.fyf .gr-room--garage .gr-obj:hover .gr-frame,
.fyf .gr-room--garage .gr-obj:focus-within .gr-frame {
  box-shadow: inset 3px 3px 0 #74606e, inset -3px -3px 0 #3d2b38, 0 0 0 5px #faca16, 8px 8px 0 rgba(48,32,45,.5), 0 0 60px rgba(250,202,22,.45);
}

.fyf .gr-room .gr-sh {
  position: absolute;
  bottom: 1px;
  transform-origin: 50% 100%;
  pointer-events: none;
  animation: fyf-gr-fade .9s ease-out .2s both;
}
.fyf .gr-room .gr-sh > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: scale .45s cubic-bezier(.34,1.56,.64,1), opacity .45s ease;
}
.fyf .gr-room .gr-obj:hover .gr-sh > svg,
.fyf .gr-room .gr-obj:focus-within .gr-sh > svg { scale: .9; opacity: .7; }
.fyf .gr-room .gr-cast { fill: var(--gr-sh); opacity: var(--gr-cast-a); }
.fyf .gr-room .gr-ao { fill: var(--gr-sh); opacity: var(--gr-ao-a); }

.fyf .gr-room .gr-cta {
  position: absolute;
  left: 50%;
  white-space: nowrap;
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 15px;
  line-height: normal;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #30202d;
  background: #f97fbd;
  border: 3px solid #30202d;
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: 4px 4px 0 #30202d;
  transition: background-color .2s ease, translate .12s ease, box-shadow .12s ease;
}
.fyf .gr-room .gr-obj:hover .gr-cta,
.fyf .gr-room .gr-obj:focus-within .gr-cta { background: #faca16; }
.fyf .gr-room .gr-cta:active { translate: 3px 3px; box-shadow: 1px 1px 0 #30202d; }
/* Tripled so it outranks games.css's charcoal link ring on .games-shell. */
.fyf .gr-room.gr-room.gr-room .gr-obj a:focus-visible,
.fyf .gr-room.gr-room.gr-room .gr-obj button:focus-visible,
.fyf .gr-room.gr-room.gr-room a.gr-obj:focus-visible {
  outline: 4px solid #faca16;
  outline-offset: 4px;
  border-radius: 6px;
}

/* ── Entrance and idle loops ────────────────────────────────────────────── */
.fyf .gr-room .gr-in { animation: fyf-gr-settle .8s cubic-bezier(.34,1.56,.64,1) both; }
.fyf .gr-room .gr-in--1 { animation-delay: .1s; }
.fyf .gr-room .gr-in--2 { animation-delay: .25s; }
.fyf .gr-room .gr-in--3 { animation-delay: .4s; }
.fyf .gr-room .gr-in--4 { animation-delay: .55s; }
.fyf .gr-room .gr-power { animation: fyf-gr-power .75s ease-out .35s both; }
.fyf .gr-room .gr-flicker { animation: fyf-gr-flicker 1.1s linear .5s both; }
.fyf .gr-room .gr-bulb { animation: fyf-gr-twinkle 2.3s ease-in-out infinite; }
.fyf .gr-room .gr-bulb:nth-of-type(2n) { animation-duration: 3.1s; animation-delay: -.7s; }
.fyf .gr-room .gr-bulb:nth-of-type(3n) { animation-duration: 4.3s; animation-delay: -1.9s; }
.fyf .gr-room .gr-bulb:nth-of-type(5n) { animation-duration: 2.9s; animation-delay: -2.6s; }
.fyf .gr-room .gr-live { animation: fyf-gr-blink 1.4s steps(2) infinite; }
.fyf .gr-room .gr-press { animation: fyf-gr-blink 1.1s steps(2) infinite; }
.fyf .gr-room .gr-roll { animation: fyf-gr-roll 7s linear infinite; }
.fyf .gr-room .gr-chase { animation: fyf-gr-chase .9s steps(3) infinite; }
.fyf .gr-room .gr-band { animation: fyf-gr-band 5.3s linear infinite; }
.fyf .gr-room .gr-glare {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -40%;
  width: 24%;
  background: linear-gradient(90deg, rgba(246,246,244,0), rgba(246,246,244,.16), rgba(246,246,244,0));
  transform: skewX(-18deg);
  pointer-events: none;
  animation: fyf-gr-glare 7.7s ease-in-out 1.6s infinite;
}
.fyf .gr-room .gr-coin { animation: fyf-gr-coin 2.6s ease-in-out infinite; }
.fyf .gr-room .gr-flag { animation: fyf-gr-flag 1.7s ease-in-out infinite; transform-box: fill-box; transform-origin: 0 50%; }

/* Kick and toss: the controller swaps a/b on each click so the run replays. */
.fyf .gr-room .gr-ball-body { display: block; width: 100%; height: 100%; rotate: -12deg; }
.fyf .gr-room .gr-kick-a .gr-ball-body { animation: fyf-gr-kick-a 1.5s; }
.fyf .gr-room .gr-kick-b .gr-ball-body { animation: fyf-gr-kick-b 1.5s; }
.fyf .gr-room .gr-kick-a .gr-ball-sh { animation: fyf-gr-bsh-a 1.5s; }
.fyf .gr-room .gr-kick-b .gr-ball-sh { animation: fyf-gr-bsh-b 1.5s; }
.fyf .gr-room .gr-bag {
  position: absolute;
  left: 50%;
  top: 0;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  opacity: 0;
  pointer-events: none;
}
.fyf .gr-room .gr-bag > svg { display: block; }
.fyf .gr-room .gr-toss-a .gr-bag { animation: fyf-gr-toss-a 1.1s both; }
.fyf .gr-room .gr-toss-b .gr-bag { animation: fyf-gr-toss-b 1.3s both; }
.fyf .gr-room .gr-pop {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: #30202d;
  background: #faca16;
  border: 3px solid #30202d;
  border-radius: 999px;
  padding: 5px 12px;
  box-shadow: 3px 3px 0 #30202d;
}
.fyf .gr-room .gr-toss-a .gr-pop--1 { animation: fyf-gr-pop 1s ease-out .8s both; }
.fyf .gr-room .gr-toss-b .gr-pop--3 { animation: fyf-gr-pop 1s ease-out 1.1s both; }

/* ── Scene effects ──────────────────────────────────────────────────────── */
/* Front yard, daytime: lights are off in daylight, so no twinkle. */
.fyf .gr-room--front_yard .gr-bulb { animation: none; }
.fyf .gr-room--front_yard .gr-smoke { animation: fyf-gr-smoke 6s ease-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.fyf .gr-room--front_yard .gr-smoke:nth-of-type(2) { animation-delay: 2s; }
.fyf .gr-room--front_yard .gr-smoke:nth-of-type(3) { animation-delay: 4s; }
.fyf .gr-room--front_yard .gr-sway { animation: fyf-gr-sway 7.3s ease-in-out infinite; transform-origin: 0 0; }
.fyf .gr-room--front_yard .gr-leaf { animation: fyf-gr-fall 11s linear infinite; }
.fyf .gr-room--front_yard .gr-drift { animation: fyf-gr-drift 70s ease-in-out infinite alternate; }

/* Backyard at dusk: the fire, the cabinet and the string lights are the only lights. */
.fyf .gr-room--backyard .gr-bulb { filter: drop-shadow(0 0 9px currentColor); }
.fyf .gr-room--backyard .gr-star { animation: fyf-gr-twinkle 3.2s ease-in-out infinite; }
.fyf .gr-room--backyard .gr-star:nth-of-type(2n) { animation-duration: 4.1s; animation-delay: -1.1s; }
.fyf .gr-room--backyard .gr-star:nth-of-type(3n) { animation-duration: 2.7s; animation-delay: -2.1s; }
.fyf .gr-room--backyard .gr-swing { animation: fyf-gr-swing 5.3s ease-in-out infinite; transform-origin: 150px -32px; }
.fyf .gr-room--backyard .gr-flame { animation: fyf-gr-flame .8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.fyf .gr-room--backyard .gr-glow { animation: fyf-gr-glow-dusk 1.7s ease-in-out infinite alternate; }
.fyf .gr-room--backyard .gr-spark { animation: fyf-gr-spark 3s ease-out infinite; }
.fyf .gr-room--backyard .gr-fly { animation: fyf-gr-fly 6.1s ease-in-out infinite; }
.fyf .gr-room--backyard .gr-fly:nth-of-type(2n) { animation-duration: 7.3s; }
.fyf .gr-room--backyard .gr-fly:nth-of-type(3n) { animation-duration: 5.3s; }

/* Garage rec room: the floor lamp is the warm light; dust floats in it. */
.fyf .gr-room--garage .gr-bulb { filter: drop-shadow(0 0 7px currentColor); }
.fyf .gr-room--garage .gr-glow { animation: fyf-gr-glow-lamp 3.1s ease-in-out infinite alternate; }
.fyf .gr-room--garage .gr-mote { animation: fyf-gr-mote 9s ease-in-out infinite; }
.fyf .gr-room--garage .gr-mote:nth-of-type(2n) { animation-duration: 11.3s; animation-delay: -3s; }
.fyf .gr-room--garage .gr-mote:nth-of-type(3n) { animation-duration: 7.7s; animation-delay: -5s; }

.fyf .gr-room .gr-hang { animation: fyf-gr-hang-in 1.6s ease-out .1s both, fyf-gr-hang-idle 7.3s ease-in-out 1.7s infinite; }

/* ── The Games sign ─────────────────────────────────────────────────────── */
.fyf .gr-room .gr-sign--yard {
  position: absolute;
  left: -30px;
  bottom: 0;
  width: 240px;
  height: 170px;
  transform: translateZ(-520px);
  transform-style: preserve-3d;
}
.fyf .gr-room .gr-sign--yard .gr-sign__shadow { left: 60px; width: 180px; height: 70px; transform: translateZ(35px) rotateX(90deg); }
.fyf .gr-room .gr-sign__post {
  position: absolute;
  left: 114px;
  bottom: 0;
  width: 12px;
  height: 110px;
  box-sizing: border-box;
  background: #d9a77f;
  border: 3px solid #30202d;
  box-shadow: inset 3px 0 0 #ecc4a2;
}
.fyf .gr-room .gr-sign__board {
  box-sizing: border-box;
  padding: 4px 22px 0;
  background: #fadcc2;
  border: 3px solid #30202d;
  border-radius: 8px;
  box-shadow: inset 3px 3px 0 #fdeee2, inset -3px -3px 0 #f2c9a6, 6px 6px 0 #30202d;
}
.fyf .gr-room .gr-sign--yard .gr-sign__board { position: absolute; left: 0; bottom: 74px; rotate: -3deg; }
.fyf .gr-room .gr-sign__title {
  margin: 0;
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 76px;
  line-height: 1;
  letter-spacing: normal;
  color: #30202d;
}
.fyf .gr-room .gr-sign--hung {
  position: absolute;
  left: 20px;
  top: 384px;
  transform-origin: 50% -34px;
  transform: translateZ(-616px);
}
.fyf .gr-room--garage .gr-sign--hung { top: 222px; }
.fyf .gr-room .gr-sign__nail {
  position: absolute;
  left: 50%;
  top: -40px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #84737f;
  border: 2px solid #30202d;
}

/* ── The fRank Open scoreboard ──────────────────────────────────────────── */
.fyf .gr-room .gr-scoreboard {
  position: absolute;
  display: block;
  left: 500px;
  bottom: 112px;
  width: 400px;
  transform: translateZ(-614px);
  color: #30202d;
  text-decoration: none;
}
.fyf .gr-room--backyard .gr-scoreboard { left: 400px; bottom: 250px; }
.fyf .gr-room--garage .gr-scoreboard { left: 400px; bottom: 285px; }
.fyf .gr-room .gr-scoreboard__shadow { bottom: -249px; left: 0; width: 400px; height: 60px; transform: translateZ(30px) rotateX(90deg); }
.fyf .gr-room .gr-scoreboard__screw {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #84737f;
}
.fyf .gr-room .gr-scoreboard__screw--tl { left: 5px; top: 5px; }
.fyf .gr-room .gr-scoreboard__screw--tr { right: 5px; top: 5px; }
.fyf .gr-room .gr-scoreboard__screw--bl { left: 5px; bottom: 5px; }
.fyf .gr-room .gr-scoreboard__screw--br { right: 5px; bottom: 5px; }
.fyf .gr-room .gr-scoreboard__posts {
  position: absolute;
  left: 40px;
  right: 40px;
  top: 100%;
  height: 250px;
  border-left: 10px solid #4a3340;
  border-right: 10px solid #4a3340;
  box-shadow: -3px 0 0 #30202d, 3px 0 0 #30202d, inset 3px 0 0 #30202d, inset -3px 0 0 #30202d;
}
.fyf .gr-room .gr-scoreboard__wires {
  position: absolute;
  left: 60px;
  right: 60px;
  bottom: 100%;
  height: 70px;
  border-left: 2px solid #30202d;
  border-right: 2px solid #30202d;
}
.fyf .gr-room .gr-scoreboard__screen {
  position: relative;
  background: #30202d;
  border-radius: 8px;
  padding: 12px 14px 10px;
  color: #faca16;
  font-family: var(--font-subhead);
  font-weight: 700;
  letter-spacing: .06em;
  overflow: hidden;
}
.fyf .gr-room .gr-scoreboard__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.fyf .gr-room .gr-scoreboard__name {
  margin: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: .02em;
  color: #fadcc2;
}
.fyf .gr-room .gr-scoreboard__week {
  flex: none;
  font-size: 11px;
  color: #f97fbd;
  text-transform: uppercase;
}
.fyf .gr-room .gr-scoreboard__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f046a0;
  margin-right: 5px;
}
.fyf .gr-room .gr-scoreboard__rows {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border-top: 2px solid rgba(250,202,22,.4);
  font-size: 15px;
  text-transform: uppercase;
}
/* Names wrap; they are never cut short. */
.fyf .gr-room .gr-scoreboard__row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(250,202,22,.3);
}
.fyf .gr-room .gr-scoreboard__row:last-child { border-bottom: 0; }
.fyf .gr-room .gr-scoreboard__label { min-width: 0; overflow-wrap: anywhere; }
.fyf .gr-room .gr-scoreboard__pts { color: #fadcc2; }
.fyf .gr-room .gr-scoreboard__row--mine {
  padding: 5px 14px;
  margin: 0 -14px;
  background: #faca16;
  color: #30202d;
}
.fyf .gr-room .gr-scoreboard__row--mine .gr-scoreboard__pts { color: #30202d; }
.fyf .gr-room .gr-scoreboard__message {
  margin: 10px 0 0;
  padding: 10px 0 6px;
  border-top: 2px solid rgba(250,202,22,.4);
  font-size: 18px;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.fyf .gr-room .gr-scoreboard__message small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #fadcc2;
}
.fyf .gr-room .gr-scoreboard__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(transparent 1.1px, rgba(48,32,45,.55) 1.5px);
  background-size: 4px 4px;
  pointer-events: none;
}
.fyf .gr-room .gr-scoreboard__cta { top: calc(100% + 16px); transform: translateX(-50%); }

/* ── Cornhole board and its stake sign ──────────────────────────────────── */
.fyf .gr-room .gr-cornhole {
  position: absolute;
  left: 230px;
  bottom: 0;
  width: 190px;
  height: 420px;
  transform-origin: 50% 100%;
  transform: translateZ(-150px) rotateY(14deg);
}
.fyf .gr-room .gr-cornhole__shadow { left: -110px; width: 400px; height: 470px; transform: translateZ(40px) rotateX(90deg); }
.fyf .gr-room .gr-cornhole__deck {
  position: absolute;
  left: 0;
  bottom: 28px;
  width: 190px;
  height: 380px;
  transform-origin: 50% 100%;
  transform: rotateX(79.8deg);
  transform-style: preserve-3d;
}
.fyf .gr-room .gr-cornhole__leg {
  position: absolute;
  top: 0;
  width: 12px;
  height: 92px;
  box-sizing: border-box;
  border: 3px solid #30202d;
  transform-origin: 50% 0;
  transform: rotateX(-79.8deg);
}
.fyf .gr-room .gr-cornhole__leg--l { left: 22px; background: #b98a66; }
.fyf .gr-room .gr-cornhole__leg--r { left: 156px; background: #a87a58; }
.fyf .gr-room .gr-cornhole__side {
  position: absolute;
  top: 0;
  width: 28px;
  height: 380px;
  box-sizing: border-box;
  border: 3px solid #30202d;
}
.fyf .gr-room .gr-cornhole__side--l { left: 0; background: #e2ad83; transform-origin: 0 50%; transform: rotateY(90deg); }
.fyf .gr-room .gr-cornhole__side--r { right: 0; background: #b98a66; transform-origin: 100% 50%; transform: rotateY(-90deg); }
.fyf .gr-room .gr-cornhole__front {
  position: absolute;
  left: 0;
  top: 100%;
  width: 190px;
  height: 28px;
  box-sizing: border-box;
  background: #cf9a72;
  border: 3px solid #30202d;
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
}
.fyf .gr-room .gr-cornhole__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: #fadcc2;
  border: 4px solid #30202d;
  border-radius: 3px;
}
.fyf .gr-room .gr-pop--1 { left: 70px; bottom: 111px; transform: translateZ(-185px) rotateY(-14deg); }
.fyf .gr-room .gr-pop--3 { left: 70px; bottom: 140px; transform: translateZ(-304px) rotateY(-14deg); }

.fyf .gr-room .gr-stake {
  position: absolute;
  left: 430px;
  bottom: 0;
  width: 130px;
  height: 120px;
  transform: translateZ(-30px);
  transform-style: preserve-3d;
}
.fyf .gr-room .gr-stake__shadow { left: 40px; width: 80px; height: 40px; transform: translateZ(20px) rotateX(90deg); }
.fyf .gr-room .gr-stake__post {
  position: absolute;
  left: 59px;
  bottom: 0;
  width: 12px;
  height: 84px;
  box-sizing: border-box;
  background: #d9a77f;
  border: 3px solid #30202d;
  box-shadow: inset 3px 0 0 #ecc4a2;
}
.fyf .gr-room--garage .gr-stake__post { bottom: 16px; height: 70px; }
.fyf .gr-room .gr-stake__pot {
  position: absolute;
  left: 45px;
  bottom: 0;
  width: 40px;
  height: 22px;
  box-sizing: border-box;
  background: #d9805c;
  border: 3px solid #30202d;
  border-radius: 4px 4px 8px 8px;
  box-shadow: inset 3px 3px 0 #e89a7a;
}
.fyf .gr-room .gr-stake__label {
  position: absolute;
  left: 0;
  top: 0;
  width: 130px;
  margin: 0;
  box-sizing: border-box;
  padding: 7px 8px 6px;
  background: #fadcc2;
  border: 3px solid #30202d;
  border-radius: 6px;
  box-shadow: inset 2px 2px 0 #fdeee2, 4px 4px 0 #30202d;
  rotate: 4deg;
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: #30202d;
}

/* ── Putt Putt Hike cabinet: standing, facing you, at 74% ───────────────── */
.fyf .gr-room .gr-cabinet {
  position: absolute;
  left: 1010px;
  bottom: 0;
  width: 300px;
  height: 540px;
  transform: translateZ(-250px);
}
.fyf .gr-room .gr-cabinet__body {
  position: absolute;
  left: 20px;
  bottom: 0;
  width: 260px;
  height: 529px;
  transform-origin: 50% 100%;
  transform: rotateY(-8deg) scale3d(.74, .74, .74);
  transform-style: preserve-3d;
}
.fyf .gr-room .gr-cabinet__shadow { left: -40px; width: 560px; height: 560px; transform: translateZ(160px) rotateX(90deg); }
.fyf .gr-room .gr-cabinet__top {
  position: absolute;
  left: 0;
  bottom: 529px;
  width: 260px;
  height: 127px;
  box-sizing: border-box;
  background: #6aa9de;
  border: 4px solid #30202d;
  transform-origin: 50% 100%;
  transform: translateZ(-73px) rotateX(90deg);
}
.fyf .gr-room .gr-cabinet__marquee {
  position: absolute;
  left: 0;
  bottom: 459px;
  width: 260px;
  height: 70px;
  box-sizing: border-box;
  transform: translateZ(-73px);
  background: repeating-conic-gradient(from 0deg at 50% 120%, #5197d2 0 8deg, #3576ac 8deg 16deg);
  border: 3px solid #30202d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fyf .gr-room--backyard .gr-cabinet__marquee { box-shadow: 0 0 34px rgba(250,202,22,.5); }
.fyf .gr-room--garage .gr-cabinet__marquee { box-shadow: 0 0 26px rgba(250,202,22,.35); }
.fyf .gr-room .gr-cabinet__marquee-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(250,202,22,.35), transparent 70%);
}
.fyf .gr-room--backyard .gr-cabinet__marquee-glow { background: radial-gradient(ellipse at 50% 55%, rgba(250,202,22,.45), transparent 70%); }
.fyf .gr-room--garage .gr-cabinet__marquee-glow { background: radial-gradient(ellipse at 50% 55%, rgba(250,202,22,.4), transparent 70%); }
.fyf .gr-room .gr-cabinet__chase {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 6px;
  background-image: radial-gradient(circle, #faca16 2.5px, transparent 3px), radial-gradient(circle, #f6f6f4 2.5px, transparent 3px);
  background-size: 24px 6px, 24px 6px;
  background-position: 0 0, 12px 0;
}
.fyf .gr-room .gr-cabinet__chase--top { top: 4px; }
.fyf .gr-room .gr-cabinet__chase--bottom { bottom: 4px; }
.fyf .gr-room .gr-cabinet__putt {
  position: relative;
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  color: #f6f6f4;
  text-shadow: 2px 2px 0 #30202d;
  text-transform: uppercase;
  line-height: 1;
}
.fyf .gr-room .gr-cabinet__hike {
  position: relative;
  font-family: var(--font-spice);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: .04em;
  color: #faca16;
  text-shadow: 3px 3px 0 #30202d;
  text-transform: uppercase;
  line-height: 1;
}
.fyf .gr-room .gr-cabinet__bezel {
  position: absolute;
  left: 0;
  bottom: 262px;
  width: 260px;
  height: 200px;
  box-sizing: border-box;
  transform-origin: 50% 100%;
  transform: translateZ(-66px) rotateX(10deg);
  background: #5197d2;
  border: 3px solid #30202d;
  padding: 12px;
  box-shadow: inset 3px 3px 0 rgba(246,246,244,.28), inset -3px -3px 0 rgba(48,32,45,.2);
}
.fyf .gr-room .gr-cabinet__screen {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: repeating-linear-gradient(90deg, #1f7031 0 22px, #1d6b2e 22px 44px);
  border: 5px solid #30202d;
  border-radius: 16px / 20px;
  overflow: hidden;
}
.fyf .gr-room--backyard .gr-cabinet__screen { box-shadow: 0 0 30px rgba(47,148,71,.7); }
.fyf .gr-room--garage .gr-cabinet__screen { box-shadow: 0 0 22px rgba(47,148,71,.5); }
.fyf .gr-room .gr-cabinet__press {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fadcc2;
}
.fyf .gr-room .gr-cabinet__band {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(246,246,244,.08), transparent);
}
.fyf .gr-room .gr-cabinet__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(48,32,45,.16) 3px 4px), radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(48,32,45,.45) 100%), linear-gradient(120deg, rgba(246,246,244,.22) 0 18%, transparent 18.5%);
}
.fyf .gr-room .gr-cabinet__deck {
  position: absolute;
  left: 0;
  bottom: 210px;
  width: 260px;
  height: 84px;
  box-sizing: border-box;
  transform-origin: 50% 100%;
  transform: rotateX(52deg);
  background: #6aa9de;
  border: 3px solid #30202d;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 16px;
  box-shadow: inset 0 4px 0 rgba(246,246,244,.35);
}
.fyf .gr-room .gr-cabinet__button { border-radius: 50%; border: 3px solid #30202d; }
.fyf .gr-room .gr-cabinet__button--white { width: 26px; height: 26px; background: #f6f6f4; box-shadow: inset -4px -4px 0 #c3b9c0, 0 8px 0 #30202d; }
.fyf .gr-room .gr-cabinet__button--cream { width: 30px; height: 30px; background: #fadcc2; box-shadow: inset 4px 4px 0 #fdeee2; }
.fyf .gr-room .gr-cabinet__button--pink { width: 30px; height: 30px; background: #f97fbd; box-shadow: inset 4px 4px 0 #fbb0d6; }
.fyf .gr-room .gr-cabinet__stick {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1f7031;
  border: 4px solid #30202d;
  box-shadow: inset 5px 5px 0 #2f9447, 0 0 0 5px #30202d, 0 0 0 9px #faca16;
}
.fyf .gr-room .gr-cabinet__base {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 260px;
  height: 210px;
  box-sizing: border-box;
  background: #5197d2;
  border: 3px solid #30202d;
  box-shadow: inset 3px 3px 0 rgba(246,246,244,.25), inset 0 -30px 0 #30202d;
}
.fyf .gr-room .gr-cabinet__coins {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 86px;
  height: 66px;
  box-sizing: border-box;
  background: #30202d;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: inset 0 0 0 3px #4a3340;
}
.fyf .gr-room .gr-cabinet__coin {
  width: 12px;
  height: 34px;
  border-radius: 4px;
  background: #faca16;
  box-shadow: 0 0 10px rgba(250,202,22,.7);
}
.fyf .gr-room .gr-cabinet__coin--late { animation-delay: -1.3s; }
.fyf .gr-room .gr-cabinet__free {
  position: absolute;
  left: 124px;
  top: 28px;
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fadcc2;
  line-height: 1.15;
}
.fyf .gr-room .gr-cabinet__cta { bottom: 16px; transform: translateZ(140px) translateX(-50%); }

/* ── Football, nestled in the grass (on the rug in the garage) ──────────── */
.fyf .gr-room .gr-football {
  position: absolute;
  left: 850px;
  bottom: 0;
  width: 84px;
  height: 52px;
  transform: translateZ(-110px);
}
.fyf .gr-room .gr-football__shadow { left: -14px; width: 120px; height: 50px; transform: translateZ(22px) rotateX(90deg); }
.fyf .gr-room .gr-football__button { position: absolute; left: 0; bottom: -2px; width: 84px; height: 52px; }
.fyf .gr-room--garage .gr-football__button { bottom: -5px; }

/* ── Phone: scaled stage, swipe between the objects ─────────────────────── */
/* Marker x = each object's centre projected through the 1150px perspective. */
.fyf .gr-room .gr-room__snap--sign { left: calc(301px * var(--gr-scale)); }
.fyf .gr-room .gr-room__snap--cornhole { left: calc(361px * var(--gr-scale)); }
.fyf .gr-room .gr-room__snap--scoreboard { left: calc(614px * var(--gr-scale)); }
.fyf .gr-room--front_yard .gr-room__snap--sign { left: calc(261px * var(--gr-scale)); }
.fyf .gr-room--front_yard .gr-room__snap--scoreboard { left: calc(679px * var(--gr-scale)); }
.fyf .gr-room .gr-room__snap--football { left: calc(870px * var(--gr-scale)); }
.fyf .gr-room .gr-room__snap--cabinet { left: calc(1067px * var(--gr-scale)); }

/* Jump buttons and the readable standings copy: phone only. */
.fyf .gr-room__jumps,
.fyf .games-home__standings { display: none; }

@media (max-width: 759px) {
  /* One row; on a very narrow screen it scrolls sideways rather than wrap. */
  .fyf .gr-room__jumps {
    display: flex;
    justify-content: safe center;
    gap: 6px;
    padding: var(--space-3, 12px) var(--space-3, 12px) var(--space-1, 4px);
    overflow-x: auto;
    scrollbar-width: none;
  }
  /* Doubled class: .fyf .gr-room button resets borders and padding. */
  .fyf .gr-room .gr-room__jump.gr-room__jump {
    flex: none;
    min-height: 44px;
    padding: 0 10px;
    font-family: var(--font-subhead);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--fyf-charcoal);
    background: var(--fyf-cream-tint);
    border: var(--stroke-chip, 2px) solid var(--fyf-charcoal);
    border-radius: var(--radius-pill, 999px);
    cursor: pointer;
  }
  .fyf .gr-room .gr-room__jump.gr-room__jump[aria-pressed="true"] {
    background: var(--fyf-yellow);
  }
  .fyf .gr-room .gr-room__jump:focus-visible {
    outline: 3px solid var(--fyf-pink);
    outline-offset: 2px;
  }
  .fyf .games-home__standings {
    display: grid;
    gap: var(--space-2, 8px);
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-body);
    font-size: var(--text-md, 16px);
  }
  .fyf .games-home__standing {
    display: grid;
    grid-template-columns: 2ch 1fr auto;
    gap: var(--space-3, 12px);
    align-items: baseline;
    padding-bottom: var(--space-2, 8px);
    border-bottom: 1px dashed var(--fyf-cream);
  }
  .fyf .games-home__standing-name { overflow-wrap: anywhere; font-weight: 700; }
  .fyf .games-home__standing--mine { color: var(--fyf-yellow); }
}

@media (max-width: 759px) {
  .fyf .gr-room {
    --gr-scale: .67;
    width: auto;
    margin: 0 calc(-1 * clamp(16px, 4vw, 40px));
  }
  .fyf .games-shell:has(> .games-home) { padding-top: 0; }
  .fyf .gr-room__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    /* The tabs under the room are the swipe's affordance; a classic
       scrollbar track only drew a grey band along the room's bottom edge. */
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    border-radius: 0;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Backdrops: ported from the mockups one element at a time (the class
   numbers follow the artboard markup order) ─────────────────────────────── */
/* front_yard */
.fyf .gr-room--front_yard .gr-fy-1{position: absolute;left: -400px;right: -400px;bottom: -140px;height: 800px;transform: translateZ(-880px)}
.fyf .gr-room--front_yard .gr-fy-2{position: absolute;left: -200px;right: -200px;bottom: 0;height: 600px;transform: translateZ(-620px)}
.fyf .gr-room--front_yard .gr-fy-3{position: absolute;left: -200px;bottom: 0;width: 620px;height: 150px;transform-origin: 0 50%;transform: rotateY(-90deg) translateX(-620px);background: radial-gradient(circle at 50% 100%, #1f7031 0 58px, transparent 59px) 0 100% / 110px 120px repeat-x, linear-gradient(transparent 0 78px, #f6f6f4 78px 90px, transparent 90px), repeating-linear-gradient(90deg, #f6f6f4 0 30px, transparent 30px 44px) 0 100% / 100% 128px no-repeat}
.fyf .gr-room--front_yard .gr-fy-4{position: absolute;right: -200px;bottom: 0;width: 620px;height: 150px;transform-origin: 100% 50%;transform: rotateY(90deg) translateX(620px);background: radial-gradient(circle at 50% 100%, #155321 0 58px, transparent 59px) 0 100% / 110px 120px repeat-x, linear-gradient(transparent 0 78px, #e6e0e4 78px 90px, transparent 90px), repeating-linear-gradient(90deg, #e6e0e4 0 30px, transparent 30px 44px) 0 100% / 100% 128px no-repeat}
.fyf .gr-room--front_yard .gr-fy-5{position: absolute;left: -200px;right: -200px;bottom: 0;height: 620px;transform-origin: 50% 100%;transform: rotateX(90deg);background: repeating-linear-gradient(90deg, #237a37 0 130px, #1f7031 130px 260px)}
.fyf .gr-room--front_yard .gr-fy-6{position: absolute;left: -34px;bottom: 0;width: 110px;height: 190px;transform: translateZ(-96px);transform-style: preserve-3d}
.fyf .gr-room--front_yard .gr-fy-7{left: 20px;width: 90px;height: 50px;transform: translateZ(25px) rotateX(90deg)}
.fyf .gr-room--front_yard .gr-fy-8{position: absolute;left: -90px;top: -70px;width: 560px;height: 250px;transform: translateZ(-120px)}
.fyf .gr-room--front_yard .gr-fy-9{position: absolute;left: 240px;top: 110px;width: 18px;height: 10px;border-radius: 50%;background: #ff7142;border: 1.5px solid #30202d;transform: translateZ(-140px)}
.fyf .gr-room--front_yard .gr-fy-10{position: absolute;left: 110px;top: 90px;width: 18px;height: 10px;border-radius: 50%;background: #faca16;border: 1.5px solid #30202d;transform: translateZ(-200px);animation-delay: 4s}
.fyf .gr-room--front_yard .gr-fy-11{position: absolute;left: 330px;top: 120px;width: 16px;height: 9px;border-radius: 50%;background: #faca16;border: 1.5px solid #30202d;transform: translateZ(-260px);animation-delay: 7.5s}
.fyf .gr-room--front_yard .gr-fy-12{position: absolute;inset: 0;pointer-events: none;background: radial-gradient(circle at 0% 0%, rgba(250,202,22,.3), rgba(250,202,22,0) 42%), radial-gradient(ellipse 80% 75% at 50% 45%, rgba(48,32,45,0) 62%, rgba(48,32,45,.2) 100%)}
.fyf .gr-room--front_yard .gr-fy-13{position: absolute;inset: 0;pointer-events: none;opacity: .09;mix-blend-mode: multiply}
/* backyard */
.fyf .gr-room--backyard .gr-by-1{position: absolute;left: -400px;right: -400px;bottom: -140px;height: 800px;transform: translateZ(-880px)}
.fyf .gr-room--backyard .gr-by-2{position: absolute;left: -200px;right: -200px;bottom: 0;height: 330px;box-sizing: border-box;transform: translateZ(-620px);background: linear-gradient(#8f6a57 0 16px, #30202d 16px 19px, transparent 19px), repeating-linear-gradient(90deg, #7a5a4a 0 52px, #30202d 52px 55px);border-top: 3px solid #30202d}
.fyf .gr-room--backyard .gr-by-3{position: absolute;left: 0;right: 0;top: -143px;height: 150px}
.fyf .gr-room--backyard .gr-by-4{position: absolute;left: -200px;bottom: 0;width: 620px;height: 330px;box-sizing: border-box;transform-origin: 0 50%;transform: rotateY(-90deg) translateX(-620px);background: repeating-linear-gradient(90deg, #6e5045 0 52px, #30202d 52px 55px);border-top: 3px solid #30202d}
.fyf .gr-room--backyard .gr-by-5{position: absolute;right: -200px;bottom: 0;width: 620px;height: 330px;box-sizing: border-box;transform-origin: 100% 50%;transform: rotateY(90deg) translateX(620px);background: repeating-linear-gradient(90deg, #5a3f37 0 52px, #30202d 52px 55px);border-top: 3px solid #30202d}
.fyf .gr-room--backyard .gr-by-6{position: absolute;left: -200px;right: -200px;bottom: 0;height: 620px;transform-origin: 50% 100%;transform: rotateX(90deg);background: repeating-linear-gradient(90deg, #155321 0 130px, #1a4a27 130px 260px)}
.fyf .gr-room--backyard .gr-by-7{position: absolute;left: 520px;top: -20px;width: 560px;height: 200px;border-radius: 50%;background: radial-gradient(rgba(250,202,22,.2), transparent 70%)}
.fyf .gr-room--backyard .gr-by-8{position: absolute;left: 850px;top: -10px;width: 480px;height: 330px;border-radius: 50%;background: radial-gradient(rgba(255,113,66,.5), rgba(250,202,22,.14) 45%, transparent 70%)}
.fyf .gr-room--backyard .gr-by-9{position: absolute;left: 700px;bottom: 0;width: 120px;height: 140px;transform: translateZ(-520px)}
.fyf .gr-room--backyard .gr-by-10{position: absolute;left: 960px;bottom: 0;width: 120px;height: 140px;transform: translateZ(-540px) scaleX(-1)}
.fyf .gr-room--backyard .gr-by-11{position: absolute;left: 820px;bottom: 0;width: 150px;height: 150px;transform: translateZ(-470px)}
.fyf .gr-room--backyard .gr-by-12{position: absolute;left: 300px;top: 420px;width: 7px;height: 7px;border-radius: 50%;background: #faca16;box-shadow: 0 0 12px 4px rgba(250,202,22,.7);transform: translateZ(-300px)}
.fyf .gr-room--backyard .gr-by-13{position: absolute;left: 520px;top: 500px;width: 7px;height: 7px;border-radius: 50%;background: #faca16;box-shadow: 0 0 12px 4px rgba(250,202,22,.7);transform: translateZ(-200px);animation-delay: 1.3s}
.fyf .gr-room--backyard .gr-by-14{position: absolute;left: 120px;top: 330px;width: 7px;height: 7px;border-radius: 50%;background: #faca16;box-shadow: 0 0 12px 4px rgba(250,202,22,.7);transform: translateZ(-460px);animation-delay: 2.4s}
.fyf .gr-room--backyard .gr-by-15{position: absolute;left: 900px;top: 360px;width: 7px;height: 7px;border-radius: 50%;background: #faca16;box-shadow: 0 0 12px 4px rgba(250,202,22,.7);transform: translateZ(-380px);animation-delay: 3.1s}
.fyf .gr-room--backyard .gr-by-16{position: absolute;left: 1230px;top: 300px;width: 7px;height: 7px;border-radius: 50%;background: #faca16;box-shadow: 0 0 12px 4px rgba(250,202,22,.7);transform: translateZ(-520px);animation-delay: .6s}
.fyf .gr-room--backyard .gr-by-17{position: absolute;left: 700px;top: 250px;width: 7px;height: 7px;border-radius: 50%;background: #faca16;box-shadow: 0 0 12px 4px rgba(250,202,22,.7);transform: translateZ(-560px);animation-delay: 4s}
.fyf .gr-room--backyard .gr-by-18{position: absolute;inset: 0;pointer-events: none;mix-blend-mode: multiply;background: radial-gradient(ellipse 42% 58% at 74% 72%, rgba(46,30,80,0) 0%, rgba(46,30,80,.34) 100%)}
.fyf .gr-room--backyard .gr-by-19{position: absolute;inset: 0;pointer-events: none;background: radial-gradient(circle at 22% 0%, rgba(253,238,226,.14), rgba(253,238,226,0) 40%), radial-gradient(ellipse 80% 75% at 50% 45%, rgba(20,12,24,0) 55%, rgba(20,12,24,.42) 100%)}
.fyf .gr-room--backyard .gr-by-20{position: absolute;inset: 0;pointer-events: none;opacity: .12;mix-blend-mode: multiply}
/* garage */
.fyf .gr-room--garage .gr-ga-1{position: absolute;left: -200px;right: -200px;bottom: 0;height: 660px;transform: translateZ(-620px);background: linear-gradient(transparent 0 96.5%, #5a4855 96.5% 100%), linear-gradient(transparent 0 70%, rgba(138,75,43,.24) 70% 100%), linear-gradient(transparent 0 69.5%, #30202d 69.5% 70%, transparent 70%), repeating-linear-gradient(90deg, #f2c9a6 0 70px, #e9b48e 70px 73px)}
.fyf .gr-room--garage .gr-ga-2{position: absolute;left: 0;right: 0;top: 6px;height: 120px}
.fyf .gr-room--garage .gr-ga-3{position: absolute;left: 50px;top: 104px;width: 500px;height: 70px}
.fyf .gr-room--garage .gr-ga-4{position: absolute;left: -200px;bottom: 0;width: 620px;height: 660px;transform-origin: 0 50%;transform: rotateY(-90deg) translateX(-620px);background: linear-gradient(transparent 0 96.5%, #4a3340 96.5% 100%), linear-gradient(transparent 0 70%, rgba(138,75,43,.3) 70% 100%), repeating-linear-gradient(90deg, #e2b998 0 70px, #c9a081 70px 73px)}
.fyf .gr-room--garage .gr-ga-5{position: absolute;right: -200px;bottom: 0;width: 620px;height: 660px;transform-origin: 100% 50%;transform: rotateY(90deg) translateX(620px);background: linear-gradient(transparent 0 96.5%, #4a3340 96.5% 100%), linear-gradient(transparent 0 70%, rgba(138,75,43,.3) 70% 100%), repeating-linear-gradient(90deg, #cfa585 0 70px, #b68d6e 70px 73px)}
.fyf .gr-room--garage .gr-ga-6{position: absolute;left: -200px;right: -200px;top: 0;height: 620px;transform-origin: 50% 0;transform: rotateX(-90deg);background: repeating-linear-gradient(90deg, #ead8ca 0 190px, #b89a85 190px 214px)}
.fyf .gr-room--garage .gr-ga-7{position: absolute;left: -200px;right: -200px;bottom: 0;height: 620px;transform-origin: 50% 100%;transform: rotateX(90deg);background: repeating-linear-gradient(0deg, transparent 0 206px, rgba(48,32,45,.35) 206px 208px), repeating-linear-gradient(90deg, #e3b991 0 82px, #b98a66 82px 85px)}
.fyf .gr-room--garage .gr-ga-8{position: absolute;left: 790px;bottom: 0;width: 140px;height: 380px;transform: translateZ(-580px)}
.fyf .gr-room--garage .gr-ga-9{position: absolute;left: 820px;top: 240px;width: 4px;height: 4px;border-radius: 50%;background: #fdeee2;transform: translateZ(-560px)}
.fyf .gr-room--garage .gr-ga-10{position: absolute;left: 880px;top: 300px;width: 3px;height: 3px;border-radius: 50%;background: #fdeee2;transform: translateZ(-540px)}
.fyf .gr-room--garage .gr-ga-11{position: absolute;left: 930px;top: 220px;width: 4px;height: 4px;border-radius: 50%;background: #fdeee2;transform: translateZ(-580px)}
.fyf .gr-room--garage .gr-ga-12{position: absolute;left: 860px;top: 180px;width: 3px;height: 3px;border-radius: 50%;background: #fdeee2;transform: translateZ(-560px)}
.fyf .gr-room--garage .gr-ga-13{position: absolute;left: 960px;top: 290px;width: 3px;height: 3px;border-radius: 50%;background: #fdeee2;transform: translateZ(-520px)}
.fyf .gr-room--garage .gr-ga-14{position: absolute;left: 790px;top: 320px;width: 4px;height: 4px;border-radius: 50%;background: #fdeee2;transform: translateZ(-540px)}
.fyf .gr-room--garage .gr-ga-15{position: absolute;left: 560px;bottom: 0;width: 220px;height: 150px;transform: translateZ(-440px)}
.fyf .gr-room--garage .gr-ga-16{position: absolute;left: 470px;bottom: 0;width: 110px;height: 50px;transform: translateZ(-360px)}
.fyf .gr-room--garage .gr-ga-17{position: absolute;inset: 0;pointer-events: none;background: radial-gradient(circle at 61% 42%, rgba(250,202,22,.16), rgba(250,202,22,0) 30%), radial-gradient(circle at 0% 0%, rgba(253,238,226,.18), rgba(253,238,226,0) 40%), radial-gradient(ellipse 80% 75% at 50% 45%, rgba(48,32,45,0) 60%, rgba(48,32,45,.3) 100%)}
.fyf .gr-room--garage .gr-ga-18{position: absolute;inset: 0;pointer-events: none;opacity: .09;mix-blend-mode: multiply}

/* ── Reduced motion: nothing moves; a toss or kick jumps to its end ─────── */
@media (prefers-reduced-motion: reduce) {
  .fyf .gr-room *,
  .fyf .gr-room *::before,
  .fyf .gr-room *::after { animation: none !important; transition: none !important; }
  .fyf .gr-room .gr-leaf,
  .fyf .gr-room .gr-mote { opacity: 0; }
  .fyf .gr-room .gr-toss-a .gr-bag { opacity: 1; transform: translate3d(-3px,170px,2px) rotate(-338deg); }
  .fyf .gr-room .gr-toss-b .gr-bag { opacity: 0; }
}

/* ── The plain list under the room ──────────────────────────────────────── */
/* ── Game cards beneath the room ──────────────────────────────────────── */
.fyf .games-home__fallback {
  margin-top: var(--space-6, 24px);
}
@media (min-width: 760px) {
  /* As wide as the room above (games--room sets --gr-w on .games-home). */
  .fyf .games-home[style*="--gr-w"] .games-home__fallback {
    width: var(--gr-w);
    margin-inline: calc((100% - var(--gr-w)) / 2);
  }
}
.fyf .games-home__fallback .games-home__list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: stretch;
  gap: var(--space-5, 20px);
  margin-top: 0;
}
/* Eyebrow, title, one line on where things stand, then the button pinned to
   the bottom so cards side by side line their buttons up. Hard shadow down
   and right, like every sticker on the site. */
.fyf .games-home__fallback .games-home__card {
  gap: var(--space-2, 8px);
  padding: var(--space-5, 20px) var(--space-5, 20px) var(--space-5, 20px);
  box-shadow: 5px 5px 0 var(--fyf-charcoal);
}
.fyf .games-home__fallback .games-home__card h2 {
  font-size: var(--text-display-3, 32px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.fyf .games-home__fallback .games-home__card .games-home__eyebrow {
  font-family: var(--font-subhead);
  font-size: var(--text-eyebrow, 12px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fyf-yellow);
}
.fyf .games-home__fallback .games-home__card .games-home__meta {
  font-size: var(--text-md, 16px);
  line-height: 1.4;
  max-width: 40ch;
}
.fyf .games-home__card-foot {
  margin-top: auto;
  padding-top: var(--space-4, 16px);
}
/* The cornhole board's card is a placeholder: cream, dashed, no button. */
.fyf .games-home__fallback .games-home__card--soon {
  background: var(--fyf-cream-tint);
  border-style: dashed;
  box-shadow: none;
}
.fyf .games-home__fallback .games-home__card--soon h2,
.fyf .games-home__fallback .games-home__card--soon .games-home__meta { color: var(--fyf-charcoal); }
.fyf .games-home__fallback .games-home__card--soon .games-home__eyebrow { color: var(--fyf-pink-deep); }

@media (min-width: 760px) {
  .fyf .games-home__fallback .games-home__card--soon { display: none; }
}
@media (max-width: 759px) {
  .fyf .games-home__fallback { margin-top: var(--space-4, 16px); }
  /* A phone shows only the card its tab picked. */
  .fyf .games-home--tabbed .games-home__card:not(.is-current) { display: none; }
}

/* ── Keyframes ──────────────────────────────────────────────────────────── */
@keyframes fyf-gr-fade{from{opacity:0}}
@keyframes fyf-gr-settle{from{translate:0 -26px}to{translate:0 0}}
@keyframes fyf-gr-power{0%{scale:1 .02;filter:brightness(2.4)}35%{scale:1 .02;filter:brightness(2.4)}62%{scale:1 1.03;filter:brightness(1.5)}100%{scale:1 1;filter:brightness(1)}}
@keyframes fyf-gr-flicker{0%{opacity:.15}8%{opacity:1}12%{opacity:.3}20%{opacity:1}26%{opacity:.5}34%,100%{opacity:1}}
@keyframes fyf-gr-twinkle{50%{opacity:.55}}
@keyframes fyf-gr-blink{50%{opacity:.25}}
@keyframes fyf-gr-chase{to{background-position:24px 0,36px 0}}
@keyframes fyf-gr-roll{0%{transform:translate(18px,104px)}22%{transform:translate(58px,74px)}30%{transform:translate(58px,74px)}55%{transform:translate(120px,96px)}63%{transform:translate(120px,96px)}88%{transform:translate(176px,58px)}100%{transform:translate(176px,58px)}}
@keyframes fyf-gr-band{from{translate:0 -60px}to{translate:0 220px}}
@keyframes fyf-gr-glare{0%{translate:0 0}16%,100%{translate:700% 0}}
@keyframes fyf-gr-coin{50%{opacity:.5}}
@keyframes fyf-gr-flag{50%{transform:scaleX(.82) skewY(4deg)}}
@keyframes fyf-gr-kick-a{0%{translate:0 0;rotate:-12deg;scale:1;animation-timing-function:cubic-bezier(.3,0,.6,1)}7%{translate:0 5px;rotate:-12deg;scale:1.1 .86;animation-timing-function:cubic-bezier(.2,.7,.4,1)}13%{translate:6px -40px;rotate:-60deg;scale:.92 1.1;animation-timing-function:cubic-bezier(.25,.6,.45,1)}40%{translate:26px -230px;rotate:-330deg;scale:1;animation-timing-function:cubic-bezier(.55,0,.75,.4)}66%{translate:40px 0;rotate:-560deg;scale:1.12 .84;animation-timing-function:cubic-bezier(.25,.6,.45,1)}76%{translate:30px -46px;rotate:-640deg;scale:.96 1.05;animation-timing-function:cubic-bezier(.55,0,.75,.4)}86%{translate:18px 0;rotate:-700deg;scale:1.06 .94;animation-timing-function:cubic-bezier(.25,.6,.45,1)}91%{translate:10px -10px;rotate:-716deg;scale:1;animation-timing-function:cubic-bezier(.55,0,.75,.4)}95%{translate:4px 0;rotate:-724deg;animation-timing-function:ease-out}100%{translate:0 0;rotate:-732deg;scale:1}}
@keyframes fyf-gr-kick-b{0%{translate:0 0;rotate:-12deg;scale:1;animation-timing-function:cubic-bezier(.3,0,.6,1)}7%{translate:0 5px;rotate:-12deg;scale:1.1 .86;animation-timing-function:cubic-bezier(.2,.7,.4,1)}13%{translate:-6px -40px;rotate:36deg;scale:.92 1.1;animation-timing-function:cubic-bezier(.25,.6,.45,1)}40%{translate:-26px -230px;rotate:306deg;scale:1;animation-timing-function:cubic-bezier(.55,0,.75,.4)}66%{translate:-40px 0;rotate:536deg;scale:1.12 .84;animation-timing-function:cubic-bezier(.25,.6,.45,1)}76%{translate:-30px -46px;rotate:616deg;scale:.96 1.05;animation-timing-function:cubic-bezier(.55,0,.75,.4)}86%{translate:-18px 0;rotate:676deg;scale:1.06 .94;animation-timing-function:cubic-bezier(.25,.6,.45,1)}91%{translate:-10px -10px;rotate:692deg;scale:1;animation-timing-function:cubic-bezier(.55,0,.75,.4)}95%{translate:-4px 0;rotate:700deg;animation-timing-function:ease-out}100%{translate:0 0;rotate:708deg;scale:1}}
@keyframes fyf-gr-bsh-a{0%{scale:1;opacity:1;translate:0 0;animation-timing-function:cubic-bezier(.3,0,.6,1)}7%{scale:1.08;animation-timing-function:cubic-bezier(.2,.7,.4,1)}40%{scale:.45;opacity:.3;translate:26px 0;animation-timing-function:cubic-bezier(.55,0,.75,.4)}66%{scale:1.05;opacity:1;translate:40px 0;animation-timing-function:cubic-bezier(.25,.6,.45,1)}76%{scale:.82;opacity:.75;translate:30px 0;animation-timing-function:cubic-bezier(.55,0,.75,.4)}86%{scale:1;opacity:1;translate:18px 0}91%{scale:.95;translate:10px 0}100%{scale:1;opacity:1;translate:0 0}}
@keyframes fyf-gr-bsh-b{0%{scale:1;opacity:1;translate:0 0;animation-timing-function:cubic-bezier(.3,0,.6,1)}7%{scale:1.08;animation-timing-function:cubic-bezier(.2,.7,.4,1)}40%{scale:.45;opacity:.3;translate:-26px 0;animation-timing-function:cubic-bezier(.55,0,.75,.4)}66%{scale:1.05;opacity:1;translate:-40px 0;animation-timing-function:cubic-bezier(.25,.6,.45,1)}76%{scale:.82;opacity:.75;translate:-30px 0;animation-timing-function:cubic-bezier(.55,0,.75,.4)}86%{scale:1;opacity:1;translate:-18px 0}91%{scale:.95;translate:-10px 0}100%{scale:1;opacity:1;translate:0 0}}
@keyframes fyf-gr-toss-a{0%{opacity:1;transform:translate3d(30px,620px,300px) rotate(0deg) scale(1.15);animation-timing-function:cubic-bezier(.2,.6,.4,1)}45%{transform:translate3d(14px,340px,250px) rotate(-210deg) scale(1.05);animation-timing-function:cubic-bezier(.6,0,.8,.5)}78%{opacity:1;transform:translate3d(2px,190px,2px) rotate(-320deg) scale(1.25,.75);animation-timing-function:cubic-bezier(.2,.7,.4,1)}88%{transform:translate3d(-2px,174px,2px) rotate(-334deg) scale(.95,1.05)}100%{opacity:1;transform:translate3d(-3px,170px,2px) rotate(-338deg) scale(1)}}
@keyframes fyf-gr-toss-b{0%{opacity:1;transform:translate3d(-24px,620px,300px) rotate(0deg) scale(1.15);animation-timing-function:cubic-bezier(.2,.6,.4,1)}40%{transform:translate3d(-12px,330px,260px) rotate(190deg) scale(1.05);animation-timing-function:cubic-bezier(.6,0,.8,.5)}66%{transform:translate3d(-2px,128px,2px) rotate(300deg) scale(1.2,.8);animation-timing-function:cubic-bezier(.3,.5,.5,1)}84%{opacity:1;transform:translate3d(0,50px,2px) rotate(330deg) scale(1)}92%{opacity:1;transform:translate3d(0,49px,-10px) rotate(338deg) scale(.8)}100%{opacity:0;transform:translate3d(0,49px,-40px) rotate(345deg) scale(.5)}}
@keyframes fyf-gr-pop{0%{opacity:0;translate:0 10px;scale:.6}22%{opacity:1;translate:0 -8px;scale:1.12}40%{scale:1}80%{opacity:1;translate:0 -30px}100%{opacity:0;translate:0 -42px}}
@keyframes fyf-gr-smoke{0%{transform:translate(0,0) scale(.5);opacity:0}15%{opacity:.9}100%{transform:translate(26px,-70px) scale(1.5);opacity:0}}
@keyframes fyf-gr-sway{50%{transform:rotate(1.2deg)}}
@keyframes fyf-gr-fall{0%{transform:translate(0,-40px) rotate(0);opacity:0}8%{opacity:1}100%{transform:translate(130px,520px) rotate(420deg);opacity:1}}
@keyframes fyf-gr-drift{to{transform:translateX(140px)}}
@keyframes fyf-gr-swing{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}
@keyframes fyf-gr-flame{to{transform:scale(.92,1.1) skewX(3deg)}}
@keyframes fyf-gr-glow-dusk{to{opacity:.72}}
@keyframes fyf-gr-glow-lamp{to{opacity:.62}}
@keyframes fyf-gr-spark{0%{transform:translate(0,40px);opacity:0}20%{opacity:1}100%{transform:translate(14px,-60px);opacity:0}}
@keyframes fyf-gr-fly{0%,100%{translate:0 0;opacity:.15}25%{translate:18px -22px;opacity:1}50%{translate:40px -6px;opacity:.3}75%{translate:16px 14px;opacity:1}}
@keyframes fyf-gr-mote{0%,100%{translate:0 0;opacity:0}20%{opacity:.9}50%{translate:14px -36px;opacity:.55}80%{opacity:.9}}
@keyframes fyf-gr-hang-in{0%{rotate:-14deg}22%{rotate:9deg}42%{rotate:-5deg}60%{rotate:3deg}80%{rotate:-1deg}100%{rotate:0deg}}
@keyframes fyf-gr-hang-idle{50%{rotate:.8deg}}
