/* Huey website: the home page footer, shared by the dev log, press kit and 404 page (Mitch, Nov 25).
   Copied from index.html's own footer rules and scoped to .site-footer so each page's other styles can't change it.
   The footer markup is copied in by tools/add_footer.py; its behaviour is in assets/site-footer.js.
   If the home page footer's look changes, change it here too. */
:root{--wave-h:clamp(56px,8vw,110px)}
.site-footer{background:var(--cream-dark);margin-top:calc(40px + var(--wave-h));position:relative;color:var(--ink);font-family:var(--body);text-align:left}
.site-footer *{box-sizing:border-box}
.site-footer .mi{display:inline-block;width:1em;height:1em;fill:currentColor;flex:none;vertical-align:-.125em}
.site-footer a{text-decoration:none}

/* waves on the footer's top edge */
.site-footer .waves{position:absolute;left:0;right:0;width:100%;height:var(--wave-h);pointer-events:none;display:block;--wc:var(--cream-dark)}
.site-footer .waves-top{bottom:calc(100% - 1px)}
.site-footer .waves use{animation:wave-sway ease-in-out infinite alternate}
.site-footer .waves use:nth-child(1){animation-duration:8s;animation-delay:-3s;fill:color-mix(in srgb, var(--wc) 30%, transparent)}
.site-footer .waves use:nth-child(2){animation-duration:10s;animation-delay:-7s;animation-direction:alternate-reverse;fill:color-mix(in srgb, var(--wc) 55%, transparent)}
.site-footer .waves use:nth-child(3){animation-duration:12s;fill:var(--wc)}
@keyframes wave-sway{0%{transform:translate3d(-12px,0,0)}100%{transform:translate3d(12px,0,0)}}
.site-footer .anim-off use{animation-play-state:paused!important}

/* the springing Huey */
.site-footer .spring{position:absolute;right:max(10px,calc(50% - 611px));top:-120px;width:182px;height:auto;z-index:3;cursor:pointer;pointer-events:auto}
@keyframes hueyHop{0%{transform:translateY(0)}30%{transform:translateY(-6%) rotate(-4deg)}60%{transform:translateY(1%) rotate(2deg)}100%{transform:translateY(0)}}
.site-footer .says{animation:hueyHop .55s cubic-bezier(.3,1.4,.5,1)}

/* layout: brand | explore | connect | theme, legal line underneath */
.site-footer .foot{width:min(1120px,calc(100% - 40px));margin:0 auto;display:block;padding:57px 0 40px}
.site-footer .foot-grid{display:grid;grid-template-columns:1.1fr 1fr 1.4fr 1fr;gap:40px}
.site-footer .brand{display:flex;flex-direction:column;gap:14px}
.site-footer .brand-mark{display:flex;flex-direction:column;align-items:flex-start}
.site-footer .brand-mark .union{width:80px;height:70px;margin-left:0}
.site-footer .brand-mark .wordmark{width:136px;height:auto;margin-top:8px;filter:var(--svg-ink)}
.site-footer .brand-mark small{font-family:var(--body);font-weight:700;font-size:11px;letter-spacing:.77px;color:var(--grey-strong);margin-top:5px}
.site-footer .brand-line{margin:0;font-family:var(--body);font-size:14px;line-height:1.4;color:var(--grey);max-width:230px}
.site-footer .col{width:auto;min-width:0;display:flex;flex-direction:column;gap:10px}
.site-footer .col h4{margin:0;font-family:var(--display);font-weight:700;font-size:15px;line-height:1.2;color:var(--foot-head);letter-spacing:.06em}
.site-footer .col hr{border:0;border-top:1px solid var(--rule);margin:0;transform:rotate(-.59deg)}
.site-footer .col a,.site-footer .col address{font-family:var(--body);font-weight:400;font-size:16px;color:var(--grey);font-style:normal}
.site-footer .col a:hover{color:var(--grey-strong)}
.site-footer .contact-row{display:flex;gap:8px;align-items:center}
.site-footer .contact-row .mi{font-size:16px;position:relative;top:.09em;color:var(--foot-icon)}
.site-footer .social{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.site-footer .social a{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--foot-icon);color:var(--cream-dark);transition:background .2s, transform .15s}
.site-footer .social a:hover{background:var(--foot-icon-hover);color:var(--cream-dark);transform:translateY(-2px)}
.site-footer .social a:focus-visible{outline:2px solid var(--grey-strong);outline-offset:2px}
.site-footer .social svg{width:18px;height:18px;fill:currentColor}
.site-footer .foot-legal{display:flex;justify-content:space-between;align-items:flex-start;gap:24px 40px;flex-wrap:wrap;margin-top:44px;padding-top:20px;border-top:1px solid var(--rule)}
.site-footer .legal{margin:0;font-family:var(--body);font-size:13px;line-height:1.4;color:var(--grey);max-width:420px}
.site-footer .legal.nintendo{font-size:12px;opacity:.85}
.site-footer .foot-privacy{display:inline-block;margin-top:14px;font-family:var(--body);font-size:15px;color:var(--grey);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--foot-head)}
.site-footer .foot-privacy:hover{color:var(--grey-strong)}
@media (max-width:860px){
  .site-footer .foot-grid{grid-template-columns:1fr 1fr;grid-template-areas:"brand brand" "explore theme" "connect connect";gap:36px 28px}
  .site-footer .foot-grid .brand{grid-area:brand} .site-footer .foot-grid .col-explore{grid-area:explore}
  .site-footer .foot-grid .col-connect{grid-area:connect} .site-footer .foot-grid .col-theme{grid-area:theme}
}
@media (max-width:560px){ .site-footer .foot-grid{grid-template-columns:1fr;grid-template-areas:"brand" "explore" "connect" "theme"} }

/* theme toggle */
.site-footer .theme-toggle{display:inline-flex;padding:4px;gap:4px;border-radius:100px;background:color-mix(in srgb, var(--ink) 8%, transparent);width:max-content}
.site-footer .theme-toggle button{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:100px;padding:7px 14px;background:transparent;
  color:var(--grey);font-family:var(--body);font-weight:700;font-size:14px;cursor:pointer;transition:background .2s, color .2s}
.site-footer .theme-toggle button .mi{font-size:18px}
.site-footer .theme-toggle button:hover{color:var(--grey-strong)}
.site-footer .theme-toggle button[aria-pressed="true"]{background:var(--cream);color:var(--grey-strong);box-shadow:0 1px 3px rgba(0,0,0,.18)}
.site-footer .theme-toggle button:focus-visible{outline:2px solid var(--grey-strong);outline-offset:2px}

/* cheat code tooltip and rainbow Huey */
.site-footer .rainbow-tint{background-image:var(--paint,none),var(--art,none);background-size:var(--paint-size,100% 100%),100% 100%;
  background-position:0 0,0 0;background-repeat:no-repeat;background-blend-mode:color,normal;
  position:absolute;pointer-events:none;opacity:0;transition:opacity .4s;
  -webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  --paint:linear-gradient(115deg,#FF5B2E,#FFD23F,#72E56A,#2EBDFF,#9B6BFF,#FF7AD9,#FF5B2E,#FFD23F,#72E56A);--paint-size:300% 300%;
  animation:rainbow-flow 3s linear infinite}
.rainbow-on .site-footer .rainbow-tint{opacity:1}
@keyframes rainbow-flow{to{background-position:100% 100%,0 0}}
.site-footer .cheat-wrap{position:relative;display:block}
.site-footer .cheat-link{display:inline-block;margin-top:8px;border:0;background:none;padding:0;cursor:pointer}
.site-footer .cheat-link:focus:not(:focus-visible){outline:none}
.site-footer .cheat-tip{position:absolute;bottom:calc(100% + 12px);right:0;z-index:30;display:flex;flex-direction:column;gap:8px;padding:12px 14px 14px;border-radius:20px;
  background:var(--stroke-brown);color:#fff;box-shadow:0 14px 28px -14px rgba(40,25,15,.6);font-family:var(--display);font-weight:700;white-space:nowrap}
.site-footer .cheat-tip[hidden]{display:none}
.site-footer .cheat-tip:not([hidden]){animation:cast-tag-in .32s cubic-bezier(.3,1.4,.5,1)}
@keyframes cast-tag-in{from{opacity:0;transform:translateY(8px) scale(.85)}to{opacity:1;transform:none}}
.site-footer .cheat-tip::after{content:"";position:absolute;top:100%;right:28px;border:8px solid transparent;border-top-color:var(--stroke-brown)}
.site-footer .cheat-title{font-size:13px;letter-spacing:.06em;text-transform:uppercase;opacity:.75}
.site-footer .cheat-keys{display:flex;gap:5px}
.site-footer .cheat-keys button{width:30px;height:30px;border-radius:8px;border:0;display:grid;place-items:center;padding:0;cursor:pointer;
  font-family:var(--display);font-weight:700;font-size:17px;line-height:1;color:#fff;background:rgba(255,255,255,.14);transition:background .15s, color .15s}
.site-footer .cheat-keys button:hover{background:rgba(255,255,255,.26)}
.site-footer .cheat-keys button.hit{background:#fff;color:var(--stroke-brown);animation:cheat-pop .22s ease-out}
@keyframes cheat-pop{50%{transform:scale(1.18)}}
.site-footer .cheat-tip.win .cheat-keys button{color:#fff;background:linear-gradient(135deg,#FF5B2E,#FFD23F,#72E56A,#2EBDFF,#9B6BFF) 0 0/400% 400%;animation:rainbow-flow 1s linear infinite}
.site-footer .cheat-tip.win .cheat-keys button:nth-child(2){animation-delay:-.1s}.site-footer .cheat-tip.win .cheat-keys button:nth-child(3){animation-delay:-.2s}
.site-footer .cheat-tip.win .cheat-keys button:nth-child(4){animation-delay:-.3s}.site-footer .cheat-tip.win .cheat-keys button:nth-child(5){animation-delay:-.4s}
.site-footer .cheat-tip.win .cheat-keys button:nth-child(6){animation-delay:-.5s}.site-footer .cheat-tip.win .cheat-keys button:nth-child(7){animation-delay:-.6s}
.site-footer .cheat-tip.win .cheat-keys button:nth-child(8){animation-delay:-.7s}.site-footer .cheat-tip.win .cheat-keys button:nth-child(9){animation-delay:-.8s}
.site-footer .cheat-tip.win .cheat-keys button:nth-child(10){animation-delay:-.9s}
.confetti{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:1000}
@media (max-width:640px){ .site-footer .cheat-tip{right:auto;left:0} .site-footer .cheat-tip::after{right:auto;left:28px} .site-footer .cheat-keys button{width:28px;height:30px;font-size:16px} }
@media (prefers-reduced-motion:reduce){
  .site-footer .waves use,.site-footer .says,.site-footer .rainbow-tint,.site-footer .cheat-tip:not([hidden]),.site-footer .cheat-keys button.hit{animation:none}
}
