.feed {
  height: var(--app-height);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  outline: none;
}

.feed::-webkit-scrollbar,
.panels::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  height: var(--app-height);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  content-visibility: auto;
  contain-intrinsic-size: auto var(--app-height);
  background: radial-gradient(120% 80% at 50% 30%, #1d1d24 0%, #000 70%);
}

.panels {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.panel {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* Keep content clear of the top tabs, right rail and bottom caption. */
  padding: calc(72px + var(--safe-top)) calc(84px + var(--safe-right)) calc(120px + var(--safe-bottom)) calc(24px + var(--safe-left));
  text-align: center;
  text-shadow: var(--shadow-text);
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.word {
  margin: 0;
  font-size: clamp(2.25rem, 11vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.ipa {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.panel-hint {
  margin: 24px 0 0;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.panel-meaning {
  align-items: flex-start;
  text-align: left;
}

.meaning-word {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.meaning {
  margin: 0;
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.example {
  margin: 8px 0 0;
  padding: 0 0 0 12px;
  border-left: 3px solid var(--accent);
}

.example-en {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  /* Example sentences stay selectable so learners can copy them. */
  user-select: text;
  -webkit-user-select: text;
}

.example-vi {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.slide-empty {
  display: grid;
  place-items: center;
  padding: 24px;
}

.empty-message {
  max-width: 28ch;
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-muted);
}
