/* Part one of the football entry: the pieces that only fb-basics.js uses. */
.fb-grab { cursor: grab; touch-action: pan-y; }
.fb-glow { fill: rgba(253, 224, 71, 0.34); stroke: #fde047; stroke-width: 2; pointer-events: none; }
.fb-need { fill: rgba(253, 224, 71, 0.2); }
.fb-newspot { stroke: #fff; stroke-width: 2.5; stroke-dasharray: 7 5; }
.fb-tok.pick:focus-visible { outline: none; }
.fb-tok.pick:focus-visible circle, .fb-tok.pick:focus-visible rect { stroke: #fbbf24; stroke-width: 4; }

/* the drive log */
.fb-log { margin: 0; padding-left: 1.6em; font-size: 0.82rem; color: var(--color-muted); max-height: 11.5em; overflow: auto; }
.fb-log li:last-child { color: var(--color-text); }

/* the scoreboard */
.fb-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 360px; }
.fb-board > div { display: grid; justify-items: center; padding: 8px 10px; border-radius: 8px; background: #111827; color: #f8fafc; border: 2px solid transparent; }
.fb-board > div.on { border-color: #fbbf24; }
.fb-board span { font-size: 0.72rem; letter-spacing: 0.14em; opacity: 0.75; }
.fb-board b { font-size: 2.2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fb-ways { margin: 0; padding-left: 1.3em; font-size: 0.86rem; }

/* the three choices on fourth down */
.fb-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fb-option { font-size: 0.84rem; }
.fb-option.best { border-color: #16a34a; box-shadow: inset 0 0 0 1px #16a34a; }
.fb-option.off { opacity: 0.6; }

@media (max-width: 720px) {
    .fb-options { grid-template-columns: minmax(0, 1fr); }
}

/* the coin toss, and the steps of an overtime */
.fb-coin { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: #422006; background: radial-gradient(circle at 35% 30%, #fef08a, #eab308 70%); border: 2px solid #a16207; flex: none; }
.fb-coin.spin { animation: fb-flip 0.95s ease-out; }
@keyframes fb-flip { from { transform: translateY(0) rotateX(0); } 50% { transform: translateY(-26px) rotateX(900deg); } to { transform: translateY(0) rotateX(1800deg); } }
@media (prefers-reduced-motion: reduce) { .fb-coin.spin { animation: none; } }
.fb-steps { margin: 0; padding-left: 1.4em; font-size: 0.88rem; }
.fb-steps li + li { margin-top: 4px; }
.fb-widget [hidden] { display: none !important; }

/* between the hashes */
.fb-wedge { fill: rgba(253, 224, 71, 0.3); stroke: #fde047; stroke-width: 1.5; pointer-events: none; }
.fb-downmark line { stroke: #fff; stroke-width: 3; stroke-linecap: round; }

/* forward or backward, and the clock */
.fb-ahead { fill: rgba(96, 165, 250, 0.16); pointer-events: none; }
.fb-clockface { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; font-size: 1.5rem; letter-spacing: 0.08em; text-align: center; padding: 12px; border-radius: 8px; background: #111827; color: #f87171; }
.fb-clockface.on { color: #4ade80; }

/* changing ends: arrows big enough to read from across the room */
.fb-bigarrow { fill: #f8fafc; stroke: rgba(0, 0, 0, 0.45); stroke-width: 1.5; stroke-linejoin: round; }
.fb-windarrow { fill: #fde047; }

/* who covers whom */
.fb-match-rows { display: grid; gap: 3px; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.fb-match-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; padding: 5px 10px; border-radius: 6px; background: var(--color-bg); border: 1px solid var(--color-border); }
.fb-match-row.bad { border-color: #dc2626; box-shadow: inset 3px 0 0 #dc2626; }
.fb-match-row.bad span:last-child { color: #b91c1c; font-weight: 600; }
html.dark-theme .fb-match-row.bad span:last-child { color: #f87171; }
.fb-match-head { background: none; border-color: transparent; color: var(--color-muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 0; }
@media (max-width: 720px) { .fb-match-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fb-match-row span:last-child { grid-column: 1 / -1; } .fb-match-head span:last-child { display: none; } }
