* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Nunito',sans-serif;
    background-color: #e8f0d0;
    background-image: repeating-conic-gradient(#5a7a3a 0% 25%,#e8f0d0 0% 50%);
    background-size: 140px 140px;
    min-height:  100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 20px;
}
.Title{
    font-family: 'Titan One','cursive';
    font-size: 3rem;
    color: white;
    text-shadow: 4px 4px 0 #5a7a3a,2px 2px 0 #5a7a3a,-2px 2px 0 #5a7a3a;
    background: #7aab4a;
    padding: 10px 36px 12px;
    letter-spacing: 2px;
    user-select: none;
    box-shadow: 5px 5px 0 #5a7a3a;
}
.preset-bar{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center
}
.preset-btn{
    font-family:'Nunito',sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    background: #7aab4a;
    color: white;
    border: 3px solid #5a7a3a;
    border-radius: 16px;
    padding: 6px 20px;
    cursor: pointer;
    transition: all 0.125s;
    text-shadow: 1px 1px 0 #5a7a3a;
    box-shadow: 3px 3px 0 #5a7a3a;
}
.preset-btn:hover{
    background: #5a7a3a;
    transform: scale(1.07);
}
.preset-btn.active{
    background: #5a7a3a;
    box-shadow: 1px 1px 0 #2d4a1a;
    transform: scale(0.97);
}
.clocks-wrap{
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.clock-panel{
    background: #7aab4a;
    border: 5px solid #5a7a3a;
    border-radius: 32px;
    padding: 28px 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 270px;
    box-shadow: 6px 6px 0 #5a7a3a;
    user-select: none;
}
.clock-panel.active-turn{
    background: #a8c878;
    border-color: #2d4a1a;
    transform: scale(1.05);
    box-shadow: 8px 8px 0 #2d4a1a;
}
.clock-panel.inactive-turn{
    opacity: 0.68;
    transform: scale(0.97);
}
.clock-panel.time-low .time-display{
    color: #e04020 !important;
    text-shadow: 2px 2px 0 #7a1a08 !important;
}
.player-label{
    font-family: 'Titan one',cursive;
    font-size: 1.2rem;
    color: white;
    text-shadow: 2px 2px o #5a7a3a;
    letter-spacing: 1px;
    background: #5a7a3a;
    padding: 4px 22px;
    border-radius: 12px
}
.time-display{
    font-family: 'Titan one',cursive;
    font-size: 4.4rem;
    color: white;
    text-shadow: 3px 3px 0 #5a7a3a;
    letter-spacing: 3px;
    line-height: 1;
    min-width: 230px;
    text-align: center;
    transition: color 0.3s,text-shadow 0.3s;
}
.moves-label{
    font-weight: 800;
    font-size: 0.88rem;
    color: #2d4a1a;
    background: #e8f0d0;
    border-radius: 10px;
    border: 2px solid #5a7a3a;
    padding: 3px 16px;
}
.center-controls{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.ctrl-btn{
    font-family: 'Titan one',cursive;
    font-size: 1.5rem;
    background: #e8f0d0;
    color: #5a7a3a;
    border: 4px solid #5a7a3a;
    border-radius: 50%;
    width:62px;
    height: 62px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s;
    box-sizing: 3px 3px 0 #5a7a3a;
}
.ctrl-btn:hover{
    background: #d4e8a8;
    transform: scale(1.1);
}
.ctrl-btn:active{
    transform: scale(0.95);
}
.ctrl-btn.small{
    width: 50px;
    height: 50px;
    font-size: 1.15rem;
}
.switch-hint{
    font-family: 'Nunito',sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: white;
    background:#5a7a3a;
    border-radius: 10px;
    padding: 4px 12px;
    text-align: center;
    border: 2px solid #2d4a1a;
}
.status-bar{
    font-family: 'Titan One',cursive;
    font-size: 1.05rem;
    color: white;
    background: #5a7a3a;
    border-radius: 16px;
    padding: 7px 30px;
    letter-spacing: 1px;
    border: 3px solid #2d4a1a;
    text-shadow: 1px 1px 0 #2d4a1a;
}
@media(max-width:640px){
    .Title{
        font-size: 2 rem;
        padding: 8px;
    }
    .clock-panel{
        min-width: 200px;
    }
    .time-display{
        font-size: 3.2rem;
        min-width: 180px;
    }
    .clocks-wrap{
        flex-direction: column;
        gap: 14px;
    }
    .center-controls{
        flex-direction: row;
    }
}