/* Kakuro Specific Styles */

/* .puzzle-cell.white and .puzzle-cell.black extend common puzzle-cell */
.puzzle-cell.black {
    background: var(--text-primary);
    cursor: default;
    z-index: 1;
}

.puzzle-cell.white {
    background: var(--bg-primary);
    cursor: pointer;
    z-index: 2;
}

.puzzle-cell.white:hover {
    background: var(--bg-tertiary);
    z-index: 3;
}



/* Run Highlight - Light Blue (Specific to Kakuro's blue theme) */
.puzzle-cell.white.cage-active {
    background: rgba(59, 130, 246, 0.15) !important;
    z-index: 8;
}

/* Selected State - Blue Theme */
.puzzle-cell.white.selected {
    background: #3b82f6 !important;
    color: #fff !important;
    font-weight: 800;
    z-index: 10 !important;
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: -2px;
}

/* Error state */
.puzzle-cell.white.error {
    color: #ff4d4d;
    background: #ffe0e0;
    z-index: 4;
}

/* Clue Triangle Divider */
.clue-triangle {
    width: 100%;
    height: 100%;
    position: relative;
}

.clue-triangle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, transparent 48%, var(--bg-primary) 48%, var(--bg-primary) 52%, transparent 52%);
    opacity: 0.5;
}

.clue-down {
    position: absolute;
    bottom: 2px;
    left: 6px;
    font-size: clamp(8px, 2vw, 13px);
    font-weight: 800;
    color: var(--bg-primary);
    z-index: 2;
    line-height: 1;
}

.clue-right {
    position: absolute;
    top: 2px;
    right: 6px;
    font-size: clamp(8px, 2vw, 13px);
    font-weight: 800;
    color: var(--bg-primary);
    z-index: 2;
    line-height: 1;
}

/* Mobile Adjustments */
@media (max-width: 600px) {

    .clue-down,
    .clue-right {
        font-size: clamp(8px, 4cqi, 11px);
    }
}
