/* ====================================================
   FarmBrawl — Laboratorio de ADN (fullscreen tab)
   ==================================================== */

.lab-panel-wrap {
    padding: 0 0 2rem;
    min-height: calc(100dvh - 11rem);
}

.lab-tab-shell {
    width: 100%;
    max-width: min(1200px, 100%);
    margin: 0 auto;
}

.lab-page {
    width: 100%;
    border-radius: 1.75rem;
    overflow: hidden;
    border: 2px solid rgba(167, 139, 250, 0.35);
    box-shadow:
        0 1px 0 rgba(167, 139, 250, 0.08),
        0 12px 40px -12px rgba(0, 0, 0, 0.5);
    background: #140a28;
    isolation: isolate;
}

.lab-modal-in {
    animation: labModalIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes labModalIn {
    0% { opacity: 0; transform: translateY(28px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Hero ─── */
.lab-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(180px, 22vw, 240px);
}

.lab-hero-bg {
    position: absolute;
    inset: 0;
    background: url("../assets/lab-hero-bg.png") center 40% / cover no-repeat;
    transform: scale(1.03);
    z-index: 0;
}

.lab-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg, rgba(15, 7, 32, 0.35) 0%, transparent 50%);
    pointer-events: none;
}

.lab-hero-scanline {
    display: none;
}

@keyframes labScanDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(8px); }
}

.lab-hero-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    animation: labParticleFloat 4s ease-in-out infinite;
}

.lab-hero-particle--1 {
    width: 5px; height: 5px;
    top: 28%; left: 62%;
    background: #34d399;
    box-shadow: 0 0 10px #6ee7b7;
    animation-delay: 0s;
}

.lab-hero-particle--2 {
    width: 4px; height: 4px;
    top: 55%; left: 72%;
    background: #a78bfa;
    box-shadow: 0 0 8px #c4b5fd;
    animation-delay: 1.2s;
}

.lab-hero-particle--3 {
    width: 3px; height: 3px;
    top: 38%; left: 80%;
    background: #22d3ee;
    box-shadow: 0 0 7px #67e8f9;
    animation-delay: 2.4s;
}

@keyframes labParticleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-12px) scale(1.2); opacity: 1; }
}

.lab-hero-dna {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 72px;
    height: 120px;
    opacity: 0.35;
    animation: labDnaHelix 6s ease-in-out infinite;
}

.lab-hero-dna span {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 5px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #6ee7b7, #a78bfa);
}

.lab-hero-dna span:nth-child(1) { top: 0; }
.lab-hero-dna span:nth-child(2) { top: 18px; margin-left: 10px; }
.lab-hero-dna span:nth-child(3) { top: 36px; margin-left: -10px; }
.lab-hero-dna span:nth-child(4) { top: 54px; margin-left: 10px; }
.lab-hero-dna span:nth-child(5) { top: 72px; margin-left: -10px; }
.lab-hero-dna span:nth-child(6) { top: 90px; margin-left: 10px; }

@keyframes labDnaHelix {
    0%, 100% { transform: translateY(-50%) rotate(-2deg); }
    50% { transform: translateY(-52%) rotate(2deg); }
}

.lab-hero-flask-scene {
    position: absolute;
    right: 5.5rem;
    bottom: 0.5rem;
    z-index: 4;
    width: 56px;
    height: 72px;
}

.lab-flask {
    position: relative;
    width: 56px;
    height: 72px;
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 20px rgba(52, 211, 153, 0.35));
}

.lab-flask-neck {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(200,220,255,0.4));
    border-radius: 4px 4px 0 0;
    border: 1px solid rgba(255,255,255,0.5);
}

.lab-flask-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 0 0 50% 50% / 0 0 65% 65%;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(167, 139, 250, 0.55);
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.lab-flask-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62%;
    background: linear-gradient(180deg, #6ee7b7, #059669 55%, #047857);
    animation: labLiquid 2.8s ease-in-out infinite;
}

@keyframes labLiquid {
    0%, 100% { height: 58%; }
    50% { height: 68%; }
}

.lab-bubble {
    position: absolute;
    bottom: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    animation: labBubble 2s ease-in infinite;
}

.lab-bubble-1 { left: 12px; animation-delay: 0s; }
.lab-bubble-2 { left: 24px; animation-delay: 0.5s; }
.lab-bubble-3 { left: 34px; animation-delay: 1s; }
.lab-bubble-4 { left: 16px; animation-delay: 1.5s; width: 4px; height: 4px; }
.lab-bubble-5 { left: 30px; animation-delay: 2s; width: 5px; height: 5px; }

@keyframes labBubble {
    0% { transform: translateY(0); opacity: 0; }
    25% { opacity: 1; }
    100% { transform: translateY(-40px); opacity: 0; }
}

.lab-flask-react .lab-flask-liquid {
    animation: labLiquidReact 0.9s ease;
}

@keyframes labLiquidReact {
    0% { background: linear-gradient(180deg, #6ee7b7, #059669); }
    40% { background: linear-gradient(180deg, #fde047, #f59e0b); height: 82%; }
    100% { background: linear-gradient(180deg, #6ee7b7, #059669); }
}

.lab-hero-content {
    position: relative;
    z-index: 5;
    padding: 1.65rem 1.85rem 1.45rem;
    max-width: min(720px, 100%);
    background: rgba(15, 7, 32, 0.92);
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
}

.lab-hero-content::before {
    display: none;
}

.lab-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d1fae5;
    background: rgba(6, 78, 59, 0.6);
    border: 1px solid rgba(110, 231, 183, 0.4);
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.lab-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px #10b981;
    animation: labLivePulse 1.8s ease-in-out infinite;
}

@keyframes labLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.lab-hero-title {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: clamp(1.85rem, 3.8vw, 2.55rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.45rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.lab-hero-title-accent {
    color: #6ee7b7;
}

.lab-hero-title-icon {
    color: #34d399;
    animation: labSpin 4s linear infinite;
    display: inline-block;
    margin-right: 0.4rem;
}

.lab-hero-title i {
    color: inherit;
}

@keyframes labSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.lab-hero-sub {
    font-size: 0.92rem;
    font-weight: 600;
    color: #f5f3ff;
    margin: 0 0 0.9rem;
    line-height: 1.55;
    max-width: 36rem;
}

.lab-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lab-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(15, 7, 32, 0.7);
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 0.75rem;
    font-size: 0.74rem;
    font-weight: 800;
    color: #e9d5ff;
}

.lab-hero-stat strong {
    color: #ffffff;
}

.lab-hero-stat strong {
    color: #fde68a;
    font-size: 0.85rem;
}

.lab-hero-stat i {
    color: #6ee7b7;
    font-size: 0.75rem;
}

.lab-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 7, 32, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.lab-close:hover {
    background: rgba(124, 58, 237, 0.6);
    transform: scale(1.08);
}

/* Body scroll area */
.lab-body {
    padding: 1.35rem 1.5rem 1.75rem;
    background: linear-gradient(180deg, #1e0f30 0%, #140a28 100%);
}

/* Source cards */
.lab-source-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.lab-source-card {
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: 1rem;
    border: 1.5px solid rgba(167, 139, 250, 0.2);
    background: rgba(25, 13, 48, 0.95);
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.lab-source-card--link {
    cursor: pointer;
}

.lab-source-card--link:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(124, 58, 237, 0.2);
}

.lab-source-icon {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    display: block;
}

.lab-source-card b {
    display: block;
    font-size: 0.72rem;
    color: #e9d5ff;
    margin-bottom: 0.15rem;
}

.lab-source-card span {
    font-size: 0.62rem;
    color: #c4b5fd;
    line-height: 1.3;
}

.lab-info-strip {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.3);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 0.9rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.74rem;
    color: #ddd6fe;
    margin-bottom: 1rem;
    line-height: 1.45;
}

.lab-info-strip i {
    color: #6ee7b7;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.lab-info-strip b { color: #fde68a; }

.lab-economy-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.35rem;
}

.lab-economy-chip {
    text-align: center;
    padding: 0.65rem 0.4rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(16, 185, 129, 0.25));
    border: 1px solid rgba(167, 139, 250, 0.35);
    font-size: 0.72rem;
    color: #e9d5ff;
}

.lab-economy-chip b {
    display: block;
    color: #fde68a;
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
}

/* Section headers */
.lab-section {
    margin-bottom: 1.35rem;
}

.lab-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.lab-section-title {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f3e8ff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.lab-section-title i { color: #6ee7b7; }

.lab-section-badge {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ddd6fe;
    background: rgba(124, 58, 237, 0.25);
    border: 1px solid rgba(167, 139, 250, 0.3);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

/* ADN vial cards */
.lab-adn-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.65rem;
}

.lab-adn-card {
    position: relative;
    text-align: center;
    padding: 0.65rem 0.35rem 0.55rem;
    border: 2px solid rgba(167, 139, 250, 0.3);
    border-radius: 1rem;
    background: rgba(25, 12, 48, 0.9);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lab-adn-card.lab-adn-enter {
    animation: labAdnCardIn 0.45s cubic-bezier(0.34, 1.2, 0.64, 1) backwards;
}

@keyframes labAdnCardIn {
    from { opacity: 0; transform: translateY(12px) scale(0.9); }
    to { opacity: 1; transform: none; }
}

.lab-adn-has {
    border-color: rgba(110, 231, 183, 0.45);
    box-shadow: 0 4px 20px -6px rgba(52, 211, 153, 0.35);
}

.lab-adn-has::after {
    display: none;
}

.lab-vial-cap {
    width: 18px;
    height: 6px;
    margin: 0 auto 0.15rem;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #c4b5fd, #7c3aed);
}

.lab-adn-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 38px;
    margin-bottom: 0.2rem;
}

.lab-adn-icon svg,
.lab-adn-icon .crop-art-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.lab-adn-pulse {
    animation: labAdnPulse 2.2s ease-in-out infinite;
}

@keyframes labAdnPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(110, 231, 183, 0.6)); }
}

.lab-adn-name {
    font-size: 0.68rem;
    font-weight: 800;
    color: #e9d5ff;
    margin-bottom: 0.1rem;
}

.lab-adn-count {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    color: #fde68a;
}

.lab-adn-need {
    font-size: 0.58rem;
    color: #c4b5fd;
    margin-top: 0.1rem;
}

/* Active fusion chamber */
.lab-chamber-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    border: 2px dashed rgba(167, 139, 250, 0.3);
    border-radius: 1.25rem;
    color: #c4b5fd;
    font-size: 0.82rem;
    font-style: italic;
    background: rgba(15, 7, 32, 0.3);
}

.lab-chamber-empty i {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

@keyframes labChamberIdle {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.08); opacity: 0.65; }
}

.lab-active {
    position: relative;
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(20,10,40,0.85));
    border: 1.5px solid rgba(167, 139, 250, 0.25);
    border-radius: 1.15rem;
    padding: 0.9rem 1rem;
    overflow: hidden;
}

.lab-active::before {
    display: none;
}

@keyframes labChamberSweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

.lab-fusion-enter {
    animation: labFusionRowIn 0.4s ease backwards;
}

@keyframes labFusionRowIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: none; }
}

.lab-active-ready {
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,78,59,0.2));
    border-color: rgba(110, 231, 183, 0.45);
    box-shadow: 0 4px 24px -8px rgba(52, 211, 153, 0.35);
}

.lab-active-ready::before {
    animation: none;
}

.lab-active-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    position: relative;
    z-index: 1;
}

.lab-active-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.lab-active-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 10, 40, 0.6);
    border: 2px solid rgba(167,139,250,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lab-active-icon svg,
.lab-active-icon .crop-art-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.lab-active-ready .lab-active-icon {
    border-color: rgba(110, 231, 183, 0.5);
    animation: labReadyGlow 1.5s ease-in-out infinite;
}

@keyframes labReadyGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
}

.lab-active-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #f3e8ff;
}

.lab-active-timer {
    font-size: 0.72rem;
    font-weight: 700;
    color: #c4b5fd;
}

.lab-active-ready .lab-active-timer {
    color: #6ee7b7;
}

.lab-progress {
    position: relative;
    z-index: 1;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    overflow: hidden;
}

.lab-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #7c3aed, #6d28d9);
    background-size: 200% 100%;
    animation: labProgressShine 2s linear infinite;
    transition: width 0.5s ease;
    border-radius: inherit;
}

@keyframes labProgressShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.lab-active-ready .lab-progress span {
    background: linear-gradient(90deg, #34d399, #059669);
    animation: none;
}

.lab-spinner {
    color: #a78bfa;
    font-size: 1.2rem;
    animation: labSpin 2s linear infinite;
}

/* Blueprint fusion cards */
.lab-blueprint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 0.75rem;
}

.lab-fusion-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    background: rgba(25, 13, 48, 0.92);
    border: 1.5px solid rgba(167, 139, 250, 0.2);
    border-radius: 1.15rem;
    padding: 0.9rem 1rem;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
    height: 100%;
}

.lab-fusion-row:hover {
    border-color: rgba(167, 139, 250, 0.35);
}

.lab-fusion-ready {
    border-color: rgba(253, 224, 71, 0.4);
    box-shadow: 0 4px 24px -8px rgba(253, 224, 71, 0.2);
    animation: labReadyBorder 2s ease-in-out infinite;
}

@keyframes labReadyBorder {
    0%, 100% { box-shadow: 0 4px 24px -8px rgba(253, 224, 71, 0.2); }
    50% { box-shadow: 0 4px 28px -4px rgba(253, 224, 71, 0.35); }
}

.lab-fusion-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.lab-fusion-plant {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    background: rgba(124, 58, 237, 0.15);
    border: 2px solid rgba(167, 139, 250, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lab-fusion-plant svg,
.lab-fusion-plant .crop-art-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.lab-fusion-plant-glow {
    animation: labGlow 1.8s ease-in-out infinite;
    border-color: rgba(253, 224, 71, 0.45);
}

@keyframes labGlow {
    0%, 100% { filter: drop-shadow(0 0 0 transparent); }
    50% { filter: drop-shadow(0 0 10px rgba(253, 224, 71, 0.55)); }
}

.lab-fusion-info { min-width: 0; }

.lab-fusion-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #f3e8ff;
    margin-bottom: 0.15rem;
}

.lab-fusion-name em {
    font-style: normal;
    color: #6ee7b7;
}

.lab-fusion-meta {
    font-size: 0.68rem;
    color: #c4b5fd;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.lab-fusion-meta span {
    color: #fde68a;
    font-weight: 700;
}

.lab-fusion-bar {
    height: 6px;
    max-width: 200px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    overflow: hidden;
}

.lab-fusion-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #7c3aed);
    transition: width 0.4s ease;
    border-radius: inherit;
}

.lab-fusion-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
}

.lab-fusion-count {
    font-size: 0.82rem;
    font-weight: 800;
    color: #fde68a;
    margin-bottom: 0.35rem;
}

.lab-fuse-btn {
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    border: none;
    border-radius: 0.85rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 0 #4c1d95;
    white-space: nowrap;
}

.lab-fuse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #4c1d95, 0 8px 20px -6px rgba(124, 58, 237, 0.5);
}

.lab-fuse-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 #4c1d95;
}

.lab-fusion-missing {
    font-size: 0.68rem;
    color: #c4b5fd;
    font-weight: 700;
}

.lab-claim-btn {
    padding: 0.55rem 1.15rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    border: none;
    border-radius: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 0 #047857;
    animation: labClaimPulse 1.4s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes labClaimPulse {
    0%, 100% { box-shadow: 0 4px 0 #047857, 0 0 0 0 rgba(16,185,129,0.4); }
    50% { box-shadow: 0 4px 0 #047857, 0 0 0 8px rgba(16,185,129,0); }
}

.lab-claim-btn:hover {
    transform: translateY(-1px);
}

/* Sparkles */
.lab-sparkle {
    position: fixed;
    z-index: 1200;
    font-size: 1.2rem;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: labSparkle 0.9s ease-out forwards;
}

@keyframes labSparkle {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.3); }
}

/* Responsive */
@media (max-width: 900px) {
    .lab-blueprint-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .lab-panel-wrap { min-height: auto; }
    .lab-page { border-radius: 1.25rem; }
    .lab-hero-content { padding: 1.15rem 1.25rem 1rem; }
    .lab-hero-flask-scene,
    .lab-hero-dna { display: none; }
    .lab-source-row,
    .lab-economy-row { grid-template-columns: 1fr; }
    .lab-adn-grid { grid-template-columns: repeat(3, 1fr); }
    .lab-fusion-right { flex-direction: column; align-items: stretch; }
    .lab-fusion-bar { max-width: 100%; }
}
