
/* ===== the challenges switch (santabtn.py) ===== */
/* THE PILL, which is snow.py's rule with the colours it settles on
   rather than the one it starts from. No CSS borders anywhere, per
   the standing rule; the ring is a background behind a gap.
   (Written without the colon after that word on purpose. The guard
   below reads this block for a border declaration and cannot tell
   one from a comment mentioning the word, which it proved by
   refusing 81 pages over the first draft of this very line.) */
#santat{position:fixed;left:18px;bottom:18px;z-index:95;
  display:inline-flex;align-items:center;gap:9px;
  /* 11 AND NOT 9, WHICH IS SNOW'S NUMBER, AND THE FOUR PIXELS ARE
     THE POINT. snow.py's switch is a <button> and declares no border,
     so it keeps the browser's own 2px default on every side and
     renders 37px tall against the 33 the same padding gives an
     anchor. In a stack of three pills a 4px difference in one of them
     reads as a mistake, so this matches the rendered box rather than
     the stylesheet. Left alone deliberately: taking that default off
     #snowt would move a control Matt has already signed off. */
  padding:11px 15px 11px 12px;border-radius:999px;
  background:rgba(255,255,255,.08);color:rgba(255,255,255,.72);
  font:600 12px/1 'Gotham',system-ui,sans-serif;letter-spacing:1.4px;
  text-transform:uppercase;text-decoration:none;cursor:pointer;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  transition:background .3s ease,color .3s ease,transform .3s ease;}
#santat:hover,#santat:focus-visible{background:rgba(255,255,255,.14);
  color:#fff;transform:translateY(-2px);}
#santat b{display:block;width:15px;height:15px;line-height:0;
  transition:transform .4s ease;}
#santat b svg{width:100%;height:100%;display:block;}
#santat:hover b{transform:rotate(-8deg);}
/* AND A GROUND OF ITS OWN ONCE THE DRIFT IS DEEP, for the reason
   snow.py gives its own switch: this pill sits in the bottom left
   corner, which is where the bank climbs highest, and a translucent
   white film over near white snow is not a readable control. */
/* keyed on the canvas, because that is what snow.py marks: it does
   `cv.classList.toggle('on', on)` on #snowc and there is no class on
   the body to read. */
html body:has(#snowc.on) #santat{color:var(--aqua,#00eecc);
  background:linear-gradient(var(--aquafilm,rgba(0,238,204,.12)),
                             var(--aquafilm,rgba(0,238,204,.12))),
             var(--ink,#0b0f2e);}

/* THE WHOLE STACK, DECLARED HERE. Reasoning at the top of the file. */
html body:has(#santat) #snowt{bottom:62px;}
html body:has(#santat) #promot{bottom:106px;}

@media (max-width:700px){
  #santat{left:12px;bottom:12px;padding:8px 12px 8px 10px;font-size:11px;}
  /* the snow switch is hidden at this width and the promo pill's own
     rule cannot see that, because the switch is still in the markup */
  html body:has(#santat) #promot{bottom:56px;}
}
@media (prefers-reduced-motion:reduce){
  #santat,#santat b{transition:none;}
}
