:root {
  color: #202b2c;
  background: #f5f1e8;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", Avenir, system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; background: radial-gradient(circle at 92% 4%, #dce8de 0, transparent 26rem), #f5f1e8; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #4c7c73; outline-offset: 3px; }

.app-shell { width: min(100%, 43rem); margin: 0 auto; padding: 1.15rem 1.1rem 3rem; }

.intro { margin: 2.3rem .35rem 2.5rem; max-width: 36rem; }
.eyebrow { margin: 0 0 .55rem; color: #bb533d; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -.055em; }
h1 { max-width: 10ch; margin-bottom: .85rem; font-family: Georgia, "Iowan Old Style", serif; font-size: clamp(2.65rem, 11vw, 4.4rem); font-weight: 500; line-height: .97; }

.practice-card { position: relative; padding: 1.35rem; border: 1px solid rgba(32, 43, 44, .09); border-radius: 1.45rem; background: #fffdf8; box-shadow: 0 1rem 2.5rem rgba(47, 57, 52, .08); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-label { margin: 0; color: #68736e; font-size: .83rem; font-weight: 750; }
.word-display { display: flex; align-items: center; min-height: 3.75rem; margin: .55rem 0 .15rem; overflow-wrap: anywhere; color: #202b2c; font-family: Georgia, "Iowan Old Style", serif; font-size: clamp(2rem, 9vw, 3.25rem); font-weight: 600; letter-spacing: .025em; line-height: 1.1; }
.word-redaction { display: none; width: var(--redaction-width, 10ch); max-width: 100%; height: 2.55rem; filter: drop-shadow(0 .12rem .08rem rgba(18, 29, 27, .18)); }
.word-display.is-hidden .word-redaction { display: block; }
.word-display.is-hidden #word-text { display: none; }

.listen-button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; min-height: 4.1rem; border: 0; border-radius: .9rem; background: #dfece1; color: #244b43; font-weight: 800; transition: transform .15s ease, background .15s ease; }
.listen-button:hover { background: #d1e5d5; }
.listen-button:active { transform: scale(.985); }
.listen-icon { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #47756b; color: #fff; font-size: 1.2rem; transform: rotate(180deg); }
.audio-status { min-height: 1.25rem; margin: .45rem 0 1.05rem; color: #a04734; font-size: .78rem; }

form label { display: block; margin-bottom: .5rem; color: #53605a; font-size: .8rem; font-weight: 750; }
.answer-row { display: grid; grid-template-columns: 1fr auto; gap: .55rem; }
input { width: 100%; min-width: 0; min-height: 3.35rem; padding: 0 .85rem; border: 1px solid #cbd4cc; border-radius: .75rem; background: #fff; color: #202b2c; font-size: 1.08rem; }
input::placeholder { color: #9ca79f; }
.check-button { min-height: 3.35rem; padding: 0 1rem; border: 0; border-radius: .75rem; background: #254c44; color: white; font-weight: 800; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .54; }
.form-message { min-height: 1.15rem; margin: .45rem 0 0; color: #a04734; font-size: .8rem; }
.result { margin-top: 1rem; padding: .9rem 1rem; border-radius: .75rem; font-size: .93rem; line-height: 1.4; }
.result.correct { background: #e5f2e4; color: #285040; }
.result.incorrect { background: #fae9e2; color: #873d2c; }
.correct-dialog { width: min(calc(100% - 2.2rem), 23rem); padding: 1.6rem; border: 0; border-radius: 1.3rem; background: #fffdf8; color: #244b43; box-shadow: 0 1.5rem 4rem rgba(26, 42, 37, .24); text-align: center; }
.correct-dialog::backdrop { background: rgba(31, 48, 43, .38); backdrop-filter: blur(3px); }
.correct-dialog p { margin: 0; font-family: Georgia, "Iowan Old Style", serif; font-size: clamp(2.5rem, 11vw, 3.4rem); font-weight: 600; letter-spacing: -.06em; }
.correct-dialog button { width: 100%; min-height: 3.3rem; margin-top: 1.4rem; border: 0; border-radius: .8rem; background: #254c44; color: #fff; font-weight: 850; }

.daily-progress { margin-top: 2.35rem; }
.progress-track { width: 100%; height: .72rem; overflow: hidden; border-radius: 999px; background: #d7dfd7; }
.progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: #47756b; transition: width .4s ease; }
.progress-label { margin: .55rem 0 0; color: #68766f; font-size: .75rem; font-weight: 800; text-align: right; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: 16%; left: 50%; width: .5rem; height: .9rem; border-radius: .12rem; background: hsl(var(--hue) 71% 59%); animation: confetti-fall 1.5s cubic-bezier(.15,.7,.25,1) forwards; animation-delay: calc(var(--piece) * -45ms); }
@keyframes confetti-fall { from { transform: translate(-50%, 0) rotate(0deg); opacity: 1; } to { transform: translate(calc((var(--piece) - 14) * 1.8rem), 20rem) rotate(540deg); opacity: 0; } }

@media (min-width: 44rem) { .app-shell { padding: 1.6rem 1.5rem 4rem; } .practice-card { padding: 1.8rem; } }
