/* The free-kick game (/play/). Frosted glass over the pitch, Geist only. Handwriting appears only inside the report card picture (freekick.js). */
html, body.fk-page { margin: 0; height: 100%; background: #fff; overflow: hidden; color: #121212; font: 400 15px/24px "Geist", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.to-white { position: fixed; inset: 0; z-index: 100; background: #fff; opacity: 0; pointer-events: none; transition: opacity .6s ease; } .to-white.on { opacity: 1; }
.fk-small { display: none; } .fk-small svg { width: 96px; margin-bottom: 20px; } .fk-small h1 { margin: 0; font: 600 22px/28px "Geist", system-ui, sans-serif; letter-spacing: -.02em; } .fk-small p { margin: 6px 0 0; max-width: 300px; color: #636363; text-wrap: balance; } .fk-small a { margin-top: 20px; padding: 8px 16px; border-radius: 12px; background: rgba(18,18,18,.06); color: #121212; font-weight: 500; text-decoration: none; }
@media (max-width: 1000px), (hover: none), (pointer: coarse) { .fk-small { position: fixed; inset: 0; z-index: 120; display: grid; place-content: center; justify-items: center; padding: 24px; text-align: center; background: #fff; } }

/* Loader: a mown pitch from above, the ball spinning on the centre spot */
.fk-load { position: fixed; inset: 0; z-index: 101; display: grid; place-content: center; justify-items: center; background: #3f9150; overflow: hidden; animation: fk-in .35s ease both; transition: opacity .45s ease; } .fk-load.go { opacity: 0; }
.fk-load { --r: min(210px, 31vh); } .fk-load .turf { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #3f9150 0 120px, #3a8849 120px 240px); background-position: calc(50% + 60px) 0; } .fk-load .turf::before, .fk-load .turf::after { content: ""; position: absolute; left: 50%; top: calc(50% - 28px); translate: -50% -50%; box-sizing: border-box; } .fk-load .turf::before { width: 4px; height: 200vh; background: rgba(255,255,255,.85); -webkit-mask: linear-gradient(#000 calc(50% - var(--r)), transparent 0 calc(50% + var(--r)), #000 0); mask: linear-gradient(#000 calc(50% - var(--r)), transparent 0 calc(50% + var(--r)), #000 0); } .fk-load .turf::after { width: calc(var(--r) * 2); aspect-ratio: 1; border: 4px solid rgba(255,255,255,.85); border-radius: 50%; }
.fk-load .mid { position: relative; width: 120px; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 14px 22px -8px rgba(6,40,18,.5); } .fk-load .spin { animation: fk-spin 5s linear infinite; } .fk-load .spin svg { display: block; width: 100%; } @keyframes fk-spin { to { rotate: 1turn; } }
.fk-load p { position: relative; margin: 32px 0 0; height: 24px; color: #fff; font: 500 17px/24px "Geist", system-ui, sans-serif; } .fk-load p { animation: fk-say .3s cubic-bezier(.23,1,.32,1) both; }
@keyframes fk-say { from { opacity: 0; filter: blur(3px); } } @keyframes fk-in { from { opacity: 0; } }

.fk { position: fixed; inset: 0; z-index: 90; background: #dff1fa; color: #121212; user-select: none; -webkit-user-select: none; overflow: hidden; --glass: rgba(255,255,255,.62); --line: rgba(255,255,255,.7); --ease: cubic-bezier(.23,1,.32,1); }
.fk canvas.stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.fk button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; } .fk :focus-visible { outline: 2px solid #0369a1; outline-offset: 2px; } .fk [hidden] { display: none !important; }
.fk kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; font: 500 11px/1 "Geist", system-ui, sans-serif; color: #636363; background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(18,18,18,.1), 0 2px 0 rgba(18,18,18,.1); box-sizing: border-box; }
/* The one surface everything sits on */
.fk .leave, .fk .again, .fk .change, .fk .tries, .fk .wind, .fk .sound, .fk .hud, .fk .replaying, .fk .call div, .fk .desk { background: var(--glass); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 1px rgba(18,18,18,.04), 0 8px 24px -12px rgba(10,40,60,.22); }

.fk .top { position: absolute; left: 20px; right: 20px; top: 20px; display: flex; align-items: center; gap: 8px; font-weight: 500; font-variant-numeric: tabular-nums; pointer-events: none; } .fk .top > * { pointer-events: auto; } .fk .top .right { margin-left: auto; display: flex; gap: 8px; }
.fk .leave, .fk .again, .fk .change, .fk .tries, .fk .wind, .fk .sound { height: 36px; padding: 0 14px; border-radius: 12px; display: flex; align-items: center; gap: 8px; box-sizing: border-box; }
.fk .leave, .fk .again, .fk .change { padding-left: 7px; transition: background .15s ease, transform .12s ease; } .fk .top button:hover { background: rgba(255,255,255,.86); } .fk .top button:active { transform: scale(.97); } .fk .leave.down kbd { transform: translateY(2px); box-shadow: 0 0 0 1px rgba(18,18,18,.1); } .fk .sound { position: relative; width: 36px; padding: 0; justify-content: center; } .fk .sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fk .sound::after { content: attr(data-tip); position: absolute; right: 0; top: calc(100% + 8px); padding: 4px 10px; border-radius: 8px; background: #121212; color: #fff; font: 500 13px/20px "Geist", system-ui, sans-serif; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease; } .fk .sound:hover::after, .fk .sound:focus-visible::after { opacity: 1; }
.fk .tries i { width: 10px; height: 10px; border-radius: 50%; background: rgba(18,18,18,.14); } .fk .tries i.now { background: #121212; } .fk .tries i.goal { background: #1f9d57; } .fk .tries i.miss { background: #e2553b; }
.fk .wind { padding-left: 9px; } .fk .wind svg { width: 20px; height: 20px; fill: none; stroke: #0369a1; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }

/* Aiming and kicking */
.fk .ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } .fk .ink path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 12; transition: stroke .12s ease; filter: drop-shadow(0 1px 2px rgba(0,40,20,.35)); }
.fk .ink.no path { stroke: #ff7a5e; }
.fk .hud { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 22px; padding: 11px 16px; border-radius: 18px; font-weight: 500; } .fk .hud .side { display: flex; align-items: center; gap: 12px; } .fk .hud .t { width: 40px; }
.fk .hud .pad { display: grid; justify-items: center; gap: 3px; } .fk .hud .pad > span { display: flex; gap: 3px; } .fk .hud kbd { width: 30px; height: 26px; padding: 0; border-radius: 7px; color: #373737; } .fk .hud kbd svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .fk .hud kbd.space { width: 96px; height: 32px; font-size: 12px; } .fk .hud kbd.down { transform: translateY(2px); background: #121212; color: #fff; box-shadow: none; } .fk .hud kbd.off { opacity: .3; }
.fk .hud .load { width: 250px; } .fk .hud .bar { position: relative; height: 8px; border-radius: 4px; background: rgba(18,18,18,.1); overflow: hidden; } .fk .hud .bar::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 14%; background: rgba(226,85,59,.35); } .fk .hud .bar i { position: absolute; inset: 0; border-radius: 4px; background: #0369a1; transform-origin: 0 50%; transform: scaleX(0); } .fk .hud.hot .bar i { background: #e2553b; } .fk .hud p { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: #4a4a4a; text-align: center; }
.fk .hud.nudge { animation: fk-nudge .35s ease; } @keyframes fk-nudge { 25% { margin-left: -8px; } 75% { margin-left: 8px; } }
.fk .call { position: absolute; left: 0; right: 0; top: 13vh; display: grid; justify-items: center; pointer-events: none; opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .18s ease, transform .3s var(--ease); } .fk .call.on { opacity: 1; transform: none; } .fk .call div { padding: 14px 30px 16px; border-radius: 22px; text-align: center; } .fk .call b { display: block; font: 600 44px/50px "Geist", system-ui, sans-serif; letter-spacing: -.03em; } .fk .call span { color: #4a4a4a; font-weight: 500; font-variant-numeric: tabular-nums; }
.fk .replaying { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; height: 36px; padding: 0 12px 0 14px; border-radius: 12px; font-weight: 500; } .fk .replaying i { width: 8px; height: 8px; border-radius: 50%; background: #e2553b; }

/* Start */
.fk .desk { position: absolute; left: 50%; bottom: 28px; width: min(880px, calc(100vw - 40px)); transform: translateX(-50%); padding: 22px; border-radius: 24px; box-sizing: border-box; transition: opacity .2s ease, transform .35s var(--ease); animation: fk-desk .5s 1s var(--ease) both; } @keyframes fk-desk { from { opacity: 0; transform: translate(-50%, 24px); } } .fk .desk.away { opacity: 0; transform: translate(-50%, 24px); pointer-events: none; animation: none; }
.fk .desk h2 { margin: 0; font: 600 22px/28px "Geist", system-ui, sans-serif; letter-spacing: -.02em; } .fk .desk .lead { margin: 2px 0 0; color: #4a4a4a; }
.fk .matches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; } .fk .match { position: relative; display: grid; align-content: start; gap: 2px; padding: 13px 14px 14px; border-radius: 14px; background: rgba(255,255,255,.5); transition: background .15s ease, transform .12s ease; } .fk .match:hover, .fk .match:focus-visible { background: rgba(255,255,255,.95); } .fk .match:active { transform: scale(.98); } .fk .match b { font-weight: 500; } .fk .match span { font-size: 13px; line-height: 18px; color: #555; }
.fk .desk header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; } .fk .tweak { flex: none; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 9px 0 14px; border-radius: 12px; background: rgba(255,255,255,.6); font-weight: 500; transition: background .15s ease, transform .12s ease; } .fk .tweak:hover, .fk .tweak:focus-visible { background: rgba(255,255,255,.95); } .fk .tweak:active { transform: scale(.97); }
.fk .match kbd { position: absolute; right: 12px; top: 12px; }
.fk .own { margin-top: 18px; } .fk .sliders { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 22px; } .fk .slide { grid-column: span 2; } .fk .slide:nth-child(n+4) { grid-column: span 3; }
.fk .slide { border-radius: 10px; } .fk .slide .lab { display: flex; justify-content: space-between; font-size: 13px; line-height: 20px; } .fk .slide .lab span { color: #555; } .fk .slide .lab b { font-weight: 500; display: flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.fk .track { position: relative; height: 30px; cursor: ew-resize; touch-action: none; } .fk .track::before, .fk .track i { content: ""; position: absolute; left: 0; top: 12px; height: 6px; border-radius: 3px; } .fk .track::before { right: 0; background: rgba(18,18,18,.1); } .fk .track i { width: calc(9px + var(--f) * (100% - 18px)); background: #0369a1; } .fk .both .track i { width: auto; left: calc(9px + min(var(--f), .5) * (100% - 18px)); right: calc(9px + min(1 - var(--f), .5) * (100% - 18px)); } .fk .both .track { background: linear-gradient(rgba(18,18,18,.25) 0 0) 50% 50% / 2px 14px no-repeat; } .fk .track::after { content: ""; position: absolute; top: 6px; left: calc(var(--f) * (100% - 18px)); width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(18,18,18,.1), 0 2px 6px rgba(10,40,60,.18); transition: transform .12s ease; } .fk .track:hover::after { transform: scale(1.08); } .fk .slide.held .track::after { transform: scale(1.16); }
.fk .own footer { display: flex; align-items: center; gap: 22px; margin-top: 16px; flex-wrap: wrap; } .fk .seg2 { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 10px; background: rgba(18,18,18,.06); } .fk .chip { padding: 4px 12px; border-radius: 8px; font-size: 13px; line-height: 20px; font-weight: 500; color: #555; transition: color .15s ease; } .fk .chip:hover { color: #121212; } .fk .chip[aria-pressed="true"] { background: #fff; color: #121212; box-shadow: 0 0 0 1px rgba(18,18,18,.08), 0 1px 2px rgba(18,18,18,.06); }
.fk .go { margin-left: auto; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 16px; border-radius: 12px; background: #121212; color: #fff; font-weight: 500; transition: transform .12s ease; } .fk .go:active { transform: scale(.97); }

/* Report card */
.fk .veil { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; overflow: auto; background: rgba(8,40,60,.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fk-in .25s ease both; }
.fk .result { width: min(1080px, 100%, calc((100vh - 170px) * 16 / 9)); animation: fk-card .4s var(--ease) both; } @keyframes fk-card { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.fk .poster { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 26px; box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 30px 70px -34px rgba(10,40,60,.5); }
.fk .acts { display: flex; gap: 8px; margin-top: 14px; } .fk .acts > span { flex: 1; } .fk .acts button { display: flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 16px; border-radius: 13px; font-weight: 500; background: rgba(255,255,255,.78); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); transition: transform .12s ease, background .15s ease; } .fk .acts button:hover { background: #fff; } .fk .acts button:active { transform: scale(.97); } .fk .acts button { padding-left: 10px; } .fk .acts b { font-weight: 500; min-width: 80px; } .fk .acts [data-a="x"], .fk .acts [data-a="x"]:hover { background: #121212; color: #fff; box-shadow: none; } .fk .acts .x { width: 11px; height: 11px; fill: #121212; }
.fk .note { margin: 8px 0 0; height: 20px; font-size: 13px; line-height: 20px; font-weight: 500; text-align: right; color: #fff; text-shadow: 0 1px 6px rgba(0,30,40,.5); }
@media (max-height: 720px) { .fk .desk { padding: 16px 18px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .fk .result, .fk .veil, .fk .desk, .fk-load p { animation: none; } .fk-load .spin { animation: none; } }
