













:root {
  --fc-paper: #FBF5E4;
  --fc-card: #FFFDF6;
  --fc-ink: #17150F;
  --fc-inkSoft: #4A4438;
  --fc-green: #1B6B3A;
  --fc-gold: #8A5A00;
  --fc-red: #A8321E;
  --fc-blue: #1D4E89;
  --fc-slate: #5D5749;
  --fc-wood: #E9D3A8;
  --fc-woodLit: #F7EBD2;
  --fc-woodShade: #C4A874;
  --fc-base: 20px;
  --fc-min: 18px;
  --fc-small: 18px;
  --fc-h1: 34px;
  --fc-h2: 26px;
  --fc-target: 48px;
  --fc-border: 3px;
  --fc-radius: 6px;
  --fc-shadow: 4px;
  




  --fc-paperDim: rgba(246, 241, 230, 0.78);
  --fc-paperWash: rgba(246, 241, 230, 0.14);
  --fc-motionMs: 120ms;
  --fc-font: Verdana, "DejaVu Sans", Tahoma, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }























html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  height: 100svh;
  overflow: hidden;
  background: var(--fc-paper);
  color: var(--fc-ink);
  font-family: var(--fc-font);
  font-size: var(--fc-base);
  


  overscroll-behavior: none;
  

  touch-action: none;
}

canvas#board {
  

















  touch-action: none;

  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  

  -webkit-tap-highlight-color: transparent;
  user-select: none;
}





canvas#board:focus-visible {
  outline: var(--fc-shadow) solid var(--fc-blue);
  outline-offset: -4px;
}




.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

noscript p {
  margin: 0;
  padding: 24px;
  font-size: var(--fc-base);
  color: var(--fc-ink);
}








body {
  display: flex;
  flex-direction: column;
}

.studio-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 52px;
  background: var(--fc-ink);
  color: var(--fc-paper);
  position: relative;
  z-index: 2;
}
.studio-home {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 19px;
}
.studio-home img { display: block; flex: 0 0 auto; }
.studio-home span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-home:hover span, .studio-home:focus-visible span { text-decoration: underline; }

.studio-music:focus-visible {
  outline: var(--fc-shadow) solid var(--fc-blue);
  outline-offset: 2px;
}



.studio-music {
  



  margin-left: 2px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fc-paper);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.studio-music:hover { background: var(--fc-paperWash); }






.studio-music .mg-slash { display: none; }
.studio-music[aria-pressed="false"] .mg-slash { display: block; }
.studio-music[aria-pressed="false"] .mg-note { opacity: 0.45; }
.studio-music[aria-pressed="false"] { color: var(--fc-paperDim); }

.studio-back {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--fc-paperDim);
  text-decoration: none;
  font-size: 17px;
  padding: 10px 6px;
  white-space: nowrap;
}
.studio-back:hover, .studio-back:focus-visible { color: var(--fc-paper); text-decoration: underline; }
.studio-home:focus-visible, .studio-back:focus-visible {
  outline: 3px solid var(--fc-blue);
  outline-offset: 2px;
}



@media (max-width: 560px) {
  .studio-bar { height: 44px; gap: 8px; }
  .studio-home img { width: 30px; height: 30px; }
  







  .studio-home span { width: 0; overflow: hidden; }
  


  .studio-back { font-size: 16px; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}









html.framed .studio-bar { display: none; }
