.tzq-word-search {
  color: var(--tzq-text-primary);
  background: #fff;
  border-radius: var(--tzq-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  user-select: none;
  -webkit-user-select: none;
}
.tzq-ws-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 1rem;
}
.tzq-ws-header h2 {
  margin: 0;
  color: #2d3748;
}
.tzq-ws-level-info {
  text-align: right;
}
.tzq-ws-title {
  display: block;
  font-weight: 600;
  color: #4a5568;
}
.tzq-ws-progress {
  font-size: 0.9rem;
  color: #718096;
}
.tzq-ws-game-area {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.tzq-ws-grid {
  display: grid;
  gap: 2px;
  background: #e2e8f0;
  padding: 5px;
  border-radius: var(--tzq-radius-md);
  max-width: 100%;
}
.tzq-ws-cell {
  background: white;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: var(--tzq-radius-md);
  transition: background 0.1s;
  width: 35px;
  height: 35px;
}
.tzq-ws-cell:hover {
  background: #edf2f7;
}
.tzq-ws-cell.selected {
  background: #63b3ed;
  color: white;
}
.tzq-ws-cell.found {
  background: #48bb78;
  color: white;
  animation: pulse 0.5s;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
.tzq-ws-word-list {
  flex: 1;
  min-width: 200px;
  background: #f7fafc;
  padding: 15px;
  border-radius: var(--tzq-radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}
.tzq-ws-word-item {
  padding: 8px 12px;
  background: white;
  border-radius: var(--tzq-radius-md);
  border: 1px solid var(--tzq-primary-light);
  font-size: 0.95rem;
  color: #4a5568;
  transition: all 0.3s;
}
.tzq-ws-word-item.found {
  background: #c6f6d5;
  color: #22543d;
  text-decoration: line-through;
  opacity: 0.8;
}
.tzq-ws-controls {
  margin-top: 2rem;
  text-align: center;
}
.tzq-ws-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 30px 50px;
  border-radius: var(--tzq-radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  font-size: 1.5rem;
  font-weight: bold;
  color: #2f855a;
  z-index: 100;
  text-align: center;
  pointer-events: none;
}
@media (max-width: 600px) {
  .tzq-ws-grid {
    gap: 1px;
  }
  .tzq-ws-cell {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  .tzq-ws-game-area {
    flex-direction: column;
  }
  .tzq-ws-word-list {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
