/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Custom styles for crossword grid */
.crossword-grid {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 2px;
    margin: 0 auto;
    max-width: 600px;
}

.crossword-cell {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    position: relative;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crossword-cell.active {
    background-color: #e0e7ff;
    border-color: #818cf8;
}

.crossword-cell.black {
    background-color: #111827;
}

.crossword-cell.numbered::before {
    content: attr(data-number);
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 0.6rem;
    color: #4b5563;
}

/* Animation for correct answers */
@keyframes correct {
    0% { background-color: #e0e7ff; }
    50% { background-color: #d1fae5; }
    100% { background-color: #e0e7ff; }
}

.crossword-cell.correct {
    animation: correct 1s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .crossword-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}