.confetti-burst{position:fixed;inset:0;z-index:10;overflow:hidden;pointer-events:none;contain:strict}.confetti-particle{position:absolute;top:var(--y);left:var(--x);border:.75px solid rgb(6 70 120 / 48%);border-radius:2px;background-image:linear-gradient(135deg,rgb(255 255 255 / 45%),transparent 65%);box-shadow:0 1px 1px #00375537;opacity:0;will-change:transform,opacity}.confetti-particle.is-round{border-radius:50%}.confetti-option{display:flex;align-items:center;justify-content:center;gap:8px;width:fit-content;min-height:36px;margin:0 auto;color:#07568b;font-size:12px;cursor:pointer}.confetti-option input{width:18px;height:18px;margin:0;accent-color:#006aa7;cursor:pointer}.confetti-option input:focus-visible{outline:2px solid #006aa7;outline-offset:3px}.word-display{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;min-height:112px;padding:8px 6px;overflow:hidden;border-radius:10px;background:#eff7f8}.word-content{min-width:0;text-align:center}.word-display strong{display:block;max-width:100%;overflow-wrap:anywhere;text-align:center;color:#006aa7;font-size:clamp(30px,4vw,48px);font-weight:750}.word-arrow{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;width:44px;min-height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:#07568b;font-size:25px;font-weight:700}.word-arrow:hover:not(:disabled){background:#d8edf3}.word-position{display:block;margin-top:var(--component-gap);text-align:center;color:#558493;font-size:12px;white-space:nowrap}.voice-buttons{display:flex;gap:10px;margin-top:var(--component-gap)}.voice-button{display:inline-flex;flex:1;align-items:center;justify-content:center;gap:7px;min-height:51px;padding:5px 8px;border:1.5px solid #9ec5d2;border-radius:9px;background:#eaf4f7;color:#07568b;font-size:24px;font-weight:700;transition:background .2s}.voice-button:hover:not(:disabled),.voice-button.is-playing{background:#d8edf3}.voice-avatar,.voice-chat{display:block;flex-shrink:0;object-fit:contain;filter:drop-shadow(0 2px 2px rgb(0 55 85 / 40%))}.voice-avatar{width:38px;height:38px}.voice-chat{width:26px;height:26px;transform:translateY(-5px);margin-left:-10px}.analysing-dots span{display:inline-block;animation:analysing-dot 1.2s ease-in-out infinite;animation-delay:calc(var(--i) * .2s)}@keyframes analysing-dot{0%,to{opacity:.25}50%{opacity:1}}.record-tip{min-height:18px;margin:var(--component-gap) 0 0;color:#597f90;font-size:11px;text-align:center}.attempt-playback{margin-top:var(--component-gap);text-align:left}.attempt-playback-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:136px;min-height:51px;padding:4px 12px;border:1.5px solid #9ec5d2;border-radius:9px;background:#eaf4f7;color:#006aa7}.attempt-playback-button:hover:not(:disabled){background:#d8edf3}.attempt-playback-icon{width:22px;height:22px;flex-shrink:0}.attempt-playback-button .sound-waves{height:24px}.attempt-playback-button .sound-waves span{height:calc(var(--h) * .55)}.sound-waves{display:flex;align-items:center;justify-content:center;gap:3px;height:38px}.sound-waves span{width:3px;height:var(--h);border-radius:8px;background:#006aa7}.sound-waves.active span{animation:bar-wave .8s ease-in-out infinite alternate;animation-delay:calc(var(--i) * -45ms)}@keyframes bar-wave{to{transform:scaleY(.27)}}.result-zone:not(:empty){margin-top:var(--component-gap)}.error-message{margin:0;padding:12px;border-radius:8px;background:#fff1e9;color:#963b24;font-size:13px}.result-card{text-align:center}.accuracy-summary{margin:0;font-size:18px;font-weight:700}.accuracy-value{color:#117b36;font-size:26px;font-weight:800}.phone-row{margin-top:var(--component-gap);text-align:left}.phone-chips{display:flex;flex-wrap:wrap;gap:var(--component-gap) 7px;margin-top:var(--component-gap)}.phone-chip{display:inline-flex;align-items:center;justify-content:center;width:var(--phoneme-box-width);height:var(--phoneme-box-height);flex:0 0 var(--phoneme-box-width);padding:0 4px;border:1px solid #a4cbd7;border-radius:8px;color:#064678;background:#fff;font-size:17px;line-height:1.4}.phone-unsupported{border-style:dashed;color:#715800;background:#fff8db}.phone-chip.phone-reference{background:#006aa7;border-color:#006aa7;color:#fffdf6}.phone-chip.phone-matched{background:#117b36;border-color:#117b36;color:#fffdf6}.phone-chip.phone-changed,.phone-chip.phone-missing,.phone-chip.phone-extra{background:#b42323;border-color:#b42323;color:#fffdf6}.letter-matched,.letter-reference{color:#117b36}.letter-silent{color:#7f8b82;text-decoration:none}.letter-missing,.letter-changed,.letter-extra{color:#b42323}.letter-missing,.letter-changed{text-decoration:none}.letter-unmapped{color:#006aa7;text-decoration:none}.no-sounds-feedback{color:#715800;font-size:12px;line-height:1.5}.practice-choices{margin-top:var(--component-gap);text-align:left}.practice-choices-heading{margin:0 0 var(--component-gap);color:#064678;font-size:14px;font-weight:750}.practice-choices-list{display:flex;flex-wrap:wrap;gap:var(--component-gap) 8px}.practice-phone{display:inline-flex;align-items:center;justify-content:center;width:var(--phoneme-box-width);height:var(--phoneme-box-height);flex:0 0 var(--phoneme-box-width);padding:0 4px;border:1.5px solid #006aa7;border-radius:8px;background:#eaf4f7;color:#064678;font-size:18px;font-weight:700}.practice-phone:hover:not(:disabled){background:#d8edf3}.practice-guide-control{display:flex;justify-content:flex-end;margin-bottom:var(--component-gap)}.practice-guide-trigger{min-height:44px;padding:0 16px;border:2px solid #006aa7;border-radius:9px;background:#006aa7;color:#fff;font-size:15px;font-weight:750;box-shadow:0 3px #03446f}.practice-guide-trigger:hover{background:#005b90}.practice-guide,.phone-word-dialog{position:fixed;top:var(--card-top, 16px);bottom:auto;width:min(460px,calc(100% - 32px));height:auto;min-height:0;max-height:calc(100dvh - var(--card-top, 16px) - 16px);margin:0 auto;padding:26px;overflow-y:auto;border:2px solid #006aa7;border-radius:18px;background:#fffdf6;color:#064678;box-shadow:none}.practice-guide::backdrop,.phone-word-dialog::backdrop{background:#0646788c}.practice-guide h2,.phone-word-dialog h2{margin:0 38px var(--component-gap) 0;font-size:21px}.practice-guide-close{position:absolute;top:12px;right:14px;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:#064678;font-size:28px;line-height:1}.practice-guide-close:hover{background:#d8edf3}.practice-guide-step+.practice-guide-step{margin-top:var(--component-gap)}.practice-guide-step svg{display:block;width:100%;max-width:300px;height:auto;margin:auto}.practice-guide-step p{margin:var(--component-gap) 0 0;font-size:14px;line-height:1.5}.phone-word-dialog{width:min(380px,calc(100% - 32px))}.phone-word-list{display:flex;flex-direction:column;gap:var(--component-gap);max-height:max(44px,calc(100dvh - var(--card-top, 16px) - 130px));margin:0;padding:0 8px 2px 2px;overflow-y:auto;overscroll-behavior:contain;list-style:none}.phone-word-heading-phone,.phone-word-list button{min-height:44px;padding:7px 12px;border:1.5px solid #9ec5d2;border-radius:8px;background:#eaf4f7;color:#064678;font-size:17px;font-weight:700}.phone-word-heading-phone{display:inline-flex;align-items:center;justify-content:center;width:var(--phoneme-box-width);height:var(--phoneme-box-height);min-height:0;padding:0 4px;vertical-align:middle}.phone-word-list button{width:100%;text-align:left}.phone-word-list button:hover{background:#d8edf3}:root{--component-gap: 12px;--phoneme-box-width: 42px;--phoneme-box-height: 44px;font-family:system-ui,sans-serif;color:#064678;background:#fecc00;font-synthesis:none;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px}button,select{font:inherit}button{cursor:pointer}button:disabled,select:disabled{opacity:.55;cursor:not-allowed}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #006aa7;outline-offset:3px}.app-shell{position:relative;min-height:100vh;overflow:hidden;background:#fecc00}.ambient-waves{position:absolute;inset:0;overflow:hidden;pointer-events:none}.ambient-waves span{position:absolute;left:-7vw;bottom:-36vw;width:115vw;height:44vw;min-height:250px;border-radius:48% 52% 0 0;background:#f7bf00;opacity:.32;animation:drift 15s ease-in-out infinite}.ambient-waves span:nth-child(2){bottom:-40vw;background:#ffdc53;animation-delay:-5s}.ambient-waves span:nth-child(3){bottom:-44vw;background:#f5bb00;animation-delay:-10s}@keyframes drift{50%{transform:translate(2vw,-20px) rotate(2deg)}}.site-header,main{position:relative;z-index:1}.site-header{display:flex;justify-content:center;max-width:860px;margin:0 auto;padding:var(--component-gap) 22px var(--component-gap)}.brand{display:inline-flex;align-items:center;text-decoration:none}.brand-logo{display:block;width:280px;max-width:100%;height:auto;filter:drop-shadow(0 4px 2px rgb(0 55 85 / 80%))}main{display:flex;flex-direction:column;gap:var(--component-gap);max-width:860px;margin:0 auto;padding:0 22px 40px}.practice-card{--practice-panel-min-height: 380px;position:relative;min-height:var(--practice-panel-min-height);background:#fffdf6;border:2px solid #006aa7;border-radius:18px;box-shadow:6px 7px #006aa7;padding:32px}.practice-layout{display:grid;grid-template-columns:1fr 1fr;gap:32px}.field-label{display:block;color:#064678;font-size:14px;font-weight:750}.privacy-note{margin:0;color:#07568b;font-size:11px;text-align:center}@media(max-width:680px){.site-header{padding-inline:18px}.brand-logo{width:240px}main{padding:0 16px 32px}.practice-card{padding:23px 20px;border-radius:13px;box-shadow:4px 5px #006aa7}.practice-layout{grid-template-columns:1fr;gap:var(--component-gap)}.word-display{min-height:84px}}@media(prefers-reduced-motion:reduce){.confetti-burst{display:none}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.analysing-dots span,.sound-waves.active span{animation:none!important}}
@media (prefers-reduced-motion: reduce) {
}

.voice-button {background-color:#eaf4f7;background-image:linear-gradient(180deg,rgba(255,255,255,.8),rgba(255,255,255,.24) 48%,transparent 49%);box-shadow:inset 0 1px 0 #fff,inset 0 -1px 2px rgba(0,75,112,.06);}
.voice-button:hover:not(:disabled),.voice-button.is-playing {background:#d8edf3;background-image:linear-gradient(180deg,rgba(255,255,255,.8),rgba(255,255,255,.24) 48%,transparent 49%);}

:root .record-button {
  --record-face: #006aa7;
  --record-top: #147fb2;
  --record-bottom: #064f84;
  --record-shadow: rgb(0 76 119 / 24%);
  --record-bevel: inset 0 1.333px 1px rgb(255 255 255 / 32%), inset 0 -1.333px 2px rgb(0 0 0 / 9%);
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  max-width: 64px;
  max-height: 64px;
  aspect-ratio: 1;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  padding: 5px;
  margin: 18px auto 0;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;
  background-color: var(--record-face);
  background-image: linear-gradient(180deg, var(--record-top), var(--record-face) 60%, var(--record-bottom));
  box-shadow: 0 0 0 3.333px #eaf0f2, 0 0 10.667px 1px var(--record-shadow), var(--record-bevel);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.01em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease, box-shadow 160ms ease;
}
:root .record-button > svg,:root .record-button > span,:root .record-button > .sound-waves {
  position: relative;
  z-index: 1;
}
:root .record-button > svg {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgb(0 35 55 / 12%));
}
:root .record-button > svg.record-rim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgb(255 255 255 / 20%);
  stroke-width: 1;
  filter: none;
  pointer-events: none;
}
:root .record-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3.333px #eaf0f2, 0 0 13.333px 1px var(--record-shadow), var(--record-bevel);
}
:root .record-button:active:not(:disabled) {
  transform: translateY(1px);
}
:root .record-button.is-waiting {
  --record-face: #b42323;
  --record-top: #c63e49;
  --record-bottom: #92212b;
  --record-shadow: rgb(128 26 38 / 22%);
  opacity: 1;
  cursor: wait;
}
:root .record-button.is-recording {
  --record-face: #117b36;
  --record-top: #238b4a;
  --record-bottom: #0c6230;
  --record-shadow: rgb(14 92 45 / 22%);
}
:root .record-button.is-analysing {
  font-size: 10px;
  letter-spacing: 0;
  opacity: 1;
  cursor: pointer;
}
:root .record-button .sound-waves {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.667px;
  height: 29.333px;
}
:root .record-button .sound-waves span {
  width: 2px;
  height: calc(2.667px + var(--voice-level, 0) * var(--h));
  border-radius: 8px;
  background: currentColor;
  transition: height 60ms linear;
}
@media (prefers-reduced-motion: reduce){:root .record-button:hover,:root .record-button:active {
    transform: none;
  }
:root .record-button .sound-waves span {
    height: var(--h);
    opacity: calc(0.3 + var(--voice-level, 0) * 0.7);
    transition: none;
  }}
:root .record-button .sound-waves span {animation:none;}
