* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7eedb;
  color: #36332e;
  font-family: system-ui, sans-serif;
}
main {
  max-width: 900px;
  margin: auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px clamp(6px, 2vw, 24px);
}
.toolbar {
  width: min(100%, 660px);
  display: flex;
  justify-content: space-between;
}
.key {
  width: 54px;
  height: 54px;
  border: 2px solid #574a3c;
  border-radius: 50%;
  color: #443b32;
  background: #fff9e9;
  box-shadow: 0 3px 0 #574a3c;
  display: inline-grid;
  place-items: center;
  padding: 10px;
  cursor: pointer;
  touch-action: manipulation;
}
.key svg {
  width: 100%;
  height: 100%;
}
.key:active {
  transform: translateY(2px);
  box-shadow: none;
}
.key:focus-visible {
  outline: 4px solid #186a91;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
#stage {
  width: min(100%, 700px, max(350px, calc((100svh - 150px) * 1.15)));
  height: auto;
  overflow: visible;
  user-select: none;
  touch-action: manipulation;
}
#stage [role="button"] {
  cursor: pointer;
  outline: none;
}
#stage [role="button"]:focus-visible {
  outline: 4px dashed #17668e;
  outline-offset: 1px;
}
.controls {
  min-height: 61px;
  display: flex;
  justify-content: center;
  gap: 24px;
}
.primary {
  background: #ffda84;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hint {
  animation: hint 1.2s ease-in-out infinite alternate;
}
@keyframes hint {
  to {
    filter: drop-shadow(0 0 6px #f48d35);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hint {
    animation: none;
    filter: drop-shadow(0 0 4px #f48d35);
  }
}
