/* ============================================
   COUNTING GAME - LAB THEME
   ============================================ */

/* Background Numbers */
.numbers-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    opacity: 0.03;
}

.numbers-bg span {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #00ff88;
    animation: float-number 20s linear infinite;
}

@keyframes float-number {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Smoke Effect */
.smoke-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.smoke {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: smoke-drift 25s ease-in-out infinite;
    opacity: 0;
}

.smoke:nth-child(1) { animation-delay: 0s; left: -10%; top: 60%; }
.smoke:nth-child(2) { animation-delay: 8s; left: -10%; top: 30%; width: 400px; height: 400px; }
.smoke:nth-child(3) { animation-delay: 16s; left: -10%; top: 80%; width: 250px; height: 250px; }

@keyframes smoke-drift {
    0% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(120vw) translateY(-50px) scale(1.5);
        opacity: 0;
    }
}

/* Lab Container */
.lab-container {
    position: relative;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Hero Section */
.lab-hero {
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
}

.lab-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    position: relative;
    animation: pulse-glow 3s ease-in-out infinite;
}

.lab-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.5));
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(0, 255, 136, 0.8));
    }
}

.lab-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #00ff88, #00d4ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: -2px;
}

.lab-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
    font-family: 'Courier New', monospace;
}

.lab-subtitle::before,
.lab-subtitle::after {
    content: ' // ';
    color: #00ff88;
}

/* Clone Badge */
.clone-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid #00ff88;
    padding: 15px 30px;
    border-radius: 50px;
    margin-bottom: 40px;
    animation: badge-pulse 2s ease-in-out infinite;
}

.clone-badge::before {
    content: '🧬';
    font-size: 1.5rem;
}

.clone-badge span {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
    }
}

/* CTA Button */
.lab-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #5865F2, #7289da);
    color: white;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.4);
}

.lab-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(88, 101, 242, 0.6);
}

.lab-cta.invite-btn {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    color: #000;
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

.lab-cta.invite-btn:hover {
    box-shadow: 0 15px 50px rgba(0, 255, 136, 0.6);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin: 80px 0 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: inline-block;
    position: relative;
}

.section-title h2::before {
    content: '< ';
    color: #00ff88;
    font-family: 'Courier New', monospace;
}

.section-title h2::after {
    content: ' />';
    color: #00ff88;
    font-family: 'Courier New', monospace;
}

/* Lab Cards Grid */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Lab Card */
.lab-card {
    background: rgba(20, 20, 35, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.lab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
}

.lab-card:hover {
    transform: translateY(-5px) rotate(0.5deg);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lab-card.tilted-left {
    transform: rotate(-1deg);
}

.lab-card.tilted-right {
    transform: rotate(1deg);
}

.lab-card.tilted-left:hover {
    transform: translateY(-5px) rotate(-0.5deg);
}

.lab-card.tilted-right:hover {
    transform: translateY(-5px) rotate(0.5deg);
}

.lab-card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.lab-card h3 {
    font-size: 1.4rem;
    margin: 0 0 15px;
    color: #fff;
}

.lab-card p {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin: 0;
}

/* Rules List */
.rules-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li::before {
    content: '→';
    color: #00ff88;
    font-weight: bold;
}

/* Comparison Cards */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
}

.plan-card {
    background: rgba(20, 20, 35, 0.9);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    position: relative;
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.plan-card.free {
    transform: rotate(-2deg);
}

.plan-card.premium {
    transform: rotate(2deg);
    border-color: #00ff88;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(20, 20, 35, 0.95));
}

.plan-card.premium::before {
    content: '★ RECOMMENDED';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #00ff88;
    color: #000;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.plan-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.plan-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.plan-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: #00ff88;
    margin: 20px 0;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.plan-features li {
    padding: 10px 0;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li::before {
    content: '✓';
    color: #00ff88;
    font-weight: bold;
}

/* Rankings Section */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.ranking-card {
    background: rgba(20, 20, 35, 0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.ranking-card-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.1));
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ranking-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.ranking-card-body {
    padding: 20px;
}

/* Terminal Style */
.terminal {
    background: #0a0a0f;
    border-radius: 12px;
    padding: 25px;
    font-family: 'Courier New', monospace;
    border: 1px solid #00ff88;
    margin: 40px auto;
    max-width: 600px;
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-content {
    color: #00ff88;
    font-size: 0.9rem;
    line-height: 1.8;
}

.terminal-content .comment {
    color: #666;
}

.terminal-content .command {
    color: #fff;
}

.terminal-content .cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: #00ff88;
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 5px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Footer */
.lab-footer {
    text-align: center;
    padding: 60px 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.lab-footer p {
    color: rgba(255,255,255,0.4);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.lab-footer a {
    color: #00ff88;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .lab-title {
        font-size: 2.5rem;
    }
    
    .lab-logo {
        width: 140px;
        height: 140px;
    }
    
    .lab-grid,
    .comparison-grid,
    .rankings-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .lab-card.tilted-left,
    .lab-card.tilted-right,
    .plan-card.free,
    .plan-card.premium {
        transform: none;
    }
    
    .terminal {
        margin: 20px 15px;
    }
}

/* Glitch Effect for Title */
.glitch {
    position: relative;
}

.glitch.counting-active {
    color: #00ff88 !important;
    -webkit-text-fill-color: #00ff88 !important;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(10, 10, 20, 0.95);
    border: 2px solid #00ff88;
    border-radius: 20px;
    padding: 25px;
    z-index: 10000;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.3), 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-notice.show {
    bottom: 30px;
}

.cookie-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00d4ff, #ff00ff, #00ff88);
    background-size: 300% 100%;
    animation: gradient-move 3s linear infinite;
    border-radius: 20px 20px 0 0;
}

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 3rem;
    animation: bubble 2s ease-in-out infinite;
}

@keyframes bubble {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(0.95) rotate(5deg); }
}

.cookie-text {
    flex: 1;
    min-width: 200px;
}

.cookie-text strong {
    display: block;
    font-size: 1.1rem;
    color: #00ff88;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    color: #000;
}

.cookie-btn.accept:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.cookie-btn.info {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.cookie-btn.info:hover {
    border-color: #00ff88;
    color: #00ff88;
}

@media (max-width: 600px) {
    .cookie-notice {
        width: 95%;
        padding: 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@keyframes glitch-anim {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    15% { clip: rect(42px, 9999px, 73px, 0); }
    20% { clip: rect(63px, 9999px, 27px, 0); }
    25% { clip: rect(34px, 9999px, 55px, 0); }
    30% { clip: rect(86px, 9999px, 73px, 0); }
    35% { clip: rect(20px, 9999px, 20px, 0); }
    40% { clip: rect(26px, 9999px, 60px, 0); }
    45% { clip: rect(25px, 9999px, 66px, 0); }
    50% { clip: rect(57px, 9999px, 98px, 0); }
    55% { clip: rect(5px, 9999px, 46px, 0); }
    60% { clip: rect(82px, 9999px, 31px, 0); }
    65% { clip: rect(54px, 9999px, 27px, 0); }
    70% { clip: rect(28px, 9999px, 99px, 0); }
    75% { clip: rect(45px, 9999px, 69px, 0); }
    80% { clip: rect(23px, 9999px, 85px, 0); }
    85% { clip: rect(54px, 9999px, 84px, 0); }
    90% { clip: rect(45px, 9999px, 47px, 0); }
    95% { clip: rect(37px, 9999px, 20px, 0); }
    100% { clip: rect(4px, 9999px, 91px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(52px, 9999px, 74px, 0); }
    10% { clip: rect(79px, 9999px, 85px, 0); }
    15% { clip: rect(75px, 9999px, 5px, 0); }
    20% { clip: rect(67px, 9999px, 61px, 0); }
    25% { clip: rect(14px, 9999px, 79px, 0); }
    30% { clip: rect(1px, 9999px, 66px, 0); }
    35% { clip: rect(86px, 9999px, 30px, 0); }
    40% { clip: rect(23px, 9999px, 98px, 0); }
    45% { clip: rect(85px, 9999px, 72px, 0); }
    50% { clip: rect(71px, 9999px, 75px, 0); }
    55% { clip: rect(2px, 9999px, 48px, 0); }
    60% { clip: rect(30px, 9999px, 16px, 0); }
    65% { clip: rect(59px, 9999px, 50px, 0); }
    70% { clip: rect(41px, 9999px, 62px, 0); }
    75% { clip: rect(2px, 9999px, 82px, 0); }
    80% { clip: rect(47px, 9999px, 73px, 0); }
    85% { clip: rect(3px, 9999px, 27px, 0); }
    90% { clip: rect(26px, 9999px, 55px, 0); }
    95% { clip: rect(42px, 9999px, 25px, 0); }
    100% { clip: rect(38px, 9999px, 49px, 0); }
}
