.abc-play {
  display: block;
  padding: 0 !important;
  background: #fffaf0;
  overflow: hidden;
}
.abc-play .play-stage {
  display: block;
  height: 100%;
  min-height: 0;
}
.abc-play #puzzle-widget {
  display: block;
  padding: 0 !important;
  background: #fffaf0;
  overflow: auto;
  height: 100%;
}
.abc-book {
  max-width: 1050px;
  margin: 0 auto;
  padding: 20px clamp(16px, 3vw, 36px) 24px;
  color: #253e3b;
  font-family: "Noto Sans", sans-serif;
}
.abc-welcome {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 12px;
}
.abc-welcome > span {
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #966342;
  font-size: 10px;
}
.abc-welcome > strong {
  background: #e0eee5;
  padding: 8px 12px;
  border-radius: 20px;
  color: #28604d;
  font-size: 11px;
}
.abc-letter-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 22px;
}
.abc-letter-badge {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font:
    600 clamp(64px, 8vw, 94px)/1 "Fredoka",
    sans-serif;
  color: #b63d43;
  background: #fbe1d9;
  padding: 16px 20px;
  border-radius: 26px;
  box-shadow: 0 6px 0 #edc2b4;
}
.abc-letter-badge > span {
  font-size: 0.65em;
}
.abc-hero-picture {
  width: 115px;
  height: 115px;
  object-fit: contain;
}
.abc-letter-intro h2 {
  font:
    600 clamp(23px, 3vw, 34px)/1.2 "Fredoka",
    sans-serif;
  margin: 0 0 9px;
}
.abc-letter-intro p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 9px;
  max-width: 400px;
}
.abc-book button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.abc-book button:focus-visible {
  outline: 3px solid #285fba;
  outline-offset: 4px;
}
.abc-help {
  border: 1px solid #bfcbc1;
  background: #fffdf6;
  color: #36564c;
  border-radius: 14px;
  padding: 10px 16px;
  min-height: 44px;
  font:
    600 14px "Noto Sans",
    sans-serif;
}
.abc-game {
  background: white;
  border: 1px solid #e7dcca;
  border-radius: 24px;
  padding: 20px 25px;
  box-shadow: 0 6px 0 #e7dfcf;
}
.abc-steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin: 0 0 15px;
  padding: 0;
  font-size: 12px;
  color: #596c64;
}
.abc-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.abc-steps li > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #f1f0e8;
  border-radius: 50%;
  font-weight: 700;
}
.abc-steps li[aria-current] {
  color: #264e40;
  font-weight: 800;
}
.abc-steps li[aria-current] > span,
.abc-steps li.abc-step-done > span {
  background: #dcece1;
  color: #246446;
}
.abc-game h3 {
  font:
    600 clamp(22px, 3vw, 30px)/1.3 "Fredoka",
    sans-serif;
  text-align: center;
  margin: 0 0 18px;
}
.abc-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  max-width: 650px;
  margin: auto;
}
.abc-choice {
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fffaf0;
  color: #29463f;
  border: 2px solid #d7cfb7;
  border-radius: 22px;
  box-shadow: 0 5px 0 #d6c9a9;
  font:
    500 72px/1 "Fredoka",
    sans-serif;
  padding: 14px 8px;
}
.abc-choice:nth-child(2) {
  background: #eaf4fa;
  border-color: #b7d3e2;
  box-shadow: 0 5px 0 #a9c6d5;
}
.abc-choice:nth-child(3) {
  background: #fcebe6;
  border-color: #e7c6bc;
  box-shadow: 0 5px 0 #dbb6aa;
}
.abc-choice:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: #4b7667;
}
.abc-choice.abc-selected {
  outline: 3px solid #d49a2b;
  outline-offset: 2px;
}
.abc-choice.abc-correct {
  outline: 3px solid #337c55;
  outline-offset: 2px;
}
.abc-choice:disabled {
  opacity: 1;
  cursor: default;
}
.abc-choice > small {
  position: absolute;
  right: 10px;
  top: 8px;
  font:
    700 22px "Noto Sans",
    sans-serif;
  color: #276e4d;
}
.abc-choice-picture {
  width: 85px;
  height: 85px;
  object-fit: contain;
}
.abc-word-choices .abc-choice {
  font-size: clamp(15px, 2.5vw, 23px);
  min-height: 140px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.abc-feedback {
  text-align: center;
  min-height: 24px;
  margin: 20px 0 12px;
  font:
    500 16px/1.5 "Noto Sans",
    sans-serif;
  color: #3a6252;
}
.abc-game-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 50px;
}
.abc-primary {
  padding: 13px 24px;
  min-height: 50px;
  border: 1px solid #2c6551;
  border-radius: 17px;
  background: #33705a;
  color: #fff;
  font:
    700 16px "Noto Sans",
    sans-serif;
  box-shadow: 0 5px 0 #22523f;
}
.abc-earned-star {
  font-size: 45px;
  color: #cf941d;
  line-height: 1;
  text-shadow: 0 3px 0 #efdba8;
}
.abc-alphabet {
  margin-top: 22px;
}
.abc-alphabet > summary {
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.abc-alphabet nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
}
.abc-alphabet button {
  position: relative;
  width: 48px;
  min-height: 48px;
  border: 1px solid #c8d4c3;
  border-radius: 12px;
  background: #edf4e7;
  color: #29463f;
  font:
    600 24px "Fredoka",
    sans-serif;
}
.abc-alphabet button[aria-current] {
  border: 3px solid #49725b;
}
.abc-alphabet small {
  position: absolute;
  right: 2px;
  top: 0;
  font-size: 11px;
  color: #a47718;
}
.abc-parent-note {
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
  color: #69786b;
  margin-top: 12px;
}
.abc-finished {
  margin-top: 20px;
  padding: 18px;
  background: #f8ebc9;
  border-radius: 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
.abc-finished > strong {
  font:
    600 25px "Fredoka",
    sans-serif;
}
.abc-finished button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #bdae7c;
  border-radius: 12px;
  background: #fffaf0;
  color: #3b5143;
}
@media (max-width: 620px) {
  .abc-book {
    padding: 14px 12px 20px;
  }
  .abc-welcome {
    margin-bottom: 15px;
  }
  .abc-welcome > span {
    max-width: 115px;
    line-height: 1.6;
  }
  .abc-letter-intro {
    gap: 14px;
    flex-wrap: wrap;
  }
  .abc-letter-badge {
    font-size: 65px;
    padding: 10px 15px;
  }
  .abc-hero-picture {
    width: 85px;
    height: 85px;
  }
  .abc-letter-intro > div:last-child {
    flex: 1 1 150px;
  }
  .abc-letter-intro h2 {
    font-size: 25px;
  }
  .abc-letter-intro p {
    font-size: 13px;
  }
  .abc-game {
    padding: 18px 12px;
  }
  .abc-steps {
    gap: 12px;
    font-size: 10px;
  }
  .abc-steps li {
    gap: 4px;
  }
  .abc-choices {
    gap: 10px;
  }
  .abc-choice {
    font-size: 55px;
    min-height: 100px;
    border-radius: 15px;
  }
  .abc-word-choices .abc-choice {
    min-height: 120px;
    font-size: 14px;
  }
  .abc-choice-picture {
    width: 62px;
    height: 62px;
  }
  .abc-feedback {
    font-size: 14px;
  }
  .abc-primary {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .abc-choice:not(:disabled):hover {
    transform: none;
  }
}
