/* Footer skate game. The canvas has no frame: it runs full width behind the heading
   and footer links, and the game dissolves its own edges into the page colour. */
.skate-foot{position:relative;overflow:hidden;background:#F4F4F0;color:#111;font-family:'Instrument Sans',system-ui,sans-serif}
.skate{position:relative}
/* The stage slides up under the heading so towers rise behind it. */
.skate-stage{position:relative;height:clamp(460px,calc(360px + 13vw),620px);margin-top:-96px}
.skate canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:manipulation;cursor:pointer}
/* Keyboard focus shows on the score instead of as a frame around the whole scene. */
.skate canvas:focus-visible{outline:none}
.skate:has(canvas:focus-visible) .skate-hud span{outline:2px solid #2B3FD6;outline-offset:6px}
.skate-head{position:relative;z-index:1;max-width:1200px;margin:0 auto;padding:48px 32px 0;display:flex;flex-wrap:wrap;gap:10px 32px;justify-content:space-between;align-items:baseline;pointer-events:none}
.skate-head h2{margin:0;font-family:'Bricolage Grotesque',sans-serif;font-size:26px;font-weight:700}
.skate-head h2 span,.skate-info span{background:#F4F4F0;box-shadow:5px 0 0 #F4F4F0,-5px 0 0 #F4F4F0;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.skate-info{max-width:560px;font-family:'IBM Plex Mono',monospace;font-size:13px;line-height:1.5;color:#444}
.skate-info p{margin:0}
.skate-hud{margin-top:6px!important;color:#111;font-weight:500;letter-spacing:.04em}
.skate-overlay{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding-top:70px;pointer-events:none}
.skate-btn{pointer-events:auto;min-height:52px;padding:0 30px;background:#111;color:#F4F4F0;border:2px solid #111;box-shadow:5px 5px 0 #5CFF3B;font-family:'Instrument Sans',sans-serif;font-weight:600;font-size:16px;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}
.skate-btn:hover{transform:translate(-2px,-2px);box-shadow:7px 7px 0 #FF3D8B}
.skate-btn:active{transform:translate(3px,3px);box-shadow:2px 2px 0 #5CFF3B}
.skate-slam{margin:0;font-family:'Bricolage Grotesque',sans-serif;font-size:clamp(40px,6vw,64px);font-weight:700;font-style:italic;line-height:1;color:#FF3D8B;text-shadow:4px 4px 0 #111;transform:rotate(-4deg)}
.skate-score{margin:0;padding:4px 10px;background:#111;color:#F4F4F0;font-family:'IBM Plex Mono',monospace;font-size:14px}
.skate-label{position:absolute;z-index:1;margin:0;white-space:nowrap;pointer-events:none;font-family:'Bricolage Grotesque',sans-serif;font-size:clamp(22px,2.6vw,32px);font-weight:700;font-style:italic;line-height:1;color:#FF3D8B;text-shadow:3px 3px 0 #111;transform:translate(-30%,-100%) rotate(-6deg)}
.skate-label.pop{animation:skate-pop .9s ease-out both}
@keyframes skate-pop{0%{opacity:0;scale:.6}12%{opacity:1;scale:1.12}24%{scale:1}80%{opacity:1}100%{opacity:0}}
.skate-note{position:absolute;inset:auto 0 45%;z-index:1;margin:0;text-align:center;font-family:'IBM Plex Mono',monospace;font-size:13px;color:#444}
.skate-links{position:relative;z-index:1;margin-top:-64px;pointer-events:none}
.skate-links a{pointer-events:auto}
@media (max-width:640px){
.skate-head{padding:32px 24px 0}
.skate-stage{height:420px;margin-top:-36px}
.skate-overlay{padding-top:20px}
.skate-links{margin-top:-40px}
}
@media (prefers-reduced-motion:reduce){
.skate-btn{transition:none}
.skate-label.pop{animation:none}
}
