/* ---- Games (/games) ----------------------------------------------------
   The games shell (layouts/games.html.erb): landing page, the Putt Putt Hike
   play screen and its green, the result screen and the leaderboard. Built on
   the FYF foundation tokens only -- no raw hex, no var(--x, #hex) fallbacks
   (spec/views/design_tokens_spec.rb lints this file).

   Every rule is scoped `.fyf .games-*` for two reasons: fyf_foundation.css's
   `.fyf h1`-`h4` and `.fyf p` are (0,1,1) and outrank a bare class, and this
   file also loads app-wide through stylesheet_link_tag :app's expansion, so
   an unscoped rule could collide with an unrelated class elsewhere.

   The layout pins the light theme (the FYF design has no dark variant).
   Phone first: everything fits 360px without horizontal scroll.

   The play and finished-round screens follow the owner's Claude Design board
   "Putt Putt Hike Redesign" (2a, the hole result; 2b, the share scorecard):
   one bordered game frame, see "The game frame" below. The leaderboard page and "How to play" still follow the earlier prototype
   (prototype-nfl-golf.html), whose variables map onto FYF tokens one for one.
   The few colours neither has a token for are defined once on .games-shell
   below, mixed from FYF tokens, never a literal colour. */

/* ── Shell ─────────────────────────────────────────────────────────────── */
.fyf .games-shell {
  /* Prototype colours with no FYF token, mixed from FYF tokens: */
  --games-green-tint: color-mix(in srgb, var(--fyf-green) 16%, var(--fyf-white)); /* --green-tint, the 1-3 stroke result */
  --games-current-cell: color-mix(in srgb, var(--fyf-yellow) 28%, var(--fyf-white)); /* scorecard .cur cell */
  --games-ink-shadow: oklch(from var(--fyf-charcoal) calc(l - 0.1) c h); /* the prototype's near-black offset shadow on ink: charcoal, darker */
  --games-mow-stripe: color-mix(in srgb, var(--fyf-charcoal) 14%, transparent); /* .hole-bar::before stripes */
  --games-ease-snap: cubic-bezier(.4, 0, .2, 1); /* --ease-snap (FYF's own is a different curve) */
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--space-8) clamp(16px, 4vw, 40px) var(--space-12);
  overflow-wrap: anywhere;
}
.fyf .games-shell h1 {
  font-size: clamp(40px, 10vw, 72px);
  line-height: var(--leading-display);
  margin: 0 0 var(--space-4);
}
.fyf .games-shell h2 {
  font-size: clamp(28px, 6.5vw, 44px);
  line-height: var(--leading-heading);
  margin: 0 0 var(--space-3);
}
.fyf .games-shell h3 {
  font-size: clamp(22px, 5vw, 30px);
  line-height: var(--leading-heading);
  margin: var(--space-6) 0 var(--space-2);
}
.fyf .games-shell p { margin: 0 0 var(--space-3); }

/* Buttons: at least 48px tall, and a fill even when a template names no tone. */
.fyf .games-shell .fyf-btn {
  min-height: 48px;
  white-space: normal;
  text-align: center;
}
.fyf .games-shell .fyf-btn--primary:not(.fyf-btn--yellow, .fyf-btn--blue, .fyf-btn--green, .fyf-btn--orange, .fyf-btn--ink, .fyf-btn--cream) {
  background: var(--fyf-pink);
  color: var(--fyf-charcoal);
}

/* A link alone in its paragraph is a navigation target: give it a 44px box. */
.fyf .games-shell p > a:only-child:not(.fyf-btn):not(.games-btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.fyf .games-shell a:not(.fyf-btn):not(.games-btn):focus-visible {
  outline: var(--stroke-sticker) solid var(--fyf-charcoal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.fyf .games-countdown {
  margin: 0;
  padding: var(--space-5) var(--space-4);
  border-top: var(--stroke-sticker) solid var(--fyf-charcoal);
  background: var(--fyf-cream-tint);
  font-family: var(--font-subhead);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-align: center;
  color: var(--fyf-charcoal-80);
}
.fyf .games-countdown time { color: var(--fyf-charcoal); }

/* ── Landing ───────────────────────────────────────────────────────────── */
.fyf .games-home__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.fyf .games-home__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background-color: var(--fyf-green);
  background-image: var(--texture-chalk-hash);
  color: var(--fyf-cream);
  border: var(--stroke-sticker) solid var(--fyf-charcoal);
  border-radius: var(--radius-lg);
}
.fyf .games-home__card h2 { color: var(--fyf-cream); margin: 0; }
.fyf .games-home__card p { color: var(--fyf-cream); margin: 0; }
.fyf .games-home__card .fyf-btn:focus-visible:not(:disabled) {
  outline-color: var(--fyf-cream);
}

/* ── Title, eyebrow, buttons, chips (the prototype's shared pieces) ────── */
.fyf .games-shell [hidden] { display: none !important; }

.fyf .games-shell .games-eyebrow .games-eyebrow__brand { text-transform: none; }
.fyf .games-shell .games-eyebrow {
  margin: 0 0 var(--space-2);
  font-family: var(--font-subhead);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fyf-charcoal-80);
}

/* The prototype's "NFL Golf" hero: Borough Grotesk, two tones, hard shadow.
   Compact once the round is under way; full hero on the tee-off screen. */
.fyf .games-shell h1.games-title {
  margin: 0 0 var(--space-5);
  font-family: var(--font-spice);
  font-weight: 400;
  font-size: clamp(30px, 8vw, 44px);
  line-height: var(--leading-spice);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fyf-charcoal);
  -webkit-text-stroke: 0.012em var(--fyf-charcoal);
  overflow-wrap: normal;
}
.fyf .games-shell .games-title .games-title__a {
  color: var(--fyf-green);
  text-shadow: 0.045em 0.045em 0 var(--fyf-charcoal);
}
.fyf .games-shell .games-title .games-title__b {
  color: var(--fyf-yellow);
  text-shadow: 0.045em 0.045em 0 var(--fyf-charcoal);
}
.fyf .games-shell h1.games-title.games-title--board {
  font-size: clamp(34px, 9vw, 64px);
  color: var(--fyf-green);
  text-shadow: 0.045em 0.045em 0 var(--fyf-charcoal);
  overflow-wrap: anywhere;
}

/* The prototype's .btn family: 3px ink border, pill, hard offset shadow,
   snap on press. Used for links too (sign up / sign in / back). */
.fyf .games-shell .games-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-subhead);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--fyf-charcoal);
  background: var(--fyf-white);
  border: var(--stroke-sticker) solid var(--fyf-charcoal);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-hard-sm);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--games-ease-snap),
    box-shadow var(--dur-fast) var(--games-ease-snap),
    background-color var(--dur-fast) var(--games-ease-snap);
  -webkit-tap-highlight-color: transparent;
}
.fyf .games-shell .games-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--fyf-charcoal);
  color: var(--fyf-charcoal);
}
.fyf .games-shell .games-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--fyf-charcoal);
}
.fyf .games-shell .games-btn:focus-visible {
  outline: var(--stroke-sticker) solid var(--fyf-blue-deep);
  outline-offset: 3px;
}
.fyf .games-shell .games-btn:disabled {
  opacity: 0.45;
  box-shadow: none;
  transform: none;
  cursor: default;
}
.fyf .games-shell .games-btn.games-btn--lg { min-height: 56px; padding: var(--space-4) var(--space-8); font-size: 17px; }
.fyf .games-shell .games-btn.games-btn--yellow { background: var(--fyf-yellow); }
.fyf .games-shell .games-btn.games-btn--pink { background: var(--fyf-pink); }
.fyf .games-shell .games-btn.games-btn--green { background: var(--fyf-green); color: var(--fyf-white); }
.fyf .games-shell .games-btn.games-btn--ghost {
  background: transparent;
  box-shadow: none;
  border-color: var(--fyf-charcoal);
}
.fyf .games-shell .games-btn.games-btn--ghost:hover {
  background: var(--fyf-cream-deep);
  transform: none;
}

.fyf .games-shell .games-linkish {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
  padding: 0 var(--space-2);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fyf-blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  cursor: pointer;
}
.fyf .games-shell .games-linkish:focus-visible {
  outline: var(--stroke-sticker) solid var(--fyf-charcoal);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Arcade lobby (the screen before Tee off) ──────────────────────────── */
/* Claude Design "Putt Putt Hike Lobby", direction A: a blue laminate cabinet
   and an enamel high-score sign. The owner chose to step past the brand guide
   here (blue as a large surface, a laminate speckle, glow and sheen) while
   keeping its colours, fonts, charcoal keylines and hard shadows. Yellow is
   still only the player's own (their row, "1st/2nd/3rd" in the crawl reads
   as a lit sign) and pink only the target (the flags). Every animation stops
   under prefers-reduced-motion, at the end of this section. */
/* While the cabinet shows, its sign is the title on screen; the masthead stays
   in the page for screen readers (the h1, the rules line, the course number)
   and its How to play button goes, so Tab never lands on something unseen. */
.fyf .games-stage:has(.games-arcade:not([hidden])) .games-mast {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.fyf .games-stage:has(.games-arcade:not([hidden])) .games-mast .games-mast__help { display: none; }
.fyf .games-shell .games-arcade {
  --arcade-body: var(--fyf-blue);
  --arcade-body-deep: var(--fyf-blue-deep);
  --arcade-burst: color-mix(in srgb, var(--fyf-blue) 55%, var(--fyf-blue-deep));
  --arcade-ink-deep: oklch(from var(--fyf-charcoal) calc(l - 0.08) c h);
  --arcade-ease: cubic-bezier(.2, .8, .2, 1);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-10) 36px;
  margin: 0 0 var(--space-8);
  overflow-wrap: normal;
}
.fyf .games-shell .games-arcade[hidden] { display: none; }
.fyf .games-shell .games-arcade p { margin: 0; }

.fyf .games-shell .games-arcade__cabinet {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  width: min(620px, 100%);
  filter: drop-shadow(8px 8px 0 var(--fyf-charcoal));
}
.fyf .games-shell .games-arcade__laminate {
  background-color: var(--arcade-body);
  background-image:
    radial-gradient(color-mix(in srgb, var(--fyf-charcoal) 13%, transparent) .8px, transparent 1.3px),
    radial-gradient(color-mix(in srgb, var(--fyf-white) 24%, transparent) .8px, transparent 1.3px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 4px 6px;
  border: 3px solid var(--fyf-charcoal);
  border-top: 0;
}
.fyf .games-shell .games-arcade__laminate--deep { background-color: var(--arcade-body-deep); }

/* Top: the sign between two rows of chasing bulbs. */
.fyf .games-shell .games-arcade__top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  border-top: 3px solid var(--fyf-charcoal);
  border-radius: 22px 22px 0 0;
}
.fyf .games-shell .games-arcade__bulbs { display: flex; justify-content: space-between; padding: 0 6px; }
.fyf .games-shell .games-arcade__bulb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fyf-charcoal-60);
  border: 2px solid var(--fyf-charcoal);
  animation: fyf-games-arcade-chase 1.2s steps(1) infinite;
}
.fyf .games-shell .games-arcade__bulb--1 { animation-delay: -.4s; }
.fyf .games-shell .games-arcade__bulb--2 { animation-delay: -.8s; }
@keyframes fyf-games-arcade-chase {
  0% { background: var(--fyf-cream-tint); box-shadow: 0 0 8px 2px color-mix(in srgb, var(--fyf-cream) 90%, transparent); }
  33% { background: var(--fyf-charcoal-60); box-shadow: none; }
}
.fyf .games-shell .games-arcade__sign {
  padding: 6px 18px 10px;
  border-radius: 12px;
  text-align: center;
  background-color: var(--arcade-body-deep);
  background-image:
    radial-gradient(60% 90% at 50% 100%, color-mix(in srgb, var(--fyf-cream) 28%, transparent), transparent 70%),
    repeating-conic-gradient(from -90deg at 50% 105%, var(--arcade-body-deep) 0 5deg, var(--arcade-burst) 5deg 10deg);
  box-shadow: inset 0 0 0 3px var(--fyf-charcoal), inset 0 0 30px color-mix(in srgb, var(--arcade-ink-deep) 35%, transparent);
}
.fyf .games-shell .games-arcade__title { line-height: 0; }
.fyf .games-shell .games-arcade__logo { display: block; width: 100%; height: auto; }
.fyf .games-shell .games-arcade__logo text {
  font-family: var(--font-spice);
  text-transform: uppercase;
  letter-spacing: -.01em;
  text-anchor: middle;
  paint-order: stroke;
}
.fyf .games-shell .games-arcade__logo-a { font-size: 60px; }
.fyf .games-shell .games-arcade__logo-b { font-size: 104px; }
.fyf .games-shell .games-arcade__logo-depth { fill: var(--fyf-charcoal); }
.fyf .games-shell .games-arcade__logo-a .games-arcade__logo-face { fill: var(--fyf-cream-tint); stroke: var(--fyf-charcoal); stroke-width: 5px; }
.fyf .games-shell .games-arcade__logo-b .games-arcade__logo-face { fill: var(--fyf-yellow); stroke: var(--fyf-charcoal); stroke-width: 6px; }
.fyf .games-shell .games-arcade__logo-pole { stroke: var(--fyf-charcoal); stroke-width: 5px; stroke-linecap: round; }
.fyf .games-shell .games-arcade__logo-flag,
.fyf .games-shell .games-arcade__flag {
  fill: var(--fyf-pink);
  stroke: var(--fyf-charcoal);
  stroke-width: 3px;
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: fyf-games-arcade-wave 1.3s ease-in-out infinite alternate;
}
.fyf .games-shell .games-arcade__flag--1 { animation-delay: -.4s; }
.fyf .games-shell .games-arcade__flag--2 { animation-delay: -.9s; }
@keyframes fyf-games-arcade-wave { to { transform: scaleX(.82) skewY(-7deg); } }
.fyf .games-shell .games-arcade__course {
  font-family: var(--font-subhead);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fyf-cream-tint);
  text-shadow: 2px 2px 0 var(--fyf-charcoal);
}

/* The screen: a black bezel, turf, scanlines and glare, the crawl on top. */
.fyf .games-shell .games-arcade__bezel { display: flex; flex-direction: column; gap: 12px; padding: 16px 28px 14px; }
.fyf .games-shell .games-arcade__glass {
  padding: 10px;
  border-radius: 26px / 20px;
  background: var(--fyf-charcoal);
  box-shadow: inset 0 0 0 2px var(--fyf-charcoal-80);
}
.fyf .games-shell .games-arcade__screen {
  position: relative;
  height: 270px;
  overflow: hidden;
  border-radius: 18px / 14px;
  background-color: var(--fyf-turf);
  background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--fyf-white) 6%, transparent) 0 46px, transparent 46px 92px);
}
.fyf .games-shell .games-arcade__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--arcade-ink-deep) 16%, transparent) 0 1px, transparent 1px 3px),
    radial-gradient(120% 70% at 18% 0%, color-mix(in srgb, var(--fyf-white) 14%, transparent), transparent 55%);
  animation: fyf-games-arcade-flicker 5s steps(1) infinite;
}
@keyframes fyf-games-arcade-flicker { 0%, 100% { opacity: 1; } 47% { opacity: .82; } 48% { opacity: 1; } 83% { opacity: .9; } 84% { opacity: 1; } }
.fyf .games-shell .games-arcade__crawl {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  overflow: hidden;
  padding: 10px 0;
  background: color-mix(in srgb, var(--arcade-ink-deep) 55%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--fyf-cream) 35%, transparent);
}
.fyf .games-shell .games-arcade__crawl-track {
  display: flex;
  width: max-content;
  gap: 40px;
  white-space: nowrap;
  font-family: var(--font-subhead);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fyf-cream);
  animation: fyf-games-arcade-crawl 24s linear infinite;
}
.fyf .games-shell .games-arcade__crawl-track span::after { content: "◆"; margin-left: 40px; opacity: .6; }
.fyf .games-shell .games-arcade__crawl-track b { color: var(--fyf-yellow); font-weight: 700; }
@keyframes fyf-games-arcade-crawl { to { transform: translateX(-50%); } }
.fyf .games-shell .games-arcade__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.fyf .games-shell .games-arcade__fairway { fill: none; stroke: var(--fyf-chalk); stroke-width: 3px; stroke-dasharray: 2 12; stroke-linecap: round; }
.fyf .games-shell .games-arcade__tee { fill: var(--fyf-turf-deep); stroke: var(--fyf-charcoal); stroke-width: 3px; }
.fyf .games-shell .games-arcade__sand { fill: var(--fyf-stock); stroke: var(--fyf-charcoal); stroke-width: 3px; }
.fyf .games-shell .games-arcade__water { fill: var(--fyf-blue); stroke: var(--fyf-charcoal); stroke-width: 3px; }
.fyf .games-shell .games-arcade__green { fill: var(--fyf-green); stroke: var(--fyf-charcoal); stroke-width: 4px; }
.fyf .games-shell .games-arcade__cup { fill: var(--fyf-charcoal); }
.fyf .games-shell .games-arcade__pole { stroke: var(--fyf-charcoal); stroke-width: 4px; }
.fyf .games-shell .games-arcade__marker { fill: var(--fyf-cream); stroke: var(--fyf-charcoal); stroke-width: 3px; }
.fyf .games-shell .games-arcade__marker-n { fill: var(--fyf-charcoal); font-family: var(--font-subhead); font-size: 15px; font-weight: 700; text-anchor: middle; }
.fyf .games-shell .games-arcade__ball { fill: var(--fyf-white); stroke: var(--fyf-charcoal); stroke-width: 3px; }
.fyf .games-shell .games-arcade__press {
  position: absolute;
  inset: auto 0 16px;
  text-align: center;
  font-family: var(--font-subhead);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fyf-cream);
  text-shadow: 2px 2px 0 var(--fyf-charcoal);
  animation: fyf-games-arcade-blink 1.1s steps(1) infinite;
}
@keyframes fyf-games-arcade-blink { 50% { opacity: 0; } }
.fyf .games-shell .games-arcade__grille { display: flex; justify-content: center; gap: 7px; }
.fyf .games-shell .games-arcade__grille i {
  width: 26px;
  height: 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--arcade-ink-deep) 75%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--arcade-ink-deep) 60%, transparent), 0 1px 0 color-mix(in srgb, var(--fyf-white) 25%, transparent);
}

/* Control panel: a hinge line where it meets the screen section, shaded so it slopes toward the player. */
.fyf .games-shell .games-arcade__deck {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 26px 44px 24px;
  box-shadow:
    inset 0 3px 0 color-mix(in srgb, var(--arcade-ink-deep) 55%, transparent),
    inset 0 6px 0 color-mix(in srgb, var(--fyf-white) 25%, transparent),
    inset 0 40px 30px -20px color-mix(in srgb, var(--arcade-ink-deep) 28%, transparent);
}
.fyf .games-shell .games-arcade__control { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fyf .games-shell .games-arcade__control--side { flex-direction: row; gap: 22px; }
.fyf .games-shell .games-arcade__mini { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fyf .games-shell .games-arcade__plate {
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--fyf-charcoal);
  box-shadow: inset 0 0 0 2px var(--fyf-charcoal-80);
  font-family: var(--font-subhead);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fyf-cream);
}
.fyf .games-shell .games-arcade__plate--lit {
  font-size: 11px;
  color: var(--fyf-yellow);
  text-shadow: 0 0 8px color-mix(in srgb, var(--fyf-yellow) 70%, transparent);
  animation: fyf-games-arcade-lit 1.4s steps(1) infinite;
}
@keyframes fyf-games-arcade-lit { 50% { color: var(--fyf-charcoal-60); text-shadow: none; } }
.fyf .games-shell .games-arcade__stick { width: 90px; height: 110px; overflow: visible; }
.fyf .games-shell .games-arcade__stick-base { fill: var(--fyf-charcoal); stroke: var(--fyf-charcoal-80); stroke-width: 3px; }
.fyf .games-shell .games-arcade__stick-shaft { fill: var(--fyf-charcoal-60); stroke: var(--fyf-charcoal); stroke-width: 3px; }
.fyf .games-shell .games-arcade__stick-ball { fill: var(--fyf-white); stroke: var(--fyf-charcoal); stroke-width: 3px; }
.fyf .games-shell .games-arcade__dimple { fill: color-mix(in srgb, var(--fyf-charcoal) 18%, transparent); }
.fyf .games-shell .games-arcade__stick-shine { fill: var(--fyf-white); opacity: .9; }
.fyf .games-shell .games-arcade__stick-arm {
  transform-box: view-box;
  transform-origin: 45px 96px;
  animation: fyf-games-arcade-waggle 3.2s ease-in-out infinite;
}
@keyframes fyf-games-arcade-waggle { 0%, 60%, 100% { transform: rotate(0); } 68% { transform: rotate(-12deg); } 76% { transform: rotate(10deg); } 84% { transform: rotate(-5deg); } }
.fyf .games-shell .games-arcade__housing {
  display: inline-flex;
  padding: 12px;
  border-radius: 50%;
  background: var(--fyf-charcoal);
  box-shadow: inset 0 0 0 3px var(--fyf-charcoal-80), 3px 3px 0 color-mix(in srgb, var(--arcade-ink-deep) 35%, transparent);
}
/* After the round, the button is a link back to it (?intro=1). */
.fyf .games-shell a.games-arcade__start { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.fyf .games-shell .games-arcade__start {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--fyf-charcoal);
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--fyf-green) 82%, var(--fyf-white)) 0 54%, var(--fyf-green) 55%);
  color: var(--fyf-cream);
  font-family: var(--font-subhead);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 0 var(--fyf-green-deep), 0 8px 0 3px var(--fyf-charcoal);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
  animation: fyf-games-arcade-breathe 2s ease-in-out infinite;
}
.fyf .games-shell .games-arcade__start:hover { transform: translateY(-2px); box-shadow: 0 10px 0 var(--fyf-green-deep), 0 10px 0 3px var(--fyf-charcoal); }
.fyf .games-shell .games-arcade__start:active,
.fyf .games-shell .games-arcade__start:disabled { transform: translateY(7px); box-shadow: 0 1px 0 var(--fyf-green-deep), 0 1px 0 3px var(--fyf-charcoal); }
.fyf .games-shell .games-arcade__start:focus-visible { outline: var(--stroke-sticker) solid var(--fyf-yellow); outline-offset: 6px; animation: none; }
@keyframes fyf-games-arcade-breathe { 50% { outline: 6px solid color-mix(in srgb, var(--fyf-green) 40%, transparent); outline-offset: 6px; } }
.fyf .games-shell .games-arcade__cap {
  display: block;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid var(--fyf-charcoal);
  background: radial-gradient(circle at 50% 40%, var(--fyf-cream-tint) 0 55%, var(--fyf-cream-deep) 56%);
  box-shadow: 0 5px 0 var(--fyf-stock-edge), 0 5px 0 3px var(--fyf-charcoal);
  cursor: pointer;
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.fyf .games-shell .games-arcade__cap:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--fyf-stock-edge), 0 7px 0 3px var(--fyf-charcoal); }
.fyf .games-shell .games-arcade__cap:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--fyf-stock-edge), 0 1px 0 3px var(--fyf-charcoal); }
.fyf .games-shell .games-arcade__cap:focus-visible { outline: var(--stroke-sticker) solid var(--fyf-yellow); outline-offset: 4px; }

/* Front: the coin door and the rule. */
.fyf .games-shell .games-arcade__front {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 30px 20px;
  border-radius: 0 0 22px 22px;
}
.fyf .games-shell .games-arcade__coin {
  display: flex;
  flex: none;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: var(--fyf-charcoal);
  box-shadow: inset 0 0 0 2px var(--fyf-charcoal-80);
}
.fyf .games-shell .games-arcade__coin span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 48px;
  padding: 8px 0 6px;
  font-family: var(--font-subhead);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fyf-yellow);
}
.fyf .games-shell .games-arcade__slot {
  width: 6px;
  height: 28px;
  border-radius: 3px;
  background: var(--arcade-ink-deep);
  box-shadow: 0 0 0 3px var(--fyf-charcoal-80), 0 0 10px 2px color-mix(in srgb, var(--fyf-yellow) 55%, transparent);
  animation: fyf-games-arcade-glow 1.8s ease-in-out infinite;
}
@keyframes fyf-games-arcade-glow { 50% { box-shadow: 0 0 0 3px var(--fyf-charcoal-80), 0 0 3px 0 color-mix(in srgb, var(--fyf-yellow) 20%, transparent); } }
.fyf .games-shell .games-arcade__rule {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--fyf-charcoal);
  border-radius: 8px;
  background: var(--fyf-cream-tint);
  font-size: 14px;
  line-height: 1.35;
}

/* The high-score sign: an enamel plate screwed to the wall, not paper. */
.fyf .games-shell .games-arcade__scores {
  position: relative;
  width: 300px;
  margin-top: 40px;
  padding: 30px 30px 24px;
  border-radius: 16px;
  background-color: var(--fyf-cream-tint);
  background-image:
    linear-gradient(155deg, color-mix(in srgb, var(--fyf-white) 70%, transparent) 0 18%, transparent 32%),
    radial-gradient(color-mix(in srgb, var(--fyf-charcoal) 6%, transparent) .8px, transparent 1.3px);
  background-size: 100% 100%, 6px 6px;
  box-shadow:
    inset 0 0 0 3px var(--fyf-charcoal),
    inset 0 0 0 9px var(--arcade-body),
    inset 0 0 0 11px var(--fyf-charcoal),
    6px 6px 0 var(--fyf-charcoal);
}
.fyf .games-shell .games-arcade__screw {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--fyf-charcoal);
  background: radial-gradient(circle at 35% 35%, var(--fyf-white), var(--fyf-charcoal-30));
}
.fyf .games-shell .games-arcade__screw::after {
  content: "";
  position: absolute;
  inset: 50% 1px auto;
  height: 2px;
  margin-top: -1px;
  background: var(--fyf-charcoal-80);
  transform: rotate(35deg);
}
.fyf .games-shell .games-arcade__screw:nth-of-type(1) { top: 16px; left: 16px; }
.fyf .games-shell .games-arcade__screw:nth-of-type(2) { top: 16px; right: 16px; }
.fyf .games-shell .games-arcade__screw:nth-of-type(3) { bottom: 16px; left: 16px; }
.fyf .games-shell .games-arcade__screw:nth-of-type(4) { bottom: 16px; right: 16px; }
.fyf .games-shell h2.games-arcade__scores-title {
  margin: 4px 0 14px;
  font-family: var(--font-header);
  font-size: 30px;
  text-align: center;
}
.fyf .games-shell .games-arcade__board,
.fyf .games-shell .games-arcade__you {
  font-family: var(--font-subhead);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.fyf .games-shell .games-arcade__board { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fyf .games-shell .games-arcade__board li { display: flex; gap: 12px; }
.fyf .games-shell .games-arcade__board li span:first-child { width: 20px; flex: none; }
/* Names stay on one line: set in the name's own case without the label
   tracking (uppercase tracked names broke onto two lines in the 250px sign),
   clipped with an ellipsis only past that; the full name is in title. */
.fyf .games-shell .games-arcade__board li { align-items: baseline; }
.fyf .games-shell .games-arcade__board li span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  letter-spacing: 0;
  text-transform: none;
}
.fyf .games-shell .games-arcade__empty { font-size: 15px; text-align: center; }
.fyf .games-shell .games-arcade__you {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 12px -8px 0;
  padding: 6px 8px;
  border: 2px solid var(--fyf-charcoal);
  border-radius: 6px;
  background: var(--fyf-yellow);
}
.fyf .games-shell .games-arcade__cursor {
  display: inline-block;
  width: .55em;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--fyf-charcoal);
  animation: fyf-games-arcade-blink 1s steps(1) infinite;
}
.fyf .games-shell .games-arcade__more { margin-top: 16px; text-align: center; }
.fyf .games-shell .games-arcade__more a {
  display: inline-block;
  padding: 12px 8px;
  font-family: var(--font-subhead);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fyf-charcoal);
}

/* Phone: the same cabinet, smaller parts; the sign drops under it (420px: the compact desktop cabinet at the end of this file is 480px). */
@container (max-width: 420px) {
  .fyf .games-shell .games-arcade__top { padding: 10px; border-radius: 18px 18px 0 0; }
  .fyf .games-shell .games-arcade__bulb { width: 8px; height: 8px; }
  .fyf .games-shell .games-arcade__bulb:nth-child(n + 19) { display: none; }
  .fyf .games-shell .games-arcade__sign { padding: 4px 8px 8px; }
  .fyf .games-shell .games-arcade__course { font-size: 10px; }
  .fyf .games-shell .games-arcade__bezel { gap: 10px; padding: 12px 14px 10px; }
  .fyf .games-shell .games-arcade__glass { padding: 7px; border-radius: 20px / 16px; }
  .fyf .games-shell .games-arcade__screen { height: 200px; border-radius: 14px / 10px; }
  .fyf .games-shell .games-arcade__crawl { padding: 7px 0; }
  .fyf .games-shell .games-arcade__crawl-track { gap: 28px; font-size: 11px; }
  .fyf .games-shell .games-arcade__crawl-track span::after { margin-left: 28px; }
  .fyf .games-shell .games-arcade__press { bottom: 10px; font-size: 15px; }
  .fyf .games-shell .games-arcade__grille i { width: 18px; height: 4px; }
  .fyf .games-shell .games-arcade__grille i:nth-child(n + 8) { display: none; }
  .fyf .games-shell .games-arcade__deck { gap: 6px; padding: 18px 12px 16px; }
  .fyf .games-shell .games-arcade__stick { width: 58px; height: 71px; }
  .fyf .games-shell .games-arcade__control { gap: 8px; }
  .fyf .games-shell .games-arcade__control--side { flex-direction: column; gap: 10px; }
  .fyf .games-shell .games-arcade__mini { gap: 5px; }
  .fyf .games-shell .games-arcade__plate { padding: 5px 8px; font-size: 8px; }
  .fyf .games-shell .games-arcade__plate--lit { font-size: 9px; }
  .fyf .games-shell .games-arcade__housing { padding: 10px; }
  .fyf .games-shell .games-arcade__start { width: 112px; height: 112px; font-size: 20px; }
  .fyf .games-shell .games-arcade__cap { width: 44px; height: 44px; }
  .fyf .games-shell .games-arcade__front { gap: 12px; padding: 12px 14px 16px; border-radius: 0 0 18px 18px; }
  .fyf .games-shell .games-arcade__coin span:last-child { display: none; }
  .fyf .games-shell .games-arcade__rule { padding: 8px 10px; font-size: 12px; }
}
@media (max-width: 1035px) {
  .fyf .games-shell .games-arcade__scores { width: min(620px, 100%); margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fyf .games-shell .games-arcade__bulb,
  .fyf .games-shell .games-arcade__logo-flag,
  .fyf .games-shell .games-arcade__flag,
  .fyf .games-shell .games-arcade__screen::after,
  .fyf .games-shell .games-arcade__crawl-track,
  .fyf .games-shell .games-arcade__press,
  .fyf .games-shell .games-arcade__plate--lit,
  .fyf .games-shell .games-arcade__stick-arm,
  .fyf .games-shell .games-arcade__start,
  .fyf .games-shell .games-arcade__slot,
  .fyf .games-shell .games-arcade__cursor { animation: none; }
  .fyf .games-shell .games-arcade__ball { display: none; }
}

/* ── Reveal motion ─────────────────────────────────────────────────────── */
/* Reveal motion: the prototype's flip for the result, pop for the answer. */
.fyf .games-shell .games-anim-flip { animation: fyf-games-flip 450ms var(--ease-pop); transform-origin: top; }
.fyf .games-shell .games-anim-pop { animation: fyf-games-pop 350ms var(--ease-pop); }
@keyframes fyf-games-flip { from { transform: rotateX(80deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fyf-games-pop { from { transform: scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Player picker (games/shared/_player_picker; prototype .input/.suggest) */
/* 17px input text stops iOS zooming on focus. */
.fyf .games-picker { position: relative; }
.fyf .games-picker .games-picker__label {
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-header);
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1;
  text-align: center;
  color: var(--fyf-charcoal-80);
}
.fyf .games-picker .games-picker__input {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--fyf-charcoal);
  background: var(--fyf-white);
  border: var(--stroke-chip) solid var(--fyf-charcoal);
  border-radius: var(--radius-md);
}
.fyf .games-picker .games-picker__input::placeholder { color: var(--fyf-charcoal-60); }
.fyf .games-picker .games-picker__input:focus-visible {
  outline: var(--stroke-sticker) solid var(--fyf-blue-deep);
  outline-offset: 1px;
}
.fyf .games-picker .games-picker__input:disabled {
  background: var(--fyf-charcoal-12);
  color: var(--fyf-charcoal-80);
  cursor: not-allowed;
}
/* Absolute at its static position, just under the input. */
.fyf .games-picker .games-picker__list {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 30;
  max-height: min(46vh, 22rem);
  margin: var(--space-1) 0 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--fyf-white);
  border: var(--stroke-chip) solid var(--fyf-charcoal);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--fyf-charcoal);
}
.fyf .games-picker .games-option {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px var(--space-3);
  min-height: 48px;
  padding: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--fyf-charcoal);
  border-bottom: var(--stroke-hairline) solid var(--fyf-charcoal-12);
  cursor: pointer;
}
.fyf .games-picker .games-option:last-child { border-bottom: 0; }
.fyf .games-picker .games-option:hover,
.fyf .games-picker .games-option[aria-selected="true"] { background: var(--fyf-cream-deep); }
.fyf .games-picker .games-option[aria-selected="true"] { box-shadow: inset var(--stroke-heavy) 0 0 var(--fyf-charcoal); }
.fyf .games-picker .games-option__name { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.fyf .games-picker .games-option__meta { margin-left: auto; font-size: 0.85em; color: var(--fyf-charcoal-80); white-space: nowrap; }
.fyf .games-picker .games-picker__status {
  min-height: 1.4em;
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  text-align: center;
  color: var(--fyf-charcoal-80);
}

/* Narrow phones (five holes in the final's ink stage): tighter side columns. */
@media (max-width: 399px) {
  .fyf .games-result .games-result__stage { padding-inline: var(--space-2); }
}

@media (prefers-reduced-motion: reduce) {
  .fyf .games-shell .games-btn,
  .fyf .games-shell .games-btn:hover,
  .fyf .games-shell .games-btn:active { transition: none; transform: none; }
  .fyf .games-shell .games-anim-flip,
  .fyf .games-shell .games-anim-pop,
  .fyf .games-shell .games-result__total { animation: none; }
}

/* ── The green ─────────────────────────────────────────────────────────── */
/* No light putting-green token exists: the surface is --fyf-green, the fringe
   --fyf-turf, the rough --fyf-turf-deep. */
.fyf .games-green {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin-inline: auto;
  aspect-ratio: 1;
}
.fyf .games-green.games-green--static {
  width: 88px;
  max-width: none;
  margin: 0;
}
.fyf .games-green .games-green__rough { fill: var(--fyf-turf-deep); }
.fyf .games-green .games-green__fringe {
  fill: var(--fyf-turf);
  stroke: var(--fyf-turf-deep);
  stroke-width: 0.8;
}
.fyf .games-green .games-green__surface {
  fill: var(--fyf-green);
  stroke: var(--fyf-chalk);
  stroke-width: 0.6;
  stroke-opacity: 0.6;
}
/* The hole's own course around the bullseye: its wall, the mown bands across
   the fringe, sand in the pockets and bumper blocks against the wall. None of
   it uses yellow or pink: those mean the ball and the pin. */
.fyf .games-green .games-green__wall {
  fill: none;
  stroke: var(--fyf-charcoal);
  stroke-width: 3.4;
  stroke-linejoin: round;
}
.fyf .games-green .games-green__edge {
  fill: none;
  stroke: var(--fyf-chalk);
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.fyf .games-green .games-green__feat--water {
  fill: var(--fyf-blue);
  stroke: var(--fyf-blue-deep);
  stroke-width: 0.7;
}
.fyf .games-green .games-green__feat--mow { fill: var(--games-mow-stripe); }
.fyf .games-green .games-green__feat--sand {
  fill: var(--fyf-cream);
  stroke: var(--fyf-cream-deep);
  stroke-width: 0.7;
}
.fyf .games-green .games-green__feat--bumper {
  fill: var(--fyf-chalk);
  stroke: var(--fyf-charcoal);
  stroke-width: 0.5;
  stroke-linejoin: round;
}
.fyf .games-green .games-green__ring {
  fill: none;
  stroke: var(--fyf-chalk);
  stroke-width: 0.4;
  stroke-opacity: 0.4;
  stroke-dasharray: 1.4 1.8;
}
.fyf .games-green .games-green__tee rect {
  fill: var(--fyf-charcoal);
  stroke: var(--fyf-chalk);
  stroke-width: 0.5;
}
.fyf .games-green .games-green__tee circle { fill: var(--fyf-chalk); }
.fyf .games-green .games-green__cup { fill: var(--fyf-charcoal); }
.fyf .games-green .games-green__flag line {
  stroke: var(--fyf-white);
  stroke-width: 0.9;
  stroke-linecap: round;
}
.fyf .games-green .games-green__flag path {
  fill: var(--fyf-pink);
  stroke: var(--fyf-charcoal);
  stroke-width: 0.4;
  stroke-linejoin: round;
}
.fyf .games-green .games-green__ball circle {
  fill: var(--fyf-white);
  stroke: var(--fyf-charcoal);
  stroke-width: 0.5;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--dur-base) ease-in;
}
/* Holed: the ball sits down in the cup, a size smaller. */
.fyf .games-green .games-green__ball.games-green__ball--holed circle { transform: scale(0.75); }

/* The shot. The controller walks the play screen's green through four state
   classes: --swing (pick sent, putter drawn back, aim line up), --strike,
   --rolling (the ball on its way, trail behind it), --rested; plus --ace on
   a hole in one. Without a class every moving part is invisible, which is
   how the green looks with reduced motion and after a reload. On an SVG
   element, px in a CSS transform are user units of the 0..100 viewBox. */
.fyf .games-green:not(.games-green--static) { overflow: visible; }
.fyf .games-green .games-green__aim {
  stroke: var(--fyf-chalk);
  stroke-width: 0.5;
  stroke-dasharray: 1.2 1.6;
  opacity: 0;
  transition: opacity 200ms ease-out;
}
.fyf .games-green.games-green--aim .games-green__aim { opacity: 0.5; }
.fyf .games-green.games-green--swing .games-green__aim,
.fyf .games-green.games-green--strike .games-green__aim { opacity: 0.8; }
.fyf .games-green .games-green__trail {
  fill: none;
  stroke: var(--fyf-yellow);
  stroke-width: 0.8;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}
.fyf .games-green.games-green--rolling .games-green__trail { opacity: 0.75; }
.fyf .games-green.games-green--rested .games-green__trail { opacity: 0.45; stroke-dashoffset: 0; transition: opacity 400ms ease-out; }
.fyf .games-green .games-green__putter { opacity: 0; }
.fyf .games-green .games-green__putter rect {
  fill: var(--fyf-charcoal);
  stroke: var(--fyf-chalk);
  stroke-width: 0.6;
}
.fyf .games-green .games-green__putter line {
  stroke: var(--fyf-charcoal);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.fyf .games-green .games-green__scene { transform-origin: 50px 50px; }
.fyf .games-green.games-green--swing .games-green__putter {
  opacity: 1;
  animation: fyf-games-backswing 520ms var(--games-ease-snap) forwards,
             fyf-games-waggle 640ms 520ms ease-in-out infinite alternate;
}
.fyf .games-green.games-green--strike .games-green__putter {
  opacity: 1;
  animation: fyf-games-strike 130ms cubic-bezier(.6, 0, .9, .4) forwards;
}
.fyf .games-green.games-green--rolling .games-green__putter {
  transform: translateY(-1.6px);
  transition: opacity 320ms ease-out;
}
@keyframes fyf-games-backswing { from { transform: translateY(0); } to { transform: translateY(11px); } }
@keyframes fyf-games-waggle { from { transform: translateY(11px); } to { transform: translateY(9.5px); } }
@keyframes fyf-games-strike { from { transform: translateY(11px); } to { transform: translateY(-1.6px); } }

/* A hole in one: two rings out of the cup and the flag waves. */
.fyf .games-green .games-green__burst circle {
  fill: none;
  stroke: var(--fyf-yellow);
  stroke-width: 0.9;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.fyf .games-green.games-green--ace .games-green__burst circle { animation: fyf-games-ring 800ms ease-out forwards; }
.fyf .games-green.games-green--ace .games-green__burst circle + circle { animation-delay: 170ms; }
.fyf .games-green.games-green--ace .games-green__flag {
  transform-origin: 50px 50px;
  animation: fyf-games-flag 460ms ease-in-out 2;
}
@keyframes fyf-games-ring { from { transform: scale(1); opacity: 0.95; } to { transform: scale(12); opacity: 0; } }
@keyframes fyf-games-flag { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 70% { transform: rotate(6deg); } }

@media (prefers-reduced-motion: reduce) {
  .fyf .games-green .games-green__ball circle { transition: none; }
  .fyf .games-green .games-green__putter,
  .fyf .games-green .games-green__burst circle,
  .fyf .games-green .games-green__flag { animation: none !important; }
}

/* ── Result (prototype .final) ─────────────────────────────────────────── */
/* An ink stage like the prototype's show screen: eyebrow, the total in big
   yellow, the scorecard, then a card per hole with its static green. */
.fyf .games-result .games-result__stage {
  display: grid;
  gap: var(--space-5);
  margin: 0 0 var(--space-8);
  padding: var(--space-6) var(--space-3);
  color: var(--fyf-cream);
  background: var(--fyf-charcoal);
  border: 4px solid var(--fyf-charcoal);
  border-radius: 22px;
  box-shadow: 5px 5px 0 var(--fyf-green);
}
@media (min-width: 640px) {
  .fyf .games-result .games-result__stage { padding: var(--space-8); }
}
.fyf .games-result .games-result__head { text-align: center; }
.fyf .games-shell .games-result .games-result__eyebrow {
  margin: 0 0 var(--space-2);
  font-family: var(--font-subhead);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fyf-yellow);
}
.fyf .games-shell .games-result h2.games-result__headline {
  margin: 0;
  font-size: inherit;
  color: var(--fyf-cream);
}
.fyf .games-result .games-result__total {
  display: block;
  font-family: var(--font-spice);
  font-size: clamp(52px, 15vw, 104px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--fyf-yellow);
  text-shadow: 0.05em 0.05em 0 var(--games-ink-shadow);
  animation: fyf-games-pop 500ms var(--ease-pop);
}
.fyf .games-result .games-result__over {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-header);
  font-size: clamp(22px, 5.5vw, 32px);
  line-height: 1.05;
  color: var(--fyf-cream);
}

.fyf .games-result .games-result__holes {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .fyf .games-result .games-result__holes { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
.fyf .games-result .games-result__hole {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas: "green text" "green strokes";
  gap: var(--space-2) var(--space-3);
  align-items: start;
  padding: var(--space-3);
  color: var(--fyf-charcoal);
  background: var(--fyf-cream-tint);
  border: var(--stroke-sticker) solid var(--fyf-charcoal);
  border-radius: 14px;
}
.fyf .games-result .games-result__hole .games-green.games-green--static { grid-area: green; width: 64px; }
.fyf .games-result .games-result__text { grid-area: text; min-width: 0; }
@media (min-width: 480px) {
  .fyf .games-result .games-result__hole {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    grid-template-areas: "green text strokes";
    align-items: center;
  }
  .fyf .games-result .games-result__hole .games-green.games-green--static { width: 80px; }
}
.fyf .games-result .games-result__text p {
  margin: 0 0 2px;
  font-size: var(--text-sm);
  line-height: 1.3;
}
.fyf .games-result .games-result__text .games-result__num {
  font-family: var(--font-subhead);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fyf-charcoal-80);
}
.fyf .games-result .games-result__text .games-result__prompt {
  font-family: var(--font-header);
  font-size: 19px;
  line-height: 1.05;
}
.fyf .games-result .games-result__strokes {
  grid-area: strokes;
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  margin: 0;
  padding: var(--space-2);
  background: var(--fyf-white);
  border: var(--stroke-chip) solid var(--fyf-charcoal);
  border-radius: 12px;
}
.fyf .games-result .games-result__strokes.games-tone--ace { background: var(--fyf-yellow); }
.fyf .games-result .games-result__strokes.games-tone--good { background: var(--games-green-tint); }
.fyf .games-result .games-result__strokes-n { font-family: var(--font-spice); font-size: 30px; line-height: 0.95; }
.fyf .games-result .games-result__strokes-lbl {
  font-family: var(--font-subhead);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--fyf-charcoal-80);
}

/* After the stage: standing, share, and the sign-up call to action. */
.fyf .games-result .games-result__after {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}
@media (min-width: 760px) {
  .fyf .games-result .games-result__after { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .fyf .games-result .games-result__cta { grid-column: 1 / -1; }
}
.fyf .games-shell .games-result .games-result__after h3 { margin-top: 0; }
.fyf .games-result .games-result__stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
}
.fyf .games-result .games-result__stat span {
  font-family: var(--font-subhead);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fyf-charcoal-80);
}
.fyf .games-result .games-result__stat strong { font-family: var(--font-spice); font-size: 28px; font-weight: 400; }
.fyf .games-result .games-result__cta {
  padding: var(--space-5);
  background: var(--fyf-cream-tint);
  border: var(--stroke-sticker) solid var(--fyf-charcoal);
  border-radius: 18px;
  box-shadow: var(--shadow-hard-sm);
}
.fyf .games-result .games-result__cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
}
/* Sized to its text (field-sizing), five rows where unsupported. */
.fyf .games-result textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  field-sizing: content;
  margin: var(--space-2) 0 0;
  padding: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--fyf-charcoal);
  background: var(--fyf-white);
  border: var(--stroke-chip) solid var(--fyf-charcoal);
  border-radius: var(--radius-md);
  resize: vertical;
}
.fyf .games-result textarea:focus-visible {
  outline: var(--stroke-sticker) solid var(--fyf-blue-deep);
  outline-offset: 3px;
}
.fyf .games-result label { font-size: var(--text-sm); color: var(--fyf-charcoal-80); }

/* ── Leaderboard ───────────────────────────────────────────────────────── */
/* Scorecard style: ink frame, green header row, ink rules. A real table at
   every width: the name column takes the slack and wraps. */
.fyf .games-shell .games-board__note {
  font-family: var(--font-header);
  font-size: clamp(19px, 4.8vw, 24px);
  line-height: var(--leading-tight);
}
.fyf .games-board {
  margin: var(--space-5) 0 var(--space-6);
  overflow: hidden;
  background: var(--fyf-white);
  border: 4px solid var(--fyf-charcoal);
  border-radius: 18px;
  box-shadow: var(--shadow-hard);
}
.fyf .games-shell .games-leaderboard {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.fyf .games-leaderboard th,
.fyf .games-leaderboard td {
  padding: var(--space-3) 10px;
  text-align: right;
  vertical-align: middle;
  border: var(--stroke-chip) solid var(--fyf-charcoal);
}
.fyf .games-leaderboard tr > :first-child { border-left: 0; }
.fyf .games-leaderboard tr > :last-child { border-right: 0; }
.fyf .games-leaderboard thead tr > * { border-top: 0; }
.fyf .games-leaderboard tbody tr:last-child > * { border-bottom: 0; }
.fyf .games-leaderboard th {
  font-family: var(--font-subhead);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fyf-cream);
  background: var(--fyf-green);
}
.fyf .games-leaderboard td { background: var(--fyf-white); }
.fyf .games-leaderboard th,
.fyf .games-leaderboard td { white-space: nowrap; overflow-wrap: normal; }
.fyf .games-leaderboard th:nth-child(2),
.fyf .games-leaderboard td:nth-child(2) {
  width: 100%;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.fyf .games-leaderboard td:nth-child(2) { font-family: var(--font-subhead); font-weight: 700; background: var(--fyf-cream-tint); }
.fyf .games-leaderboard td:first-child,
.fyf .games-leaderboard td:nth-child(3) { font-family: var(--font-spice); font-size: 22px; }
.fyf .games-leaderboard .games-leaderboard__row.games-leaderboard__row--you td {
  background: var(--fyf-yellow);
  font-weight: 700;
}
@media (max-width: 479px) {
  .fyf .games-leaderboard th,
  .fyf .games-leaderboard td { padding: var(--space-2) 6px; font-size: var(--text-sm); }
  .fyf .games-leaderboard th { font-size: 11px; letter-spacing: 0.04em; }
  .fyf .games-leaderboard td:first-child,
  .fyf .games-leaderboard td:nth-child(3) { font-size: 18px; }
}

/* ── One-screen round ──────────────────────────────────────────────────── */
/* Once a round is under way the whole hole (prompt, pick, green, result,
   scorecard) should sit on one screen, so everything above tightens: the
   site header drops to one row on a phone, the eyebrow goes, the title, hole
   bar and green shrink, and on a phone the result sits beside the green
   instead of under it. The tee-off screen keeps the full hero. Sizes that
   follow the viewport height (vh) keep it on one screen on short windows. */
.fyf .games-shell:has(.games-play__round:not([hidden])),
.fyf .games-shell:has(.games-result) { padding-top: var(--space-3); padding-bottom: var(--space-5); }
.fyf .games-shell:has(.games-play__round:not([hidden])) .games-eyebrow,
.fyf .games-shell:has(.games-result) .games-eyebrow { display: none; }
.fyf .games-shell:has(.games-play__round:not([hidden])) h1.games-title,
.fyf .games-shell:has(.games-result) h1.games-title {
  margin-bottom: var(--space-2);
  font-size: clamp(20px, 5.4vw, 28px);
}

/* Result: a shorter stage and tighter hole cards. */
.fyf .games-shell .games-result .games-result__stage {
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-block: var(--space-4);
}
.fyf .games-shell .games-result .games-result__eyebrow { margin-bottom: var(--space-1); font-size: 13px; }
.fyf .games-shell .games-result .games-result__total { display: inline; font-size: clamp(40px, 11vw, 64px); }
.fyf .games-shell .games-result .games-result__over { display: inline; margin: 0 0 0 var(--space-2); font-size: clamp(18px, 4.6vw, 24px); }
.fyf .games-shell .games-result .games-result__holes { gap: var(--space-2); }
.fyf .games-shell .games-result .games-result__hole { padding: var(--space-2) var(--space-3); gap: 2px var(--space-3); }
/* Phone: the strokes badge beside the text, not under it. */
@media (max-width: 479px) {
  .fyf .games-shell .games-result .games-result__hole {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas: "green text strokes";
    align-items: center;
  }
  .fyf .games-shell .games-result .games-result__hole .games-green.games-green--static { width: 48px; align-self: start; }
  .fyf .games-shell .games-result .games-result__strokes { justify-self: end; min-width: 52px; max-width: 76px; padding: var(--space-1) var(--space-2); }
  .fyf .games-shell .games-result .games-result__strokes-n { font-size: 26px; white-space: nowrap; overflow-wrap: normal; }
}
.fyf .games-shell .games-result .games-result__text .games-result__prompt { font-size: 17px; }
.fyf .games-shell .games-result .games-result__after { gap: var(--space-4); }
.fyf .games-shell .games-result .games-result__cta { padding: var(--space-4); }

.fyf .games-green .games-green__ring-label {
  fill: var(--fyf-chalk);
  fill-opacity: 0.75;
  font-family: var(--font-subhead);
  font-size: 3.2px;
  font-weight: 700;
}

/* ── How to play ───────────────────────────────────────────────────────── */
/* The button: a yellow-marked pill on the title's line, top right of the
   shell, so it is findable at a glance during a round. */
.fyf .games-shell { position: relative; }

/* Room for the pill beside the compact title. */
.fyf .games-shell:has(.games-play__round:not([hidden])) h1.games-title { padding-right: 150px; min-height: 40px; }

/* The dialog. Centred explicitly: Tailwind's preflight zeroes the margin a
   modal dialog centres itself with. */
.fyf .games-shell .games-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(560px, calc(100vw - 24px));
  height: fit-content;
  max-height: calc(100dvh - 24px);
  padding: 0;
  color: var(--fyf-charcoal);
  background: var(--fyf-cream-tint);
  border: 4px solid var(--fyf-charcoal);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--fyf-charcoal);
  overflow: auto;
}
.fyf .games-shell .games-dialog:not([open]) { display: none; }
.fyf .games-shell .games-dialog::backdrop { background: color-mix(in srgb, var(--fyf-charcoal) 62%, transparent); }
.fyf .games-shell .games-dialog[open] { animation: fyf-games-pop 220ms var(--ease-pop); }
.fyf .games-shell .games-dialog .games-dialog__body { display: grid; gap: var(--space-4); padding: var(--space-5); }
.fyf .games-shell .games-dialog .games-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.fyf .games-shell .games-dialog h2.games-dialog__title {
  margin: 0;
  font-family: var(--font-spice);
  font-size: clamp(34px, 9vw, 46px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--fyf-green);
  text-shadow: 0.045em 0.045em 0 var(--fyf-charcoal);
  -webkit-text-stroke: 0.012em var(--fyf-charcoal);
}
.fyf .games-shell .games-dialog .games-dialog__x {
  flex: none;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
  color: var(--fyf-charcoal);
  background: transparent;
  border: var(--stroke-sticker) solid var(--fyf-charcoal);
  border-radius: 50%;
  cursor: pointer;
}
.fyf .games-shell .games-dialog .games-dialog__x:hover { background: var(--fyf-cream-deep); }
.fyf .games-shell .games-dialog .games-dialog__x:focus-visible { outline: var(--stroke-sticker) solid var(--fyf-blue-deep); outline-offset: 3px; }
.fyf .games-shell .games-dialog .games-dialog__ok { justify-self: stretch; }

/* Three steps: a picture on the left, the rule on the right. */
.fyf .games-shell .games-how { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.fyf .games-shell .games-how .games-how__step {
  display: grid;
  grid-template-columns: clamp(96px, 30%, 150px) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3);
  background: var(--fyf-white);
  border: var(--stroke-sticker) solid var(--fyf-charcoal);
  border-radius: 16px;
}
.fyf .games-shell .games-how h3.games-how__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-1);
  font-family: var(--font-subhead);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fyf .games-shell .games-how .games-how__n {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  font-family: var(--font-spice);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  background: var(--fyf-yellow);
  border: var(--stroke-chip) solid var(--fyf-charcoal);
  border-radius: 50%;
}
.fyf .games-shell .games-how p { margin: 0; font-size: var(--text-md); line-height: 1.35; }
.fyf .games-shell .games-how .games-how__art { display: grid; place-items: center; }
/* Step 1: a pocket hole bar. */
.fyf .games-shell .games-how .games-how__art--hole {
  position: relative;
  justify-items: start;
  align-content: center;
  gap: 2px;
  min-height: 96px;
  padding: var(--space-2) var(--space-3);
  color: var(--fyf-cream);
  background: var(--fyf-green) repeating-linear-gradient(90deg, var(--games-mow-stripe) 0 20px, transparent 20px 40px);
  border: var(--stroke-sticker) solid var(--fyf-charcoal);
  border-radius: 12px;
}
.fyf .games-shell .games-how .games-how__ask { font-family: var(--font-header); font-size: 14px; line-height: 1; }
.fyf .games-shell .games-how .games-how__stat {
  font-family: var(--font-spice);
  font-size: 19px;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--fyf-white);
  text-shadow: 0.05em 0.05em 0 var(--fyf-charcoal);
}
.fyf .games-shell .games-how .games-how__ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: var(--space-1);
  font-family: var(--font-spice);
  font-size: 17px;
  line-height: 1;
  color: var(--fyf-charcoal);
  background: radial-gradient(circle at 34% 30%, var(--fyf-white) 0 40%, var(--fyf-chalk) 100%);
  border: var(--stroke-chip) solid var(--fyf-charcoal);
  border-radius: 50%;
}
.fyf .games-shell .games-how .games-how__ball small { font-size: 0.6em; }
/* Step 2: the real green, ball two strokes out. */
.fyf .games-shell .games-how .games-how__art--green .games-green.games-green--static { width: 100%; max-width: 132px; }
.fyf .games-shell .games-how .games-how__examples { display: grid; gap: var(--space-1); margin: var(--space-2) 0 0; padding: 0; list-style: none; font-size: var(--text-sm); line-height: 1.3; }
.fyf .games-shell .games-how .games-how__examples li { display: flex; align-items: center; gap: var(--space-2); }
.fyf .games-shell .games-how .games-how__chip {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 30px;
  height: 26px;
  padding: 0 4px;
  font-family: var(--font-spice);
  font-size: 16px;
  line-height: 1;
  background: var(--fyf-white);
  border: var(--stroke-chip) solid var(--fyf-charcoal);
  border-radius: 8px;
}
.fyf .games-shell .games-how .games-how__chip--ace { background: var(--fyf-yellow); }
.fyf .games-shell .games-how .games-how__chip--good { background: var(--games-green-tint); }
/* Step 3: a pocket scorecard, five holes and the total. */
.fyf .games-shell .games-how .games-how__art--card {
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  background: var(--fyf-charcoal);
  border-radius: 10px;
}
.fyf .games-shell .games-how .games-how__cell {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.15;
  font-family: var(--font-spice);
  font-size: 19px;
  line-height: 1;
  background: var(--fyf-white);
  border-radius: 5px;
}
.fyf .games-shell .games-how .games-how__cell--ace { background: var(--fyf-yellow); }
.fyf .games-shell .games-how .games-how__cell--total { color: var(--fyf-cream); background: var(--fyf-green); }
@media (prefers-reduced-motion: reduce) {
  .fyf .games-shell .games-dialog[open] { animation: none; }
}

/* ── The green on the pick screen, search highlights ───────────────────── */

.fyf .games-shell .games-picker .games-picker__list { z-index: 5; }
.fyf .games-shell .games-picker .games-option .games-option__hit {
  padding: 0 1px;
  font-weight: 800;
  color: inherit;
  background: var(--fyf-yellow);
  border-radius: 3px;
}

/* ── Colour roles ──────────────────────────────────────────────────────── */
/* Three colours carry meaning on the play screen, and nothing else may use
   them there:
     yellow (--games-you)    yours: the pick, the ball and its trail, your
                             strokes, your leaderboard row, "Lock it in"
     pink   (--games-target) the target: the flag, the spot asked for (the
                             "8th" in the question, the #8 badge, the
                             scorecard's target row), the real answer, an ace
                             (the pick on the target)
     green                   the course and its chrome, and "go on" buttons
   The hole being played is marked by light cells and weight, not by a
   colour. Pink is always a fill under charcoal text: as text on green it
   fails contrast. */
.fyf .games-shell {
  --games-you: var(--fyf-yellow);
  --games-target: var(--fyf-pink);
  --games-current-cell: var(--fyf-cream-tint);
}
/* Yours: the ball. */
.fyf .games-shell .games-green .games-green__ball circle { fill: var(--games-you); }

.fyf .games-shell .games-result .games-result__strokes.games-tone--ace,
.fyf .games-shell .games-how .games-how__chip--ace,
.fyf .games-shell .games-how .games-how__cell--ace { background: var(--games-target); }
.fyf .games-shell .games-green .games-green__burst circle { stroke: var(--games-target); }

/* Decoration that used to be yellow. */
.fyf .games-shell .games-how .games-how__n { background: var(--fyf-white); }
.fyf .games-shell .games-picker .games-option .games-option__hit { background: var(--games-green-tint); }
.fyf .games-shell .games-result .games-result__eyebrow { color: var(--fyf-cream); }

/* ── Result: share button, and what fRank is ───────────────────────────── */
.fyf .games-result .games-result__share-go {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
}
.fyf .games-result .games-result__share-status { font-size: var(--text-sm); font-weight: 700; color: var(--fyf-green); }
.fyf .games-result .games-result__frank {
  padding: var(--space-4);
  border: var(--stroke-chip) solid var(--fyf-charcoal);
  border-radius: 18px;
  background: var(--fyf-white);
}
.fyf .games-result .games-result__frank-brand { text-transform: none; }
.fyf .games-result .games-result__frank p { margin: var(--space-2) 0 0; }
@media (min-width: 760px) {
  .fyf .games-result .games-result__frank { grid-column: 1 / -1; }
}

/* ── No puzzle today: the last puzzle's answers and top finishers ──────── */
.fyf .games-shell .games-nopuzzle,
.fyf .games-shell .games-nopuzzle__last { margin: 0 0 var(--space-6); }
.fyf .games-shell .games-nopuzzle h2,
.fyf .games-shell .games-nopuzzle__last h2 { margin: 0 0 var(--space-2); }
.fyf .games-shell .games-nopuzzle__date {
  margin: 0 0 var(--space-3);
  font-family: var(--font-subhead);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fyf-charcoal-80);
}
.fyf .games-shell .games-answers {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.fyf .games-shell .games-answers__hole {
  padding: var(--space-4);
  border: var(--stroke-chip) solid var(--fyf-charcoal);
  border-radius: 18px;
  background: var(--fyf-white);
}
.fyf .games-shell .games-answers__hole p { margin: 0; }
.fyf .games-shell .games-answers__num {
  font-family: var(--font-subhead);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fyf-charcoal-80);
}
.fyf .games-shell .games-answers__prompt { font-family: var(--font-header); font-size: clamp(19px, 4.8vw, 24px); line-height: var(--leading-tight); }
.fyf .games-shell .games-answers__who { margin-top: var(--space-2); }

/* ── The game frame (Claude Design "Putt Putt Hike Redesign", 2a and 2b) ── */
/* One bordered frame holds a hole from question to scorecard, and the same
   frame holds the finished round. Its sections stack with a 3px rule between
   them: banner, trio (three cells: yours, the number, the pin), body (a
   table held to the left column, the turf beside it), the next-hole strip,
   the scorecard. Wide screens use the board's measures; under 760px each
   section stacks. */
.fyf .games-shell {
  --games-pin-tint: color-mix(in srgb, var(--fyf-pink) 28%, var(--fyf-white));
  --games-you-tint: color-mix(in srgb, var(--fyf-yellow) 32%, var(--fyf-white));
  --games-next-tint: color-mix(in srgb, var(--fyf-green) 14%, var(--fyf-white));
  --games-stripe: color-mix(in srgb, var(--fyf-green-deep) 50%, transparent);
  --games-ring: color-mix(in srgb, var(--fyf-chalk) 55%, transparent);
}

/* Masthead: badge, wordmark, the rules in a line, the course stamp. */
.fyf .games-shell .games-mast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) 18px;
  margin: 0 0 var(--space-4);
  padding: 4px 0 6px;
}
.fyf .games-shell .games-mast .games-mast__badge {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  overflow: hidden;
  background-color: var(--fyf-green);
  background-image: repeating-linear-gradient(90deg, transparent 0 12px, var(--games-stripe) 12px 24px);
  border: var(--stroke-sticker) solid var(--fyf-charcoal);
  border-radius: 50%;
  box-shadow: var(--shadow-hard-sm);
}
.fyf .games-shell .games-mast .games-mast__badge i { position: absolute; background: var(--fyf-charcoal); }
.fyf .games-shell .games-mast .games-mast__badge i:nth-child(1) { left: 29px; top: 12px; width: 3px; height: 34px; }
.fyf .games-shell .games-mast .games-mast__badge i:nth-child(2) {
  left: 32px;
  top: 12px;
  width: 20px;
  height: 14px;
  background: var(--fyf-yellow);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.fyf .games-shell .games-mast .games-mast__badge i:nth-child(3) { left: 20px; top: 43px; width: 22px; height: 8px; border-radius: 50%; }
.fyf .games-shell .games-mast .games-mast__words { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-right: auto; }
.fyf .games-shell .games-mast h1.games-mast__title {
  margin: 0;
  font-family: var(--font-spice);
  font-weight: 400;
  font-size: clamp(30px, 8.6vw, 42px);
  line-height: 0.95;
  letter-spacing: var(--tracking-spice);
  text-transform: uppercase;
  color: var(--fyf-green);
  -webkit-text-stroke: 0.012em currentColor;
  text-shadow: var(--text-shadow-hard);
  overflow-wrap: normal;
}
.fyf .games-shell .games-mast .games-mast__title-b { color: var(--fyf-yellow); }
.fyf .games-shell .games-mast.games-mast--compact h1.games-mast__title { font-size: 28px; }
.fyf .games-shell .games-mast .games-mast__tagline,
.fyf .games-shell .games-frame .games-frame__notes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  font-family: var(--font-subhead);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fyf-charcoal-80);
}
.fyf .games-shell .games-mast .games-mast__tagline span + span::before,
.fyf .games-shell .games-frame .games-frame__notes span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--fyf-pink);
}
.fyf .games-shell .games-mast .games-mast__stamp {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 6px 14px 7px;
  font-family: var(--font-subhead);
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  background: var(--fyf-yellow);
  border: var(--stroke-chip) solid var(--fyf-charcoal);
  transform: rotate(-3deg);
}
.fyf .games-shell .games-mast .games-mast__stamp b { font-size: 18px; font-weight: 400; }
.fyf .games-shell .games-mast .games-mast__help {
  position: relative;
  flex: none;
  min-height: 36px;
  padding: 0 var(--space-4);
  font-family: var(--font-subhead);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fyf-charcoal);
  background: transparent;
  border: var(--stroke-sticker) solid var(--fyf-charcoal);
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.fyf .games-shell .games-mast .games-mast__help--link { display: inline-flex; align-items: center; text-decoration: none; }
/* A 44px touch target around the 36px pill. */
.fyf .games-shell .games-mast .games-mast__help::after { content: ""; position: absolute; inset: -7px; }
.fyf .games-shell .games-mast .games-mast__help:hover { background: var(--fyf-cream-deep); }
.fyf .games-shell .games-mast .games-mast__help:focus-visible { outline: var(--stroke-sticker) solid var(--fyf-blue-deep); outline-offset: 3px; }
@media (max-width: 639px) {
  .fyf .games-shell .games-mast .games-mast__badge { display: none; }
  .fyf .games-shell .games-mast .games-mast__stamp { padding: 4px 10px 5px; }
  .fyf .games-shell .games-mast .games-mast__stamp b { font-size: 15px; }
}

/* Small buttons, and the two tones the frame adds. */
.fyf .games-shell .games-btn.games-btn--sm { min-height: 36px; padding: 6px var(--space-4); font-size: 12px; white-space: nowrap; }
.fyf .games-shell .games-btn.games-btn--cream { background: var(--fyf-cream); }
.fyf .games-shell .games-btn.games-btn--ink,
.fyf .games-shell .games-btn.games-btn--ink:hover { color: var(--fyf-cream); background: var(--fyf-charcoal); }
.fyf .games-shell .games-btn.games-btn--ink { box-shadow: 3px 3px 0 var(--fyf-charcoal-60); }

.fyf .games-shell .games-frame {
  margin: 0 0 var(--space-6);
  color: var(--fyf-charcoal);
  background: var(--fyf-white);
  border: var(--stroke-sticker) solid var(--fyf-charcoal);
}
.fyf .games-shell .games-frame > * + * { border-top: var(--stroke-sticker) solid var(--fyf-charcoal); }

/* The pin's oval: the spot asked for, and the round's word on the final. */
.fyf .games-shell .games-oval {
  display: inline-block;
  padding: 0.04em 0.48em 0.12em;
  font: inherit;
  line-height: 1;
  color: var(--fyf-charcoal);
  background: var(--fyf-cream);
  border: var(--stroke-sticker) solid var(--fyf-charcoal);
  border-radius: 50%;
}

/* The flag at the pin, drawn from three boxes: pole, cloth, base. */
.fyf .games-shell .games-pin { position: relative; flex: none; display: inline-block; width: 34px; height: 48px; }
.fyf .games-shell .games-pin i { position: absolute; background: var(--fyf-charcoal); }
.fyf .games-shell .games-pin i:nth-child(1) { left: 3px; top: 0; width: 4px; height: 42px; }
.fyf .games-shell .games-pin i:nth-child(2) { left: 7px; top: 0; width: 26px; height: 18px; background: var(--fyf-pink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.fyf .games-shell .games-pin i:nth-child(3) { left: 0; top: 38px; width: 10px; height: 10px; border-radius: 50%; }
.fyf .games-shell .games-pin.games-pin--sm { width: 16px; height: 21px; vertical-align: -4px; }
.fyf .games-shell .games-pin.games-pin--sm i:nth-child(1) { left: 1px; width: 2px; height: 18px; }
.fyf .games-shell .games-pin.games-pin--sm i:nth-child(2) { left: 3px; width: 12px; height: 9px; }
.fyf .games-shell .games-pin.games-pin--sm i:nth-child(3) { top: 16px; width: 5px; height: 5px; }

.fyf .games-shell .games-pill {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-subhead);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: var(--tracking-label);
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--fyf-white);
  border: var(--stroke-chip) solid var(--fyf-charcoal);
  border-radius: var(--radius-pill);
}

/* Banner: the mown stripes, the count on the left, the question beside it. */
.fyf .games-shell .games-frame .games-frame__banner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  padding: clamp(14px, 2.4vw, 22px) clamp(14px, 3vw, 28px);
  color: var(--fyf-cream);
  background-color: var(--fyf-green);
  background-image: repeating-linear-gradient(90deg, transparent 0 52px, var(--games-stripe) 52px 104px);
}
.fyf .games-shell .games-frame .games-frame__count {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding-right: clamp(14px, 3vw, 28px);
  font-family: var(--font-subhead);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  white-space: nowrap;
  border-right: var(--stroke-sticker) solid var(--fyf-charcoal);
}
.fyf .games-shell .games-frame .games-frame__count b {
  font-size: clamp(40px, 9vw, 60px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--fyf-yellow);
}
.fyf .games-shell .games-frame .games-frame__ask { display: flex; flex-direction: column; gap: clamp(6px, 1.4vw, 12px); min-width: 0; }
.fyf .games-shell .games-frame .games-frame__q {
  margin: 0;
  font-family: var(--font-header);
  font-size: clamp(26px, 5.2vw, 50px);
  font-weight: 400;
  line-height: 1.12;
  color: var(--fyf-cream);
}
.fyf .games-shell .games-frame .games-frame__q:focus-visible { outline: var(--stroke-sticker) solid var(--fyf-yellow); outline-offset: 4px; }
.fyf .games-shell .games-frame .games-frame__notes { font-size: clamp(11px, 2.6vw, 13px); color: var(--fyf-cream); gap: 4px 10px; }
.fyf .games-shell .games-frame .games-frame__notes:empty { display: none; }
.fyf .games-shell .games-frame .games-frame__notes span + span::before { margin-right: 10px; color: var(--fyf-yellow); }

/* Trio: yours, the number, the pin (2a); streak, field beaten, next round (2b). */
.fyf .games-shell .games-frame .games-frame__trio {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.fyf .games-shell .games-frame .games-frame__cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 14px 18px;
}
.fyf .games-shell .games-frame .games-frame__cell + .games-frame__cell { border-top: var(--stroke-sticker) solid var(--fyf-charcoal); }
.fyf .games-shell .games-frame .games-frame__eyebrow {
  display: block;
  margin: 0;
  font-family: var(--font-subhead);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--tracking-label);
  line-height: 1.3;
  text-transform: uppercase;
  color: inherit;
}
.fyf .games-shell .games-frame .games-frame__name {
  display: block;
  margin: 0;
  font-family: var(--font-header);
  font-size: 28px;
  line-height: 1.1;
}
.fyf .games-shell .games-frame .games-frame__meta { display: block; margin: 0; font-size: 13px; line-height: 1.4; }
.fyf .games-shell .games-frame .games-frame__cell--pick { background: var(--games-you); }
.fyf .games-shell .games-frame .games-frame__cell--gap {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 10px;
  padding: 10px 12px;
  text-align: center;
  color: var(--fyf-cream);
  background: var(--fyf-charcoal);
}
.fyf .games-shell .games-frame .games-frame__cell--gap b {
  font-family: var(--font-subhead);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  color: var(--fyf-yellow);
}
.fyf .games-shell .games-frame .games-frame__cell--gap span {
  font-family: var(--font-subhead);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.fyf .games-shell .games-frame .games-frame__cell--gap small { flex-basis: 100%; font-size: 11px; line-height: 1.3; color: var(--fyf-chalk); }
.fyf .games-shell .games-frame .games-frame__cell--pin {
  position: relative;
  padding-right: 64px;
  background: var(--games-pin-tint);
}
.fyf .games-shell .games-frame .games-frame__cell--pin > .games-pin { position: absolute; top: 12px; right: 18px; }
.fyf .games-shell .games-frame .games-frame__cell--streak {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) 14px;
}
.fyf .games-shell .games-frame .games-frame__cell--next { background: var(--games-next-tint); }
.fyf .games-shell .games-frame .games-frame__timer {
  font-family: var(--font-subhead);
  font-size: 34px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* Body: the left column and the turf. */
.fyf .games-shell .games-frame .games-frame__body { display: grid; grid-template-columns: minmax(0, 1fr); }
.fyf .games-shell .games-frame .games-frame__left { display: flex; flex-direction: column; min-width: 0; background: var(--fyf-white); }
.fyf .games-shell .games-frame .games-frame__left:has(> .games-frame__pick:not([hidden])) { background: var(--fyf-cream-tint); }
.fyf .games-shell .games-frame .games-frame__left:has(> .games-frame__chosen:not([hidden])) { background: var(--games-you); }
.fyf .games-shell .games-frame .games-frame__pick,
.fyf .games-shell .games-frame .games-frame__chosen { padding: 18px; }
.fyf .games-shell .games-frame .games-frame__pick .games-picker__label {
  margin: 0 0 var(--space-2);
  font-family: var(--font-subhead);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--tracking-label);
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  color: var(--fyf-charcoal);
}
.fyf .games-shell .games-frame .games-frame__pick .games-picker__status { text-align: left; }
.fyf .games-shell .games-frame .games-frame__chosen .games-frame__eyebrow:focus-visible { outline: var(--stroke-chip) solid var(--fyf-charcoal); outline-offset: 3px; }
.fyf .games-shell .games-frame .games-frame__chosen .games-frame__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.fyf .games-shell .games-frame .games-frame__chosen .games-frame__meta span + span::before { content: "· "; }
.fyf .games-shell .games-frame .games-frame__chosen .games-linkish { color: var(--fyf-charcoal); }
.fyf .games-shell .games-frame .games-play__result { margin: 0; padding: var(--space-3) 18px; font-weight: 600; }
.fyf .games-shell .games-frame .games-play__result:empty { display: none; }
.fyf .games-shell .games-frame .games-play__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); padding: 0 18px 18px; }
.fyf .games-shell .games-frame .games-play__actions:empty { display: none; }

.fyf .games-shell .games-frame .games-frame__turf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 22px clamp(14px, 3vw, 24px) 26px;
  color: var(--fyf-cream);
  background: var(--fyf-turf-deep);
  border-top: var(--stroke-sticker) solid var(--fyf-charcoal);
}
.fyf .games-shell .games-frame .games-frame__shout {
  margin: 0;
  font-family: var(--font-spice-shaded);
  font-size: clamp(40px, 10vw, 64px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: var(--tracking-spice);
  text-align: center;
  text-transform: uppercase;
  color: var(--fyf-yellow);
  -webkit-text-stroke: 0.012em currentColor;
  text-shadow: var(--text-shadow-hard);
}
/* The green as a disc on the turf: no rough square, a chalk edge. */
.fyf .games-shell .games-frame .games-frame__turf .games-green { max-width: min(320px, 100%); }
.fyf .games-shell .games-frame .games-frame__turf .games-green .games-green__rough { fill: none; }
.fyf .games-shell .games-frame .games-frame__turf .games-green .games-green__fringe { fill: var(--fyf-green-deep); stroke: none; }
.fyf .games-shell .games-frame .games-frame__turf .games-green .games-green__surface { stroke: none; }
.fyf .games-shell .games-frame .games-frame__turf .games-green .games-green__ring { stroke: var(--games-ring); stroke-opacity: 1; stroke-width: 0.6; }
.fyf .games-shell .games-frame .games-frame__turf .games-btn:focus-visible,
.fyf .games-shell .games-frame .games-frame__next .games-btn:focus-visible { outline-color: var(--fyf-yellow); }

/* The stat's table around the pin (built by games--putt-putt-hike). */
.fyf .games-shell .games-table { display: flex; flex-direction: column; flex: 1; font-size: 14px; background: var(--fyf-white); }
.fyf .games-shell .games-table h4.games-table__title {
  margin: 0;
  padding: 10px 14px;
  font-family: var(--font-subhead);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--tracking-label);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--fyf-cream);
  background: var(--fyf-charcoal);
  border-bottom: var(--stroke-hairline) solid var(--fyf-charcoal-80);
}
.fyf .games-shell .games-table .games-table__list {
  --games-cols: 36px minmax(0, 1fr);
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The list scrolls in place so a long table never stretches the frame: capped
   here, and held to the turf's height on wide screens (see the wide block). */
.fyf .games-shell .games-table .games-table__list {
  position: relative;
  min-height: 0;
  max-height: 23rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.fyf .games-shell .games-table .games-table__list:focus-visible { outline: var(--stroke-chip) solid var(--fyf-blue-deep); outline-offset: -2px; }
.fyf .games-shell .games-table .games-table__head { position: sticky; top: 0; z-index: 2; }
/* Your pick and the pin never scroll out of sight: each parks under the
   header or on the bottom edge, whichever side it left by, and when both
   leave by the same side they stack in list order. The controller sets each
   row's offsets from the real heights. */
.fyf .games-shell .games-table .games-table__row--pick,
.fyf .games-shell .games-table .games-table__row--pin {
  position: sticky;
  top: var(--games-stick-top, 0px);
  bottom: var(--games-stick-bottom, 0px);
  z-index: 1;
  box-shadow: 0 var(--stroke-sticker) 0 var(--fyf-charcoal);
}
.fyf .games-shell .games-table .games-table__list--team { --games-cols: 36px minmax(0, 1fr) 48px; }
.fyf .games-shell .games-table .games-table__list--value { --games-cols: 36px minmax(0, 1fr) minmax(56px, max-content); }
.fyf .games-shell .games-table .games-table__list--team.games-table__list--value { --games-cols: 36px minmax(0, 1fr) 48px minmax(56px, max-content); }
.fyf .games-shell .games-table .games-table__head,
.fyf .games-shell .games-table .games-table__row {
  display: grid;
  grid-template-columns: var(--games-cols);
  align-items: center;
  padding: 7px 14px;
}
.fyf .games-shell .games-table .games-table__head {
  padding-block: 9px;
  font-family: var(--font-subhead);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fyf-cream);
  background: var(--fyf-charcoal);
}
.fyf .games-shell .games-table .games-table__list--value .games-table__head > :last-child,
.fyf .games-shell .games-table .games-table__value { text-align: right; }
.fyf .games-shell .games-table .games-table__row { border-top: var(--stroke-hairline) solid var(--fyf-charcoal-12); }
.fyf .games-shell .games-table .games-table__row:focus-visible { outline: var(--stroke-chip) solid var(--fyf-blue-deep); outline-offset: -2px; }
.fyf .games-shell .games-table .games-table__row > b,
.fyf .games-shell .games-table .games-table__value { font-family: var(--font-subhead); font-weight: 400; }
.fyf .games-shell .games-table .games-table__name { min-width: 0; padding-right: var(--space-2); }
.fyf .games-shell .games-table .games-table__row--pin,
.fyf .games-shell .games-table .games-table__row--pick {
  padding-block: 9px;
  border-top: var(--stroke-sticker) solid var(--fyf-charcoal);
}
.fyf .games-shell .games-table .games-table__row--pin .games-table__name,
.fyf .games-shell .games-table .games-table__row--pick .games-table__name { font-weight: 700; }
.fyf .games-shell .games-table .games-table__row--pin { background: var(--games-pin-tint); }
.fyf .games-shell .games-table .games-table__row--pick { background: var(--games-you); }
/* A coloured row closes with the same heavy rule it opens with. */
.fyf .games-shell .games-table .games-table__row--pin + .games-table__row:not(.games-table__row--pick),
.fyf .games-shell .games-table .games-table__row--pick + .games-table__row:not(.games-table__row--pin),
.fyf .games-shell .games-table .games-table__row--pin + .games-table__more,
.fyf .games-shell .games-table .games-table__row--pick + .games-table__more { border-top: var(--stroke-sticker) solid var(--fyf-charcoal); }
.fyf .games-shell .games-table .games-table__more { border-top: var(--stroke-hairline) solid var(--fyf-charcoal-12); }
.fyf .games-shell .games-table .games-table__more:last-child { margin-top: auto; }
.fyf .games-shell .games-table .games-table__more button {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 8px 14px;
  font-family: var(--font-subhead);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-align: center;
  text-transform: uppercase;
  color: var(--fyf-charcoal);
  background: var(--fyf-cream-tint);
  border: 0;
  cursor: pointer;
}
.fyf .games-shell .games-table .games-table__more button:hover { background: var(--fyf-cream-deep); }
.fyf .games-shell .games-table .games-table__more button:focus-visible { outline: var(--stroke-chip) solid var(--fyf-blue-deep); outline-offset: -2px; }
.fyf .games-shell .games-table .games-table__skip { padding: 2px 14px; text-align: center; border-top: var(--stroke-hairline) solid var(--fyf-charcoal-12); }

/* The next-hole strip. On a phone it rides the bottom of the screen while
   the frame is in view, so the button is never a scroll away. */
.fyf .games-shell .games-frame .games-frame__next {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding: 7px 18px;
  color: var(--fyf-cream);
  background: var(--fyf-charcoal);
}
.fyf .games-shell .games-frame .games-frame__upnext {
  margin-right: auto;
  font-family: var(--font-subhead);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.fyf .games-shell .games-frame .games-frame__upnext b { font-weight: 400; color: var(--fyf-yellow); }
.fyf .games-shell .games-frame .games-frame__key {
  display: none;
  padding: 3px 7px;
  font-family: var(--font-subhead);
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  border: var(--stroke-chip) solid var(--fyf-charcoal-80);
}
.fyf .games-shell .games-frame .games-frame__next .games-btn { box-shadow: none; }

/* Scorecard: Hole / Pin / Your pick / You, the total down the right side.
   The 2px gaps are the table's own charcoal showing through. */
.fyf .games-shell .games-sc-wrap { overflow-x: auto; container-type: inline-size; background: var(--fyf-charcoal); }
.fyf .games-shell .games-sc-wrap:focus-visible { outline: var(--stroke-sticker) solid var(--fyf-blue-deep); outline-offset: 2px; }
.fyf .games-shell .games-sc {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 2px;
  margin: -2px 0;
  color: var(--fyf-charcoal);
  background: var(--fyf-charcoal);
}
.fyf .games-shell .games-sc th,
.fyf .games-shell .games-sc td {
  padding: 4px 2px;
  font-family: var(--font-subhead);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
  border: 0;
}
.fyf .games-shell .games-sc th.games-sc__label {
  width: 72px;
  padding: 6px 8px;
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-align: left;
  text-transform: uppercase;
}
.fyf .games-shell .games-sc th.games-sc__total-head,
.fyf .games-shell .games-sc td.games-sc__total { width: 64px; }
/* A phone fits the whole card with no sideways scroll: the banner already
   shows the total, so its column goes, and the labels and names tighten.
   Names wrap between words and never truncate. */
@container (max-width: 459px) {
  .fyf .games-shell .games-sc th.games-sc__total-head,
  .fyf .games-shell .games-sc td.games-sc__total { display: none; }
  .fyf .games-shell .games-sc th.games-sc__label { width: 48px; padding: 6px 4px; font-size: 9px; }
  .fyf .games-shell .games-sc th,
  .fyf .games-shell .games-sc td { padding: 4px 1px; overflow-wrap: break-word; }
  .fyf .games-shell .games-sc td span { font-size: 10px; }
}
.fyf .games-shell .games-sc thead th { color: var(--fyf-cream); background: var(--fyf-green); }
.fyf .games-shell .games-sc thead th.games-sc__total-head {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  background: var(--fyf-charcoal);
}
.fyf .games-shell .games-sc td b { display: block; font-weight: 400; line-height: 1; }
.fyf .games-shell .games-sc td span { display: block; font-family: var(--font-body); font-size: 11px; }
.fyf .games-shell .games-sc .games-sc__pin th,
.fyf .games-shell .games-sc .games-sc__pin td { color: var(--fyf-cream); background: var(--fyf-green-deep); }
.fyf .games-shell .games-sc .games-sc__pin td b { margin-bottom: 1px; font-size: 13px; color: var(--fyf-yellow); }
.fyf .games-shell .games-sc .games-sc__pick th,
.fyf .games-shell .games-sc .games-sc__you th { background: var(--fyf-cream-tint); }
.fyf .games-shell .games-sc .games-sc__pick td,
.fyf .games-shell .games-sc .games-sc__you td { background: var(--fyf-white); }
.fyf .games-shell .games-sc .games-sc__pick td b { margin-bottom: 1px; }
.fyf .games-shell .games-sc .games-sc__you td { height: 36px; font-size: 18px; }
.fyf .games-shell .games-sc .games-sc__ace {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-family: var(--font-subhead);
  font-size: 18px;
  color: var(--fyf-cream);
  background: var(--fyf-green);
  border-radius: 50%;
}
/* The hole being played: yellow up top, a yellow wash under it. */
.fyf .games-shell .games-sc thead th.games-sc__cur,
.fyf .games-shell .games-sc .games-sc__pin td.games-sc__cur { color: var(--fyf-charcoal); background: var(--games-you); }
.fyf .games-shell .games-sc .games-sc__pin td.games-sc__cur b { color: var(--fyf-charcoal); }
.fyf .games-shell .games-sc .games-sc__pick td.games-sc__cur,
.fyf .games-shell .games-sc .games-sc__you td.games-sc__cur { background: var(--games-you-tint); }
.fyf .games-shell .games-sc .games-sc__pin td.games-sc__total { color: var(--fyf-cream); background: var(--fyf-charcoal); }
.fyf .games-shell .games-sc .games-sc__pin td.games-sc__total b { margin-bottom: 4px; font-size: 28px; color: var(--fyf-yellow); }
.fyf .games-shell .games-sc .games-sc__pin td.games-sc__total span {
  font-family: var(--font-subhead);
  font-size: 9px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.fyf .games-shell .games-sc.games-sc--final .games-sc__pin td.games-sc__total { color: var(--fyf-charcoal); background: var(--games-you); }
.fyf .games-shell .games-sc.games-sc--final .games-sc__pin td.games-sc__total b { font-size: 32px; color: var(--fyf-charcoal); }

/* ── The finished round (2b) ───────────────────────────────────────────── */
/* Tabs from two radios: the checked one lights its label and shows its panel. */
.fyf .games-shell .games-tabs .games-tabs__radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fyf .games-shell .games-tabs .games-tabs__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: var(--stroke-sticker) solid var(--fyf-charcoal);
}
.fyf .games-shell .games-tabs .games-tabs__bar label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--font-subhead);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-align: center;
  text-transform: uppercase;
  color: var(--fyf-cream);
  background: var(--fyf-charcoal);
  cursor: pointer;
}
.fyf .games-shell .games-tabs .games-tabs__bar label + label { border-left: var(--stroke-sticker) solid var(--fyf-charcoal); }
.fyf .games-shell .games-tabs .games-tabs__radio:first-of-type:checked ~ .games-tabs__bar label:first-child,
.fyf .games-shell .games-tabs .games-tabs__radio:last-of-type:checked ~ .games-tabs__bar label:last-child { color: var(--fyf-charcoal); background: var(--fyf-cream); }
.fyf .games-shell .games-tabs .games-tabs__radio:first-of-type:focus-visible ~ .games-tabs__bar label:first-child,
.fyf .games-shell .games-tabs .games-tabs__radio:last-of-type:focus-visible ~ .games-tabs__bar label:last-child { outline: var(--stroke-sticker) solid var(--fyf-blue-deep); outline-offset: -5px; }
.fyf .games-shell .games-tabs .games-tabs__panel { display: none; flex-direction: column; flex: 1; font-size: 14px; }
.fyf .games-shell .games-tabs .games-tabs__radio:first-of-type:checked ~ .games-tabs__panel--board,
.fyf .games-shell .games-tabs .games-tabs__radio:last-of-type:checked ~ .games-tabs__panel--field { display: flex; }
.fyf .games-shell .games-tabs .games-tabs__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px var(--space-3);
  margin: auto 0 0;
  padding: 4px 14px;
  min-height: 44px;
  font-family: var(--font-subhead);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  background: var(--fyf-cream-tint);
  border-top: var(--stroke-hairline) solid var(--fyf-charcoal-12);
}
.fyf .games-shell .games-tabs .games-tabs__foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fyf-charcoal); }

.fyf .games-shell .games-lb { width: 100%; border-collapse: collapse; }
.fyf .games-shell .games-lb th {
  padding: 9px 14px;
  font-family: var(--font-subhead);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--tracking-label);
  text-align: left;
  text-transform: uppercase;
  color: var(--fyf-cream);
  background: var(--fyf-charcoal);
}
.fyf .games-shell .games-lb td { padding: 7px 14px; border-top: var(--stroke-hairline) solid var(--fyf-charcoal-12); }
.fyf .games-shell .games-lb th:first-child,
.fyf .games-shell .games-lb td:first-child { width: 72px; }
.fyf .games-shell .games-lb th:last-child,
.fyf .games-shell .games-lb td:last-child { width: 88px; text-align: right; white-space: nowrap; }
.fyf .games-shell .games-lb td:first-child,
.fyf .games-shell .games-lb td:last-child { font-family: var(--font-subhead); }
.fyf .games-shell .games-lb .games-lb__you td {
  padding-block: 9px;
  font-weight: 700;
  background: var(--games-you);
  border-top: var(--stroke-sticker) solid var(--fyf-charcoal);
  border-bottom: var(--stroke-sticker) solid var(--fyf-charcoal);
}
.fyf .games-shell .games-lb .games-lb__you td:first-child,
.fyf .games-shell .games-lb .games-lb__you td:last-child { font-weight: 400; }
.fyf .games-shell .games-lb .games-lb__gap td {
  padding: 8px 14px;
  font-family: var(--font-subhead);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-align: center;
  text-transform: uppercase;
  color: var(--fyf-charcoal-80);
  background: var(--fyf-cream-tint);
}

/* Field spread: one bar per band of totals, yours in yellow. */
.fyf .games-shell .games-spread { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 0; }
.fyf .games-shell .games-spread .games-spread__bars,
.fyf .games-shell .games-spread .games-spread__axis {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
}
.fyf .games-shell .games-spread .games-spread__bars {
  flex: 1;
  align-items: end;
  min-height: 262px;
  border-bottom: var(--stroke-sticker) solid var(--fyf-charcoal);
}
.fyf .games-shell .games-spread .games-spread__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.fyf .games-shell .games-spread .games-spread__pct { font-family: var(--font-subhead); font-size: 13px; }
.fyf .games-shell .games-spread .games-spread__bar {
  width: 100%;
  box-sizing: border-box;
  background: var(--fyf-green);
  border: var(--stroke-chip) solid var(--fyf-charcoal);
  border-bottom: 0;
}
.fyf .games-shell .games-spread .games-spread__col--you .games-spread__bar { background: var(--games-you); border-width: var(--stroke-sticker); }
.fyf .games-shell .games-spread .games-spread__you {
  padding: 2px 7px;
  font-family: var(--font-subhead);
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fyf-cream);
  background: var(--fyf-charcoal);
}
.fyf .games-shell .games-spread .games-spread__axis span { padding: 6px 0; font-family: var(--font-subhead); font-size: 12px; text-align: center; white-space: nowrap; }
.fyf .games-shell .games-spread .games-spread__axis .games-spread__axis-you { background: var(--games-you); }
.fyf .games-shell .games-spread .games-spread__caption {
  margin: 0;
  padding: 4px 0 14px;
  font-family: var(--font-subhead);
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-align: center;
  text-transform: uppercase;
  color: var(--fyf-charcoal-80);
}

/* The share card: grid paper, taped on, a touch askew. */
.fyf .games-shell .games-share { gap: 22px; }
.fyf .games-shell .games-share .games-share__eyebrow {
  margin: 0;
  font-family: var(--font-subhead);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-align: center;
  text-transform: uppercase;
  color: var(--fyf-cream);
}
.fyf .games-shell .games-ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: min(360px, 100%);
  padding: 30px 22px 20px;
  color: var(--fyf-charcoal);
  background-color: var(--fyf-cream-tint);
  background-image: var(--texture-grid-paper);
  transform: rotate(var(--tilt-sm));
}
.fyf .games-shell .games-ticket .games-ticket__tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 26px;
  margin-left: -48px;
  background: var(--tape-pink);
  transform: rotate(-2deg);
}
.fyf .games-shell .games-ticket p { margin: 0; }
.fyf .games-shell .games-ticket .games-ticket__title,
.fyf .games-shell .games-ticket .games-ticket__foot {
  font-family: var(--font-subhead);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.fyf .games-shell .games-ticket .games-ticket__title { font-size: 12px; }
.fyf .games-shell .games-ticket .games-ticket__score { font-family: var(--font-header); font-size: 36px; line-height: 1; }
.fyf .games-shell .games-ticket .games-ticket__holes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  font-family: var(--font-subhead);
  text-align: center;
}
.fyf .games-shell .games-ticket .games-ticket__holes > span { display: flex; flex-direction: column; gap: 3px; }
.fyf .games-shell .games-ticket .games-ticket__holes i { font-size: 10px; font-style: normal; }
/* The hole's ask ("#27 Pass Yds") under its box; wraps, never truncates. */
.fyf .games-shell .games-ticket .games-ticket__ask { font-size: 10px; line-height: 1.2; letter-spacing: var(--tracking-label); text-transform: uppercase; overflow-wrap: anywhere; }
.fyf .games-shell .games-ticket .games-ticket__box {
  padding: 9px 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  background: var(--fyf-cream);
  border: var(--stroke-chip) solid var(--fyf-charcoal);
}
.fyf .games-shell .games-ticket .games-ticket__box--ace { color: var(--fyf-cream); background: var(--fyf-green); }
.fyf .games-shell .games-ticket .games-ticket__box--near { background: var(--fyf-yellow); }
.fyf .games-shell .games-ticket .games-ticket__box--far { background: var(--fyf-orange); }
.fyf .games-shell .games-ticket .games-ticket__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px var(--space-3);
  padding-top: 9px;
  font-size: 11px;
  border-top: var(--stroke-chip) solid var(--fyf-charcoal);
}
.fyf .games-shell .games-share .games-share__go { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin: auto 0 0; }
.fyf .games-shell .games-share .games-share__status { margin: 0; font-size: var(--text-sm); font-weight: 700; color: var(--fyf-cream); }
.fyf .games-shell .games-share .games-share__status:empty { display: none; }
.fyf .games-shell .games-share .games-share__text { width: min(360px, 100%); }
.fyf .games-shell .games-share .games-share__text label { color: var(--fyf-cream); }

/* Every pin: its own section under the frame. One compact card per hole in
   the frame's language: a slim strip, the question beside a small map of the
   green, then your pick and the pin as one-line bands. */
.fyf .games-shell .games-result .games-pins h3.games-result__pins { margin: 0 0 var(--space-3); }
.fyf .games-shell .games-result .games-pins .games-result__holes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  margin: 0 0 var(--space-6);
}
.fyf .games-shell .games-result .games-pincard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--fyf-charcoal);
  background: var(--fyf-white);
  border: var(--stroke-sticker) solid var(--fyf-charcoal);
}
.fyf .games-shell .games-result .games-pincard p { margin: 0; }
.fyf .games-shell .games-result .games-pincard .games-pincard__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 var(--space-2);
  padding: 5px 10px;
  font-family: var(--font-subhead);
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--fyf-cream);
  background: var(--fyf-green-deep);
}
.fyf .games-shell .games-result .games-pincard .games-result__strokes-lbl { font: inherit; letter-spacing: inherit; color: var(--fyf-yellow); }
.fyf .games-shell .games-result .games-pincard .games-pincard__ask { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.fyf .games-shell .games-result .games-pincard .games-pincard__prompt { font-family: var(--font-header); font-size: 16px; line-height: 1.15; }
.fyf .games-shell .games-result .games-pincard .games-green.games-green--static { flex: none; width: 40px; }
.fyf .games-shell .games-result .games-pincard .games-pincard__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 var(--space-2);
  padding: 6px 10px 7px;
  border-top: 2px solid var(--fyf-charcoal);
}
.fyf .games-shell .games-result .games-pincard .games-pincard__row--pick { background: var(--games-you); }
.fyf .games-shell .games-result .games-pincard .games-pincard__row--pin { background: var(--games-pin-tint); }
.fyf .games-shell .games-result .games-pincard .games-pincard__label {
  flex-basis: 100%;
  font-family: var(--font-subhead);
  font-size: 9px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.fyf .games-shell .games-result .games-pincard .games-pincard__name { font-size: 14px; font-weight: 700; line-height: 1.25; }
.fyf .games-shell .games-result .games-pincard .games-pincard__stat { font-family: var(--font-subhead); font-size: 11px; letter-spacing: 0.03em; white-space: nowrap; }
@media (min-width: 760px) {
  .fyf .games-shell .games-result .games-pins .games-result__holes { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* Wide: the board's three columns. The trio's cells sit side by side, the
   turf spans the last two, and the next-hole strip stays in the flow. */
@media (min-width: 760px) {
  .fyf .games-shell .games-frame .games-frame__trio,
  .fyf .games-shell .games-frame .games-frame__body { grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); }
  .fyf .games-shell .games-frame .games-frame__cell + .games-frame__cell { border-top: 0; }
  .fyf .games-shell .games-frame .games-frame__cell--gap { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 4px; padding: 12px 8px; }
  .fyf .games-shell .games-frame .games-frame__cell--gap small { flex-basis: auto; }
  .fyf .games-shell .games-frame .games-frame__turf {
    grid-column: 2 / span 2;
    border-top: 0;
    border-left: var(--stroke-sticker) solid var(--fyf-charcoal);
  }
  .fyf .games-shell .games-frame .games-frame__left:has(> .games-frame__pick:not([hidden])),
  .fyf .games-shell .games-frame .games-frame__left:has(> .games-frame__chosen:not([hidden])) { justify-content: center; }
  /* The turf sets the row's height; the table fills it and scrolls. */
  .fyf .games-shell .games-frame .games-frame__left:has(> .games-table:not([hidden])) { position: relative; min-height: 420px; }
  .fyf .games-shell .games-frame .games-frame__left > .games-table { position: absolute; inset: 0; }
  .fyf .games-shell .games-frame .games-frame__left > .games-table .games-table__list { max-height: none; }
  .fyf .games-shell .games-frame .games-frame__body--final { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }
  .fyf .games-shell .games-frame .games-frame__body--final .games-frame__turf { grid-column: auto; }
  .fyf .games-shell .games-frame .games-frame__next { position: static; }
  .fyf .games-shell .games-sc th.games-sc__label { width: 96px; padding-inline: 12px; }
  .fyf .games-shell .games-sc th.games-sc__total-head,
  .fyf .games-shell .games-sc td.games-sc__total { width: 84px; }
}
/* "Enter" is a hint for a keyboard, not a thumb. */
@media (min-width: 760px) and (hover: hover) {
  .fyf .games-shell .games-frame .games-frame__key { display: inline-block; }
}

/* ── Practice strip ───────────────────────────────────────────────────── */
/* Admin-only bar above the masthead on /games/:key/practice/:id. Charcoal on
   cream with a green rule: no yellow or pink, which are reserved above. */
.fyf .games-stage .games-practice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  margin: 0 0 12px; padding: 8px 14px;
  color: var(--fyf-charcoal); background: var(--fyf-cream);
  border: 2px solid var(--fyf-charcoal); border-left: 8px solid var(--fyf-green);
  border-radius: 8px;
}
.fyf .games-stage .games-practice__text { margin: 0 auto 0 0; font-weight: 800; }
.fyf .games-stage .games-practice__form { margin: 0; }
.fyf .games-stage .games-practice__link,
.fyf .games-stage .games-practice__btn {
  font: inherit; font-weight: 700; color: var(--fyf-charcoal); text-decoration: underline;
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
}

/* ── Compact: the game on one screen ──────────────────────────────────── */
/* At 100% zoom the lobby, a hole and the finished round each fit the window
   with no page scroll. Every part above keeps its look; this block only
   tightens sizes. On wide windows (760px+) the hole fills the height left
   between the site header and the footer line, and the green is the part
   that gives: it is drawn to fit whatever room is left (the svg box flexes,
   the drawing scales inside it). Under 760px each section stacks as before,
   just smaller. Later rules here win over the same selectors above. */

/* Site chrome on games pages: the app's top bar (a fixed height, see
   app_shell.css) and a slim footer line. */
.fyf .games-countdown { padding: 8px var(--space-4); }
.fyf .games-shell:has(.games-stage) { padding-top: 12px; padding-bottom: 12px; }

/* Masthead: a smaller badge and wordmark, a tighter row. */
.fyf .games-shell .games-mast { gap: 6px 14px; margin-bottom: 10px; padding: 0; }
.fyf .games-shell .games-mast .games-mast__badge { width: 44px; height: 44px; }
.fyf .games-shell .games-mast .games-mast__badge i:nth-child(1) { left: 19px; top: 8px; width: 3px; height: 24px; }
.fyf .games-shell .games-mast .games-mast__badge i:nth-child(2) { left: 22px; top: 8px; width: 14px; height: 10px; }
.fyf .games-shell .games-mast .games-mast__badge i:nth-child(3) { left: 13px; top: 29px; width: 16px; height: 6px; }
.fyf .games-shell .games-mast .games-mast__words { gap: 3px; }
.fyf .games-shell .games-mast h1.games-mast__title { font-size: clamp(24px, 6vw, 30px); }
.fyf .games-shell .games-mast.games-mast--compact h1.games-mast__title { font-size: 24px; }
.fyf .games-shell .games-mast .games-mast__stamp { padding: 3px 10px 4px; font-size: 9px; }
.fyf .games-shell .games-mast .games-mast__stamp b { font-size: 14px; }
.fyf .games-shell .games-mast .games-mast__help { min-height: 32px; padding-inline: var(--space-3); }
.fyf .games-shell .games-mast .games-mast__help::after { inset: -6px; }

/* Banner: the count and the question shrink with the window. */
.fyf .games-shell .games-frame .games-frame__banner { gap: clamp(10px, 2vw, 20px); padding: clamp(8px, 1.4vh, 14px) clamp(12px, 2.4vw, 22px); }
.fyf .games-shell .games-frame .games-frame__count { padding-right: clamp(10px, 2vw, 20px); font-size: 10px; }
.fyf .games-shell .games-frame .games-frame__count b { font-size: clamp(28px, min(6vw, 5.5vh), 44px); }
.fyf .games-shell .games-frame .games-frame__ask { gap: clamp(4px, 0.8vh, 8px); }
.fyf .games-shell .games-frame .games-frame__q { font-size: clamp(20px, min(4.2vw, 4.6vh), 38px); line-height: 1.1; }
.fyf .games-shell .games-frame .games-frame__notes { font-size: 11px; }

/* Trio: slimmer cells. */
.fyf .games-shell .games-frame .games-frame__cell { padding: 8px 14px; }
.fyf .games-shell .games-frame .games-frame__name { font-size: 22px; }
.fyf .games-shell .games-frame .games-frame__meta { font-size: 12px; line-height: 1.3; }
.fyf .games-shell .games-frame .games-frame__cell--gap { padding: 6px 10px; }
.fyf .games-shell .games-frame .games-frame__cell--gap b { font-size: 30px; }
.fyf .games-shell .games-frame .games-frame__cell--pin { padding-right: 52px; }
.fyf .games-shell .games-frame .games-frame__cell--pin > .games-pin { top: 8px; right: 14px; transform: scale(0.8); transform-origin: top right; }
.fyf .games-shell .games-frame .games-frame__timer { font-size: 26px; }

/* Body: the picker, the turf, the shout. */
.fyf .games-shell .games-frame .games-frame__pick,
.fyf .games-shell .games-frame .games-frame__chosen { padding: 12px 14px; }
.fyf .games-shell .games-frame .games-play__result { padding: var(--space-2) 14px; }
.fyf .games-shell .games-frame .games-play__actions { gap: var(--space-2); padding: 0 14px 12px; }
.fyf .games-shell .games-frame .games-frame__turf { gap: 6px; padding: 10px clamp(10px, 2vw, 18px) 12px; }
.fyf .games-shell .games-frame .games-frame__shout { font-size: clamp(26px, min(7vw, 5vh), 44px); }
.fyf .games-shell .games-frame .games-frame__turf .games-green { max-width: min(260px, 100%); }
.fyf .games-shell .games-table .games-table__list { max-height: 15rem; }
.fyf .games-shell .games-table h4.games-table__title { padding: 6px 12px; }
.fyf .games-shell .games-table .games-table__head,
.fyf .games-shell .games-table .games-table__row { padding: 4px 12px; }
.fyf .games-shell .games-table .games-table__head { padding-block: 6px; }
.fyf .games-shell .games-table .games-table__row--pin,
.fyf .games-shell .games-table .games-table__row--pick { padding-block: 6px; }
.fyf .games-shell .games-table .games-table__more button { min-height: 30px; padding-block: 5px; }

/* Next-hole strip and scorecard: shorter rows. */
.fyf .games-shell .games-frame .games-frame__next { padding: 4px 14px; }
.fyf .games-shell .games-sc th,
.fyf .games-shell .games-sc td { padding: 2px; }
.fyf .games-shell .games-sc th.games-sc__label { padding: 4px 8px; }
.fyf .games-shell .games-sc td span { font-size: 10px; line-height: 1.15; }
.fyf .games-shell .games-sc .games-sc__you td { height: 28px; font-size: 16px; }
.fyf .games-shell .games-sc .games-sc__ace { width: 22px; height: 22px; font-size: 14px; }
.fyf .games-shell .games-sc .games-sc__pin td.games-sc__total b { margin-bottom: 2px; font-size: 22px; }
.fyf .games-shell .games-sc.games-sc--final .games-sc__pin td.games-sc__total b { font-size: 26px; }

/* Finished round: tabs, leaderboard, field spread and the share card, all
   tighter, so the frame ends above the fold. Every pin follows under it. */
.fyf .games-shell .games-tabs .games-tabs__bar label { min-height: 36px; padding: 6px 12px; }
.fyf .games-shell .games-tabs .games-tabs__foot { min-height: 36px; padding: 2px 12px; }
.fyf .games-shell .games-tabs .games-tabs__foot a { min-height: 36px; }
.fyf .games-shell .games-lb th { padding: 6px 12px; }
.fyf .games-shell .games-lb td { padding: 5px 12px; }
.fyf .games-shell .games-lb .games-lb__you td { padding-block: 6px; }
.fyf .games-shell .games-lb .games-lb__gap td { padding: 5px 12px; }
.fyf .games-shell .games-spread { padding: 12px 14px 0; }
.fyf .games-shell .games-spread .games-spread__bars { min-height: 150px; }
.fyf .games-shell .games-spread .games-spread__bar { max-height: 120px; }
.fyf .games-shell .games-spread .games-spread__caption { padding-bottom: 8px; }
.fyf .games-shell .games-share { gap: 10px; }
.fyf .games-shell .games-ticket { gap: 8px; width: min(320px, 100%); padding: 20px 16px 12px; }
.fyf .games-shell .games-ticket .games-ticket__tape { top: -10px; width: 80px; height: 20px; margin-left: -40px; }
.fyf .games-shell .games-ticket .games-ticket__title { font-size: 11px; }
.fyf .games-shell .games-ticket .games-ticket__score { font-size: 28px; }
.fyf .games-shell .games-ticket .games-ticket__box { padding: 4px 0; font-size: 17px; }
.fyf .games-shell .games-ticket .games-ticket__foot { padding-top: 6px; font-size: 10px; }
.fyf .games-shell .games-share .games-share__go { gap: var(--space-2); }
.fyf .games-shell .games-share .games-share__go .games-btn { min-height: 40px; padding: 6px var(--space-4); font-size: 13px; }
.fyf .games-shell .games-frame--final { margin-bottom: var(--space-5); }

/* Wide windows: the hole fills the height between header and footer line,
   and the green takes what is left. The page still scrolls if the window is
   shorter than the floor on the body (a very short window), rather than
   crushing the green to nothing. */
@media (min-width: 760px) {
  .fyf-body:has(.games-play__round:not([hidden])) { height: 100dvh; }
  .fyf-body:has(.games-play__round:not([hidden])) .fyf-main,
  .fyf .games-shell:has(.games-play__round:not([hidden])),
  .fyf .games-shell .games-stage:has(.games-play__round:not([hidden])),
  .fyf .games-shell .games-play:has(.games-play__round:not([hidden])) { display: flex; flex-direction: column; }
  .fyf .games-shell:has(.games-play__round:not([hidden])) { flex: 1; width: 100%; }
  .fyf .games-shell .games-stage:has(.games-play__round:not([hidden])),
  .fyf .games-shell .games-play:has(.games-play__round:not([hidden])) { flex: 1; }
  .fyf .games-shell .games-frame.games-play__round:not([hidden]) { flex: 1; display: flex; flex-direction: column; margin-bottom: 0; }
  .fyf .games-shell .games-play__round .games-frame__body { flex: 1 1 0; min-height: 180px; grid-template-rows: minmax(0, 1fr); }
  .fyf .games-shell .games-play__round .games-frame__turf { min-height: 0; justify-content: center; }
  .fyf .games-shell .games-play__round .games-frame__turf .games-green { flex: 1 1 0; width: 100%; max-width: 100%; min-height: 0; max-height: 380px; }
  .fyf .games-shell .games-frame .games-frame__left:has(> .games-table:not([hidden])) { min-height: 0; }
  .fyf .games-shell .games-frame .games-frame__trio,
  .fyf .games-shell .games-frame .games-frame__body { grid-template-columns: minmax(0, 1fr) 130px minmax(0, 1fr); }
  .fyf .games-shell .games-frame .games-frame__body--final { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }
  .fyf .games-shell .games-frame .games-frame__cell--gap { padding: 6px; }
  .fyf .games-shell .games-sc th.games-sc__label { width: 84px; padding-inline: 10px; }
  .fyf .games-shell .games-sc th.games-sc__total-head,
  .fyf .games-shell .games-sc td.games-sc__total { width: 72px; }
}

/* Lobby: a smaller cabinet. The screen is the part that gives: it is as tall
   as the window allows, between a floor and its full height. */
.fyf .games-shell .games-arcade { gap: var(--space-4) 28px; margin-bottom: 0; }
.fyf .games-shell .games-arcade__cabinet { width: min(480px, 100%); filter: drop-shadow(6px 6px 0 var(--fyf-charcoal)); }
.fyf .games-shell .games-arcade__top { gap: 6px; padding: 8px 12px; border-radius: 18px 18px 0 0; }
.fyf .games-shell .games-arcade__bulb { width: 8px; height: 8px; }
.fyf .games-shell .games-arcade__sign { padding: 4px 12px 6px; }
.fyf .games-shell .games-arcade__title { max-width: 340px; margin: 0 auto; }
.fyf .games-shell .games-arcade__course { font-size: 10px; }
.fyf .games-shell .games-arcade__bezel { gap: 8px; padding: 10px 20px 8px; }
.fyf .games-shell .games-arcade__glass { padding: 7px; border-radius: 20px / 16px; }
.fyf .games-shell .games-arcade__screen { height: clamp(110px, calc(100dvh - 604px), 220px); border-radius: 14px / 10px; }
.fyf .games-shell .games-arcade__crawl { padding: 6px 0; }
.fyf .games-shell .games-arcade__crawl-track { font-size: 11px; }
.fyf .games-shell .games-arcade__press { bottom: 8px; font-size: 15px; }
.fyf .games-shell .games-arcade__grille i { width: 20px; height: 4px; }
.fyf .games-shell .games-arcade__deck { padding: 12px 32px 12px; }
.fyf .games-shell .games-arcade__control { gap: 6px; }
.fyf .games-shell .games-arcade__control--side { gap: 16px; }
.fyf .games-shell .games-arcade__mini { gap: 6px; }
.fyf .games-shell .games-arcade__plate { padding: 4px 9px; font-size: 9px; }
.fyf .games-shell .games-arcade__plate--lit { font-size: 10px; }
.fyf .games-shell .games-arcade__stick { width: 62px; height: 76px; }
.fyf .games-shell .games-arcade__housing { padding: 8px; }
.fyf .games-shell .games-arcade__start { width: 100px; height: 100px; font-size: 19px; box-shadow: 0 6px 0 var(--fyf-green-deep), 0 6px 0 3px var(--fyf-charcoal); }
.fyf .games-shell .games-arcade__start:hover { box-shadow: 0 8px 0 var(--fyf-green-deep), 0 8px 0 3px var(--fyf-charcoal); }
.fyf .games-shell .games-arcade__cap { width: 44px; height: 44px; box-shadow: 0 4px 0 var(--fyf-stock-edge), 0 4px 0 3px var(--fyf-charcoal); }
.fyf .games-shell .games-arcade__front { gap: 14px; padding: 8px 20px 10px; border-radius: 0 0 18px 18px; }
.fyf .games-shell .games-arcade__coin { gap: 6px; padding: 5px; }
.fyf .games-shell .games-arcade__coin span { gap: 4px; width: 38px; padding: 4px 0 2px; font-size: 7px; }
.fyf .games-shell .games-arcade__slot { width: 5px; height: 16px; }
.fyf .games-shell .games-arcade__rule { padding: 6px 10px; font-size: 13px; line-height: 1.3; }
.fyf .games-shell .games-arcade__scores { width: 250px; margin-top: 24px; padding: 22px 22px 14px; }
.fyf .games-shell .games-arcade__screw:nth-of-type(1) { top: 12px; left: 12px; }
.fyf .games-shell .games-arcade__screw:nth-of-type(2) { top: 12px; right: 12px; }
.fyf .games-shell .games-arcade__screw:nth-of-type(3) { bottom: 12px; left: 12px; }
.fyf .games-shell .games-arcade__screw:nth-of-type(4) { bottom: 12px; right: 12px; }
.fyf .games-shell h2.games-arcade__scores-title { margin: 2px 0 8px; font-size: 24px; }
.fyf .games-shell .games-arcade__board,
.fyf .games-shell .games-arcade__you { font-size: 12px; }
.fyf .games-shell .games-arcade__board { gap: 5px; }
.fyf .games-shell .games-arcade__you { margin-top: 8px; padding: 4px 8px; }
.fyf .games-shell .games-arcade__more { margin-top: 4px; }
.fyf .games-shell .games-arcade__more a { padding: 8px; }
/* The sign stays beside the cabinet down to 820px; under that it sits under
   the cabinet as a strip as wide as the cabinet. */
@media (max-width: 1035px) {
  .fyf .games-shell .games-arcade__scores { width: 250px; margin-top: 24px; }
}
@media (max-width: 820px) {
  .fyf .games-shell .games-arcade__scores { width: min(480px, 100%); margin-top: 0; }
}
/* Phone cabinet: the narrow values from the block above, restated so the
   compact desktop sizes here do not widen them. */
@container (max-width: 420px) {
  .fyf .games-shell .games-arcade__top { padding: 8px; }
  .fyf .games-shell .games-arcade__bulb:nth-child(n + 19) { display: none; }
  .fyf .games-shell .games-arcade__sign { padding: 4px 8px 6px; }
  .fyf .games-shell .games-arcade__bezel { padding: 8px 12px 8px; }
  .fyf .games-shell .games-arcade__screen { height: clamp(100px, calc(100dvh - 720px), 190px); }
  .fyf .games-shell .games-arcade__grille i { width: 16px; }
  .fyf .games-shell .games-arcade__grille i:nth-child(n + 8) { display: none; }
  .fyf .games-shell .games-arcade__deck { gap: 6px; padding: 10px 12px 10px; }
  .fyf .games-shell .games-arcade__stick { width: 52px; height: 64px; }
  .fyf .games-shell .games-arcade__control--side { flex-direction: column; gap: 8px; }
  .fyf .games-shell .games-arcade__plate { padding: 4px 7px; font-size: 8px; }
  .fyf .games-shell .games-arcade__start { width: 90px; height: 90px; font-size: 17px; }
  .fyf .games-shell .games-arcade__cap { width: 40px; height: 40px; }
  .fyf .games-shell .games-arcade__front { gap: 10px; padding: 8px 12px 10px; }
  .fyf .games-shell .games-arcade__rule { padding: 6px 8px; font-size: 12px; }
}

/* The number between yours and the pin: count and label on one line, the
   note under them, so the trio stays one short row. */
@media (min-width: 760px) {
  .fyf .games-shell .games-frame .games-frame__cell--gap { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
  .fyf .games-shell .games-frame .games-frame__cell--gap small { flex-basis: 100%; line-height: 1.25; }
}
/* Short windows: the rules line under the wordmark goes (How to play and
   the course stamp stay), so the green keeps its room. */
@media (max-height: 800px) {
  .fyf .games-shell .games-mast .games-mast__tagline { display: none; }
  .fyf .games-shell .games-mast .games-mast__badge { width: 36px; height: 36px; }
  .fyf .games-shell .games-mast .games-mast__badge i:nth-child(1) { left: 15px; top: 6px; height: 20px; }
  .fyf .games-shell .games-mast .games-mast__badge i:nth-child(2) { left: 18px; top: 6px; width: 12px; height: 9px; }
  .fyf .games-shell .games-mast .games-mast__badge i:nth-child(3) { left: 10px; top: 23px; width: 14px; height: 5px; }
}

/* Phone (under 760px): the three verdict cells sit in one row, the table
   and the green get shorter, the high-score sign packs tighter. */
@media (max-width: 759px) {
  .fyf .games-shell .games-frame .games-frame__trio { grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); }
  .fyf .games-shell .games-frame .games-frame__cell + .games-frame__cell { border-top: 0; }
  .fyf .games-shell .games-frame .games-frame__cell { padding: 6px 8px; }
  .fyf .games-shell .games-frame .games-frame__name { font-size: 17px; }
  .fyf .games-shell .games-frame .games-frame__meta { font-size: 11px; }
  .fyf .games-shell .games-frame .games-frame__eyebrow { font-size: 10px; }
  .fyf .games-shell .games-frame .games-frame__cell--gap { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 2px; padding: 6px 4px; }
  .fyf .games-shell .games-frame .games-frame__cell--gap b { font-size: 26px; }
  .fyf .games-shell .games-frame .games-frame__cell--gap span { font-size: 9px; }
  .fyf .games-shell .games-frame .games-frame__cell--gap small { flex-basis: auto; font-size: 10px; }
  .fyf .games-shell .games-frame .games-frame__cell--pin { padding-right: 8px; }
  .fyf .games-shell .games-frame .games-frame__cell--pin > .games-pin { display: none; }
  .fyf .games-shell .games-frame .games-frame__cell--streak { flex-direction: column; align-items: flex-start; }
  .fyf .games-shell .games-table .games-table__list { max-height: 9.5rem; }
  .fyf .games-shell .games-frame .games-frame__turf .games-green { max-width: min(190px, 100%); }
  .fyf .games-shell .games-frame .games-frame__shout { font-size: clamp(24px, 7vw, 34px); }
  .fyf .games-shell .games-arcade__scores { padding: 16px 20px 10px; }
  .fyf .games-shell h2.games-arcade__scores-title { font-size: 20px; margin-bottom: 6px; }
}
/* Phone round: the wordmark, the stamp and How to play share one row; the
   rules line goes (the dialog and the banner carry it). */
@media (max-width: 759px) {
  .fyf .games-stage:has(.games-play__round:not([hidden])) .games-mast { flex-wrap: nowrap; }
  .fyf .games-stage:has(.games-play__round:not([hidden])) .games-mast .games-mast__tagline { display: none; }
  .fyf .games-stage:has(.games-play__round:not([hidden])) .games-mast h1.games-mast__title { font-size: clamp(18px, 5.4vw, 24px); }
  .fyf .games-stage:has(.games-play__round:not([hidden])) .games-mast .games-mast__help { padding-inline: 10px; font-size: 10px; }
}

/* Lobby, round two: a shorter marquee and a one-row control panel, so the
   screen gets the height. The marquee keeps its lockup (arched PUTT PUTT
   over HIKE, the flag, the course line) at a smaller size with tighter
   bulb rows. The panel puts every control on one baseline: the Tee off
   button is smaller and its "Player 1 start" plate sits on the housing's
   rim instead of above it. */
.fyf .games-shell .games-arcade__top { gap: 4px; padding: 6px 12px; }
.fyf .games-shell .games-arcade__sign { padding: 2px 12px 4px; }
.fyf .games-shell .games-arcade__title { max-width: 230px; }
.fyf .games-shell .games-arcade__course { font-size: 9px; line-height: 1.2; }
.fyf .games-shell .games-arcade__bezel { padding-top: 8px; }
/* 424px is everything on the page but the screen and the chrome; the chrome's
   share comes from the layout (.fr-flow in app_shell.css): the top bar, plus
   the tab bar on a signed-in phone. */
.fyf .games-shell .games-arcade__screen { height: clamp(140px, calc(100dvh - 424px - var(--shell-chrome-top, 66px) - var(--shell-chrome-bottom, 0px)), 300px); }
.fyf .games-shell .games-arcade__deck { align-items: center; padding: 14px 28px 10px; }
.fyf .games-shell .games-arcade__control--start { position: relative; }
.fyf .games-shell .games-arcade__control--start .games-arcade__plate--lit {
  position: absolute;
  top: -11px;
  left: 50%;
  z-index: 1;
  padding: 2px 7px;
  font-size: 8px;
  transform: translateX(-50%);
}
.fyf .games-shell .games-arcade__housing { padding: 6px; }
.fyf .games-shell .games-arcade__start { width: 72px; height: 72px; font-size: 14px; letter-spacing: .06em; box-shadow: 0 4px 0 var(--fyf-green-deep), 0 4px 0 3px var(--fyf-charcoal); }
.fyf .games-shell .games-arcade__start:hover { box-shadow: 0 6px 0 var(--fyf-green-deep), 0 6px 0 3px var(--fyf-charcoal); }
.fyf .games-shell .games-arcade__start:active,
.fyf .games-shell .games-arcade__start:disabled { transform: translateY(3px); }
.fyf .games-shell .games-arcade__stick { width: 44px; height: 54px; }
.fyf .games-shell .games-arcade__control { gap: 4px; }
.fyf .games-shell .games-arcade__mini { gap: 4px; }
.fyf .games-shell .games-arcade__cap { width: 36px; height: 36px; }
.fyf .games-shell .games-arcade__plate { padding: 3px 7px; font-size: 8px; }
.fyf .games-shell .games-arcade__front { padding: 6px 20px 8px; }
.fyf .games-shell .games-arcade__rule { padding: 5px 10px; font-size: 12px; }
@container (max-width: 420px) {
  .fyf .games-shell .games-arcade__screen { height: clamp(110px, calc(100dvh - 716px), 260px); }
  .fyf .games-shell .games-arcade__deck { padding: 14px 12px 8px; }
  .fyf .games-shell .games-arcade__control--side { flex-direction: row; gap: 10px; }
  .fyf .games-shell .games-arcade__start { width: 66px; height: 66px; font-size: 13px; }
  .fyf .games-shell .games-arcade__stick { width: 40px; height: 50px; }
  .fyf .games-shell .games-arcade__cap { width: 34px; height: 34px; }
}

/* Lobby, round three. The day's course number lives on the screen (it
   changes daily; the marquee is the fixed sign), as a stage label under the
   crawl. The control panel is a three-column grid: the joystick, the Tee off
   button centred, the two caps. Every control is a graphic over a plate,
   the graphics centred in one band and the plates on one baseline. */
.fyf .games-shell .games-arcade__screen .games-arcade__course {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  z-index: 1;
  font-size: 10px;
  text-align: center;
  color: var(--fyf-cream);
}
.fyf .games-shell .games-arcade__deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0 12px;
  padding: 16px 24px 12px;
}
.fyf .games-shell .games-arcade__control--stick,
.fyf .games-shell .games-arcade__control--start,
.fyf .games-shell .games-arcade__mini {
  display: grid;
  grid-template-rows: 82px auto;
  justify-items: center;
  align-items: center;
  row-gap: 6px;
}
.fyf .games-shell .games-arcade__control--stick { justify-self: center; }
.fyf .games-shell .games-arcade__control--side { flex-direction: row; justify-self: center; align-items: stretch; gap: 14px; }
.fyf .games-shell .games-arcade__control--start .games-arcade__plate--lit {
  position: static;
  order: 2;
  padding: 3px 7px;
  font-size: 8px;
  transform: none;
}
.fyf .games-shell .games-arcade__control--start .games-arcade__housing { order: 1; }
.fyf .games-shell .games-arcade__housing { padding: 6px; }
.fyf .games-shell .games-arcade__start { width: 64px; height: 64px; font-size: 13px; }
.fyf .games-shell .games-arcade__stick { width: 52px; height: 64px; }
.fyf .games-shell .games-arcade__cap { width: 40px; height: 40px; }
@container (max-width: 420px) {
  .fyf .games-shell .games-arcade__screen .games-arcade__course { top: 28px; font-size: 9px; }
  .fyf .games-shell .games-arcade__deck { gap: 0 6px; padding: 14px 10px 10px; }
  .fyf .games-shell .games-arcade__control--side { flex-direction: row; gap: 8px; }
  .fyf .games-shell .games-arcade__control--stick,
  .fyf .games-shell .games-arcade__control--start,
  .fyf .games-shell .games-arcade__mini { grid-template-rows: 74px auto; }
  .fyf .games-shell .games-arcade__start { width: 58px; height: 58px; font-size: 12px; }
  .fyf .games-shell .games-arcade__stick { width: 44px; height: 54px; }
  .fyf .games-shell .games-arcade__cap { width: 36px; height: 36px; }
}
/* Four equal columns (the side pair unwrapped), so the spacing reads as one
   panel; the band is just tall enough for the Tee off button. */
.fyf .games-shell .games-arcade__deck { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 8px; padding: 14px 20px 10px; }
.fyf .games-shell .games-arcade__control--side { display: contents; }
.fyf .games-shell .games-arcade__control--stick,
.fyf .games-shell .games-arcade__control--start,
.fyf .games-shell .games-arcade__mini { grid-template-rows: 78px auto; row-gap: 4px; }
.fyf .games-shell .games-arcade__start { width: 66px; height: 66px; font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
@container (max-width: 420px) {
  .fyf .games-shell .games-arcade__deck { gap: 0 4px; padding: 12px 8px 8px; }
  .fyf .games-shell .games-arcade__control--stick,
  .fyf .games-shell .games-arcade__control--start,
  .fyf .games-shell .games-arcade__mini { grid-template-rows: 70px auto; }
  .fyf .games-shell .games-arcade__start { width: 58px; height: 58px; font-size: 11px; }
  .fyf .games-shell .games-arcade__plate { padding: 3px 5px; font-size: 7px; }
}
@container (max-width: 420px) {
  .fyf .games-shell .games-arcade__plate { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
}
/* The course line as a second band under the crawl, in the crawl's dark
   glass, so it reads on top of the map at any size. */
.fyf .games-shell .games-arcade__screen .games-arcade__course {
  top: 31px; /* the crawl: 6px padding, 11px type, 2px rule */
  padding: 3px 0 4px;
  background: color-mix(in srgb, var(--arcade-ink-deep) 55%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--fyf-cream) 35%, transparent);
}
/* The map starts under both bands, so no flag sits behind them. */
.fyf .games-shell .games-arcade__map { inset: 52px 0 0; height: calc(100% - 52px); }
.fyf .games-shell .games-arcade__map { inset: 52px 0 30px; height: calc(100% - 82px); }
@container (max-width: 420px) {
  .fyf .games-shell .games-arcade__screen { height: clamp(160px, calc(100dvh - 593px - var(--shell-chrome-top, 107px) - var(--shell-chrome-bottom, 0px)), 260px); }
  .fyf .games-shell .games-arcade__map { inset: 50px 0 24px; height: calc(100% - 74px); }
  .fyf .games-shell .games-arcade__press { bottom: 5px; }
}

/* Phone results (under 760px): three cells in one ~390px row clipped "Save
   my streak" and broke the countdown over two lines. The streak takes the
   full first row (text left, button right); field beaten and the countdown
   share the second. The play screen's trio (yours, the gap, the pin) keeps
   its one-row layout. */
@media (max-width: 759px) {
  .fyf .games-shell .games-frame--final .games-frame__trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fyf .games-shell .games-frame--final .games-frame__cell--streak {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
    border-bottom: var(--stroke-sticker) solid var(--fyf-charcoal);
  }
  .fyf .games-shell .games-frame--final .games-frame__cell--streak .games-frame__name { font-size: 22px; }
  .fyf .games-shell .games-frame--final .games-frame__cell--gap,
  .fyf .games-shell .games-frame--final .games-frame__cell--next { padding: 10px 14px; }
  .fyf .games-shell .games-frame--final .games-frame__cell--next { align-items: center; text-align: center; }
  .fyf .games-shell .games-frame--final .games-frame__timer { font-size: 26px; white-space: nowrap; }

  /* Leaderboard: a narrower rank column gives the name the room; the "Not on
     the board" pill sits clear of the name. */
  .fyf .games-shell .games-lb th:first-child,
  .fyf .games-shell .games-lb td:first-child { width: 40px; }
  .fyf .games-shell .games-lb th:last-child,
  .fyf .games-shell .games-lb td:last-child { width: 72px; }
  .fyf .games-shell .games-lb .games-pill { margin-left: 6px; padding: 1px 6px; font-size: 9px; vertical-align: 2px; }
}

/* Phone scorecard: row labels break between words only ("Your / score"),
   never mid-word ("SCOR / E"); the column is as wide as "SCORE". */
@container (max-width: 459px) {
  .fyf .games-shell .games-sc th.games-sc__label { width: 56px; letter-spacing: .04em; overflow-wrap: normal; word-break: keep-all; }
}

/* Intro after the round: the link reads at a size that fits the phone's
   66px button. */
.fyf .games-shell .games-arcade__housing a.games-arcade__start { font-size: 11px; line-height: 1.05; letter-spacing: .04em; white-space: normal; padding: 8px; }

/* Finished round on a phone: the wordmark, Intro and How to play share one
   row (the same squeeze the in-round masthead gets). */
@media (max-width: 759px) {
  .fyf .games-shell .games-mast.games-mast--compact { flex-wrap: nowrap; gap: 8px; }
  .fyf .games-shell .games-mast.games-mast--compact .games-mast__words { flex: 1; min-width: 0; }
  .fyf .games-shell .games-mast.games-mast--compact h1.games-mast__title { font-size: clamp(18px, 5.4vw, 24px); }
  .fyf .games-shell .games-mast.games-mast--compact .games-mast__help { min-height: 32px; padding-inline: 10px; font-size: 10px; }
}
