.studio-tools { display: flex; align-items: center; gap: .5rem; justify-self: end; }
.music-control { position: relative; }
.music-button {
  position: relative;
  display: grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #8294ad8a;
  border-radius: .38rem;
  background: #121b28;
  color: #d2e6ff;
  font-size: 1.14rem;
}
.music-button:hover, .music-button[aria-pressed="true"] { border-color: #a2cfff; background: #1d3149; }
.music-button[aria-pressed="false"]::after {
  position: absolute;
  width: 1.2rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 1px #121b28;
  content: "";
  transform: rotate(-43deg);
}
.music-volume {
  position: absolute;
  z-index: 4;
  top: 100%;
  right: 0;
  width: 10.75rem;
  padding-top: .4rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity .18s;
}
.music-control:hover .music-volume, .music-control:focus-within .music-volume, .music-control.is-adjusting .music-volume {
  visibility: visible;
  opacity: 1;
}
.music-volume > div {
  padding: .72rem .8rem;
  border: 1px solid #8294ad8a;
  border-radius: .45rem;
  background: #121c2a;
  box-shadow: 0 8px 22px #0007;
  color: #d7e6f9;
  font-size: .75rem;
}
.music-volume p { margin-bottom: .25rem; font-weight: 750; }
.music-volume label { color: #aebed4; }
.music-volume input { display: block; width: 100%; margin: .22rem 0 0; accent-color: #afd5ff; }

.studio-footer {
  --footer-muted: #a7b1c2;
  color: #f4f7fb;
  background: radial-gradient(ellipse at 65% 45%, #192b42, transparent 85%), #101925;
  font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}
.studio-footer h2, .studio-footer p { margin: 0; }
.studio-footer a { text-decoration: none; }
.studio-footer a:focus-visible { outline: 3px solid #64b7fd; outline-offset: 4px; }
.studio-hero .studio-footer {
  align-self: start;
  background: transparent;
  transition: opacity .22s, visibility .22s;
}
.studio-hero:is(.is-hovering-game, .is-previewing) .studio-footer {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.studio-note {
  margin-inline: auto;
  width: min(100% - 2 * clamp(1.25rem, 4.5vw, 4.5rem), 42.5rem);
  padding: 1.05rem 0 1.35rem;
  border-top: 1px solid #8294ad49;
  text-align: center;
}
.studio-note h2 { margin-bottom: .22rem; font-size: 1.15rem; font-weight: 800; }
.studio-tagline { color: #bbd7f5; font-size: .93rem; font-weight: 700; }
.studio-note-copy {
  max-width: 62ch;
  margin: 1rem auto 0;
  color: var(--footer-muted);
  font-size: .95rem;
  line-height: 1.63;
  text-align: start;
}
.studio-note-copy p + p { margin-top: .7rem; }
.studio-credits {
  margin-top: 1.4rem;
  padding-top: .9rem;
  border-top: 1px solid #8294ad35;
  color: var(--footer-muted);
  font-size: .83rem;
}
.studio-credit-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: center;
  align-items: center;
  gap: clamp(.45rem, 3vw, 1rem);
  margin-top: .65rem;
}
.studio-credit-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  overflow-wrap: anywhere;
  color: #bfdbfa;
  font-weight: 750;
  text-align: center;
}
.studio-credit-links a:first-child {
  justify-content: center;
  padding: .45rem .7rem;
  border: 1px solid #8099b98a;
  border-radius: .42rem;
}
.studio-credit-links a:first-child:hover { background: #a7c8ef18; }
.studio-credit-links a:last-child:hover { text-decoration: underline; }
.studio-footer--compact {
  --footer-muted: #514b3d;
  color: #252920;
  background: #eadcc0;
}
.guide-page .studio-footer--compact { background: var(--canvas, #eae0ce); }
.studio-footer--compact .studio-note { border-color: #c8b89a; }
.studio-footer--compact .studio-credits { margin-top: 0; padding-top: 0; border-top: 0; }
.studio-footer--compact .studio-credit-links a { color: #385539; }
.studio-footer--compact .studio-credit-links a:first-child { border-color: #52694a8f; }
.studio-footer--compact .studio-credit-links a:first-child:hover { background: #38553915; }


@media (prefers-reduced-motion: no-preference) {
  ::view-transition-group(root) { animation-duration: 360ms; }
  ::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
  ::view-transition-old(root) { animation: slide-page-out 360ms cubic-bezier(.22,.61,.36,1) both; }
  ::view-transition-new(root) { animation: slide-page-in 360ms cubic-bezier(.22,.61,.36,1) both; }
}

@keyframes slide-page-out {
  to { transform: translateX(calc(-100% * var(--page-direction, 1))); }
}
@keyframes slide-page-in {
  from { transform: translateX(calc(100% * var(--page-direction, 1))); }
}

@media (prefers-reduced-motion: reduce) {
  .music-volume, .studio-hero .studio-footer { transition: none; }
}
