#pfc-wrapper {
  font-family: Arial, sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}

#pfc-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.pfc-box {
  flex: 1;
  min-width: 200px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #eee;
}

.pfc-box img {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 10px;
}

.pfc-box select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 10px;
  font-size: 14px;
}

#pfc-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 15px 0;
}

#pfc-btns button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s;
}

#pfc-btns button:hover { opacity: 0.85; }

#pfc-fuse   { background: #6a5acd; }
#pfc-swap   { background: #2196f3; }
#pfc-random { background: #ff7b54; }
#pfc-reset  { background: #f44336; }

#pfc-result {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.pfc-card {
  flex: 1;
  min-width: 240px;
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pfc-card h3 {
  margin-top: 0;
  font-size: 16px;
  color: #333;
  text-transform: capitalize;
}

.pfc-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}

.pfc-card td,
.pfc-card th {
  padding: 7px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.pfc-card th {
  background: #f5f5f5;
  font-weight: 600;
}

.pfc-fusion-name {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin: 8px 0;
  color: #6a5acd;
  text-transform: capitalize;
}

.pfc-meta {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.8;
}

.pfc-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  margin: 2px;
  background: #e0e0e0;
  color: #333;
  text-transform: capitalize;
}

.pfc-badge.fire     { background: #ff7043; color: #fff; }
.pfc-badge.water    { background: #29b6f6; color: #fff; }
.pfc-badge.grass    { background: #66bb6a; color: #fff; }
.pfc-badge.electric { background: #ffca28; color: #333; }
.pfc-badge.psychic  { background: #ec407a; color: #fff; }
.pfc-badge.normal   { background: #bdbdbd; color: #fff; }
.pfc-badge.poison   { background: #ab47bc; color: #fff; }
.pfc-badge.rock     { background: #8d6e63; color: #fff; }
.pfc-badge.ground   { background: #ffb74d; color: #333; }
.pfc-badge.flying   { background: #90caf9; color: #333; }
.pfc-badge.bug      { background: #aed581; color: #333; }
.pfc-badge.ghost    { background: #7e57c2; color: #fff; }
.pfc-badge.dragon   { background: #5c6bc0; color: #fff; }
.pfc-badge.ice      { background: #80deea; color: #333; }
.pfc-badge.fighting { background: #ef5350; color: #fff; }
.pfc-badge.steel    { background: #90a4ae; color: #fff; }
.pfc-badge.dark     { background: #546e7a; color: #fff; }
.pfc-badge.fairy    { background: #f48fb1; color: #fff; }

@media (max-width: 600px) {
  #pfc-row,
  #pfc-result {
    flex-direction: column;
  }
  .pfc-box img {
    width: 90px;
    height: 90px;
  }
}
