/* Saint-Saëns, "The Elephant" — piece styles on top of book.css. Classes use the el- prefix. */

.el-cover-art > img { object-position: 50% 30%; }
.el-recording-art { object-position: 50% 28%; }
.el-workshop { grid-template-columns: .72fr 1.28fr; }
.el-name { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--teal-soft); font-size: 14px; line-height: 1.55; color: var(--ink); }
.el-name strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 19px; margin-bottom: 4px; letter-spacing: -.02em; }
.el-name em { color: var(--teal); font-style: italic; }
.el-canvas { justify-content: flex-start; gap: 6px; }
.el-canvas .lesson-control-row { margin-top: 14px; }
.el-school { margin: -4px 3px 0; font-size: 13px; }
.el-school a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }

/* 1. Who is dancing? */
.el-insts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.el-inst { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-height: 118px; padding: 10px 6px 9px; background: var(--sheet); border-radius: 14px; text-align: center; line-height: 1.2; }
.el-inst strong { font-size: 13px; }
.el-inst small { font-size: 10px; font-weight: 500; color: var(--muted); }
.el-inst-size { height: 56px; display: flex; align-items: flex-end; justify-content: center; width: 100%; }
.el-inst-size i { display: block; width: 18px; height: calc(56px * var(--size, 1)); border-radius: 9px 9px 5px 5px; background: #cfa77b; box-shadow: inset -4px 0 0 #b98a5c; }
.el-inst[data-inst="flute"] .el-inst-size i { width: 7px; height: 52px; border-radius: 4px; background: #c9c3b1; box-shadow: none; transform: rotate(-60deg); transform-origin: 50% 80%; }
.el-inst[data-inst="piano"] .el-inst-size i { width: 46px; height: 30px; border-radius: 6px 16px 4px 4px; background: #3b3a36; box-shadow: inset 0 -8px 0 #f2eee2; }
.el-inst.heard { border-color: #a4c2ae; }
.el-inst.chosen, .el-inst[aria-pressed=true] { background: var(--teal); border-color: var(--teal); color: #fffdf5; }
.el-inst.chosen small { color: #e2efe8; }
.el-contour-wrap { background: #fbf8ef; border: 1px solid #e2dfcd; border-radius: 12px; padding: 4px 6px; margin-top: 8px; }
.el-contour { width: 100%; height: auto; display: block; fill: none; stroke: none; }
.el-barline { stroke: #e2dccb; stroke-width: 1; }
.el-bar-label { fill: var(--muted); font: 11px var(--body); stroke: none; }
.el-note { fill: var(--c); opacity: .55; transition: opacity .12s; }
.el-note.on { opacity: 1; stroke: #1d2a26; stroke-width: 1.5; }

/* 2. ONE-two-three */
.el-meter-choices { margin-top: 0 !important; }
.el-pulses { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 18px 0 6px; }
.el-pulse { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #dfe3d3; color: var(--muted); font: 600 13px var(--body); transition: background .08s, transform .08s; }
.el-pulse.one { width: 92px; height: 92px; font: 500 22px var(--serif); background: #efdcb6; color: #7a5327; }
.el-pulse.on { background: var(--teal); color: #fffdf5; transform: scale(1.06); }
.el-pulse.one.on { background: var(--gold); color: #3d2a12; }
.el-pulse.tapped { animation: el-tap .35s ease-out; }
.el-bar-count { text-align: center; font-size: 12px; color: var(--muted); min-height: 20px; margin: 0; }
.el-tap-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.el-tap { min-width: 150px; min-height: 64px; border-radius: 32px; font-size: 16px; background: #fffaf0; border: 2px dashed #b9bda9; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.el-tap.hit { animation: el-tap .3s ease-out; border-color: var(--teal); }
.el-tap.one { animation: el-tap .3s ease-out; border-color: var(--gold); background: #f8ebcd; }
.el-tap-note { font-size: 13px; color: var(--ink); margin: 0; min-height: 20px; max-width: 280px; }
@keyframes el-tap { from { box-shadow: 0 0 0 0 #dca85399; } to { box-shadow: 0 0 0 16px #dca85300; } }

/* 3. High elephant, low elephant */
.el-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.el-ladder button { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--sheet); font-size: 12px; line-height: 1.2; padding: 10px 6px; }
.el-ladder small { font-size: 11px; font-weight: 500; color: var(--muted); }
.el-ladder button[aria-pressed=true] { background: var(--teal); border-color: var(--teal); color: #fffdf5; }
.el-ladder button[aria-pressed=true] small { color: #e2efe8; }
.el-keys { background: #fbf8ef; border: 1px solid #e2dfcd; border-radius: 12px; padding: 10px 8px 4px; margin-top: 10px; }
.el-keyboard { width: 100%; height: auto; display: block; stroke: none; }
.el-band { fill: #efdcb6; opacity: .75; transition: x .25s, width .25s; }
.el-band-label { fill: #7a5327; font: 600 15px var(--body); }
.el-key.white { fill: #fffdf6; stroke: #cfcbbb; stroke-width: 1; }
.el-key.black { fill: #3b3a36; }
.el-key.on { fill: var(--rust); }
.el-key-label { fill: var(--muted); font: 9px var(--body); }

/* 4. A borrowed tune */
.el-map-wrap { position: relative; padding-top: 4px; }
.el-map { display: flex; gap: 4px; align-items: stretch; }
.el-block { --c: var(--teal); flex-basis: 0; min-width: 48px; min-height: 104px; padding: 10px 6px; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 18%, #fffdf5); color: color-mix(in srgb, var(--c) 80%, #1d2a26); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; line-height: 1.2; }
.el-block strong { font-size: 12px; }
.el-block small { font-size: 10px; font-weight: 500; opacity: .8; }
.el-block.secret { border-style: dashed; background: #f3f0e4; color: var(--muted); border-color: #b9bda9; }
.el-block.secret strong { font: 500 26px var(--serif); }
.el-block.found { box-shadow: 0 0 0 3px var(--gold); }
.el-block.on { background: var(--c); color: #fffdf5; }
.el-block.secret.on { background: #d8d4c3; color: var(--ink); }
.el-map-head { position: absolute; top: 0; bottom: -4px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--rust); opacity: 0; pointer-events: none; }
.el-map-head.on { opacity: 1; }
#elMark:disabled { opacity: .45; }

@media (max-width: 1050px) {
  .el-workshop { gap: 24px; }
  .el-insts { gap: 5px; }
  .el-inst { padding: 8px 3px; }
  .el-inst strong { font-size: 12px; }
}
@media (max-width: 820px) {
  .el-workshop { grid-template-columns: 1fr; gap: 20px; }
  .el-workshop .lesson-text h3 br { display: none; }
  .el-workshop .lesson-text h3 em::before { content: ' '; }
  .el-inst { min-height: 108px; }
  .el-block strong { font-size: 11px; }
}
@media (max-width: 600px) {
  .el-insts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .el-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .el-pulses { gap: 12px; }
  .el-pulse { width: 54px; height: 54px; }
  .el-pulse.one { width: 76px; height: 76px; font-size: 19px; }
  .el-map { flex-wrap: wrap; }
  .el-block { flex: 1 1 30% !important; min-height: 72px; }
  .el-map-head { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .el-pulse, .el-note, .el-band { transition: none; }
  .el-pulse.tapped, .el-tap.hit, .el-tap.one { animation: none; }
}
