body.reader-body {
  background: #081c3a;
  color: var(--white);
}

.storybook-cta {
  padding: 14px 4% 10px;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.storybook-cta-lead {
  margin: 0 0 10px;
  font-size: clamp(0.88rem, 3vw, 1rem);
  opacity: 0.92;
}

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

.storybook-cta .btn {
  min-height: 50px;
  padding: 12px 18px;
  font-size: 0.95rem;
}

.reader-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4%;
  background: linear-gradient(180deg, var(--royal-deep), var(--royal));
  position: sticky;
  top: 0;
  z-index: 20;
}

.reader-top a {
  color: var(--banana);
  font-weight: 800;
  text-decoration: none;
  font-family: var(--font-display);
}

.reader-top h1 {
  margin: 0;
  font-size: clamp(0.85rem, 3vw, 1rem);
  font-family: var(--font-display);
  text-align: center;
  flex: 1;
}

.reader-tool {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid rgba(255, 216, 61, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.reader-shell {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  padding: 0 4% 20px;
}

.reader-stage-immersive {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

#reader-status {
  font-weight: 700;
  font-family: var(--font-display);
  margin: 12px 0 8px;
  min-height: 1.4em;
  text-align: center;
}

.reader-frame {
  position: relative;
  width: 100%;
  touch-action: pan-y;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0a2347;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 216, 61, 0.35);
}

.reader-frame.is-loading #book-page {
  opacity: 0.4;
}

#book-page {
  width: 100%;
  height: auto;
  margin: 0 auto;
  transition: opacity 0.2s ease;
}

.reader-frame.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 8px;
  box-shadow: none;
}

.reader-frame.is-fullscreen #book-page {
  max-height: 100vh;
  width: auto;
  max-width: 100%;
}

.reader-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px;
  width: 100%;
}

.reader-btn {
  min-width: 112px;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--banana);
  color: var(--royal-deep);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.reader-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

#page-select {
  min-height: 48px;
  min-width: 150px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 216, 61, 0.6);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font: inherit;
  font-weight: 600;
}

#page-select option {
  color: var(--ink);
}

.reader-transcript {
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
}

.reader-transcript summary {
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.reader-transcript p {
  white-space: pre-wrap;
  margin: 10px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.reader-hint {
  text-align: center;
  font-size: 0.88rem;
  opacity: 0.85;
  margin: 8px 0;
}

.reader-hint a {
  color: var(--banana);
}

.swipe-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(255, 216, 61, 0.2), transparent);
  transition: opacity 0.2s;
}

.swipe-flash.left {
  background: linear-gradient(270deg, rgba(255, 216, 61, 0.2), transparent);
}

.swipe-flash.show {
  opacity: 1;
}

@media (max-width: 520px) {
  .reader-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .reader-btn,
  #page-select {
    width: 100%;
  }
}