/* Gary. Everything here wobbles on purpose. */
.gary { position: fixed; left: max(14px, env(safe-area-inset-left)); bottom: max(2px, env(safe-area-inset-bottom)); z-index: 8; display: flex; align-items: flex-end; gap: 6px; transform: scale(0); transform-origin: 0 100%; pointer-events: none; }
.gary.up { transform: none; transition: transform .5s cubic-bezier(.2, 1.7, .4, 1); }
.gary.up .gary-poke, .gary.up .gary-off { pointer-events: auto; }
.gary.hit { transform: translate(-135vw, -6px) rotate(-70deg); transition: transform .75s cubic-bezier(.3, 0, 1, .7) var(--wait, .3s); pointer-events: none; }
.gary-art { width: 100%; height: auto; display: block; overflow: visible; }
.gary-poke { border: 0; background: none; padding: 0; width: clamp(104px, 29vw, 190px); cursor: pointer; display: block; }
.gary-talk { display: grid; gap: 6px; justify-items: start; padding-bottom: 14px; max-width: min(56vw, 280px); transition: opacity .2s; }
.gary.hush .gary-talk { opacity: 0; } .gary.hush .gary-talk:has(:focus-visible) { opacity: 1; } .gary.hush .gary-off { pointer-events: none !important; }
.gary-say { margin: 0; background: #fff; color: #0d1a30; border: 3px solid #0d1a30; border-radius: 16px 16px 16px 2px; padding: 10px 14px; font: 800 1.15rem/1.15 BarlowC, 'Arial Narrow', sans-serif; }
.gary-off { min-height: 44px; border: 0; border-radius: 10px; background: #0d1a30; color: #fff; font: 600 .95rem BarlowC, sans-serif; padding: 0 12px; cursor: pointer; }
.gary-truck { position: fixed; z-index: 9; bottom: -8px; left: 100%; width: 190px; pointer-events: none; } .gary-truck.go { transform: translateX(calc(-100vw - 260px)); transition: transform 1.05s linear; }
.kaplow { position: fixed; z-index: 10; left: 50%; top: 42%; pointer-events: none; font: 400 clamp(3.2rem, 17vw, 8rem)/1 Bowlby, Impact, sans-serif; color: #ffb000; -webkit-text-stroke: 4px #0d1a30; paint-order: stroke fill; transform: translate(-50%, -50%) rotate(-8deg) scale(0); } .kaplow.go { animation: kaplow 1s cubic-bezier(.2, 1.8, .4, 1) both; }
@keyframes kaplow { 0% { transform: translate(-50%, -50%) rotate(-30deg) scale(0); } 30%, 80% { transform: translate(-50%, -50%) rotate(-8deg) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(4deg) scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .gary-art { animation: g-wob .9s ease-in-out infinite alternate; transform-origin: 50% 100%; }
  .gary-arm-r { animation: g-wave .28s ease-in-out infinite alternate; transform-origin: 200px 176px; } .gary-arm-l { animation: g-wave .5s ease-in-out infinite alternate-reverse; transform-origin: 40px 176px; }
  .gary-eye { animation: g-eye 1.3s linear infinite; transform-origin: 88px 118px; } .gary-eye.two { transform-origin: 152px 114px; animation-duration: .8s; animation-direction: reverse; }
  .gary-tongue { animation: g-lick .45s ease-in-out infinite alternate; transform-origin: 118px 188px; } .gary-snot { animation: g-snot 2.2s ease-in-out infinite alternate; transform-origin: 115px 145px; } .gary-brow { animation: g-brow .6s ease-in-out infinite alternate; }
}
@keyframes g-wob { from { transform: rotate(-4deg) scaleY(.96); } to { transform: rotate(4deg) scaleY(1.04); } }
@keyframes g-wave { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
@keyframes g-eye { to { transform: rotate(360deg); } }
@keyframes g-lick { from { transform: rotate(-16deg); } to { transform: rotate(16deg) scaleY(1.2); } }
@keyframes g-snot { from { transform: scaleY(.6); } to { transform: scaleY(1.6); } }
@keyframes g-brow { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .gary, .gary-truck, .kaplow { transition: none !important; animation: none !important; } .gary.hit { transform: scale(0); } .gary-truck { display: none; } }
.foot { padding-bottom: 170px; }
.mark { display: inline-flex; align-items: center; gap: 8px; } .mark-gary { width: 38px; height: 42px; margin: -8px 0; }
@media (min-width: 900px) { .gary { left: 26px; } .gary-say { font-size: 1.3rem; } .stage-note { left: 250px; } }
@media (min-width: 1200px) { .stage-note { left: 510px; } }  /* clear of what Gary says */
@media (max-width: 899px) { .top .mark { font-size: 1.45rem; } .top { gap: .6rem; } .top nav { gap: .8rem; } .stage { height: calc(100svh - 204px - clamp(134px, 32.7vw, 216px)); min-height: 350px; }  /* what is left above the buttons, with Gary below them */ }
@media (max-height: 830px) and (max-width: 899px) { .stage { height: calc(100svh - 272px); } .gary-poke { width: 76px; } .gary-say { font-size: 1rem; padding: 7px 11px; } .hero { top: 62px; } .stage.still { padding-top: 120px; } .hero h1 { font-size: 1.75rem; } .lip { padding-top: 16px; gap: .6rem; } .cta { gap: 11px; } .stage-note { bottom: 30px; } .btn.big { padding: 13px; } }
@media (max-height: 700px) and (max-width: 899px) { .sign > span { font-size: .8rem; padding: 1px 5px; gap: 5px; } .flag, .flag .badge { width: 27px; } }
@media (max-width: 899px) { body:has(input:not([type=radio]):not([type=checkbox]):focus, textarea:focus) .gary { visibility: hidden; } }  /* not on top of what people are typing */
@media (max-width: 345px) { .top .mark { font-size: 1.15rem; white-space: nowrap; } .mark-gary { width: 30px; height: 33px; } .top nav { font-size: 1rem; gap: .6rem; white-space: nowrap; } .tally { font-size: .92rem; gap: 8px; } .tally b { font-size: 1.5rem; } .stage { min-height: 296px; } .stage-note { font-size: .72rem; } }
