@import url("../Best English design system/styles.css");

:root {
  color-scheme: light;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  overflow: hidden;
}

button,
textarea,
input,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  touch-action: manipulation;
}

.workspace {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--be-space-10);
  padding: var(--be-space-4);
  background:
    radial-gradient(70% 90% at 8% 8%, var(--be-primary-tint), transparent 66%),
    radial-gradient(70% 90% at 94% 0%, var(--be-secondary-tint), transparent 58%),
    var(--be-canvas-2);
}

.desktop-story {
  width: min(440px, 38vw);
  padding: var(--be-space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--be-space-3);
  color: var(--be-ink);
  text-decoration: none;
}

/* The mark is the square BE/ST logo: .be-mark supplies the square, the
   brand green and the stacked serif letters, so these rules only size it.
   Per the manual the mark is never rounded, rotated or recoloured. */
.brand__mark {
  width: 58px;
  font-size: 22px;
}

/* .be-wordmark supplies family, small caps, tracking and colour. */
.brand__word {
  font-size: 27px;
}

.desktop-story__tag {
  margin: var(--be-space-9) 0 var(--be-space-3);
}

.desktop-story h1 {
  max-width: 420px;
  margin: 0;
  font-family: var(--be-font-display);
  font-size: clamp(40px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: var(--be-track-tight);
}

.desktop-story > p:not(.be-eyebrow) {
  max-width: 410px;
  margin: var(--be-space-5) 0 var(--be-space-7);
  color: var(--be-ink-2);
  font-size: var(--be-fs-lg);
  line-height: var(--be-lh-lg);
}

.desktop-proof {
  display: flex;
  align-items: center;
  gap: var(--be-space-4);
  margin-top: var(--be-space-4);
}

.desktop-proof__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: var(--be-r-sm);
  background: var(--be-primary-tint);
  color: var(--be-primary-700);
  box-shadow: var(--be-clay-sm);
}

.desktop-proof__icon--secondary {
  background: var(--be-secondary-tint);
  color: var(--be-secondary-600);
}

.desktop-proof strong,
.desktop-proof small {
  display: block;
}

.desktop-proof small {
  margin-top: 2px;
  color: var(--be-ink-2);
  font-size: var(--be-fs-sm);
}

.teacher-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--be-space-4);
  max-width: 330px;
  margin-top: var(--be-space-7);
  padding: var(--be-space-4) var(--be-space-5);
  border-radius: var(--be-r-lg);
  color: var(--be-ink);
  background: var(--be-surface);
  box-shadow: var(--be-clay-sm);
  text-decoration: none;
}

.teacher-shortcut span,
.teacher-shortcut strong {
  display: block;
}

.teacher-shortcut strong {
  margin-top: var(--be-space-1);
}

.app-shell {
  position: relative;
  width: min(430px, 100%);
  height: min(860px, calc(100vh - 32px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 10px solid var(--be-ink);
  border-radius: var(--be-r-2xl);
  background:
    radial-gradient(100% 70% at 4% -5%, var(--be-primary-tint), transparent 60%),
    radial-gradient(100% 68% at 104% 0%, var(--be-secondary-tint), transparent 56%),
    var(--be-canvas);
  box-shadow: var(--be-float-lg), inset 0 0 0 1px var(--be-glass-border);
}

.app-topbar {
  position: relative;
  z-index: 20;
  height: var(--be-topbar-h);
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: var(--be-space-2);
  flex: none;
  padding: max(var(--be-space-2), env(safe-area-inset-top)) var(--be-gutter) var(--be-space-2);
  background: var(--be-glass-strong);
  border-bottom: 1px solid var(--be-glass-border);
  -webkit-backdrop-filter: var(--be-blur);
  backdrop-filter: var(--be-blur);
}

.app-back {
  width: 42px;
  height: 42px;
  grid-column: 1;
  grid-row: 1;
}

.app-back[hidden] {
  display: none !important;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--be-space-2);
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.topbar-brand__mark {
  width: 32px;
  font-size: 12px;
}

.topbar-brand__word {
  font-size: 16px;
}

.app-title {
  display: none;
  margin: 0;
  overflow: hidden;
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h3);
  font-weight: var(--be-w-semibold);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  grid-column: 2;
  grid-row: 1;
}

.app-topbar.is-subview .topbar-brand {
  display: none;
}

.app-topbar.is-subview .app-title {
  display: block;
}

.avatar {
  width: 42px;
  height: 42px;
  justify-self: end;
  grid-column: 3;
  grid-row: 1;
  border: 0;
  border-radius: var(--be-r-pill);
  cursor: pointer;
  background: var(--be-primary);
  color: var(--be-ink-on-accent);
  box-shadow: var(--be-clay-sm);
  font-family: var(--be-font-display);
  font-size: var(--be-fs-base);
  font-weight: var(--be-w-semibold);
}

.app-view {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: var(--be-space-3) var(--be-gutter) calc(var(--be-tabbar-h) + var(--be-space-7));
  scrollbar-width: none;
  outline: none;
}

.app-view::-webkit-scrollbar {
  display: none;
}

.view-enter {
  animation: be-rise var(--be-dur-3) var(--be-ease-out) both;
}

.app-tabbar {
  position: absolute;
  z-index: 30;
  right: var(--be-space-3);
  bottom: max(var(--be-space-3), env(safe-area-inset-bottom));
  left: var(--be-space-3);
  height: 70px;
  border: 1px solid var(--be-glass-border);
  border-radius: var(--be-r-lg);
  box-shadow: var(--be-float);
}

.app-tabbar .be-tab {
  min-width: 54px;
}

.app-tabbar .be-tab__ico {
  height: 29px;
  width: 43px;
}

.screen-heading {
  margin: var(--be-space-2) 0 var(--be-space-5);
}

.screen-heading h2,
.screen-heading p {
  margin: 0;
}

.screen-heading h2 {
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h1);
  line-height: var(--be-lh-h1);
  letter-spacing: var(--be-track-tight);
}

.screen-heading p {
  margin-top: var(--be-space-2);
  color: var(--be-ink-2);
  font-size: var(--be-fs-base);
  line-height: var(--be-lh-base);
}

.home-greeting {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--be-space-4);
  margin: var(--be-space-2) var(--be-space-1) var(--be-space-5);
}

.home-greeting h2,
.home-greeting p {
  margin: 0;
}

.home-greeting h2 {
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h1);
  line-height: var(--be-lh-h1);
  letter-spacing: var(--be-track-tight);
}

.home-greeting p {
  margin-top: var(--be-space-1);
  color: var(--be-ink-2);
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--be-space-1);
  flex: none;
  min-height: 36px;
  padding: 0 var(--be-space-3);
  border-radius: var(--be-r-pill);
  background: var(--be-warning-tint);
  color: var(--be-warning-600);
  box-shadow: var(--be-clay-sm);
  font-family: var(--be-font-sans);
  font-size: var(--be-fs-xs);
  font-weight: var(--be-w-bold);
}

.today-card {
  position: relative;
  overflow: hidden;
  padding: var(--be-space-5);
  cursor: pointer;
}

/* The decorative corner blob that used to bleed off this card belonged to
   the retired soft-UI look. The brand manual has no ornament of that kind —
   flat colour fields and white space carry the design — so it was removed. */

.today-card > * {
  position: relative;
  z-index: 1;
}

.card-meta,
.section-row,
.lesson-meta,
.word-head,
.word-controls,
.feedback-head,
.reading-meta,
.grammar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--be-space-3);
}

.today-card h3 {
  margin: var(--be-space-2) 0 0;
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h2);
  line-height: var(--be-lh-h2);
}

.today-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--be-space-2);
  margin-top: var(--be-space-2);
}

.today-card__footer span:last-child {
  color: var(--be-primary-700);
  font-weight: var(--be-w-bold);
}

.section-row {
  margin: var(--be-space-6) var(--be-space-1) var(--be-space-3);
}

.section-row h3 {
  margin: 0;
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h3);
}

.section-row button {
  border: 0;
  background: transparent;
  color: var(--be-primary-700);
  cursor: pointer;
  font-family: var(--be-font-sans);
  font-weight: var(--be-w-semibold);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--be-bento-gap);
}

.practice-tile {
  min-height: 142px;
  border: 0;
  border-radius: var(--be-r-lg);
  padding: var(--be-space-4);
  cursor: pointer;
  color: var(--be-ink);
  box-shadow: var(--be-clay-sm);
  text-align: left;
  transition: transform var(--be-dur-1) var(--be-ease-spring), filter var(--be-dur-1) var(--be-ease-out);
}

.practice-tile:hover {
  filter: brightness(1.015);
}

.practice-tile:active {
  transform: scale(var(--be-press-scale));
}

.practice-tile--words { background: var(--be-primary-tint); }
.practice-tile--listen { background: var(--be-secondary-tint); }
.practice-tile--read { background: var(--be-success-tint); }
.practice-tile--grammar { background: var(--be-sky-tint); }

.practice-tile__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--be-r-sm);
  background: var(--be-glass-strong);
  box-shadow: var(--be-clay-sm);
}

.practice-tile__icon .be-ico {
  font-size: 23px;
}

.practice-tile h4 {
  margin: var(--be-space-3) 0 var(--be-space-1);
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h3);
  font-weight: var(--be-w-semibold);
}

.practice-tile p {
  margin: 0;
  color: var(--be-ink-2);
  font-size: var(--be-fs-xs);
  line-height: var(--be-lh-xs);
}

.retry-list,
.lesson-list,
.settings-list {
  display: flex;
  flex-direction: column;
  gap: var(--be-space-3);
}

.retry-list .be-row,
.lesson-list .be-row {
  width: 100%;
  border: 0;
  color: var(--be-ink);
  cursor: pointer;
  text-align: left;
}

.lesson-card {
  overflow: hidden;
  padding: 0;
}

.lesson-card__visual {
  height: 132px;
  border-radius: 0;
}

.lesson-card__body {
  padding: var(--be-space-5);
}

.lesson-card h3 {
  margin: var(--be-space-1) 0;
}

.lesson-card p {
  margin: 0 0 var(--be-space-3);
}

.locked-row {
  opacity: .55;
}

.practice-intro {
  padding: var(--be-space-5);
  margin-bottom: var(--be-space-4);
  background: var(--be-primary-tint);
}

.practice-intro h2,
.practice-intro p {
  margin: 0;
}

.practice-intro h2 {
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h2);
}

.practice-intro p {
  margin-top: var(--be-space-2);
  color: var(--be-ink-2);
  line-height: var(--be-lh-base);
}

.word-card {
  border-radius: var(--be-r-lg);
  padding: var(--be-space-5);
}

.word-head {
  align-items: flex-start;
}

.word-head h2,
.word-head p {
  margin: 0;
}

.word-head h2 {
  max-width: 260px;
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h1);
  line-height: var(--be-lh-h1);
  letter-spacing: var(--be-track-tight);
}

.word-head .translation {
  margin-top: var(--be-space-1);
  color: var(--be-ink-2);
}

.word-controls {
  margin: var(--be-space-4) 0;
}

.word-controls__audio {
  display: flex;
  gap: var(--be-space-2);
}

.compact-segmented {
  max-width: 190px;
}

.compact-segmented .be-seg {
  min-width: 44px;
  padding: 0 var(--be-space-3);
}

.example-well {
  padding: var(--be-space-4);
}

.example-well p {
  margin: var(--be-space-1) 0 0;
  line-height: var(--be-lh-base);
}

.inline-term {
  border: 0;
  border-bottom: 2px dotted var(--be-primary);
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: help;
  font: inherit;
  font-weight: var(--be-w-bold);
}

.word-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--be-space-3);
  margin-top: var(--be-space-4);
}

.word-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--be-space-3);
  margin-top: var(--be-space-4);
}

.word-stepper__dots {
  display: flex;
  gap: 6px;
}

.word-stepper__dots i {
  width: 7px;
  height: 7px;
  border-radius: var(--be-r-pill);
  background: var(--be-hairline);
  transition: width var(--be-dur-2) var(--be-ease-spring), background var(--be-dur-2) var(--be-ease-out);
}

.word-stepper__dots i.is-active {
  width: 22px;
  background: var(--be-primary);
}

.task-card h2 {
  margin: var(--be-space-1) 0 var(--be-space-4);
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h2);
  line-height: var(--be-lh-h2);
}

.task-card h2 em {
  color: var(--be-primary-700);
  font-style: normal;
}

.mode-row {
  width: 100%;
  margin-bottom: var(--be-space-4);
}

.mode-row .be-seg {
  flex: 1;
  padding: 0 var(--be-space-2);
}

.sentence-feedback,
.answer-feedback,
.grammar-feedback {
  margin-top: var(--be-space-4);
  padding: var(--be-space-4);
  border-radius: var(--be-r-md);
  box-shadow: var(--be-clay-sm);
}

.feedback--success {
  background: var(--be-success-tint);
}

.feedback--coach {
  background: var(--be-warning-tint);
}

.feedback-head {
  justify-content: flex-start;
  align-items: flex-start;
}

.feedback-head .be-ico {
  flex: none;
  font-size: 23px;
}

.feedback-head h3,
.feedback-head p {
  margin: 0;
}

.feedback-head h3 {
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h3);
}

.feedback-head p {
  margin-top: var(--be-space-1);
  line-height: var(--be-lh-base);
}

.feedback-notes {
  margin: var(--be-space-3) 0 0 34px;
  padding-left: var(--be-space-4);
}

.feedback-notes li + li {
  margin-top: var(--be-space-1);
}

.listen-card {
  padding: var(--be-space-6) var(--be-space-5);
  text-align: center;
}

.listen-orb {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--be-space-4);
  border-radius: var(--be-r-pill);
  background: var(--be-secondary);
  color: var(--be-ink-on-accent);
  box-shadow: var(--be-clay-sm);
}

.listen-orb .be-ico {
  font-size: 37px;
}

.listen-card h2,
.listen-card p {
  margin: 0;
}

.listen-card h2 {
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h2);
}

.listen-sentence {
  margin-top: var(--be-space-3) !important;
  font-size: var(--be-fs-lg);
  line-height: var(--be-lh-lg);
}

.waveform {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: var(--be-space-5) 0;
}

.waveform i {
  flex: 1;
  min-width: 3px;
  border-radius: var(--be-r-pill);
  background: var(--be-secondary);
  opacity: .78;
  transform-origin: center;
}

.waveform.is-playing i {
  animation: wave-bounce 700ms var(--be-ease-in-out) infinite alternate;
}

.waveform.is-playing i:nth-child(2n) { animation-delay: 90ms; }
.waveform.is-playing i:nth-child(3n) { animation-delay: 180ms; }

@keyframes wave-bounce {
  to { transform: scaleY(.48); opacity: .48; }
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--be-space-3);
}

.player-main {
  width: 64px;
  height: 64px;
}

.accent-panel {
  margin-top: var(--be-space-4);
}

.accent-panel .be-segmented {
  width: 100%;
}

.accent-panel .be-seg {
  flex: 1;
}

.teacher-target {
  display: flex;
  gap: var(--be-space-3);
  align-items: flex-start;
  margin-top: var(--be-space-4);
  padding: var(--be-space-4);
  border-radius: var(--be-r-md);
  background: var(--be-secondary-tint);
  color: var(--be-secondary-600);
}

.teacher-target p {
  margin: 0;
  font-size: var(--be-fs-sm);
  line-height: var(--be-lh-sm);
}

.reading-card {
  padding: var(--be-space-5);
}

.reading-card h2 {
  margin: var(--be-space-1) 0 0;
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h2);
}

.reading-text {
  margin-top: var(--be-space-4);
  padding-top: var(--be-space-4);
  border-top: 1px solid var(--be-hairline);
}

.reading-text p {
  margin: 0 0 var(--be-space-4);
  font-size: var(--be-fs-lg);
  line-height: 1.75;
}

.reading-text .read-word {
  border-radius: 6px;
  transition: background var(--be-dur-1) var(--be-ease-out), color var(--be-dur-1) var(--be-ease-out);
}

.reading-text .read-word.is-speaking {
  background: var(--be-primary);
  color: var(--be-ink-on-accent);
}

.reading-actions {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--be-space-3);
  margin-top: var(--be-space-4);
}

.question-card {
  margin-top: var(--be-space-4);
  padding: var(--be-space-5);
}

.question-card h3 {
  margin: var(--be-space-1) 0 var(--be-space-4);
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h3);
  line-height: var(--be-lh-h3);
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: var(--be-space-3);
}

.choice {
  min-height: var(--be-touch-min);
  display: flex;
  align-items: center;
  gap: var(--be-space-3);
  width: 100%;
  border: 2px solid transparent;
  border-radius: var(--be-r-md);
  padding: var(--be-space-3) var(--be-space-4);
  cursor: pointer;
  background: var(--be-surface);
  color: var(--be-ink);
  box-shadow: var(--be-clay-sm);
  font-family: var(--be-font-sans);
  font-size: var(--be-fs-base);
  line-height: var(--be-lh-base);
  text-align: left;
}

.choice.is-selected {
  border-color: var(--be-primary);
}

.choice__mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: var(--be-r-pill);
  background: var(--be-canvas);
  box-shadow: var(--be-neu-inset-sm);
  font-family: var(--be-font-sans);
  font-weight: var(--be-w-semibold);
  font-size: var(--be-fs-xs);
}

.grammar-hero {
  padding: var(--be-space-5);
  background: var(--be-sky-tint);
}

.grammar-hero h2,
.grammar-hero p {
  margin: 0;
}

.grammar-hero h2 {
  margin-top: var(--be-space-1);
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h2);
}

.grammar-hero p {
  margin-top: var(--be-space-1);
  color: var(--be-ink-2);
}

.formula {
  display: inline-flex;
  margin-top: var(--be-space-4);
  padding: var(--be-space-2) var(--be-space-3);
  border-radius: var(--be-r-sm);
  background: var(--be-surface);
  box-shadow: var(--be-neu-inset-sm);
  font-family: var(--be-font-mono);
  font-size: var(--be-fs-sm);
}

.grammar-card {
  margin-top: var(--be-space-4);
  padding: var(--be-space-5);
}

.grammar-prompt {
  margin: var(--be-space-5) 0;
  font-size: var(--be-fs-lg);
  line-height: var(--be-lh-lg);
  text-align: center;
}

.grammar-prompt strong {
  display: inline-block;
  min-width: 108px;
  border-bottom: 2px solid var(--be-primary);
  color: var(--be-primary-700);
}

.grammar-options {
  display: grid;
  gap: var(--be-space-3);
}

.grammar-option {
  min-height: var(--be-touch-min);
  border: 2px solid transparent;
  border-radius: var(--be-r-pill);
  cursor: pointer;
  background: var(--be-canvas);
  color: var(--be-ink);
  box-shadow: var(--be-neu-raised-sm);
  font-family: var(--be-font-sans);
  font-size: var(--be-fs-base);
  font-weight: var(--be-w-semibold);
}

.grammar-option.is-selected {
  border-color: var(--be-primary);
  background: var(--be-primary-tint);
  box-shadow: var(--be-neu-inset-sm);
}

.grammar-option.is-correct {
  border-color: var(--be-success);
  background: var(--be-success-tint);
}

.grammar-option.is-wrong {
  border-color: var(--be-danger);
  background: var(--be-danger-tint);
}

.progress-card {
  padding: var(--be-space-5);
}

.score-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--be-space-3);
  margin-top: var(--be-space-1);
}

.score-line strong {
  font-family: var(--be-font-display);
  font-size: var(--be-fs-display);
  line-height: var(--be-lh-display);
}

.score-line strong small {
  color: var(--be-ink-3);
  font-size: var(--be-fs-base);
}

.progress-bars {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: var(--be-space-2);
  margin-top: var(--be-space-5);
}

.progress-bars i {
  flex: 1;
  min-height: 10px;
  border-radius: var(--be-r-xs) var(--be-r-xs) 5px 5px;
  background: var(--be-primary);
  box-shadow: var(--be-clay-sm);
}

.skill-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--be-bento-gap);
  margin-top: var(--be-bento-gap);
}

.skill-stat {
  padding: var(--be-space-4);
  border-radius: var(--be-r-lg);
  box-shadow: var(--be-clay-sm);
}

.skill-stat:nth-child(1) { background: var(--be-success-tint); }
.skill-stat:nth-child(2) { background: var(--be-primary-tint); }
.skill-stat:nth-child(3) { background: var(--be-secondary-tint); }
.skill-stat:nth-child(4) { background: var(--be-sky-tint); }

.skill-stat strong {
  display: block;
  margin-top: var(--be-space-2);
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h1);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: var(--be-space-4);
  padding: var(--be-space-5);
}

.profile-card__avatar {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: var(--be-r-pill);
  background: var(--be-primary);
  color: var(--be-ink-on-accent);
  box-shadow: var(--be-clay-accent);
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h2);
  font-weight: var(--be-w-semibold);
}

.profile-card h2,
.profile-card p {
  margin: 0;
}

.profile-card h2 {
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h2);
}

.profile-card p {
  margin-top: var(--be-space-1);
  color: var(--be-ink-2);
}

.setting-row {
  display: flex;
  align-items: center;
  gap: var(--be-space-3);
  padding: var(--be-space-4);
  border-radius: var(--be-r-md);
  background: var(--be-surface);
  box-shadow: var(--be-clay-sm);
}

.setting-row__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: var(--be-r-sm);
  background: var(--be-primary-tint);
  color: var(--be-primary-700);
}

.setting-row__text {
  flex: 1;
}

.setting-row__text strong,
.setting-row__text small {
  display: block;
}

.setting-row__text small {
  margin-top: 2px;
  color: var(--be-ink-2);
}

.setting-link {
  color: var(--be-ink);
  text-decoration: none;
}

.record-card {
  padding: var(--be-space-5);
  text-align: center;
}

.record-reference {
  padding: var(--be-space-4);
  border-radius: var(--be-r-md);
  background: var(--be-canvas);
  box-shadow: var(--be-neu-inset-sm);
  text-align: left;
}

.record-reference p {
  margin: var(--be-space-1) 0 0;
  font-size: var(--be-fs-lg);
  line-height: var(--be-lh-lg);
}

.record-status {
  min-height: 48px;
  margin: var(--be-space-6) 0 var(--be-space-4);
  color: var(--be-ink-2);
}

.record-countdown {
  font-family: var(--be-font-display);
  font-size: var(--be-fs-display);
  font-weight: var(--be-w-bold);
  color: var(--be-danger-600);
}

.record-button {
  width: 104px;
  height: 104px;
  border: 0;
  border-radius: var(--be-r-pill);
  cursor: pointer;
  background: var(--be-danger);
  color: var(--be-ink-on-accent);
  box-shadow: var(--be-clay-accent);
}

.record-button .be-ico {
  font-size: 43px;
}

.record-button.is-recording {
  background: var(--be-ink);
  animation: be-pulse 1.3s var(--be-ease-in-out) infinite;
}

/* Compare-yourself screen. Replaced the old score dial and sub-score tiles, which
   displayed a hardcoded 78/100 the app never actually measured. */
.record-reference-text {
  margin: var(--be-space-2) 0 var(--be-space-5);
  font-size: var(--be-fs-lg);
  line-height: var(--be-lh-lg);
  color: var(--be-ink);
}

.compare-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--be-space-3);
}

.compare-btn {
  display: flex;
  align-items: center;
  gap: var(--be-space-3);
  padding: var(--be-space-4);
  border: none;
  border-radius: var(--be-r-md);
  background: var(--be-surface);
  box-shadow: inset 0 0 0 1px var(--be-hairline);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--be-dur-1) var(--be-ease-out),
              transform var(--be-dur-1) var(--be-ease-out);
}

.compare-btn:hover:not(:disabled) { background: var(--be-canvas); }
.compare-btn:active:not(:disabled) { transform: scale(var(--be-press-scale)); }
.compare-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.compare-btn__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--be-r-pill);
  color: var(--be-ink-on-accent);
}

.compare-btn__icon--model { background: var(--be-secondary); }
.compare-btn__icon--mine { background: var(--be-primary); }

.compare-btn strong {
  display: block;
  font-size: var(--be-fs-sm);
}

.compare-btn small {
  display: block;
  margin-top: 1px;
  color: var(--be-ink-3);
  font-size: var(--be-fs-xs);
}

.definition-sheet {
  width: min(430px, calc(100vw - 24px));
  max-width: none;
  margin: auto auto 0;
  border: 0;
  border-radius: var(--be-r-xl) var(--be-r-xl) 0 0;
  padding: var(--be-space-5) var(--be-space-5) calc(var(--be-space-7) + env(safe-area-inset-bottom));
  background: var(--be-surface);
  color: var(--be-ink);
  box-shadow: var(--be-float-lg);
  animation: be-sheet-up var(--be-dur-3) var(--be-ease-out) both;
}

.definition-sheet::backdrop {
  /* Náhrada pre staršie Safari: `color-mix` je až od 16.2 a v priestore oklch od 16.4.
     Bez nej sa celý riadok zahodí, pozadie pod okienkom zostane priehľadné a text
     appky presvitá cez definíciu. Prehliadač si vezme posledné, čomu rozumie. */
  background: rgba(28, 27, 25, 0.34);
  background: color-mix(in oklch, var(--be-ink) 34%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ---- Náhrada za <dialog> pre iOS Safari staršie než 15.4 ------------------
   Tam `showModal()` neexistuje, takže prvok nezobrazí prehliadač ako modálny
   dialóg — appka mu dá triedu `is-open` a zvyšok dokreslí toto. Kým trieda
   nie je, pravidlá sa neuplatnia a nové prehliadače idú svojou cestou. */
.definition-sheet.is-open {
  display: block;
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 60;
}

/* Stmavené pozadie, ktoré inak kreslí ::backdrop. */
body.sheet-is-open::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 59;
  background: rgba(28, 27, 25, 0.34);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Pod otvoreným okienkom sa nemá dať scrollovať — naozajstný dialóg to robí sám. */
body.sheet-is-open {
  overflow: hidden;
}

.sheet-grab {
  width: 42px;
  height: 5px;
  margin: 0 auto var(--be-space-5);
  border-radius: var(--be-r-pill);
  background: var(--be-hairline);
}

.sheet-close {
  position: absolute;
  top: var(--be-space-4);
  right: var(--be-space-4);
  width: 40px;
  height: 40px;
}

.definition-sheet h2,
.definition-sheet p {
  margin: 0;
}

.definition-sheet h2 {
  padding-right: var(--be-space-9);
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h2);
}

.definition-sheet .definition {
  margin: var(--be-space-4) 0;
  font-size: var(--be-fs-base);
  line-height: var(--be-lh-base);
}

.definition-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--be-space-3);
}

.toast {
  position: absolute;
  z-index: 80;
  right: var(--be-space-5);
  bottom: calc(var(--be-tabbar-h) + var(--be-space-7));
  left: var(--be-space-5);
  padding: var(--be-space-3) var(--be-space-4);
  border-radius: var(--be-r-md);
  background: var(--be-ink);
  color: var(--be-ink-on-accent);
  box-shadow: var(--be-float);
  opacity: 0;
  pointer-events: none;
  transform: translateY(var(--be-space-3));
  transition: opacity var(--be-dur-2) var(--be-ease-out), transform var(--be-dur-2) var(--be-ease-spring);
  font-size: var(--be-fs-sm);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.onboarding {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  /* Room for the sticky footer to sit over, so the last level row is still
     reachable rather than permanently hidden behind the Continue button. */
  padding-bottom: var(--be-space-6);
}

/* Flex, not a fixed four-column grid: onboarding gained a fifth step when the
   level question was added, and a hardcoded column count silently wrapped the
   last segment onto its own row. This adapts to however many steps there are. */
.onboarding-progress {
  display: flex;
  gap: 6px;
  margin: var(--be-space-2) 0 var(--be-space-7);
}

.onboarding-progress i {
  flex: 1 1 0;
  min-width: 0;
}

.onboarding-progress i {
  height: 6px;
  overflow: hidden;
  border-radius: var(--be-r-pill);
  background: var(--be-canvas);
  box-shadow: var(--be-neu-inset-sm);
}

.onboarding-progress i::after {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--be-primary);
  transition: width var(--be-dur-3) var(--be-ease-out);
}

.onboarding-progress i.is-done::after {
  width: 100%;
}

/* Welcome screen brand mark — .be-mark--lg carries the square, the green
   and the stacked letters; this only sizes and places it. */
.onboarding-mark {
  width: 82px;
  font-size: 31px;
  margin-bottom: var(--be-space-5);
}

/* Not a brand mark: the "you're all set" success badge. */
.ready-mark {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--be-space-7) auto var(--be-space-5);
  border-radius: var(--be-r-pill);
  background: var(--be-success);
  color: var(--be-ink-on-accent);
  box-shadow: var(--be-clay-accent);
}

.ready-mark .be-ico {
  font-size: 43px;
}

.onboarding h2,
.onboarding p {
  margin: 0;
}

.onboarding h2 {
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h1);
  line-height: var(--be-lh-h1);
  letter-spacing: var(--be-track-tight);
}

.onboarding > p,
.onboarding-copy {
  margin-top: var(--be-space-3) !important;
  color: var(--be-ink-2);
  font-size: var(--be-fs-base);
  line-height: var(--be-lh-base);
}

.onboarding-values,
.goal-list,
.consent-list {
  display: flex;
  flex-direction: column;
  gap: var(--be-space-3);
  margin-top: var(--be-space-6);
}

.onboarding-value,
.goal-option,
.consent-option {
  display: flex;
  align-items: center;
  gap: var(--be-space-3);
  padding: var(--be-space-3) var(--be-space-4);
  border: 2px solid transparent;
  border-radius: var(--be-r-md);
  background: var(--be-surface);
  color: var(--be-ink);
  box-shadow: var(--be-clay-sm);
  text-align: left;
}

.goal-option {
  width: 100%;
  cursor: pointer;
}

.goal-option.is-selected {
  border-color: var(--be-primary);
}

.onboarding-value__icon,
.goal-option__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: var(--be-r-sm);
  background: var(--be-primary-tint);
  color: var(--be-primary-700);
}

.onboarding-value strong,
.onboarding-value small,
.goal-option strong,
.goal-option small,
.consent-option strong,
.consent-option small {
  display: block;
}

.onboarding-value small,
.goal-option small,
.consent-option small {
  margin-top: 2px;
  color: var(--be-ink-2);
  font-size: var(--be-fs-xs);
  line-height: var(--be-lh-xs);
}

.goal-option .check {
  margin-left: auto;
  color: var(--be-primary);
  opacity: 0;
}

.goal-option.is-selected .check {
  opacity: 1;
}

.consent-option__copy {
  flex: 1;
}

.required-tag {
  font-family: var(--be-font-sans);
  font-weight: var(--be-w-semibold);
  font-size: 11px;
  letter-spacing: var(--be-track-eyebrow);
  color: var(--be-ink-3);
  text-transform: uppercase;
}

.privacy-note {
  display: flex;
  gap: var(--be-space-2);
  align-items: flex-start;
  margin-top: var(--be-space-4);
  padding: var(--be-space-3) var(--be-space-4);
  border-radius: var(--be-r-md);
  background: var(--be-secondary-tint);
  color: var(--be-secondary-600);
}

.privacy-note p {
  font-size: var(--be-fs-xs);
  line-height: var(--be-lh-xs);
}

/* Sticky, because the level step is a long scrolling list: without this the
   Continue button appears ~740px below the fold the moment a level is picked,
   so the only feedback for answering the question is invisible. */
.onboarding-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: var(--be-space-3);
  margin-top: auto;
  /* The negative bottom margin pulls the footer past the section's own bottom
     padding, so the last list row can scroll clear of the button instead of
     ending underneath it. */
  margin-bottom: calc(var(--be-space-6) * -1);
  padding: var(--be-space-5) 0 var(--be-space-4);
  background: linear-gradient(to top, var(--be-canvas) 76%, transparent);
}

.onboarding-skip {
  border: 0;
  background: transparent;
  color: var(--be-ink-3);
  cursor: pointer;
  font-family: var(--be-font-sans);
  font-size: var(--be-fs-sm);
  font-weight: var(--be-w-semibold);
}

.onboarding-mode .app-topbar,
.onboarding-mode .app-tabbar {
  display: none;
}

.onboarding-mode .app-view {
  padding-top: var(--be-space-6);
  padding-bottom: max(var(--be-space-6), env(safe-area-inset-bottom));
}

@media (max-width: 960px) {
  .desktop-story {
    display: none;
  }
}

@media (max-width: 520px) {
  .workspace {
    display: block;
    padding: 0;
  }

  .app-shell {
    width: 100%;
    /* `dvh` je až od Safari 15.4. Staršiemu iPhonu zostane `vh` — spodnú lištu
       prekryje panel prehliadača, ale appka sa aspoň roztiahne na celú výšku. */
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-topbar {
    padding-top: max(var(--be-space-2), env(safe-area-inset-top));
  }

  .definition-sheet {
    width: 100%;
  }
}

@media (max-width: 370px) {
  .app-view {
    --be-gutter: 14px;
  }

  .app-topbar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .practice-tile {
    min-height: 132px;
    padding: var(--be-space-3);
  }

  .practice-tile h4 {
    font-size: 18px;
  }

  .compact-segmented .be-seg {
    min-width: 38px;
    padding: 0 var(--be-space-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .waveform.is-playing i {
    animation: none;
  }
}

/* ---------- Level picker -------------------------------------------------
   The ladder a learner chooses their rung from. Every row carries both names —
   the CEFR code that a stranger recognises and the Best English course name
   that the school's own students recognise — because the product now serves
   both audiences. */
.level-list {
  display: flex;
  flex-direction: column;
  gap: var(--be-space-2);
}

.level-row {
  display: flex;
  align-items: center;
  gap: var(--be-space-4);
  width: 100%;
  padding: var(--be-space-3) var(--be-space-4);
  border: none;
  border-radius: var(--be-r-md);
  background: var(--be-surface);
  box-shadow: var(--be-clay-sm);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--be-dur-1) var(--be-ease-out),
              transform var(--be-dur-1) var(--be-ease-out);
}

.level-row:hover { background: var(--be-canvas); }
.level-row:active { transform: scale(var(--be-press-scale)); }

.level-row__code {
  flex: none;
  min-width: 52px;
  padding: 6px 8px;
  border-radius: var(--be-r-xs);
  background: var(--be-primary-tint);
  color: var(--be-primary-700);
  font-weight: var(--be-w-bold);
  font-size: var(--be-fs-sm);
  text-align: center;
  letter-spacing: var(--be-track-wide);
}

.level-row__body { flex: 1; min-width: 0; }
.level-row__body strong { display: block; font-size: var(--be-fs-sm); }
.level-row__body small {
  display: block;
  margin-top: 2px;
  color: var(--be-ink-2);
  font-size: var(--be-fs-xs);
  line-height: var(--be-lh-xs);
}

.level-row__state { flex: none; display: flex; align-items: center; color: var(--be-ink-3); }

/* The learner's current rung. */
.level-row.is-current { box-shadow: inset 0 0 0 2px var(--be-primary), var(--be-clay-sm); }
.level-row.is-current .level-row__code { background: var(--be-primary); color: var(--be-ink-on-accent); }

/* A rung on the ladder that has no content authored yet. Still tappable —
   refusing the tap reads as a broken app rather than an unwritten level. */
.level-row.is-empty { background: var(--be-canvas); }
.level-row.is-empty .level-row__code { background: var(--be-surface-sunken); color: var(--be-ink-3); }
.level-row.is-empty .level-row__body strong { color: var(--be-ink-2); }

/* Word-set position for long sets. The dot strip only fits about eight words;
   beyond that it overflowed the row and pushed the forward arrow off screen. */
.word-stepper__meter {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--be-space-3);
}

.word-stepper__meter .be-progress {
  flex: 1;
  min-width: 0;
  display: block;
}

.word-stepper__meter .be-caption {
  flex: none;
  font-variant-numeric: tabular-nums;
}

/* A disabled stepper arrow must still be visible — it marks the end of the set. */
.word-stepper .be-icon-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Topic picker — one row per vocabulary area. Thirty words in a row is a long
   sitting; ten to fifteen inside a named area is a session someone finishes. */
.topic-list {
  display: flex;
  flex-direction: column;
  gap: var(--be-space-2);
}

.topic-row {
  display: flex;
  align-items: center;
  gap: var(--be-space-4);
  width: 100%;
  padding: var(--be-space-3) var(--be-space-4);
  border: none;
  border-radius: var(--be-r-md);
  background: var(--be-surface);
  box-shadow: var(--be-clay-sm);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--be-dur-1) var(--be-ease-out),
              transform var(--be-dur-1) var(--be-ease-out);
}

.topic-row:hover { background: var(--be-canvas); }
.topic-row:active { transform: scale(var(--be-press-scale)); }

.topic-row__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--be-r-sm);
  background: var(--be-primary-tint);
  color: var(--be-primary-700);
}

.topic-row__body { flex: 1; min-width: 0; }
.topic-row__body strong { display: block; }
.topic-row__body small {
  display: block;
  margin-top: 2px;
  color: var(--be-ink-3);
  font-size: var(--be-fs-xs);
}

/* The open lesson is marked, not just listed — with six lessons the learner
   needs to see at a glance which one the Practice tab will actually show. */
.lesson-card.is-open {
  box-shadow: var(--be-clay), inset 0 0 0 2px var(--be-primary);
}

/* ============================================================
   TEST PO OKRUHU

   Jedna otázka na obrazovku, jedno políčko, žiadne rozptýlenie. Slovenské slovo
   je najväčší prvok na obrazovke, lebo je to celá otázka; odpoveď sa píše hneď
   pod ním. Rozloženie je zámerne rovnaké ako pri vete (be-card + feedback), aby
   sa študent nemusel učiť nový vzor obrazovky.
   ============================================================ */

/* Vstup do testu z konca okruhu. Nie je to dlaždica medzi ostatnými — je to
   ponuka, ktorá má prísť ako prvá po tom, čo prejde všetky slová. */
.test-cta {
  display: flex;
  align-items: center;
  gap: var(--be-space-3);
  width: 100%;
  margin-top: var(--be-space-4);
  padding: var(--be-space-4);
  border: 0;
  text-align: left;
  color: inherit;
  box-shadow: var(--be-clay), inset 0 0 0 2px var(--be-primary);
}

.test-cta__icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--be-r-sm);
  background: var(--be-primary);
  color: var(--be-ink-on-accent);
}

.test-cta__body { flex: 1; min-width: 0; }
.test-cta__body strong { display: block; font-family: var(--be-font-display); }
.test-cta__body small {
  display: block;
  margin-top: 2px;
  color: var(--be-ink-2);
  font-size: var(--be-fs-xs);
  line-height: var(--be-lh-base);
}

.test-head {
  display: flex;
  flex-direction: column;
  gap: var(--be-space-2);
  margin-bottom: var(--be-space-4);
}

.test-card { padding: var(--be-space-5) var(--be-space-4); }

/* Slovenské slovo je otázka, takže nesie váhu celej obrazovky. */
.test-prompt {
  margin: var(--be-space-2) 0 var(--be-space-4);
  font-family: var(--be-font-display);
  font-size: var(--be-fs-h1);
  line-height: 1.15;
  color: var(--be-primary-700);
}

.test-input {
  margin-top: var(--be-space-2);
  font-size: var(--be-fs-h3);
  /* Odpoveď je anglická, takže nechceme, aby ju mobil opravoval podľa
     slovenského slovníka — atribúty sú na prvku, toto je len veľkosť. */
}

.test-input:disabled {
  color: var(--be-ink-2);
  opacity: 1;   /* prehliadače šedia disabled tak, že sa vlastná odpoveď zle číta */
}

/* Slovo, na ktorom sa už niekedy pomýlil. Nie je to výčitka, je to upozornenie
   „na toto pozor“ — preto žltá, nie červená. */
.test-flag {
  display: flex;
  align-items: center;
  gap: var(--be-space-2);
  margin: 0 0 var(--be-space-3);
  padding: var(--be-space-2) var(--be-space-3);
  border-radius: var(--be-r-sm);
  background: var(--be-warning-tint);
  color: var(--be-warning-600);
  font-size: var(--be-fs-xs);
}

.test-flag .be-ico { font-size: 18px; }

.test-ipa {
  font-family: var(--be-font-mono);
  font-size: var(--be-fs-xs);
  color: var(--be-secondary-600);
}

.test-example {
  margin: var(--be-space-3) 0 0 34px;
  font-weight: var(--be-w-semibold);
}

.test-example i {
  display: block;
  margin-top: 2px;
  font-weight: var(--be-w-regular);
  color: var(--be-ink-2);
  font-size: var(--be-fs-sm);
}

/* ============================================================
   PRÍKLADOVÉ VETY PRI SLOVE

   Nahradili zástupný rámček na fotku. Anglická veta je hlavný riadok, slovenský
   preklad je pod ňou tichšie — je tam ako pomôcka, nie ako to, čo sa má čítať
   prvé. Každá veta má vlastné tlačidlo na prehratie, lebo sa počúva po jednej.
   ============================================================ */
.example-stack {
  margin-top: var(--be-space-4);
  padding: var(--be-space-4);
  border-radius: var(--be-r-md);
  background: var(--be-surface-sunken);
}

.example-line {
  display: flex;
  align-items: flex-start;
  gap: var(--be-space-3);
  margin-top: var(--be-space-3);
}

.example-line + .example-line {
  padding-top: var(--be-space-3);
  border-top: 1px solid var(--be-hairline);
}

.example-line__play { flex: none; }
.example-line__body { flex: 1; min-width: 0; }

.example-line__en {
  margin: 0;
  line-height: var(--be-lh-base);
}

.example-line__sk {
  margin: 2px 0 0;
  color: var(--be-ink-2);
  font-size: var(--be-fs-sm);
  line-height: var(--be-lh-sm);
}

/* Prepínač jazyka v nastaveniach. Sedí v riadku nastavenia namiesto vypínača,
   preto nesmie tlačiť text — dva krátke názvy sa vojdú aj na 320 px. */
.lang-switch {
  flex: none;
  width: auto;
}

.lang-switch .be-seg {
  min-width: 0;
  padding: 0 var(--be-space-3);
  font-size: var(--be-fs-sm);
}

/* ============================================================
   SKLADANIE VETY

   Dva pásy: hore odpoveď, dole zásoba slov. Odpoveď má vlastné pozadie a
   pevnú minimálnu výšku, aby sa pri prvom klepnutí neposunula celá obrazovka
   nadol — na telefóne to vyzerá ako chyba a študent stratí, kde bol.

   Ovláda sa klepnutím, nie ťahaním. Ťahanie na dotykovej obrazovke súperí so
   scrollovaním stránky a na malom slove sa často netrafí; klepnutie je isté,
   funguje aj z klávesnice a je to obyčajné <button>, takže ho číta aj
   odčítavač obrazovky.
   ============================================================ */
.bubble-answer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--be-space-2);
  min-height: 74px;
  padding: var(--be-space-3);
  border-radius: var(--be-r-md);
  background: var(--be-canvas);
  box-shadow: var(--be-neu-inset-sm);
}

.bubble-answer.is-empty { justify-content: center; }

.bubble-hint {
  color: var(--be-ink-3, var(--be-ink-2));
  font-size: var(--be-fs-sm);
}

.bubble-tail {
  align-self: flex-end;
  padding-bottom: 6px;
  font-family: var(--be-font-sans);
  font-size: var(--be-fs-base);
  font-weight: var(--be-w-semibold);
  color: var(--be-ink-2);
}

.bubble-pool {
  display: flex;
  flex-wrap: wrap;
  gap: var(--be-space-2);
  margin-top: var(--be-space-3);
  /* Zásoba sa vyprázdňuje, ako sa slová presúvajú hore. Bez pevnej výšky by
     sa spodok karty pri každom klepnutí posunul. */
  min-height: 74px;
  align-content: flex-start;
}

.bubble {
  min-height: 40px;
  padding: 0 var(--be-space-3);
  border: 2px solid transparent;
  border-radius: var(--be-r-pill);
  cursor: pointer;
  background: var(--be-surface, var(--be-canvas));
  color: var(--be-ink);
  box-shadow: var(--be-neu-raised-sm);
  font-family: var(--be-font-sans);
  font-size: var(--be-fs-base);
  font-weight: var(--be-w-semibold);
  transition: transform 0.12s ease;
}

.bubble:active { transform: scale(0.95); }
.bubble[disabled] { cursor: default; }

.bubble.is-correct {
  border-color: var(--be-success);
  background: var(--be-success-tint);
}

.bubble.is-wrong {
  border-color: var(--be-danger);
  background: var(--be-danger-tint);
}

/* Rozbor diktátu: veta, ktorá zaznela, so zvýrazneným tým, čo v odpovedi
   chýbalo. Nie je to červený text cez celú vetu — červené je len to, čo
   študentovi naozaj ušlo, aby videl, na čo si má dať pozor. */
.dictation-diff {
  margin: 6px 0 0;
  font-size: var(--be-fs-base);
  line-height: 1.9;
}

.dictation-diff .is-ok { color: var(--be-ink-2); }

.dictation-diff .is-missed {
  padding: 2px 7px;
  border-radius: var(--be-r-pill);
  background: var(--be-danger-tint);
  color: var(--be-danger-600, var(--be-ink));
  font-weight: var(--be-w-semibold);
}
