* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #000;
    height: 100vh;
    height: 100dvh; /* на мобиле убирает прыжок адресной строки */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    gap: 1.5rem;
    user-select: none;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-family: sans-serif;
    font-size: clamp(2rem, 8vw, 4rem); /* адаптивный размер */
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.hint {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.4);
    font-family: sans-serif;
    font-size: clamp(0.6rem, 2.5vw, 0.8rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
    transition: opacity 0.6s ease;
}

.hint.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1;   }
}