/* Hide the card's native scrollbar while keeping wheel/touch scrolling. */
html, body { scrollbar-width: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar { display: none; width: 0; height: 0; }
#main { box-sizing: border-box; }

#mec-background {
  --effect-color: #f49ac2;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}
#mec-background[hidden] { display: none; }
#mec-background::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
}
#mec-background[data-background-effect="cosmos"]::before {
  opacity: 1;
  background:
    radial-gradient(ellipse at 78% 22%, #7138a933 0, transparent 48%),
    radial-gradient(ellipse at 12% 70%, #23558138 0, transparent 52%),
    radial-gradient(ellipse at 60% 60%, color-mix(in srgb, var(--effect-color) 17%, transparent), transparent 58%),
    linear-gradient(145deg, #030610, #0b0615 60%, #030711);
}
#mec-background[data-background-effect="stars"]::before {
  opacity: 1;
  background: radial-gradient(ellipse at 65% 0, #10172d, #010208 75%);
}
#mec-background[data-background-effect="hearts"]::before {
  opacity: 1;
  background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--effect-color) 11%, transparent), transparent 75%);
}
#mec-background-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
body[data-mec-background]:not([data-mec-background="none"]) #main {
  position: relative;
  z-index: 1;
}
body[data-mec-background]:not([data-mec-background="none"]) #code,
body[data-mec-background]:not([data-mec-background="none"]) #clock-box {
  text-shadow: 0 2px 5px #000, 0 0 18px #000;
}
