:root {
  --bg: #0d0e10;
  --card: #151619;
  --ink: #f3f2ee;
  --soft: rgba(243, 242, 238, 0.6);
  --faint: rgba(243, 242, 238, 0.2);
  --line: rgba(243, 242, 238, 0.1);
  --accent: #5fe3b3;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(120% 80% at 50% 0%, #17181c 0%, var(--bg) 60%);
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}

.cc { position: relative; width: min(324px, 100%); padding: 14px; border-radius: 26px; background: linear-gradient(180deg, #1b1c20, var(--card)); box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 50px -30px rgba(0, 0, 0, 0.9); }

.cc__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px; }
.cc__name { min-width: 0; display: grid; }
.cc__name b { font-size: 16px; line-height: 21px; font-weight: 740; font-stretch: 108%; letter-spacing: -0.012em; }
.cc__name span { font-size: 11.500px; line-height: 15px; font-weight: 540; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc__chord { flex: none; display: grid; justify-items: end; }
.cc__roll { display: block; height: 26px; overflow: hidden; font-size: 24px; line-height: 26px; font-weight: 770; letter-spacing: -0.02em; color: var(--accent); white-space: nowrap; }
.cc__roll span { display: block; }
.cc__roll--sub { height: 15px; font-size: 11.500px; line-height: 15px; font-weight: 560; letter-spacing: 0; color: var(--soft); }

/* the whole fretboard is one button: a tap strums */
.cc__board { display: block; width: 100%; margin-top: 6px; padding: 0; border: 0; border-radius: 16px; background: transparent; color: inherit; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cc__board:focus-visible, .cc__pick:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.cc__board svg { display: block; width: 100%; height: auto; overflow: visible; }
.cc__fret { fill: none; stroke: var(--faint); stroke-width: 1.300; stroke-linecap: round; }
.cc__nut { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.cc__string { fill: none; stroke: rgba(243, 242, 238, 0.62); stroke-linecap: round; }
.cc__open { fill: none; stroke: var(--ink); stroke-width: 1.600; }
.cc__mute { fill: none; stroke: var(--soft); stroke-width: 1.600; stroke-linecap: round; }
.cc__dot rect { fill: var(--accent); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }
.cc__dot text { fill: #06281c; font-size: 11.500px; font-weight: 760; text-anchor: middle; }

.cc__picks { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 6px; padding: 4px; border-radius: 15px; background: rgba(243, 242, 238, 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.cc__pill { position: absolute; left: 0; top: 4px; bottom: 4px; width: 25%; border-radius: 11px; background: #2b2d33; box-shadow: inset 0 0 0 1px rgba(243, 242, 238, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 10px -6px rgba(0, 0, 0, 0.8); }
.cc__pick { position: relative; z-index: 1; height: 36px; border: 0; border-radius: 11px; background: transparent; color: var(--soft); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; outline: none; transition: color 0.25s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cc__pick[aria-pressed="true"] { color: var(--ink); }
@media (hover: hover) { .cc__pick[aria-pressed="false"]:hover { color: var(--ink); } }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #f3f2ee; stroke: #000000; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); z-index: 6; }
