#wire-puzzle-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

#wire-puzzle-box {
    display: flex;
    gap: 50px;
    padding: 30px;
    background: #0d0d0d;
    border: 1px solid #333;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
    align-items: center;
}

#wire-puzzle-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.5) 3px);
    pointer-events: none;
    z-index: 1;
}

#wire-puzzle-board {
    border: 2px solid #ff4141;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    padding: 10px;
    background: #1a1a1a;
    font-size: 0;
    position: relative; /* Added to enable z-index */
    z-index: 2;
}

#wire-puzzle-canvas {
    background-color: #1a1a1a;
    display: block;
}

#wire-puzzle-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-align: center;
    width: 280px;
    font-family: 'Creepster', cursive;
    position: relative;
    z-index: 2;
}

#wire-puzzle-controls h3 {
    font-size: 2.2em;
    color: #5a0404;
    text-shadow: 2px 2px #000000, -2px -2px #ffffff;
}

#wire-puzzle-controls #puzzle-timer {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5em;
    color: #ff0000;
    margin-top: 20px;
    text-shadow: 0 0 8px #ff0000;
}

#wire-puzzle-controls .puzzle-buttons {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

#wire-reset-puzzle-btn,
#wire-close-puzzle-btn {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    text-transform: uppercase;
    color: #aaa;
    background: transparent;
    border: 2px solid #555;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s;
}

#wire-reset-puzzle-btn:hover,
#wire-close-puzzle-btn:hover {
    color: #fff;
    background: #300;
    border-color: #f00;
    text-shadow: 0 0 5px #f00;
}


