:root {
  --bg-cream: #FFF9EE;
  --bg-warm: #FDF2DC;
  --paper-white: #FFFFFF;
  --ink-dark: #1E293B;
  --ink-body: #334155;
  --ink-muted: #64748B;
  --sky-main: #2563EB;
  --sky-light: #EFF6FF;
  --sky-shadow: #1D4ED8;
  --coral-main: #F97316;
  --coral-light: #FFF7ED;
  --coral-shadow: #C2410C;
  --emerald-main: #10B981;
  --emerald-shadow: #047857;
  --gold-main: #FACC15;
  --gold-deep: #D97706;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at 15% 10%, #FFFDF8 0%, var(--bg-cream) 55%, #F9EED8 100%);
  color: var(--ink-dark);
  font-family: "SF Pro Rounded", "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.hidden {
  display: none !important;
}

#app {
  width: 100%;
  height: 100dvh;
  position: relative;
}

.view {
  display: none;
  width: 100%;
  height: 100dvh;
  padding: calc(10px + var(--safe-top)) calc(16px + var(--safe-right)) calc(10px + var(--safe-bottom)) calc(16px + var(--safe-left));
  flex-direction: column;
  overflow: hidden;
}

.view.active {
  display: flex;
}

/* ==================== BOOKSHELF VIEW ==================== */
#view-shelf {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  gap: 14px;
}

.shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 2px solid #FDE68A;
  border-radius: 22px;
  padding: 12px 18px;
  box-shadow: 0 8px 24px rgba(180, 130, 40, 0.08);
  flex-shrink: 0;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FDE047, #F59E0B);
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.brand-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1E293B;
}

.brand-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 600;
}

.stats-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 14px;
  background: #FFFBEB;
  border: 2px solid #FDE68A;
}

.stat-pill.book-pill {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.stat-pill.word-pill {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.stat-icon {
  font-size: 20px;
}

.stat-value {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.stat-label {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 600;
}

.icon-help-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 14px;
  background: #F1F5F9;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid #E2E8F0;
  transition: transform 0.12s;
  white-space: nowrap;
}

.icon-help-btn:active {
  transform: scale(0.96);
}

/* Continue Banner */
.continue-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 2px solid #93C5FD;
  border-radius: 20px;
  padding: 10px 18px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  flex-shrink: 0;
}

.continue-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.continue-thumb {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.continue-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #1D4ED8;
  background: #FFFFFF;
  padding: 2px 9px;
  border-radius: 99px;
  margin-bottom: 3px;
}

.continue-title {
  font-size: 17px;
  font-weight: 800;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.continue-sub {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.continue-go-btn {
  padding: 10px 20px;
  border-radius: 15px;
  background: var(--sky-main);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 0 var(--sky-shadow);
  transition: transform 0.1s, box-shadow 0.1s;
  white-space: nowrap;
  flex-shrink: 0;
}

.continue-go-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--sky-shadow);
}

/* Filters */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.level-tabs, .status-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.level-tab {
  padding: 8px 16px;
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--ink-body);
  font-size: 14px;
  font-weight: 800;
  border: 2px solid #E2E8F0;
  box-shadow: 0 3px 0 #E2E8F0;
  transition: all 0.12s;
}

.level-tab.active {
  background: #F59E0B;
  color: #FFFFFF;
  border-color: #D97706;
  box-shadow: 0 3px 0 #B45309;
}

.status-chip {
  padding: 7px 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  border: 2px solid transparent;
}

.status-chip.active {
  background: #1E293B;
  color: #FFFFFF;
}

/* Bookshelf Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 18px;
  padding-bottom: 24px;
}

.book-card {
  background: #FFFFFF;
  border-radius: 22px;
  border: 3px solid #F1ECE1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(100, 80, 40, 0.07), 0 4px 0 #E6DEC8;
  transition: transform 0.14s ease;
  cursor: pointer;
  position: relative;
}

.book-card:active {
  transform: translateY(3px) scale(0.985);
}

.book-cover-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  border-radius: 14px;
  overflow: hidden;
  background: #FFFDF9;
  border: 2px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(90deg, rgba(0,0,0,0.16) 0%, rgba(255,255,255,0.26) 45%, rgba(0,0,0,0.03) 100%);
  z-index: 2;
  pointer-events: none;
}

.book-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #FFFDF9;
}

.card-done-ribbon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(254, 249, 195, 0.96);
  color: #A16207;
  border: 1.5px solid #FACC15;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.book-card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.card-level-pill {
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  color: #1D4ED8;
  background: #DBEAFE;
}

.mini-star-count {
  font-size: 12px;
  font-weight: 800;
  color: #B45309;
  background: #FEF3C7;
  padding: 2px 8px;
  border-radius: 99px;
}

.book-card-title-en {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-dark);
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-card-title-zh {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-card-footer {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-progress-wrap {
  flex: 1;
  height: 7px;
  border-radius: 99px;
  background: #F1F5F9;
  overflow: hidden;
}

.mini-progress-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #3B82F6, #10B981);
  transition: width 0.3s ease;
}

.mini-page-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ==================== SHARED TOP BAR (READER & PRACTICE) ==================== */
.reader-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid #EFE6D5;
  border-radius: 18px;
  padding: 6px 12px;
  flex-shrink: 0;
  min-height: 50px;
}

.nav-pill-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 12px;
  background: #F1F5F9;
  color: var(--ink-dark);
  font-size: 14px;
  font-weight: 800;
  border: 2px solid #CBD5E1;
  box-shadow: 0 2px 0 #CBD5E1;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-pill-btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

.reader-title-block {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.reader-level-tag {
  padding: 3px 9px;
  border-radius: 99px;
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.reader-level-tag.practice-tag {
  background: #FEF3C7;
  color: #B45309;
}

.reader-book-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader-book-zh {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader-toggles {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.toggle-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border-radius: 12px;
  background: #F8FAFC;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 800;
  border: 2px solid #E2E8F0;
  white-space: nowrap;
}

.toggle-chip.active {
  background: #ECFDF5;
  color: #047857;
  border-color: #6EE7B7;
}

.practice-jump-btn {
  padding: 7px 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 3px 0 #B45309;
  white-space: nowrap;
}

.practice-jump-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #B45309;
}

/* ==================== VIEW 2: PICTURE BOOK READER ==================== */
#view-reader {
  justify-content: space-between;
  gap: 8px;
}

.reader-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.page-paddle {
  width: 50px;
  height: 88px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  color: var(--ink-dark);
  font-size: 34px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06), 0 4px 0 #CBD5E1;
  flex-shrink: 0;
  transition: transform 0.12s, background 0.15s;
}

.page-paddle:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #CBD5E1;
}

.page-paddle:disabled {
  opacity: 0.28;
  cursor: default;
}

.page-paddle.finish-mode {
  width: 50px;
  padding: 10px 6px;
  background: linear-gradient(135deg, #FACC15, #F59E0B);
  color: #78350F;
  border-color: #F59E0B;
  box-shadow: 0 4px 0 #B45309;
  font-size: 15px;
  font-weight: 900;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  height: 136px;
}

.open-book-card {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-width: 1220px;
  background: #FFFFFF;
  border-radius: 26px;
  border: 3px solid #EDE3CE;
  box-shadow: 0 14px 32px rgba(90, 70, 30, 0.1), 0 5px 0 #E2D5B8;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
}

.open-book-card.turning-next {
  animation: pageFlipNext 0.24s ease;
}

.open-book-card.turning-prev {
  animation: pageFlipPrev 0.24s ease;
}

@keyframes pageFlipNext {
  0% { transform: translateX(14px) scale(0.99); opacity: 0.76; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes pageFlipPrev {
  0% { transform: translateX(-14px) scale(0.99); opacity: 0.76; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

.book-art-pane {
  flex: 1.15;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 16px;
  background: linear-gradient(90deg, #FDFBF7 0%, #F7F2E7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-frame {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 2px #EFE8D8, 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 8px;
}

.art-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.book-spine-divider {
  width: 14px;
  background: linear-gradient(90deg, rgba(160, 140, 100, 0.14) 0%, rgba(160, 140, 100, 0.03) 50%, rgba(160, 140, 100, 0.12) 100%);
  flex-shrink: 0;
}

.book-text-pane {
  flex: 0.95;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: #FFFDF9;
}

/* Reserved fixed-height top row so word-meaning popup NEVER shifts the story text! */
.text-pane-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  flex-shrink: 0;
}

.page-counter-badge {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 99px;
  background: #F1F5F9;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.word-popup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1E293B;
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
  max-width: calc(100% - 95px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: popIn 0.14s ease;
}

@keyframes popIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.story-text-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.story-en-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  line-height: 1.3;
}

.word-token {
  font-size: clamp(24px, min(3.2vw, 4.8dvh), 40px);
  font-weight: 800;
  color: #0F172A;
  padding: 3px 8px;
  border-radius: 12px;
  background: transparent;
  border: 2px solid transparent;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
  cursor: pointer;
}

.word-token:hover, .word-token.active-word {
  background: #DBEAFE;
  border-color: #60A5FA;
  color: #1D4ED8;
}

.story-en-line.playing-sentence .word-token {
  color: #1D4ED8;
}

.story-zh-line {
  margin: 0;
  font-size: clamp(16px, min(2vw, 3dvh), 23px);
  font-weight: 700;
  color: #475569;
  line-height: 1.45;
  padding: 8px 14px;
  border-radius: 14px;
  background: #FFF7ED;
  border-left: 5px solid #FB923C;
}

.story-zh-line.playing-zh {
  background: #FFEDD5;
  color: #9A3412;
}

.tap-word-hint {
  margin: 0;
  font-size: 12px;
  color: #94A3B8;
  font-weight: 600;
}

/* Big Audio Controls - Pinned at bottom, never shrinks or clips */
.audio-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex-shrink: 0;
}

.big-audio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(10px, 1.8dvh, 15px) 12px;
  border-radius: 20px;
  color: #FFFFFF;
  text-align: left;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-en-audio {
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 5px 0 var(--sky-shadow), 0 8px 18px rgba(37, 99, 235, 0.2);
}

.btn-en-audio:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--sky-shadow);
}

.btn-zh-audio {
  background: linear-gradient(180deg, #FB923C 0%, #F97316 100%);
  box-shadow: 0 5px 0 var(--coral-shadow), 0 8px 18px rgba(249, 115, 22, 0.2);
}

.btn-zh-audio:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--coral-shadow);
}

.big-audio-btn.is-playing {
  animation: gentlePulse 1s infinite alternate;
}

@keyframes gentlePulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.1); }
}

.btn-wave-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.btn-label-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.btn-main-txt {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-sub-txt {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 600;
  white-space: nowrap;
}

/* Reader Dots Bar */
.reader-dots-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 2px 8px;
  flex-shrink: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.page-dot {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.page-dot.read {
  border-color: #93C5FD;
  background: #EFF6FF;
  color: #1D4ED8;
}

.page-dot.current {
  width: 38px;
  background: var(--sky-main);
  border-color: var(--sky-shadow);
  color: #FFFFFF;
}

.page-dot.practice-dot {
  width: auto;
  padding: 0 12px;
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #B45309;
}

/* ==================== VIEW 3: WORD PRACTICE & SCORING ==================== */
#view-practice {
  justify-content: space-between;
  gap: 8px;
}

.https-mic-banner {
  background: #FEF3C7;
  border: 2px solid #F59E0B;
  color: #78350F;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.https-mic-banner a, .https-mic-banner button {
  padding: 5px 12px;
  border-radius: 10px;
  background: #D97706;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.practice-progress-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 2px 4px;
  flex-shrink: 0;
}

.word-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-body);
  flex-shrink: 0;
}

.word-step-pill.current {
  background: #EEF2FF;
  border-color: #6366F1;
  color: #4338CA;
  box-shadow: 0 2px 0 #6366F1;
}

.word-step-stars {
  font-size: 12px;
  letter-spacing: 1px;
}

.practice-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Explicit minmax(0, 1fr) row prevents ANY child content change from stretching the card! */
.practice-card {
  width: 100%;
  max-width: 1140px;
  height: 100%;
  min-height: 0;
  background: #FFFFFF;
  border-radius: 26px;
  border: 3px solid #EDE3CE;
  box-shadow: 0 14px 32px rgba(90, 70, 30, 0.1), 0 5px 0 #E2D5B8;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.practice-visual-col {
  background: #FAF5EA;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.practice-img-wrap {
  flex: 1;
  min-height: 0;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #EFE6D5;
  overflow: hidden;
}

.practice-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.practice-example-box {
  background: #FFFFFF;
  padding: 10px 14px;
  border-radius: 14px;
  border: 2px solid #EFE6D5;
  flex-shrink: 0;
}

.example-en {
  font-size: clamp(15px, 2.2dvh, 18px);
  font-weight: 800;
  color: var(--ink-dark);
  line-height: 1.3;
}

.example-zh {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.practice-interact-col {
  padding: clamp(12px, 2.2dvh, 22px) 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.word-hero-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.word-best-stars {
  font-size: clamp(18px, 2.6dvh, 23px);
  letter-spacing: 4px;
  color: #F59E0B;
  line-height: 1.1;
}

.word-target-en {
  font-size: clamp(32px, min(4.8vw, 6.2dvh), 54px);
  font-weight: 900;
  color: #1E293B;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.word-phonetic {
  font-size: clamp(14px, 2dvh, 17px);
  color: #64748B;
  font-weight: 600;
}

.word-meaning-zh {
  margin-top: 3px;
  font-size: clamp(16px, 2.4dvh, 20px);
  font-weight: 800;
  color: #D97706;
  background: #FEF3C7;
  padding: 3px 16px;
  border-radius: 99px;
}

/* 4 chips always stay in 1 stable row without wrapping! */
.listen-chip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: nowrap;
  width: 100%;
  flex-shrink: 0;
}

.listen-chip {
  padding: 8px 11px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: transform 0.1s, opacity 0.15s;
}

.listen-chip:active:not(:disabled) {
  transform: scale(0.95);
}

.listen-chip:disabled {
  opacity: 0.36;
  cursor: default;
}

.chip-en {
  background: #DBEAFE;
  color: #1D4ED8;
  border-color: #93C5FD;
}

.chip-slow {
  background: #ECFDF5;
  color: #047857;
  border-color: #6EE7B7;
}

.chip-zh {
  background: #FFEDD5;
  color: #C2410C;
  border-color: #FDBA74;
}

.chip-self {
  background: #F3E8FF;
  color: #6D28D9;
  border-color: #C4B5FD;
}

/* Mic + Fixed-Height Feedback Zone (ZERO layout shift during or after recording!) */
.mic-and-feedback-zone {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.4dvh, 12px);
}

.mic-ring-wrap {
  position: relative;
  width: clamp(88px, 13.5dvh, 118px);
  height: clamp(88px, 13.5dvh, 118px);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mic-volume-halo {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.22);
  transform: scale(1);
  opacity: 0;
  transition: transform 0.08s linear, opacity 0.15s;
  pointer-events: none;
}

.mic-ring-wrap.recording .mic-volume-halo {
  opacity: 1;
}

.mic-record-btn {
  position: relative;
  z-index: 2;
  width: clamp(78px, 12dvh, 104px);
  height: clamp(78px, 12dvh, 104px);
  border-radius: 999px;
  background: linear-gradient(180deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 0 var(--emerald-shadow), 0 10px 20px rgba(16, 185, 129, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: transform 0.12s, background 0.15s;
}

.mic-record-btn:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--emerald-shadow);
}

.mic-ring-wrap.recording .mic-record-btn {
  background: linear-gradient(180deg, #EF4444 0%, #DC2626 100%);
  box-shadow: 0 5px 0 #991B1B, 0 10px 24px rgba(239, 68, 68, 0.38);
}

.mic-emoji {
  font-size: clamp(26px, 4.2dvh, 34px);
  line-height: 1;
}

.mic-btn-text {
  font-size: 13px;
  font-weight: 800;
}

/* Unified Fixed-Height Feedback Slot: swaps hint <-> score without changing height! */
.unified-feedback-box {
  width: 100%;
  max-width: 460px;
  height: 70px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-status-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink-muted);
  max-height: 70px;
  overflow-y: auto;
  padding: 0 8px;
}

.score-feedback-panel {
  background: #FFFBEB;
  border: 2px solid #FDE68A;
  border-radius: 16px;
  padding: 8px 16px;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: popIn 0.22s ease;
}

.earned-stars-row {
  font-size: 26px;
  letter-spacing: 3px;
  line-height: 1;
  flex-shrink: 0;
}

.feedback-msg-zh {
  font-size: 14px;
  font-weight: 800;
  color: #92400E;
  text-align: left;
  line-height: 1.35;
}

/* Pinned Bottom Navigation Row - ALWAYS visible! */
.practice-nav-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding-top: 2px;
}

.primary-action-btn {
  padding: 11px 22px;
  border-radius: 16px;
  background: var(--sky-main);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 0 var(--sky-shadow);
  white-space: nowrap;
}

.primary-action-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--sky-shadow);
}

.secondary-action-btn {
  padding: 11px 18px;
  border-radius: 16px;
  background: #F1F5F9;
  color: var(--ink-dark);
  font-size: 14px;
  font-weight: 800;
  border: 2px solid #CBD5E1;
  box-shadow: 0 3px 0 #CBD5E1;
  white-space: nowrap;
}

.secondary-action-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #CBD5E1;
}

.secondary-action-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

/* ==================== MODALS ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}

.celebration-dialog {
  width: 100%;
  max-width: 500px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 30px;
  border: 4px solid #FACC15;
  padding: 26px 24px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: popIn 0.26s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.trophy-icon {
  font-size: 62px;
  line-height: 1;
  margin-bottom: 6px;
}

.celeb-title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  color: #1E293B;
}

.celeb-subtitle {
  margin: 6px 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-muted);
}

.celeb-stars-big {
  font-size: 42px;
  letter-spacing: 6px;
  margin-bottom: 10px;
}

.celeb-score-pill {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 99px;
  background: #FEF3C7;
  color: #B45309;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 20px;
}

.celeb-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ==================== SMART ONBOARDING STRIP & STEPPER GUIDE ==================== */
.setup-smart-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 6px 16px;
  border-radius: 16px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  font-size: 13.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.setup-smart-strip.ready-mode {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}

.strip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.strip-left span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.strip-cta-btn {
  padding: 5px 13px;
  border-radius: 99px;
  background: #D97706;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.setup-smart-strip.ready-mode .strip-cta-btn {
  background: #059669;
}

.strip-dismiss-btn {
  padding: 4px 8px;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  opacity: 0.72;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* Gentle Preview Mic Intercept Dialog */
.gentle-prompt-dialog {
  width: min(440px, 100%);
  background: #FFFDF8;
  border-radius: 24px;
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 24px 56px -12px rgba(40, 28, 16, 0.24);
  animation: popIn 0.2s ease;
}

.gentle-prompt-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: #FEF3C7;
  display: grid;
  place-items: center;
}

.gentle-prompt-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: #1E293B;
}

.gentle-prompt-desc {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.gentle-prompt-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 3-Step Visual Stepper Modal (UI Director Spec) */
.guide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.2vh, 22px) 16px;
  background: rgba(28, 22, 16, 0.44);
  backdrop-filter: blur(6px);
}

.guide-modal {
  width: min(750px, 100%);
  max-height: calc(100dvh - 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #FFFDF8;
  box-shadow: 0 24px 56px -14px rgba(40, 28, 16, 0.24);
  animation: popIn 0.2s ease;
}

.guide-head {
  flex-shrink: 0;
  padding: 16px 22px 12px;
  border-bottom: 1px solid rgba(120, 90, 50, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guide-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-shield-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #FEF3C7;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.guide-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1E293B;
}

.guide-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #F5EFE6;
}

.stepper-tab {
  flex: 1 1 auto;
  padding: 6px 13px;
  border-radius: 9px;
  background: transparent;
  color: #64748B;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  transition: all 0.15s;
}

/* Readiness Status Chips & Interactive Self-Check Cards */
.check-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.check-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  background: #F5EFE6;
  color: #64748B;
}

.check-badge.ok {
  background: #DCFCE7;
  color: #166534;
}

.check-badge.pending {
  background: #FEF3C7;
  color: #92400E;
}

.selfcheck-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0;
}

.selfcheck-card-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 14px;
  background: #FBF6EC;
  border: 1.5px solid #EDE3CE;
  text-align: left;
  transition: transform 0.1s, border-color 0.15s, background 0.15s;
}

.selfcheck-card-btn:active {
  transform: scale(0.98);
}

.selfcheck-card-btn.done {
  background: #ECFDF5;
  border-color: #6EE7B7;
}

.selfcheck-btn-top {
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
}

.selfcheck-card-btn.done .selfcheck-btn-top {
  color: #065F46;
}

.selfcheck-btn-sub {
  font-size: 12px;
  color: #64748B;
  line-height: 1.35;
}

.stepper-tab.active {
  background: #FFFFFF;
  color: #B45309;
  box-shadow: 0 2px 6px rgba(120, 90, 50, 0.1);
}

.stepper-tab.done {
  color: #059669;
}

.close-x-btn {
  width: 34px;
  height: 34px;
  border-radius: 99px;
  background: #F5EFE6;
  color: #475569;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.guide-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(16px, 2.5vh, 24px) 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 22px;
  color: var(--ink-body);
  user-select: text;
  -webkit-user-select: text;
}

.guide-copy-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-step-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 99px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 12px;
  font-weight: 600;
}

.guide-step-kicker.green {
  background: #DCFCE7;
  color: #166534;
}

.guide-step-heading {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.35;
}

.guide-step-lead {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
}

.guide-ordered-list {
  margin: 2px 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
}

.guide-reassure-note {
  padding: 9px 12px;
  border-radius: 12px;
  background: #FBF6EC;
  color: #78350F;
  font-size: 12.5px;
  line-height: 1.5;
}

.guide-reassure-note.warn-amber {
  background: #FEF3C7;
  color: #92400E;
}

.guide-reassure-note.ok-green {
  background: #ECFDF5;
  color: #065F46;
}

/* Focused Micro-UI Visual Stage */
.guide-visual-stage {
  display: grid;
  place-items: center;
  padding: 16px 14px;
  border-radius: 18px;
  background: #FBF6EC;
}

.micro-ios-card {
  width: 100%;
  max-width: 268px;
  background: #F2F2F7;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  user-select: none;
}

.micro-breadcrumb {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

.micro-ghost-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  padding: 7px 10px;
}

.micro-ghost-avatar {
  width: 24px;
  height: 24px;
  border-radius: 99px;
  background: #CBD5E1;
}

.micro-ghost-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.micro-ghost-bar {
  height: 6px;
  border-radius: 99px;
  background: #CBD5E1;
  width: 72%;
}

.micro-ghost-bar.short {
  width: 45%;
  opacity: 0.6;
}

.micro-ios-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #FFFFFF;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
}

.micro-ios-row.focused {
  border: 1.75px solid #F97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.micro-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.micro-row-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #FFEDD5;
  color: #EA580C;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.micro-pulse-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: #F97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.28);
}

/* iOS Green Toggle Switch */
.micro-ios-switch {
  width: 44px;
  height: 26px;
  border-radius: 99px;
  background: #34C759;
  padding: 2px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  outline: 2px dashed #F97316;
  outline-offset: 3px;
}

.micro-ios-thumb {
  width: 22px;
  height: 22px;
  border-radius: 99px;
  background: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Safari Top Bar + Share Menu Micro-UI */
.micro-safari-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #E5E7EB;
  border-radius: 10px;
  padding: 6px 10px;
}

.micro-url-pill {
  flex: 1;
  background: #FFFFFF;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
  color: #64748B;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.micro-share-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #FFF7ED;
  border: 1.75px solid #F97316;
  color: #EA580C;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
  flex-shrink: 0;
}

.micro-guide-connector {
  width: 2px;
  height: 12px;
  background: #FDBA74;
  margin-left: auto;
  margin-right: 22px;
}

.micro-caption {
  font-size: 11.5px;
  color: #78350F;
  text-align: center;
  font-weight: 600;
  margin-top: 2px;
}

/* Guide Footer */
.guide-foot {
  flex-shrink: 0;
  padding: 12px 22px 16px;
  border-top: 1px solid rgba(120, 90, 50, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.guide-skip-link {
  background: transparent;
  color: #64748B;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 4px;
}

.guide-skip-link:hover {
  color: #334155;
}

.guide-foot-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

@media (max-width: 820px) {
  .guide-modal {
    width: min(560px, 100%);
  }
  .guide-head {
    padding: 14px 16px 10px;
  }
  .guide-stepper {
    width: 100%;
    order: 3;
  }
  .guide-body {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 18px;
  }
  .guide-visual-stage {
    order: -1;
    padding: 12px;
  }
  .guide-foot {
    padding: 10px 16px 14px;
  }
}

@media (max-height: 660px) and (min-width: 821px) {
  .guide-head {
    padding: 12px 20px 10px;
  }
  .guide-body {
    padding: 12px 20px;
    gap: 18px;
  }
  .guide-visual-stage {
    padding: 12px;
  }
  .guide-foot {
    padding: 10px 20px 12px;
  }
}

/* Compact Landscape iPad Safari (when URL bar + Tab bar + Bookmarks bar reduce height to ~600-660px) */
@media (max-height: 670px) and (orientation: landscape) {
  .view {
    padding: 6px 14px;
    gap: 6px;
  }
  .reader-topbar {
    min-height: 44px;
    padding: 4px 10px;
  }
  .practice-interact-col {
    padding: 10px 18px;
    gap: 5px;
  }
  .word-target-en {
    font-size: 32px;
  }
  .unified-feedback-box, .score-feedback-panel {
    height: 56px;
  }
  .earned-stars-row {
    font-size: 22px;
  }
  .feedback-msg-zh {
    font-size: 13px;
  }
  .primary-action-btn, .secondary-action-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* ==================== PORTRAIT IPAD & NARROW ADAPTATION ==================== */
@media (max-width: 880px), (orientation: portrait) {
  .reader-book-zh {
    display: none;
  }

  .page-paddle {
    width: 42px;
    height: 76px;
    font-size: 28px;
  }

  .page-paddle.finish-mode {
    width: 44px;
    height: 124px;
    font-size: 14px;
  }

  .open-book-card {
    flex-direction: column;
  }

  .book-spine-divider {
    width: 100%;
    height: 8px;
  }

  .book-art-pane {
    flex: 1 1 48%;
    height: auto;
    padding: 12px;
  }

  .book-text-pane {
    flex: 1 1 52%;
    height: auto;
    padding: 12px 16px;
  }

  /* Portrait Word Practice: horizontal visual strip on top + full interactive arena below! */
  .practice-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(130px, 24dvh) minmax(0, 1fr);
  }

  .practice-visual-col {
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    gap: 14px;
  }

  .practice-img-wrap {
    flex: 0 0 42%;
    height: 100%;
  }

  .practice-example-box {
    flex: 1;
    min-width: 0;
  }

  .listen-chip-row {
    flex-wrap: wrap;
  }
}
