/* Footy lessons. A calm grass pitch, blue (us) and rust (them) dots, players glide between steps. */
.fl-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.fl-pitch { width: 100%; }
.fp-svg { display: block; width: 100%; height: auto; max-height: 80vh; border-radius: 8px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.fp-surround { fill: #4f7a4a; }
.fp-stripe.a { fill: #5d8a56; } .fp-stripe.b { fill: #57834f; }
.fp-lines rect, .fp-lines line, .fp-lines circle, .fp-lines path { fill: none; stroke: rgba(255,255,255,.78); stroke-width: .3; }
.fp-lines .fp-spot { fill: rgba(255,255,255,.85); stroke: none; }
.fp-lines .fp-goal { fill: rgba(255,255,255,.35); }
.fp-pl, .fp-ball, .fp-arrow { pointer-events: none; }
.fp-pl { transition: transform .8s cubic-bezier(.45,.05,.3,1); }
.fp-pl .fp-dot { stroke: #fff; stroke-width: .35; }
.fp-pl.us .fp-dot { fill: #0a4d8c; }
.fp-pl.them .fp-dot { fill: #b5563a; }
.fp-pl text { fill: #fff; font: 700 2.05px/1 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; pointer-events: none; }
.fp-pl .fp-ring { fill: none; stroke: #e7c24a; stroke-width: .55; opacity: 0; transition: opacity .3s; }
.fp-pl.focus .fp-ring { opacity: 1; }
.fp-pl.wall .fp-dot { stroke: #2a1a12; }
.fp-ball { transition: transform .8s cubic-bezier(.45,.05,.3,1); }
.fp-ball circle { fill: #fff; stroke: #1a1a1a; stroke-width: .3; }
.fp-svg.still .fp-pl, .fp-svg.still .fp-ball { transition: none; }
.fp-arrow { stroke-width: .5; stroke-linecap: round; }
.fp-arrow.us { stroke: #fff; } .fp-arrow.them { stroke: #ffd9c9; }
.fp-arrow.run { stroke-dasharray: 1.1 .9; }
.fp-arrow.shot { stroke: #e7c24a; stroke-width: .65; }
.fp-ah.us { fill: #fff; } .fp-ah.them { fill: #ffd9c9; } .fp-ah.shot { fill: #e7c24a; }
.fp-zone { fill: rgba(255,255,255,.14); stroke: rgba(255,255,255,.7); stroke-width: .3; stroke-dasharray: 1 .7; }
.fp-ringzone { fill: rgba(231,194,74,.12); stroke: #e7c24a; stroke-width: .3; stroke-dasharray: 1 .7; }
.fp-zlabel { fill: #fff; font: 600 1.9px/1 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: .35; }
g.in { animation: fl-in .45s .55s both; }
@keyframes fl-in { from { opacity: 0; } to { opacity: 1; } }
.fp-svg.still g.in { animation: none; }
.fp-hit { cursor: pointer; outline: none; }
.fp-hit rect { fill: rgba(255,255,255,.2); stroke: #fff; stroke-width: .4; stroke-dasharray: 1.2 .8; transition: fill .15s; }
.fp-hit:hover rect, .fp-hit:focus rect { fill: rgba(255,255,255,.36); }
.fp-hit text { fill: #fff; font: 800 2.8px/1 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: .5; pointer-events: none; }
.fp-hit.wrong rect { fill: rgba(190,60,50,.4); stroke-dasharray: none; }
.fp-hit.right rect { fill: rgba(120,220,140,.38); stroke-width: .6; stroke-dasharray: none; }
.locked .fp-hit { cursor: default; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .fp-pl, .fp-ball { transition: none; } g.in { animation: none; } }

.fl-key { font-size: .8rem; color: var(--muted); margin: .5rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.fl-key .k { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; }
.fl-key .k.us { background: #0a4d8c; } .fl-key .k.them { background: #b5563a; }
.fl-key .k.pass, .fl-key .k.run { width: 22px; height: 0; border-radius: 0; border-top: 2px solid var(--ink); margin-left: .4rem; }
.fl-key .k.run { border-top-style: dashed; }
.fl-controls { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 1.2rem; }
.fl-controls .g-btn { padding: .5rem .9rem; }
.fl-controls #next { flex: 1; max-width: 220px; }
.fl-step { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); margin: 0 0 .4rem; }
.fl-note { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; min-height: 7.5em; margin: 0 0 1rem; }
.fl-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.fl-steps button { font: inherit; font-size: .92rem; text-align: left; width: 100%; border: 1px solid var(--rule); background: var(--panel); border-radius: 6px; padding: .35rem .6rem; cursor: pointer; color: var(--ink); }
.fl-steps button:hover { border-color: var(--accent); }
.fl-steps button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.fl-practice { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.fl-prompt { font-family: var(--serif); font-size: 1.2rem; }
.fl-opts { display: grid; gap: 8px; margin-bottom: 1rem; }
.fl-opt { font: inherit; text-align: left; padding: .8rem .9rem; border-radius: 8px; border: 1px solid var(--rule); background: var(--panel); color: var(--ink); cursor: pointer; }
.fl-opt:hover:not([disabled]) { border-color: var(--accent); }
.fl-opt.wrong { background: #f7e7e7; border-color: #d9b3b3; }
.fl-opt.right { background: #e9f4ec; border-color: #2f7d4f; }
.fl-opt[disabled] { cursor: default; }
.fl-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.fl-legend li { padding: .5rem .7rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); }
.fl-legend b { display: inline-block; width: 1.6rem; color: var(--accent); }
.fl-feedback { padding: .8rem 1rem; border-radius: 8px; background: var(--soft); min-height: 3em; }
.fl-feedback.ok { background: #e9f4ec; } .fl-feedback.no { background: #f7e7e7; }
.fl-practice.finished .fl-feedback { display: none; }
.fl-practice.finished .fl-prompt { font-size: 1.35rem; }
.fl-practice.finished .fl-prompt::before { content: "\2713  "; color: #2f7d4f; }
.fl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fl-count { color: var(--muted); font-size: .85rem; }
.fl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.fl-list a { display: block; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); color: var(--ink); text-decoration: none; }
.fl-list a:hover { border-color: var(--accent); }
.fl-list h2 { font-size: 1.15rem; margin: 0 0 .2rem; } .fl-list p { margin: 0; color: var(--muted); }
.fl-tag { float: right; font-size: .75rem; color: var(--muted); margin-left: .5rem; }
.fl-tag.done::before { content: "\2713  "; color: #2f7d4f; }
@media (max-width: 720px) {
  .fl-layout { grid-template-columns: 1fr; gap: 12px; }
  .fl-walk > .fl-right { display: contents; }
  .fl-walk .fl-step { order: -2; margin: 0; }
  .fl-walk .fl-note { order: -1; min-height: 6.2em; font-size: 1.08rem; margin: -6px 0 0; }
  .fl-walk .fl-controls { order: 1; }
  .fl-walk .fl-steps { order: 2; display: flex; flex-wrap: wrap; }
  .fl-walk .fl-steps button { width: auto; font-size: .85rem; }
  .fp-svg { max-height: 58vh; margin: 0 auto; }
  .fl-walk .fl-controls { position: sticky; bottom: 0; z-index: 2; background: var(--bg); margin: 0; padding: 8px 0 10px; box-shadow: 0 -6px 10px -8px rgba(0,0,0,.25); }
  .fl-key { margin-top: .3rem; }
}
