body{

    margin:0;

    padding:20px;

    background:#eef3ee;

    font-family:Arial,sans-serif;

}

.game-container{

    max-width:1400px;

    margin:auto;

    background:white;

    border:4px solid #2e8b57;

    border-radius:20px;

    padding:20px;

    box-shadow:0 5px 20px rgba(0,0,0,.15);

}

header{

    text-align:center;

    margin-bottom:20px;

}

header h1{

    color:#2e8b57;

}

.server-warning{
    background:#ffe9d6;
    border:2px solid #ff8c00;
    border-radius:12px;
    color:#663300;
    padding:15px;
    margin-bottom:20px;
    font-weight:600;
}

.hidden{
    display:none;
}

.top-panel{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

    justify-content:center;

}

.card{

    background:#f8f8f8;

    border-radius:12px;

    padding:15px;

    min-width:180px;

    text-align:center;

}

.card span{

    font-size:32px;

    font-weight:bold;

    color:#2e8b57;

}

.progress-container{

    background:#ddd;

    border-radius:10px;

    margin-top:20px;

}

.progress-bar{

    width:25%;

    background:#4CAF50;

    color:white;

    text-align:center;

    padding:8px;

    border-radius:10px;

}

.middle-section{

    display:flex;

    gap:20px;

    margin-top:20px;

}

.play-area{

    flex:2;

}

.history-panel{

    flex:1;

    background:#fafafa;

    border-radius:12px;

    padding:15px;

    min-height:500px;

}

.letters{

    min-height:100px;

    border:2px dashed #ccc;

    padding:15px;

    border-radius:12px;

}

.tile{

    width:70px;

    height:70px;

    background:#4CAF50;

    color:white;

    display:inline-flex;

    justify-content:center;

    align-items:center;

    margin:5px;

    border-radius:10px;

    font-size:32px;

    font-weight:bold;

    cursor:grab;

}

.board{

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    margin-top:15px;

}

.slot{

    width:80px;

    height:80px;

    border:3px dashed #999;

    margin:5px;

    border-radius:10px;

    background:white;

}

.current-word{

    text-align:center;

    font-size:28px;

    margin-top:20px;

}

.controls{

    text-align:center;

    margin-top:20px;

}

button{

    padding:12px 20px;

    margin:5px;

    font-size:18px;

    border:none;

    border-radius:10px;

    cursor:pointer;

}

.card input {
    width:100%;
    margin-top:10px;
    padding:10px;
    border:1px solid #ccc;
    border-radius:10px;
    font-size:16px;
}

.leaderboard-panel{
    margin-top:25px;
}

.leaderboard-panel ol{
    padding-left:20px;
}

.leaderboard-panel li{
    margin-bottom:12px;
    font-size:16px;
}

.confirm{

    background:#2e8b57;

    color:white;

}

.clear{

    background:#d9534f;

    color:white;

}

.new{

    background:#007bff;

    color:white;

}

.hint{

    background:#ff9800;

    color:white;

}

.hint-text{

    margin-top:10px;

    color:#444;

    font-size:16px;

}

.history-panel ul{

    list-style:none;

    padding:0;

}

.history-panel li{

    padding:10px;

    border-bottom:1px solid #ddd;

}

/* MODAL STYLES */
.modal{

    display:none;

    position:fixed;

    z-index:1000;

    left:0;

    top:0;

    width:100%;

    height:100%;

    background-color:rgba(0,0,0,0.5);

    animation: fadeIn 0.3s ease-in;

}

.modal.show{

    display:flex;

    justify-content:center;

    align-items:center;

}

@keyframes fadeIn{

    from{opacity:0;}

    to{opacity:1;}

}

.modal-content{

    background-color:white;

    padding:40px;

    border-radius:20px;

    text-align:center;

    box-shadow:0 10px 40px rgba(0,0,0,0.3);

    animation: slideIn 0.4s ease-out;

    max-width:500px;

}

@keyframes slideIn{

    from{transform:translateY(-50px);opacity:0;}

    to{transform:translateY(0);opacity:1;}

}

.congrats-message{

    font-size:48px;

    margin-bottom:20px;

    font-weight:bold;

    color:#2e8b57;

    line-height:1.6;

}

.modal-button{

    background:#2e8b57;

    color:white;

    padding:15px 40px;

    font-size:20px;

    margin-top:20px;

}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.modal-button:hover{

    background:#1f6241;

}