body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.metal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16/10;
    background: 
        linear-gradient(135deg, #b8b8b8 0%, #8a8a8a 25%, #a5a5a5 50%, #7a7a7a 75%, #939393 100%);
    border-radius: 8px;
    box-shadow: 
        0 20px 60px rgba(104, 93, 93, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: clip-path 0.5s ease-in-out, opacity 0.8s ease-in-out;
    opacity: 1;
}

.metal-container.cut-active {
    /* Clip-path will be set dynamically via JavaScript */
}

.metal-container.fade-out {
    opacity: 0;
}


.spark-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, 
        rgba(255, 255, 200, 1) 0%,
        rgba(255, 200, 100, 1) 50%,
        rgba(255, 150, 50, 0.8) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 8;
    animation: spark 0.4s forwards;
    box-shadow: 0 0 6px rgba(255, 200, 100, 1);
}

@keyframes spark {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--spark-dx), var(--spark-dy)) scale(0.3);
        opacity: 0;
    }
}

.metal-texture {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, 
            transparent, 
            transparent 2px, 
            rgba(0, 0, 0, 0.03) 2px, 
            rgba(0, 0, 0, 0.03) 4px),
        repeating-linear-gradient(0deg, 
            transparent, 
            transparent 2px, 
            rgba(255, 255, 255, 0.03) 2px, 
            rgba(255, 255, 255, 0.03) 4px);
    opacity: 0.6;
}

.noise-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.engraved-text {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4a4a4a;
    text-shadow: 
        -2px -2px 4px rgba(255, 255, 255, 0.5),
        2px 2px 6px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.4);
    font-family: 'Arial Black', sans-serif;
    padding: 0 20px;
    margin-bottom: 20px;
}

.engraved-text span {
    opacity: 0;
    display: inline-block;
}

.engraved-text span.visible {
    animation: fadeIn 0.3s forwards;
}

.engraved-text-bottom {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4a4a4a;
    text-shadow: 
        -2px -2px 4px rgba(255, 255, 255, 0.5),
        2px 2px 6px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.4);
    font-family: 'Arial Black', sans-serif;
    padding: 0 20px;
}

.engraved-text-bottom span {
    opacity: 0;
    display: inline-block;
}

.engraved-text-bottom span.visible {
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.laser-head {
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
    z-index: 10;
}

.laser-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, 
        rgba(255, 51, 51, 1) 0%,
        rgba(255, 51, 51, 0.8) 30%,
        rgba(255, 51, 51, 0.4) 60%,
        transparent 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 15px rgba(255, 51, 51, 1),
        0 0 30px rgba(255, 51, 51, 0.8),
        0 0 45px rgba(255, 51, 51, 0.4);
    animation: laserPulse 0.1s infinite;
}

@keyframes laserPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.burn-point {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 150, 100, 1) 30%,
        rgba(255, 100, 50, 0.6) 60%,
        transparent 100%);
    border-radius: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9;
    opacity: 0;
    box-shadow: 
        0 0 20px rgba(255, 150, 50, 1),
        0 0 40px rgba(255, 100, 50, 0.8);
}

.burn-point.active {
    opacity: 1;
}

.smoke-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(150, 150, 150, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 8;
    animation: smoke 1s forwards;
}

@keyframes smoke {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--dx), -30px) scale(2);
        opacity: 0;
    }
}

.ambient-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 8s infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    50% { 
        transform: translate(var(--tx), var(--ty)) scale(1.5);
        opacity: 1;
    }
}