* {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050505;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.view {
  display: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #050505;
}

.view.active {
  display: block;
}

.splash-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 14px;
}

.splash-copy h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: clamp(28px, 7vw, 68px);
  line-height: 0.95;
  margin: 0 0 12px;
}

/* THIS is the instruction width. Lower 240px if you want it even narrower. */
.instructions p {
  margin: 0;
  font-size: clamp(14px, 2.6vw, 24px);
  line-height: 1.25;
  text-align: center;
}

.instructions p {
  width: 100%;
  margin: 0;
  font-size: clamp(14px, 2.6vw, 24px);
  line-height: 1.25;
  text-align: center;
}

.splash-copy button {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 10px 26px;
  text-transform: lowercase;
  cursor: pointer;
}

.page-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  user-select: none;
  -webkit-user-drag: none;
}

.tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 50;
}

.tap-zone.left {
  left: 0;
}

.tap-zone.right {
  right: 0;
}

#counter {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 60;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
  text-shadow: 0 1px 7px #000;
}
  

