/* ==========================================================
   J3xCipher — dancing men cipher section
   Matches the visual language of .geo-card / .osint-card:
   dark glass panel, cyan glow accent, Oxanium / Share Tech Mono
   ========================================================== */

.cipher-card {
    display: flex;
    align-items: stretch;
    gap: 40px;
    background: rgba(5, 8, 16, 0.4);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 12px;
    padding: 36px;
    flex-wrap: wrap;
}

.cipher-content {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.cipher-tag {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #00aaff;
    opacity: 0.85;
    margin: 0;
}

.cipher-desc {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(230, 240, 255, 0.85);
    margin: 0;
}

.cipher-visual {
    flex: 1 1 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle at 40% 35%,
        rgba(0, 170, 255, 0.06),
        rgba(5, 8, 16, 0.5)
    );
    border: 1px solid rgba(0, 170, 255, 0.15);
    border-radius: 8px;
    padding: 22px;
    max-height: 320px;
    overflow-y: auto;
}

.cipher-figures {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 3px 5px;
    color: #00aaff;
    filter: drop-shadow(0 0 3px rgba(0, 170, 255, 0.45));
}

.cipher-figures svg {
    display: block;
    flex-shrink: 0;
}

.cipher-figures svg path,
.cipher-figures svg rect {
    fill: currentColor;
}

/* scrollbar to match terminal aesthetic */
.cipher-visual::-webkit-scrollbar {
    width: 6px;
}
.cipher-visual::-webkit-scrollbar-thumb {
    background: rgba(0, 170, 255, 0.3);
    border-radius: 3px;
}

@media (max-width: 720px) {
    .cipher-card {
        flex-direction: column;
        padding: 24px;
        gap: 24px;
    }
    .cipher-visual {
        max-height: 220px;
    }
}
