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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    touch-action: none;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.name {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.5rem;
    color: #ffffff;
    text-align: center;
    z-index: 2;
    position: relative;
    pointer-events: auto;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.name:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(74, 144, 164, 0.8);
}

.bubble {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 144, 164, 0.6) 0%, rgba(74, 144, 164, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.9;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .name {
        font-size: 2.5rem;
        letter-spacing: 0.3rem;
        padding: 0 2rem;
    }
    
    .bubble {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.8rem;
        letter-spacing: 0.2rem;
    }
    
    .bubble {
        width: 150px;
        height: 150px;
    }
}

/* Portrait orientation on mobile */
@media (max-width: 480px) and (orientation: portrait) {
    .name {
        font-size: 1.5rem;
        letter-spacing: 0.15rem;
        padding: 0 1rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .name {
        font-size: 2rem;
        letter-spacing: 0.25rem;
    }
    
    .bubble {
        width: 150px;
        height: 150px;
    }
}

/* PR Credit */
.pr-credit {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 300;
    text-align: center;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .pr-credit {
        font-size: 0.65rem;
        bottom: 15px;
    }
}

/* Speech Bubble for Character */
.speech-bubble {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 12px 18px;
    border-radius: 20px;
    border: 2px solid #D4A574;
    font-size: 0.95rem;
    font-weight: 500;
    max-width: 300px;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: bubbleAppear 0.3s ease-out;
    transition: opacity 0.5s ease;
    -webkit-user-select: none;
    user-select: none;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #D4A574;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 32px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.95);
}

@keyframes bubbleAppear {
    0% {
        transform: scale(0.5) translateY(20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .speech-bubble {
        font-size: 0.8rem;
        padding: 10px 14px;
        max-width: 200px;
    }
}
