:root {
  --gh-ink: #e8f2ff;
  --gh-muted: #91a3ba;
  --gh-bg: #0b1119;
  --gh-panel: #111b27;
  --gh-panel-2: #172334;
  --gh-line: #6f8299;
  --gh-string: #d4dfec;
  --gh-cyan: #83dcff;
  --gh-violet: #c58bfa;
  --gh-gold: #ffc229;
  --gh-border: rgba(157, 180, 207, 0.2);
}

body.gh-experience-active {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--gh-ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(64, 111, 160, 0.17), transparent 40rem),
    linear-gradient(180deg, #0c131d 0%, var(--gh-bg) 100%);
}

body.gh-experience-active app-root,
body.gh-experience-active .tuninggps-batch-dock {
  display: none !important;
}

.guitar-hack-app,
.guitar-hack-app * {
  box-sizing: border-box;
}

.guitar-hack-app {
  width: 100%;
  min-height: 100vh;
  color: var(--gh-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gh-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--gh-border);
  background: rgba(9, 15, 23, 0.88);
  backdrop-filter: blur(18px);
}

.gh-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gh-ink);
  text-decoration: none;
}

.gh-brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(131, 220, 255, 0.5);
  border-radius: 14px 14px 22px 22px;
  color: #09111c;
  background: linear-gradient(135deg, var(--gh-cyan), var(--gh-violet));
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.gh-brand b,
.gh-brand small {
  display: block;
}

.gh-brand b {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.gh-brand small {
  margin-top: 2px;
  color: var(--gh-muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gh-authoring,
.gh-workbench-launcher {
  border: 1px solid var(--gh-border);
  border-radius: 999px;
  color: #bdd0e4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.gh-authoring {
  padding: 10px 14px;
}

.gh-authoring:hover,
.gh-authoring:focus-visible {
  border-color: var(--gh-cyan);
  color: white;
}

.gh-experience {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 36px) 24px;
}

.gh-intro {
  max-width: 980px;
  margin: 0 auto 18px;
  text-align: center;
}

.gh-eyebrow,
.gh-focus-label {
  color: var(--gh-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gh-intro h1 {
  max-width: 980px;
  margin: 7px auto 7px;
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.gh-intro p {
  margin: 0;
  color: var(--gh-muted);
  font-size: clamp(15px, 1.5vw, 18px);
}

.gh-family-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: calc(100% - 20px);
  margin: 0 10px 8px;
  padding: 4px;
  border: 1px solid var(--gh-border);
  border-radius: 15px;
  background: rgba(7, 13, 21, 0.58);
}

.gh-family-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  color: var(--gh-muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.gh-family-tabs button.is-active {
  color: var(--gh-ink);
  background: #1b2a3d;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.gh-family-tabs button:focus-visible {
  outline: 2px solid var(--gh-gold);
  outline-offset: 1px;
}

.gh-chord-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(48px, 1fr));
  gap: 6px;
  width: 100%;
  margin: 0 auto 12px;
  padding: 0 10px;
}

.gh-chord-rail button {
  display: grid;
  min-width: 0;
  min-height: 58px;
  padding: 6px 2px;
  place-content: center;
  border: 1px solid var(--gh-border);
  border-radius: 14px;
  color: var(--gh-muted);
  background: rgba(17, 27, 39, 0.82);
  cursor: pointer;
  font: inherit;
  text-align: center;
  touch-action: manipulation;
}

.gh-chord-rail button b,
.gh-chord-rail button span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gh-chord-rail button b {
  color: #b9c9dc;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.gh-chord-rail button span {
  margin-top: 3px;
  color: var(--gh-ink);
  font-size: 15px;
  font-weight: 850;
}

.gh-chord-rail-seventh button b { font-size: 8px; letter-spacing: 0; }
.gh-chord-rail-seventh button span { font-size: 11px; letter-spacing: -0.03em; }

.gh-chord-rail button.is-active {
  border-color: rgba(224, 0, 239, 0.85);
  background: linear-gradient(180deg, rgba(224, 0, 239, 0.23), rgba(157, 110, 232, 0.1));
  box-shadow: 0 0 0 1px rgba(224, 0, 239, 0.18), 0 8px 24px rgba(70, 0, 94, 0.2);
}

.gh-chord-rail button.is-active b { color: var(--gh-cyan); }

.gh-chord-rail button:focus-visible {
  outline: 2px solid var(--gh-gold);
  outline-offset: 2px;
}

.gh-voicing-card {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--gh-border);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(24, 37, 54, 0.96), rgba(13, 23, 34, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.gh-card-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gh-border);
}

.gh-card-heading h2 {
  margin: 4px 0 2px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.gh-card-heading p {
  max-width: 470px;
  margin: 0;
  color: var(--gh-muted);
  font-size: 14px;
  line-height: 1.45;
}

.gh-tuning {
  flex: 0 0 auto;
  min-width: 122px;
  padding: 12px 14px;
  border: 1px solid var(--gh-border);
  border-radius: 16px;
  background: rgba(7, 13, 21, 0.48);
  text-align: right;
}

.gh-tuning span,
.gh-tuning b,
.gh-tuning small {
  display: block;
}

.gh-tuning span {
  color: var(--gh-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gh-tuning b {
  margin: 2px 0;
  font-size: 15px;
}

.gh-tuning small {
  color: #b7c7d9;
  font-size: 11px;
}

.gh-board-frame {
  width: min(580px, calc(100% - 20px));
  margin: 34px auto 24px;
}

.gh-tuning-strip {
  height: 72px;
  padding: 0 42px;
  border-radius: 12px 12px 0 0;
  background: #07090c;
}

.gh-tuning-notes {
  position: relative;
  height: 100%;
}

.gh-tuning-notes span {
  position: absolute;
  top: 50%;
  width: 46px;
  transform: translate(-50%, -50%);
  color: #e000ef;
  font-size: 28px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
}

.gh-nut-label {
  display: grid;
  height: 34px;
  margin: 0;
  place-items: center;
  color: var(--gh-muted);
  background: #172334;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
}

.gh-fretboard {
  position: relative;
  padding-left: 42px;
  padding-right: 42px;
}

.gh-board-grid {
  position: relative;
  height: min(760px, 76vh);
  min-height: 590px;
  border: 1px solid rgba(141, 164, 190, 0.3);
  border-radius: 2px 2px 12px 12px;
  background:
    linear-gradient(90deg, rgba(90, 120, 152, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(90, 120, 152, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #1a2636, #131e2b);
  background-size: 20% 100%, 100% 8.333%, 100% 100%;
  box-shadow: inset 0 0 50px rgba(4, 10, 18, 0.24);
}

.gh-string,
.gh-fret-line,
.gh-inlay,
.gh-marker-position,
.gh-muted {
  position: absolute;
}

/* Position the fixed six-string, twelve-fret surface without inline styles so
   the public app can keep a strict Content Security Policy. */
.gh-string-pos-0 { left: 0%; }
.gh-string-pos-1 { left: 20%; }
.gh-string-pos-2 { left: 40%; }
.gh-string-pos-3 { left: 60%; }
.gh-string-pos-4 { left: 80%; }
.gh-string-pos-5 { left: 100%; }

.gh-fret-pos-0 { top: 0%; }
.gh-fret-pos-1 { top: 8.333333%; }
.gh-fret-pos-2 { top: 16.666667%; }
.gh-fret-pos-3 { top: 25%; }
.gh-fret-pos-4 { top: 33.333333%; }
.gh-fret-pos-5 { top: 41.666667%; }
.gh-fret-pos-6 { top: 50%; }
.gh-fret-pos-7 { top: 58.333333%; }
.gh-fret-pos-8 { top: 66.666667%; }
.gh-fret-pos-9 { top: 75%; }
.gh-fret-pos-10 { top: 83.333333%; }
.gh-fret-pos-11 { top: 91.666667%; }
.gh-fret-pos-12 { top: 100%; }

.gh-fret-center-1 { top: 4.166667%; }
.gh-fret-center-2 { top: 12.5%; }
.gh-fret-center-3 { top: 20.833333%; }
.gh-fret-center-4 { top: 29.166667%; }
.gh-fret-center-5 { top: 37.5%; }
.gh-fret-center-6 { top: 45.833333%; }
.gh-fret-center-7 { top: 54.166667%; }
.gh-fret-center-8 { top: 62.5%; }
.gh-fret-center-9 { top: 70.833333%; }
.gh-fret-center-10 { top: 79.166667%; }
.gh-fret-center-11 { top: 87.5%; }
.gh-fret-center-12 { top: 95.833333%; }
.gh-double-left-35 { left: 35%; }
.gh-double-left-65 { left: 65%; }

.gh-string {
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #738397, var(--gh-string), #8798aa);
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.45);
}

.gh-string:nth-of-type(7),
.gh-string:nth-of-type(8) { width: 3.4px; }
.gh-string:nth-of-type(9),
.gh-string:nth-of-type(10) { width: 2.8px; }

.gh-fret-line {
  z-index: 1;
  right: 0;
  left: 0;
  height: 2px;
  transform: translateY(-50%);
  background: #6c7e92;
}

.gh-fret-line.gh-nut {
  z-index: 3;
  height: 7px;
  border-radius: 4px;
  background: #edf5ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.gh-inlay {
  z-index: 0;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 194, 41, 0.48);
}

.gh-inlay.gh-double {
  background: rgba(255, 194, 41, 0.58);
}

.gh-fret-numbers {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
}

.gh-fret-numbers-left { left: 0; }
.gh-fret-numbers-right { right: 0; }

.gh-fret-number {
  position: absolute;
  right: 0;
  left: 0;
  transform: translateY(-50%);
  color: #8194aa;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: center;
}

.gh-fret-number.gh-landmark {
  color: var(--gh-gold);
}

.gh-marker-position {
  z-index: 7;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
}

.gh-note-marker {
  position: relative;
  display: block;
  width: 70px;
  height: 70px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.34));
  transition: filter 160ms ease, transform 160ms ease;
}

.gh-board-frame.is-overview .gh-note-marker:not(.is-played) {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.gh-note-marker.is-played {
  filter:
    drop-shadow(0 0 4px rgba(224, 0, 239, 1))
    drop-shadow(0 0 10px rgba(157, 110, 232, 0.95))
    drop-shadow(0 0 18px rgba(160, 0, 212, 0.72));
}

.gh-note-marker.is-played .gh-marker-base {
  stroke: #e000ef;
  stroke-width: 3.2;
}

.gh-note-marker:focus-visible {
  outline: 3px solid var(--gh-gold) !important;
  outline-offset: 3px !important;
}

.gh-note-marker:active { transform: scale(0.96); }

.gh-note-marker svg {
  display: block;
  width: 70px;
  height: 70px;
}

.gh-marker-base {
  fill: #eef8ff;
  stroke: #9d6ee8;
  stroke-width: 2;
}
.gh-marker-divider {
  stroke: #332254;
  stroke-width: 1.8;
}
.gh-marker-finger-back { fill: #eef8ff; }
.gh-marker-interval,
.gh-marker-note {
  fill: #10131b;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.gh-marker-finger {
  fill: #a000d4;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 10.5px;
  font-weight: 950;
}

.gh-muted {
  z-index: 5;
  top: 0;
  transform: translate(-50%, -60%);
  color: #ff8193;
  font-size: 24px;
  font-weight: 500;
}

.gh-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 24px;
  color: var(--gh-muted);
  font-size: 12px;
}

.gh-legend-stack {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 1fr;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1.5px solid #9d6ee8;
  border-radius: 50%;
  color: #10131b;
  background: #eef8ff;
}

.gh-legend-stack i,
.gh-legend-stack em,
.gh-legend-stack b {
  display: grid;
  place-items: center;
  font-size: 7px;
  font-style: normal;
  line-height: 1;
}

.gh-legend-stack i { border-bottom: 1px solid #332254; }
.gh-legend-stack em {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #a000d4;
  background: #eef8ff;
  font-weight: 950;
}

.gh-controls {
  display: grid;
  grid-template-columns: 1fr minmax(170px, 1.5fr) 1fr 90px;
  gap: 10px;
}

.gh-controls button,
.gh-dialog-action {
  min-height: 58px;
  border: 1px solid var(--gh-border);
  border-radius: 16px;
  color: var(--gh-ink);
  background: #1a2839;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.gh-controls button:hover,
.gh-controls button:focus-visible,
.gh-dialog-action:hover,
.gh-dialog-action:focus-visible {
  border-color: rgba(131, 220, 255, 0.65);
  background: #20334a;
}

.gh-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #b8c9db !important;
}

.gh-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: transparent !important;
  color: #0a1420 !important;
  background: linear-gradient(135deg, var(--gh-cyan), #99bafa) !important;
  box-shadow: 0 10px 25px rgba(54, 151, 203, 0.18);
}

.gh-play.is-playing {
  transform: translateY(1px) scale(0.99);
  filter: brightness(1.1);
}

.gh-play-icon {
  display: grid;
  width: 28px;
  height: 28px;
  padding-left: 2px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #101b2a;
  font-size: 11px;
}

.gh-stop-icon {
  padding-left: 0;
  font-size: 9px;
}

.gh-groove {
  display: grid;
  min-height: 58px !important;
  padding: 5px !important;
  place-content: center;
  line-height: 1.05;
}

.gh-groove > span { font-size: 17px; }
.gh-groove b { font-size: 10px; }
.gh-groove small { color: var(--gh-gold); font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; }

.gh-progress {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--gh-muted);
  font-size: 10px;
}

.gh-progress > div {
  display: flex;
  gap: 5px;
}

.gh-progress i {
  width: 22px;
  height: 3px;
  border-radius: 4px;
  background: #35465b;
}

.gh-progress i.is-active { background: var(--gh-cyan); }
.gh-progress a { justify-self: end; color: #a8bed6; }

.gh-footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 6px 20px 44px;
  text-align: center;
}

.gh-footer span {
  color: var(--gh-gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gh-footer p {
  margin: 6px 0 0;
  color: #6f8298;
  font-size: 12px;
}

.gh-groove-dialog {
  width: min(500px, calc(100% - 32px));
  padding: 0;
  border: 1px solid rgba(131, 220, 255, 0.28);
  border-radius: 24px;
  color: var(--gh-ink);
  background: linear-gradient(155deg, #192739, #0e1723);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
}

.gh-groove-dialog::backdrop {
  background: rgba(2, 7, 12, 0.78);
  backdrop-filter: blur(7px);
}

.gh-groove-dialog form {
  position: relative;
  padding: 36px;
  text-align: center;
}

.gh-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #b9cada;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 24px;
}

.gh-dialog-icon {
  display: block;
  margin-bottom: 12px;
  font-size: 32px;
}

.gh-groove-dialog h2 {
  margin: 8px 0 12px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.gh-groove-dialog p {
  color: var(--gh-muted);
  line-height: 1.55;
}

.gh-groove-dialog form > div {
  display: grid;
  gap: 3px;
  margin: 22px 0;
  padding: 14px;
  border: 1px solid var(--gh-border);
  border-radius: 14px;
  background: rgba(7, 13, 21, 0.38);
}

.gh-groove-dialog form > div small { color: var(--gh-muted); }
.gh-dialog-action { width: 100%; }

.gh-workbench-launcher {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  padding: 12px 17px;
  color: #08111b;
  background: var(--gh-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

@media (min-width: 900px) {
  .gh-voicing-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(470px, 1.25fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(30px, 5vw, 68px);
    align-items: start;
  }

  .gh-card-heading {
    grid-column: 1;
    grid-row: 1;
    display: block;
    padding-bottom: 22px;
  }

  .gh-tuning {
    width: 100%;
    margin-top: 20px;
    text-align: left;
  }

  .gh-board-frame {
    grid-column: 2;
    grid-row: 1 / 5;
    width: min(580px, 100%);
    margin: 0 auto;
  }

  .gh-board-grid {
    height: min(760px, calc(100vh - 190px));
    min-height: 510px;
  }

  .gh-legend {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    margin: 22px 0;
  }

  .gh-controls {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: 0.7fr 1.5fr 0.7fr;
  }

  .gh-groove {
    grid-column: 1 / -1;
    grid-template-columns: auto auto auto;
    gap: 9px;
    min-height: 48px !important;
  }

  .gh-progress {
    grid-column: 1;
    grid-row: 4;
    grid-template-columns: 1fr auto;
    align-self: end;
  }

  .gh-progress a {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .gh-header { min-height: 66px; padding: 10px 14px; }
  .gh-brand small { display: none; }
  .gh-authoring { padding: 8px 10px; font-size: 10px; }
  .gh-experience { padding: 28px 10px 20px; }
  .gh-intro { margin-bottom: 22px; padding: 0 8px; }
  .gh-voicing-card { padding: 16px 12px 18px; border-radius: 20px; }
  .gh-card-heading { align-items: start; gap: 12px; }
  .gh-card-heading p { font-size: 12px; }
  .gh-tuning { min-width: 104px; padding: 9px 10px; }
  .gh-board-frame { width: min(410px, calc(100% - 36px)); margin-top: 28px; }
  .gh-tuning-strip { height: 58px; padding: 0 32px; }
  .gh-tuning-notes span { width: 38px; font-size: 23px; }
  .gh-fretboard { padding-right: 32px; padding-left: 32px; }
  .gh-fret-numbers { width: 28px; }
  .gh-board-grid { height: min(640px, 70vh); min-height: 500px; }
  .gh-note-marker,
  .gh-note-marker svg { width: 58px; height: 58px; }
  .gh-marker-position { width: 58px; height: 58px; }
  .gh-controls { grid-template-columns: 1fr 1.45fr 1fr; }
  .gh-groove { grid-column: 1 / -1; grid-template-columns: auto auto auto; gap: 8px; min-height: 48px !important; }
  .gh-step span { display: none; }
  .gh-progress { grid-template-columns: 1fr auto; }
  .gh-progress a { display: none; }
  .gh-groove-dialog form { padding: 32px 20px 22px; }
}

/* Guitar Hack is intentionally a phone-only experience. The desktop canvas
   centers the same iPhone-width surface instead of introducing another UI. */
body.gh-experience-active {
  display: flex;
  justify-content: center;
}

.guitar-hack-app {
  width: min(100%, 430px);
  margin: 0 auto;
  border-right: 1px solid rgba(157, 180, 207, 0.13);
  border-left: 1px solid rgba(157, 180, 207, 0.13);
  background: linear-gradient(180deg, #0c131d, #0a1119);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.38);
}

.gh-header {
  min-height: 62px;
  padding: 9px 12px;
}

.gh-brand { gap: 9px; }
.gh-brand-mark { width: 38px; height: 38px; border-radius: 12px 12px 18px 18px; font-size: 11px; }
.gh-brand b { font-size: 16px; }
.gh-brand small { display: none; }
.gh-authoring { padding: 8px 10px; font-size: 10px; }

.gh-experience {
  width: 100%;
  padding: 20px 0 18px;
}

.gh-intro {
  margin: 0 auto 16px;
  padding: 0 16px;
}

.gh-intro h1 {
  margin: 6px auto;
  font-size: clamp(25px, 7.2vw, 31px);
  line-height: 1.08;
}

.gh-intro p { font-size: 13px; line-height: 1.4; }

.gh-voicing-card {
  display: block;
  width: 100%;
  padding: 0 0 18px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.gh-card-heading {
  display: block;
  padding: 16px;
}

.gh-card-heading h2 { margin-top: 3px; font-size: 29px; }
.gh-card-heading p { max-width: none; font-size: 12px; }
.gh-tuning { display: none; }

.gh-board-frame {
  display: block;
  width: 100%;
  margin: 0;
}

.gh-tuning-strip {
  height: 62px;
  padding: 0 34px;
  border-radius: 0;
}

.gh-tuning-notes span { width: 38px; font-size: 25px; }
.gh-nut-label { height: 32px; }

.gh-fretboard {
  padding-right: 34px;
  padding-left: 34px;
}

.gh-fret-numbers { width: 30px; }
.gh-board-grid {
  height: min(670px, calc(100dvh - 122px));
  min-height: 420px;
}
.gh-fret-number { font-size: 11px; }

.gh-note-marker,
.gh-note-marker svg,
.gh-marker-position {
  width: 58px;
  height: 58px;
}

.gh-muted { font-size: 22px; }

.gh-legend {
  justify-content: flex-start;
  margin: 16px 14px 12px;
  font-size: 11px;
}

.gh-controls {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 8px;
  margin: 0 12px;
}

.gh-controls button { min-height: 56px; border-radius: 15px; }
.gh-step { gap: 5px; }
.gh-step span { display: inline; }

.gh-groove {
  grid-column: 1 / -1;
  grid-template-columns: auto auto auto;
  gap: 8px;
  min-height: 48px !important;
}

.gh-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 13px 14px 0;
}

.gh-progress a { display: none; }
.gh-footer { padding: 4px 18px max(32px, env(safe-area-inset-bottom)); }
.gh-groove-dialog form { padding: 32px 20px 22px; }

/* The fretboard is the app, so navigation follows the playing surface instead
   of pushing it below a landing-page header. */
.gh-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gh-header {
  position: static;
  min-height: 48px;
  padding: 6px 9px;
  gap: 8px;
}

.gh-brand { flex: 1 1 0; min-width: 0; gap: 7px; }
.gh-brand-mark { width: 32px; height: 32px; border-radius: 10px 10px 15px 15px; font-size: 9px; }
.gh-brand b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.gh-header-context {
  display: grid;
  flex: 0 1 auto;
  min-width: 78px;
  text-align: center;
  line-height: 1.05;
}

.gh-header-context small {
  color: var(--gh-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gh-header-context strong { margin-top: 2px; font-size: 14px; }
.gh-authoring { flex: 1 1 0; padding: 7px 8px; font-size: 9px; text-align: right; }
.gh-live-label {
  flex: 1 1 0;
  color: var(--gh-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.gh-experience { padding: 0; }
.gh-voicing-card { padding-bottom: 12px; }
.gh-board-frame { width: 100%; }
.gh-tuning-strip { height: 50px; }
.gh-nut-label { height: 24px; }

.gh-library-controls {
  padding: 14px 0 8px;
  border-top: 1px solid var(--gh-border);
}

.gh-library-controls > span {
  display: block;
  margin: 0 12px 7px;
  color: var(--gh-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gh-family-tabs { min-height: 34px; margin-bottom: 6px; }
.gh-family-tabs button { min-height: 30px; font-size: 10px; }
.gh-chord-rail { margin-bottom: 0; gap: 4px; }
.gh-chord-rail button { min-height: 48px; border-radius: 11px; }

/* Keep the complete playing surface and its transport in one browser-height
   view at normal zoom. The page library remains immediately below it. */
.gh-board-grid {
  height: min(560px, calc(100dvh - 330px));
  min-height: 340px;
}

.guitar-hack-app.is-book-reader .gh-board-grid {
  height: min(500px, calc(100dvh - 405px));
  min-height: 320px;
}

.gh-demo-link {
  flex: 1 1 0;
  color: var(--gh-cyan);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: right;
  text-decoration: none;
  text-transform: uppercase;
}

.gh-heart {
  display: grid;
  flex: 1 1 0;
  justify-items: end;
  padding: 0;
  border: 0;
  color: #b7c7da;
  background: transparent;
  cursor: pointer;
}

.gh-heart span { font-size: 25px; line-height: 0.8; }
.gh-heart small { margin-top: 4px; font-size: 8px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.gh-heart.is-favorite { color: #f27ad1; }
.gh-heart:focus-visible { outline: 2px solid var(--gh-gold) !important; outline-offset: 4px; }

.gh-pattern-picker {
  margin: 9px 12px 0;
  padding: 8px;
  border: 1px solid var(--gh-border);
  border-radius: 15px;
  background: rgba(7, 13, 21, 0.56);
}

.gh-pattern-picker > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 3px 6px;
}

.gh-pattern-picker > div:first-child small {
  color: var(--gh-muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gh-pattern-picker > div:first-child strong { color: var(--gh-cyan); font-size: 11px; }
.gh-pattern-picker > div:last-child { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }

.gh-pattern-picker button {
  min-width: 0;
  min-height: 42px;
  padding: 4px 2px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--gh-muted);
  background: #142132;
  cursor: pointer;
  font: inherit;
  line-height: 1.05;
}

.gh-pattern-picker button small,
.gh-pattern-picker button span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-pattern-picker button small { margin-bottom: 3px; color: #7f91a7; font-size: 6px; font-weight: 800; text-transform: uppercase; }
.gh-pattern-picker button span { font-size: 8px; font-weight: 850; }
.gh-pattern-picker button.is-active { border-color: #9d6ee8; color: #fff; background: rgba(157, 110, 232, 0.25); }
.gh-pattern-picker button:focus-visible { outline: 2px solid var(--gh-gold) !important; }

.gh-favorite-shelf {
  margin: 10px 10px 2px;
  padding: 10px;
  border: 1px solid var(--gh-border);
  border-radius: 14px;
  background: rgba(7, 13, 21, 0.42);
}

.gh-favorite-shelf > strong {
  display: block;
  margin-bottom: 7px;
  color: #f2a0dc;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gh-favorite-shelf > div { display: flex; gap: 6px; overflow-x: auto; }
.gh-favorite-shelf > div > span { color: var(--gh-muted); font-size: 10px; }
.gh-favorite-shelf button { min-width: 58px; padding: 6px; border: 1px solid rgba(242, 122, 209, 0.35); border-radius: 9px; color: var(--gh-ink); background: #172334; cursor: pointer; font: inherit; }
.gh-favorite-shelf button b,
.gh-favorite-shelf button span { display: block; }
.gh-favorite-shelf button b { color: #f2a0dc; font-size: 8px; }
.gh-favorite-shelf button span { margin-top: 2px; font-size: 11px; font-weight: 850; }

/* Online product, checkout, and email-login walkthrough. This is intentionally
   one focused path rather than an ecommerce catalog. */
.guitar-hack-app.gh-demo-shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  border: 0;
  background:
    radial-gradient(circle at 75% 18%, rgba(157, 110, 232, 0.18), transparent 28rem),
    radial-gradient(circle at 15% 75%, rgba(131, 220, 255, 0.1), transparent 30rem),
    #0a1119;
  box-shadow: none;
}

.gh-demo-shell .gh-header { position: relative; width: 100%; padding-right: clamp(16px, 4vw, 56px); padding-left: clamp(16px, 4vw, 56px); }
.gh-demo-step { color: var(--gh-muted); font-size: 9px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.gh-demo-stage {
  display: grid;
  min-height: calc(100dvh - 48px);
  padding: clamp(24px, 5vw, 72px);
  place-items: center;
}

.gh-book-offer {
  grid-template-columns: minmax(260px, 430px) minmax(320px, 570px);
  gap: clamp(38px, 7vw, 100px);
  justify-content: center;
}

.gh-book-cover {
  position: relative;
  display: flex;
  width: min(100%, 390px);
  aspect-ratio: 0.73;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(131, 220, 255, 0.3);
  border-radius: 5px 22px 22px 5px;
  background:
    linear-gradient(155deg, transparent 48%, rgba(224, 0, 239, 0.2) 48.5%, transparent 49%),
    repeating-linear-gradient(90deg, rgba(131, 220, 255, 0.035) 0 1px, transparent 1px 32px),
    linear-gradient(145deg, #16263b, #0b1420 72%);
  box-shadow: -10px 14px 0 #070c13, 0 35px 80px rgba(0, 0, 0, 0.48);
}

.gh-book-cover::after { position: absolute; right: -26%; bottom: 7%; width: 78%; aspect-ratio: 1; border: 2px solid #9d6ee8; border-radius: 50%; box-shadow: 0 0 0 24px rgba(131, 220, 255, 0.07), 0 0 0 54px rgba(157, 110, 232, 0.05); content: ''; }
.gh-book-cover small { color: var(--gh-cyan); font-size: 12px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.gh-book-cover strong { position: relative; z-index: 1; max-width: 90%; font-size: clamp(50px, 7vw, 82px); letter-spacing: -0.07em; line-height: 0.84; }
.gh-book-cover b { position: relative; z-index: 1; max-width: 280px; color: #d5e3f3; font-size: clamp(20px, 3vw, 34px); letter-spacing: -0.04em; line-height: 1.02; }
.gh-book-cover span { position: relative; z-index: 1; color: var(--gh-gold); font-size: 11px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }

.gh-offer-copy { max-width: 560px; }
.gh-offer-copy .gh-eyebrow { margin-top: 14px; }
.gh-demo-badge { display: inline-flex; padding: 6px 9px; border: 1px solid rgba(131, 220, 255, 0.28); border-radius: 999px; color: var(--gh-cyan); background: rgba(131, 220, 255, 0.07); font-size: 8px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.gh-offer-copy h1,
.gh-checkout-heading h1,
.gh-login-card h1 { margin: 12px 0; font-size: clamp(34px, 5vw, 62px); letter-spacing: -0.06em; line-height: 0.98; }
.gh-offer-copy > p,
.gh-checkout-heading p,
.gh-login-card > p { color: #9db0c7; font-size: clamp(14px, 1.7vw, 18px); line-height: 1.55; }
.gh-offer-copy ul { display: grid; gap: 8px; margin: 24px 0; padding: 0; color: #c7d6e7; list-style: none; }
.gh-offer-copy li::before { margin-right: 9px; color: var(--gh-violet); content: '✓'; font-weight: 900; }
.gh-offer-action { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.gh-offer-action > div { display: grid; }
.gh-offer-action del { color: #71849a; font-size: 11px; }
.gh-offer-action strong { font-size: 28px; }
.gh-offer-action small { color: var(--gh-muted); font-size: 8px; text-transform: uppercase; }

.gh-primary-action {
  display: inline-flex;
  min-height: 52px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  color: #07111b;
  background: linear-gradient(135deg, var(--gh-cyan), #b18df7);
  box-shadow: 0 12px 28px rgba(80, 166, 220, 0.2);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.gh-primary-action:hover { filter: brightness(1.08); }
.gh-primary-action:disabled { cursor: not-allowed; filter: grayscale(0.7); opacity: 0.45; }
.gh-demo-disclosure { display: block; margin-top: 16px; color: #74879d; font-size: 9px; line-height: 1.4; }

.gh-checkout-card,
.gh-login-card {
  width: min(100%, 560px);
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--gh-border);
  border-radius: 25px;
  background: linear-gradient(155deg, rgba(24, 37, 54, 0.98), rgba(13, 23, 34, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}
.gh-checkout-heading > a,
.gh-login-card > a { display: block; margin-bottom: 18px; color: #a9bed7; font-size: 10px; text-decoration: none; }
.gh-checkout-heading h1,
.gh-login-card h1 { font-size: clamp(30px, 5vw, 46px); }
.gh-checkout-card form,
.gh-login-card form { display: grid; gap: 18px; margin-top: 26px; }
.gh-checkout-card label,
.gh-login-card label { display: grid; gap: 7px; color: #d7e4f2; font-size: 11px; font-weight: 850; }
.gh-checkout-card label > small { color: var(--gh-muted); font-size: 8px; font-weight: 500; }
.gh-checkout-card input,
.gh-login-card input { width: 100%; height: 48px; padding: 0 13px; border: 1px solid var(--gh-border); border-radius: 12px; color: #fff; background: #0c1622; font: inherit; font-size: 15px; }
.gh-checkout-card input:focus,
.gh-login-card input:focus { border-color: var(--gh-cyan); outline: 2px solid rgba(131, 220, 255, 0.18) !important; }
.gh-promo-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.gh-promo-row button { padding: 0 16px; border: 1px solid rgba(157, 110, 232, 0.5); border-radius: 12px; color: #eadcff; background: rgba(157, 110, 232, 0.14); cursor: pointer; font: inherit; font-size: 10px; font-weight: 850; }
[data-promo-message].is-success { color: #78e2a9 !important; }
[data-login-message].is-error { color: #ff91a0; }
.gh-price-summary { display: grid; gap: 9px; padding: 16px; border: 1px solid var(--gh-border); border-radius: 14px; background: rgba(7, 13, 21, 0.4); }
.gh-price-summary > div { display: flex; justify-content: space-between; color: var(--gh-muted); font-size: 11px; }
.gh-price-summary [data-discount-row] { display: none; color: #78e2a9; }
.gh-price-summary [data-discount-row].is-applied { display: flex; }
.gh-price-summary .gh-total { margin-top: 5px; padding-top: 11px; border-top: 1px solid var(--gh-border); color: var(--gh-ink); font-size: 16px; }

.gh-demo-dialog {
  width: min(500px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(131, 220, 255, 0.28);
  border-radius: 24px;
  color: var(--gh-ink);
  background: #111d2a;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.68);
}
.gh-demo-dialog::backdrop { background: rgba(1, 5, 10, 0.82); backdrop-filter: blur(8px); }
.gh-demo-dialog > div,
.gh-demo-dialog > article { padding: 34px; text-align: center; }
.gh-demo-dialog h2 { margin: 10px 0; font-size: 31px; letter-spacing: -0.04em; }
.gh-demo-dialog p { color: #b8c8da; line-height: 1.5; }
.gh-demo-dialog > div > small,
.gh-email-dialog > article > small { display: block; margin: 14px 0 22px; color: var(--gh-muted); }
.gh-success-mark { display: grid; width: 52px; height: 52px; margin: 0 auto 15px; place-items: center; border-radius: 50%; color: #092116; background: #78e2a9; font-size: 25px; font-weight: 900; }
.gh-demo-dialog .gh-primary-action { width: 100%; }
.gh-email-dialog article { text-align: left; }
.gh-email-dialog article > header { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--gh-border); }
.gh-email-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: #07111b; background: var(--gh-cyan); font-size: 10px; font-weight: 900; }
.gh-email-dialog header div { display: grid; }
.gh-email-dialog header small,
.gh-email-dialog article > p:first-of-type { color: var(--gh-muted); font-size: 9px; }
.gh-email-dialog h2 { font-size: 27px; }

@media (max-width: 760px) {
  .gh-book-offer { grid-template-columns: 1fr; }
  .gh-book-cover { width: min(78vw, 340px); margin: 0 auto; }
  .gh-demo-stage { padding: 28px 18px 40px; }
  .gh-offer-action { align-items: stretch; flex-direction: column; }
  .gh-offer-action .gh-primary-action { width: 100%; }
}

@media (max-height: 850px) {
  .gh-board-grid { min-height: 300px; }
  .guitar-hack-app.is-book-reader .gh-board-grid { min-height: 280px; }
  .gh-tuning-strip { height: 44px; }
  .gh-nut-label { height: 20px; }
  .gh-note-marker,
  .gh-note-marker svg,
  .gh-marker-position { width: 50px; height: 50px; }
  .gh-legend { margin-top: 8px; margin-bottom: 8px; }
  .gh-controls button { min-height: 50px; }
  .gh-groove { min-height: 42px !important; }
  .gh-pattern-picker { margin-top: 7px; padding: 6px; }
  .gh-pattern-picker button { min-height: 36px; }
  .gh-progress { margin-top: 8px; }
  .gh-board-grid { height: min(520px, calc(100dvh - 300px)); }
  .guitar-hack-app.is-book-reader .gh-board-grid { height: min(470px, calc(100dvh - 355px)); }
}

@media (max-width: 380px) {
  .gh-brand b { font-size: 12px; }
  .gh-authoring { font-size: 8px; }
  .gh-tuning-strip { height: 46px; }
  .gh-tuning-notes span { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .gh-play,
  .gh-note-marker { transition: none; }
}

/* Overview markers must fit inside one fret row. Single-voicing markers stay
   larger because there is no collision field to resolve. */
.gh-board-grid { container-type: size; }

.gh-board-frame.is-overview .gh-marker-position,
.gh-board-frame.is-overview .gh-note-marker,
.gh-board-frame.is-overview .gh-note-marker svg {
  width: clamp(38px, calc(100cqh / 12 - 2px), 54px);
  height: clamp(38px, calc(100cqh / 12 - 2px), 54px);
}

.gh-board-frame.is-overview .gh-note-marker.is-played {
  filter:
    drop-shadow(0 0 3px rgba(224, 0, 239, 1))
    drop-shadow(0 0 7px rgba(157, 110, 232, 0.88));
}

.gh-player-overlay {
  position: fixed;
  z-index: 60;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 48px;
  gap: 10px;
  width: min(404px, calc(100% - 24px));
  padding: 10px;
  align-items: center;
  border: 1px solid rgba(131, 220, 255, 0.42);
  border-radius: 18px;
  color: var(--gh-ink);
  background: rgba(15, 27, 41, 0.94);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.58), 0 0 24px rgba(131, 220, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  visibility: hidden;
  backdrop-filter: blur(16px);
}

.guitar-hack-app.is-playing .gh-player-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.gh-player-art {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px 13px 19px 19px;
  color: #08111b;
  background: linear-gradient(135deg, var(--gh-cyan), var(--gh-violet));
  font-size: 10px;
  font-weight: 950;
}

.gh-player-overlay > div { display: grid; min-width: 0; gap: 2px; }
.gh-player-overlay > div small,
.gh-player-overlay > div span,
.gh-player-overlay > div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-player-overlay > div small { color: var(--gh-cyan); font-size: 7px; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.gh-player-overlay > div strong { font-size: 13px; letter-spacing: -0.02em; }
.gh-player-overlay > div span { color: var(--gh-muted); font-size: 9px; }
.gh-player-overlay > button {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 4px;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  background: #24364a;
  cursor: pointer;
  font: inherit;
}
.gh-player-overlay > button b { font-size: 10px; }
.gh-player-overlay > button small { margin-top: 3px; color: #b9c9da; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.gh-player-overlay > button:focus-visible { outline: 2px solid var(--gh-gold) !important; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .gh-player-overlay { transition: none; }
}

/* Presentation mode gives the fretboard the whole display while keeping the
   transport and playing-pattern choices docked directly beneath it. */
.gh-player-dock { display: contents; }

.gh-fullscreen-toggle {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 38px;
  padding: 2px;
  place-content: center;
  border: 1px solid var(--gh-border);
  border-radius: 11px;
  color: #dce9f7;
  background: #162334;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.gh-fullscreen-toggle span { font-size: 19px; }
.gh-fullscreen-toggle small {
  margin-top: 2px;
  color: var(--gh-cyan);
  font-size: 6px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.gh-fullscreen-toggle:focus-visible { outline: 2px solid var(--gh-gold) !important; outline-offset: 2px; }

body.gh-fullscreen-active { overflow: hidden !important; }

.guitar-hack-app.is-fullscreen,
.guitar-hack-app:fullscreen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  background: #0b131e;
  box-shadow: none;
}

.guitar-hack-app.is-fullscreen .gh-header {
  height: 50px;
  min-height: 50px;
  padding: 5px 10px;
}

.guitar-hack-app.is-fullscreen .gh-experience {
  height: calc(100dvh - 50px);
  min-height: 0;
  overflow: hidden;
}

.guitar-hack-app.is-fullscreen .gh-voicing-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(820px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: #0f1a27;
}

.guitar-hack-app.is-fullscreen .gh-board-frame {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-rows: 48px 22px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.guitar-hack-app.is-fullscreen .gh-tuning-strip { height: 48px; }
.guitar-hack-app.is-fullscreen .gh-nut-label { height: 22px; }
.guitar-hack-app.is-fullscreen .gh-fretboard { height: 100%; min-height: 0; }
.guitar-hack-app.is-fullscreen .gh-board-grid { height: 100%; min-height: 0; }

.guitar-hack-app.is-fullscreen .gh-board-frame.is-overview .gh-marker-position,
.guitar-hack-app.is-fullscreen .gh-board-frame.is-overview .gh-note-marker,
.guitar-hack-app.is-fullscreen .gh-board-frame.is-overview .gh-note-marker svg {
  width: clamp(42px, calc(100cqh / 12 - 4px), 70px);
  height: clamp(42px, calc(100cqh / 12 - 4px), 70px);
}

.guitar-hack-app.is-fullscreen .gh-legend,
.guitar-hack-app.is-fullscreen .gh-progress,
.guitar-hack-app.is-fullscreen .gh-library-controls,
.guitar-hack-app.is-fullscreen .gh-footer { display: none; }

.guitar-hack-app.is-fullscreen .gh-player-dock {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: minmax(320px, 0.9fr) minmax(390px, 1.1fr);
  gap: 8px;
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(131, 220, 255, 0.2);
  background: rgba(7, 13, 21, 0.96);
}

.guitar-hack-app.is-fullscreen .gh-controls {
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: 1fr 1.4fr 1fr 74px;
  gap: 7px;
  margin: 0;
}

.guitar-hack-app.is-fullscreen .gh-controls button,
.guitar-hack-app.is-fullscreen .gh-groove { min-height: 60px !important; }
.guitar-hack-app.is-fullscreen .gh-groove { grid-column: auto; }
.guitar-hack-app.is-fullscreen .gh-pattern-picker { margin: 0; padding: 7px; }
.guitar-hack-app.is-fullscreen .gh-pattern-picker button { min-height: 40px; }

.guitar-hack-app.is-fullscreen .gh-player-overlay {
  bottom: max(88px, calc(80px + env(safe-area-inset-bottom)));
  width: min(520px, calc(100% - 24px));
}

@media (max-width: 720px) {
  .guitar-hack-app.is-fullscreen .gh-player-dock {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
  }

  .guitar-hack-app.is-fullscreen .gh-controls {
    grid-template-columns: 1fr 1.4fr 1fr;
    margin: 0;
  }

  .guitar-hack-app.is-fullscreen .gh-groove {
    grid-column: 1 / -1;
    min-height: 38px !important;
    grid-template-columns: auto auto auto;
  }

  .guitar-hack-app.is-fullscreen .gh-controls button { min-height: 48px !important; }
  .guitar-hack-app.is-fullscreen .gh-pattern-picker { padding: 5px; }
  .guitar-hack-app.is-fullscreen .gh-pattern-picker button { min-height: 34px; }
  .guitar-hack-app.is-fullscreen .gh-player-overlay { bottom: max(150px, calc(144px + env(safe-area-inset-bottom))); }
}
