/* Interactive comic puzzle – scoped to #comic-puzzle (keeps its original dark look as a panel) */

#comic-puzzle{
    max-width:1100px;
    margin:0 auto;
    background:#153f38;
    color:#fff;
    border-radius:16px;
    padding:10px 10px 30px;
}

#comic-puzzle .panel-head{
    text-align:center;
    padding:30px 20px 10px;
}

#comic-puzzle .panel-head h2{
    font-size:clamp(1.6rem,4vw,2.6rem);
}

#comic-puzzle .panel-head p{
    margin-top:10px;
    color:#ddd;
}

#comic-puzzle #stats{
    text-align:center;
    font-size:24px;
    margin-top:20px;
}

#comic-puzzle #controls{
    text-align:center;
    margin:20px 0;
}

#comic-puzzle #controls button{
    background:var(--ink);
    color:#fff;
    border:none;
    padding:12px 20px;
    border-radius:6px;
    cursor:pointer;
    font-size:15px;
}

#comic-puzzle #controls button:hover{
    background:var(--green-dark);
}

#comic-puzzle #game-container{
    display:flex;
    justify-content:center;
    gap:35px;
    flex-wrap:wrap;
    padding:20px;
}

#comic-puzzle .game-section h3{
    text-align:center;
    margin-bottom:10px;
}

#comic-puzzle .board,
#comic-puzzle .piece-pool{
    display:grid;
    grid-template-columns:repeat(3,100px);
    grid-template-rows:repeat(3,100px);
    gap:4px;
    background:#2a5a50;
    padding:10px;
    border-radius:10px;
}

#comic-puzzle .slot,
#comic-puzzle .piece{
    width:100px;
    height:100px;
    background-size:300px 300px;
    background-repeat:no-repeat;
}

#comic-puzzle .slot{
    background:#0e2f29;
    border:2px dashed #666;
}

#comic-puzzle .piece{
    border:1px solid #fff;
    cursor:grab;
}

#comic-puzzle #message{
    text-align:center;
    margin-top:20px;
    font-size:24px;
    color:#81c784;
}

#comic-puzzle .success{
    display:inline-block;
    background:#1B5E20;
    color:#fff;
    padding:20px;
    border-radius:10px;
}

#comic-puzzle #goal{
    text-align:center;
    padding:30px;
}

#comic-puzzle #goal img{
    width:100%;
    max-width:500px;
    border-radius:10px;
    border:2px solid #fff;
}

#comic-puzzle #goal p{
    margin-top:15px;
    color:#ddd;
}

@media(max-width:768px){

    #comic-puzzle #game-container{
        flex-direction:column;
        align-items:center;
    }
}

@media(max-width:480px){

    #comic-puzzle .board,
    #comic-puzzle .piece-pool{
        transform:scale(.85);
    }
}
