@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

body {
    background: #000;
    margin: 0;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overscroll-behavior: none;
}

#container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(350px, calc(100vw - 100px));
  max-height: min(350px, calc(100vh - 100px));
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0.5;
  z-index: 0;
}

canvas {
    position: relative;
    z-index: 1;
    max-height: 100vh;
    max-width: 100vw;
    height: auto;
    width: auto;
    background: transparent;
    touch-action: none;
}



/* ==========================================
   TRAUMA-XP — INTERACTION GUIDE
========================================== */

#xp-interaction-guide {
    position: fixed;
    left: 40px;
    bottom: 40px;
    z-index: 10;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

#xp-interaction-guide .xp-guide-words {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: 'Rubik', sans-serif;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.06em;
}

#xp-interaction-guide .xp-guide-words span {
    color: #fff;
}

#xp-interaction-guide .xp-guide-words span:first-child {
    color: #0062ff;
}

#xp-interaction-guide p {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Rubik', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
}

/* MOBILE */

@media (max-width: 600px) {
    #xp-interaction-guide {
        left: 20px;
        bottom: 24px;
    }

    #xp-interaction-guide .xp-guide-words {
        font-size: 38px;
    }

    #xp-interaction-guide p {
        font-size: 8px;
        max-width: 230px;
        line-height: 1.5;
    }
}


/* ESTILOS GENERICOS */


html {
  -webkit-text-size-adjust: 100%;   /* evita que iOS agrande el texto al rotar */
}

body {
  overscroll-behavior: none;        /* evita pull-to-refresh accidental */
}

* {
  -webkit-tap-highlight-color: transparent; /* quita el flash azul al tocar en iOS */
}