html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  /* kiosk hardening: no selection, no long-press menu, no rubber-banding */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;l
  overscroll-behavior: none;
}

#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none; /* we handle all touch input ourselves */
  cursor: grab;
}
#stage.flipped { transform: rotate(180deg); }

#track { position: absolute; inset: 0; }

/* tint over the photos, under the text (.text has z-index 1) */
#filter {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(40, 40, 40, 0.4);
  pointer-events: none;
}

/* every image and text block is absolutely placed and moved with transform */
.photo, .text {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.photo {
  width: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.text {
  z-index: 1; /* photos are appended as you scroll; without this they'd cover older text */
  box-sizing: border-box;
  pointer-events: none;
  color: #abfbf6;
  font-family: "Geist Pixel", sans-serif;
  font-size: 3.1vw;
  line-height: 1.3;
  font-weight: regular;
  text-shadow: 0 0 1.2em rgba(0,0,0,.45);
  text-align: center;
}
.text.center { /* anchor: "center" puts the middle of the block on its position */
  translate: 0 -50%;
}

/* example styles you can reference with  class: "..."  in content.js */
.text.small { font-family: "Geist Pixel", sans-serif; font-size: 2.2vw; }

/* ---------- dev tools ---------- */
/* #debug {
  position: fixed;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  font: 12px/1.4 ui-monospace, Menlo, monospace;
  color: #0f0;
  background: rgba(0,0,0,.75);
  white-space: pre;
  display: none;
  z-index: 10;
} */
#centerline {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 0;
  border-top: 1px dashed #0f0;
  display: none;
  pointer-events: none;
}
body.debug #debug, body.debug #centerline { display: block; }

#loading {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  color: #666; font: 14px Helvetica, sans-serif;
  z-index: 20;
}
