/* Debug-only visual treatments for the song page. The score remains the same SVG. */
.song-ink-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.site-score-zoomed {
  overflow: auto;
}
@font-face {
  font-family: 'Shantell Sans';
  src: url('/static/fonts/ShantellSans-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Finale Broadway Text';
  src: url('/static/fonts/FinaleBroadwayText.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Petaluma Script';
  src: url('/static/fonts/PetalumaScript.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
.song-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.song-breadcrumb-trail {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.song-debug-pickers {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.song-style-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.song-style-picker small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.65;
}
.song-style-picker select {
  min-height: 32px;
  padding: 4px 24px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.song-brush-source {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}

body[data-song-style='painted'] {
  --ink: #302e37;
  --muted: #67636b;
  --green: #22675d;
  --line: #ded9d1;
  --paper: #fffdfa;
  --style-accent: #ce6652;
  --style-accent-soft: #f3e7df;
  background: #f6f3ee;
}
body[data-song-style='midnight'] {
  --ink: #f5edf0;
  --muted: #c2b8c3;
  --green: #efb578;
  --line: #62596b;
  --paper: #302d3a;
  --style-accent: #e9937e;
  --style-accent-soft: #514653;
  background: #252432;
}

body[data-song-style][data-song-notation='handwritten'] {
  font: 450 15px/1.5 'Source Sans 3', 'DM Sans', sans-serif;
}
body[data-song-style][data-song-notation='handwritten'] .site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
body[data-song-style][data-song-notation='handwritten'] .site-header .brand,
body[data-song-style][data-song-notation='handwritten'] .header-library {
  color: var(--ink);
  font-family: Manrope, 'Source Sans 3', sans-serif;
  font-weight: 800;
}
body[data-song-style='midnight'] .header-search-field,
body[data-song-style='midnight'] #header-results {
  background: #fff9ee;
  color: #30283b;
}
body[data-song-style='midnight'] .header-search input {
  color: #30283b;
}
body[data-song-style='midnight'] .song-style-picker select {
  background: #fff9ee;
  color: #30283b;
}
body[data-song-style='midnight'] .hero-listen select {
  background: #fff9ee;
  color: #30283b;
}
body[data-song-style][data-song-notation='handwritten'] .song-style-picker small {
  color: var(--style-accent);
}
body[data-song-style][data-song-notation='handwritten'] main {
  padding-top: 25px;
}
body[data-song-style][data-song-notation='handwritten'] .song-breadcrumb {
  margin-bottom: 5px;
  font-weight: 500;
}
body[data-song-style][data-song-notation='handwritten'] .hero {
  position: relative;
  isolation: isolate;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 8px 24px #372a3210;
}
body[data-song-style][data-song-notation='handwritten'] .hero .artwork-cover {
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  transform: none;
  box-shadow: 0 3px 10px #30263520;
}
body[data-song-style][data-song-notation='handwritten'] .hero .identity::before {
  content: 'PLAY ALONG';
  display: block;
  margin: -3px 0 3px;
  color: var(--style-accent);
  font: 800 10px/1.4 'Source Sans 3', sans-serif;
  letter-spacing: 0.16em;
}
body[data-song-style][data-song-notation='handwritten'] .hero .identity h1 {
  margin: 0 0 5px;
  color: var(--ink);
  font: 800 clamp(30px, 3.4vw, 46px)/1.12 Manrope, 'Source Sans 3', sans-serif;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
body[data-song-style][data-song-notation='handwritten'] .identity #artist {
  margin-top: 6px;
  color: var(--muted);
  font: 600 17px/1.4 'Source Sans 3', sans-serif;
}
body[data-song-style][data-song-notation='handwritten'] #artist a {
  color: inherit;
}
body[data-song-style][data-song-notation='handwritten'] .song-fact {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--style-accent-soft);
}
body[data-song-style][data-song-notation='handwritten'] .fact-label,
body[data-song-style][data-song-notation='handwritten'] .fact-value {
  color: var(--ink);
  font-family: 'Source Sans 3', sans-serif;
}
body[data-song-style][data-song-notation='handwritten'] .song-actions button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  box-shadow: 0 2px 7px #30263514;
  font: 700 13px 'Source Sans 3', sans-serif;
}
body[data-song-style][data-song-notation='handwritten'] .sheet {
  --ink: #352d3c;
  --muted: #766e75;
  --green: #087b77;
  --line: #e4d4bc;
  --paper: #fffaf0;
  border: 2px solid #4a344c;
  border-radius: 18px;
  background: #fffaf0;
  color: var(--ink);
  box-shadow: 6px 7px 0 var(--style-accent-soft);
}
body[data-song-style='midnight'] .sheet {
  box-shadow: 6px 7px 0 #b8798b;
}
body[data-song-style][data-song-notation='handwritten'] .sheet-tools {
  background: #fbe7cf;
  border-bottom: 2px solid #4a344c;
}
body[data-song-style='midnight'] .sheet-tools {
  background: #ead9e0;
}
body[data-song-style][data-song-notation='handwritten'] .sheet-tools .tabs button {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  color: #685664;
}
body[data-song-style][data-song-notation='handwritten'] .sheet-tools .tabs button.active {
  border-bottom: 4px solid var(--style-accent);
  color: #322637;
}
body[data-song-style][data-song-notation='handwritten'] .sheet .sections {
  gap: 8px;
  padding: 11px 15px;
  background: #fff4df;
}
body[data-song-style='midnight'] .sheet .sections {
  background: #f7e9e1;
}
body[data-song-style][data-song-notation='handwritten'] .sheet .sections button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #bca894;
  border-radius: 20px 18px 16px 19px;
  background: #fffaf0;
  color: #5e4d5b;
  font: 700 12px 'Source Sans 3', sans-serif;
  box-shadow: 2px 2px 0 #e6cdb2;
}
body[data-song-style][data-song-notation='handwritten'] .sheet .sections button.active {
  border-color: #4c3446;
  background: var(--section-color, #ffdcb9);
  color: #332736;
  box-shadow: 3px 3px 0 #4c3446;
}
body[data-song-style][data-song-notation='handwritten'] .sheet .sections button.active::before {
  bottom: -4px;
  height: 4px;
  border-radius: 8px;
  background: var(--style-accent);
}
body[data-song-style][data-song-notation='handwritten'] #melody {
  background: #f7e9d4;
}
body[data-song-style='midnight'] #melody {
  background: #ebdce0;
}
body[data-song-style][data-song-notation='handwritten'] .site-score-stage {
  background-color: #fffaf0;
  background-image:
    radial-gradient(circle at 5% 8%, #f5cfbb66, transparent 24%),
    radial-gradient(circle at 91% 78%, #d5ebe077, transparent 26%),
    radial-gradient(#cfae9a30 0.7px, transparent 0.8px);
  background-size:
    auto,
    auto,
    15px 15px;
  border-radius: 13px;
  box-shadow:
    inset 0 0 0 2px #dcbdae,
    3px 4px 0 #d0ab9a;
  color: #584454;
}
body[data-song-style='midnight'] .site-score-stage {
  background-color: #fff8ec;
  background-image:
    radial-gradient(circle at 4% 7%, #edbdbd77, transparent 24%),
    radial-gradient(circle at 92% 80%, #bfdde0aa, transparent 28%),
    radial-gradient(#bba5a830 0.7px, transparent 0.8px);
  box-shadow:
    inset 0 0 0 2px #bb98a6,
    3px 4px 0 #806073;
}
body[data-song-style][data-song-notation='handwritten'] .site-score-stage .abcjs-staff path {
  fill: #b69a99;
}
body[data-song-style][data-song-notation='handwritten'] .site-score-stage .abcjs-beam-elem,
body[data-song-style][data-song-notation='handwritten'] .site-score-stage .abcjs-bar path {
  filter: url('#song-jazz-stroke-ink');
}
body[data-song-style][data-song-notation='handwritten'] .site-score-stage .song-original-glyph {
  opacity: 0;
}
.site-score-stage .song-handwritten-glyph {
  display: none;
  stroke: none;
  pointer-events: none;
}
body[data-song-style][data-song-notation='handwritten'] .site-score-stage .song-handwritten-glyph {
  display: inline;
  fill: #584454;
}
body[data-song-style][data-song-notation='handwritten'] .site-score-stage .abcjs-chord,
body[data-song-style][data-song-notation='handwritten'] .site-score-stage .abcjs-tempo text {
  font-family: 'Shantell Sans', cursive;
  font-weight: 800;
}
body[data-song-style][data-song-notation='handwritten'] .site-score-stage .abcjs-annotation,
body[data-song-style][data-song-notation='handwritten'] .site-score-stage .abcjs-lyric,
body[data-song-style][data-song-notation='handwritten'] .site-score-stage .ss2-unattached-syllable {
  fill: #554456;
  font-family: 'Finale Broadway Text', 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: var(--song-score-text-size, 17px);
  letter-spacing: 0;
}
body[data-song-style][data-song-notation='handwritten'][data-song-score-text='petaluma'] .site-score-stage .abcjs-annotation,
body[data-song-style][data-song-notation='handwritten'][data-song-score-text='petaluma'] .site-score-stage .abcjs-lyric,
body[data-song-style][data-song-notation='handwritten'][data-song-score-text='petaluma'] .site-score-stage .ss2-unattached-syllable {
  font-family: 'Petaluma Script', 'Source Sans 3', sans-serif;
}
body[data-song-style][data-song-notation='handwritten'] .site-score-stage .abcjs-chord {
  paint-order: stroke fill;
  stroke: #fffaf0;
  stroke-width: 2.5px;
}
body[data-song-style][data-song-notation='handwritten'] .site-score-stage .site-playhead {
  stroke: #e06358;
  stroke-width: 3;
}
body[data-song-style][data-song-notation='handwritten'] .site-score-stage .site-note-active {
  fill: #584454 !important;
}
body[data-song-style][data-song-notation='handwritten'] .site-karaoke {
  border: 0;
  border-radius: 3px;
  background: radial-gradient(circle at 8% 25%, #6c4d6644, transparent 32%),
    linear-gradient(105deg, #352b43, #2c273e 62%, #3e2f46);
  box-shadow: 0 -5px 0 #76546c, 0 7px 0 #5a425b, inset 0 1px #a88397;
  color: #fff1dd;
  font: 800 24px/1.25 'Shantell Sans', cursive;
  letter-spacing: .01em;
}
body[data-song-style='midnight'] .site-karaoke {
  background: radial-gradient(circle at 9% 20%, #65486566, transparent 34%),
    linear-gradient(105deg, #282235, #211e32 60%, #392840);
  box-shadow: 0 -5px 0 #8c607b, 0 7px 0 #b0788c, inset 0 1px #b391aa;
}
body[data-song-style][data-song-notation='handwritten'] .site-karaoke::before,
body[data-song-style][data-song-notation='handwritten'] .site-karaoke::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  height: 6px;
  background: #6a4b66;
  pointer-events: none;
}
body[data-song-style][data-song-notation='handwritten'] .site-karaoke::before {
  top: -7px;
  clip-path: polygon(0 75%, 5% 35%, 11% 82%, 18% 24%, 27% 75%, 34% 20%, 42% 73%, 49% 33%, 57% 90%, 65% 22%, 73% 70%, 82% 25%, 90% 78%, 96% 30%, 100% 70%, 100% 100%, 0 100%);
}
body[data-song-style][data-song-notation='handwritten'] .site-karaoke::after {
  bottom: -7px;
  opacity: .7;
  clip-path: polygon(0 0, 100% 0, 100% 37%, 94% 79%, 88% 23%, 80% 83%, 72% 34%, 65% 88%, 56% 32%, 48% 90%, 40% 27%, 32% 76%, 24% 21%, 16% 81%, 9% 30%, 0 78%);
}
body[data-song-style][data-song-notation='handwritten'] .site-karaoke-current {
  color: #fff1dd;
  text-shadow: none;
}
body[data-song-style][data-song-notation='handwritten'] .site-karaoke-next {
  color: #c9b9c8;
  text-shadow: none;
}
body[data-song-style][data-song-notation='handwritten'] .site-karaoke .karaoke-syllable {
  color: #fff1dd;
}
body[data-song-style][data-song-notation='handwritten'] .site-karaoke .karaoke-syllable.sung,
body[data-song-style][data-song-notation='handwritten'] .site-karaoke .karaoke-syllable.singing {
  color: #f5bc58;
  background-image: none;
  filter: none;
}
body[data-song-style][data-song-notation='handwritten'] .site-karaoke .karaoke-syllable.singing::after,
body[data-song-style][data-song-notation='handwritten'] .site-karaoke .karaoke-syllable.sung::after {
  content: '';
  top: auto;
  bottom: -.13em;
  right: 0;
  width: 100%;
  height: .27em;
  color: transparent;
  background-image: var(--song-brush-underline, linear-gradient(90deg, #e7a949, #f5bc58));
  background-size: 100% 100%;
  background-repeat: no-repeat;
  text-decoration: none;
  filter: none;
}
body[data-song-style][data-song-notation='handwritten'] #lines {
  background-color: #fff8e9;
  background-image: radial-gradient(#cfac9330 0.7px, transparent 0.8px);
  background-size: 14px 14px;
}
body[data-song-style][data-song-notation='handwritten'] #lines .lyric {
  border: 2px solid #dcc5b8;
  border-radius: 12px;
  background: #fffdf4;
  box-shadow: 2px 3px 0 #ead4bb;
}
body[data-song-style][data-song-notation='handwritten'] #lines .lyric.active {
  border-color: #4c3446;
  background: #ffe8d7;
  box-shadow: 4px 4px 0 #ed9a7b;
}
body[data-song-style][data-song-notation='handwritten'] #lines .words {
  font:
    800 20px/1.45 'Shantell Sans',
    cursive;
}
body[data-song-style][data-song-notation='handwritten'] #lines .chords {
  font:
    800 19px 'Shantell Sans',
    cursive;
}
body[data-song-style][data-song-notation='handwritten'] #practice-settings .panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 8px 24px #30263514;
}
body[data-song-style][data-song-notation='handwritten'] #practice-settings h2,
body[data-song-style][data-song-notation='handwritten'] .song-guide h2 {
  color: var(--ink);
  font: 800 22px/1.25 Manrope, 'Source Sans 3', sans-serif;
  letter-spacing: -0.03em;
}
body[data-song-style][data-song-notation='handwritten'] #practice-settings .panel .hint,
body[data-song-style][data-song-notation='handwritten'] #practice-settings .accuracy,
body[data-song-style][data-song-notation='handwritten'] .song-guide .qa-intro,
body[data-song-style][data-song-notation='handwritten'] .song-guide .qa-list p,
body[data-song-style][data-song-notation='handwritten'] .song-guide .guide-note {
  font-size: 15px;
  line-height: 1.6;
}
body[data-song-style][data-song-notation='handwritten'] #practice-settings .setting,
body[data-song-style][data-song-notation='handwritten'] #practice-settings .field,
body[data-song-style][data-song-notation='handwritten'] #practice-settings .key-original,
body[data-song-style][data-song-notation='handwritten'] #practice-settings .note p {
  font-size: 13px;
  line-height: 1.5;
}
body[data-song-style][data-song-notation='handwritten'] #practice-settings .scale,
body[data-song-style][data-song-notation='handwritten'] #practice-settings .segmented small {
  font-size: 11px;
}
body[data-song-style][data-song-notation='handwritten'] .song-guide .related-song small {
  font-size: 12px;
}
body[data-song-style='midnight'] .panel .hint,
body[data-song-style='midnight'] .panel .scale,
body[data-song-style='midnight'] .panel .key-original,
body[data-song-style='midnight'] .panel .fact-label {
  color: #cbbbd0;
}
body[data-song-style='midnight'] .panel select,
body[data-song-style='midnight'] .panel .segmented,
body[data-song-style='midnight'] .panel .setting button,
body[data-song-style='midnight'] .panel output {
  background: #fdf6e7;
  color: #352d3c;
}
body[data-song-style][data-song-notation='handwritten'] .transport {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 -4px 18px #30263512;
}
body[data-song-style][data-song-notation='handwritten'] .transport .play {
  border: 0;
  border-radius: 12px;
  background: var(--style-accent);
  color: #fff9ed;
  box-shadow: 0 3px 9px #3026352b;
  transform: none;
}
body[data-song-style][data-song-notation='handwritten'] #seek,
body[data-song-style][data-song-notation='handwritten'] #volume {
  accent-color: var(--style-accent);
}
body[data-song-style][data-song-notation='handwritten'] .song-guide .arrangement-card,
body[data-song-style][data-song-notation='handwritten'] .song-guide .related-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px #30263514;
}
body[data-song-style='midnight'] .song-guide .artist-browse-link,
body[data-song-style='midnight'] .song-guide .qa-list summary:hover h3 {
  color: var(--green);
}
body[data-song-style='midnight'] .song-guide .guide-badge {
  background: #48414e;
}
body[data-song-style='midnight'] .song-guide .section-chords summary:hover {
  background: #48414e;
}

@media (max-width: 600px) {
  .song-breadcrumb {
    flex-wrap: wrap;
  }
  .song-breadcrumb-trail {
    flex-basis: 100%;
  }
  .song-style-picker {
    margin-left: auto;
  }
  .song-debug-pickers {
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 10px;
  }
  .song-debug-pickers .song-style-picker {
    margin-left: 0;
  }
  .song-debug-pickers .song-style-picker small {
    display: none;
  }
  body[data-song-style][data-song-notation='handwritten'] .song-overview > .hero {
    margin: 10px 12px 18px;
    padding: 16px;
  }
  body[data-song-style][data-song-notation='handwritten'] .hero .artwork-cover {
    width: 72px;
    height: 72px;
  }
  body[data-song-style][data-song-notation='handwritten'] .hero .identity h1 {
    font-size: 31px;
  }
  body[data-song-style][data-song-notation='handwritten'] .song-actions {
    gap: 7px;
  }
  body[data-song-style][data-song-notation='handwritten'] .site-karaoke {
    font-size: 18px;
  }
  body[data-song-style][data-song-notation='handwritten'] .workspace > .sheet {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  body[data-song-style][data-song-notation='handwritten'] #practice-settings .panel {
    border: 0;
    box-shadow: none;
    background: transparent;
  }
}
@media print {
  body[data-song-style][data-song-notation='handwritten'] {
    background: white;
    color: #182c28;
  }
  body[data-song-style][data-song-notation='handwritten'] #print-chart {
    background: white;
    color: #182c28;
  }
}
body[data-song-notation='handwritten'] .site-karaoke {
  --karaoke-size: 27px;
  --karaoke-next-size: 16px;
}
