.bng-help-button {
  margin: 0 0 14px;
  border: 1px solid #e4aabd;
  border-radius: 24px;
  padding: 9px 14px;
  background: #fff6f8;
  color: #a91f48;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.bng-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #123c2cb8;
}
.bng-modal > div {
  position: relative;
  width: min(620px, 100%);
  max-height: 85vh;
  overflow: auto;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px #0004;
}
.bng-modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #174f38;
  font-size: 2rem;
  cursor: pointer;
}
.bng-round-change {
  margin: 24px 0;
  padding: 30px;
  text-align: center;
  border: 2px solid #d82958;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff6f8, #edf8fd);
}
.bng-round-change b {
  display: block;
  color: #174f38;
  font-family: Georgia, serif;
  font-size: 1.55rem;
}
.bng-flash-actions,
.bng-speech-nav,
.bng-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.bng-speech-count {
  text-align: right;
  color: #d82958;
  font-weight: 900;
}
.bng-example-count {
  margin: 4px 0 12px;
  text-align: right;
  color: #d82958;
  font-weight: 900;
}
.bng-help-audio {
  display: block;
  width: 100%;
  margin-top: 18px;
}
.bng-audio-missing {
  margin: 0;
  color: #7b6b70;
  font-style: italic;
}
.bng-result-actions a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.bng-badge {
  display: inline-grid;
  gap: 6px;
  margin-bottom: 8px;
  padding: 16px 25px;
  border: 2px solid #e5bd48;
  border-radius: 18px;
  background: #fff9df;
  font-size: 2.2rem;
}
.bng-badge strong {
  display: block;
  color: #174f38;
  font-family: Georgia, serif;
  font-size: 1rem;
}
.bng-related {
  max-width: 520px;
  margin: 18px auto;
  padding: 18px;
  border: 1px solid #dce9e2;
  border-radius: 15px;
  background: #fffaf3;
  text-align: left;
}
.bng-related h4 {
  margin: 0 0 10px;
  color: #174f38;
}
.bng-related a {
  display: block;
  padding: 8px 0;
  color: #a91f48;
  font-weight: 800;
  text-decoration: none;
}
.bng-nav {
  gap: 10px;
  flex-wrap: wrap;
}
.bng-flash-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.bng-app {
  --green: #174f38;
  --green2: #2e694a;
  --berry: #d82958;
  --coral: #ef6e68;
  --sky: #edf8fd;
  --cream: #fffaf3;
  --ink: #123c2c;
  --muted: #617268;
  --line: #dce9e2;
  color: var(--ink);
  font-family: Inter, Manrope, system-ui, sans-serif;
  width: min(1120px, calc(100vw - 28px));
  margin: 26px 50%;
  transform: translateX(-50%);
}
.bng-app * {
  box-sizing: border-box;
}
.bng-welcome {
  max-width: 830px;
  margin: auto;
  padding: 46px;
  background: linear-gradient(145deg, var(--sky), #fff 55%, var(--cream));
  border: 1px solid #d9ece4;
  border-radius: 28px;
  box-shadow: 0 18px 55px #174f3818;
  position: relative;
  overflow: hidden;
}
.bng-welcome:after {
  content: "❀";
  position: absolute;
  right: 24px;
  top: 10px;
  font-size: 7rem;
  color: #ef6e6822;
}
.bng-welcome > span,
.bng-eyebrow,
.bng-type {
  color: var(--berry);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bng-welcome h2 {
  font-family: Georgia, serif;
  color: var(--green);
  font-size: 2.5rem;
  margin: 8px 0;
}
.bng-welcome > p {
  color: var(--muted);
  font-size: 1.08rem;
}
.bng-welcome h3 {
  margin: 30px 0 13px;
  color: var(--green);
}
.bng-paths {
  display: grid;
  gap: 11px;
}
.bng-paths button {
  display: grid;
  gap: 5px;
  text-align: left;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  transition: 0.2s;
}
.bng-paths button:hover {
  border-color: var(--berry);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px #d8295815;
}
.bng-paths b {
  font-size: 1rem;
}
.bng-paths small {
  color: var(--muted);
}
.bng-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 30px;
}
.bng-side {
  padding: 28px 12px;
}
.bng-side h2 {
  font-family: Georgia, serif;
  color: var(--green);
  font-size: 2.2rem;
  line-height: 1.08;
  margin: 10px 0;
}
.bng-side > p,
.bng-lead {
  color: var(--muted);
  line-height: 1.6;
}
.bng-path-change {
  border: 1px solid #a9c5b5;
  background: transparent;
  color: var(--green);
  border-radius: 30px;
  padding: 8px 13px;
  font-weight: 800;
  cursor: pointer;
}
.bng-side ol {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 8px;
}
.bng-side li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #71857a;
  font-size: 0.83rem;
}
.bng-side li i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e7f2ec;
  font-style: normal;
  font-weight: 900;
}
.bng-side li.is-active {
  color: var(--green);
  font-weight: 900;
}
.bng-side li.is-active i {
  background: var(--berry);
  color: #fff;
}
.bng-card {
  background: #fff;
  border: 1px solid #dfeae4;
  border-radius: 25px;
  box-shadow: 0 18px 55px #174f3817;
  overflow: hidden;
}
.bng-card > header {
  padding: 21px 28px 17px;
  border-bottom: 1px solid #e7eee9;
  background: linear-gradient(90deg, #fff, var(--sky));
}
.bng-card > header > div {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 850;
}
.bng-card > header b {
  color: var(--berry);
}
.bng-progress {
  display: block;
  height: 7px;
  margin-top: 13px;
  background: #e7f0eb;
  border-radius: 20px;
  overflow: hidden;
}
.bng-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green2), var(--berry));
  border-radius: 20px;
  transition: width 0.3s;
}
.bng-stage {
  min-height: 540px;
  padding: 32px;
}
.bng-stage h3 {
  font-family: Georgia, serif;
  color: var(--green);
  font-size: 1.65rem;
  line-height: 1.3;
  margin: 9px 0;
}
.bng-prompt {
  font-size: 1.08rem;
  line-height: 1.55;
}
.bng-options {
  display: grid;
  gap: 10px;
}
.bng-options button,
.bng-bank button {
  border: 1.5px solid #d5e3db;
  background: #fff;
  border-radius: 13px;
  padding: 14px 16px;
  text-align: left;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.bng-options button:hover {
  border-color: var(--berry);
}
.bng-options button.is-good {
  border-color: #27845c;
  background: #effaf4;
  color: #17653f;
}
.bng-options button.is-bad {
  border-color: #c93648;
  background: #fff1f2;
  color: #9d2130;
}
.bng-feedback {
  margin-top: 17px;
  padding: 15px 17px;
  border-radius: 14px;
  background: var(--sky);
  line-height: 1.55;
}
.bng-feedback[hidden] {
  display: none;
}
.bng-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}
.bng-primary,
.bng-secondary {
  border: 0;
  border-radius: 30px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.bng-primary {
  background: var(--berry);
  color: #fff;
}
.bng-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.bng-secondary {
  background: #e9f4ee;
  color: var(--green);
}
.bng-bank,
.bng-sentence,
.bng-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.bng-bank {
  margin: 18px 0;
}
.bng-bank button:disabled {
  opacity: 0.25;
}
.bng-sentence {
  min-height: 58px;
  padding: 11px;
  border: 1.5px dashed #9dbca9;
  background: #f7fbf8;
  border-radius: 14px;
}
.bng-sentence span {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 10px 13px;
  border-radius: 10px;
}
.bng-dialog,
.bng-grammar {
  margin: 16px 0;
  padding: 18px;
  background: var(--sky);
  border-radius: 15px;
}
.bng-grammar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-left: 4px solid var(--berry);
}
.bng-grammar span {
  font-size: 1.5rem;
}
.bng-grammar p {
  margin: 0;
  line-height: 1.65;
}
.bng-stage textarea {
  width: 100%;
  min-height: 120px;
  padding: 15px;
  border: 1.5px solid #cadfd3;
  border-radius: 14px;
  font: inherit;
  resize: vertical;
  outline: none;
}
.bng-stage textarea:focus {
  border-color: var(--berry);
  box-shadow: 0 0 0 3px #d8295815;
}
.bng-tools {
  margin: 13px 0;
}
.bng-recorder {
  text-align: center;
  padding: 24px;
  border: 1.5px solid #d1e1d8;
  border-radius: 18px;
  background: #fbfdfc;
}
.bng-mic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 40px;
  background: var(--berry);
  color: #fff;
  padding: 13px 19px;
  font: inherit;
  cursor: pointer;
}
.bng-mic span {
  font-size: 1.4rem;
}
.bng-mic.is-live {
  animation: bng-pulse 1s infinite;
  background: #b81937;
}
.bng-recorder time {
  display: block;
  color: var(--berry);
  font-size: 1.2rem;
  font-weight: 900;
}
.bng-recorder audio {
  display: block;
  width: min(100%, 480px);
  margin: 16px auto 0;
}
.bng-recorder audio[hidden] {
  display: none;
}
@keyframes bng-pulse {
  50% {
    box-shadow: 0 0 0 13px #d8295822;
  }
}
.bng-round {
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  margin: 10px;
}
.bng-flash {
  height: 300px;
  position: relative;
  cursor: pointer;
  perspective: 1000px;
}
.bng-flash-front,
.bng-flash-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 30px;
  text-align: center;
  border-radius: 22px;
  backface-visibility: hidden;
  transition: transform 0.55s;
  border: 1px solid #d9e7df;
  box-shadow: 0 12px 32px #174f3816;
}
.bng-flash-front {
  background: linear-gradient(145deg, #fff, var(--sky));
}
.bng-flash-back {
  background: linear-gradient(145deg, var(--cream), #fff);
  transform: rotateY(180deg);
}
.bng-flash.is-flipped .bng-flash-front {
  transform: rotateY(180deg);
}
.bng-flash.is-flipped .bng-flash-back {
  transform: rotateY(360deg);
}
.bng-flash strong {
  font-family: Georgia, serif;
  color: var(--green);
  font-size: 1.8rem;
}
.bng-flash small {
  color: var(--muted);
}
.bng-flash p {
  margin: 0;
}
.bng-ratings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 16px;
}
.bng-ratings[hidden] {
  display: none;
}
.bng-ratings button {
  border: 0;
  border-radius: 13px;
  padding: 13px 9px;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}
.bng-ratings [data-rate="green"] {
  background: #27845c;
}
.bng-ratings [data-rate="orange"] {
  background: #dc8428;
}
.bng-ratings [data-rate="red"] {
  background: #c93648;
}
.bng-flash-result {
  text-align: center;
}
.bng-flash-result h4 {
  font-family: Georgia, serif;
  color: var(--green);
  font-size: 1.5rem;
}
.bng-flash-result > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bng-flash-result span {
  padding: 22px 10px;
  border-radius: 16px;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
}
.bng-flash-result small {
  display: block;
  font-size: 0.75rem;
}
.bng-flash-result .green {
  background: #27845c;
}
.bng-flash-result .orange {
  background: #dc8428;
}
.bng-flash-result .red {
  background: #c93648;
}
.bng-video {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 17px;
}
.bng-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.bng-image {
  display: block;
  max-width: 100%;
  max-height: 420px;
  margin: 15px auto;
  border-radius: 17px;
}
.bng-result {
  text-align: center;
  padding: 30px;
}
.bng-flower {
  font-size: 4rem;
}
.bng-summary {
  max-width: 520px;
  margin: 20px auto;
  padding: 18px;
  border-radius: 15px;
  background: var(--sky);
  text-align: left;
  line-height: 1.6;
}
@media (max-width: 800px) {
  .bng-app {
    width: min(100%, calc(100vw - 18px));
    margin: 10px 50%;
  }
  .bng-welcome {
    padding: 28px 20px;
  }
  .bng-welcome h2 {
    font-size: 2rem;
  }
  .bng-shell {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .bng-side {
    padding: 15px 6px;
  }
  .bng-side h2 {
    font-size: 1.8rem;
  }
  .bng-side > p,
  .bng-side ol {
    display: none;
  }
  .bng-card > header {
    padding: 18px 20px;
  }
  .bng-stage {
    min-height: 540px;
    padding: 24px 18px;
  }
  .bng-stage h3 {
    font-size: 1.4rem;
  }
  .bng-ratings {
    grid-template-columns: 1fr;
  }
  .bng-flash {
    height: 280px;
  }
  .bng-flash-result > div {
    grid-template-columns: 1fr;
  }
  .bng-options button {
    min-height: 52px;
  }
}
