#pft-wrapper {
  display: flex;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  flex-wrap: wrap;
}

.pft-panel {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

#pft-left   { flex: 1.2; min-width: 260px; }
#pft-center { flex: 1.4; min-width: 260px; }
#pft-right  { flex: 1;   min-width: 220px; }

.pft-panel-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
  border-bottom: 2px solid #6a5acd;
  padding-bottom: 6px;
}

/* Search */
.pft-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.pft-panel-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.pft-panel-btns button {
  flex: 1;
  padding: 7px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #fff;
}

.pft-panel-btns button:first-child { background: #9c27b0; }
.pft-panel-btns button:last-child  { background: #607d8b; }
.pft-panel-btns button:hover { opacity: 0.85; }

/* Grid */
#pft-loading-msg {
  text-align: center;
  padding: 20px;
  color: #888;
  font-size: 14px;
}

.pft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.pft-grid::-webkit-scrollbar { width: 6px; }
.pft-grid::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.pft-grid::-webkit-scrollbar-thumb { background: #bbb; border-radius: 4px; }

.pft-poke-card {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  border: 2px solid transparent;
  font-size: 11px;
  color: #444;
  text-transform: capitalize;
}

.pft-poke-card:hover {
  background: #e8e0ff;
  border-color: #9c27b0;
  transform: scale(1.04);
}

.pft-poke-card img {
  width: 52px;
  height: 52px;
  display: block;
  margin: 0 auto 4px;
}

/* Center panel */
.pft-selected-count {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.pft-dropzone {
  min-height: 280px;
  border: 2px dashed #bbb;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  padding: 10px;
  background: #fafafa;
  overflow-y: auto;
  max-height: 300px;
}

.pft-drop-hint {
  width: 100%;
  text-align: center;
  color: #bbb;
  font-size: 14px;
  margin: auto;
  padding: 40px 0;
}

.pft-drop-card {
  background: #ede7f6;
  border-radius: 10px;
  padding: 6px 10px;
  text-align: center;
  font-size: 12px;
  color: #4a148c;
  text-transform: capitalize;
  cursor: pointer;
  border: 1px solid #ce93d8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pft-drop-card img { width: 36px; height: 36px; }
.pft-drop-card:hover { background: #fce4ec; border-color: #f48fb1; }

#pft-fusion-result {
  margin-top: 12px;
  padding: 10px;
  background: linear-gradient(135deg, #ede7f6, #e3f2fd);
  border-radius: 10px;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  color: #4a148c;
  min-height: 44px;
  text-transform: capitalize;
}

.pft-clear-btn {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: #f44336;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.pft-clear-btn:hover { background: #d32f2f; }

/* Right panel */
.pft-fusion-count {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.pft-danger-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: #ff7043;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  margin-bottom: 10px;
}
.pft-danger-btn:hover { background: #e64a19; }

#pft-fusion-list {
  max-height: 500px;
  overflow-y: auto;
}

.pft-fusion-item {
  background: #f9f9f9;
  border-left: 4px solid #6a5acd;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: capitalize;
}

.pft-fusion-item .pft-fusion-name {
  font-weight: bold;
  font-size: 15px;
  color: #6a5acd;
}

.pft-fusion-item .pft-fusion-parents {
  color: #888;
  font-size: 12px;
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  #pft-wrapper { flex-direction: column; }
  .pft-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .pft-grid { grid-template-columns: repeat(2, 1fr); }
}
