:root {
  color-scheme: dark;
  background: #181714;
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { background: #181714; }
.stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 46%, #35312b 0%, #211f1b 49%, #151513 100%);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}
.ambient {
  position: absolute;
  width: 28%;
  height: 40%;
  border-radius: 50%;
  background: #a76e3f;
  opacity: .08;
  filter: blur(70px);
  pointer-events: none;
}
.ambient-left { left: 3%; top: 21%; }
.ambient-right { right: 3%; bottom: 17%; }
.instrument {
  position: relative;
  z-index: 1;
  width: min(91%, 1200px);
  height: min(64%, 340px);
  min-height: 135px;
  padding: clamp(12px, 2.5vh, 23px) clamp(10px, 1.5vw, 18px);
  border: 1px solid #6c5a48;
  border-radius: clamp(20px, 3vw, 36px);
  background: linear-gradient(180deg, #a18b70 0%, #6f5c49 2%, #302a24 8%, #191916 18%, #171713 83%, #4e4033 97%, #8a735a 100%);
  box-shadow: 0 3px 4px #0009, 0 22px 65px #000a, inset 0 1px 2px #e4c9a477, inset 0 -2px 3px #000;
  touch-action: none;
}
.top-edge, .bottom-edge {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #dcc09a66 15%, #c3a58066 85%, transparent);
  pointer-events: none;
}
.top-edge { top: 7px; }
.bottom-edge { bottom: 7px; opacity: .5; }
.holes {
  display: flex;
  height: 100%;
  padding: 2px;
  gap: clamp(3px, .55vw, 8px);
  border-radius: 19px;
  background: #0c0c0a;
  box-shadow: inset 0 2px 6px #000, 0 1px 0 #bca27b33;
  pointer-events: none;
}
.hole {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: clamp(7px, 1.2vw, 15px);
  background: linear-gradient(90deg, #27251f 0%, #3d372c 15%, #28261f 48%, #171814 85%, #11120f 100%);
  box-shadow: inset 1px 1px 2px #b6a27a20, inset -2px -3px 6px #0009;
  transition: background .16s, box-shadow .16s;
}
.hole::before {
  content: "";
  position: absolute;
  inset: 7% 26%;
  border-radius: 50%;
  background: linear-gradient(180deg, #bba17814, transparent 38%, #0003);
  filter: blur(5px);
}
.hole i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b6a281;
  opacity: .35;
  transform: translate(-50%, -50%);
  transition: opacity .16s, box-shadow .16s, background .16s;
}
.hole.active {
  background: linear-gradient(90deg, #3c3022, #866044 20%, #5d4330 55%, #2d251c);
  box-shadow: inset 0 0 24px #dca06c3b, 0 0 22px #d8995b40;
}
.hole.active i { background: #ffd2a1; opacity: 1; box-shadow: 0 0 12px 4px #e8a56a88; }
.instrument.audio-error .hole i { background: #ed6a58; opacity: 1; box-shadow: 0 0 8px #ed6a58; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.footer-mark {
  position: absolute;
  bottom: 6%;
  display: flex;
  gap: 5px;
  opacity: .33;
}
.footer-mark span { width: 3px; height: 3px; border-radius: 50%; background: #c6b392; }
.footer-mark span:nth-child(2) { opacity: .5; }
.footer-mark span:nth-child(3) { opacity: .25; }
@media (orientation: portrait) {
  .stage {
    inset: auto;
    top: 0;
    left: 0;
    width: 100vh;
    width: 100dvh;
    height: 100vw;
    transform-origin: top left;
    transform: rotate(90deg) translateY(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hole, .hole i { transition: none; }
}
