/* Prototype 3, Burgundy velvet: the site's own burgundy as a deep velvet wall, a gold-edged plank, a faint gold frame. */

body.variant-3 #books-preview .books-shelf-carousel .prototype-carousel__stage {
  height: clamp(360px, 38vw, 480px);
  border: 0;
  border-radius: 4px;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(230, 193, 126, .18), transparent 70%),
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(0, 0, 0, .45), transparent 65%),
    linear-gradient(180deg, #5a1a26 0%, #43151d 55%, #2a0b12 100%);
  box-shadow: inset 0 0 0 1px rgba(230, 193, 126, .28), inset 0 0 0 8px rgba(0, 0, 0, .12), 0 36px 64px -40px rgba(40, 10, 16, .8);
}

body.variant-3 #books-preview .books-shelf-carousel .prototype-carousel__stage::before {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(230, 193, 126, .18);
}

body.variant-3 #books-preview .books-shelf-carousel .motion-track {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%);
}

body.variant-3 #books-preview .books-shelf-carousel .prototype-carousel__shelf-line {
  right: 12px;
  bottom: 10%;
  left: 12px;
  height: 1.2rem;
  border: 0;
  background: linear-gradient(180deg, #ecd096 0, #ecd096 2px, #b8894f 2px, #7a5530 45%, #3e2a17 100%);
  box-shadow: 0 18px 24px -12px rgba(0, 0, 0, .7);
}

body.variant-3 #books-preview .books-shelf-carousel .prototype-carousel__stage::after {
  right: 12%;
  bottom: 9%;
  left: 12%;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  filter: blur(14px);
}

body.variant-3 #books-preview .motion-book::before { inset: 2px -3px 2px auto; width: 3px; background: linear-gradient(90deg, rgba(0, 0, 0, .08), rgba(250, 240, 220, .55)); }
body.variant-3 #books-preview .motion-book::after { border: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .2), transparent 5%, rgba(255, 255, 255, .1) 8%, transparent 15%); }
body.variant-3 #books-preview .motion-book { box-shadow: 14px 22px 26px -14px rgba(0, 0, 0, .7); }
body.variant-3 #books-preview .motion-slide:not(.is-active) .motion-book img { filter: brightness(.75) saturate(.9); }
body.variant-3 #books-preview .motion-slide.is-active .motion-book { box-shadow: 0 32px 38px -16px rgba(0, 0, 0, .75), 0 0 0 1px rgba(236, 208, 150, .55); }

body.variant-3 #books-preview .prototype-carousel__eyebrow { color: #987146; letter-spacing: .22em; }
body.variant-3 #books-preview .prototype-carousel__details h3 { color: #43151d; font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.06; }
body.variant-3 #books-preview .prototype-carousel__status { color: #987146; font-family: var(--serif); font-size: 1.15rem; }
body.variant-3 #books-preview .prototype-carousel__button,
body.variant-3 #books-preview .prototype-carousel__pause { border-color: rgba(152, 113, 70, .5); color: #43151d; }
body.variant-3 #books-preview .prototype-carousel__button:hover,
body.variant-3 #books-preview .prototype-carousel__pause:hover { background: #43151d; border-color: #43151d; color: #f6efe2; }

@media (max-width: 600px) {
  body.variant-3 #books-preview .books-shelf-carousel .prototype-carousel__stage { height: clamp(320px, 90vw, 370px); }
}

/* Clean pause and play icons: two even bars, and a centred triangle */
body.variant-3 #books-preview .prototype-carousel__pause { position: relative; font-size: 0; }
body.variant-3 #books-preview .prototype-carousel__pause::before,
body.variant-3 #books-preview .prototype-carousel__pause::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 3px;
  height: 14px;
  margin-top: -7px;
  border-radius: 1px;
  background: currentColor;
  clip-path: none;
}
body.variant-3 #books-preview .prototype-carousel__pause::before { left: calc(50% - 5px); }
body.variant-3 #books-preview .prototype-carousel__pause::after { left: calc(50% + 2px); }
body.variant-3 #books-preview .prototype-carousel__pause[data-paused='true']::after { display: none; }
body.variant-3 #books-preview .prototype-carousel__pause[data-paused='true']::before {
  left: calc(50% - 4px);
  width: 12px;
  height: 14px;
  border-radius: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Controls: even circles, the counter set quietly above them */
body.variant-3 #books-preview .prototype-carousel__button,
body.variant-3 #books-preview .prototype-carousel__pause {
  width: 46px; height: 46px; flex-basis: 46px;
  background: transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
body.variant-3 #books-preview .prototype-carousel__buttons { gap: .5rem; }
body.variant-3 #books-preview .prototype-carousel__status { letter-spacing: .08em; }

/* Arabic titles line up on the left edge with the rest of the text */
body.variant-3 #books-preview .prototype-carousel__details h3 { width: 100%; max-width: 32ch; }
body.variant-3 #books-preview .prototype-carousel__details h3[dir='rtl'] {
  font-family: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  text-align: left;
  unicode-bidi: plaintext;
}
body.variant-3 #books-preview .prototype-carousel__translation { margin-top: .5rem; color: #71635d; font-size: 1rem; letter-spacing: .02em; }
body.variant-3 #books-preview .prototype-carousel__meta { margin-top: .6rem; letter-spacing: .04em; }
body.variant-3 #books-preview .prototype-carousel__pause::before,
body.variant-3 #books-preview .prototype-carousel__pause::after { top: 0; bottom: 0; margin: auto 0; transform: none; }

/* Pause and play drawn like the arrows: thin round lines in the same weight */
body.variant-3 #books-preview .prototype-carousel__pause::before,
body.variant-3 #books-preview .prototype-carousel__pause::after { content: none; display: none; }
body.variant-3 #books-preview .prototype-carousel__pause { font-size: 0; display: inline-grid; place-items: center; }
body.variant-3 #books-preview .prototype-carousel__pause svg { width: 1rem; height: 1rem; }
