@font-face { font-family: Anton; src: url(/fonts/anton.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Barlow; src: url(/fonts/barlow.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url(/fonts/barlow-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
:root { --pitch: #0c3f23; --chalk: #f5f2ea; --red: #e3262d; --gold: #ffd23f; --ink: #10160f; --mute: #b9c7bd; --line: rgba(245,242,234,.18); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pitch); color: var(--chalk); font: 18px/1.6 Barlow, system-ui, sans-serif; }
a { color: var(--gold); }
.nav { display: flex; gap: 16px; align-items: center; max-width: 760px; margin: 0 auto; padding: 14px 18px; flex-wrap: wrap; }
.nav a { color: var(--chalk); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav .brand { font: 24px Anton, Impact, sans-serif; letter-spacing: .04em; margin-right: auto; }
.hero { max-width: 760px; margin: 0 auto; padding: 36px 18px 28px;
  background: radial-gradient(120% 80% at 50% -20%, #1d7a45 0, transparent 60%); }
.kicker { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; margin: 0; }
h1 { font: 44px/1.05 Anton, Impact, sans-serif; text-transform: uppercase; margin: 8px 0 12px; }
h2 { font: 28px/1.1 Anton, Impact, sans-serif; text-transform: uppercase; margin: 34px 0 10px; }
.lead { font-size: 20px; }
main { max-width: 760px; margin: 0 auto; padding: 0 18px 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 14px;
  background: var(--red); color: #fff; font: 20px Anton, Impact, sans-serif; text-transform: uppercase; text-decoration: none; }
.btn.alt { background: var(--chalk); color: var(--ink); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 16px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 10px 0 0; }
.facts div { display: grid; padding: 14px; border-radius: 14px; background: rgba(5,20,11,.55); border: 1px solid var(--line); }
.facts b { color: var(--gold); text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.panel { margin-top: 36px; padding: 18px; border-radius: 18px; background: rgba(5,20,11,.55); border: 1px solid var(--gold); }
.panel h2 { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; }
table { width: 100%; border-collapse: collapse; margin: 10px 0; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
th { color: var(--gold); font-size: 15px; }
.small { color: var(--mute); font-size: 14px; }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.cards a { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: rgba(5,20,11,.55); border: 1px solid var(--line); color: var(--chalk); text-decoration: none; }
.cards span { color: var(--mute); font-size: 16px; }
footer { max-width: 760px; margin: 0 auto; padding: 24px 18px 50px; color: var(--mute); font-size: 15px; border-top: 1px solid var(--line); }
@media (max-width: 520px) { h1 { font-size: 36px; } }

/* Scorecard and forms */
.btn.big { min-height: 60px; font-size: 24px; padding: 0 30px; }
.btn.go { min-width: 200px; }
.start-wrap { position: relative; margin: 10px 0 26px; }
.quiz { position: relative; margin: 10px 0 30px; overflow: hidden; }
.pitchbar { position: relative; height: 14px; border-radius: 7px; margin-bottom: 18px; background: repeating-linear-gradient(90deg, #0e4527 0 24px, #125430 24px 48px); border: 1px solid var(--line); }
.pitchbar .ballpip { position: absolute; top: -6px; left: calc(var(--p, 0%) - 12px); width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #c9c9c9); transition: left .4s ease; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.qcard, .qform { animation: slidein .25s ease-out; }
.qcard h2, .qform h2 { margin-top: 6px; }
.answers { display: grid; gap: 10px; margin: 16px 0; }
.answers.multi label, .pill { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5,20,11,.55); }
.ans { min-height: 58px; border-radius: 16px; border: 2px solid var(--line); background: rgba(5,20,11,.55); color: var(--chalk); font: 700 19px Barlow, sans-serif; text-align: left; padding: 0 18px; cursor: pointer; }
.ans:hover, .ans:focus-visible { border-color: var(--gold); }
.ans.picked { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: scale(.98); }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 16px 0 6px; }
.scale .ans { text-align: center; padding: 0; }
.back { background: none; border: 0; color: var(--mute); font: 600 16px Barlow, sans-serif; padding: 10px 0; cursor: pointer; }
.qform label { display: grid; gap: 6px; margin: 0 0 14px; font-weight: 700; }
.qform input:not([type=checkbox]):not([type=radio]), .qform select, .qform textarea { min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: #06190e; color: var(--chalk); font: 17px Barlow, sans-serif; padding: 10px 14px; }
.qform .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.qform .check input, .pill input, .answers.multi input { width: 22px; height: 22px; accent-color: #ffd23f; flex: none; }
.qform fieldset { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.qform legend { font-weight: 700; margin-bottom: 8px; }
.opt { color: var(--mute); font-weight: 400; }
.hp { position: absolute; left: -9999px; }
.form-msg { color: #ffb3b3; min-height: 1em; }
.center { text-align: center; }
.panel.gold { border-color: var(--gold); background: linear-gradient(160deg, rgba(255,210,63,.16), rgba(5,20,11,.6)); }
.insight { border-left: 4px solid var(--gold); padding: 4px 0 4px 14px; margin: 14px 0; }
.insight h3, .panel h3 { margin: 0 0 6px; font-size: 20px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

/* The player card */
.fut { width: 240px; margin: 10px auto; padding: 18px 16px 16px; border-radius: 20px 20px 28px 28px; color: #1a1405;
  background: linear-gradient(160deg, #f7e9b0, #e6c65a 55%, #b88f22); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.fut.flip { animation: flipin .9s cubic-bezier(.2,1.3,.4,1) both; }
.fut-top { display: grid; justify-items: start; }
.rating { font: 64px/1 Anton, Impact, sans-serif; }
.pos { font: 700 15px Barlow, sans-serif; text-transform: uppercase; }
.fut-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 12px; border-top: 2px solid rgba(26,20,5,.25); padding-top: 10px; }
.fut-stats div { display: flex; gap: 8px; align-items: baseline; }
.fut-stats b { font: 26px Anton, Impact, sans-serif; } .fut-stats span { font-weight: 700; font-size: 14px; }

/* Animations: the kick on Go, the shot into the net at the end, confetti */
.kick { position: absolute; left: 0; top: 0; width: 100%; height: 60px; pointer-events: none; }
.kick i { position: absolute; left: 10px; top: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #bbb); animation: kick .65s cubic-bezier(.3,.6,.4,1) forwards; }
.goal-anim { position: relative; height: 170px; margin: 20px auto 6px; max-width: 320px; }
.goal-anim.small-anim { height: 120px; }
.net { position: absolute; right: 10px; top: 20px; width: 150px; height: 100px; border: 6px solid var(--chalk); border-bottom: 0;
  background: repeating-linear-gradient(45deg, rgba(245,242,234,.35) 0 2px, transparent 2px 12px), repeating-linear-gradient(-45deg, rgba(245,242,234,.35) 0 2px, transparent 2px 12px);
  animation: ripple .5s ease-out .75s 2; }
.shot { position: absolute; left: 0; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #bbb);
  animation: shot .8s cubic-bezier(.25,.6,.4,1) forwards; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 15px; border-radius: 2px; background: var(--gold); animation: fall 2.6s linear forwards; }
.confetti i:nth-child(3n) { background: var(--red); } .confetti i:nth-child(3n+1) { background: var(--chalk); }
@keyframes slidein { from { opacity: 0; transform: translateX(24px); } }
@keyframes kick { 0% { transform: translate(0,0) rotate(0); } 60% { transform: translate(55vw,-40px) rotate(540deg); } 100% { transform: translate(90vw,10px) rotate(900deg); opacity: 0; } }
@keyframes shot { 0% { transform: translate(0,0) rotate(0) scale(1.1); } 100% { transform: translate(240px,-80px) rotate(720deg) scale(.7); } }
@keyframes ripple { 50% { transform: scale(1.06, .96); } }
@keyframes flipin { from { transform: perspective(600px) rotateY(90deg) scale(.7); opacity: 0; } }
@keyframes fall { to { transform: translateY(900px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .qcard, .qform, .fut.flip, .net, .shot, .kick i, .confetti i { animation: none !important; } .shot { left: auto; right: 70px; bottom: 50px; } }

/* The challenge, printable */
.grid { font-size: 16px; } .grid td { height: 38px; } .ticks td { text-align: center; font-size: 22px; }
.print-only { display: none; }
@media print {
  body { background: #fff; color: #111; font-size: 12pt; } a { color: #111; }
  .nav, footer, .no-print, .panel, .cta-row { display: none !important; } .print-only { display: block; }
  .hero { background: none; padding: 0; } h1, h2 { color: #0c3f23; } .kicker { color: #b00; }
  th, td { border: 1px solid #999; } h2 { break-after: avoid; } table { break-inside: avoid; }
}

/* While the check is being played: just the title and the question */
body.playing .hero { padding: 14px 18px 0; }
body.playing .hero h1 { font-size: 24px; margin: 4px 0 0; }
body.playing .hero .lead, body.playing .hero .kicker, body.playing .intro-extra, body.playing main > .panel, body.playing .nav { display: none; }
