/* The site footer (tools/footer.py stamps its markup into every page and links this file from inside it).
   Built from the game's own UI kit (Joe 2026-10-25, footer B "with better use of similar unity components"):
   green PLAY button, the sign-in screen's round store logos, masking-tape shelf labels, full-colour item icons. */
footer.ft{display:block;padding:24px 18px 18px;min-height:0;gap:0;text-align:center}
footer.ft a{font:inherit;color:inherit;text-decoration:none}
footer.ft .ft-logo{display:block;width:170px;margin:0 auto 14px}
footer.ft .ft-logo img{width:170px;height:auto;display:block}
footer.ft .ft-get{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 auto 20px}
footer.ft .ft-play{display:flex;align-items:center;justify-content:center;width:150px;height:63px;background:url('/assets/img/ui/btn-green.webp') center/100% 100%;
  font:400 23px/1 var(--button);color:#fff;text-shadow:0 2px 0 #1d3d12,0 0 3px #0008;filter:drop-shadow(0 3px 2px #0009)}
footer.ft .ft-os{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 2px 2px #0009)}
footer.ft .ft-os img{width:44px;height:44px;display:block}
footer.ft .ft-steam{background:#171d25;border:2px solid #0c0f13}
footer.ft .ft-steam img{width:26px;height:26px;filter:invert(1)}
/* FOLLOW FOR GIVEAWAYS (Joe 2026-11-05): the shelf tape, then each network's sticker slapped on a bottle cap from the
   game's own kit (Tools/art/ui/kit/cap-silver.png) - the wrong object doing the job. Joe vetoed the first take's
   semi-opaque black plate the same day ("doesn't fit our UI styling"): nothing here that the game's UI doesn't wear. */
footer.ft .ft-follow{margin:0 auto 22px}
footer.ft .ft-follow .ft-tape{margin:0 0 8px;transform:rotate(-1.5deg)}
footer.ft .ft-soc{display:flex;justify-content:center;gap:6px;margin:0 auto}
footer.ft .ft-soc a{position:relative;display:block;width:54px;height:53px;background:url('/assets/img/ui/cap-silver.webp') center/100% 100% no-repeat;
  filter:drop-shadow(0 3px 2px #000a);transition:transform .15s ease}
footer.ft .ft-soc a:nth-child(odd){transform:rotate(-8deg)}
footer.ft .ft-soc a:nth-child(even){transform:rotate(6deg) translateY(2px)}
footer.ft .ft-soc a:hover{transform:translateY(-3px) rotate(0) scale(1.08)}
footer.ft .ft-soc img{position:absolute;left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;display:block;
  filter:drop-shadow(0 1px 0 #fff8) drop-shadow(0 1px 1px #0006)}
footer.ft .ft-cols{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:4px 14px;max-width:370px;margin:0 auto;padding:0;text-align:left}
footer.ft .ft-tape{display:inline-block;padding:9px 18px 7px;margin:0 0 6px -4px;background:url('/assets/img/ui/tape-masking.webp') center/100% 100%;
  font:400 16px/1 var(--marker);color:#2a1d12;transform:rotate(-2.5deg);filter:drop-shadow(0 2px 1px #0007)}
footer.ft .ft-cols>div+div .ft-tape{transform:rotate(2deg)}
footer.ft .ft-cols a{display:flex;align-items:center;gap:10px;min-height:46px;padding:4px 0;font:600 20px/1.1 var(--condensed);color:var(--cream);border-bottom:1px dashed #f7ecd333}
footer.ft .ft-cols a:hover{color:#f2c46b}
footer.ft .ft-cols a img{width:32px;height:32px;object-fit:contain;flex:none;filter:drop-shadow(0 2px 1px #0008)}
footer.ft{padding-bottom:0}
footer.ft .ft-rope{position:relative;z-index:1;height:18px;margin:16px -18px 0;background:url('/assets/img/ui/trim-rope.webp') center/auto 18px repeat-x;filter:drop-shadow(0 4px 3px #000)}
/* THE NIGHT SHIFT (Joe 2026-11-04: the trailer patch on wood "looks terrible ... needs to look epic"): below the rope the
   footer goes to the splash's own black - the studio mark as glowing white ink (studio-mark-ink.webp, real alpha), the
   copyright and the language flags under it, like a game's end credits. */
footer.ft .ft-studio,footer.ft small,footer.ft>.langs{margin-left:-18px;margin-right:-18px;background:#000}
footer.ft .ft-studio{position:relative;display:block;overflow:hidden;padding:40px 0 26px;
  background:radial-gradient(ellipse 60% 70% at 50% 58%,#0e2a3a 0%,#06121a 45%,#000 80%)}
footer.ft .ft-studio::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.35;
  background:repeating-linear-gradient(to bottom,#0000 0 2px,#0008 2px 3px)}
footer.ft .ft-slide span{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 0 18px;
  font:400 14px/1 var(--marker);color:#fff;letter-spacing:.3em;text-transform:uppercase;text-shadow:0 0 8px #7fd4ff99}
footer.ft .ft-slide span::before,footer.ft .ft-slide span::after{content:"";width:44px;height:2px;background:linear-gradient(90deg,#fff0,#fffc)}
footer.ft .ft-slide span::after{transform:scaleX(-1)}
footer.ft .ft-studio::before{content:"";position:absolute;left:0;right:0;top:0;height:34%;z-index:2;pointer-events:none;
  background:linear-gradient(#0000,#9fe3ff12 45%,#ffffff1c 50%,#9fe3ff12 55%,#0000);animation:crt-roll 7s linear infinite}
/* THE REEL (Joe 2026-11-05: "a couple other ... doing business logos and carousel swiping in"): the studio marks
   (footer.py STUDIOS) slide in right-to-left, 5 s each; the last slide is a clone of the first, so the loop never
   rewinds. Every mark stands the same height, its width from its own --ar. Hover holds it; reduced motion = slide 1. */
footer.ft .ft-reel{display:flex;width:400%;animation:ft-reel 15s infinite}
footer.ft .ft-slide{flex:0 0 25%;box-sizing:border-box;padding:0 18px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}
footer.ft .ft-studio:hover .ft-reel,footer.ft .ft-studio:focus-within .ft-reel{animation-play-state:paused}
footer.ft .ft-slide .crt{--h:min(250px,50vw);height:var(--h);width:calc(var(--h) * var(--ar));max-width:86vw;transition:transform .25s ease}
footer.ft .ft-slide:hover .crt{transform:scale(1.03)}
@keyframes ft-reel{0%,29%{transform:translateX(0);animation-timing-function:cubic-bezier(.7,0,.25,1)}
  33.3%,62.3%{transform:translateX(-25%);animation-timing-function:cubic-bezier(.7,0,.25,1)}
  66.6%,95.6%{transform:translateX(-50%);animation-timing-function:cubic-bezier(.7,0,.25,1)}100%{transform:translateX(-75%)}}
footer.ft .ft-dots{position:relative;z-index:3;display:flex;justify-content:center;gap:9px;margin-top:20px}
footer.ft .ft-dots b{width:7px;height:7px;border-radius:50%;background:#fff3;animation:ft-dot 15s infinite}
footer.ft .ft-dots b:nth-child(2){animation-delay:-10s}
footer.ft .ft-dots b:nth-child(3){animation-delay:-5s}
@keyframes ft-dot{0%,31%{background:#fff;box-shadow:0 0 8px #8fdcff}33.3%,100%{background:#fff3;box-shadow:none}}
@keyframes crt-roll{from{transform:translateY(-100%)}to{transform:translateY(300%)}}
/* THE CRT (Joe 2026-11-04: "CRT kind of flickering style ... like pixels"): no video, no library - the white-ink mark,
   a red and a cyan copy of it (CSS masks of the same file) offset a hair for the chromatic fringe, one 8 s cycle that
   hums, tears two slices sideways at 30%, and drops to a 96-px pixelated frame for ~150 ms at 70%. Off for reduced motion.
   Markup: <i class="crt" style="--ink:url(ink.webp)"><img ink><img class="px" lowres></i> (footer.py, /doublewide-supercomputer/) */
.crt{position:relative;display:block;margin:0 auto;aspect-ratio:var(--ar,440/276);font-style:normal}
.crt img{display:block;width:100%;height:100%;filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 8px #8fdcffaa) drop-shadow(0 0 26px #3fa9ff66);
  animation:crt-main 8s linear infinite}
.crt img.px{position:absolute;inset:0;image-rendering:pixelated;opacity:0;animation:crt-px 8s linear infinite}
.crt::before,.crt::after{content:"";position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;
  -webkit-mask:var(--ink) center/100% 100% no-repeat;mask:var(--ink) center/100% 100% no-repeat}
.crt::before{background:#ff2e63;animation:crt-r 8s linear infinite}
.crt::after{background:#19e3ff;animation:crt-c 8s linear infinite}
@keyframes crt-main{0%,100%{opacity:1;transform:none}14%{opacity:1}14.6%{opacity:.78}15.2%{opacity:1}
  30%{transform:none}30.2%{transform:translateX(3px) skewX(-4deg)}31.4%{transform:translateX(-2px)}32%{transform:none}
  47%{opacity:1}47.5%{opacity:.86}48%{opacity:1}69.9%{opacity:1}70%{opacity:0}71.8%{opacity:0}72%{opacity:1}}
@keyframes crt-px{0%,69.9%{opacity:0}70%,71.8%{opacity:1}72%,100%{opacity:0}}
@keyframes crt-r{0%,29.9%,32.6%,69.9%,72.1%,100%{opacity:.75;transform:translate(-1.5px,0);clip-path:inset(0)}
  30%,31%{opacity:1;transform:translate(-11px,0);clip-path:inset(36% 0 46% 0)}
  31.1%,32.5%{opacity:1;transform:translate(8px,1px);clip-path:inset(62% 0 18% 0)}70%,72%{opacity:0}}
@keyframes crt-c{0%,29.9%,32.6%,69.9%,72.1%,100%{opacity:.75;transform:translate(1.5px,0);clip-path:inset(0)}
  30%,31%{opacity:1;transform:translate(9px,0);clip-path:inset(36% 0 46% 0)}
  31.1%,32.5%{opacity:1;transform:translate(-6px,-1px);clip-path:inset(62% 0 18% 0)}70%,72%{opacity:0}}
/* the same tube as a plate inside a page (/doublewide-supercomputer/) */
.crt-plate{position:relative;overflow:hidden;margin:0 0 24px;padding:38px 18px;border-radius:14px;
  background:radial-gradient(ellipse 60% 70% at 50% 55%,#0e2a3a 0%,#06121a 45%,#000 80%);box-shadow:inset 0 0 40px #000,0 4px 10px #0006}
.crt-plate::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.35;background:repeating-linear-gradient(to bottom,#0000 0 2px,#0008 2px 3px)}
.crt-plate .crt{width:min(520px,100%)}
@media(prefers-reduced-motion:reduce){.crt img,.crt::before,.crt::after,footer.ft .ft-studio::before,footer.ft .ft-reel,footer.ft .ft-dots b{animation:none}}
footer.ft small{display:block;width:auto;max-width:none;white-space:normal;text-align:center;padding:0 18px 14px;
  font:600 13px/1.4 var(--condensed);color:#9fb6c4}
footer.ft small{margin-top:0;margin-bottom:0}
footer.ft>.langs{margin-top:0!important;margin-bottom:0;padding:4px 18px 22px;justify-content:center;flex-wrap:wrap;box-shadow:0 -16px 0 #000}
/* wide: logo + get-the-game on the left, the two shelves to the right */
@media(min-width:760px){
  footer.ft{display:grid;grid-template-columns:auto minmax(0,440px);justify-content:space-between;align-items:center;gap:0 40px;padding:26px 45px 16px}
  footer.ft .ft-left{grid-column:1}
  footer.ft .ft-cols{grid-column:2;max-width:none;margin:0}
  footer.ft .ft-rope,footer.ft .ft-studio,footer.ft small,footer.ft>.langs{grid-column:1/-1}
  footer.ft{padding-bottom:0}
  footer.ft .ft-rope{margin:18px -45px 0}
  footer.ft .ft-studio,footer.ft small,footer.ft>.langs{margin-left:-45px;margin-right:-45px}
  footer.ft .ft-studio{padding:46px 0 28px}
  footer.ft .ft-slide .crt{--h:276px}
  footer.ft small br{display:none}
}
