body {
    background: #7b5131;
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#backgammon-board {
    display: flex;
    flex-direction: row;
    background: #d9b381;
    border-radius: 20px;
    box-shadow: 0 6px 40px #000a, 0 8px 0 5px #6b3b10;
    padding: 32px 20px;
    position: relative;
}

.board-half {
    width: 260px;
    height: 520px;
    background: #f7e0b6;
    position: relative;
    border-radius: 12px;
    margin: 0 6px;
    box-shadow: 3px 2px 20px #bc9365;
    overflow: visible; /* اصلاح */
}

.points-row {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    z-index: 1;
    pointer-events: none; /* اصلاح: برای جلوگیری از قطع رویداد کلیک checker */
}

.point {
    width: 34px;
    height: 238px;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    background: #8c2b10;
    margin: 0 1px;
    position: relative;
    transition: background 0.2s;
    z-index: 1;
    pointer-events: auto;
}
.point.even {
    background: #c0803b;
}

.points-row.bottom {
    transform: rotate(180deg);
}

/* مهره ها - بالاتر از نقاط */
.checker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffe3b3;
    box-shadow: 0 1px 10px #c09b65 inset;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #faf1d7;
    z-index: 5; /* بالاتر قرار گرفت */
    cursor: pointer;
    pointer-events: auto;
}
.checker.red {
    background: #9e3f1a;
    border: 2px solid #ac583d;
    box-shadow: 0 1px 10px #622712 inset;
}

#dice-area {
    position: absolute;
    z-index: 15;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.dice {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px #000a inset;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.3rem;
    font-weight: bold;
    color: #34495e;
}
