/* Match analysis v2, the shot form in 3D (plan 2026-11-28 17:55 "SHOT FORM IN 3D"): the card at the top of a shot
   sheet (form_card.js) and what the full screen (form_full.js) adds to Compare with a pro's look (compare_pro.css). */
.fm { position: relative; margin: 2px 0 14px; }
.fm-card { position: relative; display: block; width: 100%; height: clamp(150px, 44vw, 200px); padding: 0; border: 0;
  border-radius: 14px; overflow: hidden; background: #172231; color: #fff; cursor: pointer; text-align: left;
  box-shadow: 0 1px 2px rgba(11, 29, 51, 0.12); -webkit-tap-highlight-color: transparent; }
.fm-none { display: grid; place-items: center; height: clamp(150px, 44vw, 200px); border-radius: 14px;
  background: #f1f4f8; border: 1px solid #e2e8f0; color: #64748b; font-size: 14px; font-weight: 600; }
.fm-none[hidden], .fm-card[hidden] { display: none; }   /* their own display would beat the hidden attribute */
.fm-card:focus-visible { outline: 3px solid var(--teal, #0891b2); outline-offset: 2px; }
.fm-stage { position: absolute; inset: 0; }
.fm-cv { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.25s; }
.fm-card.ready .fm-cv { opacity: 1; }
.fm-wait { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 3px solid rgba(255, 255, 255, 0.18); border-top-color: rgba(255, 255, 255, 0.7); border-radius: 50%;
  animation: fm-spin 0.9s linear infinite; }
.fm-card.ready .fm-wait { display: none; }
@keyframes fm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fm-wait { animation: none; } }
.fm-lab { position: absolute; left: 12px; bottom: 10px; display: flex; flex-direction: column; gap: 1px;
  pointer-events: none; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
.fm-lab b { font-size: 14px; font-weight: 700; }
.fm-hand { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.fm-exp { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.15s; }
.fm-exp svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round;
  stroke-linejoin: round; }
.fm-card:hover .fm-exp { background: rgba(255, 255, 255, 0.26); }
/* Watch in the video on the card's top left (Bryan 11-30 "inside the 3d replay, top left"; a sibling of the card,
   which is a button itself): the expand button's look on the 3D, page.css .play on the "No 3D replay" box */
.fm-go { position: absolute; left: 10px; top: 10px; z-index: 1; display: flex; }
.fm-go[hidden], .fmx-go[hidden] { display: none; }
.fm-card:not([hidden]) ~ .fm-go .play { background: rgba(23, 34, 49, 0.55); border-color: rgba(255, 255, 255, 0.28);
  color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.fm-card:not([hidden]) ~ .fm-go .play:hover { background: rgba(23, 34, 49, 0.75); border-color: rgba(255, 255, 255, 0.45); }

/* the full screen: Compare's modal on the scene's ground, the strong player's colour, the title and the speed */
.cpm.fmx { --pro: #6366f1; background: #172231; }
.fmx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.fmx-title { font-size: 14px; font-weight: 700; min-width: 0; }
.fmx-go { flex: none; display: flex; }
.fmx-go .play { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.fmx-go .play:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); }
.fmx-sub { margin-top: -4px; font-size: 12px; font-weight: 600; color: var(--muted); }   /* what the switch compares */
.fmx-speed { flex: none; min-width: 50px; height: 36px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 13px; font-weight: 700; }
.fmx-speed:hover { background: rgba(255, 255, 255, 0.16); }
@media (max-width: 420px) {                                /* phones: the player / Strong player row on one line */
  .fmx #fmx-who button { gap: 5px; padding: 9px 4px; font-size: 13px; white-space: nowrap; }
}
