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;
}

.grid-cell.hint-pulse {
    animation: hintPulse 0.8s infinite alternate;
}

@keyframes hintPulse {
    0% { background-color: #f59e0b; color: #000; transform: scale(1); }
    100% { background-color: #fbbf24; color: #000; transform: scale(1.2); box-shadow: 0 0 12px #f59e0b; }
}

@keyframes pulseFound {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.word-chip {
    animation: fadeInChip 0.4s ease-out;
}

@keyframes fadeInChip {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.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;
}