/* PPSI screen graphics: shared stage styles.
   Author every graphic in design pixels inside #stage; stage.js scales it to the screen. */

@font-face{
  font-family:"Inter";
  src:url("fonts/inter.woff2") format("woff2");
  font-weight:100 900; font-style:normal; font-display:block;
}
@font-face{
  font-family:"Inter";
  src:url("fonts/inter-italic.woff2") format("woff2");
  font-weight:100 900; font-style:italic; font-display:block;
}

*,*::before,*::after{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body{ margin:0; height:100%; overflow:hidden; overscroll-behavior:none; }
html{ background:var(--letterbox,#000); -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body{
  display:grid; place-items:center;
  background:var(--letterbox,#000);
  font-family:"Inter",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  -webkit-user-select:none; user-select:none; -webkit-touch-callout:none;
  touch-action:none;
}
img,video{ display:block; -webkit-user-drag:none; user-select:none; }
img{ max-width:none; }

/* The design canvas. Width/height come from PROP.design, set by stage.js. */
#stage{
  position:relative; overflow:hidden; flex:none;
  opacity:0; transition:opacity .25s ease-out;
}
html.ready #stage{ opacity:1; }

/* Operator: hide the pointer (H key) */
html.no-cursor, html.no-cursor *{ cursor:none !important; }

/* Scroll panels: mark with data-scroll. Add .no-scrollbar to hide the real scrollbar. */
[data-scroll]{ overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-y; }
.no-scrollbar{ scrollbar-width:none; }
.no-scrollbar::-webkit-scrollbar{ display:none; }

/* Reference overlay (D key) for lining up against the supplied JPG */
#ref-overlay{ position:absolute; inset:0; z-index:9999; pointer-events:none; opacity:.5; display:none; background-size:100% 100%; }
html.show-ref #ref-overlay{ display:block; }
