/* Book cover shown full screen when the app opens (features/book/front-cover.js). The cover art is
   light paper in every theme, so the page around it is too. */
.front-cover {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3, 12px);
  padding: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 12px) 0
           calc(env(safe-area-inset-bottom, 0px) + 16px);
  background: #f4efe3;
  overflow-y: auto;
}

/* Full phone width; on a short or wide screen the height limit keeps the buttons in view. */
.front-cover-image {
  display: block;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  cursor: pointer;
}

.front-cover-start,
.front-cover-continue {
  min-height: 48px;
  min-width: min(280px, calc(100% - 32px));
  padding: 0 24px;
  border-radius: 999px;
  font: 600 18px/1.2 var(--font-ui, -apple-system, system-ui, sans-serif);
  cursor: pointer;
}

.front-cover-start {
  border: 1px solid #3b2a20;
  background: #3b2a20;
  color: #fff;
}

.front-cover-continue {
  min-height: 44px;
  border: 1px solid #3b2a20;
  background: transparent;
  color: #3b2a20;
  font-size: 16px;
}

.front-cover-start:focus-visible,
.front-cover-continue:focus-visible {
  outline: 3px solid #2f7fc1;
  outline-offset: 3px;
}

body.front-cover-open { overflow: hidden; }
