/* Letters and Sounds online (assets/play/phonics.js) */
.ph { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px 0 4px; }
.ph-prompt { min-height: 150px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  transition: transform .2s; }
.ph-prompt.ok { transform: scale(1.06); }
.ph-photo { width: 190px; height: 190px; object-fit: contain; background: #fff; border-radius: 22px; padding: 10px;
  box-shadow: 0 0 0 3px var(--navy), 0 6px 0 var(--navy); }
.ph-big { font: 800 5.2rem/1 var(--display); color: var(--red); background: #fff; border-radius: 22px; padding: 18px 30px 10px;
  box-shadow: 0 0 0 3px var(--navy), 0 6px 0 var(--navy); letter-spacing: 4px; }
.ph-prompt.has-pic .ph-big { font-size: 3.6rem; padding: 14px 22px 8px; }
.ph-big i { font-style: normal; color: var(--blue); }
.ph-ear { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border: 0; border-radius: 22px; padding: 16px 30px;
  box-shadow: 0 0 0 3px var(--navy), 0 6px 0 var(--navy); cursor: pointer; touch-action: manipulation; }
.ph-ear:active { transform: translateY(4px); box-shadow: 0 0 0 3px var(--navy), 0 2px 0 var(--navy); }
.ph-ear span { font-size: 3.4rem; line-height: 1; }
.ph-ear small { font: 800 1rem var(--body); color: var(--navy); }
.ph-area { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.ph-choices { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ph-choice { min-width: 96px; height: 96px; padding: 0 16px; border: 0; border-radius: 20px; background: #fff8e7; color: var(--navy);
  font: 800 3.4rem/1 var(--display); cursor: pointer; box-shadow: 0 0 0 3px var(--navy), 0 6px 0 var(--navy);
  transition: transform .1s, background .2s; touch-action: manipulation; }
.ph-choice:nth-child(2) { background: #e7f4ff; }
.ph-choice:nth-child(3) { background: #ffe7ec; }
.ph-choice:nth-child(4) { background: #e9f7e6; }
.ph-choice:nth-child(5) { background: #f1e9ff; }
.ph-choice:active { transform: translateY(4px); box-shadow: 0 0 0 3px var(--navy), 0 2px 0 var(--navy); }
.ph-choice.long { font-size: 2.2rem; }
.ph-choices.ph-pic .ph-choice { width: 132px; height: 132px; padding: 8px; background: #fff; }
.ph-choices.ph-pic .ph-choice img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ph-claps .ph-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 104px; }
.ph-claps .ph-choice small { font-size: .95rem; letter-spacing: -2px; }
.ph-choices.ph-word .ph-choice { font-size: 2.4rem; min-width: 130px; }
.ph-choice.ok { background: var(--green, #22b573) !important; color: #fff; animation: pop .35s ease-out; }
.ph-choice.no { background: #eef0f3 !important; color: #b6bcc6; box-shadow: 0 0 0 3px #c9ced6; cursor: default; position: relative; }
.ph-choice.no::after { content: ""; position: absolute; left: 14%; right: 14%; top: 50%; height: 5px; border-radius: 3px; background: var(--red);
  transform: rotate(-20deg); }
.ph-choice.no img { opacity: .35; }
/* build the word */
.ph-slots { display: flex; gap: 10px; }
.ph-slot { width: 74px; height: 86px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 3px #c9ced6; display: flex;
  align-items: center; justify-content: center; font: 800 3.4rem/1 var(--display); color: var(--navy); }
.ph-slot.next { box-shadow: inset 0 0 0 3px var(--blue); animation: pulse 1.2s infinite; }
.ph-slot.on { box-shadow: inset 0 0 0 3px var(--green, #22b573); animation: pop .3s ease-out; }
.ph-tiles { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ph-tile { width: 70px; height: 76px; border: 0; border-radius: 16px; background: #fff3d6; color: var(--navy); font: 800 3rem/1 var(--display);
  box-shadow: 0 0 0 3px var(--navy), 0 5px 0 var(--navy); cursor: pointer; touch-action: manipulation; }
.ph-tile.used { opacity: .18; box-shadow: 0 0 0 2px #c9ced6; cursor: default; }  /* the place stays, so the row does not look shifted */
.ph-again { margin-top: 2px; }
@media (max-width: 600px) {
  .ph-photo { width: 150px; height: 150px; }
  .ph-big { font-size: 4rem; padding: 14px 22px 8px; }
  .ph-prompt.has-pic { gap: 10px; }
  .ph-prompt.has-pic.has-big .ph-photo { width: 128px; height: 128px; }  /* picture + word side by side fit 390 px */
  .ph-prompt.has-pic .ph-big { font-size: 2.4rem; padding: 12px 16px 6px; letter-spacing: 2px; }
  .ph-choices { gap: 8px; }
  .ph-choice { min-width: 60px; height: 72px; padding: 0 8px; font-size: 2.5rem; border-radius: 16px; }  /* five vowels fit one row at 390 px */
  .ph-choices.ph-word { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 320px; }  /* four words: 2 + 2 */
  .ph-choices.ph-pic .ph-choice { width: 100px; height: 100px; }
  .ph-choices.ph-word .ph-choice { font-size: 1.8rem; min-width: 0; padding: 0 10px; }
  .ph-slot { width: 60px; height: 70px; font-size: 2.8rem; }
  .ph-tile { width: 56px; height: 62px; font-size: 2.4rem; }
}
.g-bubble mark.ph-key { background: #ffe58a; color: var(--navy); border-radius: 6px; padding: 0 4px; font-weight: 800; white-space: nowrap; }
