/* components.css — Loader, boot, visualizer, filters, log list, detail view,
   buttons, contact icons, game UI, animations, reduced motion */

/* --- VISUALIZER --- */
.visualizer-container {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    background: #000;

    @media (max-width: 768px) {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-bottom: 1px solid var(--accent-primary);
        transition: aspect-ratio 0.35s ease, max-height 0.35s ease;
    }

    & .img-layer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        will-change: clip-path, filter;

        &#img-active { z-index: 1; }

        &#img-next {
            z-index: 2;
            clip-path: inset(0 0 100% 0);

            &.wiping {
                transition: clip-path var(--scan-speed) steps(20);
                clip-path: inset(0 0 0 0);
            }
        }
    }

    & .scan-line-anim {
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 2px;
        z-index: 10;
        will-change: transform;
        animation: scan-drop var(--scan-speed) steps(20) infinite;
    }
}

/* --- BOOT SEQUENCE (structural — visual in theme) --- */
#boot-sequence {
    position: absolute;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10%;
    font-size: 0.8rem;
    line-height: 1.8;
    letter-spacing: 1px;
    overflow: hidden;
}

#boot-sequence .boot-line {
    opacity: 0;
    white-space: nowrap;
}

#boot-sequence .boot-line.visible {
    opacity: 1;
}

#boot-sequence .boot-progress {
    margin-top: 10px;
    width: 100%;
    height: 2px;
    position: relative;
    overflow: hidden;
}

#boot-sequence .boot-progress-bar {
    height: 100%;
    width: 0;
    transition: width 1s linear;
}

/* --- SITE LOADER (quick return visits) --- */
#site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    width: 80%;
    max-width: 300px;
}

.loader-bar-container {
    width: 100%;
    height: 2px;
    position: relative;
    overflow: hidden;
}

.loader-bar {
    width: 40%;
    height: 100%;
    position: relative;
}

/* --- GAME UI LAYOUT --- */
#game-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
}

.game-loader-text {
    font-size: 0.9rem;
    letter-spacing: 2px;
}

#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: none;
    background: #000;
}

#game-ui {
    position: absolute;
    top: 12px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    font-family: var(--font-main);
    display: none;
}

#target-seq {
    font-size: 0.95rem;
    display: inline-block;
    padding: 4px 10px;
}

#game-msg {
    margin-top: 4px;
    font-size: 0.6rem;
    letter-spacing: 1px;
}

#summary-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.summary-box {
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.summary-box h2 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.stats-table td {
    padding: 8px 0;
    text-align: left;
    font-size: 0.75rem;
}

.stats-table td:last-child {
    text-align: right;
    font-weight: bold;
}

/* HIGHSCORE SUBMIT */
#score-submit {
    margin-bottom: 15px;
}

.score-input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.score-agent-label {
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
}

#agent-name {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    font-family: inherit;
    font-size: 0.75rem;
    padding: 4px 8px;
    width: 140px;
    text-transform: uppercase;
    outline: none;
    cursor: none;
}

#agent-name::placeholder {
    color: inherit;
    opacity: 0.4;
}

#score-status {
    font-size: 0.65rem;
    margin-top: 8px;
    letter-spacing: 1px;
    opacity: 0.8;
}

#score-banned {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding: 15px 0;
}

/* LEADERBOARD */
#score-leaderboard h3 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 4px 0;
    text-align: left;
    font-size: 0.65rem;
}

.leaderboard-table th {
    font-weight: bold;
    letter-spacing: 1px;
    padding-bottom: 6px;
}

.leaderboard-table td:first-child,
.leaderboard-table th:first-child {
    width: 28px;
    text-align: center;
}

.leaderboard-table td:nth-child(3),
.leaderboard-table th:nth-child(3),
.leaderboard-table td:nth-child(4),
.leaderboard-table th:nth-child(4) {
    text-align: right;
    width: 40px;
}

#score-leaderboard {
    max-height: 280px;
    overflow-y: auto;
}

/* GAME MOBILE OVERLAY */
@media (max-width: 768px) {
    body.game-active .visualizer-container {
        aspect-ratio: unset !important;
        position: fixed !important;
        top: 42px;
        bottom: 0 !important;
        left: 0;
        width: 100% !important;
        z-index: 400;
        height: calc(100dvh - 42px) !important;
    }
    body.game-active .mobile-id-container {
        z-index: 300;
    }
}

/* --- MOBILE SCROLL COLLAPSE (hero + footer shrink on scroll) --- */
@media (max-width: 768px) {
    body.mobile-scrolled:not(.game-active) .visualizer-container {
        aspect-ratio: 4 / 1;
    }

    .mobile-id-container {
        transition: transform 0.35s ease, opacity 0.35s ease;
    }

    body.mobile-scrolled:not(.game-active) .mobile-id-container {
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
    }

    body.mobile-scrolled:not(.game-active) .right-panel {
        padding-bottom: 0;
    }

    body.mobile-scrolled:not(.game-active) .tag-toggle-btn {
        bottom: 15px;
    }
}

/* --- CATEGORY FILTERS --- */
.category-filters {
    display: flex;
    border-bottom: 1px solid var(--accent-primary);
    min-height: 50px;
}

.filter-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid var(--accent-primary-dim);
    font-family: var(--font-main);
    font-weight: 700;
    cursor: none;
    font-size: 0.9rem;
    opacity: 0.5;
    position: relative;
    transition: opacity 0.2s, background-color 0.2s;
    text-transform: uppercase !important;
    letter-spacing: 1px;

    /* [bracket] hover pattern — shared UX signature */
    &::before {
        content: '[ ';
        opacity: 0;
        display: inline-block;
        transition: all 0.2s ease;
        transform: translateX(10px);
    }

    &::after {
        content: ' ]';
        opacity: 0;
        display: inline-block;
        transition: all 0.2s ease;
        transform: translateX(-10px);
    }

    &:hover,
    &.active {
        opacity: 1;

        &::before,
        &::after {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* --- CATEGORY DESCRIPTION (mobile only) --- */
.category-description {
    display: none;
}

@media (max-width: 768px) {
    .category-description:not(:empty) {
        display: block;
        padding: 8px 12px;
        font-family: var(--font-main);
        font-size: 0.65rem;
        letter-spacing: 0.5px;
        line-height: 1.4;
        opacity: 0.5;
        text-transform: uppercase;
        border-bottom: 1px solid var(--accent-primary-dim);
    }
}

/* --- LOG ITEMS --- */
#log-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;

    @media (max-width: 768px) {
        padding-bottom: 60px;
    }
}

.log-item {
    display: flex;
    padding: 0;
    border: 1px solid var(--accent-primary-dim);
    transition: border-color 0.2s, background-color 0.2s;
    cursor: none;
    min-height: 80px;
    height: auto;
    content-visibility: auto;

    &:hover {
        border-color: var(--accent-primary);

        & .log-header::before,
        & .log-header::after {
            opacity: 1;
            transform: translateX(0);
        }
    }

    & .log-thumb-small {
        align-self: stretch;
        width: 80px;
        object-fit: cover;
        border-right: 1px solid var(--accent-primary-dim);
        flex-shrink: 0;
    }

    & .log-meta {
        flex: 1;
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    & .log-date {
        opacity: 0.5;
        font-size: 0.75rem;
        display: block;
        margin-bottom: 4px;
    }

    & .log-header {
        font-size: 1rem;
        font-weight: 700;
        white-space: normal;
        line-height: 1.3;

        &::before {
            content: '[ ';
            opacity: 0;
            display: inline-block;
            transition: all 0.2s ease;
            transform: translateX(10px);

            @media (max-width: 768px) { display: none; }
        }

        &::after {
            content: ' ]';
            opacity: 0;
            display: inline-block;
            transition: all 0.2s ease;
            transform: translateX(-10px);

            @media (max-width: 768px) { display: none; }
        }
    }
}

/* --- DETAIL VIEW --- */
.detail-view {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow-x: hidden;

    &.active { display: flex; }
}

.btn-back {
    background: transparent;
    border: 1px solid var(--accent-primary);
    padding: 10px;
    margin-bottom: 20px;
    font-family: var(--font-main);
    font-weight: 700;
    cursor: none;
    width: fit-content;
    text-transform: uppercase !important;
    letter-spacing: 1px;

    &::before {
        content: '[ ';
        opacity: 0;
        display: inline-block;
        transition: all 0.2s ease;
        transform: translateX(10px);
    }

    &::after {
        content: ' ]';
        opacity: 0;
        display: inline-block;
        transition: all 0.2s ease;
        transform: translateX(-10px);
    }

    &:hover {
        &::before,
        &::after {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

.detail-text {
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    text-transform: none !important;
    padding-bottom: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;

    & p {
        margin-block: 1em;
        text-indent: 1em;
    }

    & a {
        text-decoration: none;
        font-weight: 700;
        cursor: none;
        position: relative;
        display: inline-block;

        &::before {
            content: '[';
            opacity: 0;
            display: inline-block;
            margin-right: 7px;
            margin-left: -30px;
            transition: all 0.2s ease;
            transform: translateX(5px);

            @media screen and (max-width: 768px) {
                opacity: 1;
                transform: translateX(0);
            }
        }

        &::after {
            content: ']';
            opacity: 0;
            display: inline-block;
            margin-left: -7px;
            margin-right: 0;
            transition: all 0.2s ease;
            transform: translateX(-5px);

            @media screen and (max-width: 768px) {
                opacity: 1;
                transform: translateX(0);
            }
        }

        &:hover::before,
        &:hover::after {
            opacity: 1;
            transform: translateX(0);
        }
    }

    & ul,
    & ol {
        padding-left: 2rem;
        margin-left: 0;
        list-style-position: outside;
    }

    & h1,
    & h2,
    & h3 {
        text-transform: uppercase;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    & img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 20px 0;
    }
}

/* --- CONTACT ICONS --- */
.contact-icons {
    display: inline-flex;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;

    & svg {
        width: 16px;
        height: 16px;
        display: block;
    }

    &::before,
    &::after {
        display: inline-block;
        opacity: 0;
        transition: all 0.2s ease;
        font-family: 'Space Mono', monospace;
        font-size: 14px;
        font-weight: 400;
        line-height: 1;
    }

    &::before {
        content: '[';
        margin-right: 2px;
        transform: translateX(5px);
    }

    &::after {
        content: ']';
        margin-left: 2px;
        transform: translateX(-5px);
    }

    &:hover::before,
    &:hover::after {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- SHARED ANIMATIONS --- */
@keyframes scan-drop {
    0% { transform: translateY(0); }
    100% { transform: translateY(var(--scan-height, 400px)); }
}

@keyframes blink-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

@keyframes glitch-heavy {
    0% { transform: translate(0) skew(0); clip-path: inset(0 0 0 0); }
    20% { transform: translate(-2px, 2px) skew(10deg); clip-path: inset(10% 0 85% 0); }
    40% { transform: translate(2px, -2px) skew(-5deg); clip-path: inset(40% 0 40% 0); }
    60% { transform: translate(-2px, 0) skew(5deg); clip-path: inset(80% 0 5% 0); }
    80% { transform: translate(2px, 2px) skew(-10deg); clip-path: inset(10% 0 60% 0); }
    100% { transform: translate(0) skew(0); clip-path: inset(0 0 0 0); }
}

@keyframes jiggly-dance {
    0% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-5px) rotate(-2deg); }
    50% { transform: translateX(5px) rotate(2deg); }
    75% { transform: translateX(-5px) rotate(-2deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

.id-glitching { animation: glitch-heavy 0.3s steps(3) infinite; opacity: 0.9; }
.id-dancing { animation: jiggly-dance 0.4s ease-in-out infinite; }

/* --- TAG VIZ (right panel view) --- */
#tag-viz {
    display: none;
    flex-direction: column;
    padding-block: 24px;
    overflow-y: auto;
}

.tag-viz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.65rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid transparent;

    @media (max-width: 768px) {
        margin-bottom: 0;
    }
}

.tag-viz-close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: none;
    opacity: 0.6;
    padding: 0 4px;
    font-family: var(--font-main);
    transition: opacity 0.2s;

    &:hover { opacity: 1; }
}

.tag-viz-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

.tag-viz-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: none;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.tag-viz-name {
    font-weight: 700;
}

.tag-viz-count {
    font-size: 0.6rem;
    opacity: 0.6;
}

.tag-viz-count::before {
    content: '\00d7';
    margin-right: 2px;
}

/* --- RADAR TAG VISUALIZATION --- */
.radar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: 60vh;
}

.radar-svg {
    width: 100%;
    max-width: 500px;
    height: auto;

    @media (max-width: 768px) {
        max-width: 100%;
    }
}

.radar-ring {
    fill: none;
    stroke-dasharray: 4 4;
    stroke-width: 1;
    opacity: 0.2;
}

.radar-crosshair {
    stroke-width: 0.5;
    opacity: 0.1;
}

.radar-center {
    opacity: 0.8;
}

.radar-connection {
    stroke-width: 0.5;
    opacity: 0.08;
}

.radar-sweep {
    transform-origin: 200px 200px;
    animation: radar-rotate 6s linear infinite;
}

.radar-sweep-wedge {
    opacity: 0.12;
}

.radar-sweep-line {
    stroke-width: 1;
    opacity: 0.6;
}

@keyframes radar-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-node {
    cursor: none;
    animation: radar-pulse 3s ease-in-out infinite;
}

.radar-node:hover {
    opacity: 1 !important;
}

.radar-node-circle {
    stroke-width: 1.5;
    transition: stroke-width 0.2s ease;
}

.radar-node:hover .radar-node-circle {
    stroke-width: 2.5;
}

.radar-node-icon svg {
    color: var(--bg-color, #050505);
}

.radar-node-icon {
    pointer-events: none;
}

.radar-node-label-bg {
    display: none;
    pointer-events: none;

    @media (max-width: 768px) {
        display: block;
    }
}

.radar-node-label {
    font-family: var(--font-main);
    font-size: 7px;
    letter-spacing: 1px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    display: none;

    @media (max-width: 768px) {
        display: block;
        opacity: 1;
        font-size: 9px;
    }
}

.radar-node:hover .radar-node-label {
    opacity: 1;
}

.radar-node:hover .radar-node-label-bg {
    display: block;
}

@keyframes radar-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.9; }
}

/* --- TAG TOGGLE BUTTON --- */
.tag-toggle-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: auto;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--accent-primary-dim);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: none;
    transition: opacity 0.2s, background-color 0.2s;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.tag-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- ACTIVE TAG INSIDE TAGS BUTTON --- */
.tag-toggle-btn.has-active-tag {
    opacity: 1;
    gap: 6px;
}

.tag-btn-label {
    letter-spacing: 1px;
}

.tag-btn-clear {
    font-size: 1.1rem;
    opacity: 0.5;
    transition: opacity 0.2s;
    line-height: 1;
    padding: 0 2px;
}

.tag-btn-clear:hover {
    opacity: 1;
}

.tag-toggle-btn::before {
    content: '[ ';
    opacity: 0;
    display: inline-block;
    transition: all 0.2s ease;
    transform: translateX(10px);
}

.tag-toggle-btn::after {
    content: ' ]';
    opacity: 0;
    display: inline-block;
    transition: all 0.2s ease;
    transform: translateX(-10px);
}

.tag-toggle-btn:hover,
.tag-toggle-btn.active {
    opacity: 1;
}

.tag-toggle-btn:hover::before,
.tag-toggle-btn:hover::after,
.tag-toggle-btn.active::before,
.tag-toggle-btn.active::after {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .tag-toggle-btn {
        position: fixed;
        bottom: var(--mobile-footer-h);
        z-index: 400;
    }
}

/* (Tag chips replaced by DNA strand + mobile tag list — see below) */

/* --- READING TIME --- */
.log-read-time {
    font-size: 0.7rem;
    opacity: 0.5;
    letter-spacing: 1px;
}

/* --- POST EXCERPT --- */
.log-excerpt {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    margin-top: 8px;
    line-height: 1.5;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: none;
}

@media (max-width: 768px) {
    .log-excerpt {
        display: block;
        opacity: 0.4;
    }
}

/* --- RELATED POSTS --- */
#related-posts {
    margin-top: 30px;
    padding-top: 20px;
}

.related-header {
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.5;
    margin-bottom: 10px;
}

.related-item {
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: none;
    text-transform: uppercase;

    &::before {
        content: '[ ';
        opacity: 0;
        display: inline-block;
        transition: all 0.2s ease;
        transform: translateX(10px);
    }

    &::after {
        content: ' ]';
        opacity: 0;
        display: inline-block;
        transition: all 0.2s ease;
        transform: translateX(-10px);
    }

    &:hover::before,
    &:hover::after {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- PREV/NEXT NAV --- */
.detail-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    gap: 10px;
}

.nav-prev,
.nav-next {
    font-size: 0.75rem;
    font-weight: 700;
    cursor: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    &::before {
        content: '[ ';
        opacity: 0;
        display: inline-block;
        transition: all 0.2s ease;
        transform: translateX(10px);
    }

    &::after {
        content: ' ]';
        opacity: 0;
        display: inline-block;
        transition: all 0.2s ease;
        transform: translateX(-10px);
    }

    &:hover::before,
    &:hover::after {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-next {
    margin-left: auto;
    text-align: right;
}

/* --- CURSOR TOOLTIP MORPH --- */
.cursor-tt-text {
    display: none;
}

.cursor-main.has-tooltip {
    width: auto;
    height: auto;
    max-width: 200px;
    padding: 5px 8px;
    animation: none;
    transition: none;
    overflow: hidden;
}

.cursor-main.has-tooltip .cursor-tt-text {
    display: -webkit-box;
    font-family: var(--font-main);
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-transform: uppercase;
    word-break: break-word;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* Shrink back to cursor animation */
.cursor-main.tooltip-shrink {
    max-width: 8px !important;
    padding: 0 !important;
    transition: max-width 0.15s ease-in, padding 0.15s ease-in !important;
}

.cursor-main.tooltip-shrink .cursor-tt-text {
    display: none !important;
}

/* --- DNA STRAND TAGS (desktop) --- */
.dna-strand-container {
    margin-top: 30px;
    padding-top: 20px;
}

.dna-strand-container::before {
    content: 'CLASSIFICATION //';
    display: block;
    font-size: 0.65rem;
    letter-spacing: 2px;
    opacity: 0.4;
    margin-bottom: 16px;
}

.dna-strand-svg {
    display: block;
    width: 100%;
    overflow: visible;
}

.dna-strand-line {
    fill: none;
    stroke-width: 1.5;
    opacity: 0.3;
}

.dna-rung {
    stroke-width: 1;
    opacity: 0.15;
}

.dna-node {
    cursor: none;
    transition: opacity 0.2s ease;
}

.dna-node:hover {
    opacity: 1 !important;
}

.dna-node-circle {
    stroke-width: 1.5;
    transition: stroke-width 0.2s ease;
}

.dna-node:hover .dna-node-circle {
    stroke-width: 2.5;
}

.dna-node-icon {
    pointer-events: none;
}

.dna-node-icon svg {
    color: var(--bg-color, #050505);
}

@media (max-width: 768px) {
    .dna-strand-container {
        margin-top: 0;
        margin-bottom: 15px;
    }
}

.dna-node-label-bg {
    display: none;
    pointer-events: none;

    @media (max-width: 768px) {
        display: block;
    }
}

.dna-node-label {
    font-family: var(--font-main);
    font-size: 7px;
    letter-spacing: 1px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    display: none;

    @media (max-width: 768px) {
        display: block;
        opacity: 1;
        font-size: 12px;
    }
}

.dna-node:hover .dna-node-label {
    opacity: 1;
}

.dna-node:hover .dna-node-label-bg {
    display: block;
}

/* --- MOBILE TAG LIST --- */
.mobile-tag-list {
    display: none;
    padding-top: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.mobile-tag-list::before {
    content: 'CLASSIFICATION //';
    display: block;
    width: 100%;
    font-size: 0.65rem;
    letter-spacing: 2px;
    opacity: 0.4;
    margin-bottom: 4px;
}

/* mobile-tag-list replaced by DNA strand on mobile */

.mobile-tag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    font-size: 0.55rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: none;
    transition: opacity 0.2s ease;
}

.mobile-tag-item svg {
    flex-shrink: 0;
    padding: 10px;
    box-sizing: content-box;
}

.mobile-tag-item span {
    padding: 2px 6px;
    white-space: nowrap;
    margin-top: -1px;
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .crt-overlay,
    .crt-aberration { display: none; }
    .cursor-trail,
    .cursor-main { display: none; }
    body { cursor: auto; text-shadow: none; }
    .main-grid { text-shadow: none; }
    .cursor-glow { display: none; }
    .log-thumb-small { filter: none; }
    .img-layer { filter: none !important; }
}
