.bng-fc-trial {
  box-sizing: border-box;
  width: min(100%, 820px);
  margin: 20px auto;
  color: #203040;
  font-family: inherit;
  background: #fff;
  border: 1px solid #dce4ea;
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(32, 48, 64, .09);
}

.bng-fc-trial *,
.bng-fc-trial *::before,
.bng-fc-trial *::after { box-sizing: border-box; }

.bng-fc-trial [hidden] { display: none !important; }

.bng-fc-trial__start {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 7vw, 64px);
  text-align: center;
}

.bng-fc-trial__eyebrow,
.bng-fc-trial__step {
  margin: 0 0 10px;
  color: #25765f;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bng-fc-trial h2 {
  margin: 0;
  color: #203040;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  line-height: 1.2;
}

.bng-fc-trial h2:focus { outline: none; }
.bng-fc-trial h2:focus-visible { outline: 3px solid #f0b429; outline-offset: 5px; }

.bng-fc-trial__lead {
  max-width: 560px;
  margin: 16px 0 28px;
  color: #526272;
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  line-height: 1.55;
}

.bng-fc-trial button {
  min-height: 48px;
  padding: 11px 22px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  border-radius: 11px;
}

.bng-fc-trial button:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 3px;
}

.bng-fc-trial__primary {
  min-width: 160px;
  color: #fff;
  background: #25765f;
  border: 2px solid #25765f;
}

.bng-fc-trial__secondary {
  color: #203040;
  background: #fff;
  border: 2px solid #b7c4cc;
}

.bng-fc-trial__content { padding: clamp(20px, 5vw, 42px); }

.bng-fc-trial__dialogue-block + .bng-fc-trial__dialogue-block {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid #dce4ea;
}

.bng-fc-trial__header {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
}

.bng-fc-trial__header .bng-fc-trial__dialogue-instruction {
  margin: 12px 0 0;
  color: #526272;
  font-size: .95rem;
  line-height: 1.5;
}

.bng-fc-trial__header .bng-fc-trial__situation {
  max-width: 620px;
  margin: 14px auto 0;
  color: #334758;
  font-size: .96rem;
  line-height: 1.48;
}

.bng-fc-trial__header .bng-fc-trial__help-hint {
  margin-top: 8px;
  color: #25765f;
  font-size: .84rem;
  font-weight: 650;
}

.bng-fc-trial__audio {
  max-width: 620px;
  margin: 15px auto 0;
  padding: 12px;
  text-align: left;
  background: #f6faf8;
  border: 1px solid #c7dfd6;
  border-radius: 13px;
}

.bng-fc-trial__audio-title {
  margin: 0 0 9px;
  color: #334758;
  font-size: .91rem;
  font-weight: 750;
}

.bng-fc-trial__audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bng-fc-trial .bng-fc-trial__audio-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 7px 12px;
  color: #fff;
  background: #25765f;
  border: 2px solid #25765f;
  border-radius: 9px;
  font-size: .86rem;
}

.bng-fc-trial .bng-fc-trial__audio-restart {
  color: #334758;
  background: #fff;
  border-color: #b7c4cc;
}

.bng-fc-trial__audio-timeline {
  display: flex;
  flex: 1 1 220px;
  align-items: center;
  gap: 9px;
  min-width: 150px;
}

.bng-fc-trial__audio-timeline input[type="range"] {
  flex: 1 1 auto;
  min-width: 70px;
  accent-color: #25765f;
}

.bng-fc-trial__audio-time {
  flex: 0 0 auto;
  color: #526272;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}

.bng-fc-trial__audio-status {
  margin: 8px 0 0;
  color: #a33131;
  font-size: .84rem;
}

.bng-fc-trial__translation-all { margin-top: 13px; }

.bng-fc-trial__dialogue {
  display: grid;
  gap: 8px;
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.bng-fc-trial__turn {
  width: min(88%, 580px);
  margin: 0;
  padding: 10px 13px;
  background: #f1f7fb;
  border: 1px solid #cbdde8;
  border-radius: 16px 16px 16px 5px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.bng-fc-trial__turn--b {
  justify-self: end;
  background: #edf8f3;
  border-color: #c7dfd6;
  border-radius: 16px 16px 5px 16px;
}

.bng-fc-trial__turn.is-audio-active {
  border-color: #f0a51b;
  box-shadow: 0 0 0 3px rgba(240, 165, 27, .25);
  transform: translateY(-1px);
}

.bng-fc-trial__turn p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.02rem, 2.7vw, 1.16rem);
  line-height: 1.48;
}

.bng-fc-trial__speaker-name { margin-right: 5px; color: #25765f; font-size: .82em; }

.bng-fc-trial__expression {
  display: inline;
  color: inherit;
  font-weight: 750;
  border-bottom: 2px dotted #25765f;
}

.bng-fc-trial__reveal {
  margin-top: 7px;
  padding: 7px 8px;
  cursor: default;
  background: #fff;
  border-radius: 10px;
}

.bng-fc-trial__translation { width: 100%; border: 1px solid #dce4ea; }
.bng-fc-trial__reveal > strong { display: block; margin-bottom: 4px; color: #526272; font-size: .76rem; }
.bng-fc-trial__reveal p { font-size: .91rem; line-height: 1.48; }

.bng-fc-trial__notes {
  max-width: 700px;
  margin: 18px auto 0;
  overflow: hidden;
  background: #fffaf0;
  border: 1px solid #ead7a5;
  border-radius: 12px;
}

.bng-fc-trial__notes > summary,
.bng-fc-trial__note > summary {
  cursor: pointer;
  font-weight: 750;
  color: #334758;
}

.bng-fc-trial__notes > summary { padding: 12px 14px; }
.bng-fc-trial__notes[open] > summary { border-bottom: 1px solid #ead7a5; }
.bng-fc-trial__notes-list { display: grid; gap: 7px; padding: 10px; }
.bng-fc-trial__note { background: #fff; border: 1px solid #e3e8ec; border-radius: 9px; }
.bng-fc-trial__note > summary { padding: 9px 11px; font-size: .94rem; }
.bng-fc-trial__note[open] > summary { color: #25765f; border-bottom: 1px solid #e3e8ec; }
.bng-fc-trial__note p { margin: 0; padding: 9px 11px; color: #526272; font-size: .88rem; line-height: 1.48; }

.bng-fc-trial__actions {
  display: flex;
  justify-content: flex-start;
  max-width: 700px;
  margin: 28px auto 0;
}

@media (max-width: 560px) {
  .bng-fc-trial { margin: 12px 0; border-radius: 15px; }
  .bng-fc-trial__start { min-height: 440px; padding: 24px 17px; }
  .bng-fc-trial__content { padding: 22px 13px; }
  .bng-fc-trial__dialogue-block + .bng-fc-trial__dialogue-block {
    margin-top: 32px;
    padding-top: 30px;
  }
  .bng-fc-trial__header { margin-bottom: 22px; }
  .bng-fc-trial__dialogue { gap: 7px; }
  .bng-fc-trial__turn { width: 96%; padding: 9px 11px; }
  .bng-fc-trial__translation { margin-top: 7px; }
  .bng-fc-trial__audio-controls { flex-wrap: wrap; }
  .bng-fc-trial__audio-timeline { flex-basis: 100%; }
  .bng-fc-trial .bng-fc-trial__audio-button { flex: 1 1 auto; }
  .bng-fc-trial__actions .bng-fc-trial__secondary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bng-fc-trial * { scroll-behavior: auto !important; }
}
