/* Compatibility styles pending ownership audit. See docs/superpowers/audits/2026-08-09-css-ownership.md. */


[data-listening-answer-image][hidden] {
  display: none;
}


.lesson-pane .tag-chip:hover {
  border-color: var(--color-marker-orange);
  color: var(--color-marker-orange);
}

.catalog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-top: 1.5px solid var(--color-charcoal);
  padding-top: 20px;
}

.catalog-head strong {
  color: var(--color-cocoa-ink);
  font-size: 28px;
}

.catalog-head span {
  color: var(--color-cocoa-ink);
  font-family: var(--font-geist);
  font-size: 16px;
}

.song-label-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.song-label {
  position: relative;
  min-height: 255px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 24px;
  text-align: left;
  animation: cardPeelIn 460ms ease both;
  transition: translate 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.song-label:nth-child(2) { animation-delay: 22ms; }
.song-label:nth-child(3) { animation-delay: 44ms; }
.song-label:nth-child(4) { animation-delay: 66ms; }
.song-label:nth-child(5) { animation-delay: 88ms; }
.song-label:nth-child(6) { animation-delay: 110ms; }
.song-label:nth-child(7) { animation-delay: 132ms; }
.song-label:nth-child(8) { animation-delay: 154ms; }
.song-label:nth-child(9) { animation-delay: 176ms; }

.song-label:nth-child(4n + 1) {
  transform: rotate(-0.8deg);
}

.song-label:nth-child(4n + 2) {
  transform: rotate(0.8deg);
}

.song-label:nth-child(4n + 3) {
  transform: rotate(-0.3deg);
}

.song-label:nth-child(4n) {
  transform: rotate(0.4deg);
}

.song-label strong {
  padding-right: 44px;
  color: var(--color-cocoa-ink);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.roll-number {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-charcoal);
  border-radius: 50%;
  background: var(--color-cream-paper);
  box-shadow: var(--shadow-subtle);
  font-family: var(--font-geist);
  font-size: 14px;
  font-weight: 500;
}

.song-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.song-tags button.tag-chip {
  cursor: pointer;
}

.empty-note {
  padding: 28px;
  border: 1.5px solid var(--color-charcoal);
  border-radius: 12px;
  background: var(--color-dew-drop);
  color: var(--color-cocoa-ink);
  font-size: 20px;
}


.footer-band {
  margin-top: 20px;
  padding: 42px 0 46px;
  border-top: 1.5px solid var(--color-charcoal);
  border-radius: 0;
  background: #fffaf4;
  color: var(--color-cocoa-ink);
  text-align: center;
  overflow: hidden;
}

.sponsor-footer-head {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto 24px;
}

.footer-band strong,
.sponsor-footer-head strong {
  display: block;
  color: var(--color-cocoa-ink);
  font-size: clamp(24px, 4.6vw, 42px);
  line-height: 1.18;
  text-shadow: none;
}

.sponsor-footer-note {
  max-width: 720px;
  margin: 12px auto 0;
  color: rgba(45, 31, 20, 0.72);
  font-size: clamp(15px, 2.2vw, 20px);
  line-height: 1.5;
}

.decrypt-text {
  display: inline-block;
  min-height: 1em;
  white-space: normal;
}

.decrypt-text.is-encrypted {
  color: var(--color-marker-orange);
  font-family: var(--font-geist);
  letter-spacing: 0;
}

.sponsor-footer-note.decrypt-text.is-encrypted {
  color: rgba(255, 96, 31, 0.78);
}

.support-toggle {
  min-height: 42px;
  margin-top: 18px;
  border: 1.5px solid #8f1d15;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffdf86 0%, #ffb12b 48%, #e53124 50%, #b81718 100%);
  color: #fff8df;
  cursor: pointer;
  font-family: var(--font-geist);
  font-size: 15px;
  font-weight: 860;
  letter-spacing: 0;
  padding: 8px 22px;
  text-shadow: 0 1px 0 rgba(79, 18, 9, 0.45);
  box-shadow: 0 10px 20px rgba(183, 23, 24, 0.2), inset 0 1px 0 rgba(255, 247, 210, 0.55);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.support-toggle:hover,
.support-toggle:focus-visible {
  filter: saturate(1.08) brightness(1.03);
  box-shadow: 0 14px 26px rgba(183, 23, 24, 0.26), inset 0 1px 0 rgba(255, 247, 210, 0.65);
  transform: translateY(-2px);
}

.support-folder-popover {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: max-height 360ms ease, opacity 240ms ease, transform 240ms ease;
}

.support-folder-popover.is-open {
  max-height: 760px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.support-folder-stage {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 24px 0 28px;
}

.support-qr-grid {
  display: grid;
  width: min(800px, 100%);
  grid-template-columns: repeat(3, minmax(0, 190px));
  justify-content: center;
  gap: 18px;
  margin: 8px auto 28px;
  scroll-margin-top: 24px;
}

.support-qr-card {
  position: relative;
  margin: 0;
  border: 1.5px solid rgba(116, 22, 12, 0.7);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 224, 143, 0.34), transparent 34%),
    linear-gradient(145deg, #e83a2f 0%, #c51f1f 58%, #8f1418 100%);
  box-shadow:
    0 20px 38px rgba(116, 22, 12, 0.2),
    inset 0 1px 0 rgba(255, 240, 178, 0.48);
  overflow: hidden;
  padding: 10px;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform 320ms ease, opacity 220ms ease, box-shadow 220ms ease;
}

.support-qr-card::before,
.support-qr-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.support-qr-card::before {
  inset: auto -10% -32% -10%;
  height: 46%;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 208, 84, 0.2);
}

.support-qr-card::after {
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffeeb8 0 35%, #f2bd33 36% 60%, #b91b1b 61% 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.support-qr-card figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  color: #fff4cf;
  font-family: var(--font-geist);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.support-qr-card figcaption span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.support-qr-card figcaption span::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #09c367;
  box-shadow: 0 0 0 3px rgba(9, 195, 103, 0.18);
  content: "";
}

.support-qr-card figcaption strong {
  flex: 0 0 auto;
  color: #ffe08a;
  font-size: 14px;
}

.support-folder-popover.is-open .support-qr-card {
  opacity: 1;
}

.support-folder-popover.is-open .support-qr-card:nth-child(1) {
  transform: rotateZ(-3deg);
}

.support-folder-popover.is-open .support-qr-card:nth-child(2) {
  transform: translateY(-8px) rotateZ(1deg);
  transition-delay: 50ms;
}

.support-folder-popover.is-open .support-qr-card:nth-child(3) {
  transform: rotateZ(3deg);
  transition-delay: 100ms;
}

.support-qr-card:hover {
  box-shadow:
    0 24px 42px rgba(116, 22, 12, 0.26),
    inset 0 1px 0 rgba(255, 240, 178, 0.55);
  transform: translateY(-4px) scale(1.02);
}

.support-qr-frame {
  position: relative;
  z-index: 1;
  border: 6px solid #fff9ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(79, 18, 9, 0.2);
  overflow: hidden;
}

.support-folder {
  cursor: pointer;
  transition: transform 0.2s ease-in;
}

.support-folder {
  --folder-color: #d72b1f;
  --folder-back-color: #98161a;
  --paper-1: #f4eadf;
  --paper-2: #fff6ec;
  --paper-3: #ffffff;
  transform: translateY(-8px);
}

.support-folder .folder__back {
  position: relative;
  width: 190px;
  height: 124px;
  background:
    linear-gradient(150deg, rgba(255, 214, 92, 0.24), transparent 42%),
    var(--folder-back-color);
  border-radius: 18px;
  box-shadow: 0 20px 42px rgba(116, 22, 12, 0.22);
  overflow: visible;
}

.support-folder .folder__back::after {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  content: "";
  width: 100%;
  height: 66%;
  background: linear-gradient(160deg, #f7c046 0 20%, #d8291d 21% 100%);
  clip-path: polygon(0 0, 100% 0, 50% 72%);
  border-radius: 18px 18px 0 0;
  opacity: 0.96;
}

.support-folder .paper {
  position: absolute;
  z-index: 5;
  bottom: 10%;
  left: 50%;
  width: min(190px, 28vw);
  border: 1.5px solid rgba(45, 31, 20, 0.22);
  border-radius: 12px;
  background: var(--paper-1);
  box-shadow: 0 18px 30px rgba(45, 31, 20, 0.16);
  overflow: hidden;
  padding: 0;
  transform: translate(-50%, 10%);
  transform-origin: center bottom;
  transition: transform 0.3s ease-in-out, filter 0.2s ease;
}

.support-folder .paper:nth-child(2) {
  background: var(--paper-2);
}

.support-folder .paper:nth-child(3) {
  background: var(--paper-3);
}

.support-folder-popover.is-open .support-folder {
  transform: translateY(-8px);
}

.support-folder-popover.is-open .support-folder .paper:nth-child(1) {
  transform: translate(-168%, -74%) rotateZ(-6deg);
}

.support-folder-popover.is-open .support-folder .paper:nth-child(2) {
  transform: translate(68%, -74%) rotateZ(6deg);
}

.support-folder-popover.is-open .support-folder .paper:nth-child(3) {
  transform: translate(-50%, -94%) rotateZ(1deg);
}

.support-folder-popover.is-open .support-folder .paper:hover {
  filter: saturate(1.04) brightness(1.02);
}

.support-qr-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.qr-placeholder {
  width: 92px;
  height: 92px;
  border: 8px solid #ffffff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #24160f 10px, transparent 10px 18px, #24160f 18px 28px, transparent 28px 36px, #24160f 36px 46px, transparent 46px 54px, #24160f 54px 64px, transparent 64px),
    linear-gradient(#24160f 10px, transparent 10px 18px, #24160f 18px 28px, transparent 28px 36px, #24160f 36px 46px, transparent 46px 54px, #24160f 54px 64px, transparent 64px);
  background-color: #fff;
  background-blend-mode: multiply;
  box-shadow: inset 0 0 0 1px rgba(45, 31, 20, 0.14);
}

.support-folder .folder__front {
  position: absolute;
  z-index: 4;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 216, 93, 0.28), transparent 22%),
    linear-gradient(180deg, #f24b2e 0%, var(--folder-color) 68%, #a61919 100%);
  transform-origin: bottom;
  transition: transform 0.3s ease-in-out;
}

.support-folder .folder__front.right {
  right: 0;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.redpacket-seal {
  position: absolute;
  z-index: 6;
  top: 42px;
  left: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid rgba(255, 244, 207, 0.8);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe08a, #f6b930);
  color: #991416;
  font-family: var(--font-song);
  font-size: 26px;
  font-weight: 900;
  transform: translateX(-50%);
  box-shadow: 0 8px 16px rgba(79, 18, 9, 0.22);
}

.support-folder-popover.is-open .support-folder .folder__front {
  transform: scaleY(0.62);
}

.support-folder-popover.is-open .support-folder .folder__front.right {
  transform: scaleY(0.62);
}

@media (max-width: 640px) {
  .sponsor-footer-head {
    width: min(100%, calc(100% - 24px));
  }

  .support-folder-popover.is-open {
    max-height: 1160px;
  }

  .support-folder-stage {
    padding: 18px 0 16px;
  }

  .support-qr-grid {
    width: min(250px, 100%);
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 34px;
    margin-bottom: 22px;
  }

  .support-folder-popover.is-open .support-qr-card,
  .support-folder-popover.is-open .support-qr-card:nth-child(1),
  .support-folder-popover.is-open .support-qr-card:nth-child(2),
  .support-folder-popover.is-open .support-qr-card:nth-child(3) {
    transform: none;
  }

  .support-folder .folder__back {
    width: 150px;
    height: 104px;
  }

  .redpacket-seal {
    top: 35px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .support-folder .paper {
    width: min(168px, calc(100vw - 48px));
  }

  .support-folder-popover.is-open .support-folder .paper:nth-child(1) {
    transform: translate(-50%, -256%) rotateZ(-3deg);
  }

  .support-folder-popover.is-open .support-folder .paper:nth-child(2) {
    transform: translate(-50%, -146%) rotateZ(3deg);
  }

  .support-folder-popover.is-open .support-folder .paper:nth-child(3) {
    transform: translate(-50%, -36%) rotateZ(-1deg);
  }
}

.logoloop {
  position: relative;
  --logoloop-gap: 36px;
  --logoloop-logoHeight: 74px;
  --logoloop-fadeColorAuto: #fffaf4;
}

.sponsor-logoloop {
  width: 100%;
  overflow: hidden;
}

.logoloop--scale-hover {
  padding-top: calc(var(--logoloop-logoHeight) * 0.1);
  padding-bottom: calc(var(--logoloop-logoHeight) * 0.1);
}

.logoloop__track {
  display: flex;
  width: max-content;
  will-change: transform;
  user-select: none;
  position: relative;
  z-index: 0;
  animation: logoloop-scroll 24s linear infinite;
}

.logoloop__track:hover {
  animation-play-state: paused;
}

.logoloop__list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logoloop__item {
  flex: 0 0 auto;
  margin-right: var(--logoloop-gap);
  font-size: var(--logoloop-logoHeight);
  line-height: 1;
}

.logoloop__item:last-child {
  margin-right: var(--logoloop-gap);
}

.logoloop__node {
  display: inline-flex;
  align-items: center;
}

.logoloop--scale-hover .logoloop__item {
  overflow: visible;
}

.logoloop--scale-hover .logoloop__item:hover .logoloop__node {
  transform: scale(1.16);
  transform-origin: center center;
}

.logoloop--scale-hover .logoloop__node {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logoloop__link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 50%;
  transition: opacity 0.2s ease;
}

.logoloop__link:hover {
  opacity: 0.86;
}

.logoloop__link:focus-visible {
  outline: 2px solid var(--color-marker-orange);
  outline-offset: 4px;
}

.logoloop--fade::before,
.logoloop--fade::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(24px, 8%, 120px);
  pointer-events: none;
  z-index: 10;
}

.logoloop--fade::before {
  left: 0;
  background: linear-gradient(to right, var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%, rgba(0, 0, 0, 0) 100%);
}

.logoloop--fade::after {
  right: 0;
  background: linear-gradient(to left, var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%, rgba(0, 0, 0, 0) 100%);
}

.avatar-face {
  position: relative;
  display: inline-grid;
  width: var(--logoloop-logoHeight);
  height: var(--logoloop-logoHeight);
  place-items: center;
  border: 2px solid rgba(45, 31, 20, 0.18);
  border-radius: 50%;
  color: #fffaf4;
  font-family: var(--font-geist);
  font-size: calc(var(--logoloop-logoHeight) * 0.28);
  font-weight: 900;
  box-shadow:
    0 10px 20px rgba(45, 31, 20, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  isolation: isolate;
  overflow: hidden;
}

.avatar-face::before {
  content: "";
  position: absolute;
  inset: 16% 18% auto;
  height: 36%;
  border-radius: 999px 999px 42px 42px;
  background: rgba(255, 255, 255, 0.23);
  transform: rotate(-8deg);
  z-index: -1;
}

.avatar-face::after {
  content: "";
  position: absolute;
  right: 14%;
  bottom: 16%;
  width: 20%;
  height: 20%;
  border-radius: 50%;
  background: rgba(255, 247, 239, 0.92);
  box-shadow: calc(var(--logoloop-logoHeight) * -0.42) -4px 0 rgba(255, 247, 239, 0.52);
}

.avatar-emerald {
  background: linear-gradient(135deg, #008f6a, #36f0b2);
}

.avatar-sky {
  background: linear-gradient(135deg, #1267b3, #31d6ff);
}

.avatar-coral {
  background: linear-gradient(135deg, #b6262d, #ff6b5c);
}

.avatar-gold {
  background: linear-gradient(135deg, #9a6200, #ffd166);
}

.avatar-ink {
  background: linear-gradient(135deg, #171312, #6a625a);
}

.avatar-rose {
  background: linear-gradient(135deg, #803653, #f1a7b5);
}

.avatar-mint {
  background: linear-gradient(135deg, #0e5f5b, #a7f3d0);
}

.avatar-blue {
  background: linear-gradient(135deg, #183b7a, #83a9ff);
}

@keyframes logoloop-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}


@media (max-width: 980px) {
  h1 {
    font-size: 76px;
  }

  h2,
  .lesson-cover h3 {
    font-size: 40px;
  }

  .hero,
  .product-row,
  .lesson-section {
    grid-template-columns: 1fr;
  }

  .lesson-module-note {
    top: -112px;
    left: 18px;
    width: min(280px, calc(100vw - 48px));
    height: 110px;
  }

  .lesson-card {
    grid-column: 1;
  }

  .lesson-module-caption {
    font-size: 22px;
  }

  .lesson-module-arrow {
    top: 21px;
    left: 96px;
    width: 132px;
    height: 86px;
  }

  .hero {
    min-height: auto;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 36px;
  }

  .hero-product {
    min-height: 560px;
  }

  .notebook-object {
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(5deg);
    animation-name: notebookFloatMobile;
  }

  .pencil-object {
    right: 12%;
  }

  .listening-menu.infinite-menu {
    min-height: 0;
  }

  .level-board,
  .song-label-grid,
  .level-song-picker-grid.chroma-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .level-board.chroma-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    min-height: auto;
  }

  .score-grid {
    justify-items: center;
  }

}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .product-row,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 34px;
  }

  h3,
  .lesson-cover h3 {
    font-size: 32px;
  }

  p,
  .intro-copy {
    font-size: 18px;
  }

  .learning-focus--hero {
    width: 100%;
    margin: 0 0 18px;
    column-gap: 10px;
    font-size: clamp(23px, 6vw, 30px);
  }

  .levels-section {
    padding-top: 0;
    padding-bottom: 56px;
  }

  .practice-heading {
    min-height: 104px;
    margin-bottom: 2px;
  }

  .practice-heading .marker-caption {
    top: 8px;
    left: 6px;
    font-size: 24px;
  }

  .practice-heading .practice-arrow {
    top: 40px;
    left: 92px;
    width: 126px;
    height: 80px;
  }

  .hero {
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .hero-product {
    min-height: 500px;
  }

  .notebook-object {
    width: 300px;
    min-height: 405px;
    top: 72px;
  }

  .notebook-cover {
    min-height: 405px;
    padding: 38px 24px 28px;
  }

  .name-sticker strong {
    font-size: 26px;
  }

  .cover-note {
    left: 24px;
    right: 24px;
    font-size: 17px;
  }

  .pencil-object {
    right: 8px;
    top: 130px;
    height: 360px;
  }

  .sticker-bolt {
    right: auto;
    left: 12px;
  }

  .product-row {
    gap: 18px;
    padding-bottom: 72px;
  }

  .action-button {
    bottom: 42px;
    width: 58px;
    height: 58px;
  }

  .showcase-object {
    min-height: 300px;
  }

  .showcase-object.notebook-blue {
    min-height: 720px;
  }

  .practice-wheel-module {
    top: 58px;
    width: 100%;
    height: 500px;
  }

  .practice-wheel-module.is-rhythm-selected,
  .practice-wheel-module.is-listening-selected,
  .practice-wheel-module.is-vocal-meter-selected {
    width: 100%;
  }

  .practice-wheel-module.is-rhythm-selected {
    height: 1270px;
  }

  .practice-wheel-module.is-listening-selected {
    height: 650px;
  }

  .practice-wheel-module.is-vocal-meter-selected {
    height: calc(176px + 100svh);
  }

  .practice-wheel-module.is-listening-selected.has-listening-audio-open {
    height: 930px;
  }

  .practice-option-wheel {
    --ow-font-size: clamp(2.8rem, 10.6vw, 3rem);
    --ow-inset: clamp(2px, 1.4vw, 8px);
  }

  .practice-wheel-module.is-rhythm-selected .practice-option-wheel,
  .practice-wheel-module.is-listening-selected .practice-option-wheel,
  .practice-wheel-module.is-vocal-meter-selected .practice-option-wheel {
    --ow-font-size: clamp(0.94rem, 4.1vw, 1.06rem);
    --ow-inset: clamp(0px, 0.5vw, 2px);

    width: min(154px, 42vw);
    height: 172px;
  }

  .showcase-object.notebook-blue:has(.practice-wheel-module.has-listening-audio-open) {
    min-height: 1152px;
  }

  .showcase-object.notebook-blue:has(.practice-wheel-module.is-rhythm-selected) {
    min-height: 1330px;
  }

  .showcase-object.notebook-blue:has(.practice-wheel-module.is-vocal-meter-selected) {
    min-height: calc(244px + 100svh);
  }

  .practice-wheel-module .listening-showcase {
    top: 210px;
    left: 50%;
    width: min(370px, calc(100% - 14px));
    min-height: 760px;
    transform: translateX(-50%);
  }

  .practice-wheel-module .listening-menu {
    top: 0;
    width: 100%;
    height: 292px;
  }

  .practice-wheel-module .listening-audio-panel {
    top: 314px;
    width: min(352px, calc(100% - 10px));
  }

  .vocal-meter-showcase {
    top: 176px;
    left: 50%;
    width: min(370px, calc(100% - 14px));
    height: 100svh;
    border-radius: 24px;
    transform: translateX(-50%);
  }

  .vocal-meter-frame {
    border-radius: 22px;
  }

  .listening-showcase {
    min-height: 484px;
  }

  .listening-showcase.has-listening-audio {
    min-height: 770px;
  }

  .listening-showcase .listening-arrow {
    top: 14px;
    left: 108px;
    width: 126px;
    height: 80px;
  }

  .listening-menu {
    top: 108px;
    width: min(370px, calc(100% - 14px));
    height: 340px;
  }

  .listening-cover-card {
    width: 94px;
  }

  .listening-menu .infinite-menu-hero {
    width: 164px;
  }

  .listening-menu .face-title {
    display: block;
    left: 50%;
    top: 50%;
    max-width: 142px;
    padding: 0.13em 0.32em 0.17em;
    border-width: 2px;
    border-radius: 10px;
    font-size: clamp(1.75rem, 9vw, 2.55rem);
    transform: translate(-50%, -50%) rotate(-2deg);
  }

  .listening-menu .face-description {
    display: block;
    top: auto;
    right: 18px;
    bottom: 86px;
    width: 12ch;
    font-size: 13px;
    line-height: 1.25;
    text-align: right;
    transform: none;
  }

  .listening-menu .action-button {
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-width: 4px;
  }

  .listening-menu .action-button-icon {
    font-size: 23px;
  }

  .listening-audio-panel {
    --listening-panel-rotate: -0.6deg;
    top: 478px;
    width: min(352px, calc(100% - 10px));
    padding: 12px;
    border-radius: 18px;
    transform: translateX(-50%) rotate(var(--listening-panel-rotate));
  }

  .listening-panel-head {
    gap: 10px;
    margin-bottom: 10px;
  }

  .listening-panel-head span {
    padding: 4px 9px;
  }

  .listening-panel-head strong {
    font-size: 24px;
  }

  .listening-panel-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .listening-animated-list .scroll-list {
    max-height: 206px;
    gap: 10px;
    padding: 10px;
  }

  .animated-list-row {
    grid-template-columns: 34px minmax(0, 1fr) 26px;
    grid-template-rows: auto auto;
    min-height: 58px;
    gap: 8px;
    padding: 8px;
    border-radius: 11px;
  }

  .listening-audio-play {
    width: 34px;
    height: 34px;
  }

  .listening-audio-title {
    font-size: 0.78rem;
  }

  .listening-audio-meta {
    font-size: 0.66rem;
  }

  .listening-audio-pill {
    width: 26px;
    height: 26px;
    font-size: 0.64rem;
  }

  .listening-inline-player {
    grid-template-columns: auto minmax(42px, 1fr) auto;
    gap: 5px;
    padding: 5px 7px;
  }

  .listening-answer-cat-sticker {
    top: 50%;
    width: clamp(66px, 34%, 96px);
    padding: 0;
  }

  .listening-answer-card {
    min-height: 46px;
    margin-top: 42px;
    padding: 8px;
  }

  .listening-inline-time {
    font-size: 0.62rem;
  }

  .line-sidebar {
    --marker-length: 32px;
    --max-shift: 16px;
    --item-gap: 11px;
    --font-size: 0.86rem;
  }

  .line-sidebar__list {
    max-height: 170px;
  }

  .listening-player-card {
    gap: 7px;
    padding: 10px;
  }

  .listening-player-card h3 {
    font-size: 20px;
    line-height: 1.02;
  }

  .listening-player-card p {
    font-size: 13px;
    line-height: 1.25;
  }

  .listening-version-row {
    gap: 5px;
  }

  .listening-version-row button {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .listening-speed-control {
    gap: 6px;
  }

  .listening-speed-row {
    gap: 5px;
  }

  .listening-speed-row button {
    min-height: 26px;
    padding: 3px 8px;
    font-size: 11px;
  }

  .listening-answer-reveal::before {
    width: clamp(130px, 66%, 190px);
    height: 28px;
    transform: translate(-50%, 36px) rotate(-4deg);
  }

  .rhythm-game-showcase {
    --rhythm-frame-nudge: -20px;
    --rhythm-mobile-rotation: -0.8deg;
    --rhythm-mobile-scale: 0.66;

    left: 50%;
    top: 176px;
    grid-template-rows: 30px auto;
    gap: 8px;
    width: 500px;
    max-width: none;
    height: auto;
    padding: 10px;
    border-radius: 28px;
    transform: translateX(-50%) rotate(var(--rhythm-mobile-rotation)) scale(var(--rhythm-mobile-scale));
    transform-origin: top center;
  }

  .rhythm-console-top {
    grid-template-columns: 16px 1fr 48px;
    gap: 8px;
    padding: 0 4px;
  }

  .rhythm-console-brand {
    font-size: 12px;
  }

  .rhythm-console-speaker {
    gap: 4px;
  }

  .rhythm-console-speaker i {
    height: 14px;
  }

  .rhythm-screen-bezel {
    padding: 7px;
    border-radius: 17px;
  }

  .rhythm-game-frame {
    width: 500px !important;
    max-width: none !important;
    height: 844px !important;
    aspect-ratio: auto;
    border-radius: 11px;
    transform: translateX(var(--rhythm-frame-nudge));
    transform-origin: center top;
  }

  .showcase-object:hover .practice-wheel-module.is-rhythm-selected .rhythm-game-showcase {
    transform: translateX(-50%) rotate(-0.4deg) translateY(-5px) scale(var(--rhythm-mobile-scale));
  }

  .level-board,
  .song-label-grid,
  .level-song-picker-grid.chroma-grid,
  .practice-steps,
  .evidence-tags,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .level-song-picker-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .level-song-picker-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .level-board.chroma-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .level-board.chroma-grid .level-label.chroma-card {
    min-height: 300px;
  }

  .catalog-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .lesson-fields,
  .sticker-grid {
    grid-template-columns: 1fr;
  }

  .lesson-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-tabs button:nth-child(2) {
    border-right: 0;
  }

  .lesson-tabs button:nth-child(-n + 2) {
    border-bottom: 1.5px solid var(--color-charcoal);
  }

  .lesson-metronome-pane {
    padding: 14px;
  }

  .metronome-brief {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .metronome-brief small {
    max-width: none;
    text-align: left;
  }

  .metronome-frame {
    height: 1760px;
    min-height: 1760px;
  }

  .lesson-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .level-board.circular-gallery.chroma-grid {
    height: 560px;
    padding: 0;
    --r: 250px;
  }

  .level-board.circular-gallery .level-label.circular-card {
    width: min(310px, calc(100vw - 48px));
    min-height: 0;
    height: auto;
  }

  .circular-media {
    margin: 10px 10px 0;
  }

  .level-board.circular-gallery .circular-media strong {
    font-size: 72px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* The sight-singing tool occupies the former listening panel. */
.sight-singing-panel { position:absolute; top:180px; left:50%; width:min(100%, 960px); transform:translateX(-50%); }
.sight-singing-frame { display:block; width:100%; height:800px; border:0; border-radius:24px; background:#eaf4fa; }
.showcase-object.notebook-blue:has(.practice-wheel-module.is-listening-selected) { min-height:1060px; }
@media (max-width:640px) {
  .sight-singing-panel { top:180px; width:calc(100% - 12px); }
  .sight-singing-frame { height:820px; border-radius:20px; }
  .practice-wheel-module.is-listening-selected { height:1020px; }
  .showcase-object.notebook-blue:has(.practice-wheel-module.is-listening-selected) { min-height:1100px; }
}
