/* heart.xrell.online — generative particle heart */

:root {
  --bg: #05050a;
  --ink: #ffd9e2;
}

* { box-sizing: border-box; }

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;              /* никакой горизонтальной прокрутки */
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;    /* не даёт «оттянуть» страницу на мобильных */
  background:
    radial-gradient(58% 46% at 50% 48%, rgba(150, 12, 52, 0.30) 0%, rgba(90, 6, 34, 0.16) 45%, rgba(5, 5, 10, 0) 78%),
    radial-gradient(120% 90% at 50% 50%, #14060f 0%, #09040a 55%, #05050a 100%);
}

/* Полотна: абсолютное перекрытие, размер задаётся скриптом (devicePixelRatio) */
#scene,
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#scene {
  /* manipulation отключает двойной-тап-зум, но не мешает жестам */
  touch-action: manipulation;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}

#fx {
  pointer-events: none;
}

.hud {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding:
    calc(20px + env(safe-area-inset-bottom))
    calc(16px + env(safe-area-inset-right))
    calc(20px + env(safe-area-inset-bottom))
    calc(16px + env(safe-area-inset-left));
}

.hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 186, 203, 0.62);
  text-shadow: 0 0 22px rgba(255, 52, 104, 0.55);
  opacity: 1;
  transition: opacity 1.4s ease;
  text-align: center;
}

.hint.is-hidden { opacity: 0; }

.noscript {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 190, 205, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .hint { transition: none; }
}
