/* ── Client page: the designer at work during "Making your design" (rv_architect.js) ──────
   The stage sits where the spinner did. Until the 3D arrives (or if it never does) it is just
   the spinner; with the 3D it becomes a 3:2 picture, 4:3 on a phone so he stays big enough. */
.rv-arch { position: relative; width: 100%; display: grid; place-items: center; min-height: 60px; }
.rv-arch.on3d { aspect-ratio: 3 / 2; max-width: 560px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #eef3fc, #d7e2f4); }   /* 560: the steps and "ready" stay on a laptop screen */
@media (max-width: 520px) { .rv-arch.on3d { aspect-ratio: 4 / 3; } }
.rv-arch.on3d .rv-arch-wait { display: none; }
.rv-arch-3d, .rv-arch-confetti { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .2s linear; }
.rv-arch-confetti { pointer-events: none; }

/* The tape's reading, pinned over the cabinets as he reaches the end. */
.rv-arch-dim { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%) scale(.6); opacity: 0; pointer-events: none;
  background: #f2c230; color: var(--rv-ink, #1f2a3d); font-weight: 800; font-size: 13px; padding: 3px 9px; border-radius: 99px;
  box-shadow: 0 4px 10px rgba(30, 40, 60, .25); font-variant-numeric: tabular-nums; transition: opacity .25s ease, transform .25s ease; }
.rv-arch-dim.on { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.rv-arch:not(.on3d) .rv-arch-dim { display: none; }

.rv-arch-skip { position: absolute; top: 10px; right: 10px; border: 0; border-radius: 99px; padding: 6px 12px; min-height: 32px; cursor: pointer;
  background: rgba(255, 255, 255, .85); color: var(--rv-blue-dark, #263f80); font: inherit; font-size: 13px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(30, 50, 90, .15); }
.rv-arch-skip:hover { background: #fff; }
.rv-arch-skip:focus-visible { outline: 3px solid #9db4ea; outline-offset: 2px; }

/* The card: the spinner-era 40 px top padding would push "ready" below a laptop's fold. */
.rv-card.rv-wait { padding-top: 22px; padding-bottom: 28px; }

/* The progress bar and "ready" line under the steps, and the error card. */
.rv-wait-bar { width: 100%; max-width: 320px; height: 6px; border-radius: 99px; background: var(--rv-blue-soft, #e8eefa); overflow: hidden; }
.rv-wait-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rv-blue, #3b5bab), #5b7ad1); }
.rv-wait-ready { margin: 0; color: var(--rv-ok, #15803d); font-weight: 800; }
.rv-wait-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 800;
  background: var(--rv-warn-soft, #fff4e0); color: var(--rv-warn, #9a5b00); }
.rv-wait .rv-bar { width: 100%; }

@media (prefers-reduced-motion: reduce) { .rv-arch-3d, .rv-arch-confetti, .rv-arch-dim { transition: none; } .rv-arch .rv-spin { animation-duration: 2.4s; } }
