.quote-text {
  position: relative;
}

.quote-text.is-switching .q {
  opacity: 0;
  transform: translateY(6px);
}

.quote-text .q {
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 1;
  transform: translateY(0);
}

.quotes-snap {
  width: 100%;
  overflow-x: hidden;
}

.quote-layer {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.quote-slide {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 80px);
  isolation: isolate;
  overflow-x: hidden;

  background:
    radial-gradient(1200px 600px at 50% 35%, rgba(174,0,255,.18), rgba(0,0,0,0) 60%),
    radial-gradient(900px 520px at 55% 55%, rgba(255,0,81,.14), rgba(0,0,0,0) 65%),
    linear-gradient(180deg, #050505 0%, #000 100%);
}

.quote-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% 45%, rgba(0,0,0,.25), rgba(0,0,0,.80) 70%),
    linear-gradient(180deg, rgba(0,0,0,.52), rgba(0,0,0,.78));
}

.quote-crown {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
  opacity: .10;
}

.quote-crown::before {
  content: "";
  width: min(640px, 70vw);
  height: min(640px, 70vw);
  background: url("/static/img/badges/Crown.png") center / contain no-repeat;
  filter: saturate(1.1);
}

.quote-card {
  width: min(980px, 92%);
  text-align: center;
  position: relative;
  z-index: 2;
}

.quote-text {
  margin: 0;
  color: #ffffff;
  font-family: "Cinzel", serif;
  font-weight: 500;
  letter-spacing: .2px;
  line-height: 1.18;
  font-size: clamp(30px, 4.2vw, 66px);
  text-shadow: 0 18px 60px rgba(0,0,0,.75);
}

.quote-meta {
  margin-top: 22px;
  color: rgba(255,255,255,.62);
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 200;
  font-family: "Cinzel", serif;
}

.quote-divider {
  margin: 26px auto 0;
  width: min(420px, 72%);
  height: 1px;
  background: rgba(255,255,255,.14);
}

.quote-actions {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  justify-content: center;
}

.quote-btn {
  background: transparent;
  border: none;
  opacity: .6;
  cursor: pointer;
  color: #ffffff;
  font-size: 1rem;
}

.quote-btn:hover {
  opacity: 1;
}

.translate-btn {
  letter-spacing: .22em;
}

.quote-slide .grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .055;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, rgba(0,0,0,0) 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, rgba(0,0,0,0) 1px 4px);
}
