.chs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
}

.chs__status {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    min-height: 1.4em;
    text-align: center;
}

.chs__board-wrap {
    position: relative;
    width: 100%;
}

.chs__board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.chs__sq {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.4rem, 5.6vw, 2.1rem);
    position: relative;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}
.chs__sq--light { background: #EBECD0; }
.chs__sq--dark { background: #779556; }

.chs__sq[data-piece-color="w"] { color: #fff; text-shadow: 0 0 2px #000, 0 0 1px #000; }
.chs__sq[data-piece-color="b"] { color: #111; }

.chs__sq.is-selected { box-shadow: inset 0 0 0 3px var(--accent-2); }
.chs__sq.is-legal::after {
    content: '';
    position: absolute;
    width: 26%;
    height: 26%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
}
.chs__sq.is-legal[data-has-piece="true"]::after {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: none;
    box-shadow: inset 0 0 0 4px rgba(220, 40, 40, 0.65);
}
.chs__sq.is-check { box-shadow: inset 0 0 0 3px #ff5d6c; }
.chs__sq.is-last-move { box-shadow: inset 0 0 0 3px rgba(245, 197, 24, 0.7); }

.chs__promo {
    position: absolute;
    inset: 0;
    background: rgba(13, 15, 20, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--text);
    border-radius: var(--radius-sm);
}
.chs__promo-choices { display: flex; gap: 10px; }
.chs__promo-choices button {
    width: 52px;
    height: 52px;
    font-size: 1.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
}
.chs__promo-choices button:hover { border-color: var(--accent); }

.chs__actions { margin-top: 2px; }
