/* Shared loading states (loading.js): top progress bar, video buffering badge, loading fields,
   and the page lock while a load is on its way (body.cm-busy). */
.cm-topbar{position:fixed; left:0; top:0; height:3px; width:0; z-index:9999; pointer-events:none;
  background:var(--accent, #D9480F); box-shadow:0 0 6px var(--accent, #D9480F); opacity:0; transition:width .25s ease, opacity .3s ease}
.cm-topbar.on{opacity:1}
.busy{opacity:.55; transition:opacity .15s; pointer-events:none}
.cm-vstate{position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); z-index:3; display:flex; align-items:center; gap:8px;
  background:rgba(0,0,0,.62); color:#fff; font:600 12.5px/1 var(--sans, system-ui, sans-serif); padding:8px 12px; border-radius:999px; pointer-events:none}
.cm-vstate::before{content:""; width:14px; height:14px; border-radius:50%; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; animation:cm-spin .8s linear infinite}
@keyframes cm-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.cm-vstate::before{animation:none} .cm-topbar{transition:none}}
body.cm-busy{cursor:progress}
body.cm-busy :is(button, a, select, input, textarea, label, [role=button], [data-a]):not([data-cm-always], [data-cm-always] *){pointer-events:none}
body.cm-busy :is(button, select, .btn):not([data-cm-always]){opacity:.6; transition:opacity .15s}

/* football-field loading panel (ClipmarkLoading.field): a spiral pass from the
   line of scrimmage (blue) past the first-down line (yellow), its shadow on the grass */
.cm-field{padding:22px 16px 18px; display:flex; justify-content:center}
.cm-pitch{position:relative; width:240px; height:18px; border-radius:3px; background:#2b7337;
  background-image:repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 24px); background-position:12px 0}
.cm-los, .cm-fd{position:absolute; top:0; bottom:0; width:2px; border-radius:1px}
.cm-los{left:22%; background:#4dabf7}
.cm-fd{left:64%; background:#ffd43b}
.cm-fly, .cm-shadow{position:absolute; left:22%; animation:cm-x 1.6s linear infinite}
.cm-fly{top:4px}
.cm-ball{display:block; width:13px; height:8px; margin-left:-6px; border-radius:50%; background:#8b4513;
  background-image:linear-gradient(90deg, transparent 3.5px, #fff 3.5px 9.5px, transparent 9.5px); background-size:100% 1.5px; background-repeat:no-repeat; background-position:0 3px;
  animation:cm-y 1.6s infinite, cm-spin 1.6s linear infinite}
.cm-shadow{top:9px; width:12px; height:3px; margin-left:-6px; border-radius:50%; background:rgba(0,0,0,.35); animation-name:cm-x, cm-sh; animation-timing-function:linear, ease-in-out}
@keyframes cm-x{0%{left:22%; opacity:0} 8%{opacity:1} 88%{opacity:1} 100%{left:84%; opacity:0}}
@keyframes cm-y{0%{transform:translateY(0); animation-timing-function:cubic-bezier(.3,.6,.5,1)} 50%{transform:translateY(-24px); animation-timing-function:cubic-bezier(.5,0,.7,.4)} 100%{transform:translateY(0)}}
@keyframes cm-spin{0%{rotate:-20deg} 50%{rotate:0deg} 100%{rotate:22deg}}
@keyframes cm-sh{0%,100%{transform:scale(1); opacity:.9} 50%{transform:scale(.45); opacity:.4}}
/* chain gang: the two orange sticks standing on the field, 10 yards of chain lying
   on the grass between them, moved up the field 10 yards at a time, then back */
.cm-pitch.chains{overflow:visible; margin-top:8px}
.cm-gang{position:absolute; left:12px; top:0; bottom:0; width:48px; animation:cm-move 5s infinite}
.cm-pole{position:absolute; left:0; bottom:-3px; width:3px; height:calc(100% + 11px); margin-left:-1.5px; background:#fd7e14; border-radius:2px; z-index:1}
.cm-pole::before{content:""; position:absolute; top:-3px; left:-4px; width:11px; height:7px; border-radius:2px; background:#ff922b; box-shadow:0 0 0 1px rgba(0,0,0,.2)}
.cm-pole.fwd{left:48px}
.cm-chain{position:absolute; left:0; right:0; top:50%; height:2px; margin-top:-1px;
  background:repeating-linear-gradient(90deg, #f8f9fa 0 2.5px, transparent 2.5px 4px); box-shadow:0 1px 0 rgba(0,0,0,.25)}
@keyframes cm-move{
  0% {transform:translateX(0); opacity:0}
  6%, 14% {transform:translateX(0); opacity:1; animation-timing-function:cubic-bezier(.45,0,.25,1)}
  26%, 36% {transform:translateX(48px); animation-timing-function:cubic-bezier(.45,0,.25,1)}
  48%, 58% {transform:translateX(96px); animation-timing-function:cubic-bezier(.45,0,.25,1)}
  70%, 88% {transform:translateX(144px); opacity:1}
  96%, 100% {transform:translateX(144px); opacity:0}}
/* formation dots: a top-down slice of field, offense (white, skill players gold) and
   defense (red) shifting formations across the line of scrimmage (blue) */
.cm-pitch.form{height:76px; background-image:repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 1px, transparent 1px 21px); background-position:-1px 0}
.cm-fl{position:absolute; top:0; bottom:0; width:2px; margin-left:-1px; background:#4dabf7}
.cm-dot{position:absolute; width:5px; height:5px; margin:-2.5px 0 0 -2.5px; border-radius:50%; background:#fff; box-shadow:0 1px 1px rgba(0,0,0,.25);
  transition:left .8s cubic-bezier(.45,0,.25,1), top .8s cubic-bezier(.45,0,.25,1)}
.cm-dot:nth-child(n+8){background:#ffd43b}   /* offense skill players */
.cm-dot.d{background:#ff8787}
@media (prefers-reduced-motion:reduce){.cm-fly, .cm-shadow, .cm-ball, .cm-gang{animation:none} .cm-fly, .cm-shadow{left:50%} .cm-gang{opacity:1} .cm-dot{transition:none}}
