/* zzz-scale.css — should be last in /assets/ */

/* 0) fallback before JS runs */
:root {
    --scale: 1;
  }
  
  /* 1) centre wrapper */
  .frame-wrapper {
    position: fixed;
    inset: 0;               /* shorthand for top/right/bottom/left = 0 */
    display: flex;
    justify-content: center;
    align-items:   center;
    overflow: hidden;
  }
  
  /* 2) scale‐driven card */
  .card-stage {
    width:  375px;
    height: 650px;
  
    background-image: var(--card-url);  /* set by your Dash callback */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  
    transform-origin: center center;
    transform: scale(var(--scale)) !important;
  }
  