/* কথাপাখি: ইংরেজিতে বলার অনুশীলন */
.kp-page { background: #f3f8ee; }
.kp-hero { background: radial-gradient(120% 140% at 85% 0%, #2f8f5b 0%, #1d5a3c 55%, #143f2b 100%); color: #fff; padding: 2.2rem 0 2.4rem; }
.kp-hero-in { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; }
.kp-hero-bird { width: clamp(96px, 16vw, 150px); filter: drop-shadow(0 10px 14px rgba(0,0,0,.25)); }
.kp-hero-bird .kp-bird { width: 100%; height: auto; animation: kp-hop 2.6s ease-in-out infinite; }
.kp-kicker { margin: 0; font-size: .95rem; opacity: .85; }
.kp-hero h1 { color: #fff; margin: .1rem 0 .4rem; font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.1; }
.kp-hero h1, .kp-sub { font-family: "Nunito", system-ui, sans-serif; }
.kp-sub { margin: -.2rem 0 .6rem; font-size: 1.3rem; font-weight: 700; color: #ffe08a; }
.kp-lead { margin: 0; max-width: 40rem; font-size: 1.08rem; line-height: 1.6; opacity: .95; }
.kp-today { display: inline-block; margin: .9rem 0 0; padding: .3rem .9rem; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 600; }
.kp-body { padding: 1.4rem 0 3rem; }
.kp-warn { margin-bottom: 1rem; padding: .9rem 1.1rem; border-radius: 12px; background: #fff4d6; border: 1px solid #e6c25c; color: #4a3600; line-height: 1.55; }
.kp-units { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem .1rem .7rem; scroll-snap-type: x proximity; }
.kp-units button { position: relative; flex: 0 0 auto; display: grid; justify-items: start; gap: .1rem; min-width: 7.5rem; max-width: 9.5rem; padding: .55rem .75rem; border: 1px solid #cfe0c6; border-radius: 12px; background: #fff; font: inherit; text-align: left; color: #1f3a2a; cursor: pointer; scroll-snap-align: start; }
.kp-units button span { font-weight: 800; font-size: 1.15rem; color: #2f8f5b; }
.kp-units button small { font-size: .78rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.kp-units button i { position: absolute; top: .35rem; right: .45rem; font-style: normal; font-size: .75rem; font-weight: 700; color: #b37400; }
.kp-units button[aria-pressed="true"] { background: #2f8f5b; border-color: #2f8f5b; color: #fff; }
.kp-units button[aria-pressed="true"] span, .kp-units button[aria-pressed="true"] i { color: #fff; }
.kp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin: .9rem 0 1rem; }
.kp-head h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.6rem); }
.kp-modes { display: flex; flex-wrap: wrap; gap: .4rem; }
.kp-modes button { padding: .5rem .95rem; border: 1px solid #cfe0c6; border-radius: 999px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: #1f3a2a; }
.kp-modes button[aria-selected="true"] { background: #143f2b; border-color: #143f2b; color: #fff; }
.kp-card { background: #fff; border-radius: 20px; padding: 1.2rem 1.4rem 1.3rem; box-shadow: 0 14px 30px -18px rgba(20,63,43,.45); border: 1px solid #dde9d5; }
.kp-top { display: flex; align-items: center; gap: .9rem; margin-bottom: .6rem; }
.kp-count { font-weight: 700; color: #4b6a57; }
.kp-dots { display: flex; flex-wrap: wrap; gap: .3rem; }
.kp-dots i { width: .7rem; height: .7rem; border-radius: 50%; background: #dfe9d9; }
.kp-dots i.on { background: #2f8f5b; }
.kp-dots i.cur { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f0a020; }
.kp-main { display: grid; grid-template-columns: 170px 1fr; gap: 1.2rem; align-items: start; }
.kp-side { display: grid; justify-items: center; gap: .3rem; }
.kp-side .kp-bird { width: 120px; height: auto; background: none; }
.kp-bird.kp-happy { animation: kp-hop .7s ease-in-out 3; }
.kp-bird.kp-listen .kp-wing { animation: kp-flap .35s ease-in-out infinite; transform-origin: 56px 78px; }
.kp-bubble { position: relative; margin: 0; padding: .6rem .8rem; border-radius: 14px; background: #f0f7ea; color: #1f3a2a; font-size: .95rem; line-height: 1.45; text-align: center; }
.kp-bubble::before { content: ""; position: absolute; top: -8px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: #f0f7ea; }
.kp-emoji { font-size: 2.6rem; line-height: 1; margin-bottom: .2rem; }
.kp-en { margin: 0 0 .4rem; font: 800 clamp(1.5rem, 4.2vw, 2.3rem)/1.35 "Nunito", system-ui, sans-serif; color: #12306e; }
.kp-en span { border-radius: 6px; padding: 0 .08em; transition: background .15s, color .15s; }
.kp-en span.speaking { background: #ffe58a; }
.kp-en span.good { background: #d5f2dc; color: #17703a; }
.kp-en span.miss { background: #fff1c2; color: #8a5a00; text-decoration: underline wavy #e0a400; text-underline-offset: 5px; }
.kp-bn { margin: 0 0 .5rem; font-size: 1.15rem; color: #3c4f44; }
.kp-hint { margin: .2rem 0; font-size: .95rem; color: #5a6b60; }
.kp-extra { margin: .4rem 0 0; font: 600 1.05rem/1.5 "Nunito", system-ui, sans-serif; color: #35526e; }
.kp-heard { margin: .8rem 0 0; padding: .55rem .8rem; border-left: 4px solid #8fc6a3; background: #f6faf3; border-radius: 8px; color: #2d4436; font-size: 1rem; }
.kp-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.1rem; }
.kp-btn { min-height: 3.1rem; padding: .6rem 1.4rem; border: 0; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1.08rem; cursor: pointer; transition: transform .12s ease; }
.kp-btn:active { transform: scale(.97); }
.kp-btn:disabled { opacity: .45; cursor: not-allowed; }
.kp-listen { background: #e6f0ff; color: #12306e; }
.kp-slow { background: #eef2f7; color: #12306e; min-width: 3.4rem; padding-inline: .9rem; }
.kp-mic { background: #2f8f5b; color: #fff; padding-inline: 1.9rem; box-shadow: 0 8px 16px -8px #2f8f5b; }
.kp-mic.on { background: #c4323f; box-shadow: 0 0 0 0 rgba(196,50,63,.5); animation: kp-pulse 1.2s infinite; }
.kp-btn:focus-visible, .kp-modes button:focus-visible, .kp-units button:focus-visible, .kp-link:focus-visible { outline: 3px solid #f0a020; outline-offset: 3px; }
.kp-nav { display: flex; justify-content: space-between; margin-top: 1rem; }
.kp-link { border: 0; background: none; font: inherit; font-weight: 700; color: #2f6a4a; cursor: pointer; padding: .4rem .2rem; }
.kp-link:disabled { opacity: .35; cursor: default; }
.kp-prompt { margin: 0 0 .7rem; font-size: 1.25rem; font-weight: 700; color: #1f3a2a; }
.kp-model { padding: .7rem .9rem; border-radius: 12px; background: #f6faf3; }
.kp-model p { margin: 0 0 .3rem; font-weight: 600; }
.kp-model ul { margin: 0; padding-left: 1.2rem; font: 600 1.05rem/1.6 "Nunito", system-ui, sans-serif; color: #12306e; }
.kp-timer { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.kp-timer span { font: 800 1.6rem/1 "Nunito", system-ui, sans-serif; color: #143f2b; min-width: 4rem; }
.kp-timer div { flex: 1; height: 12px; border-radius: 9px; background: #e3eddd; overflow: hidden; }
.kp-timer i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2f8f5b, #f0a020); }
.kp-transcript { max-height: 9rem; overflow: auto; font-family: "Nunito", system-ui, sans-serif; }
.kp-result { margin: .7rem 0 0; font-size: 1.2rem; }
.kp-help { margin-top: 1.4rem; padding: .9rem 1.1rem; border-radius: 14px; background: #fff; border: 1px solid #dde9d5; line-height: 1.6; }
.kp-help summary { cursor: pointer; font-weight: 700; }
@keyframes kp-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes kp-flap { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(-45deg); } }
@keyframes kp-pulse { 0% { box-shadow: 0 0 0 0 rgba(196,50,63,.5); } 70% { box-shadow: 0 0 0 14px rgba(196,50,63,0); } 100% { box-shadow: 0 0 0 0 rgba(196,50,63,0); } }
@media (max-width: 640px) {
  .kp-hero-in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .kp-main { grid-template-columns: 1fr; }
  .kp-side { grid-template-columns: 64px 1fr; align-items: center; justify-items: start; }
  .kp-side .kp-bird { width: 64px; }
  .kp-bubble { text-align: left; }
  .kp-bubble::before { top: 50%; left: -8px; margin: -8px 0 0; border: 8px solid transparent; border-left: 0; border-right-color: #f0f7ea; }
  .kp-card { padding: 1rem; }
  .kp-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .kp-hero-bird .kp-bird, .kp-bird.kp-happy, .kp-bird.kp-listen .kp-wing, .kp-mic.on { animation: none; } }
