* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #050508;
    font-family: 'Playfair Display', serif;
}

#canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#pun-display {
    position: absolute;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: 85%;
    max-width: 600px;
    pointer-events: none;
}

#pun-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(14px, 2.2vw, 20px);
    font-style: italic;
    color: #b8a88a;
    text-shadow: 0 0 15px rgba(139, 0, 0, 0.4), 0 0 30px rgba(26, 10, 46, 0.6);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    line-height: 1.6;
    letter-spacing: 0.03em;
}

#pun-text.visible {
    opacity: 1;
}

#digital-time {
    position: absolute;
    bottom: 7%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(11px, 1.5vw, 15px);
    color: rgba(212, 197, 169, 0.35);
    letter-spacing: 0.2em;
    pointer-events: none;
}

#footer-link {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: rgba(212, 197, 169, 0.2);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

#footer-link:hover {
    color: rgba(212, 197, 169, 0.5);
}

@media (max-width: 600px) {
    #pun-display {
        bottom: 16%;
        width: 90%;
    }
    #digital-time {
        bottom: 9%;
    }
}