/* Flap scroll: the board is one canvas. The host sets its width; the script sets the
   aspect ratio from rows and columns so the layout never jumps when it starts. The
   canvas is transparent outside the frame, so the page's own ground shows round it. */

.flap-scroll {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 22 / 6;      /* a placeholder; the script sets the true ratio */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.flap-scroll:focus-visible { outline: 2px solid var(--flap-focus, currentColor); outline-offset: 6px; border-radius: 12px; }

/* an optional soft contact shadow under the frame, like the app's wall shadow.
   Static, so it costs nothing per frame. */
.flap-scroll-wrap {
  position: relative;
  display: block;
}
.flap-scroll-wrap::after {
  content: "";
  position: absolute;
  left: 6%; right: 6%; bottom: 4%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--flap-shadow, rgba(0, 0, 0, 0.35)), transparent 100%);
  filter: blur(14px);
  transform: translateY(45%);
  z-index: -1;
  pointer-events: none;
}
