* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    perspective: 1000px;
}

#scene {
    position: fixed;
    inset: 0;
    transform-style: preserve-3d;
    will-change: transform;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

#tagline {
    font-family: Georgia, serif;
    color: rgba(255, 255, 255, 0);
    font-size: clamp(18px, 3vw, 32px);
    text-align: center;
    letter-spacing: 6px;
    transition: color 0.1s;
    text-shadow: 0 0 30px #ff4466, 0 0 60px #ff4466;
    line-height: 2;
}

#watermark {
    position: fixed;
    bottom: 18px;
    right: 22px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    z-index: 3;
    text-shadow: 0 0 10px rgba(255, 68, 102, 0.5);
}

#nameCard {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(40, 8, 18, 0.6), rgba(10, 0, 5, 0.6));
    border: 1px solid rgba(255, 120, 150, 0.35);
    border-radius: 18px;
    padding: 8px 12px;
    z-index: 4;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 18px rgba(255, 68, 102, 0.18);
}

#toggleNameBox {
    background: transparent;
    border: none;
    color: rgba(255, 150, 170, 0.85);
    font-size: 14px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}

#toggleNameBox:hover {
    color: #ff4466;
}

#nameBox {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 220px;
    overflow: hidden;
    transition: opacity 0.3s, max-width 0.3s, transform 0.3s;
}

#nameBox.hidden {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
    transform: translateX(8px);
}

#nameBox input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    width: 76px;
    text-align: center;
    outline: none;
    padding: 3px 0;
}

#nameBox input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

#nameBox .amp {
    color: rgba(255, 100, 100, 0.7);
    font-family: Georgia, serif;
    font-size: 13px;
}

#replay {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: rgba(255, 100, 100, 0.5);
    letter-spacing: 2px;
    z-index: 3;
    cursor: pointer;
    border: 1px solid rgba(255, 100, 100, 0.3);
    padding: 6px 18px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 1s;
    background: rgba(0, 0, 0, 0.5);
}

#replay:hover {
    color: #ff4466;
    border-color: #ff4466;
}