.review-stage {
  width: 100%;
  min-height: calc(100vh - 104px);
  padding: 96px 34px 54px;
  display: grid;
  place-items: center;
}

.visual-state {
  width: min(1320px, 100%);
}

.visual-state:not([data-state="bloom"]) {
  animation: state-enter 340ms ease both;
}

.visual-state[data-state="bloom"] {
  opacity: 1;
  transform: none;
}

.book-surface {
  position: relative;
  width: 100%;
  min-height: 720px;
  overflow: hidden;
  background: var(--paper-light);
  border-radius: var(--book-radius);
  box-shadow: var(--shadow-book);
}

.reference-boundary {
  min-height: 34px;
  padding: 8px 20px 10px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-review-controls {
  display: none;
}

@keyframes state-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .review-stage {
    padding-inline: 20px;
  }

  .book-surface {
    min-height: 650px;
  }
}

@media (max-width: 760px) {
  .review-stage {
    min-height: 100vh;
    padding: 12px 12px 76px;
    align-items: start;
  }

  .visual-state {
    width: 100%;
  }

  .book-surface {
    min-height: calc(100vh - 100px);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  }

  .mobile-review-controls {
    position: fixed;
    z-index: 30;
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-height: 52px;
    padding: 6px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    color: var(--cream);
    background: rgba(24, 44, 62, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    backdrop-filter: blur(12px);
  }

  .mobile-review-controls button {
    min-height: 38px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  .mobile-review-controls button:first-child { text-align: left; padding-left: 12px; }
  .mobile-review-controls button:last-child { text-align: right; padding-right: 12px; }

  .reference-boundary {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visual-state:not([data-state="bloom"]) {
    animation: none;
  }
}
