.visualization-container {
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: center;
    gap: 0.85rem;
}

.dns-chain {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.dns-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.dns-link {
    position: relative;
    width: 140px;
    margin: 0 1rem;
    display: flex;
    align-items: center;
}

#dns-connector {
    width: 100%;
}

.dns-packet {
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22D3EE;
    box-shadow: 0 0 10px #22D3EE;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.lookup-process {
    font-size: 0.8rem;
    color: #22D3EE;
    margin-top: 0.3rem;
    opacity: 0;
    text-align: center;
}

.result-display {
    background: #1e293b;
    border: 1px solid #22D3EE;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-family: monospace;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.highlight {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.05rem;
}

/* .controls flotan desde el main.css compartido (flujo bajo la animación) */
.visualization-container .controls {
    margin-top: 0.75rem;
}

@keyframes dnsTravel {
    0% {
        left: 0;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        left: 100%;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
