.cw-grid-shell {
    padding: 0.85rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(87, 76, 67, 0.14);
}

.crossword-grid {
    display: grid;
    gap: 1px;
    background: rgba(87, 76, 67, 0.1);
    border-radius: 18px;
    overflow: hidden;
}

.crossword-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    border: none;
    background: rgba(248, 245, 242, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}

.crossword-cell:hover,
.crossword-cell.cw-selected {
    background: rgba(255, 236, 239, 0.98);
}

.crossword-cell.cw-active {
    background: rgba(255, 241, 243, 0.98);
}

.crossword-cell.cw-black {
    background: rgba(52, 45, 40, 0.95);
}

.cw-num {
    position: absolute;
    top: 4px;
    left: 5px;
    font-family: var(--font-label);
    font-size: 0.5rem;
    font-weight: 700;
    color: rgba(87, 76, 67, 0.72);
}

.crossword-cell.cw-black .cw-num {
    color: rgba(255, 255, 255, 0.72);
}

.cw-letter {
    font-family: var(--font-headline);
    font-size: clamp(0.75rem, 0.8vw + 0.3rem, 1.08rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-on-surface);
}

.cw-clues-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.cw-clue-column {
    display: grid;
    gap: 0.85rem;
}

.cw-clues-list {
    display: grid;
    gap: 0.75rem;
    max-height: 420px;
    overflow: auto;
    padding-right: 0.3rem;
}

.cw-clue-item {
    padding: 0.9rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(87, 76, 67, 0.1);
}

.cw-clue-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
    color: var(--color-on-surface-variant);
}

.cw-clue-meta strong {
    font-family: var(--font-headline);
    color: var(--color-on-surface);
}

.cw-clue-meta code {
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: rgba(248, 245, 242, 0.96);
    border: 1px solid rgba(87, 76, 67, 0.08);
}

.cw-clue-input {
    min-height: 88px;
}

@media (max-width: 900px) {
    .cw-clues-shell {
        grid-template-columns: 1fr;
    }
}
