/* Jema background layer: Sky35 sits behind the working game (xindex). The game code is untouched. */
:root{ --jema-scrim:.20; }
#jemaSky{ display:none; position:fixed; inset:0; width:100%; height:100%; border:0; z-index:-1; pointer-events:none; background:#0b0b0b; }
html.jema-bg-on{ background:#0b0b0b; }
html.jema-bg-on #jemaSky{ display:block; }
html.jema-bg-on body:not([data-theme="light"]){ background:transparent !important; }
/* scrim keeps the old light-on-dark UI readable on bright sky segments until T15 recolors it */
html.jema-bg-on body:not([data-theme="light"])::after{ content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; background:rgba(11,11,11,var(--jema-scrim)); }
/* the game's light theme keeps its own light look: no sky, no scrim */
body[data-theme="light"] #jemaSky{ display:none; }
