@font-face {
    font-family: custom-font;
    src: url('../fonts/wvrbvfnafxtazrvybrms.ttf');
}

@font-face {
    font-family: 'Minecraftia';
    src: url('../fonts/Minecraftia.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: custom-font;

    /* Prevent text selection globally */
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

/* ================= ROOT & BODY ================= */

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    background: #000; /* pure black background */
}

/* ================= MATRIX CANVAS ================= */

#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* behind everything */
    pointer-events: none; /* non-interactive */
}

/* ================= OVERLAY ================= */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.overlay span {
    font-size: 36px;
    color: #fff;
    cursor: pointer;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ================= BLUR LAYER ================= */

.blurred {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease-in;
    pointer-events: none;
}

/* Reduce blur 30% on mobile */
/* Reduce blur on mobile */
@media (max-width: 768px) {
    .blurred {
        backdrop-filter: blur(2px);        /* 30% less */
        -webkit-backdrop-filter: blur(2px);
    }
}


/* ================= MAIN WINDOW ================= */

.clear-window {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 750px;
    height: 400px;
    transform: translate(-50%, -50%);
    z-index: 2;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 1s ease-in;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
}

.clear-window.show {
    opacity: 1;
}

/* ================= AVATAR ================= */

:root {
    --avatar-size: 100px;
}

.avatar-container {
    position: relative;
    width: var(--avatar-size);
    height: var(--avatar-size);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 60%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0,0,0,0.9);
}

.discord-decoration {
    position: absolute;
    inset: -12%;
    width: 124%;
    height: 124%;
    pointer-events: none;
}

/* ================= NAME & TOOLTIP ================= */

.name-tooltip {
    position: relative;
    margin-top: 20px;
}

.name {
    font-size: 24px;
    color: #fff;
    letter-spacing: 1px;
}

.tooltip-bubble {
    position: absolute;
    top: -30%;
    left: 115%;
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 7px;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Minecraftia', monospace;
}

.name-tooltip:hover .tooltip-bubble {
    opacity: 1;
}

/* ================= ROLES ================= */

.role-icon-wrapper {
    display: flex;
    gap: 6px;
    margin-top: 25px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

.role-icon {
    position: relative;
    cursor: pointer;
}

.role-icon img {
    width: 25px;
    height: 25px;
}

.tooltip {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(90,90,90,0.6);
    color: #000;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.role-icon:hover .tooltip {
    opacity: 1;
}

/* ================= SOCIAL ICONS ================= */

.socialicons {
    position: relative;
}

.social-icons-container {
    position: absolute;
    left: -40px;
    bottom: -100px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ================= TYPING TEXT ================= */

.typing-container {
    margin-top: 110px;
    font-size: 15px;
    color: #fff;
}

.typewrite .wrap {
  display: inline-block;
  backface-visibility: hidden; /* triggers hardware acceleration */
  transform: translateZ(0);     /* forces GPU repaint on mobile */
  -webkit-font-smoothing: antialiased; /* smoother font rendering */
  -webkit-transform: translate3d(0,0,0); /* extra GPU boost for mobile */
}

/* ================= AUDIO ================= */

.hidden-video {
    display: none;
}


