body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #0e56be;
    cursor: default;
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(17, 120, 249, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(17, 120, 249, 0.9) 0%, rgba(12, 90, 220, 0.9) 100%);
    z-index: 0;
    pointer-events: none;
    animation: pulseBackground 10s ease-in-out infinite alternate;
}

@keyframes pulseBackground {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

#container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 200px 200px, 150px 150px, 180px 180px, 220px 220px;
    z-index: 0;
    animation: floatParticles 20s linear infinite;
    opacity: 0.3;
}

@keyframes floatParticles {
    0% { background-position: 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 200px 200px, 150px 150px, 180px 180px, 220px 220px; }
}

.top-text {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: bold;
    z-index: 2;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(255, 215, 0, 0.6),
        0 0 70px rgba(255, 215, 0, 0.4),
        0 0 80px rgba(255, 215, 0, 0.3);
    pointer-events: none;
    user-select: none;
    animation: textGlow 3s infinite alternate;
    letter-spacing: 5px;
    font-family: 'Courier New', monospace;
}

@keyframes textGlow {
    0%, 100% { 
        transform: translateX(0) scale(1);
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6),
            0 0 30px rgba(255, 215, 0, 0.6);
    }
    50% { 
        transform: translateX(0) scale(1.02);
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 0.9),
            0 0 25px rgba(255, 255, 255, 0.7),
            0 0 35px rgba(255, 215, 0, 0.8),
            0 0 45px rgba(255, 215, 0, 0.6);
    }
}

.bottom-wrapper {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 2;
    flex-wrap: wrap;
}

.bottom-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

.contract-text {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    pointer-events: auto;
    user-select: text;
    cursor: text;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.contract-text:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.action-btn {
    background: linear-gradient(135deg, #ffffff, #e6e6e6);
    color: #1178f9;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 3;
    font-family: 'Arial', sans-serif;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 120px;
}

.action-btn:hover {
    transform: scale(1.1) translateY(-2px);
    background: linear-gradient(135deg, #ffffff, #ffffff);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
    color: #0a5dc2;
}

.action-btn:active {
    transform: scale(1.05) translateY(0);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(255, 255, 255, 0.3);
}

.action-btn.copied {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 
        0 4px 15px rgba(76, 175, 80, 0.3),
        0 0 0 2px rgba(76, 175, 80, 0.5);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

.action-btn:hover::before {
    left: 100%;
}

#container canvas {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    animation: canvasGlow 4s ease-in-out infinite alternate;
}

@keyframes canvasGlow {
    0% { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1)); }
    100% { filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.3)); }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(17, 120, 249, 0.3) 40%,
        rgba(17, 120, 249, 0.6) 70%,
        rgba(17, 120, 249, 0.8) 100%
    );
    z-index: 0;
    pointer-events: none;
    animation: depthPulse 8s infinite alternate;
}

@keyframes depthPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.5; }
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.05) 50%
    );
    background-size: 100% 4px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.1;
    animation: scanlines 10s linear infinite;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .top-text {
        top: 30px;
        font-size: 2rem;
        padding: 0 15px;
        letter-spacing: 3px;
        text-shadow: 
            0 0 8px rgba(255, 255, 255, 0.8),
            0 0 15px rgba(255, 255, 255, 0.6),
            0 0 22px rgba(255, 215, 0, 0.5);
    }
    
    .bottom-wrapper {
        bottom: 40px;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .contract-text {
        font-size: 0.9rem;
        padding: 8px 16px;
        backdrop-filter: blur(5px);
    }
    
    .action-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
        width: 100px;
    }
}

.sticker-label {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    min-width: 280px;
    margin: 0;
}

@media (max-width: 480px) {
    .top-text {
        top: 20px;
        font-size: 1.5rem;
        letter-spacing: 2px;
        text-shadow: 
            0 0 6px rgba(255, 255, 255, 0.8),
            0 0 12px rgba(255, 255, 255, 0.6),
            0 0 18px rgba(255, 215, 0, 0.4);
    }
    
    .bottom-wrapper {
        gap: 20px;
        bottom: 30px;
    }
    
    .contract-text {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .label {
        font-size: 0.8rem;
    }
    
    .action-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
        width: 90px;
    }
}
