/* Responsive adjustments */
@media (orientation: landscape) {
    .wordfinder-grid { max-width: 70dvh; }
    .word-bank { width: 30dvh; max-width: none; height: 70dvh; align-self: center; overflow-y: auto; }
}

/* WordFinder Grid */
.wordfinder-grid {
    display: grid;
    height: 70dvh; width: 70dvh; max-width: 95vw; max-height: 95vw;
    background: var(--card-bg);
    border: 2px solid var(--grid-border-color, var(--text-color));
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.wf-cell {
    display: flex; align-items: center; justify-content: center;
    font-size: min(5vw, 4dvh); font-weight: 600;
    border: 1px solid rgba(128,128,128,0.2);
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.wf-cell.selecting {
    background: var(--primary);
    color: white;
}

.wf-cell.found {
    background: var(--cell-highlight, rgba(0, 255, 0, 0.2));
    color: var(--primary);
    font-weight: 800;
}

/* Word Bank / Numpad Replacement */
.word-bank {
    width: 70dvh; max-width: 95vw; height: auto;
    background: var(--card-bg); border-radius: 12px; padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid var(--border-color);
}
.word-bank h3 { font-size: 1.1rem; margin-bottom: 10px; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }
.word-list { display: flex; flex-wrap: wrap; gap: 10px; }
.word-item {
    padding: 8px 15px; border-radius: 20px; font-weight: 600; font-size: 1rem;
    background: rgba(128,128,128,0.1); transition: all 0.3s;
}
.word-item.found {
    background: var(--primary); color: white; text-decoration: line-through;
    opacity: 0.6;
}