body {
    font-family: 'Cairo', sans-serif;
    background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
    color: #f8fafc;
    min-height: 100vh;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.grid-cell {
    transition: transform 0.12s ease, background-color 0.15s, color 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.grid-cell:hover {
    transform: scale(1.08);
    z-index: 10;
}

.grid-cell.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    z-index: 20;
}

.grid-cell.found {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    animation: pulseFound 0.35s ease-out;
}

@keyframes pulseFound {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.word-chip {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.word-chip.found {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border-color: #10b981 !important;
    color: #34d399 !important;
    opacity: 0.8;
    transform: scale(0.96);
}

.word-chip.found .word-text {
    text-decoration: line-through;
}

.glass-panel {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #1e293b;
}
::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 9999px;
}