:root {
  --sky: #4ec0ca;
  --ink: #543847;
  color-scheme: light;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--sky);
  overscroll-behavior: none;
  /* The whole page is one big button: no scrolling, double-tap zooming or text selection. */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#game {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  image-rendering: pixelated;
}

/* Its top-right corner is placed by the game at the top-right corner of the play column. */
#sound {
  --gap: clamp(4px, calc(var(--art-scale, 1) * 6px), 10px);
  /* Sized with the play column, so it never covers more of a small or embedded game than it must. */
  --size: clamp(10px, calc(var(--art-scale, 1) * 30px), 44px);
  position: fixed;
  visibility: hidden;
  transform: translate(calc(-100% - var(--gap)), var(--gap));
  box-sizing: border-box;
  width: var(--size);
  height: var(--size);
  padding: 0;
  border: 0;
  border-radius: 22%;
  background: #f1ecb4;
  box-shadow: 0 0 0 2px var(--ink), inset 0 2px 0 #fbf8dc, inset 0 -2px 0 #d5cc88;
  color: var(--ink);
  cursor: pointer;
}

#sound svg {
  display: block;
  width: 66%;
  height: 66%;
  margin: auto;
}

#sound .off,
#sound[aria-pressed="true"] .on {
  display: none;
}

#sound[aria-pressed="true"] .off {
  display: block;
}

#sound:active {
  transform: translate(calc(-100% - var(--gap)), calc(var(--gap) + 1px));
  box-shadow: 0 0 0 2px var(--ink), inset 0 2px 0 #d5cc88;
}

#sound:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

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