/* Toast stack 3D */
.toast3d-stage {
  display: grid;
  min-height: 74vh;
  grid-template-columns: minmax(280px, 0.58fr) minmax(320px, 1fr);
  gap: clamp(24px, 6vw, 78px);
  align-items: center;
  overflow: hidden;
  padding: 32px max(16px, calc((100vw - 1180px) / 2));
  perspective: 1200px;
}

.toast3d-lab {
  display: grid;
  min-height: clamp(420px, 58vw, 620px);
  place-items: center;
  perspective: 1200px;
}

.toast3d-stack {
  position: relative;
  width: min(86vw, 560px);
  height: min(72vw, 520px);
  transform-style: preserve-3d;
  will-change: transform;
}

.toast3d-card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: min(82vw, 430px);
  min-height: 126px;
  gap: 12px;
  border: 1px solid rgba(17, 19, 21, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.5)),
    var(--tone);
  box-shadow: 0 26px 70px rgba(17, 19, 21, 0.16);
  padding: 18px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.toast3d-card small {
  color: rgba(17, 19, 21, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.toast3d-card strong {
  font-size: clamp(24px, 4vw, 44px);
  line-height: 0.95;
  text-transform: uppercase;
}

.toast3d-card span {
  display: block;
  width: 70%;
  height: 9px;
  border-radius: 999px;
  background: rgba(17, 19, 21, 0.16);
}

@media (max-width: 840px) {
  .toast3d-stage {
    grid-template-columns: 1fr;
  }

  .toast3d-stack {
    width: min(88vw, 430px);
    height: 430px;
  }
}
