/* ===== Word Search Game ===== */
.ws-container {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ws-grid-wrapper {
    order: 1;
    flex: 0 0 auto;
    overflow-x: auto;
}

.ws-panel {
    order: 2;
    flex: 1 0 360px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ws-panel-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.ws-groups-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.ws-group {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: border-left-color 0.3s;
    font-size: 0.8rem;
    cursor: default;
}

.ws-group.found {
    border-left-width: 4px;
    padding-left: calc(0.6rem - 3px);
    padding-right: 34px;
}

.ws-group.found::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
}

.ws-group-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 3px;
}

.ws-group-word {
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.ws-group-definition {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ws-group.blurred .ws-group-definition {
    filter: blur(4px);
    transition: filter 0.4s ease;
    cursor: pointer;
}

.ws-group:not(.blurred) .ws-group-definition {
    filter: none;
    transition: filter 0.4s ease;
}

.ws-grid {
    display: inline-flex;
    flex-direction: column;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    touch-action: none;
}

.ws-row {
    display: flex;
}

.ws-cell {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #f1f5f9;
    transition: background 0.1s;
}

.ws-cell.selecting {
    background: #dbeafe !important;
    color: #1d4ed8;
}

.ws-cell.found-0  { background: #fde68a; }
.ws-cell.found-1  { background: #bbf7d0; }
.ws-cell.found-2  { background: #bfdbfe; }
.ws-cell.found-3  { background: #fecaca; }
.ws-cell.found-4  { background: #ddd6fe; }
.ws-cell.found-5  { background: #fed7aa; }
.ws-cell.found-6  { background: #a5f3fc; }
.ws-cell.found-7  { background: #d9f99d; }
.ws-cell.found-8  { background: #fbcfe8; }
.ws-cell.found-9  { background: #fef08a; }
.ws-cell.found-10 { background: #99f6e4; }
.ws-cell.found-11 { background: #e0e7ff; }

.ws-counter {
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.ws-intro {
    text-align: center;
    padding: 3rem 1rem;
}

.ws-intro-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pwc-btn-start {
    background: #6366f1;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-top: 20px;
}
.pwc-btn-start:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.3);
}
.pwc-btn-start:active {
    transform: translateY(1px);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

@media (max-width: 900px) {
    .ws-container { flex-direction: column; }
    .ws-panel { flex: none; width: 100%; order: 2; }
    .ws-grid-wrapper { order: 1; }
    .ws-cell { width: 28px; height: 28px; font-size: 0.72rem; }
    .ws-groups-list { grid-template-columns: 1fr 1fr 1fr; }
}
