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

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

#bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.72) contrast(1.05);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#bg.loaded {
  opacity: 1;
}

#grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: overlay;
  z-index: 1;
}

#veil {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 2;
}

.line {
  position: fixed;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
  max-width: 220px;
  z-index: 3;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: color 0.15s ease;
}

.line.dragging {
  cursor: grabbing;
  background: yellow;
  color: #000;
  z-index: 10;
}

@media (max-width: 600px) {
  .line {
    font-size: 0.72rem;
    max-width: 44vw;
    line-height: 1.7;
  }
}

#hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 0.55rem 1.3rem;
  border-radius: 2rem;
  z-index: 20;
  cursor: pointer;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.9s ease;
}

#hint.hint-out {
  opacity: 0;
}

::selection {
  background: yellow;
  color: #000;
}
