html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #111;
  color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#reader {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: #111;
  font-weight: 600;
}

#stage {
  position: relative;
  margin: 16px auto 32px;
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.42);
  background: #fff;
}

#pdfCanvas {
  display: block;
}

#assetLayer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.asset {
  position: absolute;
  object-fit: cover;
  display: block;
}

.cta-card {
  position: absolute;
  z-index: 1000;
  left: 50%;
  bottom: 28px;
  width: min(520px, calc(100% - 48px));
  transform: translateX(-50%);
  box-sizing: border-box;
  padding: 18px;
  border-radius: 24px;
  background: rgba(17, 17, 17, 0.88);
  color: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  display: none;
  pointer-events: auto;
  isolation: isolate;
}

.cta-card.is-visible {
  display: block;
}

.cta-title {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.2;
  margin-bottom: 6px;
}

.cta-description {
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.82;
  margin-bottom: 14px;
}

.cta-row {
  display: flex;
  gap: 8px;
}

.cta-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  pointer-events: auto;
}

.cta-row button {
  pointer-events: auto;
}

.cta-message {
  min-height: 18px;
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.86;
}