/* Scoped renderer styles. State, answers and media are owned by the main controller. */
.py-page {
  --py-cream: #f5edd8;
  --py-border: #dcdac4;
  --py-red: #b85343;
  --py-muted: #68705e;
  color: var(--ink, #324c3d);
  width: 100%;
  min-width: 0;
}
.py-page button {
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
}
.py-page button,
.py-page summary {
  -webkit-tap-highlight-color: transparent;
  outline-offset: 4px;
}
.py-page button:focus-visible,
.py-page summary:focus-visible {
  outline: 3px solid #b87935;
}
.py-page button:not(:disabled):active {
  filter: brightness(0.96);
}
.py-page .icon {
  width: 22px;
  height: 22px;
}
.py-page .art {
  max-width: 100%;
}
.py-page button:disabled {
  opacity: 0.52;
  cursor: default;
}
.py-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.py-menu-heading h1 {
  font-family: var(--book, serif);
  font-size: 34px;
  letter-spacing: 1px;
}
.py-menu-heading p {
  margin-top: 9px;
  font-size: 15px;
}
.py-post-bear {
  width: 94px;
  height: 94px;
  transform: rotate(4deg);
}
.py-module-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 20px;
}
.py-module-card {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  text-align: left;
  padding: 25px;
  border: 1px solid #c9d3b8;
  border-radius: 22px;
  background: #e4ebd8;
  box-shadow: 0 4px 0 #c8d3b638;
  overflow: hidden;
}
.py-module-card.is-delivery {
  background: #f2e5d3;
  border-color: #dfcdb3;
}
.py-module-card:after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed #8c9d6c44;
  border-radius: 14px;
  pointer-events: none;
}
.py-module-picture {
  height: 160px;
  display: grid;
  place-items: center;
}
.py-menu-letters {
  display: flex;
  gap: 6px;
  align-items: center;
}
.py-menu-letters i {
  font-family: var(--book);
  font-size: 63px;
  line-height: 1;
  display: grid;
  place-items: center;
  width: 53px;
  height: 94px;
  background: #fff9e8;
  border: 1px solid #d9d0ab;
  border-radius: 10px;
  font-style: normal;
  box-shadow: 0 5px 0 #c6c49e36;
  transform: rotate(-5deg);
}
.py-menu-letters i:nth-child(2) {
  transform: translateY(-10px) rotate(3deg);
}
.py-menu-letters i:nth-child(3) {
  transform: rotate(7deg);
}
.py-module-copy {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.py-small-tag {
  font-size: 12px;
  letter-spacing: 1px;
  color: #64764f;
}
.py-module-copy > strong {
  font-family: var(--book, serif);
  font-size: 31px;
  letter-spacing: 2px;
}
.py-module-copy > span:not(.py-small-tag):not(.py-module-cta) {
  font-size: 14px;
  line-height: 1.7;
  color: #677059;
}
.py-module-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
}
.py-envelope {
  width: 200px;
  max-width: 100%;
  position: relative;
  isolation: isolate;
}
.py-envelope > svg {
  width: 100%;
  height: auto;
  max-height: 170px;
}
.py-envelope-stamp {
  position: absolute;
  top: 47px;
  right: 30px;
  width: 31px;
  transform: rotate(8deg);
}
.py-stage-section {
  margin-top: 24px;
}
.py-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.py-section-heading h2 {
  font-family: var(--book, serif);
  font-size: 21px;
}
.py-section-heading > span {
  font-size: 12px;
  color: var(--py-muted);
}
.py-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.py-stage-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 13px;
  text-align: left;
  border: 1px solid #d9ddc8;
  background: #f8f7eb;
  border-radius: 14px;
}
.py-stage-mark {
  font-family: var(--book);
  font-size: 25px;
  letter-spacing: 3px;
  min-width: 46px;
  color: #6c8054;
}
.py-stage-card > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.py-stage-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
}
.py-stage-card small {
  display: block;
  font-size: 11px;
  color: var(--py-muted);
  margin-top: 4px;
}
.py-stage-card > .icon {
  width: 16px;
  height: 16px;
}
.py-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}
.py-back-to-post {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #718064;
  font-size: 14px;
  padding: 6px 0;
}
.py-step-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}
.py-step-navigation > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d5d9c4;
  background: #fffdf6;
  border-radius: 12px;
  padding: 8px 15px;
  min-height: 48px;
  font-size: 13px;
}
.py-directory {
  position: relative;
}
.py-directory > summary {
  cursor: pointer;
  list-style: none;
  text-align: center;
  border: 1px solid #d8caa8;
  background: #fff9e8;
  border-radius: 12px;
  min-width: 138px;
  min-height: 48px;
  padding: 4px 13px;
  display: grid;
  align-content: center;
  gap: 0;
  line-height: 1.35;
}
.py-directory > summary::-webkit-details-marker {
  display: none;
}
.py-directory > summary strong {
  font-size: 15px;
  letter-spacing: 1px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.py-directory > summary span {
  font-size: 10px;
  color: var(--py-muted);
}
.py-step-panel {
  position: absolute;
  z-index: 8;
  right: 0;
  top: calc(100% + 10px);
  width: min(560px, calc(100vw - 44px));
  padding: 18px;
  background: #fffdf4;
  border: 1px solid #d9d5b8;
  border-radius: 18px;
  box-shadow: 0 14px 45px #3b4a2b26;
  max-height: min(360px, 55dvh);
  overflow: auto;
}
.py-step-panel > p {
  font-size: 14px;
  margin-bottom: 12px;
}
.py-step-panel > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.py-step-panel button {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 9px;
  background: #f2f0e2;
  border: 1px solid #e0dcc6;
  border-radius: 10px;
  min-height: 57px;
}
.py-step-panel button[aria-current='step'] {
  border-color: #7e9a69;
  background: #e6eddb;
}
.py-step-panel b {
  display: grid;
  place-items: center;
  width: 26px;
  flex-shrink: 0;
  font-size: 14px;
  color: #647950;
}
.py-step-panel button span {
  font-size: 12px;
  line-height: 1.4;
}
.py-step-panel small {
  display: block;
  color: var(--py-muted);
  font-size: 10px;
  margin-top: 3px;
}
.py-progress {
  height: 5px;
  background: #e1e6d4;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 16px;
}
.py-progress > span {
  display: block;
  height: 100%;
  background: #9cb17e;
  transition: width 0.2s;
}
.py-study-card {
  background: var(--white, #fffdf6);
  border: 1px solid var(--py-border);
  border-radius: 24px;
  padding: 25px 30px 22px;
  box-shadow: var(--shadow, 0 8px 24px #4d58300a);
}
.py-study-heading {
  text-align: center;
  margin-bottom: 18px;
}
.py-study-heading .eyebrow {
  font-size: 10px;
  margin-bottom: 6px;
}
.py-study-heading h1 {
  font-family: var(--book, serif);
  font-size: 29px;
  letter-spacing: 1px;
}
.py-study-heading p {
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.5;
}
.py-step-body {
  width: min(850px, 100%);
  margin: auto;
  min-width: 0;
}
.py-presentation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 690px;
  margin: auto;
  min-height: 240px;
}
.py-letter-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  min-height: 235px;
  width: 100%;
  max-width: 320px;
  padding: 18px 22px;
  background: #f6f0df;
  border: 1px solid #dfd2af;
  border-radius: 18px;
  color: #3f624b;
}
.py-four-lines {
  position: absolute;
  inset: 25px 18px 50px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(33.333% - 1px),
    #d8d0b380 calc(33.333% - 1px),
    #d8d0b380 33.333%
  );
  z-index: -1;
}
.py-letter {
  font-family: var(--book);
  font-size: clamp(90px, 10vw, 145px);
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.05;
}
.py-letter-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--py-muted);
}
.py-letter-caption > .icon {
  width: 18px;
  height: 18px;
}
.py-mouth {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
}
.py-mouth > svg {
  width: 220px;
  height: 159px;
  max-width: 100%;
}
.py-mouth figcaption {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.3px;
}
.py-mouth-note {
  font-size: 11px;
  color: var(--py-muted);
}
.py-group-trail {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.py-group-trail button {
  font-family: var(--book);
  font-size: 23px;
  line-height: 1;
  width: 48px;
  min-height: 44px;
  border: 1px solid #d6dbc4;
  background: #f0f2e4;
  border-radius: 10px;
}
.py-group-trail button:hover {
  background: #e3ead6;
}
.py-compose {
  text-align: center;
}
.py-parts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 710px;
  margin: 0 auto;
}
.py-parts .py-letter-card {
  width: 250px;
  flex: 1;
}
.py-compose-plus {
  font-size: 40px;
  color: #8c9e76;
  flex-shrink: 0;
}
.py-compose > p,
.py-whole-syllable > p {
  margin-top: 12px;
  font-size: 15px;
  text-align: center;
}
.py-whole-syllable {
  display: grid;
  justify-items: center;
}
.py-whole-syllable > .py-letter-card {
  max-width: 440px;
  min-height: 235px;
}
.py-whole-syllable .py-letter,
.py-syllable-presentation .py-letter {
  font-size: 102px;
  letter-spacing: 4px;
}
.py-syllable-picture {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.py-syllable-picture > .art {
  width: 170px;
  height: 150px;
  object-fit: contain;
}
.py-syllable-picture > strong {
  font-family: var(--book, serif);
  font-size: 41px;
  line-height: 1.2;
}
.py-syllable-picture > p {
  font-size: 13px;
  line-height: 1.5;
}
.py-question-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
  min-height: 250px;
}
.py-question-scene {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  min-width: 0;
}
.py-listening-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 160px;
  height: 140px;
  isolation: isolate;
}
.py-listening-ring {
  position: absolute;
  width: 135px;
  height: 135px;
  border: 2px dashed #c9d3b4;
  border-radius: 50%;
  background: #edf1e3;
  z-index: -1;
}
.py-question-mark {
  font-family: var(--book, serif);
  font-size: 95px;
  color: #8a9d70;
  line-height: 1;
}
.py-question-panel {
  min-width: 0;
  text-align: center;
}
.py-question-instruction {
  font-size: 15px;
  margin-bottom: 13px;
  line-height: 1.5;
}
.py-choices {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
}
.py-choice {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 155px;
  flex: 1;
  max-width: 210px;
  padding: 33px 13px 25px;
  background: #f2f0e3;
  border: 2px solid #dbdeca;
  border-radius: 16px;
  isolation: isolate;
}
.py-choice > strong {
  font-family: var(--book);
  font-size: 68px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.05;
  z-index: 1;
}
.py-choice:not(:disabled):hover {
  border-color: #a7b58c;
  background: #ecefdf;
}
.py-choice-state {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.2;
  min-height: 18px;
}
.py-choice-state > .icon {
  width: 14px;
  height: 14px;
}
.py-choice.is-retry {
  border: 4px solid var(--py-red);
  background: #fff0e8;
}
.py-choice.is-correct {
  border-color: #75956b;
  background: #e8efdd;
  color: #31563c;
}
.py-choice.is-retry .py-choice-state {
  color: #a54336;
}
.py-choice-door {
  position: absolute;
  inset: 20px 18px 0;
  border: 1px solid #c5b18b;
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  background: #e9ddbf;
  z-index: -1;
}
.py-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  background: #eeeddf;
  border: 1px solid #dedfcd;
  border-radius: 10px;
  margin-top: 14px;
  font-size: 13px;
}
.py-answer-wait {
  font-size: 12px;
  margin-top: 9px;
}
.py-sound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  background: #eef0e1;
  border: 1px solid #d5ddc4;
  border-radius: 12px;
  white-space: nowrap;
  color: #426149;
  font-size: 14px;
  line-height: 1.35;
}
.py-sound-symbol {
  display: flex;
  align-items: center;
  gap: 6px;
}
.py-sound-waves {
  display: none;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.py-sound-waves i {
  display: block;
  width: 3px;
  height: 13px;
  background: currentColor;
  border-radius: 3px;
  animation: py-wave 0.8s ease-in-out infinite alternate;
}
.py-sound-waves i:nth-child(2) {
  height: 21px;
  animation-delay: 0.2s;
}
.py-sound-waves i:nth-child(3) {
  height: 10px;
  animation-delay: 0.4s;
}
.py-sound.is-playing .py-sound-waves,
.py-sound.is-loading .py-sound-waves {
  display: flex;
}
.py-sound.is-playing .py-sound-symbol > .icon,
.py-sound.is-loading .py-sound-symbol > .icon {
  display: none;
}
.py-sound.is-playing {
  background: #dfe9d1;
  border-color: #9db488;
}
.py-sound.is-loading {
  background: #f2ecda;
}
.py-sound-large {
  min-width: 190px;
}
.py-revealed {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
}
.py-answer-label {
  font-family: var(--book);
  font-size: 83px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 2px;
}
.py-answer-picture {
  display: flex;
  align-items: center;
  gap: 12px;
}
.py-answer-picture > .art {
  width: 92px;
  height: 78px;
}
.py-answer-picture > span {
  font-family: var(--book, serif);
  font-size: 32px;
}
.py-example-panel {
  text-align: center;
  display: grid;
  gap: 12px;
  min-width: 0;
}
.py-example-panel .py-choice {
  min-height: 130px;
}
.py-example-panel .py-choice > strong {
  font-size: 56px;
}
.py-tone-lesson {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 35px;
  max-width: 800px;
  margin: auto;
}
.py-tone-focus {
  display: grid;
  justify-items: center;
  gap: 0;
}
.py-tone-focus > .py-letter {
  font-size: 116px;
}
.py-tone-path {
  width: 150px;
  height: 95px;
  overflow: visible;
}
.py-tone-ground {
  stroke: #e3ddc6;
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 4 4;
}
.py-tone-stroke {
  stroke: #7b9863;
  stroke-width: 6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.py-tone-path > circle {
  fill: #bd9561;
}
.py-tone-focus > span {
  font-size: 14px;
  color: #72815f;
}
.py-tone-samples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.py-tone-sample {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: 3px;
  padding: 10px;
  border: 1px solid #dcdac5;
  background: #f6f2e5;
  border-radius: 13px;
  min-height: 98px;
}
.py-tone-sample.is-current {
  border: 2px solid #9caf83;
  background: #edf1df;
}
.py-tone-sample > strong {
  font-family: var(--book);
  font-size: 43px;
  line-height: 1;
}
.py-tone-sample > svg {
  width: 70px;
  height: 49px;
}
.py-tone-sample path {
  fill: none;
  stroke: #80966c;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.py-tone-sample > span {
  grid-column: 1/-1;
  font-size: 11px;
  color: var(--py-muted);
}
.py-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  margin-top: 14px;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: center;
  color: #6e775e;
}
.py-feedback strong {
  font-size: 15px;
}
.py-feedback.is-success {
  background: #eaf0df;
  color: #426844;
  border-color: #c8d6b3;
}
.py-feedback.is-error {
  background: #fff0e7;
  color: #a44336;
  border-color: #e2b9a6;
}
.py-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e8e2d1;
  padding-top: 16px;
  margin-top: 10px;
}
.py-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.py-step-footer .button {
  min-height: 52px;
  padding: 12px 23px;
}
.py-step-footer .primary {
  min-width: 150px;
}
.py-step-footer .quiet {
  font-size: 14px;
}
.py-study .py-sound:focus-visible,
.py-study .py-letter-card:focus-visible {
  outline: 3px solid #b87935;
}
@keyframes py-wave {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1);
  }
}
@media (min-width: 900px) and (max-height: 850px) {
  .py-menu-heading {
    margin-bottom: 14px;
  }
  .py-menu-heading h1 {
    font-size: 29px;
  }
  .py-post-bear {
    width: 70px;
    height: 70px;
  }
  .py-module-card {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 17px;
    padding: 17px 20px;
  }
  .py-module-picture {
    height: 120px;
  }
  .py-menu-letters i {
    font-size: 49px;
    width: 40px;
    height: 73px;
  }
  .py-module-copy > strong {
    font-size: 27px;
  }
  .py-module-copy > span:not(.py-small-tag):not(.py-module-cta) {
    font-size: 12px;
  }
  .py-module-copy {
    gap: 5px;
  }
  .py-module-cta {
    margin-top: 2px;
    font-size: 13px;
  }
  .py-stage-section {
    margin-top: 17px;
  }
  .py-stage-card {
    padding: 11px 12px;
    gap: 9px;
  }
  .py-stage-mark {
    font-size: 21px;
    letter-spacing: 1px;
    min-width: 39px;
  }
  .py-stage-card strong {
    font-size: 12px;
  }
  .py-stage-grid {
    gap: 10px;
  }
  .py-study-card {
    padding: 18px 25px 16px;
  }
  .py-study-heading {
    margin-bottom: 13px;
  }
  .py-study-heading h1 {
    font-size: 27px;
  }
  .py-presentation {
    min-height: 195px;
    gap: 30px;
    max-width: 630px;
  }
  .py-letter-card {
    min-height: 190px;
    padding: 15px 18px;
    gap: 9px;
  }
  .py-letter {
    font-size: 118px;
  }
  .py-mouth > svg {
    width: 180px;
    height: 130px;
  }
  .py-mouth figcaption {
    font-size: 14px;
  }
  .py-mouth {
    gap: 5px;
  }
  .py-feedback {
    margin-top: 10px;
    min-height: 34px;
    padding: 5px 10px;
    font-size: 12px;
  }
  .py-step-footer {
    padding-top: 12px;
    margin-top: 8px;
  }
  .py-step-footer .button {
    min-height: 48px;
    padding: 10px 20px;
  }
  .py-question-layout {
    min-height: 205px;
    gap: 25px;
  }
  .py-listening-circle {
    width: 140px;
    height: 117px;
  }
  .py-listening-ring {
    width: 110px;
    height: 110px;
  }
  .py-question-mark {
    font-size: 80px;
  }
  .py-question-scene {
    gap: 12px;
  }
  .py-choice {
    min-height: 136px;
  }
  .py-choice > strong {
    font-size: 60px;
  }
  .py-answer-label {
    font-size: 68px;
  }
  .py-question-scene .py-envelope {
    width: 160px;
  }
  .py-question-scene .py-envelope > svg {
    max-height: 118px;
  }
  .py-question-scene .py-envelope-stamp {
    top: 36px;
    right: 24px;
    width: 24px;
  }
  .py-whole-syllable > .py-letter-card {
    min-height: 190px;
  }
  .py-tone-focus > .py-letter {
    font-size: 92px;
  }
  .py-tone-path {
    width: 130px;
    height: 75px;
  }
  .py-tone-sample {
    min-height: 81px;
    padding: 7px;
  }
  .py-tone-sample > strong {
    font-size: 36px;
  }
  .py-tone-samples {
    gap: 9px;
  }
  .py-tone-sample > svg {
    width: 62px;
    height: 40px;
  }
  .py-syllable-picture > .art {
    width: 135px;
    height: 115px;
  }
  .py-syllable-picture > strong {
    font-size: 32px;
  }
  .py-syllable-picture {
    gap: 5px;
  }
  .py-group-trail {
    margin-top: 8px;
  }
  .py-parts {
    max-width: 600px;
  }
}
@media (min-width: 900px) and (max-height: 720px) {
  .py-topline {
    margin-bottom: 7px;
  }
  .py-step-navigation > button {
    min-height: 44px;
    padding: 6px 12px;
  }
  .py-directory > summary {
    min-height: 44px;
  }
  .py-progress {
    margin-bottom: 9px;
  }
  .py-study-card {
    padding: 13px 22px 12px;
    border-radius: 20px;
  }
  .py-study-heading {
    margin-bottom: 9px;
  }
  .py-study-heading .eyebrow {
    display: none;
  }
  .py-study-heading h1 {
    font-size: 24px;
  }
  .py-study-heading p {
    font-size: 12px;
    margin-top: 4px;
  }
  .py-step-body .py-presentation {
    min-height: 156px;
    gap: 25px;
    max-width: 570px;
  }
  .py-letter-card {
    min-height: 153px;
    padding: 10px 14px;
    gap: 6px;
    max-width: 240px;
  }
  .py-letter {
    font-size: 94px;
  }
  .py-four-lines {
    inset: 14px 15px 37px;
  }
  .py-letter-caption {
    font-size: 11px;
  }
  .py-mouth > svg {
    width: 150px;
    height: 104px;
  }
  .py-mouth figcaption {
    font-size: 13px;
  }
  .py-mouth-note {
    font-size: 10px;
  }
  .py-mouth {
    gap: 3px;
  }
  .py-feedback {
    margin-top: 7px;
    min-height: 29px;
    padding: 4px 8px;
    font-size: 11px;
  }
  .py-feedback strong {
    font-size: 13px;
  }
  .py-step-footer {
    padding-top: 9px;
    margin-top: 6px;
  }
  .py-step-footer .button,
  .py-footer-actions > .py-sound {
    min-height: 44px;
    padding: 8px 16px;
    font-size: 13px;
  }
  .py-step-footer .primary {
    min-width: 135px;
  }
  .py-step-footer .button .icon {
    width: 18px;
    height: 18px;
  }
  .py-group-trail {
    margin-top: 6px;
  }
  .py-group-trail button {
    width: 44px;
    min-height: 44px;
    font-size: 22px;
  }
  .py-question-layout {
    min-height: 161px;
    gap: 22px;
  }
  .py-question-scene {
    gap: 8px;
  }
  .py-listening-circle {
    width: 104px;
    height: 92px;
  }
  .py-listening-ring {
    width: 88px;
    height: 88px;
  }
  .py-question-mark {
    font-size: 64px;
  }
  .py-sound-large {
    min-width: 172px;
    padding: 8px 14px;
    min-height: 44px;
    font-size: 13px;
  }
  .py-choice {
    min-height: 114px;
    padding: 27px 10px 18px;
  }
  .py-choice > strong {
    font-size: 54px;
  }
  .py-choices {
    gap: 10px;
  }
  .py-question-instruction {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .py-help {
    min-height: 44px;
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 12px;
  }
  .py-question-scene .py-envelope {
    width: 130px;
  }
  .py-question-scene .py-envelope > svg {
    max-height: 91px;
  }
  .py-question-scene .py-envelope-stamp {
    top: 28px;
    right: 20px;
    width: 21px;
  }
  .py-answer-label {
    font-size: 58px;
  }
  .py-answer-picture > .art {
    width: 60px;
    height: 50px;
  }
  .py-answer-picture > span {
    font-size: 26px;
  }
  .py-revealed {
    gap: 3px;
  }
  .py-small-tag {
    font-size: 11px;
  }
  .py-answer-wait {
    font-size: 11px;
    margin-top: 6px;
  }
  .py-whole-syllable > .py-letter-card {
    min-height: 153px;
    max-width: 340px;
  }
  .py-whole-syllable .py-letter,
  .py-syllable-presentation .py-letter {
    font-size: 79px;
  }
  .py-compose > p,
  .py-whole-syllable > p {
    margin-top: 7px;
    font-size: 12px;
  }
  .py-tone-focus > .py-letter {
    font-size: 76px;
  }
  .py-tone-path {
    width: 110px;
    height: 59px;
  }
  .py-tone-focus > span {
    font-size: 12px;
  }
  .py-tone-sample {
    min-height: 65px;
    padding: 5px;
  }
  .py-tone-sample > strong {
    font-size: 31px;
  }
  .py-tone-sample > svg {
    width: 48px;
    height: 32px;
  }
  .py-tone-samples {
    gap: 8px;
  }
  .py-tone-sample > span {
    font-size: 10px;
  }
  .py-tone-lesson {
    max-width: 630px;
    gap: 30px;
  }
  .py-syllable-picture > .art {
    width: 108px;
    height: 87px;
  }
  .py-syllable-picture > p {
    font-size: 11px;
    line-height: 1.4;
  }
  .py-syllable-picture > strong {
    font-size: 29px;
  }
  .py-example-panel .py-choice {
    min-height: 110px;
  }
  .py-example-panel .py-choice > strong {
    font-size: 48px;
  }
  .py-menu-heading {
    margin-bottom: 10px;
  }
  .py-menu-heading h1 {
    font-size: 26px;
  }
  .py-menu-heading p {
    font-size: 13px;
    margin-top: 4px;
  }
  .py-post-bear {
    width: 58px;
    height: 58px;
  }
  .py-module-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 15px;
    padding: 12px 17px;
    border-radius: 17px;
  }
  .py-module-picture {
    height: 97px;
  }
  .py-menu-letters i {
    font-size: 41px;
    width: 31px;
    height: 58px;
  }
  .py-module-copy > strong {
    font-size: 24px;
  }
  .py-module-copy {
    gap: 3px;
  }
  .py-module-card .py-envelope {
    width: 116px;
  }
  .py-module-card .py-envelope-stamp {
    top: 24px;
    right: 17px;
    width: 21px;
  }
  .py-stage-section {
    margin-top: 13px;
  }
  .py-section-heading {
    margin-bottom: 8px;
  }
  .py-section-heading h2 {
    font-size: 18px;
  }
  .py-section-heading > span {
    font-size: 11px;
  }
  .py-stage-card {
    min-height: 62px;
    padding: 8px 10px;
    gap: 8px;
  }
  .py-stage-mark {
    font-size: 19px;
    min-width: 32px;
  }
  .py-stage-card strong {
    font-size: 11px;
  }
  .py-stage-card small {
    font-size: 10px;
    margin-top: 2px;
  }
  .py-stage-card > .icon {
    width: 14px;
    height: 14px;
  }
  .py-stage-grid {
    gap: 8px;
  }
}
@media (max-width: 700px) {
  .py-menu-heading {
    gap: 12px;
    margin-bottom: 17px;
  }
  .py-menu-heading h1 {
    font-size: 27px;
    line-height: 1.5;
    letter-spacing: 0;
  }
  .py-menu-heading p {
    font-size: 13px;
    margin-top: 7px;
  }
  .py-post-bear {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
  }
  .py-module-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .py-module-card {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }
  .py-module-picture {
    height: 120px;
  }
  .py-module-copy > strong {
    font-size: 28px;
  }
  .py-module-copy > span:not(.py-small-tag):not(.py-module-cta) {
    font-size: 12px;
  }
  .py-module-copy {
    gap: 6px;
  }
  .py-module-cta {
    font-size: 13px;
    margin-top: 4px;
  }
  .py-menu-letters {
    gap: 3px;
  }
  .py-menu-letters i {
    font-size: 40px;
    width: 31px;
    height: 66px;
  }
  .py-module-card .py-envelope {
    width: 115px;
  }
  .py-module-card .py-envelope-stamp {
    top: 25px;
    right: 17px;
    width: 19px;
  }
  .py-section-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .py-section-heading h2 {
    font-size: 20px;
  }
  .py-section-heading > span {
    font-size: 11px;
    max-width: 96px;
    text-align: right;
  }
  .py-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .py-stage-card {
    padding: 12px 10px;
    gap: 8px;
    min-height: 84px;
  }
  .py-stage-mark {
    font-size: 21px;
    letter-spacing: 0;
    min-width: 32px;
  }
  .py-stage-card strong {
    font-size: 12px;
  }
  .py-stage-card small {
    font-size: 10px;
  }
  .py-stage-card > .icon {
    display: none;
  }
  .py-topline {
    gap: 8px;
    margin-bottom: 10px;
  }
  .py-back-to-post {
    font-size: 12px;
    gap: 4px;
    white-space: nowrap;
  }
  .py-back-to-post > .icon {
    width: 18px;
    height: 18px;
  }
  .py-step-navigation {
    gap: 6px;
  }
  .py-step-navigation > button {
    padding: 7px;
    min-width: 44px;
    min-height: 46px;
  }
  .py-step-navigation > button span {
    display: none;
  }
  .py-directory > summary {
    min-width: 105px;
    min-height: 46px;
    padding: 4px 7px;
  }
  .py-directory > summary span {
    font-size: 9px;
  }
  .py-step-panel {
    position: fixed;
    top: 190px;
    left: 20px;
    right: 20px;
    width: auto;
    max-height: 55dvh;
    padding: 14px;
  }
  .py-step-panel > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .py-progress {
    margin-bottom: 12px;
  }
  .py-study-card {
    padding: 20px 15px 17px;
    border-radius: 21px;
  }
  .py-study-heading {
    margin-bottom: 18px;
  }
  .py-study-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .py-study-heading h1 {
    font-size: 25px;
  }
  .py-study-heading p {
    font-size: 12px;
    line-height: 1.7;
  }
  .py-presentation {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 13px;
    min-height: 180px;
  }
  .py-letter-card {
    min-height: 176px;
    padding: 13px 8px;
    gap: 10px;
    border-radius: 14px;
  }
  .py-letter {
    font-size: 95px;
  }
  .py-letter-caption {
    font-size: 10px;
    gap: 4px;
  }
  .py-letter-caption > .icon {
    width: 15px;
    height: 15px;
  }
  .py-four-lines {
    inset: 18px 10px 40px;
  }
  .py-mouth > svg {
    width: 142px;
    height: 104px;
  }
  .py-mouth figcaption {
    font-size: 12px;
    line-height: 1.65;
  }
  .py-mouth-note {
    font-size: 9px;
  }
  .py-mouth {
    gap: 5px;
  }
  .py-group-trail {
    gap: 8px;
    margin-top: 15px;
  }
  .py-group-trail button {
    width: 44px;
    min-height: 44px;
  }
  .py-parts {
    gap: 10px;
  }
  .py-parts > .py-letter-card {
    min-width: 0;
    min-height: 180px;
  }
  .py-compose-plus {
    font-size: 28px;
  }
  .py-compose > p,
  .py-whole-syllable > p {
    font-size: 13px;
    line-height: 1.6;
  }
  .py-whole-syllable > .py-letter-card {
    min-height: 190px;
    width: 100%;
  }
  .py-whole-syllable .py-letter {
    font-size: 100px;
  }
  .py-question-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
  }
  .py-question-scene {
    gap: 11px;
  }
  .py-listening-circle {
    width: 130px;
    height: 110px;
  }
  .py-listening-ring {
    width: 105px;
    height: 105px;
  }
  .py-question-mark {
    font-size: 78px;
  }
  .py-question-scene .py-envelope {
    width: 157px;
  }
  .py-question-scene .py-envelope > svg {
    max-height: 118px;
  }
  .py-question-scene .py-envelope-stamp {
    top: 35px;
    right: 23px;
    width: 25px;
  }
  .py-sound-large {
    min-width: 195px;
    min-height: 48px;
  }
  .py-choices {
    gap: 10px;
  }
  .py-choice {
    min-height: 130px;
    padding: 31px 10px 21px;
  }
  .py-choice > strong {
    font-size: 58px;
  }
  .py-question-instruction {
    font-size: 13px;
  }
  .py-help {
    margin-top: 13px;
    min-height: 46px;
  }
  .py-tone-lesson {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .py-tone-focus {
    grid-template-columns: auto 110px;
    justify-content: center;
    column-gap: 18px;
    align-items: center;
  }
  .py-tone-focus > .py-letter {
    font-size: 99px;
    grid-row: 1/3;
  }
  .py-tone-focus > span {
    font-size: 12px;
  }
  .py-tone-path {
    width: 105px;
    height: 65px;
  }
  .py-tone-samples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .py-tone-sample {
    min-height: 90px;
    padding: 9px;
  }
  .py-tone-sample > strong {
    font-size: 42px;
  }
  .py-tone-sample > svg {
    width: 61px;
    height: 43px;
  }
  .py-syllable-presentation .py-letter {
    font-size: 75px;
    letter-spacing: 0;
  }
  .py-syllable-picture > .art {
    width: 115px;
    height: 102px;
  }
  .py-syllable-picture > strong {
    font-size: 33px;
  }
  .py-syllable-picture > p {
    font-size: 11px;
    line-height: 1.6;
  }
  .py-example-panel .py-choices {
    gap: 7px;
    flex-wrap: wrap;
  }
  .py-example-panel .py-choice {
    min-height: 72px;
    min-width: 53px;
    padding: 23px 8px 10px;
  }
  .py-example-panel .py-choice > strong {
    font-size: 37px;
  }
  .py-example-panel > .py-small-tag {
    font-size: 10px;
    line-height: 1.6;
  }
  .py-feedback {
    margin-top: 16px;
    min-height: 41px;
    font-size: 12px;
    gap: 4px 7px;
  }
  .py-feedback strong {
    font-size: 14px;
  }
  .py-step-footer {
    padding-top: 13px;
    margin-top: 10px;
    gap: 10px;
    align-items: stretch;
  }
  .py-step-footer > .button {
    font-size: 12px;
    padding: 10px;
    gap: 5px;
  }
  .py-step-footer .quiet > .icon {
    width: 17px;
    height: 17px;
  }
  .py-footer-actions {
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .py-step-footer .primary {
    min-width: 113px;
    font-size: 13px;
    padding: 11px 14px;
    min-height: 49px;
  }
  .py-footer-actions > .py-sound {
    width: 100%;
    font-size: 12px;
    min-height: 44px;
    padding: 8px;
  }
  .py-step-footer:has(.py-footer-actions > .py-sound) {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .py-step-footer:has(.py-footer-actions > .py-sound) > .button {
    align-self: end;
    min-height: 49px;
  }
  .py-answer-label {
    font-size: 74px;
  }
  .py-answer-picture > .art {
    width: 77px;
    height: 66px;
  }
  .py-answer-picture > span {
    font-size: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .py-page *,
  .py-page *:before,
  .py-page *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .py-sound-waves i {
    transform: none !important;
  }
}
.py-finish-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 38px 24px;
  background: var(--white, #fffdf6);
  border: 1px solid var(--py-border);
  border-radius: 24px;
  text-align: center;
}
.py-finish-card > .eyebrow {
  margin: 0;
}
.py-finish-card h1 {
  font-family: var(--book, serif);
  font-size: 31px;
}
.py-finish-card > p {
  font-size: 14px;
  line-height: 1.7;
}
.py-finish-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}
.py-finish-actions > a {
  min-height: 49px;
}
.py-finish-card > .py-envelope {
  width: 180px;
}
.py-finish-card .py-envelope-stamp {
  top: 40px;
  right: 27px;
  width: 28px;
}
@media (min-width: 900px) and (max-height: 720px) {
  .py-finish-card {
    padding: 22px;
    gap: 12px;
  }
  .py-finish-card > .py-envelope {
    width: 140px;
  }
  .py-finish-card .py-envelope-stamp {
    top: 30px;
    right: 21px;
    width: 22px;
  }
  .py-finish-card h1 {
    font-size: 27px;
  }
}
@media (max-width: 700px) {
  .py-finish-card {
    padding: 28px 18px;
    gap: 15px;
  }
  .py-finish-card h1 {
    font-size: 27px;
  }
  .py-finish-actions {
    flex-wrap: wrap;
  }
  .py-finish-actions > .button {
    min-height: 49px;
    padding: 12px 16px;
    font-size: 13px;
  }
}
