/* Santa's Last Stop on the big screen. Its screens are drawn in tv-stop.js from the approved
   pictures: each is a picture 1280 wide and 720 tall, in the picture's own pixels, and the
   whole picture is scaled as one piece to fit the window (--sk, set in tv-stop.js). */

body.stop-on { background: #0b1c38; }
body.stop-on #snow, body.stop-on #bar, body.stop-on #progress { display: none; }
body.stop-on .stage { inset: 0; padding: 0; display: block; text-align: left; overflow: hidden; }

.sf {
  position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; margin: -360px 0 0 -640px;
  transform: scale(var(--sk, 1)); transform-origin: 50% 50%;
  box-sizing: border-box; padding: 28px 32px; overflow: hidden;
  background: #0b1c38; color: #f5f9ff; font-family: 'Nunito', system-ui, sans-serif; line-height: normal;
  display: flex; flex-direction: column; gap: 12px;
}
/* The pictures were drawn with the browser's own box sizes, so inside a picture those come back. */
.sf * { box-sizing: content-box; }
.sf img { display: block; }
.sf button { border-radius: 0; }
.sf button:disabled { cursor: default; }
.sqr svg { display: block; width: 100%; height: 100%; }
.schoice:hover, .schoice:focus-visible { border-color: #ffc94d !important; outline: none; }

/* A present slides from a player's name to the house, and settles with a small bounce.
   When cookies are risked on it, it grows. */
.sgift {
  transition: left 0.75s cubic-bezier(0.3, 1.25, 0.45, 1), top 0.75s cubic-bezier(0.3, 1.25, 0.45, 1),
    width 0.45s cubic-bezier(0.3, 1.5, 0.5, 1), height 0.45s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.5s;
  pointer-events: none;
}
/* A screen that has just been drawn puts every present straight where it belongs. */
.sboard.snap .sgift { transition: none; }
/* Santa picks a present up: it rises to the sleigh, shrinking, and is gone as it gets there. */
.sgift.up { transition: left 0.6s ease-in, top 0.6s ease-in, width 0.6s ease-in, height 0.6s ease-in, opacity 0.25s 0.4s; }
