/* Binero CSS */

.binero-board {
    display: grid;
    gap: 0;
    padding: 0.5rem;
    border-radius: 1rem;
    background: var(--color-bg-card);
    box-shadow: 0 2px 12px color-mix(in srgb, var(--color-text-main) 8%, transparent);
    position: relative;
}

.binero-cell {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    border: 1.5px solid var(--color-border-main);
    background: var(--color-bg-card);
    color: var(--color-text-main);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    user-select: none;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.binero-cell:hover {
    transform: translateY(-1px);
}

.binero-cell--selected {
    border-color: var(--color-selected-border);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-selected-border) 15%, transparent);
}

.binero-cell--given {
    background: var(--color-bg-hover);
    cursor: default;
}

.binero-cell--one {
    background: var(--color-accent-sky);
    border-color: var(--color-sky-300);
}

.binero-cell--zero {
    background: var(--color-accent-amber);
    border-color: var(--color-amber-300);
}

.binero-cell--given.binero-cell--one {
    background: var(--color-sky-100);
}

.binero-cell--given.binero-cell--zero {
    background: color-mix(in srgb, var(--color-accent-amber) 70%, var(--color-bg-hover));
}

.binero-cell--wrong {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px color-mix(in srgb, #ef4444 28%, transparent);
}

.binero-relation-slot {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.binero-relation-glyph {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary);
    user-select: none;
}

.binero-slot-spacer {
    width: 100%;
    height: 100%;
}
