/* ==========================================
   TRAUMA-XP — DOOR EXPERIENCE
   ========================================== */
html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: #000;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

/* Canvas Three.js */
#door-experience canvas {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Evitar gestos que interfieran con la interacción */
#door-experience {
    position: fixed;
    inset: 0;
    overflow: hidden;
    touch-action: none;
    background: #000;
}



/* 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 */
}



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

#xp-interaction-guide {
    position: fixed;
    left: 40px;
    bottom: 40px;
    z-index: 999;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    font-family: 'Poppins', sans-serif;
}

/* TYPOGRAPHY */

#xp-interaction-guide .xp-guide-words {
    display: flex;
    flex-direction: column;
    gap: 0;

    font-family: inherit;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.06em;
}

#xp-interaction-guide .xp-guide-words span {
    display: block;
    font-family: inherit;
    font-weight: 900;
    color: #fff;
}

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

/* DESCRIPTION */

#xp-interaction-guide p {
    margin: 18px 0 0;
    font-family: inherit;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
}

/* RESPONSIVE */

@media (max-width: 600px) {

    #xp-interaction-guide {
        left: 20px;
        bottom: 24px;
    }

    #xp-interaction-guide .xp-guide-words {
        font-size: clamp(32px, 8vw, 38px);
    }

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



/* 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 */
}
