.vera-autoplay-demo {
  --demo-color: #713f78;
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--demo-color) 38%, #cfc8ce);
  border-radius: 28px;
  color: #171219;
  background: color-mix(in srgb, var(--demo-color) 88%, #fff 12%);
  box-shadow: 0 34px 100px rgba(50, 30, 52, 0.16);
  transition: background-color 650ms ease, border-color 650ms ease, box-shadow 650ms ease;
}
.vera-autoplay-demo[data-band="purple"] { --demo-color: #713f78; color: #fff; }
.vera-autoplay-demo[data-band="yellow"] { --demo-color: #e8bd22; color: #171219; }
.vera-autoplay-demo[data-band="orange"] { --demo-color: #ed801b; color: #171219; }
.vera-autoplay-demo[data-band="red"] { --demo-color: #ef493c; color: #171219; }
.vera-demo-progress { position: absolute; z-index: 2; top: 0; left: 0; width: 100%; height: 48px; padding: 22px max(24px, calc((100% - 300px) / 2)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: color-mix(in srgb, var(--demo-color) 92%, #fff 8%); border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); transition: background-color 650ms ease; }
.vera-demo-progress i { height: 4px; border-radius: 99px; background: currentColor; opacity: 0.23; transition: opacity 300ms ease, transform 300ms ease; }
.vera-demo-progress i.is-current { opacity: 1; transform: scaleY(1.7); }
.vera-demo-progress i.is-complete { opacity: 0.62; }
.vera-demo-transcript { height: 640px; padding: 60px 42px 120px; overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth; }
.vera-demo-transcript::-webkit-scrollbar { display: none; }
.vera-demo-message { max-width: 86%; margin: 0 0 24px; animation: vera-demo-rise 280ms ease-out both; }
.vera-demo-message.is-you { margin-left: auto; padding: 15px 18px; border-radius: 18px 18px 4px 18px; background: rgba(255, 255, 255, 0.24); }
.vera-demo-message.is-vera { padding: 5px 2px; }
.vera-demo-message span { display: block; margin-bottom: 8px; font-size: 0.58rem; font-weight: 900; letter-spacing: 0.18em; opacity: 0.72; }
.vera-demo-message p { min-height: 1.35em; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.18rem, 2vw, 1.72rem); line-height: 1.35; letter-spacing: -0.018em; }
.vera-demo-message p::after { content: ""; display: inline-block; width: 0.08em; height: 0.9em; margin-left: 0.08em; vertical-align: -0.06em; background: currentColor; animation: vera-demo-cursor 700ms steps(1) infinite; }
.vera-demo-message:not(:last-child) p::after { display: none; }
.vera-demo-finish { position: absolute; inset: auto 0 0; z-index: 3; padding: 22px 24px 24px; border-top: 1px solid rgba(255, 255, 255, 0.35); background: color-mix(in srgb, var(--demo-color) 92%, #fff 8%); animation: vera-demo-rise 300ms ease-out both; }
.vera-demo-finish[hidden] { display: none; }
.vera-demo-finish p { margin: 0 0 13px; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.vera-demo-finish div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vera-demo-finish button, .vera-demo-finish a { min-height: 46px; padding: 11px 16px; border: 1px solid currentColor; border-radius: 999px; color: inherit; background: transparent; font: inherit; font-size: 0.76rem; font-weight: 850; text-align: center; text-decoration: none; cursor: pointer; }
.vera-demo-finish a { color: #713f78; background: #fff; border-color: #fff; }
.vera-autoplay-demo [data-demo-status] { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.vera-autoplay-demo-wide { width: 100%; min-height: 700px; margin: 58px 0 110px; }
.vera-autoplay-demo-wide .vera-demo-transcript { height: 700px; padding-inline: clamp(28px, 8vw, 100px); }
.vera-autoplay-demo-wide .vera-demo-message { max-width: 76%; }
@keyframes vera-demo-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes vera-demo-cursor { 50% { opacity: 0; } }
@media (max-width: 820px) {
  .vera-autoplay-demo, .vera-autoplay-demo-wide { min-height: 620px; border-radius: 22px; }
  .vera-demo-transcript, .vera-autoplay-demo-wide .vera-demo-transcript { height: 620px; padding: 56px 20px 120px; }
  .vera-autoplay-demo-wide { margin: 38px 0 78px; }
  .vera-demo-message, .vera-autoplay-demo-wide .vera-demo-message { max-width: 92%; }
  .vera-demo-message p { font-size: clamp(1.12rem, 6.3vw, 1.52rem); }
  .vera-demo-finish { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .vera-autoplay-demo { transition-duration: 0ms; }
  .vera-demo-message, .vera-demo-finish { animation: none; }
  .vera-demo-message p::after { animation: none; opacity: 0.55; }
}
