*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #fff;
  color: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 400;
  cursor: default;
  -webkit-font-smoothing: antialiased;
}

#draw-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  touch-action: none;
}

.word {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: inline-block;
  white-space: nowrap;
  color: #000;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  line-height: 1;
  user-select: none;
  will-change: transform;
  /* Transform origin at center so shake/rotation feels natural */
  transform-origin: center center;
}

a.word:hover {
  text-decoration: underline;
}

/* Mobile: links look the same but are not interactive */
body.is-touch a.word {
  pointer-events: none;
  text-decoration: none;
}

body.is-touch {
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

/* Crosshair while the pen toggle is on */
body.pen-on,
body.pen-on .word {
  cursor: crosshair;
}
